feat(volunteer): add KYP, prescriptions, verify medicines, and counseling queue workflows
Use this:
Title
feat(volunteer): add KYP, prescriptions, verify medicines, and counseling queue workflows
Description
This MR updates the volunteer frontend flow to match the new queue-based patient journey across KYP, prescriptions, medicine verification, and counseling.
Updated workflow: vitals -> know_your_patient -> waiting -> in_consultation -> consultation_completed -> medicine_prescribed -> medicine_verified -> counselling_done
What changed:
- Added
Know Your Patient Queueso patients move toknow_your_patientafter vitals instead of going directly to waiting - Updated KYP flow so opening from the queue auto-loads the patient by
bookNo - Updated KYP submission flow so completing the form moves the patient from
know_your_patienttowaitingand redirects back to the KYP queue - Added a separate
Prescriptions Queuefor patients inconsultation_completed - Updated prescriptions flow so queue action opens the prescription page with the patient preloaded
- Added a separate
Verify Medicines Queuefor patients inmedicine_prescribed - Updated verify medicines flow so successful completion updates queue status to
medicine_verifiedand redirects back to the verify medicines queue - Added a separate
Counseling Queuefor patients inmedicine_verified - Updated counseling flow so queue action opens the counseling page with the patient preloaded
- Updated counseling completion flow so it marks the visit as
counselling_done, updates queue status tocounselling_done, removes the patient from the counseling queue, and redirects back to the counseling queue - Added separate volunteer dashboard/menu buttons for queue pages and action pages where needed
Why:
- Patients should move through each operational queue in the correct order
- Volunteers need separate queue views and action pages for each step
- Status transitions now align with backend queue/status rules and make frontend queue handling straightforward
Verification:
- Targeted ESLint checks passed
- Production build passed with
npm run build
Edited by Lakshy Yarlagadda