# get_patient_info

URL: https://docs.clinia.com/api/mcp/tools/get-patient-info

> Returns a patient's demographics as JSON.

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

## Input [#input]

| Argument     | Type   | Required | Description                                                                                                  |
| ------------ | ------ | -------- | ------------------------------------------------------------------------------------------------------------ |
| `patient_id` | string | Yes      | The patient's `patientId`. See [Shared arguments](https://docs.clinia.com/api/mcp/server#shared-arguments).                         |
| `session_id` | string | No       | A session to record the call on. See [Record calls on a session](https://docs.clinia.com/api/mcp/server#record-calls-on-a-session). |

## Output [#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`.                 |

```json title="Input"
{ "patient_id": "abc" }
```

```json title="Output"
{
  "id": "abc",
  "name": "Jane Doe",
  "birthDate": "1960-01-01",
  "gender": "female",
  "stats": { "loadMs": 0, "warnings": 0 }
}
```

For a patient with no ingested data, the result has `isError: true` and its text is the not-ready message. See [Errors](https://docs.clinia.com/api/mcp/server#errors).
