validate_against_profile
Validate a FHIR R4 resource against a selected profile (US Core, IPS, or custom) and receive conformance status, error count, and issue details.
Instructions
Validate a FHIR R4 resource against a StructureDefinition profile using the HAPI validator. Supports US Core and IPS profiles as well as base FHIR R4 conformance. Returns conformance status, error count, and issue details.
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_against_profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource | Yes | A FHIR resource as a JSON object (or a JSON string that will be parsed). | |
| profile | No | Profile URL or alias (e.g. 'us-core-patient', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient'). Empty string = base R4 validation only. | |
| fhir_version | No | FHIR version (default '4.0.1'). | 4.0.1 |