Skip to content

Commit

Permalink
Update referredAndLinkedSinceThreeMonthsAgo clients query to support …
Browse files Browse the repository at this point in the history
…platform 2.6
  • Loading branch information
jecihjoy committed Aug 21, 2023
1 parent 789f81f commit fc8061a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1193,8 +1193,8 @@ public CohortDefinition referredAndLinkedSinceThreeMonthsAgo() {
"from kenyaemr_etl.etl_hts_referral_and_linkage r\n" +
"where (r.ccc_number != '' or r.ccc_number IS NOT NULL)\n" +
" and (r.facility_linked_to != '' or r.facility_linked_to IS NOT NULL)\n" +
" and (r.art_start_date is not null or r.art_start_date != '')\n" +
" and (r.enrollment_date is not null or r.enrollment_date != '')\n" +
" and r.art_start_date is not null \n" +
" and r.enrollment_date is not null \n" +
" and r.visit_date between date_sub(date(DATE_SUB(date(:endDate), INTERVAL DAYOFMONTH(date(:endDate)) - 1 DAY)),\n" +
" interval 3 MONTH) and date(:endDate);";
SqlCohortDefinition cd = new SqlCohortDefinition();
Expand Down

0 comments on commit fc8061a

Please sign in to comment.