Skip to content

feat/vitals status update

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

Related Issue

Closes #6 (closed)

feat(backend): introduce vitals queue workflow

Description

This merge request introduces a dedicated Vitals Queue and the vitals workflow state to ensure patients undergo mandatory vitals checks before entering a doctor’s consultation queue.

Previously, patients were directly placed into a doctor’s waiting queue upon assignment, bypassing the vitals stage. This change enforces a structured and predictable patient flow and prevents doctors from seeing patients whose vitals are not yet recorded.

Summary of Changes

  • Introduced a new queue state vitals
  • Queue endpoints and WebSocket rooms now include patients with status vitals and consultation_completed.
  • Patients are now placed in the Vitals Queue immediately after assignment
  • Automatic transition from vitals → waiting after successful vitals recording
  • Doctors only see patients who are consultation-ready (waiting or in_consultation), while the Vitals Queue view shows patients in vitals.

Checklist

  • Code follows project API guidelines.
  • The feature has been fully implemented.
  • Tests for the new feature are included and passing.
  • Impact on existing functionality has been considered.
  • Code adheres to project coding standards.
Edited by Kushal Lagichetty

Merge request reports

Loading