fix(abdm): define reportHtml before attachment check in buildLabReportBundle

This commit is contained in:
DevSoftTech Server 2026-10-08 09:37:00 +05:30
parent e86e73d792
commit 0cd0b6c6fc

View File

@ -988,6 +988,7 @@ class FhirR4Builder
$pdfData = '';
$mediaRef = null;
$reportHtml = trim((string) ($diagnosticReport['report_html'] ?? ''));
$hasAttachment = ($attachment !== null && ! empty($attachment['data_base64']));
$docRefSnomedCode = $isImaging ? '371531008' : '4241000179101';
$docRefSnomedDisplay = $isImaging ? 'Report of radiological study' : 'Laboratory report';