@if ($layout === 'horizontal')
{{
$appointment->patient->name ??
$appointment->patient->full_name
}}
{{
$appointment->patient->gender == 'male'
? 'Laki-laki'
: 'Perempuan'
}}
{{
$appointment->patient->birth_date
? $appointment->patient->birth_date->format('d-m-Y')
: '-'
}}
{{
$appointment->patient->detailed_age ?:
($appointment->patient->age
? $appointment->patient->age . ' tahun'
: '-')
}}
{{ $appointment->getJobPosition() }}
{{ $appointment->mcuPackage->name ?? '-' }}
@else
No. Registrasi
{{ $appointment->registration_number ?? '-' }}
No. Rekam Medis
{{ $appointment->patient->medical_record_number ?? '-' }}
Nama Pasien
{{
$appointment->patient->name ??
$appointment->patient->full_name
}}
Tanggal Lahir
@if ($appointment->patient->birth_date)
{{ $appointment->patient->birth_date->format('d-m-Y') }}
@else
Tidak tersedia
@endif
Usia
{{
$appointment->patient->detailed_age ?:
($appointment->patient->age
? $appointment->patient->age . ' tahun'
: 'Tidak tersedia')
}}
Jenis Kelamin
{{
$appointment->patient->gender == 'male'
? 'Laki-laki'
: 'Perempuan'
}}
Perusahaan
@php
$dispComp = $appointment->company ?? ($appointment->patient?->company ?? $appointment->mcuResult?->company);
@endphp
@if ($dispComp)
{{ $dispComp->name }}
@else
Individual
@endif
Jabatan
@php $appJobPos = $appointment->getJobPosition(); @endphp
@if ($appJobPos !== '-')
{{ $appJobPos }}
@else
Tidak tersedia
@endif
Paket MCU
{{ $appointment->mcuPackage->name ?? 'Tidak ada paket' }}
MCU Ke
@php
$mcuOrder = $appointment->patient
->appointments()
->where('status', '!=', 'cancelled')
->where(function ($q) use ($appointment) {
$q->where('appointment_date', '<', $appointment->appointment_date)->orWhere(function ($q2) use ($appointment) {
$q2->where('appointment_date', $appointment->appointment_date)->where('id', '<=', $appointment->id);
});
})
->count();
$previousMcu = $appointment->patient
->appointments()
->where('status', '!=', 'cancelled')
->where(function ($q) use ($appointment) {
$q->where('appointment_date', '<', $appointment->appointment_date)->orWhere(function ($q2) use ($appointment) {
$q2->where('appointment_date', $appointment->appointment_date)->where('id', '<', $appointment->id);
});
})
->orderByDesc('appointment_date')
->first();
@endphp
MCU ke-{{ $mcuOrder }}
@if ($previousMcu)
MCU Terakhir: {{ \App\Helpers\DateHelper::formatFull($previousMcu->appointment_date) }}
@else
Pertama kali
@endif
@if (!empty($additionalInfo))
@foreach ($additionalInfo as $label => $value)
{{ $label }}
{!! $value !!}
@endforeach
@endif
@endif
@if ($showPhysicalData && $layout !== 'horizontal')
Tinggi Badan
@if (isset($physicalExamResult) && $physicalExamResult && $physicalExamResult->height)
{{ $physicalExamResult->height }} cm
@elseif ($appointment->patient->height)
{{ $appointment->patient->height }} cm
@else
Belum diperiksa
@endif
Berat Badan
@if (isset($physicalExamResult) && $physicalExamResult && $physicalExamResult->weight)
{{ $physicalExamResult->weight }} kg
@elseif ($appointment->patient->weight)
{{ $appointment->patient->weight }} kg
@else
Belum diperiksa
@endif
BMI
@if (isset($physicalExamResult) && $physicalExamResult && $physicalExamResult->height && $physicalExamResult->weight)
@php
$heightInMeters = $physicalExamResult->height / 100;
$bmi = round($physicalExamResult->weight / ($heightInMeters * $heightInMeters), 1);
$bmiClass = '';
$bmiStatus = '';
if ($bmi < 18.5) {
$bmiClass = 'text-info';
$bmiStatus = 'Underweight';
} elseif ($bmi < 23) {
$bmiClass = 'text-success';
$bmiStatus = 'Normal';
} elseif ($bmi < 25) {
$bmiClass = 'text-warning';
$bmiStatus = 'Overweight';
} elseif ($bmi < 30) {
$bmiClass = 'text-danger';
$bmiStatus = 'Obesitas I';
} else {
$bmiClass = 'text-danger';
$bmiStatus = 'Obesitas II';
}
@endphp
{{ $bmi }}
{{ $bmiStatus }}
@elseif ($appointment->patient->height && $appointment->patient->weight)
@php
$heightInMeters = $appointment->patient->height / 100;
$bmi = round($appointment->patient->weight / ($heightInMeters * $heightInMeters), 1);
$bmiClass = '';
$bmiStatus = '';
if ($bmi < 18.5) {
$bmiClass = 'text-info';
$bmiStatus = 'Underweight';
} elseif ($bmi < 23) {
$bmiClass = 'text-success';
$bmiStatus = 'Normal';
} elseif ($bmi < 25) {
$bmiClass = 'text-warning';
$bmiStatus = 'Overweight';
} elseif ($bmi < 30) {
$bmiClass = 'text-danger';
$bmiStatus = 'Obesitas I';
} else {
$bmiClass = 'text-danger';
$bmiStatus = 'Obesitas II';
}
@endphp
{{ $bmi }}
{{ $bmiStatus }}
@else
Belum diperiksa
@endif
Tekanan Darah
@if (isset($physicalExamResult) &&
$physicalExamResult &&
$physicalExamResult->blood_pressure_systolic &&
$physicalExamResult->blood_pressure_diastolic)
@php
$systolic = $physicalExamResult->blood_pressure_systolic;
$diastolic = $physicalExamResult->blood_pressure_diastolic;
$bpClass = '';
$bpStatus = '';
// Disamakan dengan vital_signs.blade.php (88-109)
if ($systolic >= 140 || $diastolic >= 90) {
$bpClass = 'text-danger';
$bpStatus = 'Hipertensi';
} else {
$bpClass = 'text-success';
$bpStatus = 'Normal';
}
@endphp
{{ $systolic }}/{{ $diastolic }} mmHg
{{ $bpStatus }}
@else
Belum diperiksa
@endif
@endif