CaMa indicators and follow-up list, model governance page
This commit is contained in:
@@ -0,0 +1,102 @@
|
||||
<form class="filters card" (submit)="$event.preventDefault()">
|
||||
<mat-form-field appearance="outline" subscriptSizing="dynamic">
|
||||
<mat-label>Fecha de corte</mat-label>
|
||||
<input
|
||||
matInput
|
||||
type="date"
|
||||
[ngModel]="cutoff() || applied()"
|
||||
(ngModelChange)="cutoff.set($event)"
|
||||
name="cutoff"
|
||||
/>
|
||||
</mat-form-field>
|
||||
<mat-form-field appearance="outline" subscriptSizing="dynamic">
|
||||
<mat-label>Ventana</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>
|
||||
}
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
<mat-form-field appearance="outline" subscriptSizing="dynamic">
|
||||
<mat-label>Estatus</mat-label>
|
||||
<mat-select [value]="status()" (selectionChange)="status.set($event.value)">
|
||||
<mat-option value="">Todos</mat-option>
|
||||
@for (s of statuses; track s) {
|
||||
<mat-option [value]="s">{{ name(s) }}</mat-option>
|
||||
}
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
<mat-form-field appearance="outline" subscriptSizing="dynamic">
|
||||
<mat-label>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>
|
||||
}
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
</form>
|
||||
|
||||
@if (error()) {
|
||||
<p class="muted" role="alert">No se pudo leer la lista de seguimiento.</p>
|
||||
}
|
||||
|
||||
<div class="table-wrap card">
|
||||
<table class="plain worklist">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Paciente</th>
|
||||
<th>Grupo de edad</th>
|
||||
<th>Mastografía</th>
|
||||
<th>Biopsia</th>
|
||||
<th>Estatus</th>
|
||||
<th>Prioridad</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@for (row of rows(); track row.patient.id) {
|
||||
<tr>
|
||||
<td>
|
||||
<a [routerLink]="['/indicadores', domain(), 'pacientes', row.patient.id]">{{
|
||||
row.name ?? row.patient.id!.slice(0, 10)
|
||||
}}</a>
|
||||
@if (row.curp) {
|
||||
<div class="muted curp">{{ row.curp }}</div>
|
||||
}
|
||||
</td>
|
||||
<td>{{ row.ageGroup }}</td>
|
||||
<td>{{ row.mammogram.date }} · {{ name(row.mammogram.birads ?? '') || 'Sin dato' }}</td>
|
||||
<td>
|
||||
@if (row.biopsy; as b) {
|
||||
{{ b.date }} · {{ name(b.histology ?? '') || 'Sin resultado' }}
|
||||
} @else {
|
||||
—
|
||||
}
|
||||
</td>
|
||||
<td>{{ name(row.status) }}</td>
|
||||
<td>{{ priority(row.priority) }}</td>
|
||||
</tr>
|
||||
} @empty {
|
||||
<tr>
|
||||
<td colspan="6" class="muted">
|
||||
{{ page() ? 'Nadie en la lista con estos filtros.' : 'Cargando…' }}
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="pager">
|
||||
<span class="muted">
|
||||
@if (page()?.total; as total) {
|
||||
{{ offset() + 1 }}–{{ offset() + rows().length }} de {{ total }} pacientes · corte
|
||||
{{ applied() }}
|
||||
}
|
||||
</span>
|
||||
<button mat-stroked-button (click)="go('previous')" [disabled]="!has('previous') || loading()">
|
||||
Anterior
|
||||
</button>
|
||||
<button mat-stroked-button (click)="go('next')" [disabled]="!has('next') || loading()">
|
||||
Siguiente
|
||||
</button>
|
||||
</div>
|
||||
Reference in New Issue
Block a user