Bug #632
openDoctor Desktop blocks saving vitals before consultation is started (OPD allows it)
0%
Description
Description: On OPD, a doctor can record a patient’s vitals before starting the consultation. On Doctor Desktop, the “Add vitals” button is visible and the entry modal opens normally, letting the doctor fill in values — but saving fails with an error because no consultation/encounter exists yet. This is inconsistent with OPD behavior and wastes the doctor’s data entry, since there’s no upfront indication that vitals can’t be saved until “Call Next”/consultation is started.
Steps:
Log in as a doctor and open a patient’s Consultation screen for a visit where the patient hasn’t been called in yet (status shows “Consultation not started” / “This patient hasn’t been called in yet”).
Click “Add vitals”.
Enter a value (e.g. Systolic BP: 118).
Click “Save vitals”.
Expected Result: Either (a) the doctor should be able to add vitals before consultation starts, same as OPD, or (b) if this is intentionally restricted, the “Add vitals” button/modal should be disabled or clearly messaged upfront (“Call next patient to start consultation before adding vitals”), rather than allowing data entry and failing only on save.
Actual Result: The “Add vitals” modal opens and accepts input normally. On clicking “Save vitals”, it fails with the error: “Consultation has not been started for this visit — no EMR encounter to write to.” The entered vitals are lost.
S- Updated by SK - 14 days ago
- Assignee changed from Fiza M. to Roshni Harish.
Already resolved as a side effect of #636. Doctor Desktop's consultation screen now renders OPD's actual consultation page verbatim (apps/portal/scripts/sync-opd-consultation.mjs, merged 2026-10-28). Vitals can be added before consultation starts, identical to OPD, since it is literally OPD's code. Verified present on current dev (nuvita-doctor). No separate fix needed - reassigning to Roshni to verify on the latest build and close.
RH Updated by Roshni Harish. 11 days ago
- Assignee changed from Roshni Harish. to Jessin J