@extends('layouts.app') @section('title', isset($regularExam) ? $regularExam->typeLabel() . ' Reguler' : 'Pemeriksaan Fisik - MCU Klinik Mustika') @section('breadcrumb') @if (isset($regularExam)) @include('regular_supporting_exams.partials.form_breadcrumb') @else

Pemeriksaan Fisik - {{ $appointment->patient->full_name }}

@endif @endsection @section('content') @if (isset($regularExam)) @include('regular_supporting_exams.partials.form_context') @else @include('partials.patient_info') @endif
@if (isset($regularExam) || app(\App\Services\RoleAccess::class)->allows(auth()->user(), 'physical_exam.store_result'))
@csrf @if (isset($regularExam)) @method ('PUT') @endif @if ($existingResults?->status === 'rejected')
Hasil ditolak. Alasan: {{ $existingResults->rejection_reason }}
@endif
Informasi Pasien
@if ($existingResults)
Tanda Vital
@if (!( $existingResults->blood_pressure_systolic || $existingResults->blood_pressure_diastolic || $existingResults->heart_rate || $existingResults->body_temperature || $existingResults->respiratory_rate ))
Data tanda vital belum tersedia
Isi pengukuran melalui tab Tanda Vital & Antropometri di {{ isset($regularExam) ? 'pendaftaran reguler.' : 'halaman appointment.' }}
@else @if ($existingResults->blood_pressure_systolic || $existingResults->blood_pressure_diastolic)
{{ $existingResults->blood_pressure_systolic ?? '-' }}/{{ $existingResults->blood_pressure_diastolic ?? '-' }} mmHg @php $systolic = $existingResults->blood_pressure_systolic ?? 0; $diastolic = $existingResults->blood_pressure_diastolic ?? 0; if ($systolic >= 140 || $diastolic >= 90) { $bp_status = 'Hipertensi'; $bp_class = 'text-danger'; } else { $bp_status = 'Normal'; $bp_class = 'text-success'; } @endphp
{{ $bp_status }}
@endif @if ($existingResults->heart_rate)
{{ $existingResults->heart_rate }} bpm @php $hr = $existingResults->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_status }}
@endif @if ($existingResults->respiratory_rate)
{{ $existingResults->respiratory_rate }}/menit @php $rr = $existingResults->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_status }}
@endif @if ($existingResults->body_temperature)
{{ number_format($existingResults->body_temperature, 1) }}°C @php $temp = $existingResults->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_status }}
@endif
@endif
Antropometri
@if (!( $existingResults->height || $existingResults->weight || $existingResults->waist_circumference ))
Data antropometri belum tersedia
Isi pengukuran melalui tab Tanda Vital & Antropometri di halaman appointment.
@else @if ($existingResults->height)
{{ number_format($existingResults->height, 0) }} cm
Range normal: 150-200 cm
@endif @if ($existingResults->weight)
{{ number_format($existingResults->weight, 1) }} kg
Range normal: 40-150 kg
@endif @if ($existingResults->height && $existingResults->weight)
@php $bmi = $existingResults->bmi ?? $existingResults->weight / ($existingResults->height / 100) ** 2; 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
{{ number_format($bmi, 1) }} kg/m²
{{ $bmi_status }}
@endif @if ($existingResults->waist_circumference)
@php $waist = $existingResults->waist_circumference; $gender = (isset($regularExam) ? $regularExam->regularCheckup->patient : $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
{{ number_format($waist, 1) }} cm
{{ $waist_status }} ({{ $gender === 'male' ? 'Pria <90cm' : 'Wanita <80cm' }})
@endif @endif
@endif
Data Pemeriksaan Mata
@if (isset($visusData) && $visusData['has_visus_data'])
Data pemeriksaan mata tersedia
Diperiksa oleh: {{ $visusData['examiner'] }} pada {{ $visusData['examination_date']->format('d/m/Y H:i') }}
Hasil Visus
Mata Kanan (OD)
@if ($visusData['right_eye_uncorrected']) Tanpa Koreksi: {{ $visusData['right_eye_uncorrected'] }} @endif @if ($visusData['right_eye_corrected'])
Belum diperiksa @endif
Mata Kiri (OS)
@if ($visusData['left_eye_uncorrected']) Tanpa Koreksi: {{ $visusData['left_eye_uncorrected'] }} @endif @if ($visusData['left_eye_corrected'])
Belum diperiksa @endif
Tes Tambahan
Buta Warna: @php if (!function_exists('isNormalTextProcessVision')) { function isNormalTextProcessVision($v) { if (!is_string($v)) { return false; } return preg_match('/normal/i', $v) || preg_match('/negatif/i', $v); } } $cv = $visusData['color_blindness_result'] ?? ''; $isCvNormal = isNormalTextProcessVision($cv); @endphp {{ $visusData['color_blindness_result'] }}
Lapang Pandang:
Mata Kanan
@php $vfR = $visusData['visual_field_right'] ?? ''; $isVfRNormal = isNormalTextProcessVision($vfR); @endphp
{{ $vfR ?: 'Belum diperiksa' }}
Mata Kiri
@php $vfL = $visusData['visual_field_left'] ?? ''; $isVfLNormal = isNormalTextProcessVision($vfL); @endphp
{{ $vfL ?: 'Belum diperiksa' }}
@else
Data pemeriksaan mata belum tersedia
{{ $visusData['message'] ?? 'Silakan lakukan pemeriksaan mata terlebih dahulu di workstation visus.' }}
@endif
Pemeriksaan Fisik
@php $physicalExamData = $existingResults->physical_examination_data ?? []; if (!function_exists('isChecked')) { function isChecked($system, $field, $value, $data) { return old("physical_exam.$system.$field", $data[$system][$field] ?? '') == $value ? 'checked' : ''; } } if (!function_exists('getDetail')) { function getDetail($system, $field, $data) { $detailField = $field . '_detail'; return old("physical_exam.$system.$detailField", $data[$system][$detailField] ?? ''); } } @endphp
Fisik Umum

1. Kepala & Leher
@foreach ([ 'head_shape' => 'Bentuk Kepala', 'ears' => 'Telinga', 'eyes' => 'Mata', 'nose' => 'Hidung', 'mouth' => 'Rongga Mulut dan Gigi', 'throat' => 'Tenggorokan', 'neck' => 'Leher' ] as $field => $label)
@if ($field === 'head_shape') @else @endif
@endforeach
2. Dada dan Paru-Paru
@foreach ([ 'chest_wall_shape' => [ 'label' => 'Bentuk Dinding Dada', 'normal' => 'Simetris Normal', 'abnormal' => 'Abnormal' ], 'breath_sounds' => ['label' => 'Bunyi Napas', 'normal' => 'Vesikuler', 'abnormal' => 'Abnormal'], 'chest_retraction' => ['label' => 'Retraksi Dinding Dada', 'normal' => 'Tidak Ada', 'abnormal' => 'Ada'] ] as $field => $options)
@endforeach

3. Jantung
@foreach ([ 'heart_sounds' => [ 'label' => 'Bunyi Jantung', 'normal' => 'Dalam Batas Normal', 'abnormal' => "Ket.\n Lain" ], 'rhythm' => ['label' => 'Irama', 'normal' => 'Reguler', 'abnormal' => 'Irreguler'], 'enlargement' => ['label' => 'Pembesaran Jantung', 'normal' => 'Tidak Ada', 'abnormal' => 'Ada'] ] as $field => $options)
@endforeach
4. Abdomen
@foreach ([ 'shape' => ['label' => 'Bentuk', 'normal' => 'Datar', 'abnormal' => 'Distensi'], 'tenderness' => ['label' => 'Nyeri Tekan', 'normal' => 'Tidak Ada', 'abnormal' => 'Ada'], 'liver_spleen' => ['label' => 'Hepar dan Lien', 'normal' => 'Tidak Teraba', 'abnormal' => 'Teraba'], 'bowel_sounds' => [ 'label' => 'Bising Usus', 'normal' => 'Dalam Batas Normal', 'abnormal' => "Ket.\n Lain" ] ] as $field => $options)
@endforeach

5. Ekstremitas
@foreach ([ 'muscle_strength' => ['label' => 'Kekuatan Otot', 'normal' => 'Dalam Batas Normal', 'abnormal' => 'Ket. Lain'], 'reflexes' => ['label' => 'Refleks', 'normal' => 'Dalam Batas Normal', 'abnormal' => 'Ket. Lain'], 'tremor_paralysis' => ['label' => 'Tremor atau Kelumpuhan', 'normal' => 'Tidak Ada', 'abnormal' => 'Ada'], 'varicose_edema' => ['label' => 'Varises dan Edema', 'normal' => 'Tidak Ada', 'abnormal' => 'Ada'], 'bone_joint_deformity' => [ 'label' => 'Deformitas Tulang dan Sendi', 'normal' => 'Tidak Ada', 'abnormal' => 'Ada' ] ] as $field => $options)
@endforeach
6. Kulit dan Kuku
@foreach (['skin' => 'Kulit', 'nails' => 'Kuku'] as $field => $label)
@endforeach

Penilaian Khusus
@foreach ([ 'breast_exam' => [ 'label' => 'Pemeriksaan Payudara', 'normal' => 'Dalam Batas Normal', 'abnormal' => 'Abnormal', 'na' => 'Tidak Dilakukan' ], 'prostate_exam' => [ 'label' => 'Pemeriksaan Prostat', 'normal' => 'Dalam Batas Normal', 'abnormal' => 'Abnormal', 'na' => 'Tidak Dilakukan' ], 'anus_exam' => [ 'label' => 'Pemeriksaan Anus', 'normal' => 'Dalam Batas Normal', 'abnormal' => 'Abnormal', 'na' => 'Tidak Dilakukan' ], 'romberg_test' => ['label' => 'Pemeriksaan Romberg Test', 'normal' => 'Negatif Normal', 'abnormal' => 'Positif'] ] as $field => $options)
@if (isset($options['na']))
@endif
@endforeach
Catatan
@error ('notes')
{{ $message }}
@enderror
@if (isset($regularExam)) @include('regular_supporting_exams.partials.form_back') @elseif (app(\App\Services\RoleAccess::class)->allows(auth()->user(), 'physical_exam.worklist')) Kembali ke Antrian @endif
@endif
@if (!isset($regularExam) && app(\App\Services\RoleAccess::class)->allows(auth()->user(), 'physical_exam.results.show')) @include('physical_exam.partials.examination_history_tab_pane') @endif
@push('scripts') @endpush @endsection