Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POC-563:added sms outcome column to pre-appointment line list #1359

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@
"type": "LEFT",
"joinCondition": "ml.person_id = etc.person_id"
}
},
{
"table": "(SELECT ps.* FROM etl.pre_appointment_summary ps JOIN ( SELECT MAX(encounter_datetime) AS max_encounter_datetime, person_id FROM etl.pre_appointment_summary GROUP BY person_id ) latest_dates ON ps.encounter_datetime = latest_dates.max_encounter_datetime AND ps.person_id = latest_dates.person_id)",
"alias": "utd",
"join": {
"type": "LEFT",
"joinCondition": "ml.person_id = utd.person_id"
}
}
],
"columns": [
Expand Down Expand Up @@ -157,6 +165,11 @@
"alias": "was_client_found",
"column": "pre.was_client_found"
},
{
"type": "simple_column",
"alias": "comments",
"column": "utd.comments"
},
{
"type": "simple_column",
"alias": "reason_client_not_found",
Expand Down
Loading