Project

General

Profile

Actions

Bug #636

open
JJ JJ

Doctor Desktop consultation screen should reuse the same component as OPD’s consultation tab (not a separate re-implementation)

Bug #636: Doctor Desktop consultation screen should reuse the same component as OPD’s consultation tab (not a separate re-implementation)

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

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

0%

Estimated time:
Resolved By:

Description

Description: OPD’s consultation/prescription screen is the updated, actively maintained version. Doctor Desktop currently has its own separate implementation of the same screen, which has drifted out of sync — wrong tab order, missing “Add vitals before consultation” support, missing Contact Details, missing drug stock info, missing real-time drug interaction checks, missing follow-up scheduling, missing the investigation-at-review section, and a collapsed “Advice for patient” field. Rather than fixing each gap individually (which will keep recurring as OPD evolves), Doctor Desktop should consume the same shared component/module as OPD for this screen. That way, any future change made to the OPD consultation tab automatically reflects on Doctor Desktop too, and the two never diverge again.

Steps:

Open the same patient’s consultation in OPD and in Doctor Desktop side by side.
Compare tab order, sidebar sections, and the Prescription tab content on both.
Note that both screens are built and maintained separately rather than sharing one component.

Older Result: Doctor Desktop has its own independently built consultation/prescription screen. It currently differs from OPD in several ways (tab order, vitals entry rules, contact details section, drug stock visibility, interaction checking, follow-up scheduling, investigation-at-review, advice field state) and any future OPD update won’t carry over automatically, since it’s a separate codebase/component.

New Result: Doctor Desktop’s consultation and prescription screen should be built from the same shared component used by OPD, so it always looks and behaves identically to OPD. A change made to the OPD consultation tab (new field, reordered tab, new check) should automatically appear on Doctor Desktop as well, with no separate fix needed.

Mockup: Use the current OPD consultation/prescription tab (Vitals → History → Problems → Consultation → Prescription tab order; vitals addable pre-consultation; Contact Details card; drug stock badges in search; interaction-check card with severity; Follow-up “+ Schedule”; Investigation at review section; expanded Advice for patient) as the reference design for Doctor Desktop.

S- Updated by SK - 14 days ago Actions #1

  • Assignee changed from Fiza M. to Roshni Harish.

Already shipped on dev (merged 2026-10-28, commit 7014c16, before this review pass): Doctor's /consultation/[visitId] page now imports and renders OPD's actual consultation page (scripts/sync-opd-consultation.mjs copies it plus every transitive import and OPD's own tests into src/opd, patched only where Doctor's routes differ). Re-ran the sync against OPD's current dev tip during this pass; only the sync's own commit pointer changed, confirming it is current. Full doctor portal suite green (4543/4543 before this round's further changes). Reassigning to Roshni to verify 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