🎯 Restan 5

Aviso Importante

AlzhCheck es una herramienta de orientación y screening cognitivo para detectar posibles indicios de deterioro cognitivo.

Los resultados no constituyen un diagnóstico médico y no reemplazan la valoración de un profesional de la salud.

⚠️ Si los resultados sugieren deterioro, consulte a un neurólogo o neuropsicólogo para evaluación completa.
🧠

Evaluación cognitiva integral para detección temprana de Alzheimer y demencia

🄋 5 evaluaciones disponibles · Ver planes
🛡️ Herramienta de screening clínico orientativo — No diagnóstico médico
Flujo:

Módulos incluidos

Evaluación
1/1
Resultado del Paciente
Evaluación cognitiva completada
Informe Final AlzhCheck
Evaluación integral completada
html+='
📊 Detalle '+t.res_detail_hint+'
'; breakdown.forEach(b=>{const p=Math.min(100,Math.round((b.score/b.max)*100));const c=p>=75?'var(--green)':p>=50?'var(--orange)':'var(--red)';html+='
'+b.name+'
'+b.score+'/'+b.max+'
';}); html+='
'; html+='
😔 BDI
'+bdt+'
'+bdiScore+'/15
'+(bdiScore>4?'

'+t.bdi_warning+'

':'')+'
'; html+='
'+t.partial_next_title+'

'+t.partial_next_desc+'

