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

Pemeriksaan Audiometry - {{ $appointment->patient->name }}

@endif @endsection @section('content') @php // Prefill dari hasil sebelumnya (termasuk ketika status ditolak) $rightEarPrefill = []; $leftEarPrefill = []; $rightBcPrefill = []; $leftBcPrefill = []; if (!empty($audiometryResult)) { $rightEarPrefill = is_array($audiometryResult->right_ear_results) ? $audiometryResult->right_ear_results : (json_decode($audiometryResult->right_ear_results, true) ?: []); $leftEarPrefill = is_array($audiometryResult->left_ear_results) ? $audiometryResult->left_ear_results : (json_decode($audiometryResult->left_ear_results, true) ?: []); $rightBcPrefill = is_array($audiometryResult->right_bc_results) ? $audiometryResult->right_bc_results : (json_decode($audiometryResult->right_bc_results, true) ?: []); $leftBcPrefill = is_array($audiometryResult->left_bc_results) ? $audiometryResult->left_bc_results : (json_decode($audiometryResult->left_bc_results, true) ?: []); } @endphp @if (isset($regularExam)) @include('regular_supporting_exams.partials.form_context') @else @include('partials.patient_info') @endif
@if (!empty($audiometryResult) && $audiometryResult->status === 'rejected')
Hasil sebelumnya ditolak dokter
Alasan: {{ $audiometryResult->rejection_reason }}
Silakan perbaiki data pemeriksaan. Anda tidak perlu mengambil sampel ulang.
@elseif (!isset($regularExam))
Sampel Audiometry Sudah Diambil
Pasien sudah siap untuk pemeriksaan. Silakan input hasil pemeriksaan audiometry.
@endif @if (isset($regularExam) || app(\App\Services\RoleAccess::class)->allows(auth()->user(), 'audiometry.store.result'))
@csrf @if (isset($regularExam)) @method ('PUT') @endif
Input Nilai Ambang Dengar (dB HL)
@foreach ([250, 500, 1000, 2000, 4000, 8000] as $f) @endforeach @foreach ([250, 500, 1000, 2000, 4000, 8000] as $f) @endforeach
Telinga/Frekuensi 250 500 1000 2000 4000 8000
AC - Kanan
AC - Kiri
Bone Conduction (BC) - Garis putus-putus
@foreach ([250, 500, 1000, 2000, 4000, 8000] as $f) @endforeach @foreach ([250, 500, 1000, 2000, 4000, 8000] as $f) @endforeach
Telinga/Frekuensi 250 500 1000 2000 4000 8000
BC - Kanan
BC - Kiri
Preview Audiogram
Telinga Kanan
Telinga Kiri
Sumbu X: Frekuensi (Hz), Sumbu Y: dB HL (0 di atas → 120 di bawah)
{{--
Pemeriksaan Tambahan dan Kesimpulan
--}}
Catatan Tambahan
@if (isset($regularExam)) @include('regular_supporting_exams.partials.form_back') @elseif (app(\App\Services\RoleAccess::class)->allows(auth()->user(), 'audiometry.worklist')) Kembali ke Worklist @endif
@endif
@if (!isset($regularExam)) @include('audiometry.partials.examination_history_tab_pane') @endif
@push('scripts') @if (!isset($regularExam)) @include('audiometry.partials.examination_history_modal_charts') @endif @endpush @endsection