浏览代码

Merge branch 'master' into dev-vj

Vijayakrishnan 4 年之前
父节点
当前提交
471f306938

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

@@ -859,6 +859,11 @@ class PracticeManagementController extends Controller
 
 
     public function patientClaimSummary(Request $request, $proUid=null)
     public function patientClaimSummary(Request $request, $proUid=null)
     {
     {
+
+        $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;
         $performerPro = $this->performer->pro;
         $allPros = [];
         $allPros = [];
         if ($performerPro->pro_type == 'ADMIN') {
         if ($performerPro->pro_type == 'ADMIN') {
@@ -886,7 +891,16 @@ class PracticeManagementController extends Controller
 
 
            $patients =  $patientsQuery->paginate(50);
            $patients =  $patientsQuery->paginate(50);
 
 
-        return view('app.practice-management.patient-claim-summary', compact('patients', 'proUid', 'allPros'));
+            $data = [
+                'patients' => $patients,
+                'proUid' => $proUid,
+                'allPros' => $allPros,
+                'notesTotal' => $notesTotal,
+                'notesTotalWithBillingClosed' => $notesTotalWithBillingClosed,
+                'notesTotalWithClaimingClosed' => $notesTotalWithClaimingClosed
+            ];
+
+        return view('app.practice-management.patient-claim-summary', $data);
     }
     }
 
 
 }
 }

+ 7 - 0
resources/views/app/practice-management/claim-matrix.blade.php

@@ -0,0 +1,7 @@
+@extends ('layouts/template')
+
+@section('content')
+    <div >
+        <iframe class="mt-5" src="/api/dev/view/claimsReport?sessionKey={{$performer->session_key}}" style="position:fixed; top:0; left:0; bottom:0; right:0; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden;"/>
+    </div>
+@endsection

+ 47 - 2
resources/views/app/practice-management/patient-claim-summary.blade.php

@@ -2,7 +2,53 @@
 
 
 @section('content')
 @section('content')
 
 
-    <div id="practice-bills" class="p-3 mcp-theme-1">
+    <div class="p-3 mcp-theme-1">
+        <div class="card">
+            <div class="card-header px-3 py-2 d-flex align-items-center">
+                <strong class="mr-4 d-inline-block">
+                    <i class="fas fa-chart-bar"></i>
+                    Key numbers
+                </strong>
+            </div>
+            <div class="card-body p-0 border-0">
+                <table class="table mb-0 table-sm table-bordered table-striped">
+                    <tbody>
+                    <tr>
+                        <th class="border-top-0 pl-2" style="width: 130px;">Total notes</th>
+                        <td class="border-top-0 px-2"  style="width: 100px;">{{$notesTotal}}</td>
+                        <td></td>
+                    </tr>
+                    <tr>
+                        <th class="pl-2">Billing closed</th>
+                        <td class="px-2">{{$notesTotalWithBillingClosed}} / {{ $notesTotal }}</td>
+                        <td>
+                            <div class="d-flex align-items-center">
+                                <span class="fill-percent-value">{{round(($notesTotalWithBillingClosed) *100/ $notesTotal, 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: {{ ($notesTotalWithBillingClosed) * 100/ $notesTotal }}%"></div>
+                                </div>
+                            </div>
+                        </td>
+                    </tr>
+                    <tr>
+                        <th class="pl-2">Claiming closed</th>
+                        <td class="px-2">{{$notesTotalWithClaimingClosed}} / {{ $notesTotal }}</td>
+                        <td>
+                            <div class="d-flex align-items-center">
+                                <span class="fill-percent-value">{{round(($notesTotalWithClaimingClosed) *100/ $notesTotal, 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: {{ ($notesTotalWithClaimingClosed) * 100/ $notesTotal }}%"></div>
+                                </div>
+                            </div>
+                        </td>
+                    </tr>
+                    </tbody>
+                </table>
+            </div>
+        </div>
+    </div>
+
+    <div id="practice-bills" class="px-3 mcp-theme-1">
         <div class="card">
         <div class="card">
 
 
             <div class="card-header px-3 py-2 d-flex align-items-center">
             <div class="card-header px-3 py-2 d-flex align-items-center">
@@ -20,7 +66,6 @@
                 </select>
                 </select>
             </div>
             </div>
             <div class="card-body p-0 border-0">
             <div class="card-body p-0 border-0">
-                {{--                Patient | MCP | # Notes Total | # Notes without Billing Closed | # Notes without Claiming Closed--}}
                 <table class="table table-striped table-condensed table-sm">
                 <table class="table table-striped table-condensed table-sm">
                     <thead>
                     <thead>
                     <tr>
                     <tr>