Skip to content

Commit

Permalink
Merge pull request #1985 from njorocs/dashboard-contacts
Browse files Browse the repository at this point in the history
Refactoring contacts column name refs from id to patient_id
  • Loading branch information
RAJABIBRAZ authored Aug 22, 2024
2 parents 52f5f5b + 682a83c commit d595ac6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public EvaluatedCohort evaluate(CohortDefinition cohortDefinition, EvaluationCon

Cohort newCohort = new Cohort();

String qry="select cl.id from kenyaemr_etl.etl_contacts_linked cl where cl.relationship_type =157351 group by cl.id;";
String qry="select cl.patient_id from kenyaemr_etl.etl_contacts_linked cl where cl.relationship_type =157351 group by cl.patient_id;";

SqlQueryBuilder builder = new SqlQueryBuilder();
builder.append(qry);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public EvaluatedCohort evaluate(CohortDefinition cohortDefinition, EvaluationCon

Cohort newCohort = new Cohort();

String qry="select cl.id from kenyaemr_etl.etl_contacts_linked cl where cl.relationship_type =163565 group by cl.id;";
String qry="select cl.patient_id from kenyaemr_etl.etl_contacts_linked cl where cl.relationship_type =163565 group by cl.patient_id;";

SqlQueryBuilder builder = new SqlQueryBuilder();
builder.append(qry);
Expand Down

0 comments on commit d595ac6

Please sign in to comment.