Multiple Doctors Displayed in Prescription After Reassigning Doctor
What does this MR do and why?
This MR introduces a Change Consultation feature and improves the prescription workflow and navigation system for better patient management in the medical camp application.
Why this change?
- Allows reassignment of patients between doctors when consultation needs to be changed
- Improves prescription workflow efficiency
- Enhances medicine input handling based on medicine type
- Removes duplicate search logic by using a shared utility function
- Improves queue workflow management using API integration
- Enhances navigation support for doctor roles and queue views
Changes Made
- Added Change Consultation support in doctor assignment
- Updated AssignDoctorPage with Change Consultation option
- Improved UpdatePrescriptionPage with URL-based patient lookup
- Refactored medicine search using shared
getSearchScoreutility - Integrated
updateQueueStatusAPI for workflow updates - Improved medicine input handling based on medicine type
- Added navigation support for doctor role and queue tabs
Technical Details
Root Cause:
- Patients could not be reassigned once assigned to a doctor
- Same input was used for all medicine types
- Duplicate search logic existed in components
- Queue workflow state was not updated automatically
Solution:
- Added Change Consultation feature for reassignment
- Implemented conditional medicine input handling (dosage vs quantity)
- Refactored search logic into reusable utility
- Integrated API-based queue status updates
Related Issues / References
- Related feature: Change Consultation for Doctor Reassignment
- Prescription workflow improvements
- Navigation updates for queue management
- Branch:
feature/change-consultation - Related issue: #60 (closed)
Edited by srilatha bandari

