Production-Scale FHIR Analytics. Running Anywhere.
The first SQL-native clinical reasoning engine. Translate CQL to DuckDB SQL for blazing fast, auditable population health analytics with zero server infrastructure.
FHIR4DS treats FHIR as a first-class citizen in the analytical stack. No pre-flattening, no complex ETLβjust standard SQL powered by high-performance DuckDB extensions.
Query FHIR resources using native FHIRPath expressions directly in SQL.
import fhir4ds
con = fhir4ds.create_connection()
con.execute("""
SELECT fhirpath_text(resource, 'Patient.name.family')
FROM resources
""")Clinical logic compiles to a single, self-contained DuckDB SQL query. Query raw FHIR JSON directly without pre-flattening or ETL.
Same accuracy target. Radically different performance.
| Capability | FHIR4DS | CQF Clinical Reasoning |
|---|---|---|
| Cohort execution at scale (5,000 patients, Synthea) | 0.045 β 1.1 ms/patient | per-patient cost unchanged at scale |
| Speedup at scale (5,000 patients, extrapolated) | ~23Γ to ~16,000Γ per measure | baseline |
| SQL execution per patient, median (all 47 measures) | ~6.9ms | N/A |
| SQL execution per patient, median (46 shared measures) | ~6.9ms | ~575ms |
| Speedup, median (46 shared measures) | ~83Γ faster | baseline |
| Zero server infrastructure | β DuckDB-WASM | β Requires JVM + server |
| Audit evidence trail | β Full narrative | β Aggregate counts only |
| Output is inspectable | β Plain SQL | β Black-box engine |
| Columnar scalability | β Vectorized | β οΈ Sequential loop |
| SQL-on-FHIR v2 support | β 100% compliance | β Not supported |
At-scale rows: Synthea 5,000-patient cohorts, DuckDB 2.0.0 (100β5,000-patient ladder in the benchmarking report); the Java column is a per-patient linear extrapolation β its actual cost grows with data volume. Per-patient figures measured on DuckDB 2.0.0 against the cqframework 2025 QI-Core test bundles (46 of 47 measures succeed in both engines) β small cohorts where fixed per-query costs dominate, i.e. the conservative end of the range.
Join the modern healthcare data stack. Open-source, standards-compliant, and built for high-performance clinical quality measurement.