Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

How the products fit together

Revised 2026-11-17.

The FerroHEALTH family is six products, each its own server, image and repository, and each reaches the others only over a published protocol. No product is a compile-time dependency of another. This page says who owns what, which protocol each speaks, which shared libraries they are built from, and what running them side by side involves. Each product’s own book carries its configuration and its pinned specification versions.

ProductWhat it isHow the others reach it
FerroEHRthe openEHR Clinical Data RepositoryopenEHR ITS-REST and AQL
FerroBRIDGEopenEHR to HL7 FHIR (FHIRconnect) and to the OMOP Common Data Model (OMOCL), and clinical HL7 Version 2 messages mapped in through HL7’s Version 2 to FHIR guideit calls the CDR over ITS-REST; clients call its FHIR face and its MLLP listener
FerroFEDthe federation gateway (the openEHR Federation Tier with AQL, EHDS cross-border exchange, MyHealth@EU)it calls each CDR over ITS-REST; clients call its ITS-REST and FHIR faces
FerroPIXthe Master Patient Index (IHE PIX, PIXm, PDQ, PDQm, PMIR)IHE PIXm, PDQm and PMIR, and the HL7 Version 2 identity feed and queries (ITI-8, ITI-9, ITI-21) over MLLP
FerroTERMthe HL7 FHIR terminology serverthe FHIR terminology operations
FerroSMARTthe SMART App Launch 2.x authorization server, being built (owner, 2026-11-16 and 2026-11-17)SMART App Launch 2.x, OAuth 2.0 and OpenID Connect; every product checks its tokens through FerroSMART’s ferrohealth-smart

Each product in its own lane

A product does one job and leaves the others’ jobs to them:

  • FerroEHR implements no FHIR, OMOP, federation or IHE profile. FHIR and OMOP are FerroBRIDGE’s, federation is FerroFED’s, and identity and the IHE profiles are FerroPIX’s.
  • A product that needs another’s function calls that server as a client, over the other’s protocol. FerroEHR validates codes at FerroTERM over the FHIR terminology API, and FerroFED asks FerroPIX who a patient is; neither carries a terminology or an identity service of its own.
  • Nothing is written twice. What every product needs lives in a shared library, and the protocol clients and models live with the product that owns the protocol. When one lacks something, it is added in the repository that owns it and released, and no product keeps a local copy.
  • Every console is reactive. A link, a form or an action in an operator console never reloads the whole page; WebAssembly is the normal path, and the page without it is only the fallback.

FerroFORMS, an openEHR form builder and renderer at https://ferroforms.eu/, is paused. It is still drawn and listed, as a client of the CDR and of the terminology server.

What calls what across the FerroHEALTH family

The diagram is one file, shared with the family site and drawn by a generator in the FerroHEALTH repository. Select it to open it at full size.

Reading the diagram

The frame is one FerroHEALTH instance serving one organisation. The seven inside are the products; clinicians, applications, HL7 FHIR, HL7 Version 2 senders, the OMOP database and other organisations sit outside it. A dashed outline is a server not running yet (FerroTASK is planned), and a dashed line is a call into one. FerroFORMS is greyed out because it is paused. The band under the frame holds the shared libraries, which run inside the products and take no call.

Left to right is the order data moves. The top row is the data path: FerroFORMS takes the record down, FerroEHR keeps it, FerroTERM gives its codes meaning, and FerroBRIDGE carries it out and brings HL7 Version 2 messages in. FerroPIX, FerroFED and FerroTASK frame that path. An arrowhead points at what is called or written to, and each edge names the specification it speaks.

Which product calls which

CallerCallsOverWhat for
FerroFORMS (paused)FerroTERMthe FHIR terminology API, $expandthe codes a coded field admits
FerroFORMS (paused)FerroEHRthe openEHR REST APIcommitting the compositions a form produces
Any applicationFerroEHRthe openEHR REST API and AQLreading and writing the record directly
FerroEHRFerroTERMthe FHIR terminology API, $validate-codevalidating a coded value at commit time, as a client
FerroBRIDGEFerroEHRthe openEHR REST APIreading the record it carries out, and committing what it maps in
FerroBRIDGEFerroTERMthe FHIR terminology API, $lookup and $translateresolving a display and translating a code
HL7 FHIR clientsFerroBRIDGEits FHIR face, both waysreading openEHR out as FHIR, and writing FHIR back in
HL7 Version 2 sendersFerroBRIDGEits MLLP listenerclinical HL7 Version 2 messages, mapped through HL7’s Version 2 to FHIR guide and committed to the CDR
FerroBRIDGEan OMOP Common Data Model databaseSQLa batch load of typed rows, for research
ApplicationsFerroFEDits ITS-REST and FHIR facesone query answered from every node of a federation
FerroFEDFerroPIXIHE PIXmwho the patient is and where the records are, before it dispatches a query
FerroFEDFerroEHR and other organisations’ openEHR CDRsthe openEHR REST API and AQLeach node’s part of the answer, merged with the node named

