diff --git a/src/app/paciente/paciente.html b/src/app/paciente/paciente.html index dfecf1d..78316e8 100644 --- a/src/app/paciente/paciente.html +++ b/src/app/paciente/paciente.html @@ -259,9 +259,6 @@

{{ reason }}

} @else { - @if (reference.value(); as ref) { - - } @if (riskSeries.value(); as series) { } diff --git a/src/app/paciente/paciente.ts b/src/app/paciente/paciente.ts index 8272a1f..da9b3f5 100644 --- a/src/app/paciente/paciente.ts +++ b/src/app/paciente/paciente.ts @@ -29,7 +29,6 @@ import { firstValueFrom } from 'rxjs'; import { ApiConfiguration } from '../api/api-configuration'; import { ANTECEDENTS, Fact, group, split } from './record-groups'; import { eligibilityFailure, eligibilityView, type EligibilityState } from './eligibility'; -import { referenceView, ReferenceRisk, ReferenceView } from './reference-risk'; import { ineligibility } from './ineligibility'; import { parseSeries, RiskSeries, Series } from './risk-series'; import { curveFigure, curveText } from './risk-curve'; @@ -92,7 +91,6 @@ function methods(figures: { figure: { data: unknown[] } }[]): string[] { RouterLink, Plot, RiskScales, - ReferenceRisk, RiskSeries, Stages, ], @@ -221,8 +219,6 @@ export class Paciente { } }, }); - /** CaCu, experimental: the NCI reference comparison of the cytology she was opened at. The API - * answers 404 while the feature is off: then nothing is shown. */ /** CaCu: the eligibility the backend publishes for each indexed visit (`$eligibility`). A failure is a * state of the section, never an eligibility; a new patient starts from nothing (no earlier answer). */ private readonly eligibilityData = resource({ @@ -245,31 +241,6 @@ export class Paciente { ? { kind: 'loading' } : (this.eligibilityData.value() ?? { kind: 'loading' }), ); - protected readonly reference = resource({ - params: () => - this.domain() === 'cacu' - ? { id: this.id(), cutoff: this.corte(), sample: this.citologia() } - : undefined, - loader: async ({ params }): Promise => { - try { - const answer = await firstValueFrom( - this.http.get( - `${this.root}/cacu/fhir/Patient/${params.id}/$reference-risk`, - { - params: Object.fromEntries( - Object.entries({ cutoff: params.cutoff, sample: params.sample }).filter( - ([, v]) => !!v, - ), - ) as Record, - }, - ), - ); - return referenceView(answer); - } catch { - return undefined; - } - }, - }); protected readonly saving = signal(false); protected readonly saveError = signal(''); /** CaCu: her record as a PDF. */