PageSourceSearch

https://app.grantedhealth.com/_next/static/chunks/pages/bills/flagged-c597e875e18a57a3.js

js grantedhealth.com collected 2026-10-02 15:10:06 UTC 11,170 bytes, 2 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e.SENTRY_RELEASE={id:"medbillai-web@7bdf109"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="aa47b9ab-ebbe-4237-84f3-ddd5dfc8cfb4",e._sentryDebugIdIdentifier="sentry-dbid-aa47b9ab-ebbe-4237-84f3-ddd5dfc8cfb4")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[841],{7797:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>k});var n=i(60072),a=i(76316),r=i.n(a),s=i(94131),o=i(84875),d=i(60376),l=i(99715),c=i(51529),u=i(77055),m=i(34317);let p=({flaggedBills:e,loading:t,insuranceLinks:i})=>{let a=0===e.length;return(0,n.jsxs)(o.B,{flex:1,height:(0,d.A)("90vh"),overflow:"scroll",scrollEventThrottle:20,showsVerticalScrollIndicator:!1,contentContainerStyle:{minHeight:"100%",justifyContent:"flex-start",paddingBottom:40},"data-sentry-element":"ScrollView","data-sentry-component":"BillsListFlagged","data-sentry-source-file":"BillsListFlagged.tsx",children:[a?(0,n.jsx)(s.Se,{f:1,children:(0,n.jsx)(m.P,{filter:c.Ef.flagged,insuranceLinks:i,loading:!1})}):e.map((e,t)=>(0,n.jsx)(u.P,{eob:e,borderHide:0===t,flagged:!0},e.id)),t?(0,n.jsx)(s.lW,{justifyContent:"center",alignItems:"center",padding:"$2",height:"$4",children:(0,n.jsx)(l.y,{transition:"bouncy"})}):null]})};var v=i(44820),g=i(5371);let f=()=>{let{dataInsuranceLinks:e}=(0,g.e3)(),{data:t,loading:i,refetch:a}=(0,v.n$)();return(0,n.jsx)(s.Se,{flex:1,backgroundColor:"$surface1","data-sentry-element":"YStack","data-sentry-component":"FlaggedBillsScreen","data-sentry-source-file":"flagged-bills.tsx",children:(0,n.jsx)(p,{flaggedBills:t,loading:i,insuranceLinks:e,refetch:a,"data-sentry-element":"BillsListFlagged","data-sentry-source-file":"flagged-bills.tsx"})})};var y=i(45687),h=i(55563),b=i(21424);let w=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r(),{"data-sentry-element":"Head","data-sentry-source-file":"flagged.tsx",children:(0,n.jsx)("title",{children:"Flagged Bills"})}),(0,n.jsx)(f,{"data-sentry-element":"FlaggedBillsScreen","data-sentry-source-file":"flagged.tsx"})]});w.getLayout=e=>(0,n.jsx)(b.i,{children:(0,n.jsx)(h.m,{fullPage:!0,children:(0,n.jsx)(y.P,{children:e})})});let k=w},25279:(e,t,i)=>{"use strict";i.d(t,{c:()=>o});var n=i(60004),a=i(23162),r=i(93692),s=i(60072);let o=(0,r.S)((0,n.memo)(function(e){let{color:t="black",size:i=24,...n}=e;return(0,s.jsx)(a.BS,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:(0,s.jsx)(a.wA,{d:"m9 18 6-6-6-6",stroke:t})})}))},32775:(e,t,i)=>{"use strict";i.d(t,{G:()=>o});var n=i(60004),a=i(23162),r=i(93692),s=i(60072);let o=(0,r.S)((0,n.memo)(function(e){let{color:t="black",size:i=24,...n}=e;return(0,s.jsxs)(a.BS,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[(0,s.jsx)(a.N1,{x1:"12",x2:"12",y1:"2",y2:"22",stroke:t}),(0,s.jsx)(a.wA,{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",stroke:t})]})}))},60127:(e,t,i)=>{"use strict";i.d(t,{m:()=>o});var n=i(60004),a=i(23162),r=i(93692),s=i(60072);let o=(0,r.S)((0,n.memo)(function(e){let{color:t="black",size:i=24,...n}=e;return(0,s.jsxs)(a.BS,{width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[(0,s.jsx)(a.jl,{cx:"12",cy:"12",r:"10",stroke:t}),(0,s.jsx)(a.wA,{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",stroke:t}),(0,s.jsx)(a.wA,{d:"M12 17h.01",stroke:t})]})}))},65457:(e,t,i)=>{"use strict";i.d(t,{AC:()=>L,KW:()=>D,UZ:()=>N,BY:()=>b,ap:()=>S});var n=i(81281),a=i(76098),r=i(96126);let s=r.Ik({display:r.Yj().nullish(),longText:r.Yj().nullish(),taxonomy:r.Yj()}),o=r.Ik({median:r.ai(),p25:r.ai(),p75:r.ai(),rating:r.Yj(),allowed:r.ai().nullish()}),d=r.Ik({title:r.Yj().nullish(),overallPriceRating:r.Yj().nullish(),codeDescriptions:r.g1(r.Yj(),s).nullish(),priceTransparency:r.g1(r.Yj(),o).nullish()}).passthrough(),l=e=>{switch(e){case"APPROVED":return"approved";case"DENIED":return"denied";case"PARTIAL":return"partial";case"PENDING":return"pending";case"UNKNOWN":return}},c=e=>void 0===e?void 0:{amount:(0,n.z)(e),currency:"USD"},u=e=>{if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return e}},m=e=>{let t=a.v2.EOB.safeParse(u(e));return t.success?t.data:(console.error("Failed to parse v2.EOB record",t.error.message),null)},p=e=>{let t=a.v2.Invoice.safeParse(u(e));return t.success?t.data:(console.error("Failed to parse v2.Invoice record",t.error.message),null)},v=e=>{if(null==e)return null;let t=d.safeParse(u(e));return t.success?t.data:null},g=e=>e.provider.name||e.facility?.name||void 0,f=e=>{let[t,...i]=[...new Set(Object.values(e??{}).map(e=>e.display??e.longText).filter(e=>!!e))];if(t)return i.length>0?`${t} +${i.length} more`:t},y=(e,t)=>(!t.denied||"DENIED"===e.adjudication.decision)&&(!t.inNetwork||"IN_NETWORK"===e.provider.networkStatus)&&(!t.outOfNetwork||"OUT_OF_NETWORK"===e.provider.networkStatus),h=(e,t,i)=>{let n=t.claim.serviceStartDate;return{id:e,resourceId:e,name:t.patient.name||null,status:t.claim.claimStatus,decision:l(t.adjudication.decision)??null,totalCost:c(t.adjudication.totals.patientResponsibility),location:t.provider.name||t.facility?.name||void 0,title:f(i?.codeDescriptions)??g(t),serviceDate:n?new Date(n):void 0,description:t.adjudication.items.map(e=>
1e.description).filter(Boolean).join(", ")||"No summary available",kind:"claim"}},b=(e,t)=>{if(!e)return[];let i=[];for(let n of e){let e=m(n.data);e&&(!t||y(e,t))&&i.push(h(n.key,e,v(n.enrichment)))}return i},w=e=>e.provider.name||e.issuer.name||void 0,k=e=>e.meta.serviceStartDate||e.meta.invoiceDate,j=e=>e.totals.balance??(null!=e.totals.net?e.totals.net-(e.totals.paidSoFar??0):void 0),x=(e,t,i)=>{let n=k(t);return{id:e,resourceId:e,name:t.patient.name||null,status:t.meta.status,decision:null,totalCost:c(j(t)),location:w(t),title:i?.title??t.meta.title??w(t),serviceDate:n?new Date(n):void 0,description:t.items.map(e=>e.description).filter(Boolean).join(", ")||"No summary available",kind:"invoice"}},S=e=>{if(!e)return[];let t=[];for(let i of e){let e=p(i.data);e&&t.push(x(i.key,e,v(i.enrichment)))}return t},L=e=>{let t={};return e.submitted&&(t.submitted=e.submitted),e.benefit&&(t.benefit=e.benefit),e.discount&&(t.discount=e.discount),e.memberLiability&&(t.memberLiability=e.memberLiability),e.paidByPatient&&(t.paidByPatient=e.paidByPatient),t},E=e=>({code:e.code||void 0,description:e.description??e.display??void 0}),I="HIGH",D=e=>{let t,i,a=m(e.data);if(!a)return null;let r=v(e.enrichment),s=(t=r?.priceTransparency)?Object.entries(t).map(([e,t])=>({procedureCode:e,median:{amount:(0,n.z)(t.median),currency:"USD"},rating:t.rating})):[];return{key:e.key,title:f(r?.codeDescriptions)??g(a),patientName:a.patient.name||void 0,providerName:a.provider.name||void 0,facilityName:a.facility?.name||void 0,serviceDate:a.claim.serviceStartDate||void 0,decisionCode:l(a.adjudication.decision),networkCode:(e=>{switch(e){case"IN_NETWORK":return"in";case"OUT_OF_NETWORK":return"out";default:return}})(a.provider.networkStatus),patientResponsibility:c(a.adjudication.totals.patientResponsibility),totals:{submitted:c((i=a.adjudication.totals).billedAmount),benefit:c(i.benefit),discount:c(i.discount),memberLiability:c(i.patientResponsibility),paidByPatient:c(i.paidByPatient)},items:a.adjudication.items.map(e=>{var t;let i;return t=r?.codeDescriptions,i=e.procedureCode?t?.[e.procedureCode]:void 0,{sequence:e.sequence,description:i?.display??i?.longText??e.description,procedureCode:e.procedureCode,procedureCodeType:e.procedureCodeType,isDenied:e.isDenied??!1,denialReasons:(e.denialReasons??[]).map(e=>({code:e.code,description:e.description})),diagnoses:(e.diagnoses??[]).map(E)}}),diagnoses:(e=>{let t=new Set,i=[];for(let n of e.adjudication.items)for(let e of n.diagnoses??[]){let n=E(e),a=n.code??n.description??"";a&&!t.has(a)&&(t.add(a),i.push(n))}return i})(a),priceTransparency:s,overallPriceRating:r?.overallPriceRating??void 0,isHighPrice:0!==s.length&&(r?.overallPriceRating===I||s.some(e=>e.rating===I))}},B=e=>({sequence:e.sequence,description:e.description,amount:{amount:(0,n.z)(e.amount),currency:"USD"}}),N=e=>{let t,i=p(e.data);if(!i)return null;let n=v(e.enrichment);return{key:e.key,title:n?.title??i.meta.title??w(i),patientName:i.patient.name||void 0,providerName:w(i),serviceDate:k(i)||void 0,amountDue:c(j(i)),totals:{submitted:c((t=i.totals).gross??void 0),discount:c(t.discount??void 0),memberLiability:c(t.net??void 0),paidByPatient:c(t.paidSoFar??void 0)},items:i.items.map(B)}}},71522:(e,t,i)=>{"use strict";i.d(t,{Ow:()=>l});var n=i(50527);i(60004);var a=i(55761),r=i(60835),s=i.n(r);let o=[],d={addEventListener(e,t){s()("url"===e,`Linking.addEventListener(): ${e} is not a valid event`);let i=e=>t({url:window.location.href,nativeEvent:e});return o.push({listener:t,nativeListener:i}),window.addEventListener("message",i,!1),{remove:()=>{this.removeEventListener(e,t)}}},removeEventListener(e,t){s()("url"===e,`Linking.addEventListener(): ${e} is not a valid event`);let i=o.findIndex(e=>e.listener===t);s()(-1!==i,"Linking.removeEventListener(): cannot remove an unregistered event listener.");let n=o[i].nativeListener;window.removeEventListener("message",n,!1),o.splice(i,1)},canOpenURL:async()=>!0,getInitialURL:async()=>window.location.href,async openURL(e){window.location=new URL(e,window.location).toString()}};async function l(){if("web"===a.Platform.OS)throw new n.V("Linking","openSettings");if(d.openSettings)return await d.openSettings();await c("app-settings:")}async function c(e){return s()("string"==typeof e,"Invalid URL: should be a string. Was: "+e),s()(e,"Invalid URL: cannot be empty"),await d.openURL(e)}},80706:(e,t,i)=>{"use strict";i.d(t,{Zp:()=>p});var n=i(67978),a=i(27996),r=i(87371),s=i(29705),o=i(89034);let d=(0,a.P)({size:"$true"}),l=(0,r.I)(n.Se,{name:"Card",context:d,variants:{unstyled:{false:{size:"$true",backgroundColor:"$background",position:"relative"}}
1,size:{"...size":(e,{tokens:t})=>({borderRadius:t.radius[e]??e})}},defaultVariants:{unstyled:"1"===o.env.TAMAGUI_HEADLESS}}),c=(0,r.I)(n.Se,{name:"CardHeader",context:d,variants:{unstyled:{false:{zIndex:10,backgroundColor:"transparent",marginBottom:"auto"}},size:{"...size":(e,{tokens:t})=>({padding:t.space[e]??e})}},defaultVariants:{unstyled:"1"===o.env.TAMAGUI_HEADLESS}}),u=(0,r.I)(c,{name:"CardFooter",variants:{unstyled:{false:{zIndex:5,flexDirection:"row",marginTop:"auto",marginBottom:0}}},defaultVariants:{unstyled:"1"===o.env.TAMAGUI_HEADLESS}}),m=(0,r.I)(n.Se,{name:"CardBackground",variants:{unstyled:{false:{zIndex:0,fullscreen:!0,overflow:"hidden",pointerEvents:"none",padding:0}}},defaultVariants:{unstyled:"1"===o.env.TAMAGUI_HEADLESS}}),p=(0,s.u)(l,{Header:c,Footer:u,Background:m})},98320:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/bills/flagged",function(){return i(7797)}])}},e=>{e.O(0,[2733,5023,151,6767,1116,1281,206,8534,5563,4820,5687,636,6593,8792],()=>e(e.s=98320)),_N_E=e.O()}]);
2//# sourceMappingURL=flagged-c597e875e18a57a3.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.