CaMa patient record: the recurrence figures of the scenarios she meets

This commit is contained in:
rockdrigo
2026-11-21 13:34:56 -06:00
parent fb5a4ed5cc
commit 5094880622
11 changed files with 293 additions and 11 deletions
@@ -75,6 +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' }); });
fixture.destroy(); http.verify();
});
const root = () => fixture.nativeElement as HTMLElement;