Kaynağa Gözat

fixed renamed columns

= 3 yıl önce
ebeveyn
işleme
61150ac72b

+ 3 - 3
app/Http/Controllers/PracticeManagementController.php

@@ -819,10 +819,10 @@ class PracticeManagementController extends Controller
         if($fcomm && $fcomm !== 'all') {
             switch($fcomm) {
                 case 'not-done':
-                    $filters .= ' AND (care_month.has_non_hcp_communicated_to_patient_about_rm = FALSE OR care_month.has_non_hcp_communicated_to_patient_about_rm IS NULL) ';
+                    $filters .= ' AND (care_month.has_anyone_interacted_with_client_about_rm_outside_note = FALSE OR care_month.has_anyone_interacted_with_client_about_rm_outside_note IS NULL) ';
                     break;
                 case 'done':
-                    $filters .= ' AND (care_month.has_non_hcp_communicated_to_patient_about_rm = TRUE AND care_month.has_non_hcp_communicated_to_patient_about_rm IS NOT NULL) ';
+                    $filters .= ' AND (care_month.has_anyone_interacted_with_client_about_rm_outside_note = TRUE AND care_month.has_anyone_interacted_with_client_about_rm_outside_note IS NOT NULL) ';
                     break;
             }
         }
@@ -839,7 +839,7 @@ SELECT client.name_first, client.name_last, client.uid as client_uid,
        care_month.id as care_month_id,
        care_month.start_date,
        care_month.number_of_days_with_remote_measurements,
-       care_month.has_non_hcp_communicated_to_patient_about_rm,
+       care_month.has_anyone_interacted_with_client_about_rm_outside_note,
        care_month.rm_num_measurements_not_stamped_by_mcp,
        care_month.rm_num_measurements_not_stamped_by_non_hcp,
        care_month.rm_num_measurements_not_stamped_by_rmm,