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.
브라우저에서 실행됩니다. 파일은 기기 밖으로 나가지 않습니다. 확인하는 방법 보기
…
사용 방법
- 1Load
Open or paste FHIR JSON or XML.
- 2Review
Read the summary and issues.
- 3Resources
Check each row in the table.
- 4Inspect
Browse the element tree.
- 5Export
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).
한눈에 보기
- 카테고리: 문서
- 브라우저에서 실행되며 가입도 업로드도 필요 없습니다.
- 입력한 정보는 기기에 머뭅니다.
- 영어로 제공됩니다.
- 콘텐츠 최종 검토일:
- 공식 출처: HL7 FHIR R4 / R5 specification (JSON and XML representations)
자주 묻는 질문
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.
