CuraLink Family Health Profile
Household Name {{ $family->name }} Family Code {{ $family->family_code }}
Family Number {{ $family->family_number ?? 'N/A' }} CuraLink Family Score {{ $family->family_health_score ?? 0 }} ({{ $family->family_health_risk_level ?? 'Low Risk' }})
GPS Location {{ $family->gps_location ?? 'N/A' }} Registration Date {{ $family->registration_date?->format('Y-m-d') ?? 'N/A' }}
Registered By {{ $family->registeredBy->name ?? 'N/A' }} Allocated Doctor {{ $family->doctor->user->name ?? 'None Allocated' }}
Village / Compound {{ $family->village->name }} Ward {{ $family->village->ward->name ?? 'N/A' }}
District / Province {{ $family->village->ward->constituency->district->name ?? 'N/A' }} / {{ $family->village->ward->constituency->district->province->name ?? 'N/A' }}
Household Head Information
Head of Household {{ $family->head_name ?? 'N/A' }} National ID / NRC {{ $family->head_national_id ?? 'N/A' }}
Phone Number {{ $family->head_phone ?? 'N/A' }} Gender / Age {{ ucfirst($family->head_gender ?? 'N/A') }} @if($family->head_date_of_birth) / {{ $family->head_date_of_birth->age }} years old @endif
Occupation {{ $family->head_occupation ?? 'N/A' }} Education Level {{ $family->head_educational_level ?? 'N/A' }}
Household Structure & Socioeconomics
Family Type {{ $family->family_type ?? 'N/A' }} Lifecycle Stage {{ $family->family_lifecycle_stage ?? 'N/A' }}
House Type {{ $family->house_type ?? 'N/A' }} House Ownership {{ $family->house_ownership ?? 'N/A' }}
Water Source {{ $family->water_source ?? 'N/A' }} ({{ $family->water_distance ?? 'N/A' }}) Toilet Facility {{ $family->toilet_facility ?? 'N/A' }}
Waste Disposal {{ $family->waste_disposal ?? 'N/A' }} Electricity Access {{ $family->electricity_access ?? 'N/A' }}
Health Index Codes
Circunscripción No. {{ $family->circunscripcion_number ?? 'N/A' }}
CDR (Committee) Number {{ $family->cdr_number ?? 'N/A' }}
EBS (Basic Health) Team No. {{ $family->ebs_number ?? 'N/A' }}
CuraLink Household Composition - {{ $family->name }}
Household Composition (Members)
@forelse($family->patients as $patient) @empty @endforelse
CuraLink ID Name Age/Gender Relation Chronic Burden Risk Group
{{ $patient->curalink_patient_number ?? 'N/A' }} {{ $patient->name }} {{ $patient->date_of_birth->age }} yrs / {{ ucfirst(substr($patient->gender, 0, 1)) }} {{ ucfirst($patient->relationship_to_head ?? 'Member') }} @forelse($patient->medical_history_diseases ?? [] as $dis) {{ $dis }} @empty None @endforelse @if($patient->dispensary_group) {{ $patient->dispensary_group }} @else N/A @endif
No members registered in this family.
Situation Analysis (ASIS Priorities)
Health Problems Identified @forelse($family->asis_health_problems ?? [] as $prob) {{ is_array($prob) ? implode(', ', $prob) : $prob }} @empty None listed. @endforelse
Priority Problems @forelse($family->asis_priority_problems ?? [] as $pri) @if(is_array($pri)) {{ is_array($pri['problem'] ?? null) ? implode(', ', $pri['problem']) : ($pri['problem'] ?? 'N/A') }} (Risk: {{ is_array($pri['risk_level'] ?? null) ? implode(', ', $pri['risk_level']) : ($pri['risk_level'] ?? 'N/A') }}) - Intervention: {{ is_array($pri['intervention'] ?? null) ? implode(', ', $pri['intervention']) : ($pri['intervention'] ?? 'N/A') }}
@else {{ is_array($pri) ? implode(', ', $pri) : $pri }}
@endif @empty None prioritized. @endforelse
Determinants of Health @forelse($family->asis_determinants ?? [] as $det) {{ is_array($det) ? implode(', ', $det) : $det }} @empty None listed. @endforelse
Family Health Action & Care Plan
Preventive / Promotion Actions Clinical Follow-ups Required Community/Environmental Interventions
@forelse($family->care_plan_preventive_actions ?? [] as $act) • {{ is_array($act) ? implode(', ', $act) : $act }}
@empty No actions scheduled. @endforelse
@forelse($family->care_plan_clinical_followups ?? [] as $fup) @if(is_array($fup)) • {{ is_array($fup['member'] ?? null) ? implode(', ', $fup['member']) : ($fup['member'] ?? 'N/A') }} - {{ is_array($fup['condition'] ?? null) ? implode(', ', $fup['condition']) : ($fup['condition'] ?? 'N/A') }} ({{ is_array($fup['date'] ?? null) ? implode(', ', $fup['date']) : ($fup['date'] ?? 'N/A') }} | {{ is_array($fup['worker'] ?? null) ? implode(', ', $fup['worker']) : ($fup['worker'] ?? 'N/A') }})
@else • {{ is_array($fup) ? implode(', ', $fup) : $fup }}
@endif @empty No followups scheduled. @endforelse
@forelse($family->care_plan_community_interventions ?? [] as $int) • {{ is_array($int) ? implode(', ', $int) : $int }}
@empty No interventions scheduled. @endforelse