Skip to content

Commit

Permalink
Merge pull request #233 from njorocs/immunization-refactor
Browse files Browse the repository at this point in the history
Refactoring hei_immunization to immunization
  • Loading branch information
patryllus authored Jul 5, 2024
2 parents f6793a1 + 813ea7a commit de09ea1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public EvaluatedPersonData evaluate(PersonDataDefinition definition, EvaluationC
String qry = "select m.patient_id,\n"
+ " (case m.fully_immunized when 1065 then 'UpToDate' when 1066 then 'Not documented' end) as immunization_status\n"
+ "from kenyaemr_etl.etl_patient_demographics d\n"
+ " inner join kenyaemr_etl.etl_hei_immunization m on d.patient_id = m.patient_id\n"
+ " inner join kenyaemr_etl.etl_immunization m on d.patient_id = m.patient_id\n"
+ " inner join kenyaemr_etl.etl_patient_program_discontinuation disc on disc.patient_id = m.patient_id\n"
+ "where disc.program_name in ('MCH Child HEI','MCH Child') and disc.discontinuation_reason = 160432\n"
+ "group by m.patient_id;";
Expand Down

0 comments on commit de09ea1

Please sign in to comment.