浏览代码

RPM manager - if no rmm/rme dont show - approp

Vijayakrishnan 2 年之前
父节点
当前提交
ae3d71766b
共有 1 个文件被更改,包括 129 次插入102 次删除
  1. 129 102
      resources/views/app/practice-management/rpm-manager/row.blade.php

+ 129 - 102
resources/views/app/practice-management/rpm-manager/row.blade.php

@@ -140,6 +140,7 @@
     <td>{{$iPatient->number_of_days_with_remote_bp_measurements}}</td>
     <td>{{$iPatient->number_of_days_with_remote_bp_measurements}}</td>
     <td>{{$iPatient->number_of_days_with_remote_weight_measurements}}</td>
     <td>{{$iPatient->number_of_days_with_remote_weight_measurements}}</td>
 
 
+    <!-- latest weight/bp -->
     <td class="text-nowrap position-relative {{$iPatient->has_cellular_bp_device && $iPatient->most_recent_cellular_bp_sbp_mm_hg && $iPatient->most_recent_cellular_bp_dbp_mm_hg ? 'rpm-manager-bp-popover-trigger' : ''}} rpm-manager-popover-trigger"
     <td class="text-nowrap position-relative {{$iPatient->has_cellular_bp_device && $iPatient->most_recent_cellular_bp_sbp_mm_hg && $iPatient->most_recent_cellular_bp_dbp_mm_hg ? 'rpm-manager-bp-popover-trigger' : ''}} rpm-manager-popover-trigger"
         data-uid="{{$iPatient->care_month_uid}}" data-client-uid="{{$iPatient->client_uid}}" data-cm-title="{{$iPatient->client_name}} - {{friendly_month($iPatient->care_month_start_date)}}">
         data-uid="{{$iPatient->care_month_uid}}" data-client-uid="{{$iPatient->client_uid}}" data-cm-title="{{$iPatient->client_name}} - {{friendly_month($iPatient->care_month_start_date)}}">
         @if(!$iPatient->has_cellular_bp_device)
         @if(!$iPatient->has_cellular_bp_device)
@@ -269,6 +270,7 @@
         @endif
         @endif
     </td>
     </td>
 
 
+    <!-- entries -->
     @if($viewingAs !== 'RME')
     @if($viewingAs !== 'RME')
         <td>
         <td>
             @if(@$iPatient->myEntries && count($iPatient->myEntries))
             @if(@$iPatient->myEntries && count($iPatient->myEntries))
@@ -334,15 +336,24 @@
         </td>
         </td>
     @endif
     @endif
 
 
+    <!-- interaction -->
     <td>
     <td>
         @if($viewingAs === 'ADMIN')
         @if($viewingAs === 'ADMIN')
             <div class="d-flex align-items-baseline flex-nowrap">
             <div class="d-flex align-items-baseline flex-nowrap">
                 <div class="d-inline-flex align-items-baseline" title="MCP Interaction">
                 <div class="d-inline-flex align-items-baseline" title="MCP Interaction">
-                    <i class="fa fa-circle text-sm opacity-35 {{$iPatient->has_mcp_interacted_with_client_about_rm ? 'text-success' : 'text-danger'}}"></i>
+                    @if($iPatient->mcp_name)
+                        <i class="fa fa-circle text-sm opacity-35 {{$iPatient->has_mcp_interacted_with_client_about_rm ? 'text-success' : 'text-danger'}}"></i>
+                    @else
+                        -
+                    @endif
                     <span class="ml-1 mr-2">M</span>
                     <span class="ml-1 mr-2">M</span>
                 </div>
                 </div>
                 <div class="d-inline-flex align-items-baseline" title="RMM Interaction">
                 <div class="d-inline-flex align-items-baseline" title="RMM Interaction">
-                    <i class="fa fa-circle text-sm opacity-35 {{$iPatient->has_rmm_interacted_with_client_about_rm ? 'text-success' : 'text-danger'}}"></i>
+                    @if($iPatient->rmm_name)
+                        <i class="fa fa-circle text-sm opacity-35 {{$iPatient->has_rmm_interacted_with_client_about_rm ? 'text-success' : 'text-danger'}}"></i>
+                    @else
+                        -
+                    @endif
                     <span class="ml-1 mr-2">R</span>
                     <span class="ml-1 mr-2">R</span>
                 </div>
                 </div>
                 <div class="d-inline-flex align-items-baseline" title="Admin Interaction">
                 <div class="d-inline-flex align-items-baseline" title="Admin Interaction">
