1import{u as b,j as e}from"./index-BaB9u2Qy.js";import{a as N}from"./sentry-7igoDwsE.js";import{i as f,j as S,m as g}from"./3c-data-Cal9PjjP.js";import{g as P,j as M,k as I}from"./useRealData-C3GseR8K.js";import"./react-vendor-SZ83MGQJ.js";import"./deck-gl-core-DoxYogL7.js";import"./supabase-DmJIYYE5.js";import"./icons-CGiYqmBm.js";import"./medicare-puf-BJTzrIa1.js";import"./api-cache-BCCSbwvv.js";import"./data-fetch-proxy-DGJiFoZ6.js";import"./grants-gov-D8CcBSiD.js";import"./hrsa-hpsa-D5dFmr97.js";import"./census-acs-BIukWMIt.js";import"./health-data-IK6s2nzY.js";import"./fips-r50L2R4H.js";function W(){const{effectiveTier:h,effectiveFacilityType:o}=b(),{npis:x}=P(),m=x[0],{score:a,loading:j,isRealData:t}=M(m),r=N.useMemo(()=>a?I(a):null,[a]),u=t?a.final_score:f(),n=Math.round(u*10)/10,c=t?a.payment_adjustment:S(),p=42e4,l=Math.round(p*(c/100)),v=n>=75?"var(--success)":n>=50?"var(--warning)":"var(--danger)";return e.jsxs("div",{className:"page mips-page",children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:10,flexWrap:"wrap"},children:[e.jsx("span",{className:"hipaa-badge",style:{background:"rgba(37,99,235,0.08)",color:"var(--primary)",borderColor:"rgba(37,99,235,0.2)"},children:"CMS MIPS"}),t?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"data-quality-badge",style:{background:"rgba(16,185,129,0.1)",color:"#10b981",borderColor:"rgba(16,185,129,0.3)"},children:"CMS QPP Data"}),e.jsxs("span",{style:{fontSize:10,color:"var(--text-muted)"},children:["Performance year: ",a.performance_year," | NPI: ","â¢â¢â¢â¢â¢â¢"+m.slice(-4)]})]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"data-quality-badge sample",children:"Sample Data"}),e.jsx("span",{style:{fontSize:10,color:"var(--text-muted)"},children:j?"Loading QPP data...":"Performance period: 2025 â connect QPP for live scores"})]})]}),o==="hospital"&&e.jsxs("div",{style:{marginBottom:12,padding:"8px 12px",borderRadius:8,background:"rgba(245,158,11,0.06)",border:"1px solid rgba(245,158,11,0.15)",fontSize:12,color:"var(--text-primary)",lineHeight:1.5},children:[e.jsx("strong",{style:{color:"#f59e0b"},children:"Note:"})," Hospitals participate in different CMS quality programs (Hospital VBP, HRRP). MIPS data shown for demonstration."]}),o==="critical_access"&&e.jsxs("div",{style:{marginBottom:12,padding:"8px 12px",borderRadius:8,background:"rgba(245,158,11,0.06)",border:"1px solid rgba(245,158,11,0.15)",fontSize:12,color:"var(--text-primary)",lineHeight:1.5},children:[e.jsx("strong",{style:{color:"#f59e0b"},children:"Note:"})," Critical Access Hospitals report quality through the Medicare Beneficiary Quality Improvement Project (MBQIP), not MIPS. Data shown for reference."]}),(o==="pharmacy"||o==="urgent_care")&&e.jsxs("div",{style:{marginBottom:12,padding:"8px 12px",borderRadius:8,background:"rgba(245,158,11,0.06)",border:"1px solid rgba(245,158,11,0.15)",fontSize:12,color:"var(--text-primary)",lineHeight:1.5},children:[e.jsx("strong",{style:{color:"#f59e0b"},children:"Note:"})," ",o==="pharmacy"?"Pharmacies":"Urgent Care centers"," are not eligible MIPS participants. Data shown for reference only."]}),e.jsxs("div",{className:"mips-top",children:[e.jsxs("div",{className:"mips-composite-card",children:[e.jsx("div",{className:"mips-ring",style:{background:`conic-gradient(${v} ${n*3.6}deg, var(--bg-secondary) ${n*3.6}deg)`},children:e.jsxs("div",{className:"mips-ring-inner",children:[e.jsx("span",{className:"mips-ring-value",children:n.toFixed(1)}),e.jsx("span",{className:"mips-ring-label",children:"/100"})]})}),e.jsx("div",{className:"mips-composite-label",children:"MIPS Composite Score"}),e.jsx("div",{className:"mips-composite-breakdown",children:g.map(s=>e.jsxs("div",{className:"mips-weight-row",children:[e.jsx("span",{children:s.category}),e.jsxs("span",{className:"mono",children:[s.score,"/",s.maxScore," (",s.weight,"%)"]})]},s.category))})]}),e.jsxs("div",{className:"mips-adjustment-card",children:[e.jsx("div",{className:"mips-adj-title",children:"Payment Adjustment Projection"}),e.jsxs("div",{className:`mips-adj-value ${c>=0?"positive":"negative"}`,children:[c>=0?"+":"",c.toFixed(1),"%"]}),e.jsx("div",{className:"mips-adj-subtitle",children:"CY 2028 Medicare Payment Adjustment"}),e.jsxs("div",{className:"mips-adj-dollar",children:[e.jsx("span",{className:"mips-adj-dollar-label",children:"Estimated Impact"}),e.jsxs("span",{className:`mips-adj-dollar-value ${l>=0?"positive":"negative"}`,children:[l>
1=0?"+":"","$",Math.abs(l).toLocaleString()]})]}),e.jsxs("div",{className:"mips-adj-note",children:["Based on $",p.toLocaleString()," annual Medicare revenue"]})]})]}),e.jsx("div",{className:"mips-categories",children:(t?[{category:"Quality",score:a.quality_score,maxScore:100,weight:30,measures:[]},{category:"Promoting Interoperability",score:a.pi_score,maxScore:100,weight:25,measures:[]},{category:"Improvement Activities",score:a.ia_score,maxScore:100,weight:15,measures:[]},{category:"Cost",score:a.cost_score,maxScore:100,weight:30,measures:[]}]:g).map(s=>{const d=s.score>=75?"var(--success)":s.score>=50?"var(--warning)":"var(--danger)";return e.jsxs("div",{className:"mips-category-card",children:[e.jsxs("div",{className:"mips-cat-header",children:[e.jsx("h3",{children:s.category}),e.jsxs("span",{className:"mips-cat-badge",style:{background:d},children:[s.score,"/",s.maxScore]})]}),e.jsxs("div",{className:"mips-cat-weight",children:["Weight: ",s.weight,"%"]}),s.measures.length>0&&e.jsx("div",{className:"mips-measures",children:s.measures.map(i=>{const y=i.score>=75?"var(--success)":i.score>=50?"var(--warning)":"var(--danger)";return e.jsxs("div",{className:"mips-measure-row",children:[e.jsx("span",{className:"mips-measure-name",children:i.name}),e.jsx("div",{className:"mips-measure-bar-outer",children:e.jsx("div",{className:"mips-measure-bar-inner",style:{width:`${i.score}%`,background:y}})}),e.jsx("span",{className:"mips-measure-score mono",children:i.score})]},i.name)})})]},s.category)})}),t&&r&&e.jsxs("div",{className:"billing-card",style:{marginTop:16},children:[e.jsx("h3",{className:"billing-card-title",children:"Risk Assessment & Recommendations"}),e.jsxs("div",{style:{display:"flex",gap:12,marginBottom:12,flexWrap:"wrap"},children:[e.jsxs("span",{style:{padding:"4px 12px",borderRadius:20,fontSize:12,fontWeight:600,background:r.riskLevel==="low"?"rgba(16,185,129,0.1)":r.riskLevel==="medium"?"rgba(245,158,11,0.1)":"rgba(239,68,68,0.1)",color:r.riskLevel==="low"?"#10b981":r.riskLevel==="medium"?"#f59e0b":"#ef4444"},children:[r.riskLevel.toUpperCase()," RISK"]}),e.jsxs("span",{style:{fontSize:12,color:"var(--text-muted)"},children:["vs National Average: ",e.jsx("strong",{children:r.comparedToNational})]})]}),e.jsx("ul",{style:{margin:0,paddingLeft:20,fontSize:13,lineHeight:1.8,color:"var(--text-primary)"},children:r.recommendations.map((s,d)=>e.jsx("li",{children:s},d))})]}),h==="community"&&e.jsxs("div",{className:"mips-upgrade-banner",children:[e.jsx("div",{className:"mips-upgrade-title",children:"Advanced MIPS Analytics"}),e.jsx("div",{className:"mips-upgrade-desc",children:"Upgrade to State or higher for historical trending, peer comparison, and measure-level improvement recommendations."})]})]})}export{W as default};
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.