diff --git a/src/app/indicadores/measures.ts b/src/app/indicadores/measures.ts index dd9e47a..047ff6e 100644 --- a/src/app/indicadores/measures.ts +++ b/src/app/indicadores/measures.ts @@ -88,7 +88,7 @@ export function reading(report: MeasureReport | undefined): Reading | undefined } /** Codes as the screens name them. */ -const LABELS: Record = { +export const LABELS: Record = { NILM: 'Normal (NILM)', LSIL: 'LIEBG', HSIL: 'LIEAG', diff --git a/src/app/indicadores/tab-riesgos.html b/src/app/indicadores/tab-riesgos.html index 12223b6..191a17e 100644 --- a/src/app/indicadores/tab-riesgos.html +++ b/src/app/indicadores/tab-riesgos.html @@ -154,9 +154,11 @@ {{ row.daysToDiagnosis ?? 'No disponible' }} } @empty { - - No hay registros para los filtros aplicados. - + @if (page() && !loading()) { + + No hay registros para los filtros aplicados. + + } } diff --git a/src/app/indicadores/tab-seguimiento.html b/src/app/indicadores/tab-seguimiento.html index 4fa6cb8..b2ec399 100644 --- a/src/app/indicadores/tab-seguimiento.html +++ b/src/app/indicadores/tab-seguimiento.html @@ -90,9 +90,11 @@ {{ priority(row.priority) }} } @empty { - - No hay registros para los filtros aplicados. - + @if (page() && !loading()) { + + No hay registros para los filtros aplicados. + + } } diff --git a/src/app/paciente/paciente.ts b/src/app/paciente/paciente.ts index 83156db..924b5c9 100644 --- a/src/app/paciente/paciente.ts +++ b/src/app/paciente/paciente.ts @@ -20,7 +20,7 @@ import type { Domain } from '../api/models/domain'; import { code, EXT, ext, Fhir, label, resources } from '../fhir'; import { scenarioFigure } from '../gobernanza/figures'; import { CURP } from '../indicadores/follow-up'; -import { name } from '../indicadores/measures'; +import { LABELS, name } from '../indicadores/measures'; import { BIOMARKER_NAMES, byDeviation, @@ -36,8 +36,11 @@ import { Loading } from '../loading'; /** An Observation's value as the screens say it, whatever its type. */ function shown(o: Observation): string { if (o.valueBoolean !== undefined) return o.valueBoolean ? 'positivo' : 'negativo'; - if (o.valueCodeableConcept) - return name(code(o.valueCodeableConcept) ?? '') || label(o.valueCodeableConcept); + if (o.valueCodeableConcept) { + // The screens' own name for the code (BI-RADS 4C), else the server's display. + const c = code(o.valueCodeableConcept) ?? ''; + return (c in LABELS ? name(c) : '') || label(o.valueCodeableConcept); + } if (o.valueQuantity) return `${o.valueQuantity.value} ${o.valueQuantity.unit ?? ''}`.trim(); return o.valueString ?? o.valueDateTime ?? ''; }