The Context Engine Studio is now open source.  View on GitHub →
Clinia
Tools

get_patient_info

Returns a patient's demographics as JSON.

Returns the demographics extracted from a patient's ingested records.

Input

ArgumentTypeRequiredDescription
patient_idstringYesThe patient's patientId. See Shared arguments.
session_idstringNoA session to record the call on. See Record calls on a session.

Output

A JSON object, as text:

FieldTypeDescription
idstringThe patient_id you passed.
namestringThe patient's name, or id when no record names the patient.
birthDatestringThe birth date, when a record states it. Omitted otherwise.
genderstringThe gender, when a record states it. Omitted otherwise.
statsobjectloadMs and warnings. Both are always 0.
Input
{ "patient_id": "abc" }
Output
{
  "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.

On this page