mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-19 00:12:18 +00:00
fix(insights): wire grip / pain / waist / waist-to-height across web and MCP
Grip strength, pain (0–10 NRS), waist circumference, and waist-to-height existed in the measurement enum, signal registry, and FHIR export but had no web entry, no detail page, single non-sex-aware bands, and a split-brain MCP exposure. This closes those gaps. Web capture: the four signals join the manual measurement form, so a web-only self-hoster can log them (the iOS client and the measurements API already could). Detail pages: flip detailPage on for the four signals and mount each on the shared HealthKit metric template (chart, stat strip, Coach-read strip, assessment card) via routed sub-pages and tab-strip pills, the same detail spine every other metric carries. Sex-aware bands: grip strength (EWGSOP2 men 27 / women 16 kg) and waist (WHO men 94 / women 80 cm) now classify by the profile sex through the age/sex norm resolver the assessment already threads; the resolver also returns a sex-specific, age-independent band when no date of birth is set. Fix the waist-to-height boundary so the NICE >= 0.5 rule is correct (the last in-range value is 0.49). MCP single source of truth: decouple the registry mcp facet from the Coach snapshot — a signal can be MCP-readable without being on the Coach surface. Mark the four physical signals mcp:true, derive the MCP rich-reads clinical set from the registry flag instead of a duplicate allowlist, and relax the invariant to coachSnapshot implies mcp (not the reverse). PHQ-9 / GAD-7 and the environmental signals stay mcp:false and unreachable. compare_metric and detect_changepoints now advertise clinical-signal support to match get_metric_baseline.
This commit is contained in:
1 parent
4f39058629
commit
a69697b50f
25 files changed
+726
-62
No files matched your search
+51
-1
@@ -582,7 +582,9 @@
|
||||
"typeGripStrength": "Fuerza de agarre",
|
||||
"typePainNrs": "Dolor (0–10)",
|
||||
"typeWaistCircumference": "Perímetro de cintura",
|
||||
"typeWaistToHeight": "Índice cintura-altura"
|
||||
"typeWaistToHeight": "Índice cintura-altura",
|
||||
"unitScore": "pts",
|
||||
"unitRatio": "ratio"
|
||||
},
|
||||
"mood": {
|
||||
"title": "Estado de ánimo",
|
||||
@@ -3705,6 +3707,54 @@
|
||||
"statusBelow": "por debajo del rango",
|
||||
"statusAbove": "por encima del rango",
|
||||
"directionFlat": "sin cambios"
|
||||
},
|
||||
"navGripStrength": "Fuerza de agarre",
|
||||
"navPainNrs": "Dolor",
|
||||
"navWaistCircumference": "Cintura",
|
||||
"navWaistToHeight": "Cintura/altura",
|
||||
"gripStrength": {
|
||||
"title": "Fuerza de agarre",
|
||||
"description": "Fuerza máxima de agarre de la mano: un indicador robusto de la fuerza de todo el cuerpo. Por debajo del umbral según el sexo (hombres 27 kg, mujeres 16 kg) indica probable sarcopenia; tu propia tendencia guía la lectura.",
|
||||
"chartTitle": "Fuerza de agarre",
|
||||
"emptyState": {
|
||||
"title": "Aún no hay fuerza de agarre",
|
||||
"description": "Registra una lectura con un dinamómetro de mano (anota el mejor de varios apretones) y la tendencia aparecerá aquí.",
|
||||
"cta": "Registrar fuerza de agarre"
|
||||
},
|
||||
"coachPrefill": "Aún no he registrado la fuerza de agarre: ¿qué dice sobre mi salud muscular y cómo la mido y la mejoro?"
|
||||
},
|
||||
"pain": {
|
||||
"title": "Dolor (0–10)",
|
||||
"description": "Intensidad del dolor referida por el paciente en la escala numérica 0–10, donde 0 es sin dolor y 10 el peor imaginable. Un cambio sostenido de 2 puntos es la señal a vigilar.",
|
||||
"chartTitle": "Dolor (0–10)",
|
||||
"emptyState": {
|
||||
"title": "Aún no hay puntuaciones de dolor",
|
||||
"description": "Registra cómo sientes el dolor ahora mismo en la escala 0–10 y la tendencia aparecerá aquí.",
|
||||
"cta": "Registrar una puntuación de dolor"
|
||||
},
|
||||
"coachPrefill": "Aún no he registrado puntuaciones de dolor: ¿cómo debo seguir el dolor en la escala 0–10 y qué cuenta como un cambio significativo?"
|
||||
},
|
||||
"waist": {
|
||||
"title": "Perímetro de cintura",
|
||||
"description": "Perímetro de la cintura en centímetros: un marcador de grasa central. El umbral de riesgo aumentado de la OMS depende del sexo (hombres 94 cm, mujeres 80 cm); tu propia tendencia guía la lectura.",
|
||||
"chartTitle": "Perímetro de cintura",
|
||||
"emptyState": {
|
||||
"title": "Aún no hay medidas de cintura",
|
||||
"description": "Mide tu cintura en el punto medio entre la costilla más baja y el hueso de la cadera, al final de una espiración normal, y regístrala aquí.",
|
||||
"cta": "Registrar perímetro de cintura"
|
||||
},
|
||||
"coachPrefill": "Aún no he registrado medidas de cintura: ¿cómo mido la cintura correctamente y qué significa el número para mi salud?"
|
||||
},
|
||||
"waistToHeight": {
|
||||
"title": "Índice cintura-altura",
|
||||
"description": "Tu cintura dividida por tu altura: el número único más robusto entre poblaciones. Mantenerlo por debajo de 0,5 (cintura menor que la mitad de tu altura) es el objetivo sencillo.",
|
||||
"chartTitle": "Índice cintura-altura",
|
||||
"emptyState": {
|
||||
"title": "Aún no hay índice cintura-altura",
|
||||
"description": "Registra un índice cintura-altura y la tendencia aparecerá aquí. Regla práctica: mantén tu cintura por debajo de la mitad de tu altura.",
|
||||
"cta": "Registrar índice cintura-altura"
|
||||
},
|
||||
"coachPrefill": "Aún no he registrado un índice cintura-altura: ¿por qué es un número útil y cómo lo mantengo por debajo de 0,5?"
|
||||
}
|
||||
},
|
||||
"thresholds": {
|
||||
|
||||
Reference in new issue
Block a user