Skip to content

Commit

Permalink
Merge pull request #237 from njorocs/bug-fix-contacts
Browse files Browse the repository at this point in the history
Fixing error in exec query. DOB wrong referenced.
  • Loading branch information
njorocs authored Sep 24, 2024
2 parents 6959716 + faf6a1f commit 0cf521d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,8 @@ public EvaluatedPersonData evaluate(PersonDataDefinition definition, EvaluationC
+ " where date(hts.visit_date) <= date(:endDate)) hts\n"
+ " on c.patient_id = hts.patient_id\n"
+ " where c.relationship_type = 3\n"
+ " and timestampdiff(YEAR, date(d.DOB), date(:endDate)) < 15\n"
+ " and c.voided = 0) c on d.patient_id = c.idx_patient_id\n"
+ "group by d.patient_id;";
+ " where timestampdiff(YEAR, date(d.DOB), date(:endDate)) < 15\n" + "group by d.patient_id;";

SqlQueryBuilder queryBuilder = new SqlQueryBuilder();
Date startDate = (Date) context.getParameterValue("startDate");
Expand Down

0 comments on commit 0cf521d

Please sign in to comment.