Add previous medicines retrieval feature for consultations
Feature
Added functionality to retrieve medicines prescribed in previous consultations.
Changes
- Implemented backend logic to fetch previous medicines for a patient.
- Added API support to load previous prescriptions.
- Integrated retrieval into consultation workflow.
Purpose
This feature allows us to quickly access medicines prescribed in earlier consultations, reducing manual re-entry and improving efficiency.
Testing
- Verified API responses locally.
- Ran pytest for backend tests.
Notes
No existing functionality was modified intentionally.