BondaCare

Maternal Health Management System
VTE RISK ASSESSMENT
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 '-'; } }; $preExistingFactors = [ ['name' => 'Previous VTE', 'score' => 4, 'key' => 'previous_vte'], ['name' => 'High risk thrombophilia', 'score' => 3, 'key' => 'high_risk_thrombophilia'], ['name' => 'Medical comorbidities', 'score' => 3, 'key' => 'medical_comorbidities'], ['name' => 'Obesity: BMI ≥40kg/m²', 'score' => 2, 'key' => 'obesity_40'], ['name' => 'Obesity: BMI 30–39 kg/m²', 'score' => 1, 'key' => 'obesity_30_39'], ['name' => 'Family history of VTE', 'score' => 1, 'key' => 'family_history_vte'], ['name' => 'Low risk thrombophilia', 'score' => 1, 'key' => 'low_risk_thrombophilia'], ['name' => 'Current smoker ≥10/day', 'score' => 1, 'key' => 'current_smoker'], ['name' => 'Gross varicose veins', 'score' => 1, 'key' => 'varicose_veins'], ]; $obstetricFactors = [ ['name' => 'Caesarean section', 'score' => 2, 'key' => 'caesarean_section'], ['name' => 'Pre eclampsia', 'score' => 1, 'key' => 'preeclampsia'], ['name' => 'IVF (1st trimester risk only)', 'score' => 1, 'key' => 'ivf_first_trimester'], ['name' => 'Rotational instrumental delivery', 'score' => 1, 'key' => 'rotational_delivery'], ['name' => 'PPH ≥1000mls / requires transfusion', 'score' => 1, 'key' => 'pph'], ['name' => 'Stillbirth (current)', 'score' => 1, 'key' => 'stillbirth'], ['name' => 'Prolonged labour >24h', 'score' => 1, 'key' => 'prolonged_labour'], ]; $transientFactors = [ ['name' => 'Surgical procedures', 'score' => 4, 'key' => 'surgical_procedures'], ['name' => 'Hyperemesis gravidarum / OHSS', 'score' => 4, 'key' => 'hyperemesis_ohss'], ['name' => 'Systemic / Postpartum infection', 'score' => 1, 'key' => 'systemic_infection'], ['name' => 'Immobility / Admission >3 days', 'score' => 1, 'key' => 'immobility_admission'], ['name' => 'Long distance travel >4h', 'score' => 1, 'key' => 'long_distance_travel'], ]; // Calculate scores $preScore = 0; $admissionScore = 0; $postScore = 0; foreach (array_merge($preExistingFactors, $obstetricFactors, $transientFactors) as $factor) { if ($getData('vte_data.' . $factor['key'] . '_pre')) { $preScore += $factor['score']; } if ($getData('vte_data.' . $factor['key'] . '_admission')) { $admissionScore += $factor['score']; } if ($getData('vte_data.' . $factor['key'] . '_post')) { $postScore += $factor['score']; } } @endphp @if($getData('assessment_date'))
Assessment Date: {{ $formatDate($getData('assessment_date')) }}
@endif
VTE Risk Factors Assessment
@foreach($preExistingFactors as $factor) @endforeach @foreach($obstetricFactors as $factor) @endforeach @foreach($transientFactors as $factor) @endforeach
VTE risk factors VTE score Tick if present
Pre-pregnancy/
Booking
Admission/
New Illness
Post delivery
PRE-EXISTING RISK FACTORS
{{ $factor['name'] }} {{ $factor['score'] }} {{ $getData('vte_data.' . $factor['key'] . '_pre') ? '✓' : '' }} {{ $getData('vte_data.' . $factor['key'] . '_admission') ? '✓' : '' }} {{ $getData('vte_data.' . $factor['key'] . '_post') ? '✓' : '' }}
OBSTETRIC RISK FACTORS
{{ $factor['name'] }} {{ $factor['score'] }} {{ $getData('vte_data.' . $factor['key'] . '_pre') ? '✓' : '' }} {{ $getData('vte_data.' . $factor['key'] . '_admission') ? '✓' : '' }} {{ $getData('vte_data.' . $factor['key'] . '_post') ? '✓' : '' }}
TRANSIENT RISK FACTORS
{{ $factor['name'] }} {{ $factor['score'] }} {{ $getData('vte_data.' . $factor['key'] . '_pre') ? '✓' : '' }} {{ $getData('vte_data.' . $factor['key'] . '_admission') ? '✓' : '' }} {{ $getData('vte_data.' . $factor['key'] . '_post') ? '✓' : '' }}
TOTAL SCORE {{ $preScore }} {{ $admissionScore }} {{ $postScore }}
Risk Interpretation
@if($getData('vte_data.additional_notes'))
Additional Clinical Notes
{{ $getData('vte_data.additional_notes') }}
@endif @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