-
Type:
Bug
-
Resolution: Done
-
Priority:
Highest
-
Affects Version/s: None
-
None
-
HWC Sprint 18
The system should determine the case completion flow based on whether the doctor has prescribed a lab test, medication, both, or neither.
Business Scenarios / Use Cases:
- Test + Medication Prescribed
-
- If the doctor prescribes both a lab test and medication, the process should be marked completed only after:
-
-
- The lab test has been performed, AND
-
-
-
- The medication has been dispensed.
-
- Only Medication Prescribed
-
- If the doctor prescribes only medication, the process should be marked completed once the medication is dispensed.
- Neither Test Nor Medication Prescribed
-
- If the doctor prescribes neither a lab test nor medication, the process should be completed immediately.
Additional Logic / Notes:
- If medication has already been dispensed and the beneficiary visits the doctor again to show lab test results:
-
- The system should maintain a flag/status indicating:
-
-
- Medication Dispensed
-
-
-
- Medication Not Dispensed
-
- If there is no further update from the doctor regarding medication or test:
-
- The case flow should auto-close.
- If the doctor provides an update (new prescription or change):
-
- The case flow should continue until medication is dispensed.
Expected Result:
The system should correctly track prescription scenarios, maintain medication status flags, and automatically complete or continue the process based on doctor updates.