Feat/vitals queue workflow
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
vitalsstatus to QueueStatusEnum - Create
VitalsQueuePagecomponent - Enhance
RecordVitalsPagewith auto-load and sequential API calls - Update
PatientCardwith vitals badge and buttons - Add vitals queue route and dashboard button
- Add vitals validation to ConsultationQueuePage
Testing
- Navigate to
/volunteer/vitals-queue - Click "Complete Vitals" → navigate to
/volunteer/record-vitals?bookNo=<n>with patient auto-loaded - Fill vitals and save → verify POST then PUT in DevTools Network
- Confirm redirect to vitals queue and patient appears in consultation queue
- Attempt to start consultation on
vitalspatient → blocked
Validation
-
TypeScript: 0 errors ( npx tsc --noEmit) -
Build passes ( bun run build) -
No breaking changes -
Backend aware of API usage