From 266e9bab7b980953e1e3806853fea1fd9e622e30 Mon Sep 17 00:00:00 2001 From: Ian Date: Thu, 16 May 2024 08:12:51 -0400 Subject: [PATCH] Swap transfer out to out of care --- SQL/iit_prod_data_extract.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQL/iit_prod_data_extract.sql b/SQL/iit_prod_data_extract.sql index 07e8cd0..5d07e19 100644 --- a/SQL/iit_prod_data_extract.sql +++ b/SQL/iit_prod_data_extract.sql @@ -120,7 +120,7 @@ where and (fs.transfer_in_location_id is null or fs.transfer_in_location_id != 9999) and fs.is_clinical_encounter = 1 -- don't generate predictions for patients who have transferred out - and fs.transfer_out is null + and fs.out_of_care is null -- substituted from the R script and fs.rtc_date between ?startDate and ?endDate and (fs.next_clinical_datetime_hiv is null