Skip to content

About

A pure-Rust bridge between openEHR and two interoperability targets: HL7 FHIR via the FHIRconnect specification, and the OMOP Common Data Model via OMOCL, over the openEHR ITS-REST API.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1,123 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FerroBRIDGE

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

Project
Release CI License: BUSL-1.1 Docs GHCR

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

Conformance and compliance
(self-tested and self-assessed counts; none is a certification)
FHIRconnect mapping library FHIRconnect REST API OMOCL mapping library FHIR STU3 FHIR R4 FHIR R4B FHIR R5 FHIR R6 FHIR round-trip laws FHIR R4 facade EEHRxF Annex X groups served FHIRPath R4 test suite, N1 FHIRPath R4 test suite, 3.0.0 STU functions R4 profile validator, agreement with the HL7 FHIR Validator HL7 v2 message corpora HL7 v2 smoke corpora (NIST, AIRA)
CRA Post-quantum

EHDS and EEHRxF
EEHRxF draft 2026-11-23, Patient Summary EEHRxF draft 2026-11-23, ePrescription EEHRxF draft 2026-11-23, eDispensation EEHRxF draft 2026-11-23, Medical test report EEHRxF draft 2026-11-23, Imaging report and study EEHRxF draft 2026-11-23, Discharge report Xt-EHR models 1.0.0 crosswalk, EEHRxF draft 2026-11-23 MyHealth@EU Core 1.0.1 (CI) MyHealth@EU Laboratory 9.2.0 (CI) MyHealth@EU HDR 9.2.0 (CI) MyHealth@EU MVC 10.1.0 (CI) MyHealth@EU EuVAC 10.0.0-preview

HL7 v2 by message family and by version, across both corpora

HL7 v2 ACK HL7 v2 ADT HL7 v2 BAR HL7 v2 DFT HL7 v2 MDM HL7 v2 OMG HL7 v2 OML HL7 v2 ORL HL7 v2 ORM HL7 v2 ORU HL7 v2 OUL HL7 v2 PPR HL7 v2 RDE HL7 v2 RDS HL7 v2 REF HL7 v2 SIU HL7 v2 VXU HL7 v2.3 HL7 v2.3.1 HL7 v2.4 HL7 v2.5 HL7 v2.5.1 HL7 v2.6 HL7 v2.8

What FerroBRIDGE is

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.

The FerroBRIDGE operator console dashboard

What it implements

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.

Quick start

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.yaml

Create 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_secret

Start the bridge and ask for liveness:

docker compose up --wait
curl --fail-with-body -s http://127.0.0.1:8080/health/liveness

Every 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.

Deploy it

Every release publishes, from one tag:

  • the bridge image ghcr.io/ferrohealth/ferrobridge and the console image ghcr.io/ferrohealth/ferrobridge-console, for linux/amd64 and linux/arm64, on a distroless base;
  • the static ferrobridge binary for Linux and the quickstart compose.yaml on 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.

Security and conformance

  • 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.

Crates

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) crates.io docs.rs downloads
hl7v2-types The HL7 v2 message structures, segments and data types, generated (Apache-2.0) crates.io docs.rs downloads
openehr-mapping-core The mapping header, loader and registry that FHIRconnect and OMOCL share crates.io docs.rs downloads
fhirconnect The FHIRconnect mapping language: file model, validation, compiler and engine crates.io docs.rs downloads
omocl The OMOCL mapping language and its engine, from openEHR to OMOP CDM rows crates.io docs.rs downloads
omop-cdm The OMOP CDM v5.4 row types, the OHDSI DDL, the vocabulary loader and the writer crates.io docs.rs downloads
ferrobridge-term The FHIR terminology client: $lookup, $translate, $validate-code, $expand and $subsumes crates.io docs.rs downloads
ferrobridge-hl7v2 The HL7 v2 face: MLLP, parsing, acknowledgments and the v2-to-FHIR map crates.io docs.rs downloads
ferrobridge-fhirpath A FHIRPath 2.0.0 evaluator with the FHIR R4 additions crates.io docs.rs downloads
ferrobridge-validator A FHIR R4 and STU3 profile validator over packages read offline crates.io docs.rs downloads
fhir-search The FHIR R4 search value grammar: escaped value lists, tokens, string matching and dates with their prefixes and ranges crates.io docs.rs downloads
eehrxf The European interoperability component of an EHR system under the EHDS Regulation: the exchange format in FHIR R4, mapped from openEHR crates.io docs.rs downloads
ferrobridge-operator-api The health and operator documents the bridge and its console share crates.io docs.rs downloads

Part of FerroHEALTH

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.

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; fhir-types and hl7v2-types are Apache-2.0 today. The licensing page says which applies to you.

About

A pure-Rust bridge between openEHR and two interoperability targets: HL7 FHIR via the FHIRconnect specification, and the OMOP Common Data Model via OMOCL, over the openEHR ITS-REST API.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages