Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

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: slotArchetype in FHIRconnect, Include in OMOCL.
  • An escape hatch to code outside the mapping: mappingCode in FHIRconnect, CustomMapping in OMOCL.
  • A code-translation concept: conceptmap in FHIRconnect, conceptMap in 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 typeWhat it carries
modelan archetype mapped to an unprofiled resource, the shared layer
extensionprofile and template adaptation, executed after the model
contextthe 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

ComponentPinWhy
FHIRconnectv1.0.0the 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
FHIRR4 (4.0.1)the only value the FHIRconnect schemas admit for spec.version, and what the published mapping library targets
OMOCLv1.0.0the 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 CDMv5.4the only version the published OMOCL files declare
openEHR ITS-REST1.1.0the 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):

CrateUsed for
openehr-basethe RM foundation types, including partial dates
openehr-rmthe RM 1.1.0 model, its canonical JSON codec, the path parser
openehr-itsthe OPT 1.4 codec, the canonical JSON codec, the ITS-REST data types
openehr-sdtthe Web Template builder, the FLAT and STRUCTURED codecs, the composition builder, the RM-instance validation
openehr-querythe AQL 1.1.0 parser and printer
openehr-amthe AOM2 types an ADL 2 template decodes into
openehr-adltest 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

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 profilePackageCommitted templateTransform proven
patient-eu-corehl7.fhir.eu.base 2.0.0KDS_Personthe_profile_elements_of_patient_eu_core_survive_the_round_trip
condition-eu-corehl7.fhir.eu.base 2.0.0KDS_Diagnosethe_profile_elements_of_condition_eu_core_survive_the_round_trip
medicalTestResult-eu-corehl7.fhir.eu.base 2.0.0KDS_Laborberichtthe_profile_elements_of_the_test_result_survive_the_round_trip
Patient summary Compositionhl7.fhir.eu.eps 1.0.0-ballotnone: no patient summary template in the openEHR international CKMno

Article 14(1)(b): Electronic prescriptions

Target profilePackageCommitted templateTransform proven
MedicationRequest-eu-mpdhl7.fhir.eu.mpd 1.0.0FerroBRIDGE medication template over CKM archetypesthe_profile_elements_of_the_prescription_survive_the_round_trip
Medication-eu-mpdhl7.fhir.eu.mpd 1.0.0FerroBRIDGE medication template over CKM archetypesthe_product_of_the_prescription_survives_the_round_trip
Dosage-eu-mpd (produced, not claimed)hl7.fhir.eu.mpd 1.0.0FerroBRIDGE medication template over CKM archetypesthe_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 profilePackageCommitted templateTransform proven
MedicationDispense-eu-mpdhl7.fhir.eu.mpd 1.0.0FerroBRIDGE medication template over CKM archetypesthe_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 profilePackageCommitted templateTransform proven
DiagnosticReportEuImaginghl7.fhir.eu.imaging 1.0.0-ballotFerroBRIDGE imaging report template over CKM archetypesthe_report_mapped_back_out_is_a_document_the_profiles_constrain
ImagingStudyEuImaginghl7.fhir.eu.imaging 1.0.0-ballotFerroBRIDGE imaging report template over CKM archetypesthe_report_mapped_back_out_is_a_document_the_profiles_constrain

Article 14(1)(e): Medical test results, laboratory results and related reports

Target profilePackageCommitted templateTransform proven
DiagnosticReport-eu-labhl7.fhir.eu.laboratory 2.0.0KDS_Laborberichtthe_profile_elements_of_the_laboratory_report_survive_the_round_trip
Observation-resultslab-eu-labhl7.fhir.eu.laboratory 2.0.0KDS_Laborberichtthe_profile_elements_of_the_laboratory_result_survive_the_round_trip
Specimen-eu-labhl7.fhir.eu.laboratory 2.0.0KDS_Laborberichtthe_profile_elements_of_the_laboratory_specimen_survive_the_round_trip
Composition-eu-labhl7.fhir.eu.laboratory 2.0.0KDS_Laborberichtthe_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 documenthl7.fhir.eu.laboratory 2.0.0KDS_Laborberichtthe_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 profilePackageCommitted templateTransform proven
composition-eu-hdr; the document assembly of the interoperability component writes the bundle-eu-hdr and its Composition from the sections the context mapshl7.fhir.eu.hdr 1.0.0FerroBRIDGE discharge report template over CKM archetypesthe_profile_elements_of_the_discharge_report_survive_the_round_trip
encounter-eu-hdrhl7.fhir.eu.hdr 1.0.0FerroBRIDGE discharge report template over CKM archetypesthe_profile_elements_of_the_discharge_report_survive_the_round_trip
condition-eu-core (diagnostic summary)hl7.fhir.eu.base 2.0.1FerroBRIDGE discharge report template over CKM archetypesthe_profile_elements_of_the_discharge_report_survive_the_round_trip
procedure-eu-core (significant procedures)hl7.fhir.eu.base 2.0.1FerroBRIDGE discharge report template over CKM archetypesevery_section_of_the_report_survives_the_round_trip
medicationRequest-eu-core (discharge medications)hl7.fhir.eu.base 2.0.1FerroBRIDGE discharge report template over CKM archetypesevery_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 crate has one Cargo feature per priority category of Art 14(1) and one per serialisation, and no default feature:

FeatureWhat it adds
patient-summary, prescription, dispensation, imaging, laboratory, dischargethe 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-r4the 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
openehrturns 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::check walks the document’s Bundle and Composition profiles: cardinalities, fixed[x] and pattern[x] values and slices, with every constraint it cannot evaluate listed (The structural check).
  • The full validation of a received document: ReceivedDocument::validate hands the document to ferrobridge-validator, this repository’s FHIR R4 profile validator, over the category’s Bundle profile 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_DIR names, and so does the suite that maps a prescription and a dispensation to their MPD resources. The CI fhir-validator job runs HL7’s FHIR Validator over every one of them, offline, against hl7.fhir.eu.eps 1.0.0-ballot, hl7.fhir.eu.base 2.0.1, hl7.fhir.eu.laboratory 2.0.0, hl7.fhir.eu.mpd 1.0.0, the remaining-dispensations extension and the MyHealth@EU Master Value Sets Catalogue, with the jar and every package pinned by sha256 in docs/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 the eehrxf-fhir-validation artifact 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-dispensations on MedicationRequest.dispenseRequest, as a valueUnsignedInt. The site serves its StructureDefinition at 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:

