BondaCare

Maternal Health Management System
ANTENATAL BLOOD SCREENING
Patient Name: {{ $record->mother->expectantMother->mother_full_name ?? $record->mother->name }} IC Number: {{ $record->mother->expectantMother->ic_number ?? 'N/A' }}
Visit Date: {{ $record->visit_date->format('d/m/Y') }} Color Code: {{ strtoupper($record->mother->expectantMother->current_color_code ?? $record->mother->expectantMother->color_code ?? 'WHITE') }}
@php $getData = function($key, $default = '') use ($testResult) { if (!$testResult || !$testResult->test_data) return $default; return data_get($testResult->test_data, $key, $default); }; $formatDate = function($date) { if (!$date) return '-'; try { return \Carbon\Carbon::parse($date)->format('d/m/Y'); } catch (\Exception $e) { return '-'; } }; @endphp
Blood Screening Results
Test Name First Test Second Test
Date Result Date Result
Kumpulan darah Rhesus {{ $formatDate($getData('rhesus_blood_group.taken_at_1')) }} {{ $getData('rhesus_blood_group.result_1') ?: '-' }} {{ $formatDate($getData('rhesus_blood_group.taken_at_2')) }} {{ $getData('rhesus_blood_group.result_2') ?: '-' }}
VDRL +/- TPHA {{ $formatDate($getData('vdrl_tpha.taken_at_1')) }} {{ $getData('vdrl_tpha.result_1') ?: '-' }} {{ $formatDate($getData('vdrl_tpha.taken_at_2')) }} {{ $getData('vdrl_tpha.result_2') ?: '-' }}
Syphilis / Rapid Test (Ibu) {{ $formatDate($getData('syphilis_rapid_ibu.taken_at_1')) }} {{ $getData('syphilis_rapid_ibu.result_1') ?: '-' }} {{ $formatDate($getData('syphilis_rapid_ibu.taken_at_2')) }} {{ $getData('syphilis_rapid_ibu.result_2') ?: '-' }}
Syphilis / Rapid Test (Pasangan) {{ $formatDate($getData('syphilis_rapid_pasangan.taken_at_1')) }} {{ $getData('syphilis_rapid_pasangan.result_1') ?: '-' }} {{ $formatDate($getData('syphilis_rapid_pasangan.taken_at_2')) }} {{ $getData('syphilis_rapid_pasangan.result_2') ?: '-' }}
HIV / Rapid Test (Ibu) {{ $formatDate($getData('hiv_rapid_ibu.taken_at_1')) }} {{ $getData('hiv_rapid_ibu.result_1') ?: '-' }} {{ $formatDate($getData('hiv_rapid_ibu.taken_at_2')) }} {{ $getData('hiv_rapid_ibu.result_2') ?: '-' }}
HIV / Rapid Test (Pasangan) {{ $formatDate($getData('hiv_rapid_pasangan.taken_at_1')) }} {{ $getData('hiv_rapid_pasangan.result_1') ?: '-' }} {{ $formatDate($getData('hiv_rapid_pasangan.taken_at_2')) }} {{ $getData('hiv_rapid_pasangan.result_2') ?: '-' }}
Hepatitis B {{ $formatDate($getData('hepatitis_b.taken_at_1')) }} {{ $getData('hepatitis_b.result_1') ?: '-' }} {{ $formatDate($getData('hepatitis_b.taken_at_2')) }} {{ $getData('hepatitis_b.result_2') ?: '-' }}
Malaria (BFMP) {{ $formatDate($getData('malaria_bfmp.taken_at_1')) }} {{ $getData('malaria_bfmp.result_1') ?: '-' }} {{ $formatDate($getData('malaria_bfmp.taken_at_2')) }} {{ $getData('malaria_bfmp.result_2') ?: '-' }}
@if($testResult && ($testResult->performedByNurse->name || $testResult->signature_data))
Nurse Information
Nurse Name: {{ $testResult->performedByNurse->name ?? 'N/A' }}
Date Recorded: {{ $testResult->performed_at ? \Carbon\Carbon::parse($testResult->performed_at)->format('d/m/Y H:i') : 'N/A' }}
@if($testResult->signature_data)
Signature:
Nurse Signature
@endif
@endif