Introduction
FerroBRIDGE is a pure-Rust, standalone bridge between openEHR and two interoperability targets: HL7 FHIR, driven by the FHIRconnect specification, and the OMOP Common Data Model, driven by the OMOCL specification. Mappings are specification-conformant YAML validated against published schemas, never hand-coded per FHIR resource or per OMOP table. FerroBRIDGE runs as its own server beside any openEHR CDR it reaches over the openEHR ITS-REST API, and it asks a FHIR terminology server for code systems and value sets.
What this book leaves to the family book
FerroBRIDGE is one product of the FerroHEALTH family, and Cadasto B.V. is the manufacturer of every product. This book documents FerroBRIDGE alone. The manufacturer, the shared security policy and support period, the Cyber Resilience Act’s manufacturer side, how the products fit together, and the licensing and trademark terms are written once, in the FerroHEALTH book.
How this book is organised
The four parts follow what you came to do.
- Evaluate answers whether FerroBRIDGE fits your problem: the design, the two mapping languages it reads, the version pins, and the licence.
- Integrate covers the two target surfaces and the mapping files that drive them.
- Operate covers what the running bridge needs around it, how it behaves when a mapping or an upstream call fails, and what each release shipped.
- Contribute covers how the work is tracked and which checks a change has to pass.
The tracker is the scope. Open issues are the worklist, milestones are releases, and the roadmap is the public view of both.
Architecture
FerroBRIDGE is a standalone bridge between openEHR and two interoperability
targets: HL7 FHIR through the FHIRconnect specification, and the OMOP Common
Data Model through the OMOCL specification. It runs beside an openEHR CDR and
reaches it only over the openEHR ITS-REST API, so it works against a CDR it did
not build. This page is the short tour. The design authority, with the ground
for every decision, is
docs/architecture.md
in the repository.
- The shape
- One foundation, two interpreters, two sinks
- The openEHR side
- The FHIR side
- The OMOP side
- Generated and hand-written
- Where the specifications are silent
The shape
graph LR
FHIRCLIENT["A FHIR client"] -->|"FHIR R4 REST"| FACADE["FerroBRIDGE: the FHIR facade"]
FACADE -->|"FHIRconnect mappings"| CORE["The shared mapping foundation"]
ETL["FerroBRIDGE: the OMOP ETL runner"] -->|"OMOCL mappings"| CORE
CORE -->|"openEHR ITS-REST"| CDR["An openEHR CDR"]
FACADE -->|"$lookup, $translate, $validate-code"| TERM["A FHIR terminology server"]
ETL -->|"typed CDM rows"| CDM["An OMOP CDM v5.4 database"]
VOCAB["The OHDSI vocabulary, loaded"] --> ETL
Both sides read openEHR content the same way and write to different places. The FHIR side answers requests one at a time and keeps no clinical data of its own. The OMOP side runs as a batch job, queries the CDR with AQL, and writes rows.
One foundation, two interpreters, two sinks
FHIRconnect and OMOCL are written by the same author and share one header
(grammar, type, metadata, spec, and spec.openEhrConfig pinning the
archetype and revision). Below that header they are different languages: one is
bidirectional and tree-shaped against FHIR paths, the other is one-directional
and flat against CDM columns. FerroBRIDGE shares the header model, the YAML
loader, the archetype-keyed mapping registry, and the RM-path model, then gives
each language its own parser, validator, and interpreter. A single intermediate
representation over both grammars would be the union of two dissimilar
languages, and it would break the first time either specification moved.
The two mapping specifications page has what each language actually says.
The openEHR side
Mapping paths in both languages are RM and archetype paths such as
$archetype/data[at0001]/items[at0077], never FLAT paths. A path alone is not
executable: the leaf RM type and the template-specific identifiers come from the
Web Template built from the template’s operational template. The order is the
operational template, then the Web Template, then path resolution, then the
composition. FerroBRIDGE fetches the operational template from the CDR, builds
the Web Template locally with the published openehr-* crates, resolves paths
against the canonical composition tree, and commits and reads canonical JSON.
FLAT never crosses the wire.
FHIRconnect requires the context mapping’s start entry to slot in a reusable
COMPOSITION.<archetype>.<Resource> mapping, and it defaults the
composition-level fields that have no FHIR counterpart: composer,
context/start_time, setting, language, territory, and category.
FerroBRIDGE follows those defaults and records every defaulted value in the
composition’s FEEDER_AUDIT, so a reader can tell a mapped value from a
defaulted one.
The FHIR side
FerroBRIDGE exposes a FHIR R4 REST facade and maps each request onto CDR
operations. It stores no clinical data. A transaction Bundle is all or nothing
and a batch Bundle answers per entry, as FHIR R4 defines them. Bundles are
split by the profiles in meta.profile, a resource that two mappings both need
becomes a linked mapping, and unresolved references are fetched from the
sending site with cycle protection. Beside the facade, the bridge serves the
two operations the FHIRconnect specification defines in its REST API
chapter, $tofhir and $toopenehr, as the engine’s own conformance surface;
the facade is a client of the same in-process engine.
flowchart LR
F["FHIRconnect YAML<br/>model, extension, context"] --> M["model<br/>published schemas exercised,<br/>strict schemas, semantic checks"]
M --> R["resolve<br/>one immutable program<br/>per profile and template"]
R --> E["engine<br/>one traversal, both directions,<br/>data-type lenses"]
T["tree<br/>path model over FHIR JSON<br/>guided by the element table"] --- E
W["Web Template index"] --- R
E --> O1["$tofhir, $toopenehr"]
E --> O2["The facade over the CDR"]
E -->|"external codes only"| TS["Terminology server"]
FHIRconnect states that it “does not focus specifically on AQL and FHIRsearch”,
so FHIR search has no specification behind it here. The search design is
FerroBRIDGE’s own: an AQL projection per resource type declared beside the
context mapping, executed over POST /query/aql, with the CapabilityStatement
naming exactly which search parameters each resource supports and an
OperationOutcome refusing the rest. The FHIR facade
page has the detail.
The OMOP side
OMOP is a relational analytics schema rather than an API, so the deliverable is rows in a populated CDM v5.4 database. The OMOP engine is a batch ETL job runner over AQL, writing typed CDM rows into a PostgreSQL CDM database built from the OHDSI DDLs, with the derived tables generated rather than mapped.
OMOP concept resolution is SQL over the locally loaded OHDSI vocabulary: the
CONCEPT table, standard_concept, the domain, and the CONCEPT_RELATIONSHIP
“Maps to” traversal. It is never a FHIR terminology operation. An unmapped code
lands as concept_id = 0 with the source value kept, which is what the CDM
means by “no matching concept”, and it is never dropped. The
OMOP ETL page has the detail.
flowchart TB
Q["AQL result set, streamed"] --> C["One composition"]
C --> E["omocl engine"]
E --> G["Record graph<br/>rows and FACT_RELATIONSHIP links"]
G --> R["Concept resolver<br/>SQL over the loaded vocabulary"]
R --> K["Side table<br/>natural key, surrogate id, watermark"]
K --> W["binary COPY<br/>one composition, all or nothing"]
W --> DB[("OMOP CDM v5.4")]
W --> REP["Run report<br/>rows, concept 0, refusals"]
Generated and hand-written
Two models are generated, because both are published in machine-readable form
and a hand-transcribed copy drifts from its source with no way to detect it.
The FHIR model, the fhir-types crate, is emitted by fhir-codegen from the
HL7 FHIR packages; it moves into this repository from the sibling terminology
server, which then consumes it from crates.io. The OMOP CDM v5.4 row types are
emitted from the OHDSI CommonDataModel field definitions, with the OHDSI
PostgreSQL DDL vendored verbatim beside them. The openEHR model, and the
ITS-REST client the bridge calls the CDR through, come from the published
openehr-* crates. Everything that makes FerroBRIDGE a bridge is
hand-written: the mapping foundation, both mapping languages’ types, validators
and interpreters, the FHIR path model, the terminology client, the facade, and
the ETL runner.
Where the specifications are silent
FerroBRIDGE labels its own decisions as its own, in the code and in these pages. The FHIRconnect engine chapter is explicitly a set of recommendations, and no specification governs FHIR search, identity, extension ordering, or failure policy. Each of those is pinned as a FerroBRIDGE decision on the failure and identity page and in the architecture document.
The two mapping specifications
FerroBRIDGE reads two mapping languages. Both describe how openEHR content relates to something else, both are YAML, and both are published by the same author. Knowing where they agree tells you what the bridge can share; knowing where they differ tells you why it keeps two interpreters.
What they share
One header. grammar, type, metadata.name and metadata.version, spec,
and spec.openEhrConfig pinning the archetype and its revision. The FHIRconnect
header page states that the header “is standardized for both FHIRconnect and
OMOCL”.
Below the header they also share:
- RM and archetype paths, with
../navigation. - Archetype-keyed model files.
- An include mechanism:
slotArchetypein FHIRconnect,Includein OMOCL. - An escape hatch to code outside the mapping:
mappingCodein FHIRconnect,CustomMappingin OMOCL. - A code-translation concept:
conceptmapin FHIRconnect,conceptMapin OMOCL.
Nothing else is common.
FHIRconnect
FHIRconnect v1.0.0 is bidirectional. A mapping is a tree of entries, each
pairing a FHIR path with an openEHR path through with, typed from the
instances. followedBy nests entries and concatenates their paths onto the
parent’s. Conditions are AND-combined and apply to the input side only.
manual supplies literals, reference points at another resource, hierarchy
realigns a tree, and unidirectional marks an entry that runs in one direction
only.
There are three file types, and they compose in a fixed order:
| File type | What it carries |
|---|---|
model | an archetype mapped to an unprofiled resource, the shared layer |
extension | profile and template adaptation, executed after the model |
context | the entry point: the profile, the template, the archetypes, the extensions, and start |
Two JSON schemas are published, model-mapping.schema.json and
contextual-mapping.schema.json, both draft-07. They are the validation oracle,
and FerroBRIDGE validates every mapping against them before it runs anything.
The specification is at
https://sevkohler.github.io/FHIRconnect-spec/build/site/FHIRconnect/v1.0.0/index.html.
OMOCL
OMOCL v1.0.0 is one-directional, openEHR to OMOP, by construction. A mapping is
a flat list of records, each keyed by a CDM target such as Measurement,
ConditionOccurrence, or Person. Inside a record, the keys are CDM column
names, and each takes an ordered list of alternatives: an RM path, or a
literal code holding an OMOP concept_id. The value 0 is the CDM’s “no
matching concept”. Records also carry optional, inline conceptMap tables,
Include, and CustomMapping. The published files use YAML anchors and
aliases, so the loader has to resolve them.
OMOCL publishes no JSON schema. Its grammar comes as a railroad diagram and syntax tables, and its lexer and parser are marked work in progress. FerroBRIDGE authors a JSON schema from the grammar tables and the published mapping library, validates every OMOCL file against it, and offers that schema upstream. The specification is at https://github.com/SevKohler/OMOCL.
What this means for the bridge
The shared header, the path model, the include mechanism, and the YAML loader live in one foundation crate. Everything above them is per language, because a tree of bidirectional FHIR path pairs and a flat list of CDM column alternatives have no useful common form. That split is the first decision in the architecture.
Pinned versions
Every version FerroBRIDGE targets is pinned in one place,
docs/VERSIONS.md,
and a committed guard (scripts/checks/versions.sh) fails when any file that
repeats a pin disagrees with it. This page is the reader’s copy of the
specification pins and the reason each one is what it is.
The specification pins
| Component | Pin | Why |
|---|---|---|
| FHIRconnect | v1.0.0 | the only released version; its two published JSON schemas are vendored and exercised, and FerroBRIDGE adds a strict schema of its own because the published ones reject three of the specification’s own mapping types |
| FHIR | R4 (4.0.1) | the only value the FHIRconnect schemas admit for spec.version, and what the published mapping library targets |
| OMOCL | v1.0.0 | the only released grammar (grammar: OMOCL/v1.0.0); the corpus is pinned by commit, because the git tag v1.0.0 carries files that predate the grammar |
| OMOP CDM | v5.4 | the only version the published OMOCL files declare |
| openEHR ITS-REST | 1.1.0 | the released REST API a conformant CDR speaks |
The FHIRconnect prose says other FHIR releases should work, and nothing tests that claim, so FerroBRIDGE does not make it. A later FHIR release is feature-gated in the model crate and claimed once a mapping corpus proves it.
Terminology operations
The FHIR terminology client speaks CodeSystem/$lookup,
ConceptMap/$translate, ValueSet/$validate-code, ValueSet/$expand and
CodeSystem/$subsumes, and tolerates a server answering R4 or R4B. The terminology server is configured, never assumed. OMOP
concept resolution does not go through it at all; it is SQL over the loaded
OHDSI vocabulary.
The two model crates
The FHIR model is the fhir-types crate, generated in this repository from the
HL7 FHIR packages (STU3 3.0.2, R4 4.0.1, R4B 4.3.0, R5 5.0.0, R6 6.0.0-ballot5,
THO 7.5.0)
and published to crates.io; its version line continues the one the sibling
project published up to 0.1.97 before the crate moved here, and the current
pin is the fhir-types row of docs/VERSIONS.md. The openEHR model comes
from seven published crates, pinned together on their 0.0 minor line (0.0.69
today; the pin matrix is the authority):
| Crate | Used for |
|---|---|
openehr-base | the RM foundation types, including partial dates |
openehr-rm | the RM 1.1.0 model, its canonical JSON codec, the path parser |
openehr-its | the OPT 1.4 codec, the canonical JSON codec, the ITS-REST data types |
openehr-sdt | the Web Template builder, the FLAT and STRUCTURED codecs, the composition builder, the RM-instance validation |
openehr-query | the AQL 1.1.0 parser and printer |
openehr-am | the AOM2 types an ADL 2 template decodes into |
openehr-adl | test only: compiles the ADL 2 fixtures from their .adls sources |
Language and toolchain
The Rust toolchain, edition, resolver, and MSRV are pinned in the matrix and
adopted by the workspace when it lands. The documentation toolchain is pinned
too: mdbook, mdbook-toc, and mdbook-mermaid all carry an exact version in
the matrix and in the composite action that installs them, so this book renders
the same way in CI as it does on a laptop.
EHDS readiness
Legal status
The European Health Data Space regulation, Regulation (EU) 2025/327 (https://eur-lex.europa.eu/eli/reg/2025/327/oj), names six priority categories of personal electronic health data in Article 14(1). It requires them in the European electronic health record exchange format (Article 15), whose technical specifications the Commission lays down by implementing act. That implementing act has not been adopted. No profile version is legally pinned, and nothing on this page is a conformance claim.
The HL7 Europe implementation guides are the current proxy for the exchange format, and FerroBRIDGE targets them on FHIR R4. When the implementing act is adopted, the targets below are re-read against it.
This page is the FHIR facade’s mapping matrix. The European interoperability
software component an EHR system carries under Art 25(1), with its dataset
model, its category crosswalks and the receipt of a document, is the
eehrxf crate (The interoperability component).
The matrix
Each row is a target profile with the committed template it maps from and the
round-trip test that proves the transform. A test generates the matrix from
docs/ehds/readiness.toml and fails when a template, a context or a test it
names is gone. “Produced, not claimed” means the resource is built but does not
name the profile in meta.profile. A gap means the openEHR international CKM
publishes no template for the category.
Article 14(1)(a): Patient summaries
HL7 Europe Patient Summary 1.0.0-ballot is pinned for the profile validator; no context maps its Composition yet. The Base and Core profiles below are its building blocks.
| Target profile | Package | Committed template | Transform proven |
|---|---|---|---|
patient-eu-core | hl7.fhir.eu.base 2.0.0 | KDS_Person | the_profile_elements_of_patient_eu_core_survive_the_round_trip |
condition-eu-core | hl7.fhir.eu.base 2.0.0 | KDS_Diagnose | the_profile_elements_of_condition_eu_core_survive_the_round_trip |
medicalTestResult-eu-core | hl7.fhir.eu.base 2.0.0 | KDS_Laborbericht | the_profile_elements_of_the_test_result_survive_the_round_trip |
Patient summary Composition | hl7.fhir.eu.eps 1.0.0-ballot | none: no patient summary template in the openEHR international CKM | no |
Article 14(1)(b): Electronic prescriptions
| Target profile | Package | Committed template | Transform proven |
|---|---|---|---|
MedicationRequest-eu-mpd | hl7.fhir.eu.mpd 1.0.0 | FerroBRIDGE medication template over CKM archetypes | the_profile_elements_of_the_prescription_survive_the_round_trip |
Medication-eu-mpd | hl7.fhir.eu.mpd 1.0.0 | FerroBRIDGE medication template over CKM archetypes | the_product_of_the_prescription_survives_the_round_trip |
Dosage-eu-mpd (produced, not claimed) | hl7.fhir.eu.mpd 1.0.0 | FerroBRIDGE medication template over CKM archetypes | the_dosage_of_the_prescription_survives_the_round_trip |
Article 14(1)(c): Electronic dispensations
The openEHR international CKM publishes no dispensation template; the template is FerroBRIDGE’s, over published CKM archetypes only (owner ruling on #116).
| Target profile | Package | Committed template | Transform proven |
|---|---|---|---|
MedicationDispense-eu-mpd | hl7.fhir.eu.mpd 1.0.0 | FerroBRIDGE medication template over CKM archetypes | the_profile_elements_of_the_dispense_survive_the_round_trip |
Article 14(1)(d): Medical imaging studies and related reports
The openEHR international CKM publishes no imaging report template; the template is FerroBRIDGE’s, over published CKM archetypes only (owner ruling on #116, 2026-11-06). The CompositionEuImaging is assembled by eehrxf::document around the mapped report.
| Target profile | Package | Committed template | Transform proven |
|---|---|---|---|
DiagnosticReportEuImaging | hl7.fhir.eu.imaging 1.0.0-ballot | FerroBRIDGE imaging report template over CKM archetypes | the_report_mapped_back_out_is_a_document_the_profiles_constrain |
ImagingStudyEuImaging | hl7.fhir.eu.imaging 1.0.0-ballot | FerroBRIDGE imaging report template over CKM archetypes | the_report_mapped_back_out_is_a_document_the_profiles_constrain |
Article 14(1)(e): Medical test results, laboratory results and related reports
| Target profile | Package | Committed template | Transform proven |
|---|---|---|---|
DiagnosticReport-eu-lab | hl7.fhir.eu.laboratory 2.0.0 | KDS_Laborbericht | the_profile_elements_of_the_laboratory_report_survive_the_round_trip |
Observation-resultslab-eu-lab | hl7.fhir.eu.laboratory 2.0.0 | KDS_Laborbericht | the_profile_elements_of_the_laboratory_result_survive_the_round_trip |
Specimen-eu-lab | hl7.fhir.eu.laboratory 2.0.0 | KDS_Laborbericht | the_profile_elements_of_the_laboratory_specimen_survive_the_round_trip |
Composition-eu-lab | hl7.fhir.eu.laboratory 2.0.0 | KDS_Laborbericht | the_profile_elements_of_the_document_composition_survive_the_round_trip |
Bundle-eu-lab (produced, not claimed); assembled by the facade’s Composition/$document, proven on a synthetic Composition context; the claimed document is the interoperability component’s (eehrxf) laboratory document | hl7.fhir.eu.laboratory 2.0.0 | KDS_Laborbericht | the_document_is_the_composition_and_every_resource_it_creates |
Article 14(1)(f): Discharge reports
HL7 Europe Hospital Discharge Report 1.0.0 (R4, 2026-10-16) is pinned, and the interoperability component (eehrxf) maps it over FerroBRIDGE’s discharge report template, a transfer of care summary over published CKM archetypes (owner ruling on #116, 2026-11-06), because the openEHR international CKM publishes no discharge report template.
| Target profile | Package | Committed template | Transform proven |
|---|---|---|---|
composition-eu-hdr; the document assembly of the interoperability component writes the bundle-eu-hdr and its Composition from the sections the context maps | hl7.fhir.eu.hdr 1.0.0 | FerroBRIDGE discharge report template over CKM archetypes | the_profile_elements_of_the_discharge_report_survive_the_round_trip |
encounter-eu-hdr | hl7.fhir.eu.hdr 1.0.0 | FerroBRIDGE discharge report template over CKM archetypes | the_profile_elements_of_the_discharge_report_survive_the_round_trip |
condition-eu-core (diagnostic summary) | hl7.fhir.eu.base 2.0.1 | FerroBRIDGE discharge report template over CKM archetypes | the_profile_elements_of_the_discharge_report_survive_the_round_trip |
procedure-eu-core (significant procedures) | hl7.fhir.eu.base 2.0.1 | FerroBRIDGE discharge report template over CKM archetypes | every_section_of_the_report_survives_the_round_trip |
medicationRequest-eu-core (discharge medications) | hl7.fhir.eu.base 2.0.1 | FerroBRIDGE discharge report template over CKM archetypes | every_section_of_the_report_survives_the_round_trip |
The interoperability component
Regulation (EU) 2025/327, the European Health Data Space regulation (https://eur-lex.europa.eu/eli/reg/2025/327/oj), defines the European interoperability software component for EHR systems as “a software component of the EHR system which provides and receives personal electronic health data under a priority category … in the European electronic health record exchange format” (Art 2(2)(n)). An EHR system that claims compliance carries one (Art 25(1)), and Annex II, points 2.1 to 2.3, says what it must provide and receive.
FerroBRIDGE ships that component as the Rust crate
eehrxf, published from this repository
on the crate line (Crate versions). An EHR
system or a gateway in front of several of them links the crate and serves
the documents it builds on its own FHIR face; the crate holds no route, no
store and no access record of its own.
Nothing on this page is a conformance claim. The Commission has not adopted the implementing act that lays down the exchange format (Art 15(1)), so the crate is built against its published proxies, listed under The pinned proxies, and is read again against the act when it is adopted.
- What the crate holds
- The profile checks
- The definitions it publishes
- The pinned proxies
- Where it stands
What the crate holds
The crate has one Cargo feature per priority category of Art 14(1) and one per serialisation, and no default feature:
| Feature | What it adds |
|---|---|
patient-summary, prescription, dispensation, imaging, laboratory, discharge | the category of Art 14(1)(a) to (f): its Xt-EHR logical model, its obligations profile and its crosswalk to the HL7 Europe profiles |
fhir-r4 | the exchange format in FHIR R4: the patient summary document, the prescription and dispensation records, a received document read and checked, the terminology rules and the record of each transformation; it compiles no openEHR crate |
openehr | turns on fhir-r4, and maps openEHR compositions to the exchange format and back through FHIRconnect 1.0.0 contexts run in process by the fhirconnect crate |
Without a feature the crate is the format-neutral dataset model: dataset
reads the Xt-EHR EHDS Logical Information Models package as data, every
logical model on its canonical URL and every element on its element path,
with what the obligations profiles ask of a producer and a consumer. No
element is a Rust type of its own, so a new release of the models is a new
package, never new code.
The crate authors no mapping language and no profile mapping: FHIRconnect files are its input. It depends on no logging component and on no application, so it and the European logging component stay independent of each other, as Art 2(2)(n) and (o) define them. The Rust documentation is on docs.rs.
The profile checks
The crate holds what it reads and what it writes to the pinned profiles in four ways:
- The crosswalks: a test per category holds every row to the packages it names, and fails when an element a producer must populate has no row, when a row names an element or slice the profile lacks, or when a row’s obligation differs from the obligations profile (The category crosswalks).
- The structural check of a received document:
ReceivedDocument::checkwalks the document’sBundleandCompositionprofiles: cardinalities,fixed[x]andpattern[x]values and slices, with every constraint it cannot evaluate listed (The structural check). - The full validation of a received document:
ReceivedDocument::validatehands the document toferrobridge-validator, this repository’s FHIR R4 profile validator, over the category’sBundleprofile and its whole dependency closure (Full validation). - HL7’s FHIR Validator over the documents it writes: the suites that
write a patient summary or a laboratory report document and hold it to the
profiles also write it to the directory
EEHRXF_EMIT_DIRnames, and so does the suite that maps a prescription and a dispensation to their MPD resources. The CIfhir-validatorjob runs HL7’s FHIR Validator over every one of them, offline, againsthl7.fhir.eu.eps1.0.0-ballot,hl7.fhir.eu.base2.0.1,hl7.fhir.eu.laboratory2.0.0,hl7.fhir.eu.mpd1.0.0, the remaining-dispensations extension and the MyHealth@EU Master Value Sets Catalogue, with the jar and every package pinned by sha256 indocs/VERSIONS.md. It fails on an error, a fatal issue or a claimed profile the validator could not find. Its results, each document with the validator’s outcome and a summary, are theeehrxf-fhir-validationartifact of the run. They are the evidence for the documents the component writes.
The definitions it publishes
The component writes two things no specification defines, and FerroBRIDGE publishes both under its own domain:
- The archetype-local code systems: an archetype’s local codes are
written under
https://ferrobridge.eu/fhir/CodeSystem/archetype-local/followed by the archetype id, one code system per archetype. The page at that base describes them. - The remaining-dispensations extension: the number of dispensations a
prescription item has left travels in
https://ferrobridge.eu/fhir/StructureDefinition/remaining-dispensationsonMedicationRequest.dispenseRequest, as avalueUnsignedInt. The site serves itsStructureDefinitionat that URL, and at the same URL with.json.
The pinned proxies
Each proxy is vendored by scripts/vendor/eehrxf.sh as the archive its
publisher serves, pinned by URL and sha256 in docs/VERSIONS.md, and read by
the crate’s tests:
| Proxy | Version | What the crate reads it for |
|---|---|---|
Xt-EHR EHDS Logical Information Models (xtehr.eu.ehds.models) | 1.0.0 | the dataset model of every category |
HL7 Europe Patient Summary (hl7.fhir.eu.eps) | 1.0.0-ballot | the patient summary document and its crosswalk |
HL7 Europe Base and Core (hl7.fhir.eu.base) | 2.0.1 | the core profiles a patient summary section claims |
HL7 Europe Medication Prescription and Dispense (hl7.fhir.eu.mpd) | 1.0.0 | the prescription and dispensation records |
HL7 Europe Laboratory Report (hl7.fhir.eu.laboratory) | 2.0.0 | the laboratory report crosswalk and document |
HL7 Europe Imaging Report (hl7.fhir.eu.imaging) | 1.0.0-ballot | the imaging report and imaging study crosswalks |
HL7 Europe Hospital Discharge Report (hl7.fhir.eu.hdr) | 1.0.0 | the discharge report crosswalk and document |
MyHealth@EU Master Value Sets Catalogue (myhealth.eu.fhir.mvc-package) | 9.1.0 | the preferred system of each terminology |
Where it stands
The patient summary is the most complete category: the crosswalk, the
document Bundle, its mapping from openEHR, the terminology rules and the
receipt are built. The prescription and dispensation records are read and
written in the MPD form, and mapped from and into openEHR
through FerroBRIDGE’s MPD contexts. The laboratory report is
mapped from and into openEHR through the shipped
laboratory project and received as a Bundle-eu-lab. The imaging report is
mapped from and into openEHR through the shipped
imaging project, over FerroBRIDGE’s template of published CKM archetypes,
and received as a BundleReportEuImaging. The discharge report is
mapped from and into openEHR through the shipped
HDR project over FerroBRIDGE’s discharge report template and received as a
bundle-eu-hdr. The open
work is on the tracker.
The profiles this repository’s own FHIR facade maps to, category by category,
are on EHDS readiness.
The category crosswalks
For each priority category of Regulation (EU) 2025/327 Art 14(1), the
interoperability component keeps a
crosswalk: the eHealth Network dataset, the Xt-EHR logical model and the HL7
Europe profiles, element by element, held to the vendored packages by a
test. The crosswalks are data in eehrxf::crosswalk, keyed on the Xt-EHR
element path, and Category::crosswalks names a category’s crosswalks, one
per dataset. Crosswalk::check holds the rows of one crosswalk to the
packages they name.
- The patient summary crosswalk
- The medication crosswalks
- The discharge report crosswalk
- The laboratory report crosswalk
- The imaging crosswalks
The patient summary crosswalk
The eHealth Network Guidelines on Patient Summary (Release 3.4, §4), the
Xt-EHR EHDSPatientSummary logical model and the HL7 Europe Patient Summary
composition (hl7.fhir.eu.eps 1.0.0-ballot) describe one dataset three
ways. The crosswalk, under the patient-summary feature, names in each row:
- the eHealth Network element ids, such as
A.2.1.1for allergies; - the obligation the Xt-EHR obligations profile puts on a producer;
- the element or slice of the EPS composition that carries it, such as
Composition.section:sectionAllergies.entry:allergyOrIntolerance; - the profiles a FHIRconnect context may map to in order to feed it. The header, each section’s narrative, its empty reason and its note have none, because the document is assembled around them.
Every section of the model has a row, and so does every header element a
producer must be able to populate. A test fails when an element a producer
SHALL:able-to-populate has no row, when a row names a slice the pinned EPS
profile lacks, or when one of the five required EPS sections (problems,
allergies, medications, procedures, devices) is uncovered. Two EPS sections
have no counterpart in the model and no row: vital signs and the general
patient history. The presented form, a rendering of the whole summary, has
no element in the EPS composition.
Two elements have a row and no openEHR content named to feed them, so a product that writes the summary decides how it states them: the medical alert (A.2.1.2), which a producer must be able to populate, and the functional status (A.2.3.4).
The openEHR sources of the medication summary and the immunisations
The crosswalk also names the openEHR content that feeds two entry rows, in
SOURCES, each with the template section that holds it. Both are sections
of the openEHR International Patient Summary template:
| Entry row | Archetype | Template section |
|---|---|---|
EHDSPatientSummary.medicationSummary.medicationUse | openEHR-EHR-INSTRUCTION.medication_order.v3 | IPS Medication Summary |
EHDSPatientSummary.medicationSummary.medicationUse | openEHR-EHR-ACTION.medication.v1 | IPS Medication Summary |
EHDSPatientSummary.immunisations.immunisation | openEHR-EHR-ACTION.medication.v1 | IPS Immunizations |
The template section is the placement criterion. A CDR often keeps the current medication list as medication orders, and it may record a medicine the patient takes as a medication action, so the medication summary takes both. The same medication action in the immunisations section is a vaccine. No entry is placed by reading its content. A test holds each source to the vendored template.
The shipped eps mapping project has one root context,
ferrobridge_eu_eps.context. It maps the composition and enters each
section through the sub-context its section path names, as FHIRconnect’s
sub-contexts do. Each sub-context writes its section and that section’s
entries:
ferrobridge_eu_eps_medication.contextmaps each order and each action of the medication summary section to aMedicationStatement-eu-eps. An order’s status isunknown, because no published crosswalk pairs an order with a statement status, and the template leaves out the order details, so its period carries the data absent reasonunknown. An action’s status follows its instruction state where R4 has a matching code (active, on-hold, stopped, completed) and isunknownotherwise. Its time is the statement’seffectiveDateTime.ferrobridge_eu_eps_immunization.contextmaps each action of the immunisations section at the careflow step “Dose administered” to acompletedimmunization-eu-core, and each action at “Dose administration aborted” to anot-doneone. An action at “Medication double checked” records no administration, so the mapping writes noImmunizationfor it.
A document takes the run’s sections with
Document::with_mapped_composition. A test runs the project over
compositions that hold a medicine as an order or an action, and a vaccine,
and checks that each lands in its own section. HL7’s FHIR Validator checks
that document in the fhir-validator job.
The medication crosswalks
The electronic prescription (Art 14(1)(b), feature prescription) and the
electronic dispensation (Art 14(1)(c), feature dispensation) are
crosswalked from the Xt-EHR EHDSMedicationPrescription and
EHDSMedicationDispense models to the HL7 Europe Medication Prescription
and Dispense profiles (hl7.fhir.eu.mpd 1.0.0), MedicationRequest-eu-mpd
and MedicationDispense-eu-mpd. The medication module reads and writes the
two datasets as Rust records against those profiles.
The discharge report crosswalk
The discharge report (Art 14(1)(f), feature discharge) is described three
ways as well: the eHealth Network Guideline on Hospital Discharge Report
(Release 1.1, §4), the Xt-EHR EHDSDischargeReport logical model and the
HL7 Europe Hospital Discharge Report composition (hl7.fhir.eu.hdr 1.0.0).
A test fails when an element a producer must or should be able to populate
has no row, when a row names an element the HDR composition lacks or a
profile its section entries do not target, or when a row’s producer
obligation differs from the Xt-EHR obligations profile.
The encounter is the composition’s encounter, which the HDR profile
requires, so it has no section. The model’s devices and procedures of the
patient history sit in the HDR sections for devices and past procedures,
and its presented form in the attachments section.
The laboratory report crosswalk
Test results (Art 14(1)(e), feature laboratory) are crosswalked the same
way: the eHealth Network Guideline on Laboratory Results (Release 1.1, §4),
the Xt-EHR EHDSLaboratoryReport logical model and the HL7 Europe
Laboratory Report profiles (hl7.fhir.eu.laboratory 2.0.0). A laboratory
report keeps its header in the composition and its body in the
DiagnosticReport the composition names, so the crosswalk names elements of
both and Crosswalk::check_with checks it against both: the orders and their
supporting information sit in the ServiceRequest the report is based on,
the specimens in specimen, and the results in result, each an
Observation-resultslab-eu-lab.
The imaging crosswalks
Imaging (Art 14(1)(d), feature imaging) names two things, the imaging
studies and the imaging reports, and the Xt-EHR package models each on its
own, so the crate carries two crosswalks. The imaging report crosswalk keys
on EHDSImagingReport and names the elements of the HL7 Europe Imaging
Report composition and the DiagnosticReport it names (hl7.fhir.eu.imaging
1.0.0-ballot); the imaging study crosswalk keys on EHDSImagingStudy and
names the elements of its ImagingStudy profile. Both name the element ids
of the eHealth Network Guideline on Medical imaging studies and reports
(Release 1.1): those of the report data set (§4.1) and those of the imaging
study manifest (§4.2). The four sections the composition requires (the
imaging study, the order, the history and the procedure) each have a row, as
does the study’s DICOM Study Instance UID, the identifier the ImagingStudy
profile requires.
Receiving a document
Regulation (EU) 2025/327 asks an EHR system that stores, intermediates or
gives access to health data to “be able to receive personal electronic health
data in the European electronic health record exchange format, by means of
the European interoperability software component” (Annex II, points 2.2 and
2.3). The interoperability component,
eehrxf, reads a received document, checks it against its profiles and maps
it into openEHR, under its fhir-r4 feature and, for the mapping, openehr.
Where the composition is written, who may write it and what is recorded of
the receipt belong to the system that links the crate.
- What the component accepts
- The structural check
- Full validation
- Mapped into openEHR, with the original kept
- Information a person inserted
What the component accepts
A received document is a FHIR R4 Bundle in JSON. ReceivedDocument::read
reads it in this order and refuses it at the first rule it breaks:
- An object that repeats a name is refused before anything reads the text, because two JSON readers may keep different values for it (RFC 8259, §4).
- The text is decoded against the R4 definitions of
Bundleand of every resource it carries. An unknown property, a value of the wrong type, anullor an empty object or array, and an invalid primitive are refused, with the element path where they were found, and so is a resource of a type R4 does not define, anywhere in the document. The decoded document must encode back to the JSON it was read from. Every later rule, the profile checks and the mapping read that one decoded document. - The
Bundleis adocument, and meets the R4 rules for one: anidentifierwith a system and a value (bdl-9), atimestamp(bdl-10),fullUrls given once (bdl-7), none version specific (bdl-8), each REST-style one ending with its resource’s type and id, and aCompositionas its first entry (bdl-11). - The
Composition.subjectnames onePatiententry of the sameBundle, by itsfullUrl, or by a relativePatient/<id>resolved against the server base of the composition’s ownfullUrl. Every reference in the document is found by its R4 type, at any depth: in backbone elements, contained resources and extensions, and resolved by one resolver,receive::reference::resolve, which answers exactly one entry or a typed refusal. It reads a reference and afullUrlin one canonical spelling only: a relativeType/id, anhttporhttpsURL with a lower-case host,urn:uuid:with a lower-case UUID,urn:oid:, a_historyversion matched on the entry’smeta.versionId, and a#idinto the resource’s owncontained. Whitespace, a query string, percent-encoding, a trailing or doubled slash, a dot segment and a resource type in another case are refused, so no reader can take one of them for an entry the resolver would not. Atypeor anidentifierbeside the reference must agree with its target. Asubject,patient,beneficiaryorformust name that same entry by reference. Any other reference may name it, an entry of another type, a contained resource by#id, or a resource outside the document whose path names a type other thanPatient; one that could name another patient (a path or atypethat saysPatient, or a URN no entry carries) is refused, and so is atypethat disagrees with the reference’s target. A secondPatiententry and a containedPatientare refused, and so is an element the R4 element table does not describe. A document is registered under the identification data of the one person it is about (Art 13(3)), so a document that could be read as about two is refused whole.
The document’s text is kept byte for byte. No refusal quotes a value of the
document, so a patient identifier never reaches an error message or a log
line through one. ReceivedDocument::category names the priority category
whose document profile fixes a Composition.type coding of the document,
or a Composition.category coding where the profile leaves the type open
(Category::document_category), and Category::profiles the profiles a
document of that category is held to. Four categories are received: a patient summary held to
bundle-eu-eps and composition-eu-eps, a laboratory report held to
Bundle-eu-lab and Composition-eu-lab, and a discharge report, whose
composition-eu-hdr fixes Composition.type to LOINC 34105-7, held to
bundle-eu-hdr and composition-eu-hdr of HL7 Europe Hospital Discharge
Report 1.0.0. Every document example the HDR package publishes is read and
passes the structural check below. An imaging report is named by the
Medical-Imaging coding of Composition.category, which
CompositionEuImaging requires while it binds Composition.type at
strength preferred only, and is held to BundleReportEuImaging and
CompositionEuImaging of HL7 Europe Imaging Report 1.0.0-ballot; both
document examples of that guide pass the structural check.
The structural check
ReceivedDocument::check walks the Bundle profile and the Composition
profile of the category, read from the vendored package, over the document:
the cardinality of every element in play, the values a fixed[x] or
pattern[x] requires, and slicing, each slice matched by its
discriminators. A finding names its element path and the profile element
it breaks. Every constraint the walk meets and does not evaluate, such as an
invariant or a pattern form the dataset model does not read, is listed as
not evaluated, never passed in silence.
Full validation
ReceivedDocument::validate validates the document against the HL7 Europe
Bundle profile of its category, for a patient summary bundle-eu-eps of
hl7.fhir.eu.eps 1.0.0-ballot, with
ferrobridge-validator, over a
package set that holds the profile and its whole dependency closure. A
discharge report is not validated this way: hl7.fhir.eu.hdr 1.0.0
depends on xtehr.eu.ehds.models 1.0.0, a FHIR R5 package whose own
closure reaches the R5 core package, which an R4 package set cannot hold.
The validation holds the document, at every occurrence of every element in
play, to what
FHIR R4 has a validator check
(validation,
profiling):
- the structure: unknown elements, the JSON shapes, the cardinality per parent, the types a choice may take and the lexical form of every primitive;
- the values a
fixed[x]orpattern[x]requires; - slicing, with all five discriminator kinds,
profileand paths throughresolve()included, ordered slicing, and each slice’s own constraints; - every invariant of the core definitions and of each profile, evaluated as
FHIRPath: the R4
ait-1of anAllergyIntolerance, thecmp-1andcmp-2of a section, theeps-bundle-subject-refof the EPSBundle; - the terminology bindings, a
requiredone as an error and anextensibleone as a warning, read from the value sets the packages carry; - the profile each entry’s slice names, each profile a resource claims in
meta.profile, and the target profiles of every reference; - the content rules R4 gives a document (documents).
An issue of severity error or fatal refuses the document, with every
such issue located by its FHIRPath. Every other issue is a finding the
caller reports as a warning, and every constraint the validator met and did
not evaluate (an invariant whose expression calls a function it cannot
answer, a value set no package carries, a reference outside the document) is
listed, never passed in silence. A binding the packages cannot decide is
asked of the terminology server’s ValueSet/$validate-code when one is
given, and stays listed as not evaluated when none is; a required binding
the server refused or did not answer refuses the receipt, so an upstream
failure never reads as a pass. No message quotes a value of the document.
A coding that carries no display is given one by the terminology server’s
$lookup before the mapping runs, because DV_CODED_TEXT.value is
mandatory in the RM (Data Types IM, DV_CODED_TEXT). With no terminology
server configured, such a document is refused. The copy the mapping reads
carries the looked-up displays; the document as received is unchanged.
Mapped into openEHR, with the original kept
Mapping::to_openehr maps the document into one openEHR composition through
FHIRconnect mapping files, run in process by the fhirconnect engine. The
whole document is the input of FHIRconnect’s $toopenehr, so the context
that maps it is the one whose profile the document’s resources claim, and a
mapping may follow the document’s references into its other entries. A
document no context maps, or one with two resources of the type a context
maps, is refused with the engine’s reason.
The composition keeps the document itself. The openEHR RM lets
FEEDER_AUDIT.original_content carry the original content inline, and puts
one at the composition to establish the equivalence between the whole
composition and the whole document (RM 1.1.0, Common Information Model,
“Original Content”). The component sets it to a DV_PARSABLE holding the
document’s text with the formalism application/fhir+json, beside the
engine’s own audit of the system the content passed through. What the
mapping does not carry into structured content is therefore still in the
record, and what the run declared lost comes back beside the composition as
an OperationOutcome. ReceivedComposition::model is the composition as the
RM model holds it.
Information a person inserted
Art 5 asks that information a person, or their representative of Art 4(2), inserts in the person’s EHR “be clearly distinguishable as having been inserted by the natural person or by his or her representative”. Whether a caller is the person, or a representative acting for them, is decided by the system that authenticates the caller. The component marks the composition when told:
ReceivedComposition::inserted_by_subjectnames the record’s subject as theproviderof every entry, in the composition and in each of its sections, as aPARTY_SELFwith noexternal_ref, so the mark names no identifier of the person. The openEHR RM definesENTRY.provideras “the agent who provided the information”, which “is usually the patient or the clinician” (RM 1.1.0, EHR Information Model, “Entry and its Subclasses”), and refers to the subject of the record with aPARTY_SELF(Common Information Model, “PARTY_SELF and Referring to the Patient from the EHR”).ReceivedComposition::inserted_by_representativenames the representative as theproviderof every entry, aPARTY_IDENTIFIED, which the Common Information Model uses for every party other than the subject of the record (“Referring to Demographic Entities”).
A provider the mapping wrote is replaced, and the document as received stays
in the original content. A composition with no entry, or with a
GENERIC_ENTRY, which has no provider, cannot carry the mark and is refused.
Prescriptions and dispensations from openEHR
The openehr feature maps an openEHR medication order to an electronic
prescription and a medication action to an electronic dispensation, in the
HL7 Europe Medication Prescription and Dispense (MPD) 1.0.0 form, and maps
a received dispensation back into openEHR. Regulation (EU) 2025/327 names
both as priority categories in Art 14(1)(b) and (c).
The mapping
The mapping is FerroBRIDGE’s MPD project of FHIRconnect 1.0.0 files. The crate authors none of it and runs it as its input. The project has two contexts over FerroBRIDGE’s medication template. That template is written in ADL 2 over published CKM archetypes, because the CKM publishes no prescription or dispense template.
| Context | openEHR | MPD profile |
|---|---|---|
ferrobridge_eu_mpd_request.context | INSTRUCTION.medication_order.v3 | MedicationRequest-eu-mpd, with a Medication-eu-mpd and a Dosage-eu-mpd |
ferrobridge_eu_mpd_dispense.context | ACTION.medication.v1 at the careflow step “Prescription dispensed” | MedicationDispense-eu-mpd, with a Medication-eu-mpd |
The order’s authorisation and dispense amount slots hold two CKM clusters, and the request takes these elements from them:
| CKM element | MPD element |
|---|---|
CLUSTER.medication_authorisation.v0 “Maximum number of refills” | dispenseRequest.numberOfRepeatsAllowed |
CLUSTER.medication_authorisation.v0 “Minimum interval between refills” | dispenseRequest.dispenseInterval |
CLUSTER.medication_authorisation.v0 “Number of refills remaining” | the remaining-dispensations extension on dispenseRequest |
CLUSTER.medication_supply_amount.v0 “Amount”, in “Dispense amount” | dispenseRequest.quantity, the amount for one fill |
CLUSTER.medication_supply_amount.v0 “Duration of supply” | dispenseRequest.expectedSupplyDuration |
The CKM “Dispense amount” is the amount of the ordered item to be
dispensed. That matches the R4 dispenseRequest.quantity, the amount for
one fill. It does not match the MPD prescribedQuantity extension, which
is the overall amount whatever the number of repeats. So the prescription
record of the medication module, which keeps only the Xt-EHR elements,
carries no per-fill amount.
Every MedicationRequest the mapping serves carries the status unknown.
The order keeps its status in the CKM order summary cluster, which the
archetype says is “generally used in non-prescription contexts”. No
published crosswalk pairs its order status codes with the R4
medicationrequest-status codes the profile binds. A crosswalk written
here could serve a stopped order as an active one, so the mapping writes
the one code that states what is known.
Mapping out of openEHR
Mapping::compile_template compiles the contexts against the operational
template, an OPT 1.4 or an ADL 2 one. Mapping::to_fhir_with then maps each
committed composition to a FHIR R4 collection Bundle: the request or the
dispense, the product it references, and one Provenance covering them.
The mapped request reads as the Prescription record and the mapped
dispense as the Dispense record, and both conform to the vendored MPD
profiles. mapping::identified names every entry of that Bundle by the fullUrl
{base}/{type}/{id} under the base a system serves its records from, as
R4 asks of every Bundle entry outside a POST. The suite also writes each
named Bundle for HL7’s FHIR Validator, which the CI fhir-validator job runs over them
against hl7.fhir.eu.mpd 1.0.0 and the remaining-dispensations extension
(The profile checks).
Receiving a dispensation
MPD 1.0.0 defines no document profile, and its examples carry prescriptions
and dispenses in collection Bundles. ReceivedResources::read reads one
as strictly as a received document is read, and
refuses a Bundle of any other type. Mapping::resources_to_openehr maps it
into one composition and keeps the collection as received in the
composition’s FEEDER_AUDIT.original_content.
ReceivedComposition::instructed_by names the order the dispense carries
out in the ACTION’s instruction_details. That value is a LOCATABLE_REF
to the order’s versioned composition, which the caller resolves. The system
that serves the category commits the composition at the member that owns
the prescription.
Laboratory reports from openEHR
The openehr and laboratory features map an openEHR laboratory report to
the HL7 Europe Laboratory Report 2.0.0 document, and map a received
laboratory report document into openEHR. Regulation (EU) 2025/327 names
medical test results, laboratory results included, as a priority category
in Art 14(1)(e).
The shipped mappings
The crate ships the FHIRconnect 1.0.0 projects it runs under mappings/ in
its package, and eehrxf::mappings embeds them as text. MPD is the
prescription and dispensation project.
LABORATORY is the laboratory project over the published KDS_Laborbericht
template, whose laboratory result, analyte and specimen archetypes are
CKM’s. Mapping::compile_project compiles a project from its embedded
text with no file written, and Project::write_to writes a project’s files
where a system keeps its mappings, the paths Mapping::compile takes. FerroBRIDGE’s own
round-trip tests read the same directories, so a system that depends on the
published crate runs the files those tests prove.
| Context | openEHR | Laboratory Report profile |
|---|---|---|
ferrobridge_eu_laboratory.context | OBSERVATION.laboratory_test_result.v1 | DiagnosticReport-eu-lab, with an Observation-resultslab-eu-lab per analyte and a Specimen-eu-lab per specimen |
ferrobridge_eu_lab_composition.context | COMPOSITION.report-result.v1 | Composition-eu-lab, whose section references the report |
LABORATORY compiles the report context. The composition context maps the
same template, so a mapping compiles it on its own.
Mapping out of openEHR
Mapping::to_fhir_with maps a committed composition to a FHIR R4
collection Bundle: the report, its results and specimens, and one
Provenance covering them. Document::with_mapped_report takes that Bundle
into a laboratory report document: the report becomes the
DiagnosticReport-eu-lab the Bundle-eu-lab holds beside its composition,
the results, the specimens and the Provenance become entries, and the
method answers the fullUrl of each result for the section that lists
them. The document’s Composition is the system’s own, as for every form
of the component; the caller chooses the section by the study type of the
report, one of the LAB_SLOTS.
Each result is an Observation-resultslab-eu-lab, which requires an
effective[x] and a performer. The result takes the time of its
laboratory test result’s event. KDS_Laborbericht holds no party for the
performing laboratory, so the mapping writes performer absent: a
Reference carrying only the FHIR R4 data-absent-reason extension with
the code unknown. The run declares that element as a loss in its
OperationOutcome, so the gap stays visible. A template that carries the
performing laboratory as a party would let the mapping write the real
performer and remove the absent one.
Receiving a laboratory report
ReceivedDocument::category names a document whose Composition.type
carries LOINC 11502-2 a laboratory report. Composition-eu-lab binds
Composition.type to the lab-reportType-eu-lab value set, which holds
that one code. Category::profiles then names Bundle-eu-lab and
Composition-eu-lab, which ReceivedDocument::check holds the document
to. Mapping::to_openehr maps the document’s report into one
KDS_Laborbericht composition and keeps the document as received in the
composition’s FEEDER_AUDIT.original_content.
KDS_Laborbericht holds one report identifier. A report in a
Bundle-eu-lab carries its own identifier and the document’s
(dr-comp-identifier), so the run keeps one, declares the other lost in
the composition’s OperationOutcome, and the original document still
holds both.
A result’s reference range maps into the normal_range of its quantity,
both bounds with their units, and back out as referenceRange. The range
mapping is appended under analyteMeasurement, the mapping that writes the
analyte value. KDS_Laborbericht allows any number of analyte clusters and
exactly one value element items[at0001] in each, and analyteMeasurement
writes that DV_QUANTITY whole, so the bounds merge into it as its
children. A mapping of its own onto items[at0001] would write a second
value with no magnitude, which the reference model refuses. R4 reads a
range with no type as the normal range, so such a range maps to
normal_range. A range with a type, such as a treatment range, maps to
one element of the quantity’s other_reference_ranges: its type is the
element’s meaning, and its low and high the bounds of the element’s
range. Served out of openEHR, each element of other_reference_ranges
comes back as a referenceRange with that type, after the normal range,
in the order the composition holds them. The
order a report answers maps by its identifier into the template’s test
request details (protocol[at0004]/items[at0094]/items[at0063]), which
KDS_Laborbericht annotates with DiagnosticReport.basedOn, and comes
back as a Reference to a ServiceRequest.
The laboratory project accounts for DiagnosticReport.basedOn,
Observation.basedOn and Observation.referenceRange
(LABORATORY.accounted()). Each received instance of one that the run
carries into no structured element is a warning issue in the
composition’s OperationOutcome, its expression the element’s path: a
range’s text, the order a result answers, or an
order named by reference alone. The original document still holds them.
Imaging reports from openEHR
The openehr and imaging features map an openEHR imaging examination
result to the HL7 Europe Imaging Report 1.0.0-ballot document, and map a
received imaging report document into openEHR. Regulation (EU) 2025/327
names medical imaging studies and related imaging reports as a priority
category in Art 14(1)(d).
The template
The openEHR international CKM publishes no imaging report composition
template, so the component maps over FerroBRIDGE’s own ADL 2 template, as
it does for prescriptions and dispensations. The template uses published CKM
archetypes only and adds no archetype of its own: a
COMPOSITION.report-result.v1 holding one
OBSERVATION.imaging_exam_result.v1. The test suites build the
operational template from it at test time. A system that maps its own
imaging content compiles the project against the template its CDR holds.
The shipped mapping
IMAGING is the imaging project, one of the FHIRconnect 1.0.0 projects the
crate ships under mappings/ and embeds in eehrxf::mappings.
Mapping::compile_project compiles it from its embedded text.
| Context | openEHR | Imaging Report profile |
|---|---|---|
ferrobridge_eu_imaging.context | OBSERVATION.imaging_exam_result.v1 | DiagnosticReportEuImaging, with the ImagingStudyEuImaging it references |
The report takes the event’s time, the study name as its code, the
overall impression as its conclusion, each imaging diagnosis as one
conclusionCode, the report identifier, and the overall result status. The archetype’s status codes are the R4
diagnostic-report-status codes except entered-in-error, which the
archetype does not define. The study takes the study instance identifier,
which ImagingStudyEuImaging requires as a DICOM UID (urn:dicom:uid, an
urn:oid: value), the study status over the R4 imagingstudy-status
codes, and the description.
The archetype holds the modality and the study date in the observation’s
event, and its protocol holds the rest of the study. The study’s reference
sits below the event, so ImagingStudy.modality and ImagingStudy.started
come from the event the report describes, and the identifier, the status
and the description from the protocol outside it, through the $archetype
paths FHIRconnect resolves against the archetype root.
DiagnosticReportEuImaging and the elements of CompositionEuImaging the
project writes have no place for the findings narrative, a structured
finding, a differential diagnosis, the comparison findings, the clinical
summary, a recommendation or a comment. Served out of openEHR, each one the
composition records is a warning issue of the run’s OperationOutcome,
which names its openEHR path.
Mapping out of openEHR
Mapping::to_fhir_with maps a committed composition to a FHIR R4
collection Bundle: the report, the study and one Provenance covering
both. Document::with_mapped_report takes that Bundle into an imaging
report document built on IMAGING_REPORT_FORM: the report becomes the
DiagnosticReportEuImaging the BundleReportEuImaging holds beside its
composition, and the study and the Provenance become entries. The caller
lists the study in the imaging study section and writes the four sections
CompositionEuImaging requires. The document’s assembly writes the two
categories the composition and the report require, LOINC 85430-7 and
Medical-Imaging, and makes the report’s performing organizations the
composition’s Organization authors (dr-comp-author-org).
Receiving an imaging report
CompositionEuImaging binds Composition.type at strength preferred
only, and the guide’s own examples type their reports with LOINC and CPT
codes. ReceivedDocument::category therefore names an imaging report by
the Medical-Imaging coding of Composition.category, which the profile’s
category:imaging slice requires (Category::document_category).
Category::profiles then names BundleReportEuImaging and
CompositionEuImaging, which ReceivedDocument::check holds the document
to. Mapping::to_openehr maps the document’s report into one composition
of the imaging template and keeps the document as received in the
composition’s FEEDER_AUDIT.original_content.
The archetype holds one report identifier. A report in a
BundleReportEuImaging that the assembly wrote carries the document’s
identifier beside its own, so the run keeps one, declares the other lost,
and the original document still holds both.
The guide writes ImagingStudy.basedOn as an accession number by
identifier alone, with no type. FHIR R4 admits such a logical
reference, and ImagingStudy.basedOn names no resource that can be a
patient, so the reader admits it there. An untyped logical reference stays
refused where the element’s target types include Patient, Group or any
resource.
Full validation of a received imaging report by ferrobridge-validator
needs the Imaging Report package and its dependency closure in the
profile package set, which names cross-version packages and version
ranges.
Discharge reports from openEHR
The openehr and discharge features map an openEHR discharge report to
the HL7 Europe Hospital Discharge Report 1.0.0 document, and map a received
discharge report document into openEHR. Regulation (EU) 2025/327 names
discharge reports as a priority category in Art 14(1)(f).
The template
The openEHR international CKM publishes no discharge report template. By
the owner ruling on #116 of 2026-11-06, FerroBRIDGE writes its own ADL 2
template over published CKM archetypes only, as it does for the medication
template, and never a new archetype. The template is
openEHR-EHR-COMPOSITION.ferrobridge_discharge_report.v1.0.0:
| Node | CKM archetype | HDR section |
|---|---|---|
| the composition | COMPOSITION.transfer_summary.v1, whose context is the hospital stay | the Composition and its encounter |
| Diagnostic summary | SECTION.adhoc.v1 holding EVALUATION.problem_diagnosis.v1 | sectionDiagnosticSummary |
| Significant procedures | SECTION.adhoc.v1 holding ACTION.procedure.v1 | sectionSignificantProcedures |
| Discharge medications | SECTION.adhoc.v1 holding INSTRUCTION.medication_order.v3 | sectionDischargeMedications |
The CKM describes the transfer of care summary as a clinical report about “an episode, or period, of care”, conveying “diagnoses, investigation results, management at discharge and plans for follow-up”. The test suites build the operational template from the template and the vendored archetypes at test time.
The shipped mapping
HDR is the project the crate ships under mappings/hdr/, and
eehrxf::mappings embeds it as text. Its one context,
ferrobridge_eu_hdr.context, starts at the composition and maps:
| openEHR | Hospital Discharge Report |
|---|---|
| the composition | composition-eu-hdr, of type LOINC 34105-7 |
the composition’s context/start_time and context/end_time | encounter-eu-hdr, its period |
each EVALUATION.problem_diagnosis.v1 of the diagnostic summary | one condition-eu-core entry of sectionDiagnosticSummary: its code, onset[x], assertedDate extension, severity, abatement[x] from the date of resolution, verificationStatus from the diagnostic certainty, bodySite and note |
each ACTION.procedure.v1 of the significant procedures | one procedure-eu-core entry of sectionSignificantProcedures: its status from the careflow step, code, performed[x] from the action’s time, bodySite, reasonCode, outcome, complication and note |
each INSTRUCTION.medication_order.v3 of the discharge medications | one medicationRequest-eu-core entry of sectionDischargeMedications: its medicationCodeableConcept, one dosageInstruction holding the overall directions as text, the route as route and the order start as timing.repeat.boundsPeriod.start, and note |
The template records neither the status nor the class of the stay, and
encounter-eu-hdr requires both. The mapping writes the status finished
and the class IMP from the v3 ActCode system, a member of the
encounter-class-eu-hdr value set, because a discharge report reports a
finished hospital stay. A procedure commenced is in-progress, one
completed completed and one aborted stopped, the three careflow steps of
the CKM procedure action at which it was performed. An INSTRUCTION records
no request status, so a discharge medication is unknown and an order, as
in the MPD project. A section is written only when the composition holds an
entry for it.
The archetypes code a problem’s severity locally (mild, moderate, severe),
and R4 Condition.severity prefers SNOMED CT, so the local code is served
and a received severity is not read. R4 Condition.verificationStatus
requires condition-ver-status: a suspected or probable diagnosis is served
provisional and a confirmed one confirmed, and a received status is not
read. The profiles have no place for a problem’s clinical description, a
procedure’s method or type, or a medication order’s ACTIVITY.timing, a
DV_PARSABLE no FHIRconnect data-type page pairs with R4 Timing.
Mapping out of openEHR
Mapping::to_fhir_with maps a committed composition to a FHIR R4
collection Bundle: the composition, the encounter, every condition,
procedure and medication request, and one Provenance covering them.
Document::with_mapped_composition takes that Bundle into a discharge
report document. The run’s Composition stays out,
because the document writes its own from the form. The encounter it names
becomes the document’s encounter, every other resource becomes an entry, and
the method answers each section of the run placed in the form’s slot by its
LOINC code, with the fullUrl of each entry. A section whose code names no
slot of the form, or an entry the run does not hold, is refused.
Every archetype element the composition holds that no mapping reads, such
as a clinical description, a method or an order’s timing, is a warning
issue of the run’s OperationOutcome, its details naming the element’s
openEHR path. The document leaves that OperationOutcome out, because R4
documents.html §3.3.1 admits only entries the Composition references, so a
system that serves the report hands the run’s outcome to its reader beside
the document.
composition-eu-hdr requires a discharge summary or a hospital course
section (cmp-hdr-2). Both are narrative sections the document assembly
writes from the paragraphs the system gives it, as the crosswalk records,
so a system adds the hospital course with Document::with_section beside
the mapped sections. ReceivedDocument::validate holds the whole document
to bundle-eu-hdr and to the profile of every entry through
ferrobridge-validator, and the suite validates a mapped report that way.
Receiving a discharge report
ReceivedDocument::category names a document whose Composition.type
carries LOINC 34105-7 a discharge report, and Category::profiles names
bundle-eu-hdr and composition-eu-hdr, which ReceivedDocument::check
holds the document to. Mapping::to_openehr maps the document from its
composition-eu-hdr into one composition of the template, following the
composition’s encounter and the entries of its three sections. The
document as received is kept in the composition’s
FEEDER_AUDIT.original_content.
The composition’s OperationOutcome declares every mapping that runs only
out of openEHR (the fixed type, title, status and date, the encounter’s
status and class, and the claimed profiles) and every composition field the
engine fills: the composer, the setting, the language and the territory.
Nothing the mapping does not carry is passed in silence.
Licensing
FerroBRIDGE is source-available under the Business Source License 1.1, which
is not an OSI-approved open-source licence. The authoritative text is
LICENSE,
with a summary in
NOTICE. This
page states the terms; where it and the licence differ, the licence text wins.
Do you need a commercial licence?
The table is the boundary in the order people ask about it. The Why column
names the part of LICENSE that decides each row.
| What you are doing | What you need | Why |
|---|---|---|
| Reading, building, modifying or redistributing the source | Free | Terms: “the right to copy, modify, create derivative works, redistribute”. |
| Development, testing, evaluation, prototyping | Free | Terms: the right to “make non-production use of the Licensed Work”. |
| Production use for Non-Commercial Purposes | Free | Additional Use Grant: personal use, academic or scientific research, teaching, and use by a non-profit organisation or public body that is not in the course of a business, does not deliver a service for payment, and is not for commercial advantage. |
| A hospital, clinic or care provider running it for its patients | Commercial licence | Additional Use Grant: “the delivery of health care or any other service for payment, requires a commercial license”. |
| A vendor or integrator, or any company running it in production | Commercial licence | Additional Use Grant: production use in the course of a business is outside Non-Commercial Purposes, and “Any other production use” needs a commercial license. |
| Offering it, or a work derived from it, to third parties as a hosted, managed or embedded service | Commercial licence | Additional Use Grant (a): a service “through which anyone other than you and your affiliates maps, converts, or exchanges health data”, excluded whoever you are. |
| Selling, sublicensing or otherwise distributing it for a fee | Commercial licence | Additional Use Grant (b): excluded whoever you are, on its own or as a component of another product. |
The last two rows hold whatever else you are: they need a commercial licence even for an organisation the rows above would otherwise leave free.
Arranging a commercial licence
A commercial licence is arranged with Cadasto B.V., the Licensor, which handles
the business side of FerroBRIDGE: write to
info@cadasto.com or use
https://www.cadasto.com/contact/. Technical questions go to the maintainer
named in
MAINTAINERS.md.
The change date
Each version becomes available under the Apache License 2.0 four years after
that version is published (LICENSE, Change Date and Change License).
The published crates
Two published crates are under the Apache License 2.0 instead of the Business
Source License, because they are generated models meant for any Rust project:
fhir-types and hl7v2-types, each with its own LICENSE. Every other
published crate is BUSL-1.1 on the terms above, which its Cargo.toml
license field and its README state.
There is no open-core tier
The bridge, the server, and the tools are in this repository under the one licence. Nothing is held back to be sold back to you.
Contributions and third-party material
A contribution is licensed under the same licence.
You keep your copyright, and you grant the Licensor the relicensing right in
CONTRIBUTING.md § Licensing of contributions, accepted by opening the pull
request.
Vendored specifications and third-party material keep their upstream terms,
recorded in a PROVENANCE.md beside each vendored tree.
The licensing and trademark terms every FerroHEALTH product shares, the same table for each of them included, are on the family book’s licensing page.
CRA information for users
The Cyber Resilience Act (CRA, Regulation (EU) 2024/2847) has each product “accompanied by the information and instructions to the user set out in Annex II, in paper or electronic form” (CRA Art. 13(18)). This page carries that information for FerroBRIDGE, point by point in the order of Annex II. Each section quotes what the point asks and gives FerroBRIDGE’s answer, or links the page that already gives it.
Annex II opens: “At minimum, the product with digital elements shall be
accompanied by:”. The product is each tagged FerroBRIDGE release, as Cadasto
B.V. publishes it on the
GitHub release page:
the ferrobridge binary for four Linux targets, the
ghcr.io/ferrohealth/ferrobridge container image, the operator console’s
ferrobridge-console binaries and
ghcr.io/ferrohealth/ferrobridge-console image, the quickstart
compose.yaml, and the library crates on crates.io.
- 1. The manufacturer
- 2. The single point of contact for vulnerabilities
- 3. Name, type and unique identification
- 4. Intended purpose, security environment, essential functionalities and security properties
- 5. Circumstances that may lead to significant cybersecurity risks
- 6. The EU declaration of conformity
- 7. Technical security support and the end of the support period
- 8. Detailed instructions
- 9. The software bill of materials
The quotations are from the Official Journal text of the CRA at EUR-Lex. No conformity assessment has been carried out, no EU declaration of conformity exists and FerroBRIDGE carries no CE marking. This page gives the information Annex II lists; it does not say that FerroBRIDGE, or a deployment of it, meets the Regulation.
This book is published from main and is not frozen per release, so the
notes of every release link this one page, and it describes the code on
main. Where a release differs, its changelog section says how.
The information is written in English. Whether that meets CRA Art. 13(18) in every Member State is a question the FerroHEALTH book records for counsel (questions for counsel).
1. The manufacturer
“the name, registered trade name or registered trademark of the manufacturer, and the postal address, the email address or other digital contact as well as, where available, the website at which the manufacturer can be contacted;”
Cadasto B.V. is the manufacturer of every FerroHEALTH product. Write to info@cadasto.com, or use https://www.cadasto.com/contact/. The postal address and the other contact details are in the FerroHEALTH book: the manufacturer.
2. The single point of contact for vulnerabilities
“the single point of contact where information about vulnerabilities of the product with digital elements can be reported and received, and where the manufacturer’s policy on coordinated vulnerability disclosure can be found;”
- Report a vulnerability through
GitHub private vulnerability reporting,
or by email to security@cadasto.com with
“FerroBRIDGE vulnerability” in the subject, as
SECURITY.mdsays. Both routes reach the same people and the same procedure. Do not open a public issue, and never put patient data in a report. - Receive information about vulnerabilities from the GitHub security
advisories of the repository, published with the release that fixes each
one and readable by machine through
GET https://api.github.com/repos/FerroHEALTH/FerroBRIDGE/security-advisories(security advisories). Each release also carriesferrobridge-vX.Y.Z-vulnerability-record.json, every scanner finding in the images and the server tarballs joined with the OpenVEX statement that judges it. - The coordinated vulnerability disclosure policy is the manufacturer’s,
shared by every FerroHEALTH product:
security in the FerroHEALTH
book. The response times FerroBRIDGE commits to are in
SECURITY.md.
3. Name, type and unique identification
“name and type and any additional information enabling the unique identification of the product with digital elements;”
- Name: FerroBRIDGE.
- Type: software. A server that maps clinical data between an openEHR CDR and HL7 FHIR R4 or an OMOP CDM v5.4 database, with its browser operator console.
- Version: the release tag
vX.Y.Z.ferrobridge --versionprints it, and the FHIR facade names it assoftware.versionin theCapabilityStatementatGET /fhir/metadata(version lines and releases). - The artefacts of a version: each release tarball carries a checksum and a signed build provenance, and the images carry the version as their tag and are identified by digest (verifying a release). A library crate carries its own version, independent of the product’s (the crate line).
- Release date: the date on the release’s heading in the changelog.
4. Intended purpose, security environment, essential functionalities and security properties
“the intended purpose of the product with digital elements, including the security environment provided by the manufacturer, as well as the product’s essential functionalities and information about the security properties;”
- Intended purpose and essential functionalities: FerroBRIDGE runs as its own server beside an openEHR CDR it reaches over openEHR ITS-REST 1.1.0. Its FHIR facade serves the CDR’s compositions as FHIR R4 resources and writes FHIR resources into the CDR, driven by FHIRconnect mappings; its OMOP ETL reads compositions over AQL and writes them into an OMOP CDM v5.4 database, driven by OMOCL mappings; its HL7 v2 face writes HL7 v2 messages into the CDR through the facade (introduction; what FerroBRIDGE runs beside).
- Security environment: what FerroBRIDGE relies on and does not provide
itself. The server speaks plain HTTP on its listen address and the HL7 v2
face plain MLLP, so a reverse proxy or the network terminates TLS and
limits who reaches them. An authorization server issues the access tokens
[auth]checks. The CDR, the terminology server and the CDM database are yours, each reached with the credentials you configure. The disks that hold the identity store and the mapping files are yours to protect (the container image; what FerroBRIDGE stores). - Security properties: the ones that ship with every release.
[auth]is on by default: the facade, the FHIRconnect operations and the operator API refuse to start until it names an issuer with itskindand audience, and every request then needs a valid SMART App Launch 2.x access token or the configured Basic credential of a person. A route under/fhirthe guard does not classify is refused with403(the FHIR facade, security).- The request log carries the matched route and never a body, and a query
parameter value reaches it only when you name the parameter
(
[telemetry]). - Every request has a timeout and a body ceiling
(
[server]). - Every secret can be read from a file, so it never shows in the environment (the secrets).
- A CDM connection that could fall back to plaintext without saying so is
refused at load (
[cdm]). - Both images run as a non-root user on a distroless base with no shell, and the quickstart runs them with a read-only root filesystem and every capability dropped (the container image).
- A mapping set is validated when it loads, and
ferrobridge mapping checkruns the same validation before you deploy it (writing and loading mappings).
5. Circumstances that may lead to significant cybersecurity risks
“any known or foreseeable circumstance, related to the use of the product with digital elements in accordance with its intended purpose or under conditions of reasonably foreseeable misuse, which may lead to significant cybersecurity risks;”
The ones to know before you deploy:
[auth] enabled = falseserves the facade and the operations to every caller that reaches them, reads and writes of patient data included. The server logs a warning at start-up when it is off ([auth]).- A published port on every interface. The quickstart binds
127.0.0.1; a port published on0.0.0.0is reachable from the network whatever the host firewall says (running it with compose). - A sender’s client certificate leaking. The HL7 v2 face serves MLLP
over TLS and admits a message only on a connection whose client certificate
carries the
certificate_subjectof the sender its MSH-4 names, so a stolen client key sends as that sender until its authority revokes it. Keep the keys of[[hl7v2.senders]]with the senders (the HL7 v2 face). - A lost or shared identity store. A lost file makes the next create of a resource the CDR already holds write a second composition, and two processes with a file each keep two maps that disagree (the identity store).
- The operator scope rewrites mappings. With
[operator] mapping_dirset, a token that carries[auth] product_scopecan save and reload the mappings that decide what the facade writes into the CDR (the operator API). sslmode=disableon the CDM URL sends the clinical rows the ETL writes in plaintext; use it only on a trusted local network ([cdm]).
6. The EU declaration of conformity
“where applicable, the internet address at which the EU declaration of conformity can be accessed;”
No EU declaration of conformity has been drawn up, so there is no address to give. The obligation applies from 11 December 2027 (CRA Art. 71(2)). The FerroHEALTH book records the conformity route of FerroBRIDGE together with FerroEHR (how conformity is assessed). When the declaration exists, it is published with each release it covers, and this section gives its address.
7. Technical security support and the end of the support period
“the type of technical security support offered by the manufacturer and the end-date of the support period during which users can expect vulnerabilities to be handled and to receive security updates;”
- Only the newest release is supported. When a new release is published, every earlier release stops receiving fixes: there are no maintenance branches, no long-term-support line and no backports. Upgrading is free.
- The end date: Cadasto B.V. keeps publishing security fixes for at least five years after each release (CRA Art. 13(8)) and ships them only in the newest release (Art. 13(10)). The notes of each release state the month and year that commitment ends for it, five years after the date on its changelog heading (Art. 13(19)). A release itself is supported only while it is the newest.
- The type of support: the manufacturer’s, the same for every FerroHEALTH
product (how a fix reaches you),
with FerroBRIDGE’s supported artefacts in
SECURITY.md§ Supported versions.
8. Detailed instructions
“detailed instructions or an internet address referring to such detailed instructions and information on:”
8(a) Secure use from commissioning on
“the necessary measures during initial commissioning and throughout the lifetime of the product with digital elements to ensure its secure use;”
- Commissioning: verify what you downloaded with
gh attestation verify(verifying a release), then install the image or the binary (the container image). Keep the published ports on loopback or a named interface behind a reverse proxy that terminates TLS. Name your authorization server in[auth]before you turn on the facade, the operations or the operator API, and pass every secret through its_filesibling (configuring the server). Put the identity store on a persistent volume and back it up with the CDR (the identity store). Connect to the CDM database withsslmode=verify-full([cdm]). Check the mapping set withferrobridge mapping checkand the deployment with the probes (checking a deployment). - Throughout its lifetime: follow the release feed and the security
advisories, upgrade to each new release, and run
mapping checkon every mapping change before you load it.
8(b) How changes to the product can affect the security of data
“how changes to the product with digital elements can affect the security of data;”
- Configuration.
[auth] enabled = falseremoves the credential check from the facade and the operations. Granting a user of[[auth.basic.users]]scopes in[basic_grants]or adding a subject toscopeless_subjectsgrants access to patient data.[operator] mapping_dirlets an operator-scope token change the mappings.[hl7v2] enabledopens an MLLP listener that writes into the CDR. A name in[telemetry] logged_query_parameterslets that parameter’s value reach the log,[facade.references] fetch_baseslets the facade fetch from the bases it lists, and[facade.cors] allowed_originslets a page on each origin it lists read the facade’s answers in a browser (configuring the server). - Mappings. A mapping decides which data crosses between the CDR and the target, so a changed mapping changes what the facade serves and writes and what the ETL copies into the CDM database.
- Outbound data. The usage report sends what
the usage report lists,
and
FERROBRIDGE__USAGE_REPORT__ENABLED=falsestops it (switch it off). - Upgrades. An upgrade replaces the binary or the image; the identity store, the mapping files and the configuration stay where you keep them. The release’s changelog section says what changed.
- Changes to the source. A binary or image built from modified source is not a Cadasto B.V. release: its build provenance does not verify.
8(c) Installing security-relevant updates
“how security-relevant updates can be installed;”
Subscribe to the release feed
(https://github.com/FerroHEALTH/FerroBRIDGE/releases.atom) and poll the
security advisories; the server does not look for newer releases itself.
Verify the new release
(verifying a release),
then replace the binary or deploy the new image by digest and restart. On
SIGTERM the server drains its requests for up to
[server] shutdown_timeout before it exits. Run one process per identity
store, so on Kubernetes use the Recreate strategy
(the identity store).
8(d) Secure decommissioning, and removing user data
“the secure decommissioning of the product with digital elements, including information on how user data can be securely removed;”
FerroBRIDGE has no erase command. Clinical data lives in the CDR and in the CDM database, which you run; what FerroBRIDGE keeps of its own is in files, directories and schemas you name. To take a deployment out of service and remove its data, stop the server, the console and every ETL job, then delete:
- the file
[facade] identity_storenames, which maps subject identifiers toehr_ids and FHIR ids to compositions; - the directory
[usage_report] state_dirnames, which holds the usage report’s instance id; - the mapping directory,
[operator] mapping_dirif you set it, and the templates directory; - in the CDM database, the schema
[cdm] bridge_schemanames, with the side table, the watermarks and the id sequences, and the CDM schema itself if the data the ETL wrote there should go too; - the configuration file, the secret files, the Basic users’ password hash files, and the console’s configuration and client secret.
The console keeps its sessions in memory, so stopping it ends them (sessions). Remove the copies FerroBRIDGE cannot reach yourself: backups, volume snapshots, proxy and log collector records, and the data held by the CDR and the clients the facade served. Sanitising the physical media is yours. To have the usage reports already sent erased, follow your right to object.
8(e) Turning off automatic installation of security updates
“how the default setting enabling the automatic installation of security updates, as required by Part I, point (2)(c), of Annex I, can be turned off;”
FerroBRIDGE installs no update by itself, so there is no such setting to turn off. The server reaches the manufacturer only through the usage report, reads nothing of the collector’s answer but its status code, and nothing the collector answers changes its configuration or behaviour (network). You install each update as 8(c) describes.
8(f) Information for an integrator
“where the product with digital elements is intended for integration into other products with digital elements, the information necessary for the integrator to comply with the essential cybersecurity requirements set out in Annex I and the documentation requirements set out in Annex VII.”
The server, the console and their images are not intended for integration
into another product; other software calls a running server over the FHIR
API, the FHIRconnect operations or MLLP. The library crates on crates.io are
intended for integration, and each is a product of its own: each crate’s
README.md and docs.rs page describe its API, and
version lines and releases
says which crates are published and which are name reservations.
9. The software bill of materials
“If the manufacturer decides to make available the software bill of materials to the user, information on where the software bill of materials can be accessed.”
Cadasto B.V. makes the software bills of materials available. Each release
publishes, beside each ferrobridge tarball, a CycloneDX SBOM of the source
dependency graph (.cdx.json) and an SPDX SBOM read from the shipped binary
(.spdx.json), both attested; an SPDX SBOM beside each console tarball; and
an SPDX SBOM attestation on each platform manifest of both images. The
binaries also embed their dependency lists through cargo auditable, which
syft, trivy, grype and osv-scanner read directly. How to fetch and
verify each one is in
verifying a release.
The FHIR facade
The FHIR side of FerroBRIDGE is a REST facade in front of an openEHR CDR. A FHIR client sees one FHIR server; behind it, every request becomes CDR operations driven by FHIRconnect mappings. The facade stores no clinical data of its own.
The facade runs. It is off until [facade] enabled turns it on, and a disabled
facade mounts no route, so a request answers 404 rather than 403. What this
page describes is what the server answers today: conformance, create, read,
vread, update, search, transaction, batch, $validate and
Composition/$document.
- Why a facade
- The surface
- Security
- Media types and bodies
- Program selection
- Identity
- A read is a valid instance
- Provenance
- Writes
- Party resources
- Consent and access directives
- SMART App State
- SMART launch Tasks
Composition/$documentassembles a document$validateis a dry run of this server- Status mapping
- Paths are written as well as read
- Terminology
- Search
- What the facade does not do
Why a facade
FHIRconnect defines the mapping language and leaves the server surface to the implementer. Two shapes exist in the prior art: publish a facade, or leave both the facade and the CDR to the integrator. No standard prefers either. FerroBRIDGE publishes the facade so that a FHIR client needs to know about one server and one base URL, and so that the mapping direction, the terminology calls, and the CDR commit happen in one place that can refuse a request as a whole.
The surface
FHIR R4 (4.0.1), because that is the only version the FHIRconnect schemas admit
for spec.version. The service base is /fhir.
| Request | What it does |
|---|---|
GET /fhir/metadata | The CapabilityStatement of the loaded mapping set |
POST /fhir/{type} | Create, conditional through If-None-Exist |
GET /fhir/{type}?… | Search the type over the AQL its search declaration states |
POST /fhir/{type}/_search | The same search, its parameters in a form body |
POST /fhir/{type}/$validate | The dry run that commits nothing |
GET /fhir/Composition/{id}/$document | The document Bundle of one Composition; also GET /fhir/Composition/$document?id={id} |
GET /fhir/{type}/{id} | Read one resource back out of its composition |
GET /fhir/{type}/{id}/_history/{vid} | Vread: read the version a write’s Location named |
PUT /fhir/{type}/{id} | Update, with If-Match |
POST /fhir | A transaction Bundle, all or nothing, or a batch Bundle, each entry on its own |
GET /fhir/{type}/{id}/_history | The history of a party resource |
DELETE /fhir/{type}/{id} | Delete a party resource |
GET /fhir/.well-known/smart-configuration | The SMART discovery document, with [auth] on |
POST, PUT, DELETE and GET /fhir/Basic | SMART App State, with [facade.app_state] on (SMART App State) |
POST and GET /fhir/Task, GET /fhir/Task/{id} | SMART launch Tasks, with [facade.launch_task] on (SMART launch Tasks) |
A type no loaded program maps is absent from the CapabilityStatement and
answers 404 with a not-supported OperationOutcome on the wire. A search on a type no search
declaration answers is a 404 with not-supported, and a _count that is not
a non-negative integer is a 400 with invalid, so a client never reads a
page it did not ask for.
The CapabilityStatement names exactly the resource types the loaded programs
map, with create, read, vread and update per type, transaction and
batch at system level, the $validate operation, $document on
Composition, updateCreate: false,
conditionalCreate true, conditionalUpdate false (no PUT [type]?[search]
is served; If-Match on an update is the version-aware update),
versioning: versioned-update and readHistory: true per type, and
fhirVersion: 4.0.1. A type a search
declaration answers also names search-type and, in searchParam, exactly
_id and the parameters the declaration states; every other type names no
search parameter. A type no program maps and a reference mapping of a
loaded program creates is listed with read and vread alone (see
Resources the mapping creates).
A type a party context serves is listed with read, vread,
history-instance, create, update and delete and no search (see
Party resources).
When the FHIRconnect operations lane is served under the same base,
rest.operation also names $tofhir and $toopenehr; their direct forms are
never declared (The FHIRconnect operations says why).
With [auth] on, rest.security names the SMART-on-FHIR service and
carries the oauth-uris extension with the authorization server’s
endpoints, for clients that discover SMART through the statement (see
Security).
Security
With [auth] on, the default, the facade
is a SMART App Launch 2.x resource server for the authorization servers the
deployment trusts, each a named [auth.issuer.<name>] table fixed by its
issuer. A token is for the facade when its aud names [facade] base_url, or
one of the audiences the issuer table lists in its place.
The check is ferrohealth-smart’s, the resource server every FerroHEALTH
product runs. With [auth] off, the
facade authenticates nobody and serves every request it receives.
Every request under /fhir carries Authorization: Bearer <access token>,
or the Basic credential of a user [[auth.basic.users]] lists, except GET /fhir/metadata and the SMART discovery document at
GET /fhir/.well-known/smart-configuration (also served at
/.well-known/smart-configuration), which a client reads before it holds a
token. The health routes stay open too. The token is a JWT signed by a key
in the issuer’s key set, with an iss equal to the issuer, an aud naming
the facade, and an exp, nbf and iat that hold within the configured
clock skew. Under the default rfc9068 preset it also carries typ: at+jwt,
sub, client_id, iat and jti (RFC 9068). The issuer’s kind and
profile (its preset with the keys of its profile table over it) decide who the caller is: a person through one of the deployment’s
own clients, a patient, a machine’s client credentials token, or another
party’s person on a federation issuer. A Basic credential is always a
person’s; a machine never authenticates with one.
| Answer | When | WWW-Authenticate |
|---|---|---|
401 | No credential, or one in a scheme the server does not admit | Bearer, and a Basic realm="", charset="UTF-8" challenge beside it when Basic users are configured |
400 | Two credentials, or an Authorization value that is no credential | Bearer error="invalid_request" |
401 | A token that does not hold, whatever the reason, including a token of another issuer or for another audience, and a valid token that names no caller its issuer’s kind admits | Bearer error="invalid_token", error_description="<reason>" |
401 | A Basic credential that does not hold, whatever the reason | Basic realm="", charset="UTF-8" |
403 | A valid token whose scopes do not permit the request | Bearer error="insufficient_scope", error_description="scope-not-granted" |
403 | Any request to a route under /fhir the guard does not classify, before the token is read | none |
503 | A token naming a key the server cannot fetch because the key set does not answer | none |
Each refusal carries an OperationOutcome, login for a 401, invalid for
a 400 and forbidden for a 403. A configured realm is named on every
challenge. A Bearer challenge with an error code carries the stable reason
code of the check that refused the token as its error_description (RFC 6750
§3), such as expired, audience-mismatch, issuer-unknown,
signature-invalid or scope-not-granted; the ferrohealth-smart book lists
every code. The bridge logs the code with the token’s issuer, client and key
id, never the token. Neither the challenge nor the body names the claim that
failed or the scope that was missing.
The guard classifies every route it admits by name: the interactions in the
table below, the two FHIRconnect operations and their direct forms, the
CapabilityStatement and the discovery document. A route under /fhir that
it does not name fails closed with 403 and reaches no handler and no CDR,
so a route added without a classification is refused rather than open to any
token. A test reads every route the server mounts under /fhir and fails
when one has no classification. With [auth] off the facade stays open.
The permission each interaction needs follows the SMART v2 cruds letters,
on the resource type in the path or in the entry:
| Interaction | Needs |
|---|---|
| create | c, and u too when the create revises a resource the facade already holds (a new meta.versionId of a known id); a replay that changes nothing needs c only |
| read, vread, history (a party resource) | r |
Composition/$document | r on Composition and on every type the document carries |
| delete (a party resource) | d |
search (GET [base]/{type}, POST [base]/{type}/_search) | s |
| update | u |
$validate | c or u, or the operator scope ([auth] product_scope): the dry run commits nothing, so an operator console needs no clinical write scope |
| transaction | the permission of each entry’s request.method: c for POST, u for PUT, r for GET, d for DELETE |
| batch | per entry, the permission of the interaction its request names: c for a create, u for an update, r for a read or vread, s for a search |
$tofhir, $toopenehr | a valid token, no clinical scope, the operator scope included: they transform the request body and reach no CDR |
A scope reads patient/, user/ or system/, then a resource type or *,
then the letters in the order cruds, such as system/*.crs or
patient/Condition.rs. The SMART v1 suffixes are read as the spec maps them:
.read as rs, .write as cud and .* as cruds. A scope with letters
out of order, an unknown resource type, or a ? search constraint grants
nothing; the facade does not evaluate the constraint, so it does not grant
more than the scope says. A user/ scope reaches every resource of its type,
because the facade has no per-user access model of its own, and so does a
system/ scope. A token with no clinical scope at all gets system-wide
access only when its sub is in scopeless_subjects.
A patient/ scope reaches only the patient in the token’s patient claim,
which the facade reads as the launch context only from an issuer whose
profile sets patient_context (SMART App Launch 2.2.0, Scopes and Launch
Context, launch/patient: the authorization server sets it). The
ferrosmart preset sets it; every other preset leaves it off, so a
patient claim of such an issuer is ignored unless its
[auth.issuer.<name>.profile] table sets patient_context = true. This is the rule FerroEHR reads too.
The facade reads a patient’s data as the EHR it resolves for the subject
Patient/<id>: a create or update must name subject (or patient) as
the literal reference Patient/<id>, and a read reaches a resource only
when the EHR holding its composition belongs to that subject. A search under
a patient/ token is held to that patient’s EHR, whatever subject parameters
it names, and answers an empty searchset when the identity map binds the
patient no EHR. A resource
whose subject is named by identifier cannot be shown to be the patient’s, so
a patient-scoped token is refused for it. A patient/ scope without a
patient claim grants nothing.
A transaction is authorised entry by entry before anything is mapped, and one
entry the token does not cover refuses the whole Bundle with 403, because a
transaction succeeds or fails as one unit. A batch is authorised entry by
entry too, and an entry the token does not cover, or one outside a
patient/ token’s compartment, answers 403 Forbidden inside the
batch-response while the other entries run.
Every request under /fhir but the discovery document leaves one audit line
on the ferrohealth_smart::audit log target, the record every FerroHEALTH
product writes: the time, the token’s sub or the Basic user as
principal, the token’s client_id and issuer, the caller’s kind
(person, patient, system, delegated and the other kinds
ferrohealth-smart names; a Basic user is always person), the scheme the
credential arrived with as via (bearer or basic), what the login
resolved to as binding and party (- while the bridge binds no party),
the method, the matched route,
what was addressed (Condition/c-1, or the type alone), the interaction,
the status and the duration. Beside the log envelope its fields are exactly
at, request_id (the X-Request-Id that ties the line to the request
log), principal, client, kind, via, issuer, binding, party,
method, route, addressed, interaction, status and duration_ms. A refused
credential is recorded as unauthenticated with via none, and with
[auth] off the principal reads - with via open. A batch leaves one
line per entry, carrying the entry’s interaction, what it addressed and its
status and its position in the Bundle as entry, then the request’s own
line with the interaction batch. The line
never carries the token, another claim, a query value or a body.
The bridge never forwards the caller’s token to the CDR, because an access
token is bound to the audience it was issued for. By default it reaches the
CDR with its own credential
([cdr.endpoint.credentials.oauth]),
so the CDR records the bridge as the actor and the caller’s identity lives in
the bridge’s audit line. With
[cdr.endpoint.credentials.onward]
it exchanges the caller’s token per request for a token of the CDR’s issuer
that names the same person (RFC 8693 token exchange, or the Entra ID
on-behalf-of grant), so the CDR records the clinician too; a machine keeps the
bridge’s own token, and a caller the exchange cannot carry is refused. The
audit line still names the caller.
Browser apps (CORS)
A purely browser-based SMART app calls the facade from another origin, so the browser asks the facade, through cross-origin resource sharing (CORS), whether the page may read each answer. SMART App Launch 2.2.0 (App Launch, Considerations for Cross-Origin Resource Sharing support) says a server that supports such apps “SHALL enable” CORS for any origin on the public discovery endpoints and for a client’s registered origins on the FHIR REST API, and FHIR R4 (Security, Communications) asks the same of a server with browser clients. The facade answers both:
| Route | Origins | Access-Control-Allow-Origin |
|---|---|---|
GET /fhir/metadata, GET /fhir/.well-known/smart-configuration, GET /.well-known/smart-configuration | Any | * |
Every other route under /fhir | Those [facade.cors] allowed_origins lists | The request’s Origin, with Vary: Origin |
The facade holds no client registry, so the registered origins are the list
you configure. With the list empty, the default, the REST routes answer no
origin and a browser withholds every answer from a page on another origin.
No answer ever carries Access-Control-Allow-Credentials: an app sends its
token in the Authorization header, never in a cookie.
The facade answers the preflight (OPTIONS with
Access-Control-Request-Method) of an admitted origin itself, before the
token check, because a browser sends a preflight without the token. The
answer is 204 with the methods the facade mounts (GET on the discovery
endpoints; GET, POST, PUT and DELETE on the REST routes), the request
headers it reads (Authorization, Content-Type, Accept, Prefer, the
conditional headers and X-Request-Id) and a ten-minute Access-Control-Max-Age.
A preflight from an origin the list does not name runs as any OPTIONS does:
the guard refuses it with 403, and the browser blocks the request it
announced. An admitted origin also reads a refusal, such as the 401 of a
missing token, with Location, ETag, Last-Modified, Content-Location,
WWW-Authenticate and X-Request-Id exposed to the page.
Media types and bodies
The facade reads application/fhir+json and application/json, which R4 names
as the JSON media type and its alias, and answers 415 for anything else. Every
response carries application/fhir+json. An Accept header that admits neither
is a 406.
A body is parsed through the strict codec of the generated fhir-types crate,
so an unknown property is a 400 with structure rather than a value that is
silently dropped. Prefer: return=minimal, return=representation and
return=OperationOutcome are honoured on a write, and the default is the
resource itself. With return=OperationOutcome the outcome names the committed
version and then each loss the mapping declared: a field the engine filled is
an information issue, an element it could not carry an incomplete
warning, each with the FHIRPath of the element in expression and the
openEHR path in details.
Everything the facade authors is an OperationOutcome with an issue.code
from the R4 value set. An openEHR error body never reaches the wire as its own
document: the CDR’s message and every validationErrors entry travel
verbatim inside issue.diagnostics, which keeps one error vocabulary on the
wire while losing nothing the CDR said. A CDR that answers RFC 9457 problem
details (application/problem+json) is read the same way: its title, its
detail, each errors violation as path: detail, and its problem type.
The bridge’s composition and contribution writes send
Prefer: return=representation, so a CDR that lists violations only for such
a write lists them.
Program selection
A request is mapped by the program whose context claims the profiles the
resource declares in meta.profile. Every declared profile is considered, as
set membership, and the templateId pin of the FHIRconnect operations surface
selects among candidates when a deployment sends one.
Two refusals are distinct on the wire, and both are 422. When no program
claims the resource, the outcome names the profiles it saw and answers
not-supported. When several programs claim it and nothing pins the template,
the outcome names the candidates, so the fix is a pin rather than a guess.
Identity
A FHIR resource id has to be stable across composition versions, because R4
fixes that “once assigned, this value never changes”. The facade gives each
resource the deterministic id the FHIRconnect engine chapter recommends, a hash
of the composition uid and the entry path, the same id $tofhir answers for
the same occurrence. The composition uid is the version container, the part of
the OBJECT_VERSION_ID that stays the same across versions. The entry path
names one occurrence of the context’s start archetype wherever the template
places it: a content item, an item of a SECTION at any depth, or an instance
repeating below another entry, with a later occurrence named by its place in
its container, as in /content[openEHR-EHR-SECTION.adhoc.v1]/items[2]. Each
occurrence is a resource of its own. The hash is SHA-256, written as 52
lowercase base32 characters. meta.versionId carries the openEHR
version_tree_id and never enters the derivation, so a new version of a
composition reads back under the same id with a new meta.versionId.
meta.source names the openEHR version uid the answer was read from.
The identity map is a redb file with seven tables: a patient identifier to its
ehr_id and each ehr_id back to the first person recorded for it, an
external resource id to the internal one, an internal id to the
composition version container with the entry path and split occurrence, and the
source resource id with its meta.versionId to the mapping that consumed
them, beside the contribution each source was committed in and each
Resource.identifier of a committed resource. The map wins once written. The
store file records its schema, and a file an earlier schema wrote is refused at
boot with its path named: the ids this release derives differ from the ids the
facade served before 0.0.14, so the reset is to remove the file, which the
bridge then creates anew. The store keeps identifiers and nothing else:
no clinical content is written into it, and a test greps the file for a mapped
value to prove it.
That last table is what makes create idempotent. A resource re-sent with the
same id and meta.versionId commits nothing and answers 200 OK with the
composition it already produced. A resource with a known id and a new
meta.versionId commits a later version of that composition. A resource with a
known id and no meta.versionId is a replay when it maps to the content the
composition holds now, and a later version otherwise. A transaction entry with
a known id and a new meta.versionId commits that later version inside the
Bundle’s contribution. The Operate page on failure and identity states the
full rule.
Resources the mapping creates
Going out of openEHR, a hierarchy.split with create: resource creates one
resource per further occurrence of its node, and a reference mapping
creates the resource it names. R4 says a contained resource “does not have an
independent existence apart from the resource that contains it”, so the
facade contains none of them. Each one gets a binding of its own the first
time the facade answers the resource whose mapping creates it (its parent), on
a read, a vread, a search or a write under Prefer: return=representation.
Its id is a SHA-256 over the parent’s entry key, the creating mapping, the
openEHR occurrence positions and the split’s unique values, rendered as 52
lowercase base32 characters, so a re-run and a later composition version
derive the same id, and the map wins once written. The parent references a
created resource as <Type>/<id>. A split’s further occurrence is a sibling
of the parent, and the parent names no reference to it.
GET /fhir/{type}/{id} and the vread answer a created resource: the facade
maps the parent’s entry again and returns the created resource of that id,
with the parent’s meta.versionId and meta.source and no meta.profile.
A version that no longer creates it answers 404. A PUT of a created
resource answers 405 Method Not Allowed with not-supported, because its
content is the parent’s entry: update the parent. A search of the parent’s
type lists every split occurrence beside the entry’s own resource, each
once: a page holds at most _count resources and may end between two
occurrences of one entry, Bundle.total counts every resource, and an
_id that names a created resource answers that resource alone. A type
only a reference creates declares no search. No specification governs the
identity of a created resource or how a search reaches it: it is
FerroBRIDGE’s own design.
A read is a valid instance
Every resource the facade answers, on a read, a vread or a write under
Prefer: return=representation, is a valid R4 instance: each element the R4
element table marks min 1 is present, at the top of the resource and inside
every element and contained resource it carries (a resource the mapping
creates is answered on its own, never contained). A mapping often has no
outbound row for the subject, because the ingest reads the subject to find the
EHR and the composition does not hold it. When the rendered resource has no
subject (or patient, on a type that names its subject so), the facade
writes it from the identity map: the person the map recorded for the
composition’s EHR, as a literal reference when the person was keyed by one in
subject_namespace (Patient/<id> again under every subject_id_form), and
otherwise as a logical reference with type: Patient
and the person’s identifier. That is the form a create reads back into the
same EHR, so you can send a read body back as an update unchanged. A subject
the mapping wrote is kept. The log line of the request counts the elements the
facade filled and names their paths, never a value. When a required element
stays absent, the facade answers 500 exception with the element path in
issue.location rather than an invalid resource. No specification governs the
fill: it is FerroBRIDGE’s own design.
Provenance
Every composition the facade commits carries a FEEDER_AUDIT, which is the
reference model’s own element for data transformed into openEHR form: the
source resource’s id and type as an originating_system_item_ids entry, its
meta.versionId as originating_system_audit.version_id, and the configured
system_id naming the bridge. When a machine (a client credentials token)
made the request, its client is the originating system
(originating_system_audit.system_id) and the bridge the feeder system
(feeder_system_audit.system_id), which RM FEEDER_AUDIT records for a
feeder “different from the originating system”. A source resource that carries no id is
recorded as unknown, never given one. So a reader of the CDR can tell which
FHIR resource a composition came from without asking the bridge.
The CDR writes who committed each version, from the credential it
authenticated. A single write states the change type and system_id, which
names the bridge, in openehr-audit-details, and no committer: ITS-REST
1.1.0 leaves every member of the header optional, and a CDR that writes the
committer itself refuses one that says more than its own. A transaction’s
CONTRIBUTION must carry a committer in its audit and in every version’s
commit_audit, so there the facade names the party the CDR authenticated,
and nothing more:
- under the bridge’s own client credentials grant, a
PARTY_IDENTIFIEDnamed by its client id; - as a Basic user with
[cdr] committer_issuerset, the placeholder{"_type": "PARTY_IDENTIFIED", "identifiers": [{"_type": "DV_IDENTIFIER", "issuer": "<committer_issuer>", "id": "<user>"}]}; - under
[cdr.endpoint.credentials.onward], where the request reaches the CDR under the token the caller’s was exchanged for, the same placeholder with the exchanged token’sissandsub; - otherwise, a
PARTY_IDENTIFIEDnamed bysystem_id.
The caller the facade authenticated is recorded in the bridge’s own access record, and a machine caller as the originating system above. The facade sends no attestation.
Writes
A create resolves the subject to an EHR: the identity map first, then the CDR
by subject id and namespace, and only then the configured policy. With
ehr_policy = "existing" an unknown subject is refused; with
create_on_first_write the facade creates the EHR and records it.
If-None-Exist behaves as R4 defines it: no match creates, one match answers
200 with the resource that already exists, and several matches answer 412.
The search it runs is over the identity map, so the parameters it answers are
_id and identifier, each in the comma-separated OR form. identifier
matches the Resource.identifier of every resource the facade committed, in
the token forms [code], |[code] and [system]|[code]; the [system]|
form is refused. Any other parameter is refused, because a silently narrowed
search would turn a duplicate into a second composition.
A create answers 201 with Location naming the FHIR resource under the
configured base URL and ETag carrying the version.
That Location is [base]/{type}/{id}/_history/{vid}, and a GET of it is
the R4 vread. The {vid} is the version tree id of the composition version
the write committed. The facade finds that version in the CDR’s revision
history of the composition, reads it, and answers it with its ETag. A
{vid} the history does not list answers 404, and a version the CDR reports
deleted answers 410. An earlier version stays readable after the latest one
was deleted.
A read and a vread also answer Last-Modified: the commit time the revision
history records for the version, as an HTTP-date. That costs one more CDR
call per read. A commit time with no UTC offset names no instant, so that
answer carries no Last-Modified.
An update needs If-Match when the map knows the id. Without one, the facade
reads the CDR’s current ETag and answers 412 with it on a mismatch rather
than overwriting a version the client never saw. Send back the ETag a read
or write answered, If-Match: W/"1": the facade completes that versionId to
the current composition version and answers 412 with the current ETag
when it is stale. A value that names no version is 400. The body must
name the id the URL names: a body with no id, or another one, is 400. A PUT to an id the map does
not know is a 404: this milestone does not upsert, and the
CapabilityStatement says updateCreate: false.
A transaction Bundle maps every entry first and commits the lot through one
ITS-REST contribution so the CDR makes it atomic. The facade uses fullUrl
in two places. It names each entry by its fullUrl in every refusal, or by
its position when it has none. And a subject or
patient reference whose value is another entry’s fullUrl is read through
that entry: the person is that entry’s first identifier with a value, or under subject_id_form logical_id and
uuid its logical id when the entry carries one. The
facade resolves no other reference. A reference is mapped as the resource
carries it, and the facade never fetches a referenced resource from anywhere.
Any failure answers one OperationOutcome naming every failing entry, and
nothing is committed.
A committed transaction answers 200 with a transaction-response Bundle,
one entry per request entry in the same order. Each entry’s response carries
201 Created, the location [base]/[type]/[id]/_history/[vid] and the
etag W/"[vid]", the values a single create answers, and an
outcome naming each loss the entry’s mapping declared, as a single write
answers it under return=OperationOutcome. Send the same Bundle
again and nothing is committed: each entry answers 200 OK with the location
of the resource the first delivery created. A Bundle only some of whose
entries an earlier delivery consumed is refused with 409, naming those
entries, and a Bundle that carries one resource twice is refused with 422.
A delivery that arrives while another delivery of the same Bundle or resource
is still in flight is refused with 409 and commits nothing; retry it after
the first one answers. The redelivery rule is on the
failure and identity page.
An entry whose mapping links a resource as a composition of its own (a
FHIRconnect linked mapping) is refused with 422 and not-supported: the
linked composition’s id exists only once the CDR commits it, so it cannot
share the transaction’s one contribution. Send that resource on its own, or as
an entry of a batch, whose entries commit one at a time.
A batch Bundle runs each entry as the single interaction its request
names, and answers 200 with a batch-response Bundle, one entry per request
entry in the same order (R4 http.html §3.1.0.11). The entries run in the order
R4 gives for a transaction, every POST before every PUT and every GET
last, and the answer keeps the Bundle’s order.
Entry request | Runs as |
|---|---|
GET [type]/[id] | read |
GET [type]/[id]/_history/[vid] | vread |
GET [type]?… | search |
POST [type] | create, with ifNoneExist as its If-None-Exist |
PUT [type]/[id] | update, with ifMatch as its If-Match |
Each entry’s response carries the status the single interaction answers,
with its location and etag. A successful entry carries its resource, or
none under Prefer: return=minimal, which reaches every entry, and a failed
entry carries its OperationOutcome in response.outcome. A CDR refusal of
one entry is that entry’s status through the status table, and the other
entries still run. A DELETE, PATCH or HEAD entry answers 405, a
request.url the facade routes no interaction for answers 404, and an
absolute request.url under another server’s base answers 400. An entry
whose resource references another entry’s fullUrl answers 400 invalid,
because R4 calls such a batch non-conformant; the other entries run. A Bundle
with an entry that carries no request, or a POST or PUT entry with no
resource, is refused whole with 400, naming each such entry, and nothing
runs.
An HL7 v2 message that the HL7 v2 face receives
goes through this same path as a transaction of its Bundle’s entries, so the
same identity and replay rules apply to it. Its entries are keyed by the
message’s MSH-10 and message type and their position in the Bundle, so a
message sent again commits nothing and is answered AA, as its first delivery
was. A message whose delivery overlaps another of the same message is refused
and commits nothing. Each composition’s FEEDER_AUDIT names the sending
application, the order numbers and the message (see the HL7 v2 face page)
where a resource would be named here. A subject reference to another entry of the
Bundle is read through that entry: the person is the referenced resource’s
first identifier, the same pair a subject.identifier names.
References the request does not carry
A reference mapping reads the resource a reference points at. FHIRconnect
says that when the resource is not in the request, “the engine should attempt
to GET it from the sending site. If not possible, the engine proceeds with the
mapping”, and that it should stop at a level or track what it resolved. The
facade’s policy beyond that is FerroBRIDGE’s own design:
- In a transaction Bundle, an entry answers a reference to it first: by its
fullUrl, or by<Type>/<id>when it carries an id. Such a reference is never read from this server or fetched. - A relative reference (
Observation/abc), or an absolute one under[facade] base_url, names a resource this server committed. The facade reads it through the identity map and the CDR, as a read of it answers. - An absolute reference to another server is fetched with
Accept: application/fhir+jsononly when its base is listed in[facade.references] fetch_bases, and a redirect is not followed. The list is empty by default, so by default the facade fetches nothing, and a client cannot make the bridge call a URL it names. - References are followed to
max_depthlevels (default 2: the request’s own, then those of each resolved resource), and each literal is resolved once, so a cycle ends. - A reference the facade does not resolve, because its base is not listed,
the server answered a status other than
200, the fetch timed out, the body is not the referenced resource, or this server holds no such resource, is a declared skip: the write proceeds without it. The log line names the reference, the base and the upstream status, never a body, and$validateanswers it as awarningissue naming the reference and the reason.
Only a reference whose type some loaded reference mapping names is
followed, because no other is read. The keys are on the Operate page under
[facade.references].
Demographic references
A reference a mapping writes as a party (a recorder as the composer or as
ENTRY.provider, a participant) is never dropped. FHIRconnect sends it to a
demographics service, and with none “a FHIRconnect engine should use the IDs
maintained by the FHIRconnect engine’s FHIR-server” (engine/demographics.adoc).
The facade is that server, so a relative reference, or one under
[facade] base_url, becomes an identity issued by that base:
- in
PARTY_IDENTIFIED.identifiersas aDV_IDENTIFIERwhoseissueris the base, whoseidis<Type>/<id>and whosetypeisfhir-reference, where the FLAT format carries identifiers (ENTRY.provider); - in
PARTY_PROXY.external_refas aPARTY_REFin the base’s namespace with aGENERIC_IDof schemefhir-reference, on the composer and on a participation’s performer, whose FLAT keys carry only the reference.
A read turns either back into the same Reference.reference. A reference to
another server keeps that server as its issuer, and a urn: reference to an
entry of the request is refused. The identity shapes are FerroBRIDGE’s own
design. A CDR that refuses identified parties in clinical content answers
422, and the facade passes its words through in issue.diagnostics.
Party resources
A party context (a FHIRconnect context whose template is rooted at a PERSON,
ORGANISATION or ROLE) serves its resource type from the CDR’s demographic
store over the ITS-REST 1.1.0 Demographic API, DEVELOPMENT, which the release
marks x-status: DEVELOPMENT. It loads only with [cdr] demographic on: a
party context with the gate off is a boot refusal, and one resource type is
served by one party context. The correspondences live in the mapping files,
for example Patient and Practitioner onto a PERSON, PractitionerRole
onto a ROLE, and Organization onto an ORGANISATION.
- Identity. The id is the party’s
versioned_object_uidandmeta.versionIdits version tree id; the identity map holds no entry for it. OnePERSONreads as aPatientand as aPractitionerunder the same id, because FHIR scopes an id to its type. - Interactions.
read,vread,history-instance,create,update(over the versionIf-Matchnames, or the latest) anddelete(the latest version). The Demographic API has no search or list operation, so a party type offers no search, and theCapabilityStatementdocuments that on the type. With[facade.party_search]a configured type is searched byidentifierornamethrough the Cadasto experimental AQL demographic extension, or by_id, and the statement declaressearch-typeand exactly those parameters on that type. A CDR that does not serve the extension answers the search with501 not-supported. - The patient’s EHR. With
ehr_policy = "create_on_first_write", aPatientcreate also gives the new party its EHR: the facade looks the party’s id up through the subject link (subject_namespace,subject_id_form,subject_type) and creates the EHR when the CDR holds none, so the clinical resources that namePatient/<id>find it. Underexistingthe create sends no EHR call, and aPractitionernever gets one. When the EHR call fails after the party committed, the answer is the EHR refusal with a warning that names the storedPatient. - Template. A party built against another template than the context’s
answers
404. The template may be an ADL 1.4 OPT or an ADL 2 operational template, the one a CDR serves only on itsadl2route included. ADL 2.4 admits two node identifier coding systems (§4.2.5): an at-coded template names its nodes[at0001], an id-coded one[id3], and the paths of the model mapping name the codes the template and its data carry, because a path predicate is a shortcut for[@archetype_node_id = …](BASE 1.2.0, Architecture Overview, Paths and Locators). FerroEHR’s professionalPERSON,openEHR-DEMOGRAPHIC-PERSON.healthcare_professional.v1.0.0, is id-coded: its identifier isdetails[id2]/items[id3]and its full nameidentities[id4]/details[id5]/items[id6]. The header names the archetype’s interface id and pins its release as the revision (archetype: openEHR-DEMOGRAPHIC-PERSON.healthcare_professional.v1,revision: 1.0.0), as the FHIRconnect header does for any archetype; the context names the full template id. An at-coded path names no node of an id-coded template, and the load refuses it as a path the template does not have. - Status. A Demographic API
400is a500;404,409,412and422reach the caller as themselves, with the CDR’s words inissue.diagnostics. - Authorization. A
patient/token reaches the onePatientits launch context names and no other party resource. - Bound professionals. A
PERSONthat carries a binding key, an identifier of an issuerbinding_identifier_issuersnames, is bound to a login at the CDR and provisioned through the CDR’s SCIM service. The facade refuses a create, update or delete of such a party (aPractitioner, typically) with403 forbiddenbefore it writes to the CDR, and the CDR refuses the same write from any client but an administrator or that SCIM client.
A PractitionerRole maps practitioner onto the ROLE’s mandatory
performer. The reference must name a Practitioner this facade serves,
relative (Practitioner/<id>) or under the facade’s base, and carry nothing
beside reference; the facade answers any other reference, and a role with
no practitioner, with an error rather than dropping it. These rules are FerroBRIDGE’s own design: no
specification defines a FHIRconnect mapping rooted at a party.
Consent and access directives
With [facade.consent] on, the facade exchanges a patient’s openEHR access
directives, the draft ACCESS_DIRECTIVE_SETTINGS of the EHR’s EHR_ACCESS,
as HL7 FHIR Consent, as IHE BPPC acknowledgements and as IHE APPC Privacy
Consent Documents. The CDR commits and checks the directives; the bridge
translates. It reads the current EHR_ACCESS with the CDR’s extension
GET /ehr/{ehr_id}/ehr_access under extensions_url (its ETag names the
version), appends the
imported directives to the ones in force, and commits the whole settings as
the next version in a CONTRIBUTION whose preceding_version_uid is the
version it read, so the CDR refuses a stale write with 409, which the
facade answers as 409 Conflict. Both calls go out under the token the
onward lane exchanges for the caller, so the CDR decides for the patient or
the gate-keeper who asked: a 404 or 403 the CDR answers that caller is
the facade’s answer, never an empty result, and a directive naming a party
the CDR’s demographic store does not hold is refused with 422. The catalogue
of the controller’s ACCESS_POLICY is read under the bridge’s own token with
GET /admin/access_policy under extensions_url.
| Interaction | Route | Answer |
|---|---|---|
| create | POST [base]/Consent | 201 with the Location of the first directive created |
| read | GET [base]/Consent/{id} | the Consent of one directive in force |
| search | GET [base]/Consent?patient=Patient/{id} | a searchset of every directive in force |
$bppc import | POST [base]/Consent/$bppc?patient=…&evidence=… | 201 with an OperationOutcome naming each Consent created |
$bppc export | GET [base]/Consent/$bppc?patient=… | a collection Bundle of Binary documents |
$appc import | POST [base]/Consent/$appc?patient=… | 201 with an OperationOutcome naming each Consent created |
$appc export | GET [base]/Consent/$appc?patient=… | a collection Bundle holding one Binary document |
The CapabilityStatement lists Consent with create, read and
search-type, the patient parameter, and the two operations. A Consent is
R4 unless the media type names R5, application/fhir+json; fhirVersion=5.0
in Content-Type for a create or in Accept for a read or a search (FHIR R4
versioning.html, version negotiation); the answer carries the same media
type. The IHE documents are posted as text/xml or application/xml; BPPC
takes evidence, the DV_EHR_URI of the composition the caller stored the
document in. Under the guard a BPPC or APPC import needs Consent create and
an export Consent search, and a patient/ token reaches only its own
patient.
One directive is one Consent. A Consent id is the 32 hex digits of the
EHR’s UUID followed by the 32 of the directive’s key, its uid (which the
bridge stamps on every directive it imports) or, for a directive another
client wrote with no UUID uid, the v5 UUID of its canonical JSON. A read
therefore needs no identity map entry, and an EHR whose id is no UUID has no
Consent ids. A construct with no openEHR form is refused with 422, naming
the element: nesting deeper than one level of exceptions, a
provision.data.meaning other than instance, R5 provision.expression
and resourceType, an actor role other than v3 PRCP or IRCP, a status
other than active, a modifier extension, and an extension the mapping does
not read. A foreign provision.action code is translated to an operation
class through the [terminology] server with ConceptMap/$translate; with
no server, or no translation, the Consent is refused naming the coding.
Attributes with no core element are written in extensions under
https://ferrobridge.eu/fhir/StructureDefinition/: emergency-override,
role, relationship, organisation-type, caller-kind, archetype, origin, object-ref,
time-validity, base-undecided and access-directive.
BPPC maps an acknowledgement of a policy the domain publishes by OID to
the catalogue entry with that identifier (ITI TF-3 5.1); an OID the catalogue
does not hold is refused. An export writes one document per distinct
time_validity and names each directive an acknowledgement cannot state in an
OperationOutcome entry. APPC maps each XACML policy to one directive and
a policy set under deny-overrides whole (APPC TF-3 5.6, XACML 2.0 Appendix C);
another combining algorithm, or a condition over another attribute, is
refused with the element named. The routes, the id and the extension set
are FerroBRIDGE’s own design: no specification defines a FHIR operation for
BPPC or APPC, or how a Consent maps onto openEHR access directives.
SMART App State
With [facade.app_state] on, Basic at the facade’s base is the SMART App
State endpoint of SMART App Launch 2.2.0, Persisting App State: an app keeps
a small amount of its own state at the EHR, such as display preferences or
the keys to an external data set. The CDR holds no Basic, so the facade
keeps these resources in a store of its own, apart from the identity map. The
discovery document lists smart-app-state, and the CapabilityStatement
instantiates smart-app-state-server and lists Basic with the
smart-app-state-basic profile.
| Interaction | Route | Answer |
|---|---|---|
| create | POST [base]/Basic | 201 with Location, ETag: W/"1" and the resource with its id and meta.versionId |
| update | PUT [base]/Basic/{id} with If-Match | 200 with the next ETag |
| delete | DELETE [base]/Basic/{id} with If-Match | 204 |
| search | GET [base]/Basic?code={system}|{code}&subject={reference} | a searchset of the matching state |
| search, global | GET [base]/Basic?code={system}|{code}&subject:missing=true | a searchset of the state with no subject |
The facade refuses with 400 a body that breaks the profile or the page’s
rules: an id or meta.versionId on a create, a Basic.code with other than
exactly one coding naming a system and a code, an extension with a value other
than valueString or with nested extensions, a modifier extension, and a
subject that is no absolute reference under the facade’s base to a Patient,
Practitioner, PractitionerRole, RelatedPerson or Person. A body over
256 KiB is a 413. An update or a delete without If-Match, with a stale
version, for an id already deleted, or an update that changes subject or
code, is a 412; an id never issued is a 404. A search takes code
once, as system|code, and subject or subject:missing once; another
parameter is a 400.
Under the guard every App State request needs a token, and the facade decides
the Basic permission against the state itself: c to create, u to update,
d to delete, s to search. A granular scope counts when it names only
code with this state’s system|code, so
patient/Basic.cuds?code=https://myapp.example.org|encrypted-phr-access-keys
reaches that one state code. A patient/ scope reaches only state whose
subject is [base]/Patient/{patient} of the launch context, and never global
state; a user/ or system/ scope reaches every subject and global state. A
search with no subject answers the state the token reaches. The store and
these access rules are FerroBRIDGE’s own design within the page’s
§Security and Access controls.
SMART launch Tasks
With [facade.launch_task] on, Task at the facade’s base serves the two
launch profiles of SMART App Launch 2.2.0, Task profile for requesting a SMART
launch: task-ehr-launch asks the EHR to launch an app with an optional
appContext, and task-standalone-launch asks for a standalone launch. An
EHR viewer lists the Tasks for the patient in view and acts on one; for an
EHR launch it registers the launch at the authorization server’s launch API
with the Task’s for, encounter and appContext. The CDR holds no
Task, so the facade keeps them in a store of its own.
| Interaction | Route | Answer |
|---|---|---|
| create | POST [base]/Task | 201 with Location, ETag: W/"1" and the Task under a new id |
| read | GET [base]/Task/{id} | the Task |
| search | GET [base]/Task?patient=…&status=…&code=… | a searchset of the matching Tasks |
A Task conforms to one profile or is refused with 422 naming the element:
Task.code carries launch-app-ehr or launch-app-standalone of
http://hl7.org/fhir/smart-app-launch/CodeSystem/smart-codes, exactly one
input of type smartonfhir-application carries the app’s URL as valueUrl,
and at most one input of type smartonfhir-appcontext carries a
valueString; other inputs stand. A body that is no R4 Task, or carries a
modifier extension, is a 400, and the id a create carries is ignored, as
FHIR R4 http.html says. patient takes Patient/{id}, a bare id, or an
absolute reference, matched against Task.for with this server’s base taken
as relative; status and code are tokens; each takes a comma-separated
list, and another parameter is a 400. The CapabilityStatement lists Task
with both profiles. Under the guard each interaction needs its Task
permission, and a patient/ scope reaches only the Tasks whose for is the
patient of its launch context. The store and these rules are FerroBRIDGE’s own
design.
Composition/$document assembles a document
FHIR R4 defines Composition/$document
(https://hl7.org/fhir/R4/composition-operation-document.html) and leaves the
assembly to the server. For a Composition a loaded context maps, such as
Composition-eu-lab, the facade reads the Composition as a read would and
answers a Bundle of type document:
- its
identifieris a name-based UUID of the composition version the content came from, so one version always names one document, and itstimestampis the moment of assembly; - entry 0 is the Composition, and every resource the context’s outbound run
creates follows it, in the order the run creates them, each with the URL a
read answers it at as its
fullUrl.
How the Bundle is assembled is FerroBRIDGE’s own design. The server stores no
document and reads no GraphDefinition, so persist=true and any graph are
refused with a 400 OperationOutcome rather than ignored; persist=false
is honoured. A Composition named by the URL of another server is refused the
same way. The operation is declared on Composition in the
CapabilityStatement. The R4 OperationDefinition describes the document as
wrapped inside a search Bundle; the facade answers the document Bundle itself.
$validate is a dry run of this server
POST /fhir/{type}/$validate runs the whole inbound path up to the commit and
commits nothing, which a test proves by counting EHRs and versions before and
after. It answers 200 for both verdicts: information issues when the
resource would commit, and an error issue carrying the validator’s message
verbatim when it would not. The operation-level statuses mirror the create
path, so a 415, a 422 for an unmapped profile or a 404 for an unknown
type reads the same on both routes.
The validator is this server, not the CDR. openEHR ITS-REST 1.1.0 documents no
composition-validation route, and a commit the bridge never finalises would
still write a version, so what runs is the mapping engine, the Web Template
validation the composition build performs, and the strict RM reader. Every
outcome says so in issue.details, so you can read what a verdict covers. A
CDR that refuses a composition this validator accepts still answers 422 on
the create.
Status mapping
No specification governs what a CDR answer becomes on the FHIR wire, so the mapping is FerroBRIDGE’s own design. It lives in one table, each row citing both sides, and one wire test asserts each row.
| The CDR answers | The facade answers |
|---|---|
422, template validation | 422 with validationErrors verbatim in issue.diagnostics |
412 | 412 carrying the current ETag |
204 on a read, the composition is deleted | 410 |
404 | 404 |
401 | 401, propagating WWW-Authenticate, never 403 |
400, 405 or 415 | 500: the bridge chose a call the CDR does not offer |
any 5xx | 502 carrying the upstream status |
400 on a search query | 500: the bridge wrote the AQL the CDR refused |
408 on a search query | 502 carrying the upstream status |
| no answer: a connect failure or a timeout | 502 |
| no call: the token endpoint for the CDR credential fails or refuses | 502 naming the token endpoint’s refusal, never the secret |
401, and the token endpoint refuses the one renewal | 502 naming the token endpoint’s refusal, never the secret |
Two answers come from the server itself, before or around the handler, and
under /fhir both are an OperationOutcome: a body over
body_limit answers 413 with the too-long issue, and a request that
outlasts request_timeout answers 504 with the timeout issue. The
504 replaces the plain 408 other routes answer, because a 408 tells a
client it may resend a write the CDR may already have committed. A handler
that fails unexpectedly answers 500 with the exception issue and the
request id in diagnostics; the cause stays in the server log.
Paths are written as well as read
The engine is a bidirectional path model over FHIR JSON, because a mapping has
to construct a resource as well as read one. The model is guided by the element
table of the generated fhir-types crate, so it knows which elements repeat,
which are choice types, and which alternatives a choice admits. The three
read-side FHIRPath forms the published mappings use (ofType() and as(),
extension(url), resolve()) are path-model operations; no FHIRPath evaluator
is embedded. FHIRconnect’s ^ parent operator and $fhirRoot are not FHIRPath,
and the path model resolves them when the mapping is compiled.
Terminology
The facade calls a configured FHIR terminology server for three operations:
$lookup to resolve a code’s display, $translate for a conceptmap
reference, and $validate-code. The $lookup case is the common one, because
openEHR requires DV_CODED_TEXT.value while FHIR leaves display optional. A
terminology failure is an error, never a coding with a missing display.
A mapping that names a conceptmap is translated through $translate on
every read, write, search and $validate, and on the HL7 v2 face. The map is
read as authored from openEHR to FHIR: a composition going out as FHIR is
translated forward with the map’s url, and a resource coming in is
translated with reverse=true. Every code is resolved before the composition
or resource is built, so a terminology refusal costs no CDR write. Only an
equivalent or equal match counts. An untranslated optional element is
reported as a loss, and an untranslated required one refuses the resource.
With no [terminology] section, a conceptmap mapping refuses with “no
terminology server is configured to translate through”.
A coding with no display that goes into a DV_CODED_TEXT, or into a
DV_TEXT whose value would otherwise fall back to the coding’s code (the
concept carries no text either), is looked up through CodeSystem/$lookup
on every run into openEHR (a write, $validate, $toopenehr and the HL7 v2
face): the display the server names becomes the value. A code the server does
not know refuses the resource unless
[terminology] display_fallback is true, which writes the code instead; a
failed call refuses either way. With no [terminology] section the code
stands as the value, and the run reports the fallback as a loss. An
DV_CODED_TEXT code of an archetype-local terminology (local or openehr)
is never looked up.
Search
FHIRconnect states that it “does not focus specifically on AQL and FHIRsearch”, so no specification governs FHIR search over an openEHR CDR. The surface below is FerroBRIDGE’s own design, built on the R4 search page for everything the client sees.
Declaring search beside a context
A context answers search only when a search declaration names it. The
declaration is a YAML file in the mapping directory whose name ends in
.search.yml or .search.yaml; the FHIRconnect loader skips those files, and
the facade reads them at boot after the mapping set compiles.
context: condition.problem-list # metadata.name of the context mapping
patient:
parameters: [patient, subject] # the names that address the EHR's subject
required: true # a search without one is a 400
order: # the total order every page is read in
- v/commit_audit/time_committed/value
- v/uid/value
parameters:
code:
type: token
node: { class: EVALUATION, archetype: openEHR-EHR-EVALUATION.problem_diagnosis.v1 }
path: data[at0001]/items[at0002]/value # the coded text, relative to the node
systems:
"http://snomed.info/sct": SNOMED-CT
onset-date:
type: date
node: { class: EVALUATION, archetype: openEHR-EHR-EVALUATION.problem_diagnosis.v1 }
path: data[at0001]/items[at0077]/value/value
recorded:
type: date
path: context/start_time/value # no node: read under the composition
A parameter names the node it is read under with node, the RM class and
the archetype id of an archetype root, and gives its path relative to that
node. A parameter with no node is read under the composition. A token
names the coded value itself, a DV_CODED_TEXT, a DV_TEXT or a
CODE_PHRASE, and the facade reads its code and its system from that one
value, so [system]|[code] never pairs the system of one diagnosis with the
code of another. A string or a date names a data value, with any
attribute below it.
The facade writes the query itself:
SELECT e/ehr_id/value, v/uid/value, c FROM EHR e CONTAINS VERSION v[LATEST_VERSION] CONTAINS COMPOSITION c,
restricted to the context’s template through
c/archetype_details/template_id/value. Each occurrence of a parameter read
under a node binds that node in the FROM, as
CONTAINS EVALUATION n0[openEHR-EHR-EVALUATION.problem_diagnosis.v1], so
the conditions of one occurrence read one node, while a repeated parameter
(an AND) may match a node of its own. Every search value travels as a bound
AQL parameter and never as query text.
The declaration is checked when the server starts, against the template the
context maps, and any of these refuses the start with the file named: an
unknown key, a context no loaded mapping compiles, a parameter type other
than token, string or date, a name under the _ prefix R4 reserves, a
node the template does not hold, a path the template does not hold, a path
that crosses a node which may occur more than once below the bound one (bind
that node instead), a token over a value that is not coded, a path that is not
one AQL path, a query that does not parse as AQL, two declarations of one
resource type over one template, two declarations of one type that state
different parameters, and a parameter that takes the code of a standard R4
search parameter of the resource type with another type (code on a
Condition is a token; patient and subject are references). R4 says
“standard parameters cannot be redefined”. A parameter that takes a standard
code names that parameter’s canonical as definition in the
CapabilityStatement, and a code R4 does not define for the type carries
none. order defaults to the commit time and then the version
uid; set it when your CDR orders better by something else, and end it with a
key that is unique per composition.
What a search answers
| Parameter | What it does |
|---|---|
a declared token | [code], [system]|[code], |[code] and [system]|; systems translates a FHIR system URI into the openEHR terminology id, and an unlisted system compares as written |
a declared string | starts-with by default, :contains and :exact |
a declared date | the range of the value’s precision, with the prefixes eq, ne, gt, lt, ge, le, sa and eb |
patient, subject (as declared) | [id], Patient/[id], an absolute URL on this server, or the :Patient modifier, resolved through the identity map to the EHR |
patient:identifier, subject:identifier | [system]|[value], the identifier a resource’s subject reference carries: the identity map’s subject keyed by that system and value, which the facade renders with that identifier; a subject rendered as a literal reference carries none and matches nothing, |[value] matches nothing, and [value] alone or [system]| is a 400 |
patient.identifier, subject.identifier, subject:Patient.identifier | with [facade.identifier_search] on: [value], or [system]|[value] where a system query is configured; the identifier is resolved to every demographic party that carries it and each party’s EHR, so a bare value two patients carry matches the resources of both (R4 search §3.1.1.4.10) |
_id | a logical id, resolved through the identity map to its composition |
_count | the page size, capped at [facade] search_count_max; 0 answers the total alone |
_sort | declared parameters read under the composition, - for descending, ahead of the declared order; a parameter read under a node is refused, because it has a value per node |
_summary | count answers the total alone; false is the default |
_total | none, estimate or accurate |
A comma inside a value is an OR and a repeated parameter an AND. An empty
parameter is ignored. A subject or an id the identity map does not know
matches nothing, so the answer is an empty searchset, never a 404, and no
query reaches the CDR. A subject is read from the map and never echoed from
the request.
A parameter the type does not declare is a 400 with not-supported naming
it. Send Prefer: handling=lenient and the facade ignores it instead, leaves it
out of the self link and reports it in an OperationOutcome entry with
search.mode = outcome. A modifier the facade does not support is a 400 in
both modes, because R4 makes that a SHALL. So are a malformed value, the ap
date prefix, and a string pattern carrying * or ?, which AQL LIKE reads
as wildcards with no escape (search it with :exact). The one supported
chain is identifier on a subject parameter: any other chain is a parameter
this server does not support. A modifier on the chain is a 400, and a
subject:Group.identifier names a target that is never an EHR subject, so it
matches nothing. The CapabilityStatement states the chain in the
documentation of each subject parameter, and only while it is on.
The searchset
The answer is a searchset Bundle with an id and meta.lastUpdated. Each
entry is one composition, with a unique fullUrl under the configured base and
search.mode = match, mapped back through the context’s program as a read
maps it. link[self] names the parameters the search used with the page size,
and link[next] appears when another page follows. Its _cursor is opaque:
follow the link as answered, because a cursor pasted onto another search is a
400.
Each entry of the context’s archetype in a composition is a resource of its
own. A query that binds a node answers a row per matching node, and the
search answers the entries that hold the matched nodes; a search that binds
no node, such as patient alone, answers every entry of each matching
composition. The rows of one composition sit together under the order, and
an entry the page already holds is passed over. Each page reads one row past
its room through the CDR’s offset and fetch, and a next link is written
only when another entry is left, its cursor at the first row of that entry’s
composition with the number of its entries already answered. Bundle.total
counts matching entries, never the page and never the nodes: a first page
that holds every match carries it at no cost, and _total=accurate on a
paged search costs one AQL count of the entries, which reads no composition.
The count binds the entry as CONTAINS <class> x[<archetype>], and AQL
CONTAINS also finds an entry nested in a SECTION, so a search that binds
a node or an _id, or a template that nests the entry, reads the rows and
counts each entry once instead. _total=estimate always answers from one
count query, and _total=none leaves the total out. _count=0 and _summary=count answer the total
alone, with no entries and no next link.
A search never answers an empty Bundle for a failed call. A CDR refusal reaches
the wire through the status table above: a 5xx or a 408 on the query is a
502 carrying the upstream status, and a 400 on it is a 500, because the
bridge wrote the AQL. A row the facade cannot read is a 502 naming the column,
never the value.
What the facade does not do
It does not materialise a FHIR store, it does not implement Subscriptions, and it does not send demographics to an external endpoint. Each of those is recorded as outside the current design, with its reasoning, on the tracker.
The FHIRconnect operations
FerroBRIDGE serves the two operations the FHIRconnect specification defines for
its engine: $tofhir turns an openEHR composition into FHIR resources, and
$toopenehr turns FHIR resources back into a composition. Both are pure
transformations. Neither reaches a CDR, and neither changes server state, so
you can call them from a facade, a test harness or a shell.
- The chapter and its pin
- Turning the lane on
POST /fhir/$tofhirPOST /fhir/$toopenehr- Query parameters
- The direct form
- Discovering the operations
- What a failure looks like
- Provenance on every run
- Resolving the patient
The chapter and its pin
The REST API chapter merged into the FHIRconnect specification on 2026-10-06
(pull request #93). FerroBRIDGE implements it at the specification commit
recorded in docs/VERSIONS.md and vendors the chapter with its FSH operation
definitions. The context fields are a fixed list: a call that supplies any
other part under context is refused with a structure issue, as the
chapter requires.
Turning the lane on
Configure a mapping set. [mappings] directory names the tree of FHIRconnect
mapping files. The operational templates they compile against come from
[mappings] templates when it names a directory, and otherwise from the
[cdr], which serves each template a context names. Everything is read once
at boot, so a mapping or a template that does not load stops the server rather
than the first request that touches it. [operations] carries the lane switch and the values a run needs beside
the payload. See Configuring the server.
Without [mappings], both operations answer 503 with an OperationOutcome.
POST /fhir/$tofhir
The body is a FHIR Parameters resource in application/fhir+json:
{
"resourceType": "Parameters",
"parameter": [
{ "name": "composition", "valueString": "<the composition as a JSON string>" },
{ "name": "templateId", "valueString": "Blood Pressure" },
{
"name": "context",
"part": [
{ "name": "ehr_id", "valueString": "53d89df2-5501-4455-9a65-565a5d1ddb7c" },
{ "name": "patient", "valueReference": { "reference": "Patient/123" } },
{ "name": "who", "valueReference": { "reference": "Practitioner/456" } },
{ "name": "onBehalfOf", "valueReference": { "reference": "Organization/charite" } }
]
}
]
}
The composition travels as a JSON string in either serialization. A canonical
composition carries its template at archetype_details.template_id; a FLAT one
carries none, so templateId is required with it and a FLAT payload without
one answers 400 with the issue code required. When the payload and
templateId both name a template and they disagree, the call is refused.
The answer is a collection Bundle carrying the mapped resources, exactly one
Provenance, and an OperationOutcome entry when the run declared a loss.
A composition can hold the archetype a context starts at more than once, for
example two diagnoses. The answer then carries one resource per occurrence,
and the one Provenance targets all of them. An occurrence
the context’s condition does not admit maps no resource and is counted as an
informational issue; when the condition admits none, the call is refused.
Two resources that would take one id refuse the call.
Without an identity seam, and when the mapping writes no id, a resource
takes the deterministic id the FHIRconnect engine chapter recommends: a hash
of the composition uid and the entry path. FerroBRIDGE hashes the
composition’s object_id, the part of its OBJECT_VERSION_ID that stays the
same across versions, with the path that names the occurrence: the template
path, with a later occurrence named by its place in its container, as in
/content[2]. The hash is SHA-256, written as 52 lowercase base32
characters. A new version of the composition keeps every id, and the FHIR
facade gives the same occurrence the same id.
POST /fhir/$toopenehr
The body is a FHIR Bundle, or a Parameters carrying it under bundle. The
answer is a Parameters with the composition as a JSON string and an optional
outcome. format selects the serialization: canonical by default, or
flat.
FerroBRIDGE picks the mapping by the profiles the Bundle’s resources claim in
meta.profile, narrowed by templateId when you supply one. A Bundle that
references more than one subject, or that carries more than one resource of the
mapped type, is refused: one Bundle maps to one composition.
Query parameters
templateId, format and ehr_id may travel in the query instead of the
body. The two forms are equivalent, and the body wins when both carry the same
field.
POST /fhir/$tofhir?templateId=KDS_Fall_einfach&ehr_id=53d89df2-5501-4455-9a65-565a5d1ddb7c
A structured value, a full Reference such as who or onBehalfOf, belongs
in the body.
The direct form
When you have a composition and want a Bundle back, the wrapper buys you nothing. The chapter therefore allows an un-enveloped form, and marks it as a deliberate deviation from the FHIR operations framework that stays outside the FHIRconnect FHIR implementation guide:
POST /fhir/tofhir
Content-Type: application/openehr+json
{ "_type": "COMPOSITION", ... }
POST /fhir/toopenehr?format=flat
Content-Type: application/fhir+json
<a FHIR Bundle>
POST /fhir/tofhir answers the Bundle itself and POST /fhir/toopenehr
answers the composition itself, with Content-Type: application/openehr+json. The media type is the one the chapter defines for
openEHR canonical JSON, with the suffix ordering of RFC 6839 §4.
Discovering the operations
With the facade enabled beside this lane, GET /fhir/metadata declares both
operations in CapabilityStatement.rest.operation, as tofhir and
toopenehr with the canonical OperationDefinition URL of each. When the lane
is off, the statement leaves them out. The direct forms are never declared:
the request body is no FHIR resource and the response is no Parameters, so
they fall outside the FHIR operations framework the statement describes, and
the chapter keeps them out of the FHIRconnect implementation guide.
What a failure looks like
FerroBRIDGE is strict, which the chapter leaves open. A mapping that cannot be
performed answers an OperationOutcome and no Bundle and no composition, so
you can never mistake a partial result for a complete one. A run that succeeded
but lost something reports each loss as an issue beside the result:
information for a composition field the engine filled, warning for content
that did not reach the output.
Every error is an OperationOutcome in application/fhir+json, with the R4
issue code that fits: required for a missing parameter, structure for a
parameter the operation does not declare or one given twice, value for the
wrong value type, not-found for a template or profile nothing answers,
multiple-matches when several mappings answer and nothing pins the choice,
business-rule for a Bundle with more than one subject, and processing for a
mapping that did not run to completion. A body in any other media type answers
415.
Provenance on every run
Every $tofhir Bundle carries one Provenance describing the transformation:
target references every mapped resource, recorded is the run time,
agent.who is context.who or the configured Device reference,
agent.onBehalfOf is context.onBehalfOf, and one entity with
role = derivation names the composition the run read, by its uid when it
carried one.
Resolving the patient
An openEHR composition identifies the patient through the EHR it belongs to, so
mapping to FHIR means resolving an EHR identifier to a patient. That belongs to
whatever owns patient identity in a deployment. context.patient is the
caller’s fallback: FerroBRIDGE never requires it, and when you supply it, it
takes precedence over the subject a mapping resolved on its own. Correctness
then rests with you, because a wrong reference attaches clinical data to the
wrong patient and nothing downstream catches it.
The OMOP ETL
The OMOP side of FerroBRIDGE turns openEHR content into rows in an OMOP Common
Data Model v5.4 database, driven by OMOCL mapping files. OMOP is a relational
analytics schema rather than an API, so the deliverable is populated tables.
The sink, the runner, the OMOCL engine and ferrobridge cdm init are built,
and ferrobridge etl run maps each composition with the files in
[mappings] omocl and, when the operator API is on, the files the console
saved under [operator] mapping_dir/omocl/. A provisioned file owns a path
both directories hold, and two files that define the same mapping refuse the
run.
- A batch job, not a listener
- The tables in play
- The row types are generated
- Concept resolution is SQL, not terminology
- Keys, re-runs and watermarks
- The PERSON row
- Deleted compositions
- The derived tables
- The visits the query no longer answers
- Tying a composition to its visit
- The DEATH row
- Providers and visit details
- Pseudonymisation
- The composition query
- Loading FHIR with no CDR
- Checking a populated database with the Data Quality Dashboard
- Validating OMOCL files
- The incremental load
- What you need in place
A batch job, not a listener
The ETL runs as a job over AQL. It queries the CDR with POST /query/aql,
converts each EHR’s compositions through the loaded OMOCL files, and writes
typed CDM rows. It pulls; the CDR does not push.
That follows from the specification surface rather than from taste: change notification is not part of openEHR ITS-REST 1.1.0, so there is nothing conformant to subscribe to. The incremental load follows the change feed, which is a FerroBRIDGE extension, and the batch path stays the conformant baseline.
The tables in play
PERSON, OBSERVATION_PERIOD, VISIT_OCCURRENCE, VISIT_DETAIL, CONDITION_OCCURRENCE, DRUG_EXPOSURE, PROCEDURE_OCCURRENCE, DEVICE_EXPOSURE, MEASUREMENT, OBSERVATION, DEATH, SPECIMEN, FACT_RELATIONSHIP, NOTE, and NOTE_NLP, beside the vocabulary tables.
Some of those come from mappings and some are derived. PERSON rows come per
EHR (The PERSON row). VISIT_OCCURRENCE comes from a configured AQL query, checked when the
configuration loads, grouped by ehr_id and source. OBSERVATION_PERIOD is
derived from the first and last clinical event per person, and the ERA tables
run the SQL the CDM publishes. The CDM leaves each of these to the ETL’s
discretion, so each is labelled as FerroBRIDGE’s own.
An OMOCL record names its target table in type. The CDM says the domain of
the resolved standard concept decides the table, so FerroBRIDGE validates the
two against each other: a literal concept whose domain disagrees with type
refuses the mapping at load, and a resolved concept whose domain disagrees
refuses the record. A row is never moved to a table the mapping did not name.
A source code the vocabulary maps to several standard concepts in the record’s
domain writes one row per concept, each with the same source value and source
concept, as the CDM conventions ask.
The row types are generated
The CDM v5.4 row types are generated from the OHDSI CommonDataModel field
definitions, which publish the model in machine-readable form. The PostgreSQL
DDL is not regenerated: OHDSI renders it through a dialect layer that sits
outside those definitions, so the rendered files are vendored verbatim and
applied by ferrobridge cdm init, and a test asserts the generated columns
equal the DDL’s. Nothing hand-transcribes a column list. The foreign keys of
OHDSI’s constraints file are applied only by cdm init --with-constraints,
which PostgreSQL refuses at the pinned OHDSI tag; see
What cdm init does.
Both clients the ETL opens to the CDM database, the concept resolver and the
writer, connect over the TLS the sslmode of [cdm] url names: disable,
require, verify-ca or verify-full, with the CA from [cdm] tls_ca_file.
The URL must name one; see Configuring the server.
Concept resolution is SQL, not terminology
A source code becomes a concept_id through the locally loaded OHDSI
vocabulary: the CONCEPT table, the standard_concept flag, the domain, and the
CONCEPT_RELATIONSHIP “Maps to” traversal. This is SQL over the vocabulary
tables in the same database as the CDM rows. It never goes to the FHIR
terminology server, which is a different component serving the FHIR side.
The lookup requires a valid concept (invalid_reason empty, the validity
dates containing the record date) and a deterministic order, and an ambiguous
match is an error rather than the first row. An unmapped code lands as
concept_id = 0 with the source value kept in its source column and is counted
in the run report. The CDM defines 0 as “no matching concept”, and keeping
the source value is what makes the gap auditable later.
Each composition’s rows are written together or not at all, through binary
COPY, and a re-run of the same input replaces its rows rather than adding
duplicates.
Keys, re-runs and watermarks
Every CDM v5.4 primary key is a 32-bit integer, so the bridge assigns ids
from one PostgreSQL sequence per table, kept in a schema of its own beside the
CDM ([cdm] bridge_schema, ferrobridge by default). A side table there maps
each row’s natural key (the EHR, the versioned composition, the archetype root,
the occurrence, and the mapping entry that wrote it) to its id, so a later
version of a composition keeps the ids of the rows it still has and deletes
the ones it no longer has. One
ehr_id is one PERSON; the bridge does not reconcile a person across EHRs.
An exhausted sequence refuses the composition with a typed error.
The PERSON row belongs to the person, not to the composition whose mapping
wrote it. Every clinical table names its person through a person_id foreign
key to PERSON (CDM v5.4), so when a later version of that composition no
longer writes the person, or the composition is removed, the PERSON row
stays while any row of the person remains. It goes only when no composition
writes it and no row of the person is left; the person map keeps the EHR’s
person_id, so a later row of the EHR takes the same id. The newest version
that writes the PERSON row rewrites its columns. This is FerroBRIDGE’s own
design.
The PERSON row
Every clinical table names its person through person_id, a required
foreign key to PERSON (CDM v5.4), so every person_id a run writes names a
PERSON row. Its columns come from the first of these that applies:
- A
PERSONrow an OMOCL mapping writes. The OMOCL corpus maps theopenEHR-EHR-ADMIN_ENTRY.person_data.v0archetype toPERSON(person_data/person_data_v0.yml); when one of the person’s compositions carries it, its row replaces whatever row the person held, keeping theperson_id. Several compositions of one EHR may write it; the one committed last rewrites the columns, and the row stays while any of them or any row of the person remains. The corpus file reads gender atitems[at0019]ofopenEHR-EHR-EVALUATION.gender.v1, a node the KDS person template (KDS_Person) does not carry, so on KDS data every person takesgender_concept_id0. For KDS data, use FerroBRIDGE’s own filecrates/omocl/tests/fixtures/projects/ferrobridge/kds_person/kds_person_data.ymlin place of the corpus file: it reads the administrative gender atitems[at0022], resolves its code through the loaded vocabulary and keeps the code ingender_source_value. - Otherwise,
[cdm] person_policy:create_on_first_sight, the default, writes a placeholder row the first time a row or a visit names the EHR:gender_concept_id,race_concept_idandethnicity_concept_id0 (the CDM’s concept for “no matching concept”),year_of_birth0, andperson_source_valuetheehr_idwhen it fits the column’s 50 characters.existingrefuses every row whose EHR has noPERSONrow.
The CDM requires year_of_birth, and its ETL convention drops every person
with no year of birth. existing follows that convention. The placeholder’s
0 is a value no person was born in: a year taken from the person’s first
event would look real and corrupt every age computed from it, while 0 fails
the Data Quality Dashboard’s plausible-value check for year_of_birth, so
every placeholder shows up there. The run report prints the PERSON rows
and the placeholders among them (persons in the JSON). Both policies are
FerroBRIDGE’s own design.
Each committed composition leaves a watermark naming the version written.
ferrobridge etl run --resume skips every composition whose watermark names
the version the query answers and runs the rest, so a run that stopped part
way through continues exactly. A composition the mapper or the database
refuses is rolled back, counted in the run report with the reason, and the
run goes on.
The run report counts, per mapping and in total, the rows written per table,
the concept_id = 0 assignments, the FACT_RELATIONSHIP rows written with
relationship_concept_id = 0, the source fields no mapping wrote, and every
refused record with its table, column and openEHR element. It also counts the
deletion checks below and lists each composition they removed, kept or could
not find, by its versioned object id, never with a clinical value. etl run
prints it as text and as JSON.
The run history
Once a run of etl run or etl fhir finished, it keeps its report in the
run table of the bridge schema ([cdm] bridge_schema), with when it started
and finished, so ferrobridge serve can show past runs: the operator API
answers them at GET /operator/etl/runs,
and the operator console lists them on the OMOP ETL page’s Runs tab. A
bridge schema an earlier release created gets the run table from
ferrobridge cdm init, which leaves every other table as it is. When the
record is refused, the job still prints its report and then exits with the
refusal, so the load it committed is never hidden. No specification governs
the history: it is FerroBRIDGE’s own design.
Deleted compositions
A deletion in openEHR is a new version whose data is Void (openEHR RM Common
1.1.0 §6.2.5), so the LATEST_VERSION query stops answering a deleted
composition and the run never reads it again. ITS-REST 1.1.0 has no change
feed, so after the compositions each run checks every composition an earlier
run committed and this run’s query did not answer. It reads the
composition’s latest version with GET /ehr/{ehr_id}/composition/{versioned_object_uid}
and acts on the answer:
| Answer | Meaning (composition_get) | What the run does |
|---|---|---|
204 | the composition is deleted | removes its rows, its FACT_RELATIONSHIP links and its watermark in one transaction (under deletions = "remove"), or lists it and keeps them (under deletions = "report") |
200 | the composition exists, and the query left it out | keeps the rows and counts it as extant |
404 | the CDR knows no such EHR or composition | keeps the rows and lists it, because no deletion is confirmed |
| anything else | no documented answer | ends the run with an error naming the composition |
A composition missing from the query because the query changed is never
removed: only the CDR’s 204 removes rows. The EHR keeps its person_id.
The checks run in batches of page_size watermarks with eight in flight, and
a removal takes the same per-composition lock a commit takes. The derived
tables are rebuilt after the removals, so the observation period and the eras
of the person no longer count the deleted rows, and the visits come from the
visit query, which no longer reads the deleted composition’s context. A
visit the visit query no longer answers at all is removed after the
removals, so the observation period shrinks with it (The visits the query
no longer answers). A second run finds no watermark left for the composition and changes nothing.
The CDM defines no deletion, so the removal is FerroBRIDGE’s own design.
With --since, the query answers only the changed compositions, so every
other composition is checked each run.
The derived tables
OBSERVATION_PERIOD spans the first to the last clinical event of each
person, one period per person. The CDM’s EHR guidance suggests more (an end
60 days after the last event, gaps from a persistence window); FerroBRIDGE
applies none of it, and says so.
CONDITION_ERA and DRUG_ERA run the two scripts on the CDM’s SQL scripts
page. The page publishes them in OHDSI SQL for SqlRender, which PostgreSQL does
not run, so the bridge carries their PostgreSQL form, changed only in dialect,
and a test fails when the published scripts change. The drug era script reads
ingredients of the RxNorm vocabulary only, as published.
VISIT_OCCURRENCE comes from the [etl.visits] query, grouped by EHR and
source, from the earliest start to the latest end. A time with an offset keeps
its wall-clock time, because the CDM datetime has no zone. The same holds for
every date and time a mapping reads from a composition: the offset is not
normalised, and the row keeps the wall-clock time the source wrote. The visit concept
and the visit type concept are configuration with no default.
The visits the query no longer answers
Each run writes the visits the [etl.visits] query answers before the
compositions. After the compositions and the deletion check, and before the
derived tables, it removes every visit an earlier run wrote that the query no
longer answers, with the bridge’s record of its key, unless a CDM row still
names it through visit_occurrence_id. Such a visit stays, counted in the
run report as unanswered and kept, so no row names a missing visit; once the
rows that name it are written again without it, a later run removes it.
The visit query is never bound to --since, so its answer holds every visit
the deployment derives, and only a visit the whole query no longer answers is
a candidate. A visit query that names $since refuses the start, since the
parameter would reach the CDR unbound. A run whose visit query refused a row removes no visit, because
the refused row may belong to a visit the query did answer. This is
FerroBRIDGE’s own design.
Tying a composition to its visit
The CDM asks every clinical event to carry its visit where one exists, and leaves the tie to the ETL. No specification governs the rule below: it is FerroBRIDGE’s own design.
- A composition belongs to the visit of its own EHR whose window, from the
visit’s start to its end, contains the composition’s
context/start_time. Both bounds are inclusive. - A composition without a context, a persistent one, is tied by the first date its mapping resolved on its first row, with that row’s time when it has one.
- When several visits contain the moment, the visit whose source (the
visit_sourcethe[etl.visits]query selects) equals the name of the composition’scontext/health_care_facilitywins. When no source matches, or no facility is recorded, the bridge does not guess: the composition’s rows carry no visit. - A composition inside no visit window carries no visit either.
- Times are compared as wall-clock times to the second, with the offset dropped, the same reading the visits get. Where one side carries a date and no time, the two dates are compared.
The run report counts the committed compositions tied to a visit, those
inside no visit, and those inside several that the facility did not decide.
A run without [etl.visits] ties nothing and counts nothing.
The DEATH row
The OMOCL Death target writes DEATH, which the CDM gives no key of its own:
a person has at most one DEATH row, identified by person_id. When several
compositions of a person write one, the composition committed last gives the
row its columns. When that composition is removed, or a new version of it no
longer writes a death, the newest of the remaining writers rewrites the row,
and the row goes when none remains. This rule is FerroBRIDGE’s own design:
the CDM leaves the choice among several death records to the ETL.
Providers and visit details
An OMOCL mapping may write provider_id (under ConditionOccurrence and
DrugExposure) and visit_detail_id (under ConditionOccurrence and
DeviceExposure). The CDM keys PROVIDER and VISIT_DETAIL by integers no
composition carries, so the bridge keys them by the text the mapping’s path
reads. No specification governs these keys: they are FerroBRIDGE’s own design.
- A provider is keyed by that text alone. The first composition that
names it creates a PROVIDER row with the text in
provider_source_value(when it fits the column’s 50 characters), and every later row that names the same text refers to that row. - A visit detail is keyed by the composition’s visit and the text. The
first row that names it creates a VISIT_DETAIL row inside the visit, taking
the person,
visit_detail_concept_id, dates and type concept from the visit as it stands at that moment, with the text invisit_detail_source_value. A composition tied to no visit cannot name a visit detail, so such a row is refused and counted in the run report.
Both rows are created in the composition’s own transaction, and the bridge
schema keeps their keys in provider and visit_detail. Neither row is
removed when a composition that named it is removed, because other
compositions may still name it.
Pseudonymisation
An OMOP database is usually handed to researchers, and the identifiers and
dates the bridge writes are personal data. With [cdm.pseudonymisation] set
(the section), the writer
transforms every row before it reaches the CDM. The CDM defines no
pseudonymisation, so what is transformed is FerroBRIDGE’s own design over the
CDM field definitions:
person_source_value,provider_source_value,care_site_source_value,location_source_value,specimen_source_id,visit_source_value,visit_detail_source_valueandfamily_source_value, the columns the field definitions describe as a link back to the source, carry an HMAC-SHA-256 pseudonym under the configured key, 40 hex characters. The placeholderPERSONrow’s EHR id and every derived visit’s source are pseudonymised the same way.- The provider’s
provider_name,npianddea, and a location’saddress_1,address_2,zip,latitudeandlongitude, are NULL. - With
date_shift_days = N, every date and datetime of a person’s rows moves by one whole number of days in[-N, N], taken from the key and the person’s EHR id. The birth year, month and day move with it when all three are known. Intervals within a person stay as they were, and the derived tables, rebuilt from the shifted rows, agree with them.
What it does not de-identify: free text (note_text, value_as_string), the
code *_source_value columns, a year of birth with no month or day, and the
concepts of rare conditions. The bridge schema keeps the source identifiers it
needs to replace a composition’s rows. Treat the CDM as pseudonymised personal
data, and apply your own suppression where you need anonymised data.
The composition query
The [etl] aql query selects each composition whole beside its ehr_id and
version_uid, aliased by those names, with an ORDER BY and no LIMIT. It
may also select the versioned_object_uid; when it does, the bridge checks it
against the version, and when it does not, the bridge reads it from the
version_uid, whose first part names the versioned object (openEHR RM
Common 1.1.0, OBJECT_VERSION_ID).
The bridge reads the answer page by page with the offset and fetch of the
query API, and a row keeps its page only when the order is total. Every
version committed in one contribution carries the contribution’s commit time
(openEHR RM Common 1.1.0, Contributions), so two rows can tie on the commit
instant. The ORDER BY of both queries therefore ends in v/uid/value, the
uid of the VERSION v[LATEST_VERSION] variable, which names one row each,
and the bridge refuses to load a query whose order ends in anything else.
Both queries read every COMPOSITION below VERSION v[LATEST_VERSION], and
the bridge refuses to load a query that reads one without that scope. A
deleted composition’s newest version holds no data (openEHR RM Common 1.1.0
§6.2.5), so that scope leaves it out. A superseded version neither feeds a
mapping nor widens a visit, so a changed composition is written once. AQL
1.1.0 names LATEST_VERSION and ALL_VERSIONS and does not say which scope
a query without a VERSION gets, so the scope is written out:
SELECT e/ehr_id/value AS ehr_id, v/uid/value AS version_uid,
vo/uid/value AS versioned_object_uid, c AS composition
FROM EHR e CONTAINS VERSIONED_OBJECT vo
CONTAINS VERSION v[LATEST_VERSION] CONTAINS COMPOSITION c
WHERE v/commit_audit/time_committed/value > $since
ORDER BY v/commit_audit/time_committed/value, v/uid/value
A CDR that does not take VERSIONED_OBJECT in the FROM runs the same query
without the vo step and its column; the bridge then reads the versioned
object from the version_uid.
The query selects the composition whole, and the mappings read its leaves.
Leave leaf paths through a repeated node, such as two values of one
events list, out of the SELECT: AQL 1.1.0 does not define which node
each of them comes from, and a CDR may pair values of two different nodes in
one row.
Loading FHIR with no CDR
A site that exposes FHIR R4 and runs no openEHR CDR loads the CDM with
ferrobridge etl fhir PATH. The job reads a Bundle, one resource or an NDJSON
file of resources (the FHIR Bulk Data format), and runs each resource through
the two mapping languages in turn: the FHIRconnect set of [mappings] directory, compiled against the templates of [mappings] templates, maps it
into an openEHR composition held in memory, and the OMOCL set of [mappings] omocl maps that composition to CDM rows the writer commits. No composition is
stored anywhere. The job reads [etl] for the type concepts and the
vocabulary aliases, and [cdm] for the database; it needs no [cdr] and no
[etl] aql. No specification governs the chaining: it is FerroBRIDGE’s own
design, and each hop stays governed by its own specification.
-
Identity. A composition built in memory has no identifiers a CDR issued, so the job derives them: the versioned composition from the resource’s type and id, the version from
meta.versionIdwhen it is a positive integer (1otherwise), and the EHR from the reference the resource names its subject by, a Patient naming itself. Running the job again over the same input writes the same rows under the same ids, and a resource whosemeta.versionIdmoves replaces its rows. -
Time. A resource is mapped at its
meta.lastUpdated, so a composition field FHIRconnect defaults to the run time takes the same value on every run. A resource without one takes the time the job started. -
What reaches the CDM is what the two mapping sets cover. The published FHIRconnect library’s Procedure and MedicationAdministration mappings are left out at load (
mapping checknames why), so a site maps those resources with mappings of its own; a Procedure’sperformed[x]does not yet reachACTION.time(#1226). An Encounter reaches no VISIT_OCCURRENCE, and the job derives no visit, since the visit query reads a CDR. -
Nothing disappears. A resource no FHIRconnect program maps, one the FHIRconnect run refuses, one with no id or no subject, and a composition OMOCL refuses are each counted and listed in the run report, which adds a
resourcesline (read, mapped, unmapped, refused, and the losses the FHIRconnect run declared). -
Every element has an outcome. The JSON report carries a
ledger: per input resource, every element with a value and one of four outcomes:mapped(with the openEHR node it reached and thetable.columntargets that read it),dropped(a mapping declared it does not run, with the loss),refused(with the reason), orunmapped(no mapping names it, or no OMOCL column reads where it went). A data-type cell reads its element whole, so the elements below one share its outcome, and the text report adds aledgerline with the counts. -
Every row names its resource. The bridge schema’s
resource_origintable ties each composition to the resource type, id andmeta.versionIdit was mapped from, and through the natural-key side table each CDM row to that resource. To find where a row came from, or every row a resource became:SELECT o.resource_type, o.resource_id, o.resource_version FROM ferrobridge.record r JOIN ferrobridge.resource_origin o USING (versioned_object_uid) WHERE r.cdm_table = 'condition_occurrence' AND r.surrogate_id = 1; SELECT r.cdm_table, r.surrogate_id FROM ferrobridge.resource_origin o JOIN ferrobridge.record r USING (versioned_object_uid) WHERE o.resource_type = 'Condition' AND o.resource_id = 'c-1';
Checking a populated database with the Data Quality Dashboard
The bridge carries a Rust port of the OHDSI Data Quality Dashboard’s conformance and completeness checks and its seven temporal plausibility checks (v2.9.0, Blacketer et al., JAMIA 2021): observation periods that overlap, dates before birth or the date they must follow, dates more than 60 days after death, dates a week outside their visit, and starts after their ends. Each is planned where the Dashboard’s own settings enable them, with their thresholds:
ferrobridge dq check # one line per failing check, then the counts
ferrobridge dq check --format json # the Dashboard's result fields
The job reads the [cdm] section, runs every check over the CDM schema
(the vocabulary tables left out, as the Dashboard leaves them out by
default), and exits 1 when a check fails or cannot be evaluated. A check
of a missing or empty table, or of a missing or unpopulated field, is marked
not applicable with its reason, as the Dashboard marks it, and counts as
neither. The JSON document holds CheckResults (one object per check, in the
Dashboard’s result columns), Overview (its counts) and the run’s
timestamps. With [etl] quality_checks = true, etl run runs the same
checks over the tables it wrote and adds their verdicts to the run report; a
failed check never rolls a committed load back.
The plausibility checks are not ported. To run them, or the R tool’s own viewer, run the Dashboard itself as below.
Running the R package
The Dashboard itself is an R package (https://ohdsi.github.io/DataQualityDashboard/), with no container image of its own, so you run it from any R session that can reach the database:
-
Populate the database:
ferrobridge cdm init, load the vocabulary, thenferrobridge etl run. The CDM tables are in[cdm] schema(cdmby default); the bridge’s own tables are in[cdm] bridge_schemaand are not part of the CDM, so the dashboard is never pointed at them. -
Create a schema for the results, for example
CREATE SCHEMA dqd_results;. -
In R, install the package and the PostgreSQL driver:
install.packages("DataQualityDashboard") DatabaseConnector::downloadJdbcDrivers("postgresql", pathToDriver = "~/jdbc") -
Connect and run the checks against CDM v5.4:
connectionDetails <- DatabaseConnector::createConnectionDetails( dbms = "postgresql", server = "localhost/ferrobridge", port = 5432, user = "ferrobridge", password = Sys.getenv("CDM_PASSWORD"), pathToDriver = "~/jdbc" ) DataQualityDashboard::executeDqChecks( connectionDetails = connectionDetails, cdmDatabaseSchema = "cdm", resultsDatabaseSchema = "dqd_results", cdmSourceName = "FerroBRIDGE", cdmVersion = "5.4", outputFolder = "dqd-output", writeToTable = TRUE )The
serverargument ishost/database, asDatabaseConnectordocuments for PostgreSQL. -
Open the result with
DataQualityDashboard::viewDqDashboard()on the JSON file the run writes intodqd-output, and record every failing check with its adjudication.
Validating OMOCL files
OMOCL publishes no JSON schema, so FerroBRIDGE authors one from the grammar
tables and the published mapping library, validates every file against it
before running anything, and offers that schema upstream. The grammar also
leaves the reading of alternatives open; FerroBRIDGE tries them in order and
the first present value wins, which is the only reading the published library
is consistent with. A CustomMapping names a converter compiled into the
binary, and an unknown name refuses the file. A mapping that fails validation
is refused at load time.
A literal concept id (code: 3004249, or a value of a conceptMap) is a
concept of the OHDSI vocabulary, so it can only be checked against a loaded
one. With [cdm] configured and a vocabulary loaded,
ferrobridge mapping check --vocabulary
adds a diagnostic for every literal the vocabulary does not hold and every
literal whose domain is not one the CDM field definitions name for its column
(omocl-unknown-concept, omocl-domain-mismatch). Concept 0 is exempt.
Without [cdm] or [mappings] omocl the flag refuses to start.
The incremental load
[omop_incremental] (configuration)
turns on a consumer of the change feed that keeps the CDM
database current between batch runs. It runs on either change-feed source
and commits through the same per-composition step etl run uses: the
template read from the CDR, the validation, the tie to a visit, the OMOCL
mapping and the one-transaction commit. For each composition an event names,
the load reads its latest version over ITS-REST 1.1.0 GET /ehr/{ehr_id}/composition/{versioned_object_id}:
200: the composition is committed as a batch run commits it;204: the latest version is a deletion, and the composition’s rows go under[etl] deletions, as the batch run’s deletion sweep removes them;404: the CDR does not know the composition, and the CDM keeps what it holds.
An erasure from the reference CDR’s feed removes the rows of every
composition it names, or of every composition of an erased EHR. The visits
are read once per pass, before its first commit or its derivation, and the
derived tables are rebuilt once per pass, before the pass acknowledges anything, so a pass the
derivation fails is read again. A composition the mapper or the writer
refuses is a poisoned event, parked in the dead-letter
store after
[change_feed] max_attempts passes; a CDR or CDM database that does not
answer is transient, and the load reconnects to the database on its next
event.
The load ignores [etl] aql: it commits every composition the feed names.
A batch run after an incremental run over the same compositions writes the
same rows, which the container lane checks. The load is degraded on the
readiness page while it cannot follow, under the name omop-incremental,
and the console’s Events page lists it beside the events lane.
What you need in place
A PostgreSQL CDM v5.4 database built from the OHDSI DDLs, an Athena vocabulary export loaded into it, a CDR to read from, and the OMOCL files for the archetypes you care about. The deployment shape page lists the neighbours in full.
The change feed
The change feed hands each commit of the CDR to the consumers that follow it, so a consumer acts on a change without a batch run. openEHR ITS-REST 1.1.0 defines no change notification, subscription or bulk export, so no specification governs the feed: it is FerroBRIDGE’s own design. The batch ETL over AQL stays the conformant baseline. An event names what changed, and a consumer reads the change itself over ITS-REST.
The [change_feed] section picks one of two sources
(configuration). Every consumer
runs on either source. The consumers are the events lane, the
incremental OMOP load and the outbound FHIR lane.
How a consumer follows the feed
Each consumer reads under its own reader name, and the reader’s watermark is how far the consumer has finished. A consumer reads a page of events after its watermark, finishes them in order, and then moves the watermark to the last event it finished:
- the watermark moves only forward, and only over events the consumer finished;
- a failed read, a refused acknowledgement or an event the consumer could not finish leaves the watermark where it was, and the event is read again on the next pass, so delivery is at least once and a consumer deduplicates;
- a restart resumes at the first event the consumer had not finished.
While a consumer cannot follow (the CDR is down, it refuses the credentials,
or the consumer’s own sink refuses), its health indicator reports degraded
with the reason, and readiness stays up: the events wait at the source.
Several consumers
Every consumer section that is on follows the one [change_feed] source on
its own task, under its own reader name: its own cursor on the reference
CDR’s feed, or its own row in the watermarks file of the AQL source. Each
consumer acknowledges only the events it finished, so a consumer that stalls
never holds another one back, and each has its own health indicator. Give
every consumer a reader name of its own; on FerroEHR, name each one in
[outbox] readers.
Poisoned events and the dead-letter store
A consumer reports each failure as transient or poisoned. A transient
failure (the sink is unreachable, a call timed out) leaves the watermark
where it was, and the event is offered again on the next pass for as long as
it takes; it never counts towards parking. A poisoned failure is a fault of
the event itself, which fails the same way every time it is offered.
FerroBRIDGE counts the poisoned passes of each event in the redb file
dead_letters names. On the pass that reaches max_attempts (5 by
default), the event is parked in that file with its cause and the number of
passes, and the consumer moves past it. A parked event is never dropped: it
stays in the store until a replay finishes it.
The Events page of the operator console
lists the parked events of each consumer with their cause, and its Replay
button asks for one to be offered again. The same is on the operator API:
GET /operator/events lists every consumer with its parked events, and
POST /operator/events/{consumer}/parked/{id}/replay answers 202 once the
event is marked. Before its next page the consumer offers each marked event
again: a finished one leaves the store, one that fails poisoned again is
parked again with the new cause, and a transient failure keeps the request
for the next pass. A replay offers the event out of its commit order, so
replay an event once whatever made it fail is fixed. The store holds the
event’s identifiers and provenance as the feed served them, never clinical
content.
The AQL source (source = "aql")
The AQL source works against any CDR that serves ITS-REST 1.1.0. It polls
POST /query/aql with this query, binding $since to the watermark instant:
SELECT e/ehr_id/value, v/uid/value, v/contribution/id/value,
v/commit_audit/time_committed/value,
v/commit_audit/change_type/defining_code/code_string,
c/archetype_details/template_id/value
FROM EHR e CONTAINS VERSION v[ALL_VERSIONS] CONTAINS COMPOSITION c
WHERE v/commit_audit/time_committed/value >= $since
ORDER BY v/commit_audit/time_committed/value ASC, v/uid/value ASC
Each row is one composition version and one event. FerroBRIDGE keeps each
reader’s watermark itself, in the redb file watermarks names: the last
commit instant the reader finished, with the version uids it finished at that
instant. Two versions can share one time_committed, so the query reads the
watermark instant again and skips only the versions already finished; a
version committed at the same instant after the watermark moved is still read.
A reader with no watermark starts where start says: now (the default)
offers nothing committed before its first read, beginning offers every
version, and an RFC 3339 instant offers what was committed from then on.
The AQL source has limits a consumer has to accept:
- Polling latency. A change is seen on the next poll, up to
poll_intervalafter its commit. - No commit order across EHRs. Events come in order of
time_committed. Commits whose instants tie, or a CDR whose nodes’ clocks differ, give an order that is not the commit order, and a version that becomes visible after the watermark passed its instant is not read. - Deletions only where the CDR answers them. A deletion is a version with
the
deletedchange type, and it is read only when the CDR answers that version underCONTAINS COMPOSITION c. - Compositions only. EHR status, folder and demographic changes are not read.
The reference CDR’s outbox feed (source = "ferroehr")
FerroEHR, the reference CDR, writes each commit into a transactional outbox in
the commit’s own transaction and serves it over a cursor feed outside
ITS-REST. It keeps two outboxes, clinical and party, each with its own
seq and its own cursor per reader, and FerroBRIDGE reads both on every pass
so neither holds back the CDR’s pruning. Any CDR may serve the same contract:
GET {url}/admin/outbox/{reader}?limit=<1..1000>&domain=<clinical|party>answers200with{"reader": "<name>", "events": [...]}, the events after the reader’s cursor inseqorder, and404for an unknown or inactive reader;POST {url}/admin/outbox/{reader}/ack?domain=<clinical|party>with{"last_seq": <n>}answers204and moves that outbox’s cursor, and409whennlies below the cursor or above the last event.
Each event carries the contribution, the EHR (null in the party outbox),
the commit instant and one entry per changed versioned object (vo_id,
kind, sys_version, version_tree_id, change_type, template_id),
identity and provenance only. change_type is the openEHR audit change type
code as text, such as 249 for a creation or 523 for a deletion. An
erasure arrives as a tombstone, "event": "erase", which names the erased
EHR or party objects and carries no contribution and no commit instant.
Over this source each outbox cursor on the CDR is the watermark, so
FerroBRIDGE keeps none of its own, and a consumer acknowledges each outbox
over the prefix it finished. The feed adds what the AQL source cannot give:
one commit order per outbox, every kind of versioned object, deletions and
erasures. The reader names come from the CDR’s own configuration
([outbox] readers on FerroEHR), and the [cdr] credentials need the scope
the CDR names for the outbox routes (__ferroehr.outbox on FerroEHR). The
CDR leaves out the events of an EHR under a restriction and serves them once
the restriction is lifted, as long as the cursor has not passed them.
The events lane
The events lane publishes a small message for every commit of the CDR to an AMQP 0.9.1 broker (RabbitMQ), so downstream systems learn about a change without polling: an analytics pipeline, a care-coordination service, a cache that needs invalidating. No specification governs eventing: the lane is FerroBRIDGE’s own design.
The lane is a consumer of the change feed, so it runs
against any CDR: on the AQL source it publishes composition versions, and on
the reference CDR’s outbox feed it publishes every commit of either outbox,
deletions and erasures included. It is off by default and is switched on with
[change_feed] and [events] (configuration).
The message
Each changed version is one message, published persistently to a durable
topic exchange. The body is JSON: the event as the change feed served it, plus
the version_index of the version the message names.
| Member | Meaning |
|---|---|
contribution_id | The contribution the change belongs to; absent on an erasure |
ehr_id | The EHR; null for a demographic change |
committed_at | The commit instant; absent on an erasure |
versions[] | One entry per changed object: vo_id, kind, sys_version, version_tree_id, change_type, template_id |
seq | The delivery sequence number of the reference CDR’s outbox; absent on the AQL source |
event | erase on an erasure tombstone of the reference CDR; absent otherwise |
version_index | Which entry of versions this message is for |
The message carries identifiers and provenance, never clinical content. A
consumer that needs the content reads it from the CDR’s REST API with its own
credentials, for example GET /ehr/{ehr_id}/composition/{vo_id}.
Routing keys and queues
Every message is published under a three-word routing key:
<kind>.<change_type>.<template_id>
For example COMPOSITION.249.openEHR-EHR-COMPOSITION_encounter_v1. AMQP topic
keys use . between words, so every character of a value outside
[A-Za-z0-9_-] becomes _, and an absent template is -
(EHR_STATUS.251.-, and EHR.erase.- for the erasure of an EHR). The change
type is the openEHR audit change type code: 249 creation, 250 amendment,
251 modification, 523 deleted.
Bind a queue with the topic wildcards to pick what you need:
COMPOSITION.*.* for every composition change, *.523.* for every deletion,
# for everything. The lane declares the topology [events] names whenever it
opens a connection: the durable topic exchange, then each queue in queues,
durable, bound with its binding. Declaring them again changes nothing, so a
broker that was replaced gets its queues back on the next connection. There is
no subscription API: the configuration is the topology, and the operator API
shows it read-only in the running configuration.
Delivery
- At least once. The lane publishes the messages of an event in order and
waits for the broker’s confirm of each. The change feed’s watermark moves
only after every message of an event was confirmed, so a crash or a refusal
publishes the event again. Deduplicate on
contribution_idwithversion_index. - In order. Events are published in the order of their source:
seqorder per outbox on the reference CDR’s feed, commit-instant order on the AQL source, which gives no order across EHRs when instants tie (the AQL source’s limits). - No event is dropped. A broker that is down, a broker that refuses a
message, a confirm that does not arrive within
confirm_timeout, and a CDR that refuses the feed each stop the lane where it is: the events wait at the source, theeventshealth indicator reportsdegraded, and readiness stays up, since nothing else the server serves depends on the lane.
The usage report counts each confirmed message as events_published, and no
log line carries a message body.
Securing the broker URL
The broker URL carries credentials, so keep it in a secret: url_file reads
it once at boot from a mounted file, and the running configuration and every
refusal leave it out. Use TLS for anything beyond a local broker, with an
amqps:// URL or tls = true.
Moving from the reference CDR’s own publisher
FerroEHR, the reference CDR, published these events to RabbitMQ itself up to its 5.5 line. From 5.6.0 it keeps the outbox and serves it over the cursor feed, and FerroBRIDGE publishes. To move a deployment:
-
Name a reader for FerroBRIDGE in FerroEHR’s configuration (
[outbox] readers = ["ferrobridge"]) and give the client FerroBRIDGE calls with the scope FerroEHR names for the outbox routes (__ferroehr.outbox). -
Configure FerroBRIDGE with the same exchange FerroEHR published to (
ferroehr.eventsby default):[change_feed] enabled = true source = "ferroehr" url = "https://ehr.example/ferroehr/rest/extensions/v1" dead_letters = "/var/lib/ferrobridge/dead-letters.redb" [events] enabled = true reader = "ferrobridge" url_file = "/run/secrets/broker-url" exchange = "ferroehr.events" queues = [{ name = "ferroehr.events.analytics", binding = "COMPOSITION.*.*" }] -
Replace each subscription row FerroEHR kept with a
queuesentry. FerroEHR named a subscription’s queue<exchange>.<name>and built its binding key from the row’skind,change_typeandtemplate_id, with*for an unset one; write that name and that key intoqueues, and your consumers keep reading the queues they read before.
The routing keys and the message body are the ones FerroEHR published, so a consumer bound to them keeps matching. Upgrade FerroEHR and switch the lane on together: the events committed between the two wait in the outbox until the reader acknowledges them, inside FerroEHR’s retention window.
The outbound FHIR lane
The outbound FHIR lane pushes each change in the CDR to a FHIR R4 server as it happens: every composition a contribution changed is mapped to FHIR through the loaded FHIRconnect programs and delivered to the endpoint you configure. No specification governs the lane: it is FerroBRIDGE’s own design.
The lane is a consumer of the change feed, so it runs
against any CDR, and it maps through the FHIR facade’s
programs and identity map, so a resource the lane delivers has the id, the
content and the subject a facade read of it answers. It is off by default and
is switched on with [change_feed], [facade] and [fhir_outbound]
(configuration).
The lane carries identifiable clinical data. Every resource names its patient. Point it only at an endpoint that is allowed to hold that data, over TLS, and keep it apart from any stream that carries identifiers alone, such as the events lane. The server logs a warning naming the endpoint host each time it starts the lane.
What one event delivers
Each event becomes one FHIR R4 transaction Bundle posted to the endpoint’s
base (R4 http.html, transaction):
- A created or updated composition: the lane reads its latest version
from the CDR and maps it. Every resource it maps to is a
PUT [type]/[id]entry, carrying itsid,meta.versionId(the composition’sversion_tree_id) andmeta.source(the CDR URL of the composition version). A resource the composition’s earlier delivery carried and this version no longer maps to is aDELETEentry. - A deleted composition (the CDR answers
204): aDELETEentry for every resource its last delivery carried. - An erasure of a composition or of a whole EHR: a
DELETEentry for every resource the lane delivered for it.
The lane keeps a record of what it delivered for each composition in the
redb file [fhir_outbound] emitted names, identifiers only, so a deletion
and an erasure can retract what the content no longer shows.
Delivery guarantees
- At least once: the event is acknowledged only after the endpoint
answered
2xx. A delivery sent again is the same set ofPUTs andDELETEs, which changes nothing at the endpoint. - A failure that may pass (no answer,
401,408,429, a5xx, the CDR or the terminology server not answering) leaves the event to be read again on the next pass, and never counts toward parking it. - A refusal of the content (any other
4xx, a composition no mapping admits) is retried[change_feed] max_attemptspasses and then parked in the dead-letter store, where the operator API and the console can inspect and replay it. - No resource without a subject: a composition of an EHR the identity map binds to no patient, or a resource of a type that names its subject and carries none, is refused and parked; nothing of the event reaches the endpoint.
Writing and loading mappings
Mappings are the product. FerroBRIDGE reads specification-conformant YAML and
never carries a hand-coded converter for one FHIR resource or one OMOP table. A
per-resource converter is refused in review, because it defeats the reason the
project exists. ferrobridge serve loads the mapping set at start and refuses
a file it cannot compile there, ferrobridge mapping check checks a tree
without serving it, and the operator API lists,
checks, saves and reloads the files of a running bridge.
- What a mapping set looks like
- Validation happens at load, not at runtime
- Checking a set before you deploy it
- Paths need a template
- Composition fields FHIR does not carry
- Repeated values into a single-valued node
- Code translation
- Escaping to code
- Where the mapping libraries come from
What a mapping set looks like
On the FHIR side you supply three kinds of file, and they compose in this order:
- A
modelfile per archetype, mapping it to an unprofiled R4 resource. - An
extensionfile where a profile or a template needs an adaptation. - A
contextfile as the entry point, naming the profile, the template, the archetypes, the extensions, and thestartmapping.
Beside a context you may add a search declaration, a file whose name ends in
.search.yml, stating which FHIR search parameters the facade answers for it
and the AQL path each one compares. It is FerroBRIDGE’s own format, because
FHIRconnect leaves search out, and the FHIRconnect loader skips it.
The FHIR facade describes it.
On the OMOP side you supply OMOCL files: a flat list of records keyed by CDM
target, each record’s keys drawn from OMOCL’s own column vocabulary (value,
unit, concept_id, measurement_date) with ordered alternatives.
FerroBRIDGE carries the table that projects each key onto CDM columns, because
OMOCL does not publish one. YAML anchors and aliases are supported, because the
published library uses them.
Validation happens at load, not at runtime
Every FHIRconnect file is checked three ways. The two published draft-07 JSON
schemas are vendored and run, and the files they reject are recorded, because
those schemas refuse three mapping types the specification defines. Then
FerroBRIDGE’s own strict schema runs, which admits exactly what the prose
defines. Then the constraints no schema can express are checked: targetRoot
alignment, appendTo, slotArchetype and slotContext resolution, the
sub-context rules (a scope: sub context is listed under some context’s
contexts, the contexts are acyclic, a slotContext never writes
openehr: $reference, and a sub-context’s template.id is the template the
parent’s operational template embeds at the slot node, a warning where that
template states none), unique mapping names,
the presence of criteria where the grammar requires it, and every path
resolving against the template and the FHIR element table. Every OMOCL file is
validated against the schema FerroBRIDGE authors from the grammar tables.
Version agreement is part of loading. The mapping version, the grammar version,
the archetype revision, the template sem_ver, and the profile version have to
agree, and a mismatch is refused before any request is served.
Checking a set before you deploy it
ferrobridge mapping check runs the same load without starting a lane, and
reports every diagnostic instead of stopping at the first. It reads the
[mappings] section of the configuration: the FHIRconnect tree in
directory, compiled context by context against the templates in
templates or, without that key, the templates the [cdr] serves, and the
OMOCL files in omocl, which it loads and validates. OMOCL names no
template, so its files compile when etl run first meets a composition, and
the check does not compile them.
ferrobridge mapping check --config /etc/ferrobridge/ferrobridge.toml
ferrobridge mapping check --format json
The text form prints one line per diagnostic,
file:line:column: severity[code]: message, then a summary line with the
files read, the contexts compiled and the error and warning counts. The JSON
form prints one document with clean, counts and a diagnostics array
whose objects carry file, line, column, severity, code, message,
mapping and model_path (the steps into the document model, as an array), the serde form of openehr-mapping-core’s Diagnostic. The report is the whole of stdout; the check
writes no log line.
| Exit code | Meaning |
|---|---|
| 0 | No diagnostic is an error. Warnings are printed and accepted, as serve accepts them. |
| 1 | At least one diagnostic is an error. |
| 69 | The check could not run: a directory cannot be read, or the CDR answered a template fetch with neither the template nor a 404. |
| 78 | The configuration names nothing to check, or a FHIRconnect tree with no template source. |
Besides the codes of the two mapping languages, the check raises
template-build for an operational template that does not build,
fb-unknown-template for a context whose template neither the template
directory nor the CDR provides, and fb-no-template-id for a context that
names no template. An operator API check or save also raises
fb-search-declaration for a search declaration that does not bind to the
set.
Paths need a template
Paths in both languages are RM and archetype paths, such as
$archetype/data[at0001]/items[at0077]. A path alone is not executable,
because the leaf RM type and the template-specific identifiers live in the Web
Template built from the template’s operational template. FerroBRIDGE resolves
in that order: the operational template, then the Web Template, then the path,
then the composition. Supply the template to the CDR, and FerroBRIDGE reads it
from there.
Composition fields FHIR does not carry
A composition needs a composer, a context/start_time, a setting, a
language, a territory, and a category. FHIR carries no counterpart for
most of those, so FHIRconnect defaults them and requires the start mapping to
slot in a reusable COMPOSITION.<archetype>.<Resource> mapping. FerroBRIDGE
follows those defaults and records every defaulted value in the composition’s
FEEDER_AUDIT, so a later reader can tell which values came from the source
and which came from a default.
Repeated values into a single-valued node
FHIRconnect governs a repeating element written into an element that holds
one value: “if we transform from a 0..n to a 0..1 field, only the last
entry of 0..n is mapped” (FHIRconnect 1.0.0, Recurrence, Transforming a
list). FerroBRIDGE keeps the last occurrence, in both directions, and
declares the earlier ones lost. The run’s OperationOutcome carries a
warning naming the node and how many occurrences the write dropped, for
example /context/other_context[at0001]/items[at0002,'ID']/value holds one value, so the write dropped 1 earlier occurrences, with the FHIR element
as its expression. A received document is still kept whole in the
composition’s FEEDER_AUDIT.original_content, so the dropped values stay
in the record.
Code translation
FHIRconnect’s conceptmap and OMOCL’s conceptMap both translate codes, and
they resolve differently. A FHIRconnect conceptmap reference goes to the
configured FHIR terminology server through $translate. An OMOCL conceptMap
is an inline table in the mapping file, and everything else on the OMOP side
resolves through the loaded OHDSI vocabulary in SQL.
Escaping to code
mappingCode in FHIRconnect and CustomMapping in OMOCL name a function that
the mapping cannot express. FerroBRIDGE resolves those names against Rust
functions registered at build time. There is no runtime plugin loading, so a
mapping file cannot introduce new executable behaviour into a deployment.
Where the mapping libraries come from
The published FHIRconnect and OMOCL libraries are vendored verbatim under
docs/specs/fhirconnect-mapping-lib/ and docs/specs/omocl/ by committed
fetch scripts, with provenance recorded beside them. Both run as conformance
corpora: every file loads and validates, or carries a recorded skip with its
reason, and each corpus keeps a pass list with a badge in the README. The
corpus is how FerroBRIDGE finds a grammar feature it has not implemented.
What FerroBRIDGE runs beside
This page describes the shape of a deployment: which systems the bridge talks to, what it stores, and what you have to supply. Read it to plan, then install the image or a release binary as The container describes.
- One process, four neighbours
- What FerroBRIDGE stores
- What it asks of the CDR
- What it asks of the terminology server
- What the OMOP side asks of the database
- Process model
One process, four neighbours
FerroBRIDGE is its own process and its own image. It is not a crate inside a CDR, not a plugin, and not a library a CDR links. It reaches every neighbour over a network protocol, which is what lets it work against a CDR it did not build.
| Neighbour | Protocol | Needed by |
|---|---|---|
| An openEHR CDR | openEHR ITS-REST 1.1.0 | both sides |
| A FHIR terminology server | FHIR terminology operations, R4 or R4B | the FHIR side |
| An OMOP CDM v5.4 database | SQL, PostgreSQL | the OMOP side |
| The OHDSI vocabulary, loaded into that database | SQL | the OMOP side |
You run each of these, or you point FerroBRIDGE at ones you already run. None of them is a compile-time dependency, and the bridge treats any conformant implementation the same way.
What FerroBRIDGE stores
Clinical data lives in the CDR and, on the OMOP side, in the CDM database.
FerroBRIDGE stores two things of its own: the id-map, a persistent store
holding the patient identifier to ehr_id relation, the external to internal
resource id relation and the resource id to composition relation; and, on the
OMOP side, a side table in its own schema beside the CDM that maps each source
record to its rows, which is what makes a re-run replace rather than
duplicate. Everything else it holds is configuration: the loaded
mapping files, the terminology server address, and the CDR address.
What it asks of the CDR
The FHIR side uses the composition and EHR endpoints:
POST /ehr and GET /ehr?subject_id=&subject_namespace=,
POST, PUT, and GET on /ehr/{ehr_id}/composition[/{uid}], and
POST /ehr/{ehr_id}/contribution for an atomic multi-object commit. Both sides
use POST /query/aql. Templates come from
GET /definition/template/adl1.4/{template_id} as canonical XML; FerroBRIDGE
builds the Web Template from that itself, so the CDR need not serve one.
Compositions cross the wire as canonical JSON.
A CDR that does not serve the operational template cannot drive the bridge, because a mapping path alone does not carry the leaf RM type.
What it asks of the terminology server
Three operations: CodeSystem/$lookup, ConceptMap/$translate, and
ValueSet/$validate-code. $lookup matters most, because openEHR’s
DV_CODED_TEXT.value is mandatory while FHIR’s display is not, so a display
often has to be resolved rather than copied. The client tolerates a server
answering R4 or R4B.
What the OMOP side asks of the database
A CDM v5.4 schema built from the OHDSI DDLs, and an Athena vocabulary download
loaded into the vocabulary tables. Concept resolution is SQL over CONCEPT,
standard_concept, the domain, and the CONCEPT_RELATIONSHIP “Maps to”
traversal. Without a loaded vocabulary every source code resolves to
concept_id = 0, which is legal in the CDM and useless for analysis.
Loading the vocabulary
You download the vocabulary from https://athena.ohdsi.org under your own account, unpack it, and load the directory:
ferrobridge vocab load /srv/athena/2026-10 --schema cdm
The job reads the [cdm] section for the connection and loads into the
schema --schema names, which is normally [cdm] schema. It needs the nine
files every download carries (CONCEPT.csv, VOCABULARY.csv, DOMAIN.csv,
CONCEPT_CLASS.csv, CONCEPT_RELATIONSHIP.csv, RELATIONSHIP.csv,
CONCEPT_SYNONYM.csv, CONCEPT_ANCESTOR.csv, DRUG_STRENGTH.csv) and loads
SOURCE_TO_CONCEPT_MAP.csv when you put one beside them. Every other file is
named in the output and left alone. Each table is replaced in a transaction of
its own, so a refused table keeps its rows and the tables before it keep their
new ones; the job prints the rows of each table and the vocabulary version.
Load the vocabulary before cdm init --with-constraints: PostgreSQL refuses
to TRUNCATE a table another table’s foreign key references.
The format the loader reads is the one the Athena application writes, read
from its source at a pinned commit: tab-separated, unquoted, UTF-8, with a
header row and yyyyMMdd dates. OHDSI publishes no format document, so a
download that the loader refuses for its shape is worth reporting on issue
#88.
Vocabulary licences
The vocabulary is a licensed deployment input you obtain and accept yourself; FerroBRIDGE ships none of it, in the image, a release asset or a test.
- Athena offers some vocabularies only to an account whose licence request their owner has granted. The terms are the owner’s, and you accept them when you request the vocabulary.
- CPT4 arrives as
CONCEPT_CPT4.csvwith everyconcept_nameempty. The loader leaves that file alone, so CPT4 concepts are absent until you produce their names under your own licence and load them intoCONCEPT. - Check the licence of every vocabulary you select before you load it into a database you share, and record which ones the database holds.
One writer per CDM table
FerroBRIDGE assumes it owns the id space of every CDM table it writes. It takes each primary key from a sequence of its own per table, kept in the bridge schema, and records which source record holds which id. Another ETL that loads rows into the same tables can pick ids the bridge assigns next, and the bridge’s commit then fails on the primary key. Run one bridge per set of CDM tables, or load other sources into a separate CDM schema.
cdm init and every etl run count the rows of those tables that no entry of
the bridge’s side table owns, and log a warning naming each table and its
count. Treat a warning as a sign that something else writes the tables.
After a run the bridge rebuilds OBSERVATION_PERIOD, CONDITION_ERA and
DRUG_ERA for the persons it writes, the persons its person map names: their
derived rows are deleted and derived again, and every other person’s derived
rows stay as another ETL wrote them. With [etl] derived_tables = "whole_table" it rebuilds each table whole from every row in the schema, for a
deployment where the bridge is the only writer. The
era scripts the CDM publishes number eras by person_id alone, so two eras of
one person can swap ids between rebuilds. A re-run writes the same rows, but
an era id is not stable across rebuilds; never store one outside the database.
Process model
No specification governs the process model, the storage mechanics, or the deployment topology: that is FerroBRIDGE’s own design. The decisions on record are a single binary, a container image, and a batch ETL that runs as a job rather than as a listener. Change notification is not part of ITS-REST 1.1.0, so an incremental OMOP mode would be a FerroBRIDGE extension, labelled as one, with the batch path staying the conformant baseline.
The [auth.issuer.<name>.profile] table sets profile keys over the preset and
the profile file, and wins over both. The keys a deployment sets most:
| Key | Default | Meaning |
|---|---|---|
first_party_clients | [] | The deployment’s own clients: a person’s token of a persons issuer is admitted only through one of these or a delegate, so list the clients your clinicians and operators sign in with, the operator console’s included |
delegates | [] | The apps that act for a signed-in person, each { client = "<client_id>" } |
audience_delegates | false | Under the ferrosmart preset only: every client of a token whose aud names the bridge is a delegate, so an app registered at FerroSMART with the facade among its resources needs no delegates entry |
patient_context | true under ferrosmart, false otherwise | Whether the token’s patient claim is the SMART launch context (SMART App Launch 2.2.0, Scopes and Launch Context, launch/patient); off, a patient/ scope of this issuer reaches no patient. FerroEHR reads the same key |
fhir_user_patient | true under ferrosmart, false otherwise | Whether a patient’s own token (fhirUser Patient/<x>, patient x, patient/ scopes alone) is read as the person’s own access |
token_types, required_claims, scope_claim, client_claims, app_only and the rest | the preset’s | The token shape and the caller classification, as the ferrohealth-smart book lists them |
Configuring the server
FerroBRIDGE reads its defaults, an optional TOML file, environment variables
over it, and the --set key=value pairs of the command line last, through the
FerroHEALTH family’s loader (ferrohealth-config), so every FerroHEALTH
product reads its configuration the same way. Nothing else configures the
process. No specification governs this; it is FerroBRIDGE’s own design.
- Where the file comes from
- Checking a configuration before a restart
- How an environment variable maps to a key
- The variables
[server][telemetry]- The console
[cdr][cdr.endpoint.retry]and[terminology.endpoint.retry][cdr.endpoint.credentials]and[terminology.endpoint.credentials][cdr.endpoint.credentials.oauth]and[terminology.endpoint.credentials.oauth][cdr.endpoint.credentials.onward][[cdr.onward]][terminology][cdm]- What
cdm initdoes [cdm.pseudonymisation][etl][etl.visits][mappings][facade][facade.references][facade.cors][facade.consent][facade.app_state][facade.launch_task][facade.identifier_search][facade.party_search][auth][basic_grants][hl7v2][change_feed][events][fhir_outbound][omop_incremental][audit][operator][operations][usage_report]
- The secrets, in one place
- What a bad configuration does
- An example
Where the file comes from
ferrobridge serve --config /etc/ferrobridge/config.toml names the file. With
no flag, FERROBRIDGE_CONFIG names it. With neither, the defaults below stand
and the server serves with no upstream configured. --set sets one key over
the file and the environment, and repeats:
ferrobridge serve --set server.listen=0.0.0.0:8080 --set telemetry.format=json
Checking a configuration before a restart
ferrobridge config check reads the configuration exactly as serve would,
prints the running tree one key per line with where each value came from (the
default, the file, the environment or a --set), with every secret shown as
***, and then resolves it as serve does. It exits 0 when serve would
start, and 78 with every refusal on stderr when it would not:
ferrobridge config check --config /etc/ferrobridge/config.toml
How an environment variable maps to a key
Prefix FERROBRIDGE__, then the dotted key with two underscores between
levels. Case does not matter; single underscores inside a key name stay as
they are.
FERROBRIDGE__SERVER__LISTEN -> [server] listen
FERROBRIDGE__CDR__ENDPOINT__URL -> [cdr] base_url
FERROBRIDGE__CDR__ENDPOINT__RETRY__MAX_ATTEMPTS -> [cdr.endpoint.retry] max_attempts
A value takes the type of the key it sets. A string key takes the text as it
is, whatever its characters: FERROBRIDGE__CDR__ENDPOINT__CREDENTIALS__USER=12345 sets
the user name 12345, and true or 1.5 stay text too. Quotes are part of
the value, so do not add any. A number, boolean or array key reads the text as
TOML syntax: 5 is the number 5, true is a boolean and ["a","b"] is an
array. Text that does not read as the key’s type is refused at boot, naming
the key.
The variables
Every key below is settable in the file and as FERROBRIDGE__<SECTION>__<KEY>.
A key marked secret also accepts a <key>_file sibling naming a file the
server reads once at boot, with its trailing line ending removed; an empty
file is refused.
[server]
The section is the FerroHEALTH family’s (ferrohealth-server).
| Key | Default | Meaning |
|---|---|---|
listen | 127.0.0.1:8080 | The socket address to bind |
base_path | empty | The path every route is served under: empty, or starting with / and not ending with one |
request_timeout | "30s" | How long one request may take before the server answers 408 (504 under /fhir) |
header_read_timeout | "30s" | How long a client may take to send a request head, counted from accept or from the first byte of each later head on a kept-alive connection; a client that has not sent one by then, one that sent nothing included, is disconnected |
idle_timeout | "2min" | How long a kept-alive HTTP/1.1 connection may wait for its next request before the server closes it with a clean end of stream |
body_limit | "1MiB" | The largest request body read before the server answers 413 |
drain_delay | "0s" | How long readiness stays withdrawn after SIGTERM or SIGINT before the listener closes |
shutdown_timeout | "10s" | How long the requests in flight may take once the listener closed |
max_concurrent_requests | 256 | How many requests the server serves at once, always bounded; past it a request waits for a slot in the queue below and is answered 503 with Retry-After when the queue is full or the wait expires, and the health routes are never refused or queued |
max_waiting_requests | 256 | How many requests past max_concurrent_requests may wait for a slot at once, first come first served; 0 keeps no queue |
admission_wait | 100 milliseconds | How long a request past max_concurrent_requests waits for a slot before it is refused, written with the ms or s unit; "0s" keeps no queue |
retry_after | "1s" | The seconds a refused request is told to wait |
trusted_proxies | [] | The reverse proxies, each an address or a CIDR block, whose forwarded client address is believed |
forwarded_header | forwarded | The header a trusted proxy names the client in: forwarded or x-forwarded-for |
compression | true | Whether a response is compressed with gzip or Brotli when the client accepts one |
compression_min_size | "1KiB" | The smallest response body that is compressed |
[server.tls] serves the listener over TLS: certificate_file and
key_file (PEM), client_auth (none, optional or required) with
client_ca_file, reload_interval (unset, only SIGHUP reads the files
again), healthcheck_identity_file for ferrobridge healthcheck against a
listener that asks a client certificate, and min_version ("1.3" unless
lowered to "1.2"). Without it the listener speaks plain HTTP behind a proxy
that terminates TLS. [server.caller_rate] is refused: the bridge limits no
caller’s rate; bound the server with max_concurrent_requests.
[telemetry]
| Key | Default | Meaning |
|---|---|---|
format | auto | auto, json or pretty; auto is pretty on a terminal and json otherwise |
filter | info,hyper=warn,tower=warn,h2=warn | A RUST_LOG-style directive; a directive that does not parse refuses the start, naming the key |
logged_query_parameters | [] | The query parameter names whose values may reach the request log, each value cut at 64 characters |
environment | unset | The deployment environment, such as production |
The section is the FerroHEALTH family’s (ferrohealth-telemetry).
Nothing else about a request is logged. Add a name to
logged_query_parameters only for a parameter you know carries no identifying
content.
[telemetry.otlp] exports the traces and the metrics to an OpenTelemetry
collector over OTLP/gRPC:
| Key | Default | Meaning |
|---|---|---|
endpoint | none | The collector’s OTLP/gRPC endpoint; https:// speaks TLS, and the value is masked in config check |
traces | true | Whether the spans are exported |
metrics | true | Whether the metrics are pushed |
sample_ratio | 1.0 | The share of the traces that are sampled |
tls.trust_roots_file | unset | A PEM bundle of trust roots beside the platform’s |
tls.client_identity_file | unset | The client certificate chain and its key in one PEM, for mutual TLS (or tls.client_identity inline) |
tls.min_version | "1.3" | The oldest TLS version spoken; "1.2" lowers it |
The bridge reads tls with the family’s outbound TLS reader and dials an
https:// collector through the platform verifier with those roots beside
it. TLS material beside an endpoint that is not https:// refuses the start.
The console
Two more variables set the console for one run, and they win over the file
and over FERROBRIDGE__TELEMETRY__FORMAT and FERROBRIDGE__TELEMETRY__FILTER:
| Variable | Sets | Values |
|---|---|---|
FERROBRIDGE_LOG_FORMAT | [telemetry] format | auto, json or pretty; any other value refuses the start with exit 78 |
RUST_LOG | [telemetry] filter | A tracing filter directive such as debug,hyper=warn |
FERROBRIDGE_LOG_FORMAT=pretty RUST_LOG=debug ferrobridge serve
auto writes pretty on a terminal and json anywhere else, so a container
or a log pipeline gets one JSON object per line with no configuration.
pretty writes colour on a terminal unless NO_COLOR is set. In pretty, a
carriage return or line feed inside a logged value is written as the two
characters \r or \n, so no value can start a second line; json escapes
it inside the string.
Under pretty, ferrobridge serve prints the family’s banner to stdout
before the first log line: the wordmark, the version with the commit, the
build instant and the compiler, the product line, the maintainer and the site,
the pins this build serves, and each lane with the hosts it reaches. A host is the URL’s
host and port and never its user information. Under json nothing but log
lines reaches stdout.
The first boot events describe the process:
| Event | Fields |
|---|---|
console | format (the rendering in effect), colour, filter |
build | version, commit, built_at, rustc, openehr_crates, fhir_types |
lane | lane (facade, operations, etl or terminology), enabled, identifiable, and where set cdr_host, terminology_host, cdm_host, cdm_schema, bridge_schema, contexts, programs, templates |
listening is the last boot event of the lanes, and the
usage report’s one line, usage report ON or
usage report OFF with the reason, follows it. The etl lane reports what
ferrobridge etl run would reach; serve never runs it.
GET /health/info answers the same build facts and pins as JSON, so a scraper
reads what the banner shows:
{
"product": "FerroBRIDGE",
"version": "0.0.3",
"build": {
"commit": "0123456789abcdef0123456789abcdef01234567",
"commit_short": "0123456789ab",
"built_at": "2026-01-01T00:00:00Z",
"rustc": "rustc 1.99.1 (58cf8f9c3 2026-10-13)"
},
"pins": [
{ "name": "FHIRconnect", "version": "v1.0.0" },
{ "name": "FHIR", "version": "R4 (4.0.1)" }
]
}
The pin list is shortened here; the route lists every pin the banner prints.
built_at is the SOURCE_DATE_EPOCH instant when the build sets one, and the
commit is unknown for a build outside a git checkout.
[cdr]
The openEHR CDR lane. Absent, the bridge holds no CDR client and readiness reports no CDR indicator. This section reaches identifiable data, and the server says so once at start-up, naming the section and never a value.
| Key | Default | Secret | Meaning |
|---|---|---|---|
endpoint.url | none, required | The openEHR REST API root, usually ending in /v1 | |
endpoint.timeout | "30s" | How long one call may take, connection included | |
endpoint.connect_timeout | unset | How long opening the connection may take; unset, only timeout bounds it | |
endpoint.tls | the platform’s roots | trust_roots_file, client_identity_file or client_identity (secret), and min_version ("1.3"): the TLS of the CDR’s connection, for a CDR behind a private root or one that asks for a client certificate | |
demographic | false | Whether the bridge reaches the CDR’s ITS-REST 1.1.0 Demographic API, which the release marks x-status: DEVELOPMENT | |
committer_issuer | unset | The issuer the CDR names the Basic user of endpoint.credentials under, so a transaction’s CONTRIBUTION states the committer placeholder of that issuer and the user; needs a Basic endpoint.credentials.user. Unset, a CONTRIBUTION under a Basic user names the bridge by system_id |
[cdr.endpoint.retry] and [terminology.endpoint.retry]
| Key | Default | Meaning |
|---|---|---|
max_attempts | 3 | How many times a call is sent at most, the first try included; 1 disables retry |
initial_backoff | "200ms" | The delay before the second attempt |
max_backoff | "5s" | The ceiling every later delay is clamped to |
For the CDR, the bridge calls through the generated ITS-REST client of the
openehr-its crate, and the three keys are that client’s retry budget. Only a
GET, PUT or DELETE is sent again, after a failure to connect, a
timeout, or a 5xx other than 501; a POST is sent once. A 401, a 403
and a status the operation does not document are never retried.
[cdr.endpoint] timeout is the per-request timeout of the client’s HTTP engine.
[cdr] demographic turns on the client of the ITS-REST 1.1.0 Demographic API,
DEVELOPMENT: the reads, creates, updates and deletes of PERSON,
ORGANISATION and ROLE, and the facade serves every party context’s
resource type from it (Party resources).
A party context with the key off is a boot refusal. A Release
1.1.0 PARTY may carry reverse_relationships, which the development line
removed; the bridge drops the member before it reads the party and counts the
entries it dropped. Each entry restates a relationship the demographic
repository already holds (RM Demographic IM Release 1.1.0 §2.2.1).
[cdr.endpoint.credentials] and [terminology.endpoint.credentials]
The bridge authenticates to an upstream in one of two modes: RFC 7617 basic
authentication with user and password, or a token it obtains itself with
the OAuth 2.0 client credentials grant
([cdr.endpoint.credentials.oauth] and [terminology.endpoint.credentials.oauth]). It takes no static
bearer token: a bearer_token key is an unknown key and refuses the start.
An inline value beside its _file sibling is a boot error too.
| Key | Default | Secret | Meaning |
|---|---|---|---|
user | none | The user-id of RFC 7617 basic authentication, written inline; it is no secret, and it may hold no colon (RFC 7617 §2) | |
password | none | yes | The password of RFC 7617 basic authentication; use password_file to read it from a file |
The table is the one ferrohealth-smart, the FerroHEALTH resource-server
crate, defines for every upstream of every product. A password without a
user is a boot error, and so is a user_file key: the user-id is read
inline only.
The user and the password become the Authorization header of every call,
Basic over user:password.
[cdr.endpoint.credentials.oauth] and [terminology.endpoint.credentials.oauth]
The bridge can obtain its token for the CDR, and for the terminology server,
itself with the OAuth 2.0 client credentials grant (RFC 6749 §4.4) and renew
it before it expires. The bridge always reaches an upstream under its own
token for that upstream’s audience and never forwards a caller’s token,
because an access token names the resource server it is for (RFC 9068 §4).
Setting the section beside user is a boot error. The two sections take the
same keys, and each lane keeps its own token.
Use this section when the FHIR facade and the CDR are separate audiences of
one authorization server. Callers then hold tokens for the FHIR audience, and
the bridge obtains and renews its own for the CDR’s. Set audience or
resource to whichever parameter that authorization server reads to select
the CDR. A terminology server that checks tokens, such as one that validates
SMART tokens on writes, takes the same arrangement under
[terminology.endpoint.credentials.oauth].
| Key | Default | Secret | Meaning |
|---|---|---|---|
token_endpoint | none | The token endpoint URL (RFC 6749 §3.2) | |
issuer | none | The issuer identifier, an https URL with no query or fragment (RFC 8414 §2), or plain http on a loopback host; the token endpoint is read from its metadata | |
client_id | none, required | The client identifier (RFC 6749 §2.2) | |
client_auth | client_secret_basic | client_secret_basic sends the id and the secret as HTTP Basic, client_secret_post sends them in the request body (RFC 6749 §2.3.1), private_key_jwt sends a client assertion signed with private_key_file (RFC 7523 §2.2) | |
client_secret | none | yes | The client secret, required under client_secret_basic and client_secret_post; use client_secret_file to read it from a file |
private_key_file | none | yes | The PEM file of the private key a private_key_jwt assertion is signed with |
kid | none | The kid the assertion names; the RFC 7638 thumbprint of the key when unset | |
assertion_alg | by key type | The algorithm the assertion is signed with, such as ES384 | |
scope | none | The scope parameter, space-delimited scope tokens (RFC 6749 §3.3); empty sends none | |
audience | none | An audience parameter, for an authorization server that reads one; no specification defines it for this grant | |
resource | none | The resource parameter, an absolute URI with no fragment (RFC 8707 §2) | |
refresh_margin | "30s" | How long before the token expires a new one is fetched | |
timeout | "10s" | How long one call to the authorization server may take | |
tls.trust_roots_file, tls.client_identity_file, tls.min_version | none, none, "1.3" | The TLS to the authorization server: trust roots beside the platform’s, the client certificate chain and key in one PEM for mutual TLS (or tls.client_identity inline), and the oldest TLS version spoken |
Set exactly one of token_endpoint and issuer; both, or neither, is a boot
error. With an issuer, the bridge reads the RFC 8414 metadata at
/.well-known/oauth-authorization-server inserted before the issuer’s path,
and on a 404 the OpenID Connect discovery document at the issuer followed
by /.well-known/openid-configuration. The document’s issuer must equal
the configured value exactly, or no token is requested (RFC 8414 §3.3).
The bridge fetches the token on the first call to that upstream, not at boot,
and every call to it shares it. It fetches a new one refresh_margin before expires_in
runs out; the margin is capped at half the token’s lifetime, so a short-lived
token is still reused. A token without expires_in is reused until the
upstream refuses it. Calls that find no usable token at the same time share
one request to the token endpoint. When the upstream answers 401, the bridge
drops the token, fetches a new one and sends the call once more, a POST
included, since a 401 means the upstream applied nothing (RFC 9110
§15.5.2). A second 401 reaches the caller as any refused credential does.
A token request that fails is an error naming the token endpoint’s status
and, when the body carries one, the OAuth error and error_description
(RFC 6749 §5.2), for example the token endpoint answered 401 Unauthorized: invalid_client (unknown client). A failed fetch is not cached: the next call
asks again. The cdr or terminology readiness indicator reports down with
that reason while no token can be obtained. The bridge sends bearer tokens only; a token
response with another token_type is refused. Point token_endpoint and
issuer at https URLs outside a network you control, because the client
secret travels in the token request.
[cdr.endpoint.credentials.oauth]
issuer = "https://auth.example.org/realms/clinic"
client_id = "ferrobridge"
client_secret_file = "/run/secrets/cdr_client_secret"
scope = "openehr"
As environment variables, the same section reads
FERROBRIDGE__CDR__ENDPOINT__CREDENTIALS__OAUTH__ISSUER,
FERROBRIDGE__CDR__ENDPOINT__CREDENTIALS__OAUTH__CLIENT_ID and
FERROBRIDGE__CDR__ENDPOINT__CREDENTIALS__OAUTH__CLIENT_SECRET_FILE. The terminology
section reads the same names under FERROBRIDGE__TERMINOLOGY__ENDPOINT__CREDENTIALS__OAUTH__.
[cdr.endpoint.credentials.onward]
With this table, each FHIR facade request reaches the CDR under the person
who made it. The bridge exchanges the caller’s access token for a token of
the CDR’s issuer that names the same person, and sends that token on every
CDR call of the request. The bridge authenticates the exchange with its own
client of [cdr.endpoint.credentials.oauth], which the table requires and which must ask
for the CDR alone, by resource (RFC 8707 §2) or by scope (such as
api://<cdr>/.default under Entra ID), because a machine’s request reaches the
CDR under that token; one naming neither refuses the start. Only the CDR
lane takes the table: an onward table under [terminology.endpoint.credentials] or
another lane refuses the start, and so does one on a server whose [auth] is
off, because no caller then holds a token to exchange.
The issuer’s preset picks the grant:
rfc9068(andkeycloak): OAuth 2.0 Token Exchange (RFC 8693 §2.1). The caller’s token is thesubject_token, an access token, and the CDR is named byresource, or byaudienceunderkeycloak. Keycloak requires the bridge’s client in theaudof the caller’s token, so the client scope of the facade’s clients carries an audience mapper that puts it there.entra: the JWT bearer grant (RFC 7523 §2.1) with the Microsoft identity platform’s on-behalf-of parameters. The caller’s token, whoseaudis the bridge’s application id, is theassertion,requested_token_useison_behalf_of, andscopenames the CDR, such asapi://<cdr>/.default. Register the bridge and the CDR to issue v2.0 tokens.
| Key | Default | Meaning |
|---|---|---|
issuer | none, required | The issuer of the onward tokens; its metadata names the token endpoint unless token_endpoint is set |
kind | none, required | persons for a same-organisation person, federation for a professional of another party, patients for a patient |
preset | rfc9068 | The preset the issuer’s profile starts from: rfc9068, entra, keycloak and the others an [auth.issuer.<name>] table takes |
profile_file | none | A profile file in the form of a preset file, read over the preset |
token_endpoint | none | The token endpoint itself |
client_id | the oauth table’s | The bridge’s client id at this issuer |
audiences | none, required | The audiences an onward token may name; a token naming any other is refused |
indicators | none | The resource or audience values the exchange names the CDR by |
scope | none | The scope the request names; the on-behalf-of grant requires it |
correlation_claim | none | The claim a chained federation route carries from the caller’s token to the onward one |
profile | none | The table of profile keys over the preset and the profile file; max_onward_lifetime, a duration such as "1h", is required |
cache | true | false holds no onward token, so every CDR call exchanges one at the issuer, with a warning logged at start; a setting for a performance measurement, never for production |
actor_assertion | false | true names the bridge’s client as the actor of every exchange it sends without an actor token, with an assertion signed by the oauth table’s key (RFC 8693 §2.1); a lane with no assertion key, or under the JWT bearer grant, is refused at start |
Each issued token is decoded and refused unless its issuer is the one asked,
its aud lies inside audiences, it lives no longer than
max_onward_lifetime, it names the bridge’s client as its actor (act, or
the profile’s client claim such as azp), and it names the caller’s person
by the profile’s person_equality claims (iss and sub by default, oid
and tid under entra, so a different pairwise sub is accepted). A
patients issuer’s token must also read as a patient token, a patient/
grant with no user/ or system/ one, and carry the caller’s patient
launch context unchanged. Unless
cache = false, the bridge caches the token under the caller’s token and the
target until
refresh_margin before the earlier of its own and the caller’s token’s
expiry, and checks it again on every use. The caller’s token appears in no
log, span or metric.
Who reaches the CDR how:
| Caller | Reaches the CDR |
|---|---|
| A machine (a client credentials token) | Under the bridge’s own token of [cdr.endpoint.credentials.oauth], never exchanged; its composition names the machine’s client in originating_system_audit.system_id |
A person, a delegated or representing person, under kind = "persons" | Under the exchanged token |
A professional of another party, under kind = "federation" | Under the exchanged token |
A patient, under kind = "patients", or a patient’s own token a persons issuer reads (the ferrosmart preset) | Under the exchanged token, at the patients issuer when one is declared and otherwise at the persons issuer |
| A caller no issuer’s kind carries, another party’s organisation, a guest, a Basic user | Refused with 403 |
A failed exchange fails the request, and the bridge’s own token is never sent
in its place. The token endpoint’s 400 or 403 (RFC 8693 §2.2.2,
invalid_request or invalid_target) is the facade’s answer too, with the
OAuth error in the OperationOutcome. An on-behalf-of interaction_required
answer is a 401 whose WWW-Authenticate carries the error and the claims
challenge, so the client signs in again. A token endpoint that fails, refuses
the bridge’s own client (401), or issues a token the checks above refuse,
is a 502.
[cdr.endpoint.credentials.oauth]
token_endpoint = "https://login.microsoftonline.com/<tenant>/oauth2/v2.0/token"
client_id = "<bridge application id>"
client_auth = "private_key_jwt"
private_key_file = "/run/secrets/bridge_key.pem"
[cdr.endpoint.credentials.onward]
issuer = "https://login.microsoftonline.com/<tenant>/v2.0"
kind = "persons"
preset = "entra"
token_endpoint = "https://login.microsoftonline.com/<tenant>/oauth2/v2.0/token"
audiences = ["<cdr application id>"]
scope = "api://<cdr application id>/.default"
[cdr.endpoint.credentials.onward.profile]
max_onward_lifetime = 3600
As environment variables, the table reads
FERROBRIDGE__CDR__ENDPOINT__CREDENTIALS__ONWARD__ISSUER,
FERROBRIDGE__CDR__ENDPOINT__CREDENTIALS__ONWARD__KIND,
FERROBRIDGE__CDR__ENDPOINT__CREDENTIALS__ONWARD__PRESET and the other keys the same
way.
[[cdr.onward]]
Each [[cdr.onward]] table adds one more onward issuer beside
[cdr.endpoint.credentials.onward], with the same keys. The bridge then carries
each caller through the issuer whose kind carries it: a person to the
persons issuer, a professional of another party to the federation
issuer, and a patient to the patients issuer, or to the persons issuer
when no patients issuer is declared. Every table authenticates
with the client of [cdr.endpoint.credentials.oauth], which it requires. Two issuers
of one kind refuse the start, across [cdr.endpoint.credentials.onward] and the
array, and so does the array on a server whose [auth] is off. Either form
may stand alone: a deployment that carries only patients declares one
[[cdr.onward]] table and no [cdr.endpoint.credentials.onward].
Patients usually sign in at an issuer of their own, a separate Keycloak
realm or Entra ID tenant, whose tokens the facade admits through an
[auth.issuer.<name>] table of kind = "patients". The onward table then
names that realm or tenant. Under the default rfc9068 preset:
[cdr.endpoint.credentials.onward]
issuer = "https://id.example.org/realms/staff"
kind = "persons"
audiences = ["cdr"]
indicators = ["cdr"]
[cdr.endpoint.credentials.onward.profile]
max_onward_lifetime = 300
[[cdr.onward]]
issuer = "https://id.example.org/realms/patients"
kind = "patients"
audiences = ["cdr"]
indicators = ["cdr"]
[cdr.onward.profile]
max_onward_lifetime = 300
[terminology]
The FHIR terminology lane. The facade, the $tofhir and $toopenehr
operations and the HL7 v2 face translate every conceptmap code through it.
Going into openEHR, they also resolve the display of a coding that carries
none through CodeSystem/$lookup, because a DV_CODED_TEXT needs a value.
Absent, the bridge holds no terminology client, and the engines fail closed on
anything that would need one: a conceptmap mapping refuses, and a coding
with no display keeps its code as the value.
| Key | Default | Meaning |
|---|---|---|
endpoint.url | none, required | The FHIR service base URL |
wire_version | r4 | stu3, r4 or r4b, the release the server answers in |
endpoint.timeout | "30s" | How long one call may take, connection included |
endpoint.connect_timeout | unset | How long opening the connection may take |
endpoint.tls | the platform’s roots | trust_roots_file, client_identity_file or client_identity, and min_version ("1.3"), for a server behind a private root or one that asks for a client certificate |
display_fallback | false | For a code the server does not know: true writes the code as the value of the DV_CODED_TEXT or DV_TEXT, false refuses the resource. A failed call refuses either way |
As an environment variable, display_fallback reads
FERROBRIDGE__TERMINOLOGY__DISPLAY_FALLBACK.
[cdm]
The OMOP CDM database lane. This section reaches identifiable data, and the
server says so once at start-up. Under serve, readiness carries a cdm
indicator that reports whether the database answers.
| Key | Default | Secret | Meaning |
|---|---|---|---|
url | none, required when the section is present | yes | The PostgreSQL connection URL; it must name its sslmode |
tls_ca | none | no | The PEM CA the database’s certificate is checked against |
tls_ca_file | none | no | A file holding that CA, read at boot |
schema | cdm | no | The schema the CDM tables live in, an unquoted lower-case identifier |
bridge_schema | ferrobridge | no | The schema the bridge keeps its natural-key side table, id sequences and watermarks in |
person_policy | create_on_first_sight | no | For a person no mapping writes a PERSON row for: create_on_first_sight gives the EHR a person_id and a placeholder PERSON row (concepts 0, year_of_birth 0) the first time a row refers to it; existing refuses a row whose EHR has no PERSON row (The PERSON row) |
Two clients open the database: the concept resolver’s pool and the CDM
writer’s own connection. Both read the sslmode of url and the CA from
tls_ca or tls_ca_file, and both handshake with one TLS configuration:
the writer directly, and the pool through a relay on a private Unix socket
that the bridge starts beside it. With a CA set, both trust that CA and
nothing else; without one, verify-ca and verify-full trust the webpki
root set. A URL that asks for TLS names one host and one port, the server the
relay reaches; a list of hosts is refused. The modes are the libpq ones that never fall
back to plaintext
(https://www.postgresql.org/docs/current/libpq-ssl.html):
sslmode | What the clients do |
|---|---|
disable | Connect without TLS. A CA with disable is refused |
require | Connect over TLS. With a CA, the certificate must chain to it, as libpq checks when a root certificate is present; without one, it is not checked |
verify-ca | Connect over TLS; the certificate must chain to the CA, or to the webpki root set when no CA is set |
verify-full | As verify-ca, and the certificate must name the host in url |
prefer and allow are refused when the configuration is read, naming the
mode: a client that honours them connects in plaintext when the server offers
no TLS, and that fallback is silent. A URL that names no sslmode is refused
the same way, because libpq’s default is prefer: write sslmode=disable
for a database on a trusted local network or in a test container, and one of
the three TLS modes everywhere else. Any other ssl parameter in the URL
(sslrootcert, sslcert, sslkey and the rest) is refused too: the CA
comes from tls_ca_file, and the bridge sends no client certificate. For the
same reason the bridge refuses to start when PGSSLROOTCERT, PGSSLCERT or
PGSSLKEY is set in its environment: the pool’s PostgreSQL client reads
those variables whatever the configuration says, so the TLS settings stay in
one place. The CA is public material, so it is
not a secret, and FERROBRIDGE__CDM__TLS_CA and
FERROBRIDGE__CDM__TLS_CA_FILE set the two keys from the environment; setting
both is refused. A typical production URL, with the CA mounted beside it:
[cdm]
url_file = "/run/secrets/cdm_url" # postgres://bridge:...@cdm.internal:5432/omop?sslmode=verify-full
tls_ca_file = "/run/secrets/cdm_ca.pem"
What cdm init does
ferrobridge cdm init reads which CDM tables [cdm] schema already holds
before it applies anything:
| The schema holds | cdm init |
|---|---|
| none of the 39 CDM v5.4 tables, or does not exist | Creates the schema when absent, then applies OHDSI’s tables, primary keys and indices in one transaction, and exits 0 |
| every CDM v5.4 table | Applies nothing, prints that the schema is already initialised with the cdm_version its CDM_SOURCE rows record, and exits 0 |
| some of the tables | Applies nothing and exits 1, naming every missing table |
It then creates the bridge schema, which is safe to repeat, and brings a bridge schema an earlier release created to the current shape, so run it once after an upgrade. Tables outside the CDM’s 39 are left alone and do not count. The check reads table names only, so a schema whose tables exist without their keys or indices counts as initialised.
OHDSI’s fourth file, OMOPCDM_postgresql_5.4_constraints.sql, carries the
foreign keys and is left out by default. cdm init --with-constraints
applies it after the tables, statement by statement in one transaction of its
own. At the pinned OHDSI tag v5.5.0 PostgreSQL refuses line 157, a foreign
key onto vocabulary (vocabulary_id) that the primary keys file gives no key
(SQLSTATE 42830), so the flag exits 1, prints that statement, and leaves the
tables in place and no foreign key behind.
[cdm.pseudonymisation]
With this section present, the CDM writer pseudonymises every row before it
reaches the CDM: each column the CDM field definitions describe as a link
back to the source carries a keyed pseudonym, the provider’s name, npi and
dea and a location’s address are written as NULL, and every date of a
person moves by that person’s shift. The result is pseudonymised data, still
personal data: free text, the code *_source_value columns and the concepts
of rare conditions are written as mapped, and the bridge schema keeps the
source identifiers it needs to replace a composition’s rows, so never hand it
out with the CDM (Pseudonymisation).
| Key | Default | Secret | Meaning |
|---|---|---|---|
key | none, required when the section is present | yes | The HMAC-SHA-256 key, at least 32 bytes. One source value under one key gives one pseudonym on every run, so an incremental load joins; a new key renames every person |
key_file | none | yes | A file holding the key, read at boot |
date_shift_days | 0 | no | The largest shift of a person’s dates either way, in whole days, at most 3650; 0 leaves dates as they are |
[etl]
The OMOP ETL jobs ferrobridge etl run and ferrobridge etl fhir run. Both queries are parsed and
checked when the configuration loads, so a query the runner cannot read
refuses every job.
| Key | Default | Secret | Meaning |
|---|---|---|---|
aql | none | no | The composition query, which etl run needs and etl fhir does not read; etl run refuses to start without it. It aliases ehr_id, version_uid and the whole composition, carries an ORDER BY that ends in v/uid/value and no LIMIT. Every COMPOSITION it reads sits below VERSION v[LATEST_VERSION] (The composition query). It may name $since, which --since binds. It may also alias versioned_object_uid, which the runner then checks against the version; when it does not, the runner reads it from the version_uid, whose object_id part names the versioned object (openEHR RM Common 1.1.0, OBJECT_VERSION_ID) |
page_size | 100 | no | The fetch of each page of either query, and the number of watermarks each batch of the deletion check reads |
deletions | remove | no | What a run does with a composition the CDR reports deleted: remove deletes its rows, links and watermark, report lists it in the run report and keeps them. Any other value refuses the start (Deleted compositions) |
quality_checks | false | no | With true, etl run runs the ported Data Quality Dashboard checks over the tables it wrote, PERSON and the derived tables once the load is done, and the run report carries their verdicts and every failing check id. A failed check never rolls the committed load back. ferrobridge dq check runs the same checks over the whole CDM (Checking a populated database) |
derived_tables | owned_persons | no | Which rows of OBSERVATION_PERIOD, CONDITION_ERA and DRUG_ERA a run rebuilds: owned_persons, the rows of the persons the bridge writes, keeping every other person’s rows, or whole_table, every row from every row in the schema. Any other value refuses the start (One writer per CDM table) |
type_concept_id | none, required | no | The *_type_concept_id the mappings write, the provenance of the records |
observation_period_type_concept_id | none, required | no | The period_type_concept_id of every observation period |
vocabulary_aliases | LOINC to LOINC, SNOMED-CT to SNOMED | no | A table from a terminology id, such as a URI or an OID, to the OHDSI vocabulary_id a coded value under it is looked up in, added over the defaults. A terminology id it does not list is looked up as its own vocabulary_id, and one longer than the 20 characters of VOCABULARY.vocabulary_id resolves to concept 0. The concept is still found in the loaded vocabulary. An empty id or vocabulary, a vocabulary longer than 20 characters, or a value that is not a string refuses the start. Written as [etl.vocabulary_aliases] with quoted keys, "http://terminology.hl7.org/CodeSystem/v2-0001" = "Gender" |
[etl.visits]
The visit derivation, off until the section is present. The rows are grouped by EHR and source, each visit spanning the earliest start to the latest end.
| Key | Default | Secret | Meaning |
|---|---|---|---|
aql | none, required | no | The visit query, aliasing ehr_id, visit_source, visit_start and visit_end, with an ORDER BY that ends in v/uid/value, every COMPOSITION it reads below VERSION v[LATEST_VERSION] (The composition query), and no $since (The visits the query no longer answers) |
visit_concept_id | none, required | no | The visit_concept_id of every visit |
visit_type_concept_id | none, required | no | The visit_type_concept_id of every visit |
[mappings]
The mapping sets this deployment runs. The facade, the two FHIRconnect
operations and the mapping subcommands read the FHIRconnect set in
directory; etl run reads the OMOCL set in omocl. The FHIRconnect set
and its templates are read once at boot, and a mapping that does not compile
refuses the start rather than the first request that touches it. The OMOCL
set is read once when etl run starts and compiled against each template
the first time a composition of it arrives, because an OMOCL file names an
archetype and no template.
| Key | Default | Meaning |
|---|---|---|
directory | none | The directory the mapping files are read from, recursively (.yml, .yaml) |
templates | none | The directory holding the operational templates the two operations compile against, as OPT 1.4 XML (.opt) |
omocl | none | The directory the OMOCL files ferrobridge etl run maps with are read from, recursively (.yml, .yaml); read and validated once at start, and every file an Include names must be in it |
The three directories are walked the same way. Every real subdirectory is
read, a symlink to a file is followed, and a symlink to a directory is not.
An entry whose name starts with .. is skipped, so a Kubernetes ConfigMap
mounted as a whole directory is read once: its files sit in a hidden
..<timestamp> directory behind a ..data symlink, and each key appears at
the top level as a file symlink.
The facade always takes its templates from the CDR and needs directory
alone. The two FHIRconnect operations take theirs from one of two sources:
- With
templatesset, every.optfile in that directory is read. This source wins when[cdr]is configured too, because the directory is the explicit choice, and the operations then run with no CDR at all. - With
templatesunset and[cdr]configured, the server reads the context files first and fetches each template they name from the CDR (GET /definition/template/adl1.4/{template_id}, openEHR ITS-REST 1.1.0 §Definition). A template the CDR does not hold, or any other refused fetch, stops the start with an error naming the template and the status the CDR answered, so the lane never comes up with part of its mappings. A CDR that does not answer yet is waited for, with readiness at503meanwhile (the health probe).
A directory with neither templates nor [cdr] is refused while the
operations are enabled. The server checks this when it reads the
configuration, before it calls any upstream, and the refusal names both
sources. With [operations] enabled = false, directory alone
is enough for the facade.
# The operations compile against local templates and reach no CDR.
[mappings]
directory = "/etc/ferrobridge/mappings"
templates = "/etc/ferrobridge/templates"
# The operations compile against the templates the CDR serves.
[cdr]
endpoint.url = "https://cdr.example.org/openehr/v1"
[mappings]
directory = "/etc/ferrobridge/mappings"
[facade]
The FHIR R4 facade. It is off until enabled is true, and a disabled facade
mounts no route, so a request to /fhir answers 404 rather than 403. An
enabled facade needs [cdr] and [mappings] directory: it compiles the
mapping set at boot against the templates the CDR holds, so a mapping that does
not compile refuses the start rather than the first request that touches it.
This lane reaches identifiable data, and the server says so once at start-up.
| Key | Default | Meaning |
|---|---|---|
enabled | false | Whether the facade routes are mounted |
base_url | http://127.0.0.1:8080/fhir | The absolute FHIR service base a client reaches, which Location is written under |
ehr_policy | existing | existing writes only into an EHR the CDR already holds; create_on_first_write creates one for an unknown subject |
identity_store | identity.redb | The file the identity map is kept in, opened at boot and refused when it cannot be written |
subject_namespace | ferrobridge | The namespace a literal subject reference is looked up in on the CDR, the PARTY_REF.namespace of EHR_STATUS.subject |
subject_id_form | reference | How the id of a literal subject reference is written: reference keeps Patient/<id>, logical_id keeps the bare <id>, and uuid keeps the bare <id> and refuses one that is no UUID |
subject_type | PERSON | The PARTY_REF.type of the subject of an EHR the facade creates, one of the BASE Type_validity values (PERSON, ORGANISATION, GROUP, AGENT, ROLE, PARTY, ACTOR) or ANY |
ehr_status_identifier_system | none | The Identifier.system whose identifier a mapping that offers the subject of the EHR (ehrStatusAddExternalREF) writes as EHR_STATUS.subject.external_ref |
system_id | FerroBRIDGE | The AUDIT_DETAILS.system_id every commit records |
composition_language | none, required | The COMPOSITION.language every commit carries, an ISO 639-1 code |
composition_territory | none, required | The COMPOSITION.territory every commit carries, an ISO 3166-1 code |
search_count | 20 | The page size of a search that names no _count |
search_count_max | 100 | The largest page one search answers; a larger _count is answered with this many |
binding_identifier_issuers | none | The DV_IDENTIFIER.issuer of each binding key the CDR binds a login to (the identifier_issuer of its issuers’ party tables); the facade refuses with 403 to create, update or delete a party resource whose party carries an identifier of one of them |
The three subject_ keys make the facade’s link between a Patient and its
EHR match the one the CDR’s owner writes, because the facade finds an EHR
with GET /ehr?subject_id=&subject_namespace=. A CDR whose owner links each
EHR to a demographic party under its own namespace takes that namespace and
logical_id, so a subject Patient/<party uid> is looked up as the party
uid. A CDR that accepts only UUID pseudonyms as subject ids takes the
namespace it lists and uuid, so a subject whose id is no UUID is refused
with a diagnostic naming facade.subject_id_form before the CDR is called.
Under logical_id and uuid a Patient keys its own EHR the same way, by
its logical id in subject_namespace, so creating or updating a Patient finds
the EHR its resources are written into; a Patient with no id, or under
uuid one whose id is no UUID, is refused naming facade.subject_id_form.
Under reference a Patient keys its EHR by its first identifier with a
value, as before.
The facade never derives a pseudonym itself: name a subject by the id the CDR
already holds. A subject named by identifier keeps the identifier’s
system as its namespace and its value as its id. A subject_type outside
the BASE set, or a subject_namespace that breaks the OBJECT_REF
namespace rule, is a boot error naming the key.
A mapping can offer the resource’s identifiers as the subject of the EHR,
as the published KDS_admin_entry_person.yml does with
ehrStatusAddExternalREF. The openEHR RM leaves which identifier
EHR_STATUS.subject.external_ref holds to the deployment, so
ehr_status_identifier_system names its system. A CDR that takes subject
pseudonyms only (FerroEHR with [privacy] subject_namespaces) takes the
system its pseudonyms are issued in. The reference is written the way the
facade writes the subject of an EHR it creates: namespace and scheme from the
system, id from the value, type from subject_type. Before the
composition is committed the facade reads the EHR_STATUS: one that already
holds the reference is left as it is, one with no subject reference takes it
with If-Match on the version read, and one that names another subject
answers 409. A CDR refusal of the write answers through the same status
table as a composition write, a 412 with the latest version as its ETag,
and nothing is committed after it. With the key unset, a write whose mapping
offers identifiers answers 422 naming the key; identifiers of another
system are left out of the subject reference, and two distinct identifiers of
the configured system answer 422.
The two composition fields have no default. FHIRconnect puts them on the project performing the mapping, and there is no correct language for a clinical record you did not write, so an enabled facade with either key unset is a boot error naming the key.
The identity store holds identifiers: a subject to its ehr_id, a resource id
to the composition it came from, and the source identity of every resource the
facade consumed. No clinical content is written into it. Back it up with the
CDR, because a lost map means the next create writes a second composition for a
resource the CDR already holds. In a container with a read-only root
filesystem, put the file on a persistent volume and run one process per file
(the identity store).
[facade.references]
How the facade resolves a reference a request names and does not carry, for a
reference mapping that reads the referenced resource. A relative reference
(Observation/abc), or an absolute one under [facade] base_url, names a
resource this server committed, and the facade reads it through the identity
map and the CDR as a read answers it. An absolute reference to another server
is fetched only from a base listed in fetch_bases, with redirects refused,
so by default nothing is fetched. A reference whose resource is absent,
because its base is not listed, the server answered 404 or 410, or this
server holds no such resource, is a declared skip: the mapping proceeds
without it and the log line names the reference, the base and the upstream
status. A fetch that failed, because the server answered another status, the
fetch timed out or the body is not the referenced resource, refuses a request
whose mapping reads that reference with 502 Bad Gateway, and the
OperationOutcome names the reference and the upstream status. FHIRconnect
says only that the engine “should attempt to GET it from the sending site. If
not possible, the engine proceeds with the mapping”; its strictness chapter
asks that “either all data should be mapped, or the mapping should fail”, so
an upstream failure refuses. The allow-list, the depth and the timeout are
FerroBRIDGE’s own design.
| Key | Default | Meaning |
|---|---|---|
fetch_bases | [] | The FHIR service bases an absolute reference may be fetched from, each an http or https URL with no query or fragment |
max_depth | 2 | How many levels of references are followed: the request’s own, then those of each resolved resource; 0 resolves none |
timeout | "10s" | How long one fetch from a listed base may take, connection included |
Each key is settable as FERROBRIDGE__FACADE__REFERENCES__<KEY>, and
fetch_bases takes a TOML array:
FERROBRIDGE__FACADE__REFERENCES__FETCH_BASES='["https://sender.example/fhir"]'.
A base that is no http or https URL, or that carries a query or a
fragment, is a boot error naming facade.references.fetch_bases.
[facade.cors]
The origins a browser app may call the facade’s REST routes from, through
cross-origin resource sharing (the Integrate page,
Browser apps). SMART App
Launch 2.2.0 asks a server that supports purely browser-based apps to admit
a client’s registered origins on its FHIR REST API; the facade holds no
client registry, so this list is that registration. The
CapabilityStatement and the SMART discovery document answer any origin
with Access-Control-Allow-Origin: * whatever the list holds, and with
[facade] off the discovery document still does.
| Key | Default | Meaning |
|---|---|---|
allowed_origins | [] | The origins the REST routes under /fhir admit, each an http or https origin (scheme, host and an optional port, with nothing after but an optional /); empty admits none |
The key is settable as FERROBRIDGE__FACADE__CORS__ALLOWED_ORIGINS and takes
a TOML array: FERROBRIDGE__FACADE__CORS__ALLOWED_ORIGINS='["https://app.example"]'.
An origin is compared in its serialized form, so https://App.Example/ admits
the browser’s https://app.example. A value that is no http or https
origin, a wildcard *, null, or a URL with a path, a query or a user, is a
boot error naming facade.cors.allowed_origins: the REST routes carry the
caller’s token, so they answer only an origin you name.
[facade.consent]
The exchange of a patient’s access directives as FHIR Consent, IHE BPPC and
IHE APPC (the Integrate page, Consent and access directives).
Off, Consent is no resource type of the facade and the CapabilityStatement
lists none. On, the facade reads and writes the EHR_ACCESS of the patient’s
EHR on the CDR, through the CDR’s EHR_ACCESS read and a CONTRIBUTION, always
under the token the onward lane exchanges for the facade’s caller, so the CDR
decides for the patient or the gate-keeper who asked. An enabled exchange
needs [cdr.endpoint.credentials.onward] or a [[cdr.onward]] table, and the
bridge refuses to start without one (facade.consent.enabled needs
cdr.endpoint.credentials.onward): it never reads or writes a patient’s
directives under its own credential. Only the controller’s ACCESS_POLICY,
which the CDR serves to its administrators, is read under the bridge’s own
token.
| Key | Default | Meaning |
|---|---|---|
enabled | false | Whether Consent, Consent/$bppc and Consent/$appc are served |
extensions_url | none, required | The root the CDR serves its extensions under, https://<cdr>/ferroehr/rest/extensions/v1 on FerroEHR: the EHR_ACCESS read is GET /ehr/{ehr_id}/ehr_access and the controller’s ACCESS_POLICY GET /admin/access_policy under it |
default_access | none, required | The default_access of the first ACCESS_DIRECTIVE_SETTINGS the exchange writes into an EHR whose EHR_ACCESS carries none: open, restricted or consent_required |
Each key is settable as FERROBRIDGE__FACADE__CONSENT__<KEY>. The access
default has no default value, because it decides who reaches an EHR the
exchange writes first; an enabled exchange without it, or with another value,
is a boot error naming facade.consent.default_access. This is FerroBRIDGE’s
own design.
[facade.app_state]
SMART App State (SMART App Launch 2.2.0, Persisting App State), served as
Basic at the facade’s base (the Integrate page,
SMART App State). Off, Basic
is an ordinary resource type a program may map. On, Basic is the App State
endpoint, the discovery document lists smart-app-state, and the
CapabilityStatement instantiates smart-app-state-server; a context that
maps Basic is then a boot error, and a reload that adds one is refused.
| Key | Default | Meaning |
|---|---|---|
enabled | false | Whether Basic is the SMART App State endpoint |
store | app-state.redb | The file the App State resources are kept in, apart from the identity map |
Each key is settable as FERROBRIDGE__FACADE__APP_STATE__<KEY>. App State can
hold an app’s keys, so keep the file on storage you protect as you protect the
CDR’s. The store and its file are FerroBRIDGE’s own design.
[facade.launch_task]
SMART launch Tasks (SMART App Launch 2.2.0, Task profile for requesting a
SMART launch), served as Task at the facade’s base (the Integrate page,
SMART launch Tasks). Off,
Task is an ordinary resource type a program may map. On, Task serves the
task-ehr-launch and task-standalone-launch profiles; a context that maps
Task is then a boot error, and a reload that adds one is refused.
| Key | Default | Meaning |
|---|---|---|
enabled | false | Whether Task is the launch endpoint |
store | launch-tasks.redb | The file the launch Tasks are kept in, apart from the identity map |
Each key is settable as FERROBRIDGE__FACADE__LAUNCH_TASK__<KEY>. The store
and its file are FerroBRIDGE’s own design.
[facade.identifier_search]
The chained search through a patient’s identifier:
Condition?patient.identifier=MRN-1 and subject.identifier. A client
usually holds a patient number, not an EHR id. The facade looks the
identifier up in the CDR’s demographic data with an AQL query rooted at a
demographic class, the way Cadasto’s experimental AQL demographic extension
documents it. AQL 1.1.0 defines no demographic semantics, so both queries
are configuration, and the CDR must serve the extension. The reference CDR,
FerroEHR, serves the PERSON, ORGANISATION and ROLE roots from version
5.1.0.
A query’s first column is the party’s uid/value, and a versioned uid
counts as its party. The facade treats each party’s uid as a patient’s
logical id and finds its EHR the way every subject is found: through the
identity map, then GET /ehr?subject_id=&subject_namespace= under the
[facade] subject_ keys. So the CDR’s owner links each EHR to its party’s
uid. An identifier that several parties carry matches the resources of each
of them, because R4 matches a bare value “irrespective of the value of the
system property” (FHIR R4 search §3.1.1.4.10); narrow it with
[system]|[value]. An identifier no party carries, or a party with no EHR,
adds nothing. Put no LIMIT in the query, because every row counts.
| Key | Default | Meaning |
|---|---|---|
enabled | false | Whether patient.identifier and subject.identifier are supported; off, both are unknown parameters |
query | the resolve observed on Cadasto’s platform: SELECT p/uid/value FROM PERSON p WHERE p/details[openEHR-DEMOGRAPHIC-ITEM_TREE.person_details.v2]/items[openEHR-DEMOGRAPHIC-CLUSTER.person_identifier.v2]/items[at0001]/value/id = $identifier ORDER BY p/uid/value ASC | The AQL a value with no system runs, binding the value as $identifier |
system_query | empty | The AQL a [system]|[value] value runs, binding $identifier and $system. Empty refuses a value that names a system with 400 not-supported, because FHIRconnect maps no FHIR identifier system to a DV_IDENTIFIER attribute |
A query that does not bind the parameters it is handed is a boot error naming
the key. A CDR that refuses the query does not serve the extension, or not
this query of it: the search answers 501 with not-supported, naming the
extension and carrying the CDR’s words, as the party search does.
[facade.party_search]
The search on the types a party context serves: Patient, Practitioner,
PractitionerRole and Organization, by identifier, name or _id
(Patient?identifier=MRN-1, Patient?name=jans). The ITS-REST Demographic
API has no search, so for identifier and name the facade runs an AQL
query rooted at a demographic class, the Cadasto experimental AQL
demographic extension, and reads each party it names over the Demographic
API. _id needs no query: the facade reads the party the id names. The
reference CDR, FerroEHR, serves the PERSON, ORGANISATION and ROLE
roots from version 5.1.0 and answers 400 to a query rooted at GROUP,
AGENT or PARTY_RELATIONSHIP, which the search answers as 501.
Each type has its own queries and none has a default, because the archetypes
a tenant stores and the dialect both move. A query’s first column is the
party’s uid/value, and a versioned uid counts as its party. Leave LIMIT
and OFFSET out: the facade pages the query with the query API’s offset
and fetch. Keep to the forms the extension documents or Cadasto observed as
stable: a demographic root, WHERE and LIKE over the parameters,
ORDER BY and the person_identifier CLUSTER.
identifiermatches a bare value whatever its system, so two parties that carry it are two entries, and[system]|[value]runssystem_query.namematches a name that starts with the value, ignoring case, as R4 string search asks. The extension’sLIKEis case-sensitive, so the value is bound three times as a prefix pattern (jans*):$nameas typed,$name_lowerin lower case and$name_capitalisedwith its first letter in upper case. Write the query to compare the name with each. A name in another case (JANSENforjans) and an accent difference are not matched until the dialect can fold them. A value carrying*or?is a400._idmatches the one party with that id, and a party of another template matches nothing._countis capped atsearch_count_max, and_count=0answers the number of matches intotalwith no entries.
A search takes one of these parameters, plus _count and the paging cursor.
A second one, or any other parameter, is a 400, unless the client sends
Prefer: handling=lenient, which ignores it and reports it. A CDR that
answers 400 to a query does not serve the extension, or not this query of
it: the search answers 501 with not-supported, naming the extension and
carrying the CDR’s words.
| Key | Default | Meaning |
|---|---|---|
enabled | false | Whether the types under types are searched; off, no party type offers search |
types.<Type>.query | empty | The AQL an identifier value with no system runs for <Type>, binding the value as $identifier; empty, the type takes no identifier |
types.<Type>.system_query | empty | The AQL a [system]|[value] value runs, binding $identifier and $system; empty refuses a value naming a system with 400 not-supported |
types.<Type>.name_query | empty | The AQL a name value runs, binding $name and, to compare them, $name_lower and $name_capitalised; empty, the type takes no name |
[facade.party_search]
enabled = true
[facade.party_search.types.Patient]
query = "SELECT p/uid/value FROM PERSON p WHERE p/details[openEHR-DEMOGRAPHIC-ITEM_TREE.person_details.v2]/items[openEHR-DEMOGRAPHIC-CLUSTER.person_identifier.v2]/items[at0001]/value/id = $identifier ORDER BY p/uid/value ASC"
name_query = "SELECT p/uid/value FROM PERSON p WHERE p/identities/details/items[at0010]/value/value LIKE $name OR p/identities/details/items[at0010]/value/value LIKE $name_lower OR p/identities/details/items[at0010]/value/value LIKE $name_capitalised ORDER BY p/uid/value ASC"
A type with only _id needs no query: write its table empty. On with no
type, a system_query with no query, a query that does not bind its
parameters, and a type no party context serves are boot errors naming the
key. enabled is settable as FERROBRIDGE__FACADE__PARTY_SEARCH__ENABLED;
write the types tables in the file, because an environment key is read in
lower case and a resource type name does not survive it.
[auth]
Inbound authentication: the FHIR routes and the operator API as a SMART App
Launch 2.x resource server. The section is the one ferrohealth-smart, the
FerroHEALTH resource-server crate, defines for every product, and it is on
by default: serve refuses to start a facade, an operator API or a
FHIRconnect operations lane until [auth] names an issuer in an
[auth.issuer.<name>] table, or until enabled = false says the bridge runs on a
network only trusted callers reach. A server that serves only / and the
health routes, and the jobs (cdm init, etl run, mapping check), read no
[auth]. While it is off, the facade authenticates no caller and serves
every request that reaches it, reads and writes of patient data included,
and the server logs a warning saying so at start-up. The
FHIR facade page says what a caller
sends and what each refusal looks like.
| Key | Default | Meaning |
|---|---|---|
enabled | true | Whether every guarded request needs a credential; false serves the facade and the operations open |
realm | none | The realm every WWW-Authenticate challenge names |
capabilities | [] | SMART capabilities the discovery document lists beside the three the facade enforces (permission-v1, permission-patient, permission-user) and the ones the issuer’s metadata shows, such as launch-ehr or context-ehr-patient; each is one SMART App Launch 2.2.0 (Conformance, Capabilities) defines, or a full URI. sso-openid-connect also writes the issuer’s issuer, which the document omits otherwise (Conformance, Metadata) |
scopes_supported | [] | The scopes the discovery document lists as scopes_supported; list only scopes the bridge honours, because “the server SHALL support all scopes listed here” (SMART App Launch 2.2.0, Conformance, Metadata). Empty omits the member |
described_issuer | none | The name of the [auth.issuer.<name>] table the discovery document and the CapabilityStatement describe, when the bridge trusts several. Unset, the bridge describes the one issuer of kind persons, patients or federation whose metadata it holds, and with only machines issuers trusted the one machines issuer, for SMART Backend Services alone. The rule says which issuers it may name |
product_scope | __ferrobridge.operator | The operator scope: it guards the operator API and admits $validate, $tofhir and $toopenehr on the facade, which commit nothing. SMART scopes cover FHIR resources only, so this scope is FerroBRIDGE’s own, in a form SMART App Launch 2.2.0 gives an extension scope: a string starting with __ or a full URI; any other value refuses the start |
tls.trust_roots_file | none | A PEM file of trust roots added to the platform’s, for an issuer behind a private certificate authority. The discovery document and the key set of every issuer are read trusting it, and for an issuer with mode = "introspection" so are the introspection endpoint and the token endpoint of its credential. It is read once at start; a file that cannot be read, is no PEM, or holds no certificate refuses the start. tls.client_identity_file and tls.min_version ("1.3" unless lowered to "1.2") complete the table |
[auth.issuer.<name>]
Each trusted authorization server is one table named for it, such as
[auth.issuer.clinic], and every setting of an issuer lives on its table or
the tables nested under it. A name is a lower-case letter followed by at most
63 lower-case letters, digits and _; any other refuses the start, and so
does a key that names an issuer table no table carries, listing the names
there are. The tables are read in the order of their names, and that order
decides nothing.
| Key | Default | Meaning |
|---|---|---|
issuer | none, required | The authorization server’s issuer identifier, an https URL with no query or fragment (RFC 8414 §2), or plain http on a loopback host; a token’s iss must equal it |
kind | the preset’s | Whose tokens the issuer signs: persons (the deployment’s people, through its own clients, and the app-only tokens of its machines), patients (patients, each token naming only the record subject), machines (client credentials tokens only) or federation (another party’s people, which needs its [auth.issuer.<name>.federation] table). The ferrosmart, keycloak, entra and okta presets give persons; under rfc9068 the key is required |
preset | rfc9068 | The shipped profile the token shape and the caller classification start from: rfc9068 (a standards-only server), entra, keycloak, okta or ferrosmart (FerroSMART’s tokens, running behind FerroSMART) |
profile_file | none | A profile file you supply, in the form of a preset file (its profile keys, kind and a [federation] table), read over the preset; a country’s federation mapping ships this way |
audience | [facade] base_url | The audiences, a list, of which every token’s aud must contain one (RFC 9068 §4); unset, the facade’s base URL |
scopeless_subjects | [] | The sub of each machine of this issuer whose token gets system-wide access when it names no SMART clinical scope, such as a backend service whose authorization server issues no scope. Only a token the issuer’s profile classifies as a machine is admitted this way; any other scopeless token is refused with 403 |
algorithms | ["RS256", "RS384", "PS256", "PS384", "ES256", "ES384"] | The signature algorithms a token may use; a symmetric HS* algorithm is refused and none is no algorithm |
clock_skew | "1min" | The leeway exp, nbf and iat are checked with, at most 300 |
jwks_max_age | "10min" | How long a key set is used before it is read again, so a key the issuer withdrew stops verifying |
jwks_refresh_interval | "1min" | The shortest time between two reads of the key set that a token naming an unknown kid, or a failed read, triggers |
jwks_file | none | A JWK Set file handed over out of band, read in place of the issuer’s jwks_uri; the issuer’s metadata is then not read |
timeout | "10s" | How long one call to the authorization server may take |
role_claims | ["roles", "groups", "entitlements"] | The claims this issuer’s roles are read from, each a dotted path into the token’s JSON (the default is the three RFC 9068 §2.2.3.1 names). A path with an empty step or with whitespace refuses the start. The bridge grants nothing by role: no route it guards asks for one, so the roles a token carries change no answer |
mode | jwt | jwt checks JWT access tokens against the issuer’s key set; introspection asks the issuer’s introspection endpoint |
Under the default rfc9068 preset a token carries typ: at+jwt and the
claims iss, exp, aud, sub, client_id, iat and jti (RFC 9068
§2.2 and §4). The profile also decides who stands behind a token: a token
whose sub equals its client_id is a machine’s client credentials token
(RFC 9068 §2.2), and any other token of a persons issuer is a person’s,
admitted only through a client the profile table lists in
first_party_clients or delegates. The keycloak preset names no machine:
its profile table lists the sub of each service account in
app_only = [{ subjects = [...] }], and without one refuses the start. A valid token that fits none of the issuer’s kind is refused
with 401. A token is checked by the issuer its iss names.
The described issuer
The discovery document and the CapabilityStatement describe one
authorization server: a user launch starts at its authorization endpoint,
and a backend client takes its tokens from its token endpoint (SMART App
Launch 2.2.0, Conformance, Metadata, and Backend Services, Retrieve
.well-known/smart-configuration). SMART does not say which of several
trusted issuers that is, so ferrohealth-smart fixes one rule for the
FerroHEALTH servers, and the order of the issuer tables never decides:
- With
described_issuer, the bridge describes that issuer once it is a trusted issuer whose metadata it holds. Amachinesissuer is described for SMART Backend Services alone, and refused while another issuer serves a user launch. - Otherwise, when the bridge trusts an issuer of kind
persons,patientsorfederation, it describes the one such issuer whose metadata it holds, for SMART App Launch. Several refuse the start, naming them and the key, and so does none: an issuer read from ajwks_filenames no authorization endpoint. - Otherwise it describes the one
machinesissuer for SMART Backend Services: the token endpoint,private_key_jwt, the client credentials grant and thesystem/scopes ofscopes_supported, with no authorization endpoint and no launch capability. Several refuse the start the same way.
A machines issuer signs client credentials tokens only, so no user launch
works there.
[auth.issuer.clinic]
issuer = "https://auth.example.org/realms/clinic"
preset = "keycloak"
algorithms = ["RS256"]
scopeless_subjects = ["service-account-ferrofed"]
[auth.issuer.clinic.profile]
first_party_clients = ["ferrobridge-console", "clinic-portal"]
app_only = [{ subjects = ["service-account-ferrofed"] }]
[auth.issuer.partner]
issuer = "https://partner.example.net"
kind = "machines"
role_claims = []
Both issuers take the facade’s base_url as their audience.
[[auth.basic.users]] tables admit HTTP Basic callers (RFC 7617) beside the
tokens. A Basic credential is always a person’s, never a machine’s: each
table names one person and holds the credential alone, user and the
Argon2id PHC string of the password as password_hash or in the file
password_hash_file. A scopes or roles key in the table is refused as
unknown: what the person is granted is set in
[basic_grants]. [auth.basic] cache_ttl (default "5min") is how long a password that verified is
remembered, so a repeat request skips the Argon2id derivation; "0s"
remembers none.
[[auth.basic.users]]
user = "operator"
password_hash_file = "/run/secrets/operator.phc"
[basic_grants.operator]
scopes = ["__ferrobridge.operator"]
A machine that calls the facade, such as an ETL client or another
FerroHEALTH product, holds a client credentials token (RFC 6749 §4.4) that
its authorization server issues: register it as a client of a machines or
persons issuer the section trusts, grant it the SMART system/ scopes it
needs, and send the token as Authorization: Bearer. The bridge is a
resource server and issues no token itself.
At start-up the server reads each issuer’s metadata, at
/.well-known/oauth-authorization-server inserted before the issuer’s path and
on a 404 at the issuer followed by /.well-known/openid-configuration, and
the key set its jwks_uri names. Metadata naming another issuer, metadata
without a jwks_uri, a first issuer without a token_endpoint, and a key
set that cannot be read each refuse the start. A key set older than
jwks_max_age is read again before a token is checked against it. A
token whose kid the key set does not hold makes the server read the key set
once more, which is how a key rotation arrives, and never more often than
jwks_refresh_interval.
An authorization server whose access tokens are opaque, so the bridge cannot
check them against a key set, is checked by OAuth 2.0 Token Introspection
(RFC 7662) instead: mode = "introspection" on its issuer table, with an
[auth.issuer.<name>.introspection] table. The bridge posts each token to
the issuer’s introspection endpoint under its own credential, admits it when
the answer is active: true with scope, client_id and exp (SMART App
Launch 2.2.0, Token Introspection), checks an iss and an aud the answer
carries against issuer and audience, and reads the scopes and the
patient launch context as it reads a JWT’s. An answer is held until its
exp and never longer than cache_max_age, so a revoked token
passes for at most that long. An inactive token is refused with 401; an
endpoint that fails answers 503. An introspected issuer takes no
jwks_file, and sits beside issuers checked by their key sets.
| Key | Default | Meaning |
|---|---|---|
introspection.endpoint | the metadata’s | The introspection endpoint, an https URL, when the issuer’s metadata names none or another |
introspection.cache_max_age | "1min" | The longest an active answer is used before the endpoint is asked again; "0s" asks on every request |
introspection.cache_capacity | 10000 | The most answers held at once |
introspection.client | none | The bridge’s client authentication at the endpoint: the keys of [cdr.endpoint.credentials.oauth] (client_id, client_auth, client_secret or client_secret_file, private_key_file, tls); issuer defaults to the table’s |
introspection.bearer | none | Instead of client: a client credentials grant, in the same keys, whose token the bridge sends as Authorization: Bearer, the form SMART App Launch 2.2.0 has an EHR accept |
[auth.issuer.clinic]
issuer = "https://auth.example.org/realms/clinic"
kind = "persons"
mode = "introspection"
[auth.issuer.clinic.profile]
first_party_clients = ["clinic-portal"]
[auth.issuer.clinic.introspection]
cache_max_age = "30s"
[auth.issuer.clinic.introspection.client]
client_id = "ferrobridge-rs"
client_secret_file = "/run/secrets/introspection-secret"
An environment variable addresses an issuer by its name, such as
FERROBRIDGE__AUTH__ISSUER__CLINIC__CLOCK_SKEW, and FERROBRIDGE__AUTH__ISSUER
set to a URL is refused, since issuer is a table of tables. The section’s own keys read from the environment, such as
FERROBRIDGE__AUTH__ENABLED and FERROBRIDGE__AUTH__PRODUCT_SCOPE.
Apart from the Basic users’ hashes and the introspection credential the
section holds no secret: the resource server checks signatures with the
issuer’s public keys.
[basic_grants]
What each Basic user of [[auth.basic.users]] is granted, one table per
user named by its user-id, [basic_grants.<user-id>]. The facade and the
operator API check the scopes as they check a token’s. A user with no table
is granted nothing.
| Key | Default | Meaning |
|---|---|---|
scopes | [] | The SMART user/ scopes and the operator scope the user is granted. A system/ scope refuses the start, naming the user and the scope: a Basic credential is a person’s |
roles | [] | The roles the user is granted, one word each. As with role_claims, a role grants nothing on the bridge |
A table naming a user [[auth.basic.users]] does not list refuses the start,
naming the user, so a misspelt user-id never grants anything. The section
holds no secret.
[basic_grants.clinician]
scopes = ["user/Condition.rs", "user/Observation.rs"]
[hl7v2]
The HL7 v2 face: an MLLP listener whose messages are written into the CDR
through the facade’s ingest service. It is off until enabled is true, and an
enabled face with the facade off is a boot error naming hl7v2.enabled and
facade.enabled. This lane reaches identifiable data. The
HL7 v2 face page states what it does with a message and how
it answers.
| Key | Default | Meaning |
|---|---|---|
enabled | false | Whether the MLLP listener runs |
listen | 127.0.0.1:2575 | The socket address the listener binds |
default_charset | ASCII | The HL7 table 0211 code a message with an empty MSH-18 is read in |
unmapped_entries | skip_and_count | skip_and_count or refuse, for an entry no program maps |
ehr_policy | the facade’s | existing or create_on_first_write, for the face alone |
profiles | [] | { resource_type, profile } pairs: the profile a resource of that R4 type claims when the guide wrote none |
idle_timeout | "5min" | How long a connection may sit between messages; "0s" keeps it open |
frame_timeout | "30s" | How long one frame may take to arrive whole; "0s" waits |
frame_limit | "1MiB" | The largest message one frame may carry |
log_outcomes | false | Whether an AE or AR also logs the counted outcomes by kind at debug level |
facility_identifier_issuer | none | The issuer a facility’s namespace id (HD.1) is written under, the issuer the CDR client’s declared facilities name it by |
senders | none, required | The MSH-4 sending facilities accepted, at least one: { namespace_id } or { universal_id, universal_id_type }, each with its certificate_subject and an optional origin = "device" with its device_identifier_issuer |
tls.certificate_file, tls.key_file, tls.client_ca_file | none, required | The PEM chain and key the MLLP listener serves over TLS, and the authorities a sender’s client certificate must chain to |
A resource type the R4 element table does not name, a profile that is not a URL, a resource type listed twice, and a sender that names neither a namespace id alone nor a universal id with its type are each a boot error naming the key.
[change_feed]
The source the change-feed consumers follow: the commits of the CDR, read
after each consumer’s own watermark. It is off until enabled is true, and
an enabled feed is a boot error without a [cdr] section, and while no
consumer section is switched on. The change feed
page states what each source reads and what it cannot guarantee. No
specification governs the change feed: it is FerroBRIDGE’s own design.
| Key | Default | Meaning |
|---|---|---|
enabled | false | Whether the consumers follow the source |
source | aql | aql, the poll of /query/aql that works against any CDR, or ferroehr, the reference CDR’s outbox feed |
url | none | ferroehr only, required: the root of the CDR’s extensions, the path /admin/outbox lives under |
watermarks | none | aql only, required: the redb file each reader’s watermark is kept in |
start | now | aql only: where a reader with no watermark starts, now, beginning or an RFC 3339 instant |
dead_letters | none, required | The redb file the consumers park a poisoned event in and count its poisoned passes in; keep it beside watermarks |
max_attempts | 5 | How many passes an event may fail with a poisoned failure before it is parked, 1 to 1000 |
page_size | 100 | How many events one read asks for, 1 to 1000 |
poll_interval | "1s" | How long a consumer waits after a read that found no full page |
backoff | "1s" | How long a consumer waits after its first failed read, doubled per failure |
max_backoff | "1min" | The longest wait after a failed read, at least backoff |
A missing dead_letters, an unknown source, a start that names no
instant, a page_size or max_attempts outside 1 to 1000, a wait of "0s",
and a url that is no http or https base without a query or a fragment are
each a boot error naming the key. Both sources call
the CDR with the [cdr] credentials.
[events]
The AMQP publisher of the commit events: a consumer of the change feed that
republishes each event to a RabbitMQ topic exchange. It is off until
enabled is true, and an enabled lane is a boot error without
[change_feed] enabled. The events lane page
states the message, the routing keys and the delivery guarantees. No
specification governs the lane: it is FerroBRIDGE’s own design.
| Key | Default | Meaning |
|---|---|---|
enabled | false | Whether the lane publishes |
reader | none, required | The reader name the lane follows the change feed under: A-Z, a-z, 0-9, _, - and ., at most 128 characters |
url | none, required | Secret. The AMQP 0.9.1 broker URL, amqp:// or amqps:// |
tls | false | Whether an amqp:// URL is upgraded to amqps:// |
exchange | none, required | The durable topic exchange the events are published to |
confirm_timeout | "30s" | How long one publish waits for the broker’s confirm |
queues | [] | { name, binding } pairs: the durable queues declared and bound to the exchange with each topic binding key |
A missing reader, url or exchange, a reader name outside its alphabet,
a URL that is not amqp:// or amqps:// (the refusal never repeats the URL,
which may carry a password), a confirm_timeout of "0s", and a queue named
twice or with no binding are each a boot error naming the key. Over
[change_feed] source = "ferroehr", a CDR that answers 404 for the reader
refuses the start.
[fhir_outbound]
The outbound FHIR lane: a consumer of the change feed that maps each changed
composition to FHIR R4 through the facade’s programs and delivers it to a FHIR
endpoint as one transaction Bundle per event. It is off until enabled is
true, and an enabled lane needs [change_feed] enabled and [facade] enabled. It carries identifiable clinical data: the start logs a warning
naming the endpoint host. The outbound FHIR lane
page states what an event delivers and the delivery guarantees. No
specification governs the lane: it is FerroBRIDGE’s own design.
| Key | Default | Meaning |
|---|---|---|
enabled | false | Whether the lane delivers |
reader | none, required | The reader name the lane follows the change feed under, another than [events] reader and [omop_incremental] reader: A-Z, a-z, 0-9, _, - and ., at most 128 characters |
cleartext | false | Whether an http base is accepted, for a TLS terminator beside the bridge |
emitted | none, required | The redb file the record of what was delivered for each composition is kept in, identifiers only |
endpoint.url | none, required | The FHIR service base each Bundle is posted to, https without a query or a fragment, never the facade’s own base_url |
endpoint.timeout | "30s" | How long one delivery may take |
endpoint.connect_timeout | unset | How long opening the connection may take; unset, only timeout bounds it |
endpoint.retry | 3 attempts, "200ms" doubling to "5s" | max_attempts, initial_backoff and max_backoff: a delivery that got no answer or a 5xx is tried again |
endpoint.tls | the platform’s roots | trust_roots_file, client_identity_file or client_identity, and min_version ("1.3"), for an endpoint behind a private root or one that asks for a client certificate |
endpoint.credentials | none | user with password or password_file, or [fhir_outbound.endpoint.credentials.oauth], the same table [cdr.endpoint.credentials] takes |
The endpoint table is the family’s outbound endpoint table, sent through
ferrohealth-smart’s outbound client, which follows no redirect and renews a
token the endpoint refuses with 401 once.
A missing reader, endpoint.url or emitted, a reader name outside its
alphabet or another consumer’s, an http base without cleartext, the
facade’s own base, an endpoint.timeout of "0s", and the lane without the change
feed or the facade are each a boot error naming the key. A record file that
cannot be opened refuses the start.
[omop_incremental]
The incremental OMOP load: a consumer of the change feed that commits each
changed composition to the CDM database through the same step etl run
commits it with. It is off until enabled is true, and an enabled load is a
boot error without [change_feed] enabled, [etl], [cdm] and an OMOCL
directory ([mappings] omocl, or [operator] mapping_dir). It reads the
[etl] concepts, visits, derived-table scope and deletion policy, and leaves
[etl] aql unused. The OMOP ETL
page states what it reads and writes. No specification governs the
incremental load: it is FerroBRIDGE’s own design.
| Key | Default | Meaning |
|---|---|---|
enabled | false | Whether the load follows the change feed |
reader | none, required | The reader name the load follows the change feed under, another than [events] reader: A-Z, a-z, 0-9, _, - and ., at most 128 characters |
A missing reader, a reader name outside its alphabet or equal to the
events lane’s, and a missing section the load runs over are each a boot error
naming the key. The OMOCL set that does not load and a CDM database the
concept resolver cannot reach refuse the start. Over [change_feed] source = "ferroehr", a CDR that answers 404 for the reader refuses the start.
[audit]
The bridge’s own access records: one Regulation (EU) 2025/327 Annex II 3.2
record per facade access an authenticated caller makes, and one system import
record per message the HL7 v2 face commits, each sent as a FHIR R4
AuditEvent over the IHE ITI-20 ATX: FHIR Feed to an Audit Record
Repository. It is off until enabled is true, and an enabled lane needs
[facade] enabled and [auth]. The access record page
states what each surface records and where. The section’s shape is
FerroBRIDGE’s own design.
| Key | Default | Meaning |
|---|---|---|
enabled | false | Whether the facade and the HL7 v2 face record their accesses |
cleartext | false | Whether an http base is accepted, for a TLS terminator beside the bridge |
endpoint.url | none, required | The repository’s FHIR base; each record is created as [base]/AuditEvent |
endpoint.timeout | "10s" | How long one delivery to the repository may take |
endpoint.connect_timeout | unset | How long opening the connection may take |
endpoint.retry | 3 tries, "200ms" doubling to "1min" | The tries of one delivery, and max_backoff the wait between two rounds of tries |
endpoint.tls | the platform’s roots | trust_roots_file, client_identity_file or client_identity, and min_version ("1.3") |
endpoint.credentials | none | user with password or password_file, or [audit.endpoint.credentials.oauth], the same table [cdr.endpoint.credentials] takes |
spool_dir | none, required | The directory records wait in until the repository takes them; created when absent, and refused when its group or other users can reach it |
max_records | 10000 | The most records the spool holds at once |
max_size | "64MiB" | The most bytes the spool holds at once |
write_timeout | "2s" | The longest storing one record may take |
source_id | [facade] system_id | How the bridge names itself as the recording system (AuditEvent.source.observer) |
site | none | The site the bridge runs at (AuditEvent.source.site) |
categories.national | [] | The national categories the map may name, each <system>|<code> |
categories.templates | {} | Each template id to its Art 14(1) categories, such as ["Patient-Summaries"], or to "none" |
categories.archetypes | {} | Each archetype id to its categories or to "none"; a template key wins for the same object |
Template and archetype keys compare without case, as openEHR BASE compares
every composite identifier. A missing endpoint.url or spool_dir, an http
base without cleartext, a zero bound, a category code that names no
category, and the lane without the facade or [auth] are each a boot error
naming the key. A spool directory that cannot be opened refuses the start.
[operator]
The operator API under /operator, which an operator console reads the
engine state and the mapping files through. It is off until enabled is
true, and it needs [auth]: an [operator] section turned on while
[auth] is off, or names no issuer, refuses the start. The operator API page
has the routes and the scope.
| Key | Default | Meaning |
|---|---|---|
enabled | false | Whether the operator routes are mounted, each requiring a token that carries the operator scope, [auth] product_scope |
mapping_dir | none | The writable directory console saves go to (<mapping_dir>/fhirconnect/); unset, the API checks and saves nothing. Keep it on its own volume when the root file system is read-only |
[operations]
The $tofhir and $toopenehr lane. Both operations are pure transformations
and reach no CDR on a request, so they are served whenever [mappings] directory is set and its templates load, from [mappings] templates or from
the CDR at boot. Without a mapping directory the two routes answer 503.
| Key | Default | Meaning |
|---|---|---|
enabled | true | Whether the two operations and their direct forms are served |
device_reference | Device/ferrobridge-<version> | The Provenance agent.who a call that supplies no context.who gets |
composer | FHIRconnect | The composition composer an inbound run fills in when no mapping does |
composition_language | none | The composition language, an ISO 639-1 code |
composition_territory | none | The composition territory, an ISO 3166-1 alpha-2 code |
The FHIRconnect engine chapter puts the composer and the context start time on
the engine and the composition language and territory on the project performing
the mapping, so set the last two: a template whose reference model requires
them refuses to build a composition without them, and $toopenehr then answers
an OperationOutcome naming the missing field.
[usage_report]
The installation report serve sends to FerroPULSE. It is on by default and
sends nothing until state_dir names a writable directory, and a CI
environment (GITHUB_ACTIONS or CI set to true or 1) keeps it off
whatever enabled says. The usage report lists every field
it carries.
| Key | Default | Meaning |
|---|---|---|
enabled | true | Whether serve sends the report; FERROBRIDGE__USAGE_REPORT__ENABLED=false switches it off |
endpoint | https://report.ferropulse.eu/v1/report | The collector; an https URL, or http to a loopback host, with no credentials. Any other value refuses the start |
state_dir | none | The writable directory the instance id is kept in, created when absent; without one the report is off |
deployment | unknown | How the server was deployed, as the report states it: helm, compose, binary or unknown. The compose file sets compose; any other value refuses the start |
The secrets, in one place
| Variable | File sibling |
|---|---|
FERROBRIDGE__CDR__ENDPOINT__CREDENTIALS__PASSWORD | FERROBRIDGE__CDR__ENDPOINT__CREDENTIALS__PASSWORD_FILE |
FERROBRIDGE__CDR__ENDPOINT__CREDENTIALS__OAUTH__CLIENT_SECRET | FERROBRIDGE__CDR__ENDPOINT__CREDENTIALS__OAUTH__CLIENT_SECRET_FILE |
FERROBRIDGE__TERMINOLOGY__ENDPOINT__CREDENTIALS__PASSWORD | FERROBRIDGE__TERMINOLOGY__ENDPOINT__CREDENTIALS__PASSWORD_FILE |
FERROBRIDGE__TERMINOLOGY__ENDPOINT__CREDENTIALS__OAUTH__CLIENT_SECRET | FERROBRIDGE__TERMINOLOGY__ENDPOINT__CREDENTIALS__OAUTH__CLIENT_SECRET_FILE |
FERROBRIDGE__CDM__URL | FERROBRIDGE__CDM__URL_FILE |
FERROBRIDGE__EVENTS__URL | FERROBRIDGE__EVENTS__URL_FILE |
FERROBRIDGE__FHIR_OUTBOUND__ENDPOINT__CREDENTIALS__PASSWORD | FERROBRIDGE__FHIR_OUTBOUND__ENDPOINT__CREDENTIALS__PASSWORD_FILE |
FERROBRIDGE__FHIR_OUTBOUND__ENDPOINT__CREDENTIALS__OAUTH__CLIENT_SECRET | FERROBRIDGE__FHIR_OUTBOUND__ENDPOINT__CREDENTIALS__OAUTH__CLIENT_SECRET_FILE |
FERROBRIDGE__AUDIT__ENDPOINT__CREDENTIALS__PASSWORD | FERROBRIDGE__AUDIT__ENDPOINT__CREDENTIALS__PASSWORD_FILE |
FERROBRIDGE__AUDIT__ENDPOINT__CREDENTIALS__OAUTH__CLIENT_SECRET | FERROBRIDGE__AUDIT__ENDPOINT__CREDENTIALS__OAUTH__CLIENT_SECRET_FILE |
Prefer the _file route: a Docker or Kubernetes secret arrives as a file, and
a file never shows up in docker inspect or a process listing.
What a bad configuration does
The server refuses to start and prints the refusal on stderr naming the key,
the variable that set it and, for an unknown key, the closest known one, then
exits 78, EX_CONFIG; up to several refused keys are reported at once. These
are refused:
- an unknown key or an unknown section;
- a value of the wrong type, or one that is not a socket address, a URL, a
release name or a
tracingfilter; [server.caller_rate];- a user beside the OAuth section of the same credentials section, an OAuth
section with both an
issuerand atoken_endpointor neither, anissuerthat is not anhttpsURL free of a query and a fragment, ascopethat is not scope tokens, aresourcewith a fragment, and aprivate_key_jwtclient without a readableprivate_key_file; - an
[auth]section with no issuer or audience while a guarded surface is served, an algorithm that is symmetric or unknown, a clock skew over 300 seconds, atoken_profileother thanrfc9068andjwt, a Basic user whose hash is no Argon2id PHC string, a capability SMART App Launch 2.2.0 does not define that is no full URI, ascopes_supportedvalue that is not one scope token, and aproduct_scopeoutside the two SMART extension forms; - a
[basic_grants]table naming a user[[auth.basic.users]]does not list, or granting asystem/scope; - a
[cdm] urlthat names nosslmode, or one that falls back to plaintext or is not a libpq mode, a[cdm]CA that holds no PEM certificate, and aPGSSLROOTCERT,PGSSLCERTorPGSSLKEYin the environment; - a secret set both inline and through its
_filesibling; - a section that is present and names no value for a key it needs.
[operator] enabledwhile[auth]is off.
An example
[server]
listen = "0.0.0.0:8080"
[telemetry]
format = "json"
[cdr]
endpoint.url = "https://cdr.example.org/ehrbase/rest/openehr/v1"
[cdr.endpoint.credentials]
user = "ferrobridge"
password_file = "/run/secrets/cdr-password"
[terminology]
endpoint.url = "https://tx.example.org/r4"
wire_version = "r4"
[mappings]
directory = "/etc/ferrobridge/mappings"
[facade]
enabled = true
base_url = "https://bridge.example.org/fhir"
ehr_policy = "create_on_first_write"
identity_store = "/var/lib/ferrobridge/identity.redb"
subject_namespace = "https://example.org/fhir/sid/patient"
composition_language = "en"
composition_territory = "GB"
[auth]
issuer = "https://auth.example.org/realms/clinic"
audience = ["https://bridge.example.org/fhir"]
Running behind FerroSMART
FerroSMART is the FerroHEALTH SMART App Launch 2.x authorization server. It logs a person in at any OpenID Connect provider upstream, for login only, and issues plain RFC 9068 access tokens for the FerroHEALTH products. FerroBRIDGE then runs as a resource server: an app takes its token from FerroSMART and calls the facade with it, and the bridge never sees the provider’s tokens. FerroSMART’s architecture describes the whole deployment in §13.21 A product behind FerroSMART; this page is FerroBRIDGE’s side of it.
browser SMART app FerroSMART IdP (login only)
| 1. launch | | |
|--------------->| 2. /authorize | |
| | aud = facade base | |
|<--------------------------------------| 3. OpenID Connect login |
|---------------------------------------------------------------->|
| 4. patient picker and consent | |
| |<- 5. code, /token -->| |
| | RFC 9068 token with the launch context |
| | 6. FHIR call, Bearer token |
| |--------------------------> FerroBRIDGE /fhir |
FerroSMART’s resource table
FerroSMART issues a token only for a resource it names, so it lists the facade’s base as a FHIR resource:
[[ferrosmart.resource]]
base = "https://bridge.example.org/fhir"
kind = "fhir"
The base is the facade’s [facade] base_url, and
it is the aud of every token the bridge admits.
The bridge’s issuer table
The bridge trusts FerroSMART as one named issuer table under the ferrosmart
preset of ferrohealth-smart:
[auth.issuer.ferrosmart]
issuer = "https://smart.example.org"
preset = "ferrosmart"
[auth.issuer.ferrosmart.profile]
audience_delegates = true
The preset gives the issuer its kind, persons, and its audience is the
facade’s base_url, so neither needs a key. It keeps every rfc9068 default
but these: a token’s typ is at+jwt alone (RFC 9068 §2.1), scope is a
required claim, since FerroSMART writes the granted scopes into every token,
the patient claim is the launch context (patient_context), and a token
whose client is FerroSMART itself, its patient picker, is the person with no
app grant (issuer_client_is_person). What it admits:
| Token | Read as | Admitted when |
|---|---|---|
A person’s token through a SMART app (sub is FerroSMART’s identifier of the person, client_id the app) | the person, acting through the app | the app is a delegate: its client_id is in delegates, or audience_delegates is on and the token’s aud names the facade |
A person’s token through FerroSMART’s own picker (client_id is FerroSMART) | the person | always, with no delegate entry |
A patient’s own token through a SMART app: fhirUser is Patient/<x> (relative, or an absolute URL ending in /Patient/<x>), the patient claim is x, its scopes are patient/ grants with no user/ or system/ one, and it carries no act | the patient, the person’s own access | the app is a delegate |
A SMART Backend Services token (sub equals client_id, RFC 9068 §2.2) | a machine | always, with the system/ scopes it carries |
| A person’s token through any other app | never: 401 | |
A token with no scope, or a typ other than at+jwt | never: 401 |
With audience_delegates = true, every app you register at FerroSMART with
the facade among its resources is admitted, and FerroSMART issues a token
for the facade to no other app. To admit only the apps you list, leave it off
and name each by its client_id:
[auth.issuer.ferrosmart.profile]
delegates = [{ client = "growth-chart" }]
Use one table for FerroSMART: a persons issuer already reads its machines’
client credentials tokens, and two issuer tables naming one issuer refuse the
start. Every other key of the issuer table (algorithms, clock_skew,
jwks_max_age and the rest) and every profile key is on the
[auth] page.
The launch context FerroSMART puts in the token (patient, encounter and
fhirUser) needs no key. A patient/ scope holds the caller to the patient
its patient claim names, as the facade’s Security section
describes. The bridge reads that claim from no issuer whose profile leaves
patient_context off, the same rule FerroEHR reads.
A patient’s own token is the person’s own access (Regulation (EU) 2025/327
Art 9). The bridge reads it as ferrohealth-smart classifies it
(Caller::is_the_person), so a professional who holds patient/ scopes
stays a professional held to the launch context. For the patient’s own
token, the facade’s access record carries the binding self. With
[cdr.endpoint.credentials.onward]
naming FerroSMART, the bridge exchanges the patient’s token there unless a
patients issuer is declared. To read every FerroSMART token as a
professional’s, set fhir_user_patient = false in the issuer’s profile
table.
The discovery document
An app that starts at the bridge reads GET /fhir/.well-known/smart-configuration
and must find FerroSMART there. With FerroSMART as the bridge’s one persons
issuer, the described-issuer rule
picks it, and the document names FerroSMART’s authorization_endpoint and
token_endpoint. With other issuers beside it, set
[auth] described_issuer = "ferrosmart", the name of its table. The document and
GET /fhir/metadata answer any origin with CORS, and the REST routes answer
the origins [facade.cors] allowed_origins
lists, so list the origin of every browser app.
No specification governs this deployment shape: it is FerroHEALTH’s own design, built from SMART App Launch 2.2.0, RFC 9068 and OpenID Connect.
The HL7 v2 face
The HL7 v2 face is a second listener in the ferrobridge serve process. It
accepts HL7 v2 messages over MLLP, turns each one into an R4 message Bundle
with the ConceptMaps of the HL7 v2-to-FHIR implementation guide, and writes the
Bundle’s resources into the CDR through the same ingest service the FHIR
facade’s transaction uses. It answers each message with an original-mode
acknowledgment once the CDR has committed or refused it.
No specification governs the hand-off from a message Bundle to the CDR. It is FerroBRIDGE’s own design, and this page states it.
- Turning it on
- The keys
- Devices without TLS
- What happens to one message
- Corrections to the guide
- Sibling resources of one value
- The acknowledgment
- What is logged
- Limits
- Until a mapping context covers the guide’s resources
Turning it on
The face is off until [hl7v2] enabled is true, and it needs the FHIR facade:
the programs, the identity map and the ingest service it writes through are the
facade’s. [hl7v2] enabled with the facade off is a boot error, and so is a
port that cannot be bound. The guide’s message, segment and data type maps are
built into the bridge. Every table value is translated on the [terminology]
server, so load the guide’s package and FerroBRIDGE’s value package into it
(Loading the value maps). Without a [terminology]
section every table value is a counted no-terminology outcome.
[facade]
enabled = true
ehr_policy = "existing"
composition_language = "en"
composition_territory = "GB"
[hl7v2]
enabled = true
listen = "0.0.0.0:2575"
ehr_policy = "create_on_first_write"
profiles = [
{ resource_type = "Observation", profile = "https://example.org/fhir/StructureDefinition/lab-result" },
]
senders = [
{ namespace_id = "NORTHLAB", certificate_subject = "northlab.example.org" },
]
[hl7v2.tls]
certificate_file = "/run/secrets/mllp_chain.pem"
key_file = "/run/secrets/mllp_key.pem"
client_ca_file = "/run/secrets/mllp_clients_ca.pem"
The keys
Every key is settable as FERROBRIDGE__HL7V2__<KEY>, and a list takes TOML
syntax in the variable. The section holds no secret; the TLS key is read
from the file tls.key_file names.
| Key | Default | Meaning |
|---|---|---|
enabled | false | Whether the MLLP listener runs |
listen | 127.0.0.1:2575 | The socket address the TLS listener binds, when a sender sends over TLS |
default_charset | ASCII | The HL7 table 0211 code a message with an empty MSH-18 is read in: ASCII, UNICODE UTF-8, 8859/1 to 8859/9 or 8859/15 |
unmapped_entries | skip_and_count | What an entry no program maps does: skip_and_count commits the others, refuse refuses the message |
ehr_policy | the facade’s | existing or create_on_first_write, for the face alone |
profiles | [] | A list of { resource_type, profile }: the profile a resource of that type claims in meta.profile when the guide’s maps wrote none |
idle_timeout | "5min" | How long a connection may sit between messages before it is closed; "0s" keeps it open |
frame_timeout | "30s" | How long one message may take from its first byte to its trailer before it is answered AR; "0s" waits |
frame_limit | "1MiB" | The largest message one frame may carry |
log_outcomes | false | Whether an AE or AR also logs the counted outcomes of the run, by kind, at debug level |
facility_identifier_issuer | none | The DV_IDENTIFIER.issuer a facility’s namespace id (HD.1) is written under: the issuer the CDR client’s declared facilities name it by. Unset, the identifier names no issuer, and a CDR that checks facilities refuses the commit |
senders | none, required | The sending facilities (MSH-4) the face accepts, at least one, each { namespace_id = "..." } (HD.1) or { universal_id = "...", universal_id_type = "..." } (HD.2 and HD.3) with certificate_subject = "...", the DNS name its client certificate carries in its subject alternative name; a facility a composition names is one of them too. A sender may add origin = "device" with device_identifier_issuer = "..." (the namespace of its device identifiers, one of the CDR client’s device_identifier_issuers) for an analyser feed with no human |
tls.certificate_file | none, required with a TLS sender | The PEM certificate chain the listener serves |
tls.key_file | none, required with a TLS sender | The PEM private key of that chain |
tls.client_ca_file | none, required with a TLS sender | The PEM authorities a sender’s client certificate must chain to |
senders[].transport | tls | How the sender reaches the face: tls on the TLS listener, or plain on [hl7v2.plain] for a device that cannot speak TLS (Devices without TLS) |
senders[].source_addresses | none | The networks a plain sender connects from, in CIDR notation (10.20.0.21/32); required with transport = "plain" and refused otherwise |
plain.bind | none | The socket address the plain listener binds; required while a sender is plain, and never the TLS listener’s address |
The TLS listener serves MLLP over TLS and requires a client certificate that
chains to tls.client_ca_file; a peer without one never completes the
handshake. A message is accepted only on a connection whose certificate
carries the certificate_subject of the sender its MSH-4 names, so a
sender cannot send as another. The bridge refuses to start without a
sender, without the [hl7v2.tls] files while a sender sends over TLS, or
with a TLS sender that names no certificate_subject.
Devices without TLS
Some lab analysers have no TLS stack, no certificate store and no client certificate, so they cannot reach the TLS listener. HL7 MLLP Release 2 defines no security layer of its own, and IHE ITI ATNA (ITI TF-2, ITI-19) adds TLS for a node that supports it. For such a device the face runs a second listener with no TLS, and the device is admitted by the network address it connects from. The exception is FerroBRIDGE’s own design.
[hl7v2]
enabled = true
listen = "0.0.0.0:2575"
senders = [
{ namespace_id = "NORTHLAB", certificate_subject = "northlab.example.org" },
{ namespace_id = "LAB-1", origin = "device", device_identifier_issuer = "urn:example:devices",
transport = "plain", source_addresses = ["10.20.0.21/32", "10.20.0.22/32"] },
]
[hl7v2.plain]
bind = "10.20.0.5:2576"
- A plain sender is
origin = "device"and names itssource_addresses. Each is a network in CIDR notation with no bits set past its prefix; a single analyser is a/32(or a/128for IPv6). - The plain listener accepts a connection only from an address inside some plain sender’s networks. Any other connection is closed before a byte is read, and a warning names the peer address.
- A message is taken only when its MSH-4 names a plain sender whose networks
hold the peer address. Otherwise it is answered
AR, and the connection closes. A TLS sender’s facility on the plain listener is refused the same way, and a plain sender’s facility on the TLS listener is refused for its missing client certificate. - The device identifier in OBX-18 is written under the sender’s
device_identifier_issuer, as for a device on TLS. - The plain listener runs under the same
idle_timeout,frame_timeout,frame_limitand drain as the TLS listener. - The TLS listener runs only while a sender has
transport = "tls", and only then does it need[hl7v2.tls]and its files. A lab whose only senders are plain devices sets no[hl7v2.tls]and gets no TLS listener;listenthen binds nothing.
A lab with one analyser and nothing else:
[hl7v2]
enabled = true
senders = [
{ namespace_id = "LAB-1", origin = "device", device_identifier_issuer = "urn:example:devices",
transport = "plain", source_addresses = ["10.20.0.21/32"] },
]
[hl7v2.plain]
bind = "10.20.0.5:2575"
The bridge refuses to start with a plain sender that is no device, names no
networks or names a certificate_subject; with a network that does not
read; with [hl7v2.plain] and no plain sender, or a plain sender and no
[hl7v2.plain]; with a [hl7v2.tls] that names a file while no sender
sends over TLS; and with a plain.bind on the running TLS listener’s port at
the same address or at an unspecified address (0.0.0.0, [::]) on either
side.
The residual risk
Plain MLLP gives no confidentiality and no integrity on the wire: anyone on the path reads the results and can change them. The sender’s identity is its network address alone, which any host on that network can claim. Put the analyser and the bridge’s plain address on an isolated VLAN that carries nothing else, and let only the analyser reach the plain port. The bridge logs one warning per plain sender at boot, naming its facility and networks, so the route is never silent.
The alternative: a TLS sidecar
A TLS-terminating proxy next to each device keeps the TLS listener the only
way in. The device speaks plain MLLP to the proxy on its own host or cable,
and the proxy connects to the TLS listener with a client certificate of its
own, named as the sender’s certificate_subject. It needs a host per
analyser, a certificate per proxy and someone to run both. Choose it when you
can run it, and the plain listener when you cannot.
What happens to one message
- The listener reads one MLLP Release 1 frame. A frame that is malformed,
larger than
frame_limit, or not complete withinframe_timeoutis answeredARwhen a header can be read from it, and the connection closes. - The message is decoded in the character set its MSH-18 names, split by
position and grouped by its message structure. With
sendersset, a message whose MSH-4 names none of them is answeredARhere and is never mapped. - The guide’s message, segment and data type maps, with FerroBRIDGE’s
corrections over them, write an R4 message Bundle, and each table value is
translated by
ConceptMap/$translateon the terminology server. Every row the run cannot carry is a counted outcome, and every correction the run used is counted once assupplemented. - Every entry whose resource type is listed under
profilesand that claims no profile gets that profile inmeta.profile, and every entry with asubjectorpatientreference and none set references the message’s onePatient. The guide leaves the relationships between the resources of one message to the implementer, and the facade selects a program bymeta.profile, so these two steps are what let a message reach a mapping. - The Bundle’s entries go through the ingest service as one transaction. The
programs are selected as the facade selects them, and the subject is read
from the
Patiententry’s first identifier. Each composition’sFEEDER_AUDITnames where it came from: the sending application (MSH-3) asoriginating_system_audit.system_idand the bridge asfeeder_system_audit.system_id; the placer and filler numbers (ORC-2, ORC-3, OBR-2, OBR-3, typedPLACandFILLfrom HL7 table 0203 and issued by their namespace) asoriginating_system_item_ids; and MSH-10, typed by the message type (ORU^R01), as the firstfeeder_system_item_idsentry. A message without order numbers records none. The health care facility (EVENT_CONTEXT.health_care_facility) is read from the first field that names one: the assigned location’s facility (PV1-3.4), the servicing facility (PV1-39), the ordering facility (ORC-21), and the sending facility (MSH-4) last. A composition with noEVENT_CONTEXTnames it asoriginating_system_audit.locationinstead. With[[hl7v2.senders]]set, a facility no sender names is answeredAEwith anERRat its field naming it, and nothing is committed. The Each facility identifier names its issuer: a namespace id (HD.1)facility_identifier_issuer, a universal id (HD.2) its type (HD.3), and an organisation identifier (XON.10) its assigning authority (XON.6), orfacility_identifier_issuerwhen it names none. performing organisation (OBX-23) isoriginating_system_audit.provider, never the facility or the composer. The composer is the clinician the message names, from the first of EVN-5, OBX-16, ORC-12 and OBR-16 (XCN: the given and family name, XCN.1 as the identifier in the namespace XCN.9), never the committer. With an assigning authority (XCN.9) the composer also carries XCN.1 as an identifier issued by it, typed by XCN.13 orXCN, so a CDR that checks for the professional finds one. A message carrying a result (anOBX) that names no clinician is answeredAE. A device sender’s result is an act of the device: the composer is the equipment instance (OBX-18), or MSH-3 when none, in the sender’sdevice_identifier_issuer, and the device is the originating system. The device’s identifier is a composer identifier issued bydevice_identifier_issuer. - The acknowledgment is sent once the ingest settled, so
AAmeans the CDR holds the message’s compositions.
Corrections to the guide
The guide invites an implementation to add a mapping it needs locally
(mapping_guidelines.md, General Format/Approach). FerroBRIDGE does that with
ConceptMaps in the guide’s own shape that override a map of the guide or add
one it lacks. No specification governs how they load or how they are marked;
that is FerroBRIDGE’s own design, and it works as follows.
- The guide’s maps split by what they are. A message, segment or data type map
says which field goes where, so it is mapping logic: the bridge is built
with every one of them, generated from the pinned
hl7.fhir.uv.v2mappings1.0.0 package, and reads none from a directory or a server. A table map says which code stands for which, so it is terminology: the bridge translates every table value byConceptMap/$translateon the terminology server, and carries no copy of a table. - FerroBRIDGE’s structure corrections are generated into the bridge beside
the guide’s maps. Its value corrections are the FHIR package under
terminology/hl7v2-values/in the repository, which you load into the terminology server beside the guide’s package. - A structure correction with the id or the canonical url of a guide map replaces that map whole. A value correction never takes a guide map’s id, since the terminology server holds one resource per id: a corrected table map is added under an id of its own, and the structure correction that uses it names that id. Any other correction is added.
- Each correction names FerroBRIDGE in its
title. Itsdescriptionnames the guide map it overrides, or the structure it adds, the rows it changes and why, and the tracker issue that records the defect. A structure override keeps the guide map’s id and url, since the guide’s rows name it. Every added map takes a url underhttps://ferrobridge.eu/fhir/v2mappings/, so the terminology server holds the guide’s table map and FerroBRIDGE’s side by side, and the bridge asks for FerroBRIDGE’s by its url. - The run counts each correction it uses once per message, as
supplementednaming the map, so an outcome list shows which values a correction wrote.
Loading the value maps
Load three directories into the terminology server, each the package
directory of a FHIR package: HL7 Terminology (hl7.terminology, which holds
the v2 tables’ code systems and the value sets the guide’s table maps name
as their source), hl7.fhir.uv.v2mappings 1.0.0 (both from the FHIR package
registry), and FerroBRIDGE’s value package, which you pack from
terminology/hl7v2-values/ of the FerroBRIDGE release you run. None of their
ConceptMaps share an id or a canonical url. FerroTERM refuses a translation
through a map whose source value set it does not hold, so HL7 Terminology is
not optional.
The value package’s manifest is kept in the source tree as
fhir-package.json, since a file named package.json is read as an npm
manifest. Pack it, which writes package/package.json beside the maps and
the FHIR package tarball:
scripts/terminology/pack-hl7v2-values.sh /tmp/hl7v2-values
# /tmp/hl7v2-values/package/ and /tmp/hl7v2-values/eu.ferrobridge.hl7v2.values-0.2.0.tgz
Copy package/ (or unpack the tarball) to the server. For FerroTERM, name
all three in terminology.code_systems:
[terminology]
code_systems = [
"/srv/hl7.terminology/package",
"/srv/hl7.fhir.uv.v2mappings/package",
"/srv/ferrobridge-hl7v2-values/package",
]
Then point the bridge’s [terminology] section at the server’s R4 base. The
value package holds these maps:
| Map | Kind | What it changes, and why |
|---|---|---|
table-hl70202-equipment-to-contact-point-system | added | The guide’s table-hl70202-to-contact-point-system corrected: its system group with CP as phone. The guide’s second group maps CP to the contact-point-use code mobile, which the required binding of ContactPoint.system does not hold; the XTN override names this map in place of the guide’s (#1762) |
table-hl70202-to-contact-point-use | added | CP to mobile, the use the guide’s second group meant, which the XTN override writes into ContactPoint.use (#1762) |
table-administrative-gender-to-hl70001, table-name-use-to-hl70200, table-address-use-to-hl70190, table-address-type-to-hl70190, table-contact-point-system-to-hl70202 | added | The FHIR-to-v2 direction the PID inverse translates back through, where reading the guide’s map in reverse gives several codes (#1716) |
The structure corrections built into the bridge:
| Map | Kind | What it changes, and why |
|---|---|---|
datatype-cwe-to-codeableconcept | override | Runs the CWE.1 row into coding[1].code with no condition. The guide gates it on a Narrative-Condition no machine evaluates, so no Coding it writes carries a code (#332) |
datatype-ce-to-codeableconcept | override | The same row for CE, the type HL7 v2.3 and earlier give most coded fields (#332) |
datatype-cf-to-codeableconcept | override | Names the sources CF.1 to CF.13, where the guide names them CWE.1 to CWE.13 so no CF row runs, and runs CF.1 with no condition (#332) |
datatype-cwe-to-quantity | override | Names the targets code, unit and system, where the guide writes Quantity.code and so on, which the element table cannot find under the Quantity the row fills; OBX-6 units are kept (#332) |
datatype-hd-name-to-messageheader-source | override | Drops the row that writes HD.2, a universal ID, into MessageHeader.source.software, which R4 defines as the software’s name (#324) |
datatype-hd-name-to-messageheader-destination | override | Writes HD.1 into destination.name, as the endpoint map does, where the guide writes HD.2 and the two maps disagree (#332) |
datatype-xtn-to-contactpoint | override | Writes XTN.3 into use through table-hl70202-to-contact-point-use when XTN.2 is empty, so a cell phone is a phone in mobile use, and writes a system with no XTN.3 and no XTN.4 as the R4 data-absent-reason extension in the two-row form the MSH-24 rows use, so the ContactPoint keeps cpt-2 (#1762, #1763) |
datatype-pl-to-location | override | Links the six Locations of a PL (bed, room, point of care, floor, building, facility) into one partOf chain in the order the guide’s PL.10 rows give the finest level, where the guide’s partOf rows disagree with it and the building’s names itself; writes the point of care’s mode and physicalType (wa, the code the guide repository’s MDM^T02 sample gives PL.1) at elements Location has; names the point of care and the building in the PL.10 rows as their second set does; and writes PL.9 into the finest valued level (#342, #332) |
segment-msh-to-messageheader | override | With both MSH-3 and MSH-24 valued, MSH-3 names the source and MSH-24 gives its endpoint; with one of them empty, the other runs as the guide writes it (#311) |
segment-orc-to-diagnosticreport | override | Writes ORC-2 into basedOn.identifier (R4 Reference.identifier), where the guide writes basedOn(ServiceRequest) with no map to fill it (#336) |
segment-sch-to-appointment | override | Writes SCH-26 and SCH-27 into basedOn[1].identifier and basedOn[2].identifier for the same reason (#336) |
segment-pid-to-appointment | override | Writes PID-2, PID-3 and PID-4 into the identifier of the Appointment’s patient references, so the message keeps one Patient where the guide’s (Patient) rows would create one per row (#336) |
message-adt-a05-to-bundle, message-adt-a09-to-bundle | override | Names the PD1 row ADT_A05.PD1 and ADT_A09.PD1, where the guide names it ADT_A01.PD1, which leaves ADT_A05 and ADT_A09 with no message map (#332) |
message-adt-a03-to-bundle | added | ADT_A03 (A03 discharge), from the rows of the guide’s ADT_A01 map at the same paths (#256) |
message-bar-p01-to-bundle | added | BAR_P01 (P01 add patient accounts), from the ADT_A01 rows for the segments the two share, the visit segments under VISIT; GT1, UB1, UB2, ACC and DRG have no segment map in the guide and are counted unmapped (#256) |
message-orl-o22-to-bundle | added | ORL_O22 (the laboratory order response), from the guide’s OML_O21 rows under RESPONSE, with the MSA row into MessageHeader.response (#256) |
message-oul-r22-to-bundle | added | OUL_R22 (the specimen-oriented observation), from the guide’s ORU_R01 rows at the OUL_R22 paths; the OBR row into a Specimen is left out, since SPM carries the specimen (#256) |
The operator console’s HL7 v2 page lists every map the face runs on its
ConceptMaps tab, the guide’s and the corrections alike, from
GET /operator/hl7v2/concept-maps.
What the corrections leave to the guide, and what stays open:
- CWE.3 is written into
Coding.systemas the sender sends it (LN). The guide’s comment on that row says a vocabulary table gives the URI, and the guide ships no table map for HL7 table 0396, so the value stays the v2 mnemonic until one exists. - DFT_P03 has no message map. Its defining segment, FT1, has no segment map in the guide, so a map for the rest would acknowledge a charge message without its charges.
- The
PLtoLocationmap’s PL.11 rows write[1-6].identifier[n].assigner, one value spread over six Locations, which the interpreter refuses as it refuses every spreading label, so a location’s assigning authority is counted and not written.
Sibling resources of one value
The PL to Location map writes one Location per level of a patient
location through rows prefixed [1]. to [6]., and links them with
partOf.reference(Location[k]) rows. The guide’s notation says the prefix
applies where the data type is used (mapping_guidelines.md, [n] Notation),
which for a map into a resource is the resource, and leaves the rest to the
implementer. FerroBRIDGE’s own design, for any data type map whose rows
reference a labelled instance of the resource type they fill:
- A
[k].row writes into thek-th sibling of the resource the(Type)row created, and the sibling exists once a value reaches it.[1].is that resource itself. A sibling no value reaches never enters the Bundle. - A
(Location[k])reference between siblings points at siblingkwhen it holds a value. When it holds none, the reference climbs to the sibling thatk’s own row names, and so on up the chain, so a PL without a floor has its point of care in its building, or in its facility. A reference that climbs past the last valued level, loops, or names its own sibling is counted assibling-unresolvedand not written. - Every reference to the family (
Encounter.location.location, and any other reference to the Location the row created) takes the finest valued level: the sibling no other valued sibling is part of. For a PL that is the bed, else the room, else the point of care. It is counted once asfinest-siblingnaming the level. When the chain leaves more than one such sibling, the references stay at the Location the guide’s(Type)row names, or are dropped when that Location holds no value, counted assibling-ambiguous.
The acknowledgment
The codes are HL7 table 0008 in original mode (HL7 v2.5.1 chapter 2
§2.9.2.2). MSA-2 echoes MSH-10, and each ERR carries its table 0357 code in
ERR-3 and the text in ERR-8.
| Outcome | Code | ERR |
|---|---|---|
| The ingest committed the message | AA | none |
| The same message was committed before (same MSH-10 and message type) | AA | none, and nothing is committed again |
| No header can be read at all | none | the connection closes unanswered |
| Delimiters that do not declare themselves, a byte outside the declared character set, a version outside 2.x | AR | 207 or 203 |
| A message structure the definitions or the guide do not carry | AR | 200 |
| A required field or segment missing, an undecoded escape | AE | 101, 100 or 102, located |
MSH-4 names a sending facility senders does not list | AR | 207 at MSH^1^4 |
The connection’s client certificate does not carry the certificate_subject of the sender MSH-4 names | AR | 207 at MSH^1^4 |
On the plain listener, MSH-4 names no plain sender whose source_addresses hold the peer address; the connection then closes | AR | 207 at MSH^1^4 |
| MSH-10 empty | AE | 101 at MSH-10 |
| A result whose message names no clinician, from a sender that is no device | AE | 101 at OBX^1^16 |
| A health care facility no listed sender names | AE | 207 at its field |
A condition of the guide that stops the mapper, a Bundle with no MessageHeader | AE | 101 or 207 |
| No program maps any entry, an entry that does not map, a second subject, a conflict with the identity map | AE | 207, one per refused entry, naming its fullUrl |
| The terminology server refused or did not answer a translation | AR | 207 |
The CDR failed, was unreachable, timed out, or refused the bridge’s credentials (5xx, 401, 403, 407, 408, 429) | AR | 207 |
An AR asks the sender to resend later; an AE says the message itself cannot
be taken as it is. A message that arrives while another delivery of the same
message is still in flight is AE naming the entries, and commits nothing.
Resend it after the first delivery answered. The ERR-8 text is printable ASCII,
so it encodes in every character set a message can declare.
A batch file
A frame that opens with FHS or BHS is read as an HL7 batch file (HL7 v2 chapter 2 §2.10.3): an optional file header, one or more batches each with an optional BHS and BTS around their messages, and an optional file trailer. Each message is decoded, mapped and committed as if it had arrived alone, and the face answers with one response batch that acknowledges every message, in order (§2.10.3.2). The response carries an FHS and an FTS when the file did, a BHS for each batch that had one, and a BTS for every batch whose BTS-1 counts the acknowledgments in it. Each response header swaps the sending and receiving application and facility and echoes the file’s FHS-11 or BHS-11 in its FHS-12 or BHS-12.
A file whose segments stand outside that structure (a second FHS, a segment
before a batch’s first MSH other than its BHS, anything after the FTS) is not
answered, since no header addresses an answer, and a warning names the
segment. A BTS-1 or FTS-1 count that disagrees with the file is logged as a
warning, and the messages are answered all the same. A message in the batch
that cannot be answered (no readable MSH) is left out of the response and
counted in the batch’s log event as unanswered.
What is logged
Each connection runs in an mllp_connection span naming the peer, with the
count of messages it answered (messages) and of messages refused for their
sender (refused), and each
message in an hl7v2_message span naming its MSH-10 and message type. One
event per message names the acknowledgment code and how many entries were
committed and skipped. With log_outcomes an AE or AR also logs, at debug
level, each outcome kind of the run with its count. No byte of a message, no
FHIR resource and no CDR error body reaches a log line; the ERR segments
travel only to the sender. A plain connection refused for its address, and
a plain message refused for its MSH-4, each log a warning naming the peer
address and nothing of the message.
The boot banner has an hl7v2 line naming the address the listener binds and
the CDR and terminology hosts it reaches, and /health/readiness carries an
hl7v2-listener indicator that is down from the stop signal on.
/health/info lists every lane under lanes; the hl7v2 lane carries its
listen address and up, whether the TLS listener accepts connections now
(both absent when no TLS listener runs),
plain with the plain listener’s listen and up when one is configured,
and senders, each with its facility and its transport (tls or
plain). Readiness carries an hl7v2-plain-listener indicator beside the
hl7v2-listener of the TLS one, each only while its listener is configured. The operator API’s running configuration names each sender’s
transport and source_addresses. The
facade’s CapabilityStatement adds one sentence to implementation.description
naming the HL7 v2 face as another inbound path under the same identity and
replay rules, only when the face is configured. On SIGTERM
the listener stops accepting, every message in flight is mapped, committed and
acknowledged, and the connection closes, within the same
[server] shutdown_timeout as the HTTP drain.
Limits
- The face runs in one process. The claims that hold a message in flight and the identity map that recognises a resent one live in that process, so run one process per identity store and point every sender of a feed at it.
- MLLP Release 2’s commit acknowledgment is not spoken, and enhanced-mode acknowledgments are not sent.
- The allow list matches MSH-4, tied to the client certificate of the connection, or for a plain device to the network address it connects from; the sending application (MSH-3) is not checked.
Until a mapping context covers the guide’s resources
No published FHIRconnect context in the tree maps the resources the guide and
its corrections write for the message families (ADT, BAR, ORU, OUL, ORM, OML
and ORL, MDM, SIU, VXU):
the published contexts do not compile in-tree for lack of their templates
(issue #258). Until one does, a message’s Bundle reaches the ingest service and
is refused for lack of a program: the sender gets AE with one ERR per
entry, and nothing is committed. To take messages before then, write a context
for the resources you need, claim its profile under profiles, and load it
with the facade’s mapping set.
The access record
Regulation (EU) 2025/327 Annex II 3.2 asks an EHR system to record, on every
access to personal electronic health data, who accessed it, which natural
person, the categories of the data, when, and where the data came from. The
CDR records each call the bridge makes, but ITS-REST carries no end-user
identity on a read, so the CDR’s record names the bridge’s own credential.
For an access through the FHIR facade, the bridge is the one system that
knows the person, so it writes the record itself when [audit] is on
(configuration).
Where each surface’s record lives
| Surface | Record | Where it lives |
|---|---|---|
| The FHIR facade | One Annex II 3.2 access record per access an authenticated caller makes: read, vread, search, history, create, update, delete, transaction, batch, Composition/$document, $tofhir and $toopenehr | The Audit Record Repository [audit] base_url names, as an IHE BALP AuditEvent |
| The HL7 v2 face | One system import record per message it commits (ITI-20 “PHI-import”, the DICOM “Import” event), naming the sending facility and no person | The same repository |
The OMOP ETL (etl run, etl fhir, dq check) and the incremental load | None of the bridge’s own: these read in batch under the bridge’s CDR credential, with no person behind the read | The CDR’s own access log, which names the bridge’s ETL client |
| The operator API | None of the bridge’s own: it serves mapping files and no health data | The request log line of ferrohealth-smart |
Every guarded surface also keeps its request log line, which names the caller the token verified, the route and the status, and never a body.
What a facade record holds
- Who accessed (3.2(a), (b)): the token’s issuer, subject, client and
jti, or the Basic user, and the roles the token grants. - The categories (3.2(c)): classified from the template and archetype ids
of every composition and party the request read or wrote, through the
[audit.categories]map. An id the map does not name leaves the record unclassified, and the record says so. - When (3.2(d)): the moment the access was answered.
- The origin (3.2(e)): the CDR at
[cdr] base_url, with eachehr_idthe access reached and the patient the identity map binds to it. - The request: the interaction, the resource it named, the search query,
and the
X-Request-Idthe request log carries.
Each record states how long the repository keeps it, at least the three years of Art 9(2), and the security labels of its categories.
When a record cannot be taken
Recording fails closed. Before an access runs, the bridge takes the record’s
place in the spool under [audit] spool_dir; when the spool is full, the
access is refused with 503 and an OperationOutcome of code transient
before the CDR is called. When the record of a finished access cannot be
stored, the answer is withheld with the same 503. The HL7 v2 face answers
AR in both cases, and the sender’s resend is safe, since the identity map
recognises a message it already committed.
A record waits in the spool until the repository answers 2xx; the bridge
retries an unreachable repository in rounds of [audit.endpoint] retry
tries, max_backoff apart, and a
record the repository refuses with a 4xx is moved to the spool’s
quarantine directory for an operator. Records still in the spool at a
shutdown are delivered by the next start. Size max_records and max_size
for the longest repository outage you plan for: a full spool refuses every
access until the repository takes records again.
The operator API
The operator API lets an operator console read what the bridge runs and the mapping files it runs from, without a shell on the host. It is off by default. No specification governs it: it is FerroBRIDGE’s own design.
Turning it on
Set [operator] enabled = true (or FERROBRIDGE__OPERATOR__ENABLED=true).
The API needs inbound authentication, so the server refuses to start when
[operator] enabled is true and [auth] enabled is false or [auth] holds
no [auth.issuer.<name>] table. The routes are
mounted under /operator on the server’s one listener; the bridge has no
second admin listener.
[auth.issuer.clinic]
issuer = "https://auth.example.org/realms/clinic"
kind = "persons"
[auth.issuer.clinic.profile]
first_party_clients = ["ferrobridge-console"]
[operator]
enabled = true
mapping_dir = "/var/lib/ferrobridge/mappings"
The operator scope
Every route needs a bearer access token from the configured issuer, checked
as the FHIR facade checks one, or the Basic credential of an
[[auth.basic.users]] user, a person. The token’s scope claim, or the scopes
[basic_grants] grants the user, must carry the operator scope, [auth] product_scope, which is
__ferrobridge.operator unless you set another. SMART scopes cover FHIR
resources only, so the operator scope is FerroBRIDGE’s own, in a form SMART
App Launch 2.2.0 (Scopes and Launch Context, Extensibility) gives an
extension scope: a string starting with __ or a full URI. Any other value
refuses the start.
| Request | Answer |
|---|---|
| no credential, or one that does not hold | 401 with WWW-Authenticate: Bearer (error="invalid_token" for a bad token) |
two credentials, or an Authorization value that is no credential | 400 with WWW-Authenticate: Bearer error="invalid_request" |
| a valid token without the operator scope | 403 with WWW-Authenticate: Bearer error="insufficient_scope" |
| the issuer’s keys cannot be read | 503 |
Each refusal is an RFC 9457 problem details document
(Problem types), served as application/problem+json.
The operator scope also admits the operations that commit nothing to the
CDR: POST /fhir/{type}/$validate beside its c or u permission, and
$tofhir and $toopenehr, which need no clinical scope. A token carrying
only the operator scope can therefore dry-run a mapping and transform with
it, and can read and write no clinical record.
GET /operator/state
What the running load compiled, as one JSON document:
contexts: one entry per compiled FHIRconnect context withcontext,file,template,profile,profile_version,resource_type,models(each withname,fileand theextensionsapplied, in the order they applied) andsearch, the search declaration the facade answers the context’s searches with;templates: each template the contexts compiled against, withsource(directoryand itsfile, orcdr);omocl: the OMOCL files and whether theyvalidate;serveloads and validates them and does not run them;countsanddiagnostics: whatferrobridge mapping checkreports for the same configuration, read once at start-up.
GET /operator/readiness
The readiness document GET /health/readiness answers, with why each
indicator that is down is down: state (up, degraded or down), phase
(booting, serving or draining) and indicators, each with its name,
its state and, when it is not up, its detail, which names the upstream
status or the reason the call never reached it and never a body, a
credential, or clinical content. It answers 200 while the bridge is ready
and 503 otherwise. The operator console reads it, and falls back to the
open route, which names no detail, while the operator API is off.
GET /operator/events
The change-feed consumers and the AMQP topology of the
events lane, as one JSON document. A bridge whose
lane is off answers 200 with no consumer and a null topology.
consumers: each consumer with itsname(the readiness indicator it reports as), itssource(aqlorferroehr), itsreader, itspositions(one per stream:clinicalorpartywith the last acknowledgedseqinat, orcommittedwith the watermark instant inatandversions_at_instant), itsstate(starting,followingorstalled), the messages itpublishedsince the bridge started, the instant itlast_published, and itslast_error, theatandcauseof the last failed pass, kept after it recovers;topology: theexchange, therouting_keygrammar (<kind>.<change_type>.<template_id>) and the boundqueues, each anameand abinding.
The document carries identifiers, instants and counts, never an event body, and never the broker URL.
GET /operator/etl/runs
The newest 50 OMOP ETL runs the
bridge schema keeps, newest first, as {"runs": [...]}. Each run names its
id, its kind (compositions for etl run, fhir for etl fhir), when
it started and finished (RFC 3339 UTC), its compositions (read,
committed, skipped and refused), the rows it wrote over every table,
its refusals, and the compositions it removed because the CDR reports
them deleted. A bridge with no [cdm] answers 404, and one whose CDM
database does not answer, or holds no run table yet, answers 503
(run-history-unavailable).
GET /operator/etl/runs/{run_id}
One run whole: the facts of the listing, the rows it wrote by CDM table,
its concept_zero assignments, every refused record in refusals (its
composition, mapping, table, column, openEHR element and
reason), and its deletions (checked, extant, the removed, kept
and unknown compositions by versioned object id, and the rows removed by
table). A run the history does not hold answers 404. A run names
compositions by their versioned object id and never carries a clinical
value.
GET /operator/hl7v2/concept-maps
The HL7 v2 face’s ConceptMap directory, as one JSON
document. A bridge whose face is off answers 404.
counted_since: the instant the face started, RFC 3339 UTC, since when themessagescounts run;maps: every map the face runs, by id, each with itsid, canonicalurlandtitle, itskind(message,segment,datatype,tableorother, from the first word of the id), itsorigin(guide,supplementfor a FerroBRIDGE correction that adds a map, oroverridefor one that replaces a map of the guide), itsends, what it maps from and to (each group’s source and target code system for a table map, else thesourceandtargetthe id names before and after-to-), therowsthe face reads from it, and themessageswhose mapping applied it.
A message counts once for each map its mapping applied, whether or not its ingest then committed, and the counts start again at zero when the bridge restarts. The document carries no message content.
GET /operator/templates/{id}/example
A synthetic example composition of the template id, one the running set
compiled against, in canonical JSON. The bridge generates it from the
template’s Web Template: each leaf holds a value its constraint admits,
such as the first entry of a coded list or the lower bound of a range, and
the composition is validated against the template before it is answered.
When not every leaf can be filled together, the example holds the mandatory
leaves alone. Every value is synthetic. A template the set does not hold
answers 404, and one with no example, such as a party template,
no-example (422).
GET /operator/configuration
The configuration the bridge started on, as one JSON document. The bridge
reads ferrobridge.toml and the environment once, at start, so the answer
holds what it runs on until the next start:
file: the configuration file it read, as--configorFERROBRIDGE_CONFIGnamed it, ornullwhen it read none;read_at: when it read the configuration, RFC 3339 UTC;entries: every key the configuration holds a value for, in key order, each with its dottedkey(cdr.endpoint.credentials.oauth.client_id), itsvalueand itssource:file,environment(aFERROBRIDGE__variable,FERROBRIDGE_LOG_FORMATorRUST_LOG, which win over the file),set(a--setargument, which wins over both) ordefault.
A value carries its kind (string, integer, float, boolean,
list, table or secret) beside it. A secret is never answered by value.
A secret and its _file sibling are one entry, keyed by the secret
(cdm.url, cdr.endpoint.credentials.password,
cdr.endpoint.credentials.oauth.client_secret, the same two of [terminology], and
password_hash of each [[auth.basic.users]] user), whose value is its
state: set (set as a value, in the file or the environment), file with
the path it is read from, or unset. The file of a private key
(private_key_file, tls.client_identity_file) is answered as a secret read from
that file. A key the configuration leaves unset and that has no default is
absent from entries.
GET /operator/mappings
Every mapping file under the configured directories, as a JSON array. A file
is named by a path that opens with its root, fhirconnect/ for the
[mappings] directory tree and omocl/ for [mappings] omocl, so the
answer never names a host directory.
| Field | Meaning |
|---|---|
path | The file’s path under its root, such as fhirconnect/condition.context.yml |
language | fhirconnect or omocl |
kind | model, extension, context or search for FHIRconnect, mapping for OMOCL; null for a file the running load did not read |
sha256 | The lowercase hexadecimal SHA-256 of the file’s bytes |
owner | provisioned for a file under a configured mapping directory, console for one the console saved under [operator] mapping_dir |
read_only | true for a provisioned file, false for a console file |
diagnostics | The diagnostics the running load raised about the file |
GET /operator/mappings/{path}
The file’s bytes, verbatim, as application/yaml, with the SHA-256 as a
strong ETag. A path is plain names under a root: an empty, ., .. or
..-prefixed segment answers 404, and so does a file that resolves outside
its root once every symlink is followed, a path under no root, and a file
that is not .yml or .yaml.
Saving mapping files
With [operator] mapping_dir set, the console checks drafts, saves them and
reloads the running set. Without it, the three routes below answer 409.
- One owner per file. The files under
[mappings] directoryand[mappings] omoclare provisioned and never written. A console save goes tomapping_dir/fhirconnect/<path>ormapping_dir/omocl/<path>, and a save whose path names a provisioned file answers409. Console files join the set beside the provisioned ones, at every reload and at start-up, where a set that does not compile refuses the start. A file with the path of a provisioned one is ignored in favour of the provisioned file. - OMOCL files reach
etl run.servechecks OMOCL files and does not run them.etl runreadsmapping_dir/omocl/beside[mappings] omoclwhen its configuration turns the operator API on, with the same ownership rule, so a file saved here maps the next run. Two files that define the same mapping refuse the save, the reload and the run. - Search declarations save beside their context. A
*.search.ymlfile underfhirconnect/is checked against the context it names, with every other declaration of the set, and swapped in with the facade’s programs, so theCapabilityStatementand search answer with it after the save. A declaration that names no compiled context, or that the facade’s search checks refuse, answers422with anfb-search-declarationdiagnostic and changes nothing. - A file that is not
.ymlor.yamlanswers400.
POST /operator/mappings/check?path={path}
The body is a draft of the file at path, under fhirconnect/ or
omocl/. The bridge compiles it with every other file of the running set,
for every lane, and answers 200 with clean, counts and diagnostics,
the draft’s diagnostics named by path. Nothing is written.
PUT /operator/mappings/{path}
The body is the file’s new bytes, saved verbatim. A save carries:
| Header | Meaning |
|---|---|
If-Match | The ETag the file has now, from the file route or a previous save; * matches any existing file |
If-None-Match: * | Instead of If-Match, for a file that does not exist yet |
Ferrobridge-Reason | Why the file changes: one line of at most 200 characters |
| Answer | When |
|---|---|
200 | The set compiled with the draft; the file is written and the running set replaced. The body is the new set’s report and the ETag the new SHA-256 |
400 | No reason, or a path the console cannot write |
409 | A provisioned file holds the path, or no mapping_dir is configured |
412 | The file changed since the ETag given, or If-None-Match: * names an existing file |
422 | The set does not compile with the draft; the body names every diagnostic. Neither the file nor the running set changes |
428 | Neither If-Match nor If-None-Match: * |
503 | The CDR did not serve a template, so the set could not be compiled |
The draft is written to a hidden file beside its target and synced; only a
draft that compiles is renamed over the target and the directory synced, so a
reader sees the old file or the new one. The running set is then compiled
from disk and swapped in one step: the facade’s programs and search
declarations, the FHIRconnect operations and the operator state, so the
CapabilityStatement names the new set at once. A request in flight finishes
on the set it started with. Checks, saves and reloads run one at a time.
POST /operator/reload
Compiles the provisioned and console files on disk and swaps them in, with
the answers of a save: 200 with the report, 422 with the diagnostics and
the running set unchanged, 503 when an upstream did not answer.
The quickstart compose.yaml runs the server with a read-only root file
system and mounts ./operator-mappings (or FERROBRIDGE_OPERATOR_MAPPINGS)
at /var/lib/ferrobridge/mappings, the mapping_dir it sets. The container
runs as 65532:65532, so hand that directory to that user before turning
the API on.
Each replica reloads on its own. With mapping_dir on a shared volume, a
file one replica saved reaches another at that replica’s next reload or
restart; the console reloads the replica behind its configured URL.
Mapping-set revisions
With [operator] mapping_dir set, the bridge keeps every state of the
console’s files it ran as a revision, under mapping_dir/..revisions. A
revision holds the whole set of console files, each by its wire path and
SHA-256 digest, with who recorded it, when and why. The bridge records one
at start-up, after each save, after a reload that finds the console files
changed on disk, and after each apply. The provisioned files belong to the
deployment: they are in no revision, and an apply leaves them as they are.
Without mapping_dir the routes below answer 409.
GET /operator/revisions
Answers running, the id of the revision the bridge runs, and revisions,
newest first. Each names its id (a number that grows by one), its
parent (the revision that ran when it was recorded), the author (the
token’s subject, - for the bridge), the time, the reason, the
origin (baseline, save, reload, apply or import), whether it was
applied, and how many files it holds.
GET /operator/revisions/{id}
One revision whole, with files, every wire path and its digest, and
source, the revision an apply restored. An id no revision has answers
404.
GET /operator/revisions/{id}/diff
How the revision differs from the running one: from (the running id),
to, and files, each changed file with its change (added, removed
or changed), its two digests and unified, a unified diff of its lines
with three lines of context. A file both revisions hold unchanged is left
out.
POST /operator/revisions/{id}/apply
Replaces the console files by the revision’s and reloads. A rollback is the apply of an earlier revision. The request carries:
| Header | Meaning |
|---|---|
If-Match | The id of the running revision, in quotes, such as "3" |
Ferrobridge-Reason | Why: one line of at most 200 characters |
| Answer | When |
|---|---|
200 | The set compiled with the revision’s files; they replaced the console’s and the set reloaded. The body is the new set’s report and the ETag the id of the revision the apply recorded |
400 | No reason |
404 | No revision has the id |
409 | No mapping_dir is configured |
412 | The running revision is not the one If-Match names |
422 | The set does not compile with the revision’s files; the body names every diagnostic, and nothing changes |
428 | No If-Match |
503 | The CDR did not serve a template, so the set could not be compiled |
The revision’s files are written to a staging tree and compiled with the provisioned files first. Only a set that compiles replaces the console’s directories, one rename for each language, and then runs.
GET /operator/revisions/{id}/export
The revision’s console files as one ZIP (application/zip), each entry
named by its wire path, such as fhirconnect/condition.context.yml. The
entries are in path order, deflated at one level, with the ZIP epoch as
their time and fixed permissions, so the same files always give the same
bytes: an import of an export, exported again, answers the archive it read.
Provisioned files stay out.
POST /operator/revisions/import
The body is a ZIP, sent as it is with Content-Type: application/zip and a
Ferrobridge-Reason. The bridge reads at most 4096 entries and 64 MiB of
content, inside the [server] body ceiling, and every entry names a
.yml or .yaml file under fhirconnect/ or omocl/. It compiles the
set with the archive’s files standing in for the console’s, as a dry run,
and records them as a revision with origin import that does not run
until an apply.
| Answer | When |
|---|---|
201 | The set compiles with the archive’s files. The body is the check’s report, Location the new revision and the ETag its id |
400 | No reason, or a body that is no archive the bridge reads (bad-archive) |
409 | No mapping_dir is configured |
422 | The set does not compile with the archive’s files; the body names every diagnostic, and nothing is recorded |
503 | The CDR did not serve a template, so the set could not be checked |
What the log records
Every operator request leaves one audit line on the
ferrohealth_smart::audit target, the record every FerroHEALTH product
writes: the token’s sub as principal, its client_id and issuer, the
caller’s kind, the scheme (via), the method, the matched route (such as
/operator/mappings/{*path}), the interaction operator, the status, the
duration and the request id, beside the ordinary request line. A save adds
one more line on the ferrobridge::audit target with the caller’s subject,
action save, the file it wrote, old_sha256 (- for a new file),
new_sha256, the reason and the status; a reload adds action reload.
An apply adds action apply with the revision it applied, the
running revision it replaced, the revision it recorded and the
reason. An import adds action import with the archive’s
archive_sha256, the number of files, the revision it recorded and the
reason.
No line carries a token or any mapping content.
Problem types
FerroBRIDGE answers every error outside its FHIR routes as problem details,
the JSON document of RFC 9457,
with the media type application/problem+json. That covers the
operator API, the health routes, and the refusals the
server’s HTTP stack writes itself on those routes: a request past its
timeout (408), a body over the limit (413), a server at its request
limit (429 or 503) and a handler that failed (500). The
FHIR facade and the
FHIRconnect operations under /fhir keep the
FHIR OperationOutcome that FHIR R4 prescribes.
A problem looks like this:
{
"type": "https://ferrobridge.eu/docs/operate/problems.html#provisioned",
"title": "A provisioned file holds this path",
"status": 409,
"detail": "a provisioned file holds this path, and the console never writes one"
}
typenames the problem type. Each FerroBRIDGE type is a link to its section on this page.about:blankmeans the status code says all there is to say, andtitleis then the status phrase, such asPayload Too Large.titleis the type’s summary, the same for every occurrence.statusis the HTTP status of the answer.detailsays what to correct, in a fixed sentence.instance, on a refusal of the stack and a failed handler, is the server’s request id as aurn:uuid:URI, the id the request log names.
A problem never quotes the request: no path, mapping file, request body,
reason, token or upstream answer appears in it, so a problem is safe to show
and to log. The server log names the cause of a 500 or a 503, and the
X-Request-Id header of the answer names the request when you report it.
Every problem answer carries Cache-Control: no-store.
Two operator answers are documents, not problems: the 422 of a check, a
save or a reload names every diagnostic of the set, and
GET /operator/readiness answers 503 with the readiness document while
the process is not ready.
The types
| Type | Status | When |
|---|---|---|
invalid-request | 400 | The Authorization header carries no single credential. |
reason-required | 400 | A save names no reason. |
bad-path | 400 | The path names no mapping file the console can write. |
bad-archive | 400 | The body is no mapping-set archive the bridge reads. |
unauthenticated | 401 | The request carries no valid access token. |
not-permitted | 403 | The token does not carry the operator scope. |
not-found | 404 | The mapping file, the revision or the configuration does not exist. |
provisioned | 409 | A provisioned file holds the path. |
not-configured | 409 | No [operator] mapping_dir is configured. |
precondition-failed | 412 | What the request replaces changed since the ETag it names. |
precondition-required | 428 | The write sends no precondition. |
no-example | 422 | The template has no example composition. |
unreadable | 500 | A mapping directory could not be read. |
unwritable | 500 | The mapping directory could not be written. |
dead-letters-unavailable | 500 | The dead-letter store could not be read or written. |
reload-unavailable | 503 | The mapping set could not be reloaded. |
run-history-unavailable | 503 | The run history could not be read. |
authorization-unavailable | 503 | The token could not be checked. |
invalid-request
400. The Authorization header carries two credentials, or a value that
is no credential. The answer carries WWW-Authenticate: Bearer error="invalid_request". Send one Bearer token.
reason-required
400. A save names its reason in the Ferrobridge-Reason header: one line
of at most 200 characters. Add the header and send the save again.
bad-path
400. The path of a save or a check names no FHIRconnect or OMOCL mapping
file the console can write: it is under no mapping root, or the file is not
.yml or .yaml.
bad-archive
400. The body of an import is no ZIP, is not sent as application/zip,
holds more than 4096 entries or more than 64 MiB of content, names a file
outside fhirconnect/ and omocl/ or one that is not .yml or .yaml, or
names one file twice. Export a revision to see the shape an import reads.
unauthenticated
401. The request carries no access token, or one the server does not
accept. The answer carries the WWW-Authenticate challenge of the
configured schemes. Request a new token from the authorization server.
not-permitted
403. The access token is valid and does not carry the operator scope,
auth.product_scope. The answer carries WWW-Authenticate: Bearer error="insufficient_scope".
not-found
404. No mapping file is at the path, the path leaves its mapping
directory, or the operator API serves no running configuration.
provisioned
409. A provisioned file holds the path, and the console never writes one.
Change the provisioned tree where it is provisioned, or save the console
file under another path.
not-configured
409. No [operator] mapping_dir is configured, so the operator API checks,
saves and reloads nothing. Set mapping_dir to turn on editing.
precondition-failed
412. The file changed since the ETag the save names, or
If-None-Match: * names a file that exists, or the running revision is no
longer the one an apply names in If-Match. Read the file or the revisions
again and send the new ETag.
precondition-required
428. A save sends If-Match with the file’s ETag, or
If-None-Match: * for a new file, and an apply sends If-Match with the
running revision’s id. Add the header.
no-example
422. The template is no composition template, such as a party’s, or no
synthetic example of it builds. The server log names the cause.
unreadable
500. A mapping directory could not be read. The server log names the
directory and the cause.
unwritable
500. The mapping directory could not be written. The server log names the
cause; check that the server’s user owns mapping_dir.
dead-letters-unavailable
500. The dead-letter store of the change feed ([change_feed] dead_letters)
refused a read or a write, so the parked events cannot be listed or a replay
cannot be recorded. The server log names the cause; check that the server’s
user owns the file and that the disk has room.
reload-unavailable
503. The mapping set could not be compiled, because the CDR did not serve
a template or another upstream did not answer. The running set is
unchanged, and the server log names the cause. Send the request again once
the upstream answers.
run-history-unavailable
503. The run history in the bridge schema ([cdm] bridge_schema) could
not be read, because the CDM database did not answer or holds no run table.
The server log names the cause. A bridge schema an earlier release created
gets its run table from ferrobridge cdm init, which leaves every other
table as it is.
authorization-unavailable
503. The server could not check the access token, because the
authorization server’s keys could not be read. Send the request again once
the authorization server answers.
The operator console
The FerroBRIDGE Console is a separate binary, ferrobridge-console, that
serves a web console in front of the bridge. Its server calls the bridge
over the bridge’s public HTTP surface with the signed-in operator’s own
access token, so the bridge checks that token as it checks any other
client’s. No specification governs the console: it is FerroBRIDGE’s own
design.
Configuring and checking it
The console reads its configuration the way the bridge does, through the
FerroHEALTH family’s loader: its defaults, the file --config or
FERROBRIDGE_CONSOLE_CONFIG names, FERROBRIDGE_CONSOLE__<SECTION>__<KEY>
variables over it, and --set key=value pairs last. A secret is set inline
or through its <key>_file sibling, whose trailing line ending is removed.
[telemetry] is the family’s console section, and RUST_LOG sets its
filter. ferrobridge-console config check prints the running configuration
with every secret as *** and exits 78 when the console would not start.
ferrobridge-console healthcheck asks the console on loopback for
GET /health/readiness and exits 0 only on 200; the image’s HEALTHCHECK
runs it.
Signing in
Operators sign in at your OpenID Provider. The console is an OAuth 2.0
client that uses the authorization code grant with PKCE (S256, RFC 7636)
and checks the ID Token against the provider’s JWK Set, its issuer, its
audience and the sign-in’s nonce (OpenID Connect Core 1.0 §3.1.3.7).
Register the console at the provider with:
- the redirect URI
https://<console>/auth/callback; - the post-logout redirect URI, when you set one;
- a client secret, when you run the console as a confidential client.
Then configure [oidc]:
[oidc]
issuer = "https://idp.example.org/realms/ferrobridge"
authorization_endpoint = "https://idp.example.org/realms/ferrobridge/protocol/openid-connect/auth"
token_endpoint = "https://idp.example.org/realms/ferrobridge/protocol/openid-connect/token"
jwks_uri = "https://idp.example.org/realms/ferrobridge/protocol/openid-connect/certs"
client_id = "ferrobridge-console"
client_secret_file = "/run/secrets/console-client-secret"
redirect_uri = "https://console.example.org/auth/callback"
offline_access = true
end_session_endpoint = "https://idp.example.org/realms/ferrobridge/protocol/openid-connect/logout"
post_logout_redirect_uri = "https://console.example.org/"
With issuer alone the console discovers the provider’s endpoints when it
starts (OpenID Connect Discovery 1.0), and each endpoint you write takes the
place of the discovered one. config check never contacts the provider: it
checks the written keys, and builds the sign-in only when the authorization,
token and key-set endpoints are all written. revocation_endpoint names
where a sign-out revokes the operator’s token (RFC 7009), tls.trust_roots_file adds PEM
trust roots for a provider behind a private certificate authority
(tls.client_identity_file and tls.min_version complete the table), and
timeout (default "10s") bounds one call to the provider.
The access token the provider issues is the one the bridge receives, so its
audience and scopes must be ones the bridge’s [auth] accepts, the console’s
client id must be listed in the issuer’s first_party_clients, and the
operator API needs the operator scope (see
The operator API).
Sessions
The sign-in and the session are those of ferrohealth-session, the crate
every FerroHEALTH console signs in with. The browser holds one HttpOnly,
SameSite=Lax cookie, under the __Host- prefix, and never a token. With
offline_access = true the provider issues a refresh token, and the console
refreshes the access token on its server shortly before it expires. A
refresh the provider refuses ends the session, and the operator signs in
again; a provider that does not answer leaves the session for the next
request to try again. Without a refresh token the session ends when its
access token expires. [session] sets the store, the bounds and the
timeouts:
| Key | Default | Meaning |
|---|---|---|
store | "memory" | memory keeps sessions in the console’s process; sealed keeps each in one encrypted cookie |
key, key_file | none | The sealing key of a sealed store: base64 of at least 64 bytes, the same on every replica; refused beside memory |
secure_cookie | true | Cookies carry Secure and the __Host- prefix; false only for a console on http loopback |
sign_in_timeout | "5min" | How long a started sign-in waits for the provider |
max_sign_ins | 1000 | Pending sign-ins a memory store holds; a new one drops the oldest |
idle_timeout | "30min" | How long a session lives without activity |
absolute_timeout | "12h" | How long a session lives from its sign-in; at least idle_timeout |
max_sessions | 10000 | Sessions a memory store holds; a sign-in past it is refused |
A memory store loses its sessions on a restart, so every operator signs in
again, and replicas behind a load balancer need sticky sessions. A sealed
store needs neither, and refuses offline_access, which would put a refresh
token in a browser cookie.
A signed-in page carries FerroUI’s session watch. It asks GET /session,
which reads what the session has left and never counts as activity, and
warns two minutes before the idle timeout with Stay signed in, which posts
to /session to extend it. When the session ends, every tab of the console
leaves for the sign-in, which signs in and comes back to the page the
operator was on (/login?return=<page>).
The console’s pages
A signed-in operator reads a top bar with the search, the bridge’s status
and the user menu, and a sidebar grouped Overview, Mappings, Bridge and
Console (a drawer on a narrow screen, a rail when you fold it). The status
is a word as well as a colour: Bridge up with the version beside it,
Bridge refused 401 when the bridge refuses the operator’s token,
Bridge unreachable, or Bridge unknown with the reason for any other
answer. The Mapping set entry counts the errors of the running load.
The user menu holds Your preferences, the theme and Sign out.
The search finds contexts by name or resource type, mapping files by path and templates by id, and never takes a patient identifier. As you type, a panel opens under the field with the matches grouped by kind, five of each at most; the arrow keys walk them, Enter opens the chosen one, and Enter with none chosen, or “See all results”, opens the search page, which lists every match in the page.
The console draws every page on its server and sends it whole: a link, the search, a tab or an action loads one complete page, and the browser’s back and forward buttons walk the pages you visited. A few small scripts add behaviour on top, such as the editor’s highlighting as you type, the search’s suggestions and the menus and dialogs, and every page and every action works without them: each action is a plain form post that the console answers with the page it drew.
- Dashboard (
/): the running load’s contexts, its errors and warnings, the upstreams the bridge reaches, what needs attention, and the flow from the callers through the faces and the mapping set to the upstreams (GET /health/info,GET /operator/readinessor, with the operator API off,GET /health/readiness,GET /operator/state). - Mapping set (
/mappings): the load report and six tabs. Contexts lists each context with its resource type, template, models, search declaration, owner and state; OMOCL, Templates, Files, Diagnostics and Revisions live at/mappings/omocl,/mappings/templates,/mappings/files,/mappings/diagnosticsand/mappings/revisions. Revisions lists every recorded state of the console’s files, newest first, with what recorded it, when, who and why (GET /operator/revisions). The Files tab filters by path, language and owner, and pages its rows. More holds Reload the set, which asks first, then compiles the files on disk and replaces the running set when they compile. - A mapping file (
/mappings/files/{path}): the file as the bridge serves it, byte for byte, with numbered lines, highlighted YAML, its SHA-256 and the diagnostics beside it, each linked to its line. The Program tab (?tab=program) shows what the context compiled to. - A template (
/mappings/templates/{id}): where the template came from and the contexts that name it. - A revision (
/mappings/revisions/{id}): who recorded it, when and why, every file that differs from the running revision with its lines as a unified diff, and the provisioned files, which are in no revision and read-only. A revision that does not run docks Roll back to this revision (Apply this revision for an imported one) with its reason; the bridge compiles the set with its files first, changes nothing when it does not compile, and refuses the apply when another one ran since the page drew (POST /operator/revisions/{id}/apply). Export as ZIP downloads the revision’s console files (GET /operator/revisions/{id}/export). - Import a mapping set (
/mappings/import, from the Mapping set’s More menu): a ZIP as an export wrote it, at most 2 MB, with the reason. The bridge checks the set with its files as a dry run and saves them as a revision that does not run, linked to its page, where Apply this revision runs it; a set that does not compile shows its diagnostics and nothing is saved. More also holds Export the running set. - The editor (
/mappings/edit/{path}, or/mappings/newfor a new file): see below. - Playground (
/playground,/playground/toopenehr,/playground/validate): runs$tofhir,$toopenehrand$validateas the operator, and keeps nothing. On the$tofhirtab, Example holds one synthetic composition per template of the running set, generated from its Web Template (GET /operator/templates/{id}/example); choosing one loads it into the composition with its template chosen. - FHIR facade (
/facade,/facade/capability,/facade/security,/facade/settings): the facade’s state, the resource types itsCapabilityStatementserves, the SMART discovery document, and its settings. - HL7 v2 (
/hl7v2,/hl7v2/concept-maps,/hl7v2/settings) and OMOP ETL (/omop,/omop/runs,/omop/settings): whether the MLLP listener runs and where, whether an ETL is configured, and each face’s settings. The ConceptMaps tab lists every map the HL7 v2 face runs, fromGET /operator/hl7v2/concept-maps: its title and id, its kind, what it maps from and to, whether it is the guide’s or a FerroBRIDGE correction, its rows and the messages it served since the bridge started. The OMOP ETL’s Runs tab lists the runs the bridge schema keeps, fromGET /operator/etl/runs, each with its job, when it ran and its counts, and links each to its report (/omop/runs/{id}): the compositions it read, the rows it wrote by table, what its deletion check found, and every record it refused with the reason. - Events (
/events): every change-feed consumer and the AMQP topology of the events lane, fromGET /operator/events: each consumer’s source and reader, its position in each stream (an outboxseqof the reference CDR, or the watermark the bridge keeps for the AQL source), its state, what it published since the bridge started, and its last failure with the cause, never an event body; then the events each consumer parked in the dead-letter store with their cause and passes, each with a Replay button that postsPOST /operator/events/{consumer}/parked/{id}/replayand comes back to the page, where the event reads “Replay requested” until its consumer offers it again; then the exchange, the routing-key grammar and the bound queues. The topology changes in the configuration. A bridge with no consumer says so in one line. - Connections (
/connections,/connections/{name},/connections/{name}/settings): each upstream with its host, how it signs in, the lanes that use it and its state from the bridge’s readiness, and its settings with its credentials by reference. - Configuration (
/configuration,/configuration/mappings,/configuration/core): the settings no face or connection owns: logging, the mapping directories, and the server and who may call it. - Your preferences (
/preferences,/preferences/language,/preferences/keyboard): appearance, language and region, and keyboard hints. - About (
/about): the console’s and the bridge’s versions, the licence and the maker, Cadasto B.V.
The editor changes the console’s own mapping files, which live under the
bridge’s [operator] mapping_dir:
- Check compiles the whole set with your draft in place of the file and lists every diagnostic. Nothing is written.
- Save needs a one-line reason and a confirmation in the bar at the
foot of the page. The bridge compiles the set with the draft again and
writes the file only when it compiles, then reloads, so a refused draft
leaves the disk and the running set as they were. The save carries the
digest the file was opened at: when someone changed the file in the
meantime, the bridge refuses with
412and your draft stays in the editor. The draft is saved with LF line ends, whatever line ends the browser posts.
A provisioned file opens for a check only, or to save under a path of its own: the console never saves over one. The bridge’s audit log names who saved which file, the two digests and the reason, never the content.
What you enter in the playground goes to the bridge in the request body
alone, never in an address or the browser’s history, and the console logs
none of it. A $toopenehr answer shows the composition, with the issues
of the OperationOutcome the bridge returned beside it above the first
line. When the bridge’s operations lane is off, the playground says so and
its run button is disabled.
The mapping counts, the Mapping set, the files and the editor read the
operator API, so they need [operator] enabled = true on the bridge and
an operator token that carries the operator scope. Without either, those
sections say the operator API is off, or show the bridge’s refusal with
its status, while the rest of the page still draws.
Every Settings tab and the Configuration page read
GET /operator/configuration, the configuration the bridge started on,
so they are read-only: each row shows its value, its TOML key on hover,
and whether the value came from the environment or is the default. A
secret shows only whether it is set and the file it is read from, never
its value. How configuration works, at the end of the line that names the
file, says where each setting is shown and that a change is made in the
file and takes effect at the next start.
Your preferences keeps each choice in a cookie of its own for a year
(ferrobridge_console_theme, _density, _motion, _language,
_week-start and _hints, under the __Host- prefix when the cookies
are secure), and the server draws each page in them, so nothing is kept
in the browser’s storage. Reset to defaults clears them all. The theme
offers light, dark and system, which follows the operating system, and is
set in the user menu and in Your preferences alone.
Every screen
Each screen below is shown in the light theme at 1440 pixels wide, with a link to the same screen in the dark theme. The browser journeys take them against a running bridge with a synthetic mapping set, so what you read is what the console draws.
Signing in and out
The sign-in card a visitor reads. Dark theme.
The card a signed-out operator reads. Dark theme.
Dashboard
The dashboard with the flow. How it is drawn, in the flow’s head, opens a short dialog with each state’s line and what it means. Dark theme.
Mapping set
The Mapping set on its Contexts tab. Dark theme.
The OMOCL tab. Dark theme.
The Templates tab. Dark theme.
The Files tab with its filters. Dark theme.
The Diagnostics tab. Dark theme.
The set after a reload. Dark theme.
The Revisions tab after a save. Dark theme.
The baseline revision with its diff against the running one and the rollback docked. Dark theme.
The import page. Dark theme.
An archive checked and saved as a revision. Dark theme.
A provisioned context mapping file with its diagnostics. Dark theme.
The program a context compiled to. Dark theme.
A model mapping file. Dark theme.
A template and the contexts that name it. Dark theme.
The editor
A new console file. Dark theme.
A provisioned file, open to check or to save under a path of its own. Dark theme.
A draft the set does not compile with, and its save blocked. Dark theme.
The confirmation a save asks for. Dark theme.
A draft the bridge refused to save, with the running set unchanged. Dark theme.
A draft the bridge saved and reloaded the set with. Dark theme.
Playground
The playground with an example composition of the template. Dark theme.
The playground on its $tofhir tab. Dark theme.
The $toopenehr tab. Dark theme.
The $validate tab. Dark theme.
A $toopenehr the bridge answered, with its outcome’s issues.
Dark theme.
A $tofhir the bridge refused, with its status.
Dark theme.
A bridge whose operations lane is off. Dark theme.
Bridge
The FHIR facade. Dark theme.
The resource types the facade serves. Dark theme.
The SMART discovery document. Dark theme.
The facade’s settings. Dark theme.
The HL7 v2 face and its MLLP listener. Dark theme.
The ConceptMaps the HL7 v2 face runs, with the messages each served. Dark theme.
The HL7 v2 face’s settings. Dark theme.
The OMOP ETL of a bridge with no ETL configured. Dark theme.
The OMOP ETL’s settings. Dark theme.
The runs the bridge schema keeps. Dark theme.
The report of one run, with the record it refused. Dark theme.
The Events page of a bridge whose events lane is off. Dark theme.
The Events page of a bridge whose broker cannot be reached: the consumer reads degraded with its cause, its cursor stays where it was, and an event it parked waits for a replay. Dark theme.
The upstreams. Dark theme.
The openEHR CDR. Dark theme.
The openEHR CDR’s settings, its credentials by reference. Dark theme.
Console
Configuration, Logging. Dark theme.
Configuration, Mappings. Dark theme.
Configuration, Server and access. Dark theme.
Your preferences, Appearance. Dark theme.
Your preferences, Language and region. Dark theme.
The search page, every match of the words searched for, one card per kind. Dark theme.
The About page. Dark theme.
The page for a path the console does not serve. Dark theme.
Signing out
Sign out, in the user menu, is a POST to /logout. It ends the session
and, when end_session_endpoint is set, sends the browser to the provider
with the ID Token hint (OpenID Connect RP-Initiated Logout 1.0); without
one it lands on /signed-out, whether or not the console has a provider.
When the provider has a revocation endpoint, the sign-out revokes the
operator’s refresh token, or its access token when it has none (RFC 7009).
The console takes a POST only from its
own pages, by the browser’s Sec-Fetch-Site header, or by Origin when
the browser sends no fetch metadata.
Upgrading from ferrobridge-viewer
Up to 0.0.10 the console was named ferrobridge-viewer. From 0.0.11 it is
ferrobridge-console, and the old image is no longer built. When you
upgrade, change each old name to the new one:
| What | Up to 0.0.10 | From 0.0.11 |
|---|---|---|
| Image | ghcr.io/ferrohealth/ferrobridge-viewer | ghcr.io/ferrohealth/ferrobridge-console |
| Binary | ferrobridge-viewer | ferrobridge-console |
| Configuration file variable | FERROBRIDGE_VIEWER_CONFIG | FERROBRIDGE_CONSOLE_CONFIG |
| Environment prefix | FERROBRIDGE_VIEWER__ | FERROBRIDGE_CONSOLE__ |
| Compose profile and service | viewer | console |
| Compose secret file | secrets/viewer_oidc_client_secret | secrets/console_oidc_client_secret |
| Cookies | ferrobridge_viewer_* | ferrobridge_console_* |
The cookies change with the name, so every operator signs in again after the upgrade.
The 0.0.11 console is also drawn anew on FerroUI 0.3.6, and its addresses moved with it. A bookmark to an old address answers the page-not-found page; follow its links, or use the new address:
| Up to 0.0.10 | From 0.0.11 |
|---|---|
/files | /mappings/files |
/files/{path} | /mappings/files/{path} |
/edit | /mappings/new |
/edit/{path} | /mappings/edit/{path} |
/validate | /playground/validate |
/capability | /facade/capability and /facade/security |
The theme toggle left the top bar: set the theme in the user menu or in
Your preferences. Each preference, the theme among them, is kept in a
cookie of its own for a year, so every operator chooses the theme again
after the upgrade. A sign-out with no end_session_endpoint lands on /signed-out
instead of the sign-in.
The container image
FerroBRIDGE ships as one image carrying one binary, and the
operator console as a second image beside it. This
page describes both images, the quickstart compose.yaml, the variables the
server reads, and the health probe you point your orchestrator at. Each
release publishes the bridge to ghcr.io/ferrohealth/ferrobridge and the
console to ghcr.io/ferrohealth/ferrobridge-console under its version tag,
with provenance and SBOM attestations, beside the release binaries on the
GitHub release page.
No specification governs packaging, the process model, or health probes: this page is FerroBRIDGE’s own design.
- What the image is
- Running it with compose
- The identity store
- The environment variables
- The health probe
- The operator console image
- The console profile
- The OMOP CDM profiles
- Sources
What the image is
| Fact | Value |
|---|---|
| Registry and repository | ghcr.io/ferrohealth/ferrobridge |
| Tag | the product version, for example 0.0.1; each release publishes its own |
| Base | gcr.io/distroless/static-debian13:nonroot, pinned by index digest |
| Platforms | linux/amd64 and linux/arm64 |
| User | uid 65532, gid 65532, written numerically |
| Entrypoint | /usr/local/bin/ferrobridge, exec form, with serve as the default command |
| Port | 8080/tcp |
The base is distroless static: CA certificates, time zone data, an
/etc/passwd carrying the non-root user, and a /tmp. There is no shell, no
package manager, and no HTTP client, so the image cannot run a script and
nothing can be installed into it at runtime. The binary is a static musl build
that the release lane produces, attests, and stages before the image is built;
the image compiles nothing.
The user is written as 65532:65532 rather than as a name because the kubelet
cannot resolve a name against an image it does not read, so a named USER
makes runAsNonRoot: true refuse the pod.
Every build-independent OCI label is set in the recipe
(org.opencontainers.image.title, .description, .url, .documentation,
.source, .vendor, .licenses, .base.name). The release lane adds the
version, revision and creation labels at build time, so the same file produces
a correctly labelled image at every cut.
The tag scheme follows the product version, and a version is never rebuilt: a bad cut ships forward as the next patch version.
Running it with compose
compose.yaml at the repository root is the quickstart, and every release
attaches it with its .sha256sum. It is one self-contained file that mounts
nothing from the repository, so it needs Docker Compose 2.23.1 or newer and
no checkout. Download it, create the secret files beside it, and start:
curl -fsSLO https://github.com/FerroHEALTH/FerroBRIDGE/releases/latest/download/compose.yaml
mkdir -p secrets
printf '%s' "$CDM_PASSWORD" > secrets/cdm_password
printf 'postgresql://ferrobridge:%s@cdm:5432/omop?sslmode=disable' "$CDM_PASSWORD" > secrets/cdm_url
printf '%s' "$CDR_PASSWORD" > secrets/cdr_password
printf '%s' "$TX_PASSWORD" > secrets/terminology_password
docker compose up --wait
curl http://127.0.0.1:8080/health/liveness
Compose refuses to start a service whose secret source file is missing, so create all four even when a lane is off; a file nothing reads may be empty. Never commit them.
The published port binds 127.0.0.1 by default. A published port is DNAT’d
ahead of the host firewall’s own chains, so a port published on 0.0.0.0 is
reachable from the network even when the firewall says otherwise
(Docker: packet filtering and
firewalls).
To serve another machine, name that interface explicitly or put a reverse proxy
in front:
FERROBRIDGE_BIND_HOST=10.0.0.7 docker compose up
The service runs with a read-only root filesystem, every Linux capability
dropped, and no-new-privileges:true. There is no tmpfs beside it because
the quickstart’s server writes almost nothing: no cache, no scratch file, no
upload directory, and every secret is read once at boot. It keeps the
usage report’s instance id on the named volume
ferrobridge-state, mounted at /home/nonroot, the image’s home directory,
which its runtime user owns. The other file the server writes is the FHIR
facade’s identity store, and the facade is off in the quickstart;
the identity store says what to mount when you turn it
on.
The identity store
With [facade] enabled = true, the server keeps its identity map in one
file, [facade] identity_store (FERROBRIDGE__FACADE__IDENTITY_STORE). The map
records each subject’s ehr_id, each FHIR resource id and the composition it
came from, and the source identity of every resource the facade consumed. It
holds no clinical content. The server opens the file at boot, creating it when
it is absent, and refuses to start when it cannot. The default, identity.redb,
is relative to the working directory, which is / in the image: root-owned and
read-only, so set the key to a path on a volume.
- Where it lives: a path on a writable volume mounted into the container,
such as
/var/lib/ferrobridge/identity.redb. The image runs as user65532, so the volume must be writable by that user (in Kubernetes,securityContext.fsGroup: 65532on the pod). - What volume it needs: a persistent one. The file survives a restart
only if the volume does, so use a
PersistentVolumeClaim(or a named volume under Compose), never anemptyDiror atmpfs. A lost file is a lost map: the next create of a resource the CDR already holds writes a second composition, and a client’s FHIR ids stop resolving. Back the file up with the CDR. - Replicas: one process per file. The store takes an exclusive lock on the
file when it opens it, so a second process pointed at the same file refuses
its start, and a network filesystem that does not honour the lock is not a
safe place for it. Two replicas with a file each would keep two maps that
disagree. Run the facade as a single replica (a
StatefulSetof one with aReadWriteOnceclaim), and use theRecreatestrategy for aDeployment, so the old pod releases the file before the new one opens it. - Restarts: the map is read from the file at boot, so a restarted process answers with the ids it handed out before. The claims that order overlapping deliveries live in the process, and a restart drops them with the deliveries they held; a retry is then recognised from the identity map (Failure and identity behaviour).
A Kubernetes pod spec with a read-only root filesystem keeps the store on its claim:
securityContext:
runAsNonRoot: true
fsGroup: 65532
containers:
- name: ferrobridge
securityContext:
readOnlyRootFilesystem: true
env:
- name: FERROBRIDGE__FACADE__IDENTITY_STORE
value: /var/lib/ferrobridge/identity.redb
volumeMounts:
- name: identity
mountPath: /var/lib/ferrobridge
volumes:
- name: identity
persistentVolumeClaim:
claimName: ferrobridge-identity
The environment variables
Every key is settable as FERROBRIDGE__<SECTION>__<KEY>, and
Configuring the server is the complete reference with every
default and every refusal. This section covers the variables the quickstart
names.
The image sets one of them itself: FERROBRIDGE__SERVER__LISTEN=0.0.0.0:8080,
because the binary’s own default is loopback and no container can publish a
loopback port.
The quickstart passes the upstream variables through from your shell or your
.env file rather than defaulting them, because an empty base URL is a boot
error while an absent one is a lane the server never starts. Set the ones you
use:
FERROBRIDGE__CDR__ENDPOINT__URL=https://cdr.example.org/openehr/v1
FERROBRIDGE__CDR__ENDPOINT__CREDENTIALS__USER=ferrobridge
FERROBRIDGE__CDR__ENDPOINT__CREDENTIALS__PASSWORD_FILE=/run/secrets/cdr_password
FERROBRIDGE__TERMINOLOGY__ENDPOINT__URL=https://tx.example.org/r4
FERROBRIDGE__TERMINOLOGY__WIRE_VERSION=r4
FERROBRIDGE__TERMINOLOGY__ENDPOINT__CREDENTIALS__USER=ferrobridge
FERROBRIDGE__TERMINOLOGY__ENDPOINT__CREDENTIALS__PASSWORD_FILE=/run/secrets/terminology_password
FERROBRIDGE__CDM__URL_FILE=/run/secrets/cdm_url
The CDR takes basic authentication, as above, or a token the bridge obtains
with the OAuth 2.0 client credentials grant: leave the two basic variables
unset and set the FERROBRIDGE__CDR__ENDPOINT__CREDENTIALS__OAUTH__ variables
([cdr.endpoint.credentials.oauth]), with the
client secret in a compose secret of your own.
The terminology server takes the same two modes under its own names:
FERROBRIDGE__TERMINOLOGY__ENDPOINT__CREDENTIALS__USER and
FERROBRIDGE__TERMINOLOGY__ENDPOINT__CREDENTIALS__PASSWORD_FILE, read from the
terminology_password secret as above, or
FERROBRIDGE__TERMINOLOGY__ENDPOINT__CREDENTIALS__OAUTH__ISSUER (or __TOKEN_ENDPOINT),
__CLIENT_ID, __CLIENT_SECRET_FILE and __AUDIENCE
([terminology.endpoint.credentials.oauth]).
The CDR takes the same five OAuth variables under
FERROBRIDGE__CDR__ENDPOINT__CREDENTIALS__OAUTH__. Leave every credential variable of a
server that checks no credentials unset.
Inbound authentication is on by default
([auth]), so a bridge that serves the FHIR facade,
the operator API or the FHIRconnect operations refuses to start until it
names the authorization server that issues its callers’ tokens:
FERROBRIDGE__AUTH__ISSUER__CLINIC__ISSUER=https://auth.example.org/realms/clinic
FERROBRIDGE__AUTH__ISSUER__CLINIC__KIND=persons
The issuer is named clinic here, and its audience is the facade’s
base_url (FERROBRIDGE__FACADE__BASE_URL).
On a network only trusted callers reach, FERROBRIDGE__AUTH__ENABLED=false
serves those routes open instead.
Every credential is reachable through a _file sibling read once at boot, and
that is what the compose secrets are for: a secret mounts at
/run/secrets/<name>, so the _file variable names that path and the value
never enters the environment, where docker inspect would show it. Setting a
value together with its _file sibling is a boot error, and a refused
configuration exits 78.
FERROBRIDGE_CONFIG names a TOML file instead, for a deployment that mounts
its configuration rather than setting variables.
A container’s stdout is no terminal, so the default auto format writes one
JSON object per line with no colour and no banner, and you configure nothing
for a log collector to read it. Set FERROBRIDGE_LOG_FORMAT=pretty to read
the banner and human-readable lines in docker compose logs
(The console).
The health probe
A distroless image has no shell and no HTTP client, so the image’s
HEALTHCHECK runs the binary itself: ferrobridge healthcheck asks the
running server for GET /health/readiness on loopback (where
FERROBRIDGE__SERVER__LISTEN says, over TLS when [server.tls] is set) and
exits 0 only on 200. It checks every 30 seconds after a 60-second start
period. Kubernetes ignores the instruction and keeps its own probes. The
endpoints, the FerroHEALTH family’s (ferrohealth-server):
GET /health/livenessanswers200while the process is up. Restart the container when it stops answering.GET /health/readinessruns one bounded check per configured upstream and answers200when every one of them answered. Each check sends the configured credentials: the CDR check lists the ADL 1.4 templates (GET /definition/template/adl1.4, filtered so the answer is empty), and a401or403from either upstream counts as down, because every real call would be refused the same way. With a[cdm]section, acdmcheck opens one connection to the CDM database over the configured TLS and asksSELECT 1; a refused connection or a failed query counts as down. Take the instance out of the load balancer when it does not answer200.
Readiness answers 200 only while the process serves and no indicator is
down, and 503 otherwise, also while it boots and while it drains after
SIGTERM. The body names the aggregate, the phase and every indicator with
its state, sorted by name, and never why an indicator is down, since anyone
who reaches the port reads it:
{
"state": "down",
"phase": "serving",
"indicators": [
{ "name": "cdr", "state": "up" },
{ "name": "terminology", "state": "down" }
]
}
GET /health answers the same status with the aggregate alone. The operator
API answers the same document with each indicator’s detail at
GET /operator/readiness, behind its scope (The operator
API): the detail names the upstream status or the reason the
call never reached it, and never a body, a credential, or clinical content. A probe that reaches the
upstream counts it up, 401 and 404 included; a 5xx and a failure to
connect count it down. Each check is bounded, so a wedged upstream cannot hang
the probe. In Kubernetes, point livenessProbe at /health/liveness and
readinessProbe at /health/readiness.
The server fetches the templates its mappings name from the CDR before it
serves. When the CDR does not answer that fetch yet (a refused connection, a
timeout, or a 5xx other than 501), the process stays up: it binds the
listen address at once, answers liveness with 200 and readiness with 503,
and tries the start again after 1 second, doubling the wait up to 30 seconds.
Readiness then carries a startup indicator whose detail names the attempt
and why it failed, beside the cdr indicator. A documented answer such as a
404 for a template the CDR does not hold still stops the start. On
Kubernetes this keeps a pod that starts before its CDR out of a crash loop.
The operator console image
The console is a separate binary, ferrobridge-console, that calls the
bridge over its public HTTP surface. Its image follows the bridge image’s
rules:
| Fact | Value |
|---|---|
| Registry and repository | ghcr.io/ferrohealth/ferrobridge-console |
| Tag | the product version, the same as the bridge image of that release |
| Base | the bridge image’s base, at the same index digest |
| Platforms | linux/amd64 and linux/arm64 |
| User | uid 65532, gid 65532, written numerically |
| Entrypoint | /usr/local/bin/ferrobridge-console, exec form, with serve as the default command |
| Port | 3000/tcp |
| Health check | HEALTHCHECK through ferrobridge-console healthcheck |
The image compiles nothing: the release lane builds the static console
binary per architecture, attests it, and stages it before the image is built.
The binary serves every page, stylesheet and script module itself, so the
image carries nothing beside it. It sets
FERROBRIDGE_CONSOLE__SERVER__LISTEN=0.0.0.0:3000, because the binary’s own
default is loopback.
Unlike the bridge image, the console image declares a HEALTHCHECK. The base
still has no shell and no HTTP client, so the probe is the binary’s own
healthcheck subcommand: it reads the same configuration as serve, asks
GET /health on the listen port over loopback within 3 seconds, and exits 0
on a 200 and 1 otherwise. Docker and Compose read the instruction;
Kubernetes ignores it, so point a probe at GET /health on port 3000 there.
Every key of the console’s configuration is settable as
FERROBRIDGE_CONSOLE__<SECTION>__<KEY>, and every secret through its _file
sibling, the same way the bridge reads its own
(The operator console lists the keys).
The console profile
The console profile of compose.yaml runs the console beside the bridge:
printf '%s' "$CLIENT_SECRET" > secrets/console_oidc_client_secret
docker compose --profile console up
It publishes port 3000 on 127.0.0.1 (FERROBRIDGE_CONSOLE_PORT moves it,
and FERROBRIDGE_BIND_HOST names another interface, as for the bridge), and
reaches the bridge at http://ferrobridge:8080/ over the compose network.
The service runs with a read-only root filesystem, every Linux capability
dropped, and no-new-privileges:true. The console keeps its sessions in
memory and writes no file, so it mounts no volume.
Sign-in stays off until you name your OpenID Provider. Register the console
there as a confidential client with the redirect URI
http://127.0.0.1:3000/auth/callback (or the address you publish), write
its client secret to secrets/console_oidc_client_secret, and set the
provider in your shell or .env:
FERROBRIDGE_CONSOLE__OIDC__ISSUER=https://idp.example.org/realms/ferrobridge
FERROBRIDGE_CONSOLE__OIDC__AUTHORIZATION_ENDPOINT=https://idp.example.org/realms/ferrobridge/protocol/openid-connect/auth
FERROBRIDGE_CONSOLE__OIDC__TOKEN_ENDPOINT=https://idp.example.org/realms/ferrobridge/protocol/openid-connect/token
FERROBRIDGE_CONSOLE__OIDC__JWKS_URI=https://idp.example.org/realms/ferrobridge/protocol/openid-connect/certs
FERROBRIDGE_CONSOLE__OIDC__CLIENT_ID=ferrobridge-console
FERROBRIDGE_CONSOLE__OIDC__CLIENT_SECRET_FILE=/run/secrets/console_oidc_client_secret
FERROBRIDGE_CONSOLE__OIDC__REDIRECT_URI=http://127.0.0.1:3000/auth/callback
FERROBRIDGE_CONSOLE__SESSION__SECURE_COOKIE=false
The client secret reaches the console as a compose secret mounted at
/run/secrets/console_oidc_client_secret, so the value never enters the
environment. FERROBRIDGE_CONSOLE__SESSION__SECURE_COOKIE=false is for a
console served over plain http on loopback, as above, and the console
refuses it for any other redirect URI; behind an https reverse proxy, leave
it unset so the session cookie carries Secure. The quickstart passes each
of these variables through only when you set it, because an absent issuer is
a console without sign-in while an empty one is a boot error.
The console calls the bridge with the operator’s own access token, so the
bridge must validate it: name the issuer and the audience in the bridge’s
[auth] section, and turn on [operator] for the mapping files (The operator API).
The OMOP CDM profiles
Two compose profiles cover the OMOP target, and neither runs on a plain
docker compose up.
The cdm profile stands up the CDM database on PostgreSQL 19.0, pinned by
digest, with its password read from secrets/cdm_password rather than from the
environment, and a pg_isready health check that gates the jobs below:
docker compose --profile cdm up -d cdm
docker compose --profile cdm run --rm cdm-init
cdm-init runs the bridge image with cdm init, which applies the OMOP CDM
v5.4 tables, primary keys and indices to [cdm] schema in one transaction,
then creates the bridge schema ([cdm] bridge_schema) with its side table,
watermarks and one id sequence per CDM table. Running it again is safe: on a
schema that already holds every CDM table it applies nothing, says the schema
is initialised and exits 0, and on one that holds only some of them it exits
1 naming the missing tables. The OHDSI foreign keys are applied only with
cdm init --with-constraints, which PostgreSQL refuses at the pinned OHDSI
tag; the configuration page’s cdm init section has the three states and the
refused statement.
The vocab profile loads an OHDSI Athena vocabulary export. The export is a
licensed download you obtain yourself; it is bind-mounted read only and no
vocabulary byte enters the image, the build context, or a release asset:
FERROBRIDGE_VOCAB_DIR=/srv/athena/2026-09 \
docker compose --profile vocab run --rm vocab-load
vocab load DIR --schema NAME replaces each vocabulary table from the download; the
deployment shape page has the
files it reads and the licences you accept. etl run is a working job; the image runs it as
ferrobridge etl run with the [etl] section the configuration page
describes.
Sources
- distroless: https://github.com/GoogleContainerTools/distroless
- The Dockerfile reference: https://docs.docker.com/reference/dockerfile/
- The Compose file reference: https://docs.docker.com/reference/compose-file/
- Docker packet filtering and firewalls: https://docs.docker.com/engine/network/packet-filtering-firewalls/
Checking a deployment
After you start or upgrade a FerroBRIDGE deployment, run
scripts/deploy-probe.sh from a checkout of the repository against its base
URL. The script asks each HTTP lane what state it is in and prints one finding
per lane. It needs bash and curl, and it writes nothing to the CDR.
No specification governs this suite, its lanes or its findings: this page is FerroBRIDGE’s own design.
Run it
scripts/deploy-probe.sh https://bridge.example.org
State what you configured, so a lane in the wrong state fails the run:
scripts/deploy-probe.sh \
--expect facade=on --expect operations=off \
https://bridge.example.org
| Option | Meaning |
|---|---|
--expect <lane>=<on|off> | Fails the run when the lane is not in that state. Repeat it per lane. |
--json <file> | Also writes the findings, with the evidence of each probe, to <file> |
--token-file <file> | Sends the bearer token in <file> on the /fhir probes, for a facade behind [auth] |
--timeout <seconds> | How long each request may take, 10 by default |
The lanes and what each probe asks
| Lane | Probe | on | off |
|---|---|---|---|
| health | GET /health/liveness, GET /health/readiness, GET /health/info | each answers 200 | each answers 404 |
| facade | GET /fhir/metadata | 200 with a CapabilityStatement | 404: a disabled facade mounts no route |
| operations | POST /fhir/$tofhir with an empty Parameters | 400 or 422 with an OperationOutcome: the engine refused the empty request, so the lane is serving | 503 with the issue code not-supported: no [mappings] set is configured |
The operations probe sends a request the engine must refuse, so it proves the lane is mounted and compiled without needing a composition of yours.
The four findings
| Finding | When |
|---|---|
on | Every probe of the lane got the answer of a served lane |
off | Every probe of the lane got the answer of a lane that is not configured |
failing | A probe got a 5xx other than the operations lane’s not-supported, a 200 the lane never gives (a facade 200 that is no CapabilityStatement), a 401 or 403 with the token you supplied, or the lane is half mounted (one probe on, another off) |
uncovered | A probe got no HTTP answer, a 401 or 403 with no token supplied, or a status no rule above classifies |
A readiness 503 is failing, and the script prints the start of its body,
which names the indicator that is down. During the start, before the lanes are
mounted, every route but / and the health routes answers 503, so run the
script after readiness answers 200.
An uncovered lane is never counted as passed. The script cannot tell you
anything about a lane it did not observe, so it fails with its own exit
status rather than letting silence read as success.
The report ends with the findings each lane was not in. One run sees only the state the deployment is in: a run against a deployment with the facade on says nothing about how the facade behaves when it is off or failing, and the report lists those findings as not observed.
Exit status
| Status | Meaning |
|---|---|
0 | Every lane observed, none failing, every --expect met |
1 | A lane is failing, or a lane is not in the state --expect names |
2 | The arguments are not valid |
3 | A lane is uncovered, and none is failing |
scripts/deploy-probe.sh --self-test runs the script against a stub curl
through every finding of every lane, without a server.
Failure and identity behaviour
A bridge carries clinical data between systems, so a silently dropped element or a swallowed upstream error becomes a wrong record in the receiving system. FerroBRIDGE fails loudly instead. The FHIRconnect engine chapter states its guidance as recommendations, so each rule below is pinned as FerroBRIDGE’s own decision, and this page is the operator-facing statement of it.
- All or nothing per unit
- Type coercion is strict
- An upstream failure stays a failure
- Unmapped OMOP codes are recorded, never dropped
- Identity
- A re-sent transaction commits once
- A re-sent single create commits once
- An HL7 v2 sender and receiver become MessageHeader endpoints
- Version mismatch is refused at load time
- Programmed mappings are compiled in
All or nothing per unit
A transaction Bundle that cannot be mapped in full is refused with an
OperationOutcome naming every failing entry, and nothing is committed. A
batch Bundle answers per entry and counts its failures, because FHIR R4 defines
batch that way. There is no best-effort mode. On the OMOP side the unit is one
composition’s whole record graph: a composition becomes many linked rows, and
they commit together or not at all, so no FACT_RELATIONSHIP row ever points
at a record that was never written.
Type coercion is strict
A value that does not parse as the RM leaf type the Web Template resolved is a refusal. FerroBRIDGE does not round a number, truncate a string, or guess a date format to make a value fit.
An upstream failure stays a failure
A refused CDR call, a failed terminology lookup, or a timeout is reported with
the upstream status. It never becomes an empty value, a default, or a silently
missing element. When a display cannot be resolved through $lookup, you get
an error that says so, not a resource with a coding missing its display.
Unmapped OMOP codes are recorded, never dropped
A source code with no standard concept lands as concept_id = 0 with the
source value kept in its source column. That is the CDM’s own answer for “no
matching concept”, and it keeps the row auditable. A row is never discarded
because its code did not resolve, and every run reports how many codes landed
there, per mapping, because the reference implementation’s own authors measured
8.65% of primary concepts doing so and called that an underestimate.
Identity
On the FHIR side an exported resource id is derived deterministically, as the
specification recommends, from the composition’s stable versioned_object_uid,
the entry path and the split occurrence, so it stays the same across
composition versions, which FHIR requires of a logical id; meta.versionId
carries the openEHR version. FerroBRIDGE also keeps a persistent id-map: the
patient identifier to ehr_id relation, the external to internal resource id
relation, and the resource id to composition relation, so a PUT resolves and
a re-sent Bundle is recognised. It also records each Resource.identifier a
committed resource carries against its resource id, which is what a
conditional create’s identifier search reads.
A resource the mapping creates beside the one it maps, one per further
occurrence of a hierarchy.split with create: resource or one per
reference mapping going out of openEHR, gets a binding of its own the first
time the facade answers its parent. Its id is a digest over the parent’s
entry, the mapping that creates it and the openEHR occurrence it is created
for, so it stays the same across re-runs and composition versions. The parent
references it as <Type>/<id>, and GET [base]/<Type>/<id> answers it on
its own: the facade maps the parent’s entry again and returns the created
resource of that id. The binding holds identifiers only, never content.
The id-map file records the schema it was written in. This build writes schema 3 and reads schemas 1 to 3; a file with no schema row was written by 0.0.6 or earlier and reads as schema 1. Schema 3 adds the binding of a created resource, so a file of schema 1 or 2 reads unchanged. Opening the store checks the schema and stamps the file with schema 3. A file in any other schema, for example one a later build wrote, stops the start with an error that names the file, the schema it found and the schemas this build reads, and the file is left unchanged.
Every openEHR identifier the id map holds is checked again when a request
reads it: an ehr_id must not carry a character that would change the
request path, and a version container must match the openEHR BASE
HIER_OBJECT_ID grammar. A stored value that fails its check answers
500 Internal Server Error with an exception issue. The issue names the
resource the record belongs to (Condition/<id>), or the resource id a
consumed source was recorded as, together with the field and the value it
holds. The CDR is not called, and nothing is written. Opening the store does
not scan the records, so a malformed value surfaces on the first request that
reads it.
A re-sent transaction commits once
Every entry the facade commits records the source it consumed. A resource is
keyed by its resourceType, id and meta.versionId, the same key a single
create uses. A message is keyed by its type, its control id and the entry’s
position in the Bundle, so a redelivered message is recognised even when it is
rebuilt with fresh resource ids. When every entry of a Bundle was consumed
before, the Bundle commits nothing and answers the resources the first delivery
created. When only some were, the Bundle is refused with 409 and nothing is
committed. An entry without an id has no key, so its Bundle commits again
each time it is sent. These rules are FerroBRIDGE’s own design.
The CDR does not say in which order it lists the versions of a contribution.
After the commit, FerroBRIDGE reads each version back and matches it to the
entry it came from by the FEEDER_AUDIT the engine wrote: the item’s type,
its id and its version. Where several entries name the same item, as the
entries of one message do, the composition content decides. That comparison
masks what two mappings of one entry can differ in without the source
changing: the composition uid the CDR assigns, and every time the engine
filled from its clock because no mapping wrote it. The engine reads the clock
once per resource and hands that instant to the builder as the ctx/time
default, which fills EVENT_CONTEXT.start_time, HISTORY.origin,
EVENT.time and ACTION.time where the mapping left them empty (ITS-REST
Simplified Formats, master06 §time). Each DV_DATE_TIME whose value is that
instant is left out of the comparison, so a Bundle mapped again at a later
instant still matches the compositions its first delivery stored. A version that
matches no entry or more than one refuses the answer with a 500 that names
the contribution, and no binding is recorded.
The commit is two steps. First the facade commits the contribution with
Prefer: return=representation and records the contribution uid the CDR
answers against every keyed entry of the Bundle, before it binds any of them.
Then it binds each entry from the versions the answer lists. A CDR that
ignores the header answers an empty 201 that still names the contribution,
and the facade then reads the contribution back with
GET /ehr/{ehr_id}/contribution/{contribution_uid} and binds from its
versions, with the same FEEDER_AUDIT check. A contribution that cannot be
read back or bound is a 500 naming the contribution, and the recorded uid
stays. When you send the same Bundle again, the facade finds that uid,
commits nothing, reads the contribution back and binds from it, and answers
200 OK for each entry as for any re-sent Bundle. Each entry’s identity is
read from the composition the CDR stored at its version, on the first
delivery and on a retry alike, so a retry binds the id the first delivery
would have bound.
A single create shares that rule. When you POST a resource whose id and
meta.versionId a transaction committed and did not finish binding, the
facade reads the recorded contribution back, finds the version whose
FEEDER_AUDIT names the resource, binds it, commits nothing, and answers
200 OK with the composition the first delivery produced. The other versions
of that contribution belong to the transaction’s other entries and are passed
over.
A re-sent single create commits once
A single create (POST [base]/{type}) of a resource whose id the identity
map already consumed follows the same rule as a re-sent transaction, keyed by
the same resourceType, id and meta.versionId. FHIR R4 says nothing about
a repeated create with a client-assigned id, so these rules are FerroBRIDGE’s
own design.
- The same
idand the samemeta.versionId: the create is a replay. The facade commits nothing and answers200 OKwith theLocation, theETagand the body of the composition the first delivery produced, at the version it stands at now. A re-sent Bundle gets the same answer per entry. - The same
idand anothermeta.versionId: a changedmeta.versionIdmeans the sender changed the resource, so the create commits a later version of the composition the first delivery produced and answers200 OK. That is the update aPUTperforms, following the version the CDR holds now. - The same
idand nometa.versionId: the key has no version to compare, so the facade maps the resource and compares the result with the composition as the CDR holds it now. The comparison masks the same fields as the transaction path: the compositionuidand every time the engine filled from its clock. The same content is a replay, answered as above. Other content is the later version. - An
idthe map binds to more than one composition: the facade cannot tell which one the create revises, so it answers409 Conflictwith aconflictissue and commits nothing. Only a store written before 0.0.4 can hold such anid. Each of those compositions is a resource of its own, and the issue names every resource id (Condition/<id>, one per composition). Send the change as an update,PUT [base]/Condition/<id>with thatidin the body, to the resource it revises. The store keeps the split, so every later change of that source goes the same way.
A transaction entry follows the same lookup. An entry whose exact key the map
consumed, or a transaction committed, is recognised as above. An entry whose
id the map consumed at another meta.versionId commits a later version of
that composition inside the Bundle’s contribution: its UpdateVersion names
the composition’s latest version as preceding_version_uid and its audit
states a modification, beside the creations of the other entries. The entry
answers 200 OK in the transaction-response, keeps its resource id, and its
Location names the new version. The commit is recorded before the binding
and matched by FEEDER_AUDIT as for any entry, so a retry after a failed
binding reads the contribution back and commits nothing. An entry the map
binds to more than one composition, or to a composition in another EHR,
refuses the Bundle with 409, and two entries that revise one composition
refuse it with 422. PUT is unchanged.
Two deliveries of one source that overlap commit once. Before a delivery reads
the identity map, it claims the key of every entry it carries, and it holds
those claims until it answers, whether it commits, is refused, or fails. A
second delivery that finds any of its keys claimed commits nothing and answers
409 Conflict with an OperationOutcome whose duplicate issues name each
entry another delivery holds. The rule is the same for a transaction and for a
single create of a resource with an id, and a single create also claims the
resourceType and id alone, so two creates of one id at different
versions do not run at once. Retry after the first delivery has
answered: the retry is then recognised as a re-sent Bundle or resource, as
described above. The claims live in the server process, one set per identity
store, so they order deliveries that reach the same FerroBRIDGE instance.
On the OMOP side every CDM v5.4 primary key is a 32-bit integer, so ids come
from database sequences and a bridge-owned side table maps each source record
to its row. That table is what makes a re-run replace rather than duplicate,
and it keeps the openEHR identity in the *_source_value columns.
The FHIR scheme has a failure mode worth knowing before you run it: a re-sent Bundle that omits one resource reads as a different mapping. It is documented rather than hidden.
An HL7 v2 sender and receiver become MessageHeader endpoints
A FHIR R4 message Bundle opens with a MessageHeader
(https://hl7.org/fhir/R4/bundle.html#invs, bdl-12), whose
source.endpoint and destination.endpoint are required url values
(https://hl7.org/fhir/R4/messageheader.html). The v2-to-FHIR guide writes
MSH-3 (Sending Application) and MSH-5 (Receiving Application) there, and both
are HD values. FerroBRIDGE builds the endpoint from the HD in this order:
- When HD.3 (the universal ID type) is
ISO,UUID,DNSorURIand HD.2 (the universal ID) is valued, the endpoint is the form the guide’sHDendpoint map assigns:urn:oid:,urn:uuid:,urn:dns:orurn:uri:followed by HD.2. - Otherwise, or when that form is no valid
url, the endpoint is derived:urn:ferrobridge:hl7v2-hd:followed by HD.1 (the namespace ID), and, when HD.2 or HD.3 is valued,:HD.2:HD.3. Every byte outside the RFC 3986pcharset is percent-encoded, and so is:inside a component, soNorth Lab Appbecomesurn:ferrobridge:hl7v2-hd:North%20Lab%20App.
HD.1, when valued, is also written to source.name or destination.name, so
the application name stays readable. No specification governs the derived
form: it is FerroBRIDGE’s own design. The guide leaves an HD without a
typed universal ID to the implementer, a v2 application name often holds
spaces a url cannot carry, and the ferrobridge prefix marks the value as
derived so nobody reads it as an identifier the sender assigned. The same
HD always yields the same endpoint.
When MSH-3 and MSH-24 (Sending Network Address) are both empty and MSH-4
(Sending Facility) is valued, FerroBRIDGE builds source.endpoint and
source.name from the MSH-4 HD by the same two rules. The guide still
writes MSH-4 into MessageHeader.sender as an Organization, and that stays.
The destination side works the same way: with MSH-5 and MSH-25 (Receiving
Network Address) empty, MSH-6 (Receiving Facility) gives
destination.endpoint and destination.name. Each fallback is counted as a
facility-endpoint outcome naming the facility field and the element it
filled. The guide’s MSH-3 and MSH-24 rows leave a message valuing neither to
the implementer, so the fallback is FerroBRIDGE’s own design.
A message that names its sender in none of MSH-3, MSH-24 and MSH-4 is
mapped. The guide’s MSH-24 row writes the data-absent-reason extension with
the code unknown into source.endpoint for it, and FHIR R4 JSON carries a
primitive with an extension and no value as the _endpoint property alone
(https://hl7.org/fhir/R4/json.html#primitive), which satisfies the required
endpoint. When MSH-4 is valued, its endpoint replaces the extension as above.
A run that still completes no MessageHeader is refused with an error naming
the element it lacks, so no header-less message Bundle is ever produced. A
message valuing MSH-24 is one: the guide’s row into source has two
qualified HD data type maps and no single one to run.
Version mismatch is refused at load time
The mapping version, the grammar version, the archetype revision, the template
sem_ver, and the profile version all have to agree. A mismatch is refused when
the mapping loads, not when a request arrives, so a bad configuration cannot sit
waiting for the first patient record to expose it.
Programmed mappings are compiled in
mappingCode in FHIRconnect and CustomMapping in OMOCL name a function.
FerroBRIDGE registers those as named Rust functions at build time. There is no
runtime plugin loading, so what a deployment can execute is fixed by the binary
you audited.
The usage report
ferrobridge serve sends a small JSON report to FerroPULSE, a collector that
Cadasto B.V. runs for every FerroHEALTH product. It goes out at each process
start and once a day. It says that the server is alive, which version it
runs, which lanes it serves, whether its upstreams answer, and how fast it
answers, in coarse aggregates. The report is on by default. Every boot logs
one INFO line that says whether it is on and how to switch it off.
This page lists every field the report carries, says when it is sent, gives the switch, and carries the privacy notice for the data the collector stores. The wire format is FerroPULSE’s report envelope v2; no FHIR, openEHR or OMOP specification governs any of it, and the report is FerroBRIDGE’s own design.
- When a report is sent
- What a report contains
- What a report never contains
- Switch it off
- Network
- Privacy notice
When a report is sent
There are two kinds of report, and both are one HTTPS POST to
https://report.ferropulse.eu/v1/report with a JSON body of at most 64 KiB.
start: at eachservestart, once the lanes have started (after the CDR answered, when a lane needs it). A server sends at most one start report per ten minutes: the time of the last one is kept in the state directory, so a container in a restart loop sends one start report per ten minutes, not one per restart.daily: the first attempt 10 minutes after the start report, then about every 24 hours (23.5 to 24.5 hours after the previous one, spread at random). It covers the requests since the previous daily report of the same process, or since the lanes started.
The jobs cdm init, etl run, mapping check and vocab load send nothing.
The report needs a state directory, [usage_report] state_dir
(FERROBRIDGE__USAGE_REPORT__STATE_DIR), where the server keeps the instance
id. Without one, or with one it cannot write, the server sends nothing:
without a stable id each restart would count as a new installation. The
compose file is the one deployment that turns it on: it mounts the named
volume ferrobridge-state at /home/nonroot, the image’s home directory,
which the runtime user (uid 65532) owns, and sets
FERROBRIDGE__USAGE_REPORT__STATE_DIR=/home/nonroot/state. The container
image sets no state directory, so a plain docker run or a Kubernetes pod
sends nothing until you mount a writable volume and point the key at it:
docker run -v ferrobridge-state:/home/nonroot \
-e FERROBRIDGE__USAGE_REPORT__STATE_DIR=/home/nonroot/state \
ghcr.io/ferrohealth/ferrobridge:<version>
A bind mount needs a host directory that uid 65532 can write.
The boot line, with the report on, reads:
usage report ON: instance id, version, licence type, deployment, uptime, host size, enabled lanes, mapping counts as ranges, upstream health and coarse request latency per route group, at each start and once a day; no clinical content, identifiers, mapping names, URLs or request paths. Off: FERROBRIDGE__USAGE_REPORT__ENABLED=false. Details: https://ferrobridge.eu/docs/operate/usage-report.html
It carries the configured endpoint as the structured field endpoint. With
the report off, the line says why, for example:
usage report OFF: switched off (FERROBRIDGE__USAGE_REPORT__ENABLED=false); nothing is sent. Details: https://ferrobridge.eu/docs/operate/usage-report.html
usage report OFF: CI detected (GITHUB_ACTIONS); nothing is sent. Details: https://ferrobridge.eu/docs/operate/usage-report.html
usage report OFF: no state directory (FERROBRIDGE__USAGE_REPORT__STATE_DIR is unset), and without a stable instance id each restart would count as a new installation; nothing is sent. On: mount a writable volume and set FERROBRIDGE__USAGE_REPORT__STATE_DIR to it. Details: https://ferrobridge.eu/docs/operate/usage-report.html
What a report contains
Every report carries these fields:
| Field | Sent in | What it is |
|---|---|---|
schema | both | Always 2, the version of the report format. |
event | both | start or daily. |
first_start | start | true when this start created the instance id, which marks a new installation; false on every later start. |
product | both | Always ferrobridge. |
instance_id | both | A random UUID (version 4), created at the first start and stored in <state_dir>/instance-id. It is not derived from the host or anything else about the deployment. |
version | both | The server version, for example 0.0.7. |
git_sha | both | The commit the binary was built from, 7 to 40 hex digits. A build outside a git checkout sends 0000000. |
licence | both | The licence grant type, non-commercial (what the Business Source License grants everyone). |
deployment | both | How the server was deployed: helm, compose, binary or unknown, from [usage_report] deployment, which the compose file sets to compose. |
uptime_s | both | Seconds since this process started. |
cpu_bucket | both | The CPUs available to the process, as a range: 1-2, 3-4, 5-8, 9-16 or 17+. |
memory_bucket | both | The memory available to the process in GiB, the smaller of the host’s memory and the container limit, as a range: <4, 4-8, 8-16, 16-32 or 32+. Off Linux the server cannot read it and sends <4. |
status | both | The state facts below. |
metrics | daily | The performance aggregates below. |
The status object. A member for a lane or an upstream the deployment does
not configure is left out.
| Member | What it is |
|---|---|
lanes | The lanes the configuration switches on, sorted: etl, facade, hl7v2, operations, terminology. etl means an [etl] section is present; serve never runs it. |
auth | Whether the FHIR routes check a bearer token ([auth] enabled). |
facade_mappings | The programs the FHIR facade compiled, as a range: 0, 1-10, 11-50, 51-200 or 201+. Never a mapping name, a template id or a resource type. |
operations_mappings | The programs the FHIRconnect operations compiled, as the same ranges. |
cdr_ok | Whether the openEHR CDR answered its readiness check when the report was built. |
terminology_ok | Whether the terminology server answered its readiness check. |
cdm_ok | Whether the OMOP CDM database answered its readiness check. |
identity_store_ok | Whether the facade’s identity store answered its readiness check. |
hl7v2_listener_ok | Whether the HL7 v2 listener accepts connections. |
The health members run the same checks as GET /health/readiness, so a
report reads what a readiness probe would have read at that moment.
A start report, formatted here for reading (the server sends it on one line):
{
"schema": 2,
"event": "start",
"first_start": true,
"product": "ferrobridge",
"instance_id": "5f0c6b2e-3d4a-4c8b-9e1f-2a3b4c5d6e7f",
"version": "0.0.7",
"git_sha": "1a2b3c4d",
"licence": "non-commercial",
"deployment": "compose",
"uptime_s": 4,
"cpu_bucket": "3-4",
"memory_bucket": "8-16",
"status": {
"lanes": ["facade", "operations", "terminology"],
"auth": true,
"facade_mappings": "11-50",
"operations_mappings": "1-10",
"cdr_ok": true,
"terminology_ok": true,
"identity_store_ok": true
}
}
The daily metrics
The daily report adds one object that covers the window since the previous daily report:
"metrics": {
"window_24h": {
"requests_bucket": "1k-10k",
"groups": {
"facade_read": {
"p50_ms": 18.2, "p95_ms": 61.0, "p99_ms": 140.5,
"errors_5xx": 0,
"histogram": [0, 40, 900, 1500, 300, 60, 5, 1, 0, 0, 0]
}
},
"counters": {
"responses_4xx": 12,
"hl7v2_aa": 0, "hl7v2_ae": 0, "hl7v2_ar": 0,
"mapping_failures": 3
}
}
}
-
requests_bucket: the number of counted HTTP requests and HL7 v2 messages in the window, as a range:0,1-100,100-1k,1k-10k,10k-100kor100k+. Each range includes its lower bound and excludes its upper one, so1-100means 1 to 99. The health probes (/health/liveness,/health/readiness,/health/info) and the root document/are not counted. -
groups: one entry per group of requests that saw at least one in the window. A request is placed in a group by the route template it matched, never by the path or the parameters the client sent:Group Routes Direction facade_readGET /fhir/{type}/{id},GET /fhir/{type}/{id}/_history/{vid}openEHR to FHIR facade_searchGET /fhir/{type},POST /fhir/{type}/_searchopenEHR to FHIR facade_writePOST /fhir/{type},PUT /fhir/{type}/{id}FHIR to openEHR facade_transactionPOST /fhirFHIR to openEHR facade_validatePOST /fhir/{type}/$validatefacade_metadataGET /fhir/metadataoperations_to_fhirPOST /fhir/$tofhir,POST /fhir/tofhiropenEHR to FHIR operations_to_openehrPOST /fhir/$toopenehr,POST /fhir/toopenehrFHIR to openEHR otherevery other route, and a request no route matched hl7v2_messagea message on the HL7 v2 listener, timed from its frame to its acknowledgment HL7 v2 to openEHR -
p50_ms,p95_ms,p99_ms: the median, 95th and 99th percentile latency of the group in milliseconds, estimated from its histogram. -
errors_5xx: the responses with a 5xx status. An HL7 v2 message has no HTTP status, sohl7v2_messagealways carries 0; its outcomes are the acknowledgment counters. -
histogram: 11 request counts, one per latency bucket. The bucket upper bounds in milliseconds are 5, 10, 25, 50, 100, 250, 500, 1000, 2500, 5000, and no bound for the last. -
counters: each counter that counted something in the window; a counter that stayed at 0 is left out.responses_4xx: the responses with a 4xx status over every counted group.hl7v2_aa,hl7v2_ae,hl7v2_ar: the acknowledgments the HL7 v2 face sent with each code (HL7 table 0008).hl7v2_aralso counts theARanswered to a frame the listener could not read, which is no message and is not timed inhl7v2_message.mapping_failures: each resource or composition a FHIRconnect program refused to map, on a facade write or transaction, on a facade read, version read or search (openEHR to FHIR), on the HL7 v2 face’s ingest and on a$tofhiror$toopenehrcall. A refusal the engine returns because a terminology server did not translate aconceptmapcode is counted too. A request refused before any program ran (a body in the wrong media type, a resource no program maps, a CDR that refused the commit) is not.events_published: each message the events lane published and the broker confirmed, one per changed version of a commit event.
What a report never contains
A report carries no patient data, no resource, composition or message
content, no code or display text, no identifier other than the instance id
(no ehr_id, subject id or FHIR resource id), no mapping file name, mapping
text or template id, no request path or parameter, no CDR, terminology or
database URL or host, no error message, no user name, no client IP address,
no host name and no customer or staff name. The report types in the server
have no field that could hold any of these, and the collector refuses a
report with a value that is not a boolean, a number or a short lower-case
token.
The collector does record the IP address the report arrives from. See What the collector stores.
Switch it off
FERROBRIDGE__USAGE_REPORT__ENABLED=false
or, in the configuration file:
[usage_report]
enabled = false
The compose file forwards this variable from your shell, so
FERROBRIDGE__USAGE_REPORT__ENABLED=false docker compose up switches the
report off there too. In a CI job the report is off by itself: when
GITHUB_ACTIONS or CI is true or 1, the server sends nothing, and
enabled = true does not change that. A container does not inherit the
runner’s environment, so a test lane that starts the image passes
--env FERROBRIDGE__USAGE_REPORT__ENABLED=false; the guard
scripts/checks/usage-report-off.sh fails a launcher in this repository that
does not.
With the report off, the server sends nothing to FerroPULSE and writes nothing
to the state directory, and the boot line says usage report OFF. Nothing
else in the server changes. Switching it off stops new reports only. Reports
already stored at the collector stay until the retention period ends, unless
you ask for them to be erased.
Network
- Destination: outbound HTTPS to
report.ferropulse.eu, port 443.[usage_report] endpointmoves it; the server refuses to start on an endpoint that is plain HTTP (except to a loopback host) or that carries credentials. - One direction only: the server reads the status code of the answer and nothing else. It does not follow redirects, and nothing the collector answers changes the server’s configuration or behaviour.
- Failures stay local: a send gives up after 5 seconds without a connection or 10 seconds in total. A failure is logged at DEBUG, and a refusal by the collector at WARN. Boot, readiness and request handling never wait on the report, so a slow or unreachable collector affects none of them. A daily report that does not reach the collector is tried again an hour later with the same window; one the collector answered, even with a refusal, is not resent.
Privacy notice
This section gives the information that Articles 13 and 14 of the GDPR list, for the personal data a report and its stored record can contain. A report names no person. It can still relate to one: the collector stores the address each report comes from, and a server run by one person on their own internet connection can be linked to that person through the address or through the instance id. Where that is so, the report is personal data, and this notice applies to it. The collector is not anonymous.
Controller
Cadasto B.V., the Netherlands. Write to info@cadasto.com or use https://www.cadasto.com/contact/. Cadasto has not appointed a data protection officer.
Purposes and lawful basis
Cadasto processes the reports for three purposes:
- to know which FerroBRIDGE versions run in the field, so it can tell how many installations a security release concerns and whether they upgrade;
- to know which lanes the installations run;
- to see how the routes perform in real use, so it can find and fix slow paths.
The lawful basis is Art. 6(1)(f) GDPR, legitimate interest. The interest is Cadasto’s, as the maker of FerroBRIDGE: keeping the product it publishes secure and maintained, which needs the versions in use and the reach of each security release, and improving it, which needs the lane mix and field performance. The data come from the FerroBRIDGE server itself. You are not obliged to send them: the report can be switched off, and switching it off changes nothing else in FerroBRIDGE.
What the collector stores
- Every report as it arrives, with the fields listed above.
- With each report: the time of receipt, the UTC day, the source IP address (IPv4 or IPv6), and the country derived from that address.
- Per instance id: when it was last seen, its current version, and whether it is alive.
- Per day: latency totals summed across the whole fleet, without instance ids.
The country comes from an IP-to-country database bundled with the collector, so no address leaves the collector host for the lookup. IP geolocation by DB-IP, licensed CC BY 4.0. Reports from the address ranges of GitHub-hosted CI runners are marked as such and left out of every dashboard.
Recipients and location
Hetzner Online GmbH (Gunzenhausen, Germany) hosts the collector in its cloud and processes the reports as Cadasto’s processor, under a data processing agreement (Art. 28 GDPR). The collector runs in Hetzner’s data centre in Falkenstein, Germany. The FerroPULSE dashboard that shows the reports sits behind a GitHub login with no public or anonymous access; only members of the FerroHEALTH organisation can sign in.
Retention
A daily job deletes reports and start reports 13 months after they were received, an instance record 13 months after the instance was last seen, and the fleet-wide daily totals 13 months after their day. Backups of the collector’s database are kept for 14 days, so a deleted report can remain in a backup for at most 14 days more.
Your right to object
You have the right to object at any time, on grounds relating to your particular situation, to the processing of reports that are personal data concerning you (Art. 21(1) GDPR).
To stop future reports, switch the report off as described in Switch it off. No request to anyone is needed.
To have the reports already stored erased, write to info@cadasto.com with the instance id, which the server keeps in
<state_dir>/instance-id. Under the compose file it sits on theferrobridge-statevolume:docker run --rm -v <project>_ferrobridge-state:/s busybox cat /s/state/instance-idprints it. Cadasto then deletes every report, start report and instance record stored for that instance id, source addresses included (Art. 17(1)(c) GDPR). Switch the report off first, or the next report starts a new record.The fleet-wide daily totals hold no instance ids, so an erased instance’s share in days already summed stays in those totals.
Your other rights
At the same address you can ask for access to the reports stored for your instance id (Art. 15), for their rectification (Art. 16) or erasure (Art. 17), or for restriction of their processing (Art. 18). You have the right to lodge a complaint with a supervisory authority, in particular in the Member State of your habitual residence, place of work or place of the alleged infringement (Art. 77).
Version lines and releases
FerroBRIDGE publishes two things, and they carry two version numbers that move independently. Reading a release note or a crate version means knowing which line you are looking at.
The product line
The product is the ferrobridge binary, its container image, and the
repository as a whole. Its version is the workspace version in the root
Cargo.toml, which every member inherits, and it is what a vX.Y.Z git tag
names. A release is cut from that tag: the lane takes its notes from the
matching CHANGELOG.md section, publishes the release, and the same number
appears in CITATION.cff and in the product row of
docs/VERSIONS.md.
The milestone line is 0.0.x today, so the first product version is 0.0.1.
Where to read it:
| You want | Read |
|---|---|
| the version a binary reports | ferrobridge --version |
| the version a release ships | the vX.Y.Z release on GitHub, and its changelog section |
| the version the source tree declares | the root Cargo.toml [workspace.package] version |
The crate line
The library crates are published on crates.io under plain names so other Rust
projects can depend on them: fhir-types, hl7v2-types,
openehr-mapping-core, fhirconnect, omocl, omop-cdm,
ferrobridge-operator-api, ferrobridge-term, ferrobridge-hl7v2,
ferrobridge-fhirpath, ferrobridge-validator and eehrxf. Each carries the
version in its own
crates/*/Cargo.toml, and that number never adopts the product version or a
specification version.
The set is deliberately not lockstep. Nine members carry a real 0.1.x line:
fhir-types continues the sequence it had on crates.io before it moved here
from the sibling terminology server, and hl7v2-types,
openehr-mapping-core, fhirconnect, ferrobridge-term,
ferrobridge-hl7v2, ferrobridge-fhirpath, ferrobridge-validator and
eehrxf joined it on their first publish. Every other member still sits
at the 0.0.0 placeholder that holds its name on the registry until its
first real release. A 0.0.0 on crates.io is a name reservation and nothing
else: it compiles, it carries the licence and the metadata, and it is not the
crate you want to depend on yet.
Where to read it:
| You want | Read |
|---|---|
| the version a crate publishes | the crate’s page on crates.io, or cargo add <crate> |
| the version the source tree declares | that member’s crates/*/Cargo.toml version |
the line fhir-types is on | the crate-line row of docs/VERSIONS.md |
Why they are separate
A published crates.io version is immutable: the bytes under fhir-types 0.1.2
are the bytes under fhir-types 0.1.2 forever. So a crate has to move its
version whenever its packaged content changes, which happens far more often
than a release is cut, and far more often for one member than for another.
Tying either number to the other would force a product release for a crate fix,
or a crate republish for a release with no library change.
Not every bumped crate version is published, so gaps in the published sequence are normal. Publishing different content under an existing version is the one thing that is forbidden, and crates.io refuses it.
The rule that keeps a crate version honest, and the guard that enforces it, are on the crate versions page.
Licences
Every published member is BUSL-1.1 except the two generated crates, which are
Apache-2.0: fhir-types, generated from the HL7 FHIR packages, and
hl7v2-types, generated from the HL7 v2 definitions, so both are usable by
any Rust project. The licensing page carries the terms.
Releases
FerroBRIDGE ships on the 0.0.x line. A milestone on the tracker is a release: it holds one theme, and the release is cut when the milestone has no open issue left. This page lists what each release shipped. The changelog has every change of every release, and Version lines and releases says how the product and the crates are numbered.
Released
| Release | Date | What it shipped |
|---|---|---|
| v0.0.1 | 2026-09-05 | The release lane, the brand assets and the working discipline. |
| v0.0.2 | 2026-09-13 | The foundation: the Cargo workspace, fhir-types and its generator moved in from the sibling terminology server, the generated OMOP CDM v5.4 layer, openehr-mapping-core, the ITS-REST and terminology clients, the ferrobridge binary, the container image and the release lane with its crates.io leg. |
| v0.0.3 | 2026-09-25 | The FHIR round trip: the fhirconnect crate, the $tofhir and $toopenehr operations, the FHIR R4 facade and its identity store. |
| v0.0.4 | 2026-09-26 | The OMOP round trip: the omocl crate, the concept resolver, cdm init and etl run; the conformance gate and its badges; and the HL7 v2 face. |
| v0.0.5 | 2026-10-01 | The repository’s move to the FerroHEALTH organization, with the image at ghcr.io/ferrohealth/ferrobridge. |
| v0.0.6 | 2026-10-17 | FHIR STU3 beside R4 to R6; the FHIRPath evaluator with UCUM; the profile validator’s foundation, slicing, bindings, bundles and invariants; FHIR search over AQL projections; SMART App Launch on the facade and OAuth toward the CDR; the OMOP PERSON rows and the deletion check. |
| v0.0.7 | 2026-10-17 | Facade hardening: search answers the entry that matched, every error answers an OperationOutcome, and the identity store gains its repair paths. |
| v0.0.8 | 2026-10-18 | The operator console and its image, the operator API and ferrobridge mapping check; and most of the profile validator work planned for v0.0.9: the agreement corpus against the HL7 FHIR Validator, and the extension context and reference versioning checks. |
| v0.0.9 | 2026-10-19 | The profile validator finished: STU3 profiles validating STU3 resources over the release-neutral definition read, and the validator, terminology client and FHIRPath crates on the crate line at 0.1.126. FHIRconnect sub-contexts, and the openEHR RM pinned to Release 1.1.0. And the first of the openEHR demographics work planned for v0.0.10: the Demographic API behind [cdr] demographic, the configured patient-to-EHR link, and demographic references resolved on the way into openEHR. |
| v0.0.10 | 2026-10-19 | openEHR demographics: FHIRconnect party contexts that build a PERSON, ORGANISATION or ROLE, and Patient, Practitioner, PractitionerRole and Organization on the facade over the Demographic API, searched by identifier and name through the Cadasto AQL demographic extension. Clinical searches chained through the patient identifier, a created Patient given its EHR, OAuth 2.0 client credentials toward the terminology server, and the static bearer token removed. |
| v0.0.11 | 2026-10-24 | The operator console rebuilt on FerroUI 0.3.6 and renamed ferrobridge-console. Release images scanned before they are tagged, a vulnerability record with every finding judged, the support period and the CRA user information in the notes. The last mappingCode functions of the published FHIRconnect library, display resolution, NULL_FLAVOUR, the EVENT choice and the quantity, temporal, URI, string and interval data-type pairs. |
| v0.0.12 | 2026-10-25 | FHIRconnect and facade outcomes: a write shows the client the losses its mapping declared, a transaction names why it refuses a linked resource, the operations answer 502 on a failed terminology server, a DV_TEXT display looked up through $lookup, a direct data-type pair over the text fallback, the DV_ORDINAL options of a template node, and the XML narrative div held to XHTML. The terminology client gains $expand, $subsumes, the date input, mutual TLS and context-aware $validate-code. |
| v0.0.13 | 2026-10-25 | Security and OMOP breadth: the authenticated caller stated as the committer of every facade write, and token introspection. FHIR R4 into the CDM with no CDR through etl fhir, every row naming its resource, the Athena vocabulary loader, the OMOCL DEATH, provider and visit detail targets, pseudonymised identifiers with a per-person date shift, and the Data Quality Dashboard’s conformance, completeness and temporal plausibility checks in Rust behind dq check. FHIRconnect DV_ORDINAL and ACTION.time, and the first HL7 Europe profile contexts. |
| v0.0.14 | 2026-10-29 | The EU profile targets: round trips of the HL7 Europe Base and Core medicalTestResult-eu-core, the Laboratory Report Composition-eu-lab and the Medication Prescription and Dispense profiles, and Composition/$document on the facade. The eehrxf interoperability component taken in from FerroFED and checked with HL7’s FHIR Validator. The server and the console on the FerroSYS crates, with config check, healthcheck and GET /operator/readiness. One deterministic resource id on the facade and $tofhir, and RFC 9457 problem details read from the CDR and answered outside the FHIR routes. |
| v0.0.15 | 2026-11-02 | The change feed: the change-feed adapter over a vendor-neutral AQL source for any CDR and FerroEHR’s outbox cursor feed, AMQP broker publishing that takes over from FerroEHR 5.6.0’s removed publisher with the same routing keys, several consumers with a dead-letter store and replay, the console’s Events page, and the incremental OMOP load. The run report and the Data Quality Dashboard checks closed, and the facade’s access-record decision recorded in the architecture. |
| v0.0.16 | 2026-11-03 | Console breadth: mapping-set revisions with history, diff, rollback and ZIP export and import, a synthetic example composition per template in the playground, the OMOP ETL run history, the HL7 v2 ConceptMap directory, and sign-in through ferrohealth-session with a session watch. The outbound FHIR lane over the change feed, the EHDS Annex II 3.2 access record of every facade access sent as IHE BALP AuditEvents, and the eehrxf openEHR mappings of prescriptions, dispensations and laboratory reports. |
| v0.0.17 | 2026-11-04 | The interoperability component: the patient summary’s medication summary fed from medication orders and its immunisations from the vaccination list section, each placed by its template section, the prescription and dispense collections named by fullUrl and checked with HL7’s FHIR Validator, and every document coding written with its display. $tofhir maps no resource from a composition without the start archetype, the operator console on FerroUI 0.6.6 with a revision’s changes as a line diff, and the model layer of FHIRconnect and OMOCL moved into openehr-mapping-core. |
| v0.0.18 | 2026-11-04 | The close of the one-owner reshape: a FHIRconnect manual entry records the reads of the FHIR elements it writes into openEHR, the eehrxf imaging and discharge codings carry the displays of the HL7 Europe EU Health Data API package, one named context of an eehrxf mapping project compiles alone, and the operator console runs on ferrohealth-session 0.2.2 with a client certificate toward its provider. |
| v0.0.19 | 2026-11-04 | Family upkeep: the server and the operator console on ferrohealth-config 0.2.8, ferrohealth-server 0.4.3 and ferrohealth-telemetry 0.2.4, both binaries on the FerroSYS run path, and the FerroHEALTH family crates moved together by one daily Dependabot group. The eehrxf EPS project lists its immunisations context beside the medication summary. |
| v0.0.20 | 2026-11-05 | Toward the FHIRconnect mapping library: a composition model starts a context compiled against an ADL 2 operational template through the lineage of its root, a slotArchetype may name a model already on its slot chain, and the eehrxf laboratory project lists its composition context beside the laboratory result. |
| v0.0.21 | 2026-11-05 | Correctness on the way to the FHIRconnect mapping library: a template over a specialised ADL 1.4 composition archetype carries one context, and the compiler refuses at load a mapping whose types no data-type page pairs and a reference into an untyped choice, which failed only on their first run before. |
| v0.0.22 | 2026-11-06 | Callers by kind: the bridge on ferrohealth-smart 0.9.0, every trusted issuer an [[auth.issuer]] table with its kind and profile, Basic credentials for people only, each facade request reaching the CDR under a token exchanged for its caller, and ferrobridge-term released on the new token types. The eehrxf discharge and imaging reports mapped between openEHR and HL7 Europe and received, documents held to their profiles’ section rules, and a validator that holds a dependency of another FHIR release. |
| v0.0.23 | 2026-11-10 | The request under its person and the family endpoint: onward issuers by kind, the committer derived from the exchanged token and a machine caller named as the originating system, party writes under a binding key refused, and every outbound lane ([cdr], [terminology], [audit], [fhir_outbound]) one endpoint table with its TLS on the FerroHEALTH family crates, with OpenTelemetry export. The HL7 v2 face over MLLP with TLS and client certificates, its compositions naming facility, clinician and FEEDER_AUDIT, the v2-to-FHIR maps generated into ferrobridge-hl7v2 with a message writer and the inverse of a Patient as a PID, ferrobridge-term on FHIR R5 and R6 with per-release features, and the fhir-search crate. |
| v0.0.24 | 2026-11-11 | The family on ferrohealth-smart 0.18, with no issuer or console sign-in password in any configuration output, and the EU documents: a document names its custodian, the imaging and discharge projects declare what they do not carry, the imaging report carries its performing organization and names its studies, and fhirconnect writes one alternative of a choice element and unfolds a recursive slot as deep as the template does. HL7 v2 answers AE for a refused contribution and names its facility and composer by issuer, and the quickstart compose.yaml carries its checksum. |
| v0.0.26 | 2026-11-16 | The SMART discovery document described by the family’s shared rule, on ferrohealth-smart 0.28. The discovery document and the facade’s CapabilityStatement no longer name the first [[auth.issuer]] table: [auth] described_issuer names the issuer, and without it the bridge describes its one user-launch issuer, or, when it trusts only machines issuers, its one machines issuer for SMART Backend Services alone. The crates move to smart 0.28 with ferrobridge-term and ferrobridge-validator 0.12.0, ferrobridge-hl7v2 0.17.0 and eehrxf 0.15.0, and the server to ihe-atna and ehds-logging 0.22.0. Each breaking change below names what an operator or a crate user changes. |
| v0.0.27 | 2026-11-17 | Browser apps and FerroSMART. The facade answers CORS: the SMART discovery document and the CapabilityStatement for any origin, the REST routes for the origins [facade.cors] allowed_origins lists. The bridge runs behind FerroSMART under the ferrosmart issuer preset of ferrohealth-smart 0.29.1, which also refuses two [[auth.issuer]] tables naming one issuer. A party context loads over an id-coded ADL 2 template such as FerroEHR’s professional PERSON, and a plain DV_IDENTIFIER.type reads as a coding code instead of failing the read. The crates move to openehr-mapping-core 0.4.0, fhirconnect 0.5.1, ferrobridge-term and ferrobridge-validator 0.13.0, ferrobridge-hl7v2 0.19.0 and eehrxf 0.17.0, and the server to ihe-atna and ehds-logging 0.23.0 and ferrohealth-session 0.24.0. Each breaking change below names what an operator or a crate user changes. |
| v0.0.28 | 2026-11-22 | SMART breadth and the committer the CDR writes. The facade serves SMART App State and SMART launch Tasks, reads a FerroSMART patient’s own token as the person’s own access, and takes ferrohealth-smart 0.33 with its named issuer tables, a breaking change to [auth]. A facade write no longer fails against a CDR that writes the committer itself: a single write states no committer, and a transaction names the party the CDR authenticated, a Basic user under the new [cdr] committer_issuer. The CDM database runs on PostgreSQL 19, the HL7 v2 face asks every translation of a message in one batch, and the workspace takes url 2.5.9 for RUSTSEC-2026-0592. The crates move to openehr-mapping-core 0.5.0, fhirconnect 0.7.0, ferrobridge-term and ferrobridge-validator 0.17.1, ferrobridge-hl7v2 0.25.1 and eehrxf 0.23.1. |
| v0.0.25 | 2026-11-16 | The family on ferrohealth-smart 0.26 and ferrohealth-server 0.10, and access directives exchanged as FHIR Consent. The bridge and its crates move across the smart lines 0.19 to 0.26 to one smart, one server and one telemetry in the lock: ferrobridge-term and ferrobridge-validator 0.11.0, ferrobridge-hl7v2 0.16.0 and eehrxf 0.14.0. A Basic user’s scopes and roles move into [basic_grants], and the server now always bounds the requests it serves at once, 256 by default. The facade exchanges a patient’s openEHR access directives as FHIR Consent, IHE BPPC and IHE APPC behind [facade.consent], on the openehr-* crates 0.2. The HL7 v2 face accepts plain MLLP from a declared device network, and fhirconnect reads an event the template collapsed into its observation as that event. Each breaking change below names what an operator or a crate user changes. |
How correctness is measured
The published FHIRconnect and OMOCL mapping libraries are vendored verbatim by committed fetch scripts with provenance and run as conformance corpora, beside the HL7 FHIR examples packages per version, the HL7 FHIRPath test suite, the HL7 v2 message sets, the R4 facade, and the profile validator’s agreement with the HL7 FHIR Validator. Each corpus keeps a pass list, and a case that stops passing fails CI. Checks and gates describes each corpus and what a passing case means.
What is outside the design on purpose
FHIR Subscriptions, which FHIRconnect never mentions; a materialised FHIR store, which would contradict the facade decision; and OMOP CDM versions other than 5.4. Each one is a tracker issue, so you can read the reasoning and argue with it.
The milestones are the roadmap, and the open issues the worklist behind it.
How the work is organised
The tracker is GitHub Issues, and the open issue list is the worklist. There is no separate plan document, because a plan document rots and an issue does not. This page tells you how to find work, how a change travels, and what a contribution needs to carry.
The loop
- Read the open issues. Each one opens with a plain summary, then an acceptance-criteria checklist, and sometimes a task list.
- Pick one that no open issue blocks. Blocked issues carry a dependency edge, so you can see the blocker before you start.
- Read the governing specification section first. FHIR, FHIRconnect, OMOP CDM, OMOCL, and openEHR ITS-REST are the authority, in that order of relevance to the change at hand.
- Work on a branch named
<type>/<slug>, with the type from the conventional commit set:feat,fix,chore,docs,refactor,perf,test,ci,build, orrelease. - Open a pull request whose body declares
Closes #<n>, so the merge closes the issue.
Labels carry the type and the priority. Milestones carry the release, and a release is cut when its milestone has no open issue left.
What makes a change reviewable
- A specification citation for anything spec-facing. Name the document and the section. Memory is not a source, and neither is another implementation’s behaviour.
- An explicit flag where no specification governs the decision. Write it plainly: this is FerroBRIDGE’s own design. FHIR search, identity, failure policy, and extension ordering are all in that category.
- A changelog fragment for anything with a user-visible effect: one file,
changelog.d/<issue>-<kebab-slug>.<section>.md, holding the entry as a Keep a Changelog 1.1.0 list item. The release cut assembles the fragments intoCHANGELOG.md, so two pull requests never edit the same lines. - Tests that measure against the specification. Never adjust an expectation to match a bug, and never weaken or skip a test to get a build green.
What is most useful right now
Code against an open issue is welcome, and so is evidence. A specification citation that contradicts a decision on record, a measurement, or first-hand experience with FHIRconnect, OMOCL or an openEHR CDR in production can change what gets built next. A conformance case that fails is a good place to start: each failing case names its reason in the result the conformance gate reads.
Licence of contributions
Your contribution is licensed under the same Business Source License 1.1 that covers the project, and it grants the Licensor the relicensing right in CONTRIBUTING.md § Licensing of contributions. You keep your copyright; opening the pull request is your acceptance, and there is no separate agreement to sign.
The rules in full are in
CONTRIBUTING.md
and
CLAUDE.md.
Checks and gates
CI runs in two tiers. The first tier gates today, on a repository with no Rust
code: it covers the workflow files, the shell scripts, any Dockerfile, and the
committed guards. The second tier is the Rust set, written and gated behind a
job that looks for a root Cargo.toml, so it activates by itself when the
workspace lands. One conclusion job reads every result and is the single
required status check on main.
- Tier 1, running now
- Tier 2, gated on the workspace
- The end-to-end lane, and running it locally
- The conformance pass lists
- Vendored inputs and the build-time fetch
- The sqlx query metadata
- Workflow security rules
- Advisory analysers
- Building this book
Tier 1, running now
| Check | Command | What it protects |
|---|---|---|
| Workflow security | zizmor --min-severity=low .github/ | every uses: pinned to a commit SHA, no credential-persisting checkout, no context spliced into a shell, and the Dependabot cooldown window |
| Workflow correctness | actionlint | expressions that cannot evaluate, a needs: naming no job, unknown runner labels |
| Shell | shellcheck --severity=style over every tracked shell program | shellcheck’s lowest floor, so every finding gates |
| Containers | hadolint over every tracked Dockerfile (docker/Dockerfile, docker/console/Dockerfile) | container-recipe defects |
| Comment style | scripts/checks/comment-style.sh --all | line comments only, // TODO(#NNNN): naming its issue, // NOTE: as a citation plus one sentence |
| Version drift | scripts/checks/versions.sh | every file that repeats a pin agrees with docs/VERSIONS.md, and no first-party file claims a licence other than BUSL-1.1 |
| Favicon sync | scripts/checks/favicon-sync.sh | the book theme favicons stay byte-identical to the brand mark they are copies of |
| Usage report off in tests | scripts/checks/usage-report-off.sh | every launcher of the server in a script, a workflow or a Rust test sets FERROBRIDGE__USAGE_REPORT__ENABLED=false, so a CI runner never counts as an installation |
| The book | mdbook build website/book | a page that does not build fails the pull request |
Run the same commands locally before you push. A finding costs a local run rather than a CI round trip.
Tier 2, gated on the workspace
cargo fmt --all --check, cargo clippy --workspace --all-targets --all-features -- -D warnings, cargo nextest run --workspace --locked with
cargo test --doc --locked (CI runs both one package at a time through
cargo hack, so the generated giants never compile side by side on the
hosted runner), cargo doc under RUSTDOCFLAGS=-D warnings,
cargo deny check, an MSRV check, and dependency review on pull requests.
Every cargo lane runs --locked, so CI fails on lockfile drift rather than on
registry drift.
The end-to-end lane, and running it locally
One more job, e2e, starts real servers in containers: a PostgreSQL for the
OMOP CDM catalogue test and the reference openEHR CDR with its own database for
the ITS-REST client test. It is gated on the environment variable
FERROBRIDGE_E2E, and every container-backed test returns without touching
Docker unless that variable is 1, so your ordinary test run stays offline.
To run the lane yourself, start Docker and set the variable:
FERROBRIDGE_E2E=1 cargo nextest run --locked -p omop-cdm -p ferrobridge-server -p ferrobridge-term -p ferrobridge-testkit
The first run pulls the images, which are pinned by digest in
docs/VERSIONS.md; later runs start in a few seconds. Each test owns its
containers and stops them when it ends.
The conformance pass lists
Neither FHIRconnect nor OMOCL has an external conformance suite, so the corpus
tests are the instrument. Fifteen corpora are measured, and each keeps a
committed pass list under conformance/<corpus>/pass-list.txt: one passing
case id per line, then a total line with the corpus size. The HL7 v2
messages count twice: the vendored sets are the hl7v2 corpus and the sets
fetched at build time the hl7v2-smoke corpus. HL7’s examples package of each
FHIR version is fetched at build time too, and six corpora read it: one per
version through the fhir-types model (fhir-stu3, fhir-r4, fhir-r4b,
fhir-r5, fhir-r6) and the R4 package through the facade (fhir-r4-facade). HL7’s FHIRPath test suite for R4 counts twice: the tests that call a function FHIRPath 3.0.0 adds as STU are the fhirpath-r4-stu3 corpus, run with the evaluator’s opt-in, and every other test is the fhirpath-r4 corpus, run as N1 2.0.0. The R4 profile validator is held to the HL7 FHIR Validator 7.0.4 on a synthetic corpus as validator-agreement.
| Corpus | A case passes when |
|---|---|
| FHIRconnect mapping library | the file parses; it validates against the published schemas (modules/ROOT/attachments/, schema/schema.adoc) or is in the pinned rejection set; it validates against FerroBRIDGE’s strict schemas; it loads into the library set with no refusal naming it; and a program the suites compile against a template carrying its archetype reaches it (types-of-mapping-files/context-mappings.adoc) |
| OMOCL mapping library | the file parses, validates against the authored schema, passes the rules of one file, and loads into the library set with every Include resolved |
| FHIR round-trip laws | PutGet and GetPut both run on the chain and each declares exactly the set its reviewed snapshot pins |
| FHIRconnect REST API | the wire contract reads every in parameter and part the FSH operation definition declares, and the operation answers only the out parameters it declares, each min = 1 one present (rest-api.adoc) |
| HL7 v2 message corpora, HL7 v2 smoke corpora | the message is framed, decoded and parsed with no refusal, and the Bundle the map writes decodes as R4 and opens with its MessageHeader (bdl-12); an acknowledgment passes when it parses |
| FHIR STU3, FHIR R4, FHIR R4B, FHIR R5, FHIR R6 | the example decodes through the strict JSON codec of its version, re-encodes to the same document, and goes through the XML codec and back unchanged, compared as the lexical document model (members by name, numbers in their written text); a refusal or the first difference is the failure reason |
| FHIRPath R4 test suite, N1 and 3.0.0 STU functions | for a test expecting the expression refused (invalid), the expression fails to parse, fails the static check against the input’s resource type, or fails to evaluate; for any other test, the evaluation answers the expected outputs, in order unless the test says ordered="false" (HL7 tests-fhir-r4.xml; FHIRPath N1, and the functions FHIRPath 3.0.0 adds as STU for fhirpath-r4-stu3) |
| R4 profile validator, agreement with the HL7 FHIR Validator | the error and fatal findings of ferrobridge-validator on the synthetic case equal those the HL7 FHIR Validator 7.0.4 recorded for it, each compared as its location and its rule (an invariant key, a slice a slice cardinality names); a disagreement the owning test adjudicates against the specification is listed as failing with the adjudication as its reason. scripts/vendor/hl7-validator-agreement.sh regenerates the recorded outcomes |
| FHIR R4 facade | for each context that maps the example’s type (the suite’s and the KDS diagnosis project), the create answers 201 and the read 200; the read decodes as an R4 instance; no element the example carries comes back with another value (PutGet); and a second create and read of the answer gives it back unchanged. The identity, meta and the subject are the facade’s and leave the comparison. An example of a type no context maps is counted by type under set_aside in the result file, never a case |
A case the list records that no longer passes fails the corpus test itself, so
a regression fails CI. When your change makes a case pass, or the corpus
changes size, the conformance job fails until you record it:
scripts/checks/conformance.sh --update
Commit the rewritten lists and badges with the change. Without a flag the
script compares and reports without failing on new passes; --check is what
CI runs. When your change moves one corpus, name it after the flag
(scripts/checks/conformance.sh --update fhir-r4b): the script runs that
corpus’s test alone and rewrites only its list, its badge and the README
block. Naming either HL7 v2 corpus also runs the other one, because the family
and version badges count both. It needs cargo-nextest and jq. Never edit a list by hand, and
never remove a case from one to make CI green.
The badges and the README block
The script writes one shields.io endpoint badge per file under
conformance/badges/. A badge’s message is the passing and the total count
(68 / 120), and its colour follows the passing share: red under a quarter,
orange under a half, yellow under three quarters, green from three quarters,
and brightgreen when every case passes.
<corpus>.json: one per corpus, counted from its pass list.hl7v2-family-<family>.json: one per HL7 v2 message family with at least one case in either HL7 v2 corpus, ordered by family code, labelled with the family and counted over both corpora. A family the face maps none of shows red with its passing count at zero. The corpus test records each case’s family, MSH-9.1 or else the code before_in MSH-9.3, in the result file.hl7v2-version-<version>.json: one per MSH-12 version a case of either HL7 v2 corpus declares, labelledv2.5.1and so on.
The script also generates the README block between <!-- badges:begin -->
and <!-- badges:end --> from those files, in a fixed order, so never edit
it by hand: the build badges, a blank line, then one row per standard
(FHIRconnect 1.0.0 with the mapping library and the REST API, OMOCL
1.0.0, FHIR with the four model corpora, the round-trip laws and the R4
facade, and HL7 v2 with its two corpora, its
family badges and its version badges). Every badge links to its pass list,
and the family and version badges link to the hl7v2 list. --update
rewrites the block and removes a family or version badge no case counts any
more; --check fails when a badge file or the block disagrees with what
--update would write.
Vendored inputs and the build-time fetch
Every external corpus enters through a committed script under
scripts/vendor/, which reads its pin from docs/VERSIONS.md and writes a
PROVENANCE.md beside what it fetches. The HL7 FHIR packages, the v2-to-FHIR
implementation guide among them, go to tools/fhir-codegen/vendor/<package>/
through scripts/vendor/fhir-packages.sh, and the specification corpora go to
docs/specs/. scripts/checks/versions.sh reads every provenance file back
against its pin.
The FHIR examples packages are CC0, but at about 600 MB unpacked they would
more than double the committed FHIR packages, so
scripts/vendor/fhir-packages.sh --build-time fetches them into
tools/ferrobridge-testkit/vendor/<package>/package/, which .gitignore
refuses except for each committed PROVENANCE.md. The script checks the file
count and tree digest the pin records, keeps a tree already at both, and
--cache-key names the key CI restores them under. Run it before the FHIR
corpus tests; without the packages those tests say they skipped.
The FHIR profile packages the R4 profile validator reads (the HL7 Europe
guides and their dependency closure) are fetched the same way, by
scripts/vendor/profile-packages.sh, into
docs/specs/fhir-packages/<package>#<version>/package/. Run it before the
eehrxf, ferrobridge-validator and fhirconnect tests;
scripts/checks/fast.sh runs it for you when your change reaches one of them.
Without the packages every eehrxf test that validates a document fails and
names the script, so a run cannot pass without validating anything. To run the
rest of the suite locally without them, set FERROBRIDGE_SKIP_PROFILE_PACKAGES=1;
those tests then return early. CI ignores the variable.
scripts/vendor/profile-packages.sh
cargo nextest run --locked -p eehrxf --all-features
The HL7 v2 definitions are the one input whose terms do not permit
redistribution, so they are never committed. scripts/vendor/v2ig.sh fetches
them at build time into tools/fhir-codegen/vendor/hl7-v2ig/, which
.gitignore refuses except for its committed PROVENANCE.md. The script
checks the file count and tree digest the pin records on every run. Run it
before the codegen drift check, as the codegen-drift job does:
scripts/vendor/v2ig.sh
cargo run --locked -p fhir-codegen -- emit --check
To move the pin, change the commit in docs/VERSIONS.md, run
scripts/vendor/v2ig.sh --stamp, and copy the file count and digest it prints
into the same row.
The sqlx query metadata
omop-cdm checks its SQL at compile time from the metadata committed under
crates/omop-cdm/.sqlx/, and the sqlx-offline job fails when that metadata
is stale. After you change a query in omop-cdm, start Docker, install
sqlx-cli at the version docs/VERSIONS.md pins, and regenerate:
scripts/checks/sqlx-offline.sh
Commit the rewritten .sqlx/ files with the query change. With
DATABASE_URL set in your environment the sqlx macros connect to that
database instead of reading the metadata, so leave it unset for an ordinary
build.
Workflow security rules
Every workflow follows the same four rules, and the analysers above check them:
- Every
uses:is pinned to a full commit SHA with a trailing version comment. permissions: {}at workflow level, with the minimum granted per job.persist-credentials: falseon every checkout that does not push with git.- No
${{ }}interpolation inside arun:block; context travels throughenv:.
Advisory analysers
CodeQL scans the workflow files, because a workflow that holds a token is code. SonarQube Cloud runs a multi-language sweep over shell, YAML, and JSON. OpenSSF Scorecard scores the repository’s security posture. All three are advisory: they gate no merge, and a finding never outranks a specification citation or a project rule. A wrong finding is recorded on the tracker rather than suppressed quietly.
Building this book
$ cargo install mdbook mdbook-toc mdbook-mermaid
$ mdbook serve website/book
Use the versions pinned in docs/VERSIONS.md, which are the ones CI installs.
The site as GitHub Pages serves it, the landing page at the root and the book
under /docs/, is assembled by scripts/site/assemble.sh _site.
The performance gate
Every pull request that changes what the bridge is built from runs the
perf job, and so does every push to main and every release. The merge
queue does not run it: there the job passes at once and its summary says so,
since the pull request was judged and the push to main is judged again. The job fails
when the bridge does work while idle, or when the change makes it slower,
heavier or busier under load than its base, measured beside it on the same
runner. FerroPIX shipped an outbox sender that busy-looped at about 8,000
PostgreSQL transactions a second while idle, and nothing caught it before
release; this gate catches that shape. No specification governs it: it is
FerroBRIDGE’s own design over the family’s measuring tool,
ferrohealth-perf, in its A/B mode.
Why the base runs beside the head
GitHub’s hosted runners that report the same CPU model and memory differ by
25 to 45 % in latency and CPU per request, so a baseline stored on one
machine fails unchanged code on another. The gate builds the change, the
head, and its base, and measures both on one runner in one job, so the
difference between machines cancels. The base is the merge base of the
change with the pull request’s base (with the merge group’s, or with the
commit before a push), and on a release the previous release. A previous
release that carries no gate contract (neither perf/arm.env nor
scripts/perf/gate.sh) gives way to the oldest commit after it that carries
one, the nearest point both arms can be booted from. The build prints which
commit it chose and why, and the release notes’ performance line names it.
A manual dispatch of the Perf workflow on main with an empty base
resolves and measures the base the next release will take, so the base is
proven before the tag.
What runs
The perf workflow builds the release binary of the base and then of the
head, both in one tree under target/perf-build with its own toolchain pin
and one target directory. The tree starts as git archive of the base’s
commit; after the base is built, only the files the head changes are
rewritten, so cargo rebuilds for the head only the crates the change reaches
and the generated crates the two arms share build once. It installs
ferrohealth-perf at its pin in docs/VERSIONS.md and packs both binaries,
the base’s commit and the tool into the artifact perf-arms. Each attempt
job downloads it on its own runner, extracts the base’s tree again from its
commit, and runs scripts/perf/gate.sh run, so a retry measures the same
binaries and builds nothing:
- starts two FerroEHR CDRs, each with its own PostgreSQL, one RabbitMQ and
one FerroTERM over the v2-to-FHIR guide’s table ConceptMaps on loopback,
each at its pin in
docs/VERSIONS.md, and loads the testkit’s syntheticferrobridge.diagnoses.v1andferrobridge.diagnose.v1templates into each CDR; - starts each arm’s
ferrobridgein its own tree under that tree’s configuration contract: itsperf/ferrobridge.tomland theFERROBRIDGE__overrides of itsperf/arm.env, or, in a tree from before that file, the overrides its own copy of the gate set. A pull request that renames a configuration key changes both files for the head alone, and the base boots on the keys its binary reads; a base that still cannot start ends the run with exit 2, quoting its log. Each arm runs the FHIR facade over the facade tests’ mapping set, the HL7 v2 face over TLS through the face tests’ Observation context, and the change feed with its events lane following its CDR’s outbox; - creates one Condition through each facade, the record the read and the
search keep to; each CDR assigns its own composition uid, so each arm’s
Condition has its own id, which the gate hands to that arm as
READ_ID; - runs
ferrohealth-perf abwithperf/plan.toml, counting the transactions of each arm’s CDR database; - plants a poller of the head’s CDR database that never waits, and runs
the idle phase of
perf/busy-loop.tomlbeside it, which must fail on idle transactions.
The idle phase holds the head bridge to 2 % of one core, and its CDR’s
database to five transactions a second, for 60 seconds, while the HL7 v2
face and the events lane run with nothing to do; these are absolute limits.
Then four pairs of load phases run, each arm sending 20 arrivals a second for
60 seconds over the facade’s hot paths, the CapabilityStatement, a create,
a read and a search, and an ORU^R01 laboratory result over MLLP with TLS as
the PERFLAB sender, which the face must acknowledge AA. The two phases
of a pair run at once, the arrivals of one arm half an interval after the
other’s, so both arms meet the same runner at every moment. The bridges run
with [auth] enabled = false on the runner, so the requests carry no token.
Reading the report
The job’s summary names each breach by its metric, such as
idle.transactions_per_second or read.p95_ms, with the base, the head,
their ratio, the tolerance, the noise floor and in how many pairs the head
breached. A load metric fails when the head’s median over its phases is
worse than the base’s by more than the larger of the tolerance and the noise
floor, and the head breaches in most of the pairs. The tolerances are the
tool’s defaults: latency and CPU 25 %, throughput 20 %, memory 20 % and
transactions 10 %; a raise is a hand edit of perf/plan.toml in a pull
request that says why. The artifact perf-report-attempt-<n> holds the JSON
reports, every phase and each arm’s plan values included, and both bridges’
logs. Exit 1 is a breach. Exit 2 means the run cannot be judged: a generator
that lagged, a window that was not steady, a base that fell behind its
schedule, or a runner that stalled (every route’s p99 over ten times its p50
at once).
Some runners stall every route for a whole job: on an AMD EPYC 9V74 the
tails reach 100 to 300 ms while the p50 holds
(FerroPIX #511). An
attempt that ends with exit 2 runs again on a fresh runner on any CPU model,
since a run that cannot be judged says nothing about the code. An attempt
that ends with exit 1 runs again only on a CPU model the perf workflow lists
in STALL_PRONE. An attempt whose job ends cancelled while the run goes on
lost its runner (a shutdown, or the job’s time limit) and left no exit code,
so it runs again on a fresh runner too, on any CPU model. A run cancelled by
a newer push or by a person retries nothing, and an attempt job that failed
fails the gate. At most two retries run, and the gate passes when the last
attempt passed. A breach on any other model fails at once.
A stall-prone runner is almost never judgeable: from 7 to 9 November 2026,
24 of 29 attempts on an AMD EPYC 9V74 could not be judged, against 2 of 42 on
every other model. Their stalls struck pair 1 as often as pair 4, in either
half of a window, and in both arms of a pair at once, so the host stalled,
and neither warm-up nor the order of the pairs explains them
(#1778). An attempt
that lands on a model STALL_PRONE lists therefore measures nothing and ends
with exit 2 at once, unless it is the last attempt, which measures wherever
it lands. The job summary
names each attempt’s CPU model, its verdict and why a retry ran, and the
verdict’s summary names each attempt, a cancelled one with why the next ran.
The build job builds four crates at a time (CARGO_BUILD_JOBS=4), one per
core, and the build step logs the runner’s used memory, swap and free disk
each minute. The hosted runner has 16 GB. A release build of fhir-types with
every resource of all five FHIR releases peaks above it on its own: on #1737
the log rose from 3.4 to 14.7 GB in the five minutes after that crate started
and the runner shut down. The bridge therefore compiles only the releases it
speaks, through the release features of ferrobridge-term, and only the
resources of each release it asks for, through the per-release resources
features of fhir-types. Both builds then peak near 7 GB with no swap in
use. Nothing is measured on the build runner: each attempt runs on a fresh
one and logs its memory before the gate measures anything.
Running it yourself
The gate reads the bridges’ CPU and memory from /proc, so it judges them
on Linux. It needs Docker, curl, git, jq and openssl, or Podman with
PERF_ENGINE=podman:
cargo install ferrohealth-perf --version =0.11.0 --locked
bash scripts/perf/gate.sh build origin/main
bash scripts/perf/gate.sh run
bash scripts/perf/gate.sh --self-test checks the pin reader, the plan’s
placeholders, the seeded Condition, the base resolution and the two plans’
idle limits on any machine.
Crate versions and the bump rule
The library crates under crates/ are published on crates.io, and a published
version is immutable. That single fact produces one rule you have to follow in
every pull request that touches them. The two version lines it sits inside are
described on the
version lines and releases page.
- The rule
- Which number moves
- What is enforced, and where
- The escape, and its one condition
- Two things that are normal
fhir-typesis generated
The rule
A pull request that changes any packaged content of a crates/* member bumps
that member’s version in the same pull request.
Packaged content is what the crate’s include ships: src/**, README.md,
LICENSE, and Cargo.toml. A root [workspace.dependencies] entry the member
consumes counts too, because cargo package renders the concrete requirement
into the packaged manifest. Tests, benches, and CLAUDE.md are not packaged
and need no bump.
Three things move together:
- the
versionin that member’scrates/*/Cargo.toml, - any internal requirement naming it in the root
Cargo.toml[workspace.dependencies]table, Cargo.lock, refreshed withcargo update -wand committed.
A half-done bump fails the same way a missing one does.
Which number moves
The crates follow Cargo’s SemVer rules and no rule of their own
(SemVer compatibility).
A breaking change bumps the minor while the crate is 0.x (0.1.240 to 0.2.0),
because Cargo reads a caret requirement on 0.1.240 as any 0.1.x at or above
it. A change that keeps every consumer compiling bumps the patch (0.1.240 to
0.1.241) or the minor. Two steps are refused: a minor step that keeps its
patch, since the patch resets to 0 when the minor moves
(SemVer 2.0.0 §7), and a step out of 0.x,
which is the owner’s decision.
cargo-semver-checks decides which of the two your change needs. Run it
before you push, against the branch you target:
scripts/checks/semver.sh --baseline-rev origin/main fhirconnect
It refuses a break on a patch bump. It judges each crate on the judge’s
default feature set and, when the crate has features, with no default
features, because a break can exist in a feature subset alone. fhir-types is
judged on each FHIR version module with its terminology set as well. Add a new
enum variant at the end of the enum: the judge counts a moved discriminant as
a break.
Consumers outside the workspace then require a crate by a caret range,
fhirconnect = "0.1", so one compatible release serves every crate in their
build. Each crate’s README states that range, and the guard fails when it does
not name the line the manifest is on, so a minor bump moves the README with
it.
What is enforced, and where
| Where | What it does |
|---|---|
scripts/checks/crate-version-guard.sh | compares a head ref with its merge base with a base ref, and fails naming the member whose packaged content moved without its version, moved by a step SemVer does not take, or whose README states another range |
scripts/checks/semver.sh | runs the pinned cargo-semver-checks over the named crates against a git revision or crates.io |
the crate-version-guard CI job | runs the guard over the pull request’s target branch as fetched now and its head, then semver.sh over every crate that moved from a published line; it is one of the jobs the conclusion check reads |
the release plan job | runs semver.sh over every crate the release publishes, against its newest release on crates.io |
.claude/hooks/crate_version_bump_guard.sh | runs the same script before a git commit or a git push, against the merge base with origin/main, and refuses the command with the findings |
The hook checks a commit against the working tree, because the change it is
about to record is not in HEAD yet, and a push against HEAD. It is the
early copy of the CI job, not a second rule.
Run the guard yourself the way CI does:
scripts/checks/crate-version-guard.sh origin/main HEAD
The escape, and its one condition
A pull request carrying the no-crate-bump label skips the CI job. Use it only
when the diff provably alters no packaged bytes. The script itself reads no
labels, so the hook still reports; that is the intended asymmetry, since the
label is a reviewed decision rather than a local one.
Two things that are normal
A 0.0.0 version is a name reservation. A member that has not joined the crate line holds its crates.io name at 0.0.0, and the guard says so rather than demanding a bump: content under a reservation changes until the first real version.
A gap in the published sequence is fine. Not every bumped version is published. Publishing different content under a version that already exists is the forbidden case, and crates.io refuses it anyway.
fhir-types is generated
crates/fhir-types/src/** is emitted by tools/fhir-codegen and carries a
@generated banner. A change there is a generator change plus a regeneration,
never an edit of the output, and the bump follows the regeneration. The
codegen-drift CI job re-runs the emitter and fails on any difference.
Cutting a release
A milestone is a delivery promise, and a release is cut when its milestone
reaches zero open issues. This page is what happens around that cut: the
checklist before the tag, what the tag triggers, and what a consumer can check
afterwards. The repository-side copy is
docs/release.md,
and the two say the same thing.
Before the tag
- The milestone is empty.
gh issue list --milestone vX.Y.Z --state openanswers nothing, or the cut is called and the stragglers move to the next milestone. - The product version moves in every file that declares it. Today that is
CITATION.cff, the product row ofdocs/VERSIONS.md, the rootCargo.toml[workspace.package]version, and the image tag default incompose.yaml.scripts/checks/versions.shfails on any file left behind. This is the product line only; the library crates keep their own versions (crate versions). - The changelog names the release.
scripts/release/changelog.sh --assemble X.Y.Z YYYY-MM-DDwrites the version’s section from the fragments underchangelog.d/, deletes them and moves the link references on. What sits under the version heading is what the release notes say, so read it as the release notes before you tag. - The gates pass on the release commit. The same set CI runs (checks and gates).
The tag
The tag is signed and pushed from the working session that carried the milestone, right after the version-bump pull request merges:
git tag -s vX.Y.Z -m "vX.Y.Z" <the merged release commit>
git push origin vX.Y.Z
The release-tags ruleset requires a signature on refs/tags/v*, so an
unsigned tag is refused at push time.
What the tag triggers
.github/workflows/release.yml is dormant until a v* tag arrives. It does
not run on a push to main, on a pull request, or in a merge group.
plan ── github-release (draft) ─┬─ build-binaries ── build-image ─┬─ finalize-release (publish) ── crates
└─ build-console ──────────────────┘
- plan validates the tag shape, checks it against every file that declares
the product version, and extracts the
## [X.Y.Z]section ofCHANGELOG.mdas the release notes. A missing or empty section fails the release, so a cut can never ship with notes generated from the commit range. It also emits the target matrix the build jobs and the asset check both read, so the two cannot drift apart. - github-release creates the release as a draft carrying those notes and
attaches
compose.yaml. A draft is mutable and invisible to anyone browsing releases, which is the window the asset uploads need. - build-binaries calls the reusable
release-build.ymlonce per target, on a runner of that target’s own architecture, with no cache and withcargo auditable. Each call produces the tarball, its checksum, two SBOMs, three Sigstore bundles and the provenance envelope. - build-image calls the reusable
release-image.ymlonce the musl binaries exist, verifies them against the build lane’s signer identity, and pushesghcr.io/ferrohealth/ferrobridgeforlinux/amd64andlinux/arm64. - build-console calls the reusable
release-console.ymlonce the draft exists. It builds the operator console’s two musl binaries withcargo auditable, attaches each with its checksum and provenance (the binaries with an SBOM too), verifies them against its own signer identity, and pushesghcr.io/ferrohealth/ferrobridge-consoleforlinux/amd64andlinux/arm64with the bridge image’s attestations. - finalize-release checks that the draft carries every asset this version
promises, the console’s included, then publishes. Publishing last means a half-assembled release is
never visible. A pre-release publishes with
--latest=false. - crates uploads the
crates/*members to crates.io once the release is public, so a refused upload never leaves a release half-cut. It runs in thecrates-ioenvironment, whose required reviewer pauses it until the owner approves, and authenticates with crates.io Trusted Publishing, so no long-lived registry token exists in the repository. Re-running the leg is safe: a version already on the index counts as done.
A second tag push queues behind the first. A release cancelled part-way through publishing is worse than a slow one.
What a consumer can check
The release is frozen. GitHub’s repository-level immutable-releases setting is on, so once a release is published its notes and its assets cannot be edited.
The tag is protected. The release-tags ruleset blocks deletion and
non-fast-forward updates on refs/tags/v* and requires signatures, so a
published vX.Y.Z cannot be moved to another commit and cannot be deleted.
The commit a release names stays the commit it was cut from.
Every artefact carries verifiable provenance. Each tarball ships a Sigstore
bundle and a SLSA provenance envelope, and the image carries its attestations
as OCI referrers. Because the build runs in a reusable workflow, the signing
certificate names that workflow, so gh attestation verify --signer-workflow
pins the artefact to the release lane rather than to any workflow in the
repository. The commands are in SECURITY.md.
The crates are verified after upload. The publish script reads the registry back rather than trusting the upload’s exit status.
A bad cut ships forward
The no-retag rule is ours, not the platform’s. A bad cut becomes a new patch version. Never move a tag, never delete a release and recreate it, and never edit a published release’s notes to fix what the changelog got wrong: fix the changelog and cut the next version.
The lane enforces the half it can. github-release refuses to reopen an
already-published release for the same tag and fails with that message. The
rest is the ruleset and the immutable-releases setting above, which is why this
page states both rather than claiming the rule is enforced end to end.
Changelog
All notable changes to this project are documented here.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Maintenance rule: every pull request that changes user-visible behaviour adds
one fragment under changelog.d/ in the same PR (changelog.d/README.md)
and leaves Unreleased empty. Cutting a release assembles the fragments
into the version’s section with scripts/release/changelog.sh --assemble,
and moves the link references on.
The architecture is recorded in docs/architecture.md, the output of the
research program on
issue #1. Releases on
the 0.0.x line carry the repository, its gates, its documentation, a Linux
binary per architecture and a container image, each with provenance and an
SBOM you can verify (SECURITY.md); from 0.0.3 they also carry the library
crates on crates.io.
Unreleased
0.0.28 - 2026-11-22
SMART breadth and the committer the CDR writes. The facade serves SMART App
State and SMART launch Tasks, reads a FerroSMART patient’s own token as the
person’s own access, and takes ferrohealth-smart 0.33 with its named issuer
tables, a breaking change to [auth]. A facade write no longer fails against
a CDR that writes the committer itself: a single write states no committer,
and a transaction names the party the CDR authenticated, a Basic user under
the new [cdr] committer_issuer. The CDM database runs on PostgreSQL 19, the
HL7 v2 face asks every translation of a message in one batch, timingToDaily
carries every time of day, and the workspace moves to the openehr-* crates
0.3.0 and takes url 2.5.9 for RUSTSEC-2026-0592. The crates move to
openehr-mapping-core 0.5.0, fhirconnect 0.7.0, ferrobridge-term and
ferrobridge-validator 0.17.1, ferrobridge-hl7v2 0.25.1 and eehrxf
0.23.1.
Added
- The FHIR facade serves SMART App State (SMART App Launch 2.2.0, Persisting
App State) behind
[facade.app_state]:Basicat the base becomes the App State endpoint with create, update and delete underIf-Matchand the search bycodeandsubject, kept in a store of its own; the discovery document listssmart-app-stateand theCapabilityStatementinstantiatessmart-app-state-server. Granular?code=scopes onBasicare honoured (#1968). - The FHIR facade serves SMART launch
Tasks (SMART App Launch 2.2.0, Task profile for requesting a SMART launch) behind[facade.launch_task]: create, read and search bypatient,statusandcodeonTask, everyTaskchecked againsttask-ehr-launchortask-standalone-launchand aTaskof neither refused, kept in a store of its own; theCapabilityStatementdeclares both profiles (#1969).
Changed
- The workspace moves to the
openehr-*crates 0.3.0, andopenehr-mapping-coretakes theARCHETYPE_SLOTadmission decision fromopenehr-sdt(WebTemplateArchetypeSlot::admits) in place of its own copy of the rule, so the bridge and the CDR’s composition validator decide a slot filler by one matcher. A slot whose pattern no regex engine compiles still admits nothing.OpenSlotno longer implementsPartialEqandEq. The published crates whose public API names openEHR types move to their next minor:openehr-mapping-core0.5.0,fhirconnect0.6.0 andeehrxf0.18.0 takeopenehr-base,openehr-rm,openehr-its,openehr-sdt,openehr-amandopenehr-termfrom the 0.3 line, andferrobridge-hl7v20.20.0 followsfhirconnect0.6. A dependant moves its ownopenehr-*requirements to"0.3"with them (#1943). - The consent lane follows the
openehr-rm0.3.0 access draft: every access term is coded in the terminology the draft gives it,openehr_accessfor the draft’s own codes (formerlyferroehr-operations), HL7consent-provision-typefor a directive’s effect and HL7extra-security-role-typedatasubjectfor the subject caller kind. A FHIR Consent export and import carry an actor scope’sorganisation_typein the newhttps://ferrobridge.eu/fhir/StructureDefinition/organisation-typeextension, and an APPC export refuses it namingapplies_to.organisation_type, since APPC defines no subject attribute for an organisation type (#1962). jsonschema0.61.0. The FHIRconnect and OMOCL mapping schemas are checked withjsonschema0.61.0.jsonschemais part of the public API ofopenehr-mapping-core(schema::compilereturns ajsonschema::Validator) andfhirconnect(Schemas::validator), so both move to a new compatibility line, and so doeehrxfandferrobridge-hl7v2, which expose them: a consumer requiresopenehr-mapping-core = "0.5",fhirconnect = "0.6",eehrxf = "0.18"andferrobridge-hl7v2 = "0.20", and takes thejsonschema0.61Validator(#1965).timingToDailycarries every time of day. The CKM daily timing cluster repeats its time of day (at0004,0..*) as R4Timing.repeat.timeOfDaydoes, and the function now writes and reads one time per instance in order, where it refused more than one. A function declares a port repeating throughMappingCodeRegistry::repeating, the compiler accepts such a port whose node repeats directly below the mapping’swith.openehr(Port::repeats), andPortsholds one value per instance (Ports::with_each,Ports::all,Ports::ports). A function that writes more than one value at a port whose node holds one is refused with the newMappingCodeError::RepeatedPort, a breaking change to that enum, so a consumer requiresfhirconnect = "0.7",eehrxf = "0.19"andferrobridge-hl7v2 = "0.21"(#1972).- The workspace moves to
ferrohealth-smart0.30.0,ferrohealth-server0.11.0 andferrohealth-session0.25.0. A request pastserver.max_concurrent_requestsnow waits for a slot, at mostserver.admission_wait(100 milliseconds by default) in a first-come queue ofserver.max_waiting_requests(256 by default;0keeps no queue), before it is refused503withRetry-After; the health routes are never refused or queued.ferrobridge-termcarries smart types in its public API, so it moves to 0.14.0, and the crates that require it follow:ferrobridge-validator0.14.0,ferrobridge-hl7v20.22.0 andeehrxf0.20.0. A dependant movesferrohealth-smartto 0.30 with them (#1979). - Behind FerroSMART, a patient’s own token is now the person’s own access. Under
ferrohealth-smart0.31 theferrosmartpreset reads such a token as the patient:fhirUserisPatient/<x>, thepatientclaim isx, and the scopes arepatient/grants alone. The facade’s access record carries the bindingselffor it. The onward lane exchanges it at thepatientsissuer when one is declared, and otherwise at thepersonsissuer. Before, the lane refused a patient at apersonsissuer. A professional who holdspatient/scopes is unchanged. To keep the earlier reading, setfhir_user_patient = falseon the FerroSMART[[auth.issuer]]table (#1986). - The workspace moves to
ferrohealth-smart0.31.0 andferrohealth-session0.26.0.ferrobridge-termcarries smart types in its public API, so it moves to 0.15.0, and the crates that require it follow:ferrobridge-validator0.15.0,ferrobridge-hl7v20.23.0 andeehrxf0.21.0. A dependant movesferrohealth-smartto 0.31 with them; one that builds smart’sProfile,ProfileKeysorIssuerEntrywith a struct literal adds thefhir_user_patientfield (#1987). - Breaking: the bridge moves to
ferrohealth-smart0.32.0 andferrohealth-session0.27.0, and[auth]takes their simpler issuer configuration. Each trusted issuer is a named table,[auth.issuer.<name>], in place of the[[auth.issuer]]array, anddescribed_issuernames a table by its name. An issuer that sets noaudiencetakes[facade] base_url, andkinddefaults to the preset’s (personsunderferrosmart,keycloak,entraandokta). The preset ispreset = "…"in place ofprofile = "…", every profile key (first_party_clients,delegates,app_only,token_typesand the rest) moves into the issuer’s[auth.issuer.<name>.profile]table, andprofile_filereads a profile file you supply.scopeless_subjectsmoves onto its issuer table as a list ofsubvalues. The onward tables follow:[cdr.endpoint.credentials.onward]and[[cdr.onward]]takepresetand aprofiletable in place ofprofileandkeys. Upgrade: give each[[auth.issuer]]table a name, renameprofiletopreset, move its profile keys under.profile, drop anaudienceequal to the facade’s base, and setdescribed_issuerto the name (#1991). - Breaking: the facade reads a token’s
patientclaim as the launch context only from an issuer whose profile setspatient_context, the per-issuer rule FerroEHR reads too. Theferrosmartpreset sets it; under any other preset apatientclaim is ignored, so apatient/scope reaches no patient, until the issuer’s profile table setspatient_context = true. Behind FerroSMART no self-delegate is needed for its patient picker (issuer_client_is_person), andaudience_delegates = trueadmits every app registered at FerroSMART for the facade without adelegatesentry (#1991). - Breaking: every
401and403Bearerchallenge with an error code carries the stable reason code of the check that refused the token as itserror_description(RFC 6750 §3), such asexpired,audience-mismatchorscope-not-granted. TheOperationOutcomeand the problem body are unchanged and still name no claim and no scope (#1991). ferrobridge-termcarries smart types in its public API, so it moves to 0.16.0, and the crates that require it follow:ferrobridge-validator0.16.0,ferrobridge-hl7v20.24.0 andeehrxf0.22.0. A dependant movesferrohealth-smartto 0.32 with them (#1991).- The CDM database runs on PostgreSQL 19:
cdm init,vocab load,etl runand every other CDM job refuse an older server when they connect, naming theserver_version_numfound and the 190000 needed. The quickstart’scdmprofile runspostgres:19.0with its volume at/var/lib/postgresql, where the official image keeps its data. PostgreSQL 18 is no longer supported and there is no upgrade path: acdm-datavolume holding an older cluster is removed and created again (#1993). - The bridge moves to
ferrohealth-smart0.33,ferrohealth-session0.28 andferrohealth-server0.12.ferrobridge-termcarries smart types in its public API, so it moves to 0.17.0, and the crates that require it follow:ferrobridge-validator0.17.0,ferrobridge-hl7v20.25.0 andeehrxf0.23.0; a dependant movesferrohealth-smartto 0.33 with them. The server takes[server] request_decompression, off by default, which decodes a request body sent in gzip or Brotli underbody_limit(FerroHEALTH/FerroSYS#408) (#1995). - The HL7 v2 face asks every
ConceptMap/$translateof a message in one FHIRbatchBundle, where it sent one request per table value and target system; each value still takes the first target system that answers.ferrobridge-termaddsClient::translate_all, one call for one translation and onebatchfor several (#1997).
Fixed
- A FHIRconnect mapping of a FHIR time onto a single
EVENTthat the template folds into itsOBSERVATIONnow compiles and runs, asEVENT.adocpairs adateTimewith aPOINT_EVENTand aPeriodwith anINTERVAL_EVENT. The engine writes and reads the event through thetimeleaf the Web Template keeps at the event’s path, with the class, width and function in the object that holds it. The library’smedication_statement.v0.ymlno longer stops at line 44 againstKDS_Medikationseintrag.openehr-mapping-coregainsWebTemplateIndex::read_holderandamend_holder, andfhirconnectgainsEventTime::in_folded_eventandis_folded(#1924). - A facade write no longer fails with
500against a CDR that writes the committer itself. A single write states the change type andsystem_idinopenehr-audit-detailsand no committer, which ITS-REST 1.1.0 leaves optional, and a transaction’s CONTRIBUTION names the party the CDR authenticated: the bridge’s client id under its client credentials grant, or the placeholder of an exchanged token’sissandsubor of a Basic user under the new[cdr] committer_issuer. The authenticated facade caller is no longer stated as the committer; the access record names it (#2002).
Security
Shipped with functional changes because: the url fix is a lockfile move on main, where the library crates publish one patch per change and the unreleased changes above already sit, so a security-only patch has no tree of its own to come from.
- The workspace takes
url2.5.9 in place of 2.5.8 (RUSTSEC-2026-0592, GHSA-hrj5-67jp-wqp9): every earlierurlletsUrl::origin()recurse without a bound on a nestedblob:URL, so a crafted URL overflows the stack (#1999).
0.0.27 - 2026-11-17
Browser apps and FerroSMART. The facade answers CORS: the SMART discovery
document and the CapabilityStatement for any origin, the REST routes for
the origins [facade.cors] allowed_origins lists. The bridge runs behind
FerroSMART under the ferrosmart issuer preset of ferrohealth-smart
0.29.1, which also refuses two [[auth.issuer]] tables naming one issuer.
A party context loads over an id-coded ADL 2 template such as FerroEHR’s
professional PERSON, and a plain DV_IDENTIFIER.type reads as a coding
code instead of failing the read. The crates move to
openehr-mapping-core 0.4.0, fhirconnect 0.5.1, ferrobridge-term and
ferrobridge-validator 0.13.0, ferrobridge-hl7v2 0.19.0 and eehrxf
0.17.0, and the server to ihe-atna and ehds-logging 0.23.0 and
ferrohealth-session 0.24.0. Each breaking change below names what an
operator or a crate user changes.
Added
- The FHIR facade answers cross-origin requests, as SMART App Launch 2.2.0
asks of a server that supports browser apps:
GET /fhir/metadataand the SMART discovery document answer any origin withAccess-Control-Allow-Origin: *, and the REST routes under/fhiranswer the origins the new[facade.cors] allowed_originslists, by name withVary: Origin, preflight included, and never with a wildcard orAccess-Control-Allow-Credentials. A refusal of the guard, such as the401of a missing token, is readable by an admitted origin (#1950). - The bridge runs behind FerroSMART, the FerroHEALTH SMART App Launch 2.x
authorization server: an
[[auth.issuer]]takesprofile = "ferrosmart"fromferrohealth-smart0.29.1, which reads FerroSMART’s RFC 9068 tokens withtypat+jwtalone andscoperequired, admits a person through a SMART app the table lists indelegatesand a Backend Services client as a machine. The Operate section has a page for the deployment, with FerroSMART’s resource table, the bridge’s issuer table and the discovery document. The server and the operator console move toferrohealth-smart0.29.1 andferrohealth-session0.24, and two[[auth.issuer]]tables naming one issuer now refuse the start (#1952).
Fixed
- A party context loads over an id-coded ADL 2 template, such as FerroEHR’s
professional
PERSON(openEHR-DEMOGRAPHIC-PERSON.healthcare_professional.v1.0.0), which the CDR serves only on itsadl2route: the model mapping’s paths name the template’s id-codes (details[id2]/items[id3]), as ADL 2.4 §4.2.5 admits both node identifier coding systems and a path predicate is the node’sarchetype_node_id(BASE 1.2.0, Architecture Overview, Paths and Locators). The load no longer refuses such a template, andopenehr-mapping-coredropsPathError::IdCodedTemplateand theid-coded-templatediagnostic code; an at-coded path over an id-coded template is refused as a path the template does not have (#1951). - A
DV_IDENTIFIERwhosetypeis a plain string, such as theloginof a SCIM-provisioned professional, reads asIdentifier.type.coding[0].codewith no system instead of failing the read with500, as FHIRconnect’sString.adoc§Coding maps an openEHR string without::(the RM typesDV_IDENTIFIER.typeas a freeString). A coding with acodeand nosystemnow writes the bare code intoDV_IDENTIFIER.typeinstead of being dropped; one with both still writessystem::code(#1955).
0.0.26 - 2026-11-16
The SMART discovery document described by the family’s shared rule, on
ferrohealth-smart 0.28. The discovery document and the facade’s
CapabilityStatement no longer name the first [[auth.issuer]] table:
[auth] described_issuer names the issuer, and without it the bridge
describes its one user-launch issuer, or, when it trusts only machines
issuers, its one machines issuer for SMART Backend Services alone. The
crates move to smart 0.28 with ferrobridge-term and
ferrobridge-validator 0.12.0, ferrobridge-hl7v2 0.17.0 and eehrxf
0.15.0, and the server to ihe-atna and ehds-logging 0.22.0. Each
breaking change below names what an operator or a crate user changes.
Changed
- The crates move to
ferrohealth-smart0.28, whosedescribepicks the issuer of the discovery document and whose client assertion takes itsaudandtypfrom the grant’s security profile.ferrobridge-term0.12.0 takes smart’sEndpointSectionandOutboundClientfrom the 0.28 line inClient::from_endpoint, so a dependant on smart 0.28 passes its own types.ferrobridge-validator0.12.0,ferrobridge-hl7v20.17.0 andeehrxf0.15.0 followferrobridge-term0.12. The operator console takesferrohealth-session0.23.0, and the server takesihe-atnaandehds-logging0.22.0, the releases on the same smart line, so one smart links (#1922).
Fixed
- The SMART discovery document and the facade’s
CapabilityStatementname the issuerferrohealth-smart’s shared rule describes, never the first[[auth.issuer]]table.[auth] described_issuernames it; without the key the bridge describes the one issuer of kindpersons,patientsorfederationwhose metadata it holds, and a bridge that trusts onlymachinesissuers describes its onemachinesissuer for SMART Backend Services alone: the token endpoint, the client credentials grant andprivate_key_jwt, with no authorization endpoint. Breaking: a bridge that trusts several such issuers and sets nodescribed_issuerrefuses the start, naming them and the key, and so does adescribed_issuerthat names an unknown issuer, an issuer without metadata, or amachinesissuer beside one that serves a user launch (#1922).
0.0.25 - 2026-11-16
The family on ferrohealth-smart 0.26 and ferrohealth-server 0.10,
and access directives exchanged as FHIR Consent. The bridge and its crates
move across the smart lines 0.19 to 0.26 to one smart, one server and one
telemetry in the lock: ferrobridge-term and ferrobridge-validator 0.11.0,
ferrobridge-hl7v2 0.16.0 and eehrxf 0.14.0. A Basic user’s scopes and
roles move into [basic_grants], and the server now always bounds the
requests it serves at once, 256 by default. The facade exchanges a patient’s
openEHR access directives as FHIR Consent, IHE BPPC and IHE APPC behind
[facade.consent], on the openehr-* crates 0.2. The HL7 v2 face accepts
plain MLLP from a declared device network, and fhirconnect reads an event
the template collapsed into its observation as that event. Each breaking
change below names what an operator or a crate user changes.
Added
- The HL7 v2 face accepts plain MLLP from a device that cannot speak TLS,
such as a point-of-care analyser. A sender declared
origin = "device"withtransport = "plain"and itssource_addresses(CIDR networks) is served on its own[hl7v2.plain] bindlistener: a connection from outside every plain sender’s networks is closed before any byte is read, and a message whose MSH-4 names no plain sender of the peer’s network is answeredARand its connection closed. The bridge refuses to start with a plain sender that is no device or names no networks, a network that is not in CIDR notation, a plain listener on the TLS listener’s address, or one side of the pair without the other.[hl7v2.tls]and its files are required only while a sender hastransport = "tls": a lab of plain devices alone runs no TLS listener, and a[hl7v2.tls]with no TLS sender is refused. Each plain sender is logged as a warning at boot,/health/infoshows the plain listener and each sender’s transport, and the operator API’s running configuration names each sender’stransportandsource_addresses. TLS stays the default, and nothing changes for an existing configuration.ferrobridge-hl7v20.10.1 addsHandler::admits, which closes a peer before its first byte, andConnection::close, which ends a connection after its answer (#1918). - The facade exchanges a patient’s openEHR access directives as HL7 FHIR
Consent(R4, and R5 underfhirVersion=5.0), IHE BPPC acknowledgements and IHE APPC Privacy Consent Documents, behind the new[facade.consent]table (enabled,extensions_url,default_access), which needs the onward lane: the directives are read and written under the token exchanged for the facade’s caller, never under the bridge’s own credential.POST,GET [base]/Consent/{id}andGET [base]/Consent?patient=are served and listed in theCapabilityStatement, beside the type-level operationsConsent/$bppcandConsent/$appc. An import reads the CDR’sEHR_ACCESSthrough itsGET /ehr/{ehr_id}/ehr_accessextension and commits the directives as the next version in a CONTRIBUTION; the catalogue of the controller’sACCESS_POLICYis read underextensions_url. A construct with no openEHR form is refused with422naming the element, and every attribute with no core FHIR element travels in an extension underhttps://ferrobridge.eu/fhir/StructureDefinition/(#1933).
Changed
- The crates move to
ferrohealth-smart0.19.ferrobridge-term0.6.0 takes smart’sEndpointSectionandOutboundClientfrom the 0.19 line inClient::from_endpoint, so a dependant on smart 0.19 passes its own types.ferrobridge-validator0.6.0,ferrobridge-hl7v20.9.0 andeehrxf0.7.0 followferrobridge-term0.6. The server takesihe-atnaandehds-logging0.13.0, and the operator console takesferrohealth-session0.14.0, the releases on the same smart line (#1897). - A model mapping that slots an archetype into an
ARCHETYPE_SLOTthe template keeps open and fills with no such archetype is now ignored with thefc-excluded-template-nodewarning, as FHIRconnectmodel-mappings.adoc§Mapping 0..0 fields ignores a mapping that is not part of the template. It was refused asfc-unknown-template-node. A path whose archetype no open slot there admits is still refused.openehr-mapping-coreexposes the template’s open slots asWebTemplateIndex::open_slots(#1907). - The crates move to
ferrohealth-smart0.20, which takes the issuerscheck_role_issuersreads asSecretUrland masks the issuerConfigError::RoleIssuernames.ferrobridge-term0.7.0 takes smart’sEndpointSectionandOutboundClientfrom the 0.20 line inClient::from_endpoint, so a dependant on smart 0.20 passes its own types.ferrobridge-validator0.7.0,ferrobridge-hl7v20.10.0 andeehrxf0.8.0 followferrobridge-term0.7. The server takesihe-atnaandehds-logging0.14.0, and the operator console takesferrohealth-session0.15.0, the releases on the same smart line (#1914). - The workspace moves to the
openehr-*crates 0.1.1, on the first line FerroEHR publishes under the Cargo SemVer rules. The published crates whose public API names openEHR types move to their next minor:openehr-mapping-core0.2.0,fhirconnect0.3.0 andeehrxf0.9.0 takeopenehr-base,openehr-rm,openehr-its,openehr-sdt,openehr-amandopenehr-termfrom the 0.1 line, andferrobridge-hl7v20.11.0 followsfhirconnect0.3. A dependant moves its ownopenehr-*requirements to"0.1"with them, so its lockfile holds one copy of each and passes its own openEHR types to these crates (#1919). - The crates move to
ferrohealth-smart0.21, which chooses the issuer a SMART discovery document describes by one shared rule and adds the optionaldescribed_issuerkey toAuthSection.ferrobridge-term0.8.0 takes smart’sEndpointSectionandOutboundClientfrom the 0.21 line inClient::from_endpoint, so a dependant on smart 0.21 passes its own types.ferrobridge-validator0.8.0,ferrobridge-hl7v20.12.0 andeehrxf0.10.0 followferrobridge-term0.8. The server takesihe-atnaandehds-logging0.15.0, and the operator console takesferrohealth-session0.16.0, the releases on the same smart line (#1925). - The crates move to
ferrohealth-smart0.22, whereDpopSectionno longer carriesexternal_urland a product builds its DPoP proof check from its own public URL; the bridge sets no[auth.dpop], so no configuration key changes.ferrobridge-term0.9.0 takes smart’sEndpointSectionandOutboundClientfrom the 0.22 line inClient::from_endpoint, so a dependant on smart 0.22 passes its own types.ferrobridge-validator0.9.0,ferrobridge-hl7v20.13.0 andeehrxf0.11.0 followferrobridge-term0.9. The server takesihe-atnaandehds-logging0.16.0, and the operator console takesferrohealth-session0.17.0, the releases on the same smart line (#1927). - Breaking: a Basic user’s scopes and roles move out of
[[auth.basic.users]], which holds the credential alone (user,password_hash,password_hash_file), into the bridge’s own[basic_grants.<user-id>]table withscopesandroles. Ascopesorroleskey in[[auth.basic.users]]now refuses the start as an unknown key, and so does a[basic_grants]table naming a user[[auth.basic.users]]does not list. Upgrade: move each user’sscopesandroleslines into a[basic_grants.<user>]table named by itsuser(#1929). - The crates move to
ferrohealth-smart0.24, where the caller classification asks each issuer’s standing source; the bridge keeps its client lists in[auth], the default source, so no further configuration key changes.ferrobridge-term0.10.0 takes smart’sEndpointSectionandOutboundClientfrom the 0.24 line inClient::from_endpoint, so a dependant on smart 0.24 passes its own types.ferrobridge-validator0.10.0,ferrobridge-hl7v20.14.0 andeehrxf0.12.0 followferrobridge-term0.10. The server takesihe-atnaandehds-logging0.18.0, and the operator console takesferrohealth-session0.19.0, the releases on the same smart line (#1929). - The workspace moves to the
openehr-*crates 0.2.0, whoseopenehr-rmcarries the draft access control package behind itsdraftfeature, which the access directive exchange reads. The published crates whose public API names openEHR types move to their next minor:openehr-mapping-core0.3.0,fhirconnect0.4.0 andeehrxf0.13.0 take theopenehr-*crates from the 0.2 line, andferrobridge-hl7v20.15.0 followsfhirconnect0.4. A dependant moves its ownopenehr-*requirements to"0.2"with them, so its lockfile holds one copy of each and passes its own openEHR types to these crates (#1933). - Breaking: the server keeps an overload bound always:
[server] max_concurrent_requestsis 256 by default, where unset left the server unbounded, so past 256 requests in flight a request is answered503withRetry-Afterand the health routes are never refused. A deployment that relied on no bound sets the ceiling it wants (FerroHEALTH/FerroEHR#5743) (#1939). - The crates move to
ferrohealth-smart0.26 andferrohealth-server0.10.ferrobridge-term0.11.0 takes smart’sEndpointSectionandOutboundClientfrom the 0.26 line inClient::from_endpoint, so a dependant on smart 0.26 passes its own types.ferrobridge-validator0.11.0,ferrobridge-hl7v20.16.0 andeehrxf0.14.0 followferrobridge-term0.11. The server takesihe-atnaandehds-logging0.21.0, and the operator console takesferrohealth-session0.21.0, the releases on the same smart line, so one smart, one server and one telemetry link (#1939).
Fixed
ferrobridge config checkno longer prints the password of an issuer written with userinfo (https://user:password@…) in[[auth.attributes]],[[auth.federation]],[[auth.party]]orauth.scopeless_subjects: it renders ashttps://***@…, as[[auth.issuer]]already did.ferrohealth-smart0.19 holds the issuer of every configuration table as aSecretUrl(#1897).fhirconnectreads a path that names a singleEVENTthe Web Template collapsed into itsOBSERVATIONas that event, a structure, now thatopenehr-sdt0.1.1 keeps the event’stimeleaf at the event’s path. Before, such a path resolved to theDV_DATE_TIMEleaf, so a mapping anchored at the event was refused asfc-unpaired-typesand its children below the event asfc-unknown-template-node(#1919).- The server and the operator console move to ferrohealth-telemetry 0.5, ferrohealth-server 0.9 and ferrohealth-usage-report 0.5, whose subscriber installs its own bridge from the
logcrate in place oftracing-log’sLogTracer. Under a console filter that lets a target through above its default level, such asinfo,ferrohealth_smart=debug, a dependency’slog::log_enabled!check no longer drops the next event on its thread, which lost the request line of a request that ran such a check (FerroHEALTH/FerroSYS#388).ferrobridge-term0.10.1 takes ferrohealth-config 0.4.5, andferrobridge-validator0.10.1,ferrobridge-hl7v20.15.1 andeehrxf0.13.1 follow it (#1936).
0.0.24 - 2026-11-11
The family on ferrohealth-smart 0.18, and the EU documents. The bridge and
its crates move to smart 0.18 (ferrobridge-term 0.5.0), so config check
and every other rendering of the bridge’s and the console’s configuration
show an issuer or a sign-in URL written with userinfo masked, never its
password. eehrxf names a document’s custodian; the imaging and discharge
projects declare in their OperationOutcome what a received report holds and
they do not carry; the imaging report carries its performing organization,
and Document::studies names its studies. fhirconnect writes one
alternative of a FHIR choice element at a time, unfolds a recursive slot as
deep as the template does, and skips a reference of another type. The HL7 v2
face answers AE when the CDR refuses a contribution for its content and
names its facility and composer by identifiers with their issuer, and the
quickstart compose.yaml a release attaches carries its checksum. The
bridge and console images are distroless static with no OpenSSL package, so
the OpenSSL 3.5.7 advisory of 2026-11-10 does not reach them. Each breaking
crate change below names what a consumer changes.
Added
eehrxf0.3.1:Document::with_custodianadds anOrganizationand names it the document’sComposition.custodianin every form. In the imaging report it takes the place of the firstOrganizationauthor, which the form drops for the report’s performers, so a gateway can name the member it read the report at and leave no unreferenced entry (#1819).eehrxf: mapping a received discharge report with theHDRproject declares in itsOperationOutcomeeach section none of whose entries the project carries, such as the hospital course, and each element of a carried entry that the composition does not hold, such asCondition.severityandverificationStatus. Each is anincompletewarning at the element’s FHIRPath. The composition’s original content still keeps every one of them (#1820).eehrxf: mapping a received imaging report with theIMAGINGproject declares in itsOperationOutcomeeach section none of whose entries the project carries, such as the order, history and procedure sections, and each element of the report or its study that the composition does not hold, such as the performing organization (DiagnosticReport.performer) and a study note. Each is anincompletewarning at the element’s FHIRPath. The composition’s original content still keeps every one of them (#1827).eehrxf: theIMAGINGproject carries the organization that performed an imaging report. A receivedDiagnosticReport.performernaming anOrganizationis written into the Imaging service slot ofOBSERVATION.imaging_exam_result.v1as aCLUSTER.organisation.v1(its name and identifiers), and a served report names that organisation as its performer, anorganization-eu-core. A performer that is noOrganizationis still declared not carried. FerroBRIDGE’s imaging report template fills the slot, so a CDR that stores these reports needs the template’s new revision (#1878).eehrxf0.6.4:Document::studies(featureimaging) returns thefullUrlof eachImagingStudythe document holds, in the order the entries were added. A writer whose mapping run added an imaging study lists it in theimagingstudysection ofCompositionEuImagingwithout searching the run’sBundleagain (#1887).
Changed
- In a slotted model whose
fhirConfig.structureDefinitionnames no resource (aBackboneElementor a data type),$resourcenow names the FHIR element the slot hands over, the root of the model’s own type (basics/Variables.adoc), as$archetypenames the slotted archetype;$fhirRootis unchanged. Areferencewhosewith.fhirnames a choice that admitsReferencenow writes that alternative (medication[x]givesmedicationReference), and only a choice that admits noReferenceis refused asfc-reference-into-choice(#1546). - FHIRconnect and OMOCL now match a written openEHR path against a template by one segment rule,
openehr_mapping_core::index::matching::segment_matches, which the Web Template index already used. A segment that writes no node id names every node of its attribute. A name or a position is compared only when both the mapping and the template carry one. A descendant step names no template segment. Before this change, FHIRconnect matched a segment without a node id only to a template segment without one, and OMOCL compared no names. The ITS-REST client of the server answers a found template as the foundation’sTemplateSource, so the workspace has one template source type (#1711). - The crates move to
ferrohealth-smart0.17.ferrobridge-term0.4.0 takes smart’sEndpointSectionandOutboundClientfrom the 0.17 line inClient::from_endpoint, so a dependant on smart 0.17 passes its own types.ferrobridge-validator0.4.0,ferrobridge-hl7v20.6.0 andeehrxf0.4.0 followferrobridge-term0.4. The server takesihe-atnaandehds-logging0.11.0, and the operator console takesferrohealth-session0.11.0, the releases on the same smart line (#1840). - Every published crate declares the third-party crates its public API names in
[package.metadata.ferrohealth] public-dependencies, and a move of one of them to another compatibility line takes the crate’s next minor, as a move of a family crate does (serde_jsonandserdeinfhir-typesandopenehr-mapping-core,jiffinfhir-search,tokioinferrobridge-hl7v2, and the rest the declarations list).eehrxf0.4.3,ferrobridge-fhirpath0.1.136,ferrobridge-hl7v20.6.2,ferrobridge-term0.4.1,ferrobridge-validator0.4.1,fhir-search0.1.131,fhir-types0.1.131,fhirconnect0.1.253 andopenehr-mapping-core0.1.153 carry the declaration (#1851). - The quickstart
compose.yamleach release attaches now carries its.sha256sum, CI refuses a host path it would read from the repository, and the README and the book download it withcurl -fsSLOfrom the latest release and name Docker Compose 2.23.1 or newer (#1874). - The crates move to
ferrohealth-smart0.18.ferrobridge-term0.5.0 takes smart’sEndpointSectionandOutboundClientfrom the 0.18 line inClient::from_endpoint, so a dependant on smart 0.18 passes its own types.ferrobridge-validator0.5.0,ferrobridge-hl7v20.8.0 andeehrxf0.6.0 followferrobridge-term0.5. The server takesihe-atnaandehds-logging0.12.0, and the operator console takesferrohealth-session0.12.0, the releases on the same smart line (#1880). fhirconnect: going into openEHR, areferencemapping skips a reference whose target is a resource of another type than itsresourceType, and records no read for it, where it refused the whole run before. A repeating reference that admits several target types, such as R4DiagnosticReport.performer, now maps the targets of its type and leaves the others to the caller’s accounting. FHIRconnect 1.0.0 is silent on such a target; this is FerroBRIDGE’s own design, recorded indocs/architecture.md. A reference that resolves to nothing is still a declared skip, and the openEHR-to-FHIR direction is unchanged (#1888).
Fixed
fhirconnectwrites one alternative of a FHIR choice element at a time: a mapping that writesvalue.as(Coding)after another wrote the element’svalueCodeableConceptreplaces it, so a produced resource no longer carries twovalue[x]members, which FHIR R4 forbids (formats.html §Choice). The KDS case extensionKDS_fall_problem_diagnoseof the FHIRconnect mapping library now runs verbatim against the publishedKDS_Fall_einfachtemplate, and the library passes 21 of 129 (#1546).- An HL7 v2 composition names its health care facility and its composer by identifiers that carry their issuer, so a CDR that checks the facilities and the professional of the bridge’s relay client (FerroEHR 5.7.0) admits it. A facility’s namespace id (HD.1) is issued by the new
[hl7v2] facility_identifier_issuer, a universal id (HD.2) by its type (HD.3), and an ordering facility’s identifier (XON.10) by its assigning authority (XON.6). The clinician’s id (XCN.1) is a composer identifier issued by its assigning authority (XCN.9) and typed by XCN.13, and a device sender’s device id one issued by itsdevice_identifier_issuer. Infhirconnect0.1.251,Defaults::with_composer_identifierswrites a default composer with its identifiers whole ascomposer|raw(#1826). - A write no caller made (an HL7 v2 message, a request on an open surface) that reaches the CDR under the bridge’s own
[cdr.credentials.oauth]grant names the grant’s client id asAUDIT_DETAILS.committerinstead of the bridge’s system id, so FerroEHR 5.7.0, which writes the committer of a system caller itself, accepts it (#1828). - The HL7 v2 face answers
AEwhen the CDR refuses a message’s contribution for its content (400or422), andARonly when the CDR fails or refuses the bridge’s credentials, so a sender no longer resends a message the CDR will always refuse (HL7 v2.5.1 §2.9.2.2). The face judges the status the CDR answered, which the FHIR facade’s status table may render as a500or502of its own (#1829). - The READMEs of
eehrxf,ferrobridge-term,ferrobridge-validatorandferrobridge-hl7v2name the patch to require on the line each crate is on; they named the line before the last minor step (#1859). - A
manualentry that writes free text (avalueand nodefining_code) at aDV_CODED_TEXTnode whose value set is open writes aDV_TEXTthere, which FLAT carries under|other(Simplified Formats, Open Value-Sets), and anopenehrConditionreading that node with an empty tail compares its text; the run refused the entry with a decode error before. At a node whose value set is closed the entry is refused at load with the newfc-closed-value-set.fhirconnectmoves to 0.2: a consumer that matchesResolveCodeexhaustively adds an arm forResolveCode::ClosedValueSet;eehrxfmoves to 0.5 andferrobridge-hl7v2to 0.7 with it.ResolvedNode::list_openinopenehr-mapping-corereads the Web Template’slistOpen(#1861). fhirconnectevaluates anopenehrConditionwithoperator: typeagainst the class of the data value its attribute holds, the value of anELEMENTincluded, asbasics/Conditions.adoc§openehrCondition writes it. It tested the node’s declared class, so anonsetDateTimeof the library’s adverse reaction risk model went into openEHR and was lost coming out (#1864).eehrxf: a mapping compiled from files (Mapping::compile,Mapping::compile_template) now declares what the shipped project that compiles its contexts declares, asMapping::compile_projectdoes. A gateway that writes the shippedIMAGINGfiles to disk and compiles them now tells the sender that a received report’s performing organization (DiagnosticReport.performer) is not carried; before, such a mapping declared none of the project’s elements.Mapping::accountingstill replaces the list (#1875).ferrobridge config checkno longer prints the password of an issuer written with userinfo (https://user:password@…), in[[auth.issuer]]or in an onward table: it renders ashttps://***@…, as every endpoint URL already did.ferrohealth-smart0.18 holds every configured issuer identifier as aSecretUrl(#1880).fhirconnectunfolds a slot that re-enters an archetype its chain already holds as deep as the template instantiates it: at the first level the template does not nest the archetype, the method is left out with no refusal, where it refusedfc-unknown-template-nodeandfc-slot-depth. A node the template lacks at a level it does instantiate is still refused. FHIRconnect v1.0.0 is silent on recursive slots (#1882), so this is FerroBRIDGE’s own rule. The EEHRxF lab analyte extension of the FHIRconnect mapping library now runs verbatim (#1883).ferrobridge-console config checkand every other rendering of the console’s configuration show an[oidc]issuer,redirect_uriorpost_logout_redirect_uriwritten with userinfo ashttps://***@…, never its password. The console moves toferrohealth-session0.13, which holds the three URLs asSecretUrl(#1891).
0.0.23 - 2026-11-10
The request under its person, and the family endpoint. Each facade caller
reaches the CDR through the onward issuer of its kind, the CDR derives the
committer from the exchanged token, a machine caller is named as the
originating system, and a write to a party under a binding key is refused.
The bridge moves to ferrohealth-smart 0.16, ferrohealth-config 0.4,
ferrohealth-server 0.8 and FerroAUDIT 0.10: every span of time and amount
of data is a Duration or ByteSize, every outbound lane ([cdr],
[terminology], [audit], [fhir_outbound]) takes its server as one
endpoint table with its TLS, and traces and metrics go to an OpenTelemetry
collector. These configuration changes break: each entry below carries its
upgrade step, and config check names the key to move. The HL7 v2 face
serves MLLP over TLS with client certificates, and its compositions name the
facility, the clinician and the FEEDER_AUDIT of the message.
ferrobridge-hl7v2 0.5.0 carries the v2-to-FHIR maps generated from the
guide, writes messages and writes a Patient back as a PID;
ferrobridge-term 0.3.0 speaks FHIR R5 and R6 with one feature per release;
the new fhir-search crate holds the FHIR search value grammar; and the
published crates follow Cargo SemVer. Each breaking crate change names what a
consumer changes.
Added
- The FHIR facade carries a patient onto the CDR through an onward issuer of
kind = "patients", and each[[cdr.onward]]table adds apersons,federationorpatientsissuer beside[cdr.credentials.onward], so every caller is exchanged at the issuer of its kind. Two issuers of one kind refuse the start (#1636). - A composition the facade commits for a machine caller names the caller’s
client as the originating system (
feeder_audit.originating_system_audit.system_id) and the bridge as the feeder system (feeder_system_audit.system_id).fhirconnectgainsOrigin::with_originating_systemfor it (#1637). [cdr.credentials.onward]refuses the start when[cdr.credentials.oauth]names neitherresourcenorscope, so the bridge’s own token, which a machine’s request reaches the CDR under, is asked for the CDR alone (#1637).[facade] binding_identifier_issuers: a create, update or delete of a party resource whosePERSONcarries a binding key, an identifier of one of the listed issuers, is refused with403 forbiddenbefore the bridge writes to the CDR. A professional bound to a login is provisioned through the CDR’s SCIM service, never through the facade (#1640).- An HL7 v2 message’s compositions name their health care facility, read
from PV1-3.4, PV1-39, ORC-21 and MSH-4 in that order, or name it as the
originating system’s location when they have no
EVENT_CONTEXT. With[[hl7v2.senders]]set, a facility no sender names is answeredAEnaming it, and nothing is committed. The performing organisation (OBX-23) is recorded as the originating system’s provider.fhirconnectgainsDefaults::with_facility,Origin::with_locationandwith_provider(#1665). - An HL7 v2 message’s compositions name the clinician the message names as
their composer, from the first of EVN-5, OBX-16, ORC-12 and OBR-16, with
its identifier. A message carrying a result that names no clinician is
answered
AE. A sender declaredorigin = "device"with itsdevice_identifier_issuerin[[hl7v2.senders]]commits its results as acts of the device: the composer names the equipment (OBX-18), and the device is the originating system.fhirconnectgainsDefaults::with_composer_id(#1666). fhirconnectcompiles an openEHR path that steps through aListattribute of the reference model, such asDV_TEXT.mappingsorDV_ORDERED.other_reference_ranges, as an occurrence axis inside the node’s value: a mapping anchored on the list takes one element per input occurrence, its children name the attributes of that element (meaning,range/lower), and the run reads and writes each element in both directions. A path that ends on a list with no child to fill an element is still refused at load asfc-uncarried-tail. The range of aREFERENCE_RANGE<DV_QUANTITY>reads asDV_INTERVAL<DV_QUANTITY>, the type the openEHR RM gives it.OpenehrTarget::newandOpenehrTarget::with_element_tailare no longerconst, andOpenehrTarget::listsandListAxisare new (#1694).- The
eehrxflaboratory mapping carries a result’s typed reference ranges both ways: a receivedObservation.referenceRangewith atypebecomes oneother_reference_rangesentry of the result’s quantity, itsmeaningfrom thetype, and is no longer declared lost, and each entry is served back as areferenceRangewith thattype(#1694). - A FHIRconnect
linkwhose FHIR side is the resource an enclosingreferencemapping entered ($fhirRootinside it, the shape of the published KDSKDS_composition.ymlextensions) now runs in both directions. Going into openEHR the entered resource is handed to theLinkedCompositionsseam under the literal it was entered by, with no second fetch; going out the link target becomes the reference the enclosing mapping writes, and no copy of the resource is created, declared asSkipReason::LinkedResource(skipped-linked-resourcein the facade’s loss log). Any otherlinkside is refused when the program compiles, asfc-link-side, naming file and line, where it was refused on the first run before.fhirconnectaddsresolve::program::mapping::LinkSide,ResolveCode::LinkSide,EngineError::LinkedTwiceandSkipReason::LinkedResource; a consumer that matches one of those enums exhaustively adds the variant (#1695). - A
fhirconnectrun out of openEHR declares each archetype element the composition holds at the mapped occurrence that no mapping reads, as the newLoss::Unreadwarning naming the element’s node id and openEHR path, so a served resource never drops recorded content with no trace. An element amanualentry carries through itsopenehrConditioncounts as read, and an element a skipped mapping already names is declared once (#1701). - The
eehrxfdischarge report mapping serves a problem’s severity, date of resolution and diagnostic certainty (provisionalorconfirmed), a procedure’s reasons, outcome and complications, and a discharge medicine’s route and order start in its onedosageInstruction(#1701). - The
eehrxfimaging mapping serves each imaging diagnosis as aDiagnosticReport.conclusionCodeand receives one back, and a served imaging report declares the findings, the differential diagnoses, the comparison findings, the clinical summary, the recommendations and the comments the composition records (#1700) (#1701). ferrobridge-hl7v2composes any HL7 v2 message:write::Writerjoinswrite::valuesegments, fields, repetitions, components and subcomponents in the message’s delimiters, escapes each value of its own by HL7 v2.9 chapter 2 §2.7.1 (the truncation character as\P\among them), echoes a field read in the same delimiters as the message wrote it, andWriter::composechecks the message against the structure thehl7v2-typestables define for the type and version its MSH declares and encodes it in the character set MSH-18 names.write::header::Mshwrites an originated header, andack::Header::replyandack::Header::msathe header and MSA of any reply.ack::renderis built on the writer, and anack::Errorconverts to itsERRsegment (#1715).map::single::segmentmaps one placed segment to one resource through its segment map, outside a messageBundle(a PID to thePatienta FHIR source would send), with the same outcomes and the resources its(Type)rows create beside it (#1716).- A shipped supplement of
datatype-xpn-to-stringwrites XPN.1 through$valuewhere the guide writes$this, a target its notation does not define, so PID-6 maps to the mother’s maiden name extension (#1728) (#1716). ferrobridge-hl7v2writes a FHIR R4 resource back as a v2 segment through the same v2-to-FHIR maps (map::inverse::segment), aPatientas a PID, returned as awrite::value::Segment. The guide maps v2 to FHIR only, so the inverse follows rules of our own over its rows, stated in the module documentation; every element it does not write back, a table value no map translates back and one that translates back to several codes are typed, countedinverse::Outcomes, never a guess. Five shipped FHIR-to-v2 table maps name one code where the guide’s maps, reversed, give several (administrative-gender, name-use, address-use, address-type and contact-point-system).parse::structure::segment_ofgives a segment’s table as a structure of a version places it, andmap::convert::temporalconverts a FHIR date or time back to its v2 form (#1716).ferrobridge-termspeaks FHIR R5 and the R6 ballot (6.0.0-ballot5) beside STU3, R4 and R4B, each request written and each answer read through that release’s generatedfhir-typescontract, so the$translaterenames (sourceCode,targetSystem,sourceSystem,sourceVersion) andmatch.relationshipcome from the generated tables. It also sendsCodeSystem/$validate-code, the instance-level forms, an inlineValueSetto$expand, and the inputsactiveOnly,excludeNested,displayLanguageandconceptMapVersion; invokes an operation in theGETform where every input is primitive (Config::with_form); sends any request throughClient::send; and writes and reads requests without its transport (invocation::Invocation::new,invocation::answer) for a caller that sends through its own (#1717).- The
fhir-searchcrate, the one FHIR R4 search value grammar (search.html §3.1.1.4) the FerroHEALTH FHIR servers read search values with: the split at unescaped,,|and$,unescaperefusing an escape of any other character,escape, the four token forms and:of-type, the default,:containsand:exactstring matches with the fold they compare, the nine prefixes, and the date to any precision with the range its precision implies, its instants in a caller’s zone and the recommendedapmargin. The facade reads its search values through it, so a token with more than one unescaped|, an unknown letter prefix and a year0000are refused as the grammar says, a date with more than nine fraction digits is read exactly, and a date in the year 9999 is read with a range open at the end of the calendar (#1718). ferrobridge-termsends a whole authoredValueSetas thevalueSetinput ofValueSet/$expand(request::ValueSetSource::Authored), with its enumerated concepts, imported value sets, excludes andcompose.inactive, in every release it speaks, and refuses one the release cannot read withError::AuthoredValueSetbefore sending.invocation::expand_answerreads an$expandanswer without the request that asked for it (#1735).ferrobridge-hl7v20.1.207 composes a v2 message against its structure as an integration profile constrains it:Writer::with_profiletakes aparse::profile::Profile, whose constraints set the minimum cardinality of named structure nodes, and the crate shipsIHE_ITI_21, which makes the QRI of the ITI-21 RSP^K22 optional (IHE ITI TF-2 §3.21.4.2.2, Table 3.21-6) where the v2.5RSP_K21requires it. Breaking:parse::grouping::grouptakes the profile as a third argument; pass&Profile::BASEfor the base structure (#1746).fhir-typeshas one resources feature per release:stu3-resources,r4-resources,r4b-resources,r5-resourcesandr6-resources. Each turns on every resource of that release alone, whileresourcesstill turns on every resource of each enabled release.fhirconnect,ferrobridge-hl7v2,eehrxf,ferrobridge-fhirpath,ferrobridge-validatorand the bridge now ask only for the releases whose resources they use. A build that adds a release for terminology alone, asferrobridge-termdoes with STU3 and R4B, then compiles none of that release’s resources (#1754).ferrobridge-hl7v2’swrite::value::Segmentreturns its fields (fields,field(position)) and sets one (set(position, field)), so a consumer can fill a field no map writes back, such as PID-1 or a PID-3 from its own identifier domains, in a segmentmap::inverse::segmentreturns (#1766).- The bridge and the operator console export their traces and metrics to an
OpenTelemetry collector under
[telemetry.otlp], dialing anhttps://collector through the platform verifier with the trust roots, client identity and minimum version of[telemetry.otlp.tls](#1795).
Changed
- Under
[cdr.credentials.onward]the facade lets the CDR derive the committer from the exchanged token: a single write sends noopenehr-audit-detailsheader, and a transaction’s CONTRIBUTION carries the placeholder committer, aPARTY_IDENTIFIEDwhose oneDV_IDENTIFIERnames the token’sissandsub, in itsauditand every version’scommit_audit(#1635). - The HL7 v2 face serves MLLP over TLS and requires a client certificate
that chains to
[hl7v2.tls] client_ca_file. Each[[hl7v2.senders]]entry names thecertificate_subjectits certificate carries, and a message is accepted only on a connection whose certificate names the sender its MSH-4 names; otherwise it is answeredAR. The bridge refuses to start without[hl7v2.tls]certificate_file,key_fileandclient_ca_file, without a sender, or with a sender that names nocertificate_subject. Upgrade step: issue each sender a client certificate, add its DNS name ascertificate_subject, and configure[hl7v2.tls].ferrobridge-hl7v2gainsmllp::listener::serve_tls,mllp::tlsandConnection::certificate(#1638). - An HL7 v2 message’s compositions name the sending application (MSH-3) as
the originating system and the bridge as the feeder system in
FEEDER_AUDIT, record the placer and filler numbers (ORC-2, ORC-3, OBR-2, OBR-3) asoriginating_system_item_ids, and move the message control id (MSH-10) tofeeder_system_item_ids.fhirconnectgainsOrigin::with_originating_itemsandwith_feeder_itemsfor it (#1664). fhirconnect:DefaultsandComposerIdmove tofhirconnect::engine::traverse::defaults. A consumer importsfhirconnect::engine::traverse::defaults::Defaultsandfhirconnect::engine::traverse::defaults::ComposerIdin place of theengine::traversepaths, which no longer resolve (#1673).- The
eehrxfpatient summary project (mappings::EPS) has one root context,ferrobridge_eu_eps.context, which maps the composition to acomposition-eu-epsand enters each section through the sub-context its section path names (FHIRconnect 1.0.0 sub-contexts). A medication action under the medication summary section is now aMedicationStatement-eu-epsof the medication summary, and one under the immunisations section stays an immunisation. This breaks the project’s API:EPS.contexts()names the root alone,ferrobridge_eu_eps_medication.contextandferrobridge_eu_eps_immunization.contextarescope: suband are no longer compiled on their own, and a document takes the run withDocument::with_mapped_composition(#1696). Document::with_mapped_sectiontakes one section of a run whose context wrote theComposition: the entries that section names, and eachProvenancenarrowed to them. A document assembled one section at a time takes only what it assembles from each run (#1696).openehr_mapping_core::index::WebTemplateIndex::example_compositionbuilds the example withopenehr_sdt::flat::example::example_compositionat themediumdetail level, falling back torequired, gives it the output form’s deterministicuidand validates it against the template. The method takes nonowargument any more, so a caller drops it, and an example names theuidopenehr-sdtderives from the template id (<uuid>::example.server::1) and that crate’s synthetic values. The operator API’sGET /operator/templates/{id}/exampleanswers the same example (#1705).openehr_mapping_core::index::WebTemplateIndex::build_partyandaccept_partyvalidate the party withopenehr_sdt::rm_instance::validate_party(the template, the RM invariants and the RM-mandated openEHR terminology), as a composition is validated, and refuse one that breaks them with the newPartyError::Unvalidated, which carries the validation’s messages. The FHIR facade answers a served party its template refuses with a502, and$toopenehrrefuses a mapped party that does not validate. A consumer that matchesPartyErrorexhaustively adds the variant (#1706).openehr-mapping-corereads, names and amends a node instance, andomoclfollows a hop, through theopenehr-sdtNavigatortheWebTemplateIndexnow holds (WebTemplateIndex::navigator), so an instance whose runtime name differs from the name its template path spells is reached where that name is redundant, and an OPT2-inlined archetype root is matched by the identifier the template records.fhirconnectwrites a manual entry’s text throughopenehr_rm::v1_2::paths::write::set_at_path, and a path it cannot write is the refusalEngineError::TailWrite(#1707).openehr-mapping-core,fhirconnectandeehrxfread the operational-template facts of a node (the embedded template id, the archetype’s term definitions, the ordinal options), the FLAT key of an RM attribute and the relative path between two nodes fromopenehr-sdtinstead of walking the OPT 1.4 themselves. An archetype root below an OPT 1.4T_COMPLEX_OBJECTnow answers its embedded template and terms in the index, as it already did ineehrxf. Breaking for a crate consumer:eehrxf::terminology::local::TermDefinitions::from_templatereturns aResult(a template that builds no Web Template isTermDefinitionsError::Build);fhirconnect::engine::rm::ENTRY_TIMESloses its key column andfamily_oftakes the owning class and answers anOption;openehr_mapping_core::index::paths::relativeno longer returnsMalformedAqlPath(#1708).fhirconnectandopenehr-mapping-coreread a generic RM type name (DV_INTERVAL<DV_QUANTITY>) and the class an attribute holds below it throughopenehr_rm::v1_2::typing(RmType,base_name,attribute_type) instead of splitting the name by hand. Breaking for a crate consumer:fhirconnect::resolve::derive::base_classis gone (useopenehr_rm::v1_2::typing::base_name), andderive::type_argumentanswers anRmType(#1709).- The facade’s FHIR search builds its AQL as the
openehr-queryAST and prints it with the crate’s canonical printer, which spaces WHERE comparisons and writes only the parentheses precedence needs.openehr-mapping-corenames a built composition’srm_versionfromopenehr_rm::Generation::earliest_for_compositioninstead of its own check of oneGENERIC_ENTRYdifference, so a composition no RM release decodes (aGENERIC_ENTRYover anITEM_SINGLE) is refused asPathError::InvalidCompositionwhere it was named 1.2.0. Theopenehr-*crates move to 0.0.136 (#1710). - The null flavours, the default
EVENT_CONTEXT.setting, the version container of anOBJECT_VERSION_ID, theETagentity tag, the ISO 8601 parts of aDV_DURATION, aDV_TIMEand a visit’s start and end, and the interface form of an archetype id are read through those crates. Breaking for a consumer offhirconnect:engine::lens::null_flavour::FLAVOURSgives way tofhir_default, andBRIDGEpairs each code with anopenehr_term::codes::NullFlavour;engine::lens::duration::Componentgives way toopenehr_base’sDurationDesignator; andengine::identity::versioned_object_uidreturns aString(#1710). $toopenehrand the facade’s writes give aDV_CODED_TEXTin theopenehrterminology whose value the mapping filled from its code the concept’s rubric from the openEHR terminology (openehr-term), in the template’s default language, where it stood as the code before. The code still stands for a language or a code the terminology does not carry (#1710).- The bridge and
ferrobridge-term0.1.148 takeferrohealth-smart0.13.0, the operator consoleferrohealth-session0.7.0, and the serverihe-atnaandehds-logging0.8.0, whose FHIR Feed bearer is on the same line, so the lock holds oneferrohealth-smart. The 0.13 line refuses a malformed JSON document without quoting it (GHSA-mhv7-3975-6xq3), and a refused token request keeps no part of the answer’s body.[cdr.credentials.onward]and each[[cdr.onward]]table takecache:falseholds no onward token, so every CDR call exchanges one at the issuer, with a warning at start, for a performance measurement and never for production. They also takeactor_assertion(defaultfalse):truenames the bridge’s client as the actor of an exchange sent without an actor token, with an assertion signed by theoauthkey. Under thekeycloakprofile, a Keycloak 26.8 impersonation token, which carries an RFC 8693actclaim, is admitted as delegated only when the issuer’sdelegateslists the impersonator. A product that hands itsTokenSourcetoferrobridge-termmoves toferrohealth-smart0.13 with it (#1714). ferrobridge-hl7v2reads\P\as the truncation character a v2.7 or later MSH-2 declares, and refuses it only in a message that declares none (HL7 v2.9 chapter 2 §2.7.1). A field beyond the table of a segment whose last field isvaries(QPD-3 “User Parameters (in successive fields)”, RDT) is no longer counted asextra-field.parse::Field::writtenreturns a field as the message wrote it,parse::Location::componentsthe ERL components, andparse::Delimiters::escapeescapes the truncation character. Breaking for a consumer:ack::Headerholdsparse::Delimiters(Header::delimiters), and a reply’s trailing empty fields are left out up to the last field valued or echoed (#1715).ferrobridge-term0.1.146 breaks its public API. The request types moved fromoutcometorequest.Validation.value_set_urlisValidation.value_set(arequest::Target, built byValidation::new),Expansion.value_set_urlisExpansion.value_set(arequest::ValueSetSource), andSubsumption.systemisSubsumption.code_system.Request::Lookupcarriesdisplay_language,Translationcarriesconcept_map_version, andExpansionandValidationcarry the new inputs. On the answers,ValidateOutcome::ValidandInvalidboth carrydisplay,outcomeanddetails,TranslateOutcome::TranslatedandNoMatchboth carrymatchesandused_maps,LookupOutcome::Foundcarriesdefinition,Expandedcarriesparametersandunclosed, andMatchanderror::Issuecarry the further elements of the answer. Pattern matches that name every field and struct literals of these types change;..keeps a match compiling (#1717).- The
openehr-*crates move to 0.0.133.openehr_mapping_core::template::TemplateSource::Opt2gainsprohibited_attributes, the attributes the template removed forexistence matches {0}asopenehr_adl::opt::create_optreports them in itsRawOpt, which the Web Template leaves out; a consumer that builds anOpt2source passes them, or an empty list for an OPT2 received without them, as the bridge does for an OPT2 the CDR serves (#1719). - The
openehr-*crates move to 0.0.135, andopenehr-mapping-core,fhirconnectandeehrxfare released on it. An archetype id in a mapping path or a node predicate is compared in its interface form with its namespace, so a namespaced reference (org.example::openEHR-EHR-EVALUATION.note.v1) no longer matches a template root that carries the id without one: “a namespace is never a wildcard” (openEHR BASEmaster07-referencing.adoc§Referencing) (#1724). fhir-search0.1.129 keepsjiffbehind its default featurejiff. Withdefault-features = falsethe escape, token, string, prefix and date grammar, the calendar check and the range a date’s precision implies compile with no time library;SearchDate::instants,approximate,Instantsandfirst_dayneed the feature. A consumer that reads tokens and escapes alone, such asihe-iti’s PIXm and PDQm sides, turns it off (#1730).ferrobridge-term0.1.147 breaks its public API: each FHIR release is a feature,stu3,r4,r4b,r5andr6, and the default isstu3,r4andr4b. A release whose feature is off has noWireVersionvariant, so a client in it does not compile. A consumer that speaks R5 or the R6 ballot turnsr5orr6on.ferrobridge-validator0.1.153 enablesstu3andr4, andferrobridge-hl7v20.1.204 andeehrxf0.1.186 enabler4. The bridge compiles the three releases its[terminology] wire_versionaccepts, so its release build no longer compiles every R5 and R6 resource, which ran the hosted runner out of memory (#1737).- The published crates follow Cargo SemVer: a compatible change bumps the
patch, and a breaking change bumps the minor while a crate is 0.x, judged
by
cargo-semver-checkson every pull request, in the merge queue and in the release plan. Require a crate of the line by a caret range (fhirconnect = "0.1") in place of an exact=pin; each crate’s README states the range.eehrxf,ferrobridge-fhirpath,ferrobridge-hl7v2,ferrobridge-term,ferrobridge-validator,fhir-search,fhir-types,fhirconnect,hl7v2-typesandopenehr-mapping-coremove one patch for the README section (#1745). fhirconnect0.1.246 puts the FHIRconnect language (model,resolve,engine,operations) behind a defaultmappingfeature. Withdefault-features = falsethe crate is the FHIR path model (tree) overfhir-types, with no openEHR crate and nojsonschema. A consumer that turns default features off and uses the language addsfeatures = ["mapping"](#1750).ferrobridge-term0.1.152 puts its HTTP client (reqwest, the retry budget, the credentials and the token provider) behind a defaultclientfeature, composed with the per-release features;smartimplies it. Withdefault-features = falsethe crate keeps the request, concept and outcome types and the transport-free writers and readers. A consumer that turns default features off and calls a server addsfeatures = ["client"](#1750).SECURITY.md, the post-market record and the book’s CRA user information namesecurity@cadasto.comas the email route for a vulnerability report, in place ofinfo@cadasto.com, which stays the manufacturer’s general address and the address for licensing and other business questions (#1772).- Breaking for a
ferrobridge-hl7v2consumer (0.2.0): the v2-to-FHIR message, segment and data type maps are generated into the crate at build time from the pinnedhl7.fhir.uv.v2mappings1.0.0 package, with FerroBRIDGE’s structure corrections as generator inputs, andmap::maps::Maps::corrected()(orMaps::guide(), the guide alone) replacesCorpus. Every table value is translated byConceptMap/$translateon a terminology server:map::map,map::single::segmentandmap::inverse::segmenttake anOption<&ferrobridge_term::client::Client>, and themapfeature carries the client. A table map’sTableGroupnames its source and target systems only (#1775). - FerroBRIDGE’s value maps for the HL7 v2 face (the corrected copy of
table-hl70202-to-contact-point-systemastable-hl70202-equipment-to-contact-point-system, the addedtable-hl70202-to-contact-point-useand the FHIR-to-v2 maps the PID inverse uses) ship as the FHIR packageterminology/hl7v2-values/, each under an id of its own and a url ofhttps://ferrobridge.eu/fhir/v2mappings/. Load it into the terminology server beside the guide’s package; the HL7 v2 face page of the book says how (#1775). - Every span of time and amount of data in the bridge’s and the console’s
configuration is a family
Duration("30s","5min") orByteSize("1MiB"), and its key names no unit.[server]takes theferrohealth-server0.7 keys:request_timeout,header_read_timeout,idle_timeout,body_limit,drain_delay,shutdown_timeout,retry_after,compression_min_sizeandtls.reload_interval. The bridge’s own keys follow:[cdr],[terminology],[fhir_outbound]and[facade.references]timeout;[cdr.retry]and[terminology.retry]initial_backoffandmax_backoff;[hl7v2]idle_timeout,frame_timeoutandframe_limit;[change_feed]poll_interval,backoffandmax_backoff;[events]confirm_timeout;[audit]max_sizeandwrite_timeout; and the console’s[bridge] timeout. A file or an environment that sets an old key is refused as an unknown key; rewrite it in the new form (#1795). ferrobridge-term0.2.0 builds onferrohealth-smart0.15, whoseTokenSourceitssmartfeature takes, so a consumer requiresferrobridge-term = "0.2"and moves toferrohealth-smart0.15 in the same change.ferrobridge-validator0.2.0,eehrxf0.2.0 andferrobridge-hl7v20.4.0 take the minor step with it, since each requiresferrobridge-termexactly (#1795).- The
[auth],[<lane>.credentials]and console[oidc]and[session]tables take the keys offerrohealth-smart0.15 andferrohealth-session0.9: every span of time is aDurationwith no unit in its key (clock_skew,jwks_max_age,jwks_refresh_interval,timeout,introspection.cache_max_age,[auth.basic] cache_ttl,refresh_margin,previous_key_overlap,sign_in_timeout,idle_timeout,absolute_timeout, andmax_onward_lifetimesuch as"1h"), and the outbound TLS of each is onetlstable (trust_roots_file,client_identity_fileorclient_identity,min_version) in place ofca_file,client_certificate_fileandclient_key_file. The old keys are refused as unknown keys (#1795). - The HL7 v2 value package keeps its FHIR manifest as
terminology/hl7v2-values/fhir-package.json, andscripts/terminology/pack-hl7v2-values.shpacks it into the FHIR package tarball withpackage/package.json, which is the form you load into the terminology server. A file namedpackage.jsonin the source tree was read as an npm manifest whose FHIR package dependencies npm resolves to other projects. A committed guard now refuses such a manifest (#1797). [audit]takes its Audit Record Repository as oneendpointtable,url,timeout,connect_timeout,retry,tlsandcredentials, sent throughihe-atna0.10’s FHIR Feed overferrohealth-smart’s outbound client.retryis the tries of one delivery, and itsmax_backoffthe wait between two rounds; the lane-levelbase_url,timeout,retry_maxandcredentialsare gone (#1809).[fhir_outbound]takes its endpoint as oneendpointtable,url,timeout,connect_timeout,retry,tlsandcredentials, sent throughferrohealth-smart’s outbound client: a delivery that got no answer or a5xxis tried again asretryallows, anhttpsendpoint behind a private root or asking for a client certificate is reached with the identity and rootstlsnames, and the lane-levelbase_url,timeoutandcredentialsare gone (#1809).ferrobridge-term0.3.0 builds onferrohealth-smart0.16. Behind thesmartfeature,Client::from_endpointbuilds a client from a product’s[<lane>.endpoint]table (smart’sEndpointSection) through smart’sOutboundClient: the table’s timeouts, no redirect, the TLS the product’sTlsBuilderbuilds, the retry, and the credential (HTTP Basic, or the client credentials token renewed once on a401).Client::with_httpis removed: a consumer that handed in its ownreqwestclient for mutual TLS or private roots names them in the table’stlsand builds throughfrom_endpoint.Credentials::Headercarries anAuthorizationvalue as it stands, andError::Endpointis the outbound client’s refusal of the table (#1809).ferrobridge-validator0.3.0,eehrxf0.3.0 andferrobridge-hl7v20.5.0 take the minor step withferrobridge-term0.3.0, which each requires exactly (#1809).[cdr]and[terminology]take their server as oneendpointtable,url,timeout,connect_timeout,retry,tlsandcredentials, the family’s outbound endpoint table, beside each lane’s own keys (demographicandonward;wire_versionanddisplay_fallback). The CDR’s engine and the terminology client speak the TLSendpoint.tlsnames, so a CDR or a terminology server behind a private root, or one that asks for a client certificate, is reached. The lane-levelbase_url,timeout,retryandcredentialsare gone, and the environment follows (FERROBRIDGE__CDR__ENDPOINT__URL) (#1810).
Removed
- The
[hl7v2]keysconcept_mapsandsupplements: the bridge carries the v2-to-FHIR structure maps and reads no ConceptMap directory, and the configuration refuses either key as unknown. The operator API’sGET /operator/hl7v2/concept-mapsdocument drops itsdirectoryandsupplementsmembers, and the console’s HL7 v2 settings and ConceptMaps tab drop them too (#1775). - From
ferrobridge-hl7v2:CorpuswithCorpus::load,Corpus::shippedandCorpus::supplement,map::translate::Translatorwith its offline translator,map::guide,map::supplement, and theshipped-mapsandterminology-serverfeatures (#1775).
Fixed
- A debug build of
eehrxfbuilds an operational template from the CKM archetypes, compiles the EU MPD and EPS projects and maps them on a thread with the default 2 MiB stack, so a consumer no longer needs a larger stack for it. The overflow was in theopenehr-langlexer, which 0.0.130, the pinned version, fixes (FerroHEALTH/FerroEHR#4961) (#1526). eehrxf::document::Document::with_mapped_compositionkeeps theemptyReasona mapping run writes on a section, in the newMappedSection::empty_reasonfield, andMappedSection::into_sectioncarries it into the document, which writes the concept as the run wrote it (a code oflist-empty-reason, or LOINCLA4720-4, whichSectionEmptyReasonEuImagingalso includes). Before, the reason was dropped and the document refused the empty section. A consumer that writes aMappedSectionliteral adds the field, andSection::empty_becauseis no longer aconst fn(#1626).- A FHIRconnect
hierarchy.splitwhose node lies outside the repeating anchor of the file it is slotted from no longer takes that anchor’s instance for the repeating nodes above it: each group creates the next free element under the instances those nodes are bound to. Coming out of openEHR, a mapping whose node sits below two or more repeating nodes its parent does not bind reads every instance of each, where it read only the first instance of all but the outermost (#1647). - A FHIRconnect
openehrConditionwhose target lies outside the repeating node its mapping reads (atargetRootunder$archetype/protocol, say, on a mapping inside an event) reads the target’s own instance coming out of openEHR instead of the input’s instance at the same depth, so the condition no longer fails for every event past the first (#1648). - A composition whose operational template prohibits its
context(existence0..0, which RMCOMPOSITION.context0..1allows) is built with noEVENT_CONTEXTand no context defaults, and the facility an HL7 v2 message names goes tofeeder_audit.originating_system_audit.location. Theopenehr-*crates move to 0.0.130, whose Web Template leaves/contextout of such a template (#1689). - A
fhirconnectcontext refuses an extension’soverwriteorappendTothat addresses a name two sibling methods share, asfc-duplicate-method-name, even when no slot of the context reaches the model the extension extends. Before, such an edit was refused or accepted depending on whether the context reached its model (#1702). - A FHIR
Durationwhose value has a fraction in any unit but the seconds (1.5 d) is refused going into openEHR, where it was written as the durationP1.5D, which openEHR BASE does not admit. A visit start or end written in the ISO 8601 basic form is read, and a facadeIf-Matchthat names an openEHR version of a composition whose id is an upper-case UUID is compared in the spelling the CDR issued (#1710). - A
DV_INTERVALa mapping writes bound by bound, such as therangeof another reference range of a quantity, carries all four flags ITS-JSON requires (lower_unbounded,upper_unbounded,lower_included,upper_included): an absent bound is unbounded and not included, a present one bounded and included, and a flag a mapping wrote is kept (#1722). - Every published crate of the line requires its workspace siblings exactly
(
=X.Y.Z), so a crate published from here always builds against the sibling it was released with. A range letferrobridge-validator0.1.151, already on crates.io, resolveferrobridge-term0.1.146, whose breaking change it never saw.eehrxf,ferrobridge-fhirpath,ferrobridge-hl7v2,ferrobridge-term,ferrobridge-validatorandfhirconnectmove one patch for the new requirements, andcrate-version-guardrefuses a caret or tilde between workspace crates (#1736). - A FHIR identifier search through the demographic extension counts two parties whose
HIER_OBJECT_IDs share a root and differ in theirextensionas two parties. The facade reads each party uid throughopenehr-base, naming a version by itsobject_idverbatim and any other uid whole, where it kept only the text before the first::(#1741). ferrobridge-hl7v2’s map writes an XTN-3 ofCPasContactPoint.systemphonewithusemobile(when XTN-2 is empty). Before, it wrotesystemmobile, which the required R4 binding ofContactPoint.systemdoes not allow. The fix ships as supplements over the guide’stable-hl70202-to-contact-point-systemanddatatype-xtn-to-contactpoint(#1762).ferrobridge-hl7v2’s map writes the guide’s data-absent-reasonunknownonContactPoint.systemfor an XTN with neither XTN-3 nor XTN-4, so theContactPointkeeps R4’scpt-2. The inverse reads a primitive’s extensions under its_namemember, so thatContactPointwrites back with nothing left over (#1763).ferrobridge-hl7v2’smap::inverse::segmentreturns aSendfuture, so it can run inside a task on a multi-threaded tokio runtime (#1769).fhirconnect0.1.249 converts a composition out of openEHR when a mapping reads a value its node does not hold and a later mapping writes the same repeating FHIR element. The empty mapping took the first instance, so the run refused with an occurrence gap: a KDS vital status composition with a composer and no health care facility did not convert to anObservation(#1781).- Breaking for a
ferrobridge-hl7v2consumer (0.3.0):parse::profile::Profilegainsrepetitions, the fields whose repetition a profile sets, andIHE_ITI_21lets QPD-3 repeat inQBP_Q21andRSP_K21of v2.5, as IHE ITI TF-2 §3.21.4.1.2.3 makes it (“one or more repetitions”, one per query parameter). A writerwith_profile(&IHE_ITI_21)therefore composes an RSP^K22 that echoes a query with two parameters instead of refusing it with anExtraRepetitionat QPD-3. QPD-2 keeps its one repetition (#1805).
Security
Shipped with functional changes because: FerroBRIDGE has refused a Basic user holding a system/ scope at start-up since the change that moved it to ferrohealth-smart 0.9.0, so no FerroBRIDGE build is exposed to GHSA-jhg2-jwjp-hq74 and there is no security update to separate from the other changes this release carries.
- A Basic user of
[[auth.basic.users]]holding asystem/scope is refused byferrohealth-smart0.9.1 (GHSA-jhg2-jwjp-hq74, CWE-269, CWE-863), which names the user and the scope, and a Basic caller never carries asystem/scope at request time. The bridge’s own start-up check for the same rule is removed in its favour. Upgrade step: give each Basic user theuser/scopes a person holds, and move each machine on Basic to a client credentials client (RFC 6749 §4.4) of amachinesorpersonsissuer (#1641). - The bridge takes
ferrohealth-smart0.13.1 (GHSA-5qm7-v4fw-p2v9): a refusal from an issuer’s key set, discovery or token introspection endpoint no longer keeps the upstream response body in its error, so no body reaches a log line. Introspection keeps only the bounded RFC 6749 §5.2errorcode (#1798).
0.0.22 - 2026-11-06
Callers by kind, and each request under its person. The bridge moves to
ferrohealth-smart 0.9.0 with ferrohealth-session 0.3.0 and FerroAUDIT
0.4.0: every trusted issuer is an [[auth.issuer]] table that names its
kind and profile, a Basic credential is always a person’s, and the audit
line names the caller’s kind. With [cdr.credentials.onward], each facade
request reaches the CDR under a token exchanged for the person who made it.
The configuration changes break: each entry below carries its upgrade step,
and config check names the key to move. ferrobridge-term 0.1.143
requires ferrohealth-smart 0.9.0, so a consumer moves both in one change,
and the crates that require it follow. eehrxf maps discharge and imaging
reports between openEHR and HL7 Europe, receives both, and refuses a
document whose sections break its composition profile’s section rules, and
ferrobridge-validator holds a dependency of another FHIR release, which
adds a ResolveError variant. A FHIRconnect mapping below a repeating
anchor may name a node outside it.
Added
eehrxfmaps discharge reports between openEHR and HL7 Europe Hospital Discharge Report 1.0.0 through the shippedHDRproject (featuresopenehranddischarge), over FerroBRIDGE’s discharge report template, a transfer of care summary over published CKM archetypes. The composition maps tocomposition-eu-hdr, its context to theencounter-eu-hdrof the stay, and each problem or diagnosis, procedure and medication order of its three sections to acondition-eu-core,procedure-eu-coreormedicationRequest-eu-coreentry of the section of the same name, with oneProvenanceper run.Document::with_mapped_compositiontakes the run into abundle-eu-hdr, answering each mapped section placed in the form’s slot as aMappedSection, andMapping::to_openehrmaps a received discharge report into one composition of the template.scripts/vendor/ckm-discharge.shvendors the three archetypes the template adds to the CKM medication set (#1325).eehrxfreceives a discharge report: with thedischargefeature,ReceivedDocument::categorynamesCategory::Dischargefor a document whoseComposition.typecarries LOINC34105-7, the codecomposition-eu-hdrof HL7 Europe Hospital Discharge Report 1.0.0 fixes, andCategory::profilesnamesbundle-eu-hdrandcomposition-eu-hdrforReceivedDocument::check(#1325).eehrxfmaps an imaging report between openEHR and the HL7 Europe Imaging Report 1.0.0-ballot document. The newIMAGINGproject (featureimagingwithopenehr) mapsOBSERVATION.imaging_exam_result.v1toDiagnosticReportEuImagingand theImagingStudyEuImagingit references, over FerroBRIDGE’s ADL 2 imaging report template of published CKM archetypes. The testkit vendors the archetype throughscripts/vendor/ckm-imaging.sh, and the EHDS readiness matrix lists both profiles (#1326).eehrxfreceives an imaging report:ReceivedDocument::categorynames the imaging category from theMedical-Imagingcoding ofComposition.category, whichCompositionEuImagingrequires while it leavesComposition.typeopen, andCategory::profilesholds the document toBundleReportEuImagingandCompositionEuImagingof HL7 Europe Imaging Report 1.0.0-ballot. The newCategory::document_categorynames the coding. A reference that names its target byidentifieralone, with notype, is now admitted at an element whose R4 target types are listed and include noPatient,GrouporResource, such as the accession number the guide writes inImagingStudy.basedOn(#1326).ferrobridge-validatorholds a dependency of another FHIR release, such as the FHIR 5.0.0xtehr.eu.ehds.modelsthat HL7 Europe Hospital Discharge Report 1.0.0 depends on, instead of refusing the package set: the package satisfies the dependency, its resources are never read, its own dependencies are not required, and a canonical only it defines is refused with the newResolveError::OtherRelease.Package::fhir_versions,PackageSet::other_releasesand theRelease::FHIR_VERSIONandRelease::CORE_PACKAGEconstants are new.ResolveErrorgains a variant, so a consumer that matches it exhaustively adds an arm. HDR 1.0.0,hl7.terminology.r47.4.0 andxtehr.eu.ehds.models1.0.0 join the profile package pins, and a received discharge report validates throughReceivedDocument::validate(#1600).[cdr.credentials.onward]: each FHIR facade request reaches the CDR under the person who made it. The bridge exchanges the caller’s access token per request for a token of the CDR’s issuer that names the same person, through OAuth 2.0 Token Exchange (RFC 8693,audienceunder the Keycloak profile) or the Entra ID on-behalf-of JWT bearer grant (RFC 7523), and checks the issued token’s issuer, audience, lifetime, actor and person before it uses it. The token is cached under the caller’s token and the target within its expiry. A machine keeps the bridge’s own client credentials token; a patient, another party’s organisation, a guest or a Basic user is refused with403. A failed exchange fails the request with the token endpoint’s400or403, a401with the claims challenge forinteraction_required, or a502, and the bridge’s own token is never sent in its place (#1582).
Changed
eehrxf: theCompositionof every documentDocument::into_bundlewrites now claims its form’sCompositionprofile inmeta.profile, so a received document selects the FHIRconnect context that maps its composition (#1325).- Every trusted authorization server is an
[[auth.issuer]]table that requireskind(persons,patients,machinesorfederation) and holds every issuer setting itself:audience,algorithms,clock_skew_seconds, thejwks_*keys,timeout_ms,modewith its[auth.issuer.introspection]table, androle_claims. Each table takes aprofile(rfc9068by default,entra,keycloak,oktaornl) with any profile key set over it, and a person’s token of apersonsissuer is admitted only through a client listed infirst_party_clientsordelegates. An issuer withmode = "introspection"now sits beside issuers checked by their key sets. Upgrade step: write each issuer as an[[auth.issuer]]table with itskind, move every section-level issuer key onto each table it held for, list the clients your people sign in with (the operator console’s included) infirst_party_clients, and under thekeycloakpreset list each service account’ssubinapp_only = [{ subjects = [...] }].config checknames the key to move (#1585). [auth] scopeless_subjectsentries are tables{ issuer, sub }and admit a machine’s token alone. Upgrade step: rewrite each string entry, bare or<issuer>#<sub>, as a table naming its issuer (#1585).- The audit line of every facade and operator request carries three fields
more: the caller’s
kind(person,patient,system,delegatedand the other kinds offerrohealth-smart), andbindingandparty, which read-while the bridge binds no party. Upgrade step: a log pipeline that holds the field set adds the three (#1585). - The quickstart
compose.yamlmounts./configat/etc/ferrobridgeread-only and passesFERROBRIDGE_CONFIGthrough, so the[[auth.issuer]]tables live inconfig/ferrobridge.toml; it no longer passesFERROBRIDGE__AUTH__ISSUERandFERROBRIDGE__AUTH__AUDIENCE. The operator console’s Server and access tab counts the issuers and drops the Audience row, which is now each issuer’s (#1585). - A Basic credential of
[[auth.basic.users]]is always a person’s, never a machine’s, and a Basic user listing asystem/scope refuses the start, naming the user. Upgrade step: give each machine on Basic, such as an ETL client, a client credentials client (RFC 6749 §4.4) of amachinesorpersonsissuer the section trusts, with thesystem/scopes it needs, and keep on Basic only people, withuser/scopes or the operator scope (#1585). - The bridge moves to
ferrohealth-smart0.9.0, withferrohealth-session0.3.0 for the operator console,ihe-atnaandehds-logging0.4.0 for the access-record lane,ferrohealth-server0.5.1 and FerroUI 0.6.7, so one copy offerrohealth-smartbuilds into each binary. The access record carries no party binding, actor chain or representation of the bridge’s own.ferrobridge-term0.1.143 requiresferrohealth-smart0.9.0 behind itssmartfeature, andsmart::SmartTokentakes the 0.9.0 token source: a consumer movesferrohealth-smartto 0.9.0 and pinsferrobridge-term = "=0.1.143"in one change (#1585). - The
eehrxfIMAGINGproject mapsImagingStudy.modalityandImagingStudy.startedfrom the imaging examination result’s event, where the archetype holds them, and no longer accounts for them as losses: the study’s reference sits below the event and reaches the protocol outside it for the identifier, the status and the description (#1612). eehrxf::document::Document::into_bundleholds the sections to the section invariants of each HL7 Europe composition profile and refuses a document that breaks one: a patient summary section ofsectionProblems,sectionAllergiesorsectionMedicationswith no entry and no empty reason (composition-eu-epsips-comp-1), an imaging report section with neither (CompositionEuImagingeu-imaging-composition-1), each with the newDocumentError::Unreasonednaming the section, and a discharge report with neither a discharge summary nor a hospital course section (composition-eu-hdrcmp-hdr-2), with the newDocumentError::Absent. The newForm::rulesfield lists a form’sSectionRules, so a consumer that writes aFormliteral adds it; one that assembles such a document gives each empty section anEmptyReasonwithSection::empty_because(#1620).eehrxf::document::Document::into_bundlerefuses a patient summary or an imaging report that lacks a section slice its composition profile requires (min = 1onsectionProblems,sectionAllergies,sectionMedications,sectionProceduresHxandsectionMedicalDevicesofcomposition-eu-eps, and onimagingstudy,order,historyandprocedureofCompositionEuImaging), with the newDocumentError::Lackingnaming the slice and the newSectionRule::Required(#1625).
Removed
- The flat
[auth] issuer = "…"form, the section-level issuer settings (audience,algorithms,clock_skew_seconds,jwks_max_age_seconds,jwks_refresh_interval_seconds,jwks_file,timeout_ms,mode,introspection,role_claims), andtoken_profileat either level. Each failsconfig checknaming its replacement. Upgrade step: write an[[auth.issuer]]table with itskindand move each key onto it; in place oftoken_profile = "jwt", select aprofileor settoken_types,required_claimsand the classification keys on the issuer table (#1585).
Fixed
- A FHIRconnect mapping below a
followedByanchored at a repeating node can name a node outside that anchor, by../or by an absolute$archetypepath, and inside areferenceplaced there: the FLAT build no longer refuses it with an occurrence count mismatch, and the node keeps the instance of only the repeating nodes it lies below (#1612). ferrobridge-validator: anAttachment.urlthat resolves to an entry of a document Bundle, by itsfullUrlor relative to the holding entry’s base, now counts as a reference to that entry for the R4 documents.html §3.3.1 rule that a document holds only what its Composition references directly or indirectly. A url that names no entry marks nothing. This is our reading where the page is not explicit. The HL7 Europe Imaging Report semi-structured example, whose PDF Binary is named only byDiagnosticReport.presentedForm.url, now validates (#1614).ferrobridge-validator: a dependency named by a patch range (4.2.x) is no longer satisfied by a pre-release (4.2.5-comment) unless the range names that label (4.2.x-comment), and the patch must be numeric. The rule is the onescripts/vendor/profile-packages.shpins a range by (#1615).- An
onwardtable under[terminology.credentials],[audit.credentials]or[fhir_outbound.credentials]refuses the start, and so does[cdr.credentials.onward]on a server whose[auth]is off. Before, the table loaded and was ignored (#1582).
Security
Shipped with functional changes because: the GHSA-pfgx-xq28-2629 fix reaches the bridge through ferrohealth-smart, and the 0.9.0 move this release makes for FerroEHR’s ferrobridge-term replaces the very scopeless_subjects and role_claims shapes the 0.8.9 fix introduced, so a security-only patch would ship a configuration form the next release refuses; RUSTSEC-2026-0440 affects no shipped artefact (the VEX statement below records why).
- RUSTSEC-2026-0440 (
astral-tokio-taris unmaintained, with no patched version) does not affect FerroBRIDGE:testcontainersreaches the crate only in the test harness, and the server binary, theferrobridgeimage and theferrobridge-consoleimage do not contain it.deny.tomlaccepts the advisory until atestcontainersrelease drops the crate (security/vex/rust-advisories.openvex.json) (#1575). [auth] scopeless_subjectsandrole_claimshold per issuer, throughferrohealth-smart0.8.9 (GHSA-pfgx-xq28-2629, CWE-863, CWE-639). Before it, beside several[[auth.issuer]]tables both lists applied to every trusted issuer’s tokens: a token from any of them whosesubwas listed got system-wide access without a scope, and any of them could assert roles. In this release eachscopeless_subjectsentry is a table{ issuer, sub }and each issuer’srole_claimssits on its own[[auth.issuer]]table, so both hold for one issuer alone; an entry naming an issuer the section does not trust refuses the start. Upgrade step: the[auth]steps under Changed and Removed (#1586).
0.0.21 - 2026-11-05
A correctness release on the way to the whole FHIRconnect mapping library.
A template over a specialised ADL 1.4 composition archetype carries one
context, so a mapping that names $composition/context resolves against
it, and the compiler refuses at load the mappings that before failed only
on their first run. Three changes break a consumer: fhirconnect 0.1.223
refuses at load a mapping whose types no data-type page pairs
(fc-unpaired-types) and a reference into a choice element the path does
not type (fc-reference-into-choice), so a mapping set that loaded before
can be refused now; FhirKind and FhirValue gain an Instant variant,
which an exhaustive match adds; and eehrxf 0.1.158, fhirconnect
0.1.223, openehr-mapping-core 0.1.143 and ferrobridge-hl7v2 0.1.182
require openehr-* 0.0.129, so a consumer that pins the openehr-* crates
moves them together. The crate line moves one patch per change, a breaking
one included, so a consumer pins it exactly. Passing the whole mapping
library (#1546) and the issues that wait on an upstream publication moved
to v0.0.22.
Fixed
- A template over an ADL 1.4 composition archetype that specialises another, as
openEHR-EHR-COMPOSITION.report-result.v1specialisesreport.v1, carries one/contextnode, so a mapping that names$composition/contextresolves against it. Before, the operational template held the composition’scontexttwice and every such mapping was refused withfc-ambiguous-template-node. Theopenehr-*crates move from 0.0.128 to 0.0.129, which carries the fix, so the nexteehrxf,fhirconnect,openehr-mapping-coreandferrobridge-hl7v2publish requiresopenehr-* ^0.0.129(#1549). fhirconnect: the compiler refuses at load, naming file and line, an untyped mapping whose openEHR class and FHIR type no page of the data-type chapter pairs (fc-unpaired-types), a data value mapped onto a resource root (the same code), and areferencewritten into a choice element whose type the path does not name (fc-reference-into-choice). Each failed only on the first run that carried the element before.instantnow pairs withDV_DATE_TIME, our own decision whereDV_DATE_TIME.adoclists noinstant: going into openEHR it is total, and going out of openEHR aDV_DATE_TIMEthat is not a validinstantis refused withLensError::NotAnInstant, naming the part it lacks (InstantShortfall).FhirKindandFhirValuegain anInstantvariant, which a consumer matching them exhaustively adds (#1566).
0.0.20 - 2026-11-05
Two steps toward the whole FHIRconnect mapping library. A composition model
can start a context compiled against an ADL 2 operational template, read
through the lineage of the template root, and a slotArchetype may name a
model already on its slot chain, as the library’s medication cluster does.
The eehrxf laboratory project lists its composition context beside the
laboratory result. Two calls break: fhirconnect 0.1.221 renames
EngineError::SlotCycle to EngineError::SlotDepth (and the diagnostic
fc-slot-cycle to fc-slot-depth), and in eehrxf 0.1.156
Mapping::compile_project(&LABORATORY) compiles both contexts, so a consumer
narrows the project with LABORATORY.with_context(..) first. The crate line
moves one patch per change, a breaking one included, so a consumer pins it
exactly.
Added
fhirconnectandopenehr-mapping-core: a composition model (COMPOSITION.report.v1.Conditionand its kin) can be thestartof a context compiled against an ADL 2 operational template. The template root carries every archetype its lineage names (AOM2 §3.6.4, §3.6.6), whichWebTemplateIndexkeeps from the OPT2’sparent_archetype_id, or fromWebTemplateIndex::with_root_lineagewhen the caller holds the template source and the OPT states no parent.WebTemplateIndex::root_lineagereads it. An OPT2 that states no parent and is given no lineage still refuses a composition start as an unresolved archetype root (#1550).
Changed
eehrxf: the laboratory mapping project listsferrobridge_eu_lab_composition.contextbeside its laboratory result context, soProject::with_contextcompiles theComposition-eu-labcontext from the embedded files. Both contexts mapKDS_Laborbericht, soMapping::compile_project(&LABORATORY)now compiles two programs, and a run that used it for the laboratory report narrows the project first:LABORATORY.with_context("ferrobridge_eu_laboratory.context")(#1544).fhirconnect: aslotArchetypemay name a model already on its slot chain, as the mapping library’s medication cluster does for its constituents. The compiler follows the recursion while the template carries a node, ends it where the template stops nesting the chain’s archetype, and refuses a chain that enters one model more thanresolve::program::SLOT_DEPTH_LIMIT(8) times or re-enters it at no deeper place. The diagnosticfc-slot-cycleis replaced byfc-slot-depth, andEngineError::SlotCyclebyEngineError::SlotDepth, which carries the limit: a consumer that matches either changes to the new name (#1551).
0.0.19 - 2026-11-04
A family upkeep release. The server and the operator console move to
ferrohealth-config 0.2.8, ferrohealth-server 0.4.3 and
ferrohealth-telemetry 0.2.4, and both binaries run on the FerroSYS run
path, which answers help, the version, a usage error and a runtime that
cannot start as every FerroHEALTH binary does. The eehrxf EPS project lists
its immunisations context beside the medication summary. eehrxf 0.1.153
breaks one call: Mapping::compile_project(&EPS) compiles both contexts,
so a consumer narrows the project with EPS.with_context(..) first. The
crate line moves one patch per change, a breaking one included, so a
consumer pins it exactly.
Changed
eehrxf: the EPS mapping project listsferrobridge_eu_eps_immunization.contextbeside its medication summary context, soProject::with_contextcompiles the immunisations from the embedded files. Both contexts map one template, soMapping::compile_project(&EPS)now compiles two programs, and a run that used it for the medication summary narrows the project first:EPS.with_context("ferrobridge_eu_eps_medication.context")(#1531).- The server and the operator console run on
ferrohealth-config0.2.8,ferrohealth-server0.4.3 andferrohealth-telemetry0.2.4. A configuration refusal no longer echoes a value written unquoted, such as a secret set as a number, and a refusal inside an array of tables names its key with the element’s index. The panic line of the log carries the server’s request id of the request that panicked. The request span is named{method} {route}(#1537).
0.0.18 - 2026-11-04
A short release that closes the one-owner reshape. A FHIRconnect manual
entry that writes into openEHR records the reads of the FHIR elements it
names, so eehrxf no longer declares such an element lost. The eehrxf
imaging and discharge codings carry the displays the HL7 Europe EU Health
Data API package gives them, and one named context of an eehrxf mapping
project compiles alone. The operator console runs on ferrohealth-session
0.2.2. eehrxf 0.1.151 removes the public constant
document::imaging::PRIORITY_CATEGORY: a consumer uses
category::PRIORITY_SYSTEM, which holds the same URL. The crate line moves
one patch per change, a breaking one included, so a consumer pins it
exactly.
Added
eehrxf:Project::with_context(name)narrows a shipped mapping project to one of its context mappings, soMapping::compile_projectcompiles that context alone from the embedded files and a run over a template two contexts map has one program to select (the MPD project’s request and dispense). A name the project does not compile is refused withmappings::UnknownContext(#1527).
Changed
- The operator console runs on
ferrohealth-session0.2.2.[oidc] resolvereaches the provider’s host at a fixed address, and[oidc.tls]names the client certificate the console presents to its provider (RFC 8705 §2) and the lowest TLS version of that connection.POST /logoutgoes to the provider’s end-session endpoint only when the ended session holds an ID Token, so a Basic sign-out returns to the console’s signed-out page (#1521).
Fixed
fhirconnect: amanualentry that writes going into openEHR records a read of each FHIR element its paths name, at the occurrence its mapping binds, soOutcome::readsno longer leaves out an element a status table carried. An entry itsfhirConditionrefuses, or one that runs out of openEHR only, records none.eehrxfno longer declares such an element lost once a project accounts for it (#1518).eehrxf: the imaging form’sMedical-Imagingpriority category and the discharge report’s18842-5section now carry the display the vendored HL7 Europe EU Health Data API 1.0.0-ballot gives them, and the imaging report category85430-7takes that guide’s value-set display,Diagnostic imaging report, over an example’s.document::imaging::PRIORITY_CATEGORYis removed: usecategory::PRIORITY_SYSTEM, the same URL. Five section codes no vendored HL7 Europe, MyHealth@EU or Xt-EHR material gives a display (81338-6,57080-4,77599-9,48767-8,LP173421-1) still carry none (#1523).
0.0.17 - 2026-11-04
The interoperability-component release. eehrxf feeds the patient
summary’s medication summary from medication orders, so a patient whose
medicines a CDR records only as orders has them in the summary. It feeds the
immunisations from the medication actions the CKM vaccination list section
holds, placing each entry by the template section that records it, never by
its content (hazard I-03). Every coding of a document the component writes
now carries its display, read from the MyHealth@EU catalogue and the HL7
Europe guides, so a receiver with no terminology server can read it. The
prescription and dispense collections name each entry by fullUrl, and the
CI fhir-validator job holds them to HL7 Europe MPD 1.0.0. $tofhir maps no
resource from a composition that holds no occurrence of the context’s start
archetype. The operator console moves to FerroUI 0.6.6 and draws a mapping
revision’s changes as a line diff. The model layer FHIRconnect and OMOCL
share moves into openehr-mapping-core. The laboratory project carries a
received result’s reference range and its order into openEHR and back, and
names each received element it carries nowhere. The openehr-* crates move
to 0.0.128, which accepts an ADL 2 template’s sections of one archetype told
apart by name.
Four changes move a consumer’s code. The published crates drop their
forwarding functions, and the longest modules are split by concern, which
moves public items to new paths (both listed under Changed). fhirconnect’s
$tofhir over a composition without the start archetype answers
EngineError::NotApplicable where it mapped one resource from the root.
The published crates require openehr-* ^0.0.128.
Added
eehrxf::mapping::identifiednames every entry of thecollectionBundle a mapping run answers by thefullUrl{base}/{type}/{id}, giving the run’sProvenancea free id, so the prescription or dispensation a system exchanges identifies each resource it holds (FHIR R4Bundle.entry.fullUrl). The CIfhir-validatorjob now runs HL7’s FHIR Validator over the mapped MPD prescription and dispensation againsthl7.fhir.eu.mpd1.0.0 (#1321).eehrxfships an HL7 Europe Patient Summary mapping project (mappings::EPS) over FerroBRIDGE’s patient summary template, built from CKM archetypes. It maps each medication order of the template’s medication summary section to aMedicationStatement-eu-eps, so a patient whose medicines a CDR records only as orders has them in the medication summary, and each medication action of its immunisations section to animmunization-eu-core. The patient summary crosswalk names these openEHR sources (crosswalk::patient_summary::SOURCES): an entry is placed by the template section that holds it, so a composition with a vaccine and a medicine puts each in its own section (#1323).eehrxf’s laboratory project carries a received result’s reference range into thenormal_rangeof its quantity and back out, and the order a report answers into theKDS_Laborberichttest request details by its identifier. A project now accounts for received elements (Project::accounted,Mapping::accounting): each received instance of one that the run carries into no structured element, such as a typed reference range or the order a result answers, is awarningissue in the composition’sOperationOutcome.ReceiveMappingErrorgainsOriginal.fhirconnectresolves a path below a polymorphicELEMENTto the one value alternative whose class carries its tail, reads a bound belownormal_rangeas the quantity’s own class, and names the resource of eachLocation(Location::resource,Type/id) (#1481).
Changed
- The published crates drop the functions that only forwarded to another,
so a caller names the one that decides:
fhirconnecttakes the template pin inresolve::select::select_by_profile, the code inengine::library::ratio::to_fhirandto_openehr, andresolve::derive::STRUCTURALin place ofis_structural;ferrobridge-hl7v2takes the row’s source inmap::condition::parseand dropsparse::Component::textforsubcomponent(1);eehrxftakes an optional template context interminology::transcode::transcodeandtranscode_with, which replacetranscode_localandtranscode_local_with;ferrobridge-validatornames the release inset::PackageSet::loadandnew, which replaceload_releaseandnew_release;omop-cdmtakes the origin inwriter::CdmWriter::commit, which replacescommit_from, and rebuilds an era throughderived::era; the mapping sets and the registry are built withDefault(#1415). openehr-mapping-coreowns what FHIRconnect and OMOCL share at the model layer:schema::SchemaError,schema::compileandschema::validate(the draft-07 compilation of a mapping schema and the step that turns each schema error into a positioned diagnostic),diagnostic::LanguageCodes(a language crate’s code set, converted into aDiagnosticCode),diagnostic::render_admittedandloader::in_path_order.fhirconnectandomocldrop their ownSchemaErrorand theDisplayof theirModelCode, and implementLanguageCodesfor their code sets; every diagnostic code, position and message stays as it was (#1416).- The published crates’ longest modules are split by concern, which moves
their public items to new paths:
ferrobridge-hl7v2serves and sends throughmllp::listener(serve,serve_with,Connection,Handler,Timeouts) andmllp::sender(send,SendTimeouts,SendError);fhirconnectnamesengine::rm::carried::{Carried, carried},engine::seam::identity(IdentitySink,IdentityRequest,ResourceIdentity,ResourceRequest,DerivedIdentity) andengine::cell::withheld::{withheld, uncarried_code};eehrxfnamesdocument::form(Slot,slot,Code,Companion,Kind,Authorship,Form) anddocument::section(Section,EmptyReason) (#1423). - The operator console moves to FerroUI 0.6.6, and its assets are served
under
/ferrohealth-ui/0.6.6/. A mapping-set revision’s page draws each changed file as a line diff: every line with its numbers before and after, a removed line marked “−” and an added line “+”, each with its word for a screen reader. It replaces the plain unified text of the code viewer. The table of the revision’s changed files heads its key column “File” (#1501).
Fixed
eehrxf’s structural check (receive::conform) matches an occurrence of a choice element such aseffective[x]to its type slice by the type its property names. It refused a conformanteffectivePeriodunder the closed type slicing ofMedicationStatement-eu-epsbefore (#1323).ferrobridge-fhirpath: a\uescape in a string or delimited identifier takes four hexadecimal digits and no sign, as the FHIRPath N1 grammar’sUNICODErule writes it.'\u+041'reads asu+041(N1 §4.1.2: a backslash before a non-escape is dropped) where it read asA, andunescape('json')refuses\u+041(RFC 8259 §7) (#1425).fhirconnect’s$tofhirno longer maps a resource from the composition root when the composition holds no occurrence of the context’s start archetype. That resource held only a context’s constant mappings, for a record that is not there. The run now refuses as not applicable, as it does when the context’s condition admits no occurrence (FHIRconnect 1.0.0context-mappings.adoc§Start,rest-api.adoc§$tofhir).eehrxf’s patient summary medication context drops the guard it carried against it (#1486).eehrxfwrites adisplayon every coding of a document it assembles:Composition.type, each section’scode, each section’s empty reason and the LOINC categories of a form. A laboratory result’s category, written by the shipped laboratory project, carries one too. Without these, a receiver with no terminology server refused the document. Each display comes from the vendored European material: the MyHealth@EU Master Value Sets Catalogue 9.1.0 first, then an HL7 Europe guide’s value set or code system, then an English example of a guide, and FHIR R4list-empty-reasonfor an empty reason.document::display::displayanswers it. The six section codes none of that material names (18842-5, 48767-8, 57080-4, 77599-9, 81338-6, LP173421-1) and the imaging priority category still carry no display (#1499).- A composition of an ADL 2 template that holds several sections of one
archetype, told apart by their fixed names as the International Patient
Summary’s
SECTION.adhoc.v1sections are, is accepted and each entry reads from its own section. Before, the composition check counted the sections as one node and refused it with “too many occurrences”. Theopenehr-*crates move from 0.0.116 to 0.0.128, which carries the fix, so the nexteehrxf,fhirconnect,openehr-mapping-coreandferrobridge- hl7v2publish requiresopenehr-* ^0.0.128(#1487).
0.0.16 - 2026-11-03
The console-breadth release. With [operator] mapping_dir, the bridge keeps
every state of the console’s mapping files it ran as a revision, with who,
when and why, and the operator API lists, diffs, applies, exports and imports
them as ZIP archives; the operator console shows them on the Mapping set’s
Revisions tab with Roll back to this revision. The console also gains a
synthetic example composition per template in the $tofhir playground, the
OMOP ETL run history (each finished etl run and etl fhir report is kept
in the bridge schema), the HL7 v2 face’s ConceptMap directory, and sign-in
through ferrohealth-session with FerroUI’s session watch. Two lanes land
beside it: [fhir_outbound] delivers each changed composition to a FHIR R4
endpoint as one transaction Bundle, and [audit] writes the Regulation
(EU) 2025/327 Annex II 3.2 access record of every facade access and sends it
as an IHE BALP AuditEvent, refusing the access with 503 when the record
has no place. eehrxf maps prescriptions and dispensations to and from the
HL7 Europe MPD 1.0.0 resources and laboratory reports to and from the HL7
Europe Laboratory Report 2.0.0 document, and ships its FHIRconnect projects
in its package. The openehr-* crates move to 0.0.116.
Four changes break an existing deployment or a consumer. The console refuses
at start a [session] whose absolute_timeout_s is below its
idle_timeout_s; config check reports it. fhirconnect’s
engine::fhir::FhirKind and FhirValue gain UnsignedInt and
PositiveInt, and its Loss gains Absent, so an exhaustive match adds the
arms. ferrobridge-hl7v2’s Map gains title, so a consumer that builds
one by its fields adds it. The published crates now require
openehr-* ^0.0.116, so a consumer moves its openehr-* pins with them.
The library crates publish at eehrxf 0.1.141, fhirconnect 0.1.212,
openehr-mapping-core 0.1.138, ferrobridge-hl7v2 0.1.171,
ferrobridge-validator 0.1.142 and ferrobridge-fhirpath 0.1.129, and
fhir-types 0.1.128, hl7v2-types 0.1.127 and ferrobridge-term 0.1.141
stay where they are. A crate version an entry below names is the step at
which that change came in.
Added
eehrxfmaps electronic prescriptions and dispensations between openEHR and the HL7 Europe MPD 1.0.0 resources through FerroBRIDGE’s FHIRconnect contexts.Mapping::compile_templatecompiles a mapping against an ADL 2 operational template as well as an OPT 1.4 one.ReceivedResources::readreads acollectionBundle as strictly as a document, andMapping::resources_to_openehrmaps it into one composition that keeps the collection as its original content.ReceivedComposition::instructed_bynames the order a received dispense carries out. The MPD request mapping now carries the refills authorised, their least interval, the refills remaining, and the amount and duration of one fill, from the CKM medication authorisation and supply amount clusters. Every mappedMedicationRequestcarries the statusunknown, because no published crosswalk pairs the openEHR order status with the R4 request status (#1322).eehrxfmaps laboratory reports between openEHR and the HL7 Europe Laboratory Report 2.0.0 document through FerroBRIDGE’s FHIRconnect laboratory project overKDS_Laborbericht. The crate now ships its FHIRconnect projects undermappings/in its package, andeehrxf::mappingsembeds them (MPD,LABORATORY,Project::write_to).Document::with_mapped_reporttakes the report, results, specimens andProvenanceof one mapping run into a laboratory report document, andreceivenames a receivedBundle-eu-laba laboratory report and holds it to theBundle-eu-labandComposition-eu-labprofiles.DocumentErrorgainsUnmapped. TheDiagnosticReport-eu-labcontext no longer loads the mapping library’sreport_result.v1.DiagnosticReportmodel, whose mappings it overwrote to none (#1324).- The outbound FHIR lane, behind a new
[fhir_outbound]section, follows the change feed and delivers each changed composition to a FHIR R4 endpoint as onetransactionBundle per event, mapped through the facade’s programs: every resource is aPUTcarrying itsid,meta.versionIdandmeta.source, and a deletion, an erasure or a resource a new version no longer maps to is aDELETE. Delivery is at least once; a composition of an EHR bound to no patient, or a resource without its subject, is refused and parked; the start warns that the lane carries identifiable data (#1374). - The bridge records its own accesses behind a new
[audit]section. Every FHIR facade access an authenticated caller makes is written as the access record of Regulation (EU) 2025/327 Annex II 3.2: the caller the token verified, the categories of the templates it reached (the[audit.categories]map), the time and the CDR as the origin. Each message the HL7 v2 face commits is written as a system import record. Both are sent as IHE BALPAuditEvents over the ITI-20 ATX: FHIR Feed to the Audit Record Repository[audit] base_urlnames, from a spool on disk. Recording fails closed: an access whose record has no place is refused with503before the CDR is called, and an HL7 v2 message is answeredAR(#1377). - The FHIRconnect engine carries an openEHR
DV_COUNTto and from the R4 restricted integersunsignedIntandpositiveInt, such asMedicationRequest.dispenseRequest.numberOfRepeatsAllowed. A count below the least value the type admits (0 or 1) is refused going out, never clamped. The FHIRconnect 1.0.0DV_COUNTpage names onlyinteger, so this pairing is FerroBRIDGE’s own reading of the R4 definitions. This breaks thefhirconnectAPI:engine::fhir::FhirKindandFhirValuegain the variantsUnsignedIntandPositiveInt, so a consumer that matches either exhaustively adds the two arms (#1400). - The operator console answers
GET /sessionwith the idle and absolute seconds its session has left, never counting as activity,POST /sessionextends the idle timeout, and both answer401once the session is gone, with an RFC 9457 problem whosedetailis in the console’s language. Every signed-in page carries FerroUI’s session watch, which warns before the idle timeout with Stay signed in, and ends every tab of the console together when the session ends or the operator signs out, leading to the sign-in with the page left as its return address (#1435). - The FHIRconnect engine declares every element a run writes out of
openEHR with only the FHIR R4
data-absent-reasonextension as a loss,Loss::Absent, awarningin the run’sOperationOutcomelocated at the element.Lossgains that variant, so a consumer that matches it exhaustively adds the arm (#1443). fhirconnect::model::load::load_set_from_textloads a FHIRconnect mapping set from(name, text)pairs through the same schema, lowering and semantic checks asload_set, andeehrxf’sMapping::compile_projectcompiles a shippedmappings::Projectfrom its embedded text with no file written (#1445).- With
[operator] mapping_dir, the bridge keeps each state of the console’s mapping files it ran as a revision undermapping_dir/..revisions: at start-up, after each save, after a reload that finds the files changed and after each apply, with who, when and why. The operator API lists them atGET /operator/revisions, answers one atGET /operator/revisions/{id}and its line diff against the running one atGET /operator/revisions/{id}/diff, and applies one atPOST /operator/revisions/{id}/applyunderIf-Matchon the running revision with a reason, compiling the set first and changing nothing when it does not compile. Provisioned files are in no revision. The operator console lists the revisions on the Mapping set’s Revisions tab and shows each one’s diff with Roll back to this revision (#609). - The operator API exports a mapping-set revision as a ZIP at
GET /operator/revisions/{id}/export, the same bytes at every export of the same files, and imports one atPOST /operator/revisions/import: the ZIP sent raw asapplication/zipwith a reason, read with a ceiling, checked with the provisioned files as a dry run and saved as a revision that does not run until an apply. An import that does not compile is refused with its diagnostics, and a body that is no mapping-set archive answers the newbad-archiveproblem. The operator console exports from a revision’s page and the Mapping set’s More menu, and imports from the new Import a mapping set page (#610). - The operator API answers a synthetic example composition of each template
the running set compiled against at
GET /operator/templates/{id}/example, generated from the template’s Web Template, validated against it and the same at every request. A template with no example answers the newno-exampleproblem. The operator console’s playground offers it from the Example menu of the$tofhirtab, so a mapping can be tried without hand-written input.openehr-mapping-core0.1.138 addsWebTemplateIndex::example_compositionandPathError::NotComposition(#611). etl runandetl fhirkeep each finished run’s report in a run table of the bridge schema, whichferrobridge cdm initcreates, and the operator API answers the newest runs atGET /operator/etl/runsand one run atGET /operator/etl/runs/{run_id}. The operator console lists the runs on the OMOP ETL page’s Runs tab and shows each run’s report: when it ran, the rows it wrote, its deletion check and every record it refused. When the record is refused, the job still prints the report and then exits with the refusal (#612).- The operator API answers
GET /operator/hl7v2/concept-maps, the HL7 v2 face’s ConceptMap directory: every map the face runs with its kind, what it maps from and to, whether it is the guide’s or a supplement’s, its rows and the messages it served since the bridge started. The operator console shows it on the HL7 v2 page’s ConceptMaps tab.ferrobridge-hl7v2gives eachMapitstitleand itsends(), and eachMappedthe maps itapplied(); a consumer that builds aMapby its fields addstitle(#613).
Changed
- The
openehr-*crates move from 0.0.109 to 0.0.116, so the publishedeehrxf0.1.133,fhirconnect0.1.208,openehr-mapping-core0.1.136 andferrobridge-hl7v20.1.166 requireopenehr-* ^0.0.116(#1394). - The OMOP CDM v5.4 definitions move to OHDSI
CommonDataModeltagv5.5.0, read at its v5.4 files only: the tag corrects the v5.4 field definition ofcdm_source.cdm_etl_reference, whose text is user guidance and no ETL convention, and the boolean casing of the v5.4 table definitions. The CDM stays on v5.4, the DDL is unchanged, andcdm initnamesOHDSI v5.5.0as the definitions it applies (#1403). - The operator console signs operators in and keeps their sessions through
ferrohealth-session0.1.1, the sign-in crate of every FerroHEALTH console, in place of its own copy. The routes stayGET /login,GET /auth/callbackandPOST /logout;GET /logintakes?return=<page>and a completed sign-in lands on that page of the console, and the sign-in card’s button carries the page the operator asked for.[oidc]takesissueralone and discoversauthorization_endpoint,token_endpoint,jwks_uri,end_session_endpointand the newrevocation_endpointwhen the console starts, each written one taking the place of the discovered one, with the new keysca_fileandtimeout_s(default10);config checkcontacts no provider.[session]addsstore(memory, the default, orsealed, one encrypted cookie per session) withkeyorkey_file, and refuses anabsolute_timeout_sshorter thanidle_timeout_s. A sign-out revokes the operator’s token at a provider that has a revocation endpoint, and lands on/signed-outon a console with no provider in place of a503. A session without a refresh token ends when its access token expires. A cookie that names no live session is answered with its removal. The cookie names are unchanged. Upgrade: no key is renamed; a configuration whoseabsolute_timeout_sis below itsidle_timeout_sis refused at start and needs one of the two changed, andconfig checkreports it (#1434).
Fixed
ferrobridge-fhirpath:lowBoundary()andhighBoundary()(the FHIRPath 3.0.0 STU functions behindEnvironment::with_fhirpath_stu3_functions) read a FHIR decimal written with an exponent at the precision of its mantissa.9.5e2now stands for945to955, sohighBoundary(0)answers955where it answered951, and1.5e-3stands for0.00145to0.00155(#1426).eehrxfreserves thefullUrlof a document’s report among its entries, so theBundlekeeps FHIR R4bdl-7: a resource added later under the report’sDiagnosticReport/{id}takes the next free id, andDocument::with_reportrefuses a report whosefullUrlan entry holds already as the newDocumentError::Collision(#1442).eehrxf’s shipped laboratory mapping writes each result’seffective[x], from the time of the laboratory test result’s event, and itsperformerabsent with the FHIR R4data-absent-reasonextension, becauseKDS_Laborberichtholds no performing laboratory. HL7 Europe Laboratory Report 2.0.0Observation-resultslab-eu-labrequires both.Document::with_mapped_reportkeeps the run’sOperationOutcomeout of the document, which reaches every entry from itsComposition(#1443).
0.0.15 - 2026-11-02
The change-feed release. [change_feed] is the adapter the new consumers
follow, with two sources: aql, a vendor-neutral poll of ITS-REST 1.1.0
/query/aql that works against any CDR, and ferroehr, FerroEHR’s outbox
cursor feed. [events] publishes every commit event to an AMQP 0.9.1 broker
with publisher confirms. It takes over from the RabbitMQ publisher FerroEHR
removed in 5.6.0 and keeps its routing keys
(<kind>.<change_type>.<template_id>) and its message body identical, so a
queue bound to them keeps matching. A FerroEHR 5.6.0 deployment that needs
RabbitMQ events runs this release beside it. The FerroEHR cursor-feed source
needs FerroEHR 5.6.0-rc10 or later, and the wiremock contract tests cover
it against the feed contract posted on FerroHEALTH/FerroEHR#4786. The
vendor-neutral AQL source works against any CDR, and its wiremock tests
cover the ITS-REST 1.1.0 /query/aql exchange. The end-to-end lane runs
against FerroEHR 5.5.0, which has no outbox feed: it runs the incremental
OMOP load against that CDR with the events handed to the consumer, and runs
neither feed source. Several consumers follow the
feed, each under its own reader name, and a poisoned event is parked in a
dead-letter store and replayed through
POST /operator/events/{consumer}/parked/{id}/replay. The operator console
gains an Events page over the consumers, their parked events and the AMQP
topology. [omop_incremental] keeps the CDM database current between batch
runs through the per-composition step etl run uses. The run report’s JSON
is pinned over the laboratory round trip, which closes the run report and
the Rust port of the Data Quality Dashboard checks. mapping check --vocabulary checks every OMOCL file that loads when another file of the
set is refused (#1385). The architecture records the access-record
decision of #1301: the FHIR facade is to write the EHDS Annex II 3.2 access
record and an IHE BALP AuditEvent of every access an authenticated caller
makes, and to refuse the access when the record cannot be taken, which #1377
builds. The operator console moves to FerroUI 0.6.2 and draws every page on
its server, with no WebAssembly.
Two changes break an existing deployment. The console’s [server] site_root key is gone, and a configuration that still sets it is refused
at load: remove the line. The release no longer publishes the console’s
site bundle (ferrobridge-console-<tag>-site.tar.gz and its attestations).
The library crates publish at fhirconnect 0.1.207, ferrobridge-hl7v2
0.1.165 and eehrxf 0.1.132, and fhir-types 0.1.128,
ferrobridge-fhirpath 0.1.128, hl7v2-types 0.1.127, ferrobridge-term
0.1.141, ferrobridge-validator 0.1.141 and openehr-mapping-core 0.1.135
stay where they are. A crate version an entry below names is the step at
which that change came in.
Added
[change_feed](off by default) is the change-feed adapter the consumers follow, with two sources:aql, which polls ITS-REST 1.1.0/query/aqlover composition versions by commit instant past a watermark kept in aredbfile and works against any CDR, andferroehr, the reference CDR’s outbox cursor feed. Each consumer reads under its own reader name, moves its watermark only over the events it finished, and reportsdegradedwithout blocking readiness while it cannot follow. The book’s change feed page states the limits of the AQL source (#117).[server] idle_timeout_ms(default120000) closes a kept-alive HTTP/1.1 connection that sends no next request within that time, with a clean end of stream, fromferrohealth-server0.4.0 (#1348).[events](off by default) publishes every commit event the change feed reads to an AMQP 0.9.1 broker (RabbitMQ) with publisher confirms, one persistent message per changed version under the routing keys the reference CDR used (<kind>.<change_type>.<template_id>), and moves the feed’s watermark only after the broker confirmed an event whole. The exchange and the bound queues come from the configuration, the broker URL has aurl_fileroute, an unreachable broker turns theeventsindicator degraded without blocking readiness, and the usage report countsevents_published. The book’s events lane page carries the migration from FerroEHR’s own publisher (#1367).- The operator console has an Events page (
/events): each change-feed consumer’s source, reader and position, its health, the messages it published since start and its last failure with the cause, then the AMQP exchange, the routing-key grammar and the bound queues, read-only from the bridge’s newGET /operator/events. A bridge with no events lane says so in one line (#1370). - Every change-feed consumer follows the one
[change_feed]source on its own task under its own reader name, with its own health indicator. A poisoned event is retried up to[change_feed] max_attemptspasses (5 by default) and then parked with its cause in the dead-letter store[change_feed] dead_lettersnames, which is required; a transient failure never counts towards parking.GET /operator/eventslists every consumer with its parked events,POST /operator/events/{consumer}/parked/{id}/replayoffers one again before the consumer’s next page, and the console’s Events page lists them with a Replay button. Thedead-letters-unavailableproblem type answers a store that refuses (#1372). [omop_incremental](off by default) is a change-feed consumer that keeps the CDM database current between batch runs: for each composition an event names it reads the latest version over ITS-REST and commits it through the per-composition stepetl runuses, removes the rows of a composition the CDR reports deleted or an erasure names, reads the visits and rebuilds the derived tables once per pass, and reports degraded asomop-incremental. A batch run after an incremental run writes the same rows (#1373).
Changed
jsonschema0.60.0. The FHIRconnect and OMOCL mapping schemas are checked withjsonschema0.60.0, which runs an unfinished regex match once per validation and keeps the error evaluation path linear in the$refdepth; what a mapping file passes or fails is unchanged.fhirconnect0.1.207,ferrobridge-hl7v20.1.165 andeehrxf0.1.132 follow their requirements (#1347).- The
OperationOutcomea FHIR route answers when its handler fails names the request id the response echoes inX-Request-Id, and the server’s own id beside it when the client sent its own, so the client finds the id it sent and the operator the one the log names. It used to name the server’s id alone (#1348). - FerroBRIDGE runs on
ferrohealth-server0.4.1, which keeps a product’s own fallback and the layers around it when the stack merges its routes (FerroHEALTH/FerroSYS#199). FerroBRIDGE was not exposed to the regression 0.4.1 fixes: no release ran on an affected version, and the facade guard and the operator API guard only the routes they serve, so an anonymous request to a path no route matches answers404with no challenge before and after, while a route under/fhiranswers401(#1353). - The operator console moves to FerroUI 0.6.0 and draws every page on its
server: a link, a search, a tab or an action loads one complete page, and
FerroUI’s small script modules add the editor’s highlighting, the search’s
suggestions, the menus and the dialogs on top, so every page and every
action works with them refused. The console carries no WebAssembly, its
Content-Security-Policy is
script-src 'self'; style-src 'self'with no nonce, and its stylesheet, theme and modules are served by the binary under/ferrohealth-ui/0.6.0/. Reload the set, the editor and the playground post to their own page, which draws the bridge’s answer beside what you entered (#1355). - The operator console moves to FerroUI 0.6.2 and
ferrohealth-server0.4.2. A select in a dense options row and a long identifier or link in a stacked table no longer scroll the page sideways at 320 px, and the mapping editor keeps its typing speed as a JSON or XML document grows. The console’s Content-Security-Policy is unchanged (script-src 'self'; style-src 'self', no nonce) and now comes from the family’s server-rendered console headers, and FerroUI’s script modules are served under/ferrohealth-ui/0.6.2/(#1361).
Removed
- The operator console’s
[server] site_rootkey (FERROBRIDGE_CONSOLE__SERVER__SITE_ROOT) is gone, and the console image carries no/sitedirectory: the binary serves everything the pages load. A configuration that still sets the key is refused at load, naming it; remove the line (#1355). - The release no longer publishes the console’s site bundle
(
ferrobridge-console-<tag>-site.tar.gzand its attestations) (#1355).
Fixed
- The operator console’s server no longer panics on a disposed router value
while it draws a page, which could fail a page with a
500: the console draws every page in one pass with no router left to dispose (#1355) (#1331). - On a kept-alive HTTP/1.1 connection,
[server] header_read_timeout_mscounts from the first byte of each request head. It used to count from the end of the previous answer, so it also closed an idle connection after 30 s, sometimes as a client sent its next request into it (#1348). ferrobridge mapping check --vocabularychecks the literal concept ids of every OMOCL file that loads when another file of the set is refused, so one refused file no longer leaves the vocabulary pass empty (#1385).
0.0.14 - 2026-10-29
The EU profile release. FHIRconnect contexts round-trip the HL7 Europe Base
and Core medicalTestResult-eu-core, the Laboratory Report
Composition-eu-lab and the Medication Prescription and Dispense profiles,
and the facade answers Composition/$document. The eehrxf crate, the
European interoperability software component, moves here from FerroFED, its
canonical URLs move to ferrobridge.eu, and HL7’s FHIR Validator checks the
documents its suites write. The server and the operator console run on the
FerroSYS crates, with config check, healthcheck, the family’s [server]
keys and GET /operator/readiness. The facade and $tofhir give every
resource, created ones included, one deterministic id, which is a breaking
change for stored ids. The CDR client reads RFC 9457 problem details, and
every error outside the FHIR routes is one. Each release now attaches the EHR
system’s information sheet and instructions for use.
The library crates publish at fhirconnect 0.1.206, ferrobridge-term
0.1.141, ferrobridge-validator 0.1.141, ferrobridge-hl7v2 0.1.164,
openehr-mapping-core 0.1.135 and eehrxf 0.1.131, and fhir-types
0.1.128, ferrobridge-fhirpath 0.1.128 and hl7v2-types 0.1.127 stay where
they are. A crate version an entry below names is the step at which that
change came in.
Added
Composition/$documenton the FHIR facade (#116, the R4 operationComposition-document).GET /fhir/Composition/{id}/$document, andGET /fhir/Composition/$document?id={id}, answer a document Bundle: an identifier derived from the composition version, the assembly timestamp, the Composition first and then every resource its context’s outbound run creates, each with its read URL asfullUrl. The caller needs read on every type the document carries.persist=trueandgraphare refused with anOperationOutcome, and the operation is declared onCompositionin theCapabilityStatement. The facade now binds a context whose start is a composition model, such asComposition-eu-lab, to the composition itself.- The HL7 Europe Laboratory Report 2.0.0
Composition-eu-labround trip (#116). A FerroBRIDGE document context starts at the report composition of the publishedKDS_Laborberichttemplate and maps it to aComposition-eu-lab: status, identifier, date, author, the LOINC 11502-2 type and a title, and one section that carries the test’s code and references theDiagnosticReport-eu-lab, which references its results and specimens. The document’s report reads its status and identifier out of openEHR, because the Composition writes those nodes going in. - The HL7 Europe Base and Core 2.0.0
medicalTestResult-eu-coreround trip (#116). A FerroBRIDGE context maps the laboratory test result of the publishedKDS_Laborberichttemplate to amedicalTestResult-eu-coreObservation, with its category, code, effective time, status and report identifier, and each analyte as a memberObservation-resultslab-eu-labit references. The result’s status travels through the codes the R4 diagnostic-report-status and observation-status code systems share. - The HL7 Europe Medication Prescription and Dispense 1.0.0 round trip
(#116). Two FerroBRIDGE contexts map FerroBRIDGE’s medication template, an
ADL 2 template over seven published CKM archetypes, to
MedicationRequest-eu-mpdandMedicationDispense-eu-mpd, each with a referencedMedication-eu-mpdand the dosage as aDosage-eu-mpd; the dispense is the medication ACTION at its careflow step “Prescription dispensed”.scripts/vendor/ckm-medication.shvendors the archetypes at the CKM mirror commitdocs/VERSIONS.mdpins, and the suites build the operational template at test time.fhirconnect0.1.196 (withferrobridge-hl7v20.1.152 andopenehr-mapping-core0.1.131) takesopenehr-adlas a test dependency, and the bridge moves to theopenehr-*crates at 0.0.100, whose ADL 2 Web Template builder reads the ADL 1.4 term constraints of the CKM sources. - The EHDS readiness page in the book (#116). It states the legal status
plainly: Regulation (EU) 2025/327 names the six priority categories, the
implementing act that fixes the exchange format is not adopted, and the HL7
Europe guides are the current proxy, so nothing is a conformance claim. Its
readiness matrix lists, per category, each target profile with its
committed template and the round-trip test that proves the transform, and
records the patient summary Composition, imaging and discharge reports as
corpus gaps. A
fhirconnecttest generates the matrix fromdocs/ehds/readiness.tomland fails when a template, a context or a test it names is gone.fhirconnect0.1.198 (withferrobridge-hl7v20.1.153) takestomlas a test dependency. ferrobridge config checkandferrobridge healthcheck(#1260), the FerroHEALTH family’s subcommands fromferrohealth-server.config checkprints the running configuration one key per line with where each value came from and every secret as***, then resolves it asservedoes and exits 78 with every refusal on stderr.healthcheckasks the running server for/health/readinesson loopback and exits 0 only on200, and the image declares aHEALTHCHECKthrough it. Every subcommand takes--set key=value, applied over the file and the environment.$tofhiranswers one resource per occurrence of a repeated start archetype (#1271). A composition holding two diagnoses answers two Conditions under oneProvenance, each with a stable id derived from the composition and its occurrence, and an occurrence the context’s condition does not admit is counted in theOperationOutcome. The identity seam’s request names the occurrence, and two resources taking one id refuse the call.- Each release attaches the EHR system’s information sheet and
instructions for use. The EHR system Cadasto B.V. declares under the
EHDS is FerroEHR with FerroBRIDGE, and both documents are pages of the
FerroHEALTH book. The release lane takes them at the FerroHEALTH commit
docs/ehds/system-documents.envpins, refuses a page whose revision differs from the pin, and attachesferrobridge-<tag>-information-sheet.mdandferrobridge-<tag>-instructions-for-use.mdwith the release’s facts appended: the system version, the release date (EHDS Art. 38(2)(b)) and the versions of the standards FerroBRIDGE supports (Art. 38(2)(e)). The release notes name the pinned revision of each system page (#1279). ferrobridge-hl7v2sends over MLLP (#1281).mllp::sendopens a connection within a connect timeout, writes one message as one MLLP frame and returns the one reply frame within a reply timeout, bounded by the codec’s ceiling. A refused connection, either timeout, a peer that closes before or inside its reply, and a reply past the ceiling are each their ownSendErrorvariant, and none carries the message or the reply. FerroPIX sends its ITI-10 notifications through it.- The family’s
[server]keys (#1287):base_path,header_read_timeout_ms,drain_delay_ms,max_concurrent_requests,retry_after_s,trusted_proxies,forwarded_header,compression,compression_min_bytesand[server.tls], and[telemetry] environment. GET /operator/readinessbehind the operator scope: the readiness document with why each indicator is down, which the open route no longer names. The operator console reads it, and falls back to the open route while the operator API is off (#1287).- The
eehrxfcrate, the European interoperability software component of an EHR system under Regulation (EU) 2025/327 (Art 2(2)(n), Art 25(1)), joins the crate line at 0.1.128. It moves here from the FerroHEALTH federation gateway, where it was built up to 0.0.40 and never published, so its earlier history is that project’s changelog. It carries the format-neutral dataset model read from the Xt-EHR EHDS Logical Information Models, one feature per Art 14(1) category with its crosswalk to the HL7 Europe profiles, the exchange format in FHIR R4 (fhir-r4), and the mapping between openEHR and that format throughfhirconnect(openehr). Against 0.0.40 its one change of behaviour is the id of a resource mapped from a composition, which is now the FHIRconnect deterministic idfhirconnect0.1.203 derives from the composition’s uid and the entry path (FHIRconnect v1.0.0, engine/id-management.adoc, Deterministic IDs). The corpora its tests read are vendored byscripts/vendor/eehrxf.sh, and the book gains the component’s pages: the component, the category crosswalks and receiving a document (#1314). - HL7’s FHIR Validator checks the documents the
eehrxfsuites write. The CIfhir-validatorjob runs it offline over every patient summary document the suites emit underEEHRXF_EMIT_DIR, against the HL7 Europe Patient Summary and Base and Core profiles and the MyHealth@EU Master Value Sets Catalogue. It fails on an error, a fatal issue or a claimed profile it could not find, and keeps its results as theeehrxf-fhir-validationartifact (scripts/checks/fhir-validator.sh) (#1318). - The CDR client reads RFC 9457 problem details. A CDR that answers its
refusals as
application/problem+jsonkeeps its explanation on the facade: the problem’stitle,detail, eacherrorsviolation aspath: detail, and itstypereach theOperationOutcomediagnostics, as a{message, validationErrors}body still does. The composition and contribution writes already sendPrefer: return=representation, so a CDR that lists violations only for such a write lists them (#1334). - The run report of
etl fhircarries an element ledger (#408): per input resource, every element with a value and one of four outcomes.mappednames the openEHR node a FHIRconnect mapping read the element into and the CDMtable.columntargets an OMOCL column reads there,droppednames the loss a mapping declared,refusedthe reason the resource or its composition was refused, andunmappedmarks an element no mapping names or no column reads where it went. The text report adds aledgerline with the counts.fhirconnect0.1.193 records every element a mapping reads going into openEHR (Outcome::reads,Transformed::reads), the OMOCL program names the composition node each CDM column reads (Program::column_reads), andferrobridge-hl7v2moves to 0.1.147.
Changed
openehr-mapping-coreandferrobridge-operator-apicompile forwasm32-unknown-unknown, so the operator console’s browser half can draw the bridge’s documents. The workspace takesopenehr-itswithout its ITS-REST client, which only the server adds, and the console CI lane checks the operator contract for wasm32 (#1256).- The operator console hydrates the whole page on FerroUI 0.5.0: the
server draws the first page and the browser draws every page after it,
so a link, a tab, the search or an action no longer reloads the document,
and the browser’s back and forward walk the pages you visited. The pages
load in five groups, each the first time you open one of its pages or
earlier while the browser is idle. Every page and action still works with
no WebAssembly, as plain links and form posts. The facade’s
CapabilityStatementreaches the browser reduced to the newferrobridge-operator-apicapability::Capabilitydocument, which the console’s server writes, and the entry WebAssembly’s budget rises to 646 KiB (#1256). - The operator console takes FerroUI 0.5.5 (
=0.5.5), and Reload the set, the mapping editor’s check and save, and the playground’s runs post to their server functions through<ActionForm>in FerroUI’s answer mode. With no WebAssembly the browser posts to/api/reload,/api/editor/api/runand the console draws the page the form was on with the answer and what the operator entered; the browser’s address stays at the function’s. The console’s own post routes for these actions (POST /mappings,POST /mappings/new,POST /mappings/edit/…,POST /playgroundand its tabs) are gone (#1265). - The operator console takes FerroUI 0.5.4 (
=0.5.4, from 0.5.1). It hydrates through FerroUI’swidget::hydration::hydrate, so the page’s mark isdata-ferroui-hydratedand a click or a submit before hydration ends is left to the browser; a post the console draws in the page counts as drawn, so a busy search box ends its wait; the mapping editor and the playground’s input take the_by_editeditors and keep no copy of the text; the skip link moves the focus to the main area on a hydrated page. The forms keep their own post routes as the no-WebAssembly path until FerroUI’s<ActionForm>can bring an answer back to its page (#1265). - The operator console takes FerroUI 0.5.1. Its shell is drawn once and follows the router, so the search’s words and the navigation’s scroll survive a link, and the user menu closes once one of its items is chosen. The library marks the page once it has hydrated, and a debug build names a page changed before then (#1267).
- Breaking: the FHIR facade’s resource ids are the deterministic ids
$tofhiranswers, and every occurrence of a start archetype is a resource of its own. A resource id is now the hash FHIRconnect v1.0.0 recommends over the composition uid and the entry path (engine/id-management.adoc, §Deterministic IDs), the id$tofhirgives the same occurrence; an entry’sLOCATABLE.uidno longer becomes its id. The facade finds the occurrences the way the engine does, so a start archetype inside aSECTION, at any depth, and an instance repeating below another entry each read, search and bind as their own resource, under an entry path such as/content[openEHR-EHR-SECTION.adhoc.v1]/items[2]. Every id the facade served before changes. The identity store writes schema 4 and refuses a file of an earlier schema at boot, naming it: remove the[facade] identity_storefile to reset it, and the bridge creates it anew.fhirconnect0.1.205 (withferrobridge-hl7v20.1.163 andeehrxf0.1.129) addsengine::traverse::occurrence, which names the occurrencesto_fhir_eachmaps without running the program (#1276). - Breaking for stored resource ids:
$tofhirids follow the FHIRconnect deterministic id (#1276). A resource the identity seam and the mapping give no id takes the hashengine/id-management.adoc§Deterministic IDs recommends, over the composition’sobject_idand the entry path of its occurrence, as 52 lowercase base32 characters, in place of the composition’sobject_idand the<uid>.2form. An id a caller stored from an earlier$tofhiranswer no longer matches; map the composition again to read the new id. The identity seam’s request carries the entry path, andfhirconnect::engine::identityandWebTemplateIndex::entry_pathare the shared derivation the FHIR facade adopts next. ferrohealth-smart0.7.3 for the workspace andferrobridge-term’ssmartfeature (ferrobridge-term0.1.138, withferrobridge-hl7v20.1.155 andferrobridge-validator0.1.138). It renders every secret and masked URL of the shared sections throughferrohealth-secret, the family’s one mask: a secret shows as***in place of[redacted], and a masked URL hides its query too (#1278).ferrobridge-term0.1.139 requiresferrohealth-smart0.7.4 as a caret requirement in place of an exact pin, so a smart patch reaches a product through its lockfile without a release of this line first. The products keep pinningferrobridge-termexactly (#1282).ferrohealth-smart0.8 (caret0.8.3) for the workspace andferrobridge-term’ssmartfeature (ferrobridge-term0.1.140, withferrobridge-hl7v20.1.159 andferrobridge-validator0.1.140), so a product on the 0.8 line hands itsTokenSourceto the terminology client. This breaks thesmartfeature’s API for a consumer still onferrohealth-smart0.7: it moves to 0.8 with this release (#1285).- The operator console runs on the FerroSYS crates (#1287): its
configuration through
ferrohealth-configandferrohealth-secret(everyFERROBRIDGE_CONSOLE__variable keeps its name,--setjoins them,RUST_LOGis the alias of the new[telemetry] filter), its log throughferrohealth-telemetry, and its security headers, same-origin check, health routes, drain, healthcheck and subcommands throughferrohealth-server.config checkprints the running configuration with every secret as***;healthcheckasks/health/readiness;GET /healthanswers{"state":"up"}; a_filesecret loses its trailing line ending alone; the 403 of a cross-site post is in the console’s configured language. - The operator console signs operators in through
ferrohealth-smart’s OpenID Connect relying party (oidc::RelyingParty), in place of its own authorization request, PKCE, code exchange, ID Token check, refresh and end-session request. The[oidc]keys, the sign-in and sign-out routes and the sign-in page’s states are unchanged (#1287). ferrohealth-smart0.8.6 and theopenehr-*crates 0.0.109 (#1287). The workspace requiresferrohealth-smartas the caret0.8.6and the nineopenehr-*crates at 0.0.109, the newest releases on crates.io on 2026-10-27, and still takesopenehr-sdtwithflatalone. AnINTERVAL_EVENT’smath_functionnow reads back through FLAT with the openEHR terminology’s text for its code, which thefhirconnectround-trip law records as a change.openehr-mapping-core0.1.134,fhirconnect0.1.202,ferrobridge-term0.1.141,ferrobridge-hl7v20.1.160 andferrobridge-validator0.1.141 follow their requirements.- The server runs on the FerroSYS crates (#1287):
ferrohealth-config,ferrohealth-secret,ferrohealth-telemetry,ferrohealth-health,ferrohealth-serverandferrohealth-usage-report, pinned exactly, in place of its own configuration loader, console, request log, request id, panic catch, health registry, drain and usage report. Every key and variable keeps its name. What an operator sees change: a secret renders as***; a_filesecret loses its trailing line ending alone and an empty file is refused; a[telemetry] filterthat does not parse refuses the start; a refusal names the closest known key and several are reported at once;[server.caller_rate]and[telemetry.otlp]are refused; a response is compressed when the client accepts gzip or Brotli. The readiness document is the family’s:phasebesidestate, the indicators as a list sorted by name, readiness503while the process boots or drains,GET /healthanswers the state alone, and the open route names no indicator’s detail. The request log never logs the client’sX-Request-Id: the line, a panic or refusal body and the CDR calls name the server’s own id, and the client’s is echoed on the response. The panic line never names the panic message. The banner is the family’s, and/health/infonames the commit in seven characters. The usage report leaves out a counter that stayed at 0. - A pull request records its user-visible effect as a fragment,
changelog.d/<issue>-<kebab-slug>.<section>.md(changelog.d/README.md), and no longer editsCHANGELOG.md, so two open pull requests stop conflicting on[Unreleased]. The release cut assembles the fragments into the version’s section withscripts/release/changelog.sh --assembleand deletes them, and the releaseplanjob refuses a tag that still has one. CI refuses a malformed fragment, a change that writes under[Unreleased], and a change to a user-visible surface with no fragment unless it carries theno-changeloglabel.scripts/gh/changelog-merge.shis retired (#1289). serde-saphyr2.0.0. The mapping loader, the search declaration reader and the fuzz targets parse YAML withserde-saphyr2.0.0. A consumer ofopenehr-mapping-corethat walks the source ofLoadError::Yamlnow meetsserde_saphyr::Errorof 2.0.0, whoseAliasErrorcarries the original error.openehr-mapping-core0.1.135,fhirconnect0.1.203 andferrobridge-hl7v20.1.161 follow their requirements (#1315).jsonschema0.59.0. The FHIRconnect and OMOCL mapping schemas are checked withjsonschema0.59.0, which refuses a value whose regex match the engine cannot finish where 0.58 accepted it undernotorpatternProperties.fhirconnect0.1.204 andferrobridge-hl7v20.1.162 follow their requirements (#1317).- Breaking: the canonical URLs
eehrxfdefines move toferrobridge.eu. The archetype-local code systems arehttps://ferrobridge.eu/fhir/CodeSystem/archetype-local/followed by the archetype id, and the remaining-dispensations extension ishttps://ferrobridge.eu/fhir/StructureDefinition/remaining-dispensations, where they were underferrofed.eu. The FerroBRIDGE site serves the extension’sStructureDefinitionat its URL and describes the code systems at their base. No compatibility alias reads the old URLs, since no production deployment holds a document written with them; a consumer that matches either URL updates it.eehrxf0.1.130 (#1319). - Breaking: a resource a run creates takes one id on
$tofhirand on the FHIR facade, and keeps it in every composition version. A furtherhierarchy.splitoccurrence and areferencetarget are named byfhirconnect::engine::identity::created_id, a hash of the composition’s version container, the entry path of the occurrence that creates them, and their type, the parent’s type, the creating mapping, their openEHR positions and a split’suniquevalues.$tofhirframed the full version id into the hash, so each new version renamed every created resource, and the facade derived a different id of its own. Every created id either surface answered before changes.$tofhirnow maps each occurrence on its own (engine::traverse::occurrence::to_fhir_at) with an identity sink anchored at it.fhirconnect0.1.206 (withferrobridge-hl7v20.1.164 andeehrxf0.1.131) (#1332). - Problem details for every error outside the FHIR routes (#1333,
RFC 9457). The operator API answers every refusal as
application/problem+jsonwith the status it answered before, where it answered a JSON object witherrorandmessage. Each problem’stypelinks to its section of the new Problem types page of the book, such ashttps://ferrobridge.eu/docs/operate/problems.html#provisioned, and a refusal whose status says all there is to say isabout:blank. The stack’s own408,413,429,503and panic500on a non-FHIR route are problems too, the request id as aurn:uuid:instance. No problem quotes a path, a mapping body, a reason, a token or an upstream answer; a503of a reload names its cause in the server log. The FHIR facade and the operations keepOperationOutcome. The operator console reads a problem’s title and detail into the refusal it draws. Migration: a client of the operator API readstype,titleanddetailin place oferrorandmessage. The server takesferrohealth-server0.3.9. - The bridge writes the composition’s
language,territoryandcomposer, the_feeder_audit,_link:i,_participation:i,_other_participation:i,_providerand_health_care_facilityfamilies, and a role’sperformerwhole, under|raw(#618, #1000), through theopenehr-sdt0.0.99 builder. A composer that carries identifiers, and a provider or facility with an external reference, now reach the composition whole, where thectx/keys and the suffix spellings left those parts out or refused them. A party builds throughbuild_party, with each member of a value at the root passed as<root>/<attribute>|raw. The last local openEHR spellings of #618 are gone.fhirconnect0.1.197,openehr-mapping-core0.1.132,ferrobridge-hl7v20.1.151. - The bridge takes the
openehr-*crates at 0.0.99 and drops three local openEHR spellings (#618). The archetype HRID of an ADL 2 template ETag and of an archetype node id now reads throughopenehr-am’sFromStrforArchetypeHrid, so the server no longer depends onopenehr-adl. ATERMINOLOGY_IDis built withopenehr-base’sTerminologyId::new. Thechange_typeandlifecycle_statecodes and rubrics of a commit come fromopenehr-term’s named concepts, now a direct dependency. What the bridge writes is unchanged.fhirconnect0.1.195,openehr-mapping-core0.1.130 andferrobridge-hl7v20.1.149 carry the new pins.fhirconnectremoves the publicfhirconnect::engine::lens::code_phrase::terminology_id; a caller usesTerminologyId::new(system, version).
Fixed
- A
manualentry whose openEHR paths reach two data elements writes both. The engine merged every path of one entry into the element the last path reached, so an entry that set thecurrent_stateand thecareflow_stepbelow oneism_transitionwrote only the careflow step, with no diagnostic, and the build then defaulted the state. Each data element the paths reach is now created, as FHIRconnect’s manual mappings page says (“Full FHIR or openEHR elements are created from all given paths”) (#116). - A composition holding a context’s start archetype more than once maps
each occurrence on its own (#1254). The FHIRconnect engine mixed the
entries into one resource, taking a field from whichever entry had it. The
new
traverse::to_fhir_eachmaps every occurrence to its own resource, with the context’s condition checked per occurrence, andtraverse::to_fhirmaps the first and reports the rest as theunmapped-occurrenceswarning. - The
[etl]queries must end theirORDER BYinv/uid/value. The versions of one contribution share its commit time (openEHR RM Common 1.1.0, Contributions), so a composition query ordered byv/commit_audit/time_committed/valuealone could tie, and offset paging over a tie can skip or repeat a row.etl runnow refuses to start when the composition or visit query’s last order key is not theuid/valueof itsVERSION [LATEST_VERSION]variable; add, v/uid/valueto the end of theORDER BYto upgrade. The book’s composition query is the batch contract overVERSIONED_OBJECT, and the end-to-end tests run against the reference CDR release that takesVERSIONED_OBJECTinFROM(#1284).
Security
Shipped with functional changes because: the library crates publish from main one patch per change, and main already holds the unreleased changes above, so a separate security-only crate patch has no tree to come from.
- The bridge and
ferrobridge-term’ssmartfeature takeferrohealth-smart0.7.1 in place of 0.7.0: every earlier release can render a configured URL’s credentials in full (CWE-532, GHSA-vphj-3f8c-5hpx).ferrobridge-term0.1.137,ferrobridge-hl7v20.1.152 andferrobridge-validator0.1.137 carry it, so a product pinningferrobridge-termcan take the patched crate (#1264). - The server and the operator console take
ferrohealth-server0.3.7 in place of 0.3.6 (GHSA-2mc2-h3jq-c5wg). Every earlier release held a plain-HTTP connection that never sent a byte for as long as the client kept it open, so a client with no credentials could exhaust the process’s file descriptors, and the listener then retried a failedacceptat once and logged every failure. Such a connection now closes once[server] header_read_timeout_mspasses, counted from accept, and the listener backs off after anEMFILEorENFILE. A response to a request whose body the routes left unread, such as a404to aPOSTof an unserved path, now carriesConnection: close(#1310).
0.0.13 - 2026-10-25
The security and OMOP release. A write the facade makes for an authenticated
caller states that caller as its committer, and [auth] mode = "introspection" checks opaque access tokens (RFC 7662). On the OMOP side,
etl fhir loads FHIR R4 into the CDM with no CDR and every row names its
resource, vocab load loads an Athena download, the OMOCL targets write
DEATH, provider_id and visit_detail_id, [cdm.pseudonymisation]
pseudonymises source identifiers and shifts dates, and the Data Quality
Dashboard’s conformance, completeness and temporal plausibility checks run in
Rust through dq check. The derived tables keep another ETL’s rows, the CDM
pool trusts the configured CA alone, FHIRconnect converts DV_ORDINAL and
writes an ACTION’s time, and the first HL7 Europe profile contexts arrive.
The library crates publish at fhirconnect 0.1.192, ferrobridge-term
0.1.136, ferrobridge-validator 0.1.136 and ferrobridge-hl7v2 0.1.146, and
fhir-types 0.1.128, openehr-mapping-core 0.1.128, ferrobridge-fhirpath
0.1.128 and hl7v2-types 0.1.127 stay where they are. A crate version an
entry below names is the step at which that change came in.
Added
-
Every CDM row
etl fhirwrites names the FHIR resource it was mapped from (#409): the bridge schema’sresource_origintable records each composition’s resource type, id andmeta.versionIdin the commit’s transaction, andCdmWriter::origins_of_rowandrows_of_resourcelook a row’s resources and a resource’s rows up.cdm initadds the table. -
ferrobridge_eu_laboratory.contexttargets HL7 Europe Laboratory Report 2.0.0 over the publishedKDS_Laborberichttemplate: the laboratory result becomes aDiagnosticReport-eu-labthat references oneObservation-resultslab-eu-labper analyte and oneSpecimen-eu-labper specimen. The round trip asserts each profile’s canonical and elements: the report’s identifier, status, code, effective time, conclusion and references; the result’s status,laboratorycategory, code, quantity, interpretation and method; the specimen’s type, accession identifier, received time and collection. The mapping library’seehrxf_labcontext is recorded as refused (#1235). The testkit exposes the template asKDS_LABORBERICHT_OPT(#116). -
ferrobridge-term0.1.135 takes the client credentials token offerrohealth-smartas itsTokenProviderbehind the newsmartfeature (#1227):smart::SmartToken, built from aTokenSource, sends the cached token and drops one the server refuses with401, so the repeated request carries a token fetched anew. The server’s terminology lane uses it in place of its own adapter.ferrobridge-hl7v20.1.144 andferrobridge-validator0.1.135 move with it. -
The first HL7 Europe profile context:
ferrobridge_eu_condition.contexttargets Base and Core 2.0.0condition-eu-coreover the publishedKDS_Diagnosetemplate, with the published diagnosis, qualifier and composition model mappings and FerroBRIDGE’s extensions for the profile’sassertedDateextension andonsetDateTimeslices and its canonical. The round trip asserts the code, both slices,clinicalStatusandverificationStatus(#116). -
ferrobridge mapping check --vocabularychecks every literal concept id of the OMOCL files against the vocabulary loaded in the[cdm]database: a literal the vocabulary does not hold, or whose domain is not one the CDM field definitions name for its column, is a diagnostic (#97). -
ferrobridge_eu_patient.contexttargets HL7 Europe Base and Core 2.0.0patient-eu-coreover the publishedKDS_Persontemplate, loading the person chain of the KDS person context with a gender extension that names the EU profile in place of the MII one and leaves out the German gender-amtlich extension. The round trip asserts the requirednameandbirthDate,genderand the canonical (#116). -
The profile package set pins
hl7.fhir.eu.laboratory2.0.0 andhl7.fhir.eu.mpd1.0.0, the HL7 Europe Laboratory Report and Medication Prescription and Dispense guides the EU profile contexts target, fetched with their provenance byscripts/vendor/profile-packages.sh; every package they depend on was already in the set (#116). -
The Data Quality Dashboard’s seven temporal plausibility checks run in Rust beside its conformance and completeness checks (#1222):
measureObservationPeriodOverlap,plausibleTemporalAfter,plausibleDuringLife,withinVisitDates,plausibleAfterBirth,plausibleBeforeDeathandplausibleStartBeforeEnd, each planned where the Dashboard’s v2.9.0 settings enable it, with its threshold, and translated from its SQL template, whichscripts/vendor/dqd.shnow vendors.dq checkand the post-load step ofetl runreport them. A person whose year of birth is 0, as a placeholderPERSONrow carries, has no birth date for these checks instead of failing them. -
[cdm.pseudonymisation]pseudonymises every row the CDM writer writes (#410): the columns the CDM field definitions describe as a link back to the source carry an HMAC-SHA-256 pseudonym under a_filesecret key, stable across runs so incremental loads join, the provider’s name,npianddeaand a location’s address are NULL, anddate_shift_daysmoves every date of a person by one per-person shift, so intervals within a person stay intact. The Integrate and Operate pages state what it does not de-identify. -
cdm initand everyetl runandetl fhircount the rows of each CDM table whose ids the bridge assigns that no entry of its side table owns, rows another load wrote, and warn of each table; the run report carries the counts asforeign_rows(#240). The Operate page states that one bridge owns the tables it writes and that era ids are not stable across rebuilds. -
ferrobridge-hl7v20.1.143 serves a consumer of its listener and parser alone.parse::structure::structure_declaredselects the structure MSH-9.3 names over the message definition where the two disagree, so an IHE ITI-8ADT^A05^ADT_A01groups by the A01 structure (IHE ITI TF-2 §3.8.4.1.2.1; HL7 v2.5.1 chapter 2 §2.15.9.9) (#1217).parse::ErrorCode::UnknownKeyIdentifieris table 0357’s204(#1218).mllp::Connection::peergives a handler the address of its connection’s peer (#1220).mapand its dependencies (fhirconnect,ferrobridge-term,fhir-typesand the openEHR crates) sit behind the defaultmapfeature, sodefault-features = falsedrops them (#1221). A consumer that matchesErrorCodeexhaustively adds the new variant. -
A write the facade makes for an authenticated caller states that caller as the version’s committer, as ITS-REST 1.1.0 recommends (“provision these headers based on authentication and authorization runtime data”): a single write sends
openehr-audit-detailswithcommitter.nameset to the token’ssub(or the Basic user-id) and acommitter.external_refin the issuer’s namespace, and a transaction states the same committer in everyUPDATE_AUDITof its CONTRIBUTION.system_idkeeps naming the bridge. A write no caller made (an HL7 v2 message, an open surface) still commits under the bridge’s name. Reads still reach the CDR under the bridge’s own credential (#532). -
[auth] mode = "introspection"with an[auth.introspection]table checks opaque access tokens by OAuth 2.0 Token Introspection (RFC 7662) throughferrohealth-smart’s introspector: each token is posted to the issuer’s introspection endpoint under the bridge’s client authentication ([auth.introspection.client]) or a client credentials token ([auth.introspection.bearer]), an active answer withscope,client_idandexpadmits the caller with its scopes andpatientcontext, the answer is held until itsexpand at mostcache_max_age_seconds, an inactive token answers401and an endpoint that fails503(#533). The Operate configuration page lists the keys. -
ferrobridge etl fhir PATHloads FHIR R4 resources, a Bundle or an NDJSON file, into the CDM with no CDR (#1209, decided on #407): each resource maps through the FHIRconnect set into an openEHR composition held in memory, which the OMOCL set maps to CDM rows the writer commits. The composition’s identifiers derive from the resource’s type, id,meta.versionIdand subject, so a re-run writes the same rows, and the run report counts the resources read, mapped, unmapped and refused.[etl] aqlbecomes optional at load;etl runrefuses to start without it. -
ferrobridge vocab load DIR --schema NAMEloads an OHDSI Athena vocabulary download into the vocabulary tables of the CDM schema (#233). It takes the nine files every download carries andSOURCE_TO_CONCEPT_MAP.csvwhen present, replaces each table in a transaction of its own throughCOPYwith the column list from the header row checked against the CDM definitions, names every other file and leaves it alone, and prints the rows per table and the vocabulary version. The format is the one the Athena application writes, read from its source at a pinned commit and vendored underdocs/specs/athena/byscripts/vendor/athena.sh(#88). The Operate pages describe the load and the vocabulary licences you accept. -
FHIRconnect converts
DV_ORDINALagainstCodeableConcept(DV_ORDINAL.adoc§CodeableConcept, #93): the coding carries the symbol, and going into openEHR the ordinal value is the one the template’sC_DV_ORDINALlists for the symbol’s code. A symbol the template does not list, or a node whose template lists no options, is refused.fhirconnect0.1.191 addsRmValue::Ordinal,lens::ordinaland a fifth parameter tocell::put, the node’s ordinal options; a caller ofcell::putpasses&[]where it has none. -
An OMOCL mapping’s
provider_idandvisit_detail_idnow write (#243): the record graph names aPROVIDERby the text the mapping reads and aVISIT_DETAILby the composition’s visit and that text, and the CDM writer resolves or creates each row inside the composition’s transaction, the visit detail taking its person, concept, dates and type concept from the visit. A record that names a visit detail without a visit is refused. The bridge schema gains theproviderandvisit_detailkey tables, whichcdm initcreates on an existing schema. -
The OMOCL
Deathtarget writes itsDEATHrow (#1208): the row takes the person’sperson_idas its id, the newest composition that writes one gives it its columns, and removing that composition restores the row of the writer that remains.cdm initadds thedeath_rowside table and lets several compositions of a person record aDEATHrow. -
The Data Quality Dashboard’s six completeness checks run in Rust beside its conformance checks (#405):
measurePersonCompleteness,measureConditionEraCompleteness,measureValueCompleteness,standardConceptRecordCompleteness,sourceConceptRecordCompletenessandsourceValueCompleteness, each planned where the Dashboard’s v2.9.0 settings enable it, with its threshold, and translated from its SQL template. A run now carries the Dashboard’s not-applicable status: a check of a missing or empty table, or of a missing or unpopulated field, is neither failed nor passed and names why. -
ferrobridge dq checkruns the ported Data Quality Dashboard checks against the database[cdm]names and prints the failing checks and the counts, or with--format jsonthe run in the Dashboard’s own result fields (CheckResults,Overview,startTimestamp), so the Dashboard’s viewer reads it. It exits non-zero when a check fails or cannot be evaluated (#406). With[etl] quality_checks = true,etl runruns the same checks over the tables it wrote and adds the verdicts to its report.
Fixed
- A FHIRconnect mapping can write an
ACTION’s time (#1226):$archetype/timeunder anACTIONno longer refuses withfc-uncarried-tail, and the engine writes and reads it as the action’stime, the way it carries an observation’s history origin. A FHIRProcedure’sperformedDateTimenow reachesACTION.time, and on theetl fhirpath thePROCEDURE_OCCURRENCE.procedure_dateOMOCL reads from it.fhirconnectmoves to 0.1.192 andferrobridge-hl7v2to 0.1.145. Breaking for a consumer offhirconnect::engine::rm:Carried::HistoryOriginisCarried::EntryTime, andHISTORY_ORIGINandHISTORY_ORIGIN_KEYareENTRY_TIMESandentry_time_key. - A run rebuilds
OBSERVATION_PERIOD,CONDITION_ERAandDRUG_ERAonly for the persons the bridge writes, so the derived rows another ETL wrote into those tables survive it (#1223).[etl] derived_tables = "whole_table"keeps the whole-table rebuild for a deployment where the bridge is the only writer. - With
[cdm] tls_caset, the concept resolver’s pool now trusts that CA alone, as the CDM writer does (#266). The pool no longer runs its PostgreSQL client’s own TLS, which added a built-in root set to the CA: it reaches the database through a relay on a private Unix socket that handshakes with the writer’s TLS configuration. A URL that asks for TLS names one host and one port; a list of hosts is refused at start.
Changed
-
The bridge and
ferrobridge-term’ssmartfeature takeferrohealth-smart0.7.0 in place of 0.6.0, the line the family moves to together:ferrobridge-term0.1.136,ferrobridge-hl7v20.1.146 andferrobridge-validator0.1.136. No configuration key or behaviour changes. -
The operator console’s search answers under the field as you type: a panel anchored under the top bar’s search asks the console’s
/search/answerroute and shows the running load’s contexts, mapping files and templates grouped by kind, five of each, with the words searched for emphasised; the arrow keys walk them and Enter opens one. Enter with none chosen, or “See all results”, opens the new search page (/search), which lists every match in the page. The console moves to FerroUI 0.4.0, and a setting row says where its value came from through FerroUI’s own marker (#1219, #1176).
0.0.12 - 2026-10-25
The FHIRconnect and facade outcomes release. A write through the facade now
shows the client the losses its mapping declared, a transaction names why it
refuses a linked resource, and the FHIRconnect operations answer 502 when
the terminology server fails. FHIRconnect looks up the display of a DV_TEXT
that fell back to a code, ranks a direct data-type pair above the text
fallback, and openehr-mapping-core exposes the DV_ORDINAL options a
template constrains. The fhir-types XML codec holds the narrative div to
well-formed XHTML both ways. The terminology client gains $expand,
$subsumes, the date input, a caller-built HTTP client for mutual TLS or a
private trust root, and context-aware $validate-code, and the operator
console draws the running configuration.
The library crates publish at fhir-types 0.1.128, openehr-mapping-core
0.1.128, fhirconnect 0.1.190, ferrobridge-term 0.1.134,
ferrobridge-validator 0.1.134, ferrobridge-fhirpath 0.1.128 and
ferrobridge-hl7v2 0.1.141, and hl7v2-types stays at 0.1.127. A crate
version an entry below names is the step at which that change came in.
Added
WebTemplateIndex::ordinal_optionsreturns the options an OPT 1.4C_DV_ORDINALconstrains at aDV_ORDINALnode, in template order: eachOrdinalOptioncarries the ordinalvalueand the code and terminology of its symbol, and a node with no ordinal constraint answersNone.openehr-mapping-coremoves to 0.1.127,fhirconnectto 0.1.186 andferrobridge-hl7v2to 0.1.135 with it (#1090).- The facade shows a write’s declared losses to the client that wrote it: a
committed transaction entry carries them in
response.outcome, and a single create or update asked forPrefer: return=OperationOutcomelists them after the committed version, one issue per loss with the FHIRPath inexpressionand the openEHR path indetails(#1115). GET /operator/configurationanswers the configuration the bridge started on, behind[operator]and the operator scope like the other operator routes: every key with its value and its source (the file, the environment or the default), and each secret by reference alone (set, read from a file, or unset), never its value. The document isferrobridge_operator_api::configuration::Configuration, which the operator console decodes (#1147).- The operator console draws the running configuration: a Configuration
page with the Logging, Mappings and Server and access tabs, a Settings tab
on the FHIR facade, HL7 v2, the OMOP ETL and each connection, and the
host and credentials of each upstream in the Connections table. Every
value is read-only, with its TOML key and whether it came from the
environment or is the default, and every secret is shown by reference
alone; How configuration works opens from the line that names the file.
An empty
[auth] product_scopeis answered as the scope the bridge runs on,__ferrobridge.operator(#1147). hl7v2-types(Apache-2.0) andferrobridge-hl7v2(BUSL-1.1) join the crate line at 0.1.127, leaving their 0.0.0 name reservations, so the next publish ships the HL7 v2 tables and the HL7 v2 face (MLLP framing, MSH-18 decoding, the positional parser, the acknowledgment and the v2-to-FHIR map) on crates.io for other projects to depend on. Each README carries a worked example, and the entry points offerrobridge-hl7v2carry tested# Examples. Pin each exactly, as for every crate of the line (#1131).ferrobridge-term0.1.130 sendsValueSet/$expandandCodeSystem/$subsumes, on STU3, R4 and R4B and in abatch.Client::expandtakes anExpansion(url,valueSetVersion,date,filter,offsetandcount,includeDesignations) and answers the expanded value set with the nesting ofexpansion.containskept, each entry with its system, version, code, display,abstract,inactiveand designations; a value set the server does not know isExpandOutcome::NotFoundcarrying theOperationOutcomeand itstx-issue-type, and an expansion the server could not make is a refusal, never an empty expansion.Client::subsumesanswersSubsumesOutcome:Equivalent,Subsumes,SubsumedByorNotSubsumed.Client::code_system_countasksGET [base]/CodeSystem?url=<system>&_summary=count.ferrobridge-validatormoves to 0.1.130 andferrobridge-hl7v2to 0.1.128 with it (#1177).ferrobridge-term0.1.131 reaches a terminology server through an HTTP client the caller builds:Client::with_http(config, reqwest::Client)sends every request through it, so a deployment can present a client certificate for mutual TLS, trust a private root beside the platform’s or use a proxy. The configured timeout still bounds each request, and the credentials, the retry budget and the typed errors apply as forClient::new(#1180).ferrobridge-term0.1.131 validates a code whose system its context implies:Coded::InContextsendsValueSet/$validate-codewithcontext,codeanddisplayand nosystem, which R4 and R4B accept (“If a code is provided, a system or a context must be provided”), alone or in abatch. STU3 requires a system for a code, so an STU3 client refuses the form with the newError::SystemRequiredand sends nothing, andClient::checkanswers the same (#1181).ferrobridge-validatormoves to 0.1.131 andferrobridge-hl7v2to 0.1.129 with it.
Changed
fhirconnect0.1.188 movesengine::rm::NULL_FLAVOUR,NULL_REASONandnull_flavour_oftoengine::rm::null_flavour, which breaks an import of them: name them throughengine::rm::null_flavour::(#1194).- A transaction entry whose mapping links a resource as a composition of its
own is refused with
422andnot-supported, naming why and the ways that commit it: the resource on its own, or as an entry of abatch, whose entries commit one at a time and follow the link as a single create does (#1120). ferrobridge-term0.1.130 carries thedateinput ofCodeSystem/$lookupandValueSet/$validate-code:Client::lookup_atsends it, andRequest::LookupandValidationgain adatefield. This breaks a struct literal of either: adddate: Nonewhere no date is meant (#1177).SECURITY.mdstates the fix-time targets every product of the Ferro family commits to, counted from the confirmed assessment: a fixed release within 7 days for a Critical vulnerability, 30 days for High, 90 days for Medium and with the next release for Low, beside the acknowledgement within about 5 business days and the initial assessment within about 10, both best effort as before.
Fixed
- The
fhir-typesXML codec holds a narrativedivto well-formed XHTML both ways:xml::to_xmlrefuses adivthat is no well-formed XHTMLdivin the XHTML namespace with anEncodeErrornaming its element path, such asBasic.text.div, andxml::from_xmlrefuses a start tag whose attributes are not well-formed XML (no whitespace between two attributes, a name that is no XML name, a<in a value), in the narrative and in every other element, where it accepted them and wrote them back repaired.fhir-typesmoves to 0.1.128,fhirconnectto 0.1.189,ferrobridge-termandferrobridge-validatorto 0.1.134,ferrobridge-fhirpathto 0.1.128 andferrobridge-hl7v2to 0.1.140 with it (#1178). - A coding with no
displaywritten into aDV_TEXT, whose value would otherwise fall back to the coding’s code, is looked up throughCodeSystem/$lookupas one written into aDV_CODED_TEXTis: the display becomes the value, an unknown code refuses unless[terminology] display_fallbackis set, a failed call refuses, and with no server the code stands.fhirconnectmoves to 0.1.185 andferrobridge-hl7v2to 0.1.134 with it (#1188). - An untyped
dateTimemapped onto anELEMENTwhose value admitsDV_TEXTandDV_DATE_TIMEconverts intoDV_DATE_TIMEwhatever the template order: a class that pairs with the FHIR type directly outranks the text fallback.fhirconnectmoves to 0.1.181 andferrobridge-hl7v2to 0.1.130 with it (#1114). $toopenehrand$tofhiranswer502with the issue typetransientwhen the terminology server fails during the run, with the upstream status in the diagnostics, as the facade’s writes do. A translation the server answers with no match stays a422(#1119).
0.0.11 - 2026-10-24
The operator console release. The console is rebuilt page for page on
FerroUI 0.3.6 and renamed from ferrobridge-viewer to ferrobridge-console,
so its image, environment variables, compose profile, cookies and page
addresses change: the Changed section below lists each, with what an
operator changes. Release images are scanned before they are tagged, every
release carries a vulnerability record in which each finding is judged, and
the notes state the support period and link the CRA information for users.
FHIRconnect registers the last mappingCode functions of the published
library and gains display resolution, NULL_FLAVOUR, the EVENT choice and
the quantity, temporal, URI, string and interval data-type pairs.
Added
-
The book has a CRA information for users page (#1152): the information and instructions Annex II of the Cyber Resilience Act (Regulation (EU) 2024/2847) has accompany each release, point by point, from the manufacturer and the vulnerability contact to the support period, secure use, updates, decommissioning and the SBOMs. The release notes
scripts/release/plan.shcomposes now end with a link to it, and the composition refuses when the book does not list the page.SECURITY.mdnames the operator console’s release tarballs and site bundle among the supported artefacts. -
The eighth
mappingCodefunction of the published FHIRconnect library,ehrStatusAddExternalREF, is registered (#1065), soKDS_admin_entry_person.ymlloads in the published person context. It writes no template node: it offers eachIdentifierthe mapping reads as the subject of the EHR, on the newOutcome::subjectchannel (fhirconnect::engine::subject::SubjectIdentifier), and coming out of openEHR it is declared skipped (SkipReason::EhrStatusSubject). The facade writes it intoEHR_STATUS.subject.external_refthrough ITS-REST 1.1.0ehr_status_updatewithIf-Matchon the version it read, before the composition is committed, for the identifier of the new[facade] ehr_status_identifier_systemkey. AnEHR_STATUSthat names another subject answers409, a CDR refusal answers through the status table with nothing committed, and with the key unset a write whose mapping offers identifiers answers422naming the key. New for a consumer offhirconnect:MappingFunctions::writes_subjectandto_subject, with defaults, and theSkipReasonvariant.fhirconnect0.1.180. -
A FHIRconnect mapping that names an
EVENTnode itself, with a FHIR time on the other side, writes and reads the event’s time (#1059), astypes-of-mappings/data-type/EVENT.adoc§POINT_EVENT and INTERVAL_EVENT pairs them. AdateTime,instantordateis aPOINT_EVENT’stime; aPeriodis anINTERVAL_EVENTwhosetimeisPeriod.end, whosewidthis the span back toPeriod.startand whosemath_functionis the RM default640|actual|. A choice element such aseffective[x]picks the class from the alternative going in and from the event’s class coming out. A FHIRtime, a period with a missing or partial bound, and a non-choice element of the other class are refused; an interval event whosemath_functionis notactualdeclares it as a loss going out.WebTemplateIndex::amendedits one node instance of a built composition and validates it again. New variants a consumer matching exhaustively adds arms for:PathError::AbsentInstance,Derived::Event,EngineError::EventTimeandSkipReason::EventFunctionUncarried.laboratory_test_result.v1.yml:120and:448no longer warnfc-anchor-without-children.openehr-mapping-core0.1.126,fhirconnect0.1.179. -
FHIRconnect LINKED mappings (#94): a
linkwhose FHIR side names a resource, such as a Condition’sencounter, now commits that resource as a composition of its own through the context itsmeta.profilenames, and writesehr:/<ehr_id>/compositions/<versioned_object_uid>into the linking composition’sLINK.target. A facade create or update runs in two passes, because ITS-REST 1.1.0 lets the CDR, not the client, assign a new composition’s id: a probe run finds the linked resources, each is committed as aPOSTwould commit it (a replay links the composition the first delivery produced, and a resource this server already serves links where it stands), and the final run writes their URIs. A resource no context maps is a declared loss,skipped-unmapped-link. A linking commit the CDR refuses answers its refusal with a warning naming each linked composition it left. A transaction or batch entry that links a resource is refused, since a transaction is oneCONTRIBUTION, and$validateruns the link without committing. The engine gains theengine::linked::LinkedCompositionsseam (Seams::with_linked),SkipReason::UnmappedLinkandReferenceError::Link; a run with no seam refuses as before.fhirconnect0.1.174. -
The FHIRconnect engine converts
ELEMENT.null_flavouragainst the code of the R4data-absent-reasonextension both ways (#93), throughengine::lens::null_flavourwith GetPut and PutGet property tests and a test per entry of its committed table. A tail on the element reachesnull_flavouras the_null_flavourfamily of the node the element shares with its value, with_null_reasonbeside it. FHIRconnectNULL_FLAVOUR.adoc’s table is no function; the cell reads it with the openEHR terminology’s null flavours (271 “no information”, 253 “unknown”), keeps a FHIR code with no flavour of its own innull_reason, and refuses a code outside either set. Breaking:SkipReasongainsNullReasonUncarried, the declared loss of anull_reasonthat names no code, so a consumer that matchesSkipReasonexhaustively adds the arm.fhirconnect0.1.176. -
A FHIRconnect mapping can now name the origin of an observation’s history,
$archetype/data/origin, which no Web Template node carries (#95). The engine writes it as the Simplified Formatshistory_originof the observation and reads it back fromHISTORY.origin. AnOBSERVATIONwhoseHISTORYcarries events, each with anITEM_LIST, now round-trips under both lens laws against a synthetic template: going out each event becomes its own resource (the FHIRconnect hierarchy split), and the origin and each event’s time keep their offset in both directions. The round-trip pass list gainsferrobridge_observation_events(5 of 5).fhirconnect0.1.171. -
Going into openEHR, a coding that carries no display now has its display resolved through
CodeSystem/$lookupon the[terminology]server (#95), as the FHIRconnectDV_CODED_TEXTpage recommends. A found display becomes theDV_CODED_TEXTvalue. A code the server does not know refuses the resource unless[terminology] display_fallback = true(FERROBRIDGE__TERMINOLOGY__DISPLAY_FALLBACK) writes the code instead. A failed call refuses either way, carrying the upstream status. With no terminology server the code stands as before, the page’s alternative “if a term server is not an option”. Lookups join the translations in one call or onebatchper round. The FHIRconnect terminology seam gainslookupanddisplay_fallback, both with refusing defaults. The engine answersEngineError::UnknownDisplayandEngineError::DisplayLookup.fhirconnect0.1.170. -
Five more
mappingCodefunctions of the published FHIRconnect library are registered (#95).timingToDailywrites a frequency per one unit of time as the1/<unit>frequency of the daily timing cluster (or an interval of them withfrequencyMax), one event per longer period as the interval between doses, and the one time of day.dosageQuantityToRangewrites a doseRangeas an includedDV_INTERVAL<DV_QUANTITY>.rangeToTextwrites a rateRangeas the text<low> <code> - <high> <code>, the only form the rate element admits beside a quantity.ratio_to_dosageandratio_to_dosage_actionwrite a rateRatio(R4’s “500ml over 2 hours”) as the rate per unit of time and the administration duration. Every quantity and range converts through the engine’sDV_QUANTITYandDV_INTERVAL<DV_QUANTITY>cells, a rate divides and multiplies exactly or is refused, and each function refuses what it cannot carry. A port onto a polymorphicELEMENTnow reads only the value node whose_typematches. The library’sdosage.v2.yml,dosage.v2.BackboneElement.ymlandtiming_daily.v1.ymlnow load, so the medication statement context gets to compile. Its refusals there are recorded on #101. It landed infhirconnect0.1.169 beside #1076, with no version of its own. -
The FHIRconnect engine converts a scalar
IntegerorInteger64tail against FHIRintegerand a scalarRealtail againstdecimalboth ways (#1081), throughengine::lens::scalarwith GetPut and PutGet property tests; going out these refused with no cell. A value outside FHIR’s 32-bitintegeris refused going out, and a decimal whose text theRealcannot render back (5.40,1e3) is refused going in, where it was rounded to the nearest binary number with no loss declared.fhirconnect0.1.173. -
The FHIRconnect engine converts
DV_QUANTITYagainstQuantity,decimalandinteger, andDV_COUNTagainstinteger,QuantityandCount(#93), each a lens with GetPut and PutGet property tests over the tables of FHIRconnectDV_QUANTITY.adocandDV_COUNT.adoc. Where a table is silent or contradicts R4, the cell decides and refuses rather than drops: the UCUM system is written beside a code (R4qty-3),units_display_nameis the counterpart ofunit, and amagnitude_statusno comparator states, a magnitude with more places than itsprecision, a count outside FHIR’s 32-bitintegerand a comparator into a count are typed refusals.FhirKind,FhirValueandRmValuegain variants, so a consumer that matches them exhaustively adds the arms.fhirconnect0.1.163. -
A FHIRconnect PROGRAMMED mapping now runs a registered function (#95).
fhirconnect::engine::library::Libraryis the registry the crate ships, and the server hands it to the loader, the compiler and every run. A function declares the openEHR ports it reads and writes below the mapping’swith.openehr, and the compiler resolves each port against the template at load: a port the template lacks isfc-unknown-template-node, one below a repeating nodefc-repeating-function-port, and ports under a mapping with no openEHR sidefc-unanchored-function-port. The first two functions of the published library are registered:dosageDurationToAdministrationDuration(Timing.repeat.durationand its unit against the administration duration) andtimingNonDaily(a timing once per week, month or year against the interval of the non-daily timing), both converting through the engine’sDV_DURATIONcell and refusing what they cannot carry. The library’stiming_non_daily.ymlnow loads in every published context. Breaking for consumers:MappingFunctionstakes the FHIR element and the port values,Method::Programmedcarries its ports, andMappingCodeRegistrygainsports.fhirconnect0.1.166. -
Every published FHIRconnect context now has its operational template in the tree (#258). Nine KDS templates join the three already vendored, each fetched by its own
scripts/vendor/kds-*-opt.shfrom the openFHIR commitdocs/VERSIONS.mdpins, with a sha256 and aPROVENANCE.md: Fall einfach, Laborbericht, Medikationseintrag, Medikamentenverabreichungen, Person Pseudonymisiert, Prozedur, Studienteilnahme, Todesursache and Vitalstatus. Thefhirconnectsuite compiles all 13 contexts verbatim against their templates and pins each verdict. None compiles: ten stop at load on a reference the library cannot resolve, three are refused at compile, and the EHDS laboratory template the library ships does not parse. A context that compiles joins the mapping-library pass list on its own. The list stays at 10 of 107. -
The FHIRconnect engine converts
DV_TIMEagainsttimeandDV_DURATIONagainstDuration(#93). The duration cell runs the UCUM to ISO 8601 bridge of FHIRconnectDV_DURATION.adoc, the eightCommonUCUMCodesForDurationrows as one committed table: a duration of several components reads in its smallest one by the factors UCUM fixes, a code outside the bridge, a comparator and a system other than UCUM are typed refusals, andmsis a one-way row. The time cell moves the text unchanged, gives the ISO 8601 basic form its separators, and refuses a time with an offset or with no seconds, which R4timecannot state.fhirconnect0.1.164. -
The FHIRconnect engine converts
DV_URIagainsturl, andDV_MULTIMEDIAandDV_PARSABLEagainstAttachment(#93), from FHIRconnectDV_URI.adoc,DV_MULTIMEDIA.adocandDV_PARSABLE.adoc. A parsable value travels base64 encoded asAttachment.data, its formalism as the content type only when it is itself a media type (the page gives no table), and a multimediaintegrity_checkishashonly for SHA-1, the algorithm R4 names. A compressed multimedia value is refused going out, since anAttachmenthas no field for the algorithm, and an attachment with data and no size takes the decoded length, a one-way row.fhirconnectnow depends onbase64.fhirconnect0.1.165. -
A FHIRconnect mapping writes a
Coding, anIdentifieror aReferenceinto an openEHRStringattribute and reads it back (#93), the cells of FHIRconnectString.adoc: a coding travels assystem::code, an identifier assystem::value, and a reference as its identifier, or as itsreferencestring coming in when it has none, a one-way row. Text holding::that would read back as another system and code is refused. Before, a tail on aStringattribute against those elements refused with no cell.fhirconnect0.1.166. -
The FHIRconnect engine converts
DV_INTERVAL<DV_QUANTITY>againstRange(#93), theRangetable of FHIRconnectDV_INTERVAL.adoc, each bound through theDV_QUANTITYcell. An absent bound is the unbounded side, as thePeriodcell reads it, and an excluded bound or a bound with a comparator, which noRangestates (R4sqty-1), is refused. A node the Web Template typesDV_INTERVAL<DV_DATE_TIME>orDV_INTERVAL<DV_QUANTITY>now reaches its cell and its pairs by the classDV_INTERVAL; before, the generic name matched no cell and a run over such a node refused.fhirconnect0.1.167. -
The shipped
datatype-pl-to-locationsupplement writes PL.11, the assigning authority, into theidentifier.assignerof each location level the PL carries (#345). The guide’s two PL.11 rows address all six levels with a[1-6].prefix the guide’s notation does not define, so the interpreter still refuses them asunsupported-target; the supplement spells them as one row per level under that level’s condition. The vendoredhl7v2corpus loses 22unsupported-targetoutcomes. -
ferrobridge-hl7v2ships message maps for 18 HL7 v2 structures the v2-to-FHIR guide has none for (#637): ADT_A15, ADT_A16, ADT_A21, ADT_A39, ADT_A44, ADT_A45, ADT_A60, BAR_P02, BAR_P12, DFT_P03, DFT_P11, MDM_T01, OMG_O19, OUL_R23, OUL_R24, PPR_PC1, RDE_O11 and REF_I12. Each takes the rows of a guide message map (or the shipped OUL_R22 map) for the segments it shares, at its own group paths, so the guide’s segment maps apply, and its description names the map it composes. A supplement for ADT_A06 names the guide’sADT_A01.PD1rowADT_A06.PD1, so ADT_A06 messages map too. Thehl7v2corpus gains the 56 messages, to 510 of 511. -
The HL7 v2 face reads a batch file (#642). A frame that opens with FHS or BHS is split by the HL7 v2 chapter 2 §2.10.3 structure into its batches and messages, each message is answered as if it had arrived alone, and the acknowledgments return in one response batch whose headers echo the file’s FHS-11 and BHS-11 and whose BTS-1 counts them (§2.10.3.2). A trailer count the file contradicts is a logged warning, and a file whose segments stand outside the structure is not answered.
ferrobridge-hl7v2gains thebatchmodule. The ReportStreamsample-batch-pdi-20210608-0001.hl7file now passes thehl7v2corpus. -
The HL7 v2 parser counts a valued repetition past a field’s cardinality, a valued component past its data type’s components and a valued subcomponent past its component’s data type, as the new
extra-repetition,extra-componentandextra-subcomponentoutcomes (#295). HL7 v2 chapter 2 §2.6 tells a receiver to ignore such constituents, so none refuses the message and each value stays in the parsed message. Components are checked against the v2.9.1 data types only, since the tables of earlier versions carry no component tables. -
A FHIRconnect mapping with no
typeonto anELEMENTwhose value admits several data types converts theELEMENT’s own value, then runs itsfollowedBychildren (#544), as FHIRconnectFollowedBy.adocorders them (“after the parent mapping method has been executed”). The compiler picks the value alternative whose class lists the FHIR type earliest inresolve::derive::PAIRS, the first in template order on a tie (our own design), and the program carries it asDerived::Value; such a mapping was an anchor that wrote nothing. The statutory insurance identifier of the library’sversicherungsinformationen.v0now round-trips in the KDS person chain as aDV_IDENTIFIER, and the twocollectedmappings ofspecimen.v1no longer warnfc-anchor-without-children.Derivedgains a variant, so a consumer that matches it exhaustively adds the arm.fhirconnect0.1.158. -
fhirconnect::operations::run::to_fhirtakes the id of the mapped resource from a caller-supplied identity seam when the seams carry one (#619):Seams::with_resource_identityover the newengine::seam::ResourceIdentitytrait, which answers aResourceRequest(the resource type, the template, the composition’sOBJECT_VERSION_IDand theidthe mapping wrote). A seam that refuses ends the run withOperationError::Identity, and an id outside the R4idgrammar withOperationError::InvalidId. Without a seam the id still derives from the writtenidor the composition’sversioned_object_uid. FHIRconnectengine/id-management.adochas the engine maintain its own resource ids and keep an export’s ids the same every time; the seam is where a caller’s identity store does that.OperationErrorgains two variants, so a consumer that matches it exhaustively adds the arms.fhirconnect0.1.156. -
[auth] scopes_supported: the scopes the bridge honours, listed asscopes_supportedin the SMART discovery document, which “the server SHALL support” (SMART App Launch 2.2.0, Conformance, Metadata); each value is one scope token, checked at load (#1007).
Changed
-
The operator console moves to FerroUI 0.3.3 (
ferrohealth-ui = "=0.3.3", #1154) with the library’ssplitfeature on, since its site builds withcargo leptos build --split. The parts the 0.3.2 rewrite drew stand-ins for are now drawn as designed (#1146): the Bridge group of the navigation and the dashboard’s flow and Upstreams card take the design’sflame,message-square,table-2andplugglyphs; every state a table cell, a fact or a title shows is the F12 state mark; a context file’s subtitle bolds its resource type and links its template. The Files tab’s Language and Owner filters are the library’s filter menu: a checkbox per choice with the number of files it keeps, sent with the find words, so?owner=console&owner=provisionednames several choices and an address with one value keeps working. -
The operator console moves to FerroUI 0.3.4 (
ferrohealth-ui = "=0.3.4", #1155), which carries the two parts the 0.3.3 move still drew stand-ins for. The dashboard’s flow draws the design’ssendglyph for the HL7 v2 senders andbook-openfor the terminology server, and its head offers How it is drawn, which opens the How the flow is drawn dialog: each state the flow draws, its line and what it means. The mapping editor and the playground’s JSON input take keys from the first paint, before the page hydrates. -
The operator console moves to FerroUI 0.3.5 (
ferrohealth-ui = "=0.3.5", #1166). The console draws no part 0.3.5 changes, so its pages look and behave as before. -
The operator console moves to FerroUI 0.3.6 (
ferrohealth-ui = "=0.3.6", #1168). The console draws no activity chart, the one part whose interface 0.3.6 changes, so its pages look and behave as before. -
Both container images name their manufacturer: the
org.opencontainers.image.vendorlabel and index annotation ofghcr.io/ferrohealth/ferrobridgeandghcr.io/ferrohealth/ferrobridge-consolereadCadasto B.V.where they readFerroBRIDGE(#1152). -
A release’s notes end with its support period (#1149): the month and year until which Cadasto B.V. keeps publishing security fixes, five years from the release date (CRA Art 13(8) and (19)). The release lane refuses a cut whose
### Securityentries name noGHSA-advisory orsecurity/vex/statement, or that mixes security and functional changes without saying why (CRA Annex I Part II(2));scripts/release/preflight.sh vX.Y.Zruns the same checks before the tag.SECURITY.mdaddsinfo@cadasto.comas a reporting route and describes the advisory each fix is published with. -
The
ferrobridgeandferrobridge-consoleimages of a release are tagged only after a Trivy scan of each pushed digest finds no fixable HIGH or CRITICAL vulnerability (#1149), and a release carriesferrobridge-vX.Y.Z-vulnerability-record.json: every finding of a full scan of both images and the server tarballs, joined with the OpenVEX statement undersecurity/vex/that judges it. The release is refused while a finding has none.security/vex/rust-advisories.openvex.jsonpublishes the argument for each advisorydeny.tomlaccepts, and the published images are scanned every week with those documents applied. -
Breaking: the operator console is renamed from
ferrobridge-viewertoferrobridge-console(#1133), as every FerroHEALTH product names its operator UI. The crate and its binary areferrobridge-console(app/ferrobridge-console), the image isghcr.io/ferrohealth/ferrobridge-console, built by the reusablerelease-console.ymlfromdocker/console/Dockerfile, and theferrobridge-viewerimage is no longer built. Upgrade note: change the image reference toghcr.io/ferrohealth/ferrobridge-console; rename the environment variables fromFERROBRIDGE_VIEWER__toFERROBRIDGE_CONSOLE__andFERROBRIDGE_VIEWER_CONFIGtoFERROBRIDGE_CONSOLE_CONFIG; incompose.yamlthe profile and serviceviewerareconsoleand the secret filesecrets/viewer_oidc_client_secretissecrets/console_oidc_client_secret, mounted at/run/secrets/console_oidc_client_secret; the compose variablesFERROBRIDGE_VIEWER_PORTandFERROBRIDGE_VIEWER_OIDC_CLIENT_SECRET_FILEareFERROBRIDGE_CONSOLE_PORTandFERROBRIDGE_CONSOLE_OIDC_CLIENT_SECRET_FILE. The session, sign-in and theme cookies are renamed fromferrobridge_viewer_*toferrobridge_console_*, so every operator signs in again after the upgrade and the theme starts from the system’s. The CI job and the build scripts follow (console,scripts/release/console-site.sh,console-tools.sh,scripts/checks/console-bundle.sh,console-paths.sh). -
Breaking: the operator console is drawn anew on FerroUI 0.3.2 (
ferrohealth-ui = "=0.3.2", #1143, FerroHEALTH/FerroUI#161), page for page from the FerroBRIDGE design. It runs in Leptos islands mode: the server draws every page whole and the browser hydrates only the menus, the code editor and the JSON input, each island loaded lazily from its own chunk (the entry bundle measured 316603 bytes brotli-compressed). The pages are the dashboard with the flow, the Mapping set with its Contexts, OMOCL, Templates, Files and Diagnostics tabs, each mapping file with its Program tab, each template, the editor, the playground with its$tofhir,$toopenehrand$validatetabs, the FHIR facade, HL7 v2, OMOP ETL, Connections, Your preferences and About. Upgrade note: the addresses moved, and an old bookmark answers the page-not-found page:/filesis/mappings/files,/files/{path}is/mappings/files/{path},/editis/mappings/new,/edit/{path}is/mappings/edit/{path},/validateis/playground/validate, and/capabilityis/facade/capabilityand/facade/security. -
Breaking: the console registers no server function. Every action (a preference, a reload, a check, a save, a playground run) is a plain form post to its page’s own address, which the server answers with the page it draws, so every action works before any WebAssembly arrives. Upgrade note: the console’s
/api/…server-function routes no longer exist; the console has no API, and a script reads the bridge’s operator API. -
Breaking: the theme toggle is gone from the top bar. The theme is set in the user menu and in Your preferences alone. Your preferences has three tabs (Appearance, Language and region, Keyboard), and each choice is kept in a cookie of its own for a year:
ferrobridge_console_theme,_density,_motion,_language,_week-startand_hints(under__Host-when the cookies are secure), with Reset to defaults clearing them. The sidebar folds to a rail, kept inferrobridge_console_sidebar. Upgrade note: every operator chooses the theme again; nothing to configure. -
Breaking: a sign-out with no
end_session_endpointconfigured lands on the new signed-out page,/signed-out, instead of the sign-in. A sign-in the provider refused, could not complete, or a full session pool now draws the sign-in card with what happened and the way on, with the status401,502or503. Upgrade note: nothing to configure; a monitor that followed the sign-out to/follows it to/signed-out. -
The editor saves a draft with LF line ends: a text area posts its line breaks as CRLF (HTML Living Standard §4.10.11), and the console reads the draft back with the LF the editor shows, so the bytes saved are the bytes you edited. A
$toopenehranswer in the playground shows the composition itscompositionparameter carries, with the issues of itsoutcomeabove it, and the template is a choice of the running set’s templates. The Settings tabs and the Configuration page of the design wait for the operator API’s configuration document (#1147); the design’s navigation glyphs, its state words and a subtitle with markup wait for FerroUI (#1146). -
The workspace builds with Rust 1.99.1 in place of 1.98.1, and the MSRV stays at 1.98: the FerroHEALTH family builds with the latest stable toolchain and declares the release before it as its MSRV. Clippy 1.99’s new
assert_is_emptylint is answered in the tests it names, which movesfhirconnectto 0.1.179 with no API change, since its unit tests live undersrc/. -
Every word the operator console shows now comes from its catalog (#956): the faults and refusals it draws in a page, the severity of a diagnostic, and the plain-text answers of sign-in, sign-out and a request from outside its pages, which follow the request’s
Accept-Languagelike the pages do. English is the one catalog, so the words are unchanged, and a language joins as one catalog file. The stray-literal check in CI now holds the console to no string outside the catalog, with a reason recorded for each protocol token it allows. -
A reference the facade could not fetch now refuses the request with
502 Bad Gatewaywhen a mapping reads it (#94): a sending site that answers a status other than404or410, times out, or answers a body that is not the referenced resource, and a CDR read that fails, are upstream failures, whichengine/Fail.adocdoes not let a mapping drop. The single create and update, a transaction and$validateall answer it, and theOperationOutcomenames the reference and the upstream status. A resource the sending site or this server does not hold stays a declared skip. -
The container lane runs the reference CDR at FerroEHR 5.1.0, which serves demographic AQL rooted at
PERSON,ORGANISATIONandROLE(#965). The facade’s party search runsidentifier,name,_idand_countonPatient,Practitioner,OrganizationandPractitionerRoleagainst it and finds the parties the test created, paged and with a deleted party left out. A search configured overGROUP,AGENTorPARTY_RELATIONSHIP, which the CDR refuses, answers501 not-supportednaming the Cadasto experimental AQL demographic extension. -
The FHIRconnect engine’s data-type cell dispatch is a module folder,
engine::cellwith the held-value readers in a child module (#1079), under the file-length threshold. Behaviour and public API are unchanged. It landed infhirconnect0.1.170 beside the display lookup (#95), with no version of its own. -
The operator console takes FerroUI 0.2.0 and reads every word it hands FerroUI from its catalog at run time (#956): table captions, column headers, pager nouns with their plurals, navigation, fields, dialogs and page titles come from
locales/en/ferrobridge-viewer.ftl, and the stray-literal baseline drops from 384 to 78 literals. English remains the only locale. -
openehr-mapping-core0.1.121 parses a mapping header’sspec.openEhrConfig.archetypethrough theopenehr-baseBASE 1.2.0ArchetypeIdand drops its own copy of the grammar (#1026). The accepted form is unchanged: FHIRconnect v1.0.0 writes the header’s archetype asopenEHR-EHR-ACTION.informed_consent.v0and never names a namespaced ADL 2 id, so the namespaced form and a full version stay refused (our own design). Breaking for a consumer that matches onArchetypeIdError: itsShape,QualifiedRmEntity,DomainConceptandVersionIdvariants are gone, and a refusal is nowLexical, carrying theopenehr-baseIdErroras its source, orVersionRangefor a version pastu32.ArchetypeId::basereturns theopenehr-basevalue.fhirconnect0.1.163 renders the new requirement. -
Breaking: the facade, the operator API and the CDR and terminology lanes authenticate through
ferrohealth-smart0.1.0, the FerroHEALTH family’s SMART and OAuth 2.0 resource-server crate (#981). Its sections replace the bridge’s own, so a deployment changes these keys:[auth]is on by default (enabled = true).serverefuses to start a facade, an operator API or a FHIRconnect operations lane until[auth]namesissuerandaudience, or untilenabled = false(FERROBRIDGE__AUTH__ENABLED=false) serves them open. A server that serves only/and the health routes, and the jobs, read no[auth].auth.audienceis a list (audience = ["https://…/fhir"], andFERROBRIDGE__AUTH__AUDIENCE='["https://…/fhir"]'); a token’saudmust contain one of them.auth.jwks_refresh_interval_msbecomesauth.jwks_refresh_interval_seconds(default60), andauth.jwks_max_age_seconds(default600) is new: a key set older than that is read again before a token is checked, so a key the issuer withdrew stops verifying (#972).auth.algorithmsdefaults toRS256,RS384,PS256,PS384,ES256andES384, where it wasRS256andES256.auth.issuermay be plainhttpon a loopback host; elsewhere it stayshttps.auth.operator_scopebecomesauth.product_scope, and its defaultferrobridge.operatorbecomes__ferrobridge.operator, the extension form SMART App Launch 2.2.0 gives a scope (a string starting with__or a full URI); any other value refuses the start. Grant the new scope in the authorization server before you upgrade.- New in
[auth]:[[auth.issuer]]tables for several trusted issuers,[[auth.basic.users]]for HTTP Basic callers with an Argon2idpassword_hash(orpassword_hash_file) and theirscopes,jwks_file, andrealm. [cdr.credentials]and[terminology.credentials]loseuser_file; the user-id is read inline fromuser.[cdr.credentials.oauth]and[terminology.credentials.oauth]takeclient_auth = "private_key_jwt"withprivate_key_file,kidandassertion_alg, andtimeout_ms(default10000), which bounds a call to the token endpoint in place of the lane’s own timeout; an emptyscopesends noscopeparameter.
The facade’s refusals keep their
OperationOutcomebodies and challenges; twoAuthorizationvalues, or a value that is no credential (a scheme with nothing after it), answer400withinvalid_request(RFC 6750 §3.1), and a route the guard does not classify answers its403without a challenge. The discovery document no longer claimspermission-v2, which SMART App Launch 2.2.0 defines as granular scope support the facade does not evaluate. The audit line moves to theferrohealth_smart::audittarget with the family’s field set:principalreplacessubject,target(Condition/c-1) replacesresource_typeandresource_id, andvia,issuerandrouteare new. The operator API’s request line moves there too; a save or a reload still writes its change record onferrobridge::audit.src/auth/andsrc/cdr/oauth/are gone from the server (#977), andferrobridge_server::credentials::UpstreamTokenhands the crate’s token to both upstream clients. -
The HL7 v2 corpora count a message the face refuses correctly as a pass (#639).
crates/ferrobridge-hl7v2/tests/it/corpus/expected-refusals.txtlists 167 messages with the acknowledgment code and the HL7 table 0357 error HL7 v2 chapter 2 owes them: 152 ReportStream mapping-inventory fragments, 6 FHIR-Converter samples that break their declared structure, 4 AIRA examples built to omit the RXA, and 5 messages whose bytes leave the declared character set or whose MSH-18 names no table 0211 code. A listed case fails when the face takes the message or answers it otherwise. Thehl7v2badge moves from 290 to 453 of 511 and thehl7v2-smokebadge from 375 to 379 of 379. -
The release workflow refuses a tag whose milestone, titled exactly as the tag, is missing or still holds an open issue or pull request, and names each one; once every leg has succeeded, crates.io included, it closes that milestone (#983).
-
The
openehr-*crates move from 0.0.87 to 0.0.89 (openehr-base,openehr-rm,openehr-its,openehr-sdt,openehr-am,openehr-queryandopenehr-adl). 0.0.89 adds theopenehr-sdtparty builder, the builder option that namesARCHETYPED.rm_version, and the BASE 1.3.0ARCHETYPE_IDgrammar inopenehr_base::v1_3, which now admits the namespaced ADL 2 form and a full version.openehr-mapping-core0.1.119 andfhirconnect0.1.160 render the new requirements. -
A composition the bridge builds names each structure the FLAT form leaves out (an
ITEM_TREEunder an entry, for example) by its term definition in the template, where it named it by its node id before (RM Common IM,LOCATABLE.name). Theopenehr-sdt0.0.89 builder does this. -
ferrohealth-smart0.4.0 (#1110). Every[<lane>.credentials.oauth]table takes the keys the crate adds:client_auth = "tls_client_auth"or"self_signed_tls_client_auth"withclient_certificate_fileandclient_key_filefor RFC 8705 §2 mutual TLS to the token endpoint,ca_filefor trust roots added to the built-in ones, andassertion_audience = "issuer"for aprivate_key_jwtassertion that names the issuer (RFC 7523 §3) in place of the token endpoint. -
ferrohealth-smart0.3.1 and theopenehr-*crates 0.0.90 (#1062), whichferrohealth-smart0.3.1 pins;fhirconnect0.1.168 andopenehr-mapping-core0.1.124 build on them. The facade and the operator API refuse a token whosesubis empty or whitespace only (RFC 9068 §2.2, RFC 7519 §4.1.2) and a bearer value outside the RFC 6750 §2.1b64tokensyntax, each with the generic401 invalid_token. An enabled[auth]section with Basic users and no issuer is refused at load: the discovery document and theCapabilityStatementname the issuer’s token endpoint. -
ferrohealth-smart0.2.0 (#1018). The SMART discovery document writesissuerandsso-openid-connectonly when[auth] capabilitiesnamessso-openid-connect; SMART App Launch 2.2.0 (Conformance, Metadata) omitsissuerotherwise. A client that readissuerfrom the document reads the authorization endpoints it names, or the bridge advertises OpenID Connect sign-in by configuration. The document declarespermission-v1,permission-patientandpermission-user, the scopes the route table and the patient compartment enforce. -
ferrohealth-smart0.1.1 (#1007). The operator scope moves from[operator] scopeto[auth] product_scope(environmentFERROBRIDGE__AUTH__PRODUCT_SCOPE), default__ferrobridge.operator, checked by the crate in the same two SMART extension forms. The audit line’s field for what a request addressed isaddressed, where it wastarget, so a JSON log keeps it beside the event’s owntarget; a log query that readtargetfor the addressed resource readsaddressed.[auth] capabilitiesrefuses at load a value SMART App Launch 2.2.0 does not define unless it is a full URI. The issuer and resource checks of[<lane>.credentials.oauth]and the Basic password read are the crate’s now, with the same refusals at load. -
servewarns that[auth]is off only when a surface it guards runs, and names those surfaces (the facade, the operator API, the operations lane); a server with only/and the health routes logs nothing (#1005). -
openehr-mapping-core0.1.120 passes the RM release it chooses to theopenehr-sdtcomposition builder (#901), so the builder writesARCHETYPED.rm_versionand the walk that rewrote it afterwards is gone. The choice is unchanged: Release 1.1.0, unless the composition holds aGENERIC_ENTRYwhosedatais noITEM_TREE. -
openehr-mapping-core0.1.120 builds a party through theopenehr-sdttemplate walk (#906) and drops its own party assembly with the OPT 1.4 structure index behind it.ROLE.performer, which no template node holds, is still placed on the root after the walk (#1000). Breaking for a consumer that matches onPartyError:NoStructure,UnconstrainedandInstanceGapare gone, and a value the builder refuses is the newPartyError::Build, which carries theopenehr-sdtFlatErroras its source.fhirconnect0.1.161 renders the new requirement.
Fixed
- A FHIRconnect untyped choice element that admits both
PeriodandRange, mapped onto aDV_INTERVAL<DV_QUANTITY>node, is written asRange(#1080); it pickedPeriodand the run refused with no cell.resolve::derive::PAIRSkeys the interval rows by parameter (DV_INTERVAL<DV_DATE_TIME>withPeriod,DV_INTERVAL<DV_QUANTITY>withRange), an interval of any other parameter pairs with nothing and is refused at load, and the cells refuse aPeriodinto a quantity interval and aRangeinto a date-time one.PAIRSgains two rows, so a consumer that reads the table sees them.fhirconnect0.1.177. - A facade write, transaction or
$validatewhose mapping run fails because the terminology server failed (no answer, a timeout, a5xx, a refused$translateor$lookup, an answer that does not decode) now answers502withtransientand the upstream status in the diagnostics (#1094). It answered422withprocessing, as if the resource were wrong. A translation the server answers with no match stays the mapping’s422. - A FHIRconnect
mappingCodemapping, amanualmapping and ahierarchy.splitinside areferencenow run when their FHIR path climbs out of the referenced resource with^(#1095). They read and wrote the referenced resource and refused with an unknown element; they now read and write the resource the path climbs to, as every other mapping has since the worked^^.use.codingexample ran.fhirconnect0.1.173. - A value node of a polymorphic
ELEMENTreads only a value of its own class (#1100).WebTemplateIndex::readlet every alternative read the element’s one value, so aDV_INTERVALwas also read at theDV_QUANTITYnode. The_typeof the value now picks the alternative, the most specific class it conforms to, andWebTemplateIndex::alternativesandWebTemplateIndex::holdsare new. A value with no_typeat a polymorphicELEMENTisPathError::UntypedAlternative, a new variant. Infhirconnect, a mapping whose type the compiler matched to one alternative refuses anELEMENTthat holds another, and an instance that holds another alternative still counts when the engine probes occurrences.openehr-mapping-core0.1.125,fhirconnect0.1.178. - A FHIRconnect
DV_INTERVAL<DV_DATE_TIME>whose present bound is excluded is refused going out toPeriod(#1076), because both R4Periodbounds are inclusive; it was written as an inclusive bound with no loss declared. The refusal is aLensError::ShapenamingDV_INTERVAL.lower_includedorDV_INTERVAL.upper_included.fhirconnect0.1.169. - A
^run that climbs out of a referenced resource now runs in both directions (#94). The compiler accepted the worked^^.use.codingexample ofbasics/path_operators.adoc, and the engine then refused it, reading the Encounter’s path in the referenced Condition. Each FHIR target now records the resource it is rooted in, the engine keeps the document areferencemapping left with the occurrence it was entered at, and a conditiontargetRootand the children of such a mapping anchor in that resource too.fhirconnect0.1.170. - A FHIRconnect tail below a
DV_INTERVAL<T>node, such as/lowerbelowDV_INTERVAL<DV_QUANTITY>, compiles and runs (#1077): the tail is looked up on the interval class and a bound is read as the node’s parameter, so/lowerconverts through theDV_QUANTITYcell. It was refused at load withfc-uncarried-tail, and a tail the parameter does not declare is still refused.fhirconnect0.1.172. - The console’s file editor names its mode in its header (#982): the New
file route reads “New mapping file” and an existing file reads “Edit
”, with the matching page title. - An untyped FHIR choice element mapped onto an
ELEMENTwhose value admits several data types converts (#1055), the shape the publishedlaboratory_test_analyte.v1.ymlandvital_status.v1.ymlwrite forObservation.value. The compiler keeps every pair of a choice alternative with a value alternative the data-type chapter defines (Derived::Polymorphic); going into openEHR the alternative the document carries selects the value node, and coming out the class the composition holds selects the alternative written. An alternative or a class no pair names refuses the run. Before, the mapping derived nothing and drew anfc-anchor-without-childrenwarning.Derivedgains a variant, so a consumer that matches it exhaustively adds the arm.fhirconnect0.1.168. - An HL7 v2 message sent under a code and trigger event that no v2.9.1
message definition carries, and whose MSH-9.3 names no known structure, is
parsed against the structure the interactions of its version’s tables send
under that event (#1016):
REF^I14^REF_I14at 2.8 takesREF_I12, counted asother-structure, where it was refused with AR. The HL7/v2ig definitions carry no REF or RRI message, sofhir-codegenreads theinteractions.jsontable of the IGAMT export andhl7v2-typesgainsmessage::LEGACY_EVENTSandmessage::legacy_events, every other code and event a legacy version’s interactions send one of its structures under. FHIR-Converter’sREF-I14-01now maps. - A FHIRconnect model mapping that names an archetype node the operational
template excludes now compiles: the method is left out of the program with
everything under it and an
fc-excluded-template-nodewarning, where it was refused withfc-unknown-template-node(#1040). FHIRconnectmodel-mappings.adoc§Mapping 0..0 fields says such methods “are ignored and not executed”. The node counts as excluded only when the archetype root of an OPT 1.4 defines its at-code and the template carries no node for it at that place; a code the archetype never defined, a name the template does not carry, and a method an extension contributes are still refused.WebTemplateIndex::archetype_definesis the newopenehr-mapping-corecall behind it. - A FHIRconnect mapping onto
$composition/context/end_timenow compiles and round-trips (#1043). The engine writesEVENT_CONTEXT.end_timeas the_end_timefamily of thecontextnode, as Simplified Formats master05 §EVENT_CONTEXT spells it, and reads it back from the context, where it was refused withfc-uncarried-tail. - A FHIRconnect path that names an
ELEMENTthe Web Template compacts into its value now reaches the element’slinks(#1042), asFHIRReference.adoc§Dedicated Node writes$openehrRoot/linksbelow an element. Alinkthere writes the element’s_link:ifamily and reads it back from the element, and a condition onlinksreads the element’s list; the resolver used to walklinkson the value’s class and refuse it.openehr-mapping-coregainsWebTemplateIndex::read_elementandPathError::NotAnElementValue. - Two sibling FHIRconnect mapping methods that share a name now compile with
an
fc-duplicate-method-namewarning, and the refusal moves to theoverwriteorappendTothat names the shared name (#1041). FHIRconnectbasics/body.adocgives a mapping name no role outside those references. - The HL7 v2 interpreter removes every reference a kept resource holds to a
resource it left out of the Bundle and counts each as a
dangling-referenceoutcome naming the element and the resource left out (#313). FHIR R4 resolves a Bundle reference against the entries’fullUrl, so such a reference pointed at nothing. The referring resource stays unless the removal leaves it without a required element, and the corpus test asserts no Bundle keeps one. The vendoredhl7v2corpus carries 29 of them in 27 messages. - A Bundle entry member the HL7 v2 interpreter cannot write is a counted
entry-unwritableoutcome naming the resource and the path, where it was only a warning in the log (#316). - The
defining_codeof aDV_CODED_TEXTvalue read out to a FHIRstringis a declared loss (#1011). The chapter writes nostringrow forDV_CODED_TEXT(FHIRconnectDV_CODED_TEXT.adoc§STRING calls the pairing not possible), so the value converts asDV_TEXTand its code was dropped with no trace; the run now reports it as aLoss::Skippedwith the newSkipReason::DefiningCodeUncarried, located at the element and the value’sdefining_code. A consumer that matchesSkipReasonexhaustively adds the arm. The facade’s loss log labels itskipped-defining-code-uncarried.fhirconnect0.1.160. $toopenehrresolves areferencemapping against the request Bundle by the R4 rules for a reference inside a Bundle (R4 bundle.html §2.36.4.1), the same resolver the subject check runs (#1010): a version-specific reference matches the entry’smeta.versionId, and a relative<type>/<id>is read against the server base of the mapped entry’sfullUrl. Before, the seam matched only an exactfullUrlor<type>/<id>, so a versioned reference fell through to the further source. A reference two entries answer refuses the run with the newReferenceError::Ambiguous, andBundleReferences::with_referrernames the entry whose references it resolves. A consumer that matchesReferenceErrorexhaustively adds the arm.fhirconnect0.1.161.- The FHIRconnect operations answer a refusing identity seam and an id it
answers outside the R4
idgrammar as the server failures they are (#1012):500with the issue codeexceptionforOperationError::Identityand500withvalueforOperationError::InvalidId, where both were a400withprocessing.OperationError::issue_typechanges for the two variants, and the server’s status table names every variant, so a new one is a compile error until it is placed.fhirconnect0.1.162. - A
TERM_MAPPINGthat aDV_TEXTorDV_CODED_TEXTvalue carries out to a FHIRstring, or aDV_CODED_TEXTvalue carries out to a singleCoding, is a declared loss (#623). Those pairs givemappingsno FHIR row (FHIRconnectDV_TEXT.adoc§String,DV_CODED_TEXT.adoc§Coding), so the engine writes none of them, as before, and now reports each one as aLoss::Skippedwith the newSkipReason::TermMappingUncarried, located at the element and the value’smappings;term_mapping::Withheldgainscause(). A consumer that matchesSkipReasonexhaustively adds the arm. The facade’s loss log labels itskipped-term-mapping-uncarried. SkipReason::EmptyReferencedocuments what the engine does (#511): aReferencewith no literal reference is skipped whatever else it carries, because adisplayor anidentifieralone names no resource to fetch (R4 references.html §2.3.0.3 and §2.3.0.4).fhirconnect0.1.159.- The HL7 v2 parser judges a segment group by placing every following
segment with the same choice rule it applies to the segment itself, so a
repeated
ORDER’s ORC in an OML^O21 opens a newORDERinstead of an optional-ledPRIOR_RESULT.ORDER_PRIORit cannot complete (#638). The six NIST LOI OML_O21 messages refused for it now parse and map. The nested trial walks share a budget of 4096 placements per segment, our own bound on the work an ambiguous message can cost. - The HL7 v2 face decodes a message whose MSH-18 repeats with its first
repetition, the default character set by HL7 v2.9.1 chapter 2 (#641). It
still refuses one whose MSH-20 names a switching scheme from table 0356.
In
ferrobridge-hl7v2,DecodeError::AlternateCharsetsis replaced byDecodeError::SwitchingScheme { scheme }; a caller matching the old variant matches the new one. $toopenehrcompares the subjects of a Bundle as the entries their references resolve to (#399), by the R4 rules for resolving a reference in a Bundle (bundle.html §2.36.4.1): an absolute reference (urn:uuid,urn:oid, a URL) matches an entry’sfullUrl, a relative<type>/<id>is made absolute against the root of the referring entry’s RESTfulfullUrl, and a version-specific reference also matchesmeta.versionId. A document that addresses its Patient entry by aurn:uuidfullUrl, as both HL7 Europe EPS example documents do, now maps; references that resolve to two Patient entries are still refused. A relative reference in an entry with no RESTfulfullUrl, which R4 gives no meaning, is read against each entry’s type and id (our own design).fhirconnect0.1.153.scripts/gh/watch-prs.shno longer writes a broken line when the default branch and a pull request both changed the same version line (#1022). The merge read its second capture after a nested match had overwritten it, sofhirconnect = { … version = "0.1.157" }became0.1.157glued to the next line. It now keeps the higher version at each position, leaves any hunk that differs beyond its versions to stop the merge, and refuses a manifestcargo metadatacannot read.
Security
Shipped with functional changes because: only the newest release is supported (SECURITY.md), so a separate 0.0.10 patch published beside 0.0.11 would be out of support the moment 0.0.11 lands and give no one a release to stay on; each fix is a dependency or base-image bump with no behaviour change of its own.
ctutilsmoves from 0.4.2 to 0.4.5 (RUSTSEC-2026-0385, GHSA-qq87-xvj3-pfgj): before 0.4.4 its constant-time mask generation could compile to a branch on a secret value. It reaches the build throughdigest0.11.- The TLS stack the bridge calls the CDR, the terminology server and the
sending sites through no longer trusts the distrusted emSign
intermediates:
rustls-webpki0.103.16 rejects their public keys (RUSTSEC-2026-0382), andwebpki-rootsandwebpki-root-certs1.0.10 drop the root that allowed them (RUSTSEC-2026-0381, RUSTSEC-2026-0383, GHSA-6q27-c9m3-vj9m). - The bridge and operator console images no longer trust the compromised
eMudhra (emSign) intermediates in the system trust store (Debian
DSA-6572-1, GHSA-6q27-c9m3-vj9m, #1140). The distroless base
gcr.io/distroless/static-debian13:nonrootmoves to index digestd620678, which shipsca-certificates20250419+deb13u1, in theFROMofdocker/Dockerfileanddocker/console/Dockerfileand in the pin row.
0.0.10 - 2026-10-19
The openEHR demographics release. The FHIR facade serves Patient,
Practitioner, PractitionerRole and Organization from FHIRconnect party
contexts over the ITS-REST 1.1.0 Demographic API, searches them through the
Cadasto experimental AQL demographic extension, chains clinical searches
through the patient identifier, and gives a created Patient its EHR. The
terminology lane authenticates with OAuth 2.0 client credentials, and the
static bearer token is gone from both upstreams.
Added
-
The terminology lane authenticates with the OAuth 2.0 client credentials grant (#962):
[terminology.credentials.oauth]takes the keys of[cdr.credentials.oauth], and the same token cache obtains the token, shares it across calls, renews it before it expires, and renews it once when the terminology server answers401. A renewal that obtains no token ends the call with the terminology server’s refusal and the token endpoint’s error.ferrobridge-term0.1.129 addsconfig::Credentials::OAuthover a caller-suppliedconfig::TokenProvider, and theerror::Error::Tokenanderror::Error::Renewalvariants.ferrobridge-validatormoves to 0.1.129 with it. -
The party search takes
name,_idand_count=0besideidentifier(#931).namematches a name that starts with the value, case-insensitively as R4 string search asks:[facade.party_search.types.<Type>] name_querybinds the value as typed, in lower case and capitalised, because the extension’sLIKEis case-sensitive; other case forms and accents are a stated gap._idreads the one party it names._count=0answers the number of matches intotalwith no entries (R4 search §3.1.1.5.3), and_countis capped atsearch_count_max. A bare identifier value two parties carry answers both. A type’squeryis now optional, and theCapabilityStatementdeclares exactly the parameters each type takes. -
A
Patientcreated in a party context gets its EHR under the subject link when[facade] ehr_policyiscreate_on_first_write(#932): the facade finds the EHR keyed by the new party’s id, or creates it with that id inEHR_STATUS.subject, so the clinical resources that name thePatientfind it. Underexistingthe create sends no EHR call. A failed EHR call after the party committed answers the EHR refusal with a warning naming the storedPatient. No specification governs this: our own design. -
fhir-types0.1.127: everyschema::FieldSchemacarriestarget_profiles, theElementDefinition.type.targetProfilecanonicals of the element’s types in definition order, in all five versions (#926), so a consumer reads which resource types aReferenceadmits from the element table. A consumer that builds aFieldSchemaliteral adds the field. -
The facade’s subject search parameters take the
:identifiermodifier (#923):Condition?patient:identifier=[system]|[value]matches theReference.identifierof a resource’s subject (R4 search.html §3.1.1.4.12). That identifier is the subject the identity map keys by system and value, which the facade renders as an identifier. A subject rendered as a literal reference carries none and matches nothing, and so does|[value].[value]alone and[system]|answer400 not-supported, because the map keys a subject by system and value. No specification governs the identity map: our own design. -
The facade searches
Patient,Practitioner,PractitionerRoleandOrganizationbyidentifierthrough the Cadasto experimental AQL demographic extension, behind[facade.party_search]with one configured query per type (#480). Each page runs the query withoffsetandfetchand reads every party it names over the Demographic API. A CDR that answers400to the query, as one without the extension does, answers501withnot-supportednaming the extension. TheCapabilityStatementdeclaressearch-typeandidentifieron exactly the configured types, and a configured type no party context serves refuses to boot.docs/architecture.md§4.12 writes down the dialect’s semantics as the extension’s guide documents them and Cadasto observed them, with the findings Cadasto plans to change. No specification governs the extension: our own design. -
The FHIR facade serves
Patient,Practitioner,PractitionerRoleandOrganizationfrom party contexts over the ITS-REST 1.1.0 Demographic API, DEVELOPMENT, behind[cdr] demographic(#470). Read, vread,GET [type]/[id]/_history, create, update (overIf-Matchor the latest version) andDELETE [type]/[id], which answernot-supportedfor a type no party context serves; a party context with the key off is a boot refusal. The id is the party’sversioned_object_uidandmeta.versionIdits version tree id, with no identity-map entry; a Demographic API400answers500, and404,409,412and422answer as themselves. TheCapabilityStatementdeclares the six interactions and no search per party type. No specification governs a party context: our own design. -
A party context maps
ROLE.performer, the mandatoryPARTY_REFno template node holds (RM Demographic IM, theROLEclass), as$archetype/performer, so the facade creates and updates aPractitionerRole(#911).PractitionerRole.practitionermust name aPractitionerthe facade serves, relative or under its base, with nothing besidereference. It becomesPARTY_REF {namespace "demographic", type "ACTOR", id HIER_OBJECT_ID <uid>}and reads back asPractitioner/<uid>, the type taken from the element’stargetProfile. A reference of another server (EngineError::ForeignParty), of another type, carrying a display, or local to the request answers422, and aROLEwith noperformer, built or served, is refused (PartyError::RoleWithoutPerformer). An element whose reference admits no single type is refused at load (fc-party-ref-target).fhirconnect0.1.151 addsRmValue::PartyRef, thePARTY_REF-against-Referencepair,EngineError::ForeignPartyandEngineError::PartyRefTarget, which breaks an exhaustive match over either enum;openehr-mapping-core0.1.118 addsPartyError::RoleWithoutPerformerthe same way. No specification governs this correspondence: our own design. -
The facade’s search chains through the patient identifier (#492):
Observation?patient.identifier=MRN-1,subject.identifierandsubject:Patient.identifier, on every type a search declaration answers. With[facade.identifier_search] enabled, a configured demographic AQL query in Cadasto’s experimental extension resolves the identifier to its parties, each party’s uid names a patient, and the EHR comes from the identity map orGET /ehr?subject_id=. An unknown identifier answers an empty searchset with no clinical query, and_count=0answers the total alone. A value naming a system needssystem_query. TheCapabilityStatementdocuments the chain on each subject parameter while it is on. No specification governs the resolution: our own design. -
A party program runs through the engine (#905).
WebTemplateIndex:: build_partybuilds a canonicalPERSON,ORGANISATIONorROLEfrom the node values a party context writes, through theopenehr-rmtypes: the objects between two template nodes are the ones the OPT 1.4 constrains there, named by their rubric, every list attribute is an array, no composition attribute is written, and the result decodes strictly as the root’s class (PartyError::Invalidotherwise).openehr-sdt0.0.87 builds no correct party (#897, FerroHEALTH/FerroEHR#3810).fhirconnect’sengine::traverse::party::to_partyandfrom_partymap a FHIR resource to a party and back;WebTemplateIndex::readreads anyCanonicalDocument. No specification governs a party build: our own design. -
FHIR
Organizationround-trips through the KDS laboratory request chain (#543). The publishedKDS_Laborauftragtemplate is vendored byscripts/vendor/kds-laborauftrag-opt.shat the openFHIR commitdocs/VERSIONS.mdpins, and a FerroBRIDGE project context compiles the library’sorganisation.v1.ymlverbatim, reached through the service request’sreferenceto its requester: a containedOrganizationmaps into theEinsendercluster and comes back as a createdOrganizationthe request references, and both lens laws hold.organisation.v1.ymljoins the mapping-library pass list andkds_laborauftragthe round-trip list; every published file of the chain that does not compile is pinned by file and line. -
FHIRconnect party contexts compile (#898). A context whose operational template is rooted at a
PERSON,ORGANISATIONorROLEis a party context, read from the RM type of the template root, andProgram::partynames the class. A party context refuses at load, each with a code of its own:$composition(fc-party-composition-variable), a path naming a composition attribute the defaults orctx/set (fc-party-composition-field),participationsFunction(fc-party-participation),link(fc-party-link) and entering a context whosestartslots a composition (fc-party-sub-context-composition).to_openehrandto_fhirrefuse a party program withEngineError::PartyProgramuntil the party build lands (#897). No specification governs a party context: our own design. Breaking for a consumer that matchesResolveCodeorEngineErrorexhaustively: add the new arms.
Changed
-
Only the newest release is supported (#979).
SECURITY.mdsays that every earlier release stops receiving fixes when a new one is published, with no maintenance branches, no long-term-support line and no backports, and that upgrading is free. Cadasto B.V. commits to keep publishing security fixes for at least five years after each release (Regulation (EU) 2024/2847 Art 13(8)) and ships them only in the newest release (Art 13(10)). -
A CDR that refuses the chained
patient.identifierquery of the Cadasto experimental AQL demographic extension now answers501withnot-supported, the answer the party search gives, where it answered500(#954). Both paths go through one status function, naming the extension and carrying the CDR’s words. -
Breaking for a library consumer of
fhirconnect0.1.148:fhirconnect::resolve::program::binding::PartyClassis gone, andProgram::partyanswersopenehr_mapping_core::party::PartyClass; a consumer imports it from there.EngineErrorgainsCompositionProgramandPartyBuild, and a consumer that matches it exhaustively adds the arms. -
The operator console draws with
ferrohealth-ui0.1.4 (#904). The dashboard’s build instant reads on one line as the library draws every date-time, in UTC and cut to the second, with the value as the bridge sent it in its title. On a phone the dashboard’s tiles are compact one-line tiles, and a disabled field keeps its edge in the dark theme. -
The operator console draws with
ferrohealth-ui0.1.5 (#924), the FerroUI release every FerroHEALTH console moves to together. The console looks the same: 0.1.5 adds a per-row form field and a header title it does not use yet, and its browser half no longer asks for a wasm-bindgen of its own. -
The operator console draws with
ferrohealth-ui0.1.6 (#948), the FerroUI release every FerroHEALTH console moves to together. The console looks the same: 0.1.6 adds the shared field shapes the other consoles needed, and the console’s fields already draw through the library. -
The operator console draws with
ferrohealth-ui0.1.7 and is ready for more languages, English the one that ships (#956). The library’s words and the console’s come from Fluent catalogs, the console’s underapp/ferrobridge-viewer/locales/, so a language joins as a catalog file with no code change. The locale is chosen once per request, the best language ofAccept-Languagethe console’s catalog holds or else the new[server] locale(defaulten), and the page writes it as<html lang>.scripts/checks/stray-literals.shfails CI on a console string outside the catalog beyond the per-file baseline the remaining strings hold while they move. -
The README, the landing page and the build-order page name v0.0.9 as the latest release, and
scripts/checks/versions.shcompares the release each names with the workspace version and its changelog date, so the next cut fails the guard until they move with it (#908).
Removed
- Breaking: the static bearer token is gone from
[cdr.credentials]and[terminology.credentials](#961). The bridge authenticates to an upstream with RFC 7617 basic authentication, or to the CDR with a token it obtains through the OAuth 2.0 client credentials grant ([cdr.credentials.oauth]). A configuration that still setsbearer_tokenorbearer_token_file, or theFERROBRIDGE__CDR__CREDENTIALS__BEARER_TOKEN[_FILE]andFERROBRIDGE__TERMINOLOGY__CREDENTIALS__BEARER_TOKEN[_FILE]variables, refuses to start on an unknown key. Replace it withuserandpassword_file, or for the CDR with[cdr.credentials.oauth]. The compose quickstart’scdr_bearer_tokensecret is nowcdr_password, read throughFERROBRIDGE__CDR__CREDENTIALS__PASSWORD_FILEbesideFERROBRIDGE__CDR__CREDENTIALS__USER, and the quickstart passes theFERROBRIDGE__CDR__CREDENTIALS__OAUTH__variables through. The Operate page recommends the OAuth path when the FHIR facade and the CDR are separate audiences of one authorization server (#952).ferrobridge-term0.1.128 dropsconfig::Credentials::Bearer, and the server’sCdrConfig::with_credentialsbecomeswith_basic; a consumer passes a user and a password.
Fixed
- The compose quickstart passes the terminology server’s credential
variables through to the bridge,
FERROBRIDGE__TERMINOLOGY__CREDENTIALS__USERand__PASSWORD_FILEfor basic authentication and the five__OAUTH__variables for the client credentials grant, as it does for the CDR, and mounts a newterminology_passwordsecret (#976). Createsecrets/terminology_passwordbefore the nextdocker compose up; it may be empty when the terminology server checks no credentials. The CI compose check asserts every CDR and terminology credential variable reaches the bridge. scripts/checks/crate-version-guard.shdiffs from the merge base of its base ref and the head, and the CI job passes the target branch as fetched now, so a crate changemaingained after a pull request forked is no longer counted against that pull request (#969).--self-testreproduces that case over a scratch repository, and the CIversionsjob runs it.scripts/gh/watch-prs.shjudges only the newest run of each workflow on a pull request’s head, so the failed jobs of a run a later push superseded or cancelled no longer stop it as red (#955).--self-testchecks the verdict against fixture checks, and the CItracker-helpersjob runs it.- A chained
patient.identifier,subject.identifierorsubject:Patient.identifiervalue that more than one patient carries now matches the clinical resources of every one of them (#944). The facade answered400 multiple-matchesinstead, which was non-conformant: FHIR R4 search §3.1.1.4.10 matches a bare value “irrespective of the value of the system property”, §3.1.1.4.15 answers every matching target, and R4’s one refusal there is for a chain whose matches span resource types. The default[facade.identifier_search] querydrops itsLIMIT 2; a configured query with aLIMITshould drop it too. - A FHIRconnect run into openEHR declares every
INSTRUCTION.narrativeit leaves to the FLAT builder (#919). The narrative is a mandatoryDV_TEXT(RM EHR IM §INSTRUCTION), and the builder fills one no mapping writes with a placeholder text. The run now records it as one moreLoss::Defaultedwarning per instruction instance, and in the composition’sFEEDER_AUDITwhen the run carries an origin, so the stored composition names the value no mapping wrote. scripts/gh/watch-prs.shno longer stops on a changelog conflict whose[Unreleased]keeps a blank line between two bullets or a heading with no blank line above it (#946). The entry merge keeps the blank line between bullets, renders a heading with one above it, and refuses only when the text lines would not read back in order, naming the first such line.- A pull request merged after a release no longer files its changelog
entries under that release (#913).
scripts/gh/watch-prs.shmergesCHANGELOG.mdby entry through the newscripts/gh/changelog-merge.sh, which keeps a branch’s entries under[Unreleased], also when a clean line merge would have placed them under a version cut meanwhile.scripts/checks/changelog-released.shfails CI when a released section from 0.0.9 on differs from its text at its tag.
0.0.9 - 2026-10-19
Added
-
The ITS-REST 1.1.0 Demographic API, DEVELOPMENT, behind
[cdr] demographic(off by default; #894). The Demographic OpenAPI document is vendored beside the other ITS-REST documents, itsx-status: DEVELOPMENTchecked, and a test holds the generatedopenehr-itsclient to every operation it declares.CdrClient::demographicreads, creates, updates and deletesPERSON,ORGANISATIONandROLE; a400,404,409,412or422maps to a facade answer throughfacade::status::demographic. A Release 1.1.0PARTYthat carriesreverse_relationshipsreads: the member is dropped before the decode and the dropped entries are counted, because each one restates a relationship the repository holds (RM Demographic IM Release 1.1.0 §2.2.1; #845). No FHIR resource is served from it yet. -
A FHIRconnect sub-context’s
template.idis checked against the template the parent’s OPT 1.4 states at the slot node (C_ARCHETYPE_ROOT.template_id, read by the newWebTemplateIndex::embedded_template). A different template is refused asfc-sub-context-template-mismatch, and a slot node that states none leaves the warningfc-sub-context-template-undecided(sub-contexts.adoc§Validation errors;openehr-mapping-core0.1.115,fhirconnect0.1.145; #886). -
FHIRconnect sub-contexts (#864,
types-of-mapping-files/sub-contexts.adoc).fhirconnect0.1.143 readsslotContexton a mapping, andscope(rootorsub) andcontextson a context. The strict schemas carry all three, withslotArchetypeandslotContextmutually exclusive.- The semantic rules refuse:
- a
slotContextor acontextsentry naming no loaded context; - a
slotContextatopenehr: $reference; - a
scope: subcontext no context lists; - a cycle through
contexts.
- a
- The resolver compiles a
slotContextinto the parent program asMethod::SlotContext, from the entered context’sstartwith that context’s own extensions and against the parent’s template, and skips the composition slot of a root context entered this way. It refuses:- a sub-context compiled as a root;
- a
slotContextthe entering context does not list; - a sub-context whose
startslots a composition; - a
startthat does not match the slot’s archetype.
- The engine maps a sub-context into the parent composition in both
directions, and
Outcome::consumednames the resource aslotContextpulled in through areference. - The server loads only root contexts as programs and never fetches a
sub-context’s template. A transaction passes over, as a root, an entry
another entry’s
slotContextconsumed, and answers it200 OKwith no location of its own. An entry nothing consumes is still processed as a root.
- The semantic rules refuse:
-
fhir-types0.1.126 readsValueSetandCodeSystemrelease-neutrally (#876).definition::ValueSetReadcovers the composition (includes, excludes, filters, imports,inactive) and the expansion, anddefinition::CodeSystemReadcovers content, hierarchy meaning, case sensitivity, the declared properties and the concepts. A nested concept or expansion entry is read through the same trait as its parent (ConceptRead,ContainsRead). Every version implements them from its own package, and STU3’suriimports read as R4’s canonicals. The profile validator now decides STU3 bindings from the STU3ValueSetsandCodeSystemsof the package set as it does R4 ones.Releasenames the release’sValueSetandCodeSystem,PackageSet::value_setandcode_systemanswer in the release’s model, andReason::TerminologyNotReadis gone. -
A
Patientkeys its own EHR through the configured subject link (#867). Under[facade] subject_id_form = "logical_id"or"uuid"a Patient create or update finds or provisions its EHR by its logical id insubject_namespace, the id aPatient/<id>reference of its resources names, so on a CDR whose owner links each EHR under its own namespace the Patient and its resources reach one EHR. A Patient with noid, or underuuidone whoseidis no UUID, is refused namingfacade.subject_id_form. In a Bundle, a subject reference to a Patient entry that carries anidkeys by that id too, and one without anid, such as an HL7 v2 message’s Patient, keeps the identifier key. Underreferencenothing changes. -
The profile validator validates STU3 resources against STU3 profiles (#838).
PackageSet::<Stu3>::load_releasereads a package set as STU3, andValidatorover it walks the STU3 element table with the checks, refusals and unevaluated listing of R4: cardinality, the types of a choice, the single STU3type.profileandtype.targetProfile, slicing, the lexical forms of the STU3 package, invariants as FHIRPath over the STU3 types, and extension contexts in STU3’sresource,datatypeandextensioncodes. The walk is generic over the sealedrelease::Release(R4,Stu3) and reads every definition through the release-neutralfhir_types::definitionread.PackageSetandValidatortake the release as a type parameter defaulting to R4, andPackageSet::loadandPackageSet::newstill read R4. An STU3 binding is never decided from the package set, since itsValueSetsandCodeSystemshave no release-neutral read yet (#876): it is listed with the newReason::TerminologyNotReadand kept for a terminology server. -
The facade’s patient-to-EHR link is configured to match the CDR owner’s own link (#467).
[facade] subject_typesets thePARTY_REF.typeof the subject of an EHR the facade creates (defaultPERSON, until now fixed), and[facade] subject_id_formsets how the id of a literal subject reference is written:reference(the default,Patient/<id>as before),logical_id(the bare<id>) oruuid(the bare<id>, refused with a diagnostic naming the key when it is no UUID). Asubject_typeoutside the BASEPARTY_REFType_validityset, or asubject_namespacethat breaks theOBJECT_REFnamespace rule, refuses the boot naming the key; both are checked throughopenehr-base. The bridge never derives a subject id the CDR mints itself, such as a pseudonym. -
fhir-types0.1.124 completes the release-neutral definition read (#859).ElementDefinitionReadgainsis_modifier, and its reads carry a type’sregex, a binding’smax_value_setand a constraint’sbest_practice, read from the core extensions with those urls in every version (STU3 statesmaxValueSetas aReference, R4 as acanonical; the R5 and R6 core packages define neither of the two binding and constraint extensions). The newStructureDefinitionReadreads the url, version, type, base definition, kind,abstract, derivation, snapshot, contexts and context invariants of every version: an STU3 context (onecontextTypebeside a list of strings) reads as the sameContextReadentries as an R4 context, each release keeping its own type codes.fhirconnectmoves to 0.1.140 for the requirement. Breaking for a consumer that buildsTypeRead,BindingReadorConstraintReadliterals, or implementsElementDefinitionReaditself. -
The ITS-REST 1.1.0 Overview and System OpenAPI documents are vendored beside EHR, Query and Definition (#478). All five are
x-status: STABLEat tagRelease-1.1.0. The Overview defines the common headers the CDR client sends (openehr-version,openehr-audit-details,openehr-template-id), and System defines theOPTIONS /capability call.scripts/vendor/its-rest.shfetches and checks all five, and the corpus test reads each. -
The FHIRPath evaluator has an STU3 type model,
model::stu3::Stu3, over the generated STU3 element table (#837), so paths,ofType(),isandasresolve against STU3 types (an STU3valueAttachment,Patient.animal). Every STU3 core invariant with a typed element passes the static check, except the two the package publishes with a defect (inv-1,sdf-15).
Changed
-
Breaking for a library consumer of
fhirconnect0.1.146: a demographicReference.referenceresolves through the newDemographicsseam (engine::demographics, #469), and theSeamsdefault,NoDemographics, refuses it. A consumer installsIssuerDemographics(the ids of its own FHIR server, the fallbackengine/demographics.adocnames) or its ownDemographicswithSeams::with_demographics. The identity travels inPARTY_IDENTIFIED.identifierswhere the FLAT format carries it, and inPARTY_PROXY.external_refon the composer and on a participation’s performer; a read turns it back into the reference. The server installs the facade-base port,[facade] base_urlis checked at boot as its issuer, and the operations lane uses it when the facade is configured. -
ferrobridge-validator,ferrobridge-termandferrobridge-fhirpathjoin the crate line at 0.1.126, leaving their 0.0.0 name reservations, so the next publish ships the validator as it stands onmain. Pin each exactly, as for every crate of the line (#432). -
The operator console draws with
ferrohealth-ui0.1.3, the FerroHEALTH component library the four consoles share (#850). It keeps only its brand theme and its screens: the shell, the cards, tables, pagers, code panels, forms, refusals and empty states are the library’s, its icons are the library’s Lucide glyphs, and the console’s own Tailwind stylesheet, style module and highlighter are gone; the site build no longer installs the Tailwind CSS CLI (#890). The top bar carries the one theme toggle, a moon in the light theme and a sun in the dark one, which posts with no script and, once hydrated, swaps the theme in place while the server keeps the choice in its cookie. The playground (its navigation entry now reads “Playground”) takes its composition, Bundle and resource in JSON editors with numbered lines, shows its answers as highlighted JSON in bounded panels, and an issue row shows itsdetails.textand the openEHR path it names. The mapping editor highlights the draft as YAML with numbered lines as you type, marks the lines a check’s diagnostics name, and links each diagnostic to its line. A mapping or a resource without a profile says “none”. The dashboard’s Bridge card carries the build facts across one row with the file counts the tiles leave out, a table column no row fills is left out, and every screen reads at 390 CSS pixels as well as 1440. -
The README’s generated badge block keeps the two HL7 v2 corpus badges in view and folds the per-family and per-version badges into a collapsed block, which
scripts/checks/conformance.sh --updaterenders (#860). -
The FHIRconnect specification source moves to upstream commit
e5871641, which carries the merged REST API chapter (pull request #93) and the sub-contexts (pull request #100) (#477). The chapter is no longer a draft with a pin of its own:scripts/vendor/fhirconnect.shvendors it and its FSH operation definitions (rest/) from the one commit, anddocs/specs/fhirconnect/draft-rest-api/is gone. The conformance corpus, its badge and the worked-example fixtures are renamedrest-api. Against the head the bridge first implemented, the merged chapter changes no FSH definition and no worked example; it adds that thecontextfields are a fixed list an engine MUST refuse to extend, which$tofhiralready refused and a test now asserts by name. Upstream re-rendered both published v1.0.0 schemas in place, addingspec.unidirectionalandoperational; the bridge adopts the new render, re-records both sha256 values indocs/architecture.md§2, and reports the in-place change as #856. No refusal of the strict schemas changes. The sub-contexts are filed as #864.fhirconnect0.1.139. -
The openEHR RM is pinned (#476): the conformance target is RM Release 1.1.0, the newest published release, and the code compiles against the
openehr_rm::v1_2development generation, whichopenehr-sdtandopenehr-itsbuild on.docs/VERSIONS.mdanddocs/architecture.md§2 carry the sixth specification row and whatv1_2changes against Release 1.1.0 (EHR.tags,GENERIC_ENTRY.datawidened toITEM,PARTY.reverse_relationshipsremoved); §3 records the1.2.0ARCHETYPED.rm_versionstamp as a deviation (#844).scripts/checks/versions.shcompares six specification pins and fails a hand-writtenopenehr_rm::v1_Npath underapp/,crates/ortools/that names another generation. -
scripts/vendor/profile-packages.shhashes a profile package tree once (#840): the count and digest of a verified tree are stamped under the ignoredtarget/with a fingerprint of its files’ sizes and modification and change times, and a run that finds the fingerprint unchanged reads them from the stamp and says so. A changed or added file changes the fingerprint and the tree is hashed again; the pin is compared on every run. A second run over the 17 trees takes about 2 seconds instead of about 3 minutes..gitignorerefuses the*.pending-snapand*.snap.newfiles insta writes (#839).
Fixed
- A demographic
Reference.reference(a recorder, a provider, a participant) was dropped without a trace on the way into openEHR; it now reaches the composition as the identity the demographics endpoint gives it, or the run refuses (#469). The unusedLoss::DeferredReferenceis gone. - Every composition the bridge builds, and every
EHR_STATUSthe facade creates, names RM Release 1.1.0 inARCHETYPED.rm_versionin place of 1.2.0, a release openEHR has not published (RM Common IM Release 1.1.0 §3.2.3). A composition holding aGENERIC_ENTRYwhosedatais noITEM_TREE, which only the development line admits, keeps 1.2.0 (openehr-mapping-core0.1.114,fhirconnect0.1.144; #844). fhir-types0.1.125: the release-neutralTypeRead::regexreads a primitive’s lexical form from the STU3 extensionstructuredefinition-regexas well as from R4’sregex, so an STU3 primitive such asdate.valuereads its form instead of none (#875).
0.0.8 - 2026-10-18
Added
-
fhir-types0.1.123 carries a release-neutral read ofElementDefinition,definition::ElementDefinitionRead, implemented for every version’s generatedElementDefinitionfrom that version’s package (#836). It reads the element id, path, slice name, cardinality,maxLength,contentReference, the types with their profiles, target profiles, aggregation and versioning, the binding strength and value set, the constraints, the slicing, andfixed[x]andpattern[x]in their JSON form. STU3’s singletype.profileandtype.targetProfileread as lists, and itsbinding.valueSetUriorvalueSetReferenceas the value set’s URL (STU3 and R4 elementdefinition.html), so the profile validator can read STU3 definitions without a second model.fhirconnectmoves to 0.1.138 with the requirement. -
The R4 profile validator is held to the HL7 FHIR Validator 6.10.4 on a synthetic corpus, the
validator-agreementconformance corpus (#442): ten cases (conforming resources, and resources that break one invariant, one required binding, one profile cardinality, one slice and one entry profile, the EU ones againstpatient-eu-coreandbundle-eu-eps), the reference outcomes recorded beside them, andscripts/vendor/hl7-validator-agreement.sh, which fetches the jar and the packages it loads by sha256 from the new “HL7 FHIR Validator” table ofdocs/VERSIONS.mdand regenerates the outcomes offline. Nine of ten agree; the tenth is adjudicated in the test (the reference indexes a Bundle entry off by one, FHIRPath N1 §5.3.1). -
fhirconnect0.1.136 holds every FHIR resource a run out of openEHR produces or creates to R4ext-1before it leaves the engine (#651). An extension with a url and no value, or with a value and nested extensions, refuses the run as the newEngineError::Invariant, naming the constraint and the instance path, so a facade read or a$tofhircall refuses it instead of answering a resource that breaks an error-severity constraint (R4 conformance-rules.html §2.1.0.6).engine::invariantholds the checks, one per constraint key;docs/architecture.md§4.4 records why they are targeted checks and not FHIRPath evaluation. A consumer matchingEngineErrorexhaustively gains a variant. -
The operator console has browser journeys, screenshots and a book page (#602). The journeys drive headless Chrome through chromedriver with the
thirtyfourWebDriver client against a running bridge (ferrobridge serve’s run path over awiremockCDR and a synthetic mapping tree) and a running console serving its release site bundle, and fail on any error the browser logs. They cover the sign-in, the shell and its theme switch and sign-out, the engine state, every mapping file view, the transform playground (an answer, a refusal, and an operations lane that is off) and the mapping editor end to end: a refused draft leaves the disk and the running set unchanged, a save is byte-identical and reloads the programs, and the bridge’s audit line names the actor and the file and nothing of the draft. They run behindFERROBRIDGE_JOURNEYS=1in the newjourneys (browser)CI job at the Chrome for Testing releasedocs/VERSIONS.mdpins, whichscripts/release/journey-tools.shinstalls locally.FERROBRIDGE_SCREENSHOTS=1captures every console page in light and dark at 1440 pixels for the book’s operator console page, and a guard in the ordinary suite fails on a console route without both images. The test OpenID Provider of the testkit can now sign a real browser in. -
The FHIRPath evaluator admits the functions FHIRPath 3.0.0 adds as Standard for Trial Use behind the opt-in
Environment::with_fhirpath_stu3_functions(#633), so the default stays FHIRPath N1 2.0.0, the release FHIR R4 cites. This change implementsmatchesFull(),trim(),split(),join(),encode(),decode(),escape()andunescape(). HL7’s FHIRPath R4 suite now counts as two corpora with a badge each:fhirpath-r4(874 of 886, N1) andfhirpath-r4-stu3(33 of 104, the tests that call one of the 13 3.0.0 functions, run with the opt-in). -
The FHIRPath 3.0.0 opt-in adds
lowBoundary(),highBoundary(),precision()andcomparable()(#633). A decimal boundary is half a unit of its last place away, rounded outward to the precision asked for. A date and time boundary fills the missing components and keeps the value’s own offset, as the 3.0.0 examples show.fhirpath-r4-stu3moves to 85 of 104; the suite cases that contradict those examples are the upstream report #815. -
The FHIRPath 3.0.0 opt-in adds
sort(), with theascanddesckey directions of the 3.0.0 grammar’ssortArgument(#633), which completes the 13 functions.fhirpath-r4-stu3moves to 93 of 104. -
The FHIRPath evaluator has a strict ordering mode,
Environment::with_strict_ordering, off by default (#636). It refusesfirst(),last(),tail(),skip(),take()and the indexer over a collection derived fromchildren()ordescendants()withEvalError::Unordered, the error FHIRPath N1 §3.1 lets an implementation return for an order-dependent operation on a list whose order is undefined. -
The profile validator checks a resource against a profile on the abstract
ResourceorDomainResource(#620): a reference target, ameta.profileclaim or aprofilediscriminator walks the resource over the profile’s elements and its own core definition for the rest, so it conforms or fails instead of being listed.Reason::AbstractProfileis gone, as nothing is listed for it any more. -
The profile validator holds every resolved extension to where its definition admits it (#481): each
StructureDefinition.contextof the typeselement,extensionandfhirpath, read as R4 defining-extensions.html §2.5.1.2 and theextension-context-typecode system define them, and eachcontextInvariantevaluated on the element holding the extension with%extensionbound to it. A misplaced extension is anextension-contexterror and a broken context invariant acontext-invarianterror; a context the walk cannot decide, and a context invariant that does not parse or evaluate, stay listed as unevaluated with the reason.Reason::ExtensionContextnow carries that reason as aString, andConstraint::ContextInvariantis new: a consumer matching the unit variant changes its pattern. -
A profile slice that holds too few items names why the closest item failed it (#490): when a
profilediscriminator, or slicing with no discriminator, keeps an item out of a slice that then falls short of its minimum, the errors of the rejected item with the fewest are reported asslice-rejectioninformation beside the cardinality error (an EPS Bundle whose Patient lacksbirthDatenow namesbirthDate). -
The profile validator holds a
Referenceor acanonicalto its element’stype.versioning(#514, R4 elementdefinition.html §2.30.0.4.4): underspecifica REST reference without_history/[vid]or a canonical without|[version]is aversioning-mismatcherror, underindependentone with a version is, and under any rule aReferencewithout a literalreferenceis. A reference that names no FHIR REST server counts as version specific (references.html,Reference.reference), soindependentlists it as unevaluated.Constraint::Versioningand the reasonsNotRestfulReferenceandVersioningRuleare new. -
The operator console ships as its own image,
ghcr.io/ferrohealth/ferrobridge-viewer(#603).docker/viewer/Dockerfilebuilds it on the bridge image’s distroless base, runs as65532:65532, and probes itself with the binary’shealthchecksubcommand. The reusablerelease-viewer.yml, called from the release lane, builds the console’s musl binaries withcargo auditableand its site bundle, attaches them to the release with their checksums, provenance and SBOMs, and pushes the multi-platform image with the same attestations and self-verification as the bridge image; a cut refuses to publish without those assets.compose.yamlgains aviewerprofile with a read-only root, every capability dropped,no-new-privileges, and the OIDC client secret as a file secret, and CI resolves the quickstart under every profile and dry-runs the console image build. -
fhir-types0.1.118 resolves a JSON member name against the element table (#483):TypeSchema::memberanswers the element an object key names, the type code a choice form such asvalueQuantityselects, and whether the key is the_sibling of a primitive (R4 json.html §2.6.2), andFieldSchema::choiceslists a choice element’s alternatives with their type codes. The profile validator uses both and drops its own copy of the choice matching. The change adds API and breaks none;fhirconnectmoves to 0.1.132 with the requirement. -
fhir-types0.1.119 lists every primitive type with the type itsStructureDefinition.baseDefinitionnames, in each version’sschema::SCHEMAS.primitives, read bySchemas::primitive_base_of(codespecializesstring) (#635). The newprimitivesfield breaks a consumer that builds aSchemasvalue by hand: it adds the field.fhirconnect0.1.133 follows the requirement.
Changed
-
FHIRPath
distinct()andisDistinct()are near-linear (#803). An item is compared with=only against the kept items that share its value’s bucket, so the result is unchanged and 10000 distinct strings take 1.5 ms where they took 1.4 s. The R4 core Bundle invariantbdl-7no longer grows quadratically with a Bundle’s entries. -
ferrobridge_fhirpath::model::path_typestypes a path that continues through a choice element (Observation.value[x].unit, theunitofQuantity) or below a primitive (string.extension, theextensionofElement), so the R4 core constraint sweep now also checks those 54 invariants (#572). Only the invariants of the five logical models remain untyped. -
The profile validator and the HL7 v2 face each state their support for an STU3 terminology server (#558). The validator supports one: a binding to a versioned value set, which STU3
$validate-codecannot carry, is set aside with the client’sUnsupportedParameterand stays listed while the other bindings are still sent, where before one such binding failed the whole batch. The HL7 v2 face does not: its translations name each table map by canonicalurl, which STU3$translatelacks, so the run fails before anything is sent.ferrobridge-termgainsClient::check, which answers whether the configured release can carry a request without sending it, and the validator’sTerminologytrait gainssupports, defaulted. -
fhirconnect0.1.135, the HL7 v2 face and the profile validator name a choice element’s JSON members through the element table’sFieldSchema::choicesandTypeSchema::member(#813), so the R4 json.html §2.6.2 naming rule lives infhir-typesalone. Breaking for a consumer offhirconnect::tree::element::Move:Move::Choicecarriesschema: &'static FieldSchemain place ofvariants, whose alternativesschema.choices()lists. -
The profile validator indexes each Bundle once per validation, its entries by
fullUrland by their resource, so resolving a reference inside a Bundle no longer scans every entry twice (#515). A synthetic document of 12002 entries validates in 3.6 s instead of 9.9 s in a release build; the matching rules of R4 bundle.html §2.36.4.1 are unchanged. -
The profile validator checks an invariant a profile declares on a choice element it narrows against the types the profile keeps (#573, R4 elementdefinition.html §2.30.0.4.2): an expression naming a member only a removed type defines is listed as refused at the check stage. An invariant the profile inherits is still checked against every type the base choice admits.
Fixed
- A facade read, vread or search whose stored composition the engine refuses
to render answers
500with anOperationOutcomewhoseissue.codeisprocessing, naming the refusal and never a clinical value (#831). It answered422before, the status of a write whose posted content is at fault; a read sends no content, so the failure is the server’s (R4 http.html §3.1.0.4). The row isfacade::status::OUTBOUND_REFUSED, with a wire test per path; a write whose content the engine refuses keeps its422. fhir-types0.1.122: the XML reader refuses an element or attribute under a prefix with no namespace declaration in scope asMalformedXmlnaming the prefix anywhere in a resource, not only inside the narrative, since such a document is not namespace-well-formed (Namespaces in XML 1.0 §5, Prefix Declared) (#830). Outside the narrative it answeredUnknownPropertyfor an attribute andWrongRootfor a root before; the refusal stays a refusal and only its kind changes.fhirconnectmoves to 0.1.137 with the requirement./health/readinessno longer answers200while the server is still handing the listener from the boot probe routes to the lanes (#796). When the CDR was not ready at boot, a successful retry marked thestartupindicator up while the probe routes, which answer503for every other route, were still serving, so readiness reported ready a moment before the lanes did. The indicator now stays down, naming the handover, until the lanes serve their own readiness.fhir-types0.1.121: the XML reader refuses a narrative element or attribute under a prefix with no namespace declaration in scope asMalformedXml, naming the prefix, since such a document is not namespace-well-formed (Namespaces in XML 1.0 §5, Prefix Declared) (#577). It refused these before asUnknownElementorUnknownProperty. The narrative content rulestxt-1andtxt-2stay invariants ofNarrative.divthat the profile validator evaluates throughhtmlChecks(), now with a test for each.fhirconnectmoves to 0.1.135 with the requirement.- The FHIRPath
isoperator andis()function test a FHIR primitive against the types it specializes, soPatient.gender is stringis true, as FHIRPath N1 §6.3.1 and the R4codedefinition ask;ofType()andaskeep every primitive an independent type (FHIR R4 fhirpath.html §2.9.1.5) (#635). - A FHIRconnect operation the operations lane cannot serve answers with the
true reason (#810). With
[operations] enabled = falsethe503now says[operations] enabled is false; it said “no mapping set is configured” even when[mappings] directorywas set, which is still the reason when it is not. - The operator console’s theme switch returns to the page it was used on
(#602). It returned only to the dashboard and the About page, so a switch
on any page added since landed elsewhere; it now returns to every route
of the console, a file path below
/filesand/editincluded, and still never off the console. - The operator console serves the brand favicon at
/favicon.ico(#602). Every first page a browser loaded asked for it and logged a404. - A bridge refusal the console draws carries each issue’s
details.textas well as itsdiagnostics(#602). The FHIRconnect operations put their reason indetails.text, so a refused$tofhiror$toopenehrshowed its status and no reason. - The profile validator holds a child that a profile’s snapshot leaves out to the core definition of the type declaring it (#484), so the core bindings, invariants and fixed values of that child apply. Before, a partial snapshot left such a child with no element definition at all.
fhir-types0.1.119 holds the logical id of every resource to theidform,[A-Za-z0-9\-\.]{1,64}, in every version (#482). The published definitions typeResource.idasid(R4 resource-definitions.html#Resource.id), while the R4 4.0.1 package and 123 resource snapshots of the R6 ballot5 package statestring(upstream report #798). The R4 and R6 element tables now listidfor every resource’sid, the generated decoders refuse an R4 or R6 resource whose id has a space, another character outside the form or more than 64 characters, and the profile validator reports it aslexical-form. A consumer that decoded such a resource before gets aBadValueerror at<Type>.id. One R4 example leaves thefhir-r4pass list, aSearchParameterwhose 67-character id breaks the form.fhirconnectmoves to 0.1.133 with the requirement.fhir-types0.1.120 refuses a resource whose required repeating element is absent (#312): a1..*element such asProvenance.targetorSearchParameter.basefails to decode withMissingPropertyat its own path (R4 elementdefinition-definitions.html#ElementDefinition.min), and an empty array or a too-short one fails there too (json.html §2.6.2), where an empty array was reported at its parent. APath::lenientreader keeps the items it finds. Each string primitive’s lexical form is public as<Primitive>::check(text)with the newcodec::LexicalError, and each version’sprimitives::check_value(code, value)decodes a JSON value as the primitive a type code names; the HL7 v2 face checks a value with it in place of decoding a probeExtension. A consumer that decoded a resource missing a required list before gets an error now. Thefhir-stu3,fhir-r4andfhir-r4bpass lists lose theSearchParameterexamples that carry nobase.fhirconnectmoves to 0.1.134 with the requirement.
0.0.7 - 2026-10-17
Changed
-
The bridge’s health and operator documents have one definition (#777): the new library crate
ferrobridge-operator-apiholds them as serde types, the server writes/health/info,/health/readiness, the engine state, the file listing and every load report through them, and the operator console reads them back into the same types, so a renamed field fails the build of both. The wire JSON is unchanged. The console’s server half now links three workspace crates, andtests/it/boundary.rsholds it to them. -
A facade search translates a
conceptmapcode once per request (#763): the page and itsBundle.totalshare the answers of one terminology session, so a code repeated across their entries costs oneConceptMap/$translatecall. Nothing is kept past the request. -
The facade, the FHIRconnect operations lane,
mapping checkand the operator API load a FHIRconnect set through one path,mappings::compile(#725): one read, one template resolution from the template directory or the CDR, one compile loop. The boot refusals are unchanged. -
fhirconnect0.1.131: the four seam traits,ReferenceSource,IdentitySink,TerminologyandMappingFunctions, requireSend + Sync, and a compile-time assertion keepsSeamsSend, so an async caller holds the seams of a run across an.await(#764). This breaks the crate’s public API: an implementation that holds aCellor aRefCellmoves to aMutexor an atomic. The facade’s transaction path now looks a reference up in the Bundle’s own entries throughBundleReferencesinstead of copying them into its resolved set. -
A facade search lists every resource a
hierarchy.splitwithcreate: resourcecreates beside the entry’s own resource, each once (#731). A page holds at most_countresources and may end between two occurrences of one entry,Bundle.totalcounts every resource (the count reads the rows for such a context), and an_idnaming a created resource answers that resource alone instead of matching nothing. -
fhirconnect0.1.130: the fouroperations::runentry points (to_fhir,to_fhir_with_warnings,to_openehr,to_openehr_with_warnings) take the caller’s&Seamsin place of a&dyn MappingFunctions(#722), so a caller supplies the terminology server beside the mapping functions. This breaks the crate’s public API: a consumer passes&Seams::default().with_functions(functions)where it passedfunctions.$toopenehrresolves a reference outside the request Bundle through the reference source the seams carry. -
The facade resolves a reference a request names and does not carry, for a
referencemapping that reads it (#224). A relative reference, or one under[facade] base_url, is read through the identity map and the CDR; an absolute one is fetched only from a base listed in the new[facade.references] fetch_bases(empty by default, so nothing is fetched until you list a base), with redirects refused,timeout_ms(default 10000) per fetch andmax_depthlevels (default 2), each reference once. A reference that is not resolved is a declared skip the write proceeds without; the log names the reference, the base and the upstream status, and$validateanswers it as awarningissue. In a transaction Bundle an entry answers a reference to itsfullUrlor its<Type>/<id>first (#753). -
ferrobridge-termtranslates by concept map with an optional target system and an optionalreverse(#721). This breaks the crate’s public API:Client::translatetakes aTranslation(Translation::new(system, code)withwith_version,with_concept_map,with_target_systemandwith_reverse), andRequest::Translatewraps one. Each ofversion,url,targetsystemandreverseis sent only when it is set, as R4ConceptMap/$translatedeclares each0..1, so a FHIRconnectconceptmap, which names only the map, can be translated in both directions. -
A resource the facade’s outbound mapping creates, a further
hierarchy.splitoccurrence withcreate: resourceor the target of areferencemapping, is no longer carried as a contained resource with a#idreference (#225). It gets an identity-store binding of its own under an id derived from its parent’s entry, the creating mapping and the openEHR occurrence, stable across re-runs and composition versions, and the parent references it as<Type>/<id>.GET /fhir/<Type>/<id>and the vread answer it, aPUTof it answers405, and a type only areferencecreates is declared withreadandvreadin theCapabilityStatement. The identity store writes schema 3 and reads schemas 1 to 3; a file of schema 1 or 2 opens unchanged and is stamped 3, and a build before this one refuses a schema 3 file by name. -
The FHIRconnect operations lane reads its mapping directory through the walk the facade uses (#524), so a
.YMLor.YAMLfile is now read by both lanes; the operations lane read only the lower-case spellings before. -
The README, the book’s Licensing page and the landing page answer “do you need a commercial licence?” at a glance (#111): a table of what you are doing, what you need and the part of
LICENSEthat decides it, the same shape as the FerroHEALTH family table, with the change date and the commercial-licence contact beside it. The README’s top navigation links the table, and theferrobridge-fhirpathandferrobridge-validatorREADMEs state the terms like the other BUSL-1.1 crates. -
SECURITY.mdandCONTRIBUTING.mdkeep what is particular to FerroBRIDGE and link the FerroHEALTH family book at https://ferrohealth.eu/docs/ for the rest (#402).SECURITY.mdkeeps the supported versions, the reporting route, the response times, the scope and release verification, and links the family policy for disclosure, advisories and the support period.CONTRIBUTING.mddescribes the current build and test gate,scripts/checks/fast.sh. The README and the book’s introduction link the family book for the manufacturer, the Cyber Resilience Act, how the products fit together, and licensing and trademarks. -
The identity store records its schema (#298): a file with no schema row, which 0.0.6 or earlier wrote, reads as schema 1 and is stamped on open, and a file in a schema this build does not read stops the start with an error naming the file, the schema found and the schemas this build reads, leaving the file unchanged. The schema this build writes is in the entry for #225.
Added
-
The console edits mapping files (#608). A text area opens a file with the digest the operator API’s
ETagnames. Check sends the draft toPOST /operator/mappings/checkand shows its diagnostics inline. Save sends the draft’s exact bytes toPUT /operator/mappings/{path}underIf-Match(orIf-None-Match: *for a new file), with a one-line reason inFerrobridge-Reason, behind a confirmation the server checks again. The result takes the focus: the reload’s report after a save, the diagnostics of a refused draft (nothing written, the running set unchanged), or the412conflict when the file changed meanwhile. Reload callsPOST /operator/reload. A provisioned file opens for a check alone, and no draft reaches a log line. The WebAssembly budget rises to 314 KiB with the measurement in.claude/rules/leptos-ui.md. -
The console has a transform playground and a validation dry run (#605). The playground runs
$tofhir(a canonical or FLAT composition, a template id and acontext.patientreference) and$toopenehr(aBundle, a template id and the composition format) against the bridge’s running programs. The dry run runs$validateon a resource type theCapabilityStatementdeclares it on. What the operator enters travels in the request body alone, with autocomplete off. Every answer isno-storeand drawn on the server: theBundle’s resources, the composition, and theOperationOutcomeissues ordered by severity, with the raw JSON behind a disclosure. A refusal shows its status and diagnostics, and nothing is stored or logged. A form waits for its page to hydrate, and a plain post is refused before the bridge is asked. -
The console shows the mapping files (#607): the list from
GET /operator/mappingswith each file’s language, kind, owner, whether it is writable and its diagnostics count, and each file at/files/{path}fromGET /operator/mappings/{path}, verbatim, one numbered line per line, its YAML highlighted on the server and its SHA-256 from theETag. Beside each file are the running load’s diagnostics about it, read intoopenehr_mapping_core::diagnostic::Diagnosticand each linked to its line. A file that is not UTF-8 is refused, never shown altered, and a path that is not plain names below a root is refused before the bridge is asked. -
The console shows the engine state (#604). The dashboard has the bridge’s build facts, pins, lanes and listeners from
GET /health/info, its readiness indicators fromGET /health/readiness, and the counts of its running load fromGET /operator/state. The capability screen shows the R4CapabilityStatementas cards for its resources with their interactions, search parameters and operations, the system level and the security, with the JSON behind a disclosure and the SMART discovery document beside it. The mappings overview shows each context’s program with its template, profile, resource type, models, extensions and search declaration, the templates with their source, the OMOCL files, and every diagnostic, read intoopenehr_mapping_core::diagnostic::Diagnostic. Each screen is drawn on the server. A refused or unreachable call draws its status and diagnostics, or the fault, in its section. -
The console has its shell and visual system (#601): a role layer (
surface,ink,muted,accentand the status tints) derived from the “Indigo & Iron” brand tokens, the light, dark and system themes drawn by the server from a cookie and switched by a plain form post, the top bar with the bridge’s status and version as a word and a tint, the theme switch and the operator menu, the navigation grouped Overview, Mappings, Tools and Bridge with a drawer on a narrow screen, a skip link, an About page naming Cadasto B.V., and the page for a path the console does not serve. A test computes WCAG 2.2 contrast for every text and ground pair in both themes (4.5:1 for text, 3:1 for a control edge and the focus ring), and the scroll padding keeps a focused control clear of the top bar (SC 2.4.11). The WebAssembly budget rises to 244 KiB with the measurement in.claude/rules/leptos-ui.md. -
The operator API saves search declarations (#766):
PUT /operator/mappings/fhirconnect/{name}.search.ymlchecks the declaration against the context it names and writes it undermapping_dir/fhirconnect/, where it was refused with400before. The reload binds every declaration, provisioned and console, and swaps them in with the facade’s programs. A declaration that does not bind answers422with anfb-search-declarationdiagnostic and changes nothing. -
The operator API saves OMOCL files (#757):
PUT /operator/mappings/omocl/{path}checks the draft with the whole set and writes it undermapping_dir/omocl/, where it was refused with409before.etl runreads that directory beside[mappings] omoclwhenever the operator API is on, through the same OMOCL load the reload checks with: a provisioned file owns a path both directories hold, and two files that define one mapping refuse the run. -
The operator API checks, saves and reloads mapping files (#597), with
[operator] mapping_dirset:POST /operator/mappings/check?path=answers a draft’s diagnostics over the running set;PUT /operator/mappings/{path}withIf-Match(orIf-None-Match: *) and aFerrobridge-Reasonheader saves a FHIRconnect file undermapping_dir/fhirconnect/when the whole set compiles with it, written to a synced hidden file and renamed into place, and answers422with every diagnostic, leaving disk and programs unchanged, when it does not,412on a staleETag,428without a precondition and409over a provisioned file;POST /operator/reloadcompiles the files on disk. A clean set replaces the facade’s programs and search declarations, the FHIRconnect operations and the operator state in one swap each request reads at entry, so theCapabilityStatementfollows a save at once. Console files join the set at start-up. Each save leaves an audit line with the caller’ssub, the file, the old and new SHA-256 and the reason, never content.compose.yamlmounts./operator-mappingsas the one writable path beside the read-only root file system. -
Operators sign in to the console with OpenID Connect (#600): the authorization code grant with PKCE (
S256) and anonce, the ID Token checked against the provider’s JWK Set, issuer, audience,azpandnonce, and a session held on the console’s server in two bounded pools, carried by one__Host-HttpOnlySameSite=Laxcookie. The console refreshes the access token on its server, once per session at a time, keeps a rotated refresh token, and ends the session when the provider refuses a refresh.POST /logoutends the session and sends the operator to the provider’s end-session endpoint with the ID Token hint. Every request other than a safe method is taken only from the console’s own pages, and the console calls the bridge with the operator’s own access token.[session]and[oidc]configure it, and the book’s Operate section documents it under “The operator console”. The test OpenID Provider isferrobridge_testkit::oidc. -
ferrobridge servesends the FerroHEALTH installation report to FerroPULSE on its report envelope v2 (#581): onestartreport per process start and onedailyreport a day tohttps://report.ferropulse.eu/v1/report, carrying the version, the licence type, the deployment kind, coarse host size, the enabled lanes, the mapping counts as ranges, the upstream health and latency histograms per route group, and never clinical content, an identifier other than the random instance id, a mapping name, a URL or a request path. The new[usage_report]section (enabled,endpoint,state_dir,deployment) configures it; it is on by default, sends nothing without a writablestate_dir, stays off in a CI environment, and logs one boot line saying which. The compose file keeps the instance id on a newferrobridge-statevolume. The book’s new Operate page, The usage report, lists every field and carries the privacy notice. Every report the server builds is validated in the tests against FerroPULSE’s schema, vendored byscripts/vendor/ferropulse-schemas.sh, andscripts/checks/usage-report-off.sh(a new CI job) fails a test launcher that leaves the report on. -
The daily installation report counts the HL7 v2 face’s messages and the mapping failures (#744): a new
hl7v2_messagelatency group times each message from its frame to its acknowledgment, the countershl7v2_aa,hl7v2_aeandhl7v2_arcount the acknowledgment codes the face sent, andmapping_failurescounts each resource or composition a FHIRconnect program refused to map, on a facade or HL7 v2 ingest, on a facade read or search (#773) and on an operation call. The book’s usage report page lists the new keys. -
The server translates the codes of every
conceptmapmapping through the configured[terminology]server (#722), on the FHIR facade, the$tofhirand$toopenehroperations and the HL7 v2 face. A composition going into FHIR callsConceptMap/$translatewith the mapurland the source code, and FHIR going into openEHR addsreverse=true. Every code is resolved before the run that builds the result, so a terminology fault never leaves a half-built document. With no[terminology]section aconceptmaprefuses with “no terminology server is configured to translate through”. -
fhirconnect0.1.128 translates the codes of a mapping that names aconceptmapthroughConceptMap/$translate(#219), over a newengine::terminology::Terminologyseam thatSeams::with_terminologysets. With no server configured the run refuses (EngineError::Terminology), so a code is never passed through under a system it was not translated into. Each distinct code is translated once, with the resource’s own system and code, before the composition is built; only anequivalentorequalmatch counts, and the translated concept’s display wins over the source text. An untranslatable code at an optional element writes nothing and is declared asSkipReason::Untranslated; at a required element it refuses the unit (EngineError::Untranslated). Breaking for a consumer that matchesSkipReasonexhaustively: add an arm forUntranslated. -
The read-only operator API (#596), behind
[operator] enabled(off by default, refused at boot without[auth]):GET /operator/stateanswers the compiled programs with their files, templates and search declarations, the OMOCL validation result and every diagnostic of the running load;GET /operator/mappingslists every mapping file with its language, kind, SHA-256, owner and diagnostics;GET /operator/mappings/{path}serves a file verbatim with its SHA-256 as theETag, confined to its directory. Every route answers401without a token and403withoutauth.operator_scope, and logs one audit line naming the caller and the route, never content. The book’s Operate section has a page for it. Every diagnostic it andferrobridge mapping check --format jsonanswer is the serde form ofopenehr-mapping-core’sDiagnostic(#726), somodel_pathis now an array of steps. -
$validateadmits a token that carries the operator scope beside itscorupermission, and$tofhirand$toopenehradmit it as they admit any valid token, so an operator console dry-runs a mapping without a clinical write scope (#598). -
ferrobridge mapping checkruns (#595). It loads the FHIRconnect tree of[mappings] directory, compiles every context against its template from[mappings] templatesor the[cdr], loads and validates the OMOCL files of[mappings] omocl, and prints every diagnostic with its file, line, column, severity, code and message, as text or with--format json. It exits 0 when no diagnostic is an error, 1 when one is, 69 when the check cannot run and 78 when the configuration names nothing to check. The checker is the library modulecheck, which the operator API reuses. -
openehr-mapping-core0.1.113:Diagnostichas a serde form (#726), one flat object withfile,line,column,severity,code,message,mappingandmodel_path, and reading it back refuses an invalid code or mapping name as the constructors do.DiagnosticCode::parsereads a code from its stable spelling.fhirconnectmoves to 0.1.129 with it, since it pinsopenehr-mapping-coreexactly. -
scripts/deploy-probe.shprobes a running deployment at a base URL (#220) and reports each lane (health, the facade under/fhir, the FHIRconnect operations) ason,off,failingoruncovered. Anuncoveredlane fails the run with its own exit status,--expect <lane>=<on|off>fails a lane in the wrong state, and the report names the findings each lane was not observed in. The Operate section of the book documents it under “Checking a deployment”. -
The operator console has its crate,
app/ferrobridge-viewer(#599): theferrobridge-viewerbinary, a Leptos app rendered on the server and hydrated in the browser, withserve,config checkandhealthcheck. It reads a TOML configuration withFERROBRIDGE_VIEWER__<SECTION>__<KEY>overrides and_filesecrets, answers every response with a per-response nonce Content-Security-Policy,nosniff,DENYframing andno-referrer, marks every documentno-store, and compresses only its site bundle. Its bridge client reads the bridge’s R4CapabilityStatementand keeps the status and body of a refusal. A test holds its server half toopenehr-mapping-coreandfhir-typesof the workspace and its browser half to none, and the CIviewerlane lints the WebAssembly half, builds the site bundle with pinned tools and fails it above a 112 KiB brotli-compressed budget. Sign-in and the pages follow in #600 and #601. -
fhir-types0.1.117 carries a search parameter registry per FHIR version behindresources(#522):<version>::search_parameters::SEARCH_PARAMETERSholds everySearchParameterof the core package, apart from its examples, with canonical, code, base types, type and expression, andSearchParameters::of(type, code)answers the standard parameter a resource type answers, its own or a base type’s.fhirconnectmoves to 0.1.127 with it. -
The facade refuses at boot a search declaration that gives the code of a standard R4 search parameter of its resource type another type, and the
CapabilityStatementnames the standard parameter’s canonical assearchParam.definitionfor every declared standard code (#522). -
/health/readinesscarries acdmindicator when a[cdm]section is configured (#615). It opens one connection to the CDM database over the configured TLS and asksSELECT 1, and reports down with the reason on a refused connection or a failed query, so an unreachable CDM shows before the nextetl runfails. Without[cdm], readiness is unchanged. -
The operate book says where the FHIR facade’s identity store lives, which volume it needs on a read-only root filesystem, and what happens across replicas and restarts, with a Kubernetes pod spec (#419). The container page no longer says the server writes nothing.
-
A facade read and vread answer
Last-Modified, the commit time the CDR’s revision history records for the version (#348). Each read makes one more CDR call,GET /ehr/{ehr_id}/versioned_composition/{uid}/revision_history. TheCapabilityStatementdeclaresversioning: versioned-updateandreadHistory: trueon every resource type.
Fixed
-
The operator API checks and compiles the console’s FHIRconnect files on every save and reload when no
[mappings] directoryis provisioned (#774). Before, those files were listed and never checked, so a broken draft was written. In that deployment the templates come from the CDR. -
The request log writes
<unmatched>as the route of a request no route matched (#746), instead of the raw path the client sent, so an identifier in that path no longer reaches the log. -
A percent-encoded
_count, such as_count=%32%30, reads as its decoded value on every facade route (#523). The request guard read_countfrom the raw query and refused it with a400, while the search read the decoded value; both now read the one decoded value. -
A vread of an earlier version after the latest version was deleted answers that version (#348). The facade names the version from the revision history, where it took the creating system from the latest version and so answered
410. -
A CDR call whose token the CDR refused, and whose renewal the token endpoint then refused, is no longer retried (#663). The client asked the refusing token endpoint again on every retry of a
GET; it now ends the call after the one renewal, with the401standing and the token error as its cause, and the facade still answers it with the credentials502. -
A CDR that does not answer the boot template fetch yet no longer fails the start (#422).
servebinds its listen address, answers liveness200and readiness503with astartupindicator naming the attempt and its reason, and tries the start again after a wait that doubles from 1 to 30 seconds, so a Kubernetes pod that starts before its CDR stays up instead of crash-looping. A documented refusal, such as a404for a template the CDR does not hold, still stops the start. -
The facade keys a second or later entry of a composition by the openEHR positional path
/content[<n>],nits 1-based place incontent, and the first by/content[<archetype>], both built with theopenehr-rmpath types (#242). Earlier builds wrote/content[<archetype>, <n>], which the openEHR BASE path grammar reads as a name predicate and refuses. Each new binding records identity derivation 2. An id an earlier build recorded under the old form keeps naming its entry: the facade looks the old key up when the new one is unbound and still reads a stored binding of the old form, so no resource a client holds is renamed. A resource first bound by this build gets an id derived from the new path. -
A binding a build up to 0.0.5 recorded for a composition holding several entries of one archetype named its entry by its place in
content, and 0.0.6 read the same/content[<archetype>, <n>]text as thenth entry of the archetype, so such a resource could answer another entry (#659). The facade now reads both meanings: the path resolves when one names an entry or both name the same one, and when they name two entries, the read, search or bind that meets it answers500with anexceptionissue naming the path, and no id moves to another entry. -
A transaction entry, and a retry that binds a contribution an earlier delivery committed, now derive the entry’s identity from the composition the CDR stored at its version (#284). Before, they derived it from the composition the current run built. Nothing the derivation reads differed between the two, so no id changes. A CDR that stores an entry
LOCATABLE.uidthe sender did not send now gives that entry the same id on the transaction path as on the single create. -
The
409a create meets when an identity store written before 0.0.4 binds itsidto two compositions now names the repair (#298): itsconflictissue lists the resource id of each composition, and an update (PUT [base]/[type]/[id]) of the one the sender means revises it. -
A stored version container that the openEHR BASE
HIER_OBJECT_IDgrammar refuses, or a storedehr_idcarrying a character that would change the request path, now answers a500whoseexceptionissue names the resource the record belongs to, the field and the value (#280). Before, the issue named neither the resource nor the field. The Operate page on failure and identity states the rule.
Security
- An inline secret in the configuration file (
bearer_token,password,client_secret, the[cdm] url) is aSecretStringfrom the moment the file is parsed, so aDebugrendering of the configuration tree redacts it and its memory is zeroed when it is dropped (#309). A_filesibling’s text is wrapped the same way as soon as it is read.
0.0.6 - 2026-10-17
Added
- A FerroBRIDGE OMOCL
Personmapping for the KDS person template (#568),crates/omocl/tests/fixtures/projects/ferrobridge/kds_person/kds_person_data.yml. The corpus fileperson_data/person_data_v0.ymlreads gender atitems[at0019], whichKDS_Persondoes not carry, so every KDS person tookgender_concept_id0. This file reads the administrative gender atitems[at0022]: its code resolves through the loaded OHDSI vocabulary intogender_concept_idand is kept ingender_source_value, and a person with no gender, or a code with no standard concept, takes concept 0. Point[mappings] omoclat a directory holding it in place of the corpus file. [etl.vocabulary_aliases]maps a terminology id, such as a URI or an OID, to the OHDSIvocabulary_idthe ETL looks a coded value up in (#625). The table is added over the defaults (LOINCtoLOINC,SNOMED-CTtoSNOMED) and checked at load: an empty id or vocabulary, or a vocabulary longer than the 20 characters of OMOP CDM v5.4VOCABULARY.vocabulary_id, refuses the start. A KDS administrative gender coded underhttp://terminology.hl7.org/CodeSystem/v2-0001now reachesperson.gender_concept_idonce that id is aliased to the vocabulary that holds its codes; before, any terminology id longer than 20 characters resolved to concept 0.- The FHIR facade answers
batchBundles onPOST [base](#531). Each entry runs as the read, vread, search, create or update itsrequestnames, through the same handler as the single interaction, withifMatchandifNoneExistas its conditional headers and the request’sPrefer: returnapplied to it, and the answer is abatch-responseBundle with one entry per request entry in the same order, each carrying its status,location,etagand resource, or itsOperationOutcomeinresponse.outcome(R4 http.html §3.1.0.11). A CDR refusal of one entry is that entry’s status through the status table and the others still run. Under[auth]each entry is authorised on its own, and an entry the token does not cover, or one outside apatient/token’s compartment, answers403inside the response. An entry referencing another entry’sfullUrlanswers400, as R4 calls it non-conformant, and a Bundle with an entry that has norequest, or aPOSTorPUTwith no resource, is refused whole with400. Each entry leaves its own audit line, with its position asentry, beside the request’s line, whose interaction readsbatch. TheCapabilityStatementdeclaresbatchbesidetransaction. - The FHIR facade answers search (#98):
GET [base]/{type}?…andPOST [base]/{type}/_searchover an AQL projection declared beside the context mapping, in a<name>.search.ymlfile that names the context, the subject parameters, thetoken,stringanddateparameters with the repeated node each is read under and its path relative to that node, and the total order pages are read in. The query binds that node in itsFROMonce per parameter occurrence, so a token’s code and system always come from one coded value (#526), a path crossing a node the template lets repeat below the bound one is refused at load, and a composition matching on several nodes is one entry, counted once. FHIRconnect leaves search out, so the format is FerroBRIDGE’s own. Every declaration is checked and every query it can build is parsed at boot, and a declaration that does not parse refuses the start. A search answers asearchsetBundle with anid,meta.lastUpdated, one entry per composition with a uniquefullUrlandsearch.mode = match,totalcounting matches, andselfandnextlinks over the CDR’soffsetandfetchpaging._id,_count(capped by the new[facade] search_count_max, default pagesearch_count),_count=0and_summary=count,_sortand_totalare supported. A parameter the type does not declare is a400naming it unless the client sendsPrefer: handling=lenient; an unsupported modifier is always a400. An unknown subject or id is an empty searchset with no CDR call, and a CDR refusal maps through the facade’s status table, a query400to a500and a query408to a502. TheCapabilityStatementnamessearch-typeand exactly the declared parameters with_id. Under[auth], a search needs thespermission of its type, and apatient/token’s search is held to its patient’s EHR. - FHIR
Patientfrom the KDS person template through FHIRconnect (#468). The published KDS person chain of the FHIRconnect mapping library compiles against the publishedKDS_Personoperational template, whichscripts/vendor/kds-person-opt.shvendors from the openFHIR test resources, under a FerroBRIDGE project context, and a synthetic MII PersonPatientholds both lens laws through it. The published files that do not load, compile or convert are replaced by stand-ins, each refusal pinned by file and line; the defects are recorded on #475 and #468. Seven library files join the mapping-library pass list and the chain joins the round-trip one.fhirconnect0.1.114 adds theDV_DATEagainstdateandDV_BOOLEANagainstbooleancells, readsvalueon a primitive as the primitive itself, the form FHIRconnect writes in a condition, and writes the context’shealth_care_facilityas the_health_care_facilityfamily. The facade keys aPatientby its first identifier with a value, so aPatientwritten through it is stored as theKDS_Personcomposition of its own EHR and reads back. - The terminology client speaks FHIR STU3 (3.0.2) beside R4 and R4B (#455).
[terminology] wire_version = "stu3"selects it, and every operation and the batch go through the generated STU3 operation contracts. The client sends a code system version as STU3’sversionon$validate-code, reads STU3’scode-typed$lookupproperty values, and reads the same$translatematch parts and equivalence codes as R4. A request naming a parameter STU3 does not declare (a concept map URL on$translate, a value set version on$validate-code) is refused withError::UnsupportedParameterbefore anything is sent. - The FHIR facade authenticates its callers as a SMART App Launch 2.x
resource server (#400). A new
[auth]section, off by default, names the issuer and the audience; the issuer’s metadata and key set are read at boot, and every request under/fhirneeds a bearer JWT access token (RFC 9068 profile by default) exceptGET /fhir/metadataand the new/.well-known/smart-configurationdocument. A missing or invalid token answers401and a token whose SMART v2 scopes (patient/,user/,system/withcruds, v1.readand.writeincluded) do not permit the request answers403, neither naming a claim or a scope. Apatient/token reaches only its patient’s compartment, a transaction is authorised entry by entry and fails whole, a create that revises a resource the facade holds needsubesidec, a scopeless token gets system rights only for a listed subject, and every FHIR request leaves one audit line on theferrobridge::audittarget without the token or the body. TheCapabilityStatementcarriesrest.securitywith the SMART service and theoauth-urisextension. With[auth]off the facade stays open, and the server warns at start-up. - The R4 profile validator evaluates every invariant on every element in
play, the core definitions’ and each profile’s, with
ferrobridge-fhirpathon each occurrence of its element (#439). The focus is the element,%resourcethe resource holding it and%rootResourceits container when it is contained. A failed invariant is an issue of typeinvariantunder its key and declaring canonical with the constraint’s own severity; a best-practice one (elementdefinition-bestpractice) is a warning unlessValidator::with_best_practice(BestPractice::Error)asks for errors. An empty result neither meets nor breaks the rule, which asks for “true” (conformance-rules.html §2.1.0.6), and is listed (Reason::InvariantEmpty).resolve()reaches contained resources and Bundle entries,memberOf()reads the value sets of the package set andconformsTo()validates against a profile of it. An invariant whose expression does not parse, does not fit its element’s type or does not evaluate, including a call the run cannot answer, is listed as unevaluated with the error (Reason::InvariantRefusedandReason::NoExpressionreplaceReason::Invariants), and the published defects ofcid-0,inv-1anddom-3name their upstream report. A constraint the snapshot repeats from the core is evaluated once per occurrence.ferrobridge-fhirpathaddsFocus::withinto name the resources%resourceand%rootResourcestand for. and the server warns at start-up. The guard classifies every route under/fhirby name, and a route it does not classify answers403without reaching a handler, so a route added without a classification fails closed (#547). fhir-types0.1.111 names each type’s base type in the element table (TypeSchema::base, fromStructureDefinition.baseDefinition, and for a backbone element theBackboneElementorElementits element names), in every version, and carries the abstract types a base chain passes through (Resource,DomainResource,BackboneElement, and from R5Base,DataTypeandBackboneType) as table-only entries.Schemas::base_ofandSchemas::specializeswalk the chain.ferrobridge-fhirpathreads it, sois,as,ofTypeand a leading type name seeAgeas aQuantityandPatientas aDomainResourceand aResource; the R4 profile validator takes a resource under an element typedDomainResourceonly when its type specializesDomainResource, so aBinaryor aBundlethere is refused, and the same base chain decides the profiles such an element applies and atypeslicing discriminator (#458).- The R4 profile validator resolves references inside a Bundle by the method
of the R4 Bundle page (absolute, relative against the entry’s
fullUrl,urn:uuid:, version-specific throughmeta.versionId), with a reference that matches two entries an error, so aresolve()discriminator reaches across entries (#441). It holds the resolved target to the element’stype.targetProfile, any of them, and the reference to itstype.aggregation; validates every resource against each profile it claims inmeta.profile, reporting a claim the package set lacks; and holds a document Bundle to the content rules of R4 documents §3.3.1: every resource the Composition references is in the Bundle, and the Bundle holds only the Composition, what it references directly or indirectly, a CSS stylesheetBinaryand theProvenanceof what it includes. Target and claimed profiles are no longer listed as unevaluated when the validator can check them. scripts/vendor/profile-packages.shfetches the package set of the R4 profile validator at build time into the ignoreddocs/specs/fhir-packages/<package>#<version>/package/(#435), about 570 MB that is never committed; only eachPROVENANCE.mdis. The set is the HL7 Europe Patient Summaryhl7.fhir.eu.eps1.0.0-ballot, HL7 Europe Basehl7.fhir.eu.base2.0.1 and the International Patient Summaryhl7.fhir.uv.ips2.0.0, with every package theirpackage.jsonfiles name, transitively, at the version each dependent names: 17 package versions, among them EU Base 2.0.0 (the version EPS names) and five versions ofhl7.terminology.r4.hl7.fhir.r4.core4.0.1 is read from the generator’s tree. Each tarball is checked against the registry shasum, and each tree against the file count and digestdocs/VERSIONS.mdpins, a cache-restored tree included. The CI jobprofile-packagesfetches the set over a cache keyed on the pins and runs--check, which fails when a dependency of a pinned package is not pinned too;scripts/checks/conformance.shfetches the set beside the other build-time inputs.ferrobridge-fhirpath, a FHIRPath evaluator for FHIRPath Normative Release 2.0.0 with the FHIR R4 additions (#436): parse an expression once, check its paths against the context type, and evaluate it on a resource or an element with exact decimals and dates that keep their precision.resolve(),memberOf(),subsumes(),conformsTo(),elementDefinition()andslice()call seams you supply, and a call without its seam is an error naming the function. The HL7 FHIRPath test suite for R4 runs as thefhirpath-r4conformance corpus, and every invariant of the vendored FHIR packages parses.ferrobridge-fhirpathconverts quantities by UCUM (#459):=,~, the comparisons,+and-work across commensurable units in the more granular of the two, so4 'g' = 4000 'mg'is true and the R4 invariantrng-2compares a low and a high in different units, andtoQuantity(unit)andconvertsToQuantity(unit)convert to the unit asked for. The newucummodule parses UCUM expressions (prefixes, exponents, annotations, the10*and10^forms, parentheses) against the UCUM 2.2 essence, whichscripts/vendor/ucum.shvendors and the crate embeds whole with its licence. Degree Celsius, Fahrenheit and Réaumur convert by their functions; other special units, arbitrary units and units of different dimensions answer empty. Six more cases of the HL7 FHIRPath suite pass.ferrobridge-validator, the foundation of a FHIR R4 profile validator (#437). It reads FHIR packages offline from.tgzfiles and unpacked directories, refuses a set that lacks a dependency a manifest names, and resolves StructureDefinitions by canonical into the generated R4 model. It checks a resource against the core definition of its type or a profile: unknown elements, empty objects, arrays and strings, cardinality per parent, choice types,contentReference, the lexical form, range and length of every primitive,maxLength,fixed[x],pattern[x], and extensions resolved byurl, with an unknown modifier extension an error. The report carries typed issues with their FHIRPath location and converts into an R4OperationOutcome; every slicing, invariant, binding and profile the validator meets and does not yet evaluate is named in it asnot-supported.- The R4 profile validator evaluates slicing (#438): the discriminator types
value,exists,pattern,typeandprofile, combined; discriminator paths in the simple FHIRPath subset, withresolve()through contained resources,extension(url),ofType()andas();valueandpatternmatched by a required binding over a value set the package set enumerates; slicing without a discriminator; the rulesclosed,openandopenAtEnd, ordered slicing, the@defaultslice and re-slicing; extension slices byurl, including the relative urls of a complex extension’s children; and the cardinality of each slice and of the slicing entry. An item matched to a slice is held to the slice’s constraints, and content is validated against the profiles its type names. A discriminator the validator cannot decide (a path outside the subset, a reference outside the resource, a value set it cannot enumerate) is named asnot-supported, and a#idreference that resolves to nothing is a warning. fhir-types0.1.109 carries FHIR STU3 (3.0.2) as thestu3module, behind a feature of that name in the default set, emitted fromhl7.fhir.r3.core3.0.2 (#453). The generator reads the shapes STU3 states differently from R4: it strips a UTF-8 byte order mark on read, decodes the single and the list form ofprofileandtargetProfileand merges type entries of one code into one, takes a primitive value’s type from its_codeJSON type and refuses a type entry with neither, readsstructuredefinition-regexand both STU3 binding forms, and givesElement.idandExtension.urlthe plain-string shape they have in R4. STU3 has noTerminologyCapabilities, so its terminology root set is the other seven resources, and its operation contracts carry exactly what 3.0.2 declares, without the terminology ecosystem overlay.fhirconnectsteps to 0.1.109 with the requirement.- The STU3 examples package,
hl7.fhir.r3.examples3.0.2, runs as the conformance corpusfhir-stu3with its README badge “FHIR STU3” (#454): every one of its 8287 resources decodes through thestu3model, re-encodes, and goes through the XML codec and back. It is fetched at build time like the other examples packages, and the suite strips the byte order mark 19 of its files begin with. - The R4 profile validator checks terminology bindings (#440) on
code,string,uri,Coding,CodeableConceptand quantity units: a code outside the value set is an error underrequiredand under theelementdefinition-maxValueSetextension, a warning underextensibleand information underpreferred;exampleis not checked. Membership is read from the package set: listed concepts, whole code systems with their nested concepts, excludes, imported value sets (all of them, as R4 valueset.html §4.9.5 composes them), pinned code system versions, theis-a,descendent-of,is-not-aandgeneralizesfilters over anis-ahierarchy, the=,in,not-inandexistsproperty filters,compose.inactive, and a complete expansion. A coding whose display is none its code system gives the code is a warning. A binding the package set cannot decide is named with its reason and kept as a pending check thatReport::resolve_bindingssends to a terminology server throughferrobridge-term, one call or one batch; a refusal or failure stays named with its status and is never a pass. The slicing value-set discriminator uses the same membership. ferrobridge-termvalidates aCodingand aCodeableConcept, and a code with itssystemVersionanddisplay, with an optionalvalueSetVersion(#440).Client::validate_allanswers several validations in one call or one batch, andError::upstream_statusnames the status of a refusal.omop_cdm::qualityruns the nine conformance checks of the OHDSI Data Quality Dashboard v2.9.0 (cdmTable,cdmField,isRequired,cdmDatatype,isPrimaryKey,isForeignKey,fkDomain,fkClass,isStandardValidConcept) against a CDM v5.4 PostgreSQL database, with the Dashboard’s violated-row count, denominator, threshold verdict, check id and result fields (#404). The checks follow the CDM v5.4.3 definitions where the Dashboard’s field settings disagree with them, soepisode.episode_object_concept_idis checked against both of its domains, andnote_nlp.offsetis checked too. A query that fails or returns no counts is an error result and never a pass, and the run summary counts a pass only from a passed check. The generator emits the Dashboard’s check catalogue and its table and field settings asomop_cdm::generated::dqd, refusing any threshold that is not a whole percentage, and the column metadata gainsfk_class.scripts/vendor/dqd.shvendors the OHDSI Data Quality Dashboard v2.9.0 CDM v5.4 check catalogue, thresholds, the SQL templates of its fifteen conformance and completeness checks, and the R sources that define their verdicts underdocs/specs/dqd/(#403), as the oracle of the Rust port of those checks (#97). A test pins the ten places where the Dashboard’s field thresholds disagree with the CDM v5.4.3 definitions (#411).fhirconnectandopenehr-mapping-coreare published on crates.io at 0.1.108, joining the crate linefhir-typescarries (#397). Both build on theopenehr-*0.0.84 crates, so a project on that release, such as the family’s federation gateway, runs FHIRconnect mappings in process with one copy of the openEHR types.- The bridge obtains its CDR token with the OAuth 2.0 client credentials
grant (RFC 6749 §4.4) and renews it before it expires (#421).
[cdr.credentials.oauth]takes atoken_endpoint, or anissuerwhose RFC 8414 metadata (or OpenID Connect discovery document) names it, aclient_id, aclient_secretorclient_secret_file,client_auth(client_secret_basicorclient_secret_post), and an optionalscope,audienceand RFC 8707resource. The token is fetched on the first CDR call, shared by every call, and fetched againrefresh_margin_ms(30 seconds by default) beforeexpires_inruns out; concurrent calls share one fetch. A CDR401drops the token and the call is sent once more under a new one, and a second401reaches the caller as before. A refused grant is an error carrying the token endpoint’s status and its OAutherroranderror_description, and a token that cannot be obtained takes thecdrreadiness indicator down with that reason. - The
ferrobridge-fhirpathstatic check narrows the focus under a type guard (#571). A test$this is T,$this.is(T)oris(T), itsnot(), and anandororof such tests, narrows what the focus reaches: the right operand ofandandimpliessees the test true, the right operand oforsees it false,iif()checks its second argument with the criterion true and its third with it false, andwhere()answers the types its criterion keeps. A member or call in a branch no type reaches is not refused, and a member only a type the guard excludes defines is.toString()on an input none of whose types is a primitive or aQuantityis refused asSemanticError::Input(N1 §5.5.8, §11). Thefhirpath-r4corpus checks a case against the types itscontextTypenames.
Changed
-
A facade search total costs one AQL count query that reads no composition (#661). A search that binds no node and no
_id, over a template that places the context’s entry only among the composition’s owncontentitems, counts the entries withSELECT COUNT(*) … CONTAINS COMPOSITION c CONTAINS <class> x[<archetype>], which equals the entries the search answers._total=estimatealways answers from that count, or from the row count of a search that binds a node._total=accurate,_count=0and_summary=countread the rows only for a search that binds a node or an_id, or a template that nests the entry in aSECTION, where AQLCONTAINSalso finds nested entries. -
fhir-typesdocumentsUnknownResource, in every FHIR version, as the carrier of any resource’s JSON body, a root-set type such asMedicationRequestincluded, so a relay can write another server’s resource beside typed entries in one Bundle (#569). The encoder writes the body with its values as given, decimals in their lexical form, and its members in sorted key order; a decode still yields the typed variant for every resource type the enabled features select. A test pins an R4 Bundle carrying both.fhir-types0.1.115 andfhirconnect0.1.119. -
The
openehr-*crates move to 0.0.87, the line the federation gateway pins;fhirconnect0.1.117 andopenehr-mapping-core0.1.111 build on it. -
[etl] aqland[etl.visits] aqlmust read everyCOMPOSITIONbelowVERSION v[LATEST_VERSION], and a configuration whose query reads one without that scope (noVERSION, a bareVERSION v, orALL_VERSIONS) now refuses to load with anetl.aqloretl.visits.aqlerror (#494). AQL 1.1.0 leaves the scope of a query withoutLATEST_VERSIONopen, and a deleted composition’s newest version holds no data (openEHR RM Common 1.1.0 §6.2.5), so the scope keeps deleted and superseded versions out of the CDM. AddCONTAINS VERSION v[LATEST_VERSION]aboveCOMPOSITION cin an existing query. -
The bridge builds on the
openehr-*0.0.86 crates, the release the federation gateway pins, so a project on 0.0.86 that takesfhirconnect0.1.111 oropenehr-mapping-core0.1.109 carries one copy of the openEHR types. -
The CI
testlane and the SonarQube Cloud lane restore and fetch the profile packages before the tests, and the profile validator’s package-gated tests fail under CI when the packages are absent, where they returned early and passed (#503). -
fhirconnect0.1.110 locates every loss a run declares (#498). Afhirconnect::engine::outcome::Warningis now aLoss(the former variants:Skipped,Defaulted,LastOfMany,OneWayFallback,DeferredReference) with aLocation, read throughWarning::loss()andWarning::location().Location::fhir()is the FHIRPath of the FHIR element the loss concerns (the input going into openEHR, the output coming out to FHIR), with an index on each repeating element and no function, so it fitsOperationOutcome.issue.expression;Location::openehr()is the archetype path of the openEHR node. Neither carries a value from the input.operations::run::to_fhir_with_warningsandto_openehr_with_warningsreturn aTransformedthat holds the answer and the typed warnings in the order the engine raised them, so a consumer that logs each transformation no longer parses issue text;to_fhirandto_openehrkeep their signatures. Each issue of a run’sOperationOutcomesetsexpressionto the FHIRPath and carries the openEHR path as adetails.codinginhttps://ferrobridge.eu/fhir/CodeSystem/openehr-path(operations::issues::OPENEHR_PATH_SYSTEM);details.textis unchanged.fhirconnect::tree::locate::locatenames one element of a document as such a FHIRPath. A consumer that matchedWarning::Skipped { .. }matchesLoss::Skipped { .. }onwarning.loss(). -
SonarQube Cloud analyses FerroBRIDGE under the FerroHEALTH organisation: organization
ferrohealth, project keyFerroHEALTH_FerroBRIDGE, insonar-project.properties, the MCP server configuration and the README badges. -
The
openehr-*crates move from 0.0.72 to 0.0.84 as one pin group (#397). The generated ITS-REST client now reads a2xxbody that depends onPreferas the resource or itsIdentifieritself, so a CONTRIBUTION201body that is neither is refused by the client and the bridge still answers with the committed contribution’s uid. Four new client refusals (a passed deadline, a failed DPoP proof, a credential provider that produced nothing, and credentials that cannot form anAuthorizationvalue) each name their own class in a diagnostic. -
A commercial licence, and any other business or licensing question, goes to Cadasto B.V., the Licensor, at info@cadasto.com or https://www.cadasto.com/contact/ (#395). Every BUSL
LICENSEcopy names that contact in place of the maintainer, and the README, the book’s licensing page,MAINTAINERS.md,GOVERNANCE.mdandSUPPORT.mdsay the same. The maintainer handles the technical side. The licence terms are unchanged. -
The Licensor and copyright holder of the project’s own work is Cadasto B.V., replacing Vernum Projecten B.V. (#392). Every
Licensor:, copyright andSPDX-FileCopyrightTextline names the new company, as do the governance text and the site footer. The licence terms are unchanged, and maintainer credit stays a person.fhir-typessteps to 0.1.108 for its new headers. -
The tracker records the kind, the urgency and the size of an issue in GitHub’s native issue type (Bug, Feature, Task) and the organisation’s Priority and Effort fields (#416). The
bug,enhancementandP0toP3labels are retired, the bug and feature forms set the issue type, the release notes drop their two label-keyed categories, andscripts/gh/fields.shandscripts/gh/migrate-fields.shcarry the model and the migration.labels.shgains theno-crate-bumplabel the crate-version guard already reads.
Fixed
fhir-types0.1.116 holds an element id to thestringform in R4B and R5 (#378). The published definitions typeElement.idasstringin every version, while the 4.3.0 and 5.0.0 core packages stateidon the copiesElementDefinition.id,Extension.idand the other datatypes inherit, so an element id such asPatient.extension:birthPlaceor one longer than 64 characters was refused. A resource id keeps the form its package states. The R4B and R5 examples corpora pass 544 and 191 more instances.- A create with no
meta.versionIdof a source the facade already holds as one entry of a multi-entry composition is recognised as a replay when its mapping is that entry as it stands, and commits nothing (#667). The replay check compares what a revision would commit, that entry spliced into the standing composition, with the composition the CDR holds, and the replay answers that entry. - The facade
CapabilityStatementdeclaresconditionalUpdate: false(#666). R4CapabilityStatement.rest.resource.conditionalUpdatenames thePUT [type]?[search parameters]interaction (http.html#cond-update), which the facade does not serve;If-Matchon an update is the version-aware update, which the facade still honours. - A facade update whose body names no
id, or anidother than the one its URL names, answers400with aninvalidOperationOutcomeat<type>.idand commits nothing, as R4 http.html#update requires (#665). The facade used to accept it and record the bodyidas a consumed source of the resource the URL named. - A CDR credential the token endpoint will not issue answers the FHIR caller
502(#518). When the OAuth 2.0 client credentials fetch fails, because the token endpoint is unreachable or refuses the bridge’s own credentials, the facade answers502 Bad Gatewaywith the token endpoint’s status and OAuth error in theOperationOutcomediagnostics, never the client secret. It used to answer500. - A request under
/fhirover the body ceiling or past the request timeout answers anOperationOutcome(#548). The ceiling answers413with thetoo-longissue and the timeout answers504 Gateway Timeoutwith thetimeoutissue, both asapplication/fhir+jsonwith the limit named in the diagnostics. A timed-out FHIR request used to answer a plain408, which tells a client it may resend a write the CDR may already hold. Every other route keeps its plain408and413. - The KDS diagnosis project context keeps a diagnosis code system outside
ICD-10-GM when it reads a Condition back (#379). The
codingmethod of theicd10ProblemDiagnoseappend was gated by afhirConditiononly, which FHIRconnect applies to FHIR input alone, so out of openEHR it wrote the ICD-10-GM system over a SNOMED CT or any other coding. It now carries anopenehrConditionon the stored terminology as well. - A KDS diagnosis read no longer carries an
icd-10-gm-diagnosesicherheitextension with a url and no value, which FHIR R4 ext-1 forbids (#629). The extension method of the same append had the same one-sided gate, so its url manual ran for every read; it now runs only when the composition holds a diagnostic certainty. - A facade search that matches a composition’s second entry answers that
entry (#530). Each entry of the archetype a context maps is a resource with
an id of its own, derived from the composition and the entry’s place among
the entries of its archetype; the first entry keeps the id it had alone. A
search reads which entry a row matched from the node it selects, so a
composition with two matching diagnoses answers two
Conditions, each carrying its own code, andBundle.totaland the paging count entries. A read, a vread and an_idsearch of an entry’s id answer that entry. - A
CodeableConceptwith codings and notextfills aDV_TEXT(#626). The facade used to refuse such a resource with a422, becauseDV_TEXT.valuehad no source. It now takes the first coding’sdisplay, then itscode, the fallback FHIRconnect writes forDV_CODED_TEXT, and records the one-way row in the outcome. Reading the resource back addscode.textholding that rubric and leaves the codings as they were. - A
recorderthat carries only a reference no longer leavesCOMPOSITION.composerempty (#627). The FHIRconnect engine used to count the empty party as a written composer, so the default composer was skipped and the CDR refused the composition with “missing fieldcomposer”. A party holding no name, identifier or external reference now leaves the composer to its default, and a composer with an external reference travels asctx/composer_id,ctx/id_namespaceandctx/id_scheme(Simplified Formats, §Composer). - A facade update of one entry’s resource keeps the composition’s other
entries (#657). A
PUTof an entry’s id, and a create that revises a known source, commit the composition version they follow with that entry replaced and every other item as it stood; before, the composition was rebuilt from the one resource and lost its other entries.If-Matchnames the composition version every entry shares, and anIf-Matchnaming a version the CDR does not hold is412. - A CDR credential the token endpoint will not issue answers the FHIR caller
502(#518). When the OAuth 2.0 client credentials fetch fails, because the token endpoint is unreachable or refuses the bridge’s own credentials, the facade answers502 Bad Gatewaywith the token endpoint’s status and OAuth error in theOperationOutcomediagnostics, never the client secret. It used to answer500. - A request under
/fhirover the body ceiling or past the request timeout answers anOperationOutcome(#548). The ceiling answers413with thetoo-longissue and the timeout answers504 Gateway Timeoutwith thetimeoutissue, both asapplication/fhir+jsonwith the limit named in the diagnostics. A timed-out FHIR request used to answer a plain408, which tells a client it may resend a write the CDR may already hold. Every other route keeps its plain408and413. - A handler panic under
/fhiranswers anOperationOutcome(#655):500asapplication/fhir+jsonwith theexceptionissue and the request id in the diagnostics, never the panic message. It used to answer the plain JSON body every other route keeps. - A CDR token refusal the bridge cannot renew answers the FHIR caller with the
token endpoint’s refusal (#654). When the CDR answers
401and the one renewal of the OAuth token fails, the facade answers the credentials502with the token endpoint’s status and OAuth error (RFC 6749 §5.2) in the diagnostics, never the client secret. It used to answer “the openEHR service could not be reached”. - A facade search that binds no node, such as
Condition?patient=…, answers every entry of the context’s archetype in each matching composition, each with its own id, where it answered only the first (#658).Bundle.totalcounts those entries for every search, so_count=0,_summary=countand_total=accurateread the rows instead of running an AQLCOUNT. - Removing a person’s newest
PERSONwriter hands the row to the writer that remains (#561). When several compositions of one EHR write the person’sPERSONrow and the newest of them is deleted in the CDR, or a new version of it no longer writes the row, the row now takes the columns of the newest writer that remains instead of keeping the removed writer’s demographics. The bridge schema gains aperson_rowtable holding each writer’s columns; runferrobridge cdm initonce after upgrading to create it. A writer committed before the upgrade has no columns recorded, so a person left with only such writers keeps the row it has until one of them commits again. - A visit query that names
$sincerefuses the start (#542). The ETL never binds--sinceto the[etl.visits]query, so such a query passed the load check and the CDR refused it at run time for the unbound parameter;etl.visits.aqlis now refused when the configuration loads, with the reason. - A
TERM_MAPPINGwhosematchis>,<or?no longer fails the whole openEHR to FHIR run (#588). FHIRconnect calls the other operators “not mappable to FHIR”, so the mapping still writes noCoding, and the run now declares it as a locatedLoss::Skippedwhose newSkipReason::TermMappingMatchcarries the match code, the target terminology and the code as fields; the value’s text and every=mapping convert. Going back into openEHR, such a mapping the target already holds keeps its place. A consumer that matchesSkipReasonexhaustively needs an arm for the new variant (fhirconnect0.1.120). - The container harness starts the reference CDR with
FERROEHR__USAGE_REPORT__ENABLED=false(#582). A container does not inherit the CI runner’s environment, so FerroEHR’s own CI detection never fired, and each “e2e (containers)” run reported itself to FerroPULSE as an installation. - An invariant on a choice element reads every type the choice admits
(#563). The FHIRPath evaluator checks an expression whose context is a
choice element against all of its types, and on an occurrence of a choice
a member only another of its types defines is empty, as
Observation.value.unitis on a string value (FHIRPath N1 §3.2). R4ras-1now holds on a decimalRiskAssessment.prediction.probabilitywhere the R4 profile validator listed it as unevaluable, and the core-constraint sweep checks the 191 invariants on choice elements it skipped. A member no type of the choice defines is still refused. - The R4 profile validator reports an extension whose
urlthe package set cannot resolve to a definition (a#fragment, or two definitions under one canonical) as an unknown extension at that extension, a warning or an error undermodifierExtension, and goes on, where it ended the whole validation with a resolution error (#550). fhir_types::xml::from_xmlresolves the namespace of every element and attribute, so the namespace decides and the prefix never does: “FHIR elements are always in the namespace http://hl7.org/fhir” (R4 xml.html §2.6.1, the same rule in STU3 and R5). A root or nested resource outside it is refused asWrongRoot, any other element asUnknownElement, and a prefixed attribute in another namespace or under an unbound prefix asUnknownProperty;<f:Patient xmlns:f="http://hl7.org/fhir">is read. It took the local name and ignored the prefix, so<x:Parameters xmlns:x="http://example.org/other">read as a FHIRParameters(#555).fhir-types0.1.113 holds the narrativedivto the XHTML namespace (R4 xml.html §2.6.1: “the only other namespace that occurs in FHIR resources is the XHTML namespace”; R5 §2.1.6.3.3: “a root<div>element in the xhtml namespace”) and refuses it asUnknownElementatResource.text.divotherwise. A declaration of the XML Schema instance namespace on thedivor on any element inside it is refused as in the rest of the resource (R4 xml.html §2.6.1.1). The reader copied the narrative’s attributes raw with no check. The content is otherwise carried verbatim (#556).fhir-types0.1.114 writes every attribute of the narrativedivit reads from XML in double quotes with a"the value holds escaped as"(XML 1.0 §2.3AttValue, §4.6), sotitle='a "b"'yields a well-formeddivstring that reads back equal. The reader wrapped the raw value in double quotes whatever quote the source used (#575).fhir-types0.1.114 reads a narrativedivwhose XHTML prefix is declared on an ancestor (xmlns:hon the root,<h:div>) to a self-contained string in the default-namespace form R4 json.html §2.6.2.4 shows,<div xmlns="http://www.w3.org/1999/xhtml">, with the prefix removed from thedivand every element inside it, so the string is theinnerHTMLR4 narrative.html §2.4.0 describes. An element inside the narrative outside the XHTML namespace is refused asUnknownElement, and a prefixed attribute outside thexmlnamespace asUnknownProperty(R4 xml.html §2.6.1). The reader copied<h:div>verbatim, leaving a prefix nothing in the string bound (#576).fhir_types::xml::from_xmlrefuses a resource that declares the XML Schema instance namespace on any of its elements, naming the declaring attribute (Resource.xmlns:xsi), because exchanged content “SHALL NOT specify the schema or even contain the schema instance namespace in the resource itself” (R4 xml.html §2.6.1.1, the same rule in STU3 and R5). It ignored the declaration and refused only thexsi:schemaLocationattribute, as an unknown property. The writer declares the FHIR namespace alone. The five FHIRPath suite cases onparameters-example-types.xml, which declares both, fail with that rule as their reason (#457).fhir-codegen terminologyfails with the file’s path when a package file cannot be read or is not JSON, where it skipped the file and bundled without it. The manifest and the index a package carries are told apart by having noresourceType. The generator’s corpus tests fail the same way on a file that does not parse, and skip only a refusal they list with its citation (#487).- The OMOCL engine writes a
PERSONrow from the corpus’sperson_datamapping (#560). CDM v5.4 requiresperson.race_concept_id, and OMOCL has no key that writes it, so everyPersonrecord was refused and no person got a row. The engine now writes concept0in a required standard concept column that no OMOCL key writes. The CDM conventions use0“if there is no information available for that field”, and the column’s own definition says “If a clear race or ethnic background cannot be established, use Concept_Id 0”.person.race_concept_idis the only such column across the ten tables OMOCL writes. The run report counts each one as a concept0assignment. A mapping that leaves out a key it could have written, such asethnicity_concept_id, is still refused. openehr-mapping-core0.1.110 compares a name predicate theaqlPathof a Web Template node carries on an ancestor segment, so a mapping path below one of two sibling clusters that share a node id (theStraßenanschriftandPostfachaddresses ofKDS_Person) names the node below that cluster alone (#468).- Every
person_idanetl runwrites names aPERSONrow, where the rows of a person no mapping wrote aPERSONrow for named aperson_idthatPERSONdid not hold, against the CDM v5.4 foreign key (#541). APERSONrow an OMOCL mapping writes is the person’s source; otherwise[cdm] person_policy = "create_on_first_sight"writes a placeholder row (every concept 0,year_of_birth0, theehr_idasperson_source_value) that such a mapping later replaces, andexistingrefuses the row, also when the person map knows the EHR but itsPERSONrow is gone. The run report counts thePERSONrows and the placeholders (persons). - A second composition of an EHR writing the
PERSONrow another composition of the EHR already writes commits, where the bridge’s side table refused it and the commit failed (#540). Each writer is recorded, the one committed last rewrites the columns, and the row stays while any writer or any row of the person remains; every other table keeps its one-row-per-id guarantee. Runferrobridge cdm initonce after upgrading to bring an existing bridge schema to this shape. - FHIRPath quantity products and quotients carry the UCUM unit with
identical units merged, so
12 'cm' * 3 'cm'answers36 'cm2'and12 'cm2' / 3 'cm'answers4 'cm'as FHIRPath N1 §6.6.1 and §6.6.2 show, where the unit was the two expressions joined ('cm.cm'). Units that cancel give'1'; a prefix stays part of its unit, and an annotated unit is still joined whole (#499). - The facade’s loss log records each declared loss as a value-free kind
(
skipped-unresolved-reference,deferred-reference,defaultedand the rest) with its FHIRPath and its openEHR path, where it logged the loss’s display text, which could carry a reference literal such asPatient/123. The$validatedry run renders each loss as the operations lane does, with its FHIRPath inissue.expressionand its openEHR path as adetails.coding, severitywarningand codeincomplete, orinformationandinformationalfor a defaulted composition field (#509). etl runremoves the CDM rows of a composition deleted in the CDR after an earlier run loaded it, where they stayed in the CDM (#527). After the compositions, each composition an earlier run committed and this run’sLATEST_VERSIONquery did not answer is read from the CDR over ITS-REST 1.1.0composition_get; a204, the answer for a deleted composition, removes its rows, links and watermark in one transaction, and the derived tables are rebuilt after it. A200or a404keeps the rows, and a call that reaches no documented answer ends the run with a typed error.[etl] deletions = "report"lists a confirmed deletion and keeps its rows; the default isremove. The run report counts the checks and lists the removed, kept and unknown compositions with the rows removed per table.- Updating or removing the composition that wrote a
PERSONrow keeps the row while any row of the person remains, where the update or removal deleted it and left clinical rows naming a missing person (#536). ThePERSONrow goes only when no composition writes it and no row of the person is left, and the newest version that writes it rewrites its columns. etl runremoves a visit the visit query no longer answers, such as one whose every composition was deleted, where itsVISIT_OCCURRENCErow stayed and the observation period kept spanning it (#537). A visit some CDM row still names is kept and counted, and a run whose visit query refused a row removes none.fhir-types0.1.110 writes a repeating primitive whose every position carries only anidor anextensionas the_namearray alone, in every version, where it wrote a value array of nulls beside it ("event": [null]); FHIR JSON renders only the_property for a primitive with no value (https://hl7.org/fhir/R4/json.html#primitive).primitive_arraysreturns the value array as anOption. The examples that carry the shape now round-trip: eight in STU3 and nine in each of R4, R4B, R5 and R6, among them the ActivityDefinitions with atimingTimingthat holds only_event(#486).- The R4 profile validator resolves a canonical that two versions of one package carry at one resource version to the higher package version, where it refused it as ambiguous; two different packages carrying one canonical at one version with different content stay ambiguous (#502).
- The R4 profile validator refuses a resource of a type its element’s types
do not name, where an element typed
ResourceorDomainResourcestill takes any resource (#488). - The R4 profile validator resolves a version-less canonical a definition names within the dependency closure of the package that carries the definition, so a profile built against one version of a package no longer gets another loaded beside it, and falls back to the whole set only when that closure does not carry the canonical (#489).
- Readiness no longer reports a CDR that refuses the configured credentials
as up. The CDR check lists the ADL 1.4 templates through the ITS-REST
Definition API with the configured credentials, filtered so the answer is
empty, instead of a
GETon the REST root, and a401or403from the CDR or the terminology server marks that indicator down with the reason in its detail (#423). - The mapping directory walk of the facade, the FHIRconnect operations and
etl runreads a Kubernetes ConfigMap volume once. It skips every entry whose name starts with..and follows a symlink only when it names a file, so the..datalink and the..<timestamp>directory behind it no longer make each mapping load three times and refuse the start withduplicate-mapping-name(#420). - A
FERROBRIDGE__…environment value takes the type of the key it sets: a string key takes the text verbatim, soFERROBRIDGE__CDR__CREDENTIALS__USER=12345is the user name12345instead of a number the boot refuses, andtrueor1.5stay text too. A number, boolean or array key still reads the text as TOML syntax. Quotes are kept as part of a string value, so write a value without the quotes that used to keep it text (12345, not"12345").[cdr.credentials]and[terminology.credentials]gainuser_filebesidepassword_file(#424). - The generated CDM metadata carries the vocabulary domains of a concept
column as a list (
ColumnMeta::fk_domain), soepisode.episode_object_concept_id, which the CDM v5.4.3 definitions give the two domainsProcedure, Regimen, accepts a concept of either. Theomocldomain checks test membership instead of comparing the whole cell as one domain name, and the quality checks read the list instead of splitting the cell (#414).
Security
- The TLS stack moves to
rustls0.23.46, which fixes RUSTSEC-2026-0346, RUSTSEC-2026-0347, RUSTSEC-2026-0348 and RUSTSEC-2026-0349 in the CDR, terminology and CDM database connections (#447).
0.0.5 - 2026-10-01
Changed
- The repository moved to the FerroHEALTH organization
(https://github.com/FerroHEALTH/FerroBRIDGE, #385); the old
rubentalstra/FerroBRIDGEURLs redirect. The image now publishes toghcr.io/ferrohealth/ferrobridge, and the quickstart, the book and the landing page name that reference. Everything published up to v0.0.4 stays available underghcr.io/rubentalstra/ferrobridge, and its signatures namerubentalstra/FerroBRIDGEas the repository that built it (SECURITY.md). The roadmap board is now https://github.com/orgs/FerroHEALTH/projects/3.fhir-typessteps to 0.1.107 for its newrepositoryfield and README links.
0.0.4 - 2026-09-26
Added
-
FHIR conformance per version (#373). HL7’s examples package for R4, R4B, R5 and the R6 ballot, at the versions of the pinned core packages, is fetched at build time by
scripts/vendor/fhir-packages.sh --build-timeintotools/ferrobridge-testkit/vendor/(about 600 MB unpacked, so only eachPROVENANCE.mdis committed; the pins carry a file count and tree digest,versions.shreads them back andpin-freshness.shreads each version against the registry). Four corpora,fhir-r4tofhir-r6, send every example through thefhir-typesJSON codec and back and then through the XML codec and back; a fifth,fhir-r4-facade, creates and reads every R4 example of a type the suite and KDS contexts map through the facade over awiremockCDR, with the other examples counted by type, and behindFERROBRIDGE_E2Ea sample of its passing cases runs against the reference CDR. The README’s FHIR row carries the five badges beside the round-trip laws, and the CItest,conformanceand coverage jobs restore the packages from a cache keyed on their pins. -
Conformance badges per standard, per HL7 v2 message family and per HL7 v2 version (#366). The HL7 v2 corpus test records each case’s family (MSH-9.1) and MSH-12 version in its result, and
scripts/checks/conformance.sh --updatewrites one badge per family with a case in either corpus (conformance/badges/hl7v2-family-<family>.json) and one per version seen (hl7v2-version-<version>.json), each the pass fraction across both HL7 v2 corpora. The script generates the README badge block: the build badges, then one conformance row per standard, each badge linking to its pass list;--checkfails when a badge or the block is stale. -
The file-length guard (#351).
scripts/checks/file-length.shfails the CI guard tier when a hand-written Rust file exceeds 1000 lines or a listed breach inscripts/checks/file-length-allow.txtgrows; the rule (1000 hard, split into a module folder at 750, generated files excluded) is in.claude/rules/rust-style.md, and the forty files that breach it today are listed with the sub-issue that splits each. -
The FHIR facade answers the R4 vread,
GET /fhir/{type}/{id}/_history/{vid}(#305), so theLocationevery create, update and transaction entry answers now resolves. The facade reads the composition version whose version tree id is{vid}and answers it with itsETag; a version the CDR does not hold is404, one it reports deleted is410, and theCapabilityStatementlistsvreadon every supported type. -
FerroBRIDGE’s supplements to the HL7 v2-to-FHIR guide (#256): ConceptMaps in the guide’s own shape, shipped inside
ferrobridge-hl7v2undersupplements/and loaded over the guide’s package byCorpus::with_shipped_supplements, which the face calls before the[hl7v2] supplementsdirectories; a supplement with the id or url of a loaded map replaces it, any other is added, and the run counts each one it uses assupplemented(Outcome::Supplemented,corpus::Origin). The shipped set runs CWE.1, CE.1 and CF.1 intoCoding.codewithout the guide’s narrative gate, names the CF components and theQuantityelements OBX-6 fills, keeps HD.2 out ofMessageHeader.source.software, gives the destination one name, lets MSH-24 give the source endpoint beside an MSH-3 application name, writes ORC-2, SCH-26, SCH-27 and PID-2 to PID-4 asReference.identifierwhere the guide names a resource no map fills, fixes theADT_A01.PD1row of the ADT_A05 and ADT_A09 message maps, and adds message maps for ADT_A03, BAR_P01, ORL_O22 and OUL_R22. The vendored HL7 corpora move from 142 to 153 of 511 and the NIST and AIRA smoke sets from 189 to 199 of 379. The HL7 v2 face page lists every supplement with its reason. -
The HL7 v2 face in the server (#255).
[hl7v2] enabled = truestarts an MLLP listener beside the HTTP server, under the sameSIGTERMdrain, with anhl7v2line in the boot banner and anhl7v2-listenerreadiness indicator. Each message runs throughferrobridge_hl7v2::inboundand the v2-to-FHIR ConceptMaps into an R4 message Bundle, whose entries go through the facade’s ingest service as one transaction: the program is selected bymeta.profileas the facade selects it, a configured profile per resource type is claimed where the guide wrote none, an entry naming no subject references the message’s onePatient, and every composition’sFEEDER_AUDITnames the message by MSH-10 and message type. The acknowledgment follows the commit:AAwhen the CDR holds the compositions or held them from an earlier delivery,AEwith oneERRper refused entry for a refusal of the content,ARwhen the message cannot be read or the CDR or the terminology server failed (HL7 v2.5.1 chapter 2 §2.9.2.2). The section carries the listen address, the default MSH-18 character set, the ConceptMap directory and its supplements, the unmapped-entry rule, an EHR policy of its own, the idle and frame timeouts, the frame ceiling and whether anAEorARlogs the counted outcomes. No message byte reaches a log line; each connection and each message has its own span naming the peer, MSH-10 and the message type. The Operate book gains the HL7 v2 face page. Until a FHIRconnect context maps the guide’s resources (#258), a message is answeredAEfor lack of a program.[hl7v2] senderslists the MSH-4 sending facilities accepted, by namespace id (HD.1) or by universal id and type (HD.2, HD.3); a message from any other isARwith anERRat MSH^1^4 and is never mapped, counted asrefusedon the connection’s span./health/infogainslanes, thehl7v2lane with its listen address and whether its listener is up, and the facade’sCapabilityStatementnames the HL7 v2 face inimplementation.descriptionwhen it is configured. -
ferrobridge_hl7v2::mllp::serve_withtakes an idle and a frame timeout: a connection idle past the first is closed, and a frame that does not complete within the second is answeredARasMalformed::Stalled.mllp::Handler::handletakes the connection’smllp::Connection, on which a handler counts the frames it refused by its own policy; themllp_connectionspan recordsmessagesandrefused. -
The ingest service reads a subject reference to another entry of the Bundle through that entry, taking the person from its first
identifier, and a Bundle none of whose entries maps is refused naming every skipped entry and why. A Bundle whose EHR lookup the CDR failed or refused answers with the status the status table gives that answer, as a single create does, instead of422. -
hl7v2-typescarries the message structures HL7 withdrew before v2.9.1 (#303), soferrobridge-hl7v2parses theORM^O01orders legacy senders still send.scripts/vendor/v2-legacy.shfetches the NIST IGAMT export of HL7’s v2 database (versions 2.1 to 2.8.2) at build time, never committed, pinned indocs/VERSIONS.mdby commit, file count and tree digest. The generator emits every structure whose code no v2.9.1 structure carries underlegacy::<version>: 218 trees of 57 codes over 11 versions, each with itsversionandwithdrawn_as_of(ORM_O01: 2.7), each code checked against table 0354 ofhl7.terminology. The segments those trees name come from the same version’s tables (495 per-version segments emitted; 98 references linked to the v2.9.1 segment they agree with), andmessage::LEGACYwithmessage::find_legacyindexes them by code, event and version.parse::structure_forfalls back to it by MSH-12, taking the nearest earlier version the export carries, refuses a version before the first tree withStructureError::NoLegacyVersion, and a parse against a legacy tree is the counted outcomewithdrawn-structure. A structure’s and a segment’surlis nowOption, a field’s data type can beDataTypeRef::Legacy, andOptionalitygainsNa. -
The v2-to-FHIR interpreter reads the condition and assignment forms the guide’s own rows write (#326). A condition compares a component spelled
HD-3(a name before-that is a data type and no segment) as well asHD.3, so thehd-endpointmaps’IF HD-3 = "ISO"andNOT INrows run. Anassignmentof quoted literals and operands joined by+("urn:oid:"+HD.2,MSG.1+"^"+MSG.2+"^"+MSG.3) is written as the joined text. A valued MSH-24 or MSH-25 of type ISO, UUID, DNS or URI now gives the guide’surn:endpoint. A check that names no operand (IF NOT VALUED) is counted asdefective-condition, two parts with no+between them (RP.3"/"RP.4) asdefective-assignment, and an operand the scope cannot read asunevaluable-assignment. AnINorNOT INwith no operand reads the row’s own source, asmapping_guidelines.md§Conditions lists them, and so doVALUEDandNOT VALUED(the bridge’s own reading), so thehd-endpointHD.3 rows write the guide’s data-absent-reason endpoint. Across the 263 ConceptMaps, 415 conditions parse and 44 are refused (2 for a missing operand). Two qualifying data type maps that write one child with the same value agree, and only differing values count asdatatype-conflict. The typedurn:endpoints come from the guide’s rows alone:convert::endpointbuilds only the derivedurn:ferrobridge:hl7v2-hd:form, as a fallback a row of the guide at the same element replaces, so an HD in MSH-5 or a facility field (no guide row writes a url from it) now gets the derived form.crates/ferrobridge-hl7v2/scripts/guide-forms.shlists every form with its count. The HL7 v2 corpus passes 134 of 511 messages, up from 111: the 23 that value MSH-24. The smoke corpora stay at 189 of 379. -
hl7v2-typescarries the data type and message definitions (#289).data_typeholds the 83 data types of the HL7 v2 definitions (12 primitive, 71 complex with 448 components), each component with its position, name, data type, cardinality, optionality, lengths and table, and a segment field now points at its data type’s static (Varies, which has no definition, stays a code).messageholds the 696 message definitions, indexed by message code and trigger event, each with the structure variant it names, soADT^A04selectsADT_A01-B. Every tree and table type derivesPartialEqandEq.ferrobridge-hl7v2’sparse::structure_forselects the variant of a structure from that index, soORU^R01^ORU_R01parses asORU_R01-Awith no caller-side table. The generator tolerates four more defects of the definitions in the files that carry them: the editorial group name inMDM_T02-Ato-E,CSU_C09andSRM_S01, the misspelleddefintionmember of the complex data types, theMessage.structureprofile URLs, and the 34 message definitions that name no structure; a conformance length withoutlengthis tolerated inCP,ERL,MOandMOPbesideMSH. -
HL7 v2 message corpora for the v2 face, and their corpus test (#292).
scripts/vendor/hl7v2-samples.shvendors three sets verbatim undercrates/ferrobridge-hl7v2/vendor/, each with itsPROVENANCE.mdand upstreamLICENSE: the Microsoft FHIR-Converter samples with their expected R4 Bundles (MIT, 139 messages), the CDC ReportStream data tests (CC0-1.0, 364.hl7files), and the HL7 v2-to-FHIR benchmark page, from which the script extracts the seven benchmark messages into derived files (Apache-2.0). With--build-timeit fetches the NIST LRI, LOI and syndromic surveillance test bundles and the AIRA MQE examples into ignored directories, asscripts/vendor/v2ig.shdoes, since neither repository carries a licence. The crate’sincludekeeps every vendored file out of the package. The corpus test runs every message from an MLLP frame through decoding, parsing, the v2-to-FHIR interpreter (with the table maps answered from the guide’s own maps) to an R4 Bundle, records every counted outcome, and counts each difference from an expected Bundle as a corpus gap, a supplement (#256), a candidate defect or a value beyond the oracle. Two pass lists and badges join the conformance gate:hl7v2(115 of 511 after #302) andhl7v2-smoke(189 of 379, the fetched sets). The testkit’sCasecarries per-case outcome counts into the result the gate reads,pin-freshness.shreads the seven new commit pins against the head of their branches, and thetestandconformancejobs restore the build-time sets from a cache keyed on their pins. -
The ITS-REST client reads a contribution back, and a transaction survives a retry after its binding failed (#270).
ferrobridge-openehrgainsClient::contributionforGET /ehr/{ehr_id}/contribution/{contribution_uid}(contribution_get), with one outcome per documented status (200the CONTRIBUTION,404not found) over the generated parameters and the RMContribution.create_contributionreads an empty201asReturned::Minimalwhatever the preference, reads theIdentifierthe201schema also admits, and reports any other201body asError::CommittedBodynaming the committed contribution. The facade’s transaction records the contribution uid against every keyed entry before it binds any of them (a fifth identity table,source_contribution), binds from the contribution read back when the commit answer lists no versions, and answers a re-sent Bundle whose first binding failed by reading that contribution back, committing nothing. The testkit carries the empty201, the200read and the CONTRIBUTION body as ITS-REST stub shapes. Every2xxwith an empty body now reads asReturned::Minimal, so a composition create or update answered without a body is bound from itsETaginstead of failing after the CDR stored it. -
The
ferrobridge-hl7v2crate, the HL7 v2 face behind the server (#254), reserved on crates.io at 0.0.0.mllpframes<SB> message <EB><CR>(MLLP Release 1) on thetokio-utilcodec traits and runs a listener that answers each frame and drains on a shutdown signal; a frame with no start block, a stray start block, a missing trailer or a size past the ceiling is refused, with anARwhen a header can still be read.decodereads the character set MSH-18 names (ASCII, ISO 8859 parts 1 to 9 and 15, UTF-8, with a per-connection default for an empty MSH-18) and refuses a byte outside it, never replacing it.parsesplits by the MSH-1 and MSH-2 delimiters, decodes the escape sequences, and places every segment in the structure’s group tree fromhl7v2-types, counting a Z-segment, a segment out of place and a field past its table, and refusing a missing required segment or field.ackanswersAA,AEwith oneERRper refusal, orAR, echoing MSH-10 in MSA-2, andinboundsettles those answers for one message.mapruns the 263 ConceptMaps of the v2-to-FHIR guide (hl7.fhir.uv.v2mappings1.0.0, read from a directory, with a supplement directory that replaces a map by its url): the message map, then the segment, data type and table maps, theComputable-ANTLRconditions (398 of the corpus’s rows parse) and the[n]and(Type)target notation, writing FHIR throughfhirconnect::treeinto an R4 messageBundlewith the MessageHeader first andurn:uuidfull urls. Every table value goes throughConceptMap/$translate. A narrative or unsupported condition, an unresolved target, an unmapped segment, field or component, a value a FHIR primitive cannot hold, and a resource that does not decode as R4 are each a typed, counted outcome.tokio-util,bytes,encoding_rs,logosandchumskyjoin the workspace dependencies; all five were already in the lock. -
The
hl7v2-typescrate, the generated HL7 v2 tables (#253), under Apache-2.0 besidefhir-typesand reserved on crates.io at 0.0.0.structureholds every message structure of the HL7 v2 definitions (305, for exampleORU_R01-A) as a static segment-group tree, with each segment’s and group’s position, cardinality and segment status, choice groups and the openHxxslots.segmentholds every segment definition (190), the batch envelopesBHS,BTS,FHSandFTSincluded, with its 2912 fields: position, name, data type code, cardinality, optionality, length, conformance length, standards status and the table binding by number and value set URL. A tree node points at the segment’s own static, andfindlooks either up by definition id. The crate is emitted by a newv2root set intools/fhir-codegen. It reads the fetched v2ig definitions, which have nopackage.json. The differential is read as the snapshot, and a definition carrying a snapshot is refused. Each defect the definitions carry is tolerated only in the files where it was found, so the same defect anywhere else fails the emit.emit --checkcovers the new tree, and the CI test and coverage lanes fetch the definitions the generator’s tests read. -
The HL7 v2 inputs, vendored with provenance (#252). The v2-to-FHIR implementation guide package
hl7.fhir.uv.v2mappings1.0.0 (FHIR 4.0.1, 263 ConceptMaps) is the sixth packagescripts/vendor/fhir-packages.shvendors undertools/fhir-codegen/vendor/. It carries theLICENSEand the mapping guidelines page of its source repositoryHL7/v2-to-fhirat the1.0.0tag, and itsPROVENANCE.mdrecords both licences, the package’s CC0-1.0 and the repository’s Apache-2.0. The HL7 v2 definitions (HL7/v2iginput/sourceOfTruth, 1,694 files, pinned by commit) have terms that do not permit redistribution, so the newscripts/vendor/v2ig.shfetches them at build time into the ignoredtools/fhir-codegen/vendor/hl7-v2ig/and checks the file count and tree digest on every run. The one committed file there is thePROVENANCE.mdthat quotes the licence text HL7 attaches and records the owner’s decision to use the material as a generator input. Thecodegen-driftCI job restores the tree from a cache keyed on the commit and runs the fetch before the drift check.scripts/checks/versions.shreads every FHIR package provenance and the new corpus rows, digests included, back againstdocs/VERSIONS.md. -
The conformance pass lists and their badges (#24). The corpus tests give every case of four corpora a verdict: each file of the FHIRconnect mapping library (2 of 107 pass: parse, published schemas or the pinned rejection set, strict schemas, a clean load, and a compiled program reaching it), each file of the OMOCL library (199 of 208), the two FHIR round-trip chains (both lens laws hold on both) and the two FSH operation definitions of the draft REST API chapter (both). The verdicts are ratcheted against committed lists under
conformance/, and a listed case that stops passing fails the test.scripts/checks/conformance.shcompares,--updaterewrites the lists and the shields.io endpoint badges underconformance/badges/, and--checkruns as the newconformanceCI job. The README shows the four badges. -
The boot banner and the console (#245).
ferrobridge serveunder theprettyformat prints the FerroBRIDGE wordmark, the version, the pins it serves (FHIRconnect, FHIR, OMOCL, OMOP CDM, openEHR ITS-REST, theopenehr-*crates andfhir-types, each read from its crate or fromCargo.lock) and the four lanes with the hosts they reach; underjsonit prints none of it. The boot logs oneconsoleevent (the format, the filter and whether colour is on), onebuildevent (the git commit, the build instant, honouringSOURCE_DATE_EPOCH, and therustcversion) and onelaneevent per lane with its hosts and what its mapping set loaded, beforelistening.GET /health/infoanswers the same build facts and pins as JSON. A carriage return or line feed inside aprettyrecord is written as\ror\n, so a value cannot forge a second line.FERROBRIDGE_LOG_FORMATandRUST_LOGoverride[telemetry] formatandfilter. -
etl runties each composition to a derived visit (#244): the visit of its EHR whose window contains the composition’scontext/start_time(for a composition without a context, the first date its mapping resolved), with thecontext/health_care_facilityname deciding between several windows against each visit’s source. Every clinical row of a tied composition carriesvisit_occurrence_id; a composition inside no window, or inside several the facility does not decide, carries none, and the run report counts both. The composition query may leave outversioned_object_uid, which the runner then reads from theversion_uid, so a CDR that answers noVERSIONED_OBJECTinFROMcan be read. The rule is FerroBRIDGE’s own and is on the OMOP ETL page. -
The OMOP round trip, the v0.0.4 acceptance test (#92): three synthetic laboratory compositions in two EHRs, committed to the reference CDR over ITS-REST as canonical JSON, read by
etl runwith the publishedLaboratory_test_result_v1,Laboratory_test_analyte_v1andSpecimen_v1files copied verbatim, and written into a CDM v5.4 PostgreSQL with the synthetic vocabulary. TheMEASUREMENT,SPECIMEN,FACT_RELATIONSHIP,VISIT_OCCURRENCEandOBSERVATION_PERIODrows are a reviewed snapshot; an unmapped analyte lands as concept 0 and is counted; a second run leaves the database identical, and a composition changed in the CDR replaces exactly its own row on the next run. The synthetic vocabulary gains theLOINC,UCUMandSNOMEDstand-in codes the compositions use, theMeas Value Operatorconcepts, and synthetic visit and type concepts. The OMOP ETL page gives the Data Quality Dashboard steps for a populated database.etl::job::runis the job the binary calls, so a test drives the same path. -
The OMOCL engine (#90).
omocl::resolve::compilebinds a loaded mapping set to one template once: every file at every archetype root of the template it maps, anIncludebelow its including root at itsbase_path(one archetype may be included at two base paths, a cycle is refused), aCustomMappingto its converter, and every path checked against the Web Template. A part of a mapping the template carries no node for is listed as unbound; a required column none of whose alternatives binds refuses the compile.omocl::engine::runwalks one composition with that program into anomop_cdm::graph::RecordGraph, reading every value through the generatedopenehr-rmtypes.alternativesare tried in order and the first present value wins; a required column with no present value, a path that matches several nodes where the record does not iterate, an at-code aconceptMapdoes not list, amultiplicationthat overflows its exact decimal product, a resolved concept outside the domain of its column or itstype, and an ambiguous code each refuse one record with a typed refusal naming the record, the column and the instance path, while the rest of the composition runs. ADV_QUANTITYprojects its magnitude, its units (resolved inUCUM), its normal range and its magnitude status; a code with no standard concept writes concept 0 and keeps its source value. The graph’s report carries every refusal and every element no mapping read.FactRelationshipCustomConverterlinks each laboratory analyte’sMEASUREMENTrow to the result’sSPECIMENrow. The vocabulary is aConceptSourcetrait asked once per distinct question in a run, and an openEHR terminology id is read as an OHDSIvocabulary_idthrough a configurable alias table (SNOMED-CTasSNOMEDby default). A source code mapped to several standard concepts writes one row per concept, as the CDM conventions ask.ferrobridge etl runnow runs: it reads the OMOCL files of the new[mappings] omocldirectory at start, compiles them against each template the first time a composition of it arrives, maps every composition through the engine with the[etl] type_concept_id, resolves concepts, operators and domain concepts through theomop-cdmresolver, and prints the run report as text and as JSON. The record key gains a discriminator (the mapping, the entry and the branch), which the writer’s side table keys on too;graph::Refusalnames its table and column; the vocabulary’s key, resolution and error types no longer need thedatabasefeature, and the error boxes its large fields. Therust_decimal1.43.0 crate joins the workspace for the exact product. -
The OMOP concept resolver (#89).
omop_cdm::vocabulary::ConceptResolverlooks a source code up inCONCEPTby(vocabulary_id, concept_code)and returns it when it is standard, or every standard concept itsMaps torelationships reach, ordered byconcept_id. Every row it touches must have noinvalid_reasonand validity dates that contain the record date. Two valid concepts under one key are a typed error naming the key and the date, and a code with no standard concept comes back unmapped with its key, for the caller to write as concept 0 and count. Each concept carries itsdomain_id. The queries go throughsqlx0.9.0 and are checked at compile time against the vendored DDL from the committed.sqlx/metadata, whichscripts/checks/sqlx-offline.shregenerates or checks.omop_cdm::databasebinds a pool to one CDM schema and applies OHDSI’s tables, primary keys and indices to it in one transaction; the rendered constraints file stays out, because PostgreSQL refuses it (#232). The testkit carries a synthetic vocabulary for the ten vocabulary tables, in a CSV shape of FerroBRIDGE’s own thatCOPYreads. The loader for an Athena export is #233, which waits on #88 recording that format from an observed export. Thesqlx-offlineCI job fails when the committed query metadata no longer matches the queries. -
omocl::model, the OMOCL file model (#87): the AST with positions for the header, the twelve entrytypevalues, column entries withoptionaland orderedalternativesof exactly one ofpath,code,conceptMapandmultiplication(whose factors arepathorcode),base_path,IncludeandCustomMapping; the JSON Schema FerroBRIDGE authors for OMOCL (crates/omocl/schemas/); the key-to-CDM-column projection table for all ten targets, checked against the CDM v5.4 column metadata; and the load-time rules (an unknown key, two keys writing one column, an unknownCustomMappingconverter and an unresolvedIncludeare refusals). A literal concept id is checked against the domain its CDM column takes through a hook the vocabulary resolver plugs into. 199 of the 208 library files load; the nine refusals are pinned with their defect. -
openehr_mapping_core::schema, the one projection of a positioned tree into JSON and the one JSON Pointer locator thatfhirconnectandomoclboth validate their files through. -
omop_cdm::meta::ColumnMeta::fk_domain, the vocabulary domain the CDM v5.4 field definitions name for a concept column, emitted bytools/omop-cdm-codegenfrom thefkDomaincell. -
The OMOP sink (#91).
omop_cdm::graphis the record graph one composition becomes: rows checked against the column metadata as they are built, keyed by EHR, versioned composition, archetype root and occurrence, with references to a person, a visit or another row for the writer to resolve,FACT_RELATIONSHIPlinks, and the per-composition report. A row missing a required column, a date among them, is refused naming the column.omop_cdm::writer::CdmWritercommits one graph per transaction over its owntokio-postgresconnection: ids come from oneintegersequence per table in a bridge schema (ferrobridgeby default) beside the CDM, a natural-key side table keeps each key on its id across runs, a later version deletes the rows the earlier one wrote, the rows cross through binaryCOPY, links are written in both directions withrelationship_concept_id0, and a watermark names the version committed. An exhausted sequence is a typed error and rolls the composition back.omop_cdm::derivedrebuildsOBSERVATION_PERIODfrom the first to the last clinical event per person, andCONDITION_ERAandDRUG_ERAwith the PostgreSQL form of the scripts the CDM publishes (crates/omop-cdm/sql/, checked against the digest of the vendored page). The PostgreSQL side ofomop-cdmsits behind adatabasefeature, on by default;omocltakes the crate without it. -
The ETL runner and the
[etl]configuration (#91): the composition query and the visit query are parsed withopenehr-query0.0.69 at load and refused without their four aliased projections, anORDER BY, or with aLIMIT; the run pages them throughPOST /query/aql, reads each template once, validates each composition, commits it whole, reports a refused one and goes on, skips on--resumeevery composition whose watermark names the same version, binds--sinceto$since, derives visits grouped by EHR and source, and prints a run report with rows per table, concept 0 assignments, zero-relationship links, unmapped fields and refusals.[cdm]gainsschema,bridge_schemaandperson_policy. -
ferrobridge cdm initruns: it applies the CDM DDL and the bridge schema to the configured database.ferrobridge etl run [--resume] [--since TIME]parses and names #90, the OMOCL engine it waits on, andferrobridge vocab load DIR --schema NAMEparses and names #233. -
docs/specs/omop-cdm/site/sqlScripts.qmd, the source of the CDM’s SQL scripts page, joins the vendored OMOP CDM corpus at the same tag. -
The CDM database connection carries TLS (#237). The concept resolver’s pool and the CDM writer both honour the
sslmodeof[cdm] urlas libpq documents it,disable,require,verify-caandverify-full, over rustls with the aws-lc-rs provider, and check the certificate against the PEM CA in the new[cdm] tls_caortls_ca_file, or the webpki root set when none is set. A URL withoutsslmode(libpq’s default isprefer),prefer,allow, an unknown mode and any othersslURL parameter are refused when the configuration is read, naming the mode or the parameter, and so is aPGSSLROOTCERT,PGSSLCERTorPGSSLKEYin the environment, which the pool’s client would read and the writer’s would not. The quickstart’scdm_urlnow ends in?sslmode=disable. Theetllane’s startup event carries thesslmodein effect.omop_cdm::connection::CdmConnectionsettles the TLS once for both clients, andCdmWriter::connect_withtakes it. -
ferrobridge cdm initcan run again (#238). It reads the schema’s tables first: a schema holding every CDM v5.4 table is reported as initialised, with thecdm_versionof itsCDM_SOURCErows, and nothing is applied; a schema holding some of them is refused naming the missing tables; the vendored OHDSI DDL is applied unchanged.omop_cdm::database::initreturnsInit::CreatedorInit::AlreadyInitialised.
Changed
ferrobridge-hl7v2splits its files over 750 lines into module folders (#355), with no change in behaviour: the interpreter run inmap/run/by phase, the parser inparse/by phase, and the interpreter tests intests/it/map/; the condition grammar tests move totests/it/condition.rs, and a caller names the parse phases by their module (parse::lex::lex,parse::structure::structure_for,parse::grouping::group).openehr-mapping-core,omoclandomop-cdmsplit their six files over 750 lines into module folders (#356), with no change in behaviour; the public types keep their names and a caller imports each from its new child module (header::metadata::MappingName,graph::row::Row,writer::error::WriteError).- The five generator tests that emit a whole crate run only behind
FERROBRIDGE_CODEGEN_EMIT=1, set by thecodegen-driftjob over a release build; thetestjob and the SonarQube Cloud coverage run skip them, since a full emit ofhl7v2-typestook up to fourteen minutes per test under coverage instrumentation and pushed both past their 45-minute timeouts.codegen-driftrunsemit --checkin release. fhirconnectsplits its twelve files over 750 lines into module folders (#352), with no change in behaviour; a caller imports a moved public type from its child module (engine::traverse::error::EngineError,resolve::program::mapping::Mapping,model::ast::keyword::Direction).ferrobridge-serversplits its seven files over 750 lines into module folders (#354), with no change in behaviour; the configuration file tree moves toconfig::section(config::section::Telemetry), and every otherfhir-codegensplits nine of its files over 750 lines into module folders (#353), with no change in behaviour or in the generated crates; every public item keeps its path.ferrobridge-hl7v2parses every message against the tree and segment tables of the version its MSH-12 declares, not only the structures v2.9.1 withdrew (#333). The required fields follow that version’s optionality: a 2.5.1DG1is held to DG1-1, DG1-2 and DG1-6, and a 2.9.1 one to DG1-1, DG1-3 and DG1-6. An empty required field no longer refuses the message: it is counted asmissing-required-fieldnaming the field, the segment and the version, and the message is mapped and answeredAA. Only MSH-9, MSH-10 and MSH-12, which the answer needs, still refuse; required segments and groups refuse as before. A guide row whose innermost group the version’s tree omits (ORDER_OBSERVATION.COMMON_ORDER.ORCagainst the 2.5.1 ORU_R01) reaches the segment placed in the parent group, counted asgroup-path. The IGAMT 2.7.1 and 2.8 tables’ OBX-4R, which every other version and v2.9.1 writeC, is tolerated as an export defect and emittedC. A message declaring 2.9.1, 2.9, a version after 2.8.2, none, or a version whose tables lack the structure is parsed against v2.9.1. Each selection is counted asversion-selectedwith the version used.hl7v2-types::legacynow holds every structure of versions 2.3 to 2.8.2 (1713 of 254 codes). A segment or tree identical to an earlier one links to that static, so the crate packages at 1.2 MiB compressed. Siblings in a legacy tree are now ordered by row id, which fixes groups placed after their segments in the 2.5 to 2.8.2 trees.- The nine
openehr-*crates step from 0.0.71 to 0.0.72, whose generated ITS-REST client carries what the bridge’s CDR client added around it (#293, FerroEHR #3487). The composition commit headers travel through the generated parameters asopenehr-version,openehr-audit-detailsandopenehr-template-id; a refusal’sissue.diagnosticsreads the error body the generated outcome orClientErrorcarries, so a400in the prose error shape is the documented400; a version uid travels with its:literal in the path segment; and[cdr]credentials are theopenehr-itsCredentials, built withCredentials::basicandCredentials::bearerover aSecretString, in place of the bridge’s own copy of that type. - The nine
openehr-*crates step from 0.0.69 to 0.0.71, andopenehr-itsis taken with the newrestfeature in place ofrest-server, so the ITS-REST DTOs come without axum. 0.0.71 also ships therest-clientfeature (FerroEHR #3485), which #285 adopts in place of the hand-written client. - The
omop-cdmrecord graph keys its rows by theopenehr-baseBASE 1.3 identifiers (#279): the EHR and the versioned composition are aHierObjectIdand the version anObjectVersionId, so the ETL runner hands the ids it parsed from the AQL row straight to the CDM writer. The graph’s ownEhrId,VersionedObjectUidandVersionUidare gone.Source::newtakes the EHR and the version and reads the versioned composition from the version’sobject_idas written,RecordKey::newtakes theSourceit belongs to, and anehr_ida composition or visit row carries must now parse as a BASE 1.3HIER_OBJECT_ID. A watermark whose stored version is noOBJECT_VERSION_IDis the newWriteError::Version. The side tables store the same strings as before. ferrobridge-openehris the ITS-REST client transport only, and takes the openEHR model from the published crates (#276). The version, version container, template anduid_based_ididentifiers are theopenehr-baseBASE 1.3ObjectVersionId,HierObjectId,TemplateIdandUidBasedIdtheopenehr-itsDTOs use, so anETagor a stored id now parses against the BASE 1.3uidgrammar.CommitContextcarries the lifecycle state as aDvCodedTextand the audit as the ITS-RESTUpdateAuditData, and renders theopenehr-version,openehr-audit-detailsandopenehr-template-idheaders byte for byte as before; the facade builds that audit once for a single write and a transaction entry. The ADL 2 template fetch answers theopenehr-amArchetypeHrid. The bridge’s ownObjectVersionId,VersionedObjectUid,TemplateId,ArchetypeHrid,LifecycleState,ChangeType,CommitterandCommitterRefare gone;EhrId,ContributionUid,SubjectId,SubjectNamespaceandRequestIdstay.- The facade’s write pipeline is one transport-neutral service,
facade::ingest(#261). It maps a resource through its FHIRconnect program with the origin on the engine defaults, resolves or creates the EHR by subject, strict-reads the built composition, commits over ITS-REST and records the identity binding and the consumed source version, taking plain values and answering a typed result.ingest_bundleanswers one outcome per entry (committed, or skipped with a typed reason) under an explicitUnmappedEntriesrule:Refuse, which the transaction route passes, orSkipAndCount, which skips an entry no program maps and commits the rest.Provenance::Itemnames one originating item for every composition, andSourceItem::messagebuilds one from a message control id and type. The create, update and transaction handlers keep the HTTP half and answer exactly as before. ferrobridge cdm init --with-constraintsapplies OHDSI’sOMOPCDM_postgresql_5.4_constraints.sqlafter the tables, one statement at a time in a transaction of its own, and names the file line and the text of a statement PostgreSQL refuses (#232). Without the flag the foreign keys are left out, as before. At the pinned OHDSI tagv5.4.3PostgreSQL refuses line 157, a foreign key ontovocabulary (vocabulary_id)that the primary keys file gives no key (SQLSTATE42830), so the flag fails the run and leaves the tables in place.- The vendored OMOCL corpus moves to
SevKohler/OMOCLcommitc082db8e(#228): six new mapping files and the README acknowledgements, 208 mapping files in all. - The server calls the CDR through the generated ITS-REST 1.1.0 client of
openehr-its(rest-client, #285). The[cdr]keys keep their names and their meaning:timeout_msis the per-request timeout of thereqwestengine,retry.max_attempts,retry.initial_backoff_msandretry.max_backoff_msare the client’s retry budget over idempotent calls, andcredentials(with its_fileforms) are the Basic or Bearer credentials sent on every call. Two answers read differently: a501is no longer retried, since a repeat cannot change it, and a204to a create underreturn=minimalis a committed write instead of an undocumented status. The facade answers every CDR status with the same FHIR status andOperationOutcomeas before.
Removed
crates/ferrobridge-openehr, the hand-written ITS-REST client (#285). Its identifiers, the commit-header rendering, the template fetch and the AQL paging move into the server’scdrmodule; its transport, outcome enums and retry are the generated client’s. The 0.0.0 name was never published.
Fixed
- The HL7 v2 parser no longer opens a segment group the following segments
leave with a required member empty when a later node takes the segment
(#343). A 2.9.1 OUL^R22 of
SPM, OBR, ORC, OBXplaced its OBX inORDER_DOCUMENT, whose required TXA never came, and reported nothing; the OBX now opens theRESULTgroup, and an OBX followed by its TXA still opensORDER_DOCUMENT. A group left with a required member missing is a100refusal naming the member and the group, located at the group’s first segment. - A facade read, vread or
return=representationwrite answers a valid R4 instance (#350). AConditionmapped through a context with no outbound subject row read back withoutsubject, which R4 makes1..1, so the read body could not be sent back as an update. The facade now writessubject(orpatient, where the type names it so) from the person the identity map recorded for the composition’s EHR whenever the rendered resource lacks it, in the form a create reads back into the same EHR, and logs the element paths it filled. It then checks everymin 1element of thefhir-typeselement table, nested and contained ones included, and answers500 exceptionnaming the element when one stays absent. The identity map gains a seventh table from eachehr_idto its person, and a store an earlier version wrote gains its rows when it opens. - A facade update that sends back the
ETaga read answered,If-Match: W/"1", commits the next version and answers200with_history/2and the newETag(#347), as R4 concurrency prescribes. Before, every suchPUTanswered412, and only the CDR’s ownuid::system::Nform succeeded. The facade completesW/"N","N"and a bareNto the current version of the bound composition, at the cost of one extra CDR read per versioned update, answers412with the currentETagwhenNis stale, and400 invalidwhen the value names no version. The CDR’s own form still passes through, and one naming another composition is412. - A transaction Bundle that carries one resource
idat twometa.versionIds is refused with400 invalidnaming both entries and commits nothing (#306), as R4 allows a resource in a transaction once by identity. Before, the two entries passed the duplicate check and an unknownidproduced two compositions. An entry that repeats another’s version as well keeps its422 duplicate. - A FHIR path that names a choice alternative by its concrete key, such as
Observation.effectiveDateTime,valueQuantityor an extension’svalueCodeableConcept, resolves to the one type that alternative carries, soResolved::type_codeanswersdateTimewhere it answered nothing (#290). The v2-to-FHIR interpreter drops its own reading of the suffix and asks the resolver, and a row whose target has no single type (a choice element no alternative names) is counted asuntyped-targetnaming the element, where it went on under an empty type name. scripts/checks/conformance.shstops with “cargo not found on PATH” and exit 1 before it runs anything, where a missing cargo read as every corpus test failing.- A patient location (PL) gives one Location per level it values, linked by
partOf, and the Encounter references the finest level: the bed, else the room, else the point of care (#342). The guide’sdatatype-pl-to-locationwrites the levels through[1].to[6].rows, which the interpreter counted asunplaced-instance(1538 outcomes over the vendored corpus), so only the bed was written. A[k].row of a data type map whose rows reference a labelled instance of the resource type they fill now writes thek-th sibling of the resource the(Type)row created, on first sight; a reference between siblings to a level no value reaches climbs to the level that one’s own row names, and one that reaches no valued level is counted assibling-unresolved; the references to the family take the finest level, counted asfinest-sibling, or stay put assibling-ambiguouswhen the chain leaves two. A supplement to the PL map (#332) links the levels in the order its PL.10 rows give (bed, room, point of care, floor, building, facility), where the guide’spartOfrows disagree and the building names itself; writes the point of care’smodeandphysicalTypeat elements Location has; fixes the PL.10 labels and conditions; and writes PL.9 into the finest valued level. The guide’s MDM^T02 sample now maps to the four Locations of its expected Bundle. The pass counts do not move (153 of 511 vendored, 199 of 379 smoke); over the vendored passes the expected-Bundle comparison counts 63 fewer corpus gaps (571 to 508: everyLocation.partOf,identifier,modeandphysicalTypedifference) and 15 fewer count differences (166 to 151). - A segment whose group path no row of the guide’s message map names takes
the rows of the one source whose groups differ from its own by a single
group, other than the group holding the segment (#334). The guide writes
ORM_O01.ORDER_DETAIL.CHOICE.OBRwhere the 2.3 tree places OBR atORM_O01.ORDER.ORDER_DETAIL.CHOICE.OBR, so the OBR, RXO, NTE, DG1 and OBX of a legacy order now reach their rows, each counted asgroup-pathnaming the row path and the tree path. A row path that reaches two tree paths, or a tree path two row paths reach, staysunmapped-segment. Over the corpora 39 segments take this path; the pass counts do not move (142 of 511 vendored, 189 of 379 smoke). - A group of a row’s path that names no tree group at its position pairs
with the one tree group there whose segments hold the row’s segment and
every segment the guide’s rows place in the row’s group (#339). The guide
writes
ORM_O01.PATIENT.VISIT.PV1where the 2.3 tree hasORM_O01.PATIENT.PATIENT_VISIT.PV1, so the PV1 and PV2 of a legacy order now reach their rows, counted asgroup-renamednaming both group names. A pairing composes with the one-group tolerance of #334, and among the pairings the one with the fewest renamed groups counts; two tree groups that qualify leave the segmentunmapped-segment. The v2.9.1 MDM_T02 definitions name the observation groupFIXME, so the OBX of a document notification now reaches the guide’sMDM_T02.OBSERVATION.OBXrows. Over the corpora 60 segments take this path; the pass counts do not move (142 of 511 vendored, 189 of 379 smoke). - A legacy field whose version names its type by a version-specific code
the guide has no data type map for resolves to the base type before the
map lookup (#335):
CM_MSGtoMSGandCE_0051toCE, counted asbase-typednaming both codes. A code the guide maps keeps the guide’s map:TSstays ondatatype-ts-to-datetime.hl7v2-typescarries the link: each legacy version module gains adata_typemodule with oneLegacyDataTypeper code its segments’ fields name, whose base isMSGforCM_MSG,CEbound to table 0051 forCE_0051andDTMforTS, andDataTypeRef::Legacypoints at it. A code that stands for no defined type keeps its code and staysno-datatype-mapwhen no map names it. The pass counts do not move. - The two
datatype-eip-<half>-to-identifiermaps each fill anIdentifierof their own (#336). The guide maps SPM-2 intoSpecimen.identifier[1]andidentifier[2]and ORC-4 intoDiagnosticReport.identifier[3]andidentifier[4], and the placer map reads EIP.1 where the filler map reads EIP.2, so the rows in map order take the halves in component order: the first row the placerIdentifier(PGN), the second the filler’s (FGN), each counted asdatatype-halfnaming the map chosen. A value valuing a component neither half reads (an EI written into ORC-4) stays adatatype-conflict. A(Type)row whose one step inside the referenced resource is aReferenceno data type map fills runs the data type map from its source into that resource when every row of that map writes through that element, counted asreference-root: OBX-25 intoperformer(PractitionerRole.practitioner)and ORC-12 intorequester(PractitionerRole.practitioner)rundatatype-xcn-to-practitionerrole, which gives thePractitionerRoleitsPractitioner. A primitive a data type map writes at$valueof a complex element with a primitivevaluechild lands there, counted asvalue-child: TXA-16 throughdatatype-st-to-identifiergivesDocumentReference.identifier.value. Over the corpora,datatype-conflictfalls from 1226 to 155 andno-datatype-mapfrom 1525 to 389; the pass counts do not move (142 of 511 vendored, 189 of 379 smoke), since no outcome decides a verdict. - A field of a legacy v2 message takes its data type from the segment
definition of the version the parser selected (#329). Where that type
differs from the type the guide’s row names, the version’s type chooses
the data type map and the run counts a
version-typedoutcome naming the field, both types and the version: anORM^O01at 2.3 maps OBR-4 byCE(datatype-ce-to-codeableconcept) where the row namesCWE. A code v2.9.1 dropped resolves by code through the same map lookup, and a message of a structure v2.9.1 still carries keeps the row’s type. The corpus pass counts are unchanged: 112 of 511 vendored messages and 189 of 379 fetched ones. - A v2-to-FHIR row whose data type maps are alternatives for one value runs
one of them (#327). Two maps are alternatives when both map one component,
with no condition, into the same child or into the target itself, as the
four
datatype-ei-<qualifier>-to-identifiermaps do with EI.1. The map whose rows write from the most components of the value is chosen, and among equally specific maps that write the same, the one with the fewest rows. ORC-2, ORC-3 and TXA-12 each give oneIdentifier: a bare value fromdatatype-ei-defaultassigner-to-identifier, a value with an assigning authority fromdatatype-ei-organization-to-identifier, with its assigner. The[System]variant, whose EI.1 row writes$valueand whose system rows are narrative, is no longer run, so theno-datatype-mapit counted throughdatatype-st-to-identifieris gone. Equally specific maps that write differently countdatatype-ambiguousnaming them, and none writes. A row whosemappedVianames a data type map runs that map alone (StructureDefinition-TypeInfo: “Url of the mapping artifact for the item”). The pass counts do not move (134 of 511 vendored, 189 of 379 smoke): no EI outcome decides a verdict there. - A v2-to-FHIR row into a complex element runs every data type map the
guide names for it (#324). The maps are found by the element’s type, else
by its element path, the form the guide’s map titles use for a backbone
element (
HD[endpoint]andHD[name]intoMessageHeader.source), so MSH-3 and MSH-24 intosourceand MSH-25 intodestinationrun both HD maps where they countedno-datatype-map. A child that another row of the same field targets directly stays that row’s, so MSH-3’s ownsource[1].endpointrow keeps the endpoint. When two maps write the same child for one value, as the four EI maps intoIdentifierdo with EI.1, the row writes nothing and countsdatatype-conflictnaming the child and the maps. The pass counts do not move (111 of 511 vendored, 189 of 379 smoke): the guide’sdatatype-hd-endpoint-to-messageheader-sourcegates every endpoint row on a condition outside the guide’s grammar (HD-3,=, a test with no operand) and assigns a concatenation, so its endpoint is never written and the 23 messages valuing MSH-24 still lackMessageHeader.source.endpoint. - A required FHIR primitive carried only by its
_namesibling with an extension counts as present, as FHIR R4 JSON represents a primitive with extensions and no value (https://hl7.org/fhir/R4/json.html#primitive) (#321). Thedata-absent-reasonthe guide’s MSH-24 row writes into_endpointnow completesMessageHeader.source, so a v2 message valuing none of MSH-3, MSH-24 and MSH-4 is mapped with that endpoint instead of answeredAR; a_namewith an empty extension list is still missing. Where MSH-4 is valued its endpoint still replaces the extension. A message whoseMessageHeader.sourceno row completes, such as one valuing MSH-24, whose row intosourcehas no single data type map, is still refused asMapError::NoMessageHeader. The smoke corpus passes 189 of 379 messages (187 before, the 2 AIRA messages that name no sender); the vendored corpora stay at 111 of 511. - The v2-to-FHIR interpreter emits only Bundles that decode as FHIR R4
(#302). A value outside the lexical form of its target primitive, such as
an application name with spaces written into the
urlMessageHeader.source.endpoint, is never written and counts asinvalid-valuenaming the element and the type (https://hl7.org/fhir/R4/datatypes.html#primitive). An element lacking an element its definition requires (MessageHeader.destinationwithoutendpoint, anextensionwithouturl,Provenance.agentwithoutwho) is left out, and so is a resource lacking one (MessageHeaderwithoutsource), each counted asmissing-requiredwith the definition path it lacks. A write taking a second alternative of a choice such asExtension.value[x]counts assuperseded. A resource that still does not decode is left out of the Bundle asundecodable. The vendored corpus now passes 115 of 511 messages (8 before) and the build-time smoke corpus 189 of 379 (26 before), and the corpus test asserts that no Bundle fails to decode and no resource is left out asundecodable. - Every
messageBundle the v2-to-FHIR interpreter emits opens with itsMessageHeader, as FHIR R4 invariantbdl-12requires (https://hl7.org/fhir/R4/bundle.html#invs) (#311). A v2HDwritten into aurlelement (MSH-3 intoMessageHeader.source.endpoint, MSH-5 intoMessageHeader.destination.endpoint) becomes the guide’surn:oid:,urn:uuid:,urn:dns:orurn:uri:form of its universal ID when HD.3 names one of those types, and otherwise the derivedurn:ferrobridge:hl7v2-hd:endpoint with each component percent-encoded; the namespace ID is kept in thenamebeside it. A message that names its sender in neither MSH-3 nor MSH-24 is answeredARwith anERRat MSH-3, and a run that still completes noMessageHeaderis refused asMapError::NoMessageHeadernaming the element it lacks. The corpus test assertsbdl-12over every Bundle it maps. The vendored corpus passes 107 of 511 messages (115 before) and the smoke corpus 162 of 379 (189 before): the cases that left are header-less Bundles now refused, 8 that value MSH-24 (whose row intoMessageHeader.sourcehas no single data type map) and 27 that value neither MSH-3 nor MSH-24. - A v2 message that values neither MSH-3 nor MSH-24 but names its sending
facility in MSH-4 is mapped instead of answered
AR(#315). TheMessageHeader.source.endpointandsource.namecome from the MSH-4HDby the endpoint rule above, the guide’ssenderOrganization from MSH-4 stays, and the fallback is counted as afacility-endpointoutcome naming the field and the element. MSH-6 fillsdestination.endpointthe same way when MSH-5 and MSH-25 are empty. Only a message valuing none of MSH-3, MSH-24 and MSH-4 is answeredAR. The smoke corpus passes 187 of 379 messages (162 before); the 2 AIRA messages that name no sender at all stay refused. - A v2-to-FHIR row whose own source field is empty runs when it maps that
absence: it assigns a literal and its condition requires the field
NOT VALUED(#318). The MSH map’s MSH-24 and MSH-25 rows (IF MSH-24 NOT VALUED AND MSH-3 NOT VALUEDand the destination pair) now write their data-absent-reason extension on the endpoint, and the data type rows of the same form (XTN.3whenXTN.4is valued) run too. A row on an empty field whose condition only tests another field (PID-13withIF PID-13.2 IS NOT VALUED) still writes nothing. Where MSH-4 or MSH-6 gives the endpoint, the facility’s value replaces the data-absent-reason, since the row’s comment leaves the implementer the choice between a known value and the extension. The vendored corpora pass 111 of 511 messages (107 before, the four MDM T06 and T10 samples); the smoke corpus stays at 187 of 379. - A v2 message whose MSH-9.3 names a structure the definitions lack
(
ADT^A08^ADT_A08,SIU^S13^SIU_S13) is grouped by the structure the message definition of MSH-9.1 and MSH-9.2 names, as HL7 v2.5.1 chapter 2 §2.15.9.9 derives it through table 0354, and counted asother-structurenaming both (#319). An MSH-9.3 naming a known structure the definition contradicts stays refused, and so does one with no definition to fall back on (ORM^O01^ORM_O01, 10 vendored messages). - A v2 message whose header carries no MSH-9.3 (the v2.3 senders in the vendored ReportStream set) resolves its structure from MSH-9.1 and MSH-9.2 through the generated message index instead of being refused as unnamed (HL7 v2.5.1 chapter 2 §2.15.9.9, table 0354).
- A transaction entry with an
idthe identity map knows and a newmeta.versionIdcommits a later version of that resource’s composition inside the Bundle’s contribution, as a single create of it does (#297). Before this fix it created a second composition under a second container. The entry goes in as anUpdateVersionwhosepreceding_version_uidis the composition’s latest version, with amodificationaudit, binds to the resource id it already has, and answers200 OKin thetransaction-responsewith aLocationnaming the new version. The commit-before-bind record, theFEEDER_AUDITpairing and the retry after a failed binding hold for such an entry, and a Bundle entry now also claims itsresourceTypeandidalone, as a single create does. - A conditional create’s
If-None-Exist: identifier=…finds a resource the facade committed (#299). The search read the external-id table under the identifier’s value, a key the ingest never wrote, so a conditional create of an existing resource committed a duplicate. Every committed resource now records eachResource.identifierit carries against its logical id (a sixth identity table,identifier_internal), and the search reads it in the R4 token forms[code],|[code]and[system]|[code], percent-decoded; the[system]|form answers400 not-supported. One match answers200 OKand commits nothing, several answer412. - A single create re-sent with the
idandmeta.versionIdthe identity map already consumed commits nothing and answers200 OKwith theLocation,ETagand body of the composition the first delivery produced, as a re-sent transaction entry is answered (#288). Before this fix it committed a new version of that composition on every delivery. A create of a knownidat anothermeta.versionIdcommits a later version of the same composition; before, it committed a second composition. A create of a knownidwith nometa.versionIdis a replay when it maps to the content the composition holds now (theuidand the clock-filled times masked, as the transaction path masks them) and a later version otherwise. Anidthe map binds to two compositions is refused with409 Conflict. A single create also claims itsresourceTypeandid, so two creates of oneidat different versions cannot run at once.PUTand the transaction path are unchanged. - Two overlapping deliveries of one transaction Bundle, or two overlapping
creates of one resource, commit once (#273). Each delivery claims the source
key of every entry before it reads the identity map and releases the claims
when it answers, on every exit path including a panic. A delivery that finds
a key claimed commits nothing and answers
409 Conflictwith aduplicateissue per entry; retried after the first delivery answers, it is recognised as a re-sent Bundle or resource. Before this fix both deliveries could pass the lookup and commit, leaving a composition no identity record named. - A re-sent Bundle whose entries share one
FEEDER_AUDITitem, as the entries of one message do, binds on retry after its first binding failed (#274). The content comparison that tells such entries apart now masks everyDV_DATE_TIMEthe engine filled from its clock (thectx/timedefault that reachesEVENT_CONTEXT.start_time,HISTORY.origin,EVENT.timeandACTION.time), where a retry mapped at a later instant failed the comparison with a500on every attempt. - A single create of a resource that a transaction committed and did not
finish binding binds from the contribution read back and answers
200 OKwith the composition the first delivery produced (#275), where it committed a second composition. The single and the transaction paths share the read-back and theFEEDER_AUDITmatch; the single path passes over the versions of the transaction’s other entries. - A value a FHIR resource maps into openEHR keeps every attribute the
reference model gives it (#241). The engine writes each data value whole as
its canonical JSON under the FLAT
|rawsuffix (ITS-REST 1.1.0 Simplified Formats, master04 §Raw canonical JSON) instead of through per-class suffix tables, which droppedhyperlink,languageandencodingon aDV_TEXTorDV_CODED_TEXTandnormal_status,normal_rangeandaccuracyon aDV_DATE_TIMEwith no error. A tail below a node is now admitted when theopenehr-rmattribute model defines it, and refused at load (fc-uncarried-tail) when it runs through a list or sits below a structural node other thanENTRY.provider; amanualpath must end on a string attribute. The composition defaults travel as thectx/keys of master06, and a default setting whose code and value name two concepts of the openEHRsettinggroup is refused. A value atCOMPOSITION.composer,languageorterritorythat thectx/keys cannot carry whole is refused instead of losing its identifiers or its terminology. TheLINKandPARTICIPATIONlists a composition carries are read as typed values, and a defective one is a refusal instead of an empty list. An EHR the facade creates stampsEHR_STATUS.archetype_details.rm_version1.2.0, the release its types come from, instead of1.1.0. - A transaction Bundle sent twice commits its compositions once (#264). The
transaction path records each entry’s identity binding and consumed source
the way a single create does, asking the CDR for the committed CONTRIBUTION
(
Prefer: return=representation) to learn each entry’s version and reading each version back to match it to its entry by theFEEDER_AUDITthe engine wrote, since ITS-REST states no order forCONTRIBUTION.versions; a version that matches no entry, or more than one, is a500naming the contribution and binds nothing. A committed transaction answers atransaction-responseBundle whose entries carry201 Created, thelocation[base]/[type]/[id]/_history/[vid]and theETaga create answers (R4 §3.1.0.11.3), where it answered anOperationOutcome. A Bundle whose every entry an earlier delivery consumed commits nothing and answers200 OKper entry with the same locations; one only some of whose entries were consumed is refused with409naming them, and one carrying a resource twice is refused with422. The ingest service keys a message’s entries on its control id and entry position, so a redelivered message commits once.
0.0.3 - 2026-09-25
The FHIR round-trip release. The fhirconnect crate runs every FHIRconnect
method over the generated FHIR model and the openEHR Web Template; the $tofhir
and $toopenehr operations and the FHIR R4 facade over a CDR are served by the
one binary; and the published KDS Diagnose chain round-trips under both lens
laws, through the operations and against a real CDR, modulo a declared set.
v0.0.3-rc.1, cut the same day, rehearsed the release lane with this content
and is superseded by this release.
Added
-
scripts/vendor/its-rest.shalso vendors the Simplified Formats and Simplified Data Template sources (docs/simplified_formats/,docs/simplified_data_template/) at the pinned ITS-REST commit, so the FLAT families the engine writes cite a vendoredmaster05-rm_mapping.adoc. -
The KDS diagnosis round trip (#86).
scripts/vendor/kds-diagnose-opt.shvendors the publishedKDS_Diagnoseoperational template verbatim, pinned by commit, path and sha256 indocs/VERSIONS.md, with its provenance and the repository licence beside it. A FerroBRIDGE project context compiles the publishedEVALUATION.problem_diagnosis.v1chain of the FHIRconnect mapping library against it; every published file the chain reaches loads verbatim or has its refusal asserted by file and line, and the project directory carries a stand-in for each one that does not. The two lens laws are asserted as reviewed snapshots of the declared set, with a corrupted intermediate that breaks each, over the synthetic chain and over the KDS chain. Both laws hold on the KDS Diagnose chain in the engine, over the two FHIRconnect operations and through the facade against the reference CDR, each modulo its declared set. The end-to-end lane commits a synthetic KDS composition to the reference CDR and reads it back. The server logs every warning a compiled program carries once at load, naming the context, the file, the line and the code. -
Context resolution refuses two sibling mapping methods of one file that share a name (
fc-duplicate-method-name, naming both positions), because anoverwriteor anappendToof that name has no single target, and warns when a listed extension extends a model the program never reaches (fc-unreached-extension). A compiled program carries its warnings. -
The carry-over wire cases on the facade (#115):
$validatenames the EHR the composition would be written into as well as its template, carries the validator’s message verbatim, writes nothing either way, and refuses at the operation level as create does; a refused commit stores nothing; the three absences differ inissue.codeanddiagnostics; both JSON media types are read on every write and anything else is415; the feeder audit carries the source version and records an absent id as unknown; and an EHR created on first sight names its subject as aPARTY_SELFover aPARTY_REFwhoseGENERIC_IDscheme is the namespace, while the default policy creates none. -
The FHIRconnect engine records where a composition came from in its
FEEDER_AUDIT(#187) (https://specifications.openehr.org/releases/RM/Release-1.1.0/common.html#_feeder_audit_class).Defaults::with_originnames the system and the source resource, which travel asoriginating_system_auditandoriginating_system_item_ids, and every composition field the engine defaulted travels as onefeeder_system_item_idsentry, in the order of theWarning::Defaultedentries. The facade and$toopenehrboth set the origin, so the facade no longer patches the audit onto the built composition. -
The FHIRconnect engine reads and writes a mapping’s reference-model tail below the deepest template node, in both directions (#189). The resolver records the class of the tail’s last attribute, the tail’s class selects the data-type cell, and a tail no FLAT part of the node’s class carries is refused with
EngineError::UnsupportedTailinstead of being dropped on the way to the wire. -
The FHIRconnect engine runs
reference,link,participationsFunctionandhierarchy.split(#186). What a run calls out to isSeams: themappingCoderegistry, aReferenceSourcefor referenced resources and anIdentitySinkfor the resources a run creates, whose default derives a stable id by digest. A reference that resolves to nothing is a declared skip and a reference cycle refuses. Alinkwrites an openEHRLINKwhose target must be anehr:URI, a participation writes oneother_participationsentry, and a split creates one resource or one archetype instance per occurrence and per distinctuniquetuple. Created resources travel onOutcome::created:$tofhiranswers them as Bundle entries covered by the oneProvenance, and the facade carries them as contained resources. -
The FHIRconnect operations compile against the templates the CDR serves when
[cdr]is configured and[mappings] templatesis not (#195): boot reads the context files, fetches each template they name atGET /definition/template/adl1.4/{template_id}(openEHR ITS-REST 1.1.0 §Definition), and refuses the start with the template id and the upstream status when the CDR does not serve one. A[mappings] templatesdirectory still wins when both are present. A[mappings] directorywith neither source is refused when the configuration is read, before any upstream call, while[operations] enabledis true. A mapping set that does not load stops the start with “the mapping set could not be loaded” followed by the cause. -
fhir-types0.1.106 carries theisSummaryandisModifierflags of every element onschema::FieldSchemaasis_summaryandis_modifier(#213), read from the pinnedStructureDefinitionof each version (https://hl7.org/fhir/R4/elementdefinition.html). A server answering_summary=true(https://hl7.org/fhir/R4/search.html#summary) reads the summary set from the element table instead of keeping its own copy. The element-table test compares both flags with the package JSON for every emitted element and pinsPatient.active,Patient.nameandPatient.photoper version. -
fhir-types0.1.105 refuses a primitive value outside its lexical form on decode (#204). Every primitive whose JSON form is a string carries theregexextension its own package puts on thevalueelement (https://hl7.org/fhir/R5/datatypes.html#primitive), compiled once behind aLazyLockin the generated module and matched against the whole value as the XML Schema pattern it is (https://www.w3.org/TR/xmlschema-2/#regexs), so"date": "yesterday", acodewith a leading space, auriholding a space and an id outside[A-Za-z0-9\-\.]{1,64}are aDecodeErrorwithBadValueand the element path. The form is read per version and never copied between them: 4.0.1, 4.3.0 and 6.0.0-ballot5 require the offset with a time and 5.0.0 does not, and 4.0.1 typesCodeSystem.idasstringwhere 4.3.0 and 5.0.0 type it asid. A primitive carried as a JSON number or a boolean keeps the number checks it already had. -
fhirconnect::operationsand the$tofhirand$toopenehrHTTP surface (#114). The two operations the draft FHIRconnect REST API chapter defines (specification pull request #93, pinned by commit) are served byferrobridge serve:POST /fhir/$tofhirtakes aParameterswhosecompositionis the openEHR composition as a JSON string, canonical or FLAT withtemplateId, plus an optionalcontextgroup ofehr_id,patient,whoandonBehalfOf, and answers acollectionBundle carrying the mapped resources, exactly oneProvenanceand anOperationOutcomeentry when the run declared a loss;POST /fhir/$toopenehrtakes a Bundle and answers aParameterswith the composition string and an optionaloutcome. The direct form the chapter keeps outside the FHIR implementation guide is served too, asPOST /fhir/tofhirwithContent-Type: application/openehr+jsonandPOST /fhir/toopenehranswering in that media type.templateId,formatandehr_idtravel in the body or the query, with the body taking precedence; a FLAT composition with no template is400 required; any other media type is415; every refusal is anOperationOutcomewith its R4 issue code. Strictness is the default, so a failed mapping answers an outcome and no Bundle or composition, a Bundle referencing more than one subject is refused naming the subjects, andcontext.patienttakes precedence over the subject a mapping resolved without ever being required. The mapping set is compiled once at boot from[mappings] directoryand the new[mappings] templateskey, and[operations]carries the lane switch, theDevicereference theProvenancedefaults to and the composition defaults an inbound run applies. -
The FHIR R4 facade (#85), mounted under
/fhirwhen[facade] enabledis set and answering nothing at all when it is not, so a disabled facade is a404rather than a403. It serves aCapabilityStatementbuilt from the mapping set the server compiled at boot, creates a resource as a composition the CDR commits, reads one back out of its composition, updates one underIf-Match, commits atransactionBundle as one openEHR contribution, and answers$validateas a dry run that writes nothing. Every response isapplication/fhir+json, and everything the facade authors is anOperationOutcome: an openEHR error body travels verbatim insideissue.diagnosticsrather than reaching the wire as its own document. One table maps each CDR answer to a FHIR answer with both sides cited, so a template refusal is a422carrying itsvalidationErrors, a deleted composition is a410, a401keeps itsWWW-Authenticate, and a CDR failure is a502naming the upstream status instead of an empty success. -
Identity for the facade (#85), in a
redbfile the lane opens at boot and readiness probes. A resource id comes from the entry’sLOCATABLE.uidwhen it has one and otherwise from a digest over the version container, the entry path and the split occurrence, so the same composition reads back under the same id whilemeta.versionIdmoves with each new version. The map wins once written, which is what makes a re-sent resource update the composition it already produced instead of creating a second one. The store holds identifiers and no clinical content, and a test greps the file to prove it. -
Provenance on every inbound commit (#85): the composition carries a
FEEDER_AUDITnaming the source resource’sidand type, itsmeta.versionId, and the configuredsystem_id, with an absent id recorded as unknown rather than invented. -
[facade]and[mappings]configuration sections (#85):enabled,base_url,ehr_policy,identity_store,subject_namespace,system_id,composition_languageandcomposition_territory, plus the directory the mapping files are read from. An enabled facade needs[cdr], a mapping directory, and both composition fields, and refuses to start without them. -
fhirconnect::engine, the bidirectional interpreter (#84). A data-type cell of the specification’s chapter is one lens, written once:getreads an openEHR reference-model value into its FHIR element andputwrites it back with the openEHR value the target already holds, and each pair carries the GetPut and PutGet laws asproptestproperties over the subset its table declares lossless. The cells areDV_CODED_TEXTagainstCodeableConceptand againstCoding,CODE_PHRASEandTERM_MAPPINGagainstCoding,DV_TEXTagainststring,CodingandCodeableConcept,DV_DATE_TIMEagainstdateTime,DV_INTERVAL<DV_DATE_TIME>againstPeriod,PARTY_IDENTIFIEDagainstReferencewithDV_IDENTIFIERbeside it, andDV_PROPORTIONagainstQuantityfor a percentage. A date and time value keeps the text it came with, soZ,+00:00,+01:00and fractional seconds survive both ways. An attribute the table marks as having no counterpart is carried from the value the target holds; a value the target would falsify refuses, so aTERM_MAPPINGwhosematchis not=, aDV_PROPORTIONthat is not a percentage, and aPeriodcollapsed into aDV_DATE_TIMEwhere the page gives no rule are each a typed refusal naming the element. Beside the cells, the module carries the direction rule (fhirConditionruns when FHIR is the input,openehrConditionwhen openEHR is), the five condition operators with the connectives the specification fixes, the three recurrence rules as structured occurrences, and the closed set of losses a run may declare. -
One traversal runs a compiled program from either side (#84):
to_openehrreads a FHIR resource and builds a canonical composition,to_fhirreads a composition and writes the resource the context names, and both walk the same mapping list top-down. Where a mapping writes follows one rule on whichever side is the output: the axes the parent bound keep their instance and every repeating element below them takes a fresh one per input occurrence, so a later mapping overwrites a single-valued output, two mappings append into a repeating one, and a0..ninput into a0..1output leaves its last occurrence with the rest declared lost. Amanualentry merges every path it names into one element, aslotArchetyperecurses with the whole chain checked for a cycle,type: NONEonly anchors what follows, and the composer and context start time are defaulted going into openEHR and recorded. Every refusal is typed and names the mapping: a value the element does not admit, a required1..1child the input does not carry, a slot chain that closes on itself, amappingCodethe registry does not hold, and the methods this milestone does not run (reference,link,participationsFunction). -
fhirconnect::resolve, context resolution into one immutable program per context mapping (#83).compileselects the start model mapping, applies the extensions the context declares in declaration order and file order, and resolves every path on both sides once: the FHIR side is bound to its anchor and resolved against the element table with its writability, and the openEHR side to a node of the Web Template with the repeating nodes on the way to it as its occurrence axes. The rules the specification leaves open are the bridge’s own and each is refused rather than guessed: anaddwhose name collides, anappendthat carries mapping logic or names no target, anoverwriteof a missing method, two extensions overwriting one name, an extension method on a nested mapping, aslotArchetypecycle, a template identifier orsem_verthe context and the template disagree on, an archetype revision the template’s identifier contradicts, and a write side that names a filtering expression. A program carries the profile and template it was compiled against, each optional version recorded as pinned or unpinned, andselectpicks one bymeta.profilemembership on the FHIR side or by template identifier on the openEHR side, refusing an ambiguous selection by naming the candidates. -
The diagnosis chain of the vendored FHIRconnect mapping library compiles into one program, snapshot-tested, from the published model and extension files plus a FerroBRIDGE-authored context and extension, against a synthetic operational template in the testkit.
-
openehr_mapping_core::composition::NodeValue::under, which writes a value under a value-internal family of its node (#84). Not every part of a data value is a datum suffix: Simplified Formats models an interval’slowerandupperand a term mapping’s_mapping:0/targetas paths below the node. -
openehr_mapping_core::index::node_id_matchesandarchetype_release_version, the two archetype-identifier comparisons a mapping language needs outside a path: an identifier is matched in its interface form, and only an ADL 2 identifier states the release version below its major.ResolvedNode::rm_pathhands back theaqlPaththe index already parsed, so a consumer never re-parses it and the empty path of the root node reads as the composition root. -
A
fuzz/crate withcargo fuzztargets over the YAML mapping loader and the openEHR mapping-path parser, seeded from the synthetic fixtures and a sample of the vendored mapping library, run weekly and on dispatch by.github/workflows/fuzz.ymlon a nightly toolchain (#155). The lane is time-boxed and never a pull-request gate; a panic or a hang is the finding. -
fhirconnect::model, the FHIRconnect file model and its three validation layers (#82).astcarries one Rust type per construct a model, extension or context mapping file may hold, each node positioned at the YAML it was read from;parselowers the positioned tree the shared loader returns and refuses an unknown key, a node of the wrong kind and a keyword value outside its documented set;schemacompiles JSON Schema over both the schemas FHIRconnect publishes and the stricter pair this crate ships underschemas/;semanticapplies the rules a schema cannot express (a condition’scriteriaagainst its operator, atargetRootthat names a child of thewithpath it filters, an extension method outside an extension file, areferencemapping without$reference, amappingCodenaming no registered function, and every cross-file reference against the loaded set); andloadruns all of it over one file or a whole set, returning every diagnostic rather than the first. -
The vendored FHIRconnect mapping library is exercised by all three layers. One test pins the exact set the published schemas refuse (24 of the 107 files, 34 errors, over
link,mappingCodeand a nullmappings), so an upstream schema fix fails the test and forces a re-adjudication; another pins that this crate’s schemas accept every file except the three that writemappingswith no value; a third pins the library’s own defects, including six duplicatemetadata.namedeclarations and eleven cross-references that name no loaded mapping.
Changed
-
The
zizmorpin moves from 1.29.0 to 1.30.1 in the CI lane and the pin matrix (#180). Its newself-repositoryaudit is disabled in.github/zizmor.ymlwith the reason: actionlint 1.7.12 refuses the$/form it asks for, and the switch waits on actionlint (#223). -
The vendored draft REST API chapter of FHIRconnect gains
rest/sushi-config.yaml,rest/ig.iniandrest/input/pagecontent/index.mdat the pinned commit, fetched byscripts/vendor/fhirconnect.sh, so the implementation guide canonical behind the$tofhirand$toopenehrdefinitions is citable from the tree. -
The
openehr-*crates move to 0.0.69, andopenehr-sdtjoins the workspace: the sibling split the Simplified Data Template engines (the Web Template builder, the FLAT and STRUCTURED codecs, the composition builder and the RM-instance validation) out ofopenehr-itsat 0.0.68, so the mapping foundation and the tests reach them throughopenehr_sdtandopenehr-itsis taken withopt14,jsonandrest-serveralone.openehr-itsis Apache-2.0 again andopenehr-sdtis BUSL-1.1, which the licence table records.jsonschemamoves to 0.57.0,thiserrorto 2.0.21, and both locks take every compatible update. -
The
openehr-*crates move from 0.0.64 to 0.0.67 in the workspace, the fuzz manifest and every pin row, one hand-made bump for the five Dependabot ones (#207 to #211) that cannot build alone because the family is one lockstep line; 0.0.65 to 0.0.67 changed only the copyright holder in the source headers.serde-saphyrmoves to 1.3.0 andclapto 4.6.7 with their pin rows (#206). Dependabot’s cargo ecosystem gains anopenehrgroup so the next family bump arrives as one pull request. -
The container base image
gcr.io/distroless/static-debian13:nonrootmoves to index digeste2e927e, in theFROMofdocker/Dockerfileand its pin row (#199, landed by hand because the pin row lives outside the Dockerfile). -
The Licensor and copyright holder of the project’s own work is Vernum Projecten B.V. (#197). Every
Licensor:, copyright andSPDX-FileCopyrightTextline names the company. The licence terms are unchanged, and maintainer credit stays a person. -
Keyword values compare case-insensitively inside their documented set, and a value outside the set is refused. The FHIRconnect text is case-inconsistent about its own keyword values, so
openEHR->fhirand$openEHRRootare admitted besideopenehr->fhirand$openehrRoot. YAML keys stay exact, because the published schemas fix them with a JSON Schemaenum. -
fhirconnect::tree, the bidirectional path model behindwith.fhir(#81). It parses the expression FHIRconnect writes, including the two head forms the specification adds ($resourceand$fhirRoot) and the^parent operator, resolves it against the R4 element tablefhir-typesemits, and reads and writes it over that crate’s lexicalValuetree. Navigation is by element name; a choice element resolves throughofType(),as()or the suffixed element name; a repeating element is an array addressed by a structured occurrence index;extension(url)selects or creates the entry carrying that url; and a primitive’sextensionlives in the sibling member named with a leading underscore, the FHIR JSON representation.resolve()returns a deferred outcome carrying the reference and the steps still to apply, and fetches nothing. Every expression is classified when it is parsed, so a mapping whose write side names a filtering expression (where(),first(),last(), an index) is refused with the offending step named, and every other refusal names the element path the table holds. A write applies to a copy and replaces the document only when every step succeeded.
Fixed
- The FHIRconnect compiler derives the data-type pair of a mapping with no
typekey from its two sides, since the type “is derivable from the instances” (data-mappings.adoc§Deprecated), and the engine runs what it derived: an untypeddateTimeelement pairs with aDV_DATE_TIMEnode instead of converting as text; an untyped mapping onto a structural node anchors its children astype: NONEdoes, and one with no child is afc-anchor-without-childrenwarning; a choice element with no type filter, and anExtensionagainst a data value through itsvalue[x], reads the alternative the document carries and writes the first pair of the node’s class, refusing at load withfc-underived-alternativewhen the choice admits none; and atypekey on a choice fixes the alternative both ways. The required-child check ofengine/Fail.adoccounts a structural node as provided once a value below it is written, and skips a child its own condition closed. The same pass fixes four engine defects the KDS chain reached: one resource maps into one instance of a repeating start archetype, a repeating FHIR element is counted by its document path socode.codingandverificationStatus.codingno longer share instances, amanualentry’sopenehrConditionis evaluated going out of openEHR, and a node the composition does not hold is no input occurrence.ENTRY.providertravels as its_providerFLAT family, and the engine defaultsEVENT_CONTEXT.settingto238“other care” as a declared default (Defaults::with_settingnames another), so the declared set of a round trip closes. - A mapping whose openEHR tail or
manualpath no FLAT part of the node’s class carries is refused at load (fc-uncarried-tail, naming the mapping, the class and the tail) instead of on the request that first reaches it; the engine keeps itsUnsupportedTailrefusal as a backstop. The publishedproblem_qualifier.v2,KDS_problem_qualifier,problem_diagnosis.v1,multiple_coding_icd10gm.v1andreport.v1.Conditionfiles name such tails, and the test contexts carry stand-ins for them. participationsFunctionwrites and readsEVENT_CONTEXT.participations($composition/context/participations) as the_participation:ifamily undercontext, as it doesENTRY.other_participations.- A mapping path now resolves to an element the operational template renames:
the compiler matched a compacted node by the exact text of its
aqlPath, so a template that constrains a name (items[at0002,'Kodierte Diagnose']) refused every mapping written by node id alone. It now applies the rule the index applies to an indexed node: a name the mapping does not write selects nothing, and one it does write must match. - The FHIRconnect engine evaluates a program’s own
openehrConditiongoing out of openEHR and refuses a composition it does not admit withEngineError::NotApplicable, the rule it already applied tofhirConditiongoing in (basics/Conditions.adoc). Amanualpath no FLAT part carries refuses withEngineError::UnsupportedTailinstead of being dropped, an openEHR position that does not fit is refused with its ownPositionErrorinstead of being dropped or reported as a zero, and a default whose template lookup fails for a reason other than a missing node refuses (#189, #187). WebTemplateIndex::readfinds the n-th instance of a repeating node among that node’s own occurrences (#186). It read the position as an RM positional predicate, which counts every element of the container (BASE Release 1.2.0 §Paths and Locators), so the first anatomical-location cluster behind a sibling element read as absent.GET /fhir/metadatadeclares$tofhirand$toopenehrinCapabilityStatement.rest.operationwhenever the FHIRconnect operations lane is served beside the facade, with the canonicalOperationDefinitionURL of each (http://fhirconnect.org/fhir/OperationDefinition/ToFhirand.../ToOpenEhr), and leaves them out when the lane is off (#194). The two direct forms stay undeclared, because the draft REST API chapter keeps them outside the FHIRconnect implementation guide.- The element table
fhir-typesemits now carriesElementwith itsidandextension, so a table-driven consumer resolves the members of a primitive’s underscore sibling (_birthDate) against the definition rather than against its own constants (#168). The entry is table-only: noElementRust type is emitted, because an element typedElementbecomes its own nested struct. The table types (Schemas,TypeSchema,FieldSchema,Kind,ValueKind) moved fromfhir_types::xmltofhir_types::schemain the same change, andSchemas::is_resourceis public. - The conformance findings of the
fhirconnectmodel and resolve review (#177). An openEHR path that names more than one template node is nowfc-ambiguous-template-nodenaming the candidates instead of binding to their parent; the reference-model attributes a path walks below the deepest template node are checked against theopenehr-rmattribute model; anappendrefuses every key butfollowedBy; a condition and ahierarchy.splitpath are read-only sites, sowhere(),first(),last(), an index filter andresolve()are accepted there; a slotted or extension file’spreprocessorand a file-levelspec.conceptmapandspec.unidirectionalreach the program;^crosses areferenceboundary into the enclosing resource; the model layer no longer refuses anappendTothat another extension’saddsupplies; the strict schema requirestargetAttributeortargetAttributeson anopenehrConditionagain, as the published one does; a mapping-level data type beside awith.typeis carried rather than dropped, and a disagreement between them is refused; and every refusal names the file it is about and the place it sits there, at any depth. - The program carries what the engine would otherwise re-derive from path text
(#177): a condition’s attachment to the path it guards, a
manualvalue as a literal or a named$contextmember, ahierarchy.splitcreateas one of three elements,FhirTarget::repeats()beside the openEHR occurrence axes, andProgram::mapping_namedfor a dotted method name. The profile-version refusal now names every program that claims the profile under another version instead of the last one.
0.0.2 - 2026-09-13
The foundation release. v0.0.2-rc.1, cut the same day, rehearsed the new
release lane with this content and is superseded by this release.
Added
-
app/ferrobridge-server, theferrobridgebinary shape (#21): a thinmain.rsover a testable library run path, withserveplus theetl run,cdm init,vocab loadandmapping checksubcommands, which parse and exit 2 naming the issue that lands each. Configuration is an optional TOML file, named by--configorFERROBRIDGE_CONFIG, withFERROBRIDGE__<SECTION>__<KEY>environment variables over it; every struct refuses an unknown key, every default lives inline in its ownDefaultimpl, every credential is reachable through a<key>_filesibling read once at boot, and a refused configuration exits 78. A lane is off until its section is present, and a section that reaches identifiable data says so once at start-up, naming the section and never a value. The console istracingwithauto,jsonandprettyrenderings,autoresolving by whether stdout is a terminal, and a filter that does not parse falling back to the default and logging the fallback. The HTTP surface isGET /,GET /health/livenessandGET /health/readiness, the last over a registry of per-upstream indicators that answers503while any of them is down. The middleware stack echoes anX-Request-Idonly when it is printable ASCII of at most 128 characters and mints a version 4 UUID otherwise, renders a handler panic as a500with a JSON body carrying the request id, answers408past the request timeout and413past the body ceiling, and writes exactly one log line per request with the method, the matched route, the status, the latency and the request id. A body never reaches the log, and a query value only when the deployment named its parameter.SIGTERMandSIGINTstart a bounded drain. The variable table is on the Operate page of the book. -
ferrobridge-openehrandferrobridge-termeach gain areachabilityprobe, oneGETon the configured base and on[base]/metadata(https://hl7.org/fhir/R4/http.html#capabilities), so a readiness indicator asks whether the upstream answers at all without running an operation. -
The container image and the quickstart (#22).
docker/Dockerfileis one stage ongcr.io/distroless/static-debian13:nonroot, pinned by the digest of its image index, copying the static musl binary the release lane stages atdist/<os>_<arch>/ferrobridge. It runs as uid 65532 written numerically, binds0.0.0.0:8080, exposes 8080/tcp, and carries an exec-formENTRYPOINTwithserveas the default command, so a KubernetesJobsetsargs:alone. It declares noHEALTHCHECK, because the base has no shell: the probe isGET /health/livenessfrom outside, with/health/readinessanswering503and a JSON body naming each down upstream.compose.yamlat the repository root is the quickstart: loopback port publishing with the Docker DNAT firewall hazard documented, a read-only root filesystem, every capability dropped,no-new-privileges:true, file secrets for the CDM URL and the CDR credential, and thecdm,cdm-initandvocab-loadprofiles over PostgreSQL 18.6.scripts/checks/versions.shnow checks the base-image digest, the quickstart image tag against the product and workspace versions, and the quickstart’s PostgreSQL pin; thedockerDependabot entry points at/docker; and the book gains an Operate page for the image, the variables, the probe and the CDM profiles. -
The release lane at SLSA v1.2 Build Level 3 (#23).
release.ymlkeeps the tag, the draft and the publish, and its build jobs becomeuses:calls to two new reusable workflows, which is what puts the signing identity out of reach of caller-defined steps.release-build.ymlbuilds one native target per call on a runner of that architecture, with no cache and withcargo auditable, and produces the tarball carrying the binary,LICENSE,NOTICEandREADME.md, its SHA-256 checksum, a CycloneDX SBOM of the source graph at spec version 1.5, a syft SBOM read from the shipped binary, Sigstore bundles for all three attestations, and the provenance DSSE envelope as.intoto.jsonl, refused unless it carries the SLSA v1 predicate type.release-image.ymlverifies this run’s musl tarballs against the build lane’s signer identity before staging them, pushesghcr.io/rubentalstra/ferrobridgeforlinux/amd64andlinux/arm64, attests the index and both platform manifests as OCI referrers, and verifies its own output the way a consumer would.finalize-releasenames the required asset set in full and refuses to publish a short release; a pre-release publishes with--latest=false.SECURITY.mdcarries thegh attestation verifycommands for a tarball and for the image and says what each one proves, and the pinned tool versions are guarded byscripts/checks/versions.sh. -
crates/ferrobridge-term, the FHIR terminology client (#77):CodeSystem/$lookupresolves a code’s display,ConceptMap/$translatemaps a code into another system,ValueSet/$validate-codetests membership of a value set, andbatchsends several of them as onebatchBundlethat is answered by position. R4 and R4B are both read, over the generatedfhir-typesoperation contracts rather than hand-written JSON; the two releases declare the same parameters for these operations, so the configured wire version selects the decoder. A negative answer an operation states in its ownoutparameters is an outcome, and every refusal is a typed error carrying the upstream status, the body, and anytx-issue-typecoding theOperationOutcomeholds. A missing display is aNotFoundoutcome, never an empty string; atranslaterefusal fails closed and is never a missing translation; every match is returned with its equivalence andaccepted()yields theequivalentandequalones alone, so awiderorinexactmatch never reaches a target system. Retry covers connect failures, timeouts and5xx, and thePOSTform is retried because the three operations declareaffectsState: false. The testkit gains theterminology()container, the syntheticCodeSystem,ValueSetandConceptMapthe reference server loads, theOperationOutcomeandbatch-responsestubs, and a pin row for the terminology server image. -
openehr-mapping-coregains the path module (#75): the Web Template built from either an OPT 1.4 or an ADL 2 OPT2 behind oneTemplateSource, theaqlPathindex with RM type, occurrences and node id, mapping-path resolution over it, the at-code versus id-code check that refuses an id-coded ADL 2 template, relative path derivation, composition build and read throughopenehr-itsandopenehr-rm, and the term-binding kind per generation. The ADL 2 fixtures are compiled from synthetic.adlssources withopenehr-adlas a test-only dependency. -
The container harness, the upstream stubs and the synthetic fixtures in
tools/ferrobridge-testkit(#78), with the two end-to-end tests they carry.containersstarts PostgreSQL 18.6 and the reference openEHR CDR with its own database, each image pinned by tag and digest indocs/VERSIONS.md, whichscripts/checks/versions.shnow compares with the harness constants, and torn down when the test’s value drops; every container-backed test returns early unlessFERROBRIDGE_E2E=1, so the ordinary suite stays offline.stubscarries the documented ITS-REST status shapes and the FHIR R4 terminologyParametersforwiremock, andfixturesthe synthetic operational template, composition and R4 resources. On that harness,omop-cdmapplies its embedded OHDSI DDL to a real database and asserts the catalogue against the generated column metadata (#73), andferrobridge-openehrcommits, reads, updates, queries and deletes a composition against a real CDR over ITS-REST (#76). Thee2eCI job runs both with the gate set. A second catalogue test pins what OHDSI’s renderedOMOPCDM_postgresql_5.4_constraints.sqldoes at tagv5.4.3: PostgreSQL refuses it, becausevocabularyis the one foreign-key target the renderedprimary_keys.sqldeclares no key for. -
The generated OMOP CDM v5.4 layer and its generator (#73):
omop-cdmcarries a row type and a column-metadata static for every one of the 39 tables the OHDSI definitions declare across theCDM,VOCABandRESULTSschemas, 432 columns in definition order, with the CDM datatypes mapped toi32,f64, a boundedVarchar<N>, and the lexicalCdmDateandCdmDatetime; OHDSI’s four rendered PostgreSQL files are embedded verbatim and their@cdmDatabaseSchemaplaceholder is substituted through a checked PostgreSQL identifier.tools/omop-cdm-codegenemits all of it from the vendored definitions at tagv5.4.3, byte-deterministically, and theomop-cdm-codegen-driftCI job fails on any difference. Tests assert the generated column set of every table against OHDSI’s DDL. -
crates/openehr-mapping-corecarries the half of the mapping foundation both languages share (#74): the header FHIRconnect and OMOCL standardize between them, withGrammarVersion,MappingName,MappingVersion,MappingTypeandArchetypeIdas distinct types and everything a language adds underspeckept as an opaque positioned node; a YAML loader overserde-saphyrthat resolves anchors, aliases and merge keys into a value tree where every node carries its line and column, and refuses a duplicate key, an unresolvable alias and a tab-indented file with a positioned diagnostic; a registry keyed by mapping name and by archetype id that refuses a repeated name naming both files; oneDiagnostictype carrying file, position, mapping name, model path, severity and code; and aMappingPathover theopenehr-rmBASE path parser that resolves the languages’ own../step against an anchor and refuses a step above its root. Both vendored corpora load through the public seam in the test suite, which pins the exact set of files this crate refuses and why. -
The
fhir-typeselement table (#121): every emitted type carries the path it is defined at, and every element carries itsElementDefinitionpath,min,max, the type codes the definition lists and thecontentReferencetarget, beside the XML kind the codec already read.Schemas::elementresolves a dotted element path through complex types, backbone elements and content references, on a choice element’s base path (Observation.value[x]) and on each expanded form (Observation.valueQuantity), andSchemas::type_ofgives the type such a path resolves to. A test walks every vendoredStructureDefinitionof the emitted set and asserts the table agrees element by element. -
fhir-typesconverts between its owncodec::Valueandserde_json::Value(#122):Value::into_serde_jsonandValue::to_serde_jsonhand a document toserde_jsononly when every number comes back in the text the document carried, and otherwise return a typed error naming the element path, the lexical form and whatserde_jsonwrites, so a decimal never changes on the way out (FHIR regards0.010as different from0.01, https://hl7.org/fhir/R4/datatypes.html#decimal).Value::from_serde_jsonis the infallible other direction for the HTTP edge and test fixtures, and the strict codec’s refusals still apply to a document that arrives that way. -
ferrobridge-openehris the openEHR ITS-REST 1.1.0 client (#76): every call answers with an outcome enum whose variants are the statuses the governing operation documents, each carrying the upstream body, and a refused connection, a timeout, a5xxand a401are typed errors that keep the status, the body and theWWW-Authenticatechallenge. It covers the EHR, COMPOSITION, CONTRIBUTION, AQL and template surfaces, sendsPreferexplicitly on every request, sendsIf-Matchas the bare quotedversion_uid, sends the three 1.1.0 committal metadata headers on a commit, and fetches a template over both generations,adl1.4first andadl2on a404or a406. Timeout and boundedbackonretry apply to idempotent calls only. -
The specification corpora under
docs/specs/(#71), each fetched by a committedscripts/vendor/*.shfrom the commitdocs/VERSIONS.mdpins and stamped with aPROVENANCE.md: the FHIRconnect specification source with its two published schemas and the unmerged REST API chapter, the FHIRconnect mapping library, the OMOCL corpus, the OMOP CDM v5.4 definitions with OHDSI’s rendered PostgreSQL DDL, and the threeSTABLEopenEHR ITS-REST OpenAPI documents. An integration test reads every tree, andscripts/checks/versions.shfails when a provenance stamp stops naming the pin the matrix records. -
fhir-typescarries a feature table (#120):r4,r4b,r5andr6gate the version modules,terminologycarries the terminology root set the crate has always held, andresourceswidens the declared root set to every concrete resource each package defines with the complete closure of the datatypes it references. The default set is every version plusterminology, so a dependant that names no feature gets what it had. One emitted tree holds the union and each item carries thecfgof the narrowest feature that selects it, so the drift gate still covers the whole tree; a newfhir-types-featuresCI job checks each feature on its own. -
docs/architecture.md§3 supports both template generations (owner requirement, 2026-09-12): ADL 1.4 fetched as OPT 1.4 XML and ADL 2 fetched as AOM2 canonical JSON from theadl2route, decoded into the two OPT types and built into one Web Template by the twoopenehr-itsbuilders behind one seam; the resolution order, the ADL 2Acceptrule, the HRID identifier handling, the at-code versus id-code refusal and the term-binding delta are recorded as FerroBRIDGE’s own;openehr-amjoins the pins andopenehr-adlstays out until a CDR serves ADL 2 as text alone. -
docs/architecture.mdcarries ten mermaid diagrams: the system picture, the two languages over one foundation, the openEHR path pipeline, the FHIRconnect pipeline, the inbound create and the$tofhirsequences, the OMOP ETL flow, the crate graph, the FHIR identity derivation and the build order; the book’s architecture tour gains the FHIRconnect pipeline and the ETL flow. -
The generated FHIR model and its generator (#72), moved in from the sibling terminology server by the owner decision of 2026-09-05:
crates/fhir-typesat 0.1.98, the one first-party crate under Apache-2.0, with the per-version R4, R4B, R5 and R6 modules, the strict JSON and XML codecs and the terminology operation contracts;tools/fhir-codegen, which emits the crate from the five vendored HL7 FHIR packages (380 MB, each with itsPROVENANCE.md);scripts/vendor/fhir-packages.sh, which refetches those packages against thedocs/VERSIONS.mdpins; thecodegen-driftCI job, which regenerates in check mode and fails on any difference; and theregen-codegenskill. Features, the public element table and theserde_json::Valueconversion follow in the next increments of #72. -
The crates.io lane the published crate line needs (#72): the
cratesleg ofrelease.yml, gated by thecrates-ioenvironment and authenticated with Trusted Publishing;.github/workflows/publish-crates.yml, the dispatch dry run and recovery path;scripts/release/publish-crates.sh, which uploads each member in dependency order and reads the registry back at each crate’s own manifest version; thepublish-dry-runCI job; andscripts/checks/crate-version-guard.sh, which fails a change that alters a crate’s packaged content without moving its version. -
The workspace root discipline is complete (#20): a composite
.github/actions/setup-rustaction readsrust-toolchain.tomlfor every Rust-tier job, and every workspace member carries one integration binary attests/it/main.rs(the foundation crate asserts the fouropenehr-*rows of the pin matrix name one line; the server test drives the library run path; the testkit tests its own pin-matrix reader). -
The Cargo workspace skeleton (#107): the root manifest with every lint the reliability rule names, the release profile,
rust-toolchain.toml,rustfmt.toml,clippy.toml,deny.tomland a committedCargo.lock; six placeholder library crates at version 0.0.0 (openehr-mapping-core,fhirconnect,omocl,omop-cdm,ferrobridge-openehr,ferrobridge-term), published to reserve their names, each carrying its pinned specification version as a constant that an integration test checks against the pin matrix; a thinferrobridgebinary over a library that does nothing yet; and theferrobridge-testkittool crate with the pin-matrix reader. CI tier 2 is active from this change on.
Fixed
scripts/site/assemble.shrenders the book into a temporary directory and copies from there (#58), so assembling the site no longer rebuildswebsite/book/book/in the source tree. The usage header says so.cargo deny checkprints zero warnings (#145). The licence check now covers dev-dependencies (include-dev = true), which is what theopenehr-adlexception needed to fire at all, and each of the tenmultiple-versionsduplicates carries askipentry naming the older version and the crates that require it.multiple-versionsstays atwarn, so a new duplicate still shows.- The server’s request log line now covers every outcome (#21 follow-up): the
log middleware sits outside the panic catcher, the request timeout and the
body-size ceiling, so a caught panic, a
408and a413each leave their onerequestline with the route, the status and the request id, where before they left none. - The SonarQube Cloud coverage step compiles and instruments one workspace
member at a time and merges the profiles into the single
lcov.infoSonar imports (#146); the workspace-wide all-features form was killed on the runner with exit 143 and never produced a report. The step now fails when the report carries zero line records.
Changed
-
Two guards join the repository, and the book explains the version lines behind them.
scripts/checks/favicon-sync.shfails when a book theme favicon differs from the brand mark it copies, and runs in tier 1 ofci.yml(#52)..github/workflows/pin-freshness.ymlreads every pin no Dependabot ecosystem covers, the analyzer versions inci.ymland the documentation toolchain, against the newest upstream release each week, and opens one issue when a pin is behind rather than failing red (#35)..claude/hooks/crate_version_bump_guard.shruns the crate bump guard before agit commitor agit push, so packaged content that moves without a version bump is refused where the fix is one edit (#79). The book gains an Operate page on the two version lines and Contribute pages on the bump rule and on cutting a release (#79, #66). -
docs/ci-cd.mdrecords what watches each class of pin and that no Dependabot ecosystem is failing any more now that both manifests exist (#41), why the GitHub licence field readsNOASSERTIONand why no layout change can fix it (#45), and a decision for each open Scorecard alert, including the branch-protection and code-review trade-offs a single maintainer accepts (#48). -
Every Rust job goes through the
./.github/actions/setup-rustcomposite (#157), which gainedcache-shared-keyandcache-save-ifinputs for the coverage lane; theactions-rust-lang/setup-rust-toolchaindigest now lives in one file. -
Both generators now write the two SPDX tags directly under the
@generated … DO NOT EDIT.banner, which keeps the first line (#129): Apache-2.0 forcrates/fhir-types, the crate’s own licence, and BUSL-1.1 forcrates/omop-cdm’s generated tree and the provenance note beside the copied DDL. The four copied DDL files are vendored upstream material and carry no header of ours.scripts/checks/versions.shanchors its SPDX pattern to the start of a line, so it still catches a header claim and no longer reads the emitter’s own string literal as one.fhir-typesmoves to 0.1.102, its packaged bytes having changed.fhir-codegenalso refuses acontentReferencewhose target is outside the emitted closure or behind a narrower feature than the element referencing it (#133), naming the element path and the reference; the vendored packages are consistent today, so the generated tree is unchanged.deny.tomlrecords the rule its allow list follows (#134): a licence joins the list the day a dependency needs it, with the reason it is acceptable here, and leaves when the last crate carrying it does. All four licences the issue named are carried by crates in the current graph, so none is pruned andcargo deny checkreports no unencountered licence. -
docs/architecture.mdis rewritten as the output of the third research pass (2026-09-12): thefhir-typesmove is re-baselined on the crate as it is today (no cargo features, a lexical-precisionValueinstead ofserde_json::Value, an XML-schema element table without cardinality, a crate line at 0.1.97 still published by the sibling); the draft FHIRconnect REST API ($tofhir,$toopenehr, specification pull request #93) becomes the engine surface beside the facade and ships ahead of it; FHIR identity takes the entryuidfirst per the upstream revision (pull request #94) with the hash as the fallback; the reference engine’s 3.0.x behaviour changes are adjudicated (plural condition keys with OR semantics, lexical date and time preservation, no inventedDV_PROPORTIONextension URLs, refusal instead of warn-and-continue); a carry-over register records every decided behaviour, test invariant and known defect of the reference CDR’s retiring FHIR connector with a disposition; the EHDS priority categories and the HL7 Europe guides become the planned profile targets in order (Base and Core, Laboratory, Medication, then Patient Summary), authored here and never a conformance claim; the build order gains v0.0.8 (the EU targets) and v0.0.9 (the change-feed adapter). -
docs/VERSIONS.mdmoves theopenehr-*crates to 0.0.64 and thefhir-typesfloor to the sibling’s latest release, pins the draft REST API chapter by pull-request commit, and gains a profile-package section that fills as contexts are authored.CLAUDE.mdstates the move as pending. -
docs/architecture.md§7 collapses the published crate set from twelve to seven (one crate per language, with modules), after a duplication check against both sibling projects; the tracker issues keep the module work units. -
docs/architecture.mdis rewritten as the output of the second research pass (2026-09-05): the FHIR model is generated in this repository (thefhir-typescrate and its generator move here from the sibling terminology server, which then consumes the crate from crates.io); the FHIRconnect mapping files are validated by a hand-written model, the vendored published schemas exercised as evidence, a strict schema of FerroBRIDGE’s own, and semantic checks; a context mapping compiles once into an immutable program with pinned extension ordering; one interpreter serves both directions over data-type lenses; the openEHR wire is canonical JSON with the Web Template built locally from the OPT; FHIR ids derive from the stable composition uid and OMOP ids from sequences with a bridge-owned natural-key table; the OMOP commit unit is one composition’s record graph; the library crates are published; the binary is one with subcommands; and the build order splits the round trips into v0.0.3 (FHIR) and v0.0.4 (OMOP). Every decision names its ground and its rejected alternatives. -
docs/VERSIONS.mdpins the corpora by commit, the fouropenehr-*crates, the five HL7 FHIR packages the generator reads, and the crate line; thefhir-terminologyrow is removed, since the client contracts live infhir-types.scripts/checks/versions.shchecks the new crate rows. -
The book’s Evaluate, Operate and Integrate pages,
CLAUDE.md,docs/ci-cd.mdand the rules cite the pinned ITS-REST release and follow the rewritten design.
0.0.1 - 2026-09-05
Added
.github/workflows/release.yml, the release lane, dormant until av*tag is pushed and running on nothing else. It validates the tag shape, refuses aworkflow_dispatchthat is not dispatched at the tag it names, checks the tag against every file that declares the product version (CITATION.cffand thedocs/VERSIONS.mdproduct row today, the rootCargo.tomlas soon as it exists), and takes the release notes from the## [X.Y.Z]section of this changelog, failing when that section is missing or empty. The release is created as a draft and published only once its expected asset set is complete. The binary build sits behind the same root-Cargo.tomldetectionci.ymltier 2 uses, so it is skipped on a tree with no workspace and activates by itself when one lands (#63).docs/release.md, the cut checklist in order, the no-retag rule, and what a published release is protected against: the immutable-releases setting freezes its notes and assets, and therelease-tagsruleset blocks tag deletion and non-fast-forward updates and requires a signature (#63).- The FerroBRIDGE brand assets under
assets/brand/: the mark and its dark-tile, monochrome, and favicon variants, the three lockups (light, dark, and one that followsprefers-color-scheme), the 1200x630 social card, the raster favicon set, the “Indigo & Iron” palette as--ferrobridge-*custom properties intokens.css, and the brand README with the usage rules and the raster regeneration commands. The landing page now carries the favicon, the social card as itsog:imageand Twitter card image, and the mark in its header; the book gets the same favicon throughwebsite/book/theme/; and the repository README shows the lockup (#32). scripts/site/assemble.shcopiesassets/brand/and the repository-rootllms.txtinto the assembled site, so the brand URLs the landing page names and https://ferrobridge.eu/llms.txt both resolve on the live host (#32)..github/release.yml, so GitHub’s auto-generated release notes group pull requests by the tracker’s own label taxonomy (Features, Fixes, Security, Documentation, Dependencies, Maintenance, Other changes), withno-changelogas the exclusion. The hand-curated changelog stays the primary record (#17).- Two
cargoanddockerentries in.github/dependabot.ymlbeside the existinggithub-actionsone, each grouping minor and patch bumps into one weekly pull request while majors stay individual, with the conventional commit prefixesci,depsandbuildandopen-pull-requests-limit: 10on cargo. Both are inert until their manifests exist (#17). - The Rust half of
.github/workflows/sonar.yml, gated on a rootCargo.tomlat step level: the pinned toolchain withllvm-tools-preview, the instrumentedcargo llvm-cov nextestrun that writeslcov.info, and thesonar.projectVersionderivation that anchors the New Code window to the workspace version.sonar-project.propertiesnames the lcov file and excludes build output, vendored trees, and the generated OMOP CDM subtree (#17). - The documentation site at https://ferrobridge.eu/: a hand-written landing
page at the root and an mdBook under
/docs/, organised by reader intent (Evaluate, Operate, Integrate, Contribute)..github/workflows/docs.ymlbuilds it on every pull request and deploys frommainthrough GitHub Pages,.github/actions/docs-toolchain/action.ymlinstalls the pinned mdBook toolchain, andscripts/site/assemble.shplaces both halves and renders the roadmap block from the open milestones.llms.txtandCITATION.cffland with it, the README badge block covers CI, CodeQL, Scorecard, the Sonar quality gate and coverage, the licence and the latest release, andscripts/checks/versions.shnow guards the citation version and the three documentation-toolchain pins (#18). .github/workflows/ci.yml, the CI gate, in two tiers. Tier 1 runs on a repository with no code: zizmor at--min-severity=lowwith the online audits enabled, actionlint through its digest-pinned official image, shellcheck at--severity=styleover every tracked shell program, hadolint over every tracked Dockerfile, and the comment-style and versions guards. Tier 2 is the Rust set (rustfmt, clippy, nextest and doctests, rustdoc,cargo deny, MSRV, dependency review), gated behind adetectjob that looks for a rootCargo.toml, so it activates by itself when the workspace lands. Theconclusionjob reads every job’s result and is the single required status check onmain. Housekeeping the lanes read lands with it:.hadolint.yaml,.dockerignore,.github/actionlint.yaml, and the.gitattributeslinguist-generatedline reserved for the generated OMOP CDM subtree.docs/ci-cd.mdrecords the design, why a mostly-skipped pipeline is still enforceable, and the owner actions that cannot be scripted (#16).- The CI tool pins (zizmor, actionlint, shellcheck, hadolint) as a section of
docs/VERSIONS.md, withscripts/checks/versions.shfailing whenci.ymland the matrix disagree (#16). docs/VERSIONS.md, the pin matrix: one place that records every version pin (the five specification pins, the publishedfhir-typesandfhir-terminologycrate pins, the Rust toolchain, edition, resolver and MSRV, the product version, and the licence) with the files that repeat each one.scripts/checks/versions.shfails on any disagreement and on a first-party file claiming a licence other thanBUSL-1.1, and skips with a printed reason for each file that does not exist yet. APostToolUsehook runs the guard when a pinned file changes (#15).
Changed
-
SECURITY.mdandMAINTAINERS.mdname both protections a published release has: the immutable-releases setting freezes its notes and assets, and therelease-tagsruleset stops its tag being moved or deleted (#68). -
The README’s mark uses an absolute URL, so it renders wherever the README travels rather than only on the repository page (#60).
-
The landing page footer shows the mark beside the wordmark, so the mark brackets the page instead of appearing only in the header (#56).
-
The FerroBRIDGE mark is now the fork the product draws: a filled circle for the openEHR source, a two-way arrow to HL7 FHIR, and a plain line into a table for the OMOP Common Data Model. Only the FHIR branch carries arrowheads, because that side is an exchange and the OMOP side writes rows. Every file in
assets/brand/is redrawn from the new masters, along with the book theme favicon, the social card, the lockups and the raster favicon set. The palette is unchanged.assets/brand/README.mddescribes the new geometry and its two drawing rules, and the landing page image alt text names the new shapes (#54). -
The landing page runs the approved “Indigo & Iron” palette. It carried a pre-brand blue that twenty-one rules read, so every link, button and gradient disagreed with the mark beside them. Every accent now clears WCAG AA against its background in both light and dark (#51).
-
The social card’s specification line is larger and lighter, so it stays legible at the size a link preview actually renders (#51).
-
SECURITY.mdlinks the private advisory form directly, so a reporter can act on the policy without navigating by hand. The document carried no hyperlink at all, which is what Scorecard’s Security-Policy check scores (#47). -
SUPPORT.mdsends a reader to the documentation site first. It still said there was no site, which went false the day the site went live and contradictedREADME.mdon the same tree (#44). -
The contributor page at
/docs/contribute/checks-and-gates.htmlnames the zizmor audit path.github/, matching what CI runs. It still named.github/workflows/, so following it missed the Dependabot configuration and everything under.github/actions/(#40). -
The zizmor lane in
.github/workflows/ci.ymlaudits.github/rather than.github/workflows/, sodependabot.ymland every composite action under.github/actions/are covered. A composite action runs with the calling workflow’s permissions, so it is the same class of token-holding code.CONTRIBUTING.mdand the pull-request template name the wider path too, so a local run still matches CI (#34). -
The Dependabot cooldown on the
github-actionsanddockerecosystems is 7 days, up from 3, which is the floor zizmor’sdependabot-cooldownaudit enforces and matches the 7-day minor value already oncargo. Security updates are exempt from cooldown, so an advisory still arrives immediately.docs/ci-cd.mdrecords why the earlier defence of the 3-day value did not hold and why no suppression was recorded (#34). -
CONTRIBUTING.mdlists all six tier-1 gatesci.ymlruns, in the same order and with the same flags. It named four, so a contributor who ran the listed commands could still fail CI on hadolint or the versions guard (#36). -
The licence of the project’s own code and text is the Business Source License 1.1 (
LICENSE,NOTICE): free for non-production use and for non-commercial production use, a commercial licence for any other production use, and Apache License 2.0 four years after each version. Every header, the README badge and licensing section, and the community and governance documents name it (#12).