瀏覽代碼

v1 vitals

Peter Muturi 3 年之前
父節點
當前提交
151d35a5d2

+ 10 - 10
resources/views/app/patient/note/dashboard.blade.php

@@ -410,7 +410,7 @@ use App\Models\Handout;
             <div class="px-2 border-left screen-only">
                 <a href="{{route('print-note', ['patient' => $patient, 'note' => $note])}}" native target="_blank" class=""><i class="fa fa-print"></i> Print</a>
             </div>
-            
+
             @if($pro->pro_type === 'ADMIN' || $pro->is_enrolled_as_mcp)
             <div class="px-2 border-left screen-only">
                 <a native target="_blank"
@@ -534,16 +534,16 @@ use App\Models\Handout;
 
 
             @if($note->is_signed_by_hcp)
-                @php 
+                @php
                     $suggestionMode = request()->get('suggestion_mode');
-                @endphp 
+                @endphp
                 @if($suggestionMode == 'on')
                     <a class="ml-3 native font-weight-normal refresh-segment c-pointer screen-only"
                         href="/patients/view/{{$note->client->uid}}/notes/view/{{$note->uid}}?suggestion_mode=off"
                         title="Update with latest patient data">
                         Toggle Suggestion Mode Off
                     </a>
-                @else 
+                @else
                     <a class="ml-3 native font-weight-normal refresh-segment c-pointer screen-only"
                         href="/patients/view/{{$note->client->uid}}/notes/view/{{$note->uid}}?suggestion_mode=on"
                         title="Update with latest patient data">
@@ -577,7 +577,7 @@ use App\Models\Handout;
                                         </div>
                                     </div>
                                 @endif
-                                @if($pro->pro_type === 'ADMIN' || ($note->hcpPro && $pro->id === $note->hcpPro->id)) 
+                                @if($pro->pro_type === 'ADMIN' || ($note->hcpPro && $pro->id === $note->hcpPro->id))
                                     <div class="ml-3 screen-only">
                                         @include('app/patient/note/_create-bill-only')
                                     </div>
@@ -771,7 +771,7 @@ use App\Models\Handout;
                                 @elseif($isVisitTemplateBased && !$doesVisitTemplateUiConfigExist)
                                     @if($note->visitTemplate->is_slim)
                                         @include('app.patient.note.note-segment-list-slim')
-                                    @else 
+                                    @else
                                         @include('app.patient.note.note-segment-list')
                                     @endif
                                 @elseif($isVisitTemplateBased && $doesVisitTemplateUiConfigExist)
@@ -800,9 +800,9 @@ use App\Models\Handout;
 
                 <!-- handouts -->
                 <div class="p-3 border-bottom screen-only" data-non-segment-section="Handouts">
-                    <?php 
+                    <?php
                         $handouts = Handout::where('is_active', true)->get();
-                        $clientHandouts = $patient->handouts($note); 
+                        $clientHandouts = $patient->handouts($note);
                     ?>
                     @include('app.patient.handouts-list', compact('patient', 'clientHandouts', 'handouts', 'note'))
                 </div>
@@ -951,7 +951,7 @@ use App\Models\Handout;
                         <p class="font-weight-bold text-secondary m-0 font-size-14">Vitals Settings</p>
                     </div>
                     <div class="row" id="vitals-settings-{{$patient->uid}}">
-                        <div class="col-5 border-right">
+                        <div class="col-4 border-right">
                             <div class="d-flex align-items-baseline">
                                 <b>BMI/Weight Management</b>
                                 <span class="mx-2 text-secondary">|</span>
@@ -961,7 +961,7 @@ use App\Models\Handout;
                                 @include('app.patient.vitals-settings.bmi-management-summary')
                             </div>
                         </div>
-                        <div class="col-7">
+                        <div class="col-8">
                             <div class="d-flex align-items-baseline">
                                 <b>BP Management</b>
                                 <span class="mx-2 text-secondary">|</span>

+ 54 - 46
resources/views/app/patient/vitals-settings/bp-management-form.blade.php

