e74e3d8fd4
The risk table takes a domain (CaCu by default); the CaMa record shows the mortality at 6, 12 and 18 months from the model's index date. The Supervivencia tab draws the cohort's Kaplan-Meier with its band, the adjusted curve, the fractional Weibull and the model's survival with its bootstrap interval; its wording comes from the model's settings.
45 lines
2.3 KiB
HTML
45 lines
2.3 KiB
HTML
<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') {
|
||
<p class="simulated-label" id="riesgo-simulado">Información simulada · Entorno DEV · Sin evaluación clínica</p>
|
||
@let riesgo = lectura.datos.riesgo;
|
||
<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 aria-describedby="riesgo-simulado">
|
||
<caption>Probabilidades simuladas 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>
|