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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource | Yes | ||
| resource_type | No |