validate_resource
Validate a FHIR JSON object against the spec and value-set bindings, returning issues for correction. Provides a machine-readable report for fix-and-retry workflows.
Instructions
Validate a FHIR resource (JSON object) against the spec, including required value-set bindings. Call this after constructing or editing FHIR JSON yourself; read issues[] (severity/diagnostics/expression) and correct the resource. Never raises.
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": {
"resource": "<resource>"
},
"name": "validate_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource | Yes | ||
| resource_type | No |