From 7298e826c32703890391c4584ddcaa7a0e36fda7 Mon Sep 17 00:00:00 2001 From: oriondigitaltz Date: Fri, 12 Jun 2026 11:47:36 +0300 Subject: [PATCH] fix: update encounter document retrieval method in get_healthcare_services_to_invoice (cherry picked from commit 9f831dd1ddae74d7ef1e6296b1ee9e462e9a6cf5) --- hms_tz/nhif/api/healthcare_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hms_tz/nhif/api/healthcare_utils.py b/hms_tz/nhif/api/healthcare_utils.py index a68fcc63..059fc808 100644 --- a/hms_tz/nhif/api/healthcare_utils.py +++ b/hms_tz/nhif/api/healthcare_utils.py @@ -96,7 +96,7 @@ def get_healthcare_services_to_invoice( if not inpatient_record and i.inpatient_record: inpatient_record = i.inpatient_record - encounter_doc = frappe.get_cached_doc("Patient Encounter", i.name) + encounter_doc = frappe.get_doc("Patient Encounter", i.name) if not appointment and encounter_doc.appointment: appointment = encounter_doc.appointment