|
@@ -1108,6 +1108,9 @@ ORDER BY claim.created_at ASC
|
|
"picked" => Note::where('is_cancelled', false)
|
|
"picked" => Note::where('is_cancelled', false)
|
|
->whereNotNull('current_note_pickup_for_processing_id')
|
|
->whereNotNull('current_note_pickup_for_processing_id')
|
|
->count(),
|
|
->count(),
|
|
|
|
+ "bad" => Note::where('is_cancelled', false)
|
|
|
|
+ ->whereRaw("(detail_json)::json->>'isBad' = 'true'")
|
|
|
|
+ ->count(),
|
|
"mode-1" => Note::where('is_cancelled', false)
|
|
"mode-1" => Note::where('is_cancelled', false)
|
|
->where('is_signed_by_hcp', false)
|
|
->where('is_signed_by_hcp', false)
|
|
->whereRaw("((detail_json)::json->>'isBad' is null OR ((detail_json)::json->>'isBad')::text != 'true')")
|
|
->whereRaw("((detail_json)::json->>'isBad' is null OR ((detail_json)::json->>'isBad')::text != 'true')")
|
|
@@ -1235,6 +1238,19 @@ ORDER BY claim.created_at ASC
|
|
return view('app.practice-management.picked-notes', compact('counts', 'notes'));
|
|
return view('app.practice-management.picked-notes', compact('counts', 'notes'));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public function badNotes(Request $request) {
|
|
|
|
+ $counts = [
|
|
|
|
+ "unpicked" => Note::where('is_cancelled', false)
|
|
|
|
+ ->whereNull('current_note_pickup_for_processing_id')
|
|
|
|
+ ->count(),
|
|
|
|
+ ];
|
|
|
|
+ $notes = Note::where('is_cancelled', false)
|
|
|
|
+ ->whereRaw("(detail_json)::json->>'isBad' = 'true'")
|
|
|
|
+ ->orderBy('effective_dateest', 'ASC')
|
|
|
|
+ ->paginate();
|
|
|
|
+ return view('app.practice-management.bad-notes', compact('counts', 'notes'));
|
|
|
|
+ }
|
|
|
|
+
|
|
public function currentMbClaim(Request $request, $claimUid) {
|
|
public function currentMbClaim(Request $request, $claimUid) {
|
|
$claim = Claim::where('uid', $claimUid)->first();
|
|
$claim = Claim::where('uid', $claimUid)->first();
|
|
return json_encode(MBClaim::where('claim_version_id', $claim->currentVersion->id)->first());
|
|
return json_encode(MBClaim::where('claim_version_id', $claim->currentVersion->id)->first());
|