@extends('layouts.app') @section('use-quill', true) @section('title', 'Detail Pendaftaran Pasien - MCU Klinik Mustika') @php($backToWorklist = auth()->user()?->can('process-regular-checkups') && (request('from') === 'worklist' || (request('from') !== 'registration' && (auth()->user()?->hasRole('Dokter Utama') || !auth()->user()?->can('create-regular-checkups'))))) @section('breadcrumb')

{{ $regularCheckup->checkup_number }}

Pendaftaran pasien reguler yang berdiri sendiri dari appointment dan progres MCU.

@endsection @section('content')
Data Pasien
{{ $regularCheckup->workflowStatusLabel() }}
@include('regular_checkups.partials.patient_information')
Didaftarkan Oleh
{{ $regularCheckup->creator?->name ?? '-' }}
Keluhan Awal
{!! \App\Helpers\QuillHelper::displayHtml( $regularCheckup->chief_complaint ?: '-', ) !!}
@if ($regularCheckup->status === \App\Models\RegularCheckup::STATUS_CANCELLED)
Alasan pembatalan: {{ $regularCheckup->cancellation_reason }}
Dibatalkan oleh {{ $regularCheckup->cancelledBy?->name ?? '-' }} pada {{ $regularCheckup->cancelled_at?->format('d/m/Y H:i') }}
@endif
{{ $backToWorklist ? 'Kembali ke Worklist' : 'Kembali' }} @can ('process-regular-checkups') @if ($regularCheckup->canBeEditedByDoctor((int) auth()->id())) Edit Pemeriksaan @elseif (!in_array( $regularCheckup->status, [\App\Models\RegularCheckup::STATUS_COMPLETED, \App\Models\RegularCheckup::STATUS_CANCELLED], true )) Buka Worklist Pemeriksaan @endif @endcan @can ('cancel-regular-checkups') @if (!in_array( $regularCheckup->status, [\App\Models\RegularCheckup::STATUS_COMPLETED, \App\Models\RegularCheckup::STATUS_CANCELLED], true )) @endif @endcan
Hasil Pemeriksaan
@if ($regularCheckup->status === \App\Models\RegularCheckup::STATUS_COMPLETED)
Tinggi / Berat
{{ $regularCheckup->height_cm ? $regularCheckup->height_cm . ' cm' : '-' }} / {{ $regularCheckup->weight_kg ? $regularCheckup->weight_kg . ' kg' : '-' }}
Tekanan Darah
{{ $regularCheckup->blood_pressure_systolic && $regularCheckup->blood_pressure_diastolic ? $regularCheckup->blood_pressure_systolic . '/' . $regularCheckup->blood_pressure_diastolic . ' mmHg' : '-' }}
Heart Rate
{{ $regularCheckup->heart_rate ? $regularCheckup->heart_rate . ' bpm' : '-' }}
Respiratory Rate
{{ $regularCheckup->respiratory_rate ? $regularCheckup->respiratory_rate . ' x/menit' : '-' }}
Temperatur
{{ $regularCheckup->body_temperature !== null ? $regularCheckup->body_temperature . ' °C' : '-' }}
SpO₂
{{ $regularCheckup->oxygen_saturation !== null ? $regularCheckup->oxygen_saturation . '%' : '-' }}
Konsultasi
{!! \App\Helpers\QuillHelper::displayHtml( $regularCheckup->consultation_notes, ) !!}
Diagnosis
{{ $regularCheckup->diagnosis }}
Diagnosis ICD-10
@forelse ($regularCheckup->clinicalDiagnoses as $diagnosis)
@if ($diagnosis->is_primary) Utama @endif {{ $diagnosis->code_snapshot }} — {{ $diagnosis->display_snapshot }}
@empty
Diagnosis lama belum memiliki kode ICD-10.
@endforelse
Tindakan
{{ $regularCheckup->action_taken }}
Tindakan yang Dicatat dengan ICD-9-CM
@forelse ($regularCheckup->clinicalProcedures as $procedure)
{{ $procedure->code_snapshot }} — {{ $procedure->display_snapshot }}
@empty
Tidak ada tindakan ICD-9-CM yang dicatat.
@endforelse
@if ($regularCheckup->additional_notes)
Catatan Lainnya
{!! \App\Helpers\QuillHelper::displayHtml( $regularCheckup->additional_notes, ) !!}
@endif
Diselesaikan langsung oleh dokter: {{ $regularCheckup->doctor?->name ?? '-' }} · {{ $regularCheckup->completed_at?->format('d/m/Y H:i') }}
@else
Hasil konsultasi, diagnosis, dan tindakan belum diselesaikan oleh dokter.
@endif
@if ($regularCheckup->supportingExams->isNotEmpty()) @include('regular_checkups.partials.supporting_exam_summary') @endif @include('regular_checkups.partials.history_card')
@if (\App\Helpers\ModuleHelper::isMcuEnabled())
Permintaan Laboratorium
@if ($regularCheckup->labOrder)
{{ $regularCheckup->labOrder->statusLabel() }}
@endif
@if ($regularCheckup->labOrder)
Nomor Permintaan
{{ $regularCheckup->labOrder->order_number }}
Dokter Peminta
{{ $regularCheckup->labOrder->orderedBy?->name ?? '-' }}
Waktu Permintaan
{{ $regularCheckup->labOrder->ordered_at?->format('d/m/Y H:i') ?? '-' }}
Pemeriksaan yang Diminta
@forelse ($regularCheckup->labOrder->services as $service) {{ $service->service_name }} @if ($service->method) · {{ $service->method }} @endif @empty @forelse ($regularCheckup->labOrder->displayItems() as $item) {{ $item->test_name }} @if ($item->method) · {{ $item->method }} @endif @empty Tidak ada pemeriksaan pada permintaan ini. @endforelse @endforelse
@if ($regularCheckup->labOrder->clinical_notes)
Catatan Klinis
{!! \App\Helpers\QuillHelper::displayHtml( $regularCheckup->labOrder->clinical_notes, ) !!}
@endif
@include('regular_checkups.partials.lab_result_summary', ['labOrder' => $regularCheckup->labOrder]) @else
Dokter belum membuat permintaan pemeriksaan laboratorium untuk kunjungan ini.
@endif
@endif
Resep Apotek
@forelse ($regularCheckup->prescriptions as $prescription)
{{ $prescription->prescription_number }} {{ ucfirst(str_replace('_', ' ', $prescription->status)) }}
{{ $prescription->prescription_date?->format('d/m/Y') }} · {{ $prescription->items->count() }} obat
@if (\App\Helpers\ModuleHelper::isPharmacyEnabled()) @can ('view-prescriptions') Lihat Resep @endcan @endif
@empty
Belum ada resep apotek yang ditautkan pada pemeriksaan ini.
@if (\App\Helpers\ModuleHelper::isPharmacyEnabled() && $regularCheckup->canCreatePrescription()) @can ('create-prescriptions') Input Resep @endcan @endif @endforelse
@can ('cancel-regular-checkups') @endcan @endsection @include('regular_checkups.partials.text_editor_assets')