Переглянути джерело

RPM manager - DSLM column

Vijayakrishnan 2 роки тому
батько
коміт
e4416a7261

+ 2 - 0
app/Http/Controllers/PracticeManagementController.php

@@ -2571,6 +2571,7 @@ SELECT
        (mcpPro.name_first || ' ' || mcpPro.name_last) as mcp_name,
        (rmmPro.name_first || ' ' || rmmPro.name_last) as rmm_name,
        (rmePro.name_first || ' ' || rmePro.name_last) as rme_name,
+       DATE_PART('day', NOW() - client.most_recent_cellular_measurement_at) as dslm,
        care_month.days_between_most_recent_mcp_note_date_and_end_of_care_month,
        care_month.number_of_days_with_remote_measurements,
        care_month.number_of_days_with_remote_bp_measurements,
@@ -2733,6 +2734,7 @@ SELECT
        (mcpPro.name_first || ' ' || mcpPro.name_last) as mcp_name,
        (rmmPro.name_first || ' ' || rmmPro.name_last) as rmm_name,
        (rmePro.name_first || ' ' || rmePro.name_last) as rme_name,
+       DATE_PART('day', NOW() - client.most_recent_cellular_measurement_at) as dslm,
        care_month.days_between_most_recent_mcp_note_date_and_end_of_care_month,
        care_month.number_of_days_with_remote_measurements,
        care_month.number_of_days_with_remote_bp_measurements,

+ 6 - 0
resources/views/app/practice-management/rpm-manager/index.blade.php

@@ -319,6 +319,9 @@
                             <th class="border-top-0 border-bottom-0 rmgr-name-column"></th>
                         @endif
                         <th class="border-top-0 border-bottom-0"></th>
+                        @if(date('m') == $month && date('Y') == $year) {{-- dslm --}}
+                            <th class="border-top-0 border-bottom-0"></th>
+                        @endif
                         <th class="border-top-0 border-bottom-0"></th>
                         <th class="border-top-0 border-bottom-0 bg-aliceblue text-nowrap" colspan="3"># Meas. Days</th>
                         <th class="border-top-0 border-bottom-0 text-nowrap" colspan="2">
@@ -360,6 +363,9 @@
                             <th class="border-bottom-0 border-top">RME</th>
                         @endif
                         <th class="border-bottom-0 border-top">NV</th>
+                        @if(date('m') == $month && date('Y') == $year)
+                            <th class="border-bottom-0 border-top">DSLM</th>
+                        @endif
                         <th class="border-bottom-0 border-top">DSLV</th>
 
                         <!--# Meas. Days-->

+ 3 - 0
resources/views/app/practice-management/rpm-manager/row.blade.php

@@ -100,6 +100,9 @@
         <td class="rmgr-name-column" title="{{$iPatient->rme_name ?: ''}}"><div class="rmgr-name-element">{{$iPatient->rme_last_name ?: '-'}}</div></td>
     @endif
     <td><span class="text-nowrap">{{$iPatient->next_visit_date ? friendly_date($iPatient->next_visit_date) : '-'}}</span></td>
+    @if(date('m') == $month && date('Y') == $year)
+        <td>{{$iPatient->dslm ?: '-'}}</td>
+    @endif
     <td class="{{+$iPatient->days_between_most_recent_mcp_note_date_and_end_of_care_month > 120 ? 'text-danger opacity-60' : ''}}"
         title="{{+$iPatient->days_between_most_recent_mcp_note_date_and_end_of_care_month > 120 ? 'Days between most recent visit before end of care month is > 120. Not billable.' : ''}}"
         >{{$iPatient->days_between_most_recent_mcp_note_date_and_end_of_care_month}}</td>