fhirviz
v2.0.0
Published
Interactive reference graph visualiser for FHIR resources
Maintainers
Readme
fhirviz
Interactive reference graph visualiser for FHIR resources.
How it works
Reads a directory of .ndjson or .json FHIR files and renders a directed network of resource references as an HTML file.
For smaller datasets, the full graph is shown immediately. For larger datasets, the page starts with a resource-type summary and lets you expand a selected node's neighborhood at configurable depth and size.

Install
Global install:
npm install -g fhirvizOr run without installing via npx:
npx fhirviz path/to/fhir/resourcesThe graph is written to graph.html inside the same directory. Open it in any browser.
FHIR resource formats
- NDJSON - one resource per line (
.ndjson) - JSON - single resource or FHIR Bundle (
.json)
Both formats can coexist in the same directory.
Usage
fhirviz path/to/fhir/resourcesProvide the path to the directory containing FHIR resources. Use . to process the current directory.
--dir
The path to the FHIR directory containing FHIR resources. This is kept as backwards compatibility with fhirviz 1.0.0.
--open
Open the generated graph.html in the default browser after it's written.
Requirements
Node.js 22 or newer.
The generated graph loads vis-network from a CDN, so a network connection is required when viewing it.
Development
npm install
npm test
npm linkMade with ❤️ for the FHIR community
