Bladeren bron

patient header update

Peter Muturi 1 jaar geleden
bovenliggende
commit
58ca2add6d
1 gewijzigde bestanden met toevoegingen van 19 en 15 verwijderingen
  1. 19 15
      resources/views/layouts/patient-header.blade.php

+ 19 - 15
resources/views/layouts/patient-header.blade.php

@@ -56,7 +56,6 @@ $addressParts .= implode(", ", $addressPart2);
     @endif
     <div class="d-flex justify-content-between pt-2 {{request()->route()->getName() === 'patients.view.notes.view.dashboard' ? 'sticky-note-header' : ''}}" id="patient-top-most-header">
         <div class="d-flex align-items-center header-info mb-2">
-
             <h6 class="font-weight-bold">{{$patientName}}</h6>
             <h6 class="ml-3">{{$patient->age_in_years}} Y {{$patient->sex}}</h6>
             <h6 class="d-inline-flex align-items-baseline ml-2">
@@ -88,20 +87,25 @@ $addressParts .= implode(", ", $addressPart2);
                 </div>
             </h6>
             <div class="d-flex border-left pl-2 ml-2">
-                <div class="mr-2">RPM: <b>{{ucwords(strtolower($patient->is_enrolled_in_rm))}}</b> {{-- correct --}}
-                    @if($patient->is_enrolled_in_rm === 'NO' && $patient->why_not_enrolled_in_rm_category) {{-- correct --}}
-                    <span class="text-sm">({{$patient->why_not_enrolled_in_rm_category}})</span>
-                    @endif
-                </div>
-                <div class="mr-1">Cell. BP: <b>{{$patient->hasBPDevice()?'Yes':'No'}}</b>
-                    @if($patient->most_recent_cellular_bp_sbp_mm_hg && $patient->most_recent_cellular_bp_dbp_mm_hg)
-                        (<b>{{$patient->most_recent_cellular_bp_sbp_mm_hg ?: '-'}}/{{$patient->most_recent_cellular_bp_dbp_mm_hg ?: '-'}}</b>@if($patient->most_recent_cellular_bp_measurement_at), {{friendly_date_short($patient->most_recent_cellular_bp_measurement_at)}}@endif)@endif
-                </div>
-                <div class="mr-2">Wt.: <b>{{$patient->hasWeightScaleDevice()?'Yes':'No'}}</b>
-                    @if($patient->most_recent_cellular_weight_value)
-                        (<b>{{round($patient->most_recent_cellular_weight_value, 1)}}</b>@if($patient->most_recent_cellular_weight_measurement_at), {{friendly_date_short($patient->most_recent_cellular_weight_measurement_at)}}@endif)
-                    @endif
-                </div>
+              <div class="on-hover-show d-inline-block on-hover-opaque mr-2">
+                  <span>RPM Info: <i class="fa fa-info-circle ml-1"></i></span>
+                  <div class="on-hover-content py-2 pl-3 text-nowrap text-dark" style="left:0;right:auto;">
+                    <div class="mt-1">Enrolled in RPM: <b>{{ucwords(strtolower($patient->is_enrolled_in_rm))}}</b> {{-- correct --}}
+                        @if($patient->is_enrolled_in_rm === 'NO' && $patient->why_not_enrolled_in_rm_category) {{-- correct --}}
+                        <span class="text-sm">({{$patient->why_not_enrolled_in_rm_category}})</span>
+                        @endif
+                    </div>
+                    <div class="mt-1">Cell. BP: <b>{{$patient->hasBPDevice()?'Yes':'No'}}</b>
+                        @if($patient->most_recent_cellular_bp_sbp_mm_hg && $patient->most_recent_cellular_bp_dbp_mm_hg)
+                            (<b>{{$patient->most_recent_cellular_bp_sbp_mm_hg ?: '-'}}/{{$patient->most_recent_cellular_bp_dbp_mm_hg ?: '-'}}</b>@if($patient->most_recent_cellular_bp_measurement_at), {{friendly_date_short($patient->most_recent_cellular_bp_measurement_at)}}@endif)@endif
+                    </div>
+                    <div class="">Wt.: <b>{{$patient->hasWeightScaleDevice()?'Yes':'No'}}</b>
+                        @if($patient->most_recent_cellular_weight_value)
+                            (<b>{{round($patient->most_recent_cellular_weight_value, 1)}}</b>@if($patient->most_recent_cellular_weight_measurement_at), {{friendly_date_short($patient->most_recent_cellular_weight_measurement_at)}}@endif)
+                        @endif
+                    </div>
+                  </div>
+              </div>
                 <?php $currentCareMonth = $patient->currentCareMonth(); ?>
                 @if($currentCareMonth && ($pro->pro_type === 'ADMIN' || $pro->id === $currentCareMonth->mcp_pro_id))
                     <div class="text-primary c-pointer" open-in-stag-popup mc-initer="care-month-dashboard-{{$patient->uid}}" title="Care Month: {{friendly_month($currentCareMonth->start_date)}}" popup-style="overflow-visible" href="/patients/view/{{ $patient->uid }}/care-months/view/{{$currentCareMonth->uid}}">