Two more products sit beside the table:

  • FerroPIX is the Master Patient Index, and identity and the IHE identity profiles are its job alone. It answers IHE PIXm, PDQm and PMIR, and the HL7 Version 2 identity feed and queries (ITI-8, ITI-9, ITI-21) over MLLP. FerroFED asks it where a patient’s records are (PIXm) before it dispatches a query, and keeps no identity service of its own. FerroEHR is to look the subject of an EHR up there as a client (PIXm and PDQm), so the subject an EHR_STATUS carries can be the pseudonym FerroPIX mints. FerroPIX publishes the crates of the identity specifications, ihe-iti and nl-generic-functions, the Dutch Generic Functions, for every product to use.
  • FerroTASK reads FerroEHR over the openEHR REST API and AQL for task plans and GDL2 guidelines, and commits the state of each plan back.
  • FerroSMART is the SMART App Launch 2.x authorization server, being built. It issues access tokens with the launch context, behind the sign-in system the deployment already runs, which serves login only. Every product checks the tokens it is handed through FerroSMART’s ferrohealth-smart crate, against FerroSMART or any other authorization server the deployment names, so the table has no row for it.

Every call in the table speaks a published specification, so any product can be swapped for another implementation of the same standard: FerroTERM for any FHIR terminology server, FerroEHR for any openEHR CDR, and so on.

The shared libraries

What every product would otherwise write for itself lives in three shared libraries. Each is a set of Rust crates on crates.io, released from its own repository under the Business Source License 1.1, and compiled into the products that use it. A shared library carries cross-cutting work and never a product’s domain. None of them is a product: none runs as a process, and nothing calls one over the network, so the diagram draws them as a band outside the instance with no edges.

LibraryCratesWhat it doesWho uses it
FerroAUDITihe-atna, ehds-loggingThe whole audit trail: the IHE ATNA Record Audit Event (ITI-20) and the Basic Audit Log Patterns (BALP), with sending, the store-and-forward spool ITI-20 asks of a sender, forwarding and retrieving; and the record of each access to electronic health data that Regulation (EU) 2025/327 asks of an EHR systemFerroEHR, FerroFED and FerroPIX, and FerroBRIDGE from the first release that carries FerroBRIDGE#1377
FerroUIferrohealth-uiThe one source for the user interface of every operator console: the components, the stylesheet with a theme per product, and the design. Every console built on it is reactive, so an action never reloads the whole page. Each console moves onto a new release in one rollout with the others, as its console guide describesthe consoles of FerroEHR, FerroTERM, FerroBRIDGE and FerroFED
FerroSYSferrohealth-secret, ferrohealth-config, ferrohealth-telemetry, ferrohealth-health, ferrohealth-server, ferrohealth-usage-reportThe system plumbing every product shares: secrets and redaction, configuration, logging and OpenTelemetry, health, the HTTP stack and its drain, and the usage report. It is a set of crates like FerroAUDIT, never a control plane or a central service. Every crate is published on crates.io on its own release line, and the FerroSYS releases name the current version of each.FerroEHR, FerroTERM, FerroBRIDGE and FerroPIX

The protocol clients and models stay with the product that owns the protocol, and every other product uses them from there:

CratesPublished byWhat they are
fhir-types, ferrobridge-termFerroBRIDGEthe generated HL7 FHIR model, and the FHIR terminology client
ihe-iti, nl-generic-functionsFerroPIXthe IHE identity profiles, and the Dutch Generic Functions
the openehr-* cratesFerroEHRthe openEHR models and the ITS-REST client
ferrohealth-smart, ferrohealth-authz, ferrohealth-sessionFerroSMARTthe SMART App Launch and OAuth 2.0 resource server every product checks its callers with, the policy decision, and the operator consoles’ sign-in

The release of each library is on its card on the family site, read from its repository.

