Skip to content
FerroHEALTHPublic

About

a pure-Rust, machine-generated multi-version FHIR terminology server for SNOMED CT. No JVM, no Elasticsearch.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

731 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FerroTERM

The FHIR terminology server for SNOMED CT, LOINC, ICD and every other code system, in one binary.

Documentation · Quick start · What it implements · Licensing

Project
Release CI License: BUSL-1.1 Docs GHCR Image pulls

Quality and security
OpenSSF Scorecard Quality gate Coverage CodeQL Signed releases SLSA Build Level 3

Conformance and compliance
(self-tested and self-assessed counts; none is a certification)
tx-ecosystem R4 tx-ecosystem R4B tx-ecosystem R5
EHDS
MyHealth@EU MVC 10.1.0 (CI) import EEHRxF draft 2026-11-23 Art 6 code systems
Post-quantum safe uses, self-assessed CRA

What FerroTERM is

Health records are full of codes. A diagnosis is a SNOMED CT or ICD code, a lab result a LOINC code, a medicine a code from a national drug database. These code systems (the shared lists of medical terms) are what let two systems agree that they mean the same thing. Every application that records or exchanges clinical data needs to look codes up, check them and search them.

FerroTERM answers those questions for every application at once. It is a FHIR terminology server in pure Rust: it loads the code systems you are licensed for and serves them over the HL7 FHIR terminology API. Look up a code, check that a code belongs to a list, find every narrower term, translate a code from one system to another. It runs as one program over an index built once per release, with no JVM, database or search engine to operate beside it.

It is for hospitals and national eHealth programmes that need one terminology service for all their applications, for vendors and integrators that need SNOMED CT, LOINC or ICD in their products without a heavy terminology stack, and for terminology teams that edit and publish value sets in the console.

The FerroTERM console dashboard

What it implements

It serves these code systems, each from the release you are licensed for, with UCUM and the registries built in:

