Forráskód Böngészése

Client header/dashboard RM checks and updates

Vijayakrishnan 3 éve
szülő
commit
7326e8dbf8

+ 6 - 4
resources/views/app/patient/dashboard.blade.php

@@ -34,10 +34,12 @@
             <div class="col-6">
 
                 {{-- rpm summary for current caremonth --}}
-                @if($patient->currentCareMonth())
-                    @include('app/patient/partials/caremonth-summary', ['careMonth' => $patient->currentCareMonth()])
-                @else 
-                    <div class="alert alert-info">No caremonth for this month.</div>
+                @if($patient->is_enrolled_in_rm === 'YES')
+                    @if($patient->currentCareMonth())
+                        @include('app/patient/partials/caremonth-summary', ['careMonth' => $patient->currentCareMonth()])
+                    @else
+                        <div class="alert alert-info">No caremonth for this month.</div>
+                    @endif
                 @endif
 
                 {{-- appointments --}}

+ 1 - 0
resources/views/layouts/patient-header.blade.php

@@ -75,6 +75,7 @@ $addressParts .= implode(", ", $addressPart2);
         </span>
       </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></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