Message Thread is the heart of all messaging-related events inside Elation.
Every time a new message is sent in a chart, a Message Thread is created with its respective Thread Members (the sender and receiver(s) and Thread Messages (beginning with the initial message itself).
Every time a reply is sent, a new Thread Message is created inside the Message Thread, and its new receivers (if any) are added as Thread Members as well.
Object Definition
{
"created_date": "2021-05-05T22:02:10Z",
"deleted_date": null,
"document_date": "2021-05-05T22:02:09Z",
"chart_date": "2021-05-05T22:02:09Z",
"patient": 140754786975745,
"practice": 140754817318916,
"is_urgent": false,
"id": 140754787631195,
"members": [
{
"id": 346292316,
"thread": 346226779,
"user": 6,
"group": null,
"status": "Addressed",
"ack_time": null
},
{
"id": 346357852,
"thread": 346226779,
"user": null,
"group": 851981,
"status": "Addressed",
"ack_time": null
}
],
"messages": [
{
"body": "Patient should have appointment already booked.",
"id": 346423390,
"patient": 342753281,
"practice": 655364,
"thread": 346226779,
"sender": 6,
"send_date": "2021-10-19T19:08:48",
"to_document": {
"authoring_practice": 65540,
"chart_date": "2014-01-24T18:13:48Z",
"created_date": "2014-01-24T18:13:48Z",
"deleted_date": null,
"document_date": "2014-01-24T18:59:15Z",
"document_type": 91,
"id": 64077889627,
"last_modified": "2016-05-02T18:53:12Z",
"patient": 64072843265,
"sign_date": "2014-01-24T18:13:48Z",
"signed_by": 4
}
},
{
"body": "Appt. 10/21/10",
"id": 346488926,
"patient": 342753281,
"practice": 655364,
"thread": 346226779,
"sender": 8,
"send_date": "2021-10-20T08:52:37",
"to_document": {
"authoring_practice": 65540,
"chart_date": "2014-01-24T18:13:48Z",
"created_date": "2014-01-24T18:13:48Z",
"deleted_date": null,
"document_date": "2014-01-24T18:59:15Z",
"document_type": 91,
"id": 64077889627,
"last_modified": "2016-05-02T18:53:12Z",
"patient": 64072843265,
"sign_date": "2014-01-24T18:13:48Z",
"signed_by": 4
}
}
]
}
Attribute | Type | Allowed values | Description |
---|---|---|---|
created_date | datetime | When the message thread was created | |
deleted_date | datetime | When the message thread was deleted | |
document_date | datetime | When the message thread's document was created | |
chart_date | datetime | When the message thread's patient chart was created | |
patient | int | The patient id | |
practice | int | The practice id | |
is_urgent | bool | Is the message thread urgent? | |
id | int | The message thread id | |
members | list[Member] | The list of thread member objects | |
messages | list[Message] | The list of thread message objects |