Quellcode durchsuchen

RPM work matrix (wip)

Vijayakrishnan vor 3 Jahren
Ursprung
Commit
b14b534a33

+ 16 - 35
resources/views/app/patient/care-month/_work_matrix.blade.php

@@ -45,10 +45,10 @@ $days = $daysWithUnstamped;
 <div id="rpm-work-matrix">
 
     <div class="m-neg-3 border-top border-bottom px-3 py-2 d-flex align-items-baseline mb-3 bg-light">
-        <b>Patient:</b>
-        <span class="ml-1">{{$patient->displayName(true)}}</span>
-        <b class="ml-4">Care Month:</b>
-        <span class="ml-1">{{friendly_month($careMonth->start_date)}}</span>
+        <span>Patient:</span>
+        <b class="ml-1">{{$patient->displayName(true)}}</b>
+        <span class="ml-4">Care Month:</span>
+        <b class="ml-1">{{friendly_month($careMonth->start_date)}}</b>
     </div>
 
 @if(!@$onlyMatrix)
@@ -219,19 +219,6 @@ $days = $daysWithUnstamped;
                                     <input type="hidden" name="clientUid" value="{{$patient->uid}}">
                                     <input type="hidden" class="measurements-uids" value="{{implode('|', $unstampedMCP[$k])}}">
                                     <p class="mb-2 font-weight-bold">Stamp all measurements?</p>
-                                    <!--<div class="mb-2 border border-info p-2 mt-2 bg-light width-300px">
-                                        <span>I have had interactive communication with <b>{{$patient->displayName()}}</b> during this care month.</span>
-                                        <div class="d-flex border-top mt-2">
-                                            <label class="mt-2 mb-0 d-inline-flex align-items-center mr-3">
-                                                <input type="radio" class="mr-2" name="communicatedToPatient" value="true" required>
-                                                <span>Yes</span>
-                                            </label>
-                                            <label class="mt-2 mb-0 d-inline-flex align-items-center">
-                                                <input type="radio" class="mr-2" name="communicatedToPatient" value="false" checked required>
-                                                <span>No</span>
-                                            </label>
-                                        </div>
-                                    </div>-->
                                     <?php
                                     $dayTotalMinutes = 0;
                                     foreach($m->entries as $entry) {
@@ -253,10 +240,10 @@ $days = $daysWithUnstamped;
                                         </div>
                                         <div class="if-adding-time-entry pt-2 d-none">
                                             <div class="mb-2">
-                                                <label class="mb-1 text-secondary text-sm">Minutes</label>
-                                                <input type="number" min="1" max="15"
-                                                       class="form-control form-control-sm w-100" name="entryNumberOfMinutes"
-                                                       value="1" placeholder="Time (mins.)">
+                                                <label class="mb-1 text-secondary text-sm">Seconds</label>
+                                                <input type="number" min="75" max="300"
+                                                       class="form-control form-control-sm w-100" name="entryNumberOfSeconds"
+                                                       value="75" placeholder="Time (secs.)">
                                             </div>
                                             <div class="mb-2">
                                                 <label class="mb-1 text-secondary text-sm">Date</label>
@@ -264,16 +251,10 @@ $days = $daysWithUnstamped;
                                                        name="entryDate"
                                                        value="{{date('Y-m-d', strtotime($k))}}">
                                             </div>
-                                            <!--<div class="">
-                                                <label class="mb-0 d-flex align-items-baseline">
-                                                    <input type="checkbox" class="hasAnyoneInteractedWithClientAboutRmOutsideNote mr-2 mt-1">
-                                                    <span>Has anyone interacted with client about rm outside note?</span>
-                                                </label>
-                                            </div>-->
                                         </div>
                                     </div>
                                     <div class="form-group m-0">
-                                        <button type="button" class="btn btn-primary btn-sm mr-2 btn-bulk-stamp">Submit</button>
+                                        <button type="button" class="btn btn-primary btn-sm mr-2 btn-bulk-stamp">Next</button>
                                         <button cancel class="btn btn-default border btn-sm mr-2">Cancel</button>
                                     </div>
                                 </form>
@@ -315,10 +296,10 @@ $days = $daysWithUnstamped;
                                         </div>
                                         <div class="if-adding-time-entry pt-2 d-none">
                                             <div class="mb-2">
-                                                <label class="mb-1 text-secondary text-sm">Minutes</label>
-                                                <input type="number" min="1" max="15"
-                                                       class="form-control form-control-sm w-100" name="entryNumberOfMinutes"
-                                                       value="1" placeholder="Time (mins.)">
+                                                <label class="mb-1 text-secondary text-sm">Seconds</label>
+                                                <input type="number" min="75" max="300"
+                                                       class="form-control form-control-sm w-100" name="entryNumberOfSeconds"
+                                                       value="75" placeholder="Time (secs.)">
                                             </div>
                                             <div class="mb-2">
                                                 <label class="mb-1 text-secondary text-sm">Date</label>
@@ -390,8 +371,8 @@ $days = $daysWithUnstamped;
                                                    placeholder="Effective Date" required>
                                         </div>
                                         <div class="col-4">
-                                            <input type="number" min="0" max="15" class="form-control form-control-sm w-100 cm-time-value" name="timeInMinutes"
-                                                   value="1" placeholder="Time (mins.)" required>
+                                            <input type="number" min="0" max="15" class="form-control form-control-sm w-100 cm-time-value" name="timeInSeconds"
+                                                   value="75" placeholder="Time (secs.)" required>
                                         </div>
                                     </div>
                                 </div>
@@ -501,7 +482,7 @@ $days = $daysWithUnstamped;
                         shouldAddEntry: form.find('.shouldAddEntry').prop('checked') ? 1 : 0,
                         entryDate: form.find('[name="entryDate"]').val(),
                         entryMemo: form.find('[name="entryMemo"]').val(),
-                        entryNumberOfMinutes: form.find('[name="entryNumberOfMinutes"]').val() ? +(form.find('[name="entryNumberOfMinutes"]').val()) : 0,
+                        entryNumberOfSeconds: form.find('[name="entryNumberOfSeconds"]').val() ? +(form.find('[name="entryNumberOfSeconds"]').val()) : 0,
                         hasAnyoneInteractedWithClientAboutRmOutsideNote: form.find('.hasAnyoneInteractedWithClientAboutRmOutsideNote').prop('checked') ? 1 : 0,
                     }
 

