The bridge from openEHR health records to HL7 FHIR and the OMOP research model, driven by mapping files.
Documentation · Quick start · What it implements · Licensing
Conformance and compliance
(self-tested and self-assessed counts; none is a certification)
Health data rarely lives in one format. A hospital may keep its records in openEHR, an open standard for structured health records, while the apps that need them speak HL7 FHIR, the exchange format most modern health software uses, and the researchers who study them work in OMOP, the common data model of the international OHDSI research network.
FerroBRIDGE translates between them, in pure Rust. It reads records from any openEHR CDR it reaches over the ITS-REST API and offers them as FHIR, so a FHIR app reads and writes them without knowing openEHR. It copies records into an OMOP CDM database, so studies run over them. HL7 v2 messages, the format many hospital systems send, come in through it as well. It stores no clinical data of its own: the record stays in the CDR.
Every translation is a mapping file, written in one of two published languages: FHIRconnect for FHIR and OMOCL for OMOP. A clinical informatician reads and changes a mapping without a programmer, and FerroBRIDGE checks each file against the published schema when it loads it. Nothing is hand-coded per FHIR resource or per OMOP table.
It is for hospitals and regions that keep records in openEHR and share them with FHIR apps, national exchanges or partners; for research groups and data offices that want openEHR data in an OMOP database; and for vendors and integrators that build FHIR applications over an openEHR back end or use its FHIR and HL7 v2 libraries on their own.
| Lane | Specifications | What it does |
|---|---|---|
| The FHIR facade | FHIRconnect 1.0.0, HL7 FHIR R4, SMART App Launch 2 | A FHIR R4 server over the CDR: read, vread, create, update, search, transaction, batch, $validate and Composition/$document, every request driven by the mappings and every access token checked against the SMART v2 scope its interaction needs |
| The FHIRconnect operations | FHIRconnect REST API | $tofhir and $toopenehr, which run a mapping as a pure transformation with no CDR |
| The OMOP ETL | OMOCL 1.0.0, OMOP CDM v5.4 | cdm init creates a CDM v5.4 database and etl run fills it from the CDR over AQL, with concept resolution as SQL over the OHDSI vocabulary you load, and FHIR R4 loaded with no CDR |
| The HL7 v2 face | HL7 v2 over MLLP, the HL7 v2-to-FHIR guide | An MLLP listener that maps each message through the guide's ConceptMaps and writes it into the CDR as one transaction, acknowledged once the CDR commits or refuses it |
| The change feed | openEHR ITS-REST 1.1.0 | Hands each commit of the CDR to the events lane, the incremental OMOP load and the outbound FHIR lane, which posts one transaction Bundle per changed composition |
| The interoperability component | Regulation (EU) 2025/327 | The eehrxf crate: the European exchange format in FHIR R4 for prescriptions and dispensations, laboratory, imaging and discharge reports, mapped from openEHR through FHIRconnect |
Writing and loading mappings
covers the model, extension and context files, ferrobridge mapping check,
and the operator API that reloads a running bridge.
The operator console
shows the running mapping set, edits and checks a draft, and runs a mapping
in a playground.
The quickstart runs the published image with every lane off. You need
Docker Compose 2.23.1 or newer and curl, 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/FerroBRIDGE/releases/latest/download/compose.yamlCreate the secret files it reads, empty for a lane you leave off:
mkdir -p secrets && umask 077
touch secrets/cdm_url secrets/cdm_password secrets/cdr_password \
secrets/terminology_password secrets/console_oidc_client_secretStart the bridge and ask for liveness:
docker compose up --wait
curl --fail-with-body -s http://127.0.0.1:8080/health/livenessEvery command above is a step of
scripts/quickstart/tour.sh, which CI runs
against compose.yaml. Turn a lane on by setting its variable:
FERROBRIDGE__CDR__ENDPOINT__URL reaches your openEHR CDR and
FERROBRIDGE__TERMINOLOGY__ENDPOINT__URL your terminology server. The header
of compose.yaml names every setting, and the cdm and console profiles
add an OMOP database and the operator console.
Configuring the server
continues from here.
Every release publishes, from one tag:
- the bridge image
ghcr.io/ferrohealth/ferrobridgeand the console imageghcr.io/ferrohealth/ferrobridge-console, forlinux/amd64andlinux/arm64, on a distroless base; - the static
ferrobridgebinary for Linux and the quickstartcompose.yamlon the GitHub release; - the library crates whose version moved, on crates.io.
The latest release is v0.0.29, cut on 2026-11-24.
Its image is ghcr.io/ferrohealth/ferrobridge:0.0.29.
The bridge runs beside an openEHR CDR over ITS-REST, a FHIR terminology
server and, for the OMOP side, a CDM v5.4 database with the OHDSI vocabulary
loaded (What FerroBRIDGE runs beside).
The container image
covers the images, the probes and the compose profiles.
- Who may call it: the facade and the operator API are a SMART App Launch 2 resource server, and every access is written to the access record of Regulation (EU) 2025/327.
- How it fails: an upstream failure is reported with its status, never turned into an empty answer (Failure and identity behaviour).
- What you install: every release is signed and carries an SBOM and SLSA Build Level 3 provenance, and every scan finding an OpenVEX judgement (verifying a release).
- Conformance: each conformance badge above links to its pass list, the cases that pass against the published FHIRconnect and OMOCL mapping libraries, the HL7 FHIR examples per version, the HL7 FHIRPath test suite and the HL7 v2 message sets (Checks and gates).
The source is public and every feature is in this repository; there is no paid edition with extra functions.
The mapping languages, the FHIR and HL7 v2 models and the clients the bridge is built from are published as Rust crates. Pin a crate exactly: every change moves it one patch (Crate versions).
| Crate | What it does | Version | Docs | Downloads |
|---|---|---|---|---|
fhir-types |
The FHIR model for STU3, R4, R4B, R5 and R6, generated from the HL7 packages (Apache-2.0) | |||
hl7v2-types |
The HL7 v2 message structures, segments and data types, generated (Apache-2.0) | |||
openehr-mapping-core |
The mapping header, loader and registry that FHIRconnect and OMOCL share | |||
fhirconnect |
The FHIRconnect mapping language: file model, validation, compiler and engine | |||
omocl |
The OMOCL mapping language and its engine, from openEHR to OMOP CDM rows | |||
omop-cdm |
The OMOP CDM v5.4 row types, the OHDSI DDL, the vocabulary loader and the writer | |||
ferrobridge-term |
The FHIR terminology client: $lookup, $translate, $validate-code, $expand and $subsumes | |||
ferrobridge-hl7v2 |
The HL7 v2 face: MLLP, parsing, acknowledgments and the v2-to-FHIR map | |||
ferrobridge-fhirpath |
A FHIRPath 2.0.0 evaluator with the FHIR R4 additions | |||
ferrobridge-validator |
A FHIR R4 and STU3 profile validator over packages read offline | |||
fhir-search |
The FHIR R4 search value grammar: escaped value lists, tokens, string matching and dates with their prefixes and ranges | |||
eehrxf |
The European interoperability component of an EHR system under the EHDS Regulation: the exchange format in FHIR R4, mapped from openEHR | |||
ferrobridge-operator-api |
The health and operator documents the bridge and its console share |
FerroBRIDGE 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. FerroBRIDGE works with any openEHR CDR and any FHIR terminology server.
- The FerroBRIDGE book: evaluate, integrate, operate and contribute, and the FerroHEALTH book for what the family shares
- Architecture and the two mapping specifications
- Releases, the changelog and the GitHub releases
- Support and the security policy
- Contributing, code of conduct, governance, maintainers and the AI statement
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; fhir-types and hl7v2-types are Apache-2.0 today. The
licensing page says
which applies to you.