'; html+=''; const pt=document.getElementById('partial-title');const ps=document.getElementById('partial-sub'); if(pt)pt.textContent=t.partial_title;if(ps)ps.textContent=t.partial_sub; document.getElementById('partial-body').innerHTML=html;showScreen('screen-partial'); } function skipAD8(){APP.scores.ad8=0;showFinalResults();} // ═══ FINAL RESULTS ═══ function showFinalResults(){ const s=APP.scores;const t=T[APP.lang]; const age=APP.profile.age||65; const edu=APP.profile.education!=null?APP.profile.education:3; const mobility=APP.profile.mobility!=null?APP.profile.mobility:1; const economy=APP.profile.economy!=null?APP.profile.economy:2; const country=APP.profile.country||'PE'; // ── RAW cognitive score ── const cogRaw=Math.min(100,Math.round(((s.mmse||0)+(s.reloj||0)+(s.fluencia||0))/44*100)); // ── AGE adjustment (reduced weight) ── const ageAdj=age<45?0:age<55?-1:age<65?-2:age<75?-3:age<85?-4:-5; // ── MOBILITY adjustment (combined with age for acceleration) ── // mobilityBase: [+2,+1,-2,-4,-6] by mobility level const mobilityBase=[2,1,-2,-4,-6][mobility]||0; // Age acceleration: older + limited mobility = worse const ageAccel=age>=75?1.5:age>=65?1.2:1.0; const mobilityAdj=mobilityBase<0?Math.round(mobilityBase*ageAccel):mobilityBase; // ── EDUCATION adjustment ── // edu index: 0=none,1=primary,2=secondary,3=technical,4=university,5=postgrad const eduAdj=[-5,-3,-1,0,3,5][edu]||0; // ── ECONOMY adjustment ── // 0=hardship,1=tight,2=sufficient,3=comfortable const econAdj=[-4,-2,0,1][economy]||0; // ── COUNTRY adjustment by HDI group ── const HDI_HIGH=new Set(['ES','FR','DE','IT','GB','US','CA','AU','NZ','JP','KR','CH','AT','BE','NL','SE','NO','DK','FI','PT','IE','NZ','SG','HK']); const HDI_LOW=new Set(['HT','NI','HN','BO','VE','SV','GT','PY']); const countryAdj=HDI_HIGH.has(country)?1:HDI_LOW.has(country)?-3:-0; // 0 for medium HDI (PE,MX,CO,AR,BR,CL etc) // ── FINAL adjusted score ── const totalAdj=ageAdj+mobilityAdj+eduAdj+econAdj+countryAdj; const cogPct=Math.min(100,Math.max(0,cogRaw+totalAdj)); // Store for AI prompt context const ageBonus=totalAdj; // kept for generateAI compatibility const eduBonus=0; // AD8 const ad8=s.ad8||0;const ad8Pct=Math.round(((8-ad8)/8)*100); // Social (20% subtle modifier) const socialPct=Math.min(100,Math.round(((s.social||0)/20)*100)); const socialRisk=socialPct<20?'high':socialPct<55?'mod':'low'; // Dual axis const cogAxis=cogPct>=80?'normal':cogPct>=60?'dcl':'dem'; // Final: cognitivo 80% + social 20% (AD8 integrated into cogPct via ad8Pct) const finalPct=Math.min(100,Math.round((cogPct*0.6+ad8Pct*0.2+socialPct*0.2))); let fc;if(finalPct>=75)fc='g';else if(finalPct>=50)fc='o';else fc='r'; const fk={g:'green',o:'orange',r:'red'}[fc]; const mods=getModules(); const cogAxisLabel={normal:t.axis_normal||'Normal',dcl:t.axis_dcl||'Deterioro Cognitivo Leve',dem:t.axis_dem||'Posible Deterioro'}[cogAxis]; const socialAxisLabel={low:t.axis_social_low||'Riesgo Social Bajo',mod:t.axis_social_mod||'Riesgo Social Moderado',high:t.axis_social_high||'Riesgo Social Alto'}[socialRisk]; const axisColors={normal:{bg:'var(--green-bg)',tx:'var(--green-dark)'},dcl:{bg:'#fff3cd',tx:'#856404'},dem:{bg:'#fde8e8',tx:'var(--red)'}}; const socColors={low:{bg:'var(--green-bg)',tx:'var(--green-dark)'},mod:{bg:'#fff3cd',tx:'#856404'},high:{bg:'#fde8e8',tx:'var(--red)'}}; // Combined clinical message (matrix cross-result) const combinedMsg=cogAxis==='normal'&&socialRisk==='high' ?(t.combined_normal_highsoc||'Cognición Normal con Entorno de Alto Riesgo Social. Sin intervención social, la cognición puede deteriorarse.') :cogAxis==='dcl'&&socialRisk==='high' ?(t.combined_dcl_highsoc||'Deterioro Cognitivo Leve en Entorno de Alto Riesgo Social — intervención social urgente recomendada.') :cogAxis==='dcl'&&socialRisk==='mod' ?(t.combined_dcl_modsoc||'Deterioro Cognitivo Leve con Red Social Moderada — fortalecer vínculos sociales.') :cogAxis==='dem' ?(t.combined_dem||'Posible Deterioro Cognitivo — consulte un neurólogo o neuropsicólogo.') :null; let html='
'; html+='
'+finalPct+'%
'; html+='
'+t.final_labels[fk]+'

'+t.final_descs[fk]+'

'; html+='
'; html+='🧠 '+cogAxisLabel+''; html+='🤝 '+socialAxisLabel+''; html+='
'; if(combinedMsg){html+='
⚠️ '+combinedMsg+'
';} if(ageBonus>0||eduBonus>0){html+='

'+(t.norm_note_pre||'Ajustado por')+' '+(ageBonus>0?(t.norm_age||'edad'):'')+(ageBonus>0&&eduBonus>0?' + ':'')+(eduBonus>0?(t.norm_edu||'educación'):'')+'

