Validate FHIR JSON resources
document-formats_fhir-resource-validateRead-onlyIdempotent
Validate a FHIR resource against the official HL7 JSON Schema for R4 or R5. Price $0.02 USDC. POST /api/v1/document-formats/fhir-resource-validate. An unpaid call returns the x402 payment terms and does not run.
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": "document-formats_fhir-resource-validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | version, string, one of R4, R5. Required. | R4 |
| resource | Yes | resource, value. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | No | valid. Boolean. | |
| errors | No | errors. Array. | |
| sources | No | sources. Array. | |
| version | No | version. String. | |
| limitations | No | limitations. Array. | |
| resourceType | No | resourceType. String. |