From c9f378870e12b8ae1219a109fe366f4fa5d31de0 Mon Sep 17 00:00:00 2001 From: DevSoftTech Server Date: Thu, 8 Oct 2026 10:26:43 +0530 Subject: [PATCH] fix(abdm): define dateStr in health_records loop of findCareContextsForPatient --- app/Controllers/AbdmGateway.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Controllers/AbdmGateway.php b/app/Controllers/AbdmGateway.php index d735896..efed66f 100644 --- a/app/Controllers/AbdmGateway.php +++ b/app/Controllers/AbdmGateway.php @@ -7132,6 +7132,8 @@ class AbdmGateway extends BaseController 'InvoiceRecord' => 'Invoice - ', default => $hiType . ' - ', }; + $rawDate = (string) ($row['created_at'] ?? $row['updated_at'] ?? 'now'); + $dateStr = date('d M Y', strtotime($rawDate)); $display = $friendlyType . $dateStr; $addContext([