@extends(request()->boolean('embed') ? 'layouts.embed_full' : 'layouts.master') @section('title', $title) @php $weight = $vital_signs?->weight; $height = $vital_signs?->height; $bmi = 0; $bmi_text = ''; if ($weight && $height) { if ($vital_signs?->height_type == 'centimeter') { $height = $vital_signs?->height / 100; } if ($vital_signs?->weight_type == 'pounds') { $weight = $vital_signs?->weight / 2.205; } $bmi = number_format($weight / ($height * $height), 2); if ($bmi < 16) { $bmi_text = 'Severe Thinness'; } elseif ($bmi > 16 && $bmi < 17) { $bmi_text = 'Moderate Thinness'; } elseif ($bmi > 17 && $bmi < 18.5) { $bmi_text = 'Mild Thinness'; } elseif ($bmi > 18.5 && $bmi < 25) { $bmi_text = 'Normal'; } elseif ($bmi > 25 && $bmi < 30) { $bmi_text = 'Overweight'; } elseif ($bmi > 30 && $bmi < 35) { $bmi_text = 'Obese Class 1'; } elseif ($bmi > 35 && $bmi < 40) { $bmi_text = 'Obese Class 11'; } elseif ($bmi > 40) { $bmi_text = 'Obese Class 111'; } } $embed = request()->boolean('embed'); @endphp @section('page_css') @endsection @section('content')
@unless($embed) @include('patient_mangement.appointment.profile.profile') @endunless
@unless($embed) @include('patient_mangement.appointment.profile.menu') @endunless
@unless($embed)
Vital signs
@endunless @unless($embed) @can($access . '-create') @include($view . '.modal') Vital signs @endcan @endunless
@if ($embed) {{-- Single-page mode: no modal, and a visit can have more than one vitals reading. The entry row lives right inside the same table as the history, lined up under the same columns — "Add" always creates a new reading, "Edit" loads a row back into that entry row and switches it to "Save" so it updates that one instead. --}}
@forelse ($all_vital_signs as $vs) @empty @endforelse @can($access . '-create') @endcan
Date Height (m) Weight (kg) BMI Temp BP Pulse RR SPO²
{{ \Carbon\Carbon::parse($vs->date)->format('d M, Y') }} {{ $vs->height }} {{ $vs->weight }} {{ $vs->bmi }} {{ $vs->body_temperature }} {{ $vs->blood_pressure_systolic }}/{{ $vs->blood_pressure_diastolic }} {{ $vs->heart_rate }} {{ $vs->respiratory_rate }} {{ $vs->oxygen_concentration }} @can($access . '-update') @endcan @can($access . '-delete') @endcan
No vitals recorded yet for this visit.
/
@cannot($access . '-create') @cannot($access . '-update')
You don't have permission to enter vital signs.
@endcannot @endcannot @else
Body Temperature: {{ $vital_signs?->body_temperature }}
Oxygen concentration: {{ $vital_signs?->oxygen_concentration }}
Heart Rate / Pulse: {{ $vital_signs?->heart_rate }}
Blood Pressure (systolic): {{ $vital_signs?->blood_pressure_systolic }}
Blood Pressure (diastolic): {{ $vital_signs?->blood_pressure_diastolic }}
Blood Pressure: {{ $vital_signs?->blood_pressure_systolic }}/{{ $vital_signs?->blood_pressure_diastolic }} mmHg
Respiratory rate: {{ $vital_signs?->respiratory_rate }}
Hight: {{ $vital_signs?->height_type . ' - ' . $vital_signs?->height }}
Weight: {{ $vital_signs?->weight_type . ' - ' . $vital_signs?->weight }}
@endif
@endsection @section('page_js') @endsection