1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9869],{5508:(e,l,r)=>{"use strict";r.r(l),r.d(l,{default:()=>j,evaluateAnswers:()=>o,getTypeData:()=>i,makeUrlFromIdTitle:()=>h,toTitleCase:()=>x});var t=r(74355);let i=e=>e?.type==="lcd"?{type:"Local Coverage Determination (LCD)",color:"purple",url:e?.url}:e?.type==="ncd"?{type:"National Coverage Determination (NCD)",color:"orange",url:e?.url}:{type:"Commercial Clinical Policy",color:"blue",url:e?.url};function n(e,l){if(e.and)return s(e.and,l);if(e.and_not)return d(e.and_not,l);if(e.or)return a(e.or,l);if(e.or_not)return c(e.or_not,l);let r=l[e.question_id];return null!=r&&e.answers.map(e=>e.toLowerCase()).includes(r)}function s(e,l){return e.every(e=>n(e,l))}function d(e,l){return e.every(e=>!n(e,l))}function a(e,l){return e.some(e=>n(e,l))}function c(e,l){return e.some(e=>!n(e,l))}let o=(e,l,r)=>{let t=e?.covered===!1,i=0===Object.keys(r??{}).length;return!t&&!i&&l.some(e=>{let l=!e.and||s(e.and,r),t=!e.and_not||d(e.and_not,r),i=!e.or||a(e.or,r),n=!e.or_not||c(e.or_not,r);return l&&t&&i&&n})},h=e=>{let l=(0,t.buildPolicyPath)(e);return l?l.replace(/^\/policy\//,""):""},x=e=>null==e?"":e?.toUpperCase()==="CMS"?"CMS":"hphc"===e?"Harvard Pilgrim Health Care":e.split(/[\s-_]+/).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),j=o},40753:(e,l,r)=>{"use strict";r.d(l,{A:()=>d});var t=r(37876),i=r(91671),n=r(37401),s=r(5508);let d=function({doc:e}){let l=(0,s.getTypeData)(e);return(0,t.jsxs)(i.A,{align:"left",children:[(0,t.jsx)(n.A,{children:e?.effective_date!==void 0?(0,t.jsxs)("div",{style:{marginRight:"5em"},children:[(0,t.jsx)("strong",{children:"Effective Date"}),(0,t.jsx)("p",{children:e.effective_date?.split(" ")[0]||"NA"})]}):""}),(0,t.jsx)(n.A,{children:e?.last_updated!==void 0?(0,t.jsxs)("div",{style:{marginRight:"5em"},children:[(0,t.jsx)("strong",{children:"Last Reviewed"}),(0,t.jsx)("p",{children:e.last_review_date?.split(" ")[0]||"NA"})]}):""}),(0,t.jsx)(n.A,{children:e?.url!==void 0?(0,t.jsxs)("div",{children:[(0,t.jsx)("strong",{children:"Original Document"}),(0,t.jsx)("p",{children:(0,t.jsxs)("a",{href:l?.url,target:"_blank",rel:"noopener noreferrer",className:"text-decoration-none",children:[(0,t.jsx)("i",{className:"bi bi-link-45deg"}),"\xa0 Reference"]})})]}):""})]})}},47043:(e,l,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/policy/[plan]/adjudicate",function(){return r(81993)}])},74355:e=>{"use strict";let l="https://genhealth.ai",r={ICD10CM:"icd10cm",HCPCS:"hcpcs",CPT4:"cpt4"},t=e=>String(e||"").trim().replace(/[^a-zA-Z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"").toLowerCase(),i=e=>String(e||"").trim().replace(/[^a-zA-Z0-9]/g,"-").replace(/-+/g,"-").replace(/-$/,"").toLowerCase();e.exports={SITE_URL:l,buildCodePath:e=>{let l=r[String(e?.system||"").toUpperCase()],i=String(e?.code||"").trim(),n=t(e?.display);return l&&i&&n?`/code/${l}/${i}-${n}`:null},buildPolicyPath:e=>{let l=String(e?.publisher||"").trim().toLowerCase(),r=String(e?.ghid||"").split("-")[0].toLowerCase();if(!l||!r)return null;let t=e?.type==="mcc_medical_policy"?"text":i(e?.title);return t?`/policy/${l}/${r}-${t}`:null},cleanPolicyTitleSlug:i,cleanUrlSlug:t,toAbsoluteUrl:e=>`${l}${e}`}},81993:(e,l,r)=>{"use strict";r.r(l),r.d(l,{__N_SSP:()=>C,default:()=>_});var t=r(37876),i=r(14232),n=r(93407),s=r(2017),d=r(23113),a=r(91671),c=r(37401),o=r(59851),h=r(8248),x=r(71122),j=r(53091),u=r(65885),p=r(17955),g=r(89866);r(54294);var y=r(40753),m=r(64453),A=r(1320);let b=function({label:e,val:l}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("strong",{children:e}),(0,t.jsx)("div",{children:l})]})};var f=r(65206);let{Option:v}=n.A;var C=!0;let _=(0,g.x2)(function({policies:e}){let[l,r]=(0,i.useState)(!1),[g,C]=(0,i.useState)(!1),[_,S]=(0,i.useState)(null),[P,w]=(0,i.useState)([]),[D,R]=(0,i.useState)({}),[k,N]=(0,i.useState)(null),[T,E]=(0,i.useState)(!1),[I,F]=(0,i.useState)({}),[L,O]=(0,i.useState)([]);(0,i.useEffect)(()=>{O(function e(l){return Array.isArray(l)?l.map(l=>e(l)):null!==l&&"object"==typeof l?Object.entries(l).reduce((r,[i,n])=>{let s=i;
1return("question"===i||"type"===i&&["and","or","and_not","or_not"].includes(n.toLowerCase())||"name"===i&&l.hasOwnProperty("criteria"))&&(s="title"),"title"===s||"type"===s?["and","or","and_not","or_not"].includes(n.toLowerCase())?n=(0,t.jsx)("b",{children:n.toUpperCase()}):(l.answer,n=(0,t.jsxs)("span",{children:[n,(0,t.jsx)("br",{})]})):n=e(n),{...r,[s]:n}},{}):l}(_?.decision_tree))},[_]);let U=[{key:"0.5",label:"Summary",children:(0,t.jsxs)(s.A,{children:[(0,t.jsx)("b",{children:"Summary: "}),(0,t.jsx)("p",{children:D?.summary}),(0,t.jsx)(d.A,{direction:"vertical",size:"small",current:D?.timeline?.length,items:[...D?.timeline?.map(e=>({title:e.date,description:e.event}))||[]]})]})},{key:"1",label:"Demographics",children:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(s.A,{title:"Patient Information",children:(0,t.jsxs)(a.A,{gutter:[32,32],children:[(0,t.jsx)(c.A,{children:(0,t.jsx)(b,{label:"Name",val:D?.patient?.name})}),(0,t.jsx)(c.A,{children:(0,t.jsx)(b,{label:"DOB",val:"REDACTED"})}),(0,t.jsx)(c.A,{children:(0,t.jsx)(b,{label:"Sex",val:D?.patient?.sex})}),(0,t.jsx)(c.A,{children:(0,t.jsx)(b,{label:"SSN",val:D?.patient?.ssn})}),(0,t.jsx)(c.A,{children:(0,t.jsx)(b,{label:"Address",val:"REDACTED"})}),(0,t.jsx)(c.A,{children:(0,t.jsx)(b,{label:"Identifier",val:"MISSING"})})]})})})},{key:"2",label:"Coverage",children:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(s.A,{title:"Coverage Information",children:(0,t.jsxs)(a.A,{gutter:[32,32],children:[(0,t.jsx)(c.A,{children:(0,t.jsx)(b,{label:"Plan",val:"Blue Cross Blue Shield Illinois"})}),(0,t.jsx)(c.A,{children:(0,t.jsx)(b,{label:"LoB",val:"UNSPECIFIED"})}),(0,t.jsx)(c.A,{children:(0,t.jsx)(b,{label:"Identifier",val:"REDACTED"})})]})})})},{key:"3",label:"Diagnoses",children:(0,t.jsx)(s.A,{title:"Diagnoses",children:(0,t.jsxs)("table",{children:[(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{style:{paddingRight:20},children:(0,t.jsx)("b",{children:"System"})}),(0,t.jsx)("td",{style:{paddingRight:20},children:(0,t.jsx)("b",{children:"Code"})}),(0,t.jsx)("td",{style:{paddingRight:20},children:(0,t.jsx)("b",{children:"Confidence"})}),(0,t.jsx)("td",{style:{paddingRight:20},children:(0,t.jsx)("b",{children:"Page Source"})})]}),D?.entities?.map(e=>{if(e.type.includes("ICD"))return(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:e.type}),(0,t.jsx)("td",{children:e.entity}),(0,t.jsx)("td",{children:e.confidence_score}),(0,t.jsx)("td",{children:e.page_num})]})})]})})},{key:"4",label:"Procedures",children:(0,t.jsx)(s.A,{title:"Procedures",children:(0,t.jsxs)("table",{children:[(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{style:{paddingRight:20},children:(0,t.jsx)("b",{children:"Procedure"})}),(0,t.jsx)("td",{style:{paddingRight:20},children:(0,t.jsx)("b",{children:"Type"})}),(0,t.jsx)("td",{style:{paddingRight:20},children:(0,t.jsx)("b",{children:"Confidence"})}),(0,t.jsx)("td",{style:{paddingRight:20},children:(0,t.jsx)("b",{children:"Page Source"})})]}),D?.entities?.map(e=>{if(e.type.includes("Procedure")||e.type.includes("CPT"))return(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:e.type||"NA"}),(0,t.jsx)("td",{children:e.entity}),(0,t.jsx)("td",{children:e.confidence_score}),(0,t.jsx)("td",{children:e.page_num})]})})]})})},{key:"5",label:"Conditions",children:(0,t.jsx)(s.A,{title:"Conditions",children:(0,t.jsxs)("table",{children:[(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{style:{paddingRight:20},children:(0,t.jsx)("b",{children:"Condition"})}),(0,t.jsx)("td",{style:{paddingRight:20},children:(0,t.jsx)("b",{children:"Confidence"})}),(0,t.jsx)("td",{style:{paddingRight:20},children:(0,t.jsx)("b",{children:"Page Source"})})]}),D?.entities?.map(e=>{if(e.type.includes("Condition"))return(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:e.entity}),(0,t.jsx)("td",{children:e.confidence_score}),(0,t.jsx)("td",{children:e.page_num})]})})]})})},{key:"6",label:"Providers",children:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(s.A,{title:"Provider(s)",children:(0,t.jsxs)(a.A,{gutter:[32,32],children:[(0,t.jsx)(c.A,{children:(0,t.jsx)(b,{label:"Organization",val:D?.provider?.name})}),(0,t.jsx)(c.A,{children:(0,t.jsx)(b,{label:"Address",val:D?.provider?.address})}),(0,t.jsx)(c.A,{children:(0,t.jsx)(b,{label:"Phone",val:D?.provider?.phone})}),(0,t.jsx)(c.A,{children:(0,t.jsx)(b,{label:"Fax",val:D?.provider?.fax})}),(0,t.jsx)(c.A,{children:(0,t.jsx)(b,{label:"Referring Physician",val:D?.provider?.referring_physician})})]})})})},{key:"6.5",label:"Risk Profile",disabled:!0},{key:"7",label:"Labs",disabled:!0},{key:"8",label:"Imaging",disabled:!0}],$=async()=>{let e=P[0],l=new FileReader;
1l.readAsDataURL(e.originFileObj),l.onload=async()=>{let r=l.result;(await fetch("/api/s3",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({file:r,filename:e.name})})).ok?(message.success("Upload successful"),w([])):message.error("Upload failed")}};return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{children:[(0,t.jsx)("br",{}),(0,t.jsxs)(a.A,{gutter:[64,64],children:[(0,t.jsxs)(c.A,{lg:8,md:8,xs:24,children:[(0,t.jsxs)(s.A,{children:[(0,t.jsx)("h3",{children:"Patient Information"}),(0,t.jsx)(o.A,{...{onRemove:()=>{S(null),N(null),R({})},onChange:({fileList:l})=>{w(l),r(!0),C(!0),setTimeout(()=>{let l=e.filter(e=>"Outpatient Physical Therapy"===e.title);R(f.ns),setTimeout(()=>{S(l[0]),N(l[0].title),C(!1)},8e3),r(!1)},8e3)},customRequest:({file:e,onSuccess:l,onError:r})=>{setTimeout(()=>{l("ok")},5e3)},fileList:P,accept:".pdf"},children:(0,t.jsx)(h.Ay,{icon:(0,t.jsx)(m.A,{}),children:"Select PDF"})}),(0,t.jsx)(h.Ay,{type:"primary",loading:l,onClick:$,disabled:0===P.length,style:{marginTop:16},children:"Start Upload"}),(0,t.jsx)("br",{})]}),(0,t.jsx)("br",{}),(0,t.jsx)("br",{}),(0,t.jsxs)(s.A,{lg:16,md:16,xs:24,children:[(0,t.jsx)("h3",{children:"Select a policy"}),(0,t.jsx)(n.A,{showSearch:!0,value:k,disabled:l,style:{width:"100%"},placeholder:"Select a policy",size:"large",optionFilterProp:"children",onChange:e=>{let l=JSON.parse(e);console.log(l),N(l.title),S(l)},children:e.map(e=>(0,t.jsxs)(v,{value:JSON.stringify(e),children:[e.title," ",e.id]},Math.random()))}),(0,t.jsx)("br",{}),(0,t.jsx)("br",{}),(0,t.jsx)(y.A,{doc:_})]}),(0,t.jsx)("br",{}),(0,t.jsx)("br",{}),(0,t.jsx)(s.A,{children:(0,t.jsx)(h.Ay,{loading:T,onClick:()=>{E(!0),setTimeout(()=>{E(!1),F(f.dg[0])},5e3)},disabled:0===P.length,type:"primary",children:"Auto-Adjudicate"})})]}),(0,t.jsxs)(c.A,{lg:16,md:16,xs:24,children:[I?.summary&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.A,{children:(0,t.jsx)(c.A,{children:(0,t.jsxs)(s.A,{children:[(0,t.jsx)("div",{children:(0,t.jsxs)("h5",{children:[(0,t.jsx)(A.A,{})," ",I.determination]})}),(0,t.jsx)(x.A,{}),(0,t.jsxs)(a.A,{gutter:[32,32],children:[(0,t.jsx)(c.A,{children:(0,t.jsx)(b,{label:"Referring Physician NPI",val:D?.provider?.referring_physician})}),(0,t.jsx)(c.A,{children:(0,t.jsx)(b,{label:"Coverage Verification",val:(0,t.jsx)(j.A,{color:"red",children:"Unverified"})})}),(0,t.jsx)(c.A,{children:(0,t.jsx)(b,{label:"Medical Necessity",val:(0,t.jsx)(j.A,{color:"green",children:"Verified"})})}),(0,t.jsx)(c.A,{children:(0,t.jsx)(b,{label:"Next Best Action",val:"PT Follow Up"})}),(0,t.jsx)(c.A,{children:(0,t.jsx)(b,{label:"Date Received",val:`${new Date().getMonth()+1}`.padStart(2,"0")+"-"+`${new Date().getDate()}`.padStart(2,"0")+"-"+new Date().getFullYear()})})]}),(0,t.jsx)(x.A,{}),(0,t.jsx)("b",{children:"Summary: "}),I?.summary,(0,t.jsx)(x.A,{}),(0,t.jsx)(u.A,{showLine:!0,style:{background:"none"},showIcon:!1,autoExpandParent:!0,defaultExpandAll:!0,treeData:L})]})})}),(0,t.jsx)("br",{})]}),D?.summary&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(p.A,{size:"small",defaultActiveKey:"0.5",items:U})}),(0,t.jsx)(x.A,{}),_?.title&&(0,t.jsx)("h2",{children:"Medical Policy Information"}),(0,t.jsx)("h5",{children:_?.title}),(0,t.jsx)("br",{}),(0,t.jsx)(u.A,{showLine:!0,style:{background:"none"},showIcon:!1,autoExpandParent:!0,defaultExpandAll:!0,treeData:L})]})]})]})})})}},e=>{e.O(0,[1650,3407,5009,5966,3360,4098,5206,636,6593,8792],()=>e(e.s=47043)),_N_E=e.O()}]);
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.