Events
Triggering Webhook Types
The following event types are associated with the Message Thread event payload from Elation.Elation Message Thread UpdatedElation Message Thread Deleted
Copy
Ask AI
{
"added_to_chart_at": "2021-05-05T22:02:09Z",
"created_at": "2021-05-05T22:02:10Z",
"deleted_at": "",
"id": "140754787631195",
"is_urgent": false,
"members": [
{
"acked_at": "",
"group_id": "851981",
"id": "346292316",
"status": "THREAD_MEMBER_STATUS_ADDRESSED",
"thread_id": "346226779",
"user_id": "6"
}
],
"messages": [
{
"associated_document": {
"added_to_chart_at": "2014-01-24T18:13:48Z",
"authoring_practice_id": "65540",
"created_at": "2014-01-24T18:13:48Z",
"deleted_at": "",
"document_timestamp": "2014-01-24T18:59:15Z",
"document_type": 91,
"id": "64077889627",
"last_modified_at": "2016-05-02T18:53:12Z",
"patient_id": "64072843265",
"signed_at": "2014-01-24T18:13:48Z",
"signed_by": "4"
},
"body": "Patient should have appointment already booked.",
"id": "346423390",
"patient_id": "342753281",
"practice_id": "655364",
"sender_id": "6",
"sent_at": "2021-10-19T19:08:48",
"thread_id": "346226779"
}
],
"patient_id": "140754786975745",
"practice_id": "140754817318916",
"thread_document_created_at": "2021-05-05T22:02:09Z"
}
Copy
Ask AI
{
"added_to_chart_at": "Date and time when the thread was added to the patient's chart.",
"created_at": "Timestamp when the message thread was created.",
"deleted_at": "Timestamp when the message thread was deleted, if applicable.",
"id": "Unique identifier for the message thread.",
"is_urgent": "Flag indicating whether this thread is marked as urgent.",
"members": {
"acked_at": "Timestamp when the member acknowledged the thread, if applicable.",
"group_id": "ID of the group, if this member represents a group.",
"id": "Unique identifier for the thread member.",
"status": "Current status of the member in this thread.",
"thread_id": "ID of the thread this member belongs to.",
"user_id": "ID of the user, if this member represents a user."
},
"messages": {
"associated_document": {
"added_to_chart_at": "Date and time when the document was added to the chart.",
"authoring_practice_id": "ID of the practice that authored this document.",
"created_at": "Timestamp when the document was created.",
"deleted_at": "Timestamp when the document was deleted, if applicable.",
"document_timestamp": "Date and time of the document.",
"document_type": "Type identifier for the document.",
"id": "Unique identifier for the document.",
"last_modified_at": "Timestamp when the document was last modified.",
"patient_id": "ID of the patient this document belongs to.",
"signed_at": "Timestamp when the document was signed.",
"signed_by": "ID of the user who signed the document."
},
"body": "Content of the message. Must not be empty.",
"id": "Unique identifier for the message.",
"patient_id": "ID of the patient this message relates to.",
"practice_id": "ID of the practice this message belongs to.",
"sender_id": "ID of the user who sent this message.",
"sent_at": "Timestamp when the message was sent.",
"thread_id": "ID of the thread this message belongs to."
},
"patient_id": "ID of the patient this thread belongs to.",
"practice_id": "ID of the practice this thread belongs to.",
"thread_document_created_at": "Date and time when the thread document was created."
}
Payload Field Details
Hide fields
Hide fields
Unique identifier for the message thread.
CEL
Copy
Ask AI
id
Example
Copy
Ask AI
"140754787631195"
Timestamp when the message thread was created.
CEL
Copy
Ask AI
created_at
Example
Copy
Ask AI
"2021-05-05T22:02:10Z"
Timestamp when the message thread was deleted, if applicable.
CEL
Copy
Ask AI
deleted_at
Example
Copy
Ask AI
""
Date and time when the thread document was created.
CEL
Copy
Ask AI
thread_document_created_at
Example
Copy
Ask AI
"2021-05-05T22:02:09Z"
Date and time when the thread was added to the patient’s chart.
CEL
Copy
Ask AI
added_to_chart_at
Example
Copy
Ask AI
"2021-05-05T22:02:09Z"
ID ID of the patient this thread belongs to.CEL
Copy
Ask AI
patient_id
Example
Copy
Ask AI
"140754786975745"
ID of the practice this thread belongs to.
CEL
Copy
Ask AI
practice_id
Example
Copy
Ask AI
"140754817318916"
Flag indicating whether this thread is marked as urgent.
CEL
Copy
Ask AI
is_urgent
Example
Copy
Ask AI
false
List of members participating in this thread.
CEL
Copy
Ask AI
members
Example
Copy
Ask AI
[
{
"acked_at": "",
"group_id": "851981",
"id": "346292316",
"status": "THREAD_MEMBER_STATUS_ADDRESSED",
"thread_id": "346226779",
"user_id": "6"
}
]
ID Mapped array of: Unique identifier for the thread member.CEL
Copy
Ask AI
members.map(x, x.id)
Example
Copy
Ask AI
[
"346292316"
]
Mapped array of: ID of the thread this member belongs to.
CEL
Copy
Ask AI
members.map(x, x.thread_id)
Example
Copy
Ask AI
[
"346226779"
]
ID Mapped array of: ID of the user, if this member represents a user.CEL
Copy
Ask AI
members.map(x, x.user_id)
Example
Copy
Ask AI
[
"6"
]
Mapped array of: ID of the group, if this member represents a group.
CEL
Copy
Ask AI
members.map(x, x.group_id)
Example
Copy
Ask AI
[
"851981"
]
Mapped array of: Current status of the member in this thread.
CEL
Copy
Ask AI
status
Example
Copy
Ask AI
elation.v1.ThreadMemberStatus.THREAD_MEMBER_STATUS_ADDRESSED
elation.v1.ThreadMemberStatus.THREAD_MEMBER_STATUS_REQUIRING_ACTION
Mapped array of: Timestamp when the member acknowledged the thread, if applicable.
CEL
Copy
Ask AI
members.map(x, x.acked_at)
Example
Copy
Ask AI
[
""
]
List of messages in this thread.
CEL
Copy
Ask AI
messages
Example
Copy
Ask AI
[
{
"associated_document": {
"added_to_chart_at": "2014-01-24T18:13:48Z",
"authoring_practice_id": "65540",
"created_at": "2014-01-24T18:13:48Z",
"deleted_at": "",
"document_timestamp": "2014-01-24T18:59:15Z",
"document_type": 91,
"id": "64077889627",
"last_modified_at": "2016-05-02T18:53:12Z",
"patient_id": "64072843265",
"signed_at": "2014-01-24T18:13:48Z",
"signed_by": "4"
},
"body": "Patient should have appointment already booked.",
"id": "346423390",
"patient_id": "342753281",
"practice_id": "655364",
"sender_id": "6",
"sent_at": "2021-10-19T19:08:48",
"thread_id": "346226779"
}
]
Mapped array of: Unique identifier for the message.
CEL
Copy
Ask AI
messages.map(x, x.id)
Example
Copy
Ask AI
[
"346423390"
]
Mapped array of: Content of the message. Must not be empty.
CEL
Copy
Ask AI
messages.map(x, x.body)
Example
Copy
Ask AI
[
"Patient should have appointment already booked."
]
ID Mapped array of: ID of the patient this message relates to.CEL
Copy
Ask AI
messages.map(x, x.patient_id)
Example
Copy
Ask AI
[
"342753281"
]
Mapped array of: ID of the practice this message belongs to.
CEL
Copy
Ask AI
messages.map(x, x.practice_id)
Example
Copy
Ask AI
[
"655364"
]
Mapped array of: ID of the thread this message belongs to.
CEL
Copy
Ask AI
messages.map(x, x.thread_id)
Example
Copy
Ask AI
[
"346226779"
]
ID Mapped array of: ID of the user who sent this message.CEL
Copy
Ask AI
messages.map(x, x.sender_id)
Example
Copy
Ask AI
[
"6"
]
Mapped array of: Timestamp when the message was sent.
CEL
Copy
Ask AI
messages.map(x, x.sent_at)
Example
Copy
Ask AI
[
"2021-10-19T19:08:48"
]
Mapped array of: Reference to the document this message is associated with, if any.
CEL
Copy
Ask AI
messages.map(x, x.associated_document)
Example
Copy
Ask AI
[
{
"added_to_chart_at": "2014-01-24T18:13:48Z",
"authoring_practice_id": "65540",
"created_at": "2014-01-24T18:13:48Z",
"deleted_at": "",
"document_timestamp": "2014-01-24T18:59:15Z",
"document_type": 91,
"id": "64077889627",
"last_modified_at": "2016-05-02T18:53:12Z",
"patient_id": "64072843265",
"signed_at": "2014-01-24T18:13:48Z",
"signed_by": "4"
}
]
