|
@@ -1404,7 +1404,7 @@ ORDER BY claim.created_at DESC
|
|
->whereNotNull('company_pro_id')
|
|
->whereNotNull('company_pro_id')
|
|
->whereNotNull('company_pro_payer_id')
|
|
->whereNotNull('company_pro_payer_id')
|
|
->whereNotNull('company_location_id')
|
|
->whereNotNull('company_location_id')
|
|
- ->whereRaw('(SELECT count(id) FROM care_month_cm_rm_reason WHERE care_month_id = care_month.id) > 0')
|
|
|
|
|
|
+ //->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)
|
|
->where('rm_total_time_in_seconds_by_mcp', '>=', 1800)
|
|
->where('rm_total_time_in_seconds', '>=', 4200) // at 4200 (70 minutes, it becomes eligible for plus40)
|
|
->where('rm_total_time_in_seconds', '>=', 4200) // at 4200 (70 minutes, it becomes eligible for plus40)
|
|
->where('number_of_days_with_remote_measurements', '>=', 16 )
|
|
->where('number_of_days_with_remote_measurements', '>=', 16 )
|
|
@@ -1426,7 +1426,7 @@ ORDER BY claim.created_at DESC
|
|
->whereNotNull('company_pro_id')
|
|
->whereNotNull('company_pro_id')
|
|
->whereNotNull('company_pro_payer_id')
|
|
->whereNotNull('company_pro_payer_id')
|
|
->whereNotNull('company_location_id')
|
|
->whereNotNull('company_location_id')
|
|
- ->whereRaw('(SELECT count(id) FROM care_month_cm_rm_reason WHERE care_month_id = care_month.id) > 0')
|
|
|
|
|
|
+ //->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)
|
|
->where('rm_total_time_in_seconds_by_mcp', '>=', 1800)
|
|
->where('rm_total_time_in_seconds', '<', 4200)
|
|
->where('rm_total_time_in_seconds', '<', 4200)
|
|
->where('rm_total_time_in_seconds', '>=', 3000) // at 3000 (50 minutes, it becomes eligible for plus20)
|
|
->where('rm_total_time_in_seconds', '>=', 3000) // at 3000 (50 minutes, it becomes eligible for plus20)
|
|
@@ -1438,7 +1438,7 @@ ORDER BY claim.created_at DESC
|
|
->whereNotNull('company_pro_id')
|
|
->whereNotNull('company_pro_id')
|
|
->whereNotNull('company_pro_payer_id')
|
|
->whereNotNull('company_pro_payer_id')
|
|
->whereNotNull('company_location_id')
|
|
->whereNotNull('company_location_id')
|
|
- ->whereRaw('(SELECT count(id) FROM care_month_cm_rm_reason WHERE care_month_id = care_month.id) > 0')
|
|
|
|
|
|
+ //->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)
|
|
->where('rm_total_time_in_seconds_by_mcp', '>=', 1800)
|
|
->where('rm_total_time_in_seconds', '<', 4200)
|
|
->where('rm_total_time_in_seconds', '<', 4200)
|
|
->where('rm_total_time_in_seconds', '>=', 3000) // at 3000 (50 minutes, it becomes eligible for plus20)
|
|
->where('rm_total_time_in_seconds', '>=', 3000) // at 3000 (50 minutes, it becomes eligible for plus20)
|
|
@@ -1452,10 +1452,14 @@ ORDER BY claim.created_at DESC
|
|
->whereNotNull('company_location_id')
|
|
->whereNotNull('company_location_id')
|
|
->whereRaw('(SELECT count(id) FROM care_month_cm_rm_reason WHERE care_month_id = care_month.id) > 0')
|
|
->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)
|
|
->where('rm_total_time_in_seconds_by_mcp', '>=', 1800)
|
|
- ->where('rm_total_time_in_seconds', '<', 3000)
|
|
|
|
|
|
+ ->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 )
|
|
->where('number_of_days_with_remote_measurements', '>=', 16 )
|
|
->count();
|
|
->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'));
|
|
return view('app.practice-management.rm-launch-and-clean', compact('keyNumbers'));
|
|
}
|
|
}
|