Ficha: no mostrar la comparación de riesgos de referencia

This commit is contained in:
2026-12-02 19:42:41 -06:00
parent d2eada9385
commit 0666ce3077
2 changed files with 0 additions and 32 deletions
-3
View File
@@ -259,9 +259,6 @@
<p role="status">{{ reason }}</p>
} @else {
<app-risk-scales [groups]="groups()" />
@if (reference.value(); as ref) {
<app-reference-risk [view]="ref" />
}
@if (riskSeries.value(); as series) {
<app-risk-series [series]="series" />
}
-29
View File
@@ -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<ReferenceView | undefined> => {
try {
const answer = await firstValueFrom(
this.http.get<FhirParameters>(
`${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<string, string>,
},
),
);
return referenceView(answer);
} catch {
return undefined;
}
},
});
protected readonly saving = signal(false);
protected readonly saveError = signal('');
/** CaCu: her record as a PDF. */