Adrian Bernhard
← Projects

FHIR Sandbox

A simulated hospital system running on synthetic patient data. Two institutions keep their own records; a patient portal brings them together over open standards.

Using the sandbox for testing

Free to read for testing and learning. Every patient is synthetic, there is no real patient data. The images are openly licensed, de-identified research studies from the NCI Imaging Data Commons (TCIA and Zenodo collections), relabelled to the fictional patients.

Public read endpoints

Erebor, FHIR R4
https://fhir.adrianbernhard.ch/fhir
Orthanc, DICOMweb
https://dicom.adrianbernhard.ch/dicom-web
Orthanc RIS, FHIR R5
https://dicom.adrianbernhard.ch/fhir

Try it

curl "https://fhir.adrianbernhard.ch/fhir/Patient?_summary=count"
curl "https://fhir.adrianbernhard.ch/fhir/Patient?identifier=https://fhir.adrianbernhard.ch/sid/ahv-demo|999.4001.0000.19"
curl "https://dicom.adrianbernhard.ch/dicom-web/studies?PatientID=OR-60394"

Rules of the road

  • Read only. Writes need a key and aren't available.
  • Rate limits per IP: about 2 requests per second (120 per minute) on each server. $everything is capped at 10 per minute. A shared network, like a campus, counts as one IP and shares one limit. Over it you get 429 with Retry-After.
  • Erebor resets every night at 03:00 UTC and answers 503 for a minute or two while it restarts. Server ids can change, so search by identifier instead of hard-coding ids.
  • For repeated tests, export once with Patient/{id}/$everything and work offline.
  • Browser apps are fine: CORS allows any origin.

Run your own: need data permanently, or want to write? It is all open source: HAPI FHIR with Synthea for the hospital, Orthanc with public datasets such as TCIA for imaging.

Need something else? Use the contact form.