+ 12 - 11
resources/views/app/practice-management/remote-monitoring.blade.php

@@ -103,13 +103,13 @@
                                 <th class="border-0">@include('app.practice-management._sort_header', ['route' => route("practice-management.remote-monitoring"), 'label' => 'RPM Enrolled?', 'key' => 'is_enrolled_in_rm'])</th>
                                 <th class="border-0">Cellular BP?</th>
                                 <th class="border-0">Cellular Scale?</th>
-                                <th class="border-0">Latest BP</th>
-                                <th class="border-0">Latest Weight</th>
+                                <th class="border-0">@include('app.practice-management._sort_header', ['route' => route("practice-management.remote-monitoring"), 'label' => 'Latest BP', 'key' => 'most_recent_cellular_bp_measurement_at'])</th>
+                                <th class="border-0">@include('app.practice-management._sort_header', ['route' => route("practice-management.remote-monitoring"), 'label' => 'Latest Weight', 'key' => 'most_recent_cellular_weight_measurement_at'])</th>
                                 <th class="border-0">@include('app.practice-management._sort_header', ['route' => route("practice-management.remote-monitoring"), 'label' => 'Last Visit', 'key' => 'most_recent_completed_mcp_note_date'])</th>
                                 <th class="border-0">@include('app.practice-management._sort_header', ['route' => route("practice-management.remote-monitoring"), 'label' => 'Communicated?', 'key' => 'has_anyone_interacted_with_client_about_rm_outside_note'])</th>
                                 <th class="border-0">@include('app.practice-management._sort_header', ['route' => route("practice-management.remote-monitoring"), 'label' => '#Meas. Days', 'key' => 'number_of_days_with_remote_measurements'])</th>
                                 <th class="border-0">@include('app.practice-management._sort_header', ['route' => route("practice-management.remote-monitoring"), 'label' => '#Unstamped', 'key' => 'rm_num_measurements_not_stamped_by_mcp'])</th>
