@php // Helper function to get test data value $getData = function($key, $default = '') use ($testResult) { if (!$testResult || !$testResult->test_data) return $default; return data_get($testResult->test_data, $key, $default); }; // Helper function to format date $formatDate = function($date) { if (!$date) return '-'; try { return \Carbon\Carbon::parse($date)->format('d/m/Y'); } catch (\Exception $e) { return '-'; } }; @endphp

Ultrasound Examination

Pemeriksaan Ultrasound

@php $date = $getData('date'); $edd = $getData('edd'); $redd = $getData('redd'); $presentation = $getData('presentation'); $fhFm = $getData('fh_fm'); $crl = $getData('crl'); $bpd = $getData('bpd'); $hc = $getData('hc'); $ac = $getData('ac'); $fl = $getData('fl'); $efw = $getData('estimated_fetal_weight'); $placenta = $getData('placenta'); $afi = $getData('afi'); $remarks = $getData('remarks'); $hasData = $date || $edd || $presentation || $bpd || $hc || $ac || $fl; @endphp @if($hasData)

Examination Date

Date of ultrasound examination

{{ $formatDate($date) }}

Jangkamasa Kandungan

Gestational age and expected delivery dates

@if($edd) {{ $formatDate($edd) }} @else Not recorded @endif
@if($redd) {{ $formatDate($redd) }} @else Not recorded @endif

Fetal Presentation & Heart

Baby's position and heart activity

{{ $presentation ?: 'Not recorded' }}
{{ $fhFm ?: 'Not recorded' }}

Fetal Measurements

Biometric measurements of your baby

@if($crl) {{ $crl }} cm @else Not recorded @endif
@if($bpd) {{ $bpd }} cm @else Not recorded @endif
@if($hc) {{ $hc }} cm @else Not recorded @endif
@if($ac) {{ $ac }} cm @else Not recorded @endif
@if($fl) {{ $fl }} cm @else Not recorded @endif
@if($efw) {{ $efw }} g @else Not recorded @endif

Placenta & Amniotic Fluid

Placental position and amniotic fluid assessment

{{ $placenta ?: 'Not recorded' }}
@if($afi) {{ $afi }} cm @else Not recorded @endif
@if($remarks)

Ulasan

Additional remarks and observations

{{ $remarks }}
@endif @else

No ultrasound examination data recorded yet

@endif
Back to Health Record