| {{ item.id_seudonimo }} | {{ item.grupo_edad === 'sin_dato' ? 'Sin dato' : item.grupo_edad }} | {{ item.estatus.etiqueta }} |
- @if (item.ultima_citologia; as c) { {{ cytologyLabel(c.bethesda) }}Fecha: {{ c.fecha }}Calidad: {{ c.calidad ?? '—' }} } @else { No disponible } |
+ @if (item.ultima_citologia; as c) { {{ cytologyLabel(c) }}Fecha: {{ c.fecha }}Calidad: {{ c.calidad ?? '—' }} } @else { No disponible } |
@if (item.ultimo_vph; as v) { {{ v.resultado }}Fecha: {{ v.fecha }}Genotipo 16/18: {{ v.genotipo_16_18 === null ? 'No disponible' : v.genotipo_16_18 ? 'Presente' : 'No detectado' }} } @else { No disponible } |
{{ latestStudy(item) ?? 'No disponible' }} | {{ item.dias_toma_diagnostico ?? 'No disponible' }} | {{ item.prioridad?.etiqueta ?? 'No disponible' }} |
diff --git a/src/app/features/indicadores/indicadores-tracking.ts b/src/app/features/indicadores/indicadores-tracking.ts
index b0dba78..f0115e8 100644
--- a/src/app/features/indicadores/indicadores-tracking.ts
+++ b/src/app/features/indicadores/indicadores-tracking.ts
@@ -77,5 +77,10 @@ export class IndicadoresTracking implements OnChanges {
if (!this.data || page < 1 || page > this.data.paginacion.total_pages) return;
this.load({ ...this.applied, page });
}
- cytologyLabel(code: string | null) { return code === null ? 'No disponible' : this.categories[code]?.etiqueta ?? code; }
+ // The shown cytology is the patient's latest in the window. Without a Bethesda result it is either
+ // unsatisfactory (`cacu.calidad_insatisfactoria` in the kit) or not yet reported at the cut-off.
+ cytologyLabel(c: { bethesda: string | null; calidad: string | null }) {
+ if (c.bethesda !== null) return this.categories[c.bethesda]?.etiqueta ?? c.bethesda;
+ return c.calidad?.trim().toUpperCase() === 'INSATISFACTORIO' ? 'Insatisfactoria' : 'Sin resultado al corte';
+ }
}