The Message Thread Object

Message Thread is the heart of all messaging-related events inside Elation. Every time a new message is sent in a document or chart, a Message Thread is created with its respective Thread Members (the sender and receiver(s) and Thread Messages (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" : [
      140754787696732
    ],
    "messages": [
      140754787696731
    ],
}

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[int]

The ids of the thread members

messages

list[int]

The ids of the thread messages