Project

General

Profile

Actions

Bug #823

open
AV FM

Patient Record: "Open visit" on a past visit shows "Consultation not found."

Bug #823: Patient Record: "Open visit" on a past visit shows "Consultation not found."

Added by Alminta V. about 18 hours ago. Updated about 18 hours ago.

Status:
New
Priority:
High
Assignee:
Target version:
-
Start date:
11/12/2026
Due date:
% Done:

0%

Estimated time:
Resolved By:

Description

The "Open visit" link on a past (Completed) visit in Patient Record opens an empty Consultation page saying "Consultation not found."

Steps to Reproduce:

  1. Log in as Dr. Sravan VS (Vetri Vivega Medical Center).
  2. Open My Patients > amal prasad (MRN VVMC-000118), i.e. /doctor/record/118.
  3. On an older visit (e.g. 04 Nov 2026 or 30 Oct 2026, Completed, seen by Dr. K Karuppusamy), click "Open visit".

Expected Result: The visit opens (read-only for a completed visit) so the doctor can review what happened.

Actual Result: Browser goes to /doctor/consultation/360 and shows only a back arrow and "Consultation not found."

Notes:

  • The link is /consultation/{visit.id}; the Consultation page is OPD's page (src/opd, synced from nuvita-opd) and renders this message when its visit lookup returns nothing.
  • Not yet determined whether the cause is the visit belonging to another doctor, the visit being completed, or the id passed. Needs checking against the API response for visit 360.
  • Related: separate bug for "View encounter" on the same card (404 page).

Files

Actions

Also available in: PDF Atom