@@ -17,11 +17,11 @@
                             <div class="d-flex align-items-center mb-3">
                                 <h6 v-if="form.doesUsualBpHaveRange" class="mb-0 mr-3">LOWEST:</h6>
                                 <h6 class="mb-0 mr-3">BP:</h6>
-                                <input type="text" class="inline-input-underlined width-50" name="usualAmRestingSbpMin" value="{{ $patient->usual_am_resting_sbp_min }}" />
+                                <input type="text" class="inline-input-underlined width-50" name="usualAmRestingSbpMin" v-model="form.usualAmRestingSbpMin" />
                                 <span>/</span>
-                                <input type="text" class="inline-input-underlined width-50 mr-3" name="usualAmRestingDbpMin" value="{{ $patient->usual_am_resting_dbp_min }}" />
+                                <input type="text" class="inline-input-underlined width-50 mr-3" name="usualAmRestingDbpMin" v-model="form.usualAmRestingDbpMin" />
                                 <span>Pulse:</span>
-                                <input type="text" class="inline-input-underlined width-50" name="usualAmRestingPulseMin" value="{{ $patient->usual_am_resting_pulse_min }}" />
+                                <input type="text" class="inline-input-underlined width-50" name="usualAmRestingPulseMin" v-model="form.usualAmRestingPulseMin" />
                                 <span>BPM</span>
                             </div>
 
@@ -94,50 +94,54 @@
                     </div>
                     <hr class="my-3">
                     <div class="text-secondary font-weight-bold mb-3">Alerts</div>
-                    <div class="pl-3 mb-3">
-                        <div class="text-secondary font-weight-bold mb-2"><i class="fa fa-circle text-danger mr-2"></i>Red</div>
-                        <div class="d-flex align-items-center mb-3">
-                            <h6 class="mb-0 mr-3">Above:</h6>
-                            <h6 class="mb-0 mr-3">BP:</h6>
-                            <input type="text" class="inline-input-underlined width-50" name="redAlertWhenSbpAbove" value="{{ $patient->red_alert_when_sbp_above }}" />
-                            <span>/</span>
-                            <input type="text" class="inline-input-underlined width-50 mr-3" name="redAlertWhenDbpAbove" value="{{ $patient->red_alert_when_dbp_above }}" />
-                            <span>Pulse:</span>
-                            <input type="text" class="inline-input-underlined width-50" name="redAlertWhenPulseAbove" value="{{ $patient->red_alert_when_pulse_above }}" />
-                            <span>BPM</span>
-                        </div>
-                        <div class="d-flex align-items-center mb-3">
-                            <h6 class="mb-0 mr-3">Below:</h6>
-                            <h6 class="mb-0 mr-3">BP:</h6>
-                            <input type="text" class="inline-input-underlined width-50" name="redAlertWhenSbpBelow" value="{{ $patient->red_alert_when_sbp_below }}" />
-                            <span>/</span>
-                            <input type="text" class="inline-input-underlined width-50 mr-3" name="redAlertWhenDbpBelow" value="{{ $patient->red_alert_when_dbp_below }}" />
-                            <span>Pulse:</span>
-                            <input type="text" class="inline-input-underlined width-50" name="redAlertWhenPulseBelow" value="{{ $patient->red_alert_when_pulse_below }}" />
-                            <span>BPM</span>
+                    <div class="pl-3 mb-3 d-flex align-items-start">
+                        <div class="text-secondary font-weight-bold mr-2"><i class="fa fa-circle text-danger mr-2"></i></div>
+                        <div>
+                          <div class="d-flex align-items-center mb-3">
+                              <h6 class="mb-0 mr-3">Above:</h6>
+                              <h6 class="mb-0 mr-3">BP:</h6>
+                              <input type="text" class="inline-input-underlined width-50" name="redAlertWhenSbpAbove" value="{{ $patient->red_alert_when_sbp_above }}" />
+                              <span>/</span>
+                              <input type="text" class="inline-input-underlined width-50 mr-3" name="redAlertWhenDbpAbove" value="{{ $patient->red_alert_when_dbp_above }}" />
+                              <span>Pulse:</span>
+                              <input type="text" class="inline-input-underlined width-50" name="redAlertWhenPulseAbove" value="{{ $patient->red_alert_when_pulse_above }}" />
+                              <span>BPM</span>
+                          </div>
+                          <div class="d-flex align-items-center mb-3">
+                              <h6 class="mb-0 mr-3">Below:</h6>
+                              <h6 class="mb-0 mr-3">BP:</h6>
+                              <input type="text" class="inline-input-underlined width-50" name="redAlertWhenSbpBelow" value="{{ $patient->red_alert_when_sbp_below }}" />
+                              <span>/</span>
+                              <input type="text" class="inline-input-underlined width-50 mr-3" name="redAlertWhenDbpBelow" value="{{ $patient->red_alert_when_dbp_below }}" />
+                              <span>Pulse:</span>
+                              <input type="text" class="inline-input-underlined width-50" name="redAlertWhenPulseBelow" value="{{ $patient->red_alert_when_pulse_below }}" />
+                              <span>BPM</span>
+                          </div>
                         </div>
                     </div>
