|
@@ -1105,6 +1105,9 @@ ORDER BY claim.created_at ASC
|
|
|
if($mode < 1 || $mode > 5) $mode = 1;
|
|
|
|
|
|
$counts = [
|
|
|
+ "picked" => Note::where('is_cancelled', false)
|
|
|
+ ->whereNotNull('current_note_pickup_for_processing_id')
|
|
|
+ ->count(),
|
|
|
"mode-1" => Note::where('is_cancelled', false)
|
|
|
->where('is_signed_by_hcp', false)
|
|
|
->whereRaw("((detail_json)::json->>'isBad' is null OR ((detail_json)::json->>'isBad')::text != 'true')")
|
|
@@ -1155,26 +1158,6 @@ ORDER BY claim.created_at ASC
|
|
|
->count(),
|
|
|
];
|
|
|
|
|
|
- /*$notes = Note::where('is_cancelled', false);
|
|
|
-
|
|
|
- $mode = $request->input('mode') ? $request->input('mode') : '1';
|
|
|
- if($mode < 1 || $mode > 5) $mode = 1;
|
|
|
-
|
|
|
- switch (+$mode) {
|
|
|
- case 1:
|
|
|
- break;
|
|
|
- case 2:
|
|
|
- break;
|
|
|
- case 3:
|
|
|
- break;
|
|
|
- case 4:
|
|
|
- break;
|
|
|
- case 5:
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- $notes = $notes->orderBy('effective_dateest', 'ASC')->skip(0)->take(1)->get();*/
|
|
|
-
|
|
|
return view('app.practice-management.process-notes', compact('mode', 'counts'));
|
|
|
}
|
|
|
|
|
@@ -1239,6 +1222,19 @@ ORDER BY claim.created_at ASC
|
|
|
return json_encode($note);
|
|
|
}
|
|
|
|
|
|
+ public function pickedNotes(Request $request) {
|
|
|
+ $counts = [
|
|
|
+ "unpicked" => Note::where('is_cancelled', false)
|
|
|
+ ->whereNull('current_note_pickup_for_processing_id')
|
|
|
+ ->count(),
|
|
|
+ ];
|
|
|
+ $notes = Note::where('is_cancelled', false)
|
|
|
+ ->whereNotNull('current_note_pickup_for_processing_id')
|
|
|
+ ->orderBy('effective_dateest', 'ASC')
|
|
|
+ ->paginate();
|
|
|
+ return view('app.practice-management.picked-notes', compact('counts', 'notes'));
|
|
|
+ }
|
|
|
+
|
|
|
public function currentMbClaim(Request $request, $claimUid) {
|
|
|
$claim = Claim::where('uid', $claimUid)->first();
|
|
|
return json_encode(MBClaim::where('claim_version_id', $claim->currentVersion->id)->first());
|