-                                <th class="border-0">@include('app.practice-management._sort_header', ['route' => route("practice-management.remote-monitoring"), 'label' => '#RPM Mins.', 'key' => 'rm_total_time_in_seconds_by_mcp'])</th>
+                                {{--<th class="border-0">@include('app.practice-management._sort_header', ['route' => route("practice-management.remote-monitoring"), 'label' => '#RPM Mins.', 'key' => 'rm_total_time_in_seconds_by_mcp'])</th>--}}
                             </tr>
                             </thead>
                             <tbody>
@@ -132,9 +132,9 @@
                                     </td>
 
                                     <td>{{friendly_date($iPatient->dob)}}</td>
-                                    <td>{{ucwords(strtolower($iPatient->is_enrolled_in_rm ?: ''))}}</td>
-                                    <td>{{$oPatient->hasBPDevice() ? 'Yes' : 'No'}}</td>
-                                    <td>{{$oPatient->hasBPDevice() ? 'Yes' : 'No'}}</td>
+                                    <td>{!! $iPatient->is_enrolled_in_rm === 'YES' ? '<i class="fa fa-check text-success"></i>' : 'No' !!}</td>
+                                    <td>{!! $oPatient->hasBPDevice() ? '<i class="fa fa-check text-success"></i>' : 'No' !!}</td>
+                                    <td>{!! $oPatient->hasBPDevice() ? '<i class="fa fa-check text-success"></i>' : 'No' !!}</td>
                                     <td>
                                         {{$iPatient->most_recent_cellular_bp_sbp_mm_hg ?: '-'}}/{{$iPatient->most_recent_cellular_bp_dbp_mm_hg ?: '-'}}
                                         @if($iPatient->most_recent_cellular_bp_measurement_at)
@@ -153,7 +153,7 @@
                                             <span>{{$iPatient->most_recent_completed_mcp_note_date ? friendly_date($iPatient->most_recent_completed_mcp_note_date) : '-'}}</span>
                                         </div>
                                         @if(!$lastVisitWithin90Days)
-                                            <div class="text-sm font-italic text-secondary">Last visit > 90 days ago</div>
+                                            <div class="text-sm font-italic text-secondary">No visit in over 90 days</div>
                                         @endif
                                     </td>
                                     <td>
@@ -173,7 +173,7 @@
                                             </div>
                                         </div>
                                         @if(!$iPatient->has_anyone_interacted_with_client_about_rm_outside_note)
-                                            <div class="text-sm font-italic text-secondary">Not spoken to this month!</div>
+                                            <div class="text-sm font-italic text-secondary">Not interacted this month!</div>
                                         @endif
                                     </td>
                                     <td>
@@ -188,7 +188,7 @@
                                     <td>
                                         <div class="d-flex align-items-baseline">
                                             <span>{{$iPatient->rm_num_measurements_not_stamped_by_mcp}}</span>
-                                            @if($iPatient->rm_num_measurements_not_stamped_by_mcp)
+                                            {{--@if($iPatient->rm_num_measurements_not_stamped_by_mcp)
                                                 <a href="{{ route('mcp.measurements_pending_stamping_in_care_month') }}?patientUid={{$iPatient->client_uid}}&careMonthUid={{$iPatient->care_month_uid}}"
                                                    native target="_blank"
                                                    open-in-stag-popup
@@ -199,9 +199,10 @@
                                                    title="{{$oPatient->displayName(true)}}: Measurements Pending Stamping">
                                                     Stamp
                                                 </a>
-                                            @endif
+                                            @endif--}}
+                                        </div>
                                     </td>
-                                    <td>{{floor($iPatient->rm_total_time_in_seconds_by_mcp / 60)}}</td>
+                                    {{--<td>{{floor($iPatient->rm_total_time_in_seconds_by_mcp / 60)}}</td>--}}
                                 </tr>
                             @endforeach
                             </tbody>