TEA Indicadores as the old page: the period summary in words, the three timeliness boxes, counts and age-group figures; tab named Resumen

This commit is contained in:
Roberto Treviño
2026-11-28 10:26:24 -06:00
parent 3e096dd03f
commit aeb2d4ec84
7 changed files with 349 additions and 9 deletions
+57 -4
View File
@@ -83,9 +83,60 @@
<p class="state">Sin tiempos publicados en el periodo.</p>
}
}
@case ('tea-summary') {
@if (teaSummary(); as t) {
<mat-card appearance="outlined" class="summary">
<mat-card-content>
<h2 class="box-title">Resumen</h2>
<p>
Al cierre del periodo <mark>{{ period }}</mark>, se evaluaron
<mark>{{ t.evaluated }}</mark> niños entre 16 y 36 meses;
<mark>{{ t.mchatOnly }}</mark> únicamente tienen M-CHAT,
<mark>{{ t.psychology }}</mark> hasta la evaluación psicológica y
<mark>{{ t.neuropediatrics }}</mark> presentan evaluación neuropediátrica. En este
periodo el <mark>{{ t.confirmed }}</mark> de los pacientes tiene diagnóstico
confirmado de TEA (CIE-10 F84.0). Las ventanas de tiempo<sup>*</sup> de tamizaje
son: <mark>{{ t.toAdos }}</mark> de M-CHAT (psicología) a ADOS-2,
<mark>{{ t.toDiagnosis }}</mark> de ADOS-2 a diagnóstico. El tiempo<sup>*</sup> de
tamizaje completo de M-CHAT a diagnóstico fue de <mark>{{ t.whole }}</mark>.
</p>
<p>
De los <mark>{{ t.diagnosed }}</mark> niños con diagnóstico confirmado en este
periodo, <mark>{{ t.eeg }}</mark> presentan estudio de EEG y faltan
<mark>{{ t.missing }}</mark> por realizarlo. <mark>{{ t.unusable }}</mark> estudios
de EEG no son aceptables para un análisis.
</p>
<p class="state">*tomando la mediana de los tiempos</p>
</mat-card-content>
</mat-card>
} @else if (reports.isLoading()) {
<app-loading what="el resumen del periodo" />
}
}
@case ('grid') {
<div class="grid-figures">
@for (f of section.figures; track f.title) {
<mat-card appearance="outlined" class="figure-card" [attr.data-figure]="f.kind">
<mat-card-content>
<h2 class="box-title">{{ f.title }}</h2>
<p class="state">Filtro general aplicado: {{ period }}</p>
@if (reports.isLoading()) {
<app-loading what="la figura" [figure]="true" />
} @else if (figureOf(f); as fig) {
<app-plot [figure]="fig" [height]="320" />
} @else {
<div class="empty-figure">Sin datos publicados</div>
}
</mat-card-content>
</mat-card>
}
</div>
}
@case ('boxes') {
<h3 class="boxes-title">{{ section.title }}</h3>
<div class="box-grid">
@if (section.title) {
<h3 class="boxes-title">{{ section.title }}</h3>
}
<div class="box-grid" [class.standalone]="!section.title">
@for (b of section.cards; track b.title) {
<mat-card
appearance="outlined"
@@ -99,8 +150,10 @@
<div class="empty-figure">Sin datos publicados</div>
} @else {
<p class="state">Filtro general aplicado: {{ period }}</p>
<h2 class="box-subtitle">{{ measureTitle(b.measure) }}</h2>
<p class="state">Figura: Caja de cuartiles</p>
@if (section.subtitles) {
<h2 class="box-subtitle">{{ measureTitle(b.measure) }}</h2>
<p class="state">Figura: Caja de cuartiles</p>
}
@if (reports.isLoading()) {
<app-loading what="la figura" [figure]="true" />
} @else if (boxOf(b.measure); as fig) {