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.
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. |
Input Schema (JSON Schema)
{
"properties": {
"classCode": {
"description": "The classification of the encounter (e.g., AMB for ambulatory, IMP for inpatient, EMER for emergency).",
"type": "string"
},
"organizationId": {
"description": "The ID of the organization providing the encounter. Optional.",
"type": "string"
},
"patientId": {
"description": "The ID of the patient for this encounter.",
"type": "string"
},
"practitionerId": {
"description": "The ID of the practitioner involved in the encounter. Optional.",
"type": "string"
},
"status": {
"description": "The status of the encounter.",
"enum": [
"planned",
"arrived",
"triaged",
"in-progress",
"onleave",
"finished",
"cancelled"
],
"type": "string"
}
},
"required": [
"patientId",
"status",
"classCode"
],
"type": "object"
}