TEA list reads the step and EEG result; CaCu's Trazabilidad has ten panels
This commit is contained in:
@@ -21,9 +21,10 @@ export interface TeaRow {
|
||||
ageGroup: string;
|
||||
case: string;
|
||||
status: string;
|
||||
/** the last step she reached by the cut-off (tea-step) */
|
||||
step: string;
|
||||
eegStatus: string;
|
||||
alterations: string[];
|
||||
lastEeg?: string;
|
||||
mchat?: number;
|
||||
css?: number;
|
||||
}
|
||||
@@ -38,10 +39,10 @@ export function teaRow(p: Patient): TeaRow {
|
||||
ageGroup: has(p, 'tea-age-group')[0]?.valueString ?? '',
|
||||
case: coded('tea-case'),
|
||||
status: coded('follow-up-status'),
|
||||
eegStatus: coded('tea-eeg-status'),
|
||||
step: coded('tea-step'),
|
||||
eegStatus: coded('tea-eeg-result'),
|
||||
alterations: has(p, 'tea-eeg-alteration').map((e) => e.valueCoding?.code ?? ''),
|
||||
lastEeg: has(p, 'tea-last-eeg')[0]?.valueDate,
|
||||
mchat: has(p, 'mchat-score')[0]?.valueInteger,
|
||||
mchat: has(p, 'mchat-score')[0]?.valueDecimal,
|
||||
css: has(p, 'ados2-css')[0]?.valueInteger,
|
||||
};
|
||||
}
|
||||
@@ -62,13 +63,14 @@ const EEG_STATUS: Record<string, string> = {
|
||||
normal: 'Normal',
|
||||
abnormal: 'Anormal',
|
||||
no_valid_eeg: 'Sin EEG válido',
|
||||
not_scored: 'Sin analizar',
|
||||
};
|
||||
const CASE: Record<string, string> = {
|
||||
confirmed: 'Diagnóstico confirmado',
|
||||
in_process: 'En proceso',
|
||||
not_confirmed: 'Sin TEA',
|
||||
};
|
||||
/** `theta_power:above` → "theta_power (aumentado)". */
|
||||
/** An EEG metric outside its age curve (`spindles`), or with its side (`spindles:above`). */
|
||||
export const alteration = (a: string) => {
|
||||
const [metric, side] = a.split(':');
|
||||
const shown = (METRIC_NAMES[metric] ?? metric).replace(/ \(.*\)$/, '');
|
||||
|
||||
Reference in New Issue
Block a user