createEncounter
Generate a new patient visit record by specifying patient ID, status, and classification. Optional fields include practitioner and organization IDs for detailed tracking.
Instructions
Creates a new encounter (patient visit). Requires patient ID and status.
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": {
"patientId": "<patientId>",
"status": "<status>",
"classCode": "<classCode>"
},
"name": "createEncounter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| classCode | Yes | The classification of the encounter (e.g., AMB for ambulatory, IMP for inpatient, EMER for emergency). | |
| organizationId | No | The ID of the organization providing the encounter. Optional. | |
| patientId | Yes | The ID of the patient for this encounter. | |
| practitionerId | No | The ID of the practitioner involved in the encounter. Optional. | |
| status | Yes | The status of the encounter. |