The Conversation object is used so that a patient can communicate with one or several providers.
Name | Type | Description |
---|---|---|
id | UUID | A unique identifier. |
title | string? | A title describing this conversation. |
patient | Patient(id: UUID, username: string?, first_name: string?, last_name: string?, locale: "fr" | "en", email: string?, phone: string?, sex: "MALE" | "FEMALE" | "OTHER"?, updated_at: DateTime, created_at: DateTime) | The patient that is associated to this conversation. |
providers | Providers(id: UUID, gender: "MALE" | "FEMALE"?, first_name: string, last_name: string, phone: string?, email: string?, prefix: string?, title: string?, roles: "ADMINISTRATOR" | "PRACTITIONER" | "REVIEWER"[])[] | The list of providers participating in this conversation. |
assigned_provider | AssignedProvider(id: UUID, gender: "MALE" | "FEMALE"?, first_name: string, last_name: string, phone: string?, email: string?, prefix: string?, title: string?, roles: "ADMINISTRATOR" | "PRACTITIONER" | "REVIEWER"[])? | The provider assigned to this conversation. |
tags | Tags(id: UUID, type: Type(id: UUID, name: string, created_at: DateTime, background_color: string, text_color: string, ml_predictable: boolean), status: "VALID" | "SUGGESTED" | "DISMISSED", created_at: DateTime, model: Model(id: UUID, status: "PENDING" | "TRAINING" | "READY" | "DELETED" | "ERROR", created_at: DateTime, updated_at: DateTime?)?)[] | The list of tags associated with this conversation. |
console_url | string | The URL pointing to this conversation in the Nabla Console. |
unread_by_patient_messages_count | integer | The number of providers' messages that haven't been read by the patient yet. |
unread_by_providers_messages_count | integer | The number of patient's messages that haven't been read by any of the providers yet. |
Example
{
"id": "98FCE1EF-DBCA-41EF-8BC7-4D1621AC07C6",
"title": "Urinary infection",
"patient": {
"id": "98FCE1EF-DBCA-41EF-8BC7-4D1621AC07C6",
"username": "",
"first_name": "John",
"last_name": "Doe",
"locale": "fr",
"email": "",
"phone": "33612356789",
"sex": "MALE",
"updated_at": "2022-03-10T19:16:23.456Z",
"created_at": "2022-03-10T19:16:23.456Z"
},
"providers": [
{
"id": "98FCE1EF-DBCA-41EF-8BC7-4D1621AC07C6",
"gender": "FEMALE",
"first_name": "Jane",
"last_name": "Doe",
"phone": "33612356789",
"email": "",
"prefix": "Pr",
"title": "Professor",
"roles": [
"ADMINISTRATOR"
]
}
],
"assigned_provider": {
"id": "98FCE1EF-DBCA-41EF-8BC7-4D1621AC07C6",
"gender": "FEMALE",
"first_name": "Jane",
"last_name": "Doe",
"phone": "33612356789",
"email": "",
"prefix": "Pr",
"title": "Professor",
"roles": [
"ADMINISTRATOR"
]
},
"tags": [
{
"id": "98FCE1EF-DBCA-41EF-8BC7-4D1621AC07C6",
"type": {
"id": "98FCE1EF-DBCA-41EF-8BC7-4D1621AC07C6",
"name": "DERMATOLOGY",
"created_at": "2022-03-10T19:16:23.456Z",
"background_color": "#aabbcc",
"text_color": "#aabbcc",
"ml_predictable": true
},
"status": "VALID",
"created_at": "2022-03-10T19:16:23.456Z",
"model": {
"id": "98FCE1EF-DBCA-41EF-8BC7-4D1621AC07C6",
"status": "READY",
"created_at": "2022-03-10T19:16:23.456Z",
"updated_at": "2020-01-01T12:00:00Z"
}
}
],
"console_url": "https://pro.nabla.com/conversations/07839A27-39EC-4C24-87A3-8CF0A9F3451A",
"unread_by_patient_messages_count": 3,
"unread_by_providers_messages_count": 1
}