From 49f6a8327dc8833fbeb31d88a63a18b4790a139c Mon Sep 17 00:00:00 2001 From: DevSoftTech Server Date: Wed, 7 Oct 2026 09:50:16 +0530 Subject: [PATCH] fix(abdm): select entity_type in health_records to discover standalone wellness care contexts --- app/Controllers/AbdmGateway.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/AbdmGateway.php b/app/Controllers/AbdmGateway.php index 541da2a..3b5dc90 100644 --- a/app/Controllers/AbdmGateway.php +++ b/app/Controllers/AbdmGateway.php @@ -6451,7 +6451,7 @@ class AbdmGateway extends BaseController // 2. Query health_records table (persisted FHIR bundles) if ($this->db->tableExists('health_records')) { $rows = $this->db->table('health_records') - ->select('id, patient_id, abha_id, hi_type, care_context_reference, created_at, updated_at') + ->select('id, patient_id, abha_id, hi_type, entity_type, care_context_reference, created_at, updated_at') ->where('patient_id', $patientId) ->orderBy('id', 'DESC') ->limit(100)