CaMa patient record as specified: recurrence and survival analyses with a scenario selector and their risk factors

This commit is contained in:
rockdrigo
2026-11-21 14:43:46 -06:00
parent ce207a72a5
commit 08f1d812ac
27 changed files with 487 additions and 446 deletions
@@ -75,8 +75,8 @@ describe('Tabla de seguimiento con pac_id', () => {
// 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 }); });
// The record also asks for the recurrence figures of the patient; there is no model for them here.
http.match(r => r.url === '/cama/modelo/recurrencia').forEach(r => { if (!r.cancelled) r.flush({ error: 'sin recurrencia' }, { status: 404, statusText: 'Not Found' }); });
// The record asks for the two analyses of the patient (survival's menu and recurrence's); there is no model for them here.
http.match(r => r.url.startsWith('/cama/modelo/')).forEach(r => { if (!r.cancelled) r.flush({ error: 'sin modelo' }, { status: 404, statusText: 'Not Found' }); });
fixture.destroy(); http.verify();
});
const root = () => fixture.nativeElement as HTMLElement;