Fix/kyp queue remove
Overview
This MR removes the "Know Your Patient (KYP) Queue" from the Queues module to simplify the patient flow and eliminate unnecessary intermediate steps.
What does this MR do and why?
This change ensures that patients are directly moved from the Vitals Queue to the Consultation Queue without passing through the KYP Queue.
Previously: Vitals → KYP → Consultation
Now: Vitals → Consultation
The KYP queue was causing unnecessary delay in patient flow, so it has been removed strictly from the queue system without affecting any other functionality.
Changes Made
- Removed "Know Your Patient Queue" from Queues UI
- Removed KYP-related routing from queue flow
- Updated transition logic to skip KYP after vitals
- Ensured patients move directly to Consultation Queue
Technical Details
-
Removed KYP entry from queue list rendering
-
Updated queue transition logic:
- Replaced
vitals → kypwithvitals → consultation
- Replaced
-
Removed conditional checks and navigation specific to KYP in queues
-
No changes made outside queue-related logic
Type of Change
-
🐛 Bug fix (non-breaking change that fixes an issue) -
✨ New feature (non-breaking change that adds functionality) -
💥 Breaking change (fix or feature that would cause existing functionality to change) -
📝 Documentation update -
🎨 UI/UX improvement -
♻ ️ Refactor (no functional changes) -
⚡ Performance improvement -
🧪 Test update -
🔧 Configuration change -
🚨 Security fix
Related Issues
Screenshots or Screen Recordings
Before
KYP Queue visible in Queues
Patients routed to KYP after vitals
After
KYP Queue removed from Queues Patients directly routed to Consultation
How to Set Up and Validate Locally
-
Pull this branch
-
Run the project
bun install bun dev -
Navigate to Queues page
-
Complete Vitals for a patient
Expected behavior:
- "Know Your Patient Queue" should not be visible
- Patient should directly appear in Consultation Queue
Testing Done
-
Manual testing completed -
Unit tests added/updated
Test Cases Covered:
| Scenario | Expected Result | Status |
|---|---|---|
| KYP queue visibility | Not visible in Queues | |
| After vitals completion | Patient moves to Consultation | |
| Other queues functionality | Unaffected |
Code Quality Checklist
Code Standards
-
Code follows project conventions -
No console.log() or debugger statements -
No unused imports or variables -
No duplicate code -
ESLint and Prettier checks pass
React Best Practices
-
No unnecessary re-renders -
Proper state handling
API & Data Fetching
-
No API changes -
Existing logic preserved
Error Handling
-
No impact on error handling
Documentation
-
README.md updated -
.env.exampleupdated -
CHANGELOG.md updated



