General OPD: Process Completion Logic Based on Doctor Prescription (Test & Medication)

XMLWordPrintable

    • Type: Bug
    • Resolution: Done
    • Priority: Highest
    • 4.0
    • 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:

      1. 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.
      1. Only Medication Prescribed
        • If the doctor prescribes only medication, the process should be marked completed once the medication is dispensed.
      1. 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.

              Assignee:
              Archita Verma
              Reporter:
              Deep Shikha
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: