Skip to content

Commit

Permalink
added sms outcome column
Browse files Browse the repository at this point in the history
  • Loading branch information
Angie-540 committed Jan 18, 2024
1 parent 9d5fa3c commit 41da367
Showing 1 changed file with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@
"joinCondition": "pre.person_id = ml.person_id and(DATEDIFF(ml.start_date, pre.encounter_datetime) <= 7)"
}
},
{
"table": "etl.sms_delivery_report",
"alias": "sm",
"join": {
"type": "LEFT",
"joinCondition": "sm.person_id = pre.person_id"
}
},
{
"table": "( select max(is_successful_phone_follow_up) as latest_phone_follow_up, person_id, follow_up_type from etl.pre_appointment_summary group by person_id )",
"alias": "s",
Expand Down Expand Up @@ -120,6 +128,11 @@
"alias": "prediction_generated_date",
"column": "DATE_FORMAT(ml.prediction_generated_date,'%Y-%m-%d')"
},
{
"type": "simple_column",
"alias": "sms_delivery_status",
"column": "sm.delivery_status"
},
{
"type": "simple_column",
"alias": "rtc_date",
Expand Down Expand Up @@ -192,11 +205,6 @@
"type": "simple_column",
"alias": "number_of_failed_phone_attempts",
"column": "etc.counter"
},
{
"type": "simple_column",
"alias": "comments",
"column": "pre.comments"
}
],
"filters": {
Expand Down

0 comments on commit 41da367

Please sign in to comment.