1import{d as te,i as b,j as y,y as se,c as n,e as t,k as U,b as v,w as p,u as l,g as u,t as o,a as ne,F as _,f as r,h as w,I as j,q as oe,p as ie,o as s}from"./index-phbp4HFs.js";import{B as ae,_ as de}from"./SignupForm.vue_vue_type_style_index_0_scoped_cfb7eaf2_lang-CT9EJUtl.js";import{C as G}from"./Card-DKDtiJYz.js";import{S as O}from"./Stack-C4UJq8xW.js";import{A as le}from"./Alert-Bp7Yp4yU.js";import{B as E}from"./Badge-C_sag39_.js";import{S as k}from"./Skeleton-BENcR4iL.js";import{f as re,h as ce}from"./va-data.service-CdZfHkfi.js";import{a as ue}from"./secondary.service-D1qahuyy.js";import"./api-Dp2lHg1N.js";const ve={class:"condition-detail"},me={key:1,class:"loading-container"},he={key:3,class:"condition-container"},ye={class:"detail-header"},ge={class:"detail-title"},pe={class:"detail-header-meta"},_e={key:0,class:"detail-rating"},fe={class:"detail-section"},be={class:"section-content"},we={key:0},ke={key:1},Ce={key:0,class:"detail-section"},De={class:"section-content"},xe={key:1,class:"detail-section"},Se={class:"section-content"},Te={class:"detail-section"},Ve={class:"section-content"},Be={class:"warning-box"},Re={class:"box-content"},Ae={key:0},Ie={key:0,class:"evidence-section"},Ne={class:"evidence-list"},Ee={key:1,class:"evidence-section"},Fe={class:"info-box"},Le={class:"box-content"},Me={key:2,class:"detail-section"},qe={class:"action-cards"},We={class:"action-card__header"},ze={class:"action-card__title"},He={class:"action-card__desc"},Ye={key:0,class:"action-card__timeframe"},Pe={class:"detail-section"},Ue={class:"section-content"},je={class:"success-box"},Ge={class:"box-content"},Oe={key:0},$e={key:0},Ze={key:0,class:"detail-section"},Je={class:"section-title"},Ke={class:"detail-section"},Qe={class:"section-content"},Xe={class:"section-intro"},et={key:0,class:"secondary-loading"},tt={key:1,class:"secondary-grid"},st={class:"secondary-card__header"},nt={class:"secondary-card__name"},ot={class:"secondary-card__reason"},it={key:0,class:"secondary-card__evidence"},at={class:"section-note"},dt={class:"secondary-grid"},lt={class:"secondary-card__header"},rt={class:"secondary-card__name"},ct={class:"secondary-card__reason"},ut={class:"secondary-card__source"},vt={key:0,class:"secondary-card__evidence"},mt={key:3,class:"section-note"},ht={class:"info-box info-box--large"},yt={class:"box-content"},gt=te({__name:"VAConditionDetail",setup(pt){const F=oe(),$=ie(),Z=b(null),L=b([]),S=b([]),T=b(!0),V=b(!1),C=b(null),B=y(()=>F.params.claimId),R=y(()=>decodeURIComponent(F.params.conditionName));se(async()=>{await J()});const J=async()=>{T.value=!0,C.value=null;try{const[a,e]=await Promise.all([re(B.value),ce(B.value)]);Z.value=a,L.value=e,await K(e)}catch(a){C.value=a instanceof Error?a.message:"Failed to load condition details"}finally{T.value=!1}},K=async a=>{var f;const e=a.find(c=>{var D,x;return(x=(D=c.parsedData)==null?void 0:D.conditions)==null?void 0:x.length});if(!((f=e==null?void 0:e.parsedData)!=null&&f.conditions))return;const m=e.parsedData.conditions.filter(c=>["granted","increased","continued"].includes(c.status)).map(c=>({name:c.name,status:"granted",rating:c.rating,diagnosticCode:c.diagnosticCode}));if(m.length!==0){V.value=!0;try{const c=await ue(m);S.value=c}catch(c){console.error("Failed to load secondary recommendations:",c)}finally{V.value=!1}}},A=y(()=>L.value.find(a=>{var e,m;return(m=(e=a.parsedData)==null?void 0:e.conditions)==null?void 0:m.length})),d=y(()=>{var e,m;return(((m=(e=A.value)==null?void 0:e.parsedData)==null?void 0:m.conditions)||[]).find(f=>f.name.toLowerCase()===R.value.toLowerCase())}),Q=y(()=>{var a,e;return((e=(a=A.value)==null?void 0:a.parsedData)==null?void 0:e.denialReasons)||[]}),M=y(()=>{var a,e;return(e=(a=A.value)==null?void 0:a.parsedData)==null?void 0:e.decisionDate}),h=y(()=>Q.value.find(a=>a.condition.toLowerCase()===R.value.toLowerCase())),X=y(()=>d.value?["granted","increased","continued"].includes(d.value.status):!1),q=y(()=>d.value?S.value.filter(a=>{var e;return(e=a.sourceDetail)==null?void 0:e.toLowerCase().includes(R.value.toLowerCase())}):[]),W=y(()=>S.value),ee=a=>a?new Date(a).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):"N/A",z=()=>{$.push(`/app/va-claims/${B.value}`)},H=a=>{switch(a){case"high":return"success";case"medium":return"warning";default:return"default"}};return(a,e)=>{var m,f,c,D,x,Y,P;return s(),n("div",ve,[t("button",{class:"back-link",onClick:z}," â Back to Claim Overview "),C.value?(s(),U(l(le),{key:0,variant:"destructive",dismissible:"",onDismiss:e[0]||(e[0]=i=>C.value=null)},{default:p(()=>[r(o(C.value),1)]),_:1})):v("",!0),T.value?(s(),n("div",me,[u(l(G),{padding:"lg"},{default:p(()=>[u(l(O),{gap:"md"},{default:p(()=>[u(l(k),{width:"60%",height:"2.5rem"}),u(l(k),{width:"30%",height:"1.5rem"}),u(l(k),{width:"100%",height:"8rem"})]),_:1})]),_:1})])):d.value?(s(),n("div",he,[t("div",ye,[t("h1",ge,o(d.value.name),1),t("div",pe,[t("span",{class:ne(["condition-badge",X.value?"granted":"denied"])},o(d.value.status.toUpperCase()),3),d.value.rating&&d.value.rating>0?(s(),n("span",_e,o(d.value.rating)+"% ",1)):v("",!0)])]),d.value.status==="denied"?(s(),n(_,{key:0}
1,[t("div",fe,[e[5]||(e[5]=t("h2",{class:"section-title"},"VA's Decision",-1)),t("div",be,[e[4]||(e[4]=t("p",null,[t("strong",null,"Service connection was not established.")],-1)),(m=h.value)!=null&&m.reason?(s(),n("p",we,o(h.value.reason),1)):(s(),n("p",ke," The VA determined there is insufficient evidence to establish service connection for this condition. "))])]),(f=h.value)!=null&&f.whatThisMeans?(s(),n("div",Ce,[e[6]||(e[6]=t("h2",{class:"section-title"},"What This Means",-1)),t("div",De,[t("p",null,o(h.value.whatThisMeans),1)])])):v("",!0),(c=h.value)!=null&&c.whyDenied?(s(),n("div",xe,[e[7]||(e[7]=t("h2",{class:"section-title"},"Why It Was Denied",-1)),t("div",Se,[t("p",null,o(h.value.whyDenied),1)])])):v("",!0),t("div",Te,[e[15]||(e[15]=t("h2",{class:"section-title"},"Suggested Next Steps",-1)),t("div",Ve,[t("div",Be,[e[11]||(e[11]=t("div",{class:"warning-box-title"},"â° Time Sensitive",-1)),t("div",Re,[e[8]||(e[8]=r(" You have ",-1)),e[9]||(e[9]=t("strong",null,"1 year from your decision date",-1)),M.value?(s(),n("span",Ae," (until "+o(ee(new Date(new Date(M.value).getTime()+365*24*60*60*1e3).toISOString()))+")",1)):v("",!0),e[10]||(e[10]=r(" to file a Supplemental Claim with new evidence and maintain your original effective date. This means you could receive back pay from your original claim date. ",-1))])]),(x=(D=h.value)==null?void 0:D.suggestedEvidence)!=null&&x.length?(s(),n("div",Ie,[e[12]||(e[12]=t("h3",null,"Evidence That Could Help",-1)),t("ul",Ne,[(s(!0),n(_,null,w(h.value.suggestedEvidence,(i,g)=>(s(),n("li",{key:g},[t("strong",null,o(i.split(":")[0])+":",1),r(" "+o(i.includes(":")?i.split(":").slice(1).join(":"):i),1)]))),128))])])):(s(),n("div",Ee,[...e[13]||(e[13]=[j('<h3 data-v-ccd2ba48>Evidence That Could Help</h3><ul class="evidence-list" data-v-ccd2ba48><li data-v-ccd2ba48><strong data-v-ccd2ba48>Buddy statements</strong> from fellow service members who observed your symptoms during service</li><li data-v-ccd2ba48><strong data-v-ccd2ba48>Personal statements</strong> describing when symptoms began and how they've continued</li><li data-v-ccd2ba48><strong data-v-ccd2ba48>Medical nexus letter</strong> from a doctor explaining how service could have caused this condition</li><li data-v-ccd2ba48><strong data-v-ccd2ba48>Service personnel records</strong> showing medical visits or reduced performance that might indicate symptoms</li><li data-v-ccd2ba48><strong data-v-ccd2ba48>Post-service medical records</strong> showing continuous treatment since separation</li></ul>',2)])])),t("div",Fe,[e[14]||(e[14]=t("div",{class:"info-box-title"},"ð¡ Consider Secondary Connection",-1)),t("div",Le," If you have other service-connected conditions, "+o(d.value.name)+" might be secondary to those conditions. For example, many conditions can cause or worsen related symptoms. Talk to your doctor about potential connections. ",1)])])]),(P=(Y=h.value)==null?void 0:Y.actionItems)!=null&&P.length?(s(),n("div",Me,[e[16]||(e[16]=t("h2",{class:"section-title"},"Recommended Actions",-1)),t("div",qe,[(s(!0),n(_,null,w(h.value.actionItems,(i,g)=>(s(),n("div",{key:g,class:"action-card"},[t("div",We,[t("span",ze,o(i.title),1),u(l(E),{variant:i.priority==="high"?"destructive":i.priority==="medium"?"warning":"default",size:"sm"},{default:p(()=>[r(o(i.priority)+" priority ",1)]),_:2},1032,["variant"])]),t("p",He,o(i.description),1),i.timeframe?(s(),n("span",Ye,o(i.timeframe),1)):v("",!0)]))),128))])])):v("",!0)],64)):(s(),n(_,{key:1},[t("div",Pe,[e[20]||(e[20]=t("h2",{class:"section-title"},"VA's Decision",-1)),t("div",Ue,[t("div",je,[e[18]||(e[18]=t("div",{class:"success-box-title"},"â Service Connection Granted",-1)),t("div",Ge,[r(" Your "+o(d.value.name)+" has been found to be service-connected ",1),d.value.rating?(s(),n("span",Oe," at a "+o(d.value.rating)+"% disability rating",1)):v("",!0),e[17]||(e[17]=r(". ",-1))])]),t("p",null,[e[19]||(e[19]=r(" The VA found sufficient evidence that this condition is related to your military service. ",-1)),d.value.diagnosticCode?(s(),n("span",$e," This condition is evaluated under diagnostic code "+o(d.value.diagnosticCode)+". ",1)):v("",!0)])])]),d.value.rating?(s(),n("div",Ze,[t("h2",Je,"What Your "+o(d.value.rating)+"% Rating Means",1),e[21]||(e[21]=j('<div class="section-content" data-v-ccd2ba48><p data-v-ccd2ba48>This rating reflects your current symptom severity under VA criteria.</p><div class="info-box" data-v-ccd2ba48><div class="info-box-title" data-v-ccd2ba48>ð° Could Your Rating Be Higher?</div><div class="box-content" data-v-ccd2ba48><p data-v-ccd2ba48>If your symptoms have worsened since your rating, you may qualify for an increased rating.</p><p data-v-ccd2ba48>Common reasons to file for an increase:</p><ul data-v-ccd2ba48><li data-v-ccd2ba48>Symptoms have become more frequent or severe</li><li data-v-ccd2ba48>Condition now requires more medication or treatment</li><li data-v-ccd2ba48>Daily activities are more affected than before</li><li data-v-ccd2ba48>New symptoms have developed</li></ul><p data-v-ccd2ba48>If this describes your situation, consider filing a claim for an increase.</p></div></div></div>',1))])):v("",!0),t("div",Ke,[e[31]||(e[31]=t("h2",{class:"section-title"},"Related Conditions to Consider",-1)),t("div",Qe,[t("p",Xe," Veterans with "+o(d.value.name)+` often develop related conditions that may al
1so qualify for service connection. These are called "secondary conditions" because they're caused or worsened by your service-connected condition. `,1),V.value?(s(),n("div",et,[u(l(k),{width:"100%",height:"6rem"}),u(l(k),{width:"100%",height:"6rem"}),u(l(k),{width:"100%",height:"6rem"})])):q.value.length>0?(s(),n("div",tt,[(s(!0),n(_,null,w(q.value,i=>{var g;return s(),n("div",{key:i.condition,class:"secondary-card"},[t("div",st,[t("span",nt,o(i.condition),1),u(l(E),{variant:H(i.strength),size:"sm"},{default:p(()=>[r(o(i.strength)+" likelihood ",1)]),_:2},1032,["variant"])]),t("p",ot,o(i.reason),1),(g=i.evidence)!=null&&g.length?(s(),n("div",it,[e[22]||(e[22]=t("strong",null,"Evidence needed:",-1)),t("ul",null,[(s(!0),n(_,null,w(i.evidence,(I,N)=>(s(),n("li",{key:N},o(I),1))),128))])])):v("",!0)])}),128))])):W.value.length>0?(s(),n(_,{key:2},[t("p",at," While we don't have specific secondary recommendations for "+o(d.value.name)+", here are potential secondary conditions based on all your service-connected conditions: ",1),t("div",dt,[(s(!0),n(_,null,w(W.value,i=>{var g;return s(),n("div",{key:i.condition,class:"secondary-card"},[t("div",lt,[t("span",rt,o(i.condition),1),u(l(E),{variant:H(i.strength),size:"sm"},{default:p(()=>[r(o(i.strength)+" likelihood ",1)]),_:2},1032,["variant"])]),t("p",ct,o(i.reason),1),t("p",ut,[e[23]||(e[23]=t("strong",null,"Based on:",-1)),r(" "+o(i.sourceDetail),1)]),(g=i.evidence)!=null&&g.length?(s(),n("div",vt,[e[24]||(e[24]=t("strong",null,"Evidence needed:",-1)),t("ul",null,[(s(!0),n(_,null,w(i.evidence,(I,N)=>(s(),n("li",{key:N},o(I),1))),128))])])):v("",!0)])}),128))])],64)):(s(),n("p",mt," No specific secondary condition recommendations are available at this time. Consider speaking with your healthcare provider about any conditions that may be related to "+o(d.value.name)+". ",1)),t("div",ht,[e[30]||(e[30]=t("div",{class:"info-box-title"},"ð How to Claim Secondary Conditions",-1)),t("div",yt,[e[28]||(e[28]=t("p",null,"To establish a secondary service connection, you need:",-1)),t("ol",null,[e[26]||(e[26]=t("li",null,[t("strong",null,"Current diagnosis"),r(" of the secondary condition")],-1)),t("li",null,[e[25]||(e[25]=t("strong",null,"Medical nexus letter",-1)),r(" from a doctor explaining how your service-connected "+o(d.value.name)+" caused or worsened the secondary condition",1)]),e[27]||(e[27]=t("li",null,[t("strong",null,"Medical records"),r(" documenting both conditions")],-1))]),e[29]||(e[29]=t("p",null,'File your claim using VA Form 21-526EZ, selecting "secondary" as the claim type.',-1))])])])])],64))])):(s(),U(l(G),{key:2,padding:"lg",class:"not-found"},{default:p(()=>[u(l(O),{gap:"md",class:"not-found__content"},{default:p(()=>[e[2]||(e[2]=t("h2",null,"Condition Not Found",-1)),e[3]||(e[3]=t("p",null,"This condition could not be found in the claim decision.",-1)),u(l(ae),{onClick:z},{default:p(()=>[...e[1]||(e[1]=[r("Back to Claim",-1)])]),_:1})]),_:1})]),_:1}))])}}}),Vt=de(gt,[["__scopeId","data-v-ccd2ba48"]]);export{Vt 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.