createObservation
Generate and store new medical observations, such as lab results or vital signs, by providing patient ID, observation code, and required details using the Medplum MCP Server.
Instructions
Creates a new observation (lab result, vital sign, etc.). Requires patient ID and code.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
code | Yes | The code representing what was observed (LOINC, SNOMED CT, etc.). | |
encounterId | No | The encounter this observation is associated with. Optional. | |
patientId | Yes | The ID of the patient this observation is for. | |
status | Yes | The status of the observation. | |
valueQuantity | No | Numeric value of the observation. Optional. | |
valueString | No | String value of the observation. Optional. |
Input Schema (JSON Schema)
{
"properties": {
"code": {
"description": "The code representing what was observed (LOINC, SNOMED CT, etc.).",
"type": "string"
},
"encounterId": {
"description": "The encounter this observation is associated with. Optional.",
"type": "string"
},
"patientId": {
"description": "The ID of the patient this observation is for.",
"type": "string"
},
"status": {
"description": "The status of the observation.",
"enum": [
"registered",
"preliminary",
"final",
"amended",
"corrected",
"cancelled"
],
"type": "string"
},
"valueQuantity": {
"description": "Numeric value of the observation. Optional.",
"type": "number"
},
"valueString": {
"description": "String value of the observation. Optional.",
"type": "string"
}
},
"required": [
"patientId",
"code",
"status"
],
"type": "object"
}