|
@@ -860,7 +860,9 @@ class PracticeManagementController extends Controller
|
|
public function patientClaimSummary(Request $request, $proUid=null)
|
|
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;
|
|
$performerPro = $this->performer->pro;
|
|
$allPros = [];
|
|
$allPros = [];
|
|
@@ -893,7 +895,9 @@ class PracticeManagementController extends Controller
|
|
'patients' => $patients,
|
|
'patients' => $patients,
|
|
'proUid' => $proUid,
|
|
'proUid' => $proUid,
|
|
'allPros' => $allPros,
|
|
'allPros' => $allPros,
|
|
- 'claimsTotal' => $claimsTotal
|
|
|
|
|
|
+ 'notesTotal' => $notesTotal,
|
|
|
|
+ 'notesTotalWithBillingClosed' => $notesTotalWithBillingClosed,
|
|
|
|
+ 'notesTotalWithClaimingClosed' => $notesTotalWithClaimingClosed
|
|
];
|
|
];
|
|
|
|
|
|
return view('app.practice-management.patient-claim-summary', $data);
|
|
return view('app.practice-management.patient-claim-summary', $data);
|