FHIR Resource Viewer and Validator

Open or paste a FHIR resource or Bundle in JSON or XML to list every resource with a short summary, browse the element tree, run basic checks on required elements, codes, dates and references, and download XML, JSON or CSV.

Работи във вашия браузър. Файловете ви никога не напускат устройството. Вижте как да го проверите

…

Как се прави

  1. 1
    Load

    Open or paste FHIR JSON or XML.

  2. 2
    Review

    Read the summary and issues.

  3. 3
    Resources

    Check each row in the table.

  4. 4
    Inspect

    Browse the element tree.

  5. 5
    Export

    Download XML, JSON or CSV.

За този инструмент

The FHIR Resource Viewer and Validator reads FHIR resources, the JSON or XML records that modern health APIs send, and lays them out so you can see what a file holds before you load it into another system. You can open a .json, .xml or .fhir file or paste the text. When the root is a Bundle, the bundle itself and every entry resource are listed, and contained resources are listed with a hash in front of their id. The Resources table shows each resource's type, id, a short summary, any issues found and its fullUrl. Summaries are written for the common cases: a Patient or Practitioner gives the name, gender and birth date, an Observation gives its code, value and unit and status, a Bundle gives its type and number of entries, and other resources give their code, title or description with the status. The Structure tab opens the full element tree, with arrays showing their item count and nested resources showing their type. A text tab shows the same content in the other format, XML when you opened JSON and JSON when you opened XML, and downloads offer XML, JSON and a resources CSV. The summary lists the input format, the root type, the number of resources, a count by type and the number of issues. The checks run on every resource: the id must follow the FHIR id rule, required elements for about twenty common resource types must be present, status values for Observation, Encounter, MedicationRequest, Procedure, DiagnosticReport and Immunization must be valid codes, and date fields must use FHIR date or dateTime format. Everything runs in your browser.

Who this is for

Developers building or testing a FHIR API, integration analysts checking a payload from a partner, health IT staff reading a patient access export, and students learning how FHIR resources and Bundles fit together.

How to use it

1. Open a FHIR JSON or XML file, or paste a resource into the box. 2. Read the summary and the list of issues. 3. Check each resource in the Resources table. 4. Open the Structure tab to inspect elements. 5. Download the XML, JSON or resources CSV.

What the sample shows

The sample, sample-bundle.json, is a collection Bundle with 5 entries, so 6 resources are listed: the Bundle, a Patient, two Observations, a Condition and a MedicationRequest. The Patient pat-1 is summarised as Jordan A Sample, female, 1985-04-12. Observation obs-chol reads Cholesterol total, 5.2 mmol/L, final, with no issues. Observation obs-hdl has two: its status done is not an Observation status code, and its effectiveDateTime of 05/11/2026 is not in FHIR date format. MedicationRequest med-1, Atorvastatin 20 mg tablets with status active, points its subject at Patient/pat-2, which is not in the file. That gives 3 issues in all. The XML version starts with a Bundle element in the FHIR namespace and runs to just over 120 lines.

How references are checked

Every reference value is compared with the fullUrl of each entry and with the type and id of each resource in the file, so both urn:uuid references and relative ones such as Patient/pat-1 are resolved. References starting with a hash point to contained resources and are skipped, as are absolute web addresses. A transaction or batch Bundle is also checked for a request element in each entry, and coding system values should be URIs starting with http, https, urn or oid.

How JSON becomes XML

Primitive values become value attributes, arrays become repeated elements, nested resources sit inside a wrapper element, extensions on primitives written as underscore properties are placed inside their element, and narrative div content is given the XHTML namespace. Elements are written in the order they appear in the JSON.

Limits

These checks are not full profile validation: they do not test cardinality beyond the listed required elements, value sets, invariants, terminology bindings or profiles such as US Core or UK Core. Use the official HL7 FHIR validator when you need a conformance result. The FHIR XML format expects elements in the order set by the specification, so if the JSON has another order the XML may need reordering before a strict schema accepts it. Status lists mix R4 and R5 codes. This is a structure tool and not medical advice, and it does not interpret any clinical value it displays.

Решен пример

sample-bundle.json: collection Bundle, 6 resources, 3 issues (invalid status, non-FHIR date, reference to Patient/pat-2 not in the file).

Накратко

Често задавани въпроси

Can it read both FHIR JSON and FHIR XML?

Yes. Input starting with a brace is read as JSON and input starting with an angle bracket as XML, and the other format is offered as a download.

Is this a full FHIR validator?

No. It checks ids, required elements, status codes, dates, coding systems and references inside the file. For profile and terminology validation, use the official HL7 validator.

Which FHIR versions does it support?

Files in R4 and R5 can be opened, and the status checks accept the codes from both versions for the resources they cover.

What does reference not in this file mean?

The resource points at another resource, such as Patient/pat-2, that is not in the Bundle. It may live on a server, so the message is a prompt to check, not always an error.

Does it check resources inside a Bundle one by one?

Yes. Every entry resource and every contained resource gets its own row in the Resources table with its own list of issues.

Is patient data sent to a server?

No. The file is parsed and checked by code in this browser tab, and the downloads are created on your device.

Напълно безплатноБез такса, без регистрация
Файловете остават поверителниВсичко работи във вашия браузър
Лесно на вашия езикНалично на много езици