{
  "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"
}
{
  "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."
}

Events

Triggering Webhook Types

The following event types are associated with the Message Thread event payload from Elation.

  • Elation Message Thread Updated
  • Elation Message Thread Deleted
{
  "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"
}
{
  "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

Message Thread
Event Payload
id
string
required

Unique identifier for the message thread.

CEL
id
Example
"140754787631195"
created_at
timing.v1.Timestamp
required

Timestamp when the message thread was created.

CEL
created_at
Example
"2021-05-05T22:02:10Z"
deleted_at
timing.v1.Timestamp

Timestamp when the message thread was deleted, if applicable.

CEL
deleted_at
Example
""
thread_document_created_at
timing.v1.Timestamp
required

Date and time when the thread document was created.

CEL
thread_document_created_at
Example
"2021-05-05T22:02:09Z"
added_to_chart_at
timing.v1.Timestamp
required

Date and time when the thread was added to the patient’s chart.

CEL
added_to_chart_at
Example
"2021-05-05T22:02:09Z"
patient_id
string
required

ID ID of the patient this thread belongs to.

CEL
patient_id
Example
"140754786975745"
practice_id
string
required

ID of the practice this thread belongs to.

CEL
practice_id
Example
"140754817318916"
is_urgent
bool
required

Flag indicating whether this thread is marked as urgent.

CEL
is_urgent
Example
false
members
object
required

List of members participating in this thread.

CEL
members
Example
[
{
"acked_at":  "",
"group_id":  "851981",
"id":  "346292316",
"status":  "THREAD_MEMBER_STATUS_ADDRESSED",
"thread_id":  "346226779",
"user_id":  "6"
}
]
members.map(x, x.id)
[]string
required

ID Mapped array of: Unique identifier for the thread member.

CEL
members.map(x, x.id)
Example
[
"346292316"
]
members.map(x, x.thread_id)
[]string
required

Mapped array of: ID of the thread this member belongs to.

CEL
members.map(x, x.thread_id)
Example
[
"346226779"
]
members.map(x, x.user_id)
[]string
required

ID Mapped array of: ID of the user, if this member represents a user.

CEL
members.map(x, x.user_id)
Example
[
"6"
]
members.map(x, x.group_id)
[]string
required

Mapped array of: ID of the group, if this member represents a group.

CEL
members.map(x, x.group_id)
Example
[
"851981"
]
status
elation.v1.ThreadMemberStatus
required

Mapped array of: Current status of the member in this thread.

CEL
status
Example
THREAD_MEMBER_STATUS_ADDRESSED
THREAD_MEMBER_STATUS_REQUIRING_ACTION
members.map(x, x.acked_at)
[]timing.v1.Timestamp
required

Mapped array of: Timestamp when the member acknowledged the thread, if applicable.

CEL
members.map(x, x.acked_at)
Example
[
""
]
messages
object
required

List of messages in this thread.

CEL
messages
Example
[
{
"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"
}
]
messages.map(x, x.id)
[]string
required

Mapped array of: Unique identifier for the message.

CEL
messages.map(x, x.id)
Example
[
"346423390"
]
messages.map(x, x.body)
[]string
required

Mapped array of: Content of the message. Must not be empty.

CEL
messages.map(x, x.body)
Example
[
"Patient should have appointment already booked."
]
messages.map(x, x.patient_id)
[]string
required

ID Mapped array of: ID of the patient this message relates to.

CEL
messages.map(x, x.patient_id)
Example
[
"342753281"
]
messages.map(x, x.practice_id)
[]string
required

Mapped array of: ID of the practice this message belongs to.

CEL
messages.map(x, x.practice_id)
Example
[
"655364"
]
messages.map(x, x.thread_id)
[]string
required

Mapped array of: ID of the thread this message belongs to.

CEL
messages.map(x, x.thread_id)
Example
[
"346226779"
]
messages.map(x, x.sender_id)
[]string
required

ID Mapped array of: ID of the user who sent this message.

CEL
messages.map(x, x.sender_id)
Example
[
"6"
]
messages.map(x, x.sent_at)
[]timing.v1.Timestamp
required

Mapped array of: Timestamp when the message was sent.

CEL
messages.map(x, x.sent_at)
Example
[
"2021-10-19T19:08:48"
]
messages.map(x, x.associated_document)
[]bool
required

Mapped array of: Reference to the document this message is associated with, if any.

CEL
messages.map(x, x.associated_document)
Example
[
{
"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"
}
]
messages.map(x, x.associated_document)
[]string
required

Mapped array of: Reference to the document this message is associated with, if any.

CEL
messages.map(x, x.associated_document)
Example
[
{
"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"
}
]
messages.map(x, x.associated_document)
[]string
required

Mapped array of: Reference to the document this message is associated with, if any.

CEL
messages.map(x, x.associated_document)
Example
[
{
"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"
}
]
messages.map(x, x.associated_document)
[]timing.v1.Timestamp
required

Mapped array of: Reference to the document this message is associated with, if any.

CEL
messages.map(x, x.associated_document)
Example
[
{
"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"
}
]
messages.map(x, x.associated_document)
[]timing.v1.Timestamp
required

Mapped array of: Reference to the document this message is associated with, if any.

CEL
messages.map(x, x.associated_document)
Example
[
{
"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"
}
]
messages.map(x, x.associated_document)
[]timing.v1.Timestamp
required

Mapped array of: Reference to the document this message is associated with, if any.

CEL
messages.map(x, x.associated_document)
Example
[
{
"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"
}
]
messages.map(x, x.associated_document)
[]timing.v1.Timestamp
required

Mapped array of: Reference to the document this message is associated with, if any.

CEL
messages.map(x, x.associated_document)
Example
[
{
"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"
}
]
messages.map(x, x.associated_document)
[]int64
required

Mapped array of: Reference to the document this message is associated with, if any.

CEL
messages.map(x, x.associated_document)
Example
[
{
"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"
}
]
messages.map(x, x.associated_document)
[]timing.v1.Timestamp
required

Mapped array of: Reference to the document this message is associated with, if any.

CEL
messages.map(x, x.associated_document)
Example
[
{
"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"
}
]
messages.map(x, x.associated_document)
[]string
required

Mapped array of: Reference to the document this message is associated with, if any.

CEL
messages.map(x, x.associated_document)
Example
[
{
"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"
}
]
messages.map(x, x.associated_document)
[]timing.v1.Timestamp
required

Mapped array of: Reference to the document this message is associated with, if any.

CEL
messages.map(x, x.associated_document)
Example
[
{
"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"
}
]
messages.map(x, x.associated_document)
[]string
required

Mapped array of: Reference to the document this message is associated with, if any.

CEL
messages.map(x, x.associated_document)
Example
[
{
"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"
}
]