Skip to content

feat(volunteer): add KYP, prescriptions, verify medicines, and counseling queue workflows

Lakshy Yarlagadda requested to merge feat/adding_multiple_branches into develop

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 Queue so patients move to know_your_patient after 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_patient to waiting and redirects back to the KYP queue
  • Added a separate Prescriptions Queue for patients in consultation_completed
  • Updated prescriptions flow so queue action opens the prescription page with the patient preloaded
  • Added a separate Verify Medicines Queue for patients in medicine_prescribed
  • Updated verify medicines flow so successful completion updates queue status to medicine_verified and redirects back to the verify medicines queue
  • Added a separate Counseling Queue for patients in medicine_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 to counselling_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

Merge request reports

Loading