-                    <div class="pl-3 mb-3">
-                        <div class="text-secondary font-weight-bold mb-2"><i class="fa fa-circle text-warning-mellow mr-2"></i>Yellow</div>
-                        <div class="d-flex align-items-center mb-3">
-                            <h6 class="mb-0 mr-3">Above:</h6>
-                            <h6 class="mb-0 mr-3">BP:</h6>
-                            <input type="text" class="inline-input-underlined width-50" name="yellowAlertWhenSbpAbove" value="{{ $patient->yellow_alert_when_sbp_above }}" />
-                            <span>/</span>
-                            <input type="text" class="inline-input-underlined width-50 mr-3" name="yellowAlertWhenDbpAbove" value="{{ $patient->yellow_alert_when_dbp_above }}" />
-                            <span>Pulse:</span>
-                            <input type="text" class="inline-input-underlined width-50" name="yellowAlertWhenPulseAbove" value="{{ $patient->yellow_alert_when_pulse_above }}" />
-                            <span>BPM</span>
-                        </div>
-                        <div class="d-flex align-items-center mb-3">
-                            <h6 class="mb-0 mr-3">Below:</h6>
-                            <h6 class="mb-0 mr-3">BP:</h6>
-                            <input type="text" class="inline-input-underlined width-50" name="yellowAlertWhenSbpBelow" value="{{ $patient->yellow_alert_when_sbp_below }}" />
-                            <span>/</span>
-                            <input type="text" class="inline-input-underlined width-50 mr-3" name="yellowAlertWhenDbpBelow" value="{{ $patient->yellow_alert_when_dbp_below }}" />
-                            <span>Pulse:</span>
-                            <input type="text" class="inline-input-underlined width-50" name="yellowAlertWhenPulseBelow" value="{{ $patient->yellow_alert_when_pulse_below }}" />
-                            <span>BPM</span>
+                    <div class="pl-3 mb-3 d-flex align-items-start">
+                        <div class="text-secondary font-weight-bold mr-2"><i class="fa fa-circle text-warning-mellow mr-2"></i></div>
+                        <div>
+                          <div class="d-flex align-items-center mb-3">
+                              <h6 class="mb-0 mr-3">Above:</h6>
+                              <h6 class="mb-0 mr-3">BP:</h6>
+                              <input type="text" class="inline-input-underlined width-50" name="yellowAlertWhenSbpAbove" value="{{ $patient->yellow_alert_when_sbp_above }}" />
+                              <span>/</span>
+                              <input type="text" class="inline-input-underlined width-50 mr-3" name="yellowAlertWhenDbpAbove" value="{{ $patient->yellow_alert_when_dbp_above }}" />
+                              <span>Pulse:</span>
+                              <input type="text" class="inline-input-underlined width-50" name="yellowAlertWhenPulseAbove" value="{{ $patient->yellow_alert_when_pulse_above }}" />
+                              <span>BPM</span>
+                          </div>
+                          <div class="d-flex align-items-center mb-3">
+                              <h6 class="mb-0 mr-3">Below:</h6>
+                              <h6 class="mb-0 mr-3">BP:</h6>
+                              <input type="text" class="inline-input-underlined width-50" name="yellowAlertWhenSbpBelow" value="{{ $patient->yellow_alert_when_sbp_below }}" />
+                              <span>/</span>
+                              <input type="text" class="inline-input-underlined width-50 mr-3" name="yellowAlertWhenDbpBelow" value="{{ $patient->yellow_alert_when_dbp_below }}" />
+                              <span>Pulse:</span>
+                              <input type="text" class="inline-input-underlined width-50" name="yellowAlertWhenPulseBelow" value="{{ $patient->yellow_alert_when_pulse_below }}" />
+                              <span>BPM</span>
+                          </div>
                         </div>
                     </div>
                 </div>
