Trazabilidad, Datos y definiciones and the risk lists as the old app: declared panels, old labels and order; page tests against the capture

This commit is contained in:
Roberto Treviño
2026-11-28 17:24:29 -06:00
parent cbec0d431e
commit 6ea54d6e6d
11 changed files with 654 additions and 120 deletions
+26 -15
View File
@@ -10,7 +10,7 @@
/>
</mat-form-field>
<mat-form-field appearance="outline" subscriptSizing="dynamic">
<mat-label>Ventana</mat-label>
<mat-label>Ventana de meses</mat-label>
<mat-select [value]="window()" (selectionChange)="window.set($event.value)">
@for (m of [1, 3, 6, 12]; track m) {
<mat-option [value]="m">{{ m }} {{ m === 1 ? 'mes' : 'meses' }}</mat-option>
@@ -18,7 +18,7 @@
</mat-select>
</mat-form-field>
<mat-form-field appearance="outline" subscriptSizing="dynamic">
<mat-label>Estatus</mat-label>
<mat-label>Estatus de seguimiento</mat-label>
<mat-select [value]="status()" (selectionChange)="status.set($event.value)">
<mat-option value="">Todos</mat-option>
@for (s of statuses; track s) {
@@ -27,7 +27,7 @@
</mat-select>
</mat-form-field>
<mat-form-field appearance="outline" subscriptSizing="dynamic">
<mat-label>Por página</mat-label>
<mat-label>Registros por página</mat-label>
<mat-select [value]="size()" (selectionChange)="size.set($event.value)">
@for (n of [20, 50, 100]; track n) {
<mat-option [value]="n">{{ n }}</mat-option>
@@ -37,18 +37,28 @@
</form>
@if (error()) {
<p class="muted" role="alert">No se pudo leer la lista de seguimiento.</p>
<p class="muted" role="alert">
No se pudo leer la lista de seguimiento.
<button mat-button type="button" (click)="retry()">Reintentar seguimiento</button>
</p>
} @else if (!page() || loading()) {
<app-loading what="seguimiento" />
} @else if (applied()) {
<p class="muted window">Ventana consultada: {{ start() }} al {{ applied() }}.</p>
}
<div class="table-wrap card">
<table class="plain worklist">
<caption>
Resultados disponibles por paciente
</caption>
<thead>
<tr>
<th>Paciente</th>
<th>Grupo de edad</th>
<th>Mastografía</th>
<th>Biopsia</th>
<th>Estatus</th>
<th>Última mastografía</th>
<th>Última biopsia</th>
<th>Estatus de seguimiento</th>
<th>Prioridad</th>
</tr>
</thead>
@@ -64,12 +74,16 @@
}
</td>
<td>{{ row.ageGroup }}</td>
<td>{{ row.mammogram.date }} · {{ name(row.mammogram.birads ?? '') || 'Sin dato' }}</td>
<td>
{{ name(row.mammogram.birads ?? '') || 'Sin dato' }}
<small>Fecha: {{ row.mammogram.date }}</small>
</td>
<td>
@if (row.biopsy; as b) {
{{ b.date }} · {{ name(b.histology ?? '') || 'Sin resultado' }}
{{ name(b.histology ?? '') || 'Sin resultado' }}
<small>Fecha: {{ b.date }}</small>
} @else {
—
No disponible
}
</td>
<td>{{ name(row.status) }}</td>
@@ -77,9 +91,7 @@
</tr>
} @empty {
<tr>
<td colspan="6" class="muted">
{{ page() ? 'Nadie en la lista con estos filtros.' : 'Cargando…' }}
</td>
<td colspan="6" class="muted">No hay registros para los filtros aplicados.</td>
</tr>
}
</tbody>
@@ -89,8 +101,7 @@
<div class="pager">
<span class="muted">
@if (page()?.total; as total) {
{{ offset() + 1 }}–{{ offset() + rows().length }} de {{ total }} pacientes · corte
{{ applied() }}
Página {{ pageNumber() }} de {{ pageCount() }}, {{ total }} registros
}
</span>
<button mat-stroked-button (click)="go('previous')" [disabled]="!has('previous') || loading()">