Running them side by side

No product needs another to start. A deployment runs the ones it needs, each as its own process or container, and points each caller at the others through its configuration:

ProductWhere its book describes deploying it
FerroFORMS (paused)The renderer
FerroEHRInstallation
FerroTERMInstalling
FerroBRIDGEWhat FerroBRIDGE runs beside
FerroFEDThe container

Five rules hold across the family:

  • One instance per organisation. FerroEHR is single-tenant: several organisations are served by several instances, each with its own database. The diagram’s frame is one such instance.
  • The record lives in the CDR. FerroEHR holds the record. FerroBRIDGE’s FHIR face stores nothing, and its OMOP load writes into a database outside it. FerroFED holds no clinical data of its own: it passes each node’s answer through.
  • The products meet over published specifications. Every edge in the diagram is one. FerroEHR and FerroBRIDGE meet only over the openEHR REST API, which is what lets them form one EHR system under the EHDS while staying independent of each other (intended purpose).
  • Each product authorises its own callers. Every product is its own SMART App Launch 2.x resource server: it checks the access tokens it is handed through FerroSMART’s ferrohealth-smart in its own process, against FerroSMART or any other authorization server the deployment names. FerroSMART issues the tokens and holds their signing keys; no other product, and no library, does.
  • Audit is written once. FerroAUDIT is the family’s audit implementation, sending to an Audit Record Repository the deployment runs. FerroEHR, FerroFED and FerroPIX write their audit trails through it, and FerroEHR and FerroFED their EHDS access records. From the first release that carries FerroBRIDGE#1377, FerroBRIDGE uses it for the EHDS access record of each access to its FHIR facade, because the openEHR REST API carries no end-user identity and FerroEHR’s record of that access names only the bridge.

The family end-to-end lane

Each product tests itself, and some test against one sibling. The family end-to-end lane runs the products together: it starts the published container image of each one, side by side, and drives one synthetic patient through all of them. No specification governs a test across products, so the lane is the family’s own design. It runs on GitHub Actions every week, on demand, and on every pull request that changes it.

What it checks, step by step:

StepProductWhat the lane asserts
1FerroTERMIt serves the synthetic code systems, value set and concept map mounted into it: a display by $lookup, a member by $validate-code, a translation by $translate.
2FerroEHR, two nodesEach node takes the synthetic templates, an EHR for the patient under its own ehr_id, and a composition.
3FerroBRIDGE and FerroTERMA Condition written through FerroBRIDGE’s FHIR facade with a coding that carries no display reads back with the display FerroTERM’s $lookup gave as its text, and node A stores the code with that display.
4FerroEHRNode A holds two compositions for the patient and node B one.
5FerroPIXBoth sites feed the patient (ITI-104), the cross-reference names both nodes’ ehr_ids (PIXm, ITI-83), and a demographics search finds one person (PDQm, ITI-78).
6FerroFEDIt resolves the patient through FerroPIX as its PIXm Manager, then one query, sent once, is answered from both nodes, and each row names the node it came from.

The patient summary FerroFED builds from both nodes, with codes translated through FerroTERM, joins once the FerroFED and FerroPIX releases that serve it are published (#66).

Every product checks its callers as it would in a deployment. The lane runs a development OpenID Provider, the one FerroPIX’s quickstart runs, and gets an access token from it for each call to FerroFED, FerroBRIDGE and FerroPIX. The FerroEHR nodes take their quickstart’s Basic user. Every product’s usage report is switched off, and all data are invented for the test.

Running the lane on your own machine

You need Docker with Compose, curl, jq and openssl, and room for up to ten containers. Nothing is built: Compose pulls each published image.

git clone https://github.com/FerroHEALTH/FerroHEALTH.git
cd FerroHEALTH
e2e/family/run.sh

The script prints each call it makes. A failure prints one line naming the product and the call, the answer it got and the logs of the stack, and the script exits 1. It stops and removes the stack at the end; add --keep to leave it running and call the products yourself on the loopback ports the compose file lists.

How the pins follow the releases

The compose file names each image by its release and by the digest of that release’s image, so a run uses exactly the images it names. Every six hours the family site’s refresh workflow reads each product’s latest release, asks the container registry for the digest of its image, and opens one pull request that moves every pin that changed, with the lane run on it. A release whose image is not published yet keeps the old pin until the next run. The same check runs at the start of every lane run and reports a pin that is behind.