Skip to content

fix(patient-status): report only completed queue stages in status timeline

Banuri Koushik Reddy requested to merge feat/patient-routes-update into develop

Title (semantic)

fix(patient-status): report only completed queue stages in status timeline

Description

This merge request fixes a bug in the patient status endpoint.

The /patients/{book_no}/status route was returning the active queue stage as if it were already completed. Because of that:

  • patients still in the vitals queue were shown as having completed Vitals Collection
  • patients still in the know_your_patient queue were shown as having completed Know Your Patient

This change updates only the patient route logic so the endpoint returns completed stages only, while preserving the existing frontend mapping behavior.

Closes #

Merge request reports

Loading