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:
@@ -43,3 +43,28 @@ export const OUTCOME_NAMES: Record<string, string> = {
|
||||
ados2_item_22: 'Intereses repetitivos o conductas estereotipadas',
|
||||
CSS: 'Puntuación de severidad (CSS)',
|
||||
};
|
||||
|
||||
export const REASON_NAMES: Record<string, string> = {
|
||||
'no-n2': 'sin N2',
|
||||
'no-n3': 'sin N3',
|
||||
'few-wake-windows': 'pocas ventanas en vigilia',
|
||||
'no-dominant-peak': 'sin ritmo dominante',
|
||||
'no-sleep': 'sin sueño',
|
||||
'few-electrodes': 'pocos electrodos',
|
||||
'no-age': 'sin edad',
|
||||
'age-out-of-range': 'edad fuera de la curva',
|
||||
'no-exposure': 'sin minutos de exposición',
|
||||
'invalid-eeg': 'EEG no válido',
|
||||
'few-clean-minutes': 'pocos minutos limpios',
|
||||
'triage-not-analyzable': 'triage no analizable',
|
||||
'invalid-file': 'archivo no válido',
|
||||
gap: 'hueco de grabación',
|
||||
state: 'estado excluido',
|
||||
'mixed-states': 'ventana entre dos estados',
|
||||
muscle: 'músculo',
|
||||
frozen: 'señal congelada',
|
||||
};
|
||||
|
||||
export function reasonLabel(reason: string): string {
|
||||
return REASON_NAMES[reason] ?? reason;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user