From c28cf31e2af5acec2325ca420305f699a524a22f Mon Sep 17 00:00:00 2001 From: edgar Date: Fri, 4 Dec 2026 16:02:40 -0600 Subject: [PATCH] =?UTF-8?q?Mostrar=20solo=20el=20criterio=20de=20exclusi?= =?UTF-8?q?=C3=B3n=20y=20anotar=20que=20el=20tamizaje=20es=20el=20actual?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/paciente/paciente.html | 119 +++++++++++++++++---------------- src/app/paciente/paciente.ts | 6 ++ 2 files changed, 67 insertions(+), 58 deletions(-) diff --git a/src/app/paciente/paciente.html b/src/app/paciente/paciente.html index ad92182..e8cfbba 100644 --- a/src/app/paciente/paciente.html +++ b/src/app/paciente/paciente.html @@ -131,6 +131,9 @@ @if (saveError()) { } +

+ Los pasos muestran el tamizaje actual, en curso: el de la citología que se consulta. +

@@ -258,69 +261,69 @@ } - @if ( - riskExclusion() || withheld() || groups().length || domain() !== 'cacu' || riskModels().length - ) { + @if (excluded() || groups().length || domain() !== 'cacu' || riskModels().length) { + @if (excluded(); as reason) { + + Sin estimación de riesgo: criterio de exclusión + + } - @if (withheld(); as why) { -

{{ why }}

- } - @if (riskExclusion(); as reason) { -

{{ reason }}

+ @if (excluded(); as reason) { +

{{ reason }}

} @else { - } - @if (riskModels().length) { -
- Modelos y valores - - - - - - - - - - - - @for (m of riskModels(); track m.model) { - @for (p of m.predictions; track p.years) { - - - - - - - + @if (riskModels().length) { +
+ Modelos y valores +
ModeloFecha índiceHorizonteProbabilidadIC 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 { - — - } -
+ + + + + + + + + + + @for (m of riskModels(); track m.model) { + @for (p of m.predictions; track p.years) { + + + + + + + + } } - } - -
ModeloFecha índiceHorizonteProbabilidadIC 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 { + — + } +
-
- } - @if (!riskExclusion() && (riskModels().length || riskSeries.value()?.length)) { -
- Curvas de probabilidad con su intervalo - @if (riskSeries.value()?.length) { - - } @else { - - } -
- } - @if (!riskModels().length && !riskExclusion()) { -

Sin evaluación de un modelo en producción.

+ + + + } + @if (riskModels().length || hasCurves()) { +
+ Curvas de probabilidad con su intervalo + @if (hasCurves()) { + + } @else { + + } +
+ } + @if (!riskModels().length) { +

Sin evaluación de un modelo en producción.

+ } }
diff --git a/src/app/paciente/paciente.ts b/src/app/paciente/paciente.ts index 204f79a..be14ee1 100644 --- a/src/app/paciente/paciente.ts +++ b/src/app/paciente/paciente.ts @@ -202,6 +202,12 @@ export class Paciente { const patient = this.patient(); return patient ? ext(patient, 'risk-withheld')?.valueString : undefined; }); + /** The one criterion she does not meet: nothing else of her risk is then shown. */ + protected readonly excluded = computed(() => this.withheld() ?? this.riskExclusion()); + /** Whether any published series has a point to draw. */ + protected readonly hasCurves = computed( + () => this.riskSeries.value()?.some((s) => s.points.length > 0) ?? false, + ); /** CaCu: the route of the cytology she was opened at, else of her latest, by the cut-off. */ protected readonly stages = computed(() => { const cytologies = (this.data.value()?.reports ?? []).filter(