Skip to content

Feat/vitals queue workflow

Kushal Lagichetty requested to merge feat/vitals-queue-workflow into develop

Related Issue: Closes #120 (closed)

Summary

Implements mandatory vitals recording workflow. Patients must record vitals before entering consultation. Adds Vitals Queue page, auto-loads patients in vitals form, sequences API calls, and prevents consultation start without vitals.

Changes

  • Add vitals status to QueueStatusEnum
  • Create VitalsQueuePage component
  • Enhance RecordVitalsPage with auto-load and sequential API calls
  • Update PatientCard with vitals badge and buttons
  • Add vitals queue route and dashboard button
  • Add vitals validation to ConsultationQueuePage

Testing

  1. Navigate to /volunteer/vitals-queue
  2. Click "Complete Vitals" → navigate to /volunteer/record-vitals?bookNo=<n> with patient auto-loaded
  3. Fill vitals and save → verify POST then PUT in DevTools Network
  4. Confirm redirect to vitals queue and patient appears in consultation queue
  5. Attempt to start consultation on vitals patient → blocked

Validation

  • TypeScript: 0 errors (npx tsc --noEmit)
  • Build passes (bun run build)
  • No breaking changes
  • Backend aware of API usage

Merge request reports

Loading