@if (domain() === 'cacu' && patient()) {
} @if (exportError()) {

{{ exportError() }}

} arrow_back Regresar @if (error()) { } @else if (patient(); as p) {

{{ identity().name ?? p.id?.slice(0, 10) ?? 'No disponible' }} @if (identity().name && p.id) { {{ p.id.slice(0, 10) }} } @if (domain() === 'cacu') { · Edad: {{ exactAge(p.birthDate, cutoff) ?? 'No disponible' }} }

CURP
{{ identity().curp ?? 'Sin dato' }}
Expedientes
{{ identity().numbers.join(', ') || 'Sin dato' }}
Fecha de nacimiento
{{ p.birthDate ?? 'Sin dato' }}
Sexo
{{ p.gender === 'female' ? 'Femenino' : p.gender === 'male' ? 'Masculino' : 'Sin dato' }}
Estatus de seguimiento
{{ status() }}
@if (p.deceasedDateTime) {
Defunción
{{ p.deceasedDateTime }}
}
Historial médico @if (domain() === 'cacu') { } @for (h of history(); track $index) { } @empty { }
Fecha Tipo Detalle
{{ h.date }} {{ h.kind }} {{ h.text }} @if (h.code && h.code !== h.text) { ({{ h.code }}) }
Sin registros.
Pruebas y resultados @for (t of tests(); track $index) { } @empty { }
Toma Estudio Reporte Resultados
{{ t.date }} {{ t.kind }} {{ t.reported ?? 'Pendiente' }} {{ t.results.join(' · ') || '—' }}
Sin estudios.
Riesgos y recomendaciones @if (domain() === 'cacu') {

Divisiones numéricas descriptivas; no representan umbrales clínicos.

@for (model of riskScales(); track model.model) {

{{ model.outcome }} · {{ model.model }} · fecha índice {{ model.index }}

@for (scale of [{label: 'Riesgo inmediato (al índice)', value: model.immediate}, {label: 'Riesgo a 5 años', value: model.five}]; track scale.label) {

{{ scale.label }} @if (scale.value; as v) { @if (v.low !== undefined && v.high !== undefined) { · IC 95 %: {{ v.low * 100 | number:'1.1-2' }}–{{ v.high * 100 | number:'1.1-2' }} % } } @else { · No disponible }

@if (scale.value; as v) { {{ v.value * 100 | number:'1.1-2' }} % }
0 %25 %50 %75 %100 %
} } @empty { @for (label of ['Riesgo inmediato', 'Riesgo a 5 años']; track label) {

{{ label }} · No disponible

0 %25 %50 %75 %100 %
}

Ningún modelo vigente la ha evaluado.

} } @else if (models().length) { @for (m of models(); track m.model) { @for (p of m.predictions; track p.years) { } }
Modelo Fecha índice Horizonte Probabilidad IC 95 %
{{ $first ? m.text : '' }} {{ $first ? m.index : '' }} {{ p.years }} {{ p.years === 1 ? 'año' : 'años' }} {{ p.p * 100 | number: '1.1-2' }} % @if (p.low !== undefined) { {{ p.low * 100 | number: '1.1-2' }}–{{ p.high! * 100 | number: '1.1-2' }} % } @else { — }
} @else {

Ningún modelo vigente la ha evaluado.

}
} @else if (loading()) {

Cargando…

}