Tools
get_patient_info
Returns a patient's demographics as JSON.
Returns the demographics extracted from a patient's ingested records.
Input
| Argument | Type | Required | Description |
|---|---|---|---|
patient_id | string | Yes | The patient's patientId. See Shared arguments. |
session_id | string | No | A session to record the call on. See Record calls on a session. |
Output
A JSON object, as text:
| Field | Type | Description |
|---|---|---|
id | string | The patient_id you passed. |
name | string | The patient's name, or id when no record names the patient. |
birthDate | string | The birth date, when a record states it. Omitted otherwise. |
gender | string | The gender, when a record states it. Omitted otherwise. |
stats | object | loadMs and warnings. Both are always 0. |
{ "patient_id": "abc" }{
"id": "abc",
"name": "Jane Doe",
"birthDate": "1960-01-01",
"gender": "female",
"stats": { "loadMs": 0, "warnings": 0 }
}For a patient with no ingested data, { "error": "..." } carrying the not-ready message. See Errors.