Bug #636
openDoctor Desktop consultation screen should reuse the same component as OPD’s consultation tab (not a separate re-implementation)
0%
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
- 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.
RH Updated by Roshni Harish. 11 days ago
- Assignee changed from Roshni Harish. to Jessin J