Skip to content

Commit

Permalink
Add targets of April 2024 roll-out
Browse files Browse the repository at this point in the history
  • Loading branch information
ibacher committed Apr 15, 2024
1 parent 9ad4e0d commit 4c3b2cd
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions SQL/iit_prod_data_extract.sql
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,16 @@ select
-- Dumisha
55, 315, 19, 230, 26, 23, 319, 130, 313, 9, 342, 78, 310, 20, 312, 12, 321, 8, 341, 19, 230,
-- Uzima
1, 13, 14, 15, 197, 198, 17, 227, 214, 306, 11, 229, 421, 422, 423, 420
1, 13, 14, 15, 197, 198, 17, 227, 214, 306, 11, 229, 421, 422, 423, 420,
-- April 2024 Cohort
211, 140, 69, 208, 11, 229
)
then 'Urban'
when fs.location_id in (65, 314, 64, 83, 316, 90, 135, 106, 86, 336, 91, 320, 74, 76, 79, 100, 311, 75)
when fs.location_id in (
65, 314, 64, 83, 316, 90, 135, 106, 86, 336, 91, 320, 74, 76, 79, 100, 311, 75,
-- April 2024 Cohort
60, 323, 4, 322, 351, 352
)
then 'Rural'
end as Clinic_Location,
null as TB_Comorbidity,
Expand Down Expand Up @@ -273,12 +279,14 @@ from etl.flat_hiv_summary_v15b as fs
on mlp.encounter_id = fs.encounter_id
where fs.location_id in (
-- Dumisha
26,23,319,130,313,9,78,310,20,312,12,321,8,341,342,65,314,64,83,90,106,86,336,91,320,74,76,79,100,311,75,195,19,230,
26, 23, 319, 130, 313, 9, 78, 310, 20, 312, 12, 321, 8, 341, 342, 65, 314, 64, 83, 90, 106, 86, 336, 91, 320, 74, 76, 79, 100, 311, 75, 195, 19, 230,
-- Uzima
1, 13, 14, 15, 197, 198, 17, 227, 214, 306, 11, 229, 421, 422, 423, 420
1, 13, 14, 15, 197, 198, 17, 227, 214, 306, 11, 229, 421, 422, 423, 420,
-- April 2024 rollout (NB some are included above - 420, 421, 422, & 423)
211, 60, 323, 140, 4, 322, 351, 352, 208, 69, 208, 11, 229
)
-- test locations
and fs.location_id not in (429, 430, 354)
-- test locations and (21 - Non AMPATH Site, 22 - None)
and fs.location_id not in (21, 22, 429, 430, 354)
-- filter encounters: 111 - LabResult, 99999 - lab encounter type
-- these encounters are post-visit lab result entries and should not appear in predicted data
and fs.encounter_type not in (111, 99999)
Expand Down

0 comments on commit 4c3b2cd

Please sign in to comment.