Extend Coordinator Dashboard with Prescriptions & Medicines
Overview
This MR adds Prescriptions and Verify Medicines modules to the Coordinator Dashboard while ensuring that existing Queue Management functionality remains completely unchanged.
What does this MR do and why?
Previously, the Coordinator Dashboard only supported Queue Management.
This MR extends the dashboard by introducing:
- Prescriptions module
- Verify Medicines module
These modules are implemented as independent features and do not reuse or interfere with Queue functionality.
The goal is to:
- Keep Queue Management isolated as the workflow controller
- Allow Prescriptions and Verify Medicines to function as standalone modules
- Maintain clean separation of concerns
Changes Made
-
Updated Coordinator Dashboard UI to include:
- Prescriptions navigation
- Verify Medicines navigation
-
Implemented Prescriptions page:
- Displays patients based on status
- Supports add/edit/delete prescription
- Updates patient status to "PRESCRIPTION_DONE"
-
Implemented Verify Medicines page:
- Displays patients with completed prescriptions
- Supports medicine verification
-
Ensured no queue logic is used in these pages
Technical Details
-
Coordinator Dashboard acts as a navigation-only component
-
Queue Management remains untouched
-
Prescriptions and Verify Medicines:
- Do not import queue components/hooks
- Use patient status-based filtering
-
Prescription update flow:
- Updates prescription data
- Updates patient status independently
Type of Change
-
🐛 Bug fix -
✨ New feature -
💥 Breaking change -
📝 Documentation update -
🎨 UI/UX improvement -
♻ ️ Refactor -
⚡ Performance improvement -
🧪 Test update -
🔧 Configuration change -
🚨 Security fix
Related Issues / References
- Related to Coordinator module enhancement
- Adds new functionality without modifying queue system
Screenshots or Screen Recordings
Before
After
Queue + Prescriptions + Verify Medicines

How to Set Up and Validate Locally
-
Checkout this branch
-
Install dependencies:
bun install -
Run development server:
bun dev -
Navigate to Coordinator Dashboard
-
Validate:
- Queue Management works as before
- Click Prescriptions → opens prescriptions page
- Click Verify Medicines → opens verify medicines page
- Add/Edit/Delete prescription works
- Verify medicines works correctly
Testing Done
-
Manual testing completed -
Unit tests added
Test Cases Covered:
| Scenario | Expected Result | Status |
|---|---|---|
| Dashboard navigation | All pages open correctly | |
| Queue functionality | Works unchanged | |
| Prescription update | Data updates correctly | |
| Prescription delete | Removes item correctly | |
| Verify medicines | Works correctly | |
| Empty state | Displays properly |
Code Quality Checklist
-
Code follows project conventions -
No console.log() left -
No unused code -
Proper TypeScript usage -
ESLint/Prettier passed
