Project

General

Profile

Actions

Bug #632

open
JJ JJ

Doctor Desktop blocks saving vitals before consultation is started (OPD allows it)

Bug #632: Doctor Desktop blocks saving vitals before consultation is started (OPD allows it)

Added by Jessin J 16 days ago. Updated 11 days ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
ClinQ HMS Platform - Sprint 4
Start date:
10/28/2026
Due date:
% Done:

0%

Estimated time:
Resolved By:

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 Actions #1

  • 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.

JJ Updated by Jessin J 14 days ago Actions #2

  • Assignee changed from Roshni Harish. to Jessin J

S- Updated by SK - 13 days ago Actions #3

  • Status changed from New to Resolved
  • Assignee changed from Jessin J to Roshni Harish.
  • Resolved By set to SK -

RH Updated by Roshni Harish. 11 days ago Actions #4

  • Assignee changed from Roshni Harish. to Jessin J
Actions

Also available in: PDF Atom