@@ -369,99 +380,107 @@
         @if($viewingAs === 'ADMIN' || $viewingAs === 'MCP')
         @if($viewingAs === 'ADMIN' || $viewingAs === 'MCP')
             <?php $minsBilled = round($iPatient->rm_total_time_in_seconds_by_mcp / 60); ?>
             <?php $minsBilled = round($iPatient->rm_total_time_in_seconds_by_mcp / 60); ?>
             <td>
             <td>
-                <div class="d-flex align-items-baseline flex-nowrap">
-                    <i class="mr-1 text-sm fa fa-circle opacity-35 {{$iPatient->rm_total_time_in_seconds_by_mcp >= 1200 ? 'text-success' : 'text-danger'}}"></i>
-                    <span class="text-nowrap">{{round($iPatient->rm_total_time_in_seconds_by_mcp / 60)}}:{{round($iPatient->rm_total_time_in_seconds_by_mcp % 60)}}</span>
-                    @if(date('m') == $month && date('Y') == $year && $viewingAs === 'MCP')
-                        <?php
-                        $showAddEntry = 0;
-                        $expectation = 0;
-                        ?>
-                        @if($dayOfTheMonth >= 7 && $minsBilled < 5)
-                            <?php
-                            $showAddEntry = 5 - $minsBilled;
-                            $expectation = 5;
-                            ?>
-                        @elseif($dayOfTheMonth >= 14 && $minsBilled < 10)
+                @if($iPatient->mcp_name)
+                    <div class="d-flex align-items-baseline flex-nowrap">
+                        <i class="mr-1 text-sm fa fa-circle opacity-35 {{$iPatient->rm_total_time_in_seconds_by_mcp >= 1200 ? 'text-success' : 'text-danger'}}"></i>
+                        <span class="text-nowrap">{{round($iPatient->rm_total_time_in_seconds_by_mcp / 60)}}:{{round($iPatient->rm_total_time_in_seconds_by_mcp % 60)}}</span>
+                        @if(date('m') == $month && date('Y') == $year && $viewingAs === 'MCP')
                             <?php
                             <?php
-                            $showAddEntry = 10 - $minsBilled;
-                            $expectation = 10;
+                            $showAddEntry = 0;
+                            $expectation = 0;
                             ?>
                             ?>
-                        @elseif($dayOfTheMonth >= 21 && $minsBilled < 15)
-                            <?php
-                            $showAddEntry = 15 - $minsBilled;
-                            $expectation = 15;
-                            ?>
-                        @elseif($dayOfTheMonth >= 28 && $minsBilled < 20)
-                            <?php
-                            $showAddEntry = 20 - $minsBilled;
-                            $expectation = 20;
-                            ?>
-                        @endif
-                        @if($showAddEntry > 0)
-                            <i class="ml-1 fa fa-hourglass text-danger opacity-60 text-sm"></i>
-                            <div class="ml-1" title="Total expected billing by end of today: {{$expectation}}m">
-                                @include('app.practice-management.rpm-manager.rpm_manager_care_month_add_entry_form', [
-                                    'right' => true,
-                                    'defaultDate' => date('Y-m-d'),
-                                    'cmUid' => $iPatient->care_month_uid,
-                                    'cmStartDate' => $iPatient->care_month_start_date,
-                                    'cmEndDate' => $iPatient->care_month_end_date,
-                                    'defaultMins' => $showAddEntry,
-                                    'hook' => 'refresh-' . $iPatient->care_month_uid])
-                            </div>
+                            @if($dayOfTheMonth >= 7 && $minsBilled < 5)
+                                <?php
+                                $showAddEntry = 5 - $minsBilled;
+                                $expectation = 5;
+                                ?>
+                            @elseif($dayOfTheMonth >= 14 && $minsBilled < 10)
+                                <?php
+                                $showAddEntry = 10 - $minsBilled;
+                                $expectation = 10;
+                                ?>
+                            @elseif($dayOfTheMonth >= 21 && $minsBilled < 15)
+                                <?php
+                                $showAddEntry = 15 - $minsBilled;
+                                $expectation = 15;
+                                ?>
+                            @elseif($dayOfTheMonth >= 28 && $minsBilled < 20)
+                                <?php
+                                $showAddEntry = 20 - $minsBilled;
+                                $expectation = 20;
+                                ?>
+                            @endif
+                            @if($showAddEntry > 0)
+                                <i class="ml-1 fa fa-hourglass text-danger opacity-60 text-sm"></i>
+                                <div class="ml-1" title="Total expected billing by end of today: {{$expectation}}m">
+                                    @include('app.practice-management.rpm-manager.rpm_manager_care_month_add_entry_form', [
+                                        'right' => true,
+                                        'defaultDate' => date('Y-m-d'),
+                                        'cmUid' => $iPatient->care_month_uid,
+                                        'cmStartDate' => $iPatient->care_month_start_date,
+                                        'cmEndDate' => $iPatient->care_month_end_date,
+                                        'defaultMins' => $showAddEntry,
+                                        'hook' => 'refresh-' . $iPatient->care_month_uid])
+                                </div>
+                            @endif
                         @endif
                         @endif
