fix(abdm): define dateStr in health_records loop of findCareContextsForPatient

This commit is contained in:
DevSoftTech Server 2026-10-08 10:26:43 +05:30
parent d949eca6a8
commit c9f378870e

View File

@ -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([