SNOMED CT, LOINC, UCUM, BCP 47, BCP 13, ISO 3166-1, ICD-10 (WHO), ICD-10-NL, ICD-10-CM, ICD-11 MMS, ICD-11 ICF, ICD-11 Foundation, ATC/DDD, ICPC-2, RxNorm, the DHD Diagnosethesaurus and Verrichtingenthesaurus, the G-Standaard, the Nederlandse Labcodeset, the NHG ICPC-1 to SNOMED CT map, NPU, ICD-O-3, EMDN, ISCO-08, ORPHAcodes, the DICOM Controlled Terminology (DCM), EDQM Standard Terms, EMA SPOR, the SNOMED CT Global Patient Set, UDI device identifiers, the EHDS identifier types, and any FHIR CodeSystem, ValueSet, and ConceptMap resources (HL7 Terminology's 900+ systems load this way).

The code systems page lists, per system, the versions handled, the build command and the licence position.

Quick start

The quickstart runs the published image with nothing loaded: it serves UCUM, BCP 47, BCP 13 and ISO 3166-1 from the binary. You need Docker Compose 2.23.1 or newer, curl, jq and openssl, and no checkout. Every release attaches the quickstart as one self-contained compose.yaml; download the latest release's into an empty directory:

curl -fsSLO https://github.com/FerroHEALTH/FerroTERM/releases/latest/download/compose.yaml

Make the index directory and the console's secret beside it, and start the server:

mkdir -p index secrets && umask 077
openssl rand -hex 16 > secrets/console_oidc_client_secret
docker compose up --wait

Look up a unit of measure:

curl --fail-with-body -s 'http://localhost:8080/r4b/CodeSystem/$lookup?system=http://unitsofmeasure.org&code=mg/dL' \
  | jq -e '.resourceType == "Parameters"'

Both steps are part of scripts/quickstart/tour.sh, which CI runs over the repository's compose.yaml, the file each release attaches. A clinical code system such as SNOMED CT is a release you hold a licence for: the build service of the same file turns it into an index under ./index once, and the server reads that index at startup. Install and run and loading code systems continue from here.

Deploy it

Every release publishes, from one tag:

  • the server image ghcr.io/ferrohealth/ferroterm, the sync image ghcr.io/ferrohealth/ferroterm-sync and the console image ghcr.io/ferrohealth/ferroterm-console, for linux/amd64 and linux/arm64;
  • the ferroterm, ferroterm-build and ferroterm-sync binaries for x86_64 and aarch64 Linux, on glibc and on musl, and the quickstart compose.yaml, on the GitHub release.

Install and run covers compose and the container by hand, hardware sizing the memory each code system needs, and health, metrics and request identifiers what an orchestrator reads.

Security and conformance

  • What you install: every release artifact carries signed SLSA Build Level 3 provenance and an SBOM you verify before you run it (Verifying releases).
  • Conformance: the conformance badges above come from the HL7 terminology ecosystem test suite, run against every change, with a committed pass list per FHIR version (Conformance).
  • Measured: every figure below comes from a benchmark record committed to the repository, and a check fails when a page and the records disagree.

The source is public and every feature is in this repository; there is no paid edition with extra functions.

Speed and footprint, measured per code system
Code system Release Concepts Build Peak build memory Index on disk Resident $lookup $validate-code $subsumes $expand (small) $expand (large) Search Snowstorm
ICD-10-CM 2026 98,827 1.51 s 359 MB 44 MB 91 MB 105 µs 60 µs 58 µs n/a n/a n/a not run
ICD-10-NL 2021 42,769 880.52 ms 221 MB 21 MB 66 MB 96 µs 60 µs 64 µs n/a n/a n/a not run
ICD-11 MMS 2026-01 37,211 n/a n/a 44 MB 99 MB 138 µs 59 µs n/a 129 µs 116 µs 139 µs not run
LOINC 2.83 257,266 8.15 s 2.54 GB 310 MB 440 MB 136 µs 56 µs n/a 126 µs 7.23 ms 283 µs not run
RxNorm (prescribable subset) 09082026 81,468 4.58 s 667 MB 77 MB 133 MB 388 µs 114 µs n/a n/a n/a n/a not run
SNOMED CT (International edition) 20260901 535,502 14.12 s 3.06 GB 559 MB 943 MB 217 µs 66 µs 59 µs 215 µs 1.7 ms 353 µs not run
SNOMED CT (Netherlands edition) 20260630 548,949 17.66 s 3.88 GB 864 MB 1.14 GB 222 µs 66 µs 59 µs 285 µs 2.28 ms 817 µs not run

Warm p50 over 200 HTTP round trips on one machine (Apple M2, 17.18 GB, macos/aarch64), FerroTERM 0.1.4 serving FHIR R4B, taken 2026-09-22. The records are under bench/records/; the benchmarks page has the method, the cold and tail latencies, and how to reproduce a record.

Crates

The SNOMED CT, LOINC, ICD, RxNorm and Dutch release readers and the terminology engine are published as Rust crates.

Crate What it does Version Docs Downloads
rf2 The SNOMED CT RF2 release loader and typed component model (Apache-2.0) crates.io docs.rs downloads
concept-graph The SNOMED CT ontology as CSR adjacency and roaring transitive-closure bitmaps crates.io docs.rs downloads
concept-store The disk-backed columnar concept and description store crates.io docs.rs downloads
designation-index The fst and roaring description search index crates.io docs.rs downloads
sct-ecl The SNOMED CT Expression Constraint Language lexer, parser and evaluator crates.io docs.rs downloads
sct-scg The SNOMED CT Compositional Grammar lexer, parser and printer crates.io docs.rs downloads
loinc The LOINC release loader and typed row model crates.io docs.rs downloads
classification The ClaML and ICD-10-CM tabular readers into one classification model crates.io docs.rs downloads
dhd-thesaurus The DHD Diagnosethesaurus and Verrichtingenthesaurus reader crates.io docs.rs downloads
gstandaard The G-Standaard (Z-Index) product ladder reader crates.io docs.rs downloads
labcodeset The Nederlandse Labcodeset publication reader crates.io docs.rs downloads
icd11 ICD-11 entities from the WHO ICD-API local deployment, cached and read crates.io docs.rs downloads
rxnorm-rrf The RxNorm Rich Release Format reader and typed row model crates.io docs.rs downloads
fhir-terminology The FHIR terminology operations over the code system provider seam crates.io docs.rs downloads

Part of FerroHEALTH

FerroTERM is one of five FerroHEALTH servers. Each does one job and reaches the others only over published standards: FerroEHR stores the record, FerroBRIDGE translates it to FHIR and the OMOP research model, FerroFED connects records across organisations and borders, FerroPIX matches patient identities, and FerroTERM serves the code systems. Any FHIR client can use FerroTERM.

Documentation

Support and contributing

Licence

Business Source License 1.1 (LICENSE): free outside production and for non-commercial production use, a commercial licence from Cadasto B.V. for other production use, and Apache License 2.0 four years after each version; the rf2 crate is Apache-2.0 today. The code systems keep their own licences, and the licensing page says which applies to you.

About

a pure-Rust, machine-generated multi-version FHIR terminology server for SNOMED CT. No JVM, no Elasticsearch.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages