f82ce8cc38
The risk table shows only what the patient's follow-up status follows, as the follow-up table does: a case, her survival; before colposcopy, LIEAG+ and cancer; after colposcopy or treatment, LIEAG+. Without a status every column stays.
86 lines
6.8 KiB
HTML
86 lines
6.8 KiB
HTML
@if (estado.tipo !== 'cerrado') {
|
|
<button class="back-button" mat-stroked-button type="button" (click)="volver.emit()"><mat-icon aria-hidden="true">arrow_back</mat-icon><span>Regresar</span></button>
|
|
<header>
|
|
<h2 #titulo tabindex="-1">Paciente {{ estado.resumen.identidad.id }}</h2>
|
|
<p>Fecha de corte: {{ estado.resumen.corte }}.</p>
|
|
<dl class="summary">
|
|
<div><dt>{{ etiquetaIdentidad }}</dt><dd>{{ estado.resumen.identidad.id }}</dd></div>
|
|
<div><dt>Grupo de edad</dt><dd>{{ estado.resumen.grupoEdad ?? 'No disponible' }}</dd></div>
|
|
<div><dt>Estatus de seguimiento</dt><dd>{{ estado.resumen.estatus ?? 'No disponible' }}</dd></div>
|
|
<div><dt>Días de toma a diagnóstico</dt><dd>{{ estado.resumen.diasTomaDiagnostico ?? 'No disponible' }}</dd></div>
|
|
<div><dt>Prioridad</dt><dd>{{ estado.resumen.prioridad ?? 'No disponible' }}</dd></div>
|
|
</dl>
|
|
</header>
|
|
@if (estado.tipo === 'cargando') { <p role="status">Cargando información…</p> }
|
|
@if (estado.tipo === 'no-disponible') { <p class="availability" role="status">Información no disponible.</p> }
|
|
@if (estado.tipo === 'error') { <p class="availability" role="alert">No se pudo cargar la información de este paciente. Regresa a Análisis de riesgos para intentar de nuevo.</p> }
|
|
@if (registrosTemporales.length) { <p class="pending-changes" role="status">Cambios sin guardar</p> }
|
|
<div class="detail-grid">
|
|
<mat-card class="history-card" appearance="outlined" aria-labelledby="historial-title">
|
|
<mat-card-header><h3 id="historial-title">Historial médico relevante</h3></mat-card-header>
|
|
<mat-card-content>
|
|
<div class="history-actions">
|
|
<button mat-stroked-button type="button" (click)="abrirRegistro('condicion')">Agregar condición</button>
|
|
<button mat-stroked-button type="button" (click)="abrirRegistro('procedimiento')">Agregar procedimiento</button>
|
|
</div>
|
|
<div class="history-table-scroll" role="region" aria-label="Historial médico relevante" tabindex="0">
|
|
<table class="history-table">
|
|
<thead><tr><th scope="col">Registro</th><th scope="col">Fecha</th></tr></thead>
|
|
<tbody>
|
|
<tr class="section-row"><th scope="rowgroup" colspan="2">Condiciones</th></tr>
|
|
@if (estado.tipo === 'disponible') {
|
|
@if (estado.detalle.historial; as historial) {
|
|
@for (item of historial; track $index) {
|
|
<tr><td><strong>{{ item.descripcion }}</strong>@if (item.notas) { <span class="record-detail">{{ item.notas }}</span> }</td><td>{{ item.fecha ?? 'No disponible' }}</td></tr>
|
|
}
|
|
@if (!historial.length && !temporales('condicion').length) { <tr><td colspan="2" class="empty-row">Sin registros.</td></tr> }
|
|
} @else if (!temporales('condicion').length) { <tr><td colspan="2" class="empty-row">Información no disponible.</td></tr> }
|
|
} @else if (!temporales('condicion').length) { <tr><td colspan="2" class="empty-row">Información no disponible.</td></tr> }
|
|
@for (item of temporales('condicion'); track item.id) {
|
|
<tr data-registro-temporal="condicion"><td><strong>{{ etiquetaRegistro(item) }}</strong><span class="record-detail">Agregado en esta sesión</span></td><td>{{ item.fecha }}</td></tr>
|
|
}
|
|
<tr class="section-row"><th scope="rowgroup" colspan="2">Procedimientos</th></tr>
|
|
@if (estado.tipo === 'disponible') {
|
|
@if (estado.detalle.procedimientos; as procedimientos) {
|
|
@for (item of procedimientos; track $index) {
|
|
<tr><td><strong>{{ item.nombre }}</strong>@if (item.resultado) { <span class="record-detail">Resultado: {{ item.resultado }}</span> }</td><td>{{ item.fecha ?? 'No disponible' }}</td></tr>
|
|
}
|
|
@if (!procedimientos.length && !temporales('procedimiento').length) { <tr><td colspan="2" class="empty-row">Sin registros.</td></tr> }
|
|
} @else if (!temporales('procedimiento').length) { <tr><td colspan="2" class="empty-row">Información no disponible.</td></tr> }
|
|
} @else if (!temporales('procedimiento').length) { <tr><td colspan="2" class="empty-row">Información no disponible.</td></tr> }
|
|
@for (item of temporales('procedimiento'); track item.id) {
|
|
<tr data-registro-temporal="procedimiento"><td><strong>{{ etiquetaRegistro(item) }}</strong><span class="record-detail">Agregado en esta sesión</span></td><td>{{ item.fecha }}</td></tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</mat-card-content>
|
|
</mat-card>
|
|
<mat-card class="tests-card" appearance="outlined" aria-labelledby="pruebas-title">
|
|
<mat-card-header><h3 id="pruebas-title">Pruebas y resultados</h3></mat-card-header>
|
|
<mat-card-content>
|
|
<button mat-stroked-button type="button" (click)="abrirRegistro('resultado')">Agregar resultado</button>
|
|
<h4>Últimos resultados</h4>
|
|
<ul>
|
|
<li><strong>Última citología</strong>@if (estado.resumen.citologia; as c) { <span>Fecha: {{ c.fecha }}</span><span>Resultado: {{ etiquetaCitologia(c.resultado, c.calidad) }}</span><span>Calidad: {{ c.calidad ?? 'No disponible' }}</span> } @else { <span>No disponible</span> }</li>
|
|
<li><strong>Último resultado de VPH</strong>@if (estado.resumen.vph; as v) { <span>Fecha: {{ v.fecha }}</span><span>Resultado: {{ v.resultado }}</span><span>Genotipo 16/18: {{ v.genotipo16y18 === null ? 'No disponible' : v.genotipo16y18 ? 'Presente' : 'No detectado' }}</span> } @else { <span>No disponible</span> }</li>
|
|
</ul>
|
|
@if (estado.tipo === 'disponible') {
|
|
<h4>Pruebas adicionales</h4>
|
|
@if (estado.detalle.pruebas; as pruebas) {
|
|
<ul>@for (item of pruebas; track $index) { <li><strong>{{ item.nombre }}</strong><span>Fecha: {{ item.fecha ?? 'No disponible' }}</span><span>Resultado: {{ item.resultado ?? 'No disponible' }}</span></li> } @empty { <li>Sin registros.</li> }</ul>
|
|
} @else { <p>Información no disponible.</p> }
|
|
}
|
|
@if (estado.tipo === 'disponible' || temporales('resultado').length) {
|
|
<h4>Resultados agregados</h4>
|
|
<ul>@for (item of temporales('resultado'); track item.id) { <li data-registro-temporal="resultado"><strong>{{ etiquetaRegistro(item) }}</strong><span>Fecha: {{ item.fecha }}</span><span>Resultado: {{ etiquetaResultado(item) }}</span></li> } @empty { <li>Sin registros.</li> }</ul>
|
|
}
|
|
</mat-card-content>
|
|
</mat-card>
|
|
<mat-card class="risks-card" appearance="outlined" aria-labelledby="riesgos-title">
|
|
<mat-card-header><h3 id="riesgos-title">Riesgos y recomendaciones</h3></mat-card-header>
|
|
<mat-card-content><app-paciente-riesgo-tabla [pacId]="pacId" [estatus]="estatusCodigo" /></mat-card-content>
|
|
</mat-card>
|
|
</div>
|
|
}
|