diff --git a/e2e/pages.spec.ts b/e2e/pages.spec.ts
index 2e6800a..309de9f 100644
--- a/e2e/pages.spec.ts
+++ b/e2e/pages.spec.ts
@@ -84,7 +84,7 @@ test("indicators: the KPIs are the API's MeasureReports, every tab and the patie
).not.toContainText('Sin estudios');
await page.goto('/indicadores/cama');
- await expect(page.getByRole('tab', { name: 'Indicadores' })).toBeVisible();
+ await expect(page.getByRole('tab', { name: 'Resumen' })).toBeVisible();
await page.getByRole('tab', { name: 'Seguimiento' }).click();
await page.locator('mat-form-field', { hasText: 'Ventana' }).click();
await page.getByRole('option', { name: '12 meses' }).click();
diff --git a/src/app/indicadores/indicadores.ts b/src/app/indicadores/indicadores.ts
index 3664672..b032aec 100644
--- a/src/app/indicadores/indicadores.ts
+++ b/src/app/indicadores/indicadores.ts
@@ -36,7 +36,7 @@ import { Loading } from '../loading';
Este dominio todavía no tiene indicadores publicados.
} @else {
-
+
diff --git a/src/app/paciente/risk-series.ts b/src/app/paciente/risk-series.ts
index 37f3e26..2de9bba 100644
--- a/src/app/paciente/risk-series.ts
+++ b/src/app/paciente/risk-series.ts
@@ -6,7 +6,6 @@ import { MatSelectModule } from '@angular/material/select';
import type { Parameters, ParametersParameter } from 'fhir/r4';
import { Plot } from '../plot';
import { curveFigure } from './risk-curve';
-import { REASON_TEXT } from './reference-risk';
export interface SeriesPoint {
years: number;
@@ -32,10 +31,6 @@ const OUTCOME_TEXT: Record = {
'CIN3+': 'CIN3+',
cancer: 'Cáncer',
};
-const REASONS: Record = {
- ...REASON_TEXT,
- history_is_registered: 'Tiene antecedentes registrados: no corresponde la tabla de ingreso.',
-};
export const seriesName = (s: Series) => `${s.source} · ${OUTCOME_TEXT[s.outcome] ?? s.outcome}`;
@@ -112,8 +107,8 @@ export function parseSeries(answer: Parameters): Series[] {
}
- @for (s of unavailable(); track s.id) {
- {{ name(s) }}: no disponible. {{ why(s) }}
+ @if (!available().length) {
+ No disponible: datos insuficientes.
}
`,
styles: `
@@ -150,7 +145,6 @@ export class RiskSeries {
readonly series = input.required();
protected readonly name = seriesName;
protected readonly available = computed(() => this.series().filter((s) => s.points.length));
- protected readonly unavailable = computed(() => this.series().filter((s) => !s.points.length));
/** what the user toggled away from the default (the institutional series) */
private readonly toggled = signal(new Set());
protected readonly chosen = computed(
@@ -198,8 +192,4 @@ export class RiskSeries {
if (!next.delete(id)) next.add(id);
this.toggled.set(next);
}
-
- protected why(s: Series) {
- return s.reasons.map((r) => REASONS[r] ?? r).join(' ');
- }
}