';} html+='
'; html+='
📊 Resumen '+t.res_detail_hint+'
'; [{name:'MMSE',score:s.mmse||0,max:19,mod:'mmse'},{name:mods.reloj.name,score:s.reloj||0,max:10,mod:'reloj'},{name:mods.fluencia.name,score:s.fluencia||0,max:15,mod:'fluencia'},{name:mods.social.name,score:s.social||0,max:20,mod:'social'},{name:'BDI',score:15-(s.bdi||0),max:15,mod:'bdi'},{name:'AD8',score:8-ad8,max:8,mod:'ad8'}].forEach(b=>{ const p=Math.min(100,Math.round((b.score/b.max)*100));const cl=p>=75?'var(--green)':p>=50?'var(--orange)':'var(--red)'; html+='
'+b.name+'
'+b.score+'/'+b.max+'
'; }); html+='
'; html+='
⚠️ Factores
'; const bdi=s.bdi||0; [{label:'BDI',val:bdi<=4?t.bdi_labels.ok:bdi<=9?t.bdi_labels.mod:t.bdi_labels.sev,c:bdi<=4?'g':bdi<=9?'o':'r'},{label:'Social',val:socialAxisLabel,c:{low:'g',mod:'o',high:'r'}[socialRisk]},{label:'AD8',val:ad8>=2?ad8+' '+t.risk_changes:t.risk_no_changes,c:ad8>=2?'r':'g'}].forEach(r=>{html+='
'+r.label+'
'+r.val+'
';}); html+='
'; html+='
'+t.rec_titles[fk]+'
'+t.rec_texts[fk]+'
'; html+='
'+t.ai_title+'
'+t.ai_loading+'
'; if(APP.isPaid){html+='';} else{html+='
🔒
'+t.pdf_title+'
'+t.pdf_text+'
';} html+=''; html+=''; html+=''; const rt=document.getElementById('res-title');const rs=document.getElementById('res-sub'); if(rt)rt.textContent=t.res_title;if(rs)rs.textContent=t.res_sub; document.getElementById('results-body').innerHTML=html;showScreen('screen-results'); setTimeout(()=>generateAI(finalPct,t.final_labels[fk],s,ad8,bdi,socialPct,totalAdj,0,cogAxisLabel,socialAxisLabel,APP.profile),600); } // ═══ AI ANALYSIS ═══ async function generateAI(pct,label,scores,ad8,bdi,socialPct,totalAdj,eduBonus,cogAxisLabel,socialAxisLabel,profile){ const el=document.getElementById('ai-text');if(!el)return; const t=T[APP.lang]; const langNames={es:'Spanish',en:'English',pt:'Portuguese',fr:'French'}; const aB=ageBonus||0;const eB=eduBonus||0; const prompt='You are a clinical assistant specialized in neurology and geriatrics.\nAnalyze these cognitive screening results and provide an orientative analysis in '+langNames[APP.lang]+', empathetic and professional.\n\nPATIENT: Age '+APP.profile.age+', education '+APP.profile.education+'/5, country '+(APP.profile.country||'unknown')+'\nNormalisation applied: age bonus='+aB+'pts, education bonus='+eB+'pts\n\nRESULTS:\n- Final score: '+pct+'% ('+label+')\n- Cognitive axis: '+(cogAxisLabel||'')+'\n- Social axis: '+(socialAxisLabel||'')+'\n- MMSE: '+scores.mmse+'/19, Clock: '+scores.reloj+'/10, Fluency: '+scores.fluencia+'/15\n- Social risk factors: '+scores.social+'/20, BDI depression: '+bdi+'/15, AD8 caregiver: '+ad8+'/8\n\nProvide in '+langNames[APP.lang]+':\n1. Clinical interpretation considering BOTH cognitive and social axes (2-3 sentences)\n2. Main concerns - if cognition is normal but social risk is high, emphasize the combined risk for future cognitive decline\n3. Specific recommendations based on the combined matrix result\n4. Positive/protective factors\n\nIMPORTANT: Orientative screening only, not a diagnosis. Max 200 words. Plain text, no markdown symbols.'; try{ const resp=await fetch('https://api.anthropic.com/v1/messages',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({model:'claude-sonnet-4-20250514',max_tokens:600,messages:[{role:'user',content:prompt}]})}); const data=await resp.json(); const text=data.content?.[0]?.text||t.ai_error; if(el)el.innerHTML='

'+text.replace(/\n/g,'
')+'

'; }catch(e){if(el)el.innerHTML='

'+t.ai_error+'

';} } // ═══ INIT ═══ (function(){ const detected=window._pendingLang||detectLang(); setLang(detected,null); })();