Two interchangeable paths
A database-free in-memory evaluator over serde_json, and a SQL generator
that lowers FHIRPath to SQL over JSONB — both pass the full official suite.
Two interchangeable paths
A database-free in-memory evaluator over serde_json, and a SQL generator
that lowers FHIRPath to SQL over JSONB — both pass the full official suite.
No database required
Run a ViewDefinition over NDJSON, a Bundle, or a directory of resources and
write CSV / NDJSON / JSON / Parquet. No Postgres, no setup.
Multi-dialect SQL
One dialect-parametrized generator emits PostgreSQL JSONB or DuckDB JSON
SELECTs, plus CREATE TABLE DDL in ansi / postgres / duckdb.
Offline lint & validate
Rustc-style diagnostics for ViewDefinitions (FH01–FH11), plus JSON and SARIF 2.1.0 output for CI — schema-driven against any FHIR package.
octofhir-sof is a Rust toolkit for
SQL on FHIR v2: it parses
ViewDefinition resources and turns FHIR data into flat tables. The library is
network-free and embeddable; the CLI is a thin shell over it.
serde_json, and a PostgreSQL /
DuckDB SQL generator — both pass the full official content-test suite
(144/144).repeat directive and the %rowIndex environment
variable, on both paths.curl -fsSL https://raw.githubusercontent.com/octofhir/sof/main/install.sh | shSee Install for cargo install, prebuilt binaries, and
building from source.