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()) {
{{ 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
-
-
-
- | Modelo |
- Fecha índice |
- Horizonte |
- Probabilidad |
- IC 95 % |
-
-
-
- @for (m of riskModels(); track m.model) {
- @for (p of m.predictions; track p.years) {
-
- | {{ $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 (riskModels().length) {
+
+ Modelos y valores
+
+
+
+ | Modelo |
+ Fecha índice |
+ Horizonte |
+ Probabilidad |
+ IC 95 % |
+
+
+
+ @for (m of riskModels(); track m.model) {
+ @for (p of m.predictions; track p.years) {
+
+ | {{ $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(