Project

General

Profile

Actions

Bug #638

open
JJ JJ

Doctor Desktop’s patient record page should use the same component as OPD’s patient details page

Bug #638: Doctor Desktop’s patient record page should use the same component as OPD’s patient details page

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 patient page (Patients → patient details) is the updated version and organizes patient information differently and more completely than Doctor Desktop’s “My Patients” → patient record page. The two are clearly separate, independently-built screens for the same underlying patient, so they’ve drifted apart in both structure and content. Doctor Desktop should consume the same shared component OPD uses for the patient details screen, so patient information stays identical and in sync between the two apps going forward.

Steps:

In OPD, go to Patients, search for a patient (e.g. “Jessin”), and open their details page.
In Doctor Desktop, go to “My Patients” and open the same patient’s record.
Compare the layout, tabs, and information shown on both.

Older Result (Doctor Desktop — current):

Patient header shows only name, gender, age, MRN, ABHA, blood group, allergies — no DOB, no UHID.
No visit-status badge (e.g. “Visit in progress”) or balance-due indicator.
No action buttons (Register Visit, Book Appointment, Quick Bill, Edit, Print card).
No “Summary” card (total visits, completed, outstanding, total billed) and no “Contact” card (phone, address).
Tabs are: Snapshot, Timeline, Problems, Vitals, Labs, Imaging, Medications, Documents — a different tab set than OPD, with no Bills tab and no Follow-ups/Handovers.
Snapshot tab shows “No active medications recorded,” while OPD’s Medications tab shows 3 active medications for the same patient — data/content mismatch between the two screens.

New Result (OPD — expected on Doctor Desktop too):

Patient header includes DOB and UHID alongside MRN.
Clear visit-status badge and balance-due badge at the top.
Action buttons: Register Visit, Book Appointment, Quick Bill, Edit, Print card.
“Summary” card (total visits, completed, outstanding, total billed) and “Contact” card (phone, address) in the sidebar.
Tabs: Timeline, Labs, Bills, Medications, plus a “More” menu for Follow-ups, Handovers, Documents.
Medications tab correctly reflects the patient’s actual active medications (3), and Timeline shows a “Patient summary” overview plus a “Last visit” card with complaint, seen-by doctor, diagnosis, and active medicines.

Mockup: Use OPD’s Patients → patient details screen (header with DOB/UHID/status/balance, action buttons, Summary + Contact cards, Timeline/Labs/Bills/Medications tabs with More menu) as the reference design and data source for Doctor Desktop’s patient record page.

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

  • Assignee changed from Fiza M. to Roshni Harish.

Fixed. Doctor's 'My Patients' patient record page was a bespoke, smaller re-implementation; it now reuses OPD's actual patient-details page via the same sync-opd mechanism as #636 (extended scripts/sync-opd-consultation.mjs to also pull in OPD's patients/[id] page). New route is /record/[id]; the old /record?patientId= links keep working via a redirect shim, so no existing link in the app needed to change. The superseded bespoke implementation was deleted. Merged to dev (nuvita-doctor). Full suite green (398 files / 4487 tests), coverage unaffected. One residual gap for product/QA to watch: OPD's patient page has a Quick Bill button and a View-encounter link that point at routes Doctor Desktop does not have (/quick-bill, /encounters/{id}). Both are permission-gated in OPD's own code (opd.quickbill.read, opd.encounters.read) and should stay hidden for a doctor role that does not hold those keys - if either permission is ever granted to a Doctor role, that button will 404 until a follow-up decision is made (hide it for Doctor, build a thin Doctor page, or link out to OPD). Reassigning to Roshni to verify and close, and to flag that residual gap if relevant for the Doctor role's permission set.

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