Sfoglia il codice sorgente

updated claims-resolver

unknown 4 anni fa
parent
commit
c8d8f10390

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

@@ -860,7 +860,9 @@ class PracticeManagementController extends Controller
     public function patientClaimSummary(Request $request, $proUid=null)
     {
 
-        $claimsTotal = DB::select(DB::raw("SELECT COUNT(*) FROM claim WHERE is_cancelled IS NOT TRUE"));
+        $notesTotal = DB::select(DB::raw("SELECT COUNT(*) FROM note WHERE is_cancelled IS NOT TRUE"))[0]->count;
+        $notesTotalWithBillingClosed = DB::select(DB::raw("SELECT COUNT(*) FROM note WHERE is_cancelled IS NOT TRUE AND is_bill_closed IS TRUE"))[0]->count;
+        $notesTotalWithClaimingClosed = DB::select(DB::raw("SELECT COUNT(*) FROM note WHERE is_cancelled IS NOT TRUE AND is_claim_closed IS TRUE"))[0]->count;
 
         $performerPro = $this->performer->pro;
         $allPros = [];
@@ -893,7 +895,9 @@ class PracticeManagementController extends Controller
                 'patients' => $patients,
                 'proUid' => $proUid,
                 'allPros' => $allPros,
-                'claimsTotal' => $claimsTotal
+                'notesTotal' => $notesTotal,
+                'notesTotalWithBillingClosed' => $notesTotalWithBillingClosed,
+                'notesTotalWithClaimingClosed' => $notesTotalWithClaimingClosed
             ];
 
         return view('app.practice-management.patient-claim-summary', $data);

+ 3 - 1
resources/views/app/practice-management/patient-claim-summary.blade.php

@@ -2,7 +2,9 @@
 
 @section('content')
 
-    <h1>{{ $claimsTotal[0]->count }}</h1>
+    <h2>Notes: {{$notesTotal}}</h2>
+    <h2>Notes with Billing Closed:{{$notesTotalWithBillingClosed}}</h2>
+    <h2>Notes with Claiming Closed: {{$notesTotalWithClaimingClosed}}</h2>
 
     <div id="practice-bills" class="p-3 mcp-theme-1">
         <div class="card">