CaMa: a patient's risk in her record and a Supervivencia tab with the model's curves
The risk table takes a domain (CaCu by default); the CaMa record shows the mortality at 6, 12 and 18 months from the model's index date. The Supervivencia tab draws the cohort's Kaplan-Meier with its band, the adjusted curve, the fractional Weibull and the model's survival with its bootstrap interval; its wording comes from the model's settings.
This commit is contained in:
@@ -72,7 +72,11 @@ describe('Tabla de seguimiento con pac_id', () => {
|
||||
fixture = TestBed.createComponent(IndicadoresSeguimientoTabla); http = TestBed.inject(HttpTestingController);
|
||||
fixture.componentRef.setInput('dominio', 'cama'); fixture.componentRef.setInput('active', true); fixture.detectChanges();
|
||||
});
|
||||
afterEach(() => { fixture.destroy(); http.verify(); });
|
||||
// Opening a CaMa record asks for the patient's risk; in these tests nobody has one.
|
||||
afterEach(() => {
|
||||
http.match(r => r.url === '/cama/fhir/RiskAssessment').forEach(r => { if (!r.cancelled) r.flush({ resourceType: 'Bundle', type: 'searchset', total: 0 }); });
|
||||
fixture.destroy(); http.verify();
|
||||
});
|
||||
const root = () => fixture.nativeElement as HTMLElement;
|
||||
const cargar = (respuesta: Record<string, any>) => { http.expectOne(r => r.url === '/cama/seguimiento').flush(respuesta); fixture.detectChanges(); };
|
||||
const enlaces = () => [...root().querySelectorAll<HTMLButtonElement>('tbody button.patient-link')];
|
||||
|
||||
Reference in New Issue
Block a user