@@ -252,6 +256,7 @@
         </div>
     </form>
 </div>
+
 <script>
     var doesUsualBpHaveAmPmVariation = <?= $patient->does_usual_bp_have_am_pm_variation ? 1 : 0 ?>;
     var doesUsualBpHaveRange = <?= $patient->does_usual_bp_have_range ? 1 : 0 ?>;
@@ -261,7 +266,10 @@
         data: {
             form: {
                 doesUsualBpHaveAmPmVariation: parseInt(doesUsualBpHaveAmPmVariation),
-                doesUsualBpHaveRange: parseInt(doesUsualBpHaveRange)
+                doesUsualBpHaveRange: parseInt(doesUsualBpHaveRange),
+                usualAmRestingSbpMin: '{{ $patient->usual_am_resting_sbp_min }}',
+                usualAmRestingDbpMin: '{{ $patient->usual_am_resting_dbp_min }}',
+                usualAmRestingPulseMin: '{{ $patient->usual_am_resting_pulse_min }}'
             }
         },
         methods: {

+ 16 - 16
resources/views/app/patient/vitals-settings/bp-management-summary.blade.php

@@ -57,24 +57,24 @@
                         <span class="ml-2">BPM</span>
                         @endif
                     </div>
-                @endif
-                @if($patient->does_usual_bp_have_range)
+                    @if($patient->does_usual_bp_have_range)
                     <div class="d-flex align-items-center mb-2">
-                        @if($patient->does_usual_bp_have_range)
-                            <h6 class="mb-0 mr-2">HIGHEST:</h6>
-                        @endif
-                        <h6 class="mb-0 mr-2">BP:</h6>
-                        <span><b>{{$patient->usual_pm_resting_sbp_max ?? '-'}}</b></span>
-                        @if($patient->usual_pm_resting_dbp_max)
-                        <span>/</span>
-                        <span class="mr-2"><b>{{$patient->usual_pm_resting_dbp_max}}</b></span>
-                        @endif
-                        @if($patient->usual_pm_resting_pulse_max)
-                        <span class="mr-2">Pulse:</span>
-                        <span><b>{{$patient->usual_pm_resting_pulse_max}}</b></span>
-                        <span class="ml-2">BPM</span>
-                        @endif
+                      @if($patient->does_usual_bp_have_range)
+                      <h6 class="mb-0 mr-2">HIGHEST:</h6>
+                      @endif
+                      <h6 class="mb-0 mr-2">BP:</h6>
+                      <span><b>{{$patient->usual_pm_resting_sbp_max ?? '-'}}</b></span>
+                      @if($patient->usual_pm_resting_dbp_max)
+                      <span>/</span>
+                      <span class="mr-2"><b>{{$patient->usual_pm_resting_dbp_max}}</b></span>
+                      @endif
+                      @if($patient->usual_pm_resting_pulse_max)
+                      <span class="mr-2">Pulse:</span>
+                      <span><b>{{$patient->usual_pm_resting_pulse_max}}</b></span>
+                      <span class="ml-2">BPM</span>
+                      @endif
                     </div>
+                    @endif
                 @endif
             </div>
         </div>