Skip to content

OctoFHIR: FHIR infrastructure, open source and in Rust

octofhir.com · Demo server · Documentation

OctoFHIR builds open-source FHIR infrastructure in Rust. Our FHIR server on PostgreSQL has a keyboard-first web console for REST, SQL, GraphQL, FHIRPath and CQL. The server is built on our own engines for FHIRPath, SQL on FHIR, CQL, UCUM and FHIRSchema validation. Next to them we build tools for the FHIR Mapping Language, FHIR Shorthand, terminology and SDK generation. Each engine is a standalone crate you can embed in your own application, and most of them also ship a command-line tool.

Projects

Server

Project What it does Crate
server-rs Fast FHIR server in Rust (R4–R6) on PostgreSQL, with a keyboard-first web console for REST, SQL, GraphQL, FHIRPath and CQL. —

Languages & engines

Project What it does Crate
fhirpath-rs FHIRPath engine that follows the spec text, with a static analyzer, terminology support and a CLI with a REPL. crates.io
sof SQL on FHIR v2: runs ViewDefinitions in memory or compiles them to PostgreSQL and DuckDB SQL. Passes the official content tests (144/144). crates.io
cql-rs Clinical Quality Language in Rust: parser, ELM translator, evaluator and the cql CLI (prebuilt binaries). Passes the official cql-tests (1693/1693). crates.io
fml-rs FHIR Mapping Language: parser, formatter, type checker and StructureMap engine behind one fml command. —
ucum-rs UCUM units of measure: validation, comparison and conversion with exact decimal factors. Also works in no_std and WebAssembly. crates.io

Data & terminology

Project What it does Crate
fhirschema-rs FHIRSchema for Rust: compiles StructureDefinitions and validates FHIR R4–R6 resources. crates.io
canonical-manager-rs FHIR package manager: installs IG packages, then resolves and searches canonical resources. Library and CLI. crates.io
fhir-model-rs Shared FHIR model, terminology and server traits (ModelProvider) used across the OctoFHIR crates. crates.io
term-squid FHIR terminology server on Rust and PostgreSQL: $lookup, $expand, $validate-code and $translate for R4, R5 and R6. —

Tooling

Project What it does Crate
maki FHIR Shorthand toolchain: SUSHI-compatible build, GoFSH, linter and formatter. —
inkgen Generates TypeScript (with Zod schemas and profile classes) or Rust code from FHIR packages. —
vscode-extension FHIRPath in VS Code: highlighting, live validation, completion and a playground, running fhirpath-rs as WebAssembly. —
banshee PostgreSQL parser, formatter, linter and language server. It powers the server's SQL console. crates.io
otter Embeddable TypeScript/JavaScript runtime on its own bytecode VM. crates.io

Why OctoFHIR

  • Rust at the core. The engines are fast and memory-safe. Our CLIs and the server ship as single binaries, so there is no JVM or other runtime to install.
  • Spec first. We implement against the specification text and check ourselves with the official suites: FHIR262 for the server, the fhir-test-cases FHIRPath tests, the SQL on FHIR content tests, the UCUM functional tests and cql-tests. When the tests and the spec disagree, we follow the spec.
  • Embeddable. Each engine is a standalone crate behind small traits, so you can use one piece without adopting the whole stack.
  • JSON only. The server and the engines work on FHIR JSON. There is no XML to configure, convert or maintain.

Links

Issues and pull requests are welcome in any of the repositories above.

Pinned Loading

  1. fhirpath-rs fhirpath-rs Public

    FHIRPath tools written in Rust

    Rust 25 5

  2. ucum-rs ucum-rs Public

    UCUM implementation on Rust

    Rust 14 1

  3. server-rs server-rs Public

    Fast FHIR server in Rust (R4–R6) with a keyboard-first web console for REST, SQL, GraphQL, FHIRPath and CQL.

    Rust 7 2

  4. maki maki Public

    FHIR Shorthand toolchain in Rust: SUSHI-compatible build, GoFSH, linter and formatter.

    Rust 6

Repositories

Showing 10 of 25 repositories
  • otter Public

    JS/TS Runtime based on Rust

    octofhir/otter's past year of commit activity
    Rust 4 MIT 0 0 0 Updated Nov 26, 2026
  • parenox Public

    Fast, source-only Clojure analysis in Rust

    octofhir/parenox's past year of commit activity
    Rust 0 0 0 0 Updated Nov 26, 2026
  • server-rs Public

    Fast FHIR server in Rust (R4–R6) with a keyboard-first web console for REST, SQL, GraphQL, FHIRPath and CQL.

    octofhir/server-rs's past year of commit activity
    Rust 7 Apache-2.0 2 0 0 Updated Nov 23, 2026
  • fhirpath-rs Public

    FHIRPath tools written in Rust

    octofhir/fhirpath-rs's past year of commit activity
    Rust 25 5 0 1 Updated Nov 23, 2026
  • fhirschema-rs Public

    FHIRSchema for Rust: compile StructureDefinitions and validate FHIR R4–R6 resources.

    octofhir/fhirschema-rs's past year of commit activity
    Rust 0 0 0 0 Updated Nov 20, 2026
  • banshee Public

    banshee — PostgreSQL parser, formatter, linter and language server in Rust (lossless CST, error recovery, migration-safety lints)

    octofhir/banshee's past year of commit activity
    Rust 4 0 0 0 Updated Nov 18, 2026
  • inkgen Public

    From FHIR to code, in one ink — a Rust-based HL7 FHIR code generator for deterministic, inspectable TypeScript (and future multi-language) SDKs.

    octofhir/inkgen's past year of commit activity
    Rust 0 0 0 0 Updated Nov 17, 2026
  • canonical-manager-rs Public

    FHIR package manager for Rust: install IG packages, then resolve and search canonical resources. Library and CLI.

    octofhir/canonical-manager-rs's past year of commit activity
    Rust 1 2 0 0 Updated Nov 17, 2026
  • hl7v2 Public

    HL7 v2 tooling in Rust: MLLP transport, message schemas and FML-based FHIR mappings. Early development.

    octofhir/hl7v2's past year of commit activity
    Rust 0 0 0 0 Updated Nov 13, 2026
  • fml-rs Public

    FHIR Mapping Language (FML) in Rust: parser, formatter, type checker, StructureMap compiler and engine. Matches the HL7 reference compiler on 1,659 public maps; converts FHIR R4 to R5 with the cross-version maps.

    octofhir/fml-rs's past year of commit activity
    Rust 0 0 0 0 Updated Nov 10, 2026