-                    @endif
-                </div>
+                    </div>
+                @else
+                    -
+                @endif
             </td>
             </td>
         @endif
         @endif
         @if($viewingAs === 'ADMIN' || $viewingAs === 'RMM')
         @if($viewingAs === 'ADMIN' || $viewingAs === 'RMM')
             <?php $minsBilled = round($iPatient->rm_total_time_in_seconds_by_rmm_pro / 60); ?>
             <?php $minsBilled = round($iPatient->rm_total_time_in_seconds_by_rmm_pro / 60); ?>
             <td>
             <td>
-                <div class="d-flex align-items-baseline flex-nowrap">
-                    <i class="mr-1 text-sm fa fa-circle opacity-35 {{$iPatient->rm_total_time_in_seconds_by_rmm_pro >= 1200 ? 'text-success' : 'text-danger'}}"></i>
-                    <span class="text-nowrap">{{round($iPatient->rm_total_time_in_seconds_by_rmm_pro / 60)}}:{{round($iPatient->rm_total_time_in_seconds_by_rmm_pro % 60)}}</span>
-                    @if(date('m') == $month && date('Y') == $year && $viewingAs === 'RMM')
-                        <?php
-                        $showAddEntry = 0;
-                        $expectation = 0;
-                        ?>
-                        @if($dayOfTheMonth >= 7 && $minsBilled < 5)
-                            <?php
-                            $showAddEntry = 5 - $minsBilled;
-                            $expectation = 5;
-                            ?>
-                        @elseif($dayOfTheMonth >= 14 && $minsBilled < 10)
-                            <?php
-                            $showAddEntry = 10 - $minsBilled;
-                            $expectation = 10;
-                            ?>
-                        @elseif($dayOfTheMonth >= 21 && $minsBilled < 15)
-                            <?php
-                            $showAddEntry = 15 - $minsBilled;
-                            $expectation = 15;
-                            ?>
-                        @elseif($dayOfTheMonth >= 28 && $minsBilled < 20)
+                @if($iPatient->rmm_name)
+                    <div class="d-flex align-items-baseline flex-nowrap">
+                        <i class="mr-1 text-sm fa fa-circle opacity-35 {{$iPatient->rm_total_time_in_seconds_by_rmm_pro >= 1200 ? 'text-success' : 'text-danger'}}"></i>
+                        <span class="text-nowrap">{{round($iPatient->rm_total_time_in_seconds_by_rmm_pro / 60)}}:{{round($iPatient->rm_total_time_in_seconds_by_rmm_pro % 60)}}</span>
+                        @if(date('m') == $month && date('Y') == $year && $viewingAs === 'RMM')
                             <?php
                             <?php
-                            $showAddEntry = 20 - $minsBilled;
-                            $expectation = 20;
+                            $showAddEntry = 0;
+                            $expectation = 0;
                             ?>
                             ?>
+                            @if($dayOfTheMonth >= 7 && $minsBilled < 5)
+                                <?php
+                                $showAddEntry = 5 - $minsBilled;
+                                $expectation = 5;
+                                ?>
+                            @elseif($dayOfTheMonth >= 14 && $minsBilled < 10)
+                                <?php
+                                $showAddEntry = 10 - $minsBilled;
+                                $expectation = 10;
+                                ?>
+                            @elseif($dayOfTheMonth >= 21 && $minsBilled < 15)
+                                <?php
+                                $showAddEntry = 15 - $minsBilled;
+                                $expectation = 15;
+                                ?>
+                            @elseif($dayOfTheMonth >= 28 && $minsBilled < 20)
+                                <?php
+                                $showAddEntry = 20 - $minsBilled;
+                                $expectation = 20;
+                                ?>
+                            @endif
+                            @if($showAddEntry > 0)
+                                <i class="ml-1 fa fa-hourglass text-danger opacity-60 text-sm"></i>
+                                <div class="ml-1" title="Total expected billing by end of today: {{$expectation}}">
+                                    @include('app.practice-management.rpm-manager.rpm_manager_care_month_add_entry_form', [
+                                        'right' => true,
+                                        'defaultDate' => date('Y-m-d'),
+                                        'cmUid' => $iPatient->care_month_uid,
+                                        'cmStartDate' => $iPatient->care_month_start_date,
+                                        'cmEndDate' => $iPatient->care_month_end_date,
+                                        'defaultMins' => $showAddEntry,
+                                        'hook' => 'refresh-' . $iPatient->care_month_uid])
+                                </div>
+                            @endif
                         @endif
                         @endif
-                        @if($showAddEntry > 0)
-                            <i class="ml-1 fa fa-hourglass text-danger opacity-60 text-sm"></i>
-                            <div class="ml-1" title="Total expected billing by end of today: {{$expectation}}">
-                                @include('app.practice-management.rpm-manager.rpm_manager_care_month_add_entry_form', [
-                                    'right' => true,
-                                    'defaultDate' => date('Y-m-d'),
-                                    'cmUid' => $iPatient->care_month_uid,
-                                    'cmStartDate' => $iPatient->care_month_start_date,
-                                    'cmEndDate' => $iPatient->care_month_end_date,
-                                    'defaultMins' => $showAddEntry,
-                                    'hook' => 'refresh-' . $iPatient->care_month_uid])
-                            </div>
-                        @endif
-                    @endif
-                </div>
+                    </div>
+                @else
+                    -
+                @endif
             </td>
             </td>
         @endif
         @endif
         @if($viewingAs === 'ADMIN')
         @if($viewingAs === 'ADMIN')
@@ -503,35 +522,43 @@
     @endif
     @endif
     @if($viewingAs === 'ADMIN' || $viewingAs === 'RMM')
     @if($viewingAs === 'ADMIN' || $viewingAs === 'RMM')
         <td class="text-nowrap {{$viewingAs === 'RMM' ? 'v-sep-before' : ''}}">
         <td class="text-nowrap {{$viewingAs === 'RMM' ? 'v-sep-before' : ''}}">
-            @if($iPatient->rmm_paid)
-                <i class="mr-1 fas fa-dollar-sign text-success opacity-60" title="Paid"></i>
-            @else
-                @if($iPatient->is_billable_by_rmm)
-                    @if($iPatient->is_billed_by_rmm)
-                        <i class="mr-1 fa fa-check text-info opacity-60" title="Billed"></i>
+            @if($iPatient->rmm_name)
+                @if($iPatient->rmm_paid)
+                    <i class="mr-1 fas fa-dollar-sign text-success opacity-60" title="Paid"></i>
+                @else
+                    @if($iPatient->is_billable_by_rmm)
+                        @if($iPatient->is_billed_by_rmm)
+                            <i class="mr-1 fa fa-check text-info opacity-60" title="Billed"></i>
+                        @else
+                            <i class="mr-1 fa fa-bolt text-primary" title="Billable"></i>
+                        @endif
                     @else
                     @else
-                        <i class="mr-1 fa fa-bolt text-primary" title="Billable"></i>
+                        <i class="mr-1 fas fa-ban text-secondary" title="Not Billable"></i>
                     @endif
                     @endif
-                @else
-                    <i class="mr-1 fas fa-ban text-secondary" title="Not Billable"></i>
                 @endif
                 @endif
+            @else
+                -
             @endif
             @endif
         </td>
         </td>
     @endif
     @endif
     @if($viewingAs === 'ADMIN' || $viewingAs === 'RME')
     @if($viewingAs === 'ADMIN' || $viewingAs === 'RME')
         <td class="text-nowrap {{$viewingAs === 'RMM' ? 'v-sep-before' : ''}}">
         <td class="text-nowrap {{$viewingAs === 'RMM' ? 'v-sep-before' : ''}}">
-            @if($iPatient->rme_paid)
-                <i class="mr-1 fas fa-dollar-sign text-success opacity-60" title="Paid"></i>
-            @else
-                @if($iPatient->is_billable_by_rme)
-                    @if($iPatient->is_billed_by_rme)
-                        <i class="mr-1 fa fa-check text-info opacity-60" title="Billed"></i>
+            @if($iPatient->rme_name)
+                @if($iPatient->rme_paid)
+                    <i class="mr-1 fas fa-dollar-sign text-success opacity-60" title="Paid"></i>
+                @else
+                    @if($iPatient->is_billable_by_rme)
+                        @if($iPatient->is_billed_by_rme)
+                            <i class="mr-1 fa fa-check text-info opacity-60" title="Billed"></i>
+                        @else
+                            <i class="mr-1 fa fa-bolt text-primary" title="Billable"></i>
+                        @endif
                     @else
                     @else
-                        <i class="mr-1 fa fa-bolt text-primary" title="Billable"></i>
+                        <i class="mr-1 fas fa-ban text-secondary" title="Not Billable"></i>
                     @endif
                     @endif
-                @else
-                    <i class="mr-1 fas fa-ban text-secondary" title="Not Billable"></i>
                 @endif
                 @endif
+            @else
+                -
             @endif
             @endif
         </td>
         </td>
     @endif
     @endif