FHIR Viewer

Paste a FHIR resource or Bundle (JSON) to read it as a table Paste FHIR JSON

Paste a FHIR resource or Bundle into the editor and each resource shows up here as a block of rows.

Or drop a .json file on this box, , or .

FHIR resources, full screen

A FHIR viewer for the JSON your EHR and APIs send back

A FHIR Bundle is easy for a server to produce and slow for a person to read. A search for one patient's recent labs comes back as a few hundred lines of JSON where the value you want, the glucose reading from Tuesday, sits under entry[4].resource.valueQuantity.value, and the patient it belongs to is a urn:uuid you have to search for. This FHIR viewer lays the same JSON out as a table. Each resource gets a heading row such as "Observation · Glucose · entry 3", and each element gets a row with its value in plain words. The resources themselves are defined in the FHIR R4 resource list.

The common FHIR data types are written out the way you would say them: a HumanName reads "Chen, Ava M", a CodeableConcept reads "Glucose (LOINC 2345-7)", a Quantity reads "98 mg/dL", and a dateTime keeps its raw value with a readable form next to it. A Reference turns into a link to the entry it points at, resolved the way the Bundle rules on references describe: by fullUrl, by type and id, or by a contained id. Numbers and identifiers stay exactly as they were written, so an MRN of 00048213 keeps its zeros and a lab value of 6.40 is not shortened to 6.4. Nothing is left out: whatever does not fit the one-line form, such as an identifier's assigner or a coding's version, follows it as "assigner.display: Acme Healthcare".

Nothing is sent anywhere: the JSON is read and drawn in your browser tab. The table is the same one our JSON parser uses, so the filter boxes, Nested, Full Screen and the Excel download work the same way. If FHIR is new to you, the Wikipedia article on FHIR is a short introduction.

How to read a FHIR Bundle with this viewer

1

Paste, drop or upload the JSON

Paste a single resource or a whole Bundle into the editor, or drop a .json file on the tool. A JSON array of resources, or NDJSON from a bulk export (one resource per line), works too. Sample loads a fictional diabetes follow-up visit with seven entries.

2

Check the status line

Above the table you see the resource type, a best guess at the FHIR version and how many entries of each type the Bundle holds. JSON has no version marker, so the guess looks for things like fhirVersion, resource types that only exist in STU3 or R5, and an Encounter.class written as a list. Problems such as a reference to an entry that isn't there, or two entries with the same fullUrl, are listed there too.

3

Follow the references

Entries are grouped by resource type, so all Observations sit together even when the server mixed them up. A reference shows the resource it points to (Patient · Chen, Ava M · entry 1); click it to jump to that entry's heading. Anything the viewer doesn't write as one line, such as a dosage or a reference range with a text note, opens as a nested table. Press Nested to turn those tables on their side.

4

Filter, export or copy

Type in the filter boxes to keep only matching rows (value in Element, or mg/dL in Value); a resource's heading stays while any of its rows match. Excel downloads the table as you see it, and Copy as JSON puts the original JSON on your clipboard, indented, with every number as written. To check the JSON against the R4 schema, use the FHIR validator.

When a FHIR JSON viewer is quicker than reading the raw response

Checking what a FHIR API really returns

Paste the response of a Patient/$everything call or a search with _include, and see at a glance which resource types came back, how many of each, and which entries link to which. A missing practitioner or an Observation pointing at the wrong encounter shows up as a reference with no link.

Reviewing a transaction before you POST it

Before sending a transaction Bundle, read each entry with its request line (POST Observation) and check that every urn:uuid reference lands on an entry in the same Bundle. A typo in one uuid is easy to miss in JSON and obvious here.

Explaining a record to someone who doesn't read JSON

A care coordinator or an analyst can follow "Hemoglobin A1c (LOINC 4548-4) 6.40 %" far more easily than nested coding arrays. Filter the table down to what matters, then send the Excel file instead of a screenshot of an editor.

Mapping HL7 v2 feeds to FHIR

When you convert ADT or ORU messages to FHIR, put the source message in the HL7 viewer and the resulting Bundle in this one, and compare field by field: PID-5 against Patient.name, OBX-5 against Observation.value.

Frequently Asked Questions

Is the FHIR JSON I paste sent to a server?

No. The JSON is parsed and drawn in your browser, and the page makes no request that carries it. Even so, this is a debugging tool and not a system your privacy team has signed off, so follow your organization's rules about where real patient data may be pasted. The sample is fictional.

Which FHIR versions does the viewer read?

It is written for R4, the version most production APIs use today, and the names in the status line come from the R4 resource list. STU3 and R5 resources still open: the viewer shows every element it finds, it just can't promise that an R5-only element gets its one-line form. The version in the status line is a guess from the content, because FHIR JSON doesn't say which version it is.

How does a reference find its entry?

First by an exact match on an entry's fullUrl, which is how urn:uuid: references in transaction Bundles work. For a relative reference such as Patient/48213 it looks for the entry with that type and id, or a fullUrl ending in it on the same server base. #med1 points to a contained resource, which gets its own heading right after the resource that holds it. A Bundle inside an entry, such as a search result in a batch response, lists its own entries (entry 2.1, entry 2.2) and is its own scope: its references are looked up among its own entries. A reference that matches nothing is shown as plain text with "not in this Bundle" after it, and listed in the status line.

Why are my entries in a different order than in the JSON?

They are grouped by resource type, in the order each type first appears. A search result that mixes Observations, Encounters and Conditions reads better that way. Every heading keeps the entry's original number (entry 5), so you can still find it in the raw JSON on the left.

Can I paste FHIR XML?

Not yet. Turning FHIR XML into the same table needs the element definitions to know which elements repeat and which values are numbers, so the viewer takes JSON only for now. Most servers return the FHIR JSON format when you ask for it with _format=json or an Accept: application/fhir+json header.

I have JSON to parse that isn't FHIR. Will this page help?

Only FHIR resources get the readable rows; any other JSON gets a short message saying it has no resourceType. For plain JSON, the JSON parser linked at the top of this page draws the same kind of table without the FHIR rules.

Does the viewer check that my resources are valid?

It reports what it notices while reading: unknown resource types, duplicate fullUrls and references that point nowhere. It does not check the JSON against the R4 schema. The FHIR validator in the related tools below does that, and lists each problem with its line.

Related tools

Other tools for healthcare messages and the JSON around them.