@php // Helper function to safely get nested data $getData = function($key, $default = '-') use ($testData) { $value = data_get($testData, $key, $default); return $value === '' || $value === null ? $default : $value; }; @endphp
@switch($testType) @case('antenatal_blood')

Antenatal Blood Screening Results

Test Name Date Taken Result
Rhesus blood group{{ $getData('rhesus_blood_group.taken_at') }}{{ $getData('rhesus_blood_group.result') }}
VDRL/TPHA{{ $getData('vdrl_tpha.taken_at') }}{{ $getData('vdrl_tpha.result') }}
Syphilis (Ibu){{ $getData('syphilis_ibu.taken_at') }}{{ $getData('syphilis_ibu.result') }}
Syphilis (Pasangan){{ $getData('syphilis_pasangan.taken_at') }}{{ $getData('syphilis_pasangan.result') }}
HIV (Ibu){{ $getData('hiv_ibu.taken_at') }}{{ $getData('hiv_ibu.result') }}
HIV (Pasangan){{ $getData('hiv_pasangan.taken_at') }}{{ $getData('hiv_pasangan.result') }}
Hepatitis B{{ $getData('hepatitis_b.taken_at') }}{{ $getData('hepatitis_b.result') }}
Malaria{{ $getData('malaria.taken_at') }}{{ $getData('malaria.result') }}
@break @case('immunization')

Immunization Status

Tetanus/Toxoid

Dos 1
Date: {{ $getData('tetanus_dos_1.injection_date') }}
Batch: {{ $getData('tetanus_dos_1.batch_no') }}
Expiry: {{ $getData('tetanus_dos_1.expiry_date') }}
Dos 2
Date: {{ $getData('tetanus_dos_2.injection_date') }}
Batch: {{ $getData('tetanus_dos_2.batch_no') }}
Expiry: {{ $getData('tetanus_dos_2.expiry_date') }}
Dos Tambahan
Date: {{ $getData('tetanus_dos_tambahan.injection_date') }}
Batch: {{ $getData('tetanus_dos_tambahan.batch_no') }}
Expiry: {{ $getData('tetanus_dos_tambahan.expiry_date') }}
@if($getData('show_other_immunizations') === '1')

Other Immunizations

{{ $getData('lain_lain_1') }}
{{ $getData('lain_lain_2') }}
@endif
@break @case('medical_checkup')

Medical Checkup (RME)

Height: {{ $getData('height') }} cm
BMI: {{ $getData('bmi') }} kg/m²

RME 1 Findings

Pink/Pallor: {{ $getData('rme1.pink_pallor') }}
Jaundice: {{ $getData('rme1.jaundice') }}
BP: {{ $getData('rme1.bp') }}
Pulse: {{ $getData('rme1.pulse') }}
Breast: {{ $getData('rme1.breast') }}
Lungs: {{ $getData('rme1.lungs') }}
Abdomen: {{ $getData('rme1.abdomen') }}
SFH: {{ $getData('rme1.sfh') }}
FHR: {{ $getData('rme1.fhr') }}
Oedema: {{ $getData('rme1.oedema') }}
@break @case('ogtt')

OGTT Screening

Risk Factors

    @if($getData('criteria.age_35') === '1')
  • Age ≥35 years
  • @endif @if($getData('criteria.bmi_27') === '1')
  • BMI ≥27 kg/m²
  • @endif @if($getData('criteria.family_history') === '1')
  • Family history of diabetes
  • @endif @if($getData('criteria.previous_gdm') === '1')
  • Previous GDM
  • @endif @if($getData('criteria.previous_macrosomia') === '1')
  • Previous macrosomia
  • @endif @if($getData('criteria.glycosuria') === '1')
  • Glycosuria
  • @endif @if($getData('criteria.polyhydramnios') === '1')
  • Polyhydramnios
  • @endif @if($getData('criteria.current_macrosomia') === '1')
  • Current macrosomia
  • @endif

OGTT Results

@for($i = 1; $i <= 4; $i++) @endfor
Date POG FBS 2HPP
{{ $getData('ogtt_results.' . $i . '.date') }} {{ $getData('ogtt_results.' . $i . '.pog') }} {{ $getData('ogtt_results.' . $i . '.fbs') }} {{ $getData('ogtt_results.' . $i . '.2hpp') }}

Diagnosis

{{ $getData('diagnosis', 'Not specified') }}
@break @case('blood_sugar_monitoring')

Blood Sugar Monitoring

@for($i = 1; $i <= 12; $i++) @if($getData('monitoring.' . $i . '.date') !== '-') @endif @endfor
Date Breakfast Lunch Dinner Pre Bed Notes
{{ $getData('monitoring.' . $i . '.date') }} {{ $getData('monitoring.' . $i . '.breakfast') }} {{ $getData('monitoring.' . $i . '.lunch') }} {{ $getData('monitoring.' . $i . '.dinner') }} {{ $getData('monitoring.' . $i . '.pre_bed') }} {{ $getData('monitoring.' . $i . '.notes') }}
@break @case('blood_pressure_monitoring')

Blood Pressure Monitoring

@for($i = 1; $i <= 10; $i++) @if($getData('bp_monitoring.' . $i . '.date') !== '-') @endif @endfor
Date Time Symptoms BP FHR Urine Protein
{{ $getData('bp_monitoring.' . $i . '.date') }} {{ $getData('bp_monitoring.' . $i . '.time') }} {{ $getData('bp_monitoring.' . $i . '.symptoms') }} {{ $getData('bp_monitoring.' . $i . '.blood_pressure') }} {{ $getData('bp_monitoring.' . $i . '.fetal_heart_rate') }} {{ $getData('bp_monitoring.' . $i . '.urine_protein') }}
@break @default

Test data display not yet implemented for this test type.

Test Type: {{ $testType }}

@endswitch