BondaCare

Maternal Health Management System
OGTT 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 '-'; } }; // Criteria items $criteriaItems = [ ['key' => 'bmi_over_27', 'label' => 'BMI > 27 kg/m²'], ['key' => 'history_gdm', 'label' => 'History of GDM'], ['key' => 'family_diabetes', 'label' => 'Family history of diabetes mellitus'], ['key' => 'macrosomia_history', 'label' => 'Previous macrosomia (baby > 4kg)'], ['key' => 'bad_obstetric_history', 'label' => 'Bad obstetric history'], ['key' => 'glycosuria', 'label' => 'Glycosuria'], ['key' => 'current_obstetric_problems', 'label' => 'Current obstetric problems (polyhydramnios, macrosomia)'], ['key' => 'age_over_25', 'label' => 'Age > 25 years old'], ]; @endphp
Criteria for OGTT
@foreach($criteriaItems as $item) @endforeach
Criteria Selected
{{ $item['label'] }} @if($getData('criteria.' . $item['key']) == '1') @else - @endif
OGTT Test Results
Parameter Value
Date {{ $formatDate($getData('date')) }}
POG (Period of Gestation) {{ $getData('pog') ?: '-' }}
FBS (Fasting Blood Sugar) mmol/L {{ $getData('fbs') ?: '-' }}
2HPP (2 Hour Post Prandial) mmol/L {{ $getData('2hpp') ?: '-' }}
@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