|
@@ -3900,32 +3900,44 @@ ORDER BY c.name_last, c.name_first
|
|
|
->where('is_core_note', false)
|
|
|
->where('is_signed_by_hcp', true)
|
|
|
->whereNull('hcp_company_pro_payer_id')
|
|
|
+ ->orderBy('created_at', 'DESC')
|
|
|
->paginate(25);
|
|
|
return view('app.notes-without-hcp-company-pro-payer', compact('rows'));
|
|
|
}
|
|
|
|
|
|
- public function noteBillsWithoutHCPCompanyPro(Request $request){
|
|
|
- $hideTitle = $request->get('hideTitle');
|
|
|
- $pro = $this->performer->pro;
|
|
|
- //All companyProIds that I am supervisor
|
|
|
- $flaggedNotes = Note::where('is_stamped_by_supervising_physician', false)->where('is_flagged_for_supervising_physician_review', true)->whereHas('hcpCompanyPro', function($qry) use($pro){
|
|
|
- return $qry->whereHas('supervisingPhysicianCompanyPro', function($qr) use($pro){
|
|
|
- return $qr->where('pro_id', $pro->id);
|
|
|
- });
|
|
|
- })->get();
|
|
|
- return view('app.notes-pending-physician-supervisor-stamping', compact('flaggedNotes', 'hideTitle'));
|
|
|
+ public function noteHcpBillsWithoutCompanyPro(Request $request){
|
|
|
+ $rows = \App\Models\Bill::where('bill_service_type', 'NOTE')
|
|
|
+ ->where('is_cancelled', false)
|
|
|
+ ->whereNotNull('hcp_pro_id')
|
|
|
+ ->whereNull('hcp_company_pro_id')
|
|
|
+ ->where('has_hcp_been_paid', false)
|
|
|
+ ->orderBy('created_at', 'DESC')
|
|
|
+ ->paginate(25);
|
|
|
+ return view('app.note-hcp-bills-without-company-pro', compact('rows'));
|
|
|
}
|
|
|
|
|
|
- public function rpmBillsWithoutGenericCompanyPro(Request $request){
|
|
|
- $hideTitle = $request->get('hideTitle');
|
|
|
- $pro = $this->performer->pro;
|
|
|
- //All companyProIds that I am supervisor
|
|
|
- $flaggedNotes = Note::where('is_stamped_by_supervising_physician', false)->where('is_flagged_for_supervising_physician_review', true)->whereHas('hcpCompanyPro', function($qry) use($pro){
|
|
|
- return $qry->whereHas('supervisingPhysicianCompanyPro', function($qr) use($pro){
|
|
|
- return $qr->where('pro_id', $pro->id);
|
|
|
- });
|
|
|
- })->get();
|
|
|
- return view('app.notes-pending-physician-supervisor-stamping', compact('flaggedNotes', 'hideTitle'));
|
|
|
+ public function rpmMcpBillsWithoutCompanyPro(Request $request){
|
|
|
+ $rows = \App\Models\Bill::where('bill_service_type', 'GENERIC')
|
|
|
+ ->where('is_cancelled', false)
|
|
|
+ ->whereNotNull('generic_pro_id')
|
|
|
+ ->whereNull('generic_company_pro_id')
|
|
|
+ ->where('has_generic_pro_been_paid', false)
|
|
|
+ ->where('code', 'RM MCP')
|
|
|
+ ->orderBy('created_at', 'DESC')
|
|
|
+ ->paginate(25);
|
|
|
+ return view('app.rpm-mcp-bills-without-company-pro', compact('rows'));
|
|
|
+ }
|
|
|
+
|
|
|
+ public function rpmRmmBillsWithoutCompanyPro(Request $request){
|
|
|
+ $rows = \App\Models\Bill::where('bill_service_type', 'GENERIC')
|
|
|
+ ->where('is_cancelled', false)
|
|
|
+ ->whereNotNull('generic_pro_id')
|
|
|
+ ->whereNull('generic_company_pro_id')
|
|
|
+ ->where('has_generic_pro_been_paid', false)
|
|
|
+ ->where('code', 'RM RMM')
|
|
|
+ ->orderBy('created_at', 'DESC')
|
|
|
+ ->paginate(25);
|
|
|
+ return view('app.rpm-rmm-bills-without-company-pro', compact('rows'));
|
|
|
}
|
|
|
|
|
|
public function notesResolutionCenter(Request $request) {
|