Validate a FHIR resource
validate_fhirValidate FHIR resources against server profiles without saving, catching structural and terminology errors before creating or updating.
Instructions
Validate a resource against the server's profiles without saving it (POST /{resourceType}/$validate). Use this before create_fhir/update_fhir to catch structural or terminology errors early. The resource JSON must include resourceType.
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_fhir"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource | Yes | The FHIR resource to validate (JSON object including resourceType) |