Skip to main content

Interactive Notebooks

Try FHIR4DS in your browser using Google Colab. These notebooks demonstrate the core capabilities of the toolkit without requiring any local installation.

Get Started​

NotebookDescriptionOpen in Colab
FHIRPathCore FHIRPath R4 parsing and evaluation.Open In Colab
CQLCQL-to-SQL translation and population evaluation.Open In Colab
ViewDefinitionSQL-on-FHIR v2 ViewDefinition generator.Open In Colab
DQMMeasure evaluation and clinical audit trails.Open In Colab
OMOPFHIR R4 to OMOP CDM v5.5 — person, encounters, concept maps and the cross-resource medications union.Open In Colab

Each notebook begins with pip install fhir4ds-v2==0.0.26 and imports from fhir4ds. No other setup is required. The OMOP notebook additionally downloads its cohort from Hugging Face (no token needed).

New to the mapping? FHIR → OMOP builds person and the concept map by hand first.

Local Usage​

To run these notebooks locally, install the package and launch Jupyter:

pip install "fhir4ds-v2[measures]==0.0.20"
jupyter notebook docs/notebooks/

Or clone the repository for the latest development version:

git clone https://github.com/fhir4ds/fhir4ds.git
cd fhir4ds
pip install -e ".[measures]"
jupyter notebook docs/notebooks/