Resolve "All registered doctors are not visible in the queues"
Description
This MR fixes the issue where active doctors were not displayed correctly in the queue management pages.
Previously, the queue pages showed an incomplete or incorrect list of doctors, even when doctors had patients assigned in different queues. This caused confusion during patient assignment and made it difficult for coordinators and volunteers to identify currently working doctors.
With this update:
- Doctors who have patients assigned in Queue, Consultation Queue, or Vitals Queue are now identified as Active Doctors.
- The active doctor list dynamically updates based on real-time patient assignments.
- Queue pages now accurately reflect doctors actively handling patients during the current medical camp.
- Improves visibility and workflow efficiency in queue management.
Screenshots or screen recordings Before Active doctors missing or partially visible
After All doctors with assigned patients displayed as active
How to set up and validate locally
- Pull the latest changes from this branch.
- Start backend and frontend servers.
- Login as Coordinator or Volunteer.
- Register multiple doctors for a medical camp.
- Assign patients to doctors in:
- Queue
- Consultation Queue
- Vitals Queue
- Navigate to queue management pages.
- Verify:
- Doctors with assigned patients appear as active doctors.
- Active doctor list updates correctly when assignments change.
MR acceptance checklist
-
Active doctors are determined based on patient assignments. -
Doctors assigned in any queue appear correctly. -
No inactive or unrelated doctors are displayed. -
Queue pages behave consistently across roles. -
No regression in existing queue functionality.