TEA record: ADOS-2 by item, EEG quality and its alterations against the age norm; page tests follow the cards' and dialog's words

This commit is contained in:
Roberto Treviño
2026-11-28 13:29:23 -06:00
parent cb0403affb
commit 37444a25a1
6 changed files with 192 additions and 3 deletions
+76
View File
@@ -147,6 +147,82 @@
</mat-card-content>
</mat-card>
@if (domain() === 'tea') {
<mat-card appearance="outlined" class="wide" data-section="tea">
<mat-card-header><mat-card-title>ADOS-2</mat-card-title></mat-card-header>
<mat-card-content>
@if (ados2(); as a) {
<h3>Puntajes por reactivo · {{ a.date }}</h3>
<app-plot [figure]="a.figure" [height]="a.height" />
<p class="totals">
@for (t of a.totals; track t.label) {
<span
>{{ t.label }}: <strong>{{ t.value }}</strong></span
>
}
</p>
} @else {
<p class="muted">Sin evaluación ADOS-2.</p>
}
</mat-card-content>
</mat-card>
<mat-card appearance="outlined" class="wide" data-section="eeg">
<mat-card-header><mat-card-title>EEG</mat-card-title></mat-card-header>
<mat-card-content>
@if (eeg.isLoading()) {
<app-loading what="el EEG" />
} @else if (eeg.value()?.study; as st) {
<h3>Calidad del EEG</h3>
<p>
Estudio del {{ st.study_date }}:
<strong>{{ st.valid ? 'aceptable para el análisis' : 'no aceptable' }}</strong>
@if (st.level) {
({{ st.level }})
}
</p>
<h3>Alteraciones del EEG</h3>
@if (!st.valid) {
<p class="muted">Un EEG no aceptable no se compara con la norma por edad.</p>
} @else if (!scored()) {
<p class="muted">
Ninguna curva por edad vigente ha evaluado este EEG (se promueven en Gobernanza).
</p>
} @else if (alterations().length) {
<table class="plain">
<thead>
<tr>
<th>Métrica</th>
<th>Valor</th>
<th>Norma por edad (P5–P95)</th>
<th>Mediana</th>
<th>Desviación (z)</th>
<th>Detalle</th>
</tr>
</thead>
<tbody>
@for (m of alterations(); track m.code) {
<tr>
<td>{{ m.code }}</td>
<td>{{ m.value | number: '1.0-3' }}</td>
<td>{{ m.p5 | number: '1.0-3' }} – {{ m.p95 | number: '1.0-3' }}</td>
<td>{{ m.median | number: '1.0-3' }}</td>
<td>{{ m.z | number: '1.1-2' }}</td>
<td>{{ m.outside! > 0 ? 'Aumentado' : 'Disminuido' }}</td>
</tr>
}
</tbody>
</table>
} @else {
<p>Sin alteraciones: todas sus métricas están dentro de la norma por edad.</p>
}
} @else {
<p class="muted">Sin EEG analizado.</p>
}
</mat-card-content>
</mat-card>
}
@if (models().some((m) => m.scenarios.length)) {
<mat-card appearance="outlined" class="wide" data-section="supervivencia">
<mat-card-header