Tekanan Darah
@if ($result->blood_pressure_systolic && $result->blood_pressure_diastolic)
@php
$systolic = $result->blood_pressure_systolic;
$diastolic = $result->blood_pressure_diastolic;
if ($systolic >= 140 || $diastolic >= 90) {
$bp_status = 'Hipertensi';
$bp_class = 'text-danger';
} else {
$bp_status = 'Normal';
$bp_class = 'text-success';
}
@endphp
{{ $systolic }}/{{ $diastolic }} mmHg
{{ $bp_status }}
@else
-
@endif
Nadi
@if ($result->heart_rate)
@php
$hr = $result->heart_rate;
if ($hr < 60) {
$hr_status = 'Bradikardi';
$hr_class = 'text-warning';
} elseif ($hr > 100) {
$hr_status = 'Takikardi';
$hr_class = 'text-danger';
} else {
$hr_status = 'Normal';
$hr_class = 'text-success';
}
@endphp
{{ $hr }} x/mnt
{{ $hr_status }}
@else
-
@endif
Respirasi
@if ($result->respiratory_rate)
@php
$rr = $result->respiratory_rate;
if ($rr < 12) {
$rr_status = 'Bradipnea';
$rr_class = 'text-warning';
} elseif ($rr > 24) {
$rr_status = 'Takipnea';
$rr_class = 'text-danger';
} else {
$rr_status = 'Normal';
$rr_class = 'text-success';
}
@endphp
{{ $rr }} x/mnt
{{ $rr_status }}
@else
-
@endif
Suhu
@if ($result->body_temperature)
@php
$temp = $result->body_temperature;
if ($temp > 42.0) {
$temp_status = 'Hipertermi';
$temp_class = 'text-danger';
} elseif ($temp >= 40.0 && $temp <= 42.0) {
$temp_status = 'Hiperpireksis';
$temp_class = 'text-danger';
} elseif ($temp >= 38.0 && $temp < 40.0) {
$temp_status = 'Febris';
$temp_class = 'text-warning';
} elseif ($temp >= 37.0 && $temp < 38.0) {
$temp_status = 'Sub Febris';
$temp_class = 'text-info';
} elseif ($temp >= 36.6 && $temp <= 37.2) {
$temp_status = 'Normal';
$temp_class = 'text-success';
} elseif ($temp < 36.0) {
$temp_status = 'Hipotermi';
$temp_class = 'text-primary';
} else {
$temp_status = 'Normal';
$temp_class = 'text-success';
}
@endphp
{{ $temp }} °C
{{ $temp_status }}
@else
-
@endif
Tinggi Badan
{{ $result->height ?? '-' }} cm
Berat Badan
{{ $result->weight ?? '-' }} kg
IMT
@if ($result->bmi)
@php
$bmi = $result->bmi;
if ($bmi < 18.5) {
$bmi_status = 'Underweight';
$bmi_class = 'text-info';
} elseif ($bmi < 23) {
$bmi_status = 'Normal';
$bmi_class = 'text-success';
} elseif ($bmi < 25) {
$bmi_status = 'Overweight';
$bmi_class = 'text-warning';
} elseif ($bmi < 30) {
$bmi_status = 'Obesitas I';
$bmi_class = 'text-danger';
} else {
$bmi_status = 'Obesitas II';
$bmi_class = 'text-danger';
}
@endphp
{{ $bmi }}
{{ $bmi_status }}
@else
-
@endif
Lingkar Perut
@if ($result->waist_circumference)
@php
$waist = $result->waist_circumference;
$gender = $result->appointment->patient->gender;
if ($gender === 'male') {
$waist_normal = $waist < 90;
$waist_status = $waist_normal ? 'Normal' : 'Beresiko';
} else {
$waist_normal = $waist < 80;
$waist_status = $waist_normal ? 'Normal' : 'Beresiko';
}
$waist_class = $waist_normal ? 'text-success' : 'text-warning';
@endphp
{{ $waist }} cm
{{ $waist_status }}
@else
-
@endif
@php
// Get vision data from VisusResult for this appointment
$visionData = \App\Models\VisusResult::where('appointment_id', $result->appointment_id)
->whereIn('status', ['completed', 'verified'])
->latest()
->first();
@endphp
@if ($visionData)
Ketajaman Penglihatan (Visus)
Visus Kanan (tanpa kacamata)
{{ $visionData->right_eye_uncorrected ?? '-' }}
Visus Kiri (tanpa kacamata)
{{ $visionData->left_eye_uncorrected ?? '-' }}
Visus Kanan (dengan kacamata)
{{ $visionData->right_eye_corrected ?? '-' }}
Visus Kiri (dengan kacamata)
{{ $visionData->left_eye_corrected ?? '-' }}
Lapangan Pandang (Visual Field)
Lapangan Pandang Kanan
@if ($visionData->visual_field_right)
@php
if (!function_exists('isNormalTextVerifyVision')) {
function isNormalTextVerifyVision($v)
{
if (!is_string($v)) {
return false;
}
return preg_match('/normal/i', $v) || preg_match('/negatif/i', $v);
}
}
$vfR = $visionData->visual_field_right;
$isVfRNormal = isNormalTextVerifyVision($vfR);
@endphp
{{ $visionData->visual_field_right }}
@else
Belum Diperiksa
@endif
Lapangan Pandang Kiri
@if ($visionData->visual_field_left)
@php
$vfL = $visionData->visual_field_left;
$isVfLNormal = isNormalTextVerifyVision($vfL);
@endphp
{{ $visionData->visual_field_left }}
@else
Belum Diperiksa
@endif
Tes Buta Warna (Color Blindness)
Hasil Tes Buta Warna
@if ($visionData->color_vision)
@php
$cv = $visionData->color_vision;
$isCvNormal = isNormalTextVerifyVision($cv);
@endphp
@if (preg_match('/^normal$/i', $cv) || preg_match('/^negatif$/i', $cv))
Dalam Batas Normal
@elseif (preg_match('/parsial|partial/i', $cv))
Buta Warna Parsial
@elseif (preg_match('/total/i', $cv))
Buta Warna Total
@else
{{ $cv }}
@endif
@else
Belum Diperiksa
@endif
Status Pemeriksaan
@if ($visionData->status == 'verified')
Terverifikasi
@elseif ($visionData->status == 'completed')
Menunggu Verifikasi
@else
{{ ucfirst($visionData->status) }}
@endif
@if ($visionData->doctor_notes)
Catatan Pemeriksaan:
{{ $visionData->doctor_notes }}
@endif
@else
Pemeriksaan Mata Belum Dilakukan
Data pemeriksaan mata/visus belum tersedia untuk pasien ini.
Silakan lakukan pemeriksaan mata terlebih dahulu di workstation
visus.
@endif
Keadaan Umum & Kesadaran
Keadaan Umum:
@if ($result->general_appearance)
{{ $result->general_appearance }}
@else
-
@endif
Kesadaran:
@if ($result->consciousness_level)
{{ $result->consciousness_level }}
@else
-
@endif
@if ($result->notes)
Catatan Pemeriksaan
{{ $result->notes }}
@endif
@if ($result->physical_examination_data)
@php
// Use PhysicalExamHelper to process data
$examData = \App\Helpers\PhysicalExamHelper::processExamData($result->physical_examination_data);
$systemNames = [
'head_neck' => ['name' => 'Kepala & Leher', 'color' => 'primary'],
'chest_lungs' => ['name' => 'Dada dan Paru-Paru', 'color' => 'info'],
'heart' => ['name' => 'Jantung', 'color' => 'danger'],
'abdomen' => ['name' => 'Abdomen', 'color' => 'success'],
'extremities' => ['name' => 'Ekstremitas', 'color' => 'warning'],
'skin_nails' => ['name' => 'Kulit dan Kuku', 'color' => 'secondary'],
'special' => ['name' => 'Penilaian Khusus', 'color' => 'dark'],
];
// Get field labels from helper
$fieldLabels = \App\Helpers\PhysicalExamHelper::getFieldLabels();
@endphp
@php $hasAnyData = false; @endphp
@foreach ($systemNames as $systemKey => $systemInfo)
@if (isset($examData[$systemKey]) && is_array($examData[$systemKey]) && !empty(array_filter($examData[$systemKey])))
@php $hasAnyData = true; @endphp
@php
// Untuk sistem khusus, gunakan urutan yang benar
if ($systemKey === 'special') {
$orderedFields = ['breast_exam', 'prostate_exam', 'anus_exam', 'romberg_test'];
foreach ($orderedFields as $field) {
if (isset($examData[$systemKey][$field]) && !empty($examData[$systemKey][$field])) {
$value = $examData[$systemKey][$field];
echo '';
echo '' .
\App\Helpers\PhysicalExamHelper::getFieldLabel($field) .
' ';
echo '' .
\App\Helpers\PhysicalExamHelper::renderPhysicalExamValue(
$value,
$examData[$systemKey][$field . '_detail'] ?? null,
$field,
) .
' ';
echo ' ';
}
}
} else {
// Untuk sistem lain, gunakan urutan asli
foreach ($examData[$systemKey] as $key => $value) {
if (!str_ends_with($key, '_detail') && !empty($value)) {
echo '';
echo '' .
\App\Helpers\PhysicalExamHelper::getFieldLabel($key) .
' ';
echo '' .
\App\Helpers\PhysicalExamHelper::renderPhysicalExamValue(
$value,
$examData[$systemKey][$key . '_detail'] ?? null,
$key,
) .
' ';
echo ' ';
}
}
}
@endphp
@endif
@endforeach
@if (!$hasAnyData)
Data Pemeriksaan Fisik Tidak Tersedia
Pemeriksaan fisik belum dilakukan atau data belum tersimpan.
@endif
@else
Data Pemeriksaan Fisik Tidak Tersedia
Pemeriksaan fisik belum dilakukan atau data belum tersimpan.
@endif
@canRoute ('physical_exam.verification.verify')
@endcanRoute
@canRoute ('physical_exam.verification.list')
Kembali ke Antrian
@endcanRoute
Proses Verifikasi
@include('physical_exam.partials.examination_history_tab_pane')
@push('scripts')
@endpush