fix: Patient Medicine Prescription Not Verifying if Patient Bought Medicine Outside
Description
Currently, the patient medicine prescription verification process fails when a patient purchases medicines outside the system (i.e., not from the in-house pharmacy). Even after the prescription is completed or marked appropriately, the verification step does not proceed as expected.
The system appears to depend on internally recorded medicine purchase data to allow verification. As a result, prescriptions associated with externally purchased medicines remain in an unverified state, creating workflow issues for doctors, pharmacists, and administrators.
This behavior causes confusion and delays because patients who have already obtained their medicines externally cannot complete the verification process within the application.
Expected Behavior
- Prescriptions should be verifiable regardless of where the patient purchased the medicines.
- The system should allow verification when medicines are marked as bought outside or externally purchased.
- Verification should not strictly rely on internal pharmacy stock or purchase records.
Current Behavior
- Verification fails or remains disabled when medicines are not purchased through the system.
- Prescriptions stay pending even though treatment is completed.
Impact
- Blocks prescription workflow completion.
- Causes inaccurate prescription status tracking.
- Creates confusion for healthcare staff and patients.
Suggested Fix
- Update verification logic to support externally purchased medicines.
- Add or validate a flag/status indicating medicines were bought outside.
- Ensure verification conditions include both internal and external purchase scenarios.