F2b: No evaluable carries the reason ported from the tea library

eeg-labels.ts maps each reason code to its Spanish label: the metric
reasons, the study reasons and one label per window reason. The metric
shows "No evaluable · <label>" in Resultado where it showed a dash, and
only when it has no result; a metric with a result keeps it. The
study's reasons show as a Motivos row in the EEG quality summary.
Unknown codes show as the code. The patient spec covers the mapping and
the reading of both extensions from FHIR.
This commit is contained in:
2026-12-03 13:56:48 -06:00
parent 98eda5bc28
commit cc3f6b3e0d
4 changed files with 114 additions and 7 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ export function recordSections(patient: TeaPatient, norms: ReadonlyMap<string, C
title: `${eeg.date} · ${m.title}`,
fields: [
['z', shown(m.z)],
['Resultado', alteration(m.outside)],
['Resultado', alteration(m.outside, m.reason)],
],
chart: m.sites.length
? { title: 'Mapa de la cabeza', figure: headMap(m.sites) }