TEA list reads the step and EEG result; CaCu's Trazabilidad has ten panels
This commit is contained in:
+1
-1
@@ -60,7 +60,7 @@ test("indicators: the KPIs are the API's MeasureReports, every tab and the patie
|
|||||||
await expect(page.locator('app-tab-indicadores app-readings').first()).toBeVisible();
|
await expect(page.locator('app-tab-indicadores app-readings').first()).toBeVisible();
|
||||||
|
|
||||||
await page.getByRole('tab', { name: 'Trazabilidad' }).click();
|
await page.getByRole('tab', { name: 'Trazabilidad' }).click();
|
||||||
await expect(page.locator('app-tab-trazabilidad section.panel')).toHaveCount(9);
|
await expect(page.locator('app-tab-trazabilidad section.panel')).toHaveCount(10);
|
||||||
|
|
||||||
await page.getByRole('tab', { name: 'Datos y definiciones' }).click();
|
await page.getByRole('tab', { name: 'Datos y definiciones' }).click();
|
||||||
await expect(page.locator('app-tab-definiciones details')).toHaveCount(21);
|
await expect(page.locator('app-tab-definiciones details')).toHaveCount(21);
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import type { Figure } from './plot';
|
|||||||
/** The EEG metrics (models.tea.eeg.biomarkers.CODES), as the pages name them. */
|
/** The EEG metrics (models.tea.eeg.biomarkers.CODES), as the pages name them. */
|
||||||
export const METRIC_NAMES: Record<string, string> = {
|
export const METRIC_NAMES: Record<string, string> = {
|
||||||
posterior_rhythm: 'Ritmo posterior (Hz)',
|
posterior_rhythm: 'Ritmo posterior (Hz)',
|
||||||
|
spindles: 'Husos de sueño NREM (por min)',
|
||||||
spindles_n2: 'Husos de sueño N2 (por min)',
|
spindles_n2: 'Husos de sueño N2 (por min)',
|
||||||
spindles_n3: 'Husos de sueño N3 (por min)',
|
spindles_n3: 'Husos de sueño N3 (por min)',
|
||||||
paroxysmal_spikes: 'Picos paroxísticos (por min)',
|
paroxysmal_spikes: 'Picos paroxísticos (por min)',
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ export const LABELS: Record<string, string> = {
|
|||||||
mchat_only: 'Solo M-CHAT',
|
mchat_only: 'Solo M-CHAT',
|
||||||
psychology: 'Psicología (ADOS-2)',
|
psychology: 'Psicología (ADOS-2)',
|
||||||
neuropediatrics: 'Neuropediatría',
|
neuropediatrics: 'Neuropediatría',
|
||||||
|
neurology: 'Neurología',
|
||||||
eeg: 'EEG',
|
eeg: 'EEG',
|
||||||
good: 'Bueno',
|
good: 'Bueno',
|
||||||
bad: 'Malo',
|
bad: 'Malo',
|
||||||
|
|||||||
@@ -125,7 +125,7 @@
|
|||||||
<th>Paciente</th>
|
<th>Paciente</th>
|
||||||
<th>Grupo de edad</th>
|
<th>Grupo de edad</th>
|
||||||
<th>Estado del caso</th>
|
<th>Estado del caso</th>
|
||||||
<th>Último EEG</th>
|
<th>Paso</th>
|
||||||
<th class="num">Puntaje M-CHAT</th>
|
<th class="num">Puntaje M-CHAT</th>
|
||||||
<th class="num">CSS ADOS-2</th>
|
<th class="num">CSS ADOS-2</th>
|
||||||
<th>Estatus de EEG</th>
|
<th>Estatus de EEG</th>
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>{{ r.ageGroup ? ageLabel(r.ageGroup) : 'Sin dato' }}</td>
|
<td>{{ r.ageGroup ? ageLabel(r.ageGroup) : 'Sin dato' }}</td>
|
||||||
<td>{{ cases[r.case] ?? r.case }}</td>
|
<td>{{ cases[r.case] ?? r.case }}</td>
|
||||||
<td>{{ r.lastEeg ?? '—' }}</td>
|
<td>{{ label(r.step) }}</td>
|
||||||
<td class="num">{{ r.mchat ?? '—' }}</td>
|
<td class="num">{{ r.mchat ?? '—' }}</td>
|
||||||
<td class="num">{{ r.css ?? '—' }}</td>
|
<td class="num">{{ r.css ?? '—' }}</td>
|
||||||
<td>{{ eegStatuses[r.eegStatus] ?? r.eegStatus }}</td>
|
<td>{{ eegStatuses[r.eegStatus] ?? r.eegStatus }}</td>
|
||||||
|
|||||||
@@ -21,9 +21,10 @@ export interface TeaRow {
|
|||||||
ageGroup: string;
|
ageGroup: string;
|
||||||
case: string;
|
case: string;
|
||||||
status: string;
|
status: string;
|
||||||
|
/** the last step she reached by the cut-off (tea-step) */
|
||||||
|
step: string;
|
||||||
eegStatus: string;
|
eegStatus: string;
|
||||||
alterations: string[];
|
alterations: string[];
|
||||||
lastEeg?: string;
|
|
||||||
mchat?: number;
|
mchat?: number;
|
||||||
css?: number;
|
css?: number;
|
||||||
}
|
}
|
||||||
@@ -38,10 +39,10 @@ export function teaRow(p: Patient): TeaRow {
|
|||||||
ageGroup: has(p, 'tea-age-group')[0]?.valueString ?? '',
|
ageGroup: has(p, 'tea-age-group')[0]?.valueString ?? '',
|
||||||
case: coded('tea-case'),
|
case: coded('tea-case'),
|
||||||
status: coded('follow-up-status'),
|
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 ?? ''),
|
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]?.valueDecimal,
|
||||||
mchat: has(p, 'mchat-score')[0]?.valueInteger,
|
|
||||||
css: has(p, 'ados2-css')[0]?.valueInteger,
|
css: has(p, 'ados2-css')[0]?.valueInteger,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -62,13 +63,14 @@ const EEG_STATUS: Record<string, string> = {
|
|||||||
normal: 'Normal',
|
normal: 'Normal',
|
||||||
abnormal: 'Anormal',
|
abnormal: 'Anormal',
|
||||||
no_valid_eeg: 'Sin EEG válido',
|
no_valid_eeg: 'Sin EEG válido',
|
||||||
|
not_scored: 'Sin analizar',
|
||||||
};
|
};
|
||||||
const CASE: Record<string, string> = {
|
const CASE: Record<string, string> = {
|
||||||
confirmed: 'Diagnóstico confirmado',
|
confirmed: 'Diagnóstico confirmado',
|
||||||
in_process: 'En proceso',
|
in_process: 'En proceso',
|
||||||
not_confirmed: 'Sin TEA',
|
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) => {
|
export const alteration = (a: string) => {
|
||||||
const [metric, side] = a.split(':');
|
const [metric, side] = a.split(':');
|
||||||
const shown = (METRIC_NAMES[metric] ?? metric).replace(/ \(.*\)$/, '');
|
const shown = (METRIC_NAMES[metric] ?? metric).replace(/ \(.*\)$/, '');
|
||||||
|
|||||||
Reference in New Issue
Block a user