Skip to main content
Glama

Medplum MCP Server

by rkirkendall

createEncounter

Generates a new healthcare encounter for a patient, specifying visit details such as status, classification, and involved practitioners or organizations.

Instructions

Creates a new encounter (patient visit). Requires patient ID and status.

Input Schema

NameRequiredDescriptionDefault
classCodeYesThe classification of the encounter (e.g., AMB for ambulatory, IMP for inpatient, EMER for emergency).
organizationIdNoThe ID of the organization providing the encounter. Optional.
patientIdYesThe ID of the patient for this encounter.
practitionerIdNoThe ID of the practitioner involved in the encounter. Optional.
statusYesThe 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" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rkirkendall/medplum-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server