fix(patient-status): report only completed queue stages in status timeline
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
vitalsqueue were shown as having completedVitals Collection - patients still in the
know_your_patientqueue were shown as having completedKnow 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 #