ProxyVersionWhat the crate reads it for
Xt-EHR EHDS Logical Information Models (xtehr.eu.ehds.models)1.0.0the dataset model of every category
HL7 Europe Patient Summary (hl7.fhir.eu.eps)1.0.0-ballotthe patient summary document and its crosswalk
HL7 Europe Base and Core (hl7.fhir.eu.base)2.0.1the core profiles a patient summary section claims
HL7 Europe Medication Prescription and Dispense (hl7.fhir.eu.mpd)1.0.0the prescription and dispensation records
HL7 Europe Laboratory Report (hl7.fhir.eu.laboratory)2.0.0the laboratory report crosswalk and document
HL7 Europe Imaging Report (hl7.fhir.eu.imaging)1.0.0-ballotthe imaging report and imaging study crosswalks
HL7 Europe Hospital Discharge Report (hl7.fhir.eu.hdr)1.0.0the discharge report crosswalk and document
MyHealth@EU Master Value Sets Catalogue (myhealth.eu.fhir.mvc-package)9.1.0the 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 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.1 for 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 rowArchetypeTemplate section
EHDSPatientSummary.medicationSummary.medicationUseopenEHR-EHR-INSTRUCTION.medication_order.v3IPS Medication Summary
EHDSPatientSummary.medicationSummary.medicationUseopenEHR-EHR-ACTION.medication.v1IPS Medication Summary
EHDSPatientSummary.immunisations.immunisationopenEHR-EHR-ACTION.medication.v1IPS 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.context maps each order and each action of the medication summary section to a MedicationStatement-eu-eps. An order’s status is unknown, 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 reason unknown. An action’s status follows its instruction state where R4 has a matching code (active, on-hold, stopped, completed) and is unknown otherwise. Its time is the statement’s effectiveDateTime.
  • ferrobridge_eu_eps_immunization.context maps each action of the immunisations section at the careflow step “Dose administered” to a completed immunization-eu-core, and each action at “Dose administration aborted” to a not-done one. An action at “Medication double checked” records no administration, so the mapping writes no Immunization for 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

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:

  1. 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).
  2. The text is decoded against the R4 definitions of Bundle and of every resource it carries. An unknown property, a value of the wrong type, a null or 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.
  3. The Bundle is a document, and meets the R4 rules for one: an identifier with a system and a value (bdl-9), a timestamp (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 a Composition as its first entry (bdl-11).
  4. The Composition.subject names one Patient entry of the same Bundle, by its fullUrl, or by a relative Patient/<id> resolved against the server base of the composition’s own fullUrl. 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 a fullUrl in one canonical spelling only: a relative Type/id, an http or https URL with a lower-case host, urn:uuid: with a lower-case UUID, urn:oid:, a _history version matched on the entry’s meta.versionId, and a #id into the resource’s own contained. 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. A type or an identifier beside the reference must agree with its target. A subject, patient, beneficiary or for must 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 than Patient; one that could name another patient (a path or a type that says Patient, or a URN no entry carries) is refused, and so is a type that disagrees with the reference’s target. A second Patient entry and a contained Patient are 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] or pattern[x] requires;
  • slicing, with all five discriminator kinds, profile and paths through resolve() 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-1 of an AllergyIntolerance, the cmp-1 and cmp-2 of a section, the eps-bundle-subject-ref of the EPS Bundle;
  • the terminology bindings, a required one as an error and an extensible one 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_subject names the record’s subject as the provider of every entry, in the composition and in each of its sections, as a PARTY_SELF with no external_ref, so the mark names no identifier of the person. The openEHR RM defines ENTRY.provider as “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 a PARTY_SELF (Common Information Model, “PARTY_SELF and Referring to the Patient from the EHR”).
  • ReceivedComposition::inserted_by_representative names the representative as the provider of every entry, a PARTY_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.

ContextopenEHRMPD profile
ferrobridge_eu_mpd_request.contextINSTRUCTION.medication_order.v3MedicationRequest-eu-mpd, with a Medication-eu-mpd and a Dosage-eu-mpd
ferrobridge_eu_mpd_dispense.contextACTION.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 elementMPD 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.

ContextopenEHRLaboratory Report profile
ferrobridge_eu_laboratory.contextOBSERVATION.laboratory_test_result.v1DiagnosticReport-eu-lab, with an Observation-resultslab-eu-lab per analyte and a Specimen-eu-lab per specimen
ferrobridge_eu_lab_composition.contextCOMPOSITION.report-result.v1Composition-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.

ContextopenEHRImaging Report profile
ferrobridge_eu_imaging.contextOBSERVATION.imaging_exam_result.v1DiagnosticReportEuImaging, 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:

NodeCKM archetypeHDR section
the compositionCOMPOSITION.transfer_summary.v1, whose context is the hospital staythe Composition and its encounter
Diagnostic summarySECTION.adhoc.v1 holding EVALUATION.problem_diagnosis.v1sectionDiagnosticSummary
Significant proceduresSECTION.adhoc.v1 holding ACTION.procedure.v1sectionSignificantProcedures
Discharge medicationsSECTION.adhoc.v1 holding INSTRUCTION.medication_order.v3sectionDischargeMedications

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:

openEHRHospital Discharge Report
the compositioncomposition-eu-hdr, of type LOINC 34105-7
the composition’s context/start_time and context/end_timeencounter-eu-hdr, its period
each EVALUATION.problem_diagnosis.v1 of the diagnostic summaryone 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 proceduresone 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 medicationsone 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 doingWhat you needWhy
Reading, building, modifying or redistributing the sourceFreeTerms: “the right to copy, modify, create derivative works, redistribute”.
Development, testing, evaluation, prototypingFreeTerms: the right to “make non-production use of the Licensed Work”.
Production use for Non-Commercial PurposesFreeAdditional 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 patientsCommercial licenceAdditional 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 productionCommercial licenceAdditional 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 serviceCommercial licenceAdditional 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 feeCommercial licenceAdditional 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.

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.md says. 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 carries ferrobridge-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 --version prints it, and the FHIR facade names it as software.version in the CapabilityStatement at GET /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 its kind and 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 /fhir the guard does not classify is refused with 403 (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 check runs 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 = false serves 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 on 0.0.0.0 is 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_subject of 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_dir set, a token that carries [auth] product_scope can save and reload the mappings that decide what the facade writes into the CDR (the operator API).
  • sslmode=disable on 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 _file sibling (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 with sslmode=verify-full ([cdm]). Check the mapping set with ferrobridge mapping check and 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 check on 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 = false removes the credential check from the facade and the operations. Granting a user of [[auth.basic.users]] scopes in [basic_grants] or adding a subject to scopeless_subjects grants access to patient data. [operator] mapping_dir lets an operator-scope token change the mappings. [hl7v2] enabled opens an MLLP listener that writes into the CDR. A name in [telemetry] logged_query_parameters lets that parameter’s value reach the log, [facade.references] fetch_bases lets the facade fetch from the bases it lists, and [facade.cors] allowed_origins lets 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=false stops 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_store names, which maps subject identifiers to ehr_ids and FHIR ids to compositions;
  • the directory [usage_report] state_dir names, which holds the usage report’s instance id;
  • the mapping directory, [operator] mapping_dir if you set it, and the templates directory;
  • in the CDM database, the schema [cdm] bridge_schema names, 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

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.

RequestWhat it does
GET /fhir/metadataThe 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}/_searchThe same search, its parameters in a form body
POST /fhir/{type}/$validateThe dry run that commits nothing
GET /fhir/Composition/{id}/$documentThe 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 /fhirA transaction Bundle, all or nothing, or a batch Bundle, each entry on its own
GET /fhir/{type}/{id}/_historyThe history of a party resource
DELETE /fhir/{type}/{id}Delete a party resource
GET /fhir/.well-known/smart-configurationThe SMART discovery document, with [auth] on
POST, PUT, DELETE and GET /fhir/BasicSMART 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.

AnswerWhenWWW-Authenticate
401No credential, or one in a scheme the server does not admitBearer, and a Basic realm="", charset="UTF-8" challenge beside it when Basic users are configured
400Two credentials, or an Authorization value that is no credentialBearer error="invalid_request"
401A 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 admitsBearer error="invalid_token", error_description="<reason>"
401A Basic credential that does not hold, whatever the reasonBasic realm="", charset="UTF-8"
403A valid token whose scopes do not permit the requestBearer error="insufficient_scope", error_description="scope-not-granted"
403Any request to a route under /fhir the guard does not classify, before the token is readnone
503A token naming a key the server cannot fetch because the key set does not answernone

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:

InteractionNeeds
createc, 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/$documentr on Composition and on every type the document carries
delete (a party resource)d
search (GET [base]/{type}, POST [base]/{type}/_search)s
updateu
$validatec or u, or the operator scope ([auth] product_scope): the dry run commits nothing, so an operator console needs no clinical write scope
transactionthe permission of each entry’s request.method: c for POST, u for PUT, r for GET, d for DELETE
batchper 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, $toopenehra 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:

RouteOriginsAccess-Control-Allow-Origin
GET /fhir/metadata, GET /fhir/.well-known/smart-configuration, GET /.well-known/smart-configurationAny*
Every other route under /fhirThose [facade.cors] allowed_origins listsThe 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_IDENTIFIED named by its client id;
  • as a Basic user with [cdr] committer_issuer set, 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’s iss and sub;
  • otherwise, a PARTY_IDENTIFIED named by system_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 requestRuns 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+json only 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_depth levels (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 $validate answers it as a warning issue 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.identifiers as a DV_IDENTIFIER whose issuer is the base, whose id is <Type>/<id> and whose type is fhir-reference, where the FLAT format carries identifiers (ENTRY.provider);
  • in PARTY_PROXY.external_ref as a PARTY_REF in the base’s namespace with a GENERIC_ID of scheme fhir-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_uid and meta.versionId its version tree id; the identity map holds no entry for it. One PERSON reads as a Patient and as a Practitioner under the same id, because FHIR scopes an id to its type.
  • Interactions. read, vread, history-instance, create, update (over the version If-Match names, or the latest) and delete (the latest version). The Demographic API has no search or list operation, so a party type offers no search, and the CapabilityStatement documents that on the type. With [facade.party_search] a configured type is searched by identifier or name through the Cadasto experimental AQL demographic extension, or by _id, and the statement declares search-type and exactly those parameters on that type. A CDR that does not serve the extension answers the search with 501 not-supported.
  • The patient’s EHR. With ehr_policy = "create_on_first_write", a Patient create 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 name Patient/<id> find it. Under existing the create sends no EHR call, and a Practitioner never gets one. When the EHR call fails after the party committed, the answer is the EHR refusal with a warning that names the stored Patient.
  • 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 its adl2 route 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 professional PERSON, openEHR-DEMOGRAPHIC-PERSON.healthcare_professional.v1.0.0, is id-coded: its identifier is details[id2]/items[id3] and its full name identities[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 400 is a 500; 404, 409, 412 and 422 reach the caller as themselves, with the CDR’s words in issue.diagnostics.
  • Authorization. A patient/ token reaches the one Patient its launch context names and no other party resource.
  • Bound professionals. A PERSON that carries a binding key, an identifier of an issuer binding_identifier_issuers names, 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 (a Practitioner, typically) with 403 forbidden before 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.

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.

InteractionRouteAnswer
createPOST [base]/Consent201 with the Location of the first directive created
readGET [base]/Consent/{id}the Consent of one directive in force
searchGET [base]/Consent?patient=Patient/{id}a searchset of every directive in force
$bppc importPOST [base]/Consent/$bppc?patient=…&evidence=…201 with an OperationOutcome naming each Consent created
$bppc exportGET [base]/Consent/$bppc?patient=…a collection Bundle of Binary documents
$appc importPOST [base]/Consent/$appc?patient=…201 with an OperationOutcome naming each Consent created
$appc exportGET [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.

InteractionRouteAnswer
createPOST [base]/Basic201 with Location, ETag: W/"1" and the resource with its id and meta.versionId
updatePUT [base]/Basic/{id} with If-Match200 with the next ETag
deleteDELETE [base]/Basic/{id} with If-Match204
searchGET [base]/Basic?code={system}|{code}&subject={reference}a searchset of the matching state
search, globalGET [base]/Basic?code={system}|{code}&subject:missing=truea 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.

InteractionRouteAnswer
createPOST [base]/Task201 with Location, ETag: W/"1" and the Task under a new id
readGET [base]/Task/{id}the Task
searchGET [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 identifier is a name-based UUID of the composition version the content came from, so one version always names one document, and its timestamp is 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 answersThe facade answers
422, template validation422 with validationErrors verbatim in issue.diagnostics
412412 carrying the current ETag
204 on a read, the composition is deleted410
404404
401401, propagating WWW-Authenticate, never 403
400, 405 or 415500: the bridge chose a call the CDR does not offer
any 5xx502 carrying the upstream status
400 on a search query500: the bridge wrote the AQL the CDR refused
408 on a search query502 carrying the upstream status
no answer: a connect failure or a timeout502
no call: the token endpoint for the CDR credential fails or refuses502 naming the token endpoint’s refusal, never the secret
401, and the token endpoint refuses the one renewal502 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.

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

ParameterWhat 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 stringstarts-with by default, :contains and :exact
a declared datethe 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.identifierwith [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)
_ida logical id, resolved through the identity map to its composition
_countthe page size, capped at [facade] search_count_max; 0 answers the total alone
_sortdeclared 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
_summarycount answers the total alone; false is the default
_totalnone, 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

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 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:

  1. A PERSON row an OMOCL mapping writes. The OMOCL corpus maps the openEHR-EHR-ADMIN_ENTRY.person_data.v0 archetype to PERSON (person_data/person_data_v0.yml); when one of the person’s compositions carries it, its row replaces whatever row the person held, keeping the person_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 at items[at0019] of openEHR-EHR-EVALUATION.gender.v1, a node the KDS person template (KDS_Person) does not carry, so on KDS data every person takes gender_concept_id 0. For KDS data, use FerroBRIDGE’s own file crates/omocl/tests/fixtures/projects/ferrobridge/kds_person/kds_person_data.yml in place of the corpus file: it reads the administrative gender at items[at0022], resolves its code through the loaded vocabulary and keeps the code in gender_source_value.
  2. 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_id and ethnicity_concept_id 0 (the CDM’s concept for “no matching concept”), year_of_birth 0, and person_source_value the ehr_id when it fits the column’s 50 characters.
    • existing refuses every row whose EHR has no PERSON row.

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:

AnswerMeaning (composition_get)What the run does
204the composition is deletedremoves its rows, its FACT_RELATIONSHIP links and its watermark in one transaction (under deletions = "remove"), or lists it and keeps them (under deletions = "report")
200the composition exists, and the query left it outkeeps the rows and counts it as extant
404the CDR knows no such EHR or compositionkeeps the rows and lists it, because no deletion is confirmed
anything elseno documented answerends 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_source the [etl.visits] query selects) equals the name of the composition’s context/health_care_facility wins. 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 in visit_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_value and family_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 placeholder PERSON row’s EHR id and every derived visit’s source are pseudonymised the same way.
  • The provider’s provider_name, npi and dea, and a location’s address_1, address_2, zip, latitude and longitude, 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.versionId when it is a positive integer (1 otherwise), 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 whose meta.versionId moves 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 check names why), so a site maps those resources with mappings of its own; a Procedure’s performed[x] does not yet reach ACTION.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 resources line (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 the table.column targets that read it), dropped (a mapping declared it does not run, with the loss), refused (with the reason), or unmapped (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 a ledger line with the counts.

  • Every row names its resource. The bridge schema’s resource_origin table ties each composition to the resource type, id and meta.versionId it 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:

  1. Populate the database: ferrobridge cdm init, load the vocabulary, then ferrobridge etl run. The CDM tables are in [cdm] schema (cdm by default); the bridge’s own tables are in [cdm] bridge_schema and are not part of the CDM, so the dashboard is never pointed at them.

  2. Create a schema for the results, for example CREATE SCHEMA dqd_results;.

  3. In R, install the package and the PostgreSQL driver:

    install.packages("DataQualityDashboard")
    DatabaseConnector::downloadJdbcDrivers("postgresql", pathToDriver = "~/jdbc")
    
  4. 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 server argument is host/database, as DatabaseConnector documents for PostgreSQL.

  5. Open the result with DataQualityDashboard::viewDqDashboard() on the JSON file the run writes into dqd-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_interval after 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 deleted change type, and it is read only when the CDR answers that version under CONTAINS 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> answers 200 with {"reader": "<name>", "events": [...]}, the events after the reader’s cursor in seq order, and 404 for an unknown or inactive reader;
  • POST {url}/admin/outbox/{reader}/ack?domain=<clinical|party> with {"last_seq": <n>} answers 204 and moves that outbox’s cursor, and 409 when n lies 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.

MemberMeaning
contribution_idThe contribution the change belongs to; absent on an erasure
ehr_idThe EHR; null for a demographic change
committed_atThe commit instant; absent on an erasure
versions[]One entry per changed object: vo_id, kind, sys_version, version_tree_id, change_type, template_id
seqThe delivery sequence number of the reference CDR’s outbox; absent on the AQL source
eventerase on an erasure tombstone of the reference CDR; absent otherwise
version_indexWhich 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_id with version_index.
  • In order. Events are published in the order of their source: seq order 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, the events health indicator reports degraded, 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:

  1. 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).

  2. Configure FerroBRIDGE with the same exchange FerroEHR published to (ferroehr.events by 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.*.*" }]
    
  3. Replace each subscription row FerroEHR kept with a queues entry. FerroEHR named a subscription’s queue <exchange>.<name> and built its binding key from the row’s kind, change_type and template_id, with * for an unset one; write that name and that key into queues, 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 its id, meta.versionId (the composition’s version_tree_id) and meta.source (the CDR URL of the composition version). A resource the composition’s earlier delivery carried and this version no longer maps to is a DELETE entry.
  • A deleted composition (the CDR answers 204): a DELETE entry for every resource its last delivery carried.
  • An erasure of a composition or of a whole EHR: a DELETE entry 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 of PUTs and DELETEs, which changes nothing at the endpoint.
  • A failure that may pass (no answer, 401, 408, 429, a 5xx, 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_attempts passes 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

On the FHIR side you supply three kinds of file, and they compose in this order:

  1. A model file per archetype, mapping it to an unprofiled R4 resource.
  2. An extension file where a profile or a template needs an adaptation.
  3. A context file as the entry point, naming the profile, the template, the archetypes, the extensions, and the start mapping.

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 codeMeaning
0No diagnostic is an error. Warnings are printed and accepted, as serve accepts them.
1At least one diagnostic is an error.
69The check could not run: a directory cannot be read, or the CDR answered a template fetch with neither the template nor a 404.
78The 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

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.

NeighbourProtocolNeeded by
An openEHR CDRopenEHR ITS-REST 1.1.0both sides
A FHIR terminology serverFHIR terminology operations, R4 or R4Bthe FHIR side
An OMOP CDM v5.4 databaseSQL, PostgreSQLthe OMOP side
The OHDSI vocabulary, loaded into that databaseSQLthe 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.csv with every concept_name empty. The loader leaves that file alone, so CPT4 concepts are absent until you produce their names under your own licence and load them into CONCEPT.
  • 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:

KeyDefaultMeaning
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_delegatesfalseUnder 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_contexttrue under ferrosmart, false otherwiseWhether 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_patienttrue under ferrosmart, false otherwiseWhether 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 restthe preset’sThe 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

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

KeyDefaultMeaning
listen127.0.0.1:8080The socket address to bind
base_pathemptyThe 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_requests256How 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_requests256How many requests past max_concurrent_requests may wait for a slot at once, first come first served; 0 keeps no queue
admission_wait100 millisecondsHow 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_headerforwardedThe header a trusted proxy names the client in: forwarded or x-forwarded-for
compressiontrueWhether 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]

KeyDefaultMeaning
formatautoauto, json or pretty; auto is pretty on a terminal and json otherwise
filterinfo,hyper=warn,tower=warn,h2=warnA 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
environmentunsetThe 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:

KeyDefaultMeaning
endpointnoneThe collector’s OTLP/gRPC endpoint; https:// speaks TLS, and the value is masked in config check
tracestrueWhether the spans are exported
metricstrueWhether the metrics are pushed
sample_ratio1.0The share of the traces that are sampled
tls.trust_roots_fileunsetA PEM bundle of trust roots beside the platform’s
tls.client_identity_fileunsetThe 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:

VariableSetsValues
FERROBRIDGE_LOG_FORMAT[telemetry] formatauto, json or pretty; any other value refuses the start with exit 78
RUST_LOG[telemetry] filterA 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:

EventFields
consoleformat (the rendering in effect), colour, filter
buildversion, commit, built_at, rustc, openehr_crates, fhir_types
lanelane (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.

KeyDefaultSecretMeaning
endpoint.urlnone, requiredThe openEHR REST API root, usually ending in /v1
endpoint.timeout"30s"How long one call may take, connection included
endpoint.connect_timeoutunsetHow long opening the connection may take; unset, only timeout bounds it
endpoint.tlsthe platform’s rootstrust_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
demographicfalseWhether the bridge reaches the CDR’s ITS-REST 1.1.0 Demographic API, which the release marks x-status: DEVELOPMENT
committer_issuerunsetThe 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]

KeyDefaultMeaning
max_attempts3How 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.

KeyDefaultSecretMeaning
usernoneThe user-id of RFC 7617 basic authentication, written inline; it is no secret, and it may hold no colon (RFC 7617 §2)
passwordnoneyesThe 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].

KeyDefaultSecretMeaning
token_endpointnoneThe token endpoint URL (RFC 6749 §3.2)
issuernoneThe 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_idnone, requiredThe client identifier (RFC 6749 §2.2)
client_authclient_secret_basicclient_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_secretnoneyesThe client secret, required under client_secret_basic and client_secret_post; use client_secret_file to read it from a file
private_key_filenoneyesThe PEM file of the private key a private_key_jwt assertion is signed with
kidnoneThe kid the assertion names; the RFC 7638 thumbprint of the key when unset
assertion_algby key typeThe algorithm the assertion is signed with, such as ES384
scopenoneThe scope parameter, space-delimited scope tokens (RFC 6749 §3.3); empty sends none
audiencenoneAn audience parameter, for an authorization server that reads one; no specification defines it for this grant
resourcenoneThe 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_versionnone, 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 (and keycloak): OAuth 2.0 Token Exchange (RFC 8693 §2.1). The caller’s token is the subject_token, an access token, and the CDR is named by resource, or by audience under keycloak. Keycloak requires the bridge’s client in the aud of 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, whose aud is the bridge’s application id, is the assertion, requested_token_use is on_behalf_of, and scope names the CDR, such as api://<cdr>/.default. Register the bridge and the CDR to issue v2.0 tokens.
KeyDefaultMeaning
issuernone, requiredThe issuer of the onward tokens; its metadata names the token endpoint unless token_endpoint is set
kindnone, requiredpersons for a same-organisation person, federation for a professional of another party, patients for a patient
presetrfc9068The preset the issuer’s profile starts from: rfc9068, entra, keycloak and the others an [auth.issuer.<name>] table takes
profile_filenoneA profile file in the form of a preset file, read over the preset
token_endpointnoneThe token endpoint itself
client_idthe oauth table’sThe bridge’s client id at this issuer
audiencesnone, requiredThe audiences an onward token may name; a token naming any other is refused
indicatorsnoneThe resource or audience values the exchange names the CDR by
scopenoneThe scope the request names; the on-behalf-of grant requires it
correlation_claimnoneThe claim a chained federation route carries from the caller’s token to the onward one
profilenoneThe table of profile keys over the preset and the profile file; max_onward_lifetime, a duration such as "1h", is required
cachetruefalse 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_assertionfalsetrue 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:

CallerReaches 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 userRefused 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.

KeyDefaultMeaning
endpoint.urlnone, requiredThe FHIR service base URL
wire_versionr4stu3, r4 or r4b, the release the server answers in
endpoint.timeout"30s"How long one call may take, connection included
endpoint.connect_timeoutunsetHow long opening the connection may take
endpoint.tlsthe platform’s rootstrust_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_fallbackfalseFor 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.

KeyDefaultSecretMeaning
urlnone, required when the section is presentyesThe PostgreSQL connection URL; it must name its sslmode
tls_canonenoThe PEM CA the database’s certificate is checked against
tls_ca_filenonenoA file holding that CA, read at boot
schemacdmnoThe schema the CDM tables live in, an unquoted lower-case identifier
bridge_schemaferrobridgenoThe schema the bridge keeps its natural-key side table, id sequences and watermarks in
person_policycreate_on_first_sightnoFor 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):

sslmodeWhat the clients do
disableConnect without TLS. A CA with disable is refused
requireConnect 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-caConnect over TLS; the certificate must chain to the CA, or to the webpki root set when no CA is set
verify-fullAs 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 holdscdm init
none of the 39 CDM v5.4 tables, or does not existCreates the schema when absent, then applies OHDSI’s tables, primary keys and indices in one transaction, and exits 0
every CDM v5.4 tableApplies nothing, prints that the schema is already initialised with the cdm_version its CDM_SOURCE rows record, and exits 0
some of the tablesApplies 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).

KeyDefaultSecretMeaning
keynone, required when the section is presentyesThe 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_filenoneyesA file holding the key, read at boot
date_shift_days0noThe 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.

KeyDefaultSecretMeaning
aqlnonenoThe 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_size100noThe fetch of each page of either query, and the number of watermarks each batch of the deletion check reads
deletionsremovenoWhat 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_checksfalsenoWith 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_tablesowned_personsnoWhich 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_idnone, requirednoThe *_type_concept_id the mappings write, the provenance of the records
observation_period_type_concept_idnone, requirednoThe period_type_concept_id of every observation period
vocabulary_aliasesLOINC to LOINC, SNOMED-CT to SNOMEDnoA 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.

KeyDefaultSecretMeaning
aqlnone, requirednoThe 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_idnone, requirednoThe visit_concept_id of every visit
visit_type_concept_idnone, requirednoThe 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.

KeyDefaultMeaning
directorynoneThe directory the mapping files are read from, recursively (.yml, .yaml)
templatesnoneThe directory holding the operational templates the two operations compile against, as OPT 1.4 XML (.opt)
omoclnoneThe 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 templates set, every .opt file 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 templates unset 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 at 503 meanwhile (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.

KeyDefaultMeaning
enabledfalseWhether the facade routes are mounted
base_urlhttp://127.0.0.1:8080/fhirThe absolute FHIR service base a client reaches, which Location is written under
ehr_policyexistingexisting writes only into an EHR the CDR already holds; create_on_first_write creates one for an unknown subject
identity_storeidentity.redbThe file the identity map is kept in, opened at boot and refused when it cannot be written
subject_namespaceferrobridgeThe namespace a literal subject reference is looked up in on the CDR, the PARTY_REF.namespace of EHR_STATUS.subject
subject_id_formreferenceHow 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_typePERSONThe 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_systemnoneThe Identifier.system whose identifier a mapping that offers the subject of the EHR (ehrStatusAddExternalREF) writes as EHR_STATUS.subject.external_ref
system_idFerroBRIDGEThe AUDIT_DETAILS.system_id every commit records
composition_languagenone, requiredThe COMPOSITION.language every commit carries, an ISO 639-1 code
composition_territorynone, requiredThe COMPOSITION.territory every commit carries, an ISO 3166-1 code
search_count20The page size of a search that names no _count
search_count_max100The largest page one search answers; a larger _count is answered with this many
binding_identifier_issuersnoneThe 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.

KeyDefaultMeaning
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_depth2How 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.

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

KeyDefaultMeaning
enabledfalseWhether Consent, Consent/$bppc and Consent/$appc are served
extensions_urlnone, requiredThe 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_accessnone, requiredThe 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.

KeyDefaultMeaning
enabledfalseWhether Basic is the SMART App State endpoint
storeapp-state.redbThe 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.

KeyDefaultMeaning
enabledfalseWhether Task is the launch endpoint
storelaunch-tasks.redbThe 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.

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.

KeyDefaultMeaning
enabledfalseWhether patient.identifier and subject.identifier are supported; off, both are unknown parameters
querythe 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 ASCThe AQL a value with no system runs, binding the value as $identifier
system_queryemptyThe 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.

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.

  • identifier matches a bare value whatever its system, so two parties that carry it are two entries, and [system]|[value] runs system_query.
  • name matches a name that starts with the value, ignoring case, as R4 string search asks. The extension’s LIKE is case-sensitive, so the value is bound three times as a prefix pattern (jans*): $name as typed, $name_lower in lower case and $name_capitalised with its first letter in upper case. Write the query to compare the name with each. A name in another case (JANSEN for jans) and an accent difference are not matched until the dialect can fold them. A value carrying * or ? is a 400.
  • _id matches the one party with that id, and a party of another template matches nothing.
  • _count is capped at search_count_max, and _count=0 answers the number of matches in total with 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.

KeyDefaultMeaning
enabledfalseWhether the types under types are searched; off, no party type offers search
types.<Type>.queryemptyThe AQL an identifier value with no system runs for <Type>, binding the value as $identifier; empty, the type takes no identifier
types.<Type>.system_queryemptyThe AQL a [system]|[value] value runs, binding $identifier and $system; empty refuses a value naming a system with 400 not-supported
types.<Type>.name_queryemptyThe 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.

KeyDefaultMeaning
enabledtrueWhether every guarded request needs a credential; false serves the facade and the operations open
realmnoneThe 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_issuernoneThe 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.operatorThe 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_filenoneA 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.

KeyDefaultMeaning
issuernone, requiredThe 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
kindthe preset’sWhose 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
presetrfc9068The 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_filenoneA 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_urlThe 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_filenoneA 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
modejwtjwt 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. A machines issuer 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, patients or federation, 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 a jwks_file names no authorization endpoint.
  • Otherwise it describes the one machines issuer for SMART Backend Services: the token endpoint, private_key_jwt, the client credentials grant and the system/ scopes of scopes_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.

KeyDefaultMeaning
introspection.endpointthe metadata’sThe 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_capacity10000The most answers held at once
introspection.clientnoneThe 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.bearernoneInstead 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.

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

KeyDefaultMeaning
enabledfalseWhether the MLLP listener runs
listen127.0.0.1:2575The socket address the listener binds
default_charsetASCIIThe HL7 table 0211 code a message with an empty MSH-18 is read in
unmapped_entriesskip_and_countskip_and_count or refuse, for an entry no program maps
ehr_policythe facade’sexisting 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_outcomesfalseWhether an AE or AR also logs the counted outcomes by kind at debug level
facility_identifier_issuernoneThe issuer a facility’s namespace id (HD.1) is written under, the issuer the CDR client’s declared facilities name it by
sendersnone, requiredThe 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_filenone, requiredThe 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.

KeyDefaultMeaning
enabledfalseWhether the consumers follow the source
sourceaqlaql, the poll of /query/aql that works against any CDR, or ferroehr, the reference CDR’s outbox feed
urlnoneferroehr only, required: the root of the CDR’s extensions, the path /admin/outbox lives under
watermarksnoneaql only, required: the redb file each reader’s watermark is kept in
startnowaql only: where a reader with no watermark starts, now, beginning or an RFC 3339 instant
dead_lettersnone, requiredThe redb file the consumers park a poisoned event in and count its poisoned passes in; keep it beside watermarks
max_attempts5How many passes an event may fail with a poisoned failure before it is parked, 1 to 1000
page_size100How 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.

KeyDefaultMeaning
enabledfalseWhether the lane publishes
readernone, requiredThe reader name the lane follows the change feed under: A-Z, a-z, 0-9, _, - and ., at most 128 characters
urlnone, requiredSecret. The AMQP 0.9.1 broker URL, amqp:// or amqps://
tlsfalseWhether an amqp:// URL is upgraded to amqps://
exchangenone, requiredThe 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.

KeyDefaultMeaning
enabledfalseWhether the lane delivers
readernone, requiredThe 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
cleartextfalseWhether an http base is accepted, for a TLS terminator beside the bridge
emittednone, requiredThe redb file the record of what was delivered for each composition is kept in, identifiers only
endpoint.urlnone, requiredThe 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_timeoutunsetHow long opening the connection may take; unset, only timeout bounds it
endpoint.retry3 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.tlsthe platform’s rootstrust_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.credentialsnoneuser 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.

KeyDefaultMeaning
enabledfalseWhether the load follows the change feed
readernone, requiredThe 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.

KeyDefaultMeaning
enabledfalseWhether the facade and the HL7 v2 face record their accesses
cleartextfalseWhether an http base is accepted, for a TLS terminator beside the bridge
endpoint.urlnone, requiredThe 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_timeoutunsetHow long opening the connection may take
endpoint.retry3 tries, "200ms" doubling to "1min"The tries of one delivery, and max_backoff the wait between two rounds of tries
endpoint.tlsthe platform’s rootstrust_roots_file, client_identity_file or client_identity, and min_version ("1.3")
endpoint.credentialsnoneuser with password or password_file, or [audit.endpoint.credentials.oauth], the same table [cdr.endpoint.credentials] takes
spool_dirnone, requiredThe directory records wait in until the repository takes them; created when absent, and refused when its group or other users can reach it
max_records10000The 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_idHow the bridge names itself as the recording system (AuditEvent.source.observer)
sitenoneThe 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.

KeyDefaultMeaning
enabledfalseWhether the operator routes are mounted, each requiring a token that carries the operator scope, [auth] product_scope
mapping_dirnoneThe 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.

KeyDefaultMeaning
enabledtrueWhether the two operations and their direct forms are served
device_referenceDevice/ferrobridge-<version>The Provenance agent.who a call that supplies no context.who gets
composerFHIRconnectThe composition composer an inbound run fills in when no mapping does
composition_languagenoneThe composition language, an ISO 639-1 code
composition_territorynoneThe 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.

KeyDefaultMeaning
enabledtrueWhether serve sends the report; FERROBRIDGE__USAGE_REPORT__ENABLED=false switches it off
endpointhttps://report.ferropulse.eu/v1/reportThe collector; an https URL, or http to a loopback host, with no credentials. Any other value refuses the start
state_dirnoneThe writable directory the instance id is kept in, created when absent; without one the report is off
deploymentunknownHow 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

VariableFile sibling
FERROBRIDGE__CDR__ENDPOINT__CREDENTIALS__PASSWORDFERROBRIDGE__CDR__ENDPOINT__CREDENTIALS__PASSWORD_FILE
FERROBRIDGE__CDR__ENDPOINT__CREDENTIALS__OAUTH__CLIENT_SECRETFERROBRIDGE__CDR__ENDPOINT__CREDENTIALS__OAUTH__CLIENT_SECRET_FILE
FERROBRIDGE__TERMINOLOGY__ENDPOINT__CREDENTIALS__PASSWORDFERROBRIDGE__TERMINOLOGY__ENDPOINT__CREDENTIALS__PASSWORD_FILE
FERROBRIDGE__TERMINOLOGY__ENDPOINT__CREDENTIALS__OAUTH__CLIENT_SECRETFERROBRIDGE__TERMINOLOGY__ENDPOINT__CREDENTIALS__OAUTH__CLIENT_SECRET_FILE
FERROBRIDGE__CDM__URLFERROBRIDGE__CDM__URL_FILE
FERROBRIDGE__EVENTS__URLFERROBRIDGE__EVENTS__URL_FILE
FERROBRIDGE__FHIR_OUTBOUND__ENDPOINT__CREDENTIALS__PASSWORDFERROBRIDGE__FHIR_OUTBOUND__ENDPOINT__CREDENTIALS__PASSWORD_FILE
FERROBRIDGE__FHIR_OUTBOUND__ENDPOINT__CREDENTIALS__OAUTH__CLIENT_SECRETFERROBRIDGE__FHIR_OUTBOUND__ENDPOINT__CREDENTIALS__OAUTH__CLIENT_SECRET_FILE
FERROBRIDGE__AUDIT__ENDPOINT__CREDENTIALS__PASSWORDFERROBRIDGE__AUDIT__ENDPOINT__CREDENTIALS__PASSWORD_FILE
FERROBRIDGE__AUDIT__ENDPOINT__CREDENTIALS__OAUTH__CLIENT_SECRETFERROBRIDGE__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 tracing filter;
  • [server.caller_rate];
  • a user beside the OAuth section of the same credentials section, an OAuth section with both an issuer and a token_endpoint or neither, an issuer that is not an https URL free of a query and a fragment, a scope that is not scope tokens, a resource with a fragment, and a private_key_jwt client without a readable private_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, a token_profile other than rfc9068 and jwt, 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, a scopes_supported value that is not one scope token, and a product_scope outside the two SMART extension forms;
  • a [basic_grants] table naming a user [[auth.basic.users]] does not list, or granting a system/ scope;
  • a [cdm] url that names no sslmode, or one that falls back to plaintext or is not a libpq mode, a [cdm] CA that holds no PEM certificate, and a PGSSLROOTCERT, PGSSLCERT or PGSSLKEY in the environment;
  • a secret set both inline and through its _file sibling;
  • a section that is present and names no value for a key it needs.
  • [operator] enabled while [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:

TokenRead asAdmitted 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 appthe 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 personalways, 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 actthe patient, the person’s own accessthe app is a delegate
A SMART Backend Services token (sub equals client_id, RFC 9068 §2.2)a machinealways, with the system/ scopes it carries
A person’s token through any other appnever: 401
A token with no scope, or a typ other than at+jwtnever: 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 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.

KeyDefaultMeaning
enabledfalseWhether the MLLP listener runs
listen127.0.0.1:2575The socket address the TLS listener binds, when a sender sends over TLS
default_charsetASCIIThe 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_entriesskip_and_countWhat an entry no program maps does: skip_and_count commits the others, refuse refuses the message
ehr_policythe facade’sexisting 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_outcomesfalseWhether an AE or AR also logs the counted outcomes of the run, by kind, at debug level
facility_identifier_issuernoneThe 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
sendersnone, requiredThe 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_filenone, required with a TLS senderThe PEM certificate chain the listener serves
tls.key_filenone, required with a TLS senderThe PEM private key of that chain
tls.client_ca_filenone, required with a TLS senderThe PEM authorities a sender’s client certificate must chain to
senders[].transporttlsHow 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_addressesnoneThe networks a plain sender connects from, in CIDR notation (10.20.0.21/32); required with transport = "plain" and refused otherwise
plain.bindnoneThe 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 its source_addresses. Each is a network in CIDR notation with no bits set past its prefix; a single analyser is a /32 (or a /128 for 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_limit and 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; listen then 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

  1. The listener reads one MLLP Release 1 frame. A frame that is malformed, larger than frame_limit, or not complete within frame_timeout is answered AR when a header can be read from it, and the connection closes.
  2. The message is decoded in the character set its MSH-18 names, split by position and grouped by its message structure. With senders set, a message whose MSH-4 names none of them is answered AR here and is never mapped.
  3. 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/$translate on the terminology server. Every row the run cannot carry is a counted outcome, and every correction the run used is counted once as supplemented.
  4. Every entry whose resource type is listed under profiles and that claims no profile gets that profile in meta.profile, and every entry with a subject or patient reference and none set references the message’s one Patient. The guide leaves the relationships between the resources of one message to the implementer, and the facade selects a program by meta.profile, so these two steps are what let a message reach a mapping.
  5. 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 Patient entry’s first identifier. Each composition’s FEEDER_AUDIT names where it came from: the sending application (MSH-3) as originating_system_audit.system_id and the bridge as feeder_system_audit.system_id; the placer and filler numbers (ORC-2, ORC-3, OBR-2, OBR-3, typed PLAC and FILL from HL7 table 0203 and issued by their namespace) as originating_system_item_ids; and MSH-10, typed by the message type (ORU^R01), as the first feeder_system_item_ids entry. 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 no EVENT_CONTEXT names it as originating_system_audit.location instead. With [[hl7v2.senders]] set, a facility no sender names is answered AE with an ERR at 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), or facility_identifier_issuer when it names none. performing organisation (OBX-23) is originating_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 or XCN, so a CDR that checks for the professional finds one. A message carrying a result (an OBX) that names no clinician is answered AE. 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’s device_identifier_issuer, and the device is the originating system. The device’s identifier is a composer identifier issued by device_identifier_issuer.
  6. The acknowledgment is sent once the ingest settled, so AA means 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.v2mappings 1.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 by ConceptMap/$translate on 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. Its description names 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 under https://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 supplemented naming 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:

MapKindWhat it changes, and why
table-hl70202-equipment-to-contact-point-systemaddedThe 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-useaddedCP 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-hl70202addedThe 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:

MapKindWhat it changes, and why
datatype-cwe-to-codeableconceptoverrideRuns 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-codeableconceptoverrideThe same row for CE, the type HL7 v2.3 and earlier give most coded fields (#332)
datatype-cf-to-codeableconceptoverrideNames 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-quantityoverrideNames 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-sourceoverrideDrops 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-destinationoverrideWrites 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-contactpointoverrideWrites 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-locationoverrideLinks 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-messageheaderoverrideWith 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-diagnosticreportoverrideWrites ORC-2 into basedOn.identifier (R4 Reference.identifier), where the guide writes basedOn(ServiceRequest) with no map to fill it (#336)
segment-sch-to-appointmentoverrideWrites SCH-26 and SCH-27 into basedOn[1].identifier and basedOn[2].identifier for the same reason (#336)
segment-pid-to-appointmentoverrideWrites 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-bundleoverrideNames 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-bundleaddedADT_A03 (A03 discharge), from the rows of the guide’s ADT_A01 map at the same paths (#256)
message-bar-p01-to-bundleaddedBAR_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-bundleaddedORL_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-bundleaddedOUL_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.system as 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 PL to Location map’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 the k-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 sibling k when it holds a value. When it holds none, the reference climbs to the sibling that k’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 as sibling-unresolved and 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 as finest-sibling naming 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 as sibling-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.

OutcomeCodeERR
The ingest committed the messageAAnone
The same message was committed before (same MSH-10 and message type)AAnone, and nothing is committed again
No header can be read at allnonethe connection closes unanswered
Delimiters that do not declare themselves, a byte outside the declared character set, a version outside 2.xAR207 or 203
A message structure the definitions or the guide do not carryAR200
A required field or segment missing, an undecoded escapeAE101, 100 or 102, located
MSH-4 names a sending facility senders does not listAR207 at MSH^1^4
The connection’s client certificate does not carry the certificate_subject of the sender MSH-4 namesAR207 at MSH^1^4
On the plain listener, MSH-4 names no plain sender whose source_addresses hold the peer address; the connection then closesAR207 at MSH^1^4
MSH-10 emptyAE101 at MSH-10
A result whose message names no clinician, from a sender that is no deviceAE101 at OBX^1^16
A health care facility no listed sender namesAE207 at its field
A condition of the guide that stops the mapper, a Bundle with no MessageHeaderAE101 or 207
No program maps any entry, an entry that does not map, a second subject, a conflict with the identity mapAE207, one per refused entry, naming its fullUrl
The terminology server refused or did not answer a translationAR207
The CDR failed, was unreachable, timed out, or refused the bridge’s credentials (5xx, 401, 403, 407, 408, 429)AR207

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

SurfaceRecordWhere it lives
The FHIR facadeOne 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 $toopenehrThe Audit Record Repository [audit] base_url names, as an IHE BALP AuditEvent
The HL7 v2 faceOne system import record per message it commits (ITI-20 “PHI-import”, the DICOM “Import” event), naming the sending facility and no personThe same repository
The OMOP ETL (etl run, etl fhir, dq check) and the incremental loadNone of the bridge’s own: these read in batch under the bridge’s CDR credential, with no person behind the readThe CDR’s own access log, which names the bridge’s ETL client
The operator APINone of the bridge’s own: it serves mapping files and no health dataThe 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 each ehr_id the 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-Id the 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.

RequestAnswer
no credential, or one that does not hold401 with WWW-Authenticate: Bearer (error="invalid_token" for a bad token)
two credentials, or an Authorization value that is no credential400 with WWW-Authenticate: Bearer error="invalid_request"
a valid token without the operator scope403 with WWW-Authenticate: Bearer error="insufficient_scope"
the issuer’s keys cannot be read503

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 with context, file, template, profile, profile_version, resource_type, models (each with name, file and the extensions applied, in the order they applied) and search, the search declaration the facade answers the context’s searches with;
  • templates: each template the contexts compiled against, with source (directory and its file, or cdr);
  • omocl: the OMOCL files and whether they validate; serve loads and validates them and does not run them;
  • counts and diagnostics: what ferrobridge mapping check reports 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 its name (the readiness indicator it reports as), its source (aql or ferroehr), its reader, its positions (one per stream: clinical or party with the last acknowledged seq in at, or committed with the watermark instant in at and versions_at_instant), its state (starting, following or stalled), the messages it published since the bridge started, the instant it last_published, and its last_error, the at and cause of the last failed pass, kept after it recovers;
  • topology: the exchange, the routing_key grammar (<kind>.<change_type>.<template_id>) and the bound queues, each a name and a binding.

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 the messages counts run;
  • maps: every map the face runs, by id, each with its id, canonical url and title, its kind (message, segment, datatype, table or other, from the first word of the id), its origin (guide, supplement for a FerroBRIDGE correction that adds a map, or override for one that replaces a map of the guide), its ends, what it maps from and to (each group’s source and target code system for a table map, else the source and target the id names before and after -to-), the rows the face reads from it, and the messages whose 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 --config or FERROBRIDGE_CONFIG named it, or null when 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 dotted key (cdr.endpoint.credentials.oauth.client_id), its value and its source: file, environment (a FERROBRIDGE__ variable, FERROBRIDGE_LOG_FORMAT or RUST_LOG, which win over the file), set (a --set argument, which wins over both) or default.

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.

FieldMeaning
pathThe file’s path under its root, such as fhirconnect/condition.context.yml
languagefhirconnect or omocl
kindmodel, extension, context or search for FHIRconnect, mapping for OMOCL; null for a file the running load did not read
sha256The lowercase hexadecimal SHA-256 of the file’s bytes
ownerprovisioned for a file under a configured mapping directory, console for one the console saved under [operator] mapping_dir
read_onlytrue for a provisioned file, false for a console file
diagnosticsThe 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] directory and [mappings] omocl are provisioned and never written. A console save goes to mapping_dir/fhirconnect/<path> or mapping_dir/omocl/<path>, and a save whose path names a provisioned file answers 409. 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. serve checks OMOCL files and does not run them. etl run reads mapping_dir/omocl/ beside [mappings] omocl when 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.yml file under fhirconnect/ is checked against the context it names, with every other declaration of the set, and swapped in with the facade’s programs, so the CapabilityStatement and search answer with it after the save. A declaration that names no compiled context, or that the facade’s search checks refuse, answers 422 with an fb-search-declaration diagnostic and changes nothing.
  • A file that is not .yml or .yaml answers 400.

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:

HeaderMeaning
If-MatchThe 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-ReasonWhy the file changes: one line of at most 200 characters
AnswerWhen
200The 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
400No reason, or a path the console cannot write
409A provisioned file holds the path, or no mapping_dir is configured
412The file changed since the ETag given, or If-None-Match: * names an existing file
422The set does not compile with the draft; the body names every diagnostic. Neither the file nor the running set changes
428Neither If-Match nor If-None-Match: *
503The 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:

HeaderMeaning
If-MatchThe id of the running revision, in quotes, such as "3"
Ferrobridge-ReasonWhy: one line of at most 200 characters
AnswerWhen
200The 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
400No reason
404No revision has the id
409No mapping_dir is configured
412The running revision is not the one If-Match names
422The set does not compile with the revision’s files; the body names every diagnostic, and nothing changes
428No If-Match
503The 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.

AnswerWhen
201The set compiles with the archive’s files. The body is the check’s report, Location the new revision and the ETag its id
400No reason, or a body that is no archive the bridge reads (bad-archive)
409No mapping_dir is configured
422The set does not compile with the archive’s files; the body names every diagnostic, and nothing is recorded
503The 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"
}
  • type names the problem type. Each FerroBRIDGE type is a link to its section on this page. about:blank means the status code says all there is to say, and title is then the status phrase, such as Payload Too Large.
  • title is the type’s summary, the same for every occurrence.
  • status is the HTTP status of the answer.
  • detail says 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 a urn: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

TypeStatusWhen
invalid-request400The Authorization header carries no single credential.
reason-required400A save names no reason.
bad-path400The path names no mapping file the console can write.
bad-archive400The body is no mapping-set archive the bridge reads.
unauthenticated401The request carries no valid access token.
not-permitted403The token does not carry the operator scope.
not-found404The mapping file, the revision or the configuration does not exist.
provisioned409A provisioned file holds the path.
not-configured409No [operator] mapping_dir is configured.
precondition-failed412What the request replaces changed since the ETag it names.
precondition-required428The write sends no precondition.
no-example422The template has no example composition.
unreadable500A mapping directory could not be read.
unwritable500The mapping directory could not be written.
dead-letters-unavailable500The dead-letter store could not be read or written.
reload-unavailable503The mapping set could not be reloaded.
run-history-unavailable503The run history could not be read.
authorization-unavailable503The 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:

KeyDefaultMeaning
store"memory"memory keeps sessions in the console’s process; sealed keeps each in one encrypted cookie
key, key_filenoneThe sealing key of a sealed store: base64 of at least 64 bytes, the same on every replica; refused beside memory
secure_cookietrueCookies 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_ins1000Pending 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_sessions10000Sessions 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/readiness or, 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/diagnostics and /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/new for a new file): see below.
  • Playground (/playground, /playground/toopenehr, /playground/validate): runs $tofhir, $toopenehr and $validate as the operator, and keeps nothing. On the $tofhir tab, 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 its CapabilityStatement serves, 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, from GET /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, from GET /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, from GET /operator/events: each consumer’s source and reader, its position in each stream (an outbox seq of 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 posts POST /operator/events/{consumer}/parked/{id}/replay and 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:

  1. Check compiles the whole set with your draft in place of the file and lists every diagnostic. Nothing is written.
  2. 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 412 and 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:

WhatUp to 0.0.10From 0.0.11
Imageghcr.io/ferrohealth/ferrobridge-viewerghcr.io/ferrohealth/ferrobridge-console
Binaryferrobridge-viewerferrobridge-console
Configuration file variableFERROBRIDGE_VIEWER_CONFIGFERROBRIDGE_CONSOLE_CONFIG
Environment prefixFERROBRIDGE_VIEWER__FERROBRIDGE_CONSOLE__
Compose profile and serviceviewerconsole
Compose secret filesecrets/viewer_oidc_client_secretsecrets/console_oidc_client_secret
Cookiesferrobridge_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.10From 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

FactValue
Registry and repositoryghcr.io/ferrohealth/ferrobridge
Tagthe product version, for example 0.0.1; each release publishes its own
Basegcr.io/distroless/static-debian13:nonroot, pinned by index digest
Platformslinux/amd64 and linux/arm64
Useruid 65532, gid 65532, written numerically
Entrypoint/usr/local/bin/ferrobridge, exec form, with serve as the default command
Port8080/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 user 65532, so the volume must be writable by that user (in Kubernetes, securityContext.fsGroup: 65532 on 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 an emptyDir or a tmpfs. 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 StatefulSet of one with a ReadWriteOnce claim), and use the Recreate strategy for a Deployment, 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/liveness answers 200 while the process is up. Restart the container when it stops answering.
  • GET /health/readiness runs one bounded check per configured upstream and answers 200 when 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 a 401 or 403 from either upstream counts as down, because every real call would be refused the same way. With a [cdm] section, a cdm check opens one connection to the CDM database over the configured TLS and asks SELECT 1; a refused connection or a failed query counts as down. Take the instance out of the load balancer when it does not answer 200.

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:

FactValue
Registry and repositoryghcr.io/ferrohealth/ferrobridge-console
Tagthe product version, the same as the bridge image of that release
Basethe bridge image’s base, at the same index digest
Platformslinux/amd64 and linux/arm64
Useruid 65532, gid 65532, written numerically
Entrypoint/usr/local/bin/ferrobridge-console, exec form, with serve as the default command
Port3000/tcp
Health checkHEALTHCHECK 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

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
OptionMeaning
--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

LaneProbeonoff
healthGET /health/liveness, GET /health/readiness, GET /health/infoeach answers 200each answers 404
facadeGET /fhir/metadata200 with a CapabilityStatement404: a disabled facade mounts no route
operationsPOST /fhir/$tofhir with an empty Parameters400 or 422 with an OperationOutcome: the engine refused the empty request, so the lane is serving503 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

FindingWhen
onEvery probe of the lane got the answer of a served lane
offEvery probe of the lane got the answer of a lane that is not configured
failingA 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)
uncoveredA 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

StatusMeaning
0Every lane observed, none failing, every --expect met
1A lane is failing, or a lane is not in the state --expect names
2The arguments are not valid
3A 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

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 id and the same meta.versionId: the create is a replay. The facade commits nothing and answers 200 OK with the Location, the ETag and 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 id and another meta.versionId: a changed meta.versionId means the sender changed the resource, so the create commits a later version of the composition the first delivery produced and answers 200 OK. That is the update a PUT performs, following the version the CDR holds now.
  • The same id and no meta.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 composition uid and every time the engine filled from its clock. The same content is a replay, answered as above. Other content is the later version.
  • An id the map binds to more than one composition: the facade cannot tell which one the create revises, so it answers 409 Conflict with a conflict issue and commits nothing. Only a store written before 0.0.4 can hold such an id. 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 that id in 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:

  1. When HD.3 (the universal ID type) is ISO, UUID, DNS or URI and HD.2 (the universal ID) is valued, the endpoint is the form the guide’s HD endpoint map assigns: urn:oid:, urn:uuid:, urn:dns: or urn:uri: followed by HD.2.
  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 3986 pchar set is percent-encoded, and so is : inside a component, so North Lab App becomes urn: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

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 each serve start, 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:

FieldSent inWhat it is
schemabothAlways 2, the version of the report format.
eventbothstart or daily.
first_startstarttrue when this start created the instance id, which marks a new installation; false on every later start.
productbothAlways ferrobridge.
instance_idbothA 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.
versionbothThe server version, for example 0.0.7.
git_shabothThe commit the binary was built from, 7 to 40 hex digits. A build outside a git checkout sends 0000000.
licencebothThe licence grant type, non-commercial (what the Business Source License grants everyone).
deploymentbothHow the server was deployed: helm, compose, binary or unknown, from [usage_report] deployment, which the compose file sets to compose.
uptime_sbothSeconds since this process started.
cpu_bucketbothThe CPUs available to the process, as a range: 1-2, 3-4, 5-8, 9-16 or 17+.
memory_bucketbothThe 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.
statusbothThe state facts below.
metricsdailyThe performance aggregates below.

The status object. A member for a lane or an upstream the deployment does not configure is left out.

MemberWhat it is
lanesThe lanes the configuration switches on, sorted: etl, facade, hl7v2, operations, terminology. etl means an [etl] section is present; serve never runs it.
authWhether the FHIR routes check a bearer token ([auth] enabled).
facade_mappingsThe 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_mappingsThe programs the FHIRconnect operations compiled, as the same ranges.
cdr_okWhether the openEHR CDR answered its readiness check when the report was built.
terminology_okWhether the terminology server answered its readiness check.
cdm_okWhether the OMOP CDM database answered its readiness check.
identity_store_okWhether the facade’s identity store answered its readiness check.
hl7v2_listener_okWhether 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-100k or 100k+. Each range includes its lower bound and excludes its upper one, so 1-100 means 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:

    GroupRoutesDirection
    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}/$validate
    facade_metadataGET /fhir/metadata
    operations_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 acknowledgmentHL7 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, so hl7v2_message always 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_ar also counts the AR answered to a frame the listener could not read, which is no message and is not timed in hl7v2_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 $tofhir or $toopenehr call. A refusal the engine returns because a terminology server did not translate a conceptmap code 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] endpoint moves 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 the ferrobridge-state volume: docker run --rm -v <project>_ferrobridge-state:/s busybox cat /s/state/instance-id prints 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 wantRead
the version a binary reportsferrobridge --version
the version a release shipsthe vX.Y.Z release on GitHub, and its changelog section
the version the source tree declaresthe 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 wantRead
the version a crate publishesthe crate’s page on crates.io, or cargo add <crate>
the version the source tree declaresthat member’s crates/*/Cargo.toml version
the line fhir-types is onthe 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

ReleaseDateWhat it shipped
v0.0.12026-09-05The release lane, the brand assets and the working discipline.
v0.0.22026-09-13The 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.32026-09-25The FHIR round trip: the fhirconnect crate, the $tofhir and $toopenehr operations, the FHIR R4 facade and its identity store.
v0.0.42026-09-26The 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.52026-10-01The repository’s move to the FerroHEALTH organization, with the image at ghcr.io/ferrohealth/ferrobridge.
v0.0.62026-10-17FHIR 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.72026-10-17Facade hardening: search answers the entry that matched, every error answers an OperationOutcome, and the identity store gains its repair paths.
v0.0.82026-10-18The 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.92026-10-19The 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.102026-10-19openEHR 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.112026-10-24The 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.122026-10-25FHIRconnect 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.132026-10-25Security 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.142026-10-29The 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.152026-11-02The 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.162026-11-03Console 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.172026-11-04The 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.182026-11-04The 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.192026-11-04Family 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.202026-11-05Toward 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.212026-11-05Correctness 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.222026-11-06Callers 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.232026-11-10The 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.242026-11-11The 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.262026-11-16The 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.272026-11-17Browser 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.282026-11-22SMART 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.252026-11-16The 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

  1. Read the open issues. Each one opens with a plain summary, then an acceptance-criteria checklist, and sometimes a task list.
  2. Pick one that no open issue blocks. Blocked issues carry a dependency edge, so you can see the blocker before you start.
  3. 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.
  4. Work on a branch named <type>/<slug>, with the type from the conventional commit set: feat, fix, chore, docs, refactor, perf, test, ci, build, or release.
  5. 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 into CHANGELOG.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

CheckCommandWhat it protects
Workflow securityzizmor --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 correctnessactionlintexpressions that cannot evaluate, a needs: naming no job, unknown runner labels
Shellshellcheck --severity=style over every tracked shell programshellcheck’s lowest floor, so every finding gates
Containershadolint over every tracked Dockerfile (docker/Dockerfile, docker/console/Dockerfile)container-recipe defects
Comment stylescripts/checks/comment-style.sh --allline comments only, // TODO(#NNNN): naming its issue, // NOTE: as a citation plus one sentence
Version driftscripts/checks/versions.shevery file that repeats a pin agrees with docs/VERSIONS.md, and no first-party file claims a licence other than BUSL-1.1
Favicon syncscripts/checks/favicon-sync.shthe book theme favicons stay byte-identical to the brand mark they are copies of
Usage report off in testsscripts/checks/usage-report-off.shevery 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 bookmdbook build website/booka 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.

CorpusA case passes when
FHIRconnect mapping librarythe 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 librarythe 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 lawsPutGet and GetPut both run on the chain and each declares exactly the set its reviewed snapshot pins
FHIRconnect REST APIthe 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 corporathe 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 R6the 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 functionsfor 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 Validatorthe 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 facadefor 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, labelled v2.5.1 and 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: false on every checkout that does not push with git.
  • No ${{ }} interpolation inside a run: block; context travels through env:.

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:

  1. 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 synthetic ferrobridge.diagnoses.v1 and ferrobridge.diagnose.v1 templates into each CDR;
  2. starts each arm’s ferrobridge in its own tree under that tree’s configuration contract: its perf/ferrobridge.toml and the FERROBRIDGE__ overrides of its perf/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;
  3. 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;
  4. runs ferrohealth-perf ab with perf/plan.toml, counting the transactions of each arm’s CDR database;
  5. plants a poller of the head’s CDR database that never waits, and runs the idle phase of perf/busy-loop.toml beside 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

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:

  1. the version in that member’s crates/*/Cargo.toml,
  2. any internal requirement naming it in the root Cargo.toml [workspace.dependencies] table,
  3. Cargo.lock, refreshed with cargo update -w and 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

WhereWhat it does
scripts/checks/crate-version-guard.shcompares 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.shruns the pinned cargo-semver-checks over the named crates against a git revision or crates.io
the crate-version-guard CI jobruns 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 jobruns semver.sh over every crate the release publishes, against its newest release on crates.io
.claude/hooks/crate_version_bump_guard.shruns 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

  1. The milestone is empty. gh issue list --milestone vX.Y.Z --state open answers nothing, or the cut is called and the stragglers move to the next milestone.
  2. The product version moves in every file that declares it. Today that is CITATION.cff, the product row of docs/VERSIONS.md, the root Cargo.toml [workspace.package] version, and the image tag default in compose.yaml. scripts/checks/versions.sh fails on any file left behind. This is the product line only; the library crates keep their own versions (crate versions).
  3. The changelog names the release. scripts/release/changelog.sh --assemble X.Y.Z YYYY-MM-DD writes the version’s section from the fragments under changelog.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.
  4. 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 of CHANGELOG.md as 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.yml once per target, on a runner of that target’s own architecture, with no cache and with cargo auditable. Each call produces the tarball, its checksum, two SBOMs, three Sigstore bundles and the provenance envelope.
  • build-image calls the reusable release-image.yml once the musl binaries exist, verifies them against the build lane’s signer identity, and pushes ghcr.io/ferrohealth/ferrobridge for linux/amd64 and linux/arm64.
  • build-console calls the reusable release-console.yml once the draft exists. It builds the operator console’s two musl binaries with cargo auditable, attaches each with its checksum and provenance (the binaries with an SBOM too), verifies them against its own signer identity, and pushes ghcr.io/ferrohealth/ferrobridge-console for linux/amd64 and linux/arm64 with 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 the crates-io environment, 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]: Basic at the base becomes the App State endpoint with create, update and delete under If-Match and the search by code and subject, kept in a store of its own; the discovery document lists smart-app-state and the CapabilityStatement instantiates smart-app-state-server. Granular ?code= scopes on Basic are 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 by patient, status and code on Task, every Task checked against task-ehr-launch or task-standalone-launch and a Task of neither refused, kept in a store of its own; the CapabilityStatement declares both profiles (#1969).

Changed

  • The workspace moves to the openehr-* crates 0.3.0, and openehr-mapping-core takes the ARCHETYPE_SLOT admission decision from openehr-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. OpenSlot no longer implements PartialEq and Eq. The published crates whose public API names openEHR types move to their next minor: openehr-mapping-core 0.5.0, fhirconnect 0.6.0 and eehrxf 0.18.0 take openehr-base, openehr-rm, openehr-its, openehr-sdt, openehr-am and openehr-term from the 0.3 line, and ferrobridge-hl7v2 0.20.0 follows fhirconnect 0.6. A dependant moves its own openehr-* requirements to "0.3" with them (#1943).
  • The consent lane follows the openehr-rm 0.3.0 access draft: every access term is coded in the terminology the draft gives it, openehr_access for the draft’s own codes (formerly ferroehr-operations), HL7 consent-provision-type for a directive’s effect and HL7 extra-security-role-type datasubject for the subject caller kind. A FHIR Consent export and import carry an actor scope’s organisation_type in the new https://ferrobridge.eu/fhir/StructureDefinition/organisation-type extension, and an APPC export refuses it naming applies_to.organisation_type, since APPC defines no subject attribute for an organisation type (#1962).
  • jsonschema 0.61.0. The FHIRconnect and OMOCL mapping schemas are checked with jsonschema 0.61.0. jsonschema is part of the public API of openehr-mapping-core (schema::compile returns a jsonschema::Validator) and fhirconnect (Schemas::validator), so both move to a new compatibility line, and so do eehrxf and ferrobridge-hl7v2, which expose them: a consumer requires openehr-mapping-core = "0.5", fhirconnect = "0.6", eehrxf = "0.18" and ferrobridge-hl7v2 = "0.20", and takes the jsonschema 0.61 Validator (#1965).
  • timingToDaily carries every time of day. The CKM daily timing cluster repeats its time of day (at0004, 0..*) as R4 Timing.repeat.timeOfDay does, 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 through MappingCodeRegistry::repeating, the compiler accepts such a port whose node repeats directly below the mapping’s with.openehr (Port::repeats), and Ports holds 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 new MappingCodeError::RepeatedPort, a breaking change to that enum, so a consumer requires fhirconnect = "0.7", eehrxf = "0.19" and ferrobridge-hl7v2 = "0.21" (#1972).
  • The workspace moves to ferrohealth-smart 0.30.0, ferrohealth-server 0.11.0 and ferrohealth-session 0.25.0. A request past server.max_concurrent_requests now waits for a slot, at most server.admission_wait (100 milliseconds by default) in a first-come queue of server.max_waiting_requests (256 by default; 0 keeps no queue), before it is refused 503 with Retry-After; the health routes are never refused or queued. ferrobridge-term carries smart types in its public API, so it moves to 0.14.0, and the crates that require it follow: ferrobridge-validator 0.14.0, ferrobridge-hl7v2 0.22.0 and eehrxf 0.20.0. A dependant moves ferrohealth-smart to 0.30 with them (#1979).
  • Behind FerroSMART, a patient’s own token is now the person’s own access. Under ferrohealth-smart 0.31 the ferrosmart preset reads such a token as the patient: fhirUser is Patient/<x>, the patient claim is x, and the scopes are patient/ grants alone. The facade’s access record carries the binding self for it. The onward lane exchanges it at the patients issuer when one is declared, and otherwise at the persons issuer. Before, the lane refused a patient at a persons issuer. A professional who holds patient/ scopes is unchanged. To keep the earlier reading, set fhir_user_patient = false on the FerroSMART [[auth.issuer]] table (#1986).
  • The workspace moves to ferrohealth-smart 0.31.0 and ferrohealth-session 0.26.0. ferrobridge-term carries smart types in its public API, so it moves to 0.15.0, and the crates that require it follow: ferrobridge-validator 0.15.0, ferrobridge-hl7v2 0.23.0 and eehrxf 0.21.0. A dependant moves ferrohealth-smart to 0.31 with them; one that builds smart’s Profile, ProfileKeys or IssuerEntry with a struct literal adds the fhir_user_patient field (#1987).
  • Breaking: the bridge moves to ferrohealth-smart 0.32.0 and ferrohealth-session 0.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, and described_issuer names a table by its name. An issuer that sets no audience takes [facade] base_url, and kind defaults to the preset’s (persons under ferrosmart, keycloak, entra and okta). The preset is preset = "…" in place of profile = "…", every profile key (first_party_clients, delegates, app_only, token_types and the rest) moves into the issuer’s [auth.issuer.<name>.profile] table, and profile_file reads a profile file you supply. scopeless_subjects moves onto its issuer table as a list of sub values. The onward tables follow: [cdr.endpoint.credentials.onward] and [[cdr.onward]] take preset and a profile table in place of profile and keys. Upgrade: give each [[auth.issuer]] table a name, rename profile to preset, move its profile keys under .profile, drop an audience equal to the facade’s base, and set described_issuer to the name (#1991).
  • Breaking: the facade reads a token’s patient claim as the launch context only from an issuer whose profile sets patient_context, the per-issuer rule FerroEHR reads too. The ferrosmart preset sets it; under any other preset a patient claim is ignored, so a patient/ scope reaches no patient, until the issuer’s profile table sets patient_context = true. Behind FerroSMART no self-delegate is needed for its patient picker (issuer_client_is_person), and audience_delegates = true admits every app registered at FerroSMART for the facade without a delegates entry (#1991).
  • Breaking: every 401 and 403 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 or scope-not-granted. The OperationOutcome and the problem body are unchanged and still name no claim and no scope (#1991).
  • ferrobridge-term carries smart types in its public API, so it moves to 0.16.0, and the crates that require it follow: ferrobridge-validator 0.16.0, ferrobridge-hl7v2 0.24.0 and eehrxf 0.22.0. A dependant moves ferrohealth-smart to 0.32 with them (#1991).
  • The CDM database runs on PostgreSQL 19: cdm init, vocab load, etl run and every other CDM job refuse an older server when they connect, naming the server_version_num found and the 190000 needed. The quickstart’s cdm profile runs postgres:19.0 with 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: a cdm-data volume holding an older cluster is removed and created again (#1993).
  • The bridge moves to ferrohealth-smart 0.33, ferrohealth-session 0.28 and ferrohealth-server 0.12. ferrobridge-term carries smart types in its public API, so it moves to 0.17.0, and the crates that require it follow: ferrobridge-validator 0.17.0, ferrobridge-hl7v2 0.25.0 and eehrxf 0.23.0; a dependant moves ferrohealth-smart to 0.33 with them. The server takes [server] request_decompression, off by default, which decodes a request body sent in gzip or Brotli under body_limit (FerroHEALTH/FerroSYS#408) (#1995).
  • The HL7 v2 face asks every ConceptMap/$translate of a message in one FHIR batch Bundle, where it sent one request per table value and target system; each value still takes the first target system that answers. ferrobridge-term adds Client::translate_all, one call for one translation and one batch for several (#1997).

Fixed

  • A FHIRconnect mapping of a FHIR time onto a single EVENT that the template folds into its OBSERVATION now compiles and runs, as EVENT.adoc pairs a dateTime with a POINT_EVENT and a Period with an INTERVAL_EVENT. The engine writes and reads the event through the time leaf the Web Template keeps at the event’s path, with the class, width and function in the object that holds it. The library’s medication_statement.v0.yml no longer stops at line 44 against KDS_Medikationseintrag. openehr-mapping-core gains WebTemplateIndex::read_holder and amend_holder, and fhirconnect gains EventTime::in_folded_event and is_folded (#1924).
  • A facade write no longer fails with 500 against a CDR that writes the committer itself. A single write states the change type and system_id in openehr-audit-details and 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’s iss and sub or 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 url 2.5.9 in place of 2.5.8 (RUSTSEC-2026-0592, GHSA-hrj5-67jp-wqp9): every earlier url lets Url::origin() recurse without a bound on a nested blob: 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/metadata and the SMART discovery document answer any origin with Access-Control-Allow-Origin: *, and the REST routes under /fhir answer the origins the new [facade.cors] allowed_origins lists, by name with Vary: Origin, preflight included, and never with a wildcard or Access-Control-Allow-Credentials. A refusal of the guard, such as the 401 of 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]] takes profile = "ferrosmart" from ferrohealth-smart 0.29.1, which reads FerroSMART’s RFC 9068 tokens with typ at+jwt alone and scope required, admits a person through a SMART app the table lists in delegates and 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 to ferrohealth-smart 0.29.1 and ferrohealth-session 0.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 its adl2 route: 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’s archetype_node_id (BASE 1.2.0, Architecture Overview, Paths and Locators). The load no longer refuses such a template, and openehr-mapping-core drops PathError::IdCodedTemplate and the id-coded-template diagnostic code; an at-coded path over an id-coded template is refused as a path the template does not have (#1951).
  • A DV_IDENTIFIER whose type is a plain string, such as the login of a SCIM-provisioned professional, reads as Identifier.type.coding[0].code with no system instead of failing the read with 500, as FHIRconnect’s String.adoc §Coding maps an openEHR string without :: (the RM types DV_IDENTIFIER.type as a free String). A coding with a code and no system now writes the bare code into DV_IDENTIFIER.type instead of being dropped; one with both still writes system::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-smart 0.28, whose describe picks the issuer of the discovery document and whose client assertion takes its aud and typ from the grant’s security profile. ferrobridge-term 0.12.0 takes smart’s EndpointSection and OutboundClient from the 0.28 line in Client::from_endpoint, so a dependant on smart 0.28 passes its own types. ferrobridge-validator 0.12.0, ferrobridge-hl7v2 0.17.0 and eehrxf 0.15.0 follow ferrobridge-term 0.12. The operator console takes ferrohealth-session 0.23.0, and the server takes ihe-atna and ehds-logging 0.22.0, the releases on the same smart line, so one smart links (#1922).

Fixed

  • The SMART discovery document and the facade’s CapabilityStatement name the issuer ferrohealth-smart’s shared rule describes, never the first [[auth.issuer]] table. [auth] described_issuer names it; without the key the bridge describes the one issuer of kind persons, patients or federation whose metadata it holds, and a bridge that trusts only machines issuers describes its one machines issuer for SMART Backend Services alone: the token endpoint, the client credentials grant and private_key_jwt, with no authorization endpoint. Breaking: a bridge that trusts several such issuers and sets no described_issuer refuses the start, naming them and the key, and so does a described_issuer that names an unknown issuer, an issuer without metadata, or a machines issuer 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" with transport = "plain" and its source_addresses (CIDR networks) is served on its own [hl7v2.plain] bind listener: 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 answered AR and 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 has transport = "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/info shows the plain listener and each sender’s transport, and the operator API’s running configuration names each sender’s transport and source_addresses. TLS stays the default, and nothing changes for an existing configuration. ferrobridge-hl7v2 0.10.1 adds Handler::admits, which closes a peer before its first byte, and Connection::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 under fhirVersion=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} and GET [base]/Consent?patient= are served and listed in the CapabilityStatement, beside the type-level operations Consent/$bppc and Consent/$appc. An import reads the CDR’s EHR_ACCESS through its GET /ehr/{ehr_id}/ehr_access extension and commits the directives as the next version in a CONTRIBUTION; the catalogue of the controller’s ACCESS_POLICY is read under extensions_url. A construct with no openEHR form is refused with 422 naming the element, and every attribute with no core FHIR element travels in an extension under https://ferrobridge.eu/fhir/StructureDefinition/ (#1933).

Changed

  • The crates move to ferrohealth-smart 0.19. ferrobridge-term 0.6.0 takes smart’s EndpointSection and OutboundClient from the 0.19 line in Client::from_endpoint, so a dependant on smart 0.19 passes its own types. ferrobridge-validator 0.6.0, ferrobridge-hl7v2 0.9.0 and eehrxf 0.7.0 follow ferrobridge-term 0.6. The server takes ihe-atna and ehds-logging 0.13.0, and the operator console takes ferrohealth-session 0.14.0, the releases on the same smart line (#1897).
  • A model mapping that slots an archetype into an ARCHETYPE_SLOT the template keeps open and fills with no such archetype is now ignored with the fc-excluded-template-node warning, as FHIRconnect model-mappings.adoc §Mapping 0..0 fields ignores a mapping that is not part of the template. It was refused as fc-unknown-template-node. A path whose archetype no open slot there admits is still refused. openehr-mapping-core exposes the template’s open slots as WebTemplateIndex::open_slots (#1907).
  • The crates move to ferrohealth-smart 0.20, which takes the issuers check_role_issuers reads as SecretUrl and masks the issuer ConfigError::RoleIssuer names. ferrobridge-term 0.7.0 takes smart’s EndpointSection and OutboundClient from the 0.20 line in Client::from_endpoint, so a dependant on smart 0.20 passes its own types. ferrobridge-validator 0.7.0, ferrobridge-hl7v2 0.10.0 and eehrxf 0.8.0 follow ferrobridge-term 0.7. The server takes ihe-atna and ehds-logging 0.14.0, and the operator console takes ferrohealth-session 0.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-core 0.2.0, fhirconnect 0.3.0 and eehrxf 0.9.0 take openehr-base, openehr-rm, openehr-its, openehr-sdt, openehr-am and openehr-term from the 0.1 line, and ferrobridge-hl7v2 0.11.0 follows fhirconnect 0.3. A dependant moves its own openehr-* 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-smart 0.21, which chooses the issuer a SMART discovery document describes by one shared rule and adds the optional described_issuer key to AuthSection. ferrobridge-term 0.8.0 takes smart’s EndpointSection and OutboundClient from the 0.21 line in Client::from_endpoint, so a dependant on smart 0.21 passes its own types. ferrobridge-validator 0.8.0, ferrobridge-hl7v2 0.12.0 and eehrxf 0.10.0 follow ferrobridge-term 0.8. The server takes ihe-atna and ehds-logging 0.15.0, and the operator console takes ferrohealth-session 0.16.0, the releases on the same smart line (#1925).
  • The crates move to ferrohealth-smart 0.22, where DpopSection no longer carries external_url and a product builds its DPoP proof check from its own public URL; the bridge sets no [auth.dpop], so no configuration key changes. ferrobridge-term 0.9.0 takes smart’s EndpointSection and OutboundClient from the 0.22 line in Client::from_endpoint, so a dependant on smart 0.22 passes its own types. ferrobridge-validator 0.9.0, ferrobridge-hl7v2 0.13.0 and eehrxf 0.11.0 follow ferrobridge-term 0.9. The server takes ihe-atna and ehds-logging 0.16.0, and the operator console takes ferrohealth-session 0.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 with scopes and roles. A scopes or roles key 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’s scopes and roles lines into a [basic_grants.<user>] table named by its user (#1929).
  • The crates move to ferrohealth-smart 0.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-term 0.10.0 takes smart’s EndpointSection and OutboundClient from the 0.24 line in Client::from_endpoint, so a dependant on smart 0.24 passes its own types. ferrobridge-validator 0.10.0, ferrobridge-hl7v2 0.14.0 and eehrxf 0.12.0 follow ferrobridge-term 0.10. The server takes ihe-atna and ehds-logging 0.18.0, and the operator console takes ferrohealth-session 0.19.0, the releases on the same smart line (#1929).
  • The workspace moves to the openehr-* crates 0.2.0, whose openehr-rm carries the draft access control package behind its draft feature, which the access directive exchange reads. The published crates whose public API names openEHR types move to their next minor: openehr-mapping-core 0.3.0, fhirconnect 0.4.0 and eehrxf 0.13.0 take the openehr-* crates from the 0.2 line, and ferrobridge-hl7v2 0.15.0 follows fhirconnect 0.4. A dependant moves its own openehr-* 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_requests is 256 by default, where unset left the server unbounded, so past 256 requests in flight a request is answered 503 with Retry-After and 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-smart 0.26 and ferrohealth-server 0.10. ferrobridge-term 0.11.0 takes smart’s EndpointSection and OutboundClient from the 0.26 line in Client::from_endpoint, so a dependant on smart 0.26 passes its own types. ferrobridge-validator 0.11.0, ferrobridge-hl7v2 0.16.0 and eehrxf 0.14.0 follow ferrobridge-term 0.11. The server takes ihe-atna and ehds-logging 0.21.0, and the operator console takes ferrohealth-session 0.21.0, the releases on the same smart line, so one smart, one server and one telemetry link (#1939).

Fixed

  • ferrobridge config check no longer prints the password of an issuer written with userinfo (https://user:password@…) in [[auth.attributes]], [[auth.federation]], [[auth.party]] or auth.scopeless_subjects: it renders as https://***@…, as [[auth.issuer]] already did. ferrohealth-smart 0.19 holds the issuer of every configuration table as a SecretUrl (#1897).
  • fhirconnect reads a path that names a single EVENT the Web Template collapsed into its OBSERVATION as that event, a structure, now that openehr-sdt 0.1.1 keeps the event’s time leaf at the event’s path. Before, such a path resolved to the DV_DATE_TIME leaf, so a mapping anchored at the event was refused as fc-unpaired-types and its children below the event as fc-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 log crate in place of tracing-log’s LogTracer. Under a console filter that lets a target through above its default level, such as info,ferrohealth_smart=debug, a dependency’s log::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-term 0.10.1 takes ferrohealth-config 0.4.5, and ferrobridge-validator 0.10.1, ferrobridge-hl7v2 0.15.1 and eehrxf 0.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

  • eehrxf 0.3.1: Document::with_custodian adds an Organization and names it the document’s Composition.custodian in every form. In the imaging report it takes the place of the first Organization author, 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 the HDR project declares in its OperationOutcome each 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 as Condition.severity and verificationStatus. Each is an incomplete warning at the element’s FHIRPath. The composition’s original content still keeps every one of them (#1820).
  • eehrxf: mapping a received imaging report with the IMAGING project declares in its OperationOutcome each 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 an incomplete warning at the element’s FHIRPath. The composition’s original content still keeps every one of them (#1827).
  • eehrxf: the IMAGING project carries the organization that performed an imaging report. A received DiagnosticReport.performer naming an Organization is written into the Imaging service slot of OBSERVATION.imaging_exam_result.v1 as a CLUSTER.organisation.v1 (its name and identifiers), and a served report names that organisation as its performer, an organization-eu-core. A performer that is no Organization is 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).
  • eehrxf 0.6.4: Document::studies (feature imaging) returns the fullUrl of each ImagingStudy the document holds, in the order the entries were added. A writer whose mapping run added an imaging study lists it in the imagingstudy section of CompositionEuImaging without searching the run’s Bundle again (#1887).

Changed

  • In a slotted model whose fhirConfig.structureDefinition names no resource (a BackboneElement or a data type), $resource now names the FHIR element the slot hands over, the root of the model’s own type (basics/Variables.adoc), as $archetype names the slotted archetype; $fhirRoot is unchanged. A reference whose with.fhir names a choice that admits Reference now writes that alternative (medication[x] gives medicationReference), and only a choice that admits no Reference is refused as fc-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’s TemplateSource, so the workspace has one template source type (#1711).
  • The crates move to ferrohealth-smart 0.17. ferrobridge-term 0.4.0 takes smart’s EndpointSection and OutboundClient from the 0.17 line in Client::from_endpoint, so a dependant on smart 0.17 passes its own types. ferrobridge-validator 0.4.0, ferrobridge-hl7v2 0.6.0 and eehrxf 0.4.0 follow ferrobridge-term 0.4. The server takes ihe-atna and ehds-logging 0.11.0, and the operator console takes ferrohealth-session 0.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_json and serde in fhir-types and openehr-mapping-core, jiff in fhir-search, tokio in ferrobridge-hl7v2, and the rest the declarations list). eehrxf 0.4.3, ferrobridge-fhirpath 0.1.136, ferrobridge-hl7v2 0.6.2, ferrobridge-term 0.4.1, ferrobridge-validator 0.4.1, fhir-search 0.1.131, fhir-types 0.1.131, fhirconnect 0.1.253 and openehr-mapping-core 0.1.153 carry the declaration (#1851).
  • The quickstart compose.yaml each 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 with curl -fsSLO from the latest release and name Docker Compose 2.23.1 or newer (#1874).
  • The crates move to ferrohealth-smart 0.18. ferrobridge-term 0.5.0 takes smart’s EndpointSection and OutboundClient from the 0.18 line in Client::from_endpoint, so a dependant on smart 0.18 passes its own types. ferrobridge-validator 0.5.0, ferrobridge-hl7v2 0.8.0 and eehrxf 0.6.0 follow ferrobridge-term 0.5. The server takes ihe-atna and ehds-logging 0.12.0, and the operator console takes ferrohealth-session 0.12.0, the releases on the same smart line (#1880).
  • fhirconnect: going into openEHR, a reference mapping skips a reference whose target is a resource of another type than its resourceType, and records no read for it, where it refused the whole run before. A repeating reference that admits several target types, such as R4 DiagnosticReport.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 in docs/architecture.md. A reference that resolves to nothing is still a declared skip, and the openEHR-to-FHIR direction is unchanged (#1888).

Fixed

  • fhirconnect writes one alternative of a FHIR choice element at a time: a mapping that writes value.as(Coding) after another wrote the element’s valueCodeableConcept replaces it, so a produced resource no longer carries two value[x] members, which FHIR R4 forbids (formats.html §Choice). The KDS case extension KDS_fall_problem_diagnose of the FHIRconnect mapping library now runs verbatim against the published KDS_Fall_einfach template, 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 its device_identifier_issuer. In fhirconnect 0.1.251, Defaults::with_composer_identifiers writes a default composer with its identifiers whole as composer|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 as AUDIT_DETAILS.committer instead 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 AE when the CDR refuses a message’s contribution for its content (400 or 422), and AR only 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 a 500 or 502 of its own (#1829).
  • The READMEs of eehrxf, ferrobridge-term, ferrobridge-validator and ferrobridge-hl7v2 name the patch to require on the line each crate is on; they named the line before the last minor step (#1859).
  • A manual entry that writes free text (a value and no defining_code) at a DV_CODED_TEXT node whose value set is open writes a DV_TEXT there, which FLAT carries under |other (Simplified Formats, Open Value-Sets), and an openehrCondition reading 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 new fc-closed-value-set. fhirconnect moves to 0.2: a consumer that matches ResolveCode exhaustively adds an arm for ResolveCode::ClosedValueSet; eehrxf moves to 0.5 and ferrobridge-hl7v2 to 0.7 with it. ResolvedNode::list_open in openehr-mapping-core reads the Web Template’s listOpen (#1861).
  • fhirconnect evaluates an openehrCondition with operator: type against the class of the data value its attribute holds, the value of an ELEMENT included, as basics/Conditions.adoc §openehrCondition writes it. It tested the node’s declared class, so an onsetDateTime of 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, as Mapping::compile_project does. A gateway that writes the shipped IMAGING files 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::accounting still replaces the list (#1875).
  • ferrobridge config check no longer prints the password of an issuer written with userinfo (https://user:password@…), in [[auth.issuer]] or in an onward table: it renders as https://***@…, as every endpoint URL already did. ferrohealth-smart 0.18 holds every configured issuer identifier as a SecretUrl (#1880).
  • fhirconnect unfolds 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 refused fc-unknown-template-node and fc-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 check and every other rendering of the console’s configuration show an [oidc] issuer, redirect_uri or post_logout_redirect_uri written with userinfo as https://***@…, never its password. The console moves to ferrohealth-session 0.13, which holds the three URLs as SecretUrl (#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 a persons, federation or patients issuer 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). fhirconnect gains Origin::with_originating_system for it (#1637).
  • [cdr.credentials.onward] refuses the start when [cdr.credentials.oauth] names neither resource nor scope, 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 whose PERSON carries a binding key, an identifier of one of the listed issuers, is refused with 403 forbidden before 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 answered AE naming it, and nothing is committed. The performing organisation (OBX-23) is recorded as the originating system’s provider. fhirconnect gains Defaults::with_facility, Origin::with_location and with_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 declared origin = "device" with its device_identifier_issuer in [[hl7v2.senders]] commits its results as acts of the device: the composer names the equipment (OBX-18), and the device is the originating system. fhirconnect gains Defaults::with_composer_id (#1666).
  • fhirconnect compiles an openEHR path that steps through a List attribute of the reference model, such as DV_TEXT.mappings or DV_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 as fc-uncarried-tail. The range of a REFERENCE_RANGE<DV_QUANTITY> reads as DV_INTERVAL<DV_QUANTITY>, the type the openEHR RM gives it. OpenehrTarget::new and OpenehrTarget::with_element_tail are no longer const, and OpenehrTarget::lists and ListAxis are new (#1694).
  • The eehrxf laboratory mapping carries a result’s typed reference ranges both ways: a received Observation.referenceRange with a type becomes one other_reference_ranges entry of the result’s quantity, its meaning from the type, and is no longer declared lost, and each entry is served back as a referenceRange with that type (#1694).
  • A FHIRconnect link whose FHIR side is the resource an enclosing reference mapping entered ($fhirRoot inside it, the shape of the published KDS KDS_composition.yml extensions) now runs in both directions. Going into openEHR the entered resource is handed to the LinkedCompositions seam 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 as SkipReason::LinkedResource (skipped-linked-resource in the facade’s loss log). Any other link side is refused when the program compiles, as fc-link-side, naming file and line, where it was refused on the first run before. fhirconnect adds resolve::program::mapping::LinkSide, ResolveCode::LinkSide, EngineError::LinkedTwice and SkipReason::LinkedResource; a consumer that matches one of those enums exhaustively adds the variant (#1695).
  • A fhirconnect run out of openEHR declares each archetype element the composition holds at the mapped occurrence that no mapping reads, as the new Loss::Unread warning naming the element’s node id and openEHR path, so a served resource never drops recorded content with no trace. An element a manual entry carries through its openehrCondition counts as read, and an element a skipped mapping already names is declared once (#1701).
  • The eehrxf discharge report mapping serves a problem’s severity, date of resolution and diagnostic certainty (provisional or confirmed), a procedure’s reasons, outcome and complications, and a discharge medicine’s route and order start in its one dosageInstruction (#1701).
  • The eehrxf imaging mapping serves each imaging diagnosis as a DiagnosticReport.conclusionCode and 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-hl7v2 composes any HL7 v2 message: write::Writer joins write::value segments, 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, and Writer::compose checks the message against the structure the hl7v2-types tables define for the type and version its MSH declares and encodes it in the character set MSH-18 names. write::header::Msh writes an originated header, and ack::Header::reply and ack::Header::msa the header and MSA of any reply. ack::render is built on the writer, and an ack::Error converts to its ERR segment (#1715).
  • map::single::segment maps one placed segment to one resource through its segment map, outside a message Bundle (a PID to the Patient a 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-string writes XPN.1 through $value where 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-hl7v2 writes a FHIR R4 resource back as a v2 segment through the same v2-to-FHIR maps (map::inverse::segment), a Patient as a PID, returned as a write::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, counted inverse::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_of gives a segment’s table as a structure of a version places it, and map::convert::temporal converts a FHIR date or time back to its v2 form (#1716).
  • ferrobridge-term speaks 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 generated fhir-types contract, so the $translate renames (sourceCode, targetSystem, sourceSystem, sourceVersion) and match.relationship come from the generated tables. It also sends CodeSystem/$validate-code, the instance-level forms, an inline ValueSet to $expand, and the inputs activeOnly, excludeNested, displayLanguage and conceptMapVersion; invokes an operation in the GET form where every input is primitive (Config::with_form); sends any request through Client::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-search crate, 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 $, unescape refusing an escape of any other character, escape, the four token forms and :of-type, the default, :contains and :exact string 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 recommended ap margin. The facade reads its search values through it, so a token with more than one unescaped |, an unknown letter prefix and a year 0000 are 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-term sends a whole authored ValueSet as the valueSet input of ValueSet/$expand (request::ValueSetSource::Authored), with its enumerated concepts, imported value sets, excludes and compose.inactive, in every release it speaks, and refuses one the release cannot read with Error::AuthoredValueSet before sending. invocation::expand_answer reads an $expand answer without the request that asked for it (#1735).
  • ferrobridge-hl7v2 0.1.207 composes a v2 message against its structure as an integration profile constrains it: Writer::with_profile takes a parse::profile::Profile, whose constraints set the minimum cardinality of named structure nodes, and the crate ships IHE_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.5 RSP_K21 requires it. Breaking: parse::grouping::group takes the profile as a third argument; pass &Profile::BASE for the base structure (#1746).
  • fhir-types has one resources feature per release: stu3-resources, r4-resources, r4b-resources, r5-resources and r6-resources. Each turns on every resource of that release alone, while resources still turns on every resource of each enabled release. fhirconnect, ferrobridge-hl7v2, eehrxf, ferrobridge-fhirpath, ferrobridge-validator and the bridge now ask only for the releases whose resources they use. A build that adds a release for terminology alone, as ferrobridge-term does with STU3 and R4B, then compiles none of that release’s resources (#1754).
  • ferrobridge-hl7v2’s write::value::Segment returns 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 segment map::inverse::segment returns (#1766).
  • The bridge and the operator console export their traces and metrics to an OpenTelemetry collector under [telemetry.otlp], dialing an https:// 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 no openehr-audit-details header, and a transaction’s CONTRIBUTION carries the placeholder committer, a PARTY_IDENTIFIED whose one DV_IDENTIFIER names the token’s iss and sub, in its audit and every version’s commit_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 the certificate_subject its certificate carries, and a message is accepted only on a connection whose certificate names the sender its MSH-4 names; otherwise it is answered AR. The bridge refuses to start without [hl7v2.tls] certificate_file, key_file and client_ca_file, without a sender, or with a sender that names no certificate_subject. Upgrade step: issue each sender a client certificate, add its DNS name as certificate_subject, and configure [hl7v2.tls]. ferrobridge-hl7v2 gains mllp::listener::serve_tls, mllp::tls and Connection::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) as originating_system_item_ids, and move the message control id (MSH-10) to feeder_system_item_ids. fhirconnect gains Origin::with_originating_items and with_feeder_items for it (#1664).
  • fhirconnect: Defaults and ComposerId move to fhirconnect::engine::traverse::defaults. A consumer imports fhirconnect::engine::traverse::defaults::Defaults and fhirconnect::engine::traverse::defaults::ComposerId in place of the engine::traverse paths, which no longer resolve (#1673).
  • The eehrxf patient summary project (mappings::EPS) has one root context, ferrobridge_eu_eps.context, which maps the composition to a composition-eu-eps and 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 a MedicationStatement-eu-eps of 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.context and ferrobridge_eu_eps_immunization.context are scope: sub and are no longer compiled on their own, and a document takes the run with Document::with_mapped_composition (#1696).
  • Document::with_mapped_section takes one section of a run whose context wrote the Composition: the entries that section names, and each Provenance narrowed 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_composition builds the example with openehr_sdt::flat::example::example_composition at the medium detail level, falling back to required, gives it the output form’s deterministic uid and validates it against the template. The method takes no now argument any more, so a caller drops it, and an example names the uid openehr-sdt derives from the template id (<uuid>::example.server::1) and that crate’s synthetic values. The operator API’s GET /operator/templates/{id}/example answers the same example (#1705).
  • openehr_mapping_core::index::WebTemplateIndex::build_party and accept_party validate the party with openehr_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 new PartyError::Unvalidated, which carries the validation’s messages. The FHIR facade answers a served party its template refuses with a 502, and $toopenehr refuses a mapped party that does not validate. A consumer that matches PartyError exhaustively adds the variant (#1706).
  • openehr-mapping-core reads, names and amends a node instance, and omocl follows a hop, through the openehr-sdt Navigator the WebTemplateIndex now 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. fhirconnect writes a manual entry’s text through openehr_rm::v1_2::paths::write::set_at_path, and a path it cannot write is the refusal EngineError::TailWrite (#1707).
  • openehr-mapping-core, fhirconnect and eehrxf read 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 from openehr-sdt instead of walking the OPT 1.4 themselves. An archetype root below an OPT 1.4 T_COMPLEX_OBJECT now answers its embedded template and terms in the index, as it already did in eehrxf. Breaking for a crate consumer: eehrxf::terminology::local::TermDefinitions::from_template returns a Result (a template that builds no Web Template is TermDefinitionsError::Build); fhirconnect::engine::rm::ENTRY_TIMES loses its key column and family_of takes the owning class and answers an Option; openehr_mapping_core::index::paths::relative no longer returns MalformedAqlPath (#1708).
  • fhirconnect and openehr-mapping-core read a generic RM type name (DV_INTERVAL<DV_QUANTITY>) and the class an attribute holds below it through openehr_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_class is gone (use openehr_rm::v1_2::typing::base_name), and derive::type_argument answers an RmType (#1709).
  • The facade’s FHIR search builds its AQL as the openehr-query AST and prints it with the crate’s canonical printer, which spaces WHERE comparisons and writes only the parentheses precedence needs. openehr-mapping-core names a built composition’s rm_version from openehr_rm::Generation::earliest_for_composition instead of its own check of one GENERIC_ENTRY difference, so a composition no RM release decodes (a GENERIC_ENTRY over an ITEM_SINGLE) is refused as PathError::InvalidComposition where it was named 1.2.0. The openehr-* crates move to 0.0.136 (#1710).
  • The null flavours, the default EVENT_CONTEXT.setting, the version container of an OBJECT_VERSION_ID, the ETag entity tag, the ISO 8601 parts of a DV_DURATION, a DV_TIME and a visit’s start and end, and the interface form of an archetype id are read through those crates. Breaking for a consumer of fhirconnect: engine::lens::null_flavour::FLAVOURS gives way to fhir_default, and BRIDGE pairs each code with an openehr_term::codes::NullFlavour; engine::lens::duration::Component gives way to openehr_base’s DurationDesignator; and engine::identity::versioned_object_uid returns a String (#1710).
  • $toopenehr and the facade’s writes give a DV_CODED_TEXT in the openehr terminology 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-term 0.1.148 take ferrohealth-smart 0.13.0, the operator console ferrohealth-session 0.7.0, and the server ihe-atna and ehds-logging 0.8.0, whose FHIR Feed bearer is on the same line, so the lock holds one ferrohealth-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 take cache: false holds 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 take actor_assertion (default false): true names the bridge’s client as the actor of an exchange sent without an actor token, with an assertion signed by the oauth key. Under the keycloak profile, a Keycloak 26.8 impersonation token, which carries an RFC 8693 act claim, is admitted as delegated only when the issuer’s delegates lists the impersonator. A product that hands its TokenSource to ferrobridge-term moves to ferrohealth-smart 0.13 with it (#1714).
  • ferrobridge-hl7v2 reads \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 is varies (QPD-3 “User Parameters (in successive fields)”, RDT) is no longer counted as extra-field. parse::Field::written returns a field as the message wrote it, parse::Location::components the ERL components, and parse::Delimiters::escape escapes the truncation character. Breaking for a consumer: ack::Header holds parse::Delimiters (Header::delimiters), and a reply’s trailing empty fields are left out up to the last field valued or echoed (#1715).
  • ferrobridge-term 0.1.146 breaks its public API. The request types moved from outcome to request. Validation.value_set_url is Validation.value_set (a request::Target, built by Validation::new), Expansion.value_set_url is Expansion.value_set (a request::ValueSetSource), and Subsumption.system is Subsumption.code_system. Request::Lookup carries display_language, Translation carries concept_map_version, and Expansion and Validation carry the new inputs. On the answers, ValidateOutcome::Valid and Invalid both carry display, outcome and details, TranslateOutcome::Translated and NoMatch both carry matches and used_maps, LookupOutcome::Found carries definition, Expanded carries parameters and unclosed, and Match and error::Issue carry 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::Opt2 gains prohibited_attributes, the attributes the template removed for existence matches {0} as openehr_adl::opt::create_opt reports them in its RawOpt, which the Web Template leaves out; a consumer that builds an Opt2 source 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, and openehr-mapping-core, fhirconnect and eehrxf are 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 BASE master07-referencing.adoc §Referencing) (#1724).
  • fhir-search 0.1.129 keeps jiff behind its default feature jiff. With default-features = false the 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, Instants and first_day need the feature. A consumer that reads tokens and escapes alone, such as ihe-iti’s PIXm and PDQm sides, turns it off (#1730).
  • ferrobridge-term 0.1.147 breaks its public API: each FHIR release is a feature, stu3, r4, r4b, r5 and r6, and the default is stu3, r4 and r4b. A release whose feature is off has no WireVersion variant, so a client in it does not compile. A consumer that speaks R5 or the R6 ballot turns r5 or r6 on. ferrobridge-validator 0.1.153 enables stu3 and r4, and ferrobridge-hl7v2 0.1.204 and eehrxf 0.1.186 enable r4. The bridge compiles the three releases its [terminology] wire_version accepts, 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-checks on 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-types and openehr-mapping-core move one patch for the README section (#1745).
  • fhirconnect 0.1.246 puts the FHIRconnect language (model, resolve, engine, operations) behind a default mapping feature. With default-features = false the crate is the FHIR path model (tree) over fhir-types, with no openEHR crate and no jsonschema. A consumer that turns default features off and uses the language adds features = ["mapping"] (#1750).
  • ferrobridge-term 0.1.152 puts its HTTP client (reqwest, the retry budget, the credentials and the token provider) behind a default client feature, composed with the per-release features; smart implies it. With default-features = false the 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 adds features = ["client"] (#1750).
  • SECURITY.md, the post-market record and the book’s CRA user information name security@cadasto.com as the email route for a vulnerability report, in place of info@cadasto.com, which stays the manufacturer’s general address and the address for licensing and other business questions (#1772).
  • Breaking for a ferrobridge-hl7v2 consumer (0.2.0): the v2-to-FHIR message, segment and data type maps are generated into the crate at build time from the pinned hl7.fhir.uv.v2mappings 1.0.0 package, with FerroBRIDGE’s structure corrections as generator inputs, and map::maps::Maps::corrected() (or Maps::guide(), the guide alone) replaces Corpus. Every table value is translated by ConceptMap/$translate on a terminology server: map::map, map::single::segment and map::inverse::segment take an Option<&ferrobridge_term::client::Client>, and the map feature carries the client. A table map’s TableGroup names 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-system as table-hl70202-equipment-to-contact-point-system, the added table-hl70202-to-contact-point-use and the FHIR-to-v2 maps the PID inverse uses) ship as the FHIR package terminology/hl7v2-values/, each under an id of its own and a url of https://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") or ByteSize ("1MiB"), and its key names no unit. [server] takes the ferrohealth-server 0.7 keys: request_timeout, header_read_timeout, idle_timeout, body_limit, drain_delay, shutdown_timeout, retry_after, compression_min_size and tls.reload_interval. The bridge’s own keys follow: [cdr], [terminology], [fhir_outbound] and [facade.references] timeout; [cdr.retry] and [terminology.retry] initial_backoff and max_backoff; [hl7v2] idle_timeout, frame_timeout and frame_limit; [change_feed] poll_interval, backoff and max_backoff; [events] confirm_timeout; [audit] max_size and write_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-term 0.2.0 builds on ferrohealth-smart 0.15, whose TokenSource its smart feature takes, so a consumer requires ferrobridge-term = "0.2" and moves to ferrohealth-smart 0.15 in the same change. ferrobridge-validator 0.2.0, eehrxf 0.2.0 and ferrobridge-hl7v2 0.4.0 take the minor step with it, since each requires ferrobridge-term exactly (#1795).
  • The [auth], [<lane>.credentials] and console [oidc] and [session] tables take the keys of ferrohealth-smart 0.15 and ferrohealth-session 0.9: every span of time is a Duration with 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, and max_onward_lifetime such as "1h"), and the outbound TLS of each is one tls table (trust_roots_file, client_identity_file or client_identity, min_version) in place of ca_file, client_certificate_file and client_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, and scripts/terminology/pack-hl7v2-values.sh packs it into the FHIR package tarball with package/package.json, which is the form you load into the terminology server. A file named package.json in 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 one endpoint table, url, timeout, connect_timeout, retry, tls and credentials, sent through ihe-atna 0.10’s FHIR Feed over ferrohealth-smart’s outbound client. retry is the tries of one delivery, and its max_backoff the wait between two rounds; the lane-level base_url, timeout, retry_max and credentials are gone (#1809).
  • [fhir_outbound] takes its endpoint as one endpoint table, url, timeout, connect_timeout, retry, tls and credentials, sent through ferrohealth-smart’s outbound client: a delivery that got no answer or a 5xx is tried again as retry allows, an https endpoint behind a private root or asking for a client certificate is reached with the identity and roots tls names, and the lane-level base_url, timeout and credentials are gone (#1809).
  • ferrobridge-term 0.3.0 builds on ferrohealth-smart 0.16. Behind the smart feature, Client::from_endpoint builds a client from a product’s [<lane>.endpoint] table (smart’s EndpointSection) through smart’s OutboundClient: the table’s timeouts, no redirect, the TLS the product’s TlsBuilder builds, the retry, and the credential (HTTP Basic, or the client credentials token renewed once on a 401). Client::with_http is removed: a consumer that handed in its own reqwest client for mutual TLS or private roots names them in the table’s tls and builds through from_endpoint. Credentials::Header carries an Authorization value as it stands, and Error::Endpoint is the outbound client’s refusal of the table (#1809).
  • ferrobridge-validator 0.3.0, eehrxf 0.3.0 and ferrobridge-hl7v2 0.5.0 take the minor step with ferrobridge-term 0.3.0, which each requires exactly (#1809).
  • [cdr] and [terminology] take their server as one endpoint table, url, timeout, connect_timeout, retry, tls and credentials, the family’s outbound endpoint table, beside each lane’s own keys (demographic and onward; wire_version and display_fallback). The CDR’s engine and the terminology client speak the TLS endpoint.tls names, so a CDR or a terminology server behind a private root, or one that asks for a client certificate, is reached. The lane-level base_url, timeout, retry and credentials are gone, and the environment follows (FERROBRIDGE__CDR__ENDPOINT__URL) (#1810).

Removed

  • The [hl7v2] keys concept_maps and supplements: 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’s GET /operator/hl7v2/concept-maps document drops its directory and supplements members, and the console’s HL7 v2 settings and ConceptMaps tab drop them too (#1775).
  • From ferrobridge-hl7v2: Corpus with Corpus::load, Corpus::shipped and Corpus::supplement, map::translate::Translator with its offline translator, map::guide, map::supplement, and the shipped-maps and terminology-server features (#1775).

Fixed

  • A debug build of eehrxf builds 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 the openehr-lang lexer, which 0.0.130, the pinned version, fixes (FerroHEALTH/FerroEHR#4961) (#1526).
  • eehrxf::document::Document::with_mapped_composition keeps the emptyReason a mapping run writes on a section, in the new MappedSection::empty_reason field, and MappedSection::into_section carries it into the document, which writes the concept as the run wrote it (a code of list-empty-reason, or LOINC LA4720-4, which SectionEmptyReasonEuImaging also includes). Before, the reason was dropped and the document refused the empty section. A consumer that writes a MappedSection literal adds the field, and Section::empty_because is no longer a const fn (#1626).
  • A FHIRconnect hierarchy.split whose 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 openehrCondition whose target lies outside the repeating node its mapping reads (a targetRoot under $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 (existence 0..0, which RM COMPOSITION.context 0..1 allows) is built with no EVENT_CONTEXT and no context defaults, and the facility an HL7 v2 message names goes to feeder_audit.originating_system_audit.location. The openehr-* crates move to 0.0.130, whose Web Template leaves /context out of such a template (#1689).
  • A fhirconnect context refuses an extension’s overwrite or appendTo that addresses a name two sibling methods share, as fc-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 Duration whose value has a fraction in any unit but the seconds (1.5 d) is refused going into openEHR, where it was written as the duration P1.5D, which openEHR BASE does not admit. A visit start or end written in the ISO 8601 basic form is read, and a facade If-Match that 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_INTERVAL a mapping writes bound by bound, such as the range of 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 let ferrobridge-validator 0.1.151, already on crates.io, resolve ferrobridge-term 0.1.146, whose breaking change it never saw. eehrxf, ferrobridge-fhirpath, ferrobridge-hl7v2, ferrobridge-term, ferrobridge-validator and fhirconnect move one patch for the new requirements, and crate-version-guard refuses 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 their extension as two parties. The facade reads each party uid through openehr-base, naming a version by its object_id verbatim and any other uid whole, where it kept only the text before the first :: (#1741).
  • ferrobridge-hl7v2’s map writes an XTN-3 of CP as ContactPoint.system phone with use mobile (when XTN-2 is empty). Before, it wrote system mobile, which the required R4 binding of ContactPoint.system does not allow. The fix ships as supplements over the guide’s table-hl70202-to-contact-point-system and datatype-xtn-to-contactpoint (#1762).
  • ferrobridge-hl7v2’s map writes the guide’s data-absent-reason unknown on ContactPoint.system for an XTN with neither XTN-3 nor XTN-4, so the ContactPoint keeps R4’s cpt-2. The inverse reads a primitive’s extensions under its _name member, so that ContactPoint writes back with nothing left over (#1763).
  • ferrobridge-hl7v2’s map::inverse::segment returns a Send future, so it can run inside a task on a multi-threaded tokio runtime (#1769).
  • fhirconnect 0.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 an Observation (#1781).
  • Breaking for a ferrobridge-hl7v2 consumer (0.3.0): parse::profile::Profile gains repetitions, the fields whose repetition a profile sets, and IHE_ITI_21 lets QPD-3 repeat in QBP_Q21 and RSP_K21 of v2.5, as IHE ITI TF-2 §3.21.4.1.2.3 makes it (“one or more repetitions”, one per query parameter). A writer with_profile(&IHE_ITI_21) therefore composes an RSP^K22 that echoes a query with two parameters instead of refusing it with an ExtraRepetition at 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 a system/ scope is refused by ferrohealth-smart 0.9.1 (GHSA-jhg2-jwjp-hq74, CWE-269, CWE-863), which names the user and the scope, and a Basic caller never carries a system/ 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 the user/ scopes a person holds, and move each machine on Basic to a client credentials client (RFC 6749 §4.4) of a machines or persons issuer (#1641).
  • The bridge takes ferrohealth-smart 0.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.2 error code (#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

  • eehrxf maps discharge reports between openEHR and HL7 Europe Hospital Discharge Report 1.0.0 through the shipped HDR project (features openehr and discharge), over FerroBRIDGE’s discharge report template, a transfer of care summary over published CKM archetypes. The composition maps to composition-eu-hdr, its context to the encounter-eu-hdr of the stay, and each problem or diagnosis, procedure and medication order of its three sections to a condition-eu-core, procedure-eu-core or medicationRequest-eu-core entry of the section of the same name, with one Provenance per run. Document::with_mapped_composition takes the run into a bundle-eu-hdr, answering each mapped section placed in the form’s slot as a MappedSection, and Mapping::to_openehr maps a received discharge report into one composition of the template. scripts/vendor/ckm-discharge.sh vendors the three archetypes the template adds to the CKM medication set (#1325).
  • eehrxf receives a discharge report: with the discharge feature, ReceivedDocument::category names Category::Discharge for a document whose Composition.type carries LOINC 34105-7, the code composition-eu-hdr of HL7 Europe Hospital Discharge Report 1.0.0 fixes, and Category::profiles names bundle-eu-hdr and composition-eu-hdr for ReceivedDocument::check (#1325).
  • eehrxf maps an imaging report between openEHR and the HL7 Europe Imaging Report 1.0.0-ballot document. The new IMAGING project (feature imaging with openehr) maps OBSERVATION.imaging_exam_result.v1 to DiagnosticReportEuImaging and the ImagingStudyEuImaging it references, over FerroBRIDGE’s ADL 2 imaging report template of published CKM archetypes. The testkit vendors the archetype through scripts/vendor/ckm-imaging.sh, and the EHDS readiness matrix lists both profiles (#1326).
  • eehrxf receives an imaging report: ReceivedDocument::category names the imaging category from the Medical-Imaging coding of Composition.category, which CompositionEuImaging requires while it leaves Composition.type open, and Category::profiles holds the document to BundleReportEuImaging and CompositionEuImaging of HL7 Europe Imaging Report 1.0.0-ballot. The new Category::document_category names the coding. A reference that names its target by identifier alone, with no type, is now admitted at an element whose R4 target types are listed and include no Patient, Group or Resource, such as the accession number the guide writes in ImagingStudy.basedOn (#1326).
  • ferrobridge-validator holds a dependency of another FHIR release, such as the FHIR 5.0.0 xtehr.eu.ehds.models that 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 new ResolveError::OtherRelease. Package::fhir_versions, PackageSet::other_releases and the Release::FHIR_VERSION and Release::CORE_PACKAGE constants are new. ResolveError gains a variant, so a consumer that matches it exhaustively adds an arm. HDR 1.0.0, hl7.terminology.r4 7.4.0 and xtehr.eu.ehds.models 1.0.0 join the profile package pins, and a received discharge report validates through ReceivedDocument::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, audience under 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 with 403. A failed exchange fails the request with the token endpoint’s 400 or 403, a 401 with the claims challenge for interaction_required, or a 502, and the bridge’s own token is never sent in its place (#1582).

Changed

  • eehrxf: the Composition of every document Document::into_bundle writes now claims its form’s Composition profile in meta.profile, so a received document selects the FHIRconnect context that maps its composition (#1325).
  • Every trusted authorization server is an [[auth.issuer]] table that requires kind (persons, patients, machines or federation) and holds every issuer setting itself: audience, algorithms, clock_skew_seconds, the jwks_* keys, timeout_ms, mode with its [auth.issuer.introspection] table, and role_claims. Each table takes a profile (rfc9068 by default, entra, keycloak, okta or nl) with any profile key set over it, and a person’s token of a persons issuer is admitted only through a client listed in first_party_clients or delegates. An issuer with mode = "introspection" now sits beside issuers checked by their key sets. Upgrade step: write each issuer as an [[auth.issuer]] table with its kind, 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) in first_party_clients, and under the keycloak preset list each service account’s sub in app_only = [{ subjects = [...] }]. config check names the key to move (#1585).
  • [auth] scopeless_subjects entries 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, delegated and the other kinds of ferrohealth-smart), and binding and party, 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.yaml mounts ./config at /etc/ferrobridge read-only and passes FERROBRIDGE_CONFIG through, so the [[auth.issuer]] tables live in config/ferrobridge.toml; it no longer passes FERROBRIDGE__AUTH__ISSUER and FERROBRIDGE__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 a system/ 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 a machines or persons issuer the section trusts, with the system/ scopes it needs, and keep on Basic only people, with user/ scopes or the operator scope (#1585).
  • The bridge moves to ferrohealth-smart 0.9.0, with ferrohealth-session 0.3.0 for the operator console, ihe-atna and ehds-logging 0.4.0 for the access-record lane, ferrohealth-server 0.5.1 and FerroUI 0.6.7, so one copy of ferrohealth-smart builds into each binary. The access record carries no party binding, actor chain or representation of the bridge’s own. ferrobridge-term 0.1.143 requires ferrohealth-smart 0.9.0 behind its smart feature, and smart::SmartToken takes the 0.9.0 token source: a consumer moves ferrohealth-smart to 0.9.0 and pins ferrobridge-term = "=0.1.143" in one change (#1585).
  • The eehrxf IMAGING project maps ImagingStudy.modality and ImagingStudy.started from 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_bundle holds the sections to the section invariants of each HL7 Europe composition profile and refuses a document that breaks one: a patient summary section of sectionProblems, sectionAllergies or sectionMedications with no entry and no empty reason (composition-eu-eps ips-comp-1), an imaging report section with neither (CompositionEuImaging eu-imaging-composition-1), each with the new DocumentError::Unreasoned naming the section, and a discharge report with neither a discharge summary nor a hospital course section (composition-eu-hdr cmp-hdr-2), with the new DocumentError::Absent. The new Form::rules field lists a form’s SectionRules, so a consumer that writes a Form literal adds it; one that assembles such a document gives each empty section an EmptyReason with Section::empty_because (#1620).
  • eehrxf::document::Document::into_bundle refuses a patient summary or an imaging report that lacks a section slice its composition profile requires (min = 1 on sectionProblems, sectionAllergies, sectionMedications, sectionProceduresHx and sectionMedicalDevices of composition-eu-eps, and on imagingstudy, order, history and procedure of CompositionEuImaging), with the new DocumentError::Lacking naming the slice and the new SectionRule::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), and token_profile at either level. Each fails config check naming its replacement. Upgrade step: write an [[auth.issuer]] table with its kind and move each key onto it; in place of token_profile = "jwt", select a profile or set token_types, required_claims and the classification keys on the issuer table (#1585).

Fixed

  • A FHIRconnect mapping below a followedBy anchored at a repeating node can name a node outside that anchor, by ../ or by an absolute $archetype path, and inside a reference placed 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: an Attachment.url that resolves to an entry of a document Bundle, by its fullUrl or 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 by DiagnosticReport.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 one scripts/vendor/profile-packages.sh pins a range by (#1615).
  • An onward table 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-tar is unmaintained, with no patched version) does not affect FerroBRIDGE: testcontainers reaches the crate only in the test harness, and the server binary, the ferrobridge image and the ferrobridge-console image do not contain it. deny.toml accepts the advisory until a testcontainers release drops the crate (security/vex/rust-advisories.openvex.json) (#1575).
  • [auth] scopeless_subjects and role_claims hold per issuer, through ferrohealth-smart 0.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 whose sub was listed got system-wide access without a scope, and any of them could assert roles. In this release each scopeless_subjects entry is a table { issuer, sub } and each issuer’s role_claims sits 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.v1 specialises report.v1, carries one /context node, so a mapping that names $composition/context resolves against it. Before, the operational template held the composition’s context twice and every such mapping was refused with fc-ambiguous-template-node. The openehr-* crates move from 0.0.128 to 0.0.129, which carries the fix, so the next eehrxf, fhirconnect, openehr-mapping-core and ferrobridge-hl7v2 publish requires openehr-* ^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 a reference written 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. instant now pairs with DV_DATE_TIME, our own decision where DV_DATE_TIME.adoc lists no instant: going into openEHR it is total, and going out of openEHR a DV_DATE_TIME that is not a valid instant is refused with LensError::NotAnInstant, naming the part it lacks (InstantShortfall). FhirKind and FhirValue gain an Instant variant, 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

  • fhirconnect and openehr-mapping-core: a composition model (COMPOSITION.report.v1.Condition and its kin) can be the start of 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), which WebTemplateIndex keeps from the OPT2’s parent_archetype_id, or from WebTemplateIndex::with_root_lineage when the caller holds the template source and the OPT states no parent. WebTemplateIndex::root_lineage reads 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 lists ferrobridge_eu_lab_composition.context beside its laboratory result context, so Project::with_context compiles the Composition-eu-lab context from the embedded files. Both contexts map KDS_Laborbericht, so Mapping::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: a slotArchetype may 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 than resolve::program::SLOT_DEPTH_LIMIT (8) times or re-enters it at no deeper place. The diagnostic fc-slot-cycle is replaced by fc-slot-depth, and EngineError::SlotCycle by EngineError::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 lists ferrobridge_eu_eps_immunization.context beside its medication summary context, so Project::with_context compiles the immunisations from the embedded files. Both contexts map one template, so Mapping::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-config 0.2.8, ferrohealth-server 0.4.3 and ferrohealth-telemetry 0.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, so Mapping::compile_project compiles 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 with mappings::UnknownContext (#1527).

Changed

  • The operator console runs on ferrohealth-session 0.2.2. [oidc] resolve reaches 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 /logout goes 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: a manual entry that writes going into openEHR records a read of each FHIR element its paths name, at the occurrence its mapping binds, so Outcome::reads no longer leaves out an element a status table carried. An entry its fhirCondition refuses, or one that runs out of openEHR only, records none. eehrxf no longer declares such an element lost once a project accounts for it (#1518).
  • eehrxf: the imaging form’s Medical-Imaging priority category and the discharge report’s 18842-5 section now carry the display the vendored HL7 Europe EU Health Data API 1.0.0-ballot gives them, and the imaging report category 85430-7 takes that guide’s value-set display, Diagnostic imaging report, over an example’s. document::imaging::PRIORITY_CATEGORY is removed: use category::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::identified names every entry of the collection Bundle a mapping run answers by the fullUrl {base}/{type}/{id}, giving the run’s Provenance a free id, so the prescription or dispensation a system exchanges identifies each resource it holds (FHIR R4 Bundle.entry.fullUrl). The CI fhir-validator job now runs HL7’s FHIR Validator over the mapped MPD prescription and dispensation against hl7.fhir.eu.mpd 1.0.0 (#1321).
  • eehrxf ships 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 a MedicationStatement-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 an immunization-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 the normal_range of its quantity and back out, and the order a report answers into the KDS_Laborbericht test 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 a warning issue in the composition’s OperationOutcome. ReceiveMappingError gains Original. fhirconnect resolves a path below a polymorphic ELEMENT to the one value alternative whose class carries its tail, reads a bound below normal_range as the quantity’s own class, and names the resource of each Location (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: fhirconnect takes the template pin in resolve::select::select_by_profile, the code in engine::library::ratio::to_fhir and to_openehr, and resolve::derive::STRUCTURAL in place of is_structural; ferrobridge-hl7v2 takes the row’s source in map::condition::parse and drops parse::Component::text for subcomponent(1); eehrxf takes an optional template context in terminology::transcode::transcode and transcode_with, which replace transcode_local and transcode_local_with; ferrobridge-validator names the release in set::PackageSet::load and new, which replace load_release and new_release; omop-cdm takes the origin in writer::CdmWriter::commit, which replaces commit_from, and rebuilds an era through derived::era; the mapping sets and the registry are built with Default (#1415).
  • openehr-mapping-core owns what FHIRconnect and OMOCL share at the model layer: schema::SchemaError, schema::compile and schema::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 a DiagnosticCode), diagnostic::render_admitted and loader::in_path_order. fhirconnect and omocl drop their own SchemaError and the Display of their ModelCode, and implement LanguageCodes for 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-hl7v2 serves and sends through mllp::listener (serve, serve_with, Connection, Handler, Timeouts) and mllp::sender (send, SendTimeouts, SendError); fhirconnect names engine::rm::carried::{Carried, carried}, engine::seam::identity (IdentitySink, IdentityRequest, ResourceIdentity, ResourceRequest, DerivedIdentity) and engine::cell::withheld::{withheld, uncarried_code}; eehrxf names document::form (Slot, slot, Code, Companion, Kind, Authorship, Form) and document::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 as effective[x] to its type slice by the type its property names. It refused a conformant effectivePeriod under the closed type slicing of MedicationStatement-eu-eps before (#1323).
  • ferrobridge-fhirpath: a \u escape in a string or delimited identifier takes four hexadecimal digits and no sign, as the FHIRPath N1 grammar’s UNICODE rule writes it. '\u+041' reads as u+041 (N1 §4.1.2: a backslash before a non-escape is dropped) where it read as A, and unescape('json') refuses \u+041 (RFC 8259 §7) (#1425).
  • fhirconnect’s $tofhir no 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.0 context-mappings.adoc §Start, rest-api.adoc §$tofhir). eehrxf’s patient summary medication context drops the guard it carried against it (#1486).
  • eehrxf writes a display on every coding of a document it assembles: Composition.type, each section’s code, 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 R4 list-empty-reason for an empty reason. document::display::display answers 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.v1 sections 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”. The openehr-* crates move from 0.0.116 to 0.0.128, which carries the fix, so the next eehrxf, fhirconnect, openehr-mapping-core and ferrobridge- hl7v2 publish requires openehr-* ^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

  • eehrxf maps electronic prescriptions and dispensations between openEHR and the HL7 Europe MPD 1.0.0 resources through FerroBRIDGE’s FHIRconnect contexts. Mapping::compile_template compiles a mapping against an ADL 2 operational template as well as an OPT 1.4 one. ReceivedResources::read reads a collection Bundle as strictly as a document, and Mapping::resources_to_openehr maps it into one composition that keeps the collection as its original content. ReceivedComposition::instructed_by names 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 mapped MedicationRequest carries the status unknown, because no published crosswalk pairs the openEHR order status with the R4 request status (#1322).
  • eehrxf maps laboratory reports between openEHR and the HL7 Europe Laboratory Report 2.0.0 document through FerroBRIDGE’s FHIRconnect laboratory project over KDS_Laborbericht. The crate now ships its FHIRconnect projects under mappings/ in its package, and eehrxf::mappings embeds them (MPD, LABORATORY, Project::write_to). Document::with_mapped_report takes the report, results, specimens and Provenance of one mapping run into a laboratory report document, and receive names a received Bundle-eu-lab a laboratory report and holds it to the Bundle-eu-lab and Composition-eu-lab profiles. DocumentError gains Unmapped. The DiagnosticReport-eu-lab context no longer loads the mapping library’s report_result.v1.DiagnosticReport model, 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 one transaction Bundle per event, mapped through the facade’s programs: every resource is a PUT carrying its id, meta.versionId and meta.source, and a deletion, an erasure or a resource a new version no longer maps to is a DELETE. 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 BALP AuditEvents over the ITI-20 ATX: FHIR Feed to the Audit Record Repository [audit] base_url names, from a spool on disk. Recording fails closed: an access whose record has no place is refused with 503 before the CDR is called, and an HL7 v2 message is answered AR (#1377).
  • The FHIRconnect engine carries an openEHR DV_COUNT to and from the R4 restricted integers unsignedInt and positiveInt, such as MedicationRequest.dispenseRequest.numberOfRepeatsAllowed. A count below the least value the type admits (0 or 1) is refused going out, never clamped. The FHIRconnect 1.0.0 DV_COUNT page names only integer, so this pairing is FerroBRIDGE’s own reading of the R4 definitions. This breaks the fhirconnect API: engine::fhir::FhirKind and FhirValue gain the variants UnsignedInt and PositiveInt, so a consumer that matches either exhaustively adds the two arms (#1400).
  • The operator console answers GET /session with the idle and absolute seconds its session has left, never counting as activity, POST /session extends the idle timeout, and both answer 401 once the session is gone, with an RFC 9457 problem whose detail is 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-reason extension as a loss, Loss::Absent, a warning in the run’s OperationOutcome located at the element. Loss gains that variant, so a consumer that matches it exhaustively adds the arm (#1443).
  • fhirconnect::model::load::load_set_from_text loads a FHIRconnect mapping set from (name, text) pairs through the same schema, lowering and semantic checks as load_set, and eehrxf’s Mapping::compile_project compiles a shipped mappings::Project from 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 under mapping_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 at GET /operator/revisions, answers one at GET /operator/revisions/{id} and its line diff against the running one at GET /operator/revisions/{id}/diff, and applies one at POST /operator/revisions/{id}/apply under If-Match on 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 at POST /operator/revisions/import: the ZIP sent raw as application/zip with 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 new bad-archive problem. 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 new no-example problem. The operator console’s playground offers it from the Example menu of the $tofhir tab, so a mapping can be tried without hand-written input. openehr-mapping-core 0.1.138 adds WebTemplateIndex::example_composition and PathError::NotComposition (#611).
  • etl run and etl fhir keep each finished run’s report in a run table of the bridge schema, which ferrobridge cdm init creates, and the operator API answers the newest runs at GET /operator/etl/runs and one run at GET /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-hl7v2 gives each Map its title and its ends(), and each Mapped the maps it applied(); a consumer that builds a Map by its fields adds title (#613).

Changed

  • The openehr-* crates move from 0.0.109 to 0.0.116, so the published eehrxf 0.1.133, fhirconnect 0.1.208, openehr-mapping-core 0.1.136 and ferrobridge-hl7v2 0.1.166 require openehr-* ^0.0.116 (#1394).
  • The OMOP CDM v5.4 definitions move to OHDSI CommonDataModel tag v5.5.0, read at its v5.4 files only: the tag corrects the v5.4 field definition of cdm_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, and cdm init names OHDSI v5.5.0 as the definitions it applies (#1403).
  • The operator console signs operators in and keeps their sessions through ferrohealth-session 0.1.1, the sign-in crate of every FerroHEALTH console, in place of its own copy. The routes stay GET /login, GET /auth/callback and POST /logout; GET /login takes ?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] takes issuer alone and discovers authorization_endpoint, token_endpoint, jwks_uri, end_session_endpoint and the new revocation_endpoint when the console starts, each written one taking the place of the discovered one, with the new keys ca_file and timeout_s (default 10); config check contacts no provider. [session] adds store (memory, the default, or sealed, one encrypted cookie per session) with key or key_file, and refuses an absolute_timeout_s shorter than idle_timeout_s. A sign-out revokes the operator’s token at a provider that has a revocation endpoint, and lands on /signed-out on a console with no provider in place of a 503. 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 whose absolute_timeout_s is below its idle_timeout_s is refused at start and needs one of the two changed, and config check reports it (#1434).

Fixed

  • ferrobridge-fhirpath: lowBoundary() and highBoundary() (the FHIRPath 3.0.0 STU functions behind Environment::with_fhirpath_stu3_functions) read a FHIR decimal written with an exponent at the precision of its mantissa. 9.5e2 now stands for 945 to 955, so highBoundary(0) answers 955 where it answered 951, and 1.5e-3 stands for 0.00145 to 0.00155 (#1426).
  • eehrxf reserves the fullUrl of a document’s report among its entries, so the Bundle keeps FHIR R4 bdl-7: a resource added later under the report’s DiagnosticReport/{id} takes the next free id, and Document::with_report refuses a report whose fullUrl an entry holds already as the new DocumentError::Collision (#1442).
  • eehrxf’s shipped laboratory mapping writes each result’s effective[x], from the time of the laboratory test result’s event, and its performer absent with the FHIR R4 data-absent-reason extension, because KDS_Laborbericht holds no performing laboratory. HL7 Europe Laboratory Report 2.0.0 Observation-resultslab-eu-lab requires both. Document::with_mapped_report keeps the run’s OperationOutcome out of the document, which reaches every entry from its Composition (#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/aql over composition versions by commit instant past a watermark kept in a redb file and works against any CDR, and ferroehr, 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 reports degraded without blocking readiness while it cannot follow. The book’s change feed page states the limits of the AQL source (#117).
  • [server] idle_timeout_ms (default 120000) closes a kept-alive HTTP/1.1 connection that sends no next request within that time, with a clean end of stream, from ferrohealth-server 0.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 a url_file route, an unreachable broker turns the events indicator degraded without blocking readiness, and the usage report counts events_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 new GET /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_attempts passes (5 by default) and then parked with its cause in the dead-letter store [change_feed] dead_letters names, which is required; a transient failure never counts towards parking. GET /operator/events lists every consumer with its parked events, POST /operator/events/{consumer}/parked/{id}/replay offers one again before the consumer’s next page, and the console’s Events page lists them with a Replay button. The dead-letters-unavailable problem 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 step etl run uses, 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 as omop-incremental. A batch run after an incremental run writes the same rows (#1373).

Changed

  • jsonschema 0.60.0. The FHIRconnect and OMOCL mapping schemas are checked with jsonschema 0.60.0, which runs an unfinished regex match once per validation and keeps the error evaluation path linear in the $ref depth; what a mapping file passes or fails is unchanged. fhirconnect 0.1.207, ferrobridge-hl7v2 0.1.165 and eehrxf 0.1.132 follow their requirements (#1347).
  • The OperationOutcome a FHIR route answers when its handler fails names the request id the response echoes in X-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-server 0.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 answers 404 with no challenge before and after, while a route under /fhir answers 401 (#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-server 0.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_root key (FERROBRIDGE_CONSOLE__SERVER__SITE_ROOT) is gone, and the console image carries no /site directory: 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.gz and 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_ms counts 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 --vocabulary checks 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/$document on the FHIR facade (#116, the R4 operation Composition-document). GET /fhir/Composition/{id}/$document, and GET /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 as fullUrl. The caller needs read on every type the document carries. persist=true and graph are refused with an OperationOutcome, and the operation is declared on Composition in the CapabilityStatement. The facade now binds a context whose start is a composition model, such as Composition-eu-lab, to the composition itself.
  • The HL7 Europe Laboratory Report 2.0.0 Composition-eu-lab round trip (#116). A FerroBRIDGE document context starts at the report composition of the published KDS_Laborbericht template and maps it to a Composition-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 the DiagnosticReport-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-core round trip (#116). A FerroBRIDGE context maps the laboratory test result of the published KDS_Laborbericht template to a medicalTestResult-eu-core Observation, with its category, code, effective time, status and report identifier, and each analyte as a member Observation-resultslab-eu-lab it 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-mpd and MedicationDispense-eu-mpd, each with a referenced Medication-eu-mpd and the dosage as a Dosage-eu-mpd; the dispense is the medication ACTION at its careflow step “Prescription dispensed”. scripts/vendor/ckm-medication.sh vendors the archetypes at the CKM mirror commit docs/VERSIONS.md pins, and the suites build the operational template at test time. fhirconnect 0.1.196 (with ferrobridge-hl7v2 0.1.152 and openehr-mapping-core 0.1.131) takes openehr-adl as a test dependency, and the bridge moves to the openehr-* 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 fhirconnect test generates the matrix from docs/ehds/readiness.toml and fails when a template, a context or a test it names is gone. fhirconnect 0.1.198 (with ferrobridge-hl7v2 0.1.153) takes toml as a test dependency.
  • ferrobridge config check and ferrobridge healthcheck (#1260), the FerroHEALTH family’s subcommands from ferrohealth-server. config check prints the running configuration one key per line with where each value came from and every secret as ***, then resolves it as serve does and exits 78 with every refusal on stderr. healthcheck asks the running server for /health/readiness on loopback and exits 0 only on 200, and the image declares a HEALTHCHECK through it. Every subcommand takes --set key=value, applied over the file and the environment.
  • $tofhir answers one resource per occurrence of a repeated start archetype (#1271). A composition holding two diagnoses answers two Conditions under one Provenance, 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 the OperationOutcome. 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.env pins, refuses a page whose revision differs from the pin, and attaches ferrobridge-<tag>-information-sheet.md and ferrobridge-<tag>-instructions-for-use.md with 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-hl7v2 sends over MLLP (#1281). mllp::send opens 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 own SendError variant, 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_bytes and [server.tls], and [telemetry] environment.
  • GET /operator/readiness behind 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 eehrxf crate, 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 through fhirconnect (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 id fhirconnect 0.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 by scripts/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 eehrxf suites write. The CI fhir-validator job runs it offline over every patient summary document the suites emit under EEHRXF_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 the eehrxf-fhir-validation artifact (scripts/checks/fhir-validator.sh) (#1318).
  • The CDR client reads RFC 9457 problem details. A CDR that answers its refusals as application/problem+json keeps its explanation on the facade: the problem’s title, detail, each errors violation as path: detail, and its type reach the OperationOutcome diagnostics, as a {message, validationErrors} body still does. The composition and contribution writes already send Prefer: return=representation, so a CDR that lists violations only for such a write lists them (#1334).
  • The run report of etl fhir carries an element ledger (#408): per input resource, every element with a value and one of four outcomes. mapped names the openEHR node a FHIRconnect mapping read the element into and the CDM table.column targets an OMOCL column reads there, dropped names the loss a mapping declared, refused the reason the resource or its composition was refused, and unmapped marks an element no mapping names or no column reads where it went. The text report adds a ledger line with the counts. fhirconnect 0.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), and ferrobridge-hl7v2 moves to 0.1.147.

Changed

  • openehr-mapping-core and ferrobridge-operator-api compile for wasm32-unknown-unknown, so the operator console’s browser half can draw the bridge’s documents. The workspace takes openehr-its without 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 CapabilityStatement reaches the browser reduced to the new ferrobridge-operator-api capability::Capability document, 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/edit or /api/run and 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 /playground and its tabs) are gone (#1265).
  • The operator console takes FerroUI 0.5.4 (=0.5.4, from 0.5.1). It hydrates through FerroUI’s widget::hydration::hydrate, so the page’s mark is data-ferroui-hydrated and 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_edit editors 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 $tofhir answers, 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 $tofhir gives the same occurrence; an entry’s LOCATABLE.uid no longer becomes its id. The facade finds the occurrences the way the engine does, so a start archetype inside a SECTION, 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_store file to reset it, and the bridge creates it anew. fhirconnect 0.1.205 (with ferrobridge-hl7v2 0.1.163 and eehrxf 0.1.129) adds engine::traverse::occurrence, which names the occurrences to_fhir_each maps without running the program (#1276).
  • Breaking for stored resource ids: $tofhir ids follow the FHIRconnect deterministic id (#1276). A resource the identity seam and the mapping give no id takes the hash engine/id-management.adoc §Deterministic IDs recommends, over the composition’s object_id and the entry path of its occurrence, as 52 lowercase base32 characters, in place of the composition’s object_id and the <uid>.2 form. An id a caller stored from an earlier $tofhir answer no longer matches; map the composition again to read the new id. The identity seam’s request carries the entry path, and fhirconnect::engine::identity and WebTemplateIndex::entry_path are the shared derivation the FHIR facade adopts next.
  • ferrohealth-smart 0.7.3 for the workspace and ferrobridge-term’s smart feature (ferrobridge-term 0.1.138, with ferrobridge-hl7v2 0.1.155 and ferrobridge-validator 0.1.138). It renders every secret and masked URL of the shared sections through ferrohealth-secret, the family’s one mask: a secret shows as *** in place of [redacted], and a masked URL hides its query too (#1278).
  • ferrobridge-term 0.1.139 requires ferrohealth-smart 0.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 pinning ferrobridge-term exactly (#1282).
  • ferrohealth-smart 0.8 (caret 0.8.3) for the workspace and ferrobridge-term’s smart feature (ferrobridge-term 0.1.140, with ferrobridge-hl7v2 0.1.159 and ferrobridge-validator 0.1.140), so a product on the 0.8 line hands its TokenSource to the terminology client. This breaks the smart feature’s API for a consumer still on ferrohealth-smart 0.7: it moves to 0.8 with this release (#1285).
  • The operator console runs on the FerroSYS crates (#1287): its configuration through ferrohealth-config and ferrohealth-secret (every FERROBRIDGE_CONSOLE__ variable keeps its name, --set joins them, RUST_LOG is the alias of the new [telemetry] filter), its log through ferrohealth-telemetry, and its security headers, same-origin check, health routes, drain, healthcheck and subcommands through ferrohealth-server. config check prints the running configuration with every secret as ***; healthcheck asks /health/readiness; GET /health answers {"state":"up"}; a _file secret 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-smart 0.8.6 and the openehr-* crates 0.0.109 (#1287). The workspace requires ferrohealth-smart as the caret 0.8.6 and the nine openehr-* crates at 0.0.109, the newest releases on crates.io on 2026-10-27, and still takes openehr-sdt with flat alone. An INTERVAL_EVENT’s math_function now reads back through FLAT with the openEHR terminology’s text for its code, which the fhirconnect round-trip law records as a change. openehr-mapping-core 0.1.134, fhirconnect 0.1.202, ferrobridge-term 0.1.141, ferrobridge-hl7v2 0.1.160 and ferrobridge-validator 0.1.141 follow their requirements.
  • The server runs on the FerroSYS crates (#1287): ferrohealth-config, ferrohealth-secret, ferrohealth-telemetry, ferrohealth-health, ferrohealth-server and ferrohealth-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 _file secret loses its trailing line ending alone and an empty file is refused; a [telemetry] filter that 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: phase beside state, the indicators as a list sorted by name, readiness 503 while the process boots or drains, GET /health answers the state alone, and the open route names no indicator’s detail. The request log never logs the client’s X-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/info names 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 edits CHANGELOG.md, so two open pull requests stop conflicting on [Unreleased]. The release cut assembles the fragments into the version’s section with scripts/release/changelog.sh --assemble and deletes them, and the release plan job 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 the no-changelog label. scripts/gh/changelog-merge.sh is retired (#1289).
  • serde-saphyr 2.0.0. The mapping loader, the search declaration reader and the fuzz targets parse YAML with serde-saphyr 2.0.0. A consumer of openehr-mapping-core that walks the source of LoadError::Yaml now meets serde_saphyr::Error of 2.0.0, whose AliasError carries the original error. openehr-mapping-core 0.1.135, fhirconnect 0.1.203 and ferrobridge-hl7v2 0.1.161 follow their requirements (#1315).
  • jsonschema 0.59.0. The FHIRconnect and OMOCL mapping schemas are checked with jsonschema 0.59.0, which refuses a value whose regex match the engine cannot finish where 0.58 accepted it under not or patternProperties. fhirconnect 0.1.204 and ferrobridge-hl7v2 0.1.162 follow their requirements (#1317).
  • Breaking: the canonical URLs eehrxf defines move to ferrobridge.eu. The archetype-local code systems are https://ferrobridge.eu/fhir/CodeSystem/archetype-local/ followed by the archetype id, and the remaining-dispensations extension is https://ferrobridge.eu/fhir/StructureDefinition/remaining-dispensations, where they were under ferrofed.eu. The FerroBRIDGE site serves the extension’s StructureDefinition at 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. eehrxf 0.1.130 (#1319).
  • Breaking: a resource a run creates takes one id on $tofhir and on the FHIR facade, and keeps it in every composition version. A further hierarchy.split occurrence and a reference target are named by fhirconnect::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’s unique values. $tofhir framed 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. $tofhir now maps each occurrence on its own (engine::traverse::occurrence::to_fhir_at) with an identity sink anchored at it. fhirconnect 0.1.206 (with ferrobridge-hl7v2 0.1.164 and eehrxf 0.1.131) (#1332).
  • Problem details for every error outside the FHIR routes (#1333, RFC 9457). The operator API answers every refusal as application/problem+json with the status it answered before, where it answered a JSON object with error and message. Each problem’s type links to its section of the new Problem types page of the book, such as https://ferrobridge.eu/docs/operate/problems.html#provisioned, and a refusal whose status says all there is to say is about:blank. The stack’s own 408, 413, 429, 503 and panic 500 on a non-FHIR route are problems too, the request id as a urn:uuid: instance. No problem quotes a path, a mapping body, a reason, a token or an upstream answer; a 503 of a reload names its cause in the server log. The FHIR facade and the operations keep OperationOutcome. The operator console reads a problem’s title and detail into the refusal it draws. Migration: a client of the operator API reads type, title and detail in place of error and message. The server takes ferrohealth-server 0.3.9.
  • The bridge writes the composition’s language, territory and composer, the _feeder_audit, _link:i, _participation:i, _other_participation:i, _provider and _health_care_facility families, and a role’s performer whole, under |raw (#618, #1000), through the openehr-sdt 0.0.99 builder. A composer that carries identifiers, and a provider or facility with an external reference, now reach the composition whole, where the ctx/ keys and the suffix spellings left those parts out or refused them. A party builds through build_party, with each member of a value at the root passed as <root>/<attribute>|raw. The last local openEHR spellings of #618 are gone. fhirconnect 0.1.197, openehr-mapping-core 0.1.132, ferrobridge-hl7v2 0.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 through openehr-am’s FromStr for ArchetypeHrid, so the server no longer depends on openehr-adl. A TERMINOLOGY_ID is built with openehr-base’s TerminologyId::new. The change_type and lifecycle_state codes and rubrics of a commit come from openehr-term’s named concepts, now a direct dependency. What the bridge writes is unchanged. fhirconnect 0.1.195, openehr-mapping-core 0.1.130 and ferrobridge-hl7v2 0.1.149 carry the new pins. fhirconnect removes the public fhirconnect::engine::lens::code_phrase::terminology_id; a caller uses TerminologyId::new(system, version).

Fixed

  • A manual entry 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 the current_state and the careflow_step below one ism_transition wrote 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_each maps every occurrence to its own resource, with the context’s condition checked per occurrence, and traverse::to_fhir maps the first and reports the rest as the unmapped-occurrences warning.
  • The [etl] queries must end their ORDER BY in v/uid/value. The versions of one contribution share its commit time (openEHR RM Common 1.1.0, Contributions), so a composition query ordered by v/commit_audit/time_committed/value alone could tie, and offset paging over a tie can skip or repeat a row. etl run now refuses to start when the composition or visit query’s last order key is not the uid/value of its VERSION [LATEST_VERSION] variable; add , v/uid/value to the end of the ORDER BY to upgrade. The book’s composition query is the batch contract over VERSIONED_OBJECT, and the end-to-end tests run against the reference CDR release that takes VERSIONED_OBJECT in FROM (#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’s smart feature take ferrohealth-smart 0.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-term 0.1.137, ferrobridge-hl7v2 0.1.152 and ferrobridge-validator 0.1.137 carry it, so a product pinning ferrobridge-term can take the patched crate (#1264).
  • The server and the operator console take ferrohealth-server 0.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 failed accept at once and logged every failure. Such a connection now closes once [server] header_read_timeout_ms passes, counted from accept, and the listener backs off after an EMFILE or ENFILE. A response to a request whose body the routes left unread, such as a 404 to a POST of an unserved path, now carries Connection: 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 fhir writes names the FHIR resource it was mapped from (#409): the bridge schema’s resource_origin table records each composition’s resource type, id and meta.versionId in the commit’s transaction, and CdmWriter::origins_of_row and rows_of_resource look a row’s resources and a resource’s rows up. cdm init adds the table.

  • ferrobridge_eu_laboratory.context targets HL7 Europe Laboratory Report 2.0.0 over the published KDS_Laborbericht template: the laboratory result becomes a DiagnosticReport-eu-lab that references one Observation-resultslab-eu-lab per analyte and one Specimen-eu-lab per 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, laboratory category, code, quantity, interpretation and method; the specimen’s type, accession identifier, received time and collection. The mapping library’s eehrxf_lab context is recorded as refused (#1235). The testkit exposes the template as KDS_LABORBERICHT_OPT (#116).

  • ferrobridge-term 0.1.135 takes the client credentials token of ferrohealth-smart as its TokenProvider behind the new smart feature (#1227): smart::SmartToken, built from a TokenSource, sends the cached token and drops one the server refuses with 401, so the repeated request carries a token fetched anew. The server’s terminology lane uses it in place of its own adapter. ferrobridge-hl7v2 0.1.144 and ferrobridge-validator 0.1.135 move with it.

  • The first HL7 Europe profile context: ferrobridge_eu_condition.context targets Base and Core 2.0.0 condition-eu-core over the published KDS_Diagnose template, with the published diagnosis, qualifier and composition model mappings and FerroBRIDGE’s extensions for the profile’s assertedDate extension and onsetDateTime slices and its canonical. The round trip asserts the code, both slices, clinicalStatus and verificationStatus (#116).

  • ferrobridge mapping check --vocabulary checks 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.context targets HL7 Europe Base and Core 2.0.0 patient-eu-core over the published KDS_Person template, 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 required name and birthDate, gender and the canonical (#116).

  • The profile package set pins hl7.fhir.eu.laboratory 2.0.0 and hl7.fhir.eu.mpd 1.0.0, the HL7 Europe Laboratory Report and Medication Prescription and Dispense guides the EU profile contexts target, fetched with their provenance by scripts/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, plausibleBeforeDeath and plausibleStartBeforeEnd, each planned where the Dashboard’s v2.9.0 settings enable it, with its threshold, and translated from its SQL template, which scripts/vendor/dqd.sh now vendors. dq check and the post-load step of etl run report them. A person whose year of birth is 0, as a placeholder PERSON row 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 _file secret key, stable across runs so incremental loads join, the provider’s name, npi and dea and a location’s address are NULL, and date_shift_days moves 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 init and every etl run and etl fhir count 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 as foreign_rows (#240). The Operate page states that one bridge owns the tables it writes and that era ids are not stable across rebuilds.

  • ferrobridge-hl7v2 0.1.143 serves a consumer of its listener and parser alone. parse::structure::structure_declared selects the structure MSH-9.3 names over the message definition where the two disagree, so an IHE ITI-8 ADT^A05^ADT_A01 groups 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::UnknownKeyIdentifier is table 0357’s 204 (#1218). mllp::Connection::peer gives a handler the address of its connection’s peer (#1220). map and its dependencies (fhirconnect, ferrobridge-term, fhir-types and the openEHR crates) sit behind the default map feature, so default-features = false drops them (#1221). A consumer that matches ErrorCode exhaustively 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-details with committer.name set to the token’s sub (or the Basic user-id) and a committer.external_ref in the issuer’s namespace, and a transaction states the same committer in every UPDATE_AUDIT of its CONTRIBUTION. system_id keeps 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) through ferrohealth-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 with scope, client_id and exp admits the caller with its scopes and patient context, the answer is held until its exp and at most cache_max_age_seconds, an inactive token answers 401 and an endpoint that fails 503 (#533). The Operate configuration page lists the keys.

  • ferrobridge etl fhir PATH loads 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.versionId and subject, so a re-run writes the same rows, and the run report counts the resources read, mapped, unmapped and refused. [etl] aql becomes optional at load; etl run refuses to start without it.

  • ferrobridge vocab load DIR --schema NAME loads an OHDSI Athena vocabulary download into the vocabulary tables of the CDM schema (#233). It takes the nine files every download carries and SOURCE_TO_CONCEPT_MAP.csv when present, replaces each table in a transaction of its own through COPY with 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 under docs/specs/athena/ by scripts/vendor/athena.sh (#88). The Operate pages describe the load and the vocabulary licences you accept.

  • FHIRconnect converts DV_ORDINAL against CodeableConcept (DV_ORDINAL.adoc §CodeableConcept, #93): the coding carries the symbol, and going into openEHR the ordinal value is the one the template’s C_DV_ORDINAL lists for the symbol’s code. A symbol the template does not list, or a node whose template lists no options, is refused. fhirconnect 0.1.191 adds RmValue::Ordinal, lens::ordinal and a fifth parameter to cell::put, the node’s ordinal options; a caller of cell::put passes &[] where it has none.

  • An OMOCL mapping’s provider_id and visit_detail_id now write (#243): the record graph names a PROVIDER by the text the mapping reads and a VISIT_DETAIL by 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 the provider and visit_detail key tables, which cdm init creates on an existing schema.

  • The OMOCL Death target writes its DEATH row (#1208): the row takes the person’s person_id as 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 init adds the death_row side table and lets several compositions of a person record a DEATH row.

  • The Data Quality Dashboard’s six completeness checks run in Rust beside its conformance checks (#405): measurePersonCompleteness, measureConditionEraCompleteness, measureValueCompleteness, standardConceptRecordCompleteness, sourceConceptRecordCompleteness and sourceValueCompleteness, 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 check runs the ported Data Quality Dashboard checks against the database [cdm] names and prints the failing checks and the counts, or with --format json the 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 run runs 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/time under an ACTION no longer refuses with fc-uncarried-tail, and the engine writes and reads it as the action’s time, the way it carries an observation’s history origin. A FHIR Procedure’s performedDateTime now reaches ACTION.time, and on the etl fhir path the PROCEDURE_OCCURRENCE.procedure_date OMOCL reads from it. fhirconnect moves to 0.1.192 and ferrobridge-hl7v2 to 0.1.145. Breaking for a consumer of fhirconnect::engine::rm: Carried::HistoryOrigin is Carried::EntryTime, and HISTORY_ORIGIN and HISTORY_ORIGIN_KEY are ENTRY_TIMES and entry_time_key.
  • A run rebuilds OBSERVATION_PERIOD, CONDITION_ERA and DRUG_ERA only 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_ca set, 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’s smart feature take ferrohealth-smart 0.7.0 in place of 0.6.0, the line the family moves to together: ferrobridge-term 0.1.136, ferrobridge-hl7v2 0.1.146 and ferrobridge-validator 0.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/answer route 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_options returns the options an OPT 1.4 C_DV_ORDINAL constrains at a DV_ORDINAL node, in template order: each OrdinalOption carries the ordinal value and the code and terminology of its symbol, and a node with no ordinal constraint answers None. openehr-mapping-core moves to 0.1.127, fhirconnect to 0.1.186 and ferrobridge-hl7v2 to 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 for Prefer: return=OperationOutcome lists them after the committed version, one issue per loss with the FHIRPath in expression and the openEHR path in details (#1115).
  • GET /operator/configuration answers 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 is ferrobridge_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_scope is answered as the scope the bridge runs on, __ferrobridge.operator (#1147).
  • hl7v2-types (Apache-2.0) and ferrobridge-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 of ferrobridge-hl7v2 carry tested # Examples. Pin each exactly, as for every crate of the line (#1131).
  • ferrobridge-term 0.1.130 sends ValueSet/$expand and CodeSystem/$subsumes, on STU3, R4 and R4B and in a batch. Client::expand takes an Expansion (url, valueSetVersion, date, filter, offset and count, includeDesignations) and answers the expanded value set with the nesting of expansion.contains kept, each entry with its system, version, code, display, abstract, inactive and designations; a value set the server does not know is ExpandOutcome::NotFound carrying the OperationOutcome and its tx-issue-type, and an expansion the server could not make is a refusal, never an empty expansion. Client::subsumes answers SubsumesOutcome: Equivalent, Subsumes, SubsumedBy or NotSubsumed. Client::code_system_count asks GET [base]/CodeSystem?url=<system>&_summary=count. ferrobridge-validator moves to 0.1.130 and ferrobridge-hl7v2 to 0.1.128 with it (#1177).
  • ferrobridge-term 0.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 for Client::new (#1180).
  • ferrobridge-term 0.1.131 validates a code whose system its context implies: Coded::InContext sends ValueSet/$validate-code with context, code and display and no system, which R4 and R4B accept (“If a code is provided, a system or a context must be provided”), alone or in a batch. STU3 requires a system for a code, so an STU3 client refuses the form with the new Error::SystemRequired and sends nothing, and Client::check answers the same (#1181). ferrobridge-validator moves to 0.1.131 and ferrobridge-hl7v2 to 0.1.129 with it.

Changed

  • fhirconnect 0.1.188 moves engine::rm::NULL_FLAVOUR, NULL_REASON and null_flavour_of to engine::rm::null_flavour, which breaks an import of them: name them through engine::rm::null_flavour:: (#1194).
  • A transaction entry whose mapping links a resource as a composition of its own is refused with 422 and not-supported, naming why and the ways that commit it: the resource on its own, or as an entry of a batch, whose entries commit one at a time and follow the link as a single create does (#1120).
  • ferrobridge-term 0.1.130 carries the date input of CodeSystem/$lookup and ValueSet/$validate-code: Client::lookup_at sends it, and Request::Lookup and Validation gain a date field. This breaks a struct literal of either: add date: None where no date is meant (#1177).
  • SECURITY.md states 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-types XML codec holds a narrative div to well-formed XHTML both ways: xml::to_xml refuses a div that is no well-formed XHTML div in the XHTML namespace with an EncodeError naming its element path, such as Basic.text.div, and xml::from_xml refuses 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-types moves to 0.1.128, fhirconnect to 0.1.189, ferrobridge-term and ferrobridge-validator to 0.1.134, ferrobridge-fhirpath to 0.1.128 and ferrobridge-hl7v2 to 0.1.140 with it (#1178).
  • A coding with no display written into a DV_TEXT, whose value would otherwise fall back to the coding’s code, is looked up through CodeSystem/$lookup as one written into a DV_CODED_TEXT is: the display becomes the value, an unknown code refuses unless [terminology] display_fallback is set, a failed call refuses, and with no server the code stands. fhirconnect moves to 0.1.185 and ferrobridge-hl7v2 to 0.1.134 with it (#1188).
  • An untyped dateTime mapped onto an ELEMENT whose value admits DV_TEXT and DV_DATE_TIME converts into DV_DATE_TIME whatever the template order: a class that pairs with the FHIR type directly outranks the text fallback. fhirconnect moves to 0.1.181 and ferrobridge-hl7v2 to 0.1.130 with it (#1114).
  • $toopenehr and $tofhir answer 502 with the issue type transient when 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 a 422 (#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.sh composes now end with a link to it, and the composition refuses when the book does not list the page. SECURITY.md names the operator console’s release tarballs and site bundle among the supported artefacts.

  • The eighth mappingCode function of the published FHIRconnect library, ehrStatusAddExternalREF, is registered (#1065), so KDS_admin_entry_person.yml loads in the published person context. It writes no template node: it offers each Identifier the mapping reads as the subject of the EHR, on the new Outcome::subject channel (fhirconnect::engine::subject::SubjectIdentifier), and coming out of openEHR it is declared skipped (SkipReason::EhrStatusSubject). The facade writes it into EHR_STATUS.subject.external_ref through ITS-REST 1.1.0 ehr_status_update with If-Match on the version it read, before the composition is committed, for the identifier of the new [facade] ehr_status_identifier_system key. An EHR_STATUS that names another subject answers 409, a CDR refusal answers through the status table with nothing committed, and with the key unset a write whose mapping offers identifiers answers 422 naming the key. New for a consumer of fhirconnect: MappingFunctions::writes_subject and to_subject, with defaults, and the SkipReason variant. fhirconnect 0.1.180.

  • A FHIRconnect mapping that names an EVENT node itself, with a FHIR time on the other side, writes and reads the event’s time (#1059), as types-of-mappings/data-type/EVENT.adoc §POINT_EVENT and INTERVAL_EVENT pairs them. A dateTime, instant or date is a POINT_EVENT’s time; a Period is an INTERVAL_EVENT whose time is Period.end, whose width is the span back to Period.start and whose math_function is the RM default 640|actual|. A choice element such as effective[x] picks the class from the alternative going in and from the event’s class coming out. A FHIR time, a period with a missing or partial bound, and a non-choice element of the other class are refused; an interval event whose math_function is not actual declares it as a loss going out. WebTemplateIndex::amend edits 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::EventTime and SkipReason::EventFunctionUncarried. laboratory_test_result.v1.yml:120 and :448 no longer warn fc-anchor-without-children. openehr-mapping-core 0.1.126, fhirconnect 0.1.179.

  • FHIRconnect LINKED mappings (#94): a link whose FHIR side names a resource, such as a Condition’s encounter, now commits that resource as a composition of its own through the context its meta.profile names, and writes ehr:/<ehr_id>/compositions/<versioned_object_uid> into the linking composition’s LINK.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 a POST would 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 one CONTRIBUTION, and $validate runs the link without committing. The engine gains the engine::linked::LinkedCompositions seam (Seams::with_linked), SkipReason::UnmappedLink and ReferenceError::Link; a run with no seam refuses as before. fhirconnect 0.1.174.

  • The FHIRconnect engine converts ELEMENT.null_flavour against the code of the R4 data-absent-reason extension both ways (#93), through engine::lens::null_flavour with GetPut and PutGet property tests and a test per entry of its committed table. A tail on the element reaches null_flavour as the _null_flavour family of the node the element shares with its value, with _null_reason beside it. FHIRconnect NULL_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 in null_reason, and refuses a code outside either set. Breaking: SkipReason gains NullReasonUncarried, the declared loss of a null_reason that names no code, so a consumer that matches SkipReason exhaustively adds the arm. fhirconnect 0.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 Formats history_origin of the observation and reads it back from HISTORY.origin. An OBSERVATION whose HISTORY carries events, each with an ITEM_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 gains ferrobridge_observation_events (5 of 5). fhirconnect 0.1.171.

  • Going into openEHR, a coding that carries no display now has its display resolved through CodeSystem/$lookup on the [terminology] server (#95), as the FHIRconnect DV_CODED_TEXT page recommends. A found display becomes the DV_CODED_TEXT value. 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 one batch per round. The FHIRconnect terminology seam gains lookup and display_fallback, both with refusing defaults. The engine answers EngineError::UnknownDisplay and EngineError::DisplayLookup. fhirconnect 0.1.170.

  • Five more mappingCode functions of the published FHIRconnect library are registered (#95). timingToDaily writes a frequency per one unit of time as the 1/<unit> frequency of the daily timing cluster (or an interval of them with frequencyMax), one event per longer period as the interval between doses, and the one time of day. dosageQuantityToRange writes a dose Range as an included DV_INTERVAL<DV_QUANTITY>. rangeToText writes a rate Range as the text <low> <code> - <high> <code>, the only form the rate element admits beside a quantity. ratio_to_dosage and ratio_to_dosage_action write a rate Ratio (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’s DV_QUANTITY and DV_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 polymorphic ELEMENT now reads only the value node whose _type matches. The library’s dosage.v2.yml, dosage.v2.BackboneElement.yml and timing_daily.v1.yml now load, so the medication statement context gets to compile. Its refusals there are recorded on #101. It landed in fhirconnect 0.1.169 beside #1076, with no version of its own.

  • The FHIRconnect engine converts a scalar Integer or Integer64 tail against FHIR integer and a scalar Real tail against decimal both ways (#1081), through engine::lens::scalar with GetPut and PutGet property tests; going out these refused with no cell. A value outside FHIR’s 32-bit integer is refused going out, and a decimal whose text the Real cannot render back (5.40, 1e3) is refused going in, where it was rounded to the nearest binary number with no loss declared. fhirconnect 0.1.173.

  • The FHIRconnect engine converts DV_QUANTITY against Quantity, decimal and integer, and DV_COUNT against integer, Quantity and Count (#93), each a lens with GetPut and PutGet property tests over the tables of FHIRconnect DV_QUANTITY.adoc and DV_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 (R4 qty-3), units_display_name is the counterpart of unit, and a magnitude_status no comparator states, a magnitude with more places than its precision, a count outside FHIR’s 32-bit integer and a comparator into a count are typed refusals. FhirKind, FhirValue and RmValue gain variants, so a consumer that matches them exhaustively adds the arms. fhirconnect 0.1.163.

  • A FHIRconnect PROGRAMMED mapping now runs a registered function (#95). fhirconnect::engine::library::Library is 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’s with.openehr, and the compiler resolves each port against the template at load: a port the template lacks is fc-unknown-template-node, one below a repeating node fc-repeating-function-port, and ports under a mapping with no openEHR side fc-unanchored-function-port. The first two functions of the published library are registered: dosageDurationToAdministrationDuration (Timing.repeat.duration and its unit against the administration duration) and timingNonDaily (a timing once per week, month or year against the interval of the non-daily timing), both converting through the engine’s DV_DURATION cell and refusing what they cannot carry. The library’s timing_non_daily.yml now loads in every published context. Breaking for consumers: MappingFunctions takes the FHIR element and the port values, Method::Programmed carries its ports, and MappingCodeRegistry gains ports. fhirconnect 0.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.sh from the openFHIR commit docs/VERSIONS.md pins, with a sha256 and a PROVENANCE.md: Fall einfach, Laborbericht, Medikationseintrag, Medikamentenverabreichungen, Person Pseudonymisiert, Prozedur, Studienteilnahme, Todesursache and Vitalstatus. The fhirconnect suite 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_TIME against time and DV_DURATION against Duration (#93). The duration cell runs the UCUM to ISO 8601 bridge of FHIRconnect DV_DURATION.adoc, the eight CommonUCUMCodesForDuration rows 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, and ms is 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 R4 time cannot state. fhirconnect 0.1.164.

  • The FHIRconnect engine converts DV_URI against url, and DV_MULTIMEDIA and DV_PARSABLE against Attachment (#93), from FHIRconnect DV_URI.adoc, DV_MULTIMEDIA.adoc and DV_PARSABLE.adoc. A parsable value travels base64 encoded as Attachment.data, its formalism as the content type only when it is itself a media type (the page gives no table), and a multimedia integrity_check is hash only for SHA-1, the algorithm R4 names. A compressed multimedia value is refused going out, since an Attachment has no field for the algorithm, and an attachment with data and no size takes the decoded length, a one-way row. fhirconnect now depends on base64. fhirconnect 0.1.165.

  • A FHIRconnect mapping writes a Coding, an Identifier or a Reference into an openEHR String attribute and reads it back (#93), the cells of FHIRconnect String.adoc: a coding travels as system::code, an identifier as system::value, and a reference as its identifier, or as its reference string 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 a String attribute against those elements refused with no cell. fhirconnect 0.1.166.

  • The FHIRconnect engine converts DV_INTERVAL<DV_QUANTITY> against Range (#93), the Range table of FHIRconnect DV_INTERVAL.adoc, each bound through the DV_QUANTITY cell. An absent bound is the unbounded side, as the Period cell reads it, and an excluded bound or a bound with a comparator, which no Range states (R4 sqty-1), is refused. A node the Web Template types DV_INTERVAL<DV_DATE_TIME> or DV_INTERVAL<DV_QUANTITY> now reaches its cell and its pairs by the class DV_INTERVAL; before, the generic name matched no cell and a run over such a node refused. fhirconnect 0.1.167.

  • The shipped datatype-pl-to-location supplement writes PL.11, the assigning authority, into the identifier.assigner of 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 as unsupported-target; the supplement spells them as one row per level under that level’s condition. The vendored hl7v2 corpus loses 22 unsupported-target outcomes.

  • ferrobridge-hl7v2 ships 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’s ADT_A01.PD1 row ADT_A06.PD1, so ADT_A06 messages map too. The hl7v2 corpus 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-hl7v2 gains the batch module. The ReportStream sample-batch-pdi-20210608-0001.hl7 file now passes the hl7v2 corpus.

  • 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-component and extra-subcomponent outcomes (#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 type onto an ELEMENT whose value admits several data types converts the ELEMENT’s own value, then runs its followedBy children (#544), as FHIRconnect FollowedBy.adoc orders them (“after the parent mapping method has been executed”). The compiler picks the value alternative whose class lists the FHIR type earliest in resolve::derive::PAIRS, the first in template order on a tie (our own design), and the program carries it as Derived::Value; such a mapping was an anchor that wrote nothing. The statutory insurance identifier of the library’s versicherungsinformationen.v0 now round-trips in the KDS person chain as a DV_IDENTIFIER, and the two collected mappings of specimen.v1 no longer warn fc-anchor-without-children. Derived gains a variant, so a consumer that matches it exhaustively adds the arm. fhirconnect 0.1.158.

  • fhirconnect::operations::run::to_fhir takes the id of the mapped resource from a caller-supplied identity seam when the seams carry one (#619): Seams::with_resource_identity over the new engine::seam::ResourceIdentity trait, which answers a ResourceRequest (the resource type, the template, the composition’s OBJECT_VERSION_ID and the id the mapping wrote). A seam that refuses ends the run with OperationError::Identity, and an id outside the R4 id grammar with OperationError::InvalidId. Without a seam the id still derives from the written id or the composition’s versioned_object_uid. FHIRconnect engine/id-management.adoc has 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. OperationError gains two variants, so a consumer that matches it exhaustively adds the arms. fhirconnect 0.1.156.

  • [auth] scopes_supported: the scopes the bridge honours, listed as scopes_supported in 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’s split feature on, since its site builds with cargo 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’s flame, message-square, table-2 and plug glyphs; 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=provisioned names 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’s send glyph for the HL7 v2 senders and book-open for 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.vendor label and index annotation of ghcr.io/ferrohealth/ferrobridge and ghcr.io/ferrohealth/ferrobridge-console read Cadasto B.V. where they read FerroBRIDGE (#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 ### Security entries name no GHSA- advisory or security/vex/ statement, or that mixes security and functional changes without saying why (CRA Annex I Part II(2)); scripts/release/preflight.sh vX.Y.Z runs the same checks before the tag. SECURITY.md adds info@cadasto.com as a reporting route and describes the advisory each fix is published with.

  • The ferrobridge and ferrobridge-console images 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 carries ferrobridge-vX.Y.Z-vulnerability-record.json: every finding of a full scan of both images and the server tarballs, joined with the OpenVEX statement under security/vex/ that judges it. The release is refused while a finding has none. security/vex/rust-advisories.openvex.json publishes the argument for each advisory deny.toml accepts, and the published images are scanned every week with those documents applied.

  • Breaking: the operator console is renamed from ferrobridge-viewer to ferrobridge-console (#1133), as every FerroHEALTH product names its operator UI. The crate and its binary are ferrobridge-console (app/ferrobridge-console), the image is ghcr.io/ferrohealth/ferrobridge-console, built by the reusable release-console.yml from docker/console/Dockerfile, and the ferrobridge-viewer image is no longer built. Upgrade note: change the image reference to ghcr.io/ferrohealth/ferrobridge-console; rename the environment variables from FERROBRIDGE_VIEWER__ to FERROBRIDGE_CONSOLE__ and FERROBRIDGE_VIEWER_CONFIG to FERROBRIDGE_CONSOLE_CONFIG; in compose.yaml the profile and service viewer are console and the secret file secrets/viewer_oidc_client_secret is secrets/console_oidc_client_secret, mounted at /run/secrets/console_oidc_client_secret; the compose variables FERROBRIDGE_VIEWER_PORT and FERROBRIDGE_VIEWER_OIDC_CLIENT_SECRET_FILE are FERROBRIDGE_CONSOLE_PORT and FERROBRIDGE_CONSOLE_OIDC_CLIENT_SECRET_FILE. The session, sign-in and theme cookies are renamed from ferrobridge_viewer_* to ferrobridge_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, $toopenehr and $validate tabs, 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: /files is /mappings/files, /files/{path} is /mappings/files/{path}, /edit is /mappings/new, /edit/{path} is /mappings/edit/{path}, /validate is /playground/validate, and /capability is /facade/capability and /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-start and _hints (under __Host- when the cookies are secure), with Reset to defaults clearing them. The sidebar folds to a rail, kept in ferrobridge_console_sidebar. Upgrade note: every operator chooses the theme again; nothing to configure.

  • Breaking: a sign-out with no end_session_endpoint configured 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 status 401, 502 or 503. 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 $toopenehr answer in the playground shows the composition its composition parameter carries, with the issues of its outcome above 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_empty lint is answered in the tests it names, which moves fhirconnect to 0.1.179 with no API change, since its unit tests live under src/.

  • 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-Language like 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 Gateway when a mapping reads it (#94): a sending site that answers a status other than 404 or 410, times out, or answers a body that is not the referenced resource, and a CDR read that fails, are upstream failures, which engine/Fail.adoc does not let a mapping drop. The single create and update, a transaction and $validate all answer it, and the OperationOutcome names 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, ORGANISATION and ROLE (#965). The facade’s party search runs identifier, name, _id and _count on Patient, Practitioner, Organization and PractitionerRole against it and finds the parties the test created, paged and with a deleted party left out. A search configured over GROUP, AGENT or PARTY_RELATIONSHIP, which the CDR refuses, answers 501 not-supported naming the Cadasto experimental AQL demographic extension.

  • The FHIRconnect engine’s data-type cell dispatch is a module folder, engine::cell with the held-value readers in a child module (#1079), under the file-length threshold. Behaviour and public API are unchanged. It landed in fhirconnect 0.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-core 0.1.121 parses a mapping header’s spec.openEhrConfig.archetype through the openehr-base BASE 1.2.0 ArchetypeId and drops its own copy of the grammar (#1026). The accepted form is unchanged: FHIRconnect v1.0.0 writes the header’s archetype as openEHR-EHR-ACTION.informed_consent.v0 and 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 on ArchetypeIdError: its Shape, QualifiedRmEntity, DomainConcept and VersionId variants are gone, and a refusal is now Lexical, carrying the openehr-base IdError as its source, or VersionRange for a version past u32. ArchetypeId::base returns the openehr-base value. fhirconnect 0.1.163 renders the new requirement.

  • Breaking: the facade, the operator API and the CDR and terminology lanes authenticate through ferrohealth-smart 0.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). serve refuses to start a facade, an operator API or a FHIRconnect operations lane until [auth] names issuer and audience, or until enabled = false (FERROBRIDGE__AUTH__ENABLED=false) serves them open. A server that serves only / and the health routes, and the jobs, read no [auth].
    • auth.audience is a list (audience = ["https://…/fhir"], and FERROBRIDGE__AUTH__AUDIENCE='["https://…/fhir"]'); a token’s aud must contain one of them.
    • auth.jwks_refresh_interval_ms becomes auth.jwks_refresh_interval_seconds (default 60), and auth.jwks_max_age_seconds (default 600) 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.algorithms defaults to RS256, RS384, PS256, PS384, ES256 and ES384, where it was RS256 and ES256.
    • auth.issuer may be plain http on a loopback host; elsewhere it stays https.
    • auth.operator_scope becomes auth.product_scope, and its default ferrobridge.operator becomes __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 Argon2id password_hash (or password_hash_file) and their scopes, jwks_file, and realm.
    • [cdr.credentials] and [terminology.credentials] lose user_file; the user-id is read inline from user.
    • [cdr.credentials.oauth] and [terminology.credentials.oauth] take client_auth = "private_key_jwt" with private_key_file, kid and assertion_alg, and timeout_ms (default 10000), which bounds a call to the token endpoint in place of the lane’s own timeout; an empty scope sends no scope parameter.

    The facade’s refusals keep their OperationOutcome bodies and challenges; two Authorization values, or a value that is no credential (a scheme with nothing after it), answer 400 with invalid_request (RFC 6750 §3.1), and a route the guard does not classify answers its 403 without a challenge. The discovery document no longer claims permission-v2, which SMART App Launch 2.2.0 defines as granular scope support the facade does not evaluate. The audit line moves to the ferrohealth_smart::audit target with the family’s field set: principal replaces subject, target (Condition/c-1) replaces resource_type and resource_id, and via, issuer and route are new. The operator API’s request line moves there too; a save or a reload still writes its change record on ferrobridge::audit. src/auth/ and src/cdr/oauth/ are gone from the server (#977), and ferrobridge_server::credentials::UpstreamToken hands 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.txt lists 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. The hl7v2 badge moves from 290 to 453 of 511 and the hl7v2-smoke badge 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-query and openehr-adl). 0.0.89 adds the openehr-sdt party builder, the builder option that names ARCHETYPED.rm_version, and the BASE 1.3.0 ARCHETYPE_ID grammar in openehr_base::v1_3, which now admits the namespaced ADL 2 form and a full version. openehr-mapping-core 0.1.119 and fhirconnect 0.1.160 render the new requirements.

  • A composition the bridge builds names each structure the FLAT form leaves out (an ITEM_TREE under 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). The openehr-sdt 0.0.89 builder does this.

  • ferrohealth-smart 0.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" with client_certificate_file and client_key_file for RFC 8705 §2 mutual TLS to the token endpoint, ca_file for trust roots added to the built-in ones, and assertion_audience = "issuer" for a private_key_jwt assertion that names the issuer (RFC 7523 §3) in place of the token endpoint.

  • ferrohealth-smart 0.3.1 and the openehr-* crates 0.0.90 (#1062), which ferrohealth-smart 0.3.1 pins; fhirconnect 0.1.168 and openehr-mapping-core 0.1.124 build on them. The facade and the operator API refuse a token whose sub is empty or whitespace only (RFC 9068 §2.2, RFC 7519 §4.1.2) and a bearer value outside the RFC 6750 §2.1 b64token syntax, each with the generic 401 invalid_token. An enabled [auth] section with Basic users and no issuer is refused at load: the discovery document and the CapabilityStatement name the issuer’s token endpoint.

  • ferrohealth-smart 0.2.0 (#1018). The SMART discovery document writes issuer and sso-openid-connect only when [auth] capabilities names sso-openid-connect; SMART App Launch 2.2.0 (Conformance, Metadata) omits issuer otherwise. A client that read issuer from the document reads the authorization endpoints it names, or the bridge advertises OpenID Connect sign-in by configuration. The document declares permission-v1, permission-patient and permission-user, the scopes the route table and the patient compartment enforce.

  • ferrohealth-smart 0.1.1 (#1007). The operator scope moves from [operator] scope to [auth] product_scope (environment FERROBRIDGE__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 is addressed, where it was target, so a JSON log keeps it beside the event’s own target; a log query that read target for the addressed resource reads addressed. [auth] capabilities refuses 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.

  • serve warns 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-core 0.1.120 passes the RM release it chooses to the openehr-sdt composition builder (#901), so the builder writes ARCHETYPED.rm_version and the walk that rewrote it afterwards is gone. The choice is unchanged: Release 1.1.0, unless the composition holds a GENERIC_ENTRY whose data is no ITEM_TREE.

  • openehr-mapping-core 0.1.120 builds a party through the openehr-sdt template 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 on PartyError: NoStructure, Unconstrained and InstanceGap are gone, and a value the builder refuses is the new PartyError::Build, which carries the openehr-sdt FlatError as its source. fhirconnect 0.1.161 renders the new requirement.

Fixed

  • A FHIRconnect untyped choice element that admits both Period and Range, mapped onto a DV_INTERVAL<DV_QUANTITY> node, is written as Range (#1080); it picked Period and the run refused with no cell. resolve::derive::PAIRS keys the interval rows by parameter (DV_INTERVAL<DV_DATE_TIME> with Period, DV_INTERVAL<DV_QUANTITY> with Range), an interval of any other parameter pairs with nothing and is refused at load, and the cells refuse a Period into a quantity interval and a Range into a date-time one. PAIRS gains two rows, so a consumer that reads the table sees them. fhirconnect 0.1.177.
  • A facade write, transaction or $validate whose mapping run fails because the terminology server failed (no answer, a timeout, a 5xx, a refused $translate or $lookup, an answer that does not decode) now answers 502 with transient and the upstream status in the diagnostics (#1094). It answered 422 with processing, as if the resource were wrong. A translation the server answers with no match stays the mapping’s 422.
  • A FHIRconnect mappingCode mapping, a manual mapping and a hierarchy.split inside a reference now 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.coding example ran. fhirconnect 0.1.173.
  • A value node of a polymorphic ELEMENT reads only a value of its own class (#1100). WebTemplateIndex::read let every alternative read the element’s one value, so a DV_INTERVAL was also read at the DV_QUANTITY node. The _type of the value now picks the alternative, the most specific class it conforms to, and WebTemplateIndex::alternatives and WebTemplateIndex::holds are new. A value with no _type at a polymorphic ELEMENT is PathError::UntypedAlternative, a new variant. In fhirconnect, a mapping whose type the compiler matched to one alternative refuses an ELEMENT that holds another, and an instance that holds another alternative still counts when the engine probes occurrences. openehr-mapping-core 0.1.125, fhirconnect 0.1.178.
  • A FHIRconnect DV_INTERVAL<DV_DATE_TIME> whose present bound is excluded is refused going out to Period (#1076), because both R4 Period bounds are inclusive; it was written as an inclusive bound with no loss declared. The refusal is a LensError::Shape naming DV_INTERVAL.lower_included or DV_INTERVAL.upper_included. fhirconnect 0.1.169.
  • A ^ run that climbs out of a referenced resource now runs in both directions (#94). The compiler accepted the worked ^^.use.coding example of basics/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 a reference mapping left with the occurrence it was entered at, and a condition targetRoot and the children of such a mapping anchor in that resource too. fhirconnect 0.1.170.
  • A FHIRconnect tail below a DV_INTERVAL<T> node, such as /lower below DV_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 /lower converts through the DV_QUANTITY cell. It was refused at load with fc-uncarried-tail, and a tail the parameter does not declare is still refused. fhirconnect 0.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 ELEMENT whose value admits several data types converts (#1055), the shape the published laboratory_test_analyte.v1.yml and vital_status.v1.yml write for Observation.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 an fc-anchor-without-children warning. Derived gains a variant, so a consumer that matches it exhaustively adds the arm. fhirconnect 0.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_I14 at 2.8 takes REF_I12, counted as other-structure, where it was refused with AR. The HL7/v2ig definitions carry no REF or RRI message, so fhir-codegen reads the interactions.json table of the IGAMT export and hl7v2-types gains message::LEGACY_EVENTS and message::legacy_events, every other code and event a legacy version’s interactions send one of its structures under. FHIR-Converter’s REF-I14-01 now 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-node warning, where it was refused with fc-unknown-template-node (#1040). FHIRconnect model-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_defines is the new openehr-mapping-core call behind it.
  • A FHIRconnect mapping onto $composition/context/end_time now compiles and round-trips (#1043). The engine writes EVENT_CONTEXT.end_time as the _end_time family of the context node, as Simplified Formats master05 §EVENT_CONTEXT spells it, and reads it back from the context, where it was refused with fc-uncarried-tail.
  • A FHIRconnect path that names an ELEMENT the Web Template compacts into its value now reaches the element’s links (#1042), as FHIRReference.adoc §Dedicated Node writes $openehrRoot/links below an element. A link there writes the element’s _link:i family and reads it back from the element, and a condition on links reads the element’s list; the resolver used to walk links on the value’s class and refuse it. openehr-mapping-core gains WebTemplateIndex::read_element and PathError::NotAnElementValue.
  • Two sibling FHIRconnect mapping methods that share a name now compile with an fc-duplicate-method-name warning, and the refusal moves to the overwrite or appendTo that names the shared name (#1041). FHIRconnect basics/body.adoc gives 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-reference outcome 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 vendored hl7v2 corpus carries 29 of them in 27 messages.
  • A Bundle entry member the HL7 v2 interpreter cannot write is a counted entry-unwritable outcome naming the resource and the path, where it was only a warning in the log (#316).
  • The defining_code of a DV_CODED_TEXT value read out to a FHIR string is a declared loss (#1011). The chapter writes no string row for DV_CODED_TEXT (FHIRconnect DV_CODED_TEXT.adoc §STRING calls the pairing not possible), so the value converts as DV_TEXT and its code was dropped with no trace; the run now reports it as a Loss::Skipped with the new SkipReason::DefiningCodeUncarried, located at the element and the value’s defining_code. A consumer that matches SkipReason exhaustively adds the arm. The facade’s loss log labels it skipped-defining-code-uncarried. fhirconnect 0.1.160.
  • $toopenehr resolves a reference mapping 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’s meta.versionId, and a relative <type>/<id> is read against the server base of the mapped entry’s fullUrl. Before, the seam matched only an exact fullUrl or <type>/<id>, so a versioned reference fell through to the further source. A reference two entries answer refuses the run with the new ReferenceError::Ambiguous, and BundleReferences::with_referrer names the entry whose references it resolves. A consumer that matches ReferenceError exhaustively adds the arm. fhirconnect 0.1.161.
  • The FHIRconnect operations answer a refusing identity seam and an id it answers outside the R4 id grammar as the server failures they are (#1012): 500 with the issue code exception for OperationError::Identity and 500 with value for OperationError::InvalidId, where both were a 400 with processing. OperationError::issue_type changes 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. fhirconnect 0.1.162.
  • A TERM_MAPPING that a DV_TEXT or DV_CODED_TEXT value carries out to a FHIR string, or a DV_CODED_TEXT value carries out to a single Coding, is a declared loss (#623). Those pairs give mappings no FHIR row (FHIRconnect DV_TEXT.adoc §String, DV_CODED_TEXT.adoc §Coding), so the engine writes none of them, as before, and now reports each one as a Loss::Skipped with the new SkipReason::TermMappingUncarried, located at the element and the value’s mappings; term_mapping::Withheld gains cause(). A consumer that matches SkipReason exhaustively adds the arm. The facade’s loss log labels it skipped-term-mapping-uncarried.
  • SkipReason::EmptyReference documents what the engine does (#511): a Reference with no literal reference is skipped whatever else it carries, because a display or an identifier alone names no resource to fetch (R4 references.html §2.3.0.3 and §2.3.0.4). fhirconnect 0.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 new ORDER instead of an optional-led PRIOR_RESULT.ORDER_PRIOR it 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::AlternateCharsets is replaced by DecodeError::SwitchingScheme { scheme }; a caller matching the old variant matches the new one.
  • $toopenehr compares 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’s fullUrl, a relative <type>/<id> is made absolute against the root of the referring entry’s RESTful fullUrl, and a version-specific reference also matches meta.versionId. A document that addresses its Patient entry by a urn:uuid fullUrl, 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 RESTful fullUrl, which R4 gives no meaning, is read against each entry’s type and id (our own design). fhirconnect 0.1.153.
  • scripts/gh/watch-prs.sh no 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, so fhirconnect = { … version = "0.1.157" } became 0.1.157 glued 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 manifest cargo metadata cannot 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.

  • ctutils moves 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 through digest 0.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-webpki 0.103.16 rejects their public keys (RUSTSEC-2026-0382), and webpki-roots and webpki-root-certs 1.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:nonroot moves to index digest d620678, which ships ca-certificates 20250419+deb13u1, in the FROM of docker/Dockerfile and docker/console/Dockerfile and 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 answers 401. A renewal that obtains no token ends the call with the terminology server’s refusal and the token endpoint’s error. ferrobridge-term 0.1.129 adds config::Credentials::OAuth over a caller-supplied config::TokenProvider, and the error::Error::Token and error::Error::Renewal variants. ferrobridge-validator moves to 0.1.129 with it.

  • The party search takes name, _id and _count=0 beside identifier (#931). name matches a name that starts with the value, case-insensitively as R4 string search asks: [facade.party_search.types.<Type>] name_query binds the value as typed, in lower case and capitalised, because the extension’s LIKE is case-sensitive; other case forms and accents are a stated gap. _id reads the one party it names. _count=0 answers the number of matches in total with no entries (R4 search §3.1.1.5.3), and _count is capped at search_count_max. A bare identifier value two parties carry answers both. A type’s query is now optional, and the CapabilityStatement declares exactly the parameters each type takes.

  • A Patient created in a party context gets its EHR under the subject link when [facade] ehr_policy is create_on_first_write (#932): the facade finds the EHR keyed by the new party’s id, or creates it with that id in EHR_STATUS.subject, so the clinical resources that name the Patient find it. Under existing the create sends no EHR call. A failed EHR call after the party committed answers the EHR refusal with a warning naming the stored Patient. No specification governs this: our own design.

  • fhir-types 0.1.127: every schema::FieldSchema carries target_profiles, the ElementDefinition.type.targetProfile canonicals of the element’s types in definition order, in all five versions (#926), so a consumer reads which resource types a Reference admits from the element table. A consumer that builds a FieldSchema literal adds the field.

  • The facade’s subject search parameters take the :identifier modifier (#923): Condition?patient:identifier=[system]|[value] matches the Reference.identifier of 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]| answer 400 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, PractitionerRole and Organization by identifier through the Cadasto experimental AQL demographic extension, behind [facade.party_search] with one configured query per type (#480). Each page runs the query with offset and fetch and reads every party it names over the Demographic API. A CDR that answers 400 to the query, as one without the extension does, answers 501 with not-supported naming the extension. The CapabilityStatement declares search-type and identifier on 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, PractitionerRole and Organization from party contexts over the ITS-REST 1.1.0 Demographic API, DEVELOPMENT, behind [cdr] demographic (#470). Read, vread, GET [type]/[id]/_history, create, update (over If-Match or the latest version) and DELETE [type]/[id], which answer not-supported for a type no party context serves; a party context with the key off is a boot refusal. The id is the party’s versioned_object_uid and meta.versionId its version tree id, with no identity-map entry; a Demographic API 400 answers 500, and 404, 409, 412 and 422 answer as themselves. The CapabilityStatement declares 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 mandatory PARTY_REF no template node holds (RM Demographic IM, the ROLE class), as $archetype/performer, so the facade creates and updates a PractitionerRole (#911). PractitionerRole.practitioner must name a Practitioner the facade serves, relative or under its base, with nothing beside reference. It becomes PARTY_REF {namespace "demographic", type "ACTOR", id HIER_OBJECT_ID <uid>} and reads back as Practitioner/<uid>, the type taken from the element’s targetProfile. A reference of another server (EngineError::ForeignParty), of another type, carrying a display, or local to the request answers 422, and a ROLE with no performer, built or served, is refused (PartyError::RoleWithoutPerformer). An element whose reference admits no single type is refused at load (fc-party-ref-target). fhirconnect 0.1.151 adds RmValue::PartyRef, the PARTY_REF-against-Reference pair, EngineError::ForeignParty and EngineError::PartyRefTarget, which breaks an exhaustive match over either enum; openehr-mapping-core 0.1.118 adds PartyError::RoleWithoutPerformer the 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.identifier and subject: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 or GET /ehr?subject_id=. An unknown identifier answers an empty searchset with no clinical query, and _count=0 answers the total alone. A value naming a system needs system_query. The CapabilityStatement documents 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_party builds a canonical PERSON, ORGANISATION or ROLE from the node values a party context writes, through the openehr-rm types: 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::Invalid otherwise). openehr-sdt 0.0.87 builds no correct party (#897, FerroHEALTH/FerroEHR#3810). fhirconnect’s engine::traverse::party::to_party and from_party map a FHIR resource to a party and back; WebTemplateIndex::read reads any CanonicalDocument. No specification governs a party build: our own design.

  • FHIR Organization round-trips through the KDS laboratory request chain (#543). The published KDS_Laborauftrag template is vendored by scripts/vendor/kds-laborauftrag-opt.sh at the openFHIR commit docs/VERSIONS.md pins, and a FerroBRIDGE project context compiles the library’s organisation.v1.yml verbatim, reached through the service request’s reference to its requester: a contained Organization maps into the Einsender cluster and comes back as a created Organization the request references, and both lens laws hold. organisation.v1.yml joins the mapping-library pass list and kds_laborauftrag the 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, ORGANISATION or ROLE is a party context, read from the RM type of the template root, and Program::party names 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 or ctx/ set (fc-party-composition-field), participationsFunction (fc-party-participation), link (fc-party-link) and entering a context whose start slots a composition (fc-party-sub-context-composition). to_openehr and to_fhir refuse a party program with EngineError::PartyProgram until the party build lands (#897). No specification governs a party context: our own design. Breaking for a consumer that matches ResolveCode or EngineError exhaustively: add the new arms.

Changed

  • Only the newest release is supported (#979). SECURITY.md says 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.identifier query of the Cadasto experimental AQL demographic extension now answers 501 with not-supported, the answer the party search gives, where it answered 500 (#954). Both paths go through one status function, naming the extension and carrying the CDR’s words.

  • Breaking for a library consumer of fhirconnect 0.1.148: fhirconnect::resolve::program::binding::PartyClass is gone, and Program::party answers openehr_mapping_core::party::PartyClass; a consumer imports it from there. EngineError gains CompositionProgram and PartyBuild, and a consumer that matches it exhaustively adds the arms.

  • The operator console draws with ferrohealth-ui 0.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-ui 0.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-ui 0.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-ui 0.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 under app/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 of Accept-Language the console’s catalog holds or else the new [server] locale (default en), and the page writes it as <html lang>. scripts/checks/stray-literals.sh fails 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.sh compares 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 sets bearer_token or bearer_token_file, or the FERROBRIDGE__CDR__CREDENTIALS__BEARER_TOKEN[_FILE] and FERROBRIDGE__TERMINOLOGY__CREDENTIALS__BEARER_TOKEN[_FILE] variables, refuses to start on an unknown key. Replace it with user and password_file, or for the CDR with [cdr.credentials.oauth]. The compose quickstart’s cdr_bearer_token secret is now cdr_password, read through FERROBRIDGE__CDR__CREDENTIALS__PASSWORD_FILE beside FERROBRIDGE__CDR__CREDENTIALS__USER, and the quickstart passes the FERROBRIDGE__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-term 0.1.128 drops config::Credentials::Bearer, and the server’s CdrConfig::with_credentials becomes with_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__USER and __PASSWORD_FILE for basic authentication and the five __OAUTH__ variables for the client credentials grant, as it does for the CDR, and mounts a new terminology_password secret (#976). Create secrets/terminology_password before the next docker 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.sh diffs 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 change main gained after a pull request forked is no longer counted against that pull request (#969). --self-test reproduces that case over a scratch repository, and the CI versions job runs it.
  • scripts/gh/watch-prs.sh judges 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-test checks the verdict against fixture checks, and the CI tracker-helpers job runs it.
  • A chained patient.identifier, subject.identifier or subject:Patient.identifier value that more than one patient carries now matches the clinical resources of every one of them (#944). The facade answered 400 multiple-matches instead, 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] query drops its LIMIT 2; a configured query with a LIMIT should drop it too.
  • A FHIRconnect run into openEHR declares every INSTRUCTION.narrative it leaves to the FLAT builder (#919). The narrative is a mandatory DV_TEXT (RM EHR IM §INSTRUCTION), and the builder fills one no mapping writes with a placeholder text. The run now records it as one more Loss::Defaulted warning per instruction instance, and in the composition’s FEEDER_AUDIT when the run carries an origin, so the stored composition names the value no mapping wrote.
  • scripts/gh/watch-prs.sh no 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.sh merges CHANGELOG.md by entry through the new scripts/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.sh fails 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, its x-status: DEVELOPMENT checked, and a test holds the generated openehr-its client to every operation it declares. CdrClient::demographic reads, creates, updates and deletes PERSON, ORGANISATION and ROLE; a 400, 404, 409, 412 or 422 maps to a facade answer through facade::status::demographic. A Release 1.1.0 PARTY that carries reverse_relationships reads: 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.id is checked against the template the parent’s OPT 1.4 states at the slot node (C_ARCHETYPE_ROOT.template_id, read by the new WebTemplateIndex::embedded_template). A different template is refused as fc-sub-context-template-mismatch, and a slot node that states none leaves the warning fc-sub-context-template-undecided (sub-contexts.adoc §Validation errors; openehr-mapping-core 0.1.115, fhirconnect 0.1.145; #886).

  • FHIRconnect sub-contexts (#864, types-of-mapping-files/sub-contexts.adoc). fhirconnect 0.1.143 reads slotContext on a mapping, and scope (root or sub) and contexts on a context. The strict schemas carry all three, with slotArchetype and slotContext mutually exclusive.

    • The semantic rules refuse:
      • a slotContext or a contexts entry naming no loaded context;
      • a slotContext at openehr: $reference;
      • a scope: sub context no context lists;
      • a cycle through contexts.
    • The resolver compiles a slotContext into the parent program as Method::SlotContext, from the entered context’s start with 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 slotContext the entering context does not list;
      • a sub-context whose start slots a composition;
      • a start that does not match the slot’s archetype.
    • The engine maps a sub-context into the parent composition in both directions, and Outcome::consumed names the resource a slotContext pulled in through a reference.
    • 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 slotContext consumed, and answers it 200 OK with no location of its own. An entry nothing consumes is still processed as a root.
  • fhir-types 0.1.126 reads ValueSet and CodeSystem release-neutrally (#876). definition::ValueSetRead covers the composition (includes, excludes, filters, imports, inactive) and the expansion, and definition::CodeSystemRead covers 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’s uri imports read as R4’s canonicals. The profile validator now decides STU3 bindings from the STU3 ValueSets and CodeSystems of the package set as it does R4 ones. Release names the release’s ValueSet and CodeSystem, PackageSet::value_set and code_system answer in the release’s model, and Reason::TerminologyNotRead is gone.

  • A Patient keys 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 in subject_namespace, the id a Patient/<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 no id, or under uuid one whose id is no UUID, is refused naming facade.subject_id_form. In a Bundle, a subject reference to a Patient entry that carries an id keys by that id too, and one without an id, such as an HL7 v2 message’s Patient, keeps the identifier key. Under reference nothing changes.

  • The profile validator validates STU3 resources against STU3 profiles (#838). PackageSet::<Stu3>::load_release reads a package set as STU3, and Validator over it walks the STU3 element table with the checks, refusals and unevaluated listing of R4: cardinality, the types of a choice, the single STU3 type.profile and type.targetProfile, slicing, the lexical forms of the STU3 package, invariants as FHIRPath over the STU3 types, and extension contexts in STU3’s resource, datatype and extension codes. The walk is generic over the sealed release::Release (R4, Stu3) and reads every definition through the release-neutral fhir_types::definition read. PackageSet and Validator take the release as a type parameter defaulting to R4, and PackageSet::load and PackageSet::new still read R4. An STU3 binding is never decided from the package set, since its ValueSets and CodeSystems have no release-neutral read yet (#876): it is listed with the new Reason::TerminologyNotRead and 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_type sets the PARTY_REF.type of the subject of an EHR the facade creates (default PERSON, until now fixed), and [facade] subject_id_form sets how the id of a literal subject reference is written: reference (the default, Patient/<id> as before), logical_id (the bare <id>) or uuid (the bare <id>, refused with a diagnostic naming the key when it is no UUID). A subject_type outside the BASE PARTY_REF Type_validity set, or a subject_namespace that breaks the OBJECT_REF namespace rule, refuses the boot naming the key; both are checked through openehr-base. The bridge never derives a subject id the CDR mints itself, such as a pseudonym.

  • fhir-types 0.1.124 completes the release-neutral definition read (#859). ElementDefinitionRead gains is_modifier, and its reads carry a type’s regex, a binding’s max_value_set and a constraint’s best_practice, read from the core extensions with those urls in every version (STU3 states maxValueSet as a Reference, R4 as a canonical; the R5 and R6 core packages define neither of the two binding and constraint extensions). The new StructureDefinitionRead reads the url, version, type, base definition, kind, abstract, derivation, snapshot, contexts and context invariants of every version: an STU3 context (one contextType beside a list of strings) reads as the same ContextRead entries as an R4 context, each release keeping its own type codes. fhirconnect moves to 0.1.140 for the requirement. Breaking for a consumer that builds TypeRead, BindingRead or ConstraintRead literals, or implements ElementDefinitionRead itself.

  • The ITS-REST 1.1.0 Overview and System OpenAPI documents are vendored beside EHR, Query and Definition (#478). All five are x-status: STABLE at tag Release-1.1.0. The Overview defines the common headers the CDR client sends (openehr-version, openehr-audit-details, openehr-template-id), and System defines the OPTIONS / capability call. scripts/vendor/its-rest.sh fetches 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(), is and as resolve against STU3 types (an STU3 valueAttachment, 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 fhirconnect 0.1.146: a demographic Reference.reference resolves through the new Demographics seam (engine::demographics, #469), and the Seams default, NoDemographics, refuses it. A consumer installs IssuerDemographics (the ids of its own FHIR server, the fallback engine/demographics.adoc names) or its own Demographics with Seams::with_demographics. The identity travels in PARTY_IDENTIFIED.identifiers where the FLAT format carries it, and in PARTY_PROXY.external_ref on 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_url is checked at boot as its issuer, and the operations lane uses it when the facade is configured.

  • ferrobridge-validator, ferrobridge-term and ferrobridge-fhirpath join the crate line at 0.1.126, leaving their 0.0.0 name reservations, so the next publish ships the validator as it stands on main. Pin each exactly, as for every crate of the line (#432).

  • The operator console draws with ferrohealth-ui 0.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 its details.text and 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 --update renders (#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.sh vendors it and its FSH operation definitions (rest/) from the one commit, and docs/specs/fhirconnect/draft-rest-api/ is gone. The conformance corpus, its badge and the worked-example fixtures are renamed rest-api. Against the head the bridge first implemented, the merged chapter changes no FSH definition and no worked example; it adds that the context fields are a fixed list an engine MUST refuse to extend, which $tofhir already refused and a test now asserts by name. Upstream re-rendered both published v1.0.0 schemas in place, adding spec.unidirectional and operational; the bridge adopts the new render, re-records both sha256 values in docs/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. fhirconnect 0.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_2 development generation, which openehr-sdt and openehr-its build on. docs/VERSIONS.md and docs/architecture.md §2 carry the sixth specification row and what v1_2 changes against Release 1.1.0 (EHR.tags, GENERIC_ENTRY.data widened to ITEM, PARTY.reverse_relationships removed); §3 records the 1.2.0 ARCHETYPED.rm_version stamp as a deviation (#844). scripts/checks/versions.sh compares six specification pins and fails a hand-written openehr_rm::v1_N path under app/, crates/ or tools/ that names another generation.

  • scripts/vendor/profile-packages.sh hashes a profile package tree once (#840): the count and digest of a verified tree are stamped under the ignored target/ 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. .gitignore refuses the *.pending-snap and *.snap.new files 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 unused Loss::DeferredReference is gone.
  • Every composition the bridge builds, and every EHR_STATUS the facade creates, names RM Release 1.1.0 in ARCHETYPED.rm_version in place of 1.2.0, a release openEHR has not published (RM Common IM Release 1.1.0 §3.2.3). A composition holding a GENERIC_ENTRY whose data is no ITEM_TREE, which only the development line admits, keeps 1.2.0 (openehr-mapping-core 0.1.114, fhirconnect 0.1.144; #844).
  • fhir-types 0.1.125: the release-neutral TypeRead::regex reads a primitive’s lexical form from the STU3 extension structuredefinition-regex as well as from R4’s regex, so an STU3 primitive such as date.value reads its form instead of none (#875).

0.0.8 - 2026-10-18

Added

  • fhir-types 0.1.123 carries a release-neutral read of ElementDefinition, definition::ElementDefinitionRead, implemented for every version’s generated ElementDefinition from 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, and fixed[x] and pattern[x] in their JSON form. STU3’s single type.profile and type.targetProfile read as lists, and its binding.valueSetUri or valueSetReference as the value set’s URL (STU3 and R4 elementdefinition.html), so the profile validator can read STU3 definitions without a second model. fhirconnect moves 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-agreement conformance 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 against patient-eu-core and bundle-eu-eps), the reference outcomes recorded beside them, and scripts/vendor/hl7-validator-agreement.sh, which fetches the jar and the packages it loads by sha256 from the new “HL7 FHIR Validator” table of docs/VERSIONS.md and 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).

  • fhirconnect 0.1.136 holds every FHIR resource a run out of openEHR produces or creates to R4 ext-1 before 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 new EngineError::Invariant, naming the constraint and the instance path, so a facade read or a $tofhir call refuses it instead of answering a resource that breaks an error-severity constraint (R4 conformance-rules.html §2.1.0.6). engine::invariant holds the checks, one per constraint key; docs/architecture.md §4.4 records why they are targeted checks and not FHIRPath evaluation. A consumer matching EngineError exhaustively gains a variant.

  • The operator console has browser journeys, screenshots and a book page (#602). The journeys drive headless Chrome through chromedriver with the thirtyfour WebDriver client against a running bridge (ferrobridge serve’s run path over a wiremock CDR 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 behind FERROBRIDGE_JOURNEYS=1 in the new journeys (browser) CI job at the Chrome for Testing release docs/VERSIONS.md pins, which scripts/release/journey-tools.sh installs locally. FERROBRIDGE_SCREENSHOTS=1 captures 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 implements matchesFull(), trim(), split(), join(), encode(), decode(), escape() and unescape(). HL7’s FHIRPath R4 suite now counts as two corpora with a badge each: fhirpath-r4 (874 of 886, N1) and fhirpath-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() and comparable() (#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-stu3 moves 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 the asc and desc key directions of the 3.0.0 grammar’s sortArgument (#633), which completes the 13 functions. fhirpath-r4-stu3 moves to 93 of 104.

  • The FHIRPath evaluator has a strict ordering mode, Environment::with_strict_ordering, off by default (#636). It refuses first(), last(), tail(), skip(), take() and the indexer over a collection derived from children() or descendants() with EvalError::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 Resource or DomainResource (#620): a reference target, a meta.profile claim or a profile discriminator 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::AbstractProfile is 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.context of the types element, extension and fhirpath, read as R4 defining-extensions.html §2.5.1.2 and the extension-context-type code system define them, and each contextInvariant evaluated on the element holding the extension with %extension bound to it. A misplaced extension is an extension-context error and a broken context invariant a context-invariant error; a context the walk cannot decide, and a context invariant that does not parse or evaluate, stay listed as unevaluated with the reason. Reason::ExtensionContext now carries that reason as a String, and Constraint::ContextInvariant is 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 profile discriminator, 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 as slice-rejection information beside the cardinality error (an EPS Bundle whose Patient lacks birthDate now names birthDate).

  • The profile validator holds a Reference or a canonical to its element’s type.versioning (#514, R4 elementdefinition.html §2.30.0.4.4): under specific a REST reference without _history/[vid] or a canonical without |[version] is a versioning-mismatch error, under independent one with a version is, and under any rule a Reference without a literal reference is. A reference that names no FHIR REST server counts as version specific (references.html, Reference.reference), so independent lists it as unevaluated. Constraint::Versioning and the reasons NotRestfulReference and VersioningRule are new.

  • The operator console ships as its own image, ghcr.io/ferrohealth/ferrobridge-viewer (#603). docker/viewer/Dockerfile builds it on the bridge image’s distroless base, runs as 65532:65532, and probes itself with the binary’s healthcheck subcommand. The reusable release-viewer.yml, called from the release lane, builds the console’s musl binaries with cargo auditable and 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.yaml gains a viewer profile 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-types 0.1.118 resolves a JSON member name against the element table (#483): TypeSchema::member answers the element an object key names, the type code a choice form such as valueQuantity selects, and whether the key is the _ sibling of a primitive (R4 json.html §2.6.2), and FieldSchema::choices lists 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; fhirconnect moves to 0.1.132 with the requirement.

  • fhir-types 0.1.119 lists every primitive type with the type its StructureDefinition.baseDefinition names, in each version’s schema::SCHEMAS.primitives, read by Schemas::primitive_base_of (code specializes string) (#635). The new primitives field breaks a consumer that builds a Schemas value by hand: it adds the field. fhirconnect 0.1.133 follows the requirement.

Changed

  • FHIRPath distinct() and isDistinct() 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 invariant bdl-7 no longer grows quadratically with a Bundle’s entries.

  • ferrobridge_fhirpath::model::path_types types a path that continues through a choice element (Observation.value[x].unit, the unit of Quantity) or below a primitive (string.extension, the extension of Element), 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-code cannot carry, is set aside with the client’s UnsupportedParameter and 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 canonical url, which STU3 $translate lacks, so the run fails before anything is sent. ferrobridge-term gains Client::check, which answers whether the configured release can carry a request without sending it, and the validator’s Terminology trait gains supports, defaulted.

  • fhirconnect 0.1.135, the HL7 v2 face and the profile validator name a choice element’s JSON members through the element table’s FieldSchema::choices and TypeSchema::member (#813), so the R4 json.html §2.6.2 naming rule lives in fhir-types alone. Breaking for a consumer of fhirconnect::tree::element::Move: Move::Choice carries schema: &'static FieldSchema in place of variants, whose alternatives schema.choices() lists.

  • The profile validator indexes each Bundle once per validation, its entries by fullUrl and 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 500 with an OperationOutcome whose issue.code is processing, naming the refusal and never a clinical value (#831). It answered 422 before, 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 is facade::status::OUTBOUND_REFUSED, with a wire test per path; a write whose content the engine refuses keeps its 422.
  • fhir-types 0.1.122: the XML reader refuses an element or attribute under a prefix with no namespace declaration in scope as MalformedXml naming 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 answered UnknownProperty for an attribute and WrongRoot for a root before; the refusal stays a refusal and only its kind changes. fhirconnect moves to 0.1.137 with the requirement.
  • /health/readiness no longer answers 200 while 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 the startup indicator up while the probe routes, which answer 503 for 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-types 0.1.121: the XML reader refuses a narrative element or attribute under a prefix with no namespace declaration in scope as MalformedXml, 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 as UnknownElement or UnknownProperty. The narrative content rules txt-1 and txt-2 stay invariants of Narrative.div that the profile validator evaluates through htmlChecks(), now with a test for each. fhirconnect moves to 0.1.135 with the requirement.
  • The FHIRPath is operator and is() function test a FHIR primitive against the types it specializes, so Patient.gender is string is true, as FHIRPath N1 §6.3.1 and the R4 code definition ask; ofType() and as keep 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 = false the 503 now says [operations] enabled is false; it said “no mapping set is configured” even when [mappings] directory was 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 /files and /edit included, 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 a 404.
  • A bridge refusal the console draws carries each issue’s details.text as well as its diagnostics (#602). The FHIRconnect operations put their reason in details.text, so a refused $tofhir or $toopenehr showed 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-types 0.1.119 holds the logical id of every resource to the id form, [A-Za-z0-9\-\.]{1,64}, in every version (#482). The published definitions type Resource.id as id (R4 resource-definitions.html#Resource.id), while the R4 4.0.1 package and 123 resource snapshots of the R6 ballot5 package state string (upstream report #798). The R4 and R6 element tables now list id for every resource’s id, 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 as lexical-form. A consumer that decoded such a resource before gets a BadValue error at <Type>.id. One R4 example leaves the fhir-r4 pass list, a SearchParameter whose 67-character id breaks the form. fhirconnect moves to 0.1.133 with the requirement.
  • fhir-types 0.1.120 refuses a resource whose required repeating element is absent (#312): a 1..* element such as Provenance.target or SearchParameter.base fails to decode with MissingProperty at 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. A Path::lenient reader keeps the items it finds. Each string primitive’s lexical form is public as <Primitive>::check(text) with the new codec::LexicalError, and each version’s primitives::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 probe Extension. A consumer that decoded a resource missing a required list before gets an error now. The fhir-stu3, fhir-r4 and fhir-r4b pass lists lose the SearchParameter examples that carry no base. fhirconnect moves 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-api holds 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, and tests/it/boundary.rs holds it to them.

  • A facade search translates a conceptmap code once per request (#763): the page and its Bundle.total share the answers of one terminology session, so a code repeated across their entries costs one ConceptMap/$translate call. Nothing is kept past the request.

  • The facade, the FHIRconnect operations lane, mapping check and 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.

  • fhirconnect 0.1.131: the four seam traits, ReferenceSource, IdentitySink, Terminology and MappingFunctions, require Send + Sync, and a compile-time assertion keeps Seams Send, 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 a Cell or a RefCell moves to a Mutex or an atomic. The facade’s transaction path now looks a reference up in the Bundle’s own entries through BundleReferences instead of copying them into its resolved set.

  • A facade search lists every resource a hierarchy.split with create: resource creates beside the entry’s own resource, each once (#731). A page holds at most _count resources and may end between two occurrences of one entry, Bundle.total counts every resource (the count reads the rows for such a context), and an _id naming a created resource answers that resource alone instead of matching nothing.

  • fhirconnect 0.1.130: the four operations::run entry points (to_fhir, to_fhir_with_warnings, to_openehr, to_openehr_with_warnings) take the caller’s &Seams in 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 passed functions. $toopenehr resolves 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 reference mapping 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 and max_depth levels (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 $validate answers it as a warning issue. In a transaction Bundle an entry answers a reference to its fullUrl or its <Type>/<id> first (#753).

  • ferrobridge-term translates by concept map with an optional target system and an optional reverse (#721). This breaks the crate’s public API: Client::translate takes a Translation (Translation::new(system, code) with with_version, with_concept_map, with_target_system and with_reverse), and Request::Translate wraps one. Each of version, url, targetsystem and reverse is sent only when it is set, as R4 ConceptMap/$translate declares each 0..1, so a FHIRconnect conceptmap, which names only the map, can be translated in both directions.

  • A resource the facade’s outbound mapping creates, a further hierarchy.split occurrence with create: resource or the target of a reference mapping, is no longer carried as a contained resource with a #id reference (#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, a PUT of it answers 405, and a type only a reference creates is declared with read and vread in the CapabilityStatement. 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 .YML or .YAML file 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 LICENSE that 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 the ferrobridge-fhirpath and ferrobridge-validator READMEs state the terms like the other BUSL-1.1 crates.

  • SECURITY.md and CONTRIBUTING.md keep what is particular to FerroBRIDGE and link the FerroHEALTH family book at https://ferrohealth.eu/docs/ for the rest (#402). SECURITY.md keeps 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.md describes 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 ETag names. Check sends the draft to POST /operator/mappings/check and shows its diagnostics inline. Save sends the draft’s exact bytes to PUT /operator/mappings/{path} under If-Match (or If-None-Match: * for a new file), with a one-line reason in Ferrobridge-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 the 412 conflict when the file changed meanwhile. Reload calls POST /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 a context.patient reference) and $toopenehr (a Bundle, a template id and the composition format) against the bridge’s running programs. The dry run runs $validate on a resource type the CapabilityStatement declares it on. What the operator enters travels in the request body alone, with autocomplete off. Every answer is no-store and drawn on the server: the Bundle’s resources, the composition, and the OperationOutcome issues 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/mappings with each file’s language, kind, owner, whether it is writable and its diagnostics count, and each file at /files/{path} from GET /operator/mappings/{path}, verbatim, one numbered line per line, its YAML highlighted on the server and its SHA-256 from the ETag. Beside each file are the running load’s diagnostics about it, read into openehr_mapping_core::diagnostic::Diagnostic and 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 from GET /health/readiness, and the counts of its running load from GET /operator/state. The capability screen shows the R4 CapabilityStatement as 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 into openehr_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, accent and 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.yml checks the declaration against the context it names and writes it under mapping_dir/fhirconnect/, where it was refused with 400 before. The reload binds every declaration, provisioned and console, and swaps them in with the facade’s programs. A declaration that does not bind answers 422 with an fb-search-declaration diagnostic 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 under mapping_dir/omocl/, where it was refused with 409 before. etl run reads that directory beside [mappings] omocl whenever 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_dir set: POST /operator/mappings/check?path= answers a draft’s diagnostics over the running set; PUT /operator/mappings/{path} with If-Match (or If-None-Match: *) and a Ferrobridge-Reason header saves a FHIRconnect file under mapping_dir/fhirconnect/ when the whole set compiles with it, written to a synced hidden file and renamed into place, and answers 422 with every diagnostic, leaving disk and programs unchanged, when it does not, 412 on a stale ETag, 428 without a precondition and 409 over a provisioned file; POST /operator/reload compiles 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 the CapabilityStatement follows a save at once. Console files join the set at start-up. Each save leaves an audit line with the caller’s sub, the file, the old and new SHA-256 and the reason, never content. compose.yaml mounts ./operator-mappings as 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 a nonce, the ID Token checked against the provider’s JWK Set, issuer, audience, azp and nonce, and a session held on the console’s server in two bounded pools, carried by one __Host- HttpOnly SameSite=Lax cookie. 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 /logout ends 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 is ferrobridge_testkit::oidc.

  • ferrobridge serve sends the FerroHEALTH installation report to FerroPULSE on its report envelope v2 (#581): one start report per process start and one daily report a day to https://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 writable state_dir, stays off in a CI environment, and logs one boot line saying which. The compose file keeps the instance id on a new ferrobridge-state volume. 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 by scripts/vendor/ferropulse-schemas.sh, and scripts/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_message latency group times each message from its frame to its acknowledgment, the counters hl7v2_aa, hl7v2_ae and hl7v2_ar count the acknowledgment codes the face sent, and mapping_failures counts 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 conceptmap mapping through the configured [terminology] server (#722), on the FHIR facade, the $tofhir and $toopenehr operations and the HL7 v2 face. A composition going into FHIR calls ConceptMap/$translate with the map url and the source code, and FHIR going into openEHR adds reverse=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 a conceptmap refuses with “no terminology server is configured to translate through”.

  • fhirconnect 0.1.128 translates the codes of a mapping that names a conceptmap through ConceptMap/$translate (#219), over a new engine::terminology::Terminology seam that Seams::with_terminology sets. 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 an equivalent or equal match counts, and the translated concept’s display wins over the source text. An untranslatable code at an optional element writes nothing and is declared as SkipReason::Untranslated; at a required element it refuses the unit (EngineError::Untranslated). Breaking for a consumer that matches SkipReason exhaustively: add an arm for Untranslated.

  • The read-only operator API (#596), behind [operator] enabled (off by default, refused at boot without [auth]): GET /operator/state answers the compiled programs with their files, templates and search declarations, the OMOCL validation result and every diagnostic of the running load; GET /operator/mappings lists 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 the ETag, confined to its directory. Every route answers 401 without a token and 403 without auth.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 and ferrobridge mapping check --format json answer is the serde form of openehr-mapping-core’s Diagnostic (#726), so model_path is now an array of steps.

  • $validate admits a token that carries the operator scope beside its c or u permission, and $tofhir and $toopenehr admit it as they admit any valid token, so an operator console dry-runs a mapping without a clinical write scope (#598).

  • ferrobridge mapping check runs (#595). It loads the FHIRconnect tree of [mappings] directory, compiles every context against its template from [mappings] templates or 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 module check, which the operator API reuses.

  • openehr-mapping-core 0.1.113: Diagnostic has a serde form (#726), one flat object with file, line, column, severity, code, message, mapping and model_path, and reading it back refuses an invalid code or mapping name as the constructors do. DiagnosticCode::parse reads a code from its stable spelling. fhirconnect moves to 0.1.129 with it, since it pins openehr-mapping-core exactly.

  • scripts/deploy-probe.sh probes a running deployment at a base URL (#220) and reports each lane (health, the facade under /fhir, the FHIRconnect operations) as on, off, failing or uncovered. An uncovered lane 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): the ferrobridge-viewer binary, a Leptos app rendered on the server and hydrated in the browser, with serve, config check and healthcheck. It reads a TOML configuration with FERROBRIDGE_VIEWER__<SECTION>__<KEY> overrides and _file secrets, answers every response with a per-response nonce Content-Security-Policy, nosniff, DENY framing and no-referrer, marks every document no-store, and compresses only its site bundle. Its bridge client reads the bridge’s R4 CapabilityStatement and keeps the status and body of a refusal. A test holds its server half to openehr-mapping-core and fhir-types of the workspace and its browser half to none, and the CI viewer lane 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-types 0.1.117 carries a search parameter registry per FHIR version behind resources (#522): <version>::search_parameters::SEARCH_PARAMETERS holds every SearchParameter of the core package, apart from its examples, with canonical, code, base types, type and expression, and SearchParameters::of(type, code) answers the standard parameter a resource type answers, its own or a base type’s. fhirconnect moves 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 CapabilityStatement names the standard parameter’s canonical as searchParam.definition for every declared standard code (#522).

  • /health/readiness carries a cdm indicator when a [cdm] section is configured (#615). It opens one connection to the CDM database over the configured TLS and asks SELECT 1, and reports down with the reason on a refused connection or a failed query, so an unreachable CDM shows before the next etl run fails. 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. The CapabilityStatement declares versioning: versioned-update and readHistory: true on every resource type.

Fixed

  • The operator API checks and compiles the console’s FHIRconnect files on every save and reload when no [mappings] directory is 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 _count from the raw query and refused it with a 400, 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 the 401 standing and the token error as its cause, and the facade still answers it with the credentials 502.

  • A CDR that does not answer the boot template fetch yet no longer fails the start (#422). serve binds its listen address, answers liveness 200 and readiness 503 with a startup indicator 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 a 404 for 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>], n its 1-based place in content, and the first by /content[<archetype>], both built with the openehr-rm path 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 the nth 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 answers 500 with an exception issue 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.uid the sender did not send now gives that entry the same id on the transaction path as on the single create.

  • The 409 a create meets when an identity store written before 0.0.4 binds its id to two compositions now names the repair (#298): its conflict issue 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_ID grammar refuses, or a stored ehr_id carrying a character that would change the request path, now answers a 500 whose exception issue 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 a SecretString from the moment the file is parsed, so a Debug rendering of the configuration tree redacts it and its memory is zeroed when it is dropped (#309). A _file sibling’s text is wrapped the same way as soon as it is read.

0.0.6 - 2026-10-17

Added

  • A FerroBRIDGE OMOCL Person mapping for the KDS person template (#568), crates/omocl/tests/fixtures/projects/ferrobridge/kds_person/kds_person_data.yml. The corpus file person_data/person_data_v0.yml reads gender at items[at0019], which KDS_Person does not carry, so every KDS person took gender_concept_id 0. This file reads the administrative gender at items[at0022]: its code resolves through the loaded OHDSI vocabulary into gender_concept_id and is kept in gender_source_value, and a person with no gender, or a code with no standard concept, takes concept 0. Point [mappings] omocl at 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 OHDSI vocabulary_id the ETL looks a coded value up in (#625). The table is added over the defaults (LOINC to LOINC, SNOMED-CT to SNOMED) and checked at load: an empty id or vocabulary, or a vocabulary longer than the 20 characters of OMOP CDM v5.4 VOCABULARY.vocabulary_id, refuses the start. A KDS administrative gender coded under http://terminology.hl7.org/CodeSystem/v2-0001 now reaches person.gender_concept_id once 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 batch Bundles on POST [base] (#531). Each entry runs as the read, vread, search, create or update its request names, through the same handler as the single interaction, with ifMatch and ifNoneExist as its conditional headers and the request’s Prefer: return applied to it, and the answer is a batch-response Bundle with one entry per request entry in the same order, each carrying its status, location, etag and resource, or its OperationOutcome in response.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 a patient/ token’s compartment, answers 403 inside the response. An entry referencing another entry’s fullUrl answers 400, as R4 calls it non-conformant, and a Bundle with an entry that has no request, or a POST or PUT with no resource, is refused whole with 400. Each entry leaves its own audit line, with its position as entry, beside the request’s line, whose interaction reads batch. The CapabilityStatement declares batch beside transaction.
  • The FHIR facade answers search (#98): GET [base]/{type}?… and POST [base]/{type}/_search over an AQL projection declared beside the context mapping, in a <name>.search.yml file that names the context, the subject parameters, the token, string and date parameters 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 its FROM once 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 a searchset Bundle with an id, meta.lastUpdated, one entry per composition with a unique fullUrl and search.mode = match, total counting matches, and self and next links over the CDR’s offset and fetch paging. _id, _count (capped by the new [facade] search_count_max, default page search_count), _count=0 and _summary=count, _sort and _total are supported. A parameter the type does not declare is a 400 naming it unless the client sends Prefer: handling=lenient; an unsupported modifier is always a 400. 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 query 400 to a 500 and a query 408 to a 502. The CapabilityStatement names search-type and exactly the declared parameters with _id. Under [auth], a search needs the s permission of its type, and a patient/ token’s search is held to its patient’s EHR.
  • FHIR Patient from the KDS person template through FHIRconnect (#468). The published KDS person chain of the FHIRconnect mapping library compiles against the published KDS_Person operational template, which scripts/vendor/kds-person-opt.sh vendors from the openFHIR test resources, under a FerroBRIDGE project context, and a synthetic MII Person Patient holds 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. fhirconnect 0.1.114 adds the DV_DATE against date and DV_BOOLEAN against boolean cells, reads value on a primitive as the primitive itself, the form FHIRconnect writes in a condition, and writes the context’s health_care_facility as the _health_care_facility family. The facade keys a Patient by its first identifier with a value, so a Patient written through it is stored as the KDS_Person composition 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’s version on $validate-code, reads STU3’s code-typed $lookup property values, and reads the same $translate match 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 with Error::UnsupportedParameter before 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 /fhir needs a bearer JWT access token (RFC 9068 profile by default) except GET /fhir/metadata and the new /.well-known/smart-configuration document. A missing or invalid token answers 401 and a token whose SMART v2 scopes (patient/, user/, system/ with cruds, v1 .read and .write included) do not permit the request answers 403, neither naming a claim or a scope. A patient/ 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 needs u beside c, a scopeless token gets system rights only for a listed subject, and every FHIR request leaves one audit line on the ferrobridge::audit target without the token or the body. The CapabilityStatement carries rest.security with the SMART service and the oauth-uris extension. 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-fhirpath on each occurrence of its element (#439). The focus is the element, %resource the resource holding it and %rootResource its container when it is contained. A failed invariant is an issue of type invariant under its key and declaring canonical with the constraint’s own severity; a best-practice one (elementdefinition-bestpractice) is a warning unless Validator::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 and conformsTo() 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::InvariantRefused and Reason::NoExpression replace Reason::Invariants), and the published defects of cid-0, inv-1 and dom-3 name their upstream report. A constraint the snapshot repeats from the core is evaluated once per occurrence. ferrobridge-fhirpath adds Focus::within to name the resources %resource and %rootResource stand for. and the server warns at start-up. The guard classifies every route under /fhir by name, and a route it does not classify answers 403 without reaching a handler, so a route added without a classification fails closed (#547).
  • fhir-types 0.1.111 names each type’s base type in the element table (TypeSchema::base, from StructureDefinition.baseDefinition, and for a backbone element the BackboneElement or Element its element names), in every version, and carries the abstract types a base chain passes through (Resource, DomainResource, BackboneElement, and from R5 Base, DataType and BackboneType) as table-only entries. Schemas::base_of and Schemas::specializes walk the chain. ferrobridge-fhirpath reads it, so is, as, ofType and a leading type name see Age as a Quantity and Patient as a DomainResource and a Resource; the R4 profile validator takes a resource under an element typed DomainResource only when its type specializes DomainResource, so a Binary or a Bundle there is refused, and the same base chain decides the profiles such an element applies and a type slicing 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 through meta.versionId), with a reference that matches two entries an error, so a resolve() discriminator reaches across entries (#441). It holds the resolved target to the element’s type.targetProfile, any of them, and the reference to its type.aggregation; validates every resource against each profile it claims in meta.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 stylesheet Binary and the Provenance of what it includes. Target and claimed profiles are no longer listed as unevaluated when the validator can check them.
  • scripts/vendor/profile-packages.sh fetches the package set of the R4 profile validator at build time into the ignored docs/specs/fhir-packages/<package>#<version>/package/ (#435), about 570 MB that is never committed; only each PROVENANCE.md is. The set is the HL7 Europe Patient Summary hl7.fhir.eu.eps 1.0.0-ballot, HL7 Europe Base hl7.fhir.eu.base 2.0.1 and the International Patient Summary hl7.fhir.uv.ips 2.0.0, with every package their package.json files 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 of hl7.terminology.r4. hl7.fhir.r4.core 4.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 digest docs/VERSIONS.md pins, a cache-restored tree included. The CI job profile-packages fetches 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.sh fetches 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() and slice() 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 the fhirpath-r4 conformance corpus, and every invariant of the vendored FHIR packages parses.
  • ferrobridge-fhirpath converts quantities by UCUM (#459): =, ~, the comparisons, + and - work across commensurable units in the more granular of the two, so 4 'g' = 4000 'mg' is true and the R4 invariant rng-2 compares a low and a high in different units, and toQuantity(unit) and convertsToQuantity(unit) convert to the unit asked for. The new ucum module parses UCUM expressions (prefixes, exponents, annotations, the 10* and 10^ forms, parentheses) against the UCUM 2.2 essence, which scripts/vendor/ucum.sh vendors 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 .tgz files 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 by url, with an unknown modifier extension an error. The report carries typed issues with their FHIRPath location and converts into an R4 OperationOutcome; every slicing, invariant, binding and profile the validator meets and does not yet evaluate is named in it as not-supported.
  • The R4 profile validator evaluates slicing (#438): the discriminator types value, exists, pattern, type and profile, combined; discriminator paths in the simple FHIRPath subset, with resolve() through contained resources, extension(url), ofType() and as(); value and pattern matched by a required binding over a value set the package set enumerates; slicing without a discriminator; the rules closed, open and openAtEnd, ordered slicing, the @default slice and re-slicing; extension slices by url, 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 as not-supported, and a #id reference that resolves to nothing is a warning.
  • fhir-types 0.1.109 carries FHIR STU3 (3.0.2) as the stu3 module, behind a feature of that name in the default set, emitted from hl7.fhir.r3.core 3.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 of profile and targetProfile and merges type entries of one code into one, takes a primitive value’s type from its _code JSON type and refuses a type entry with neither, reads structuredefinition-regex and both STU3 binding forms, and gives Element.id and Extension.url the plain-string shape they have in R4. STU3 has no TerminologyCapabilities, 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. fhirconnect steps to 0.1.109 with the requirement.
  • The STU3 examples package, hl7.fhir.r3.examples 3.0.2, runs as the conformance corpus fhir-stu3 with its README badge “FHIR STU3” (#454): every one of its 8287 resources decodes through the stu3 model, 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, CodeableConcept and quantity units: a code outside the value set is an error under required and under the elementdefinition-maxValueSet extension, a warning under extensible and information under preferred; example is 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, the is-a, descendent-of, is-not-a and generalizes filters over an is-a hierarchy, the =, in, not-in and exists property 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 that Report::resolve_bindings sends to a terminology server through ferrobridge-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-term validates a Coding and a CodeableConcept, and a code with its systemVersion and display, with an optional valueSetVersion (#440). Client::validate_all answers several validations in one call or one batch, and Error::upstream_status names the status of a refusal.
  • omop_cdm::quality runs 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, so episode.episode_object_concept_id is checked against both of its domains, and note_nlp.offset is 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 as omop_cdm::generated::dqd, refusing any threshold that is not a whole percentage, and the column metadata gains fk_class.
  • scripts/vendor/dqd.sh vendors 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 under docs/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).
  • fhirconnect and openehr-mapping-core are published on crates.io at 0.1.108, joining the crate line fhir-types carries (#397). Both build on the openehr-* 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 a token_endpoint, or an issuer whose RFC 8414 metadata (or OpenID Connect discovery document) names it, a client_id, a client_secret or client_secret_file, client_auth (client_secret_basic or client_secret_post), and an optional scope, audience and RFC 8707 resource. The token is fetched on the first CDR call, shared by every call, and fetched again refresh_margin_ms (30 seconds by default) before expires_in runs out; concurrent calls share one fetch. A CDR 401 drops the token and the call is sent once more under a new one, and a second 401 reaches the caller as before. A refused grant is an error carrying the token endpoint’s status and its OAuth error and error_description, and a token that cannot be obtained takes the cdr readiness indicator down with that reason.
  • The ferrobridge-fhirpath static check narrows the focus under a type guard (#571). A test $this is T, $this.is(T) or is(T), its not(), and an and or or of such tests, narrows what the focus reaches: the right operand of and and implies sees the test true, the right operand of or sees it false, iif() checks its second argument with the criterion true and its third with it false, and where() 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 a Quantity is refused as SemanticError::Input (N1 §5.5.8, §11). The fhirpath-r4 corpus checks a case against the types its contextType names.

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 own content items, counts the entries with SELECT COUNT(*) … CONTAINS COMPOSITION c CONTAINS <class> x[<archetype>], which equals the entries the search answers. _total=estimate always answers from that count, or from the row count of a search that binds a node. _total=accurate, _count=0 and _summary=count read the rows only for a search that binds a node or an _id, or a template that nests the entry in a SECTION, where AQL CONTAINS also finds nested entries.

  • fhir-types documents UnknownResource, in every FHIR version, as the carrier of any resource’s JSON body, a root-set type such as MedicationRequest included, 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-types 0.1.115 and fhirconnect 0.1.119.

  • The openehr-* crates move to 0.0.87, the line the federation gateway pins; fhirconnect 0.1.117 and openehr-mapping-core 0.1.111 build on it.

  • [etl] aql and [etl.visits] aql must read every COMPOSITION below VERSION v[LATEST_VERSION], and a configuration whose query reads one without that scope (no VERSION, a bare VERSION v, or ALL_VERSIONS) now refuses to load with an etl.aql or etl.visits.aql error (#494). AQL 1.1.0 leaves the scope of a query without LATEST_VERSION open, 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. Add CONTAINS VERSION v[LATEST_VERSION] above COMPOSITION c in 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 takes fhirconnect 0.1.111 or openehr-mapping-core 0.1.109 carries one copy of the openEHR types.

  • The CI test lane 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).

  • fhirconnect 0.1.110 locates every loss a run declares (#498). A fhirconnect::engine::outcome::Warning is now a Loss (the former variants: Skipped, Defaulted, LastOfMany, OneWayFallback, DeferredReference) with a Location, read through Warning::loss() and Warning::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 fits OperationOutcome.issue.expression; Location::openehr() is the archetype path of the openEHR node. Neither carries a value from the input. operations::run::to_fhir_with_warnings and to_openehr_with_warnings return a Transformed that 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_fhir and to_openehr keep their signatures. Each issue of a run’s OperationOutcome sets expression to the FHIRPath and carries the openEHR path as a details.coding in https://ferrobridge.eu/fhir/CodeSystem/openehr-path (operations::issues::OPENEHR_PATH_SYSTEM); details.text is unchanged. fhirconnect::tree::locate::locate names one element of a document as such a FHIRPath. A consumer that matched Warning::Skipped { .. } matches Loss::Skipped { .. } on warning.loss().

  • SonarQube Cloud analyses FerroBRIDGE under the FerroHEALTH organisation: organization ferrohealth, project key FerroHEALTH_FerroBRIDGE, in sonar-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 a 2xx body that depends on Prefer as the resource or its Identifier itself, so a CONTRIBUTION 201 body 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 an Authorization value) 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 LICENSE copy names that contact in place of the maintainer, and the README, the book’s licensing page, MAINTAINERS.md, GOVERNANCE.md and SUPPORT.md say 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 and SPDX-FileCopyrightText line 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-types steps 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, enhancement and P0 to P3 labels are retired, the bug and feature forms set the issue type, the release notes drop their two label-keyed categories, and scripts/gh/fields.sh and scripts/gh/migrate-fields.sh carry the model and the migration. labels.sh gains the no-crate-bump label the crate-version guard already reads.

Fixed

  • fhir-types 0.1.116 holds an element id to the string form in R4B and R5 (#378). The published definitions type Element.id as string in every version, while the 4.3.0 and 5.0.0 core packages state id on the copies ElementDefinition.id, Extension.id and the other datatypes inherit, so an element id such as Patient.extension:birthPlace or 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.versionId of 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 CapabilityStatement declares conditionalUpdate: false (#666). R4 CapabilityStatement.rest.resource.conditionalUpdate names the PUT [type]?[search parameters] interaction (http.html#cond-update), which the facade does not serve; If-Match on an update is the version-aware update, which the facade still honours.
  • A facade update whose body names no id, or an id other than the one its URL names, answers 400 with an invalid OperationOutcome at <type>.id and commits nothing, as R4 http.html#update requires (#665). The facade used to accept it and record the body id as 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 answers 502 Bad Gateway with the token endpoint’s status and OAuth error in the OperationOutcome diagnostics, never the client secret. It used to answer 500.
  • A request under /fhir over the body ceiling or past the request timeout answers an OperationOutcome (#548). The ceiling answers 413 with the too-long issue and the timeout answers 504 Gateway Timeout with the timeout issue, both as application/fhir+json with the limit named in the diagnostics. A timed-out FHIR request used to answer a plain 408, which tells a client it may resend a write the CDR may already hold. Every other route keeps its plain 408 and 413.
  • The KDS diagnosis project context keeps a diagnosis code system outside ICD-10-GM when it reads a Condition back (#379). The coding method of the icd10ProblemDiagnose append was gated by a fhirCondition only, 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 an openehrCondition on the stored terminology as well.
  • A KDS diagnosis read no longer carries an icd-10-gm-diagnosesicherheit extension 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, and Bundle.total and the paging count entries. A read, a vread and an _id search of an entry’s id answer that entry.
  • A CodeableConcept with codings and no text fills a DV_TEXT (#626). The facade used to refuse such a resource with a 422, because DV_TEXT.value had no source. It now takes the first coding’s display, then its code, the fallback FHIRconnect writes for DV_CODED_TEXT, and records the one-way row in the outcome. Reading the resource back adds code.text holding that rubric and leaves the codings as they were.
  • A recorder that carries only a reference no longer leaves COMPOSITION.composer empty (#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 field composer”. A party holding no name, identifier or external reference now leaves the composer to its default, and a composer with an external reference travels as ctx/composer_id, ctx/id_namespace and ctx/id_scheme (Simplified Formats, §Composer).
  • A facade update of one entry’s resource keeps the composition’s other entries (#657). A PUT of 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-Match names the composition version every entry shares, and an If-Match naming a version the CDR does not hold is 412.
  • 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 answers 502 Bad Gateway with the token endpoint’s status and OAuth error in the OperationOutcome diagnostics, never the client secret. It used to answer 500.
  • A request under /fhir over the body ceiling or past the request timeout answers an OperationOutcome (#548). The ceiling answers 413 with the too-long issue and the timeout answers 504 Gateway Timeout with the timeout issue, both as application/fhir+json with the limit named in the diagnostics. A timed-out FHIR request used to answer a plain 408, which tells a client it may resend a write the CDR may already hold. Every other route keeps its plain 408 and 413.
  • A handler panic under /fhir answers an OperationOutcome (#655): 500 as application/fhir+json with the exception issue 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 401 and the one renewal of the OAuth token fails, the facade answers the credentials 502 with 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.total counts those entries for every search, so _count=0, _summary=count and _total=accurate read the rows instead of running an AQL COUNT.
  • Removing a person’s newest PERSON writer hands the row to the writer that remains (#561). When several compositions of one EHR write the person’s PERSON row 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 a person_row table holding each writer’s columns; run ferrobridge cdm init once 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 $since refuses the start (#542). The ETL never binds --since to 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.aql is now refused when the configuration loads, with the reason.
  • A TERM_MAPPING whose match is >, < 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 no Coding, and the run now declares it as a located Loss::Skipped whose new SkipReason::TermMappingMatch carries 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 matches SkipReason exhaustively needs an arm for the new variant (fhirconnect 0.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.unit is on a string value (FHIRPath N1 §3.2). R4 ras-1 now holds on a decimal RiskAssessment.prediction.probability where 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 url the 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 under modifierExtension, and goes on, where it ended the whole validation with a resolution error (#550).
  • fhir_types::xml::from_xml resolves 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 as WrongRoot, any other element as UnknownElement, and a prefixed attribute in another namespace or under an unbound prefix as UnknownProperty; <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 FHIR Parameters (#555).
  • fhir-types 0.1.113 holds the narrative div to 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 as UnknownElement at Resource.text.div otherwise. A declaration of the XML Schema instance namespace on the div or 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-types 0.1.114 writes every attribute of the narrative div it reads from XML in double quotes with a " the value holds escaped as &quot; (XML 1.0 §2.3 AttValue, §4.6), so title='a "b"' yields a well-formed div string that reads back equal. The reader wrapped the raw value in double quotes whatever quote the source used (#575).
  • fhir-types 0.1.114 reads a narrative div whose XHTML prefix is declared on an ancestor (xmlns:h on 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 the div and every element inside it, so the string is the innerHTML R4 narrative.html §2.4.0 describes. An element inside the narrative outside the XHTML namespace is refused as UnknownElement, and a prefixed attribute outside the xml namespace as UnknownProperty (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_xml refuses 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 the xsi:schemaLocation attribute, as an unknown property. The writer declares the FHIR namespace alone. The five FHIRPath suite cases on parameters-example-types.xml, which declares both, fail with that rule as their reason (#457).
  • fhir-codegen terminology fails 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 no resourceType. 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 PERSON row from the corpus’s person_data mapping (#560). CDM v5.4 requires person.race_concept_id, and OMOCL has no key that writes it, so every Person record was refused and no person got a row. The engine now writes concept 0 in a required standard concept column that no OMOCL key writes. The CDM conventions use 0 “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_id is the only such column across the ten tables OMOCL writes. The run report counts each one as a concept 0 assignment. A mapping that leaves out a key it could have written, such as ethnicity_concept_id, is still refused.
  • openehr-mapping-core 0.1.110 compares a name predicate the aqlPath of a Web Template node carries on an ancestor segment, so a mapping path below one of two sibling clusters that share a node id (the Straßenanschrift and Postfach addresses of KDS_Person) names the node below that cluster alone (#468).
  • Every person_id an etl run writes names a PERSON row, where the rows of a person no mapping wrote a PERSON row for named a person_id that PERSON did not hold, against the CDM v5.4 foreign key (#541). A PERSON row 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_birth 0, the ehr_id as person_source_value) that such a mapping later replaces, and existing refuses the row, also when the person map knows the EHR but its PERSON row is gone. The run report counts the PERSON rows and the placeholders (persons).
  • A second composition of an EHR writing the PERSON row 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. Run ferrobridge cdm init once 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' answers 36 'cm2' and 12 'cm2' / 3 'cm' answers 4 '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, defaulted and the rest) with its FHIRPath and its openEHR path, where it logged the loss’s display text, which could carry a reference literal such as Patient/123. The $validate dry run renders each loss as the operations lane does, with its FHIRPath in issue.expression and its openEHR path as a details.coding, severity warning and code incomplete, or information and informational for a defaulted composition field (#509).
  • etl run removes 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’s LATEST_VERSION query did not answer is read from the CDR over ITS-REST 1.1.0 composition_get; a 204, the answer for a deleted composition, removes its rows, links and watermark in one transaction, and the derived tables are rebuilt after it. A 200 or a 404 keeps 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 is remove. 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 PERSON row 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). The PERSON row 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 run removes a visit the visit query no longer answers, such as one whose every composition was deleted, where its VISIT_OCCURRENCE row 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-types 0.1.110 writes a repeating primitive whose every position carries only an id or an extension as the _name array 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_arrays returns the value array as an Option. 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 a timingTiming that 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 Resource or DomainResource still 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 GET on the REST root, and a 401 or 403 from 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 run reads 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 ..data link and the ..<timestamp> directory behind it no longer make each mapping load three times and refuse the start with duplicate-mapping-name (#420).
  • A FERROBRIDGE__… environment value takes the type of the key it sets: a string key takes the text verbatim, so FERROBRIDGE__CDR__CREDENTIALS__USER=12345 is the user name 12345 instead of a number the boot refuses, and true or 1.5 stay 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] gain user_file beside password_file (#424).
  • The generated CDM metadata carries the vocabulary domains of a concept column as a list (ColumnMeta::fk_domain), so episode.episode_object_concept_id, which the CDM v5.4.3 definitions give the two domains Procedure, Regimen, accepts a concept of either. The omocl domain 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 rustls 0.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/FerroBRIDGE URLs redirect. The image now publishes to ghcr.io/ferrohealth/ferrobridge, and the quickstart, the book and the landing page name that reference. Everything published up to v0.0.4 stays available under ghcr.io/rubentalstra/ferrobridge, and its signatures name rubentalstra/FerroBRIDGE as the repository that built it (SECURITY.md). The roadmap board is now https://github.com/orgs/FerroHEALTH/projects/3. fhir-types steps to 0.1.107 for its new repository field 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-time into tools/ferrobridge-testkit/vendor/ (about 600 MB unpacked, so only each PROVENANCE.md is committed; the pins carry a file count and tree digest, versions.sh reads them back and pin-freshness.sh reads each version against the registry). Four corpora, fhir-r4 to fhir-r6, send every example through the fhir-types JSON 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 a wiremock CDR, with the other examples counted by type, and behind FERROBRIDGE_E2E a 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 CI test, conformance and 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 --update writes 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; --check fails when a badge or the block is stale.

  • The file-length guard (#351). scripts/checks/file-length.sh fails the CI guard tier when a hand-written Rust file exceeds 1000 lines or a listed breach in scripts/checks/file-length-allow.txt grows; 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 the Location every create, update and transaction entry answers now resolves. The facade reads the composition version whose version tree id is {vid} and answers it with its ETag; a version the CDR does not hold is 404, one it reports deleted is 410, and the CapabilityStatement lists vread on every supported type.

  • FerroBRIDGE’s supplements to the HL7 v2-to-FHIR guide (#256): ConceptMaps in the guide’s own shape, shipped inside ferrobridge-hl7v2 under supplements/ and loaded over the guide’s package by Corpus::with_shipped_supplements, which the face calls before the [hl7v2] supplements directories; 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 as supplemented (Outcome::Supplemented, corpus::Origin). The shipped set runs CWE.1, CE.1 and CF.1 into Coding.code without the guide’s narrative gate, names the CF components and the Quantity elements OBX-6 fills, keeps HD.2 out of MessageHeader.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 as Reference.identifier where the guide names a resource no map fills, fixes the ADT_A01.PD1 row 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 = true starts an MLLP listener beside the HTTP server, under the same SIGTERM drain, with an hl7v2 line in the boot banner and an hl7v2-listener readiness indicator. Each message runs through ferrobridge_hl7v2::inbound and 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 by meta.profile as 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 one Patient, and every composition’s FEEDER_AUDIT names the message by MSH-10 and message type. The acknowledgment follows the commit: AA when the CDR holds the compositions or held them from an earlier delivery, AE with one ERR per refused entry for a refusal of the content, AR when 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 an AE or AR logs 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 answered AE for lack of a program. [hl7v2] senders lists 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 is AR with an ERR at MSH^1^4 and is never mapped, counted as refused on the connection’s span. /health/info gains lanes, the hl7v2 lane with its listen address and whether its listener is up, and the facade’s CapabilityStatement names the HL7 v2 face in implementation.description when it is configured.

  • ferrobridge_hl7v2::mllp::serve_with takes 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 answered AR as Malformed::Stalled. mllp::Handler::handle takes the connection’s mllp::Connection, on which a handler counts the frames it refused by its own policy; the mllp_connection span records messages and refused.

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

  • hl7v2-types carries the message structures HL7 withdrew before v2.9.1 (#303), so ferrobridge-hl7v2 parses the ORM^O01 orders legacy senders still send. scripts/vendor/v2-legacy.sh fetches the NIST IGAMT export of HL7’s v2 database (versions 2.1 to 2.8.2) at build time, never committed, pinned in docs/VERSIONS.md by commit, file count and tree digest. The generator emits every structure whose code no v2.9.1 structure carries under legacy::<version>: 218 trees of 57 codes over 11 versions, each with its version and withdrawn_as_of (ORM_O01: 2.7), each code checked against table 0354 of hl7.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), and message::LEGACY with message::find_legacy indexes them by code, event and version. parse::structure_for falls back to it by MSH-12, taking the nearest earlier version the export carries, refuses a version before the first tree with StructureError::NoLegacyVersion, and a parse against a legacy tree is the counted outcome withdrawn-structure. A structure’s and a segment’s url is now Option, a field’s data type can be DataTypeRef::Legacy, and Optionality gains Na.

  • 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 as HD.3, so the hd-endpoint maps’ IF HD-3 = "ISO" and NOT IN rows run. An assignment of 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’s urn: endpoint. A check that names no operand (IF NOT VALUED) is counted as defective-condition, two parts with no + between them (RP.3"/"RP.4) as defective-assignment, and an operand the scope cannot read as unevaluable-assignment. An IN or NOT IN with no operand reads the row’s own source, as mapping_guidelines.md §Conditions lists them, and so do VALUED and NOT VALUED (the bridge’s own reading), so the hd-endpoint HD.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 as datatype-conflict. The typed urn: endpoints come from the guide’s rows alone: convert::endpoint builds only the derived urn: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.sh lists 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-types carries the data type and message definitions (#289). data_type holds 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). message holds the 696 message definitions, indexed by message code and trigger event, each with the structure variant it names, so ADT^A04 selects ADT_A01-B. Every tree and table type derives PartialEq and Eq. ferrobridge-hl7v2’s parse::structure_for selects the variant of a structure from that index, so ORU^R01^ORU_R01 parses as ORU_R01-A with no caller-side table. The generator tolerates four more defects of the definitions in the files that carry them: the editorial group name in MDM_T02-A to -E, CSU_C09 and SRM_S01, the misspelled defintion member of the complex data types, the Message.structure profile URLs, and the 34 message definitions that name no structure; a conformance length without length is tolerated in CP, ERL, MO and MOP beside MSH.

  • HL7 v2 message corpora for the v2 face, and their corpus test (#292). scripts/vendor/hl7v2-samples.sh vendors three sets verbatim under crates/ferrobridge-hl7v2/vendor/, each with its PROVENANCE.md and upstream LICENSE: the Microsoft FHIR-Converter samples with their expected R4 Bundles (MIT, 139 messages), the CDC ReportStream data tests (CC0-1.0, 364 .hl7 files), 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-time it fetches the NIST LRI, LOI and syndromic surveillance test bundles and the AIRA MQE examples into ignored directories, as scripts/vendor/v2ig.sh does, since neither repository carries a licence. The crate’s include keeps 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) and hl7v2-smoke (189 of 379, the fetched sets). The testkit’s Case carries per-case outcome counts into the result the gate reads, pin-freshness.sh reads the seven new commit pins against the head of their branches, and the test and conformance jobs 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-openehr gains Client::contribution for GET /ehr/{ehr_id}/contribution/{contribution_uid} (contribution_get), with one outcome per documented status (200 the CONTRIBUTION, 404 not found) over the generated parameters and the RM Contribution. create_contribution reads an empty 201 as Returned::Minimal whatever the preference, reads the Identifier the 201 schema also admits, and reports any other 201 body as Error::CommittedBody naming 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 empty 201, the 200 read and the CONTRIBUTION body as ITS-REST stub shapes. Every 2xx with an empty body now reads as Returned::Minimal, so a composition create or update answered without a body is bound from its ETag instead of failing after the CDR stored it.

  • The ferrobridge-hl7v2 crate, the HL7 v2 face behind the server (#254), reserved on crates.io at 0.0.0. mllp frames <SB> message <EB><CR> (MLLP Release 1) on the tokio-util codec 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 an AR when a header can still be read. decode reads 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. parse splits by the MSH-1 and MSH-2 delimiters, decodes the escape sequences, and places every segment in the structure’s group tree from hl7v2-types, counting a Z-segment, a segment out of place and a field past its table, and refusing a missing required segment or field. ack answers AA, AE with one ERR per refusal, or AR, echoing MSH-10 in MSA-2, and inbound settles those answers for one message. map runs the 263 ConceptMaps of the v2-to-FHIR guide (hl7.fhir.uv.v2mappings 1.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, the Computable-ANTLR conditions (398 of the corpus’s rows parse) and the [n] and (Type) target notation, writing FHIR through fhirconnect::tree into an R4 message Bundle with the MessageHeader first and urn:uuid full urls. Every table value goes through ConceptMap/$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, logos and chumsky join the workspace dependencies; all five were already in the lock.

  • The hl7v2-types crate, the generated HL7 v2 tables (#253), under Apache-2.0 beside fhir-types and reserved on crates.io at 0.0.0. structure holds every message structure of the HL7 v2 definitions (305, for example ORU_R01-A) as a static segment-group tree, with each segment’s and group’s position, cardinality and segment status, choice groups and the open Hxx slots. segment holds every segment definition (190), the batch envelopes BHS, BTS, FHS and FTS included, 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, and find looks either up by definition id. The crate is emitted by a new v2 root set in tools/fhir-codegen. It reads the fetched v2ig definitions, which have no package.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 --check covers 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.v2mappings 1.0.0 (FHIR 4.0.1, 263 ConceptMaps) is the sixth package scripts/vendor/fhir-packages.sh vendors under tools/fhir-codegen/vendor/. It carries the LICENSE and the mapping guidelines page of its source repository HL7/v2-to-fhir at the 1.0.0 tag, and its PROVENANCE.md records both licences, the package’s CC0-1.0 and the repository’s Apache-2.0. The HL7 v2 definitions (HL7/v2ig input/sourceOfTruth, 1,694 files, pinned by commit) have terms that do not permit redistribution, so the new scripts/vendor/v2ig.sh fetches them at build time into the ignored tools/fhir-codegen/vendor/hl7-v2ig/ and checks the file count and tree digest on every run. The one committed file there is the PROVENANCE.md that quotes the licence text HL7 attaches and records the owner’s decision to use the material as a generator input. The codegen-drift CI job restores the tree from a cache keyed on the commit and runs the fetch before the drift check. scripts/checks/versions.sh reads every FHIR package provenance and the new corpus rows, digests included, back against docs/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.sh compares, --update rewrites the lists and the shields.io endpoint badges under conformance/badges/, and --check runs as the new conformance CI job. The README shows the four badges.

  • The boot banner and the console (#245). ferrobridge serve under the pretty format prints the FerroBRIDGE wordmark, the version, the pins it serves (FHIRconnect, FHIR, OMOCL, OMOP CDM, openEHR ITS-REST, the openehr-* crates and fhir-types, each read from its crate or from Cargo.lock) and the four lanes with the hosts they reach; under json it prints none of it. The boot logs one console event (the format, the filter and whether colour is on), one build event (the git commit, the build instant, honouring SOURCE_DATE_EPOCH, and the rustc version) and one lane event per lane with its hosts and what its mapping set loaded, before listening. GET /health/info answers the same build facts and pins as JSON. A carriage return or line feed inside a pretty record is written as \r or \n, so a value cannot forge a second line. FERROBRIDGE_LOG_FORMAT and RUST_LOG override [telemetry] format and filter.

  • etl run ties each composition to a derived visit (#244): the visit of its EHR whose window contains the composition’s context/start_time (for a composition without a context, the first date its mapping resolved), with the context/health_care_facility name deciding between several windows against each visit’s source. Every clinical row of a tied composition carries visit_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 out versioned_object_uid, which the runner then reads from the version_uid, so a CDR that answers no VERSIONED_OBJECT in FROM can 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 run with the published Laboratory_test_result_v1, Laboratory_test_analyte_v1 and Specimen_v1 files copied verbatim, and written into a CDM v5.4 PostgreSQL with the synthetic vocabulary. The MEASUREMENT, SPECIMEN, FACT_RELATIONSHIP, VISIT_OCCURRENCE and OBSERVATION_PERIOD rows 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 the LOINC, UCUM and SNOMED stand-in codes the compositions use, the Meas Value Operator concepts, and synthetic visit and type concepts. The OMOP ETL page gives the Data Quality Dashboard steps for a populated database. etl::job::run is the job the binary calls, so a test drives the same path.

  • The OMOCL engine (#90). omocl::resolve::compile binds a loaded mapping set to one template once: every file at every archetype root of the template it maps, an Include below its including root at its base_path (one archetype may be included at two base paths, a cycle is refused), a CustomMapping to 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::run walks one composition with that program into an omop_cdm::graph::RecordGraph, reading every value through the generated openehr-rm types. alternatives are 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 a conceptMap does not list, a multiplication that overflows its exact decimal product, a resolved concept outside the domain of its column or its type, 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. A DV_QUANTITY projects its magnitude, its units (resolved in UCUM), 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. FactRelationshipCustomConverter links each laboratory analyte’s MEASUREMENT row to the result’s SPECIMEN row. The vocabulary is a ConceptSource trait asked once per distinct question in a run, and an openEHR terminology id is read as an OHDSI vocabulary_id through a configurable alias table (SNOMED-CT as SNOMED by default). A source code mapped to several standard concepts writes one row per concept, as the CDM conventions ask. ferrobridge etl run now runs: it reads the OMOCL files of the new [mappings] omocl directory 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 the omop-cdm resolver, 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::Refusal names its table and column; the vocabulary’s key, resolution and error types no longer need the database feature, and the error boxes its large fields. The rust_decimal 1.43.0 crate joins the workspace for the exact product.

  • The OMOP concept resolver (#89). omop_cdm::vocabulary::ConceptResolver looks a source code up in CONCEPT by (vocabulary_id, concept_code) and returns it when it is standard, or every standard concept its Maps to relationships reach, ordered by concept_id. Every row it touches must have no invalid_reason and 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 its domain_id. The queries go through sqlx 0.9.0 and are checked at compile time against the vendored DDL from the committed .sqlx/ metadata, which scripts/checks/sqlx-offline.sh regenerates or checks. omop_cdm::database binds 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 that COPY reads. The loader for an Athena export is #233, which waits on #88 recording that format from an observed export. The sqlx-offline CI 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 entry type values, column entries with optional and ordered alternatives of exactly one of path, code, conceptMap and multiplication (whose factors are path or code), base_path, Include and CustomMapping; 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 unknown CustomMapping converter and an unresolved Include are 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 that fhirconnect and omocl both 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 by tools/omop-cdm-codegen from the fkDomain cell.

  • The OMOP sink (#91). omop_cdm::graph is 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_RELATIONSHIP links, and the per-composition report. A row missing a required column, a date among them, is refused naming the column. omop_cdm::writer::CdmWriter commits one graph per transaction over its own tokio-postgres connection: ids come from one integer sequence per table in a bridge schema (ferrobridge by 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 binary COPY, links are written in both directions with relationship_concept_id 0, and a watermark names the version committed. An exhausted sequence is a typed error and rolls the composition back. omop_cdm::derived rebuilds OBSERVATION_PERIOD from the first to the last clinical event per person, and CONDITION_ERA and DRUG_ERA with the PostgreSQL form of the scripts the CDM publishes (crates/omop-cdm/sql/, checked against the digest of the vendored page). The PostgreSQL side of omop-cdm sits behind a database feature, on by default; omocl takes the crate without it.

  • The ETL runner and the [etl] configuration (#91): the composition query and the visit query are parsed with openehr-query 0.0.69 at load and refused without their four aliased projections, an ORDER BY, or with a LIMIT; the run pages them through POST /query/aql, reads each template once, validates each composition, commits it whole, reports a refused one and goes on, skips on --resume every composition whose watermark names the same version, binds --since to $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] gains schema, bridge_schema and person_policy.

  • ferrobridge cdm init runs: 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, and ferrobridge vocab load DIR --schema NAME parses 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 sslmode of [cdm] url as libpq documents it, disable, require, verify-ca and verify-full, over rustls with the aws-lc-rs provider, and check the certificate against the PEM CA in the new [cdm] tls_ca or tls_ca_file, or the webpki root set when none is set. A URL without sslmode (libpq’s default is prefer), prefer, allow, an unknown mode and any other ssl URL parameter are refused when the configuration is read, naming the mode or the parameter, and so is a PGSSLROOTCERT, PGSSLCERT or PGSSLKEY in the environment, which the pool’s client would read and the writer’s would not. The quickstart’s cdm_url now ends in ?sslmode=disable. The etl lane’s startup event carries the sslmode in effect. omop_cdm::connection::CdmConnection settles the TLS once for both clients, and CdmWriter::connect_with takes it.

  • ferrobridge cdm init can run again (#238). It reads the schema’s tables first: a schema holding every CDM v5.4 table is reported as initialised, with the cdm_version of its CDM_SOURCE rows, 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::init returns Init::Created or Init::AlreadyInitialised.

Changed

  • ferrobridge-hl7v2 splits its files over 750 lines into module folders (#355), with no change in behaviour: the interpreter run in map/run/ by phase, the parser in parse/ by phase, and the interpreter tests in tests/it/map/; the condition grammar tests move to tests/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, omocl and omop-cdm split 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 the codegen-drift job over a release build; the test job and the SonarQube Cloud coverage run skip them, since a full emit of hl7v2-types took up to fourteen minutes per test under coverage instrumentation and pushed both past their 45-minute timeouts. codegen-drift runs emit --check in release.
  • fhirconnect splits 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-server splits its seven files over 750 lines into module folders (#354), with no change in behaviour; the configuration file tree moves to config::section (config::section::Telemetry), and every other
  • fhir-codegen splits 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-hl7v2 parses 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.1 DG1 is 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 as missing-required-field naming the field, the segment and the version, and the message is mapped and answered AA. 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.ORC against the 2.5.1 ORU_R01) reaches the segment placed in the parent group, counted as group-path. The IGAMT 2.7.1 and 2.8 tables’ OBX-4 R, which every other version and v2.9.1 write C, is tolerated as an export defect and emitted C. 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 as version-selected with the version used. hl7v2-types::legacy now 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 as openehr-version, openehr-audit-details and openehr-template-id; a refusal’s issue.diagnostics reads the error body the generated outcome or ClientError carries, so a 400 in the prose error shape is the documented 400; a version uid travels with its : literal in the path segment; and [cdr] credentials are the openehr-its Credentials, built with Credentials::basic and Credentials::bearer over a SecretString, in place of the bridge’s own copy of that type.
  • The nine openehr-* crates step from 0.0.69 to 0.0.71, and openehr-its is taken with the new rest feature in place of rest-server, so the ITS-REST DTOs come without axum. 0.0.71 also ships the rest-client feature (FerroEHR #3485), which #285 adopts in place of the hand-written client.
  • The omop-cdm record graph keys its rows by the openehr-base BASE 1.3 identifiers (#279): the EHR and the versioned composition are a HierObjectId and the version an ObjectVersionId, so the ETL runner hands the ids it parsed from the AQL row straight to the CDM writer. The graph’s own EhrId, VersionedObjectUid and VersionUid are gone. Source::new takes the EHR and the version and reads the versioned composition from the version’s object_id as written, RecordKey::new takes the Source it belongs to, and an ehr_id a composition or visit row carries must now parse as a BASE 1.3 HIER_OBJECT_ID. A watermark whose stored version is no OBJECT_VERSION_ID is the new WriteError::Version. The side tables store the same strings as before.
  • ferrobridge-openehr is the ITS-REST client transport only, and takes the openEHR model from the published crates (#276). The version, version container, template and uid_based_id identifiers are the openehr-base BASE 1.3 ObjectVersionId, HierObjectId, TemplateId and UidBasedId the openehr-its DTOs use, so an ETag or a stored id now parses against the BASE 1.3 uid grammar. CommitContext carries the lifecycle state as a DvCodedText and the audit as the ITS-REST UpdateAuditData, and renders the openehr-version, openehr-audit-details and openehr-template-id headers 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 the openehr-am ArchetypeHrid. The bridge’s own ObjectVersionId, VersionedObjectUid, TemplateId, ArchetypeHrid, LifecycleState, ChangeType, Committer and CommitterRef are gone; EhrId, ContributionUid, SubjectId, SubjectNamespace and RequestId stay.
  • 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_bundle answers one outcome per entry (committed, or skipped with a typed reason) under an explicit UnmappedEntries rule: Refuse, which the transaction route passes, or SkipAndCount, which skips an entry no program maps and commits the rest. Provenance::Item names one originating item for every composition, and SourceItem::message builds 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-constraints applies OHDSI’s OMOPCDM_postgresql_5.4_constraints.sql after 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 tag v5.4.3 PostgreSQL refuses line 157, a foreign key onto vocabulary (vocabulary_id) that the primary keys file gives no key (SQLSTATE 42830), so the flag fails the run and leaves the tables in place.
  • The vendored OMOCL corpus moves to SevKohler/OMOCL commit c082db8e (#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_ms is the per-request timeout of the reqwest engine, retry.max_attempts, retry.initial_backoff_ms and retry.max_backoff_ms are the client’s retry budget over idempotent calls, and credentials (with its _file forms) are the Basic or Bearer credentials sent on every call. Two answers read differently: a 501 is no longer retried, since a repeat cannot change it, and a 204 to a create under return=minimal is a committed write instead of an undocumented status. The facade answers every CDR status with the same FHIR status and OperationOutcome as 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’s cdr module; 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, OBX placed its OBX in ORDER_DOCUMENT, whose required TXA never came, and reported nothing; the OBX now opens the RESULT group, and an OBX followed by its TXA still opens ORDER_DOCUMENT. A group left with a required member missing is a 100 refusal naming the member and the group, located at the group’s first segment.
  • A facade read, vread or return=representation write answers a valid R4 instance (#350). A Condition mapped through a context with no outbound subject row read back without subject, which R4 makes 1..1, so the read body could not be sent back as an update. The facade now writes subject (or patient, 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 every min 1 element of the fhir-types element table, nested and contained ones included, and answers 500 exception naming the element when one stays absent. The identity map gains a seventh table from each ehr_id to its person, and a store an earlier version wrote gains its rows when it opens.
  • A facade update that sends back the ETag a read answered, If-Match: W/"1", commits the next version and answers 200 with _history/2 and the new ETag (#347), as R4 concurrency prescribes. Before, every such PUT answered 412, and only the CDR’s own uid::system::N form succeeded. The facade completes W/"N", "N" and a bare N to the current version of the bound composition, at the cost of one extra CDR read per versioned update, answers 412 with the current ETag when N is stale, and 400 invalid when the value names no version. The CDR’s own form still passes through, and one naming another composition is 412.
  • A transaction Bundle that carries one resource id at two meta.versionIds is refused with 400 invalid naming 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 unknown id produced two compositions. An entry that repeats another’s version as well keeps its 422 duplicate.
  • A FHIR path that names a choice alternative by its concrete key, such as Observation.effectiveDateTime, valueQuantity or an extension’s valueCodeableConcept, resolves to the one type that alternative carries, so Resolved::type_code answers dateTime where 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 as untyped-target naming the element, where it went on under an empty type name.
  • scripts/checks/conformance.sh stops 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’s datatype-pl-to-location writes the levels through [1]. to [6]. rows, which the interpreter counted as unplaced-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 the k-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 as sibling-unresolved; the references to the family take the finest level, counted as finest-sibling, or stay put as sibling-ambiguous when 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’s partOf rows disagree and the building names itself; writes the point of care’s mode and physicalType at 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: every Location.partOf, identifier, mode and physicalType difference) 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.OBR where the 2.3 tree places OBR at ORM_O01.ORDER.ORDER_DETAIL.CHOICE.OBR, so the OBR, RXO, NTE, DG1 and OBX of a legacy order now reach their rows, each counted as group-path naming the row path and the tree path. A row path that reaches two tree paths, or a tree path two row paths reach, stays unmapped-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.PV1 where the 2.3 tree has ORM_O01.PATIENT.PATIENT_VISIT.PV1, so the PV1 and PV2 of a legacy order now reach their rows, counted as group-renamed naming 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 segment unmapped-segment. The v2.9.1 MDM_T02 definitions name the observation group FIXME, so the OBX of a document notification now reaches the guide’s MDM_T02.OBSERVATION.OBX rows. 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_MSG to MSG and CE_0051 to CE, counted as base-typed naming both codes. A code the guide maps keeps the guide’s map: TS stays on datatype-ts-to-datetime. hl7v2-types carries the link: each legacy version module gains a data_type module with one LegacyDataType per code its segments’ fields name, whose base is MSG for CM_MSG, CE bound to table 0051 for CE_0051 and DTM for TS, and DataTypeRef::Legacy points at it. A code that stands for no defined type keeps its code and stays no-datatype-map when no map names it. The pass counts do not move.
  • The two datatype-eip-<half>-to-identifier maps each fill an Identifier of their own (#336). The guide maps SPM-2 into Specimen.identifier[1] and identifier[2] and ORC-4 into DiagnosticReport.identifier[3] and identifier[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 placer Identifier (PGN), the second the filler’s (FGN), each counted as datatype-half naming the map chosen. A value valuing a component neither half reads (an EI written into ORC-4) stays a datatype-conflict. A (Type) row whose one step inside the referenced resource is a Reference no 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 as reference-root: OBX-25 into performer(PractitionerRole.practitioner) and ORC-12 into requester(PractitionerRole.practitioner) run datatype-xcn-to-practitionerrole, which gives the PractitionerRole its Practitioner. A primitive a data type map writes at $value of a complex element with a primitive value child lands there, counted as value-child: TXA-16 through datatype-st-to-identifier gives DocumentReference.identifier.value. Over the corpora, datatype-conflict falls from 1226 to 155 and no-datatype-map from 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-typed outcome naming the field, both types and the version: an ORM^O01 at 2.3 maps OBR-4 by CE (datatype-ce-to-codeableconcept) where the row names CWE. 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-identifier maps 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 one Identifier: a bare value from datatype-ei-defaultassigner-to-identifier, a value with an assigning authority from datatype-ei-organization-to-identifier, with its assigner. The [System] variant, whose EI.1 row writes $value and whose system rows are narrative, is no longer run, so the no-datatype-map it counted through datatype-st-to-identifier is gone. Equally specific maps that write differently count datatype-ambiguous naming them, and none writes. A row whose mappedVia names 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] and HD[name] into MessageHeader.source), so MSH-3 and MSH-24 into source and MSH-25 into destination run both HD maps where they counted no-datatype-map. A child that another row of the same field targets directly stays that row’s, so MSH-3’s own source[1].endpoint row keeps the endpoint. When two maps write the same child for one value, as the four EI maps into Identifier do with EI.1, the row writes nothing and counts datatype-conflict naming the child and the maps. The pass counts do not move (111 of 511 vendored, 189 of 379 smoke): the guide’s datatype-hd-endpoint-to-messageheader-source gates 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 lack MessageHeader.source.endpoint.
  • A required FHIR primitive carried only by its _name sibling 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). The data-absent-reason the guide’s MSH-24 row writes into _endpoint now completes MessageHeader.source, so a v2 message valuing none of MSH-3, MSH-24 and MSH-4 is mapped with that endpoint instead of answered AR; a _name with an empty extension list is still missing. Where MSH-4 is valued its endpoint still replaces the extension. A message whose MessageHeader.source no row completes, such as one valuing MSH-24, whose row into source has no single data type map, is still refused as MapError::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 url MessageHeader.source.endpoint, is never written and counts as invalid-value naming the element and the type (https://hl7.org/fhir/R4/datatypes.html#primitive). An element lacking an element its definition requires (MessageHeader.destination without endpoint, an extension without url, Provenance.agent without who) is left out, and so is a resource lacking one (MessageHeader without source), each counted as missing-required with the definition path it lacks. A write taking a second alternative of a choice such as Extension.value[x] counts as superseded. A resource that still does not decode is left out of the Bundle as undecodable. 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 as undecodable.
  • Every message Bundle the v2-to-FHIR interpreter emits opens with its MessageHeader, as FHIR R4 invariant bdl-12 requires (https://hl7.org/fhir/R4/bundle.html#invs) (#311). A v2 HD written into a url element (MSH-3 into MessageHeader.source.endpoint, MSH-5 into MessageHeader.destination.endpoint) becomes the guide’s urn:oid:, urn:uuid:, urn:dns: or urn:uri: form of its universal ID when HD.3 names one of those types, and otherwise the derived urn:ferrobridge:hl7v2-hd: endpoint with each component percent-encoded; the namespace ID is kept in the name beside it. A message that names its sender in neither MSH-3 nor MSH-24 is answered AR with an ERR at MSH-3, and a run that still completes no MessageHeader is refused as MapError::NoMessageHeader naming the element it lacks. The corpus test asserts bdl-12 over 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 into MessageHeader.source has 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). The MessageHeader.source.endpoint and source.name come from the MSH-4 HD by the endpoint rule above, the guide’s sender Organization from MSH-4 stays, and the fallback is counted as a facility-endpoint outcome naming the field and the element. MSH-6 fills destination.endpoint the same way when MSH-5 and MSH-25 are empty. Only a message valuing none of MSH-3, MSH-24 and MSH-4 is answered AR. 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 VALUED and the destination pair) now write their data-absent-reason extension on the endpoint, and the data type rows of the same form (XTN.3 when XTN.4 is valued) run too. A row on an empty field whose condition only tests another field (PID-13 with IF 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 as other-structure naming 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 id the identity map knows and a new meta.versionId commits 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 an UpdateVersion whose preceding_version_uid is the composition’s latest version, with a modification audit, binds to the resource id it already has, and answers 200 OK in the transaction-response with a Location naming the new version. The commit-before-bind record, the FEEDER_AUDIT pairing and the retry after a failed binding hold for such an entry, and a Bundle entry now also claims its resourceType and id alone, 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 each Resource.identifier it 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 answers 400 not-supported. One match answers 200 OK and commits nothing, several answer 412.
  • A single create re-sent with the id and meta.versionId the identity map already consumed commits nothing and answers 200 OK with the Location, ETag and 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 known id at another meta.versionId commits a later version of the same composition; before, it committed a second composition. A create of a known id with no meta.versionId is a replay when it maps to the content the composition holds now (the uid and the clock-filled times masked, as the transaction path masks them) and a later version otherwise. An id the map binds to two compositions is refused with 409 Conflict. A single create also claims its resourceType and id, so two creates of one id at different versions cannot run at once. PUT and 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 Conflict with a duplicate issue 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_AUDIT item, 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 every DV_DATE_TIME the engine filled from its clock (the ctx/time default that reaches EVENT_CONTEXT.start_time, HISTORY.origin, EVENT.time and ACTION.time), where a retry mapped at a later instant failed the comparison with a 500 on 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 OK with the composition the first delivery produced (#275), where it committed a second composition. The single and the transaction paths share the read-back and the FEEDER_AUDIT match; 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 |raw suffix (ITS-REST 1.1.0 Simplified Formats, master04 §Raw canonical JSON) instead of through per-class suffix tables, which dropped hyperlink, language and encoding on a DV_TEXT or DV_CODED_TEXT and normal_status, normal_range and accuracy on a DV_DATE_TIME with no error. A tail below a node is now admitted when the openehr-rm attribute model defines it, and refused at load (fc-uncarried-tail) when it runs through a list or sits below a structural node other than ENTRY.provider; a manual path must end on a string attribute. The composition defaults travel as the ctx/ keys of master06, and a default setting whose code and value name two concepts of the openEHR setting group is refused. A value at COMPOSITION.composer, language or territory that the ctx/ keys cannot carry whole is refused instead of losing its identifiers or its terminology. The LINK and PARTICIPATION lists 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 stamps EHR_STATUS.archetype_details.rm_version 1.2.0, the release its types come from, instead of 1.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 the FEEDER_AUDIT the engine wrote, since ITS-REST states no order for CONTRIBUTION.versions; a version that matches no entry, or more than one, is a 500 naming the contribution and binds nothing. A committed transaction answers a transaction-response Bundle whose entries carry 201 Created, the location [base]/[type]/[id]/_history/[vid] and the ETag a create answers (R4 §3.1.0.11.3), where it answered an OperationOutcome. A Bundle whose every entry an earlier delivery consumed commits nothing and answers 200 OK per entry with the same locations; one only some of whose entries were consumed is refused with 409 naming them, and one carrying a resource twice is refused with 422. 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.sh also 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 vendored master05-rm_mapping.adoc.

  • The KDS diagnosis round trip (#86). scripts/vendor/kds-diagnose-opt.sh vendors the published KDS_Diagnose operational template verbatim, pinned by commit, path and sha256 in docs/VERSIONS.md, with its provenance and the repository licence beside it. A FerroBRIDGE project context compiles the published EVALUATION.problem_diagnosis.v1 chain 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 an overwrite or an appendTo of 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): $validate names 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 in issue.code and diagnostics; both JSON media types are read on every write and anything else is 415; 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 a PARTY_SELF over a PARTY_REF whose GENERIC_ID scheme 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_origin names the system and the source resource, which travel as originating_system_audit and originating_system_item_ids, and every composition field the engine defaulted travels as one feeder_system_item_ids entry, in the order of the Warning::Defaulted entries. The facade and $toopenehr both 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::UnsupportedTail instead of being dropped on the way to the wire.

  • The FHIRconnect engine runs reference, link, participationsFunction and hierarchy.split (#186). What a run calls out to is Seams: the mappingCode registry, a ReferenceSource for referenced resources and an IdentitySink for 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. A link writes an openEHR LINK whose target must be an ehr: URI, a participation writes one other_participations entry, and a split creates one resource or one archetype instance per occurrence and per distinct unique tuple. Created resources travel on Outcome::created: $tofhir answers them as Bundle entries covered by the one Provenance, and the facade carries them as contained resources.

  • The FHIRconnect operations compile against the templates the CDR serves when [cdr] is configured and [mappings] templates is not (#195): boot reads the context files, fetches each template they name at GET /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] templates directory still wins when both are present. A [mappings] directory with neither source is refused when the configuration is read, before any upstream call, while [operations] enabled is true. A mapping set that does not load stops the start with “the mapping set could not be loaded” followed by the cause.

  • fhir-types 0.1.106 carries the isSummary and isModifier flags of every element on schema::FieldSchema as is_summary and is_modifier (#213), read from the pinned StructureDefinition of 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 pins Patient.active, Patient.name and Patient.photo per version.

  • fhir-types 0.1.105 refuses a primitive value outside its lexical form on decode (#204). Every primitive whose JSON form is a string carries the regex extension its own package puts on the value element (https://hl7.org/fhir/R5/datatypes.html#primitive), compiled once behind a LazyLock in 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", a code with a leading space, a uri holding a space and an id outside [A-Za-z0-9\-\.]{1,64} are a DecodeError with BadValue and 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 types CodeSystem.id as string where 4.3.0 and 5.0.0 type it as id. A primitive carried as a JSON number or a boolean keeps the number checks it already had.

  • fhirconnect::operations and the $tofhir and $toopenehr HTTP surface (#114). The two operations the draft FHIRconnect REST API chapter defines (specification pull request #93, pinned by commit) are served by ferrobridge serve: POST /fhir/$tofhir takes a Parameters whose composition is the openEHR composition as a JSON string, canonical or FLAT with templateId, plus an optional context group of ehr_id, patient, who and onBehalfOf, and answers a collection Bundle carrying the mapped resources, exactly one Provenance and an OperationOutcome entry when the run declared a loss; POST /fhir/$toopenehr takes a Bundle and answers a Parameters with the composition string and an optional outcome. The direct form the chapter keeps outside the FHIR implementation guide is served too, as POST /fhir/tofhir with Content-Type: application/openehr+json and POST /fhir/toopenehr answering in that media type. templateId, format and ehr_id travel in the body or the query, with the body taking precedence; a FLAT composition with no template is 400 required; any other media type is 415; every refusal is an OperationOutcome with 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, and context.patient takes precedence over the subject a mapping resolved without ever being required. The mapping set is compiled once at boot from [mappings] directory and the new [mappings] templates key, and [operations] carries the lane switch, the Device reference the Provenance defaults to and the composition defaults an inbound run applies.

  • The FHIR R4 facade (#85), mounted under /fhir when [facade] enabled is set and answering nothing at all when it is not, so a disabled facade is a 404 rather than a 403. It serves a CapabilityStatement built 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 under If-Match, commits a transaction Bundle as one openEHR contribution, and answers $validate as a dry run that writes nothing. Every response is application/fhir+json, and everything the facade authors is an OperationOutcome: an openEHR error body travels verbatim inside issue.diagnostics rather 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 a 422 carrying its validationErrors, a deleted composition is a 410, a 401 keeps its WWW-Authenticate, and a CDR failure is a 502 naming the upstream status instead of an empty success.

  • Identity for the facade (#85), in a redb file the lane opens at boot and readiness probes. A resource id comes from the entry’s LOCATABLE.uid when 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 while meta.versionId moves 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_AUDIT naming the source resource’s id and type, its meta.versionId, and the configured system_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_language and composition_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: get reads an openEHR reference-model value into its FHIR element and put writes it back with the openEHR value the target already holds, and each pair carries the GetPut and PutGet laws as proptest properties over the subset its table declares lossless. The cells are DV_CODED_TEXT against CodeableConcept and against Coding, CODE_PHRASE and TERM_MAPPING against Coding, DV_TEXT against string, Coding and CodeableConcept, DV_DATE_TIME against dateTime, DV_INTERVAL<DV_DATE_TIME> against Period, PARTY_IDENTIFIED against Reference with DV_IDENTIFIER beside it, and DV_PROPORTION against Quantity for a percentage. A date and time value keeps the text it came with, so Z, +00:00, +01:00 and 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 a TERM_MAPPING whose match is not =, a DV_PROPORTION that is not a percentage, and a Period collapsed into a DV_DATE_TIME where the page gives no rule are each a typed refusal naming the element. Beside the cells, the module carries the direction rule (fhirCondition runs when FHIR is the input, openehrCondition when 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_openehr reads a FHIR resource and builds a canonical composition, to_fhir reads 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 a 0..n input into a 0..1 output leaves its last occurrence with the rest declared lost. A manual entry merges every path it names into one element, a slotArchetype recurses with the whole chain checked for a cycle, type: NONE only 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 required 1..1 child the input does not carry, a slot chain that closes on itself, a mappingCode the 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). compile selects 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: an add whose name collides, an append that carries mapping logic or names no target, an overwrite of a missing method, two extensions overwriting one name, an extension method on a nested mapping, a slotArchetype cycle, a template identifier or sem_ver the 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, and select picks one by meta.profile membership 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’s lower and upper and a term mapping’s _mapping:0/target as paths below the node.

  • openehr_mapping_core::index::node_id_matches and archetype_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_path hands back the aqlPath the 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 with cargo fuzz targets 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.yml on 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). ast carries one Rust type per construct a model, extension or context mapping file may hold, each node positioned at the YAML it was read from; parse lowers 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; schema compiles JSON Schema over both the schemas FHIRconnect publishes and the stricter pair this crate ships under schemas/; semantic applies the rules a schema cannot express (a condition’s criteria against its operator, a targetRoot that names a child of the with path it filters, an extension method outside an extension file, a reference mapping without $reference, a mappingCode naming no registered function, and every cross-file reference against the loaded set); and load runs 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, mappingCode and a null mappings), 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 write mappings with no value; a third pins the library’s own defects, including six duplicate metadata.name declarations and eleven cross-references that name no loaded mapping.

Changed

  • The zizmor pin moves from 1.29.0 to 1.30.1 in the CI lane and the pin matrix (#180). Its new self-repository audit is disabled in .github/zizmor.yml with 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.ini and rest/input/pagecontent/index.md at the pinned commit, fetched by scripts/vendor/fhirconnect.sh, so the implementation guide canonical behind the $tofhir and $toopenehr definitions is citable from the tree.

  • The openehr-* crates move to 0.0.69, and openehr-sdt joins 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 of openehr-its at 0.0.68, so the mapping foundation and the tests reach them through openehr_sdt and openehr-its is taken with opt14, json and rest-server alone. openehr-its is Apache-2.0 again and openehr-sdt is BUSL-1.1, which the licence table records. jsonschema moves to 0.57.0, thiserror to 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-saphyr moves to 1.3.0 and clap to 4.6.7 with their pin rows (#206). Dependabot’s cargo ecosystem gains an openehr group so the next family bump arrives as one pull request.

  • The container base image gcr.io/distroless/static-debian13:nonroot moves to index digest e2e927e, in the FROM of docker/Dockerfile and 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 and SPDX-FileCopyrightText line 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->fhir and $openEHRRoot are admitted beside openehr->fhir and $openehrRoot. YAML keys stay exact, because the published schemas fix them with a JSON Schema enum.

  • fhirconnect::tree, the bidirectional path model behind with.fhir (#81). It parses the expression FHIRconnect writes, including the two head forms the specification adds ($resource and $fhirRoot) and the ^ parent operator, resolves it against the R4 element table fhir-types emits, and reads and writes it over that crate’s lexical Value tree. Navigation is by element name; a choice element resolves through ofType(), 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’s extension lives 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 type key from its two sides, since the type “is derivable from the instances” (data-mappings.adoc §Deprecated), and the engine runs what it derived: an untyped dateTime element pairs with a DV_DATE_TIME node instead of converting as text; an untyped mapping onto a structural node anchors its children as type: NONE does, and one with no child is a fc-anchor-without-children warning; a choice element with no type filter, and an Extension against a data value through its value[x], reads the alternative the document carries and writes the first pair of the node’s class, refusing at load with fc-underived-alternative when the choice admits none; and a type key on a choice fixes the alternative both ways. The required-child check of engine/Fail.adoc counts 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 so code.coding and verificationStatus.coding no longer share instances, a manual entry’s openehrCondition is evaluated going out of openEHR, and a node the composition does not hold is no input occurrence. ENTRY.provider travels as its _provider FLAT family, and the engine defaults EVENT_CONTEXT.setting to 238 “other care” as a declared default (Defaults::with_setting names another), so the declared set of a round trip closes.
  • A mapping whose openEHR tail or manual path 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 its UnsupportedTail refusal as a backstop. The published problem_qualifier.v2, KDS_problem_qualifier, problem_diagnosis.v1, multiple_coding_icd10gm.v1 and report.v1.Condition files name such tails, and the test contexts carry stand-ins for them.
  • participationsFunction writes and reads EVENT_CONTEXT.participations ($composition/context/participations) as the _participation:i family under context, as it does ENTRY.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 openehrCondition going out of openEHR and refuses a composition it does not admit with EngineError::NotApplicable, the rule it already applied to fhirCondition going in (basics/Conditions.adoc). A manual path no FLAT part carries refuses with EngineError::UnsupportedTail instead of being dropped, an openEHR position that does not fit is refused with its own PositionError instead 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::read finds 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/metadata declares $tofhir and $toopenehr in CapabilityStatement.rest.operation whenever the FHIRconnect operations lane is served beside the facade, with the canonical OperationDefinition URL of each (http://fhirconnect.org/fhir/OperationDefinition/ToFhir and .../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-types emits now carries Element with its id and extension, 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: no Element Rust type is emitted, because an element typed Element becomes its own nested struct. The table types (Schemas, TypeSchema, FieldSchema, Kind, ValueKind) moved from fhir_types::xml to fhir_types::schema in the same change, and Schemas::is_resource is public.
  • The conformance findings of the fhirconnect model and resolve review (#177). An openEHR path that names more than one template node is now fc-ambiguous-template-node naming the candidates instead of binding to their parent; the reference-model attributes a path walks below the deepest template node are checked against the openehr-rm attribute model; an append refuses every key but followedBy; a condition and a hierarchy.split path are read-only sites, so where(), first(), last(), an index filter and resolve() are accepted there; a slotted or extension file’s preprocessor and a file-level spec.conceptmap and spec.unidirectional reach the program; ^ crosses a reference boundary into the enclosing resource; the model layer no longer refuses an appendTo that another extension’s add supplies; the strict schema requires targetAttribute or targetAttributes on an openehrCondition again, as the published one does; a mapping-level data type beside a with.type is 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 manual value as a literal or a named $context member, a hierarchy.split create as one of three elements, FhirTarget::repeats() beside the openEHR occurrence axes, and Program::mapping_named for 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, the ferrobridge binary shape (#21): a thin main.rs over a testable library run path, with serve plus the etl run, cdm init, vocab load and mapping check subcommands, which parse and exit 2 naming the issue that lands each. Configuration is an optional TOML file, named by --config or FERROBRIDGE_CONFIG, with FERROBRIDGE__<SECTION>__<KEY> environment variables over it; every struct refuses an unknown key, every default lives inline in its own Default impl, every credential is reachable through a <key>_file sibling 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 is tracing with auto, json and pretty renderings, auto resolving 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 is GET /, GET /health/liveness and GET /health/readiness, the last over a registry of per-upstream indicators that answers 503 while any of them is down. The middleware stack echoes an X-Request-Id only when it is printable ASCII of at most 128 characters and mints a version 4 UUID otherwise, renders a handler panic as a 500 with a JSON body carrying the request id, answers 408 past the request timeout and 413 past 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. SIGTERM and SIGINT start a bounded drain. The variable table is on the Operate page of the book.

  • ferrobridge-openehr and ferrobridge-term each gain a reachability probe, one GET on 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/Dockerfile is one stage on gcr.io/distroless/static-debian13:nonroot, pinned by the digest of its image index, copying the static musl binary the release lane stages at dist/<os>_<arch>/ferrobridge. It runs as uid 65532 written numerically, binds 0.0.0.0:8080, exposes 8080/tcp, and carries an exec-form ENTRYPOINT with serve as the default command, so a Kubernetes Job sets args: alone. It declares no HEALTHCHECK, because the base has no shell: the probe is GET /health/liveness from outside, with /health/readiness answering 503 and a JSON body naming each down upstream. compose.yaml at 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 the cdm, cdm-init and vocab-load profiles over PostgreSQL 18.6. scripts/checks/versions.sh now checks the base-image digest, the quickstart image tag against the product and workspace versions, and the quickstart’s PostgreSQL pin; the docker Dependabot 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.yml keeps the tag, the draft and the publish, and its build jobs become uses: calls to two new reusable workflows, which is what puts the signing identity out of reach of caller-defined steps. release-build.yml builds one native target per call on a runner of that architecture, with no cache and with cargo auditable, and produces the tarball carrying the binary, LICENSE, NOTICE and README.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.yml verifies this run’s musl tarballs against the build lane’s signer identity before staging them, pushes ghcr.io/rubentalstra/ferrobridge for linux/amd64 and linux/arm64, attests the index and both platform manifests as OCI referrers, and verifies its own output the way a consumer would. finalize-release names the required asset set in full and refuses to publish a short release; a pre-release publishes with --latest=false. SECURITY.md carries the gh attestation verify commands for a tarball and for the image and says what each one proves, and the pinned tool versions are guarded by scripts/checks/versions.sh.

  • crates/ferrobridge-term, the FHIR terminology client (#77): CodeSystem/$lookup resolves a code’s display, ConceptMap/$translate maps a code into another system, ValueSet/$validate-code tests membership of a value set, and batch sends several of them as one batch Bundle that is answered by position. R4 and R4B are both read, over the generated fhir-types operation 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 own out parameters is an outcome, and every refusal is a typed error carrying the upstream status, the body, and any tx-issue-type coding the OperationOutcome holds. A missing display is a NotFound outcome, never an empty string; a translate refusal fails closed and is never a missing translation; every match is returned with its equivalence and accepted() yields the equivalent and equal ones alone, so a wider or inexact match never reaches a target system. Retry covers connect failures, timeouts and 5xx, and the POST form is retried because the three operations declare affectsState: false. The testkit gains the terminology() container, the synthetic CodeSystem, ValueSet and ConceptMap the reference server loads, the OperationOutcome and batch-response stubs, and a pin row for the terminology server image.

  • openehr-mapping-core gains the path module (#75): the Web Template built from either an OPT 1.4 or an ADL 2 OPT2 behind one TemplateSource, the aqlPath index 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 through openehr-its and openehr-rm, and the term-binding kind per generation. The ADL 2 fixtures are compiled from synthetic .adls sources with openehr-adl as 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. containers starts PostgreSQL 18.6 and the reference openEHR CDR with its own database, each image pinned by tag and digest in docs/VERSIONS.md, which scripts/checks/versions.sh now compares with the harness constants, and torn down when the test’s value drops; every container-backed test returns early unless FERROBRIDGE_E2E=1, so the ordinary suite stays offline. stubs carries the documented ITS-REST status shapes and the FHIR R4 terminology Parameters for wiremock, and fixtures the synthetic operational template, composition and R4 resources. On that harness, omop-cdm applies its embedded OHDSI DDL to a real database and asserts the catalogue against the generated column metadata (#73), and ferrobridge-openehr commits, reads, updates, queries and deletes a composition against a real CDR over ITS-REST (#76). The e2e CI job runs both with the gate set. A second catalogue test pins what OHDSI’s rendered OMOPCDM_postgresql_5.4_constraints.sql does at tag v5.4.3: PostgreSQL refuses it, because vocabulary is the one foreign-key target the rendered primary_keys.sql declares no key for.

  • The generated OMOP CDM v5.4 layer and its generator (#73): omop-cdm carries a row type and a column-metadata static for every one of the 39 tables the OHDSI definitions declare across the CDM, VOCAB and RESULTS schemas, 432 columns in definition order, with the CDM datatypes mapped to i32, f64, a bounded Varchar<N>, and the lexical CdmDate and CdmDatetime; OHDSI’s four rendered PostgreSQL files are embedded verbatim and their @cdmDatabaseSchema placeholder is substituted through a checked PostgreSQL identifier. tools/omop-cdm-codegen emits all of it from the vendored definitions at tag v5.4.3, byte-deterministically, and the omop-cdm-codegen-drift CI job fails on any difference. Tests assert the generated column set of every table against OHDSI’s DDL.

  • crates/openehr-mapping-core carries the half of the mapping foundation both languages share (#74): the header FHIRconnect and OMOCL standardize between them, with GrammarVersion, MappingName, MappingVersion, MappingType and ArchetypeId as distinct types and everything a language adds under spec kept as an opaque positioned node; a YAML loader over serde-saphyr that 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; one Diagnostic type carrying file, position, mapping name, model path, severity and code; and a MappingPath over the openehr-rm BASE 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-types element table (#121): every emitted type carries the path it is defined at, and every element carries its ElementDefinition path, min, max, the type codes the definition lists and the contentReference target, beside the XML kind the codec already read. Schemas::element resolves 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), and Schemas::type_of gives the type such a path resolves to. A test walks every vendored StructureDefinition of the emitted set and asserts the table agrees element by element.

  • fhir-types converts between its own codec::Value and serde_json::Value (#122): Value::into_serde_json and Value::to_serde_json hand a document to serde_json only 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 what serde_json writes, so a decimal never changes on the way out (FHIR regards 0.010 as different from 0.01, https://hl7.org/fhir/R4/datatypes.html#decimal). Value::from_serde_json is 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-openehr is 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, a 5xx and a 401 are typed errors that keep the status, the body and the WWW-Authenticate challenge. It covers the EHR, COMPOSITION, CONTRIBUTION, AQL and template surfaces, sends Prefer explicitly on every request, sends If-Match as the bare quoted version_uid, sends the three 1.1.0 committal metadata headers on a commit, and fetches a template over both generations, adl1.4 first and adl2 on a 404 or a 406. Timeout and bounded backon retry apply to idempotent calls only.

  • The specification corpora under docs/specs/ (#71), each fetched by a committed scripts/vendor/*.sh from the commit docs/VERSIONS.md pins and stamped with a PROVENANCE.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 three STABLE openEHR ITS-REST OpenAPI documents. An integration test reads every tree, and scripts/checks/versions.sh fails when a provenance stamp stops naming the pin the matrix records.

  • fhir-types carries a feature table (#120): r4, r4b, r5 and r6 gate the version modules, terminology carries the terminology root set the crate has always held, and resources widens 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 plus terminology, so a dependant that names no feature gets what it had. One emitted tree holds the union and each item carries the cfg of the narrowest feature that selects it, so the drift gate still covers the whole tree; a new fhir-types-features CI 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 the adl2 route, decoded into the two OPT types and built into one Web Template by the two openehr-its builders behind one seam; the resolution order, the ADL 2 Accept rule, the HRID identifier handling, the at-code versus id-code refusal and the term-binding delta are recorded as FerroBRIDGE’s own; openehr-am joins the pins and openehr-adl stays out until a CDR serves ADL 2 as text alone.

  • docs/architecture.md carries ten mermaid diagrams: the system picture, the two languages over one foundation, the openEHR path pipeline, the FHIRconnect pipeline, the inbound create and the $tofhir sequences, 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-types at 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 its PROVENANCE.md); scripts/vendor/fhir-packages.sh, which refetches those packages against the docs/VERSIONS.md pins; the codegen-drift CI job, which regenerates in check mode and fails on any difference; and the regen-codegen skill. Features, the public element table and the serde_json::Value conversion follow in the next increments of #72.

  • The crates.io lane the published crate line needs (#72): the crates leg of release.yml, gated by the crates-io environment 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; the publish-dry-run CI job; and scripts/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-rust action reads rust-toolchain.toml for every Rust-tier job, and every workspace member carries one integration binary at tests/it/main.rs (the foundation crate asserts the four openehr-* 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.toml and a committed Cargo.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 thin ferrobridge binary over a library that does nothing yet; and the ferrobridge-testkit tool crate with the pin-matrix reader. CI tier 2 is active from this change on.

Fixed

  • scripts/site/assemble.sh renders the book into a temporary directory and copies from there (#58), so assembling the site no longer rebuilds website/book/book/ in the source tree. The usage header says so.
  • cargo deny check prints zero warnings (#145). The licence check now covers dev-dependencies (include-dev = true), which is what the openehr-adl exception needed to fire at all, and each of the ten multiple-versions duplicates carries a skip entry naming the older version and the crates that require it. multiple-versions stays at warn, 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 408 and a 413 each leave their one request line 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.info Sonar 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.sh fails when a book theme favicon differs from the brand mark it copies, and runs in tier 1 of ci.yml (#52). .github/workflows/pin-freshness.yml reads every pin no Dependabot ecosystem covers, the analyzer versions in ci.yml and 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.sh runs the crate bump guard before a git commit or a git 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.md records 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 reads NOASSERTION and 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-rust composite (#157), which gained cache-shared-key and cache-save-if inputs for the coverage lane; the actions-rust-lang/setup-rust-toolchain digest 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 for crates/fhir-types, the crate’s own licence, and BUSL-1.1 for crates/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.sh anchors 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-types moves to 0.1.102, its packaged bytes having changed. fhir-codegen also refuses a contentReference whose 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.toml records 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 and cargo deny check reports no unencountered licence.

  • docs/architecture.md is rewritten as the output of the third research pass (2026-09-12): the fhir-types move is re-baselined on the crate as it is today (no cargo features, a lexical-precision Value instead of serde_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 entry uid first 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 invented DV_PROPORTION extension 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.md moves the openehr-* crates to 0.0.64 and the fhir-types floor 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.md states 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.md is rewritten as the output of the second research pass (2026-09-05): the FHIR model is generated in this repository (the fhir-types crate 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.md pins the corpora by commit, the four openehr-* crates, the five HL7 FHIR packages the generator reads, and the crate line; the fhir-terminology row is removed, since the client contracts live in fhir-types. scripts/checks/versions.sh checks the new crate rows.

  • The book’s Evaluate, Operate and Integrate pages, CLAUDE.md, docs/ci-cd.md and 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 a v* tag is pushed and running on nothing else. It validates the tag shape, refuses a workflow_dispatch that is not dispatched at the tag it names, checks the tag against every file that declares the product version (CITATION.cff and the docs/VERSIONS.md product row today, the root Cargo.toml as 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.toml detection ci.yml tier 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 the release-tags ruleset 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 follows prefers-color-scheme), the 1200x630 social card, the raster favicon set, the “Indigo & Iron” palette as --ferrobridge-* custom properties in tokens.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 its og:image and Twitter card image, and the mark in its header; the book gets the same favicon through website/book/theme/; and the repository README shows the lockup (#32).
  • scripts/site/assemble.sh copies assets/brand/ and the repository-root llms.txt into 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), with no-changelog as the exclusion. The hand-curated changelog stays the primary record (#17).
  • Two cargo and docker entries in .github/dependabot.yml beside the existing github-actions one, each grouping minor and patch bumps into one weekly pull request while majors stay individual, with the conventional commit prefixes ci, deps and build and open-pull-requests-limit: 10 on cargo. Both are inert until their manifests exist (#17).
  • The Rust half of .github/workflows/sonar.yml, gated on a root Cargo.toml at step level: the pinned toolchain with llvm-tools-preview, the instrumented cargo llvm-cov nextest run that writes lcov.info, and the sonar.projectVersion derivation that anchors the New Code window to the workspace version. sonar-project.properties names 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.yml builds it on every pull request and deploys from main through GitHub Pages, .github/actions/docs-toolchain/action.yml installs the pinned mdBook toolchain, and scripts/site/assemble.sh places both halves and renders the roadmap block from the open milestones. llms.txt and CITATION.cff land with it, the README badge block covers CI, CodeQL, Scorecard, the Sonar quality gate and coverage, the licence and the latest release, and scripts/checks/versions.sh now 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=low with the online audits enabled, actionlint through its digest-pinned official image, shellcheck at --severity=style over 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 a detect job that looks for a root Cargo.toml, so it activates by itself when the workspace lands. The conclusion job reads every job’s result and is the single required status check on main. Housekeeping the lanes read lands with it: .hadolint.yaml, .dockerignore, .github/actionlint.yaml, and the .gitattributes linguist-generated line reserved for the generated OMOP CDM subtree. docs/ci-cd.md records 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, with scripts/checks/versions.sh failing when ci.yml and the matrix disagree (#16).
  • docs/VERSIONS.md, the pin matrix: one place that records every version pin (the five specification pins, the published fhir-types and fhir-terminology crate pins, the Rust toolchain, edition, resolver and MSRV, the product version, and the licence) with the files that repeat each one. scripts/checks/versions.sh fails on any disagreement and on a first-party file claiming a licence other than BUSL-1.1, and skips with a printed reason for each file that does not exist yet. A PostToolUse hook runs the guard when a pinned file changes (#15).

Changed

  • SECURITY.md and MAINTAINERS.md name both protections a published release has: the immutable-releases setting freezes its notes and assets, and the release-tags ruleset 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.md describes 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.md links 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.md sends a reader to the documentation site first. It still said there was no site, which went false the day the site went live and contradicted README.md on the same tree (#44).

  • The contributor page at /docs/contribute/checks-and-gates.html names 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.yml audits .github/ rather than .github/workflows/, so dependabot.yml and 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.md and the pull-request template name the wider path too, so a local run still matches CI (#34).

  • The Dependabot cooldown on the github-actions and docker ecosystems is 7 days, up from 3, which is the floor zizmor’s dependabot-cooldown audit enforces and matches the 7-day minor value already on cargo. Security updates are exempt from cooldown, so an advisory still arrives immediately. docs/ci-cd.md records why the earlier defence of the 3-day value did not hold and why no suppression was recorded (#34).

  • CONTRIBUTING.md lists all six tier-1 gates ci.yml runs, 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).