Pārlūkot izejas kodu

Merge branch 'master' into dev-vj

Vijayakrishnan 4 gadi atpakaļ
vecāks
revīzija
83133589a2

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

@@ -952,6 +952,7 @@ class PracticeManagementController extends Controller
 
         //Patient | MCP | # Notes Total | # Notes without Billing Closed | # Notes without Claiming Closed
         $patientsQuery = Client::where('is_dummy', '=', false)
+            ->whereNull('shadow_pro_id')
             ->select('id', 'uid', 'name_first', 'name_last', 'mcp_pro_id', 'is_part_b_primary', 'medicare_advantage_plan',
                 DB::raw("(SELECT name_first||' '||name_last FROM pro where pro.id = client.mcp_pro_id) as mcp"),
                 DB::raw("(SELECT uid FROM pro where pro.id = mcp_pro_id) as mcp_pro_uid"),

+ 8 - 0
resources/views/app/patient/claims-resolver.blade.php

@@ -85,10 +85,14 @@
                 <div class="d-flex">
                     <span class="fill-percent-content">{{ $totalNotesWithBillingClosed }} / {{$totalNotes}}</span>
                     <div class="d-inline-flex flex-grow-1 ml-3">
+                        @if($totalNotes > 0)
                         <span class="fill-percent-value">{{round($totalNotesWithBillingClosed * 100 / $totalNotes, 1)}}%</span>
                         <div class="flex-grow-1 position-relative fill-bar">
                             <div class="bg-info position-absolute" style="left: 0; top: 0; height: 100%; width: {{$totalNotesWithBillingClosed * 100 / $totalNotes}}%"></div>
                         </div>
+                        @else 
+                         No notes
+                        @endif
                     </div>
                 </div>
             </td>
@@ -97,6 +101,7 @@
             <td>Total Notes With Claiming Closed:</td>
             <td>
                 <div class="d-flex align-items-center">
+                   @if($totalNotes > 0)
                     <span class="fill-percent-content">{{ $totalNotesWithClaimingClosed }} / {{$totalNotes}}</span>
                     <div class="d-inline-flex flex-grow-1 ml-3">
                         <span class="fill-percent-value">{{round($totalNotesWithClaimingClosed * 100 / $totalNotes, 1)}}%</span>
@@ -104,6 +109,9 @@
                             <div class="bg-info position-absolute" style="left: 0; top: 0; height: 100%; width: {{$totalNotesWithClaimingClosed * 100 / $totalNotes}}%"></div>
                         </div>
                     </div>
+                    @else 
+                    <span>--</span>
+                    @endif 
                 </div>
             </td>
         </tr>