@if ($existingVitalSigns->blood_pressure_systolic && $existingVitalSigns->blood_pressure_diastolic)
Tekanan Darah:
@php
$sys = (int) $existingVitalSigns->blood_pressure_systolic;
$dia = (int) $existingVitalSigns->blood_pressure_diastolic;
$bpCat = '';
$bpClass = '';
if ($sys >= 140 || $dia >= 90) {
$bpCat = 'Hipertensi';
$bpClass = 'bg-danger';
} else {
$bpCat = 'Normal';
$bpClass = 'bg-success';
}
@endphp
{{ $existingVitalSigns->blood_pressure_systolic }}/{{ $existingVitalSigns->blood_pressure_diastolic }} mmHg
@if ($bpCat)
{{ $bpCat }}
@endif
@endif
@if ($existingVitalSigns->heart_rate)
Nadi:
@php
$hr = (int) $existingVitalSigns->heart_rate;
$hrCat = '';
$hrClass = '';
if ($hr < 60) {
$hrCat = 'Bradikardi';
$hrClass = 'bg-warning';
} elseif ($hr > 100) {
$hrCat = 'Takikardi';
$hrClass = 'bg-danger';
} else {
$hrCat = 'Normal';
$hrClass = 'bg-success';
}
@endphp
{{ $existingVitalSigns->heart_rate }} x/m
{{ $hrCat }}
@endif
@if ($existingVitalSigns->respiratory_rate)
Respirasi:
@php
$rr = (int) $existingVitalSigns->respiratory_rate;
$rrCat = '';
$rrClass = '';
if ($rr < 12) {
$rrCat = 'Bradipnea';
$rrClass = 'bg-warning';
} elseif ($rr > 24) {
$rrCat = 'Takipnea';
$rrClass = 'bg-danger';
} else {
$rrCat = 'Normal';
$rrClass = 'bg-success';
}
@endphp
{{ $existingVitalSigns->respiratory_rate }} x/m
{{ $rrCat }}
@endif
@if ($existingVitalSigns->body_temperature)
Suhu:
@php
$t = (float) $existingVitalSigns->body_temperature;
$tCat = '';
$tClass = '';
if ($t > 42.0) {
$tCat = 'Hipertermi';
$tClass = 'bg-danger';
} elseif ($t >= 40.0 && $t <= 42.0) {
$tCat = 'Hiperpireksis';
$tClass = 'bg-danger';
} elseif ($t >= 38.0 && $t < 40.0) {
$tCat = 'Febris';
$tClass = 'bg-warning';
} elseif ($t >= 37.0 && $t < 38.0) {
$tCat = 'Sub Febris';
$tClass = 'bg-info';
} elseif ($t >= 36.6 && $t <= 37.2) {
$tCat = 'Normal';
$tClass = 'bg-success';
} elseif ($t < 36.0) {
$tCat = 'Hipotermi';
$tClass = 'bg-primary';
} else {
$tCat = 'Normal';
$tClass = 'bg-success';
}
@endphp
{{ number_format($existingVitalSigns->body_temperature, 1) }} °C
@if ($tCat)
{{ $tCat }}
@endif
@endif
@if ($existingVitalSigns->height && $existingVitalSigns->weight)
Tinggi/Berat:
{{ $existingVitalSigns->height }} cm / {{ $existingVitalSigns->weight }} kg
@endif
@if ($existingVitalSigns->bmi)
IMT:
@php
$bmi = $existingVitalSigns->bmi;
if ($bmi < 18.5) {
$bmi_status = 'Underweight';
$bmi_class = 'bg-info';
} elseif ($bmi < 23) {
$bmi_status = 'Normal';
$bmi_class = 'bg-success';
} elseif ($bmi < 25) {
$bmi_status = 'Overweight';
$bmi_class = 'bg-warning';
} elseif ($bmi < 30) {
$bmi_status = 'Obesitas I';
$bmi_class = 'bg-danger';
} else {
$bmi_status = 'Obesitas II';
$bmi_class = 'bg-danger';
}
@endphp
{{ $existingVitalSigns->bmi }} kg/m²
{{ $bmi_status }}
@endif
@if ($existingVitalSigns->waist_circumference)
Lingkar Perut:
@php
$waist = $existingVitalSigns->waist_circumference;
$gender = $patient && $patient->gender ? $patient->gender : 'male';
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 ? 'bg-success' : 'bg-warning';
@endphp
{{ $existingVitalSigns->waist_circumference }} cm
{{ $waist_status }}
@endif
Data Tersedia