fix(abdm): define reportHtml before attachment check in buildLabReportBundle
This commit is contained in:
parent
e86e73d792
commit
0cd0b6c6fc
|
|
@ -988,6 +988,7 @@ class FhirR4Builder
|
||||||
$pdfData = '';
|
$pdfData = '';
|
||||||
$mediaRef = null;
|
$mediaRef = null;
|
||||||
|
|
||||||
|
$reportHtml = trim((string) ($diagnosticReport['report_html'] ?? ''));
|
||||||
$hasAttachment = ($attachment !== null && ! empty($attachment['data_base64']));
|
$hasAttachment = ($attachment !== null && ! empty($attachment['data_base64']));
|
||||||
$docRefSnomedCode = $isImaging ? '371531008' : '4241000179101';
|
$docRefSnomedCode = $isImaging ? '371531008' : '4241000179101';
|
||||||
$docRefSnomedDisplay = $isImaging ? 'Report of radiological study' : 'Laboratory report';
|
$docRefSnomedDisplay = $isImaging ? 'Report of radiological study' : 'Laboratory report';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user