Kaynağa Gözat

fixed launch queries

= 3 yıl önce
ebeveyn
işleme
9d8df5088a

+ 4 - 2
app/Http/Controllers/PracticeManagementController.php

@@ -1393,7 +1393,7 @@ ORDER BY claim.created_at ASC
 
         $keyNumbers = [];
 
-        $keyNumbers['careMonthsEligibleForBillGeneration_RM30_HCP_PLUS_NONHCP40'] = CareMonth::where('is_bill_closed', false)
+        $keyNumbers['careMonthsEligibleForBillGeneration_RM30_HCP_PLUS_40'] = CareMonth::where('is_bill_closed', false)
             ->whereNotNull('company_pro_id')
             ->whereNotNull('company_pro_payer_id')
             ->whereNotNull('company_location_id')
@@ -1401,9 +1401,10 @@ ORDER BY claim.created_at ASC
             ->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('number_of_days_with_remote_measurements', '>=', 16 )
+            ->where('has_anyone_interacted_with_client_about_rm_outside_note', '=', true)
             ->count();
 
-        $keyNumbers['careMonthsEligibleForBillGeneration_RM30_HCP_PLUS_NONHCP20'] = CareMonth::where('is_bill_closed', false)
+        $keyNumbers['careMonthsEligibleForBillGeneration_RM30_HCP_PLUS_20'] = CareMonth::where('is_bill_closed', false)
             ->whereNotNull('company_pro_id')
             ->whereNotNull('company_pro_payer_id')
             ->whereNotNull('company_location_id')
@@ -1412,6 +1413,7 @@ ORDER BY claim.created_at ASC
             ->where('rm_total_time_in_seconds', '<', 4200)
             ->where('rm_total_time_in_seconds', '>=', 3000) // at 3000 (50 minutes, it becomes eligible for plus20)
             ->where('number_of_days_with_remote_measurements', '>=', 16 )
+            ->where('has_anyone_interacted_with_client_about_rm_outside_note', '=', true)
             ->count();
 
         $keyNumbers['careMonthsEligibleForBillGeneration_RM30_HCP'] = CareMonth::where('is_bill_closed', false)