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.
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 |