createCondition
Generate a patient condition or diagnosis by specifying a patient ID, condition code, clinical status, and optional onset or recorded date using the Medplum MCP Server.
Instructions
Creates a new condition or diagnosis for a patient. Requires a patient ID and a condition code.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
clinicalStatus | No | The clinical status of the condition. For example: "active", "inactive", "resolved". | |
code | Yes | The code representing the condition. Must include a coding system, code, and display text. | |
onsetString | No | Estimated date, state, or age when the condition began (e.g., "about 3 years ago"). Optional. | |
patientId | Yes | The ID of the patient for whom the condition is being created. | |
recordedDate | No | The date the condition was recorded, in YYYY-MM-DD format. Optional. |
Input Schema (JSON Schema)
{
"properties": {
"clinicalStatus": {
"description": "The clinical status of the condition. For example: \"active\", \"inactive\", \"resolved\".",
"enum": [
"active",
"recurrence",
"relapse",
"inactive",
"remission",
"resolved"
],
"type": "string"
},
"code": {
"description": "The code representing the condition. Must include a coding system, code, and display text.",
"properties": {
"coding": {
"items": {
"properties": {
"code": {
"description": "The code from the system (e.g., \"44054006\").",
"type": "string"
},
"display": {
"description": "The human-readable display text for the code (e.g., \"Type 2 diabetes mellitus\").",
"type": "string"
},
"system": {
"description": "The URI of the coding system (e.g., \"http://snomed.info/sct\").",
"type": "string"
}
},
"required": [
"system",
"code",
"display"
],
"type": "object"
},
"type": "array"
},
"text": {
"description": "A human-readable summary of the condition.",
"type": "string"
}
},
"required": [
"coding",
"text"
],
"type": "object"
},
"onsetString": {
"description": "Estimated date, state, or age when the condition began (e.g., \"about 3 years ago\"). Optional.",
"type": "string"
},
"patientId": {
"description": "The ID of the patient for whom the condition is being created.",
"type": "string"
},
"recordedDate": {
"description": "The date the condition was recorded, in YYYY-MM-DD format. Optional.",
"type": "string"
}
},
"required": [
"patientId",
"code"
],
"type": "object"
}