Project

General

Profile

Actions

Feature #353

open
NP NP

Canteen: Patient charges -- fail open when EMR/IPD enrichment is unreachable

Feature #353: Canteen: Patient charges -- fail open when EMR/IPD enrichment is unreachable

Added by Navya P. about 1 month ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
10/12/2026
Due date:
% Done:

0%

Estimated time:
Resolved By:

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.

Actions

Also available in: PDF Atom