Feature #353
openCanteen: Patient charges -- fail open when EMR/IPD enrichment is unreachable
0%
Description
Caught against a real local failure: EMR (the patient registry) was not running in the dev stack at all, and GET /charges 500d even though every figure on the page comes from this module own DietChargeAccrual rows -- patient name and admission number are display enrichment, not the charge. ListForDateAsync now wraps both external calls (IPatientServiceContract, IAdmissionServiceContract) in their own try/catch, logs a warning, and returns the row with a null name/number instead of failing the whole list. Two new tests, each independently verifying the OTHER lookup still succeeds when one is down.
NP Updated by Navya P. about 1 month ago
- Status changed from New to Resolved
- Resolved By set to Navya P.
Done. 563 unit + 829/831 integration (2 pre-existing unrelated failures). nuvita-canteen-management@44b65b3, pushed to integration/canteen-v1.
NP Updated by Navya P. about 1 month ago
- Assignee set to Navya P.