FHIR R4, R4B and R5 resource validator

Paste or open a resource in JSON or XML and check its structure. Everything is processed in your browser: nothing is sent to a server.

Tip: Ctrl + Enter (⌘ + Enter on Mac) also validates.

Checks elements, cardinality, types, formats and references against the FHIR R4 (4.0.1), R4B (4.3.0) and R5 (5.0.0) StructureDefinitions, with full validation of Patient, Practitioner, Organization, Encounter, Observation, DiagnosticReport, Condition, MedicationRequest, Bundle. Accepts JSON and XML (format detected automatically). Does not check invariants; terminologies only with a profile.

With an IPS 2.0.1 profile (International Patient Summary), it also checks cardinality, slices, fixed values and the codes of the embedded value sets. SNOMED CT and other separately licensed terminologies are shown as "not checked". Profile data is downloaded only when the profile is used.

Structure of each IPS profile

Issues found

No resource validated yet.

    Formatted JSON

    Paste or open a resource and click Validate.

    What FHIR is and how to use the validator

    FHIR (Fast Healthcare Interoperability Resources) is the HL7 International standard that represents healthcare data as resources, such as Patient, Observation, Encounter, Condition and MedicationRequest. Each resource is defined by a StructureDefinition, which sets the allowed elements, their data types and their cardinality. The releases in use are R4 (4.0.1), the most widely adopted, R4B (4.3.0), which keeps the structure of these resources and adds new types, and R5 (5.0.0), which changes several elements: in Encounter, for example, class went from Coding to CodeableConcept and period became actualPeriod. Resources are exchanged as JSON or XML, usually through a REST API.

    How to use: paste or open a resource in JSON or XML and click Validate. Choose the version or leave automatic detection on: it uses the resource’s fhirVersion or meta.profile when present; otherwise it validates in all three versions, keeps the one with the fewest problems and says why. Based on the official StructureDefinitions of the version, the validator checks elements, cardinality, primitive formats and the resource types of references. When the resource has problems in one version, it shows what changes in the others and in which version the resource would be valid. Full validation covers Patient, Practitioner, Organization, Encounter, Observation, DiagnosticReport, Condition, MedicationRequest and Bundle; for others, only the resourceType. Invariants are not checked.

    Profiles: choose an IPS 2.0.1 profile (R4) or use the ones in the resource’s meta.profile. The validator also checks slices, fixed values and the codes of freely usable value sets; SNOMED CT and other separately licensed terminologies are shown as "not checked".

    Each issue is shown with the element path and the line, in OperationOutcome format. The resource is processed in your browser and is not sent or stored.