-
Type:
Bug
-
Resolution: Done
-
Priority:
High
-
Affects Version/s: None
-
None
There is a workflow issue in the Referral module where referral routing is not triggered at the correct stage.
As per PRD:
- Referral decision should be applied immediately after beneficiary registration / screening.
- Routing logic:
- Pregnant women → Directly to Truenat
- All other beneficiaries → Digital Chest X-ray
However, in the current implementation:
- Referral routing is happening only after completing the Diagnostics screen.
- Beneficiaries are not being routed immediately based on conditions.
Steps to Reproduce:
- Register a new beneficiary.
- Mark beneficiary as pregnant (for applicable case) and non-pregnant.
- Observe referral Cards.
Expected Result:
- Referral routing should be triggered immediately after registration.
- Pregnant women → Directly routed to Truenat
- Non-pregnant beneficiaries → Routed to Digital Chest X-ray
Actual Result:
- Referral routing is triggered only after Diagnostics screen completion
- No immediate routing based on pregnancy condition
- Workflow does not align with PRD