|
@@ -8,6 +8,7 @@ $endPoint = 'upsertNoteSingleton';
|
|
$vitalLabels = [
|
|
$vitalLabels = [
|
|
"heightInInches" => "Ht. (in.)",
|
|
"heightInInches" => "Ht. (in.)",
|
|
"weightPounds" => "Wt. (lbs.)",
|
|
"weightPounds" => "Wt. (lbs.)",
|
|
|
|
+ "bmi" => "BMI (kg/m²)",
|
|
"temperatureF" => "Temp. (F)",
|
|
"temperatureF" => "Temp. (F)",
|
|
"systolicBP" => "SBP",
|
|
"systolicBP" => "SBP",
|
|
"diastolicBP" => "DBP",
|
|
"diastolicBP" => "DBP",
|
|
@@ -15,7 +16,6 @@ $vitalLabels = [
|
|
"respirationRatePerMinute" => "Resp.",
|
|
"respirationRatePerMinute" => "Resp.",
|
|
"pulseOx" => "Pulse Ox.",
|
|
"pulseOx" => "Pulse Ox.",
|
|
"smokingStatus" => "Smoking Status",
|
|
"smokingStatus" => "Smoking Status",
|
|
- "bmi" => "BMI (kg/m²)",
|
|
|
|
];
|
|
];
|
|
|
|
|
|
$point = Point::where('added_in_segment_id', $segment->id)->where('category', $category)->orderBy('id', 'DESC')->first();
|
|
$point = Point::where('added_in_segment_id', $segment->id)->where('category', $category)->orderBy('id', 'DESC')->first();
|
|
@@ -29,6 +29,7 @@ if(!$contentData) {
|
|
"date" => $note->effective_dateest,
|
|
"date" => $note->effective_dateest,
|
|
"heightInInches" => '',
|
|
"heightInInches" => '',
|
|
"weightPounds" => '',
|
|
"weightPounds" => '',
|
|
|
|
+ "bmi" => '',
|
|
"temperatureF" => '',
|
|
"temperatureF" => '',
|
|
"systolicBP" => '',
|
|
"systolicBP" => '',
|
|
"diastolicBP" => '',
|
|
"diastolicBP" => '',
|
|
@@ -36,7 +37,6 @@ if(!$contentData) {
|
|
"respirationRatePerMinute" => '',
|
|
"respirationRatePerMinute" => '',
|
|
"pulseOx" => '',
|
|
"pulseOx" => '',
|
|
"smokingStatus" => '',
|
|
"smokingStatus" => '',
|
|
- "bmi" => '',
|
|
|
|
];
|
|
];
|
|
}else {
|
|
}else {
|
|
if(!isset($contentData['date'])) $contentData['date'] = $note->effective_dateest;
|
|
if(!isset($contentData['date'])) $contentData['date'] = $note->effective_dateest;
|
|
@@ -114,30 +114,33 @@ $copyTriggerAdded = [];
|
|
</td>
|
|
</td>
|
|
<td class="position-relative">
|
|
<td class="position-relative">
|
|
@if($k === "bmi")
|
|
@if($k === "bmi")
|
|
- <input type="text" readonly bmi
|
|
|
|
- class="form-control form-control-sm vitals-title border-bottom border-top-0 border-left-0 border-right-0"
|
|
|
|
- data-name="bmi" value="{{$contentData['bmi']}}">
|
|
|
|
- @if(isset($contentData['bmi']) && $contentData['bmi'] != "" )
|
|
|
|
- <p class="py-1 m-0 px-2 font-weight-bold bg-white">
|
|
|
|
- <?php $bmi = $contentData['bmi']; ?>
|
|
|
|
- @if($bmi < 18.5)
|
|
|
|
- <span class="text-sm text-warning-mellow" v-if="+bmi < 18.5">Underweight</span>
|
|
|
|
- @endif
|
|
|
|
- @if($bmi >= 18.5 && $bmi < 25)
|
|
|
|
- <span class="text-sm text-success" v-if="+bmi >= 18.5 && +bmi < 25">Healthy Weight</span>
|
|
|
|
- @endif
|
|
|
|
- @if($bmi >= 25 && $bmi > 30)
|
|
|
|
- <span class="text-sm text-warning-mellow" v-if="+bmi >= 25 && +bmi < 30">Overweight</span>
|
|
|
|
- @endif
|
|
|
|
- @if($bmi >= 30)
|
|
|
|
- <span class="text-sm text-warning-mellow" v-if="+bmi >= 30">Obese</span>
|
|
|
|
|
|
+ <div class="d-flex align-items-stretch">
|
|
|
|
+ <input type="text" readonly bmi
|
|
|
|
+ class="form-control form-control-sm vitals-title border-bottom-0 border-top-0 border-left-0 border-right width-70px"
|
|
|
|
+ data-name="bmi" value="{{$contentData['bmi']}}">
|
|
|
|
+ <div class="flex-grow-1 py-1 m-0 px-2 font-weight-bold bg-light">
|
|
|
|
+ @if(isset($contentData['bmi']) && $contentData['bmi'] != "" )
|
|
|
|
+ <?php $bmi = $contentData['bmi']; ?>
|
|
|
|
+ @if($bmi < 18.5)
|
|
|
|
+ <span class="text-sm text-warning-mellow" v-if="+bmi < 18.5">Underweight</span>
|
|
|
|
+ @endif
|
|
|
|
+ @if($bmi >= 18.5 && $bmi < 25)
|
|
|
|
+ <span class="text-sm text-success" v-if="+bmi >= 18.5 && +bmi < 25">Healthy Weight</span>
|
|
|
|
+ @endif
|
|
|
|
+ @if($bmi >= 25 && $bmi > 30)
|
|
|
|
+ <span class="text-sm text-warning-mellow" v-if="+bmi >= 25 && +bmi < 30">Overweight</span>
|
|
|
|
+ @endif
|
|
|
|
+ @if($bmi >= 30)
|
|
|
|
+ <span class="text-sm text-warning-mellow" v-if="+bmi >= 30">Obese</span>
|
|
|
|
+ @endif
|
|
@endif
|
|
@endif
|
|
- </p>
|
|
|
|
- @endif
|
|
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
@elseif($k === "smokingStatus")
|
|
@elseif($k === "smokingStatus")
|
|
<input type="text"
|
|
<input type="text"
|
|
class="form-control form-control-sm border-0"
|
|
class="form-control form-control-sm border-0"
|
|
data-name="smokingStatus"
|
|
data-name="smokingStatus"
|
|
|
|
+ placeholder="{{$v}}"
|
|
data-option-list="smokingStatus" value="{{$contentData['smokingStatus']}}">
|
|
data-option-list="smokingStatus" value="{{$contentData['smokingStatus']}}">
|
|
<div id="smoking-status-options" class="data-option-list">
|
|
<div id="smoking-status-options" class="data-option-list">
|
|
<div>Current</div>
|
|
<div>Current</div>
|
|
@@ -145,13 +148,21 @@ $copyTriggerAdded = [];
|
|
<div>Never</div>
|
|
<div>Never</div>
|
|
</div>
|
|
</div>
|
|
@elseif($k === 'systolicBP')
|
|
@elseif($k === 'systolicBP')
|
|
- <div class="d-flex align-items-stretch">
|
|
|
|
- <input type="text" class="form-control form-control-sm min-width-unset w-auto-input flex-grow-1 border-bottom-0 border-right" data-name="systolicBP" systolicBP value="{{$contentData['systolicBP']}}">
|
|
|
|
- <input type="text" class="form-control form-control-sm min-width-unset w-auto-input flex-grow-1 border-bottom-0" data-name="diastolicBP" diastolicBP value="{{$contentData['diastolicBP']}}">
|
|
|
|
|
|
+ <div class="d-flex align-items-center bg-white">
|
|
|
|
+ <input type="text" class="form-control form-control-sm min-width-unset w-auto-input width-70px border-0 edit"
|
|
|
|
+ data-name="systolicBP" systolicBP
|
|
|
|
+ value="{{$contentData['systolicBP']}}" placeholder="Systolic">
|
|
|
|
+ <span class="px-2 text-secondary bg-white">/</span>
|
|
|
|
+ <input type="text" class="form-control form-control-sm min-width-unset w-auto-input width-70px border-0 edit"
|
|
|
|
+ data-name="diastolicBP" diastolicBP
|
|
|
|
+ value="{{$contentData['diastolicBP']}}" placeholder="Diastolic">
|
|
</div>
|
|
</div>
|
|
@else
|
|
@else
|
|
- <input type="text" class="form-control form-control-sm border-0" data-name="{{$k}}" {{$k}} value="{{$contentData[$k]}}"
|
|
|
|
- @if($k == 'heightInInches' || $k == 'weightPounds') refresh-bmi @endif>
|
|
|
|
|
|
+ <input type="text"
|
|
|
|
+ class="form-control form-control-sm border-0" data-name="{{$k}}" {{$k}}
|
|
|
|
+ value="{{$contentData[$k]}}"
|
|
|
|
+ placeholder="{{$v}}"
|
|
|
|
+ @if($k == 'heightInInches' || $k == 'weightPounds') refresh-bmi @endif>
|
|
@endif
|
|
@endif
|
|
</td>
|
|
</td>
|
|
@if(!$previousData || !count($previousData))
|
|
@if(!$previousData || !count($previousData))
|