Files
WebApp/src/app/features/indicadores/paciente-detalle/paciente-riesgo-tabla.html
T
Angel Capetillo Zavala 49b94b8f18 CaMa patient record: scenario shown as Estatus without follow-up status, priority or days; CaCu risk without the model block
The CaMa record and its PDF drop the follow-up status, priority and days from mammography to diagnosis, and label the clinical scenario Estatus. The CaCu individual risk shows only the horizon table; the model and evaluation block stays for CaMa.
2026-11-21 19:51:46 -06:00

46 lines
2.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<h4>Riesgo individual {{ rotulo() }}</h4>
@let lectura = estado();
@switch (lectura.tipo) {
@case ('cargando') { <p role="status">Cargando riesgo individual…</p> }
@case ('no-disponible') {
<p role="status">Riesgo individual no disponible para esta paciente.</p>
}
@case ('error') { <p role="alert">No se pudo validar o cargar el riesgo individual.</p> }
@case ('disponible') {
@let riesgo = lectura.datos.riesgo;
@if (dominio() === 'cama') {
<h5>Modelo y evaluación</h5>
<dl class="metadata">
<div><dt>Modelo</dt><dd>{{ riesgo.modelo_nombre }}</dd></div>
<div><dt>Versión del modelo</dt><dd>{{ riesgo.modelo_version }}</dd></div>
<div><dt>Fecha índice</dt><dd>{{ riesgo.fecha_indice }}</dd></div>
<div><dt>Desenlace</dt><dd>{{ riesgo.desenlace_texto ?? riesgo.desenlace }}</dd></div>
<div><dt>Evaluado en (UTC)</dt><dd>{{ riesgo.evaluado_en }}</dd></div>
<div><dt>Estado del lote</dt><dd>{{ riesgo.estado_lote === 'final' ? 'Final (final)' : 'Preliminar (preliminary)' }}</dd></div>
</dl>
}
@if (riesgo.horizontes.length) {
<div class="risk-scroll" role="region" aria-label="Probabilidades por horizonte, tabla desplazable" tabindex="0">
<table>
<caption>Probabilidades por horizonte desde la fecha índice</caption>
<thead><tr>
<th scope="col">Horizonte (años)</th>
<th scope="col">Probabilidad (%)</th>
<th scope="col">Intervalo de confianza (%)</th>
</tr></thead>
<tbody>
@for (h of riesgo.horizontes; track h.horizonte_anios) {
<tr>
<th scope="row">{{ h.horizonte_anios }}</th>
<td class="percentage">{{ h.probabilidad * 100 | number:'1.0-4' }} %</td>
<td class="interval">@if (tieneIntervalo(h)) { {{ h.ic_bajo! * 100 | number:'1.0-4' }} % – {{ h.ic_alto! * 100 | number:'1.0-4' }} % } @else { No disponible }</td>
</tr>
}
</tbody>
</table>
</div>
} @else { <p role="status">Sin horizontes evaluados en el lote vigente.</p> }
}
}
<p class="recommendations">Recomendaciones no disponibles.</p>