Parameter Dasar
{{ $result->rhythm ?? '-' }}
{{ $result->frequency ?? '-' }}
@if ($result->frequency)
x/menit
@endif
{{ $result->axis ?? '-' }}
{{ $result->transition_zone ?? '-' }}
Morfologi Gelombang dan Interval
@if ($result->p_wave_not_evaluable)
Tidak dapat dievaluasi
@else
{{ $result->p_wave_morphology ?? '-' }}
@if ($result->p_wave_morphology)
ms
@endif
@endif
@if ($result->pr_interval_not_evaluable)
Tidak dapat dievaluasi
@else
{{ $result->pr_interval ?? '-' }}
@if ($result->pr_interval)
ms
@endif
@endif
{{ $result->qrs ?? '-' }}
{{ $result->qt_interval ?? '-' }}
@if ($result->qt_interval)
ms
@endif
Segmen ST dan Gelombang T
{{ $result->st_segment ?? '-' }}
{{ $result->t_wave ?? '-' }}
@if ($result->others)
@endif
@php
$ekgImagesDecoded = [];
if (!empty($result->ekg_images)) {
if (is_array($result->ekg_images)) {
$ekgImagesDecoded = $result->ekg_images;
} else {
$ekgImagesDecoded = json_decode($result->ekg_images, true) ?: [];
}
}
$patientLabel =
optional($result->appointment->patient)->name ?? (optional($result->appointment->patient)->full_name ?? '-');
@endphp
@if (count($ekgImagesDecoded) > 0)
Gambar EKG
@foreach ($ekgImagesDecoded as $index => $imagePath)
@php
$fileUrl = asset('storage/ekg_results/' . $imagePath);
$lower = strtolower($imagePath);
$isPdf = \Illuminate\Support\Str::endsWith($lower, '.pdf');
$previewExt = $isPdf ? 'pdf' : strtolower(pathinfo($imagePath, PATHINFO_EXTENSION) ?: 'jpg');
@endphp
@if (!$isPdf)

@else
PDF EKG
@endif
@endforeach
@endif
@if ($result->conclusion)
Kesimpulan
{{
$result->conclusion == 'Dalam batas normal'
? 'Normal Sinus Rhythm'
: $result->conclusion
}}
@endif