Add a patient
create_patientUse this when someone asks to add a new patient to their clinic. Returns the patient's id, name, clinic and language; the phone and email given are stored but never returned. Not for a patient already on file.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"requestId": "<requestId>"
},
"name": "create_patient"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The patient's full name. | |
| No | Email address. | ||
| phone | No | Mobile number, with the country code when known. | |
| clinicId | No | Id of the clinic, from list_clinics. Leave it out when the user has one clinic. | |
| language | No | Language for their messages, as a code such as en or it. Leave it out for the clinic language. | |
| requestId | Yes | A unique id you choose for this patient, such as a UUID. Calling again with the same requestId returns the first patient instead of adding a second. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| patient | Yes |