|
@@ -1452,12 +1452,13 @@ ORDER BY claim.created_at DESC
|
|
|
->whereNotNull('company_location_id')
|
|
|
->whereRaw('(SELECT count(id) FROM care_month_cm_rm_reason WHERE care_month_id = care_month.id) > 0')
|
|
|
->where('rm_total_time_in_seconds_by_mcp', '>=', 1800)
|
|
|
- ->whereRaw('(rm_total_time_in_seconds < 3000 OR (rm_total_time_in_seconds > 3000 AND is_rm_interaction_waived IS TRUE))')
|
|
|
+ ->whereRaw('(rm_total_time_in_seconds < 1800 OR (rm_total_time_in_seconds > 1800 AND is_rm_interaction_waived IS TRUE))')
|
|
|
->where('number_of_days_with_remote_measurements', '>=', 16 )
|
|
|
->count();
|
|
|
|
|
|
$keyNumbers['careMonthsWith16OrMoreMeasurementDays'] = CareMonth::where('is_bill_closed', false)
|
|
|
->where('number_of_days_with_remote_measurements', '>=', 16 )
|
|
|
+
|
|
|
->count();
|
|
|
|
|
|
return view('app.practice-management.rm-launch-and-clean', compact('keyNumbers'));
|