Introduction
FerroEHR is a pure-Rust openEHR Clinical Data Repository (CDR): a headless, API-first server that stores and queries structured health records through a vendor-neutral REST API and the Archetype Query Language. This book is the user-facing guide — how to run it, configure it, talk to its API, query it, and load the templates that give your data shape. If you build clinical applications, operate healthcare infrastructure, or are evaluating an openEHR back end, you are in the right place.
The name comes from ferrum, Latin for iron: Rust is iron oxide, so the project went straight to the element. Say it “FER-ro-E-H-R”.
What openEHR gives you
openEHR separates clinical knowledge from software. The structure and meaning of clinical data — a blood-pressure reading, a medication order, a discharge summary — live in shared, computable models called archetypes and templates, authored by clinicians and modellers rather than baked into application code. Applications then store and retrieve that data through a standard API, against a shared Reference Model, so the same record is portable across every conformant system.
FerroEHR implements that standard natively. It speaks the openEHR REST API (ITS-REST Release-1.1.0), executes Archetype Query Language (AQL 1.1), and holds data as canonical openEHR compositions with full, indelible version history. There is no proprietary data format in the middle: what you commit is what you query and what you read back.
What makes this implementation different
- Conformance you can run yourself. The openEHR conformance catalogue is executed by a committed runner against a live server, over both canonical JSON and canonical XML, and every row it judges cites the specification text it reads. The run record lives in the repository, and every number on the Conformance page is derived from them at build time, never hand-typed.
- The openEHR specifications, generated directly from the official machine-readable models: the Reference Model, the Archetype Model (1.4 and 2.4), the serialization schemas, and the REST API contract (Release-1.1.0). openEHR’s own published terminology (3.1) ships embedded, byte-identical to upstream. A specification update is a regeneration.
- Two selectable specification generations. One configuration key,
spec_profile, chooses the whole generation set the server runs:development(Reference Model 1.2.0 with BASE 1.3.0, the default) orstable(the latest released generations, Reference Model 1.1.0 with BASE 1.2.0). Seespec_profile. - One self-contained binary. No JVM, no language runtime, and a pure-Rust TLS stack, so there is nothing to provision beside PostgreSQL. The container image is shell-less and runs as non-root.
- PostgreSQL 18-native storage. Clinical documents are decomposed into an indexed node model with time-bounded, versioned rows; canonical openEHR JSON is stored verbatim so storage and API never disagree.
How the system is layered
FerroEHR is built in two layers. A specification layer is generated deterministically from openEHR’s published models: the Reference Model types, canonical JSON/XML serialization, the REST contract, and the AQL front end. On top of it sits the application: the server, the PostgreSQL-native storage, the AQL execution engine, validation, and security. The System architecture chapter walks through this in user terms; if you are new to openEHR itself, start with the openEHR primer.
Where to go next
- Wondering why this exists? Why FerroEHR exists is the project’s position: what openEHR is worth, what we commit to, what the licence lets you do, how building a product on it works, and why contributing back pays.
- Just want to try it? Getting started takes you from
docker compose upto a stored composition and an AQL result in a few minutes. - Deploying it? Installation covers Docker Compose, Kubernetes/Helm, building from source, and the configuration reference; Operations covers running it afterwards.
- Integrating an application? Using the API and Querying with AQL are the core reference for client developers.
- Modelling clinical data? Templates & validation explains how templates drive what the server will accept.
- Reviewing it for a deployment? Security and the Threat model state what is enforced and what is yours to enforce; the FerroEHR Viewer is the optional web UI over the same public API.
Note
FerroEHR began as a fork of EHRbase (by vitasystems and the Peter L. Reichertz Institute) and records that lineage in the labelled import commit at the root of its history, but it is an independent, from-scratch Rust implementation with no EHRbase code in this tree, and it is not affiliated with or endorsed by the EHRbase project. FerroEHR’s own code is source-available under the Business Source License 1.1; vendored openEHR material keeps its upstream terms: Apache-2.0 for the machine-readable artifacts, CC-BY-SA 3.0 for the specification text, and CC-BY-SA 3.0 and 4.0 for the clinical models (see Licensing & legal).
Why FerroEHR exists
This chapter is the project’s position: what makes openEHR worth implementing, what this implementation commits to, and what it offers the organisations that run it and build on it. Read it if you are deciding whether to depend on FerroEHR, or whether to contribute to it.
- openEHR is worth building for
- A specification is only as strong as the implementations you can run
- What we commit to
- Running FerroEHR commercially
- What we ask in return
- What contributing back can look like
- What this is not
openEHR is worth building for
openEHR does something almost nothing else in health IT does: it separates clinical knowledge from software, and then writes both down. What a blood pressure, a medication order or a discharge summary means lives in archetypes and templates authored by clinicians and modellers: published and computable. The Reference Model underneath them is specified. So is the query language, the REST interface, and the serialization, down to the shape of the JSON on the wire.
The consequence is determinism. Given the same template and the same composition, two conformant systems store the same record and answer the same AQL query the same way. A clinical record stops being one application’s private state and becomes data that outlives the application, the vendor and the procurement cycle. For a record that has to stay readable in twenty years, by software nobody has written yet, that is the whole game.
A specification is only as strong as the implementations you can run
A standard becomes real when there is something you can start with one command, read the source of, check against the specification yourself, and run for research, teaching or a non-profit deployment without a fee. Without that, an excellent specification stays an idea that only well-funded organisations can act on.
That is the gap this project set out to close: one complete, openly developed, source-available openEHR CDR whose conformance is measured and published.
What we commit to
- One licence for all of our own code, with no open-core tier. Role- and attribute-based access control, IHE ATNA audit, per-version digital signatures, change events and the viewer are in one repository under the Business Source License 1.1. Nothing is held back to be sold back to you. (Vendored openEHR material keeps its own upstream terms, and the spec crates that embed it say so in their own metadata; see Licensing & legal.)
- Every claim checkable. Conformance is executed by a runner against a live server, and the run records, per-case results and measured performance are committed to the repository. If a number appears on this site, the record it came from is in the tree, and a change that moves a verdict cannot land quietly.
- The specification is the authority. The normative openEHR text is vendored in the repository and cited decision by decision. Where we find it silent or self-contradictory, the finding is filed in public and reported upstream.
- The specification layer as reusable libraries. The generated openEHR model, the canonical codecs, the REST contract, the ADL engine and the AQL parser are published on crates.io as eight standalone crates, so the next Rust project does not have to re-model openEHR to get started. The five generated model crates are under the Apache License 2.0, the licence of the openEHR artifacts they are generated from, and need no licence conversation at all.
- Maintenance in the open. Public roadmap, public issue tracker, changelog-driven releases, signed artifacts, and a security policy with a private reporting channel.
- A compliance posture you can read before you buy. FerroEHR publishes its EU compliance posture, backed by the tracker. The compliance overview states the status of each control with its issue, and which obligations stay with the organisation running the software. It claims no certification and no conformity, because a product cannot hold either on its own.
Running FerroEHR commercially
FerroEHR is source-available under the Business Source License 1.1, which is not an OSI-approved open-source licence. One licence covers the whole repository, and no feature is held back for a paid tier.
| What you are doing | What you need | Why |
|---|---|---|
| Reading, building, modifying or redistributing the source | Free | The licence grants it without a fee and without asking anyone. |
| Development, testing, evaluation, prototyping | Free | All non-production use is granted. |
| Production use for Non-Commercial Purposes | Free | Personal use, academic or scientific research, teaching, and use by a non-profit organisation or public body that is not in the course of a business, does not deliver a service for payment, and is not for commercial advantage. |
| A hospital, clinic or care provider running it for its patients | Commercial licence | Delivering health care, or any other service for payment, is production use outside the grant. |
| A vendor or integrator, or any company running it in production | Commercial licence | Production use in the course of a business is outside the grant. |
| Offering it, or a work derived from it, to third parties as a hosted, managed or embedded service | Commercial licence | Excluded from the grant in every case, whoever you are. |
| Selling, sublicensing or otherwise distributing it for a fee | Commercial licence | Excluded from the grant in every case, whoever you are. |
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. Each version becomes Apache 2.0 four years after it is published, so what ships today opens up on a published schedule. Licensing & legal carries the full picture, including every vendored third-party tree.
Building products on FerroEHR is welcome, and it is how standards reach
patients. Companies and care providers running FerroEHR are wanted here, and
the commercial licence is the normal path for them, on terms meant to make
those deployments and products possible on a sustainable footing. It is also
how the shared, conformant foundation gets maintained by the people who build
on it instead of every vendor rebuilding one in private. A commercial licence
is arranged with Cadasto B.V., the Licensor, which handles the business side
of FerroEHR: write to info@cadasto.com or use
https://www.cadasto.com/contact/. Technical questions go to the maintainer
named in
MAINTAINERS.md.
Talk to us early.
What we ask in return
Contribute back.
The licence does not oblige you. The arithmetic does:
- A private fork is the expensive option. Fork it and you inherit the whole maintenance surface: specification releases, security advisories, database upgrades, re-running conformance, and re-merging your changes at every release, forever. Upstream the same change and it is maintained once, by everyone who runs it.
- A defect found once should be fixed everywhere. In clinical software the validation gap you patched privately is still live in every other deployment of the same code. Sharing the fix is the difference between one organisation being safe and all of them being safe.
- Interoperability is a property of the population, not of any single implementation. Every conformance case contributed, and every ambiguity resolved in the open, makes it likelier that your system and the next one actually agree about a record.
When the same fix is made privately in five places, the standard is no stronger and five teams have paid for it. Nobody chose that outcome, and it is an easy one to avoid.
What contributing back can look like
You do not have to write Rust to make this project better:
- A bug report with the request that reproduces it, the most valuable thing most users will ever send.
- A conformance case for behaviour the catalogue does not cover yet, so the next release cannot regress it.
- A specification finding: the ambiguity you had to resolve in order to ship. We adjudicate those against the vendored text and report the genuine ones upstream to the openEHR Foundation.
- Documentation: a correction, deployment experience from your environment, or the paragraph that would have saved you two days.
- Measurement from your own hardware and workload. The instruments that produce our published numbers ship in the repository and run against any server, including one that is not FerroEHR.
- Code: fixes, features, connectors, packaging for your platform.
- Sponsorship, if your organisation depends on this and cannot spare engineering time.
Contributing is the practical starting point. Security issues have their own private channel; please use it rather than the public tracker.
What this is not
This is not an argument against commercial or proprietary software. A product with FerroEHR inside it, or a care provider running it for its patients, is a good outcome, and we would rather those succeed than not exist at all; a commercial licence is how they and this foundation support each other.
It is also not a claim to be the only good openEHR CDR. FerroEHR began as a fork of EHRbase and records that lineage in the labelled import commit at the root of its history; today it is an independent Rust implementation with none of that code left in the tree. FerroEHR is an independent implementation of the openEHR® specifications and is not affiliated with or endorsed by the openEHR Foundation.
And it is not a large team. The project is maintained by one person today, with the machine gates (conformance, the fidelity suites, the CI guards) standing in for review capacity a bigger group would have. The threat model and the repository’s own governance and maintainer documents say so plainly.
The same honesty covers how the code gets written: substantial parts of FerroEHR are built with AI coding tools, directed and reviewed by the maintainer, with every change held to the machine-enforced gates described above. The full statement — what that means, what bounds it, and what you can verify instead of trusting it — is the repository’s AI statement.
Maintained by Ruben Talstra and the FerroEHR contributors. If your organisation runs FerroEHR, or is thinking about building a product on it, we would like to hear about it early: open an issue or say hello on the tracker.
Concepts
This part explains the ideas you need to use FerroEHR effectively. Four chapters; the first two read in either order, the last two go deeper:
- openEHR primer: the standard itself: the Reference Model, archetypes and templates, compositions, versioning, and AQL, with no prior openEHR knowledge assumed. Read this first if the words “archetype” and “composition” are new to you.
- System architecture: how this server is put together and where your data actually lives, so the behaviour you see through the API makes sense: why the specification layer is generated, how storage and versioning work on PostgreSQL, and how an AQL query becomes SQL.
- Storage architecture: the deep-dive on the tables: the temporal version table, the decomposed node model with its nested-set index, the one-transaction write path, and the cold archival tier, each with a diagram.
- The AQL engine: the query pipeline from lexer to
RESULT_SET, what each stage refuses, and the design reasons queries are fast.
None of them is a prerequisite for Getting started; you can commit a composition and run a query without them. Come back when you want to know why the API behaves as it does, or before you make one of the decisions you then live with: a specification generation, a template design, a query shape.
openEHR primer
openEHR is an open standard for storing health records in a way that outlives any single application. Its central idea is to keep what clinical data means separate from the software that stores it. This chapter introduces the pieces you meet when using FerroEHR (the Reference Model, archetypes and templates, compositions, versioning, and AQL) in plain terms. It is enough to follow the rest of this book; the openEHR specifications are the full reference.
- The Reference Model: a fixed vocabulary of shapes
- Archetypes and templates: the meaning layer
- Compositions: the unit of clinical data
- Versioning: nothing is ever overwritten
- AQL: querying by meaning, not by table
- How it fits together
The Reference Model: a fixed vocabulary of shapes
At the bottom is the Reference Model (RM), a fixed, general set of building
blocks that never changes per project. It defines generic structures such as a
COMPOSITION (a clinical document), a SECTION (a heading), an OBSERVATION,
EVALUATION, INSTRUCTION and ACTION (the kinds of clinical statement), and
the data types that carry actual values: DV_QUANTITY (a measured amount with
a unit), DV_CODED_TEXT (a term from a terminology), DV_DATE_TIME,
DV_TEXT, and so on.
The RM is deliberately generic: it knows about “a quantity with a unit” but not about “systolic blood pressure in mmHg”. That specificity comes from the layer above.
FerroEHR carries two Reference Model generations, and one configuration key,
spec_profile, chooses which one a deployment runs: RM 1.2.0 (the
development default) or RM 1.1.0 (stable, the latest released
generation). openEHR’s minor releases are additive, so data written against
1.1.0 reads unchanged under 1.2.0; the reverse is not guaranteed, which is why
the choice is worth making before you commit clinical data. See
spec_profile.
Archetypes and templates: the meaning layer
An archetype is a reusable, computable definition of one clinical concept (“blood pressure”, “body weight”, “medication order”) expressed as constraints over the Reference Model. It says which fields exist, how many times each may occur, what units and value ranges are allowed, and which terminology codes are valid. Archetypes are authored once by clinicians and modellers (often drawn from the international Clinical Knowledge Manager) and shared across systems.
A template assembles and further constrains a set of archetypes for a specific use: a particular form, message, or dataset. It picks the archetypes you need, narrows their optionality (mandatory here, hidden there), and pins down defaults. The template is what a CDR is actually loaded with.
FerroEHR ingests templates as Operational Template (OPT) 1.4 XML, and ADL 2 artefacts as ADL 2 source. Once a template is uploaded, the server derives what it needs to validate incoming data and to describe the data’s shape to client applications; see Templates & validation.
Note
The order is always: agree on archetypes → build a template from them → upload the template to the CDR → commit data that conforms to it. You do not define a database schema; the template is the schema, and it lives in the clinical model, not the code.
Compositions: the unit of clinical data
A composition is the openEHR unit of committed clinical content: one document, conforming to one template, stored inside one patient’s record. A blood-pressure reading, an encounter note, a lab result set: each is a composition. Compositions are grouped and organised inside an EHR, the container that represents a single subject of care.
Every EHR also has an EHR_STATUS (metadata about the record, including whether it is queryable and modifiable, and the link to the subject) and, optionally, a directory, a folder tree for organising compositions.
Versioning: nothing is ever overwritten
openEHR records are versioned and indelible. When you update a composition, the previous version is retained and a new version is created alongside it. You can read any composition as of a point in time, list its full history, and never silently lose clinical data. Deletion is logical: the object is marked deleted but its history remains readable.
Every change is wrapped in a contribution, an atomic change-set that also records an audit entry (who, when, why). A single contribution can commit several compositions together, and either all of them land or none do.
FerroEHR serves both the latest version and all versions of an object, and AQL can query across version history; see Querying with AQL.
AQL: querying by meaning, not by table
The Archetype Query Language (AQL 1.1) is how you get data back out. Instead
of SQL over hidden tables, you query against the clinical model using archetype
and template paths. A query names the RM types and archetypes it wants, uses
CONTAINS to express structural nesting, and selects values by their path
within the archetype:
SELECT
o/data[at0001]/events[at0006]/data[at0003]/items[at0004]/value/magnitude AS systolic
FROM EHR e
CONTAINS COMPOSITION c
CONTAINS OBSERVATION o[openEHR-EHR-OBSERVATION.blood_pressure.v2]
WHERE o/data[at0001]/events[at0006]/data[at0003]/items[at0004]/value/magnitude > 140
The same query runs unchanged against any conformant openEHR system holding that archetype. That is the portability payoff. The Querying with AQL chapter is a full walkthrough, including which constructs this engine supports and how it refuses the ones it does not.
How it fits together
flowchart TB
rm["Reference Model<br/>(generic building blocks)"]
arch["Archetypes<br/>(one clinical concept each)"]
tmpl["Template (OPT 1.4 or ADL 2)<br/>(archetypes assembled for a use)"]
comp["Compositions<br/>(committed clinical documents)"]
ehr["EHR<br/>(one subject's record)"]
aql["AQL<br/>(query by clinical path)"]
rm --> arch --> tmpl
tmpl -->|validates| comp
comp --> ehr
aql -->|reads| ehr
With these concepts in hand, the System architecture chapter shows how FerroEHR realises them.
System architecture
This chapter explains how FerroEHR is built and where your data lives, in practical terms. You do not need any of it to use the API, but it clarifies why the server behaves the way it does: why the conformance claims are checkable, why versioning is exact, and why AQL does not degenerate into a document scan. Two ideas run through everything: the openEHR specification layer is generated from the official machine-readable models, and the storage is designed natively for PostgreSQL 18.
- Two layers
- Two specification generations, one selectable set
- The native service API
- Two domains, three pools, one request path
- Storage: the node model on PostgreSQL 18
- Versioning: one table, one interval per version
- The AQL engine
- What this means for you
Two layers
flowchart TB
specs["openEHR machine-readable specifications<br/>(Reference Model · XML schemas · OpenAPI — vendored & pinned)"]
subgraph gen ["Specification layer (generated, never hand-edited)"]
types["Reference Model types (two generations) · canonical JSON & XML<br/>ITS-REST contract (Release-1.1.0) · AQL 1.1 parser · Simplified Formats"]
end
subgraph app ["Application layer (the server)"]
rest["REST adapter (axum)<br/>authentication · authorization · wire mapping"]
sm["Service layer<br/>(our own design)"]
core["Platform: PG18 storage · versioning ·<br/>AQL→SQL engine · validation · signing"]
ext["Optional integrations<br/>(FHIR audit and terminology · events · multimedia — compiled in by cargo feature)"]
end
db[("PostgreSQL 18")]
specs -->|deterministic codegen, drift-checked in CI| gen
rest --> sm
core -->|implements| sm
core --> ext
app --> gen
core --> db
The specification layer is generated. openEHR publishes its Reference Model, serialization schemas, and REST contract as machine-readable models. FerroEHR generates its Rust types, canonical JSON/XML (de)serialization, the REST API contract, and the AQL front end directly from those models. The consequence for you: the server’s data shapes and wire contract cannot silently drift from the standard. A continuous-integration check regenerates everything and fails the build on any divergence. A specification update is a regeneration. That layer is also published for reuse, as standalone Rust crates.
The application layer is the server. It holds everything the generated
layer does not: storage, the query execution engine, validation, and security.
This is where design choices specific to FerroEHR live. The optional
integrations (the FHIR audit rendering and terminology client, change events,
S3 multimedia) sit beside it in their own crate behind additive cargo features,
so a build without them contains none of their code; see
Beyond the core. FHIR R4 resource mapping is not
part of FerroEHR: it is FerroBRIDGE,
a separate server that reaches FerroEHR over ITS-REST. The Helm chart deploys it
in the same release with bridge.enabled=true; see
Kubernetes & Helm.
What you actually deploy is small: one self-contained server binary plus
PostgreSQL. No JVM, no language runtime, and a pure-Rust TLS stack. The
published container image is distroless and non-root, with no shell and no
package manager. (It is not a static binary: the server links the system C
library dynamically, which is why the image is the cc distroless variant. See
Operations.) The
viewer is a separate, optional binary and image
that talks to the server strictly over the public REST API.
Two specification generations, one selectable set
The Reference Model is not pinned to a single version. The generated layer emits
two generations side by side (the latest released one and the development
one), and a single configuration key, deployment.spec_profile, picks which set the server
runs: development (Reference Model 1.2.0 with BASE 1.3.0, the default) or
stable (Reference Model 1.1.0 with BASE 1.2.0). Because openEHR’s minor
releases are additive supersets, everything valid under stable is valid under
development; the reverse is not guaranteed, so the profile also acts as an
acceptance boundary in both directions:
- Surface the selected generation does not define is refused: an AQL
FROMclass or a path attribute RM 1.1.0 does not declare is rejected at planning time, with the active profile named in the error. - Released surface the development line later dropped stays accepted under
stable: the request is read by that generation’s own reader at ingress, and the one attribute the newer generation removed is validated and then dropped (the server recomputes it) rather than stored.
Stored content is never silently rewritten to fit another generation. See
deployment.spec_profile for the direction
contract and how to change it on an existing deployment.
The native service API
Internally the server is organised around the openEHR Platform Service Model, a standard catalogue of service components (EHR, Composition, Directory, Contribution, Query, Definition, Terminology, Admin, Messaging, System Log, and more), with one module per component and its methods following that component’s own operations. The REST layer is a thin protocol adapter over that native API. Practically, this means the HTTP behaviour you observe maps onto the standard’s own service definitions, and the same core can be driven by adapters other than REST.
Two domains, three pools, one request path
The server holds one connection pool per storage domain, and which pool a service module uses is fixed by what that module stores. The clinical pool serves the openEHR record, the demographic pool serves parties and their identifiers, and the audit pool the access log.
flowchart LR
rest["REST adapter"]
subgraph clin ["clinical modules"]
ehrsvc["service::ehr · query · admin<br/>definition · message · validity"]
end
subgraph dem ["identity module"]
demsvc["service::demographic<br/>(parties, sealed identifiers)"]
end
subgraph lnk ["crossings"]
lnksvc["service::linkage<br/>(cohort, AQL demographic join)"]
end
audit["system_log store"]
pc[("clinical pool<br/>ferroehr_clinical → clinical")]
pd[("party pool<br/>ferroehr_party → party")]
rest --> ehrsvc
rest --> demsvc
rest --> lnksvc
ehrsvc --> pc
audit --> pc
demsvc --> pd
lnksvc -. "hop 1: the parties" .-> pd
lnksvc -. "hop 2: the EHRs whose subject names them" .-> pc
A cohort and the AQL demographic join are the calls that need both domains.
Each selects parties on the demographic pool, then finds the EHRs whose
EHR_STATUS.subject names those parties on the clinical pool. The two hops are
two connections in the application. No statement performs the join, and under
separated credentials no role could issue one.
Each pool takes its own DSN from [database.<domain>] url, defaulting to
[database] url. Leave every domain unset and all three pools
authenticate as the first, which keeps the schema separation and drops the
credential separation. Preparing the schema spans every schema at once, so it
runs on [database] migrate_url rather than on any of them. The local Audit Record
Repository is written on the clinical pool, into its own audit schema. See
Operations for the
roles and the threat model
for what each credential can reach.
Storage: the node model on PostgreSQL 18
A clinical composition is a deep tree. Storing each as one large JSON blob makes queries slow: extracting a single value forces the database to read and decompress the whole document every time. FerroEHR instead decomposes each versioned object into one row per structural node, in a single unified table:
- Each node carries an integer interval index so that AQL’s
CONTAINS(structural nesting) becomes a fast integer-range join rather than a tree-walk. - Hot query predicates (RM type, archetype, name, path, and the owning EHR) are promoted to indexed columns. The archetype identifier is stored split into its parts as well, which is what lets a query naming a parent archetype match data created with a specialisation of it.
- The node’s own content is stored as canonical openEHR JSON, verbatim (compressed, with the structural children pruned into their own rows). There is no proprietary encoding and no translation step: what the storage holds is exactly what the API serves, which makes both querying and debugging straightforward.
Versioning: one table, one interval per version
Versioning uses a single version table rather than separate “current” and “history” tables. Each version is a row carrying the validity interval during which it was the version of record; the current one is the row whose interval is still open. Branches are modelled explicitly, so an imported or branched version coexists in time with the trunk without ambiguity.
Non-overlap is a property of how writes are performed, not a constraint the database re-checks per row: a partial unique index admits at most one open row per lineage, and every write closes the outgoing row and inserts its successor in the same transaction at the same instant, so the intervals meet exactly. PostgreSQL’s exclusion constraints would enforce the same property directly, but they serialize concurrent inserts on the write path, so this design does not use them.
Because history is just rows in the same table, FerroEHR serves both
LATEST_VERSION and ALL_VERSIONS (the record as it is now, or across its
entire history) from one place. Time-ordered UUIDv7 keys keep inserts
index-friendly, and every write emits a contribution and an audit row in the
same transaction, so the change-control trail is never out of step with the
data.
There is also a cold tier: an administrator can archive EHRs and demographic parties into a separate schema in the same database, shrinking the tables that serve everyday traffic. Archived records stay readable by id and come back automatically on write, but they leave the AQL-visible store until then. The trade is spelled out in Admin & messaging APIs.
Note
openEHR does not define a database schema; it defines semantics (versioning, indelibility, canonical data fidelity). FerroEHR is free to choose the storage design that best serves those semantics on PostgreSQL, and its versioning behaviour is verified against the specification, not against any particular table layout.
The AQL engine
An AQL query is parsed, then its paths are typed against the generated Reference
Model (which types an attribute may hold, whether it is multi-valued, which
concrete types a slot can contain). From that typed form it is lowered to a
single SQL statement: CONTAINS chains become interval joins on the node table,
leaf values are extracted with PostgreSQL’s JSON path functions, and ordered
comparisons on quantities and date/times go through small immutable helper
functions that implement openEHR’s own magnitude and temporal semantics, which
also makes them usable in indexes. The result is assembled into the standard
RESULT_SET shape.
Anything the engine cannot lower is a typed refusal naming the construct, never a silently different answer. See Querying with AQL for the language and its supported feature envelope.
What this means for you
- Checkable conformance. The wire contract and data types are generated from the standard and drift-checked, and the conformance catalogue is executed against a live server with its records committed to the repository, so the conformance claims are machine-derived. See Conformance.
- Exact versioning. Nothing is overwritten; every version and its audit are retained and readable.
- Operational simplicity. One self-contained binary and a PostgreSQL 18 database; see Installation.
Storage architecture
How FerroEHR physically stores clinical data. This page goes one level below
the system architecture: the tables, the write path, the
read paths, and the reasons the layout looks the way it does. If you read the
source, the schema itself is the authority: every column in
app/ferroehr/migrations/ carries a COMMENT ON line with its citation.
One thing up front: openEHR defines no SQL schema. What the specs do
define, and what this storage realizes, are the versioning and change-control
semantics (RM common change control), canonical data fidelity (ITS-JSON),
and the contribution and audit duties. The relational layout below is
FerroEHR’s own PostgreSQL-18-native design, and the RM explicitly sanctions
that freedom: “Although the figure implies physical containment of Versions
by a Versioned object, this is only one possible implementation. Other
implementations (e.g. using orthodox relational structures) might use
references, separate compressed copies, or any other mechanism.”
- The big picture
- Core tables and how they relate
- Versioning: an append-only table and one mutable head row
- Content decomposition: the
nodetable - The write path: one transaction per commit
- Read paths
- The archival tier is a partition
- Why this design
The big picture
Every versioned object (COMPOSITION, EHR_STATUS, EHR_ACCESS, FOLDER, the demographic party kinds) is stored twice over, deliberately, in one transaction:
versionholds the version row: identity, version tree position, commit instant, lifecycle state, and the canonical JSON body bytes served verbatim on point reads. It is written once and never updated.nodeholds the same content decomposed: one row per RM structure node, carrying a nested-set index and promoted predicate columns, so AQL never walks JSON to answer CONTAINS.
flowchart LR
client[REST client] --> rest["ITS-REST adapter"]
rest --> svc["service layer<br/>(validation, versioning)"]
svc --> tx{{"one transaction<br/>per commit"}}
tx --> audit[(commit_audit)]
tx --> contrib[(contribution)]
tx --> vov[(version)]
tx --> head[(vo_head)]
tx --> node[(node)]
vov -. "point read: body bytes verbatim" .-> rest
node -. "AQL: interval joins + promoted columns" .-> rest
The database is PostgreSQL 18, split into four schemas:
| Schema | Holds |
|---|---|
ext | FerroEHR’s own IMMUTABLE helper functions (openehr_magnitude, openehr_timestamp), the runtime roles and the deployment posture |
clinical | the clinical CDR: versions, heads, nodes, EHRs, contributions, templates, queries, tags |
party | the demographic pseudonymisation domain: party versions, heads, nodes, contributions, commit audits, and the sealed national_identifier values |
audit | the IHE ATNA Audit Record Repository (audit_event) |
Each carries its own migration set and its own _sqlx_migrations bookkeeping
table, applied in that order. The archival tier is not a fifth schema: it is a
partition of the relations it archives, described below.
The instance is single-tenant. No relation carries a tenant column and no
row policy scopes a read: several organisations are served by several
instances. openEHR puts multi-tenancy at the layer that hosts several logical
EHR systems rather than inside one (BASE architecture_overview
master06-design_of_the_ehr.adoc §The EHR System).
The two pseudonymisation domains
Parties (PERSON, ORGANISATION, GROUP, AGENT, ROLE, PARTY_RELATIONSHIP) live in
party, never in clinical, and the split is enforced by the database in both
directions: each domain’s version relation carries a CHECK admitting only
its own kinds. The clinical record and the
identity of its subject are therefore never in the same schema, the same
archival tier, or the reach of the same runtime role — GDPR Art. 4(5) and
Art. 32(1)(a), https://eur-lex.europa.eu/eli/reg/2016/679/oj. Which role reads
which domain, and how a deployment turns the schema split into a credential
split, is Operations → Database roles.
The mechanism inside the server is deliberately small: the two domains’ change
control and node relations are rendered from one DDL template, so they carry
the same names, the same column shape, the same indexes and the same foreign
keys and cannot drift; and the pool serving each domain sets its own
search_path. One set of storage code — the nested-set node codec, the
versioning engine, the AQL path machinery — therefore serves both domains
unchanged, and no SQL in the server names a domain schema. A test renders both
files and refuses any difference beyond the kind CHECK and the foreign keys
into the ehr relation, which the party domain has none of.
Which EHR belongs to which subject is the EHR’s own
EHR_STATUS.subject.external_ref (RM ehr §EHR Status), which the ehr
relation promotes to its subject columns on every EHR create and EHR_STATUS
update, so the cohort, the AQL demographic join and the subject lookups all
read it there. Releases before 5.6.0 kept a third domain, linkage, for a
cross-reference table; audit/0021_drop_linkage_domain.sql drops what was
left of it.
The wire is unaffected. The ITS-REST Demographic API, the RM change-control semantics and every version identifier are exactly what they were; only where the rows physically sit has changed. No openEHR spec governs storage layout — this is FerroEHR’s own design.
Core tables and how they relate
erDiagram
ehr ||--o{ contribution : "owns (NULL for parties)"
contribution ||--|| commit_audit : "its own audit"
contribution ||--o{ version : "change set members"
commit_audit ||--o{ version : "commit_audit"
vo_head ||--o{ version : "the object's current heads"
version ||--o{ node : "decomposed content (per version)"
version ||--o{ vo_attestation : "appended attestations"
template_ref ||--o{ version : "template identity (FK)"
template_store ||--|| template_ref : "registers"
ehr ||--o{ ehr_folder : "folder hierarchies (rank order)"
ehr ||--o{ item_tag : "ITEM_TAGs"
version {
text tier PK "hot | cold, the partition key"
uuid vo_id PK
int sys_version PK "opaque commit ordinal"
text kind "COMPOSITION | EHR_STATUS | ..."
uuid ehr_id FK "NULL for parties"
int trunk_version "VERSION_TREE_ID part 1"
int branch_number "0 = trunk"
int branch_version "0 = trunk"
timestamptz committed_at "validity is derived from it"
text lifecycle_state "532/553/523/800/801"
text creating_system_id "OBJECT_VERSION_ID middle segment"
text preceding_version_uid
text signature "VERSION.signature, 0..1"
jsonb wrapped_original "IMPORTED_VERSION discriminator"
text body "canonical JSON bytes, lz4"
}
vo_head {
uuid vo_id PK
int head_sys_version "latest_version, any lineage"
int trunk_head_sys_version "LATEST_VERSION"
int trunk_head_content_key "the head's node rows"
text lifecycle_state "of the trunk head"
text tier "hot | cold"
timestamptz archived_at
timestamptz restricted_at
timestamptz retention_hold_at
}
node {
text tier PK "hot | cold, the partition key"
uuid vo_id PK
int sys_version PK
int num PK "pre-order number, root = 0"
int num_cap "subtree = num..=num_cap"
int parent_num
text rm_type
text archetype "case-folded"
text name_code "promoted name/defining_code"
text path "materialized, COLLATE C"
jsonb data "what no column holds, NULL when nothing remains"
timestamptz context_start "promoted, COMPOSITION root only"
text value_type "typed ELEMENT value"
numeric value_num
text value_text
text value_code
text value_terminology
text rm_version "archetype header"
text language "ISO_639-1 code"
text encoding "IANA_character-sets code"
boolean origin_compact "origin stored as its value string"
boolean time_compact "time stored as its value string"
boolean party_self "a bare PARTY_SELF subject left out"
boolean uid_derived "the root uid left with the version"
}
Supporting tables not drawn above: stored_query (stored AQL, qualified name
plus SemVer), archetype_store and adl2_artefact (the two DEFINITION
dialects), and the restriction and retention registers. The ehr table
itself carries the
three creation-immutable values the RM names (system_id, id,
time_created) plus promoted copies of the current EHR_STATUS subject
reference and is_queryable / is_modifiable flags, which back the
one-EHR-per-subject rule, the AQL full-population gate, and the content-write
guard without probing a JSON root per request.
Versioning: an append-only table and one mutable head row
Most CDRs split storage into a “current” table and a “_history” table. FerroEHR does not, and it does not carry a validity interval either.
versionis written once. A version row and its node rows are never updated after commit, which is the property BASEarchitecture_overviewmaster07-security.adoc§Integrity states. A supersession is therefore one insert: no close-out statement, no dead tuple, no index churn on a column that changed.- Validity is derived from
committed_at. The RM already copies the contribution audit into every version (RMcommonchange control, §Committal and Audits), so the commit instant is a column of the version row rather than a join, and version i is valid over[committed_at_i, committed_at_i+1). Time travel is “the trunk row with the greatestcommitted_atat or before the instant”, one descending index probe. vo_headis the one mutable row per object, and the only row a commit updates.trunk_head_sys_versionISLATEST_VERSION(the RM’slatest_trunk_version);head_sys_versionis itslatest_versionacross every lineage. It also carries the lifecycle state, the template, the tier, the archive marker and the legal marks, so “what is current” is one primary-key probe.trunk_head_content_keynames the version whose node rows hold the head’s content: a version identical to its predecessor reads its predecessor’s rows, and aLATEST_VERSIONquery joins the node rows on this column, so a tree a long chain of identical versions shares is read once. None of the columns a commit changes appears in an index, which is the condition PostgreSQL 18 §“Heap-Only Tuples (HOT)” states for a heap-only update.ALL_VERSIONSis the unfiltered table;LATEST_VERSIONis the head row’s answer.- The spec-facing version identity is the three-part
OBJECT_VERSION_ID{object_id, creating_system_id, version_tree_id}, stored asvo_id+creating_system_id+ thetrunk_version/branch_number/branch_versiontriple and held unique together.sys_versionis deliberately not that number: it is an opaque per-object commit ordinal (1..n across trunk and branch commits) used as the join key fornodeandvo_attestation. - Generated ids use PostgreSQL 18’s native
uuidv7(), so keys are time-ordered and index-friendly. - A logical delete writes a content-less version with lifecycle state
523; nothing is physically deleted. - An import (EHR-Extract, archive load) stores the wrapped
ORIGINAL_VERSION’s own provenance verbatim inwrapped_original, while the row’s own contribution and audit columns record the local act of committal.NULLthere means a locally createdORIGINAL_VERSION;NOT NULLmeans the row is anIMPORTED_VERSION.
One valid version per lineage at any instant now holds by construction rather than by any constraint: a version is superseded exactly when a later commit ordinal exists under the same branch number, and a fork onto a branch carries a branch number of its own, so it does not supersede the trunk.
flowchart TD
subgraph one_object ["one versioned object (vo_id)"]
v1["sys_version 1<br/>1.0.0 (trunk)<br/>committed_at t1"]
v2["sys_version 2<br/>2.0.0 (trunk)<br/>committed_at t2"]
v3["sys_version 4<br/>3.0.0 (trunk)<br/>committed_at t3"]
b1["sys_version 3<br/>2.1.1 (branch tip)<br/>committed_at t2b"]
head["vo_head<br/>trunk_head_sys_version 4<br/>head_sys_version 4"]
v1 --> v2 --> v3
v2 -.->|branch 1| b1
head -.->|LATEST_VERSION| v3
end
Content decomposition: the node table
At commit, the accepted composition is decomposed into one row per RM
structure node. Each row holds the node’s canonical openEHR JSON fragment
(the ITS-JSON encoding) with its structure children pruned out: no alias
compaction, no synthetic fields. A row stores only the part its own columns do
not hold. _type is the rm_type column, a lowercase archetype_node_id is
archetype, a plain or simply coded name is name with its code columns,
and an ELEMENT value in one of the common basic shapes (a quantity, a count,
an ordinal, a coded or plain text, a date, time or duration, an identifier, a
boolean, a URI) sits in typed value columns. An entry’s
language and encoding codes and an archetype root’s RM version sit in the
language, encoding and rm_version columns, and its archetype_details
and mixed-case archetype_node_id are rebuilt from the archetype column,
the composition root’s together with the template the version row names. The
root’s uid is the version’s OBJECT_VERSION_ID, so it is rebuilt from the
version row; a history’s origin and an event’s or action’s time of the
plain DV_DATE_TIME shape are stored as their value string, and an entry’s
subject that is a bare PARTY_SELF is left out. Four boolean markers on
the row (origin_compact, time_compact, party_self, uid_derived) say
which of those keys it left out, so the rebuild never has to guess from an
absent key: a fragment of any other shape stays as written, and a row written
before the markers reads as it did.
Everything else stays in node.data verbatim, and data is empty on two rows
in three. The database functions ext.node_fragment, ext.node_name,
ext.node_value, ext.node_archetype_node_id, ext.node_archetype_details,
ext.node_code_phrase, ext.node_date_time and ext.version_uid put the omitted keys back, so every reader, AQL included, sees exactly the fragment
the API would serve. A filter or projection on a quantity’s magnitude or a
code reads the typed column directly.
A party body decomposes the same way. The party root, each PARTY_IDENTITY,
CONTACT, ADDRESS and CAPABILITY nested in it, and the ITEM_STRUCTURE
under each get their own row, so a predicate over a contact address reaches it
by the same interval join a clinical predicate uses.
The tree shape is captured as a nested-set interval: nodes are numbered
in pre-order (num, root = 0), and each row records the maximum number in
its subtree (num_cap). “B is contained in A” is then the integer test
A.num < B.num AND B.num <= A.num_cap, which makes AQL CONTAINS chains
plain integer range joins instead of JSON tree walks.
flowchart TD
c["COMPOSITION<br/>num 0, cap 5"] --> s["SECTION<br/>num 1, cap 5"]
s --> o1["OBSERVATION<br/>num 2, cap 3"]
o1 --> e1["ELEMENT<br/>num 3, cap 3"]
s --> o2["EVALUATION<br/>num 4, cap 5"]
o2 --> e2["ELEMENT<br/>num 5, cap 5"]
For the tree above, “OBSERVATIONs inside the SECTION” is
section.num (1) < obs.num AND obs.num <= section.num_cap (5): rows 2 and 4
qualify by arithmetic alone.
Beside the interval, each row promotes the predicates AQL actually filters on, so hot paths never open the JSON:
rm_type(full RM type names, never compacted),name,archetype(case-folded at write, because openEHR identifier equality is case-insensitive);- the archetype-subsumption columns
arch_entity/arch_concept/arch_major, parsed from full archetype HRIDs so a query naming a parent archetype matches specialised children through an indexed prefix scan (the major-version boundary stays hard, as the AM requires); citem_num, the nearest archetyped ancestor, for archetype-anchored path resolution;context_start, the promotedEVENT_CONTEXT.start_timeon COMPOSITION roots, serving ordering from two partial indexes: one per EHR for a dashboard, one over the whole population for a query that orders every composition and takes the first page;path, the materialized path from the root (COLLATE "C", so byte order equals tree order), used only for reassembly, never as an AQL predicate.
The write path: one transaction per commit
Every write realizes the openEHR contribution rule: a CONTRIBUTION lists
the affected VERSIONs and carries its own audit, and it commits only if
every member commits. In storage terms, one transaction per service-level
write:
sequenceDiagram
participant R as REST adapter
participant S as service layer
participant PG as PostgreSQL 18
R->>S: commit (COMPOSITION, EHR_STATUS, ...)
S->>S: validate (RM invariants, WebTemplate, terminology)
S->>PG: BEGIN
S->>PG: advisory lock on vo_id (serializes the lineage)
S->>PG: INSERT commit_audit (change_type, committer, time_committed = now())
S->>PG: INSERT contribution (commit_audit_id, ehr_id)
S->>PG: INSERT version (new tip, committed_at = now(), body bytes)
S->>PG: UPSERT vo_head (the object's new heads) — heap-only
S->>PG: INSERT node rows (decomposed fragments, nested-set numbers)
S->>PG: COMMIT
S-->>R: OBJECT_VERSION_ID of the new version
Details that matter:
time_committedis always server-computed, never client-supplied; the RM requires the committal time to reflect the EHR server’s own clock.- There is no close-out statement: the head row advancing past the previous version is what supersedes it, and that update is heap-only because none of the columns it changes is indexed.
- The whole chain above is ONE statement — a data-modifying CTE — so the audit, the contribution, the version row, the head row and every node row commit or roll back together and cost one round trip.
- The body bytes in
version.bodyare materialized from the accepted, uid-stamped value before decomposition, stored astext(notjsonb, which would re-order keys) so a point read serves the canonical_type-first field order verbatim.
Read paths
Point reads (GET composition, EHR_STATUS, a named version) resolve the
version row and serve version.body verbatim: one detoast, no
re-aggregation, zero translation between storage and wire.
AQL plans over node, with one exception: a whole-object projection
loads the matching body rows in a batch instead of reassembling fragments.
CONTAINS chains become nested-set interval joins, class and archetype
predicates hit the promoted columns and their indexes, a COMPOSITION’s
archetype_details/template_id/value compares the indexed
version.template_id, a typed ELEMENT value’s magnitude, units, text or code
reads its typed column, other leaf values are
extracted from the rebuilt fragments with jsonb_path_query_first, arrays
are unnested with jsonb_path_query as a lateral set-returning function, and
comparison and ordering go through ext.openehr_magnitude (the IMMUTABLE
helper realizing DV_ORDERED ordering semantics) and ext.openehr_timestamp
(STABLE, because its result depends on the session time zone). The engine
uses no jsonpath item methods, no JSON_TABLE and no GIN index. The whole
pipeline has its own page.
Time travel (a version at a point in time) is the trunk row with the
greatest committed_at at or before the instant, served by a descending index
on the same one table.
The archival tier is a partition
version, node and vo_attestation are each PARTITION BY LIST (tier) with
a hot and a cold partition and no default partition. Archiving an EHR is one
statement — UPDATE version SET tier = 'cold' WHERE ehr_id = $1 — and
PostgreSQL moves the rows between partitions; the node and vo_attestation
foreign keys carry their rows across with ON UPDATE CASCADE. Restore is the
reverse statement. Archiving never merges the two pseudonymisation domains: each
has its own partitions.
The consequences are deliberate and visible:
- foreign keys hold across the tier, which a separate mirror table could never do, so an archived version still references its contribution and its commit audit;
- every read path reaches cold by naming the parent relation, so an archived object stays retrievable in one statement with no union view, no primary-miss retry and nothing to rebuild when a column is added;
- AQL stays hot-only: the emitter writes
tier = 'hot'as a literal, which PostgreSQL prunes at plan time, so archived content leaves the queryable store until it is restored; - a write to an archived object thaws it back to the hot tier first, so a versioned object is never split across tiers;
- the cold partitions carry the primary key alone, because nothing queries them, and can sit on a cheaper tablespace.
flowchart LR
subgraph version ["version — PARTITION BY LIST (tier)"]
vh[(hot)]
vc[(cold)]
end
subgraph node ["node — PARTITION BY LIST (tier)"]
nh[(hot)]
nc[(cold)]
end
vh -- "UPDATE version SET tier = 'cold'" --> vc
vc -- "the reverse statement" --> vh
nh -. "carried across by ON UPDATE CASCADE" .-> nc
aql["AQL: tier = 'hot' — pruned at plan time"] --> vh
aql --> nh
point["point read: the parent relation, either tier"] --> version
No openEHR spec governs archival tiers; this is FerroEHR’s own design.
Why this design
The shape follows documented PostgreSQL behaviour rather than habit:
- JSONB has no documented partial detoast: a big single-document design pays
whole-document decompression for every leaf access. Decomposed fragments
are small enough to stay under the TOAST threshold, so an AQL leaf access
touches only the rows it needs. A point read takes the other route on
purpose: it serves the whole
bodyin one detoast. - GIN indexes serve neither ranges nor ordering, so CONTAINS and ORDER BY ride integers and promoted btree columns instead.
- An append-only version table replaces current/history pairs, with
ALL_VERSIONSa plain scan of one relation. The reason it is append-only is PostgreSQL’s own rule for a heap-only update: it applies when “the update does not modify any columns referenced by the table’s indexes” (PostgreSQL 18, “Heap-Only Tuples (HOT)”). A validity interval cannot satisfy that, because the currency predicates index it; a separate head row whose updated columns are in no index can, and does. - Archival is a partition rather than a mirror table for the same kind of
reason: an
UPDATEthat changes a partition key moves the row, so the tier becomes a property of a row in one relation instead of a second relation with no foreign keys and a union view over it.
Four comments in the baseline migration cite measurements (a POC-window p99, the share of node rows carrying at-code archetype text, the average fragment size, an index-order profile) whose records live on closed tracker issues rather than in a committed artifact. They are historical notes on the decisions, not claims this page makes; a number reaches this site only through a generated include over a committed record.
The performance this buys is measured, not asserted: see Performance for the earned deployment classes and the committed measurement records behind them.
The AQL engine
How FerroEHR turns an AQL query into SQL, and why the result is fast. This page is about the engine’s internals; for writing queries against the API, see Querying with AQL.
The language is openEHR AQL 1.1. openEHR defines the language, not its execution, so everything after the parse is FerroEHR’s own design.
The pipeline
One query passes through six stages. Each stage has a single job, a typed output, and a typed refusal: a construct the engine does not support is rejected with an error naming the QUERY specification section it comes from, never answered approximately.
flowchart LR
q["AQL text"] --> lex["lexer<br/>(logos)"]
lex --> parse["parser<br/>(chumsky)"]
parse --> ast["AST"]
ast --> an["path analysis + typing<br/>(generated RM model)"]
an --> ir["typed query IR<br/>(cached per query text)"]
ir --> sql["SQL builder<br/>(sea-query)"]
sql --> pg[("PostgreSQL 18")]
pg --> rs["RESULT_SET"]
Lexer and parser
The front end is a hand-written crate (openehr-query) with no ANTLR
runtime: a logos tokenizer transcribed from the official AqlLexer.g4
grammar and a chumsky parser that builds one AST type per AqlParser.g4
rule. AQL keywords are case-insensitive; quoted temporal literals stay
strings at this layer because the QUERY specification resolves their typing
from the path context, not from the literal. The crate stops at the AST and
is validated against the grammar’s own example corpus.
Path analysis and typing
The planner types every identified path
(c/content[...]/data/events[...]/...) against a generated RM attribute
model: the same code generator that produces the RM types from openEHR’s
machine-readable meta-model also emits a static table of every class’s
attributes, their declared types, containers and cardinalities, plus the
abstract-to-concrete descendant sets. Path resolution is therefore a table
lookup, not runtime reflection and not a hand-maintained list, and it cannot
drift from the RM: regenerating the spec layer regenerates the oracle.
This stage answers, per path step: which RM classes can this step land on, is it a structural hop or a data leaf, what value type does the leaf carry, and which archetype predicates bound it.
The typed IR
Analysis and lowering produce a typed query intermediate representation. The IR carries no SQL and bakes in no request state: no parameter values, no paging window, no EHR scope. That purity is deliberate. Because the IR is a pure function of the query text, the query service caches lowered plans keyed on that text, so a stored query is planned once, not once per call; per-request parameter checking runs separately against the cached plan.
SQL generation
The IR lowers to one SELECT built entirely with sea-query’s typed
expression API: no string-concatenated SQL anywhere, every literal bound as
a parameter. The shapes it emits are where the
storage design pays off:
- CONTAINS is integer arithmetic. The node store keeps a nested-set
interval per RM node: “B inside A” is
A.num < B.num AND B.num <= A.num_cap. A CONTAINS chain becomes a chain of integer range joins over one table. No JSON is opened to answer containment. The interval is strict: a node is never its own parent, soCLUSTER CONTAINS CLUSTERreaches nested clusters only, andNOT CONTAINSholds for a node with no such descendant.
flowchart LR
subgraph aql ["AQL"]
contains["COMPOSITION c<br/>CONTAINS OBSERVATION o"]
end
subgraph sql ["generated SQL (shape)"]
join["JOIN node o<br/>ON o.vo_id = c.vo_id<br/>AND c.num < o.num<br/>AND o.num <= c.num_cap<br/>WHERE o.rm_type = 'OBSERVATION'"]
end
contains --> join
- A path step is one attribute.
o/data/eventsreaches theEVENTnodes that are theeventsof theHISTORYthat is thedataofo: a direct child, through that attribute, never the node itself, a deeper descendant, or a sibling attribute of the same type. - A projected path binds its nodes once per row. Every structure step a
SELECTpath descends through is bound as if it were aFROMvariable: one row per matching node, one row withnullcells where nothing matches. Paths that share a prefix share its binding, so two values read below oneEVENTalways come from the same event, and paths through different repeated steps give every combination of their nodes.WHEREandORDER BYread through those bindings. - The
WHEREclause binds its own steps once. Every repeated step aWHEREpath descends below the projected bindings is bound once for the whole clause, as aSELECTstep is (one node per binding, onenullbinding when nothing matches), and the clause becomes oneEXISTSover the assignments of those bindings: a row is kept when some assignment makes the clause true under three-valued logic, soAND,ORandNOTkeep their boolean laws per assignment. Elements of a list attribute inside one node’s data are not bindings; a test of one holds when any element satisfies it and is unknown over an empty list.EXISTS <path>is path-level: it reads through the projected bindings and checks the rest of the path in its ownEXISTS, outside the clause’s assignment. AnORDER BYkey below the bindings takes the first match in document order. - A variable of an
ORbranch binds like a projected step. A branch operand a path reads is bound under the object the branches share: one row per node that matches the branch, one row withnullcells where it does not, and two branches that both match pair up as two independent steps do. A branch that is its own versioned object (aCOMPOSITIONdirectly under theEHR, or one aFOLDERreferences) binds its node together with its version row, in the scope the same object has outside theOR: the latest version underLATEST_VERSION, never a deleted or restricted one, with itsuidread from that version. - An aggregate binds nothing. It reads every item of its path per row in
a correlated subquery and combines the rows, so
COUNT(*)beside it is unaffected; inside that subquery theWHEREclause is evaluated again with the steps the item shares fixed to its own nodes, so an item counts when some assignment of the remaining bindings makes the clause true, the items a plain projection of the path would keep. Elements of a list attribute inside one node are not filtered one by one: a row the clause keeps contributes every element. - Class and archetype predicates hit promoted columns.
rm_type, the parsed archetype identifier columns and names are plain indexed columns; a predicate naming a parent archetype matches specialised children through an indexed prefix scan. - Leaf values come out through SQL/JSON path functions. Data values are
extracted from the canonical node fragments with
jsonb_path_query_first, and arrays are unnested withjsonb_path_queryas a lateral set-returning function. Ordering and comparison on clinical magnitudes useopenehr_magnitude, anIMMUTABLEhelper realizing DV_ORDERED ordering semantics; date/time comparison usesopenehr_timestamp, which isSTABLEbecause its result depends on the session time zone. The engine uses no jsonpath item methods and noJSON_TABLE. - Version scope is a predicate, not a join through history tables.
LATEST_VERSIONis a partial-index predicate on the one temporal version table;ALL_VERSIONSis the same table unfiltered.
Execution and RESULT_SET
The built statement executes with bound parameters, and rows assemble into
the ITS-REST RESULT_SET shape. Whole-object projections serve the
version’s stored canonical body bytes; leaf projections serve the extracted
values.
What the engine refuses
Every AQL construct outside the accepted envelope is a typed error carrying
its QUERY specification reference. The same strictness applies inside the
pipeline: an unknown class, an unresolvable attribute, a type mismatch, or
an unbound $parameter refuses the query at plan time, before any SQL
exists. A query never degrades into a silently wrong answer.
Why it is fast
The speed is a property of the storage and planning design, not of tuning flags:
- No JSON tree walking on the hot path. The classic CDR cost is walking large JSON documents to test containment and extract predicates. That cost is gone by construction: containment is integer math, predicates are indexed columns.
- Decomposed fragments stay small. Node fragments average a few hundred bytes, so the rows a query touches decompress cheaply, and point reads of whole compositions bypass reassembly entirely by serving stored canonical bytes.
- Plans are cached. The IR is request-independent and cached on query text; repeated and stored queries skip lexing, parsing and typing.
- PostgreSQL 18 does the heavy lifting. B-tree skip scan,
ORto= ANYrewriting, self-join elimination, asynchronous I/O and the SQL/JSON function family are exactly the features the generated SQL leans on. - Everything is measured, nothing declared. The performance FerroEHR publishes comes from committed, re-checkable measurement records under the conformance instrument: see Performance and Benchmarks. This page explains the design; those pages carry the numbers.
Conformance
FerroEHR makes a measured claim: it is an openEHR-spec-conformant Clinical Data Repository, and that claim is backed by a test run you can reproduce. This chapter explains what conformance means here, how to run the suite against FerroEHR, and how to read the artefacts it produces.
- What is measured
- The current result
- The party set
- Running the suite yourself
- Reading the artefacts
- What conformance does not cover
What is measured
Conformance is checked by Veredictum, a separate CNF 2.0 reference runner. It lives in its own repository, has the same maintainer as FerroEHR, and is consumed here at a pinned version. Its catalogue is a set of Arazzo workflows, one document per behaviour, grouped in capability folders. Every workflow cites the specification sentence its expectation rests on, quoted from the vendored openEHR text. Where the release leaves a behaviour to the implementation, the catalogue names an option with its arms and the sentence that leaves it open, and the party statement selects one arm. Where the release is silent or contradicts itself, no workflow asserts the behaviour, and the citation names the outbound report instead: a specification silence is never resolved privately. Every expectation traces to specification text, never to any server’s observed behaviour. The catalogue groups its folders into chapters:
| Chapter | Scope |
|---|---|
| EHR | EHR, EHR_STATUS, COMPOSITION, DIRECTORY, CONTRIBUTION and item tags |
| Definitions | ADL 1.4 and ADL 2 templates and stored queries |
| Query | AQL query execution with committed result-set grounds |
| Demographic | Parties and their versions |
| Content validation | Reference-Model and archetype-constraint accept and reject tables |
| Simplified formats | FLAT and STRUCTURED commit and read |
| Admin | The administrative delete operations |
| Security and privacy | Authenticated access and authorization separation |
| SMART on openEHR | SMART App Launch discovery and resource-scope enforcement |
| System | The OPTIONS capability and conformance manifest |
A run judges every row of every case and counts it in one of two parts. BASE holds what every server that claims a capability must do. OPTIONS holds the cases of an option the specification leaves to the implementation, where the party statement selects one arm, and the cases that rest on TRIAL text. A row of an arm FerroEHR did not select is skipped with the citation that makes it not apply, so a skipped row is never a silent pass.
Each row ends in one of five outcomes. A failed row counts against the
server. A warning row is a SHOULD the server did not follow and never
counts against it. An errored row could not be judged: it counts against
the server unless its record names the instrument as the cause. A skipped
row was not run, and names its reason. A released run also skips every case
that rests on development text alone (development-only), and a development
run skips every case whose cited text the development snapshot drops or
contradicts (cited-text-absent, contested-in-development).
Note
The runner publishes a JSON Schema for every artefact family it writes, so a consumer can validate a record without trusting the tool that produced it. The instrument is built from the currently pinned specifications (AQL 1.1.0, Terminology 3.1.0, ITS-REST 1.1.0, and the Reference Model generation the system under test runs: for FerroEHR’s development run the default
developmentprofile, RM 1.2.0, and for its released run thestableprofile; the composed stack takes the profile from configuration, so astable-profile run is the same catalogue against the released generation).
The current result
Every run on main draws its own badges and pushes them to a branch of the
repository, so these show the latest run, the same badges the README carries.
The released profile reads every citation against the frozen openEHR release
and is the record. The server it judges runs spec_profile = "stable", the
generation set that release defines; the development run keeps the default
development profile:
The development profile reads the same catalogue against the pinned master
of each openEHR repository, the text FerroEHR builds on. It is shown beside the
record and never counted toward it:
The committed record, docs/conformance/ferroehr/results.json, holds one
released-profile run. Its counts:
The record of 2026-11-14: FerroEHR 5.6.0-rc10, judged by veredictum 0.4.1 under the
released profile.
| Part | Passed | Failed | Warning | Errored | Skipped | Total |
|---|---|---|---|---|---|---|
| BASE | 2619 | 0 | 0 | 0 | 81 | 2700 |
| OPTIONS | 256 | 0 | 0 | 0 | 118 | 374 |
| Every row | 2875 | 0 | 0 | 0 | 199 | 3074 |
summary.md
beside it breaks the same run down by chapter, band and section, and lists
every skipped row with its reason.
The party set
The runner is a separate project with its own release line, so the instrument
and the system it judges do not share a build. It assesses any openEHR CDR
reachable over HTTP; this repository runs it against FerroEHR alone. What it
reads about FerroEHR is the party set under docs/conformance/party/ferroehr/:
statement.jsonclaims the capability folders of the catalogue FerroEHR serves and selects one arm of every option the catalogue leaves to the implementation (canonical XML on each resource, the Simplified Formats, version signing, the administrative delete, and the others). Each arm states what the server does, andveredictum validate --statementholds the file to the published statement schema and the catalogue before a run.ixit.jsondescribes the deployment: thesystem_idthe server stamps into commit audits and the version ids it mints, theenvironmenta measured run happened on, andexclusive_server, which lets the workflows that delete every EHR run.deviations.jsonlists the rows FerroEHR fails on purpose, each with the clause it breaks, the decision behind it and the upstream report (see Known deviations).
Credentials are in none of these files. The run reads them from the environment.
Known deviations
Veredictum offers no way to declare a deviation: a row that breaks a MUST is
a failed row, and it stays failed in the results, the badges and the committed
record. FerroEHR carries one deviation on purpose. The server writes the
committer of every version from the authenticated, bound caller, and refuses
with 403 a stated committer that names someone else (RM Common
AUDIT_DETAILS.committer, “Identity […] of user who committed the item”).
ITS-REST asks that whatever committer a client supplies “MUST be merged”
(Requests_and_responses.md §openehr-version and openehr-audit-details), so
the catalogue rows that state another committer and expect it recorded fail.
The gate of the conformance workflow reads deviations.json
(scripts/conformance-deviations.sh). A released run passes when its only red
rows are the listed ones, and fails on any other red row, on a listed row that
passes, and on a listed case the run does not hold, so the list only shrinks.
The job summary prints each listed row with its status and grounds. The four
rows are the three that state another committer
(contribution_create/commit_contribution-committer_related,
composition_delete/delete_composition-audit_details,
ehr_committal/create_ehr-committal_headers) and the refused-commit row whose
control is the first of them. The decision is
#5002, and the upstream
report is #5019.
Running the suite yourself
The suite runs against a real, deployed server (the same container image and stack a deployment uses), so the wire under test is always the production artefact. From a checkout with Docker or Podman available:
bash scripts/conformance.sh
The script reviews the statement, composes one FerroEHR deployment from the
current sources on fresh volumes, runs veredictum test through the pinned
release image with the Basic users of docker/ferroehr.dev.toml and the SMART
Platform base URL, writes results.json, recording.har and the JUnit, CTRF
and Markdown views export renders to docs/conformance/ferroehr/, and tears
the stack down. The recording holds the server’s response bodies, so it is
never committed.
CONF_PROFILE picks the specification text the case citations are read
against. released, the default, is the frozen openEHR release: it is the
record and alone backs a released claim. development is the pinned master
of each openEHR repository, the text FerroEHR builds on (RM 1.2.0, BASE 1.3.0);
its views go to docs/conformance/ferroehr-development/ and are never mixed
into the record.
Useful knobs: CONF_DOCUMENTS to narrow the run to named documents (a working
tool, never the record), CONF_OUT for a different artefact root,
CONF_NO_COMPOSE with CONF_BASE_URL to run against an already-deployed
FerroEHR, SKIP_BUILD to compose a published image instead of building from
source, and CONTAINER_ENGINE to choose between Docker and Podman.
The script also takes one stage: review runs veredictum validate --statement alone, up composes the deployment and leaves it serving, and
down removes it with its volumes. The Conformance workflow uses these stages
to run the same deployment in CI. It compiles no server of its own: it judges
the server another lane built for the commit, runs up, and drives the
catalogue through the Veredictum GitHub Action, pinned by
commit SHA, on the same release image by digest, twice: once under the
released profile and once, on fresh volumes, under the development
profile. Both runs include the SMART documents. The released run decides the
job: it fails on a failed or errored row there. Each run’s Markdown summary
goes on the job summary under its own heading, and each profile’s results,
JUnit and CTRF views are kept as an artifact of their own.
Which server a run judges depends on the event:
| Event | Server under test | Called from |
|---|---|---|
| A pull request or the merge queue, when the change touches the server, the party set, the conformance compose files or the workflow | the binary CI compiled for the change, packaged into the runtime image | the CI workflow |
A push to main | the server and database images the Containers workflow pushed for that commit, by digest (:main for an image the push did not rebuild) | the Containers workflow |
| A release tag | the release pipeline’s own images, built cold, by digest | the Release workflow |
| Twice a week, or by hand | ghcr.io/ferrohealth/ferroehr:main, or the image a manual run names | the Conformance workflow |
The README badges come from the runs on main: every push and the twice-weekly run.
The posture a run covers
The one deployment runs the SMART resource-server role with a trusted test issuer, digest version signing, and FerroTERM as its terminology server, in the fail-open posture.
- SMART is part of the posture. The tokens the SMART documents present are signed by a committed test issuer: public test key material for the harness, never usable for anything else.
- External terminology is part of the posture too. An archetype can
constrain a coded element to a value set only an external terminology query
server can resolve, so the pipeline composes a real FHIR R4B server beside the
CDR, seeded with synthetic test code systems and value sets. That covers AQL
TERMINOLOGY()resolved through the routed server, and commit-time validation of a bound value set. What a deployment does when the value set cannot be resolved at all is not decided by any openEHR text, so it is a declared option arm rather than a verdict.
A measured performance run (scripts/conformance.sh perf) changes two things,
both in docker/sut-measurement.yml: rate limiting is off, because the scout
ramp offers load past the server’s knee and a throttled request would measure
the limiter instead of the server, and response compression is off, because the
posture the run declares has it off. veredictum perf writes no record if the
server answered any 429, so a measurement can never be silently
limiter-shaped.
Reading the artefacts
A run writes results.json and three views veredictum export renders from
it: junit.xml, ctrf.json and summary.md. Each view is a pure function of
results.json, so the same results give the same bytes.
results.jsonis the record: the instrument and its version, the specification profile, the server’s ownOPTIONSanswer, an outline of every case with its chapter, band and part, and one row per workflow row with its outcome, its inputs and, for a skipped row, the reason and the citation.summary.mdis the view for a person: the counts per part, then chapter by chapter, with each red row opened up to the step, what was checked, expected against received, and the cited sentence.junit.xmlandctrf.jsonare the views a CI system shows. The Conformance workflow keeps them as run artifacts and does not commit them.
results.json and summary.md of one released-profile run are committed under
docs/conformance/ferroehr/. The website and this page read their numbers from
that record at build time, and the build fails when summary.md and
results.json disagree.
What conformance does not cover
The catalogue measures the openEHR platform surface, including the simplified (FLAT/STRUCTURED) formats chapter of the ITS-REST specification. It deliberately does not stand in for a performance benchmark: durations recorded during the functional run are telemetry only, and the measured performance record owns that claim (Performance).
The other honest boundary is the gap between openEHR’s service model and its released REST wire. Several service operations were never surfaced as endpoints (listing an EHR’s contributions, counting stored templates or queries, deleting a template or a stored query) so a case that addresses one has no wire to drive on this technology profile. FerroEHR does serve routes of its own design for several of them (see Admin & messaging APIs and the archetype routes in Templates & validation).
Performance
FerroEHR’s performance figures come from the same instrument as its
conformance record: the perf command of
Veredictum, at the release
pinned in scripts/lib/veredictum.sh. A performance record earns no class
and enters no conformance verdict. No openEHR specification governs
performance, so the measurement method is Veredictum’s own design, described
in its book under
Measured performance.
Nothing on this page is hand-typed: every number comes from the committed
record or from charts drawn from it.
- What a run measures
- How to read the record
- The workload
- The measured posture
- The durability floor: what a single write can never beat
- Reproducing it
- Where a published figure is measured
- The storage benchmark harness
- Comparing two builds on one runner
- Schema generation
generation-1, classs - Schema generation
generation-2, classpoc - Schema generation
generation-2, classs - Schema generation
generation-3, classpoc - Schema generation
generation-3, classs - Schema generation
generation-4, classpoc - Schema generation
generation-4, classs - Schema generation
generation-5, classpoc - Schema generation
generation-5, classs - Schema generation
generation-6, classpoc - Schema generation
generation-6, classs
- The published figures
What a run measures
veredictum perf offers one pinned workload to a running FerroEHR as an
open-loop schedule of Poisson arrivals. Each request’s latency counts from the
instant it was due, not from when it was sent, so a server that stalls cannot
hide the queue it builds behind a few fast replies. A run has these phases:
- Seeding, before the clock: the workload’s corpus is committed through the public write path, closed-loop, and reported apart.
- Posture canaries: a first bracket of probes checks that the deployment runs the posture the run declares (below).
- Settle:
vacuumdb --all --analyzeruns in the database container, so no plateau pays the seed’s maintenance debt. - Warm-up, discarded.
- Scout: an exponential ramp, judged in short windows, whose first breach gives an estimate of the knee.
- Ladder: plateaus at fixed fractions of that estimate, each held long enough to judge its tail.
- Closing: the second bracket of posture canaries.
The whole run after seeding takes at most ten minutes. A plateau qualifies
when every operation keeps its judged percentile inside its latency budget,
the errors stay inside the error budget, the achieved rate keeps up with the
offered rate, and the load generator kept up. One 429 voids the record.
How to read the record
The record is a perf-result document,
docs/conformance/ferroehr/perf-result.json:
- The knee is the highest offered rate whose plateau qualifies with every plateau below it. It is a bracket between that plateau and the first one that fails, a lower bound when every plateau qualifies, or below the ladder.
- The peak is the highest achieved throughput, whatever its latency.
- Percentiles p50 to p99.9 per operation come from the recorded
histograms with their confidence intervals. A percentile with too few
samples above it reads
n/r, not resolvable, and each operation is judged at the highest percentile that resolves. - Population turns the knee into the range of people a deployment of that capacity serves at its peak, beside the corpus scale it was measured at.
- Server-side readings (CPU, memory and I/O per container, database sizes,
the top
pg_stat_statementsentries, the PostgreSQL settings) are context for capacity planning and never enter a judgement. - Between-run noise reads
unmeasuredunless an A/A floor is attached (below).
veredictum perf-judge re-derives every derived number from the recorded
histograms and fails when one byte differs, so the record can be checked by
anyone who has it.
The workload
The published record offers clinical-mix, Veredictum’s reference workload:
what a clinical front end sends, with chart review as short sessions on one
EHR, ward boards, problem lists, cohort counts, AQL over ad-hoc and stored
queries, and the order, result, correction, folder, tag, definition,
demographic and bootstrap traffic around them. Every share in the mix names
its derivation, and the payloads are published openEHR CKM templates. The
pinned workloads, their expanded per-operation mix and their digests are
listed on Veredictum’s
Performance workloads page.
The measured posture
A latency figure is a claim about a configuration, so the run declares one
and its canaries check it before and after the measured window. FerroEHR is
measured as minimal-signed-digest: commits validated against the
operational template and every version digest-signed, which is how FerroEHR
ships. The measurement overlay docker/sut-measurement.yml changes two
things against the conformance deployment, both visible in the file: it
switches per-caller rate limiting off, because the scout ramp offers load past
the knee from one caller on purpose, and it switches response compression
off, because every posture profile declares it off and a compressed answer
would refuse the run.
The durability floor: what a single write can never beat
Every committed version is durable: the transaction’s WAL records are flushed
to disk before the server answers, so an acknowledged commit survives a crash.
That flush (one fsync on the WAL device per commit) is a physical lower
bound on single-client write latency, and no storage design takes a lone
sequential client below it. On a laptop-class Docker setup the flush alone
dominates a single write’s budget; on server NVMe it is typically an order of
magnitude smaller. FerroEHR’s optimization target is therefore everything around the
flush: the database’s own per-commit work (one folded commit statement, one
merged placement read) stays far below the flush itself. That is also what
makes concurrent throughput scale: PostgreSQL group-commits, amortizing one
flush across every transaction that reaches it in the same window.
The knob behind this boundary is PostgreSQL’s
synchronous_commit.
Setting it off makes commits return before the WAL flush: single-client
write latency drops to the statement work alone, and a server crash can lose
the most recent acknowledged commits (up to three times wal_writer_delay,
per the PostgreSQL documentation). The database stays consistent; the tail of
acknowledged writes is what is at risk. FerroEHR never defaults this off
and does not recommend it for clinical data. It is an operator decision,
made per deployment on the database side, defensible only where the record of
loss is acceptable (a load-test rig, a reseedable sandbox, an analytics
replica). All published FerroEHR numbers are measured with full durability
on.
Reproducing it
The measured lane is a stage of the conformance pipeline. It composes the
conformance deployment with the measurement overlay on fresh volumes, runs
veredictum perf, re-derives the record with perf-judge, and redraws the
charts on this page:
bash scripts/conformance.sh perf
# the same deployment measured against itself, interleaved, so the record
# carries its between-run noise floor
bash scripts/conformance.sh perf-aa
CONF_PERF_WORKLOAD picks another pinned workload (aql-mix offers the six
AQL classes alone), CONF_PERF_POSTURE another posture profile, and
CONF_PERF_OUT another record path. The stage runs the pinned binary on the
host, because the settle phase reaches the database container with
docker exec; the IXIT’s containers block names the containers. To measure
a deployment the pipeline does not compose, drive the instrument directly:
source scripts/lib/veredictum.sh
"$(veredictum_bin)" perf --root "$(veredictum_perf)" \
--catalogue "$(veredictum_catalogue)" \
--ixit docs/conformance/party/ferroehr/ixit.json \
--statement docs/conformance/party/ferroehr/statement.json \
--workload "$(veredictum_workload clinical-mix)" \
--posture minimal-signed-digest \
--host-prescription reference-8cpu-8gb \
--out perf-result.json
"$(veredictum_bin)" perf-judge --result perf-result.json
scripts/render/perf-assets.sh draws the charts and the summary from the
committed record with veredictum perf-assets, and the docs CI job re-renders
and diffs them, so a hand-edited or stale chart fails the build.
Where a published figure is measured
Two hosted runs of the same code can read far apart, so an absolute figure
from a shared CI runner says little. A published record is measured on the
idle reference host and names it with a host prescription
(reference-8cpu-8gb, under perf/ in Veredictum); the record reads the
prescription against the fingerprint the load generator measured, and a host
that does not match reads unmatched with every difference. On any other
machine, compare two builds instead: veredictum perf-compare --ab runs both
sides interleaved on one host from one seed, and a difference counts only
when it clears the tolerance and the A/A floor.
The storage benchmark harness
A second instrument measures the storage layer directly, below the wire:
STORAGE_BENCH_CLASS=poc cargo bench -p ferroehr --bench storage
It seeds a corpus through the ordinary write path, then times the storage layer’s hot paths one at a time: a composition commit, a supersession, the supersession that states the version it replaces, a point read by version uid and one by versioned-object uid, the version at an instant, the revision history, an AQL CONTAINS chain over one EHR and over the whole population, archive and restore of an EHR, and one retention prune.
Beside each operation’s wall-clock it records what the database did for it. The
per-relation tuple counters (inserted, updated, updated in place, dead, live)
and the relation sizes come from pg_stat_user_tables, the buffer hits and
misses from pg_stat_database, and the write-ahead-log bytes from the WAL
position either side of the measurement. One representative commit is probed on
its own, and the population query is explained with
EXPLAIN (ANALYZE, BUFFERS, WAL) inside a transaction that is rolled back, so
the plan shape and its index choices land in the record too.
Everything runs through the service and the public storage API, and the
relations are discovered from the catalogue, so no table name appears anywhere
in the harness and the same file measures a rewritten schema. That is the
point: a storage change is argued from a before-and-after pair taken with one
instrument. It earns no class and touches no conformance artifact; the record’s
shape is documented in docs/benchmarks/storage/README.md. Records are local by
default, and the committed baseline is what this page renders.
Comparing two builds on one runner
A dispatch-only workflow (.github/workflows/storage-bench.yml) runs the same
benchmark on one GitHub-hosted runner, against a PostgreSQL 18 service with its
durability left on, for two builds: a baseline and a candidate. The candidate
is the dispatched ref, and the baseline is its merge base with main unless
the dispatch names another revision, so a dispatch on main measures the same
code twice and shows the lane’s own noise. The two builds run in turn, several
rounds each (eight by default), in alternating order, and each round seeds a
fresh database and runs ANALYZE before it measures anything. A runner that
slows down part way through then slows both builds alike.
Both builds are measured on the same machine because a latency compared with a record from another runner says little: two hosted runs of the same bench code read 20 of 27 operations 40 to 156 % apart. Two verdicts come out of the rounds, and either one fails the run:
- The plan verdict reads pages per call, the buffer hits and reads per call, which do not depend on the speed of the machine. An operation fails when the candidate’s median rose more than the page tolerance (10 % by default), and by at least one page, above the highest baseline round.
- The time verdict first divides each round by its machine factor, so a round where the whole runner ran slow does not read as the code. An operation regresses only when its median p50 or p99 rose more than the tolerance (15 % by default) and every candidate round is slower than every baseline round at that percentile. A rise whose rounds overlap the baseline’s is reported as within the noise of the rounds.
The candidate’s storage sizes do not depend on the machine, so they are judged against the record committed for its schema generation and class: bytes per composition version or per node row that grew more than the size budget (5 % by default) fail the run. A generation and class with no committed record fails the run, with the error in the job summary, so the change that moves the schema generation commits the new generation’s records with it (#4291). The run summary lists every round with its machine factor, and each operation with its pages per call and its raw and adjusted change.
That lane is exploration, never a conformance record. It earns no performance
class, publishes no number, and writes nothing back to the repository: the
round records leave as a run artifact, and the committed baseline under
docs/benchmarks/storage/<generation>/ moves only in a pull request that says
which run measured it. docs/benchmarks/storage/README.md records the numbers
behind each bound (#4318).
Schema generation generation-1, class s
| Operation | Iterations | p50 | p95 | p99 | WAL | Buffer hits |
|---|---|---|---|---|---|---|
create_first_version | 1 200 | 3.6 ms | 5.3 ms | 5.3 ms | 47 MiB | 1 008 028 |
supersede | 870 | 11.2 ms | 14.4 ms | 14.4 ms | 37.5 MiB | 30 795 283 |
supersede_if_match | 850 | 11.4 ms | 14.5 ms | 14.5 ms | 36.5 MiB | 29 699 039 |
by_version_uid | 13 640 | 298.6 µs | 374.6 µs | 374.6 µs | 77.3 KiB | 250 604 |
latest_by_versioned_object_uid | 8 550 | 479.9 µs | 1 ms | 1 ms | 456 B | 121 845 |
version_at_time | 7 260 | 597.3 µs | 640 µs | 640 µs | 136 B | 122 318 |
revision_history | 25 230 | 193.9 µs | 216.6 µs | 216.6 µs | 88 B | 671 513 |
contains_one_ehr | 2 850 | 1.7 ms | 1.8 ms | 1.8 ms | 368 B | 766 648 |
contains_population | 3 440 | 1.1 ms | 1.1 ms | 1.1 ms | 0 B | 1 294 649 |
archive_ehr | 90 | 23.3 ms | 30.3 ms | 30.3 ms | 252.7 MiB | 6 969 118 |
restore_ehr | 160 | 24.9 ms | 69.1 ms | 69.1 ms | 400.5 MiB | 9 276 746 |
retention_prune | 25 650 | 166.7 µs | 185.7 µs | 185.7 µs | 104 B | 35 104 |
One representative commit wrote 2.6 MiB of WAL and touched 88 172 buffers. The population CONTAINS statement plans as Gather and reads 55 817 shared blocks.
| Relation | Live rows | Dead rows | Updates | HOT updates | Size |
|---|---|---|---|---|---|
ehr.audit | 7 188 | 0 | 0 | 0 | 1.9 MiB |
ehr.contribution | 6 988 | 0 | 0 | 0 | 1.3 MiB |
ehr.ehr | 100 | 0 | 0 | 0 | 112 KiB |
ehr.event_outbox | 6 988 | 0 | 0 | 0 | 3.9 MiB |
ehr.node | 296 059 | 0 | 0 | 0 | 271.8 MiB |
ehr.template_ref | 1 | 0 | 0 | 0 | 32 KiB |
ehr.template_store | 1 | 0 | 0 | 0 | 136 KiB |
ehr.vo_archive | 0 | 0 | 0 | 0 | 40 KiB |
ehr.vo_version | 7 088 | 0 | 2 330 | 0 | 30.1 MiB |
Measured over 100 EHRs and 3 000 compositions of template Vital signs at commit 6ebfdb32b304 on 8 cores against PostgreSQL 18.6.
Schema generation generation-2, class poc
| Operation | Iterations | p50 | p95 | p99 | WAL | Buffer hits |
|---|---|---|---|---|---|---|
create_first_version | 530 | 8.5 ms | 9.1 ms | 9.1 ms | 24.2 MiB | 395 240 |
supersede | 470 | 10.3 ms | 11.1 ms | 11.1 ms | 21.6 MiB | 905 767 |
supersede_if_match | 540 | 10 ms | 11.2 ms | 11.2 ms | 24.1 MiB | 1 070 922 |
by_version_uid | 8 290 | 519.5 µs | 538.3 µs | 538.3 µs | 168 B | 213 581 |
latest_by_versioned_object_uid | 8 630 | 534.3 µs | 553.9 µs | 553.9 µs | 120 B | 204 101 |
version_at_time | 4 290 | 990.6 µs | 996 µs | 996 µs | 0 B | 135 299 |
revision_history | 15 730 | 300.1 µs | 312.9 µs | 312.9 µs | 0 B | 437 101 |
contains_one_ehr | 1 140 | 4 ms | 4.2 ms | 4.2 ms | 128 B | 605 955 |
contains_population | 2 270 | 2.1 ms | 2.2 ms | 2.2 ms | 0 B | 620 677 |
flat_2_sibling_leaves | 210 | 21.9 ms | 22.7 ms | 22.7 ms | 112 B | 3 639 915 |
flat_3_sibling_leaves | 190 | 25.5 ms | 26.7 ms | 26.7 ms | 88 B | 3 422 117 |
streaming_2_sibling_leaves | 870 | 5.9 ms | 6.2 ms | 6.2 ms | 0 B | 2 524 699 |
streaming_3_sibling_leaves | 800 | 6.2 ms | 6.3 ms | 6.3 ms | 0 B | 2 580 569 |
contains_exists | 580 | 8.4 ms | 8.5 ms | 8.5 ms | 0 B | 6 860 724 |
node_predicate | 1 240 | 4 ms | 4.2 ms | 4.2 ms | 0 B | 2 130 540 |
where_magnitude | 110 | 46.4 ms | 47.3 ms | 47.3 ms | 0 B | 3 399 817 |
where_coded | 200 | 23.4 ms | 25.8 ms | 25.8 ms | 0 B | 3 495 572 |
where_date_time | 1 070 | 4.5 ms | 4.6 ms | 4.6 ms | 0 B | 1 884 349 |
where_text | 210 | 23.2 ms | 24.4 ms | 24.4 ms | 0 B | 3 628 755 |
wide_projection_one_ehr | 100 | 53.2 ms | 55.3 ms | 55.3 ms | 56 B | 464 725 |
wide_projection_population | 180 | 29.2 ms | 32.9 ms | 32.9 ms | 0 B | 3 761 922 |
select_observation | 760 | 6.5 ms | 6.8 ms | 6.8 ms | 0 B | 1 804 991 |
select_composition_one_ehr | 860 | 5.5 ms | 6.7 ms | 6.7 ms | 0 B | 474 289 |
aql_version_at_time | 1 220 | 4 ms | 4.2 ms | 4.2 ms | 0 B | 1 827 733 |
archive_ehr | 30 | 91.4 ms | 101.2 ms | 101.2 ms | 52.9 MiB | 1 038 199 |
restore_ehr | 30 | 106.1 ms | 108.4 ms | 108.4 ms | 52.7 MiB | 1 121 364 |
retention_prune | 23 420 | 211.1 µs | 236.3 µs | 236.3 µs | 8.3 KiB | 33 082 |
One representative commit wrote 305 KiB of WAL and touched 3 903 buffers. The population CONTAINS statement plans as Nested Loop and reads 43 224 shared blocks.
| Relation | Live rows | Dead rows | Updates | HOT updates | Size |
|---|---|---|---|---|---|
clinical.commit_audit | 2 324 | 0 | 0 | 0 | 632 KiB |
clinical.contribution | 2 284 | 0 | 0 | 0 | 584 KiB |
clinical.ehr | 20 | 0 | 0 | 0 | 56 KiB |
clinical.event_outbox | 2 284 | 0 | 0 | 0 | 1.4 MiB |
clinical.node_cold | 0 | 0 | 0 | 0 | 88 KiB |
clinical.node_hot | 100 332 | 0 | 0 | 0 | 81.4 MiB |
clinical.template_ref | 2 | 0 | 0 | 0 | 32 KiB |
clinical.template_store | 2 | 0 | 0 | 0 | 192 KiB |
clinical.version_cold | 0 | 0 | 0 | 0 | 120 KiB |
clinical.version_hot | 2 304 | 0 | 0 | 0 | 8.8 MiB |
clinical.vo_head | 1 020 | 60 | 3 948 | 3 948 | 312 KiB |
Measured over 20 EHRs and 300 compositions of template Vital signs at commit c82f0992d308 on 4 cores against PostgreSQL 18.6.
Schema generation generation-2, class s
| Operation | Iterations | p50 | p95 | p99 | WAL | Buffer hits |
|---|---|---|---|---|---|---|
create_first_version | 510 | 9.7 ms | 9.9 ms | 9.9 ms | 110.9 MiB | 470 378 |
supersede | 500 | 9.9 ms | 10.4 ms | 10.4 ms | 22.8 MiB | 1 034 920 |
supersede_if_match | 540 | 10 ms | 10.4 ms | 10.4 ms | 24.4 MiB | 1 151 542 |
by_version_uid | 8 700 | 488.6 µs | 493.7 µs | 493.7 µs | 2.8 KiB | 222 174 |
latest_by_versioned_object_uid | 9 360 | 489.2 µs | 512.2 µs | 512.2 µs | 128 B | 218 149 |
version_at_time | 4 490 | 946.8 µs | 992.3 µs | 992.3 µs | 56 B | 146 116 |
revision_history | 16 450 | 287.8 µs | 300.8 µs | 300.8 µs | 0 B | 453 104 |
contains_one_ehr | 1 240 | 3.6 ms | 3.7 ms | 3.7 ms | 136 B | 658 178 |
contains_population | 1 740 | 3 ms | 3 ms | 3 ms | 0 B | 1 020 037 |
flat_2_sibling_leaves | 60 | 92.3 ms | 95.9 ms | 95.9 ms | 16.4 KiB | 33 018 094 |
flat_3_sibling_leaves | 60 | 95.9 ms | 97.8 ms | 97.8 ms | 0 B | 33 030 979 |
streaming_2_sibling_leaves | 660 | 7.6 ms | 7.9 ms | 7.9 ms | 0 B | 2 398 276 |
streaming_3_sibling_leaves | 630 | 8 ms | 8.1 ms | 8.1 ms | 0 B | 2 137 922 |
contains_exists | 170 | 30.2 ms | 34.2 ms | 34.2 ms | 0 B | 11 007 303 |
node_predicate | 930 | 5.4 ms | 5.5 ms | 5.5 ms | 0 B | 2 127 292 |
where_magnitude | 50 | 120.1 ms | 121.4 ms | 121.4 ms | 0 B | 5 504 663 |
where_coded | 720 | 6.9 ms | 7.2 ms | 7.2 ms | 0 B | 2 269 954 |
where_date_time | 820 | 6.1 ms | 6.2 ms | 6.2 ms | 0 B | 1 917 884 |
where_text | 730 | 6.9 ms | 7 ms | 7 ms | 0 B | 2 293 234 |
wide_projection_one_ehr | 50 | 114.2 ms | 115.6 ms | 115.6 ms | 0 B | 1 977 924 |
wide_projection_population | 380 | 13.3 ms | 13.7 ms | 13.7 ms | 88 B | 2 326 270 |
select_observation | 620 | 7.9 ms | 8 ms | 8 ms | 0 B | 1 607 057 |
select_composition_one_ehr | 600 | 8.2 ms | 8.5 ms | 8.5 ms | 0 B | 683 661 |
aql_version_at_time | 800 | 6.2 ms | 6.3 ms | 6.3 ms | 0 B | 6 498 839 |
archive_ehr | 20 | 173 ms | 181.1 ms | 181.1 ms | 68 MiB | 1 320 254 |
restore_ehr | 20 | 204.5 ms | 207.9 ms | 207.9 ms | 60.6 MiB | 1 298 376 |
retention_prune | 23 980 | 207.7 µs | 209 µs | 209 µs | 2.1 MiB | 73 258 |
One representative commit wrote 297.2 KiB of WAL and touched 960 buffers. The population CONTAINS statement plans as Nested Loop and reads 42 257 shared blocks.
| Relation | Live rows | Dead rows | Updates | HOT updates | Size |
|---|---|---|---|---|---|
clinical.commit_audit | 5 486 | 0 | 0 | 0 | 1.5 MiB |
clinical.contribution | 5 286 | 0 | 0 | 0 | 960 KiB |
clinical.ehr | 100 | 0 | 0 | 0 | 152 KiB |
clinical.event_outbox | 5 286 | 0 | 0 | 0 | 2.9 MiB |
clinical.node_cold | 0 | 0 | 0 | 0 | 232 KiB |
clinical.node_hot | 252 462 | 0 | 0 | 0 | 167.6 MiB |
clinical.template_ref | 2 | 0 | 0 | 0 | 32 KiB |
clinical.template_store | 2 | 0 | 0 | 0 | 192 KiB |
clinical.version_cold | 0 | 0 | 0 | 0 | 144 KiB |
clinical.version_hot | 5 334 | 782 | 0 | 0 | 16.3 MiB |
clinical.vo_head | 3 940 | 13 | 4 430 | 4 430 | 936 KiB |
Measured over 100 EHRs and 3 000 compositions of template Vital signs at commit c82f0992d308 on 4 cores against PostgreSQL 18.6.
Schema generation generation-3, class poc
| Operation | Iterations | p50 | p95 | p99 | WAL | Buffer hits |
|---|---|---|---|---|---|---|
create_first_version | 840 | 5.8 ms | 14.6 ms | 14.6 ms | 34.8 MiB | 648 612 |
supersede | 610 | 11.4 ms | 18.9 ms | 18.9 ms | 23 MiB | 13 048 343 |
supersede_if_match | 640 | 12.3 ms | 21.6 ms | 21.6 ms | 28 MiB | 19 143 656 |
by_version_uid | 9 920 | 418.8 µs | 439.7 µs | 439.7 µs | 472 B | 245 293 |
latest_by_versioned_object_uid | 11 710 | 404.2 µs | 428.5 µs | 428.5 µs | 0 B | 301 532 |
version_at_time | 4 940 | 874.4 µs | 886.1 µs | 886.1 µs | 0 B | 151 435 |
revision_history | 18 710 | 206.6 µs | 248.5 µs | 248.5 µs | 0 B | 502 662 |
contains_one_ehr | 1 410 | 3.5 ms | 3.6 ms | 3.6 ms | 7 KiB | 859 578 |
contains_population | 2 690 | 1.8 ms | 1.9 ms | 1.9 ms | 8.1 KiB | 824 801 |
flat_2_sibling_leaves | 230 | 19.4 ms | 20 ms | 20 ms | 42.4 KiB | 5 239 470 |
flat_3_sibling_leaves | 210 | 23.4 ms | 23.8 ms | 23.8 ms | 0 B | 4 934 788 |
streaming_2_sibling_leaves | 980 | 5.1 ms | 5.3 ms | 5.3 ms | 3.6 KiB | 2 960 620 |
streaming_3_sibling_leaves | 900 | 5.5 ms | 5.7 ms | 5.7 ms | 0 B | 3 007 660 |
contains_exists | 470 | 10.5 ms | 11.1 ms | 11.1 ms | 0 B | 8 638 704 |
node_predicate | 1 380 | 3.6 ms | 3.7 ms | 3.7 ms | 0 B | 2 969 000 |
where_magnitude | 110 | 47.7 ms | 48.7 ms | 48.7 ms | 0 B | 5 012 010 |
where_coded | 230 | 22.1 ms | 23.1 ms | 23.1 ms | 0 B | 5 209 927 |
where_date_time | 1 210 | 4.1 ms | 4.2 ms | 4.2 ms | 0 B | 2 292 883 |
where_text | 230 | 22.4 ms | 23.3 ms | 23.3 ms | 0 B | 5 210 914 |
wide_projection_one_ehr | 120 | 42.1 ms | 42.9 ms | 42.9 ms | 0 B | 526 091 |
wide_projection_population | 190 | 27.3 ms | 28.6 ms | 28.6 ms | 0 B | 5 064 088 |
select_observation | 850 | 5.7 ms | 5.8 ms | 5.8 ms | 0 B | 2 121 054 |
select_composition_one_ehr | 990 | 4.8 ms | 5 ms | 5 ms | 0 B | 551 999 |
aql_version_at_time | 1 450 | 3.4 ms | 3.6 ms | 3.6 ms | 0 B | 2 565 200 |
archive_ehr | 50 | 51.3 ms | 54.2 ms | 54.2 ms | 87.7 MiB | 1 896 225 |
restore_ehr | 50 | 64.2 ms | 65.2 ms | 65.2 ms | 77.1 MiB | 1 945 710 |
retention_prune | 40 630 | 118.4 µs | 121.5 µs | 121.5 µs | 120 B | 50 499 |
One representative commit wrote 532.7 KiB of WAL and touched 1 322 buffers. The population CONTAINS statement plans as Nested Loop and reads 17 067 shared blocks.
| Relation | Live rows | Dead rows | Updates | HOT updates | Size |
|---|---|---|---|---|---|
clinical.commit_audit | 3 130 | 0 | 0 | 0 | 872 KiB |
clinical.contribution | 3 090 | 0 | 0 | 0 | 640 KiB |
clinical.ehr | 20 | 0 | 0 | 0 | 64 KiB |
clinical.event_outbox | 3 090 | 0 | 0 | 0 | 1.8 MiB |
clinical.node_cold | 0 | 0 | 0 | 0 | 88 KiB |
clinical.node_hot | 134 990 | 0 | 0 | 0 | 89.3 MiB |
clinical.template_ref | 2 | 0 | 0 | 0 | 32 KiB |
clinical.template_store | 2 | 0 | 0 | 0 | 192 KiB |
clinical.version_cold | 0 | 0 | 0 | 0 | 136 KiB |
clinical.version_hot | 3 110 | 0 | 0 | 0 | 12.7 MiB |
clinical.vo_head | 1 458 | 48 | 6 332 | 6 332 | 504 KiB |
Measured over 20 EHRs and 300 compositions of template Vital signs at commit 59b91af928a4 on 4 cores against PostgreSQL 18.6.
Schema generation generation-3, class s
| Operation | Iterations | p50 | p95 | p99 | WAL | Buffer hits |
|---|---|---|---|---|---|---|
create_first_version | 560 | 7.6 ms | 8.6 ms | 8.6 ms | 21.6 MiB | 475 947 |
supersede | 520 | 12.9 ms | 16.4 ms | 16.4 ms | 21.6 MiB | 10 171 802 |
supersede_if_match | 520 | 13 ms | 16.7 ms | 16.7 ms | 20.1 MiB | 9 750 360 |
by_version_uid | 9 210 | 480 µs | 495 µs | 495 µs | 2.2 KiB | 226 321 |
latest_by_versioned_object_uid | 9 340 | 477.9 µs | 486.9 µs | 486.9 µs | 464 B | 224 344 |
version_at_time | 4 510 | 943.2 µs | 1 ms | 1 ms | 0 B | 140 807 |
revision_history | 17 290 | 268.1 µs | 271.6 µs | 271.6 µs | 0 B | 471 470 |
contains_one_ehr | 1 250 | 3.6 ms | 3.9 ms | 3.9 ms | 0 B | 695 743 |
contains_population | 1 680 | 3 ms | 3.1 ms | 3.1 ms | 15.8 KiB | 1 115 539 |
flat_2_sibling_leaves | 140 | 33.9 ms | 38.2 ms | 38.2 ms | 16.2 KiB | 4 120 479 |
flat_3_sibling_leaves | 140 | 37.9 ms | 39 ms | 39 ms | 232 B | 4 152 775 |
streaming_2_sibling_leaves | 580 | 8.5 ms | 9.3 ms | 9.3 ms | 0 B | 2 007 543 |
streaming_3_sibling_leaves | 580 | 8.7 ms | 8.8 ms | 8.8 ms | 0 B | 2 152 855 |
contains_exists | 200 | 25.6 ms | 26.5 ms | 26.5 ms | 0 B | 9 295 830 |
node_predicate | 830 | 6 ms | 6.1 ms | 6.1 ms | 0 B | 2 174 425 |
where_magnitude | 50 | 105.2 ms | 106 ms | 106 ms | 0 B | 4 729 616 |
where_coded | 780 | 6.2 ms | 6.6 ms | 6.6 ms | 0 B | 1 888 942 |
where_date_time | 750 | 6.8 ms | 7.1 ms | 7.1 ms | 0 B | 2 001 044 |
where_text | 810 | 6.2 ms | 6.3 ms | 6.3 ms | 0 B | 1 943 864 |
wide_projection_one_ehr | 50 | 110 ms | 111.3 ms | 111.3 ms | 0 B | 1 950 208 |
wide_projection_population | 410 | 12.4 ms | 12.5 ms | 12.5 ms | 0 B | 2 101 466 |
select_observation | 560 | 8.7 ms | 9 ms | 9 ms | 0 B | 1 619 828 |
select_composition_one_ehr | 600 | 8.4 ms | 8.7 ms | 8.7 ms | 0 B | 685 119 |
aql_version_at_time | 710 | 6.4 ms | 7.2 ms | 7.2 ms | 0 B | 5 900 107 |
archive_ehr | 20 | 138.1 ms | 141 ms | 141 ms | 65.3 MiB | 1 558 971 |
restore_ehr | 20 | 170.1 ms | 173.7 ms | 173.7 ms | 59.2 MiB | 1 516 172 |
retention_prune | 27 760 | 177.4 µs | 180.1 µs | 180.1 µs | 1.2 MiB | 71 274 |
One representative commit wrote 107.4 KiB of WAL and touched 3 784 buffers. The population CONTAINS statement plans as Nested Loop and reads 49 471 shared blocks.
| Relation | Live rows | Dead rows | Updates | HOT updates | Size |
|---|---|---|---|---|---|
clinical.commit_audit | 5 484 | 0 | 0 | 0 | 1.5 MiB |
clinical.contribution | 5 284 | 0 | 0 | 0 | 1.1 MiB |
clinical.ehr | 100 | 0 | 0 | 0 | 96 KiB |
clinical.event_outbox | 5 284 | 0 | 0 | 0 | 3 MiB |
clinical.node_cold | 0 | 0 | 0 | 0 | 232 KiB |
clinical.node_hot | 254 612 | 0 | 0 | 0 | 114.1 MiB |
clinical.template_ref | 2 | 0 | 0 | 0 | 32 KiB |
clinical.template_store | 2 | 0 | 0 | 0 | 192 KiB |
clinical.version_cold | 0 | 0 | 0 | 0 | 160 KiB |
clinical.version_hot | 5 384 | 0 | 0 | 0 | 18.1 MiB |
clinical.vo_head | 3 990 | 104 | 4 958 | 4 958 | 968 KiB |
Measured over 100 EHRs and 3 000 compositions of template Vital signs at commit 59b91af928a4 on 4 cores against PostgreSQL 18.6.
Schema generation generation-4, class poc
| Operation | Iterations | p50 | p95 | p99 | WAL | Buffer hits |
|---|---|---|---|---|---|---|
create_first_version | 1 080 | 4.4 ms | 4.5 ms | 4.5 ms | 38.6 MiB | 839 369 |
supersede | 830 | 6.4 ms | 6.8 ms | 6.8 ms | 30.3 MiB | 1 881 701 |
supersede_if_match | 910 | 6.4 ms | 11.6 ms | 11.6 ms | 33 MiB | 2 185 823 |
by_version_uid | 8 220 | 536.8 µs | 572.1 µs | 572.1 µs | 760 B | 152 667 |
latest_by_versioned_object_uid | 8 640 | 531.8 µs | 556.7 µs | 556.7 µs | 128 B | 151 163 |
version_at_time | 4 270 | 1 ms | 1.2 ms | 1.2 ms | 0 B | 92 326 |
revision_history | 18 100 | 257.8 µs | 268.3 µs | 268.3 µs | 0 B | 289 666 |
contains_one_ehr | 710 | 6.8 ms | 7 ms | 7 ms | 0 B | 2 827 280 |
contains_population | 2 150 | 2.3 ms | 2.3 ms | 2.3 ms | 144 B | 555 234 |
flat_2_sibling_leaves | 270 | 17.6 ms | 19.5 ms | 19.5 ms | 0 B | 988 291 |
flat_3_sibling_leaves | 220 | 22.9 ms | 23 ms | 23 ms | 88 B | 895 288 |
streaming_2_sibling_leaves | 680 | 7.4 ms | 7.5 ms | 7.5 ms | 0 B | 2 359 238 |
streaming_3_sibling_leaves | 630 | 7.9 ms | 8 ms | 8 ms | 0 B | 2 416 209 |
contains_exists | 360 | 13.3 ms | 13.9 ms | 13.9 ms | 0 B | 6 013 262 |
node_predicate | 990 | 5.1 ms | 5.2 ms | 5.2 ms | 0 B | 2 103 028 |
where_magnitude | 70 | 74.6 ms | 75.8 ms | 75.8 ms | 0 B | 3 771 071 |
where_coded | 840 | 5.9 ms | 6 ms | 6 ms | 0 B | 1 896 739 |
where_date_time | 860 | 5.8 ms | 6 ms | 6 ms | 0 B | 1 871 050 |
where_text | 820 | 6.1 ms | 6.3 ms | 6.3 ms | 0 B | 1 965 435 |
wide_projection_one_ehr | 120 | 41.7 ms | 43 ms | 43 ms | 0 B | 130 689 |
wide_projection_population | 400 | 12.4 ms | 12.8 ms | 12.8 ms | 0 B | 2 007 008 |
select_observation | 680 | 7.4 ms | 7.6 ms | 7.6 ms | 0 B | 1 857 760 |
select_composition_one_ehr | 870 | 5.7 ms | 6.1 ms | 6.1 ms | 0 B | 705 797 |
person_identifier_lookup | 880 | 5.5 ms | 5.7 ms | 5.7 ms | 0 B | 84 973 |
ehr_by_subject | 11 030 | 443.9 µs | 466.6 µs | 466.6 µs | 0 B | 15 268 |
aql_version_at_time | 1 240 | 4 ms | 4.1 ms | 4.1 ms | 0 B | 1 710 369 |
archive_ehr | 40 | 58.2 ms | 68.1 ms | 68.1 ms | 52.2 MiB | 1 624 838 |
restore_ehr | 40 | 82.9 ms | 89.1 ms | 89.1 ms | 47.2 MiB | 1 378 980 |
retention_prune | 33 890 | 141.1 µs | 142.2 µs | 142.2 µs | 4.2 KiB | 43 579 |
One representative commit wrote 304.6 KiB of WAL and touched 1 047 buffers. The population CONTAINS statement plans as Hash Join and reads 14 350 shared blocks.
| Relation | Live rows | Dead rows | Updates | HOT updates | Size |
|---|---|---|---|---|---|
clinical.commit_audit | 4 018 | 0 | 0 | 0 | 1.1 MiB |
clinical.contribution | 3 978 | 0 | 0 | 0 | 832 KiB |
clinical.ehr | 20 | 0 | 0 | 0 | 64 KiB |
clinical.event_outbox | 3 978 | 0 | 0 | 0 | 2.2 MiB |
clinical.node_cold | 0 | 0 | 0 | 0 | 152 KiB |
clinical.node_hot | 171 884 | 0 | 0 | 0 | 61.2 MiB |
clinical.template_ref | 2 | 0 | 0 | 0 | 32 KiB |
clinical.template_store | 2 | 0 | 0 | 0 | 192 KiB |
clinical.version_cold | 0 | 0 | 0 | 0 | 160 KiB |
clinical.version_hot | 3 968 | 0 | 0 | 0 | 12.5 MiB |
clinical.vo_head | 1 698 | 243 | 5 654 | 5 654 | 680 KiB |
Measured over 20 EHRs and 300 compositions of template Vital signs at commit 40bb79e3a10f on 4 cores against PostgreSQL 18.6.
Schema generation generation-4, class s
| Operation | Iterations | p50 | p95 | p99 | WAL | Buffer hits |
|---|---|---|---|---|---|---|
create_first_version | 1 090 | 4.3 ms | 4.5 ms | 4.5 ms | 38.1 MiB | 944 061 |
supersede | 880 | 5.9 ms | 6.7 ms | 6.7 ms | 31.7 MiB | 2 069 808 |
supersede_if_match | 900 | 6 ms | 6.7 ms | 6.7 ms | 32.4 MiB | 2 146 906 |
by_version_uid | 9 080 | 464.6 µs | 472.7 µs | 472.7 µs | 416 B | 166 080 |
latest_by_versioned_object_uid | 9 050 | 464.5 µs | 477.4 µs | 477.4 µs | 0 B | 156 894 |
version_at_time | 4 370 | 962.6 µs | 977.3 µs | 977.3 µs | 0 B | 94 361 |
revision_history | 18 030 | 240.8 µs | 283.7 µs | 283.7 µs | 0 B | 288 746 |
contains_one_ehr | 1 190 | 3.8 ms | 4 ms | 4 ms | 0 B | 389 580 |
contains_population | 1 840 | 2.7 ms | 2.9 ms | 2.9 ms | 0 B | 1 258 017 |
flat_2_sibling_leaves | 200 | 24.9 ms | 27.7 ms | 27.7 ms | 31 KiB | 1 551 924 |
flat_3_sibling_leaves | 160 | 31.7 ms | 32.7 ms | 32.7 ms | 0 B | 1 381 601 |
streaming_2_sibling_leaves | 650 | 7.6 ms | 8.2 ms | 8.2 ms | 0 B | 2 562 363 |
streaming_3_sibling_leaves | 620 | 8.1 ms | 8.4 ms | 8.4 ms | 0 B | 2 265 330 |
contains_exists | 210 | 24 ms | 24.6 ms | 24.6 ms | 0 B | 10 171 573 |
node_predicate | 920 | 5.5 ms | 5.5 ms | 5.5 ms | 0 B | 2 380 645 |
where_magnitude | 50 | 106.4 ms | 107.3 ms | 107.3 ms | 0 B | 5 916 560 |
where_coded | 930 | 5.4 ms | 5.5 ms | 5.5 ms | 0 B | 2 027 603 |
where_date_time | 830 | 6 ms | 6.2 ms | 6.2 ms | 0 B | 2 199 493 |
where_text | 620 | 8.1 ms | 8.3 ms | 8.3 ms | 56 B | 3 252 641 |
wide_projection_one_ehr | 130 | 40.8 ms | 41.4 ms | 41.4 ms | 0 B | 225 187 |
wide_projection_population | 420 | 11.8 ms | 11.9 ms | 11.9 ms | 0 B | 2 096 692 |
select_observation | 630 | 7.6 ms | 7.9 ms | 7.9 ms | 0 B | 1 764 369 |
select_composition_one_ehr | 560 | 9 ms | 9.1 ms | 9.1 ms | 0 B | 611 639 |
person_identifier_lookup | 880 | 5.4 ms | 5.6 ms | 5.6 ms | 0 B | 89 721 |
ehr_by_subject | 11 440 | 436.2 µs | 451 µs | 451 µs | 0 B | 31 225 |
aql_version_at_time | 1 200 | 4.2 ms | 4.4 ms | 4.4 ms | 0 B | 1 686 531 |
archive_ehr | 20 | 126.8 ms | 131.6 ms | 131.6 ms | 59.9 MiB | 1 526 852 |
restore_ehr | 20 | 156.7 ms | 158.5 ms | 158.5 ms | 55.3 MiB | 1 560 724 |
retention_prune | 35 910 | 129.6 µs | 139.6 µs | 139.6 µs | 13.8 KiB | 45 727 |
One representative commit wrote 505.9 KiB of WAL and touched 1 274 buffers. The population CONTAINS statement plans as Hash Join and reads 14 258 shared blocks.
| Relation | Live rows | Dead rows | Updates | HOT updates | Size |
|---|---|---|---|---|---|
clinical.commit_audit | 7 138 | 0 | 0 | 0 | 1.9 MiB |
clinical.contribution | 6 938 | 0 | 0 | 0 | 1.4 MiB |
clinical.ehr | 100 | 0 | 0 | 0 | 232 KiB |
clinical.event_outbox | 6 938 | 0 | 0 | 0 | 3.9 MiB |
clinical.node_cold | 0 | 0 | 0 | 0 | 128 KiB |
clinical.node_hot | 325 734 | 0 | 0 | 0 | 118.4 MiB |
clinical.template_ref | 2 | 0 | 0 | 0 | 32 KiB |
clinical.template_store | 2 | 0 | 0 | 0 | 192 KiB |
clinical.version_cold | 0 | 0 | 0 | 0 | 176 KiB |
clinical.version_hot | 7 038 | 0 | 0 | 0 | 24.3 MiB |
clinical.vo_head | 4 648 | 40 | 5 954 | 5 954 | 1 MiB |
Measured over 100 EHRs and 3 000 compositions of template Vital signs at commit 40bb79e3a10f on 4 cores against PostgreSQL 18.6.
Schema generation generation-5, class poc
| Operation | Iterations | p50 | p95 | p99 | WAL | Buffer hits |
|---|---|---|---|---|---|---|
create_first_version | 930 | 5 ms | 6.2 ms | 6.2 ms | 31.8 MiB | 730 000 |
supersede | 810 | 7 ms | 7.9 ms | 7.9 ms | 28.1 MiB | 1 796 592 |
supersede_if_match | 740 | 7.3 ms | 8.2 ms | 8.2 ms | 26.3 MiB | 1 672 155 |
by_version_uid | 7 980 | 577.4 µs | 586.7 µs | 586.7 µs | 120 B | 143 712 |
latest_by_versioned_object_uid | 7 800 | 569.2 µs | 584.5 µs | 584.5 µs | 632 B | 146 803 |
version_at_time | 4 060 | 1.1 ms | 1.1 ms | 1.1 ms | 0 B | 98 940 |
revision_history | 14 000 | 342 µs | 355.6 µs | 355.6 µs | 0 B | 236 366 |
contains_one_ehr | 620 | 7.7 ms | 7.8 ms | 7.8 ms | 0 B | 1 976 026 |
contains_population | 2 040 | 2.4 ms | 2.5 ms | 2.5 ms | 0 B | 527 159 |
flat_2_sibling_leaves | 260 | 18.4 ms | 20.6 ms | 20.6 ms | 0 B | 946 308 |
flat_3_sibling_leaves | 190 | 27.6 ms | 28.3 ms | 28.3 ms | 0 B | 790 531 |
streaming_2_sibling_leaves | 600 | 8.5 ms | 8.6 ms | 8.6 ms | 0 B | 1 771 139 |
streaming_3_sibling_leaves | 570 | 8.9 ms | 9.1 ms | 9.1 ms | 0 B | 1 840 239 |
contains_exists | 340 | 14.7 ms | 15 ms | 15 ms | 0 B | 5 232 561 |
node_predicate | 840 | 6 ms | 6.3 ms | 6.3 ms | 0 B | 1 771 917 |
where_magnitude | 70 | 74.1 ms | 80.7 ms | 80.7 ms | 0 B | 3 372 688 |
where_coded | 740 | 6.8 ms | 7.6 ms | 7.6 ms | 0 B | 1 773 273 |
where_date_time | 750 | 6.6 ms | 6.8 ms | 6.8 ms | 0 B | 1 359 947 |
where_text | 710 | 7.2 ms | 7.6 ms | 7.6 ms | 0 B | 1 755 614 |
wide_projection_one_ehr | 130 | 40.6 ms | 40.7 ms | 40.7 ms | 0 B | 140 801 |
wide_projection_population | 360 | 13.9 ms | 14 ms | 14 ms | 0 B | 1 890 224 |
select_observation | 550 | 8.7 ms | 8.9 ms | 8.9 ms | 0 B | 1 294 608 |
select_composition_one_ehr | 710 | 6.8 ms | 7.5 ms | 7.5 ms | 0 B | 607 419 |
person_identifier_lookup | 860 | 5.6 ms | 5.6 ms | 5.6 ms | 0 B | 77 072 |
ehr_by_subject | 10 470 | 468.1 µs | 502.4 µs | 502.4 µs | 0 B | 14 826 |
aql_version_at_time | 1 140 | 4.4 ms | 4.5 ms | 4.5 ms | 0 B | 1 598 735 |
archive_ehr | 40 | 66.2 ms | 77.8 ms | 77.8 ms | 50 MiB | 1 639 004 |
restore_ehr | 30 | 94.5 ms | 100 ms | 100 ms | 35.5 MiB | 1 082 226 |
retention_prune | 17 970 | 262.8 µs | 279.4 µs | 279.4 µs | 706.8 KiB | 196 365 |
One representative commit wrote 325.2 KiB of WAL and touched 3 962 buffers. The population CONTAINS statement plans as Hash Join and reads 18 304 shared blocks.
| Relation | Live rows | Dead rows | Updates | HOT updates | Size |
|---|---|---|---|---|---|
clinical.commit_audit | 3 648 | 0 | 0 | 0 | 992 KiB |
clinical.contribution | 3 608 | 0 | 0 | 0 | 784 KiB |
clinical.ehr | 20 | 0 | 0 | 0 | 64 KiB |
clinical.event_outbox | 3 608 | 0 | 0 | 0 | 1.9 MiB |
clinical.node_cold | 0 | 0 | 0 | 0 | 152 KiB |
clinical.node_hot | 157 264 | 0 | 0 | 0 | 50.9 MiB |
clinical.template_ref | 2 | 0 | 0 | 0 | 32 KiB |
clinical.template_store | 2 | 0 | 0 | 0 | 192 KiB |
clinical.version_cold | 0 | 0 | 0 | 0 | 160 KiB |
clinical.version_hot | 3 628 | 703 | 0 | 0 | 11.5 MiB |
clinical.vo_head | 1 548 | 98 | 5 104 | 5 104 | 576 KiB |
Measured over 20 EHRs and 300 compositions of template Vital signs at commit 038571f9c7bc on 4 cores against PostgreSQL 18.6.
Schema generation generation-5, class s
| Operation | Iterations | p50 | p95 | p99 | WAL | Buffer hits |
|---|---|---|---|---|---|---|
create_first_version | 1 070 | 4.4 ms | 4.5 ms | 4.5 ms | 35.4 MiB | 929 351 |
supersede | 890 | 6.2 ms | 8.4 ms | 8.4 ms | 30.8 MiB | 2 161 169 |
supersede_if_match | 940 | 6.4 ms | 6.7 ms | 6.7 ms | 31.6 MiB | 2 268 599 |
by_version_uid | 8 660 | 490.7 µs | 609.3 µs | 609.3 µs | 208.4 KiB | 175 072 |
latest_by_versioned_object_uid | 8 980 | 471.9 µs | 513.7 µs | 513.7 µs | 480 B | 159 656 |
version_at_time | 4 340 | 1 ms | 1.1 ms | 1.1 ms | 120 B | 93 911 |
revision_history | 18 310 | 254.5 µs | 257.7 µs | 257.7 µs | 0 B | 292 386 |
contains_one_ehr | 1 160 | 3.7 ms | 3.8 ms | 3.8 ms | 120 B | 384 311 |
contains_population | 2 040 | 2.4 ms | 2.5 ms | 2.5 ms | 0 B | 829 355 |
flat_2_sibling_leaves | 200 | 24.4 ms | 27.5 ms | 27.5 ms | 22.9 KiB | 1 547 845 |
flat_3_sibling_leaves | 160 | 34.5 ms | 35.5 ms | 35.5 ms | 0 B | 1 162 553 |
streaming_2_sibling_leaves | 680 | 7.4 ms | 7.6 ms | 7.6 ms | 0 B | 2 402 326 |
streaming_3_sibling_leaves | 640 | 7.9 ms | 8.2 ms | 8.2 ms | 0 B | 2 123 864 |
contains_exists | 200 | 25.1 ms | 26.3 ms | 26.3 ms | 0 B | 9 821 144 |
node_predicate | 950 | 5.3 ms | 5.4 ms | 5.4 ms | 0 B | 2 131 740 |
where_magnitude | 50 | 106.3 ms | 110 ms | 110 ms | 0 B | 5 892 992 |
where_coded | 770 | 6.6 ms | 6.7 ms | 6.7 ms | 0 B | 2 276 593 |
where_date_time | 890 | 5.6 ms | 5.6 ms | 5.6 ms | 0 B | 2 028 107 |
where_text | 600 | 8.3 ms | 8.4 ms | 8.4 ms | 0 B | 3 066 677 |
wide_projection_one_ehr | 130 | 40.7 ms | 42.2 ms | 42.2 ms | 0 B | 221 332 |
wide_projection_population | 380 | 13.3 ms | 13.7 ms | 13.7 ms | 0 B | 2 193 323 |
select_observation | 640 | 7.5 ms | 7.6 ms | 7.6 ms | 0 B | 1 588 428 |
select_composition_one_ehr | 560 | 8.7 ms | 9.1 ms | 9.1 ms | 0 B | 609 582 |
person_identifier_lookup | 920 | 5.4 ms | 5.7 ms | 5.7 ms | 0 B | 85 064 |
ehr_by_subject | 11 750 | 426.1 µs | 439.4 µs | 439.4 µs | 0 B | 31 884 |
aql_version_at_time | 1 230 | 4.1 ms | 4.2 ms | 4.2 ms | 0 B | 1 718 186 |
archive_ehr | 20 | 123.3 ms | 126.4 ms | 126.4 ms | 53.6 MiB | 1 517 281 |
restore_ehr | 20 | 152.9 ms | 153.8 ms | 153.8 ms | 50.7 MiB | 1 512 465 |
retention_prune | 20 250 | 211.6 µs | 246.1 µs | 246.1 µs | 0 B | 195 448 |
One representative commit wrote 522.1 KiB of WAL and touched 4 037 buffers. The population CONTAINS statement plans as Hash Join and reads 15 262 shared blocks.
| Relation | Live rows | Dead rows | Updates | HOT updates | Size |
|---|---|---|---|---|---|
clinical.commit_audit | 7 168 | 0 | 0 | 0 | 1.8 MiB |
clinical.contribution | 6 968 | 0 | 0 | 0 | 1.2 MiB |
clinical.ehr | 100 | 0 | 0 | 0 | 232 KiB |
clinical.event_outbox | 6 968 | 0 | 0 | 0 | 3.5 MiB |
clinical.node_cold | 0 | 0 | 0 | 0 | 128 KiB |
clinical.node_hot | 327 024 | 0 | 0 | 0 | 107.6 MiB |
clinical.template_ref | 2 | 0 | 0 | 0 | 32 KiB |
clinical.template_store | 2 | 0 | 0 | 0 | 192 KiB |
clinical.version_cold | 0 | 0 | 0 | 0 | 176 KiB |
clinical.version_hot | 7 068 | 0 | 0 | 0 | 24.4 MiB |
clinical.vo_head | 4 628 | 55 | 6 004 | 6 002 | 1 MiB |
Measured over 100 EHRs and 3 000 compositions of template Vital signs at commit 038571f9c7bc on 4 cores against PostgreSQL 18.6.
Schema generation generation-6, class poc
| Operation | Iterations | p50 | p95 | p99 | WAL | Buffer hits |
|---|---|---|---|---|---|---|
create_first_version | 1 090 | 4.4 ms | 4.5 ms | 4.5 ms | 36.1 MiB | 824 416 |
supersede | 1 140 | 4.9 ms | 5.6 ms | 5.6 ms | 6.6 MiB | 2 107 333 |
supersede_if_match | 1 150 | 4.9 ms | 5.6 ms | 5.6 ms | 6.8 MiB | 2 137 821 |
by_version_uid | 13 890 | 330.1 µs | 341.8 µs | 341.8 µs | 264 B | 247 429 |
latest_by_versioned_object_uid | 14 090 | 319.2 µs | 325.3 µs | 325.3 µs | 61.3 KiB | 267 480 |
version_at_time | 6 470 | 720.1 µs | 730 µs | 730 µs | 0 B | 155 540 |
revision_history | 28 310 | 171.1 µs | 172.5 µs | 172.5 µs | 0 B | 475 590 |
contains_one_ehr | 1 100 | 4.1 ms | 4.2 ms | 4.2 ms | 0 B | 1 980 115 |
contains_population | 3 110 | 1.6 ms | 1.6 ms | 1.6 ms | 0 B | 856 480 |
flat_2_sibling_leaves | 390 | 12.2 ms | 12.3 ms | 12.3 ms | 120 B | 1 465 992 |
flat_3_sibling_leaves | 310 | 15.7 ms | 15.9 ms | 15.9 ms | 88 B | 1 132 214 |
streaming_2_sibling_leaves | 890 | 5.7 ms | 5.8 ms | 5.8 ms | 0 B | 2 762 965 |
streaming_3_sibling_leaves | 820 | 6.1 ms | 6.3 ms | 6.3 ms | 0 B | 2 809 134 |
contains_exists | 610 | 8.2 ms | 8.3 ms | 8.3 ms | 0 B | 8 183 528 |
node_predicate | 1 270 | 4 ms | 4 ms | 4 ms | 0 B | 2 450 930 |
where_magnitude | 100 | 53.1 ms | 54 ms | 54 ms | 0 B | 5 256 697 |
where_coded | 1 070 | 4.7 ms | 4.8 ms | 4.8 ms | 0 B | 2 293 782 |
where_date_time | 1 120 | 4.5 ms | 4.5 ms | 4.5 ms | 0 B | 2 204 262 |
where_text | 1 040 | 4.8 ms | 4.9 ms | 4.9 ms | 0 B | 2 345 683 |
wide_projection_one_ehr | 170 | 29.2 ms | 29.3 ms | 29.3 ms | 232 B | 206 013 |
wide_projection_population | 530 | 9.5 ms | 9.7 ms | 9.7 ms | 0 B | 2 498 769 |
select_observation | 800 | 6 ms | 6.2 ms | 6.2 ms | 0 B | 2 022 934 |
select_composition_one_ehr | 1 200 | 4 ms | 4.1 ms | 4.1 ms | 0 B | 936 215 |
person_identifier_lookup | 1 140 | 4.2 ms | 4.3 ms | 4.3 ms | 0 B | 95 966 |
ehr_by_subject | 17 670 | 282.1 µs | 284.3 µs | 284.3 µs | 0 B | 21 941 |
aql_version_at_time | 1 840 | 2.7 ms | 2.7 ms | 2.7 ms | 0 B | 2 245 246 |
archive_ehr | 140 | 20.3 ms | 26.7 ms | 26.7 ms | 158.7 MiB | 9 870 317 |
restore_ehr | 140 | 19.2 ms | 20.2 ms | 20.2 ms | 157.9 MiB | 9 981 072 |
retention_prune | 30 680 | 163.4 µs | 165.1 µs | 165.1 µs | 8.1 KiB | 312 083 |
One representative commit wrote 282.3 KiB of WAL and touched 3 975 buffers. The population CONTAINS statement plans as Nested Loop and reads 18 152 shared blocks.
| Relation | Live rows | Dead rows | Updates | HOT updates | Size |
|---|---|---|---|---|---|
clinical.commit_audit | 4 548 | 0 | 0 | 0 | 1.3 MiB |
clinical.contribution | 4 508 | 0 | 0 | 0 | 840 KiB |
clinical.ehr | 40 | 0 | 0 | 0 | 64 KiB |
clinical.event_outbox | 4 508 | 0 | 0 | 0 | 2.2 MiB |
clinical.node_cold | 0 | 0 | 0 | 0 | 136 KiB |
clinical.node_hot | 74 704 | 0 | 0 | 0 | 54.3 MiB |
clinical.template_ref | 4 | 0 | 0 | 0 | 32 KiB |
clinical.template_store | 4 | 0 | 0 | 0 | 192 KiB |
clinical.version_cold | 0 | 0 | 0 | 0 | 336 KiB |
clinical.version_hot | 4 528 | 0 | 0 | 0 | 20.7 MiB |
clinical.vo_head | 1 708 | 0 | 15 132 | 15 132 | 648 KiB |
Measured over 20 EHRs and 300 compositions of template Vital signs at commit 82225d6a88d8 on 4 cores against PostgreSQL 18.6.
Schema generation generation-6, class s
| Operation | Iterations | p50 | p95 | p99 | WAL | Buffer hits |
|---|---|---|---|---|---|---|
create_first_version | 1 070 | 4.4 ms | 4.5 ms | 4.5 ms | 35.5 MiB | 926 429 |
supersede | 1 180 | 4.8 ms | 5.5 ms | 5.5 ms | 7.5 MiB | 2 272 609 |
supersede_if_match | 1 160 | 4.8 ms | 5.6 ms | 5.6 ms | 6.8 MiB | 2 184 054 |
by_version_uid | 13 600 | 329.9 µs | 333.3 µs | 333.3 µs | 78.6 KiB | 252 125 |
latest_by_versioned_object_uid | 14 540 | 317.9 µs | 320 µs | 320 µs | 456 B | 269 207 |
version_at_time | 6 300 | 728.4 µs | 745.3 µs | 745.3 µs | 0 B | 144 639 |
revision_history | 27 680 | 171.3 µs | 174.4 µs | 174.4 µs | 0 B | 467 444 |
contains_one_ehr | 1 730 | 2.7 ms | 2.7 ms | 2.7 ms | 120 B | 612 490 |
contains_population | 2 530 | 2 ms | 2 ms | 2 ms | 0 B | 1 554 199 |
flat_2_sibling_leaves | 330 | 14.9 ms | 16.4 ms | 16.4 ms | 136 B | 1 698 808 |
flat_3_sibling_leaves | 250 | 20 ms | 20.1 ms | 20.1 ms | 0 B | 1 224 810 |
streaming_2_sibling_leaves | 850 | 5.9 ms | 6 ms | 6 ms | 0 B | 3 086 520 |
streaming_3_sibling_leaves | 810 | 6.2 ms | 6.2 ms | 6.2 ms | 0 B | 3 187 586 |
contains_exists | 530 | 9.3 ms | 9.4 ms | 9.4 ms | 0 B | 5 934 249 |
node_predicate | 1 190 | 4.2 ms | 4.3 ms | 4.3 ms | 0 B | 2 879 980 |
where_magnitude | 70 | 72.7 ms | 72.9 ms | 72.9 ms | 0 B | 4 837 545 |
where_coded | 1 180 | 4.2 ms | 4.3 ms | 4.3 ms | 0 B | 2 485 551 |
where_date_time | 1 090 | 4.6 ms | 4.7 ms | 4.7 ms | 0 B | 2 683 370 |
where_text | 760 | 6.6 ms | 6.6 ms | 6.6 ms | 176 B | 4 173 294 |
wide_projection_one_ehr | 160 | 31.1 ms | 31.3 ms | 31.3 ms | 0 B | 307 413 |
wide_projection_population | 530 | 9.4 ms | 9.4 ms | 9.4 ms | 0 B | 2 549 897 |
select_observation | 740 | 6.5 ms | 6.5 ms | 6.5 ms | 0 B | 2 396 855 |
select_composition_one_ehr | 750 | 6.6 ms | 6.8 ms | 6.8 ms | 0 B | 907 948 |
person_identifier_lookup | 1 110 | 4.4 ms | 4.4 ms | 4.4 ms | 56 B | 99 530 |
ehr_by_subject | 16 820 | 293.6 µs | 305.4 µs | 305.4 µs | 0 B | 42 024 |
aql_version_at_time | 1 560 | 3.1 ms | 3.2 ms | 3.2 ms | 0 B | 2 400 330 |
archive_ehr | 80 | 34.8 ms | 45.8 ms | 45.8 ms | 204 MiB | 12 202 858 |
restore_ehr | 70 | 34.7 ms | 35.8 ms | 35.8 ms | 152.7 MiB | 16 221 567 |
retention_prune | 30 880 | 160.5 µs | 161 µs | 161 µs | 1.8 MiB | 390 958 |
One representative commit wrote 269.7 KiB of WAL and touched 1 182 buffers. The population CONTAINS statement plans as Hash Join and reads 5 530 shared blocks.
| Relation | Live rows | Dead rows | Updates | HOT updates | Size |
|---|---|---|---|---|---|
clinical.commit_audit | 7 678 | 0 | 0 | 0 | 2 MiB |
clinical.contribution | 7 478 | 0 | 0 | 0 | 1.3 MiB |
clinical.ehr | 100 | 0 | 0 | 0 | 136 KiB |
clinical.event_outbox | 7 478 | 0 | 0 | 0 | 3.8 MiB |
clinical.node_cold | 0 | 0 | 0 | 0 | 120 KiB |
clinical.node_hot | 222 104 | 0 | 0 | 0 | 129.5 MiB |
clinical.template_ref | 2 | 0 | 0 | 0 | 32 KiB |
clinical.template_store | 2 | 0 | 0 | 0 | 192 KiB |
clinical.version_cold | 0 | 0 | 0 | 0 | 312 KiB |
clinical.version_hot | 7 578 | 0 | 0 | 0 | 39.2 MiB |
clinical.vo_head | 4 628 | 8 | 15 886 | 15 886 | 1 MiB |
Measured over 100 EHRs and 3 000 compositions of template Vital signs at commit 82225d6a88d8 on 4 cores against PostgreSQL 18.6.
The published figures
The figures below are the last ones measured with the earlier generation of
the instrument, the Veredictum 0.1 line: a proof-of-concept class run, the
step-load stress ladder and the AQL probe, against FerroEHR 4.3.0. Veredictum
0.3.1 replaced those three instruments with perf, so they cannot be re-run. A perf-result record measured on the reference host replaces them,
and these charts and their records go with it.
| Class | Corpus | Offered-load floor | p99 budget | Error budget | Measured sustained | Verdict |
|---|---|---|---|---|---|---|
| POC | cnf.scale.10k | 2/s | ≤ 1000 ms | 0 | 2.0/s | EARNED |
| S | cnf.scale.100k | 15/s | ≤ 1000 ms | 0 | — | not measured |
| L | cnf.scale.1m | 150/s | ≤ 1000 ms | 0 | — | not measured |
| R | cnf.scale.10m | 1500/s | ≤ 1000 ms | 0 | — | not measured |
Measured run PERF-hospital_sim-class_POC — class POC, offered load 2.04/s sustained over 3600 s (after 300 s warmup), environment: consumer-laptop (8 cores, 16 GB, nvme, single-node docker compose (8-CPU/8GB Docker VM) on Apple M2, the SMART resource-server posture (docker/sut-smart.yml overlays the base stack) with the external-terminology profile composed beside it (a seeded HAPI FHIR R4 server, docker compose –profile terminology + docker/sut-terminology.yml, fail-open); alongside it a second deployment of the same image in the openPGP version-signing posture (project ferroehr-cnf-pgp, docker/sut-signing-pgp.yml + docker/sut-terminology-failclosed.yml + docker/sut-pgp-parallel.yml, host port 8081) declared as the sut_pgp instance, which carries the fail-closed terminology posture — the measured-performance stage drives the primary deployment alone).
| Operation | Requests | Errors | p50 (ms) | p90 (ms) | p99 (ms) |
|---|---|---|---|---|---|
| adhoc_query | 792 | 0 | 29 | 38 | 64 |
| admin_contribution_report | 60 | 0 | 159 | 176 | 269 |
| analytics_query | 23 | 0 | 62 | 76 | 197 |
| archetype_adl2_list | 60 | 0 | 13 | 18 | 28 |
| composition_commit | 280 | 0 | 50 | 106 | 214 |
| composition_commit_flat | 7 | 0 | 42 | 53 | 53 |
| composition_delete | 4 | 0 | 28 | 35 | 35 |
| composition_read | 1583 | 0 | 24 | 33 | 66 |
| composition_read_current | 896 | 0 | 27 | 36 | 57 |
| composition_read_flat | 7 | 0 | 17 | 25 | 25 |
| composition_revision_history | 889 | 0 | 14 | 21 | 31 |
| composition_update | 68 | 0 | 46 | 67 | 239 |
| composition_version_read | 30 | 0 | 28 | 35 | 49 |
| contribution_commit | 48 | 0 | 54 | 138 | 187 |
| contribution_read | 82 | 0 | 20 | 28 | 60 |
| directory_create | 12 | 0 | 25 | 40 | 86 |
| directory_read | 803 | 0 | 17 | 24 | 40 |
| directory_update | 12 | 0 | 28 | 34 | 42 |
| ehr_create | 12 | 0 | 28 | 32 | 33 |
| ehr_extract_export | 792 | 0 | 149 | 182 | 268 |
| ehr_read | 72 | 0 | 18 | 25 | 37 |
| ehr_status_read | 24 | 0 | 16 | 23 | 25 |
| ehr_status_update | 24 | 0 | 21 | 36 | 55 |
| party_create | 6 | 0 | 22 | 28 | 28 |
| party_read | 6 | 0 | 16 | 24 | 24 |
| party_relationship_create | 6 | 0 | 26 | 30 | 30 |
| party_relationship_read | 6 | 0 | 11 | 17 | 17 |
| party_update | 6 | 0 | 15 | 27 | 27 |
| readonly_write_denied | 7 | 0 | 30 | 46 | 46 |
| smart_configuration_read | 7 | 0 | 15 | 24 | 24 |
| stored_query_execute | 180 | 0 | 41 | 55 | 103 |
| system_options | 7 | 0 | 10 | 18 | 18 |
| tags_put | 30 | 0 | 24 | 33 | 41 |
| tags_read | 30 | 0 | 17 | 26 | 38 |
| tdd_import | 7 | 0 | 35 | 60 | 60 |
| template_adl2_list | 61 | 0 | 13 | 19 | 54 |
| template_example | 60 | 0 | 30 | 102 | 261 |
| template_get | 60 | 0 | 64 | 134 | 240 |
| template_list | 60 | 0 | 53 | 80 | 90 |
| terminology_query | 23 | 0 | 19 | 26 | 73 |
| unauthenticated_probe | 7 | 0 | 18 | 23 | 23 |
| ward_query | 180 | 0 | 28 | 38 | 71 |
Resources (measured context, never a verdict input) — sampled every 10 s; CPU/RSS derived over the measured phase:
| Container | CPU mean | CPU peak | RSS peak |
|---|---|---|---|
sut ferroehr-cnf-ferroehr-1 | 3.6% | 7.7% | 218 MB |
db ferroehr-cnf-ferroehr-postgres-1 | 5.9% | 21.0% | 1.5 GB |
Disk anchors: empty 133 MB → after scale seed 13 GB (≈ 13 KB / composition over 1,000,000 committed) → after ward seed 13 GB → after window 13 GB.
Benchmarks
FerroEHR measures performance with the same instrument family that measures
conformance: Veredictum,
the separate CNF 2.0 runner described on Conformance. Below the
wire, the storage benchmark harness (cargo bench -p ferroehr --bench storage,
Performance) times the storage
layer directly. Every published number is measured by a committed, re-runnable
instrument, reported in both directions, and regenerated from committed
artefacts. There is no chart in this project that you cannot regenerate
yourself with one command.
The instruments
perf: one pinned workload offered to a running server as open-loop Poisson arrivals, a scout ramp to estimate the knee, and a ladder of plateaus around it. The record gives the knee bracket, the peak throughput, the percentiles per operation with their resolvability, and server-side readings, and it earns no class. See Performance.perf-judge: re-derives every number of a record from its recorded histograms and fails when one byte differs.perf-compare: lines committed records up and names every way in which they describe different things, or runs two servers (--ab) or one server against itself (--aa) interleaved on one host. An A/A run measures the between-run noise floor a difference has to clear.perf-assets: draws the published charts from a committed record.
What the workload simulates
The published record offers clinical-mix, Veredictum’s reference workload:
chart review as short sessions on one EHR, ward boards, problem lists, cohort
counts, AQL over ad-hoc and stored queries, and the order, result, correction,
folder, tag, definition, demographic and bootstrap traffic around them, with
payloads built from published openEHR CKM templates. Every share names its
derivation. See Performance.
Running the instruments
# compose the measurement deployment, measure, re-derive, redraw the charts
bash scripts/conformance.sh perf
# the same, measured against itself interleaved: the record carries its noise floor
bash scripts/conformance.sh perf-aa
# two records side by side
source scripts/lib/veredictum.sh
"$(veredictum_bin)" perf-compare --result <a.json> --result <b.json>
Every stage seeds a freshly composed, empty server through the public API and
the stack is torn down afterwards. The committed record lands at
docs/conformance/ferroehr/perf-result.json; the published charts regenerate
from it (scripts/render/perf-assets.sh) and are diff-guarded in CI.
Measurement rules
The measurement methodology is enforced by construction:
- The same instrument measures every run with the same pinned workload, each on its own freshly composed stack with the committed party statement and IXIT.
- Database maintenance is settled deterministically before every measured window, so no run pays another’s maintenance debt or trips an autovacuum mid-measurement.
- Rate limiting and response compression are off for measurement runs.
The scout ramp offers load past the knee on purpose, and
perfwrites no record if the server answered any throttled request; every posture profile declares compression off, and the posture canaries refuse a run that contradicts it. - The posture is checked, not assumed. Canaries before and after the measured window check version signing, commit validation and authentication against the declared posture.
- Configuration differences are explicit and labelled, never quiet. Any setting raised or lowered for a measurement is a visible part of the composed posture, which is why the postures live in committed compose files rather than in a shell variable someone may or may not have exported.
Licensing & legal
The licence policy of the FerroHEALTH products is written once, in the
FerroHEALTH book: what the Business Source License 1.1 allows without asking
anyone, when you need a commercial licence, the Change Date to the Apache
License 2.0, how to arrange a commercial licence, and the FerroHEALTH
trademarks. Read it at
Licensing and trademarks.
LICENSE in this
repository is the authority for FerroEHR and names the Licensor, the Licensed
Work, the Additional Use Grant and the Change Date.
This page keeps what is particular to FerroEHR: installing a commercial licence in the server, which FerroEHR crates carry which licence, the third-party material this repository and its images ship, the machine-readable licensing, and FerroEHR’s lineage. It is a summary for evaluators and deployers, not legal advice.
- Installing a commercial licence
- FerroEHR’s own code: the Business Source License 1.1
- The published
openehr-*crates - Vendored third-party material
- Machine-readable licensing (REUSE 3.3)
- Rust dependencies
- Trademarks and lineage
- Questions
Installing a commercial licence
A commercial licence is a signed token file the licensor issues to you. Place
it where the server can read it and point [deployment] file (or
FERROEHR__DEPLOYMENT__LICENCE_FILE) at it; GET /management/status then
reports licence.use = "commercial" with your organisation as licensee. Without a
token the same field reports the non-commercial grant every build embeds.
The server behaves identically under either; identifiers it mints carry a
few bits derived from the licence id in place of random bits, so a record
states which grant it was written under, and nothing else.
A commercial licence is arranged with Cadasto B.V., the Licensor: write to
info@cadasto.com or use
https://www.cadasto.com/contact/. Technical questions go to the maintainer
named in
MAINTAINERS.md.
FerroEHR’s own code: the Business Source License 1.1
Everything written for this project (the server and application crates, the
code generator and tooling, the viewer, and the two hand-written
specification engines openehr-adl and openehr-sdt) is licensed under the
Business Source License 1.1,
SPDX identifier BUSL-1.1. The Licensor is Cadasto B.V. The copyright
holder is stated as Cadasto B.V., identically in LICENSE, in
REUSE.toml, and in every first-party file header; a CI gate compares those
sources with this page and with the README.md of each hand-written engine
crate, so they cannot drift apart. Ruben Talstra remains the maintainer, which
is a credit rather than a holder statement.
FerroEHR is source-available. The Business Source License 1.1 is not an OSI-approved open-source licence, and this project does not claim that it is. Each version becomes available under the Apache License 2.0, its Change License, four years after that version is published.
What the change does not affect. Releases v3.0.0 through v4.0.17 stay under
the MIT terms they were published with, and so do the openehr-* crate
versions 0.0.56 and earlier on crates.io (MIT AND Apache-2.0 for the crates
that embed openEHR-derived material); openehr-query, openehr-adl and
openehr-its 0.0.58 and 0.0.59 stay Apache-2.0, and openehr-its 0.0.60 to
0.0.67 stay BUSL-1.1 AND Apache-2.0, and openehr-query 0.0.60 to
0.0.115 stay BUSL-1.1. Relicensing changes future versions
only. LICENSES/MIT.txt reproduces that grant as those versions carry
it, Ruben Talstra’s copyright line included, because a published grant is a
record of what was handed out and is not rewritten afterwards.
The conformance instrument is no longer part of this repository. It is Veredictum, an independent project under Apache-2.0, and the conformance pipeline here consumes it at a pinned version. The vendored test corpora this repository still carries keep their upstream terms exactly as the table below states.
The published openehr-* crates
Six of the nine published openehr-* spec crates are Apache-2.0, not
BUSL-1.1, so any Rust project can use them, in proprietary and hosted
products included, with no commercial licence involved. openehr-base,
openehr-rm, openehr-am, openehr-lang and openehr-term are the
generated openEHR model, published on crates.io under the licence of the
openEHR machine-readable artifacts they are generated from. They embed
openEHR-derived material (specification documentation text in the generated doc
comments), which is Apache-2.0 as well; their generated files name the openEHR
Foundation as a second copyright holder. openehr-term also embeds the official
openEHR terminology XML, which is CC-BY-SA 3.0 (see the table below) and is
redistributed verbatim with attribution, so it declares
Apache-2.0 AND CC-BY-SA-3.0 and ships both texts.
openehr-its, the ITS wire layer, is the sixth. Its canonical XML codecs,
_type dispatch, REST contract and archetype XML codecs are generated from the
Apache-2.0 openEHR XSD, OpenAPI and BMM artifacts, and it embeds the vendored
ITS-JSON schema. The hand-written runtimes, canonical JSON entry points and
wire-validation dispatcher are Apache-2.0 with it, because the generated code
cannot ship without them. From 0.0.69 it declares Apache-2.0, and every
file names the openEHR Foundation as the second copyright holder.
openehr-query, the AQL parser hand-written from openEHR’s Apache-2.0
grammar, declares Apache-2.0 from 0.0.116 and names the openEHR Foundation
as the second copyright holder in every file.
The two hand-written engines, openehr-adl
(the ADL engine) and openehr-sdt (the Simplified Formats, RM-instance
validation and the SMART scope grammar), are the project’s own engineering and
carry the Business Source License 1.1 like the application, each with its own
LICENSE naming the crate as the Licensed Work and each declaring BUSL-1.1.
See Rust crates.
Vendored third-party material
The repository vendors external material verbatim: machine-readable specification artifacts the code generator consumes, the openEHR specification text used as the conformance oracle, and real-world clinical models and fixtures used as test corpora. Each family keeps its upstream license:
| Material | Source | License |
|---|---|---|
| openEHR machine-readable artifacts (BMM meta-models, XML Schemas, OpenAPI documents, JSON Schemas) | the openEHR specifications-ITS-* repositories | Apache-2.0 |
| The normative ADL, cADL, ODIN, BEL and Expression-Language ANTLR grammars | openEHR/adl-antlr, openEHR/openEHR-antlr4 | Apache-2.0 |
| openEHR specification text (the conformance reference) | the openEHR specifications-* repositories | CC-BY-SA 3.0 |
| The AQL grammar and the computable terminology assets (the terminology XML the server embeds, and its schemas) | specifications-QUERY, specifications-TERM | CC-BY-SA 3.0 |
| Clinical models (archetypes and templates) from the openEHR Clinical Knowledge Manager | ckm.openehr.org | per-file licence metadata — a mix of CC-BY-SA 4.0 and CC-BY-SA 3.0 |
| The ADL 2 archetype library, with its ADL 1.4 twins (the shared corpus) | openEHR/adl-archetypes | no stated licence — see below |
The ADL 2 validator-regression library (the openehr-adl corpus) | openEHR/adl-archetypes, a different subtree | mixed: mostly unstated, else CC-BY-SA 3.0, CC-BY 4.0 or CC-BY 3.0 |
Test corpora (archie fixtures and reference models, Better web-template-tests, EHRbase SDK canonical-JSON data) | Nedap, Better Ltd, vitasystems | Apache-2.0 |
| Three ISO 13606 / rejected-extract BMM reference models inside the archie corpus | offered by their authors under MPL 1.1 / GPL 2.0 / LGPL 2.1 | taken under MPL 1.1 — see the election below |
One terminology schema file, PropertyUnitData.xsd | ADL Designer / ADL2-tools, via the openEHR TERM assets | AGPL-3.0-only — see the contradiction below |
| The self-hosted KaTeX stylesheet and fonts this documentation site renders maths with | KaTeX contributors | MIT |
The Citation File Format 1.2.0 JSON Schema (validates CITATION.cff in CI) | citation-file-format/citation-file-format | CC-BY 4.0 |
EU legal acts vendored for the compliance citations (GDPR, ePrivacy Directive, EHDS, NIS2, CRA, MDR), under docs/law/eu/ | the EU Publications Office (EUR-Lex) | LicenseRef-EUR-Lex-Reuse (Commission Decision 2011/833/EU); the consolidated texts additionally CC-BY 4.0 |
| EDPB Guidelines 01/2025 on pseudonymisation and 2/2023 on the technical scope of Art. 5(3) of the ePrivacy Directive | European Data Protection Board | LicenseRef-EDPB-Reuse |
Dutch acts and decrees (UAVG, Wabvpz, BW Boek 7, the Telecommunicatiewet, the logging-retention decree, Begz), under docs/law/nl/ | wetten.overheid.nl | LicenseRef-Auteurswet-Art11-Public-Domain: no copyright subsists in Dutch legislation |
German federal law (BDSG, SGB V, GDNG, StGB; the DigiG as its Bundesgesetzblatt issue), under docs/law/de/ | gesetze-im-internet.de and recht.bund.de | LicenseRef-UrhG-Para5-Amtliche-Werke: no copyright protection for German legislation (§ 5 Abs. 1 UrhG) |
Swiss federal law (DSG/FADP, DSV/DPO, EPDG, EPDV, EPDV-EDI; German, plus the non-binding English where Fedlex publishes it), under docs/law/ch/ | Fedlex (the Federal Chancellery) | LicenseRef-URG-Art5-Nicht-Geschuetzte-Werke: Swiss legislation and its official translations are not protected by copyright (Art. 5 URG) |
The IETF RFCs the party binding and SCIM provisioning cite (SCIM 2.0, OAuth 2.0, URNs, usernames, HTTP status codes), under docs/specs/rfc/ | the RFC Editor | LicenseRef-IETF-Trust-Legal-Provisions: the IETF Trust’s grant to copy and distribute a document in full and without modification |
OpenID Connect Core 1.0 incorporating errata set 2, under docs/specs/openid-connect-core/ | the OpenID Foundation | LicenseRef-OpenID-Foundation-Specification: the specification’s own notice, for implementing it with attribution |
The Microsoft Entra ID provisioning articles and the identity platform claims and app manifest references, under docs/specs/microsoft-entra/ | MicrosoftDocs/entra-docs | CC-BY 4.0 or MIT: the README grants the first, the LICENSE file it points at reads the second |
Microsoft’s Workload Identity Federation for SCIM Provisioning guide, under docs/specs/scim-reference-code/ | AzureAD/SCIMReferenceCode | MIT |
The Keycloak 26.8.2 documentation sections the identity-provider examples cite, under docs/specs/keycloak/ | keycloak/keycloak | Apache-2.0 |
The eHDSI Interoperability Specifications 8.0.1 and the SAML, Audit Trail, Section I, Section II and XCA profiles the party binding cites, under docs/specs/ehdsi-specifications/ | DG SANTE (MyHealth@EU), supplied by the owner from the eHDSI wiki | LicenseRef-eHDSI-Reuse: each cover authorises reuse provided the source is acknowledged |
The Okta OAuth 2.0 and management OpenAPI documents, release 2026.44.0, under docs/specs/okta/ | okta/okta-management-openapi-spec | Apache-2.0, as each document’s info.license states |
The OASIS SAML V2.0 Profiles, under docs/specs/oasis-saml/ | OASIS Open | LicenseRef-OASIS-Copyright: the document’s own notice, a grant to copy and distribute it unmodified |
The IHE IUA supplement, Revision 2.5, under docs/specs/ihe-iua/ | IHE/ITI.IUA | CC-BY 4.0 |
Nuts RFC021, VP Token Grant Type, under docs/specs/nuts-rfc/ | nuts-foundation/nuts-specification | CC-BY-SA 4.0 |
The IHE Basic Audit Log Patterns implementation guide, Release 1.1.4, under docs/specs/ihe-balp/ | IHE/ITI.BasicAudit | CC-BY 4.0 |
The FHIR R4 and R5 AuditEvent pages, under docs/specs/fhir-auditevent/ | HL7 International | CC0 1.0 |
The FHIR R4 and R5 Consent resource pages, StructureDefinitions, value sets and examples, under docs/specs/fhir-consent/ | HL7 International | CC0 1.0 |
IHE Basic Patient Privacy Consents (ITI Technical Framework) and the Advanced Patient Privacy Consents supplement, Rev. 1.4, under docs/specs/ihe-consents/ | IHE International | LicenseRef-IHE-Technical-Framework-Copyright: the General Introduction’s grant to reproduce and distribute IHE Technical Framework documents |
The OASIS XACML 2.0 core specification, under docs/specs/xacml/ | OASIS Open | LicenseRef-OASIS-Copyright: the document’s own notice, a grant to copy and distribute it unmodified |
The care provider types of Nictiz’s zib 2020 package, under docs/specs/nl-role-codes/ | Nictiz | CC0 1.0 |
Logius’s Logboek Dataverwerkingen NEN7513 Extensie, under docs/specs/nen-7513-sources/logius/ | Logius-standaarden/logboek-extensie-nen7513 | CC-BY 4.0 or W3C-20150513: the publication states the first, the repository’s LICENSE the second |
The NEN 7510, 7512 and 7513 standards the compliance pages cite are sold under
copyright and are not in the tree; docs/law/nl/nen-75xx/ holds a record of the
clauses cited and why the text is absent.
Three documents the party binding cites are not in the tree either, because
their terms permit no copy: the MyHealth@EU Requirements Catalogue 10.0.0
states no reuse terms, the Okta “OpenID Connect & OAuth 2.0” API overview is
“All rights reserved”, and the Mitz Implementatiehandleiding 3.8.2 states no
licence. Each is recorded by URL or version and sha256, in
docs/specs/ehdsi-specifications/, docs/specs/okta/ and docs/specs/mitz/.
The openEHR access log design cites three more sources the tree does not
hold. DICOM PS3.15 grants no licence to redistribute it, and RFC 3881 and
RFC 8785, Independent Submissions, fall outside the IETF Trust’s grant;
they are recorded by URL and sha256 in docs/specs/dicom-ps3-15/ and
docs/specs/rfc-independent/ and read from the git-ignored cache. ISO
27789 and ISO 22600 are sold under copyright, and docs/specs/iso-health-informatics/ holds
a record of the editions cited.
The UZI-register Certificate Practice Statement v11.7, the source of the UZI
role codes, is “Copyright CIBG” with no reproduction allowed. It and the
uzi-rolcode CodeSystem of Nictiz’s package, whose codes and titles
reproduce it, are recorded by URL and sha256 in docs/specs/nl-role-codes/
and read from the git-ignored cache.
Every vendored tree in the repository carries a provenance note naming its exact
upstream source and pinned revision, with the upstream LICENSE file vendored
alongside where the source publishes one; the specification and corpus trees
name their license there as well, and REUSE.toml below is the authority for
all of them. The fuzzing seed corpus is a copy of several of those trees, so it
is declared under the union of their licenses rather than guessing each seed’s
origin from its filename.
The CKM clinical-model corpus is mixed, and the table says so on purpose. A
first-hand count over the vendored CKM material finds both CC-BY-SA 4.0 (the
majority) and CC-BY-SA 3.0 (several hundred files), so no single version is a
true statement about the tree. Each of those archetypes carries its own
licence field inside its description block, and that per-file metadata is
the authority for any individual file, which also means licensing for this
material already survives being copied out of the repository.
The ADL 2 archetype library states no licence at all, and this is the one
tree here that carries no grant. Measured on 2026-09-10 over the vendored copy
(openEHR/adl-archetypes at the pinned commit): of 652 archetypes, exactly one
states a licence — and it states CC-BY 4.0, not CC-BY-SA — while the other 651
carry copyright = <"© openEHR Foundation"> and nothing more. Upstream states
nothing either: no LICENSE file at that commit, and a four-line README.md.
The validator-regression library from the same upstream repository is a different subtree and measures differently: of its 302 archetypes, 111 state a licence and 191 state none, and where one is stated it is predominantly CC-BY-SA 3.0 (100 of the 111), with 10 CC-BY 4.0 and 1 CC-BY 3.0. No file in it states CC-BY-SA 4.0, which is why its declaration names what is actually there rather than inheriting the CKM expression.
An unstated licence is not a permissive one, so this material is declared
LicenseRef-openEHR-unstated, whose text in LICENSES/ records the
measurement and says plainly that it is not a licence. If you lift a file out
of that tree, you are doing so without a stated permission from the copyright
holder, and that is your call to make rather than one this repository has made
for you. The tree is here because it is the only independent source of paired
ADL 1.4 and ADL 2 forms of the same archetype: generating the pairs with this
project’s own converter would validate that converter against its own output.
Whether it stays committed is tracked on the issue this correction came from.
Two positions worth stating explicitly, because both are the kind of thing a compliance review finds and a summary table hides:
- The MPL election. Three BMM reference models in the archie corpus
(
cen_EN13606_0.95.bmm,cen_ts14796_0.90.bmm,openehr_ehr_extract_999.bmm) are offered by their authors under a tri-license: MPL 1.1, GPL 2.0, or LGPL 2.1. This project takes them under MPL 1.1, a file-scoped weak copyleft. The election is recorded in that corpus’sPROVENANCE.md, so no GPL or LGPL obligation attaches to anything here. - One upstream contradiction, not resolved by us.
crates/openehr-term/assets/schema/PropertyUnitData.xsdcarries an ADL Designer / ADL2-tools header offering it under the GNU Affero General Public License, inside an upstream repository whose ownLICENSEis CC-BY-SA 3.0. Both cannot be right, the contradiction is upstream’s, and re-licensing someone else’s file is not ours to do, so it is declared at the more restrictive of the two readings, the one the file’s own text asserts. No obligation reaches a consumer: the terminology schemas are excluded from the published crate by that crate’sincludelist, so the file ships in nothing.
Machine-readable licensing (REUSE 3.3)
The PROVENANCE.md arrangement above is accurate, and it stays. What it does
not do is survive a file leaving this repository: someone who lifts a single
archetype out of a test corpus takes a CC-BY-SA file bearing no marking they
copied. People build on this project and redistribute it, so downstream
file-level redistribution is the expected case.
So licensing is also published in the machine-readable form the REUSE Specification 3.3 defines:
LICENSES/holds the full text of every license any file in the tree is offered under, named by SPDX identifier:BUSL-1.1,MIT,Apache-2.0,CC-BY-SA-3.0,CC-BY-SA-4.0,CC-BY-4.0,CC-BY-3.0,MPL-1.1,AGPL-3.0-only— plusLicenseRef-openEHR-unstated, which is not a licence but the record that one tree carries none.REUSE.tomldeclares, by glob, which files are offered under which, including the two positions above, represented rather than flattened.- Every first-party source file carries the header inside itself: an
SPDX-FileCopyrightTextline and anSPDX-License-Identifierline stating the same positionREUSE.tomldeclares for it, so a file copied out of this repository takes its licensing along. Rust files of the five generated spec crates, ofopenehr-itsand ofopenehr-querystateApache-2.0, and every other first-party Rust, shell, SQL and YAML file, theopenehr-adlandopenehr-sdtsources included, statesBUSL-1.1. A copied migration or script arrives licensed, which is the whole point.
The vendored trees are glob-declared rather than headered for a reason that is
not convenience: no vendored file may be edited, so a header sweep over
third-party material was never available. REUSE.toml is the mechanism that
makes the declaration complete without touching one. The generated spec-crate
sources are the mirror case: a hand-written header there would be erased by the
next code-generation run, so they receive theirs from the code generator, which
stamps every file it writes.
All of it is gated in CI, and by more than one check, because each one can only see part of the picture:
reuse lintproves the declarations are complete: every file carries licensing information and no license text is orphaned.- A second check fails the build if the set of licenses declared in
REUSE.toml, the texts present inLICENSES/, and the licenses named on this page ever stop agreeing. A license cannot enter the tree without this chapter acquiring it. - Two header checks fail the build if a first-party file loses its header or states a license other than the one declared for its path: one for Rust, one for shell, SQL and YAML.
- One check fails if the copyright holder is stated differently in
LICENSE,REUSE.toml, the file headers, this page, or an engine crate’sREADME.md. - One check refuses copyleft license text inside this project’s own source, which is a conflict no reviewer reliably catches by eye.
What none of them can check is whether the prose on this page is correct. No tool can judge that, which is why any change to what the repository redistributes updates this chapter in the same pull request.
The CC-BY-SA specification text and clinical models are redistributed
verbatim, with attribution: they are reference and test material, not part
of the compiled server. The FerroEHR binary you deploy is built from this
project’s own BUSL-1.1 code, plus the Apache-2.0 machine-readable inputs the
generated crates carry, plus the CC-BY-SA 3.0 openEHR terminology bundle
openehr-term compiles in (five languages, the external-terminology index,
and the property/unit data). No
copyleft obligation beyond those attribution-and-share-alike terms on the
verbatim data attaches to anything shipped.
Rust dependencies
All third-party Rust crates are pinned in the workspace manifest and
license-gated in CI with cargo deny, which checks licenses, security
advisories, bans, and sources on every change. The allow-list is permissive
(MIT, Apache-2.0, the BSD family, ISC, Zlib, BSL-1.0, Unicode-3.0, CC0-1.0,
MIT-0, CDLA-Permissive-2.0) and deliberately admits two file-scoped weak
copyleft licenses: MPL 2.0, and CDDL 1.0 as a single crate-scoped exception for
the flamegraph renderer the profiling instruments use. Obligations under both
attach to those crates’ own files, which are consumed unmodified. No strong
copyleft (GPL, LGPL, AGPL, SSPL) is admitted, and a new dependency carrying one
fails the build.
Trademarks and lineage
The trademarks of the FerroHEALTH family are on Licensing and trademarks in the FerroHEALTH book.
- openEHR® is the registered trademark of the openEHR Foundation. FerroEHR is an independent implementation of the openEHR specifications and is not affiliated with or endorsed by the openEHR Foundation.
- FerroEHR began as a fork of EHRbase, developed by vitasystems GmbH and the Peter L. Reichertz Institute, and records that lineage in the labelled import commit at the root of its history. EHRbase itself remains Apache-2.0; no code from it is present in this tree, and it is consulted as prior art only. FerroEHR is not affiliated with or endorsed by the EHRbase project.
Questions
If you need a clarification for a compliance review, open a
GitHub discussion or issue;
provenance questions can usually be answered by pointing at the exact
PROVENANCE.md and upstream pin.
Compliance overview
FerroEHR is software. It is not a controller, not a processor and not a certified organisation, so nothing on this page says that a deployment complies with anything. What this page does say is which technical controls the product ships today, which are planned and tracked in public, and which obligations stay with the organisation that runs it.
The page is written for three readers. A privacy officer wants the legal sources and the split of duties. A hospital CISO wants the controls and their status. A developer wants to know where the boundary between clinical and identifying data runs. Each of those three readings takes about ten minutes.
It is also written in two layers, because openEHR is not a national standard and FerroEHR is published for every country that runs it. The GDPR, the EDPB guidelines and the EHDS apply to every EU deployment and come first. After them come the national sections, one per jurisdiction, each on top of that same EU layer. The Netherlands is filled in first because that is where the project’s own deployments are, not because it is the default; the national law section says how to add another.
The documentation that belongs to the FerroHEALTH family or to its manufacturer, Cadasto B.V., lives in the FerroHEALTH book at https://ferrohealth.eu/docs/: the manufacturer, the security policy, the post-market procedure, the manufacturer side of the CRA, the intended purpose and the shared responsibility of the EHR system FerroEHR forms with FerroBRIDGE, licensing, and how the products fit together. This book keeps FerroEHR’s own: the pages below.
- What FerroEHR claims, and what it does not
- The pseudonymisation boundary
- GDPR
- EDPB Guidelines 01/2025 on pseudonymisation
- EHDS
- National law
- Where to go next
What FerroEHR claims, and what it does not
FerroEHR aims to be the first openly developed, source-available openEHR CDR with a published, tracker-backed EU compliance posture, and an EHDS conformity self-assessment is on its roadmap.
It holds no certification, no declaration of conformity and no third-party assessment. No page on this site will tell you that FerroEHR is “GDPR compliant”, “NEN 7510 certified” or “EHDS conformant”, because none of those statements would be true of a piece of software on its own.
What the project does instead is publish the record. A shipped control has a feature page in this book and an issue in the tracker that delivered it. A planned control has an open issue and appears here as planned, with its number. The control matrix is generated from the tracker, so a control cannot sit on this site as “planned” after it has shipped, or as “shipped” before it has.
Warning
The legal texts linked here change, and some of them are not yet in force. The EHDS obligations phase in over several years on the dates its own final provisions carry, and NEN republishes its standards on its own cycle (NEN 7510 was reissued in December 2024). Check each publisher directly before you rely on a statement here: EUR-Lex for EU law, wetten.overheid.nl for Dutch law, gesetze-im-internet.de and recht.bund.de for German federal law, Fedlex for Swiss federal law, the EDPB for guidelines, and NEN for the 7510 family. This page is a summary for evaluators and deployers, not legal advice.
The exact texts these pages were written against are vendored in the repository under
docs/law/, each at a named consolidation with its digest and licence, and that directory’s README maps every act to the pages citing it. A statement here resolves to those bytes, and a publisher’s later amendment is a re-pin there, not a silent change of meaning.
The pseudonymisation boundary
A clinical record is identifying as soon as the record and the person can be put back together by whoever holds the database. Separating the two, and controlling who may rejoin them, is what GDPR Art. 4(5) calls pseudonymisation, and it is the control the EDPB Guidelines 01/2025 expect a supplier to describe rather than assert.
openEHR anticipated this. The Reference Model’s
PARTY_SELF and Referring to the Patient from the EHR
section names three schemes for pointing at the record subject, and calls the
one that never sets external_ref anywhere in the EHR “the most secure
approach”, because the link between record and patient is then held outside
the EHR. The second scheme sets it once, in
EHR_STATUS.subject,
whose own class description says the association “may be done elsewhere for
security reasons”. The reference itself is a
PARTY_REF,
described by the specification as an “identifier for parties in a demographic
or identity service”, so it carries a namespace, a party type and an id and no
demographic content of its own. The specification leaves the choice of scheme
to the implementation. Where the schemas, the database roles and the resolve
path live is FerroEHR’s own design, and no openEHR spec governs it.
What ships today
Clinical content and demographic parties live in separate PostgreSQL schemas,
ehr and demographic, each with its own archival tier and its own runtime
database roles. ferroehr_clinical and ferroehr_party, and a read-only twin
of each, are NOINHERIT, hold explicit grants on one domain only, and carry an
explicit revoke on the other. The server refuses to start if that does not
hold: a self-check enumerates every table, view, sequence and function in each
domain and names the role and the object it can reach. The database refuses the
mix as well, in both directions, so a code path that missed the split fails as
a write error rather than leaking quietly.
The separation of schemas is unconditional. Pointing the demographic pool at
its own DSN ([database.party] url) makes it a separation of credentials too, which is what
stops one leaked connection string from reaching more than one domain.
The controls that apply across both domains are the same: role- and attribute-based authorization, per-EHR access settings, the domain-separated database roles, and the audit trail. Both sides carry openEHR’s own provenance, because every write commits a contribution and its audit in the same transaction, which is the versioning discipline the Change Control Package defines.
Which EHR belongs to which subject is the EHR’s own EHR_STATUS.subject in the
clinical domain, the pseudonym, never the identity behind it. A cohort and the
AQL demographic join cross the boundary in the application over two pools, and
each crossing writes an access record. On the
clinical side the subject reference is an opaque pseudonym once
[privacy] subject_namespaces is declared, enforced by the write path and by a
database trigger, and the identifier scanner refuses a national identifier
anywhere in a clinical body.
flowchart LR
client["API client"] --> server["FerroEHR server"]
server -->|ferroehr_clinical| ehr[("clinical schema:<br/>versions and nodes")]
server -->|ferroehr_party| demo[("party schema:<br/>parties and sealed identifiers")]
server -->|audit writer| audit[("audit schema:<br/>ATNA record repository")]
Secondary use
Research data leaves through FerroBRIDGE, which loads the OMOP CDM in batches over AQL and pseudonymises for research; the CDR keeps no read model of its own for it (#3160 closed as superseded). The secondary-use page records the batch contract, the marks that take an EHR out of a batch, and the data permit on the access record.
Cross-domain cohort queries shipped with v4.2.0 (#3159): a cohort
question that spans both domains is answered through
POST /query/cohort,
each step on its own credential with identifiers only crossing between them,
and a result set serving fewer distinct EHRs than the configured threshold is
withheld and marked suppressed. Secondary use reads the primary store under
those controls; size your access control, purpose limitation and risk
assessment on that. The threat model
states the residual risk at each boundary, and the DPIA page
carries the risk register and the shipped controls by issue number.
The deployment profile
A deployment declares what it may hold with the top-level deployment.profile
key (configuration).
production refuses to start while a separation is missing and not accepted
by name: separated credentials, separated clusters, a declared pseudonym
namespace, an audit trail with a durable sink, schema preparation on its own
credential. sandbox, the default, must not hold real personal data and says
so on the banner, in the log and on GET /rest/status. The profile is
FerroEHR’s own posture. GDPR Art. 4(5) asks that the additional information be
“kept separately and … subject to technical and organisational measures”, not
that it sit on a separate server, so one cluster with separated schemas and
roles is a defensible reading; two clusters close the bridges no grant can,
the superuser, an instance-wide point-in-time recovery, a single compromise,
and the profile exists so that choice is made deliberately.
GDPR
Regulation (EU) 2016/679 places its duties on the controller and the processor. A CDR can only supply the technical measures those duties are met with. These are the articles a repository actually touches.
| What the article asks for | What FerroEHR ships | Tracker | What the deploying organisation must do |
|---|---|---|---|
| Art. 4(5) pseudonymisation: identifying data kept separately, under technical measures | Clinical and demographic data in two schemas under non-overlapping NOINHERIT roles, enforced by grants, by a boot-time self-check in both directions and by a check on every table; separated credentials and clusters are asserted by the production deployment profile. The patient-to-EHR cross-reference lives outside the CDR by default, in an IHE patient identity source asked over PIXm ([pixm]), which mints the pseudonym; with the opt-in subject_index = "local" it is the EHR’s own EHR_STATUS.subject. FerroEHR never resolves a pseudonym back to a person | shipped, #3153, #3158, #3226, #3380 | Run the production profile with the separations it asserts, run the identity source under its own controls, and hold any additional information the CDR never sees to the same standard |
| Art. 5(1)(f) integrity and confidentiality | TLS 1.3 with optional mutual authentication, authentication and authorization, per-version digest record.signing, a tamper-evident audit chain | shipped | Terminate TLS correctly, run the identity provider, hold the keys |
| Art. 5(1)(e) storage limitation: data kept in identifying form no longer than the purposes need | A retention register of the period per content category and jurisdiction with the citation it rests on, a per-EHR anchor, and a view of what has run out. The repository deletes no clinical content on a timer: an openEHR record is indelible, so the register produces a list | shipped, #3346 | Choose the periods, which follow from the law you run under and not from the software, and decide record by record what to do with the list |
| Art. 5(2) accountability: being able to demonstrate compliance | An audit trail of every access, retrievable over ITI-81, plus openEHR’s own contribution and audit chain on every write | shipped | Keep the records, define retention, be able to produce them |
| Art. 9 special categories of data | Object-level EHR_ACCESS settings and the access evaluator, RBAC, and the domain-separated database roles | shipped | Establish the Art. 9(2) condition and the national derogation that permits the processing |
| Art. 12(3) action on a rights request within one month, by electronic means where the request came electronically | Every right in the rows below is served by an API call, so the record is read, exported, corrected or deleted in the run that answers the request | shipped | Start the clock at receipt, verify the requester’s identity, and use the two-month extension only with the reasons 12(3) asks for |
| Art. 15(1) and 15(3) access, and a copy of the data undergoing processing | The full record over the REST API in canonical openEHR JSON or XML, and EHR Extract export for a whole record; the recipients 15(1)(c) asks about come from the per-patient trail search | shipped | Supply what the software cannot know: the purposes of 15(1)(a) and the storage period of 15(1)(d) are your configuration and your retention schedule. Authenticate the requester and build the patient-facing route |
| Art. 16 rectification, and completion by a supplementary statement | A correction commits a new version while the prior one stays in the append-only history, which is the supplementary statement the article allows for incomplete data | shipped | Decide what is inaccurate or incomplete, and reconcile the correction with the record-keeping duty your national law imposes |
| Art. 17(1) erasure, subject to the grounds in 17(3)(b) to (d) | DELETE {base}/admin/ehr/{ehr_id} (physical deletion) removes, in one transaction, the EHR and everything it owns over both storage tiers: compositions, EHR_STATUS, item tags, folder memberships, contributions, every historical version, the restriction and retention marks and its change events. The externalized multimedia blobs no surviving version references are deleted from the object store, and an erasure tombstone on the change-event stream tells each consumer to delete what it derived (Art. 19). What stays is the audit trail naming the ehr_id, because Art. 17(3)(b) withholds erasure where processing is necessary for compliance with a legal obligation and the access-logging periods are that obligation | shipped, #3347 | Decide whether a 17(3) ground refuses the request, a legal obligation, public health, or research under Art. 89(1), and record that decision. Backups, replicas and copies outside the CDR are reached by your own rotation, not by the call |
| Art. 18 restriction of processing, which Art. 4(3) defines as marking stored data to limit its future processing | A restriction register at two grains, a whole EHR or one versioned object in it: a marked object stays in storage and every path that would process it stops, the point read, the versioned read and the revision history with 403, AQL at every scope, the EHR Extract, the event stream and any write. The register keeps the request and stamps it lifted, so the sequence 18(3) turns on survives. On a write the restriction is the last gate: content validation answers 422 and the preconditions outside the commit transaction answer 409, because the mark is read inside that transaction so a concurrent lift is serialised with the write, so a refusal status names the gate that stopped the write rather than the state of the mark | shipped, #3324 | Record the 18(1) ground on the request, hold the restriction in the systems around the CDR, and tell the subject before you lift it (18(3)) |
| Art. 19 communicating a rectification, erasure or restriction to each recipient, and naming those recipients to the subject on request | Every read and export is an access record naming the agent, the patient, the action, the outcome and the time, so the recipient list is answerable from the trail | shipped | Send the communications. The trail records who received data; it notifies nobody. How far back the recipient list reaches is your retention: the regulation sets no retention period for an access log |
| Art. 20(1) and (2) portability in a structured, commonly used and machine-readable format, and direct transmission where technically feasible | Canonical openEHR JSON and XML, the simplified FLAT and STRUCTURED formats, and the EHR Extract, which another openEHR system imports directly | shipped | Check the trigger before answering: 20(1)(a) reaches processing based on consent or on a contract, and 20(3) excludes processing for a task carried out in the public interest, which is the basis much care runs on |
| Art. 21(1) objection, and 21(6) objection to research processing under Art. 89(1) | A research objection per EHR: while it stands, the record leaves every full-population query, every export and the event stream, the three surfaces a secondary-use consumer reads the repository through, while a query naming the ehr_id and a read for care are untouched. The public-interest override 21(6) admits is recorded beside it and says on whose authority | shipped, #3325 | Weigh the compelling legitimate grounds 21(1) asks for, record the outcome, and carry the objection into the systems outside the CDR |
| Art. 25 data protection by design and by default | Deny-by-default authorization, an EHR_ACCESS default that can be set to restricted, audit on by default. The two defaults that favour compatibility, the open per-EHR access default and the open audit fail mode, stop a production deployment booting: each is a named gap (open_ehr_access_default, audit_fails_open) that the deployment either closes or accepts by name in deployment.accepts, which is then stated on every boot and on /management/status | shipped, #3323 | Choose the restrictive settings, or record the decision to keep a compatibility default and carry it in deployment.accepts |
| Art. 28(3)(e) to (h) what a processor’s contract must let it do: assist with the rights, assist with Arts. 32 to 36, delete or return the data at the end of service, and make audit information available | For a vendor operating a deployment: the rights operations in the rows above for (e), the trail and the controls documented in this book for (f), EHR Extract export beside admin physical deletion for (g), and GET /ferroehr/rest/extensions/v1/admin/config with the trail as the evidence (h) asks for | shipped | Conclude the contract Art. 28(3) requires with whoever operates the deployment; no software supplies it. Cadasto B.V. is the manufacturer of each release: for a self-hosted deployment it processes no personal data on your behalf and is not your processor; where Cadasto B.V. hosts the deployment for you it is your processor, and the contract is with it (shared responsibility). Either way, the one service a deployment reaches by default is Cadasto B.V.’s collector for the usage report, which Cadasto B.V. receives as controller for its own purposes |
| Art. 30 records of processing activities, and 30(1)(f) the envisaged time limits for erasure of the different categories of data | The effective configuration as a redacted JSON tree at GET /ferroehr/rest/extensions/v1/admin/config, this book as a description of what the software does, and the retention register as the machine-readable answer to the time limits per category 30(1)(f) asks for | shipped, #3346 | Write and maintain the record itself; the software cannot know your purposes or recipients |
| Art. 32 security of processing | The controls listed in Security and the residual risk in the threat model | shipped | Assess whether they are appropriate to your risk, and supply everything below the application |
| Art. 33(3)(a) the categories and approximate number of subjects and of records a breach touched, and Art. 34(3)(a) the measures that remove the duty to tell patients | The trail records reads, writes and refusals per patient and per agent, so whose records an incident reached, and how many, is countable from it | shipped | Assess and notify inside the deadlines. 34(3)(a) lifts the duty to inform patients only where the protection measures “were applied to the personal data affected”, so check what was in fact protected: the application seals national identifiers in the demographic domain and nothing else, and encryption of clinical content at rest belongs to the database and the disk. The regulation’s text says nothing about encryption at rest, so the measure and its strength are your choice to make and to defend |
| Art. 35 data protection impact assessment | A DPIA page with the processing description, the data categories per schema, the roles, the retention including the Dutch access-log floor, a risk register and the shipped controls by issue, beside records of processing pre-filled with what the software does and a go-live checklist | shipped, #3161 | Run the DPIA; it is the controller’s, and no supplier document replaces it |
| Art. 89(1) research safeguards: where the purpose can be met by processing that no longer identifies anyone, it must be met that way | Cohort queries across the pseudonymisation boundary answer a research question as an aggregate, withheld when fewer distinct EHRs than the configured threshold match | shipped, #3159. Pseudonymisation for research happens in FerroBRIDGE, which loads the research database; the CDR gates what leaves with the restriction and objection marks and records the purpose and the data permit of every batch (Secondary use), #3379 | Decide whether the purpose can be met without identification and take that route where it can |
EDPB Guidelines 01/2025 on pseudonymisation
The EDPB guidelines ask for something more specific than “we pseudonymise”: a named pseudonymisation domain, a stated attacker, and additional information kept where that attacker cannot reach it.
| What the guidelines ask for | What FerroEHR ships | Tracker | What the deploying organisation must do |
|---|---|---|---|
| A pseudonymisation domain stated explicitly | The clinical and demographic domains are separate schemas with their own roles, and the server refuses to boot if a role reaches across | shipped, #3153 | State the domain for your deployment, including the parts outside FerroEHR |
| The additional information held separately from the pseudonymised data | The identities live in the party schema under their own NOINHERIT roles, revoked from the clinical domain and reached by no other pool, and are backed up under their own key and their own job; the clinical side holds only the subject pseudonym | shipped, #3153, #3157 | Hold any mapping outside the CDR to the same standard, and give the demographic backup the narrowest audience |
| A written attacker model, including the insider holding a credential | The threat model names actors, boundaries and the risk surviving each control | shipped | Extend it with the actors your environment adds: operators, backups, the network |
| Resolution of a pseudonym recorded and controlled | Every resolution of a party or a subject to its EHRs is a linkage-domain access record, refused when it cannot be recorded under fail_mode = "closed"; a cohort query names its cohort by a digest of its predicates and never by their values | shipped, #3155, #3235, #3159 | Restrict who may resolve, and review the trail |
EHDS
Regulation (EU) 2025/327 splits into chapters that reach a CDR differently. Chapter III is the one that speaks to an EHR system as a product, and its obligations apply from a date in the regulation’s own final provisions rather than today.
| Chapter | What FerroEHR ships | Tracker | What the deploying organisation must do |
|---|---|---|---|
| Chapter II, primary use, including the patient’s access to their data and to a record of who accessed it | An access trail of every read, write and refusal, searchable by patient and by agent, read for one patient through a subject-scoped grant, with an emergency mark on an access declared in the patient’s vital interests (Art. 11(5)), and the Art. 8 restriction of access by health professionals, under which restricted data reads as absent unless the configured emergency role declares an emergency, and the Art. 5 rules for information a person inserts: a commit under a patient/ token is marked PARTY_SELF and may not alter a professional’s version, and the Art. 3(3) delayed access, which holds newly registered data from the person until a professional releases it or the period ends. Shared responsibility maps each Chapter II right to what FerroEHR provides and what stays with you | shipped, #4350 for Art. 5, #4351 for Art. 3(3); the Art. 10 opt-out is planned, #4516 | Build the patient-facing access route on the subject-scoped grant and authenticate the person. Give the person’s access service patient/ scopes only, and clinicians’ apps user/ scopes. Record a restriction on the person’s instruction through the admin route, configure authz.rbac.emergency_access_role, and have callers declare an agreed emergency code when they override it |
| Art. 3(3), a Member State’s delay of the person’s access to their data until a health professional has explained it | Off by default, so the access of Art. 3(1) is immediate. With the access-delay register on, a new composition of a configured category reads as absent to a patient-context request until a professional releases it or the configured limit passes; professionals read it as before, and placing, releasing and expiry of a hold are access records (delayed access by the person) | shipped, #4351 | Turn it on only where your Member State’s rule provides for the delay, list the categories and set the period that rule names, and have a professional release each held result once it has been explained |
| Chapter III, EHR systems: a European interoperability software component and a European logging software component, with published technical documentation | The EHDS readiness page maps every Annex II requirement to a status with its evidence, the technical documentation page maps the Annex III elements to the documentation tree, and the access trail records the logging component’s elements (audit) | readiness shipped, #3168, #3169, #3170, #3171; the interoperability component is FerroBRIDGE’s, and the exchange format waits on implementing acts under Article 15(1). From FerroBRIDGE 0.0.16 the bridge records each access of its FHIR facade itself, naming the natural person FerroEHR’s record of the bridge’s read cannot (access through FerroBRIDGE) | Configure the deployment as the instructions for use say, and give FerroBRIDGE’s facade an Audit Record Repository when you run it. The conformity assessment and the EU declaration are Cadasto B.V.’s as manufacturer of each release; a self-hosted deployment of an unmodified release does not make you the manufacturer |
| Chapter IV, secondary use, including Art. 66(3) (data in pseudonymised format, the means to reverse it held only by the access body or a trusted third party) | The batch surface FerroBRIDGE loads the OMOP CDM from, with the restriction and objection marks taking an EHR out of every batch and the purpose and data permit on every access record; cohort queries across the pseudonymisation boundary with small-cell suppression. Pseudonymisation for research happens in FerroBRIDGE; the CDR gates the data | shipped, #3159, #3379 | Deal with the health data access body; a CDR is not a data-holder’s permit process. Have the secondary-use caller declare its purpose and permit |
National law
Everything above this line applies to every EU deployment. Everything below it is one country’s law on top of it, and a deployment reads only its own section plus the EU layer.
Three jurisdictions are filled in today: the Netherlands, Germany and
Switzerland, each vendored under docs/law/ and read against the text. The
product side of the split is plural too: the write-path
identifier scanner ships a named rule per
national identifier — Finland, the United Kingdom, the Netherlands, Norway and
Sweden — each transcribing the checksum its own issuing register publishes,
and a deployment selects the ones its content can carry. Denmark and Belgium
are named there too, with the reason each is deliberately absent.
Adding a jurisdiction takes three things, and none of them is a change to
how the scanner works: the national acts that sit on top of the GDPR, as a
section in the shape of the Dutch one below (provision, what the product
ships, tracker status, what the organisation must do); the national security
and logging standards, in the shape of the NEN section; and, where the country
issues a personal identifier with a published algorithm, a rule in
app/ferroehr/src/privacy/detect.rs citing the register that defines it. Open
a regulation request
with the official source and the provisions that reach a repository, and the
project vendors the text and records a status per provision, the way the acts
below are handled. A checksum transcribed from a secondary source is refused,
because a rule that guesses tells an operator their data was scanned when it
was not.
The Netherlands: UAVG and Wabvpz
Two Dutch acts sit on top of the GDPR for a care provider. The UAVG is the national implementation act; the Wabvpz governs the burgerservicenummer in care and the patient’s electronic access to their record.
| Provision | What FerroEHR ships | Tracker | What the deploying organisation must do |
|---|---|---|---|
| UAVG Art. 30, exceptions for health data | Access control at the record and the attribute level, and an audit trail of who used it | shipped | Establish that your processing falls inside the exception, per role and per purpose |
| UAVG Art. 46, processing a national identification number | A national identifier is sealed at rest in the demographic domain under authenticated encryption with the instance’s identifier-protection key, with a keyed digest that keeps a value live for one party at a time; the server offers no lookup from an identifier to its party, and the SECURITY DEFINER resolve function is executable by the demographic role alone | shipped, #3155 | Hold the statutory authorisation before a BSN enters the store, and restrict who holds the demographic role |
| Wabvpz Art. 4 to 9, use and verification of the BSN by care providers | Nothing specific: FerroEHR performs no BSN verification and consults no index | not planned | Verify identity and the BSN in your own systems before data reaches the CDR |
| Wabvpz Art. 15d, electronic access and copy for the patient | The full record over the openEHR REST API, and EHR Extract export for a whole record | shipped | Build the patient-facing route and authenticate the patient |
| Wabvpz Art. 15e, a record of who made data available and who consulted it | The ATNA trail records reads, writes and refusals with the agent, the patient, the action and the outcome, and answers a per-patient search | shipped | Turn the trail into something a patient can read, and set retention |
The Netherlands: NEN 7510, NEN 7512 and NEN 7513
The NEN 7510 family governs information security in Dutch healthcare. NEN 7510 is a management-system standard, which no product can be certified against. NEN 7512 governs what exchanging parties promise each other. NEN 7513 is the one that states requirements a piece of software meets directly.
| Standard | What FerroEHR ships | Tracker | What the deploying organisation must do |
|---|---|---|---|
| NEN 7510-1 and 7510-2, the management system and its controls | Technical controls an ISMS can point at, documented per control with their residual risk | shipped | Run the ISMS and hold the certification; a product cannot be certified against a management-system standard |
| NEN 7512, the trust basis for data exchange | Mutually authenticated TLS (IHE ITI-19), OAuth2 and OIDC with an enterprise identity provider, signed and verifiable releases | shipped | Agree the trust basis with each counterparty and operate the certificate estate |
| NEN 7513, logging actions on electronic patient records | An IHE ATNA trail that records every operation including refusals, in FHIR AuditEvent and DICOM PS3.15 form, hash-chained in the database and retrievable per patient | shipped | Map the recorded fields onto the standard’s own list, set retention, and review the trail |
Germany: BDSG, SGB V, GDNG and § 203 StGB
Four federal acts sit on top of the GDPR for a German care provider. The BDSG carries the national health-data ground and the research derogation; SGB V §§ 341 to 355 define the elektronische Patientenakte (ePA) and §§ 360 to 363 the telematics infrastructure, as rewritten by the Digital-Gesetz; the GDNG governs secondary use; and § 203 StGB is the professional secrecy every access by a non-clinician is measured against. State law (the Landeskrankenhausgesetze and the state data protection acts) is not covered here; a hospital reads its own state’s law beside this section.
FerroEHR is not an ePA, holds no telematics-infrastructure component, and performs no electronic health professional card (HBA) or institution card (SMC-B) authentication. Where a provision below binds the ePA operator, the health insurer or gematik, the row says so.
| Provision | What FerroEHR ships | Tracker | What the deploying organisation must do |
|---|---|---|---|
| BDSG § 22 Abs. 1 Nr. 1 lit. b and Abs. 2, the health-care ground for special categories and the measures named for it: traceability of who entered, changed or removed data, access restriction inside the controller and its processors, pseudonymisation, encryption | An append-only version history where every write commits a contribution and its audit in one transaction, an access trail of every read, write and refusal, deny-by-default authorization with read-only roles, the three-schema pseudonymisation boundary, TLS 1.3 and national identifiers sealed at rest | shipped, #3153, #3155 | Establish that the processing is by, or under the responsibility of, persons bound by professional secrecy, as lit. b requires; the Abs. 2 list is a menu of measures the law names, and the duty is to choose appropriate and specific ones |
| BDSG § 27 Abs. 3, research: identifying characteristics stored separately and rejoined only as the research purpose requires, anonymised as soon as possible | Clinical and demographic data in separate schemas under separate roles; cohort queries that cross the boundary on identifiers only, with small-cell suppression | shipped, #3158, #3159; research pseudonyms are made in FerroBRIDGE, which loads the research database (Secondary use) | Decide when the research purpose no longer needs the link and anonymise; hold the balancing test Abs. 1 asks for |
| BDSG § 35 Abs. 2 and 3, restriction of processing in place of erasure where erasure would harm the subject or a retention period bars it | The same restriction register the GDPR Art. 18 row above describes, at whole-EHR or single-object grain, with national as the ground a member-state rule like this one is recorded under | shipped, #3324 | Decide per request whether Art. 17 or the restriction applies, record which of Abs. 2 or Abs. 3 it rests on, and notify the subject of a restriction |
| SGB V § 339 Abs. 3 and 5, § 352, § 361, access to the ePA and to prescriptions only with a professional credential, a verifiable log of who accessed which data and who authorised a delegated access, and a closed per-role matrix of read and write scopes | Role- and attribute-based authorization over the roles the identity provider asserts, and an access trail naming the agent, its roles, the patient, the action and the outcome, refusals included | shipped | Bind the identity provider to the HBA and SMC-B credentials; these sections bind access to the ePA itself, which the CDR is not, and the CDR encodes the § 352 matrix only as far as the roles reach it |
| SGB V §§ 346 to 348, the duty to write treatment data into the patient’s ePA, conditioned on the provider’s system holding it in semantically and syntactically interoperable form, with discharge letters, laboratory and imaging reports named outright | Every record is structured against an openEHR template and served over the REST API and as an EHR Extract, so a hospital’s data meets the condition that triggers the duty | shipped | Run the transport into the ePA: the connector, the telematics infrastructure and the information objects § 355 prescribes are outside the CDR |
| SGB V § 347 Abs. 1, 4 and 6, § 348 Abs. 3 to 6, § 353 Abs. 3 and 5, every objection, consent and refusal ground recorded verifiably in the treatment documentation; genetic results only by the responsible physician on explicit consent | A consent, objection or refusal recorded as a composition is versioned, attributed and audited like every other entry; FerroEHR ships no dedicated consent register and no per-category export gate | shipped, as versioned content | Model the consent and objection records in your templates, and gate the ePA transfer on them in the transport |
| SGB V § 309, the telematics-infrastructure access log: attempted accesses as well as successful ones, who accessed which data, three years’ retention and deletion on expiry, person-identifiable from 2030 | The trail records attempts and refusals with the agent and the object touched; [audit.store] retention and the retention reaper implement the period, and [audit.store] sgb_v_309_controller turns Abs. 3 into a boot-checked ceiling that refuses any horizon above the three-year period, keep-forever included | shipped, #3346 | This section binds the controllers of TI applications under § 307; a CDR outside the TI is not one. Set the declaration only if you are one, set the retention you owe, and review the trail |
| SGB V § 355, interoperability of ePA content: international standards, the BfArM terminologies, a versioned terminology server | openEHR archetypes and templates as the content model, terminology bindings resolved at commit time against any FHIR R4B terminology server through [terminology], which is the interface gematik’s terminology server exposes | shipped | Point [terminology] url at the server gematik runs and adopt the information objects the KBV publishes; the text names no serialization, and neither does this page |
| SGB V § 360 Abs. 16, electronic prescription transport outside the telematics infrastructure is prohibited | Nothing, and nothing planned: the CDR carries no prescription transport | not planned | Run prescriptions through the TI |
| GDNG § 6, a provider’s own patient data reprocessed for quality assurance, research and statistics: pseudonymised, anonymised as soon as possible, under a rights-and-roles concept with logging, deleted after thirty years at the latest, and disclosable to the subject by kind, scope and concrete purpose | Per-domain roles that keep a research credential off the identifying data, cohort queries named by a digest of their predicates and withheld under a small-cell threshold, an access record per query carrying the deployment’s declared purpose and legal_basis, and the retention register as where the thirty-year limit for the repository’s own copies is written down and read back | shipped, #3159, #3346; research pseudonyms are made in FerroBRIDGE, which loads the research database (Secondary use) | Write the rights-and-roles concept, publish the purposes, run the thirty-year clock against the register, and answer subjects’ requests from the trail |
| SGB V § 290, the Krankenversichertennummer every insured person’s record carries | The identifier scanner’s de-kvnr rule refuses the number’s unchangeable part in clinical content, transcribed from the GKV-Spitzenverband’s Richtlinie; no access-log retention floor is registered for Germany, because the BDSG sets none for a hospital and SGB V § 309 binds the telematics-infrastructure controllers | shipped, #3318 | Keep the number out of the clinical record as the scanner asks, and hold it sealed in the demographic domain |
| § 203 StGB Abs. 3 and 4, disclosure to persons who keep the systems running is lawful only as far as their work requires it, and the professional is liable for not binding them to secrecy | Operations reach the CDR through separate surfaces (management, admin, clinical), every admin read of clinical content is an access record naming the caller, the database roles hold one domain each, and secrets are mounted rather than baked | shipped | Bind every operator and subcontractor to secrecy in writing, and give support a route that needs no standing read of clinical content |
Switzerland: DSG, DSV, EPDG and its ordinances
Switzerland is not an EU member state, so a Swiss deployment processes under the Datenschutzgesetz (DSG) and its ordinance, the DSV, in force since 1 September 2023, and the GDPR does not apply to it. The EPDG with the EPDV and the EPDV-EDI govern the elektronisches Patientendossier (EPD), a retrieval layer run by certified communities over records that stay where they are. Cantonal health and data protection law is not covered here. The German text is the authentic one; Fedlex’s English translations of the DSG and DSV are vendored beside it and bind nobody.
FerroEHR is not an EPD community and holds no certification. Where a provision binds a community or the identity issuers, the row says so.
| Provision | What FerroEHR ships | Tracker | What the deploying organisation must do |
|---|---|---|---|
| DSG Art. 7, data protection by design and by default: processing arranged from the planning stage so the Art. 6 principles hold, and defaults that limit processing to the minimum | Deny-by-default authorization, tenancy that fails closed, audit on by default, and a production deployment profile that refuses to start while a separation is missing | shipped | Choose the restrictive settings. Two defaults favour compatibility instead: the per-EHR access default is open, and the audit fail mode is open |
| DSG Art. 8 and DSV Art. 2 and 3, the minimum security measures: need-to-know access control, storage and transport control, restoration, malfunction reporting, system security, entry control, disclosure control, breach detection | Role- and attribute-based authorization and per-EHR EHR_ACCESS; one database role per domain; TLS 1.3 with optional mutual authentication; health and readiness endpoints; a locked, advisory-gated dependency set and signed releases; every write attributed and versioned; an access trail naming who read what, refusals included | shipped | Run the backup and restore path, patch on the release cadence, and detect breaches from the trail and the metrics; the DSV names the controls, the deployment supplies everything below the application |
| DSV Art. 4 Abs. 1, 4 and 5, logging for large-scale processing of sensitive data: storing, changing, disclosing, deleting, destroying and reading, each entry with the actor, the kind, the date, the time and the recipient, kept at least one year separately from the processing system and readable only by the oversight roles | The trail records every operation including reads and refusals with the agent, the patient, the action, the outcome and the time, in a dedicated audit schema retrievable by an admin caller only, with forwarding sinks (syslog, IHE ITI-20) that put a copy outside the system; [audit.store] retention sets the period. The separation Abs. 5 asks for is the deployment’s DSN choice, and the server reports on it: the audit pool’s own cluster is read at boot like every other domain’s, so an audit database sharing a cluster with a pseudonymisation domain is a shared_cluster gap on /management/status rather than an invisible co-location | shipped for the trail and the posture reading; the separation itself is the deployment’s, #3398 | Forward the trail to a repository outside the CDR, set the retention at a year or more, and restrict who may read it; the one-year floor is enforced at boot once a Swiss identifier rule is active, #3319 |
| DSG Art. 12 and DSV Art. 24, the register of processing activities, from which large-scale processing of sensitive data has no small-organisation exemption | The effective configuration as a redacted JSON tree at GET /ferroehr/rest/extensions/v1/admin/config, records of processing pre-filled with what the software does, and the retention and security-measure inputs Art. 12 Abs. 2 lit. e and f ask for | shipped | Write and maintain the register; the software cannot know your purposes or recipients |
| DSG Art. 22 Abs. 2 lit. a, a data protection impact assessment before large-scale processing of sensitive data | The DPIA page with the processing description, the data categories per schema, the roles, the retention, a risk register and the shipped controls by issue | shipped, #3161 | Run the assessment; it is the controller’s. Art. 22 Abs. 5 lets a private controller skip it for a system certified under Art. 13, and FerroEHR holds no such certification |
| DSG Art. 24, notifying the EDÖB of a breach as soon as possible, with its kind, consequences and measures | The evidence a notification is written from: the trail with refusals attributed to the caller, the hash chain that shows tampering, the boot-time domain self-check | shipped | Detect, assess and notify; nothing in the software sends a notification |
| DSG Art. 25 Abs. 2, 3 and 7, DSV Art. 16 and 18, the right of access within 30 days: the data themselves, the purpose, the retention, the provenance and the recipients, in an understandable form, health data deliverable through a designated health professional | The full record over the openEHR REST API and as an EHR Extract, a per-patient search of the trail that answers who received the data, and the retention register, which is where the Abs. 2 lit. d answer, the retention period or the criteria that fix it, is read from rather than recalled | shipped, #3346 | Identify the requester (DSV Art. 16 Abs. 5), render the answer in an understandable form, route it to the patient or the designated professional, and meet the 30 days |
| DSG Art. 28 and DSV Art. 21, data portability in a common electronic format that another controller can reuse | Canonical openEHR JSON and XML, the simplified FLAT and STRUCTURED formats, and the EHR Extract, all published open formats | shipped | Decide which data are subject-provided or observed and which are derived (DSV Art. 20 Abs. 2), and export accordingly |
| DSG Art. 6 Abs. 4 and Art. 31 Abs. 2 lit. e, destruction or anonymisation once the purpose lapses, and research on the condition that data are anonymised as soon as the purpose allows, with measures against identifiability meanwhile | Clinical and demographic data in separate schemas under separate roles, cohort queries with small-cell suppression, admin deletion and archival of a record, and the retention register that says when a purpose has lapsed and lists what is due | shipped, #3158, #3159, #3346; research pseudonyms are made in FerroBRIDGE, which loads the research database (Secondary use) | Set the retention the cantonal health law requires, decide when anonymisation is possible, and hold the research ground |
| EPDG Art. 9 and 10, EPDV Art. 1 to 4, 10 and 12, EPDV-EDI Anhang 5, the EPD: three confidentiality levels and grantable access rights, emergency access with notification of the patient, every processing logged and the logs kept ten years, EPD data stored separately and encrypted, data stores in Switzerland, and the IHE profiles a community speaks (ATNA with Record Audit Event ITI-20 and Authenticate Node ITI-19, CH:ATC with Retrieve ATNA Audit Event ITI-81, IUA, XUA, XDS, MHD) | What a community integration consumes: IHE ATNA audit events over ITI-20 with ITI-19 mutual TLS and ITI-81 retrieval, the record in published formats, a self-hosted deployment with no dependency outside the operator’s control, and the retention register for Art. 10’s twenty-year destruction, with the per-object hold Abs. 2 lit. b asks for | shipped, #3346; an access declared with an emergency purpose is marked in the access log, but FerroEHR lifts no restriction for it and notifies no one; it encrypts national identifiers only, so encryption at rest is the database’s and the disk’s | These provisions bind the certified community, which the CDR is not. Feed the EPD through a community’s access point, place the data stores in Switzerland, and carry the confidentiality level on each document you contribute |
| EPDV Art. 5 and 7, EPDV-EDI Anhang 1, AHVV Art. 133, the patient identification number (eighteen digits with a published check digit, entered manually only under a check-digit control, never a source of inference about the patient) and the AHV number it is issued from | The identifier scanner’s ch-epd-pid and ch-ahvn13 rules refuse either number in clinical content, transcribed from the ordinance’s annex and the BSV’s Wegleitung; the access-log retention floor of DSV Art. 4 Abs. 5 is enforced once a Swiss rule is active | shipped, #3319 | Treat the number as opaque, and keep the AHV number out of clinical content |
Where to go next
- Control matrix: the machine-generated status of every declared control, straight from the tracker.
- Shared responsibility: what a FerroEHR deployment sends out by default, and where FerroEHR documents its side of each obligation; the tables, obligation by obligation, are in the FerroHEALTH book.
- Complaints, incidents and vulnerabilities: how to report about FerroEHR, FerroEHR’s registers, and what happens when a release is withdrawn.
- Intended purpose: FerroEHR’s part of the manufacturer’s statement: its essential functions, the data it is designed to process, the environment it assumes and the misuse it foresees.
- Cyber Resilience Act: FerroEHR’s CRA documents and product facts, and the class I question.
- CRA risk assessment: the cybersecurity risks, and how each point of CRA Annex I applies, with its evidence and its open work.
- Hazard log: the patient-safety hazards of the access log, each with its control and the test that shows it.
- Claims review: every public claim read against EHDS Art. 28, release by release.
- Information sheet and instructions for use: what accompanies each release: the manufacturer, the version, the data categories, the standards, an EU deployment’s configuration, maintenance and the known limitations. They are the EHR system’s, FerroEHR with FerroBRIDGE, and live in the FerroHEALTH book; each release attaches the revision it pins with its own versions appended.
- Security: how each control is configured.
- Threat model: what survives each control.
- Audit trail: what is recorded, in which formats, and how to read it back.
- Data protection impact assessment: the technical description, the risk register, and the shipped controls by issue number.
- Records of processing: an Art. 30 template pre-filled with what the software does.
- Go-live checklist: what to verify before a deployment holds real patient data.
Shared responsibility
Which obligation under EU and national health-data law the software can carry, and which stays with the organisation that deploys it, is drawn once for the EHR system FerroEHR and FerroBRIDGE form together. The tables, one per law (the GDPR, the EHDS, the CRA, and the national sections for the Netherlands, Germany and Switzerland), and the account of when Cadasto B.V. is also your processor, are published in the FerroHEALTH book: The EHDS EHR system: shared responsibility.
This page keeps what is particular to a FerroEHR deployment.
What a FerroEHR deployment sends out by default
The one thing a FerroEHR deployment sends out by default is the usage report: a random instance id, the version, the licence grant type and coarse performance figures, with no patient data. Cadasto B.V. receives it as controller for its own purposes, and its collector also stores the IP address each report comes from. The usage report page says how to turn it off.
EHDS Chapter II, right by right
EHDS Annex II point 1.3 asks that an EHR system “be designed and developed in such a way that its interoperability, safety and security features uphold the rights of natural persons, in line with the intended purpose of the EHR system, as set out in Chapter II”. A person exercises most of those rights through the electronic health data access services each Member State establishes (Art. 4(1)) and the health professional access services (Art. 12). FerroEHR is the repository those services read and write, so for each provision the table names three things: the part FerroEHR provides, with the route or setting that provides it; what you, the deploying organisation, or the Member State serve or decide; and what a clinical data repository does not do, with the reason.
A row says “shipped” where the tracker issue that delivered the part is closed and “planned” where it is open. Nothing in the table says that a deployment upholds a right: that depends on the access services around the repository and on how you configure it.
| Provision | What FerroEHR provides | What you or the Member State serve or decide | What a CDR does not do, and why |
|---|---|---|---|
| EHDS Art. 3(1), access to one’s own priority-category data “immediately after the personal electronic health data have been registered”, free of charge, readable and consolidated | A committed version is readable at once over the openEHR REST API and AQL; nothing stands between the commit and the read but the authorization checks. A token with a SMART patient/ scope or the patient claim ([auth] patient_claim) is held to one EHR. The audit category register tells which templates hold which priority category | Run, or connect the repository to, the Member State’s access service: identify and authenticate the person, issue their token with patient/ scopes, and fill the category map for your templates | The readable, consolidated presentation and the “free of charge” are the access service’s (Art. 4(1)). A CDR serves structured data to callers and has no person-facing interface |
| EHDS Art. 3(2), a downloadable electronic copy in the European electronic health record exchange format | The whole record as an openEHR EXTRACT, GET /ferroehr/rest/extensions/v1/message/export/{ehr_id}, or a selection with POST …/message/export (exporting an EHR) | Offer the download in the access service, and run the conversion to the exchange format | FerroEHR writes openEHR, never the exchange format: the European interoperability software component of the FerroHEALTH EHR system is FerroBRIDGE’s, and the format’s specifications come from the implementing acts under Art. 15(1) |
| EHDS Art. 3(3), a Member State’s delay of the person’s access “until a health professional is able to properly communicate and explain” it | The delayed access under the access-delay register, off by default: a new composition in a listed category is held from any request that may be the person’s for at most the access-delay register’s max_delay, the treating professional releases it with POST /ferroehr/rest/extensions/v1/ehr/{ehr_id}/versioned_composition/{versioned_object_uid}/access-delay/release, and every hold ends by itself when its period passes. The person’s subject-scoped audit read leaves out the records about a held composition until then. Shipped, #4351 | Turn the section on only where your Member State’s law provides the delay, list the categories and the period that law sets, and have the professional release the data once explained. The hold does not filter the audit feeds or the change-event stream, so a notification you build for the person on either must hold back what is held | Which information “can have a significant impact” on a person, and how long a delay may last, is the Member State’s rule under GDPR Art. 23; the conversation that explains the information is the professional’s |
| EHDS Art. 4(2), access by a person the natural person authorises, or by a legal representative, through a proxy service | A token in a patient context reaches that one EHR whoever holds it; a COMPOSITION a representative inserts names them as composer (PARTY_RELATED, see the Art. 5 row); every access record names the authenticated caller and the patient (the logging elements) | Run the proxy service, or connect to the Member State’s: check the authorisation, its scope and its duration before you issue a token in the person’s context | The register of who may act for whom, and the rules on guardians, are the Member State’s proxy service (Art. 4(2) to (4)); the repository sees a token, never the authorisation behind it |
| EHDS Art. 5, inserting information in one’s own EHR, “clearly distinguishable”, without being able to “directly alter” what health professionals inserted | Information a person inserts: every version a patient/-only token commits records PARTY_SELF as committer, written by the server whatever the request names; the contribution list flags it inserted_by_person; an update or deletion by the person of a version anyone else committed is refused with 403. Shipped, #4350 | Give the person’s access service patient/ scopes only and clinicians’ applications user/ scopes, and decide which templates the person may write | Showing the person’s entries as theirs to a reader is the presenting application’s; the marker it reads is on every version |
| EHDS Art. 6, requesting rectification online under GDPR Art. 16 | A correction is a new version: the prior version stays in the versioned object’s revision history, with the committer and the server’s commit time on each (composition version history) | Take the online request in the access service, verify the accuracy with a health professional where appropriate, and commit the correction under a professional’s token. Under the Art. 5 rule the person cannot change a professional’s version themselves | Receiving the request and deciding it are the controller’s (GDPR Art. 16); the repository holds the outcome |
| EHDS Art. 7, transmission to another provider “without hindrance from the healthcare provider or from the manufacturers”, across borders in the exchange format, and one-way to a social security recipient | The REST API, AQL and the EXTRACT export, whose routes are not admin-gated, so any authorized caller can take the whole record or a part of it | Transmit the data to the recipient the person names, one-way for a social security recipient (Art. 7(3)), through the exchange format where Art. 7(2) asks for it | Cross-border transmission runs through the infrastructure of Art. 23 (MyHealth@EU and the national contact points), which no CDR is part of; the exchange format is FerroBRIDGE’s, as in the Art. 3(2) row |
| EHDS Art. 8 with Art. 11(5), restricting professionals’ access, invisible to providers, with access “where necessary in order to protect the vital interests of the data subject”, logged | The restriction of access a restriction directive of the EHR’s own EHR_ACCESS, for a whole EHR or named versioned objects, committed and lifted on the person’s instruction with POST /ferroehr/rest/extensions/v1/admin/ehr-access: restricted data reads as absent on every professional route, and no status, header or count says a restriction exists. The role authz.rbac.emergency_access_role declaring one of [audit] emergency_purpose_codes overrides it, and the access record carries the emergency mark | Record the restriction on the person’s instruction, tell the person that it may affect their care (Art. 8, second paragraph), configure the emergency role and codes, and apply your Member State’s rules and safeguards | The grain stops at the versioned object, as the restriction section explains; the rules and safeguards of the mechanism are the Member State’s (Art. 8, fourth paragraph) |
| EHDS Art. 9, information on every access, including through automatic notifications, available “for at least three years from each date of access” | An access record of every read, write and refusal with the elements Art. 9(2)(a) to (c) name; a subject-scoped ITI-81 read for one patient under a read_subject_audit grant in the CDR, which a patient portal can hold without an admin credential; the emergency mark of Art. 11(5); and a boot-time retention floor of three years for every Member State the identifier-scan rules name | Present the trail to the person in the access service, send the automatic notifications, keep the retention at three years or more, and apply any exception your Member State makes under Art. 9(3) | Notifying the person is the access service’s (Art. 9(2)); the repository has no channel to the person. A portal built on the subject-scoped read gets the Art. 3(3) filter, while one built on the feeds does not |
| EHDS Art. 10, a reversible opt-out from access through the access services of Arts. 4 and 12, where a Member State’s law provides one, with access to protect vital interests | The opt-out mark on a whole EHR, an opt_out directive of the EHR’s own EHR_ACCESS committed and reversed with POST /ferroehr/rest/extensions/v1/admin/ehr-access, kept with its history as EHR_ACCESS versions: a caller holding an access_service grant in the CDR reads the EHR as absent at every route, query and export, and every other caller, your own care included, reads it as before. An access-service caller declaring one of [audit] emergency_purpose_codes and not acting for the person overrides it, marked and recorded. Recording, reversing and the override are access records. Off by default. Shipped, #4516 | Allow access_service in [authz.grants] allowed and grant it to your access services, record and reverse the opt-out on the person’s instruction, configure the emergency codes, and apply your Member State’s law and its safeguards (Art. 10(2)); where the Member State enforces the opt-out in its own services, leave the mark unused | Whether the right exists at all, and its rules and safeguards, are the Member State’s (Art. 10(1) and (2)) |
| EHDS Art. 11(1) and (3), professionals’ access to the data of persons under their treatment, under the Member State’s rules on the categories each category of professional may reach | Per-EHR EHR_ACCESS and its access directives, which the access evaluator decides over the caller’s care relationships, clearances and purpose and the data’s category and origin, and role-based access | Write the access policy and the directives that carry your Member State’s rules, and record the care relationships they turn on | The rules themselves are the Member State’s (Art. 11(3)); cross-border access (Art. 11(2) and (4)) runs through the Art. 23 infrastructure |
| EHDS Art. 12, health professional access services open only to professionals holding recognised electronic identification means | [authz.assurance] refuses patient data below a minimum eIDAS level, and [authz.professional] refuses a client token that names no natural person | Run the identity provider that issues the recognised means, map its levels, and set the minimum | The professional access service and its “user-friendly” presentation are the Member State’s and the clinical application’s |
| EHDS Art. 13(4), second subparagraph: a registration or update identifies the professional, the provider and the time | Every version carries the server’s time_committed, the system_id, and the committer the caller names; the access record of the write names the authenticated person, with [authz.professional] the professional behind a client, and the organisation where the token carries it. The server checks the committer where it can: one that names another login of the caller’s token issuer or of the server, or a PARTY_SELF from anyone but the person, is refused with 403. Shipped, #4520 | Have your clinical applications name the professional as committer with the login the token carries, since a name only or another authority’s identifier cannot be compared with the login and is stored as sent; register the priority categories (Art. 13(1)) under the person’s identification data in the Member State of affiliation (Art. 13(3)) | The duty to register, and the data quality requirements Art. 13(4) leaves to implementing acts, rest on the healthcare provider and the Commission |
Where FerroEHR documents its side
The middle column of each table in the FerroHEALTH book, what the software provides, points at FerroEHR’s own pages:
- Compliance overview: the legal sources, and what FerroEHR ships, act by act and country by country, with the tracker issue for each control.
- Control matrix: the live status of every declared control, generated from the tracker.
- Security and the threat model: how each control is configured, and the risk that survives it.
- Audit trail: what the access log records and how to read it back.
- Retention, restriction and objection: the retention register, the restriction of processing and the research objection.
- Data protection impact assessment, records of processing and the go-live checklist: the companion guidance for the controller’s own documents.
- Intended purpose: the security environment FerroEHR assumes the deployment provides.
None of these pages tells you whether your deployment satisfies an obligation. That depends on your legal basis, your organisation, your infrastructure and your operating practice, none of which a supplier can see.
The delay of the person’s access (EHDS Art. 3(3))
Art. 3(3) lets a Member State delay a person’s access to their newly registered data until a health professional has explained it. The software part is FerroEHR’s: the hold, the release by a professional, the limit that ends every hold, and the access record of each. The rule is yours to carry: whether your Member State provides for the delay at all, which categories of data it covers, how long a hold may last, and which professional releases a result and when. FerroEHR ships the delay off; see delayed access by the person.
Retention, restriction and objection
Three marks sit beside the clinical content, and none of them is an openEHR concept. The specifications say what a repository must keep and how versions relate to each other; they say nothing about a period after which data should go, about limiting the processing of a record that stays, or about a patient who does not want their data used for research. The law says all three, so FerroEHR carries them as its own extension and this page is where they are written down.
Nothing here deletes anything. A record in an openEHR repository is indelible by design — a deletion commits a new version whose content is removed, and the history stays — so a retention period in FerroEHR produces a list, and acting on that list is the controller’s decision, taken record by record and carried out through physical deletion.
The retention register
Two tables and a view in the clinical domain, all driven through the admin API.
retention_policy is the register: one row per content category per
jurisdiction, carrying the period, what the period is measured from, and the
legal citation the period rests on.
| Column | Meaning |
|---|---|
kind | The content category: COMPOSITION, EHR_STATUS, FOLDER, or EHR for the whole record |
category | Optional: the EHDS category the period is keyed on, named as the audit category register names it: a priority category by its code (Patient-Summaries, Electronic-Prescriptions, Electronic-Dispensations, Medical-Imaging, Laboratory-Reports, Discharge-Reports) or as <system>|<code>, a declared national category as its <system>|<code>, or none; stored as the <system>|<code> token; empty keys the period on every object of the kind |
origin | Optional: the origin the period is keyed on, the id a data_origin grant in force names; empty keys the period on every origin |
jurisdiction | ISO 3166-1 alpha-2, the same key the identifier scanner rules use |
period | How long content of that category is kept |
anchor | What the period is measured from: last_commit, death, or majority |
source | The citation the period comes from, quoted as the act spells it |
retention_anchor is the per-EHR half: the jurisdiction whose periods apply,
the anchor instant once the deployment knows it, and any hold that suspends
disposal for the whole record with the reason it was placed.
retention_due joins the two and lists what has run out. Each row names the
EHR, the kind, the priority category and the origin where the period is keyed
on one, the citation, when the period expired, and two counts: the objects that are due,
and the objects exempted by a per-object hold.
Ship the register empty and declare the periods your organisation is subject to. The periods are not the software’s to choose — they follow from the law the deployment runs under, and two of the provisions in the compliance overview ask for exactly this register: GDPR Art. 30(1)(f) wants the envisaged time limits for erasure per category of data in the record of processing activities, and Swiss DSG Art. 25 Abs. 2 lit. d gives the subject a right to be told the retention period or the criteria that fix it.
Declaring a period
PUT /ferroehr/rest/extensions/v1/admin/retention/policy
Content-Type: application/json
{
"kind": "EHR",
"jurisdiction": "CH",
"period": "20 years",
"anchor": "last_commit",
"source": "EPDV Art. 10 Abs. 1 lit. d"
}
204 on success, replacing any earlier period for that kind, category,
origin and jurisdiction. An unknown kind or category, an unregistered origin,
an unknown anchor rule or a
non-positive period is 400. GET /ferroehr/rest/extensions/v1/admin/retention/policy reads the
whole register back, which is what an access answer and an audit both cite.
Keying a period on a priority category
EHDS Annex II 3.4 asks the storing components to support retention periods
“that take into account the origins and categories of electronic health data”.
Add "category": "Laboratory-Reports" to the body above and the period covers only
the objects your audit category register
map places in that category. The server mirrors the map into the clinical
domain at every boot, so the due list reads the map in force. An object’s
category comes from its latest version that carries content: the template id
first, then the root archetype id; every kind other than COMPOSITION reads as
none. An object the map cannot classify is listed under the longest period
configured for its kind, so a missing map entry can only keep content longer. A
category row with no object is left out of the due list, and a period without a
category lists every object of its kind.
Keying a period on an origin
Every version records its origins at commit: each FEEDER_AUDIT
originating-system id the body carries (RM common, FEEDER_AUDIT_DETAILS), or,
for a body that carries none, the origin of the caller that committed it. The
ids a sending system writes are free text, so the origins your deployment
recognises are policy in the CDR: each is the origin element of a
data_origin grant in force, on the AGENT of the system the data come from
(Operational policy). An
administrator writes the grant through the Demographic API, and it takes
effect on the next request.
A body without a FEEDER_AUDIT committed by the holder of the grant naming
lab.example, such as a lab gateway’s client, is then stamped lab.example;
a direct commit by any other caller keeps this server’s system_id. Add "origin": "lab.example" to a period and it covers only the
objects whose latest version carrying content came from that origin. A period
names only an id a grant in force names, so a misspelt origin is refused with 400
instead of keying a period that reaches nothing. A period without an origin
lists every object of its kind, and an origin row with no object is left out of
the due list. Ids compare exactly. Origin and category combine: a period keyed
on both lists the objects of that category from that origin.
Anchoring an EHR and holding it
PUT /ferroehr/rest/extensions/v1/admin/retention/anchor
Content-Type: application/json
{
"ehr_id": "7d44b88c-4199-4bad-97dc-d78268e01398",
"jurisdiction": "CH",
"anchored_at": "2026-01-31T00:00:00Z"
}
Leave anchored_at out until the anchor event is known; nothing is due without
it. Add hold_at and hold_ground together to suspend disposal for the whole
record: a hold with no stated reason is refused with 400, because a hold
nobody can account for is not a record of anything.
A hold at object grain is a separate route, and it is the shape Swiss EPDV Art. 10 Abs. 2 lit. b asks for, where the patient may ask that named data be exempted from the destruction the same article otherwise requires:
POST /ferroehr/rest/extensions/v1/admin/retention/hold
Content-Type: application/json
{ "vo_id": "df58b2ee-30bd-4b2c-9b7d-3a0f8e5c6d21", "held": true }
Reading what is due
GET /ferroehr/rest/extensions/v1/admin/retention/due?limit=100
Oldest first. Every row carries objects_due and objects_held, so a
controller acting on the list disposes of the first and leaves the second where
they are. An EHR under a whole-record hold does not appear at all.
Restriction of processing
GDPR Art. 4(3) defines restriction as marking stored data to limit its future processing, and Art. 18(2) says what is left once the mark is set: storage, and nothing else without the subject’s consent or one of the named exceptions. FerroEHR implements that literally, at two grains — a whole EHR, or one versioned object inside it.
A restricted object stays in storage untouched, and every path that would process it stops:
- a point read, a versioned read and a revision history answer 403 with a body naming the restriction — distinct from the authorization 403, because the same caller with the same rights is refused until the restriction is lifted;
- AQL results omit it, at every scope, so naming the
ehr_iddoes not make the content answerable; - an EHR Extract omits a restricted object, and refuses outright for a restricted EHR;
- the change-event feed neither records nor serves an event about it;
- a write to it is refused, and nothing already stored changes.
The restriction refusal is the last gate on a write. The checks that need no
transaction run first: a body the template refuses is 422, and a write to an
EHR whose is_modifiable is false, or a second directory for one EHR, is
409. Only the commit transaction itself reads the mark and answers 403.
The order is deliberate. Validation stays outside the transaction so the
transaction is short, and the mark is read inside it so a concurrent lift either
commits before the write and is seen, or waits for it. A malformed write to a
restricted object therefore answers 422 rather than 403: the request is refused
either way and nothing stored changes, but the status names the gate that
stopped the write, not whether the restriction is in force.
GET /ferroehr/rest/extensions/v1/admin/restriction?ehr_id=… answers that.
POST /ferroehr/rest/extensions/v1/admin/restriction
Content-Type: application/json
{
"ehr_id": "7d44b88c-4199-4bad-97dc-d78268e01398",
"vo_id": "df58b2ee-30bd-4b2c-9b7d-3a0f8e5c6d21",
"ground": "gdpr-18-1-a",
"note": "accuracy contested on 2026-09-15"
}
Omit vo_id to restrict the whole record. ground is one of the four
Art. 18(1) points — gdpr-18-1-a through gdpr-18-1-d — or national for a
member-state rule that goes beyond them, which is how German BDSG § 35 Abs. 2
and Abs. 3 are carried.
POST /ferroehr/rest/extensions/v1/admin/restriction/lift with the same grain lifts it. The register
keeps the request and stamps it lifted rather than removing it, because
Art. 18(3) makes the sequence itself the obligation: the subject is informed
before the restriction is lifted, and a register that forgot the request
could not show that anyone was. GET /ferroehr/rest/extensions/v1/admin/restriction?ehr_id=… reads
the whole sequence back. Lifting a whole-record restriction leaves an
object-scoped one standing on its own.
Objection to research processing
GDPR Art. 21(6) gives the subject a right to object to processing for scientific or historical research or statistical purposes under Art. 89(1), unless the processing is necessary for a task carried out for reasons of public interest. That is narrower than Art. 18: it reaches research, not care.
While an objection stands, the EHR is absent from every full-population AQL
query, from every export, and from the change-event stream — the three surfaces
a secondary-use consumer reads this repository through. A query that names the
ehr_id and a read of the record by the treating clinician are untouched.
POST /ferroehr/rest/extensions/v1/admin/research-objection
Content-Type: application/json
{ "ehr_id": "7d44b88c-4199-4bad-97dc-d78268e01398", "objected": true }
Send "ground": "…" beside "objected": true to record the public-interest
ground the article admits for an override: the EHR returns to the research
population and the ground says on whose authority. Send "objected": false to
withdraw the objection entirely; a withdrawal carries no ground, because there
is nothing left to override.
The audit trail, and the access-log ceiling
Setting and lifting any of these marks is an access record of its own, naming the EHR, the object where the act was object-scoped, and which register moved. These are the acts a supervisory authority asks about after the fact, so they are in the trail beside the reads and writes.
The trail has a retention question of its own, and it runs the other way: the law sets a floor below which an access log may not be reaped (three years from each date of access in every EU Member State under EHDS Art. 9(2), five years in the Netherlands, one year in Switzerland), and one national rule sets a ceiling. SGB V § 309 Abs. 1 asks the controllers of a German telematics-infrastructure application to keep access logs for the three-year limitation period, and Abs. 3 requires deletion without delay once it has run. That provision binds the controllers § 307 names, which no software can infer, so the deployment declares it:
[audit.store]
retention = 3
sgb_v_309_controller = true
With the declaration in place, the server refuses at boot any horizon above the
ceiling, including no retention (keep forever), and refuses a
configuration whose floors and ceilings contradict each other outright, rather
than silently preferring one.
Germany is a Member State, so the EHDS floor of three years applies there as
well. Both rules are three calendar years, which is why the horizon above is
stated in years: retention = 3 meets the floor and the ceiling exactly,
and the reaper deletes what is older than the same calendar date three years
ago. A day count cannot: three calendar years span 1095 or 1096 days, so a
floor in days has to be 1096 and a ceiling 1095, and with
sgb_v_309_controller = true the server refuses every retention value
and names retention = 3 as the fix.
An openEHR access-log entry carries its own end: it states retain_until
and the grounds of its period when it is written, and once that day has passed
the server replaces it by a tombstone that keeps the hash chain whole. The
registers on this page never shorten or lengthen that period, and none of them
removes an entry. An erasure a law orders before the end takes the same
tombstone path through an administrator operation that is itself recorded.
Retention of the trail itself is described in
Audit.
What this page does not claim
The registers record decisions and make them checkable. They do not make a deployment compliant with any of the provisions named above: the periods, the grounds, the notifications, the weighing of an objection and the decision to dispose of a record are all the controller’s, and the shared responsibility page says which side of the line each one falls on.
Secondary use
Research data leaves FerroEHR through FerroBRIDGE, which loads the OMOP Common Data Model in batches over AQL. FerroEHR holds the record and the marks that decide what may leave; FerroBRIDGE runs the batch, pseudonymises for research and maps to OMOP. Every edge between the two is a published specification: FerroBRIDGE reads through the openEHR REST API, and FerroEHR keeps no outbox or read model for it.
This page is the contract between the two: what FerroBRIDGE’s batch asks, what FerroEHR answers, and what each side records.
The batch query
FerroBRIDGE’s etl run sends one AQL query per batch through
POST /query/aql (ITS-REST 1.1.0, execute_ad_hoc_query):
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
$sinceis the instant of the last row the previous run loaded (etl run --since). The answer holds every composition whose latest version was committed after it: a new composition, and a new version of an older one.- The order is the commit instant, then the version uid. Every version of
one contribution carries the same
time_committed(RM commonmaster06-change_control_package.adoc§Contributions), so the instant alone leaves ties. UnderLATEST_VERSIONeach versioned object answers one version, so the uid makes the order total, the same order astime_committed,vo_idand version number. - Paging uses the
offsetandfetchmembers of the request. With a total order, consecutive windows concatenate to the whole answer, with no row skipped or repeated. - The plan runs the
time_committedpredicate as a range scan on a BRIN index over the commit instant, so a batch reads the versions committed after$since, not the whole store.
What leaves the batch
The batch is a population query: it names no ehr_id. So the marks on
Retention, restriction and objection take an EHR out of it:
- an EHR or object under a restriction of processing (GDPR Art. 18);
- an EHR under a research objection (GDPR Art. 21(6)), unless the controller recorded the public-interest override;
- an EHR whose
EHR_STATUS.is_queryableis false (RM ehr master04 §EHR Status).
The rows carry what the query projects. The query above projects the
ehr_id, the uids and the composition, and no identifier of the subject: the
subject’s identifiers live in EHR_STATUS and in the demographic domain,
which the batch does not read.
The integration test secondary_use_batch in app/ferroehr/tests/it/ holds
this contract. It commits versions before and after an instant, restricts one
EHR and records an objection on another. It then checks that the batch answers
exactly the later versions of the unmarked EHR, in order, that its offset
windows make up the whole answer, and that no row carries the subject’s
identifier.
Removing what was erased
ITS-REST 1.1.0 defines no change notification, so FerroBRIDGE learns of an
erasure by asking. Each run reconciles every composition its watermarks name
against GET /ehr/{ehr_id}/composition/{versioned_object_uid}. An answer
that the composition is gone removes its rows from the CDM. A restriction or
an objection set after a row was loaded takes the EHR out of later batches;
removing rows already loaded is FerroBRIDGE’s side of the contract.
The access record
Every batch, export and cohort query is recorded in the
access log with the purpose of use the caller declared
([audit] purpose_header) and the data permit it acts under
([audit] permit_header, default x-data-permit). A health data access body
issues the permit (EHDS Art. 68). The record keeps the permit’s identifier, 1 to
128 characters of letters, digits and . _ : / # -. A value of any
other form is recorded as absent, so a header cannot carry free text or
personal data into the trail. The permit joins the tamper chain’s digest with
the rest of the record.
A deployment that serves secondary use sets both headers on FerroBRIDGE’s
requests, and agrees the purpose codes in [audit] purpose_codes.
Where pseudonymisation happens
FerroBRIDGE pseudonymises for research, as the trusted party between the holder and the researcher (EDPB Guidelines 01/2025 on pseudonymisation, §§ 116 to 120 and Example 5). FerroEHR gates the data: the marks above decide what leaves, the access record says who took it under which permit, and cohort queries answer an aggregate question without releasing the rows.
What this page does not claim
FerroEHR is not a health data access body and runs no secure processing environment. Issuing a data permit, checking the request against it, and releasing data to a researcher are the access body’s work (EHDS Chapter IV). FerroEHR records the permit the caller names; it does not check that the permit exists or covers the data.
Control matrix
FerroEHR is software. It is not a controller, not a processor and not a certified organisation, so this page makes no compliance claim on anyone’s behalf. It lists the technical controls the product ships or plans, and the article or clause each one is designed to support. Whether a deployment satisfies a legal obligation depends on how the deploying organisation runs it.
Every row comes from the tracker. A control is declared on the issue that delivers it, as a line in the issue body:
Control: <legal source> <article or clause>
The short name resolves to an official publisher URL from a registry inside the generator, so a legal citation on this page is never free text. An issue may declare several controls, one per line. The Control column carries the issue title, unless the body also states the control on its own line, which the generator prefers so that an issue titled as the defect it fixed does not read its defect as the control:
Control-text: <the control, stated as what the product does>
How this page is built
scripts/render/control-matrix.sh queries the tracker with the GitHub CLI,
joins each declared control to its legal source and to its current state, and
writes this file. The site deploy renders it from the tracker on every push
to main, which is what keeps a shipped control from sitting here as
“planned”. A CI job renders it for every pull request and fails the build
when the pull request does not carry the rows it changes.
- Shipped: the issue is closed as completed. The merged pull request that closed it is linked in the last column. The one pull request that closes a control regenerates this page as it will read after the merge, so the page never lags a shipped control.
- Planned: the issue is open. Whether work has started is the issue’s column on the public roadmap board, which this page does not copy: a status that lives in two places disagrees the day one of them moves.
- Not planned: the issue was closed without the control being built. The row stays visible so the record does not quietly lose it.
The page carries no generation timestamp and no build commit. Both change on every run or every push while the tracker has not moved, which would make the CI staleness check fail on days when nothing was wrong. When this page was last regenerated, and from which commit, is the file’s own git history.
Controls
| Legal source | Applies to | Article or clause | Control | Issue | Status | Closing PR |
|---|---|---|---|---|---|---|
| GDPR | EU | Art. 15(1) | A natural person cannot obtain their own access log: the only retrieval is admin-gated over the whole repository | #3240 | Shipped | #3263 |
| GDPR | EU | Art. 17(1) | Physical deletion of a party removes its externalised multimedia blobs | #3180 | Shipped | #3201 |
| GDPR | EU | Art. 18 | A restriction register at whole-EHR and single-object grain, with the marked object refused on every read, query, export, event and write path while its stored rows stay untouched | #3324 | Shipped | #3410 |
| GDPR | EU | Art. 21(6) | A per-EHR research objection that removes the record from population queries, exports and the event stream while leaving reads for care untouched, with the controller’s public-interest override recorded beside it | #3325 | Shipped | #3410 |
| GDPR | EU | Art. 25(1) | Contributor rules for personal data handling and a PR guard for privacy-boundary changes | #3167 | Shipped | #3172 |
| GDPR | EU | Art. 25(2) | Refuse identifying data on the clinical side and constrain the subject reference to a pseudonym namespace | #3154 | Shipped | #3187 |
| GDPR | EU | Art. 25(2) | The compliance layer assumes the Netherlands; it must be jurisdiction-pluggable | #3185 | Shipped | #3187 |
| GDPR | EU | Art. 25(2) | The identifier scanner does not run on verbatim-replay writes (EHR-Extract import, admin load), and the book says every clinical write is scanned | #3237 | Shipped | #3251 |
| GDPR | EU | Art. 25(2) | No database constraint holds the subject-reference shape: the CHECK #3154 promised was never built | #3241 | Shipped | #3265 |
| GDPR | EU | Art. 30(1)(f) | A retention register of the period per content category and jurisdiction with its legal citation, per-EHR anchors, whole-record and per-object holds, a view of what has run out, and a boot-checked ceiling on access-log retention | #3346 | Shipped | #3410 |
| GDPR | EU | Art. 32(1) | Deploy artifacts provision the demographic role split | #3179 | Shipped | #3193 |
| GDPR | EU | Art. 32(1) | Row-level security on demographic.national_identifier | #3219 | Shipped | #3223 |
| GDPR | EU | Art. 32(1) | Schema preparation runs on its own credential, never the clinical runtime role | #3224 | Shipped | #3229 |
| GDPR | EU | Art. 32(1) | A declared deployment profile: production refuses the postures it cannot prove, research says so in red | #3226 | Shipped | #3265 |
| GDPR | EU | Art. 32(1)(a) | Split demographic parties into a demographic schema with a non-overlapping runtime role | #3153 | Shipped | #3182 |
| GDPR | EU | Art. 32(1)(a) | National identifiers in the demographic schema: encrypted storage, keyed lookup, audited resolution | #3155 | Shipped | #3189 |
| GDPR | EU | Art. 32(1)(c) | Separate encryption keys and per-schema backup handling for the clinical and demographic domains | #3157 | Shipped | #3198 |
| GDPR | EU | Art. 32(1)(c) | Each pseudonymisation domain is backed up as its own dump, and the deployment probes check the role boundary between the clinical and party domains | #3220 | Shipped | — |
| GDPR | EU | Art. 32(1)(d) | The storage-parity sweep and node rebuild cover the demographic domain | #3178 | Shipped | #3184 |
| GDPR | EU | Art. 32(1)(d) | The two-DSN credential separation is exercised by test | #3222 | Shipped | #3231 |
| GDPR | EU | Art. 4(5) | Split demographic parties into a demographic schema with a non-overlapping runtime role | #3153 | Shipped | #3182 |
| GDPR | EU | Art. 4(5) | Refuse identifying data on the clinical side and constrain the subject reference to a pseudonym namespace | #3154 | Shipped | #3187 |
| GDPR | EU | Art. 4(5) | Separate encryption keys and per-schema backup handling for the clinical and demographic domains | #3157 | Shipped | #3198 |
| GDPR | EU | Art. 4(5) | The clinical and party domains keep separate schemas and roles, and every crossing from a party or a subject to its EHRs reads the ehr subject columns in the application and writes a linkage-domain access record | #3158 | Shipped | — |
| GDPR | EU | Art. 4(5) | The subject pseudonym is opt-in: nothing mints it, and an empty subject_namespaces is silent | #3232 | Shipped | #3266 |
| GDPR | EU | Art. 4(5) | The patient-to-EHR cross-reference in an IHE patient identity source asked over PIXm by default, the in-instance map an explicit opt-in, and no identity logic in the CDR | #3380 | Shipped | #4113 |
| GDPR | EU | Art. 5(1)(b) | Cross-domain cohort queries with a demographic predicate and a clinical selection | #3159 | Shipped | #3275 |
| GDPR | EU | Art. 5(1)(e) | Audit retention has no jurisdictional floor: retention_days=1 erases the access log daily while the chain still verifies | #3242 | Shipped | #3266 |
| GDPR | EU | Art. 5(1)(e) | A retention register of the period per content category and jurisdiction with its legal citation, per-EHR anchors, whole-record and per-object holds, a view of what has run out, and a boot-checked ceiling on access-log retention | #3346 | Shipped | #3410 |
| GDPR | EU | Art. 89(1) | Secondary use leaves through FerroBRIDGE to OMOP in batches over AQL, with the restriction, objection and retention marks kept in the CDR | #3379 | Shipped | #4122 |
| EHDS | EU | Annex II 3.2 | European logging software component: map EHDS logging requirements onto the access event model and ATNA trail | #3170 | Shipped | #3205 |
| EHDS | EU | Annex II 3.2 | Auditing off is one info-level line, and fail_mode=open is the silent default: make both visible where an operator looks | #3238 | Shipped | #3260 |
| EHDS | EU | Annex II 3.2 | The split clinical role holds no grant on the audit schema, so a separated deployment cannot write its own access log | #3267 | Shipped | #3270 |
| EHDS | EU | Annex II 3.2(a) | The access log records no accessing organisation (EHDS Annex II 3.2(a)) | #3204 | Shipped | #3213 |
| EHDS | EU | Art. 9 | A natural person cannot obtain their own access log: the only retrieval is admin-gated over the whole repository | #3240 | Shipped | #3263 |
| EHDS | EU | Chapter IV | Secondary use leaves through FerroBRIDGE to OMOP in batches over AQL, with the restriction, objection and retention marks kept in the CDR | #3379 | Shipped | #4122 |
| EDPB 01/2025 | EU | pseudonymisation domain | Split demographic parties into a demographic schema with a non-overlapping runtime role | #3153 | Shipped | #3182 |
| EDPB 01/2025 | EU | pseudonymisation domain | The clinical and party domains keep separate schemas and roles, and every crossing from a party or a subject to its EHRs reads the ehr subject columns in the application and writes a linkage-domain access record | #3158 | Shipped | — |
| EDPB 01/2025 | EU | pseudonymisation domain | Cross-domain cohort queries with a demographic predicate and a clinical selection | #3159 | Shipped | #3275 |
| UAVG | NL | Art. 46 | Refuse identifying data on the clinical side and constrain the subject reference to a pseudonym namespace | #3154 | Shipped | #3187 |
| UAVG | NL | Art. 46 | National identifiers in the demographic schema: encrypted storage, keyed lookup, audited resolution | #3155 | Shipped | #3189 |
| Wabvpz | NL | Art. 15e | A natural person cannot obtain their own access log: the only retrieval is admin-gated over the whole repository | #3240 | Shipped | #3263 |
| NEN 7513 | NL | actor role | The access record carries no actor role or authorisation basis, which NEN 7513 requires and the RBAC layer already holds | #3239 | Shipped | #3262 |
| NEN 7513 | NL | event content | Per-domain access logging for reads and queries aligned with NEN 7513 and EHDS Art. 9 | #3156 | Shipped | #3188 |
| NEN 7513 | NL | event content | Domain-level access events discard their EmitOutcome, so fail_mode=closed does not cover them | #3235 | Shipped | #3246 |
| NEN 7513 | NL | retention | Audit retention has no jurisdictional floor: retention_days=1 erases the access log daily while the chain still verifies | #3242 | Shipped | #3266 |
| BDSG | DE | § 35 Abs. 2 and 3 | A restriction register at whole-EHR and single-object grain, with the marked object refused on every read, query, export, event and write path while its stored rows stay untouched | #3324 | Shipped | #3410 |
| SGB V | DE | § 309 Abs. 3 | A retention register of the period per content category and jurisdiction with its legal citation, per-EHR anchors, whole-record and per-object holds, a view of what has run out, and a boot-checked ceiling on access-log retention | #3346 | Shipped | #3410 |
| GDNG | DE | § 6 Abs. 1 | A retention register of the period per content category and jurisdiction with its legal citation, per-EHR anchors, whole-record and per-object holds, a view of what has run out, and a boot-checked ceiling on access-log retention | #3346 | Shipped | #3410 |
| DSG | CH | Art. 25 Abs. 2 lit. d | A retention register of the period per content category and jurisdiction with its legal citation, per-EHR anchors, whole-record and per-object holds, a view of what has run out, and a boot-checked ceiling on access-log retention | #3346 | Shipped | #3410 |
| EPDV | CH | Art. 10 | A retention register of the period per content category and jurisdiction with its legal citation, per-EHR anchors, whole-record and per-object holds, a view of what has run out, and a boot-checked ceiling on access-log retention | #3346 | Shipped | #3410 |
Legal sources
The short names above resolve to these publishers. The linked text is the authority; nothing on this page restates it.
EU and INT apply to every deployment. A two-letter country code is
national law or a national standard, and applies to a deployment in that
country: FerroEHR is an openEHR CDR, openEHR is not a Dutch standard, and a
deployment elsewhere answers to its own equivalents rather than to these.
Adding a jurisdiction is a registry entry plus the controls that cite it.
Cyber Resilience Act
The manufacturer’s side of the Cyber Resilience Act (CRA, Regulation (EU) 2024/2847) is the same for every FerroHEALTH product: who the manufacturer is, which duties apply from when, the reporting of actively exploited vulnerabilities and severe incidents, the support-period policy, how conformity is assessed through the EHDS, a deployment Cadasto B.V. hosts as a service, who the CRA binds in a self-hosted deployment, and the questions for counsel. That account is published in the FerroHEALTH book: The CRA.
Each FerroHEALTH product is a product with digital elements of its own, with its own risk assessment and its own Annex II information. This page keeps FerroEHR’s.
Warning
No conformity assessment has been carried out, no EU declaration of conformity exists and FerroEHR carries no CE marking. The CRA text this page cites is vendored at
docs/law/eu/cra/text.html(EUR-Lex).
The manufacturer and the product
Cadasto B.V. is the manufacturer of each tagged FerroEHR release
(The manufacturer). Each
tagged release is one product: the ferroehr binaries, the ferroehr,
ferroehr-viewer and ferroehr-postgres container images, the Helm chart and
the source archive. The nine openehr-* crates published on crates.io are
products of their own; the information for their integrators is on
Rust crates.
Vulnerabilities in FerroEHR are reported as
SECURITY.md
says.
FerroEHR’s CRA documents
- CRA risk assessment: the cybersecurity risks of FerroEHR, and how each point of CRA Annex I applies to it, with its evidence and its open work.
- CRA information and instructions to the user: the Annex II information for FerroEHR, point by point. The notes of each GitHub release link the copy of that page frozen for the release, and the release lane refuses to publish a release whose notes do not.
- Technical documentation: the single set for the EHDS and the CRA (CRA Art. 31(3) as EHDS Art. 104(2) replaces it): the EHDS Annex III elements of the EHR system in the FerroHEALTH book, at the revision each release pins, and FerroEHR’s CRA Annex VII points in the repository.
- Hazard log: the patient-safety hazards of the access log, the EHDS part of the risk assessment.
FerroEHR’s product facts under the CRA
- Not free and open-source software. FerroEHR is published under the Business Source License 1.1, whose Additional Use Grant allows production use for non-commercial purposes only, so it is not free and open-source software in the sense of CRA Art. 3(48) (licensing).
- Only the newest release is supported. Every earlier release stops
receiving fixes when a new one is published, and the remedy is to upgrade,
which is free. Cadasto B.V. commits to keep publishing security fixes for at
least five years after each release (Art 13(8)) and ships them only in the
newest release (Art 13(10)). The end month of that commitment is printed in
each release’s notes, and the statement is
SECURITY.md§ Supported versions. The reasoning is in the technical documentation (cra-annex-vii-4-support-period.md). - The conformity route. Cadasto B.V. declares FerroEHR, with FerroBRIDGE, as an EHR system under the EHDS, so the CRA requirements are assessed through the EHDS procedure (CRA Art. 32(5a), inserted by EHDS Art. 104(3)). The status per EHDS requirement is on EHDS readiness.
Default product, or important product of class I
Cadasto B.V. reads FerroEHR as a default product: its core functionality is storing, versioning and querying health records (intended purpose), and none of the categories of CRA Annex III names that function. The competing reading is Annex III class I point 1, “identity management systems and privileged access management software and hardware, including authentication and access control readers”: the technical description in Implementing Regulation (EU) 2025/2392 Annex I covers products “that provide mechanisms for authentication or authorisation”, and FerroEHR authenticates and authorises every request to the records it holds. Class I point 7, security information and event management, describes products that “collect data from multiple sources”; FerroEHR’s access log records FerroEHR’s own accesses.
For a class I product whose manufacturer has not applied harmonised standards, common specifications or a certification scheme in full, CRA Art. 32(2) requires a third-party procedure. This is a question for counsel, and nothing in this repository answers it.
CRA information and instructions to the user
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 FerroEHR, point by point in the order of Annex II. Each section quotes what the point asks and gives FerroEHR’s information for it, with the source the information is kept in.
Annex II opens: “At minimum, the product with digital elements shall be
accompanied by:”. The product is each tagged FerroEHR release, as Cadasto B.V.
places it on the market: the ferroehr binaries, the ferroehr,
ferroehr-viewer and ferroehr-postgres container images, the Helm chart and
the source archive (the manufacturer and the product).
- Which copy to read
- 1. The manufacturer
- 2. The single point of contact for vulnerabilities
- 3. Name, type and unique identification
- 4. Intended purpose, security environment, essential functionalities and security properties
- 5. Circumstances that may lead to significant cybersecurity risks
- 6. The EU declaration of conformity
- 7. Technical security support and the end of the support period
- 8. Detailed instructions
- 9. The software bill of materials
- Related
Warning
The quotations are from the Official Journal text vendored in the repository at
docs/law/eu/cra/text.html(EUR-Lex). No conformity assessment has been carried out, no EU declaration of conformity exists and FerroEHR carries no CE marking. This page gives the information Annex II lists; it does not say that FerroEHR, or a deployment of it, meets the Regulation.
Which copy to read
This book is frozen with every release, so the copy of this page that belongs
to release vX.Y.Z is
https://ferroehr.eu/docs/vX.Y.Z/compliance/cra-user-information.html. The
notes of each GitHub release link that copy, and the release lane refuses to
publish a release whose notes do not. The copy at /docs/dev/ describes the
code on main, which is not a release.
CRA Art. 13(18) has information provided online kept “accessible,
user-friendly and available online for at least 10 years after the product
with digital elements has been placed on the market or for the support
period, whichever is longer”. A frozen book version is never rebuilt or
deleted, and each release tag, which carries the page’s source, is protected
against deletion (SECURITY.md).
The information is written in English. Art. 13(18) asks for “a language which can be easily understood by users and market surveillance authorities”. No translation is published; a market surveillance authority that needs one asks the single point of contact below.
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;”
| Manufacturer | Cadasto B.V. |
| Postal address | Comeniusstraat 2d, 1817 MS Alkmaar, The Netherlands |
| info@cadasto.com | |
| Website | https://www.cadasto.com/contact/ |
The source of these details is app/ferroehr/src/manufacturer.rs, the one
place they are written in the code. The running server reads them from there
for its startup banner, ferroehr --version and GET /management/info, the
viewer shows them on every screen, and the container images carry them in the
eu.ferroehr.image.manufacturer label
(the manufacturer and the deployment report).
The information sheet repeats them.
Cadasto B.V. is the manufacturer of every FerroHEALTH product, and the
FerroHEALTH book describes it once for all of them:
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 to security@cadasto.com, with “FerroEHR vulnerability” in the subject, or through GitHub private vulnerability reporting. Both reach the same people and the same procedure. Do not open a public issue.
- 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/FerroEHR/security-advisories. - The coordinated vulnerability disclosure policy is the manufacturer’s,
shared by every FerroHEALTH product: the response times, the agreed
disclosure date, the safe harbour, the credit and what each advisory
carries are on
Security in the FerroHEALTH
book. What is particular to FerroEHR, the reporting routes and the scope, is
SECURITY.md§ Reporting a vulnerability, also published assecurity.txtunder RFC 9116.
3. Name, type and unique identification
“name and type and any additional information enabling the unique identification of the product with digital elements;”
- Name: FerroEHR.
- Type: software. A clinical data repository server that stores, versions and queries openEHR health records over the openEHR REST API and AQL.
- Version: the release tag
vX.Y.Z. The running server prints it inferroehr --versionand returns it asserver_versiononGET /ferroehr/rest/status;ferroehr reportadds the commit and the build date (ferroehr report). - The artefacts of a version: the release assets carry a checksum and a
signed build provenance each, and the container images are identified by
digest, with the version and the commit in their
org.opencontainers.image.versionandorg.opencontainers.image.revisionlabels (verifying releases). - Release date: the date on the release’s heading in the
changelog,
## [X.Y.Z] - YYYY-MM-DD(information sheet, (b)).
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: FerroEHR stores, versions and queries the structured health records of one healthcare provider, serves them to that provider’s clinical applications through the openEHR REST API and AQL, and records every access to them. FerroEHR’s part of the statement, with the data it is designed to process, is the intended purpose; the statement for the EHR system FerroEHR forms with FerroBRIDGE, with its users, is in the FerroHEALTH book (intended purpose).
- Security environment: what FerroEHR relies on and does not provide itself: TLS termination, an OpenID Connect identity provider, protection of the database, a hardened platform and off-box copies of the access log (the security environment FerroEHR assumes).
- Essential functionalities: listed in the intended-purpose statement (what FerroEHR is for).
- Security properties: each point of CRA Annex I Part I(2), with how FerroEHR implements it and the evidence, is in the CRA risk assessment. The controls themselves are described on Security, and the risk that remains at each trust boundary in the threat model.
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;”
- Use in accordance with the intended purpose: the risk register of the CRA risk assessment rates each risk with the shipped controls, and the limitations you should know name the ones that matter before you rely on FerroEHR, among them the shipped defaults that favour a first boot and the reach of anyone with a database connection.
- Reasonably foreseeable misuse: the
foreseeable misuse table
lists each case (real patient data under the
sandboxprofile, authentication off, a plaintext listener, several organisations in one instance, a release run after a newer one is published, and others), what FerroEHR does against it, and what remains. - What is not defended against: the threat model lists it.
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 declaration and the CE marking apply from 11 December 2027 (CRA Art. 71(2)). For FerroEHR, which Cadasto B.V. declares with FerroBRIDGE as an EHR system under the EHDS, the CRA asks for one declaration covering both acts (CRA Art. 28(3)). When it exists, it is published as an asset of each GitHub release it covers and as a page of the book frozen for that release, and this section gives its address. The record of the declaration is Annex III 6 of the EHR system’s technical documentation in the FerroHEALTH book.
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. If you are not on the newest release, upgrade; upgrading is free. Under the Cyber Resilience Act, Cadasto B.V. commits to keep publishing security fixes for at least five years after each release (Art 13(8)) and ships them only in the newest release (Art 13(10)).
- The end date, month and year, is the end of that five-year commitment
for a release: the date until which Cadasto B.V. keeps shipping fixed
releases. It is printed in the “Support period” section of the release’s
notes, and the running server states it on its boot banner, in
ferroehr --version, undersupportinGET /management/infoand assupport.statusinGET /management/status(how long the version you pinned is supported). A release itself is supported only while it is the newest. - The type of support: Cadasto B.V. handles vulnerabilities in FerroEHR, and the security update ships in the newest release, as a security-only patch where that is technically feasible. Every fixed vulnerability gets a GitHub security advisory with its severity, the affected and fixed versions, and what to do.
- The source:
SECURITY.md§ Supported versions, which also covers the Helm chart and theopenehr-*crates, and the reasoning in the technical documentation (cra-annex-vii-4-support-period.md).
8. Detailed instructions
“detailed instructions or an internet address referring to such detailed instructions and information on:”
The detailed instructions are the
instructions for use
of the EHR system, which the FerroHEALTH book carries and which ride each
GitHub release as ferroehr-vX.Y.Z-instructions-for-use.md, at the revision
the release pins and with its versions appended. Each point below names
the part that answers it.
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: check what you pulled
(verifying releases), install
(installing), set the deployment
profile to
productionand configure the access log, authentication and the pseudonymisation boundary (configuring a deployment in the European Union), then walk the go-live checklist before the instance holds real patient data. - Throughout its lifetime: the maintenance tasks and how often each falls due, from applying security updates to testing backups and acting on an access-log chain finding (maintenance, and how often).
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. The shipped defaults favour a first boot: the
sandboxprofile, TLS off, the open per-EHR access default and the access log failing open. Theproductionprofile refuses to start while one of the separations it checks is open and not accepted by name, and a gap you accept by name is stated on every boot and onGET /management/status(deployment.profile). A configuration change that opens such a gap shows there. - Integrations. Every outbound integration is off by default. Turning one on sends data to another system, and the outbound data flows table says what each one sends and where.
- Upgrades. A release can carry database migrations. They are append-only, and a rolling upgrade stays compatible with the previous schema for the window in which both versions run; take a backup first (upgrades).
- Changes to the source. A binary or image built from modified source is not a Cadasto B.V. release: its build provenance and signatures do not verify, and the risk assessment of the release does not describe it. Whether an organisation that modifies the source and puts the result into service becomes a manufacturer itself is a question for counsel (the CRA, the manufacturer side).
8(c) Installing security-relevant updates
“how security-relevant updates can be installed;”
Subscribe to the release feed
(https://github.com/FerroHEALTH/FerroEHR/releases.atom) and poll the
security advisories; the server does not look for newer releases itself.
Verify the new release (verifying releases), take
a backup, then deploy it by digest and let it apply its migrations
(upgrades). On Kubernetes that is a
helm upgrade to the chart version that ships the new release
(Kubernetes & Helm, upgrades).
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;”
Decommissioning takes an instance out of
service: what to export and keep first, ferroehr db erase with its dry run
and confirmation, which removes the multimedia blobs and every schema with all
data and settings, and what the erase cannot reach and you remove yourself
(backups, WAL archives, replicas, the chart’s Secrets and claims, the database
roles, configuration files, the data held by systems the instance sent to, and
the physical media). The command and the page are the deliverables of
#3642. To start again
from an empty instance of the same release, follow
returning to the original state.
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;”
FerroEHR installs no update by itself, so there is no such default setting to turn off. Annex I Part I(2)(c) asks for automatic security updates “where applicable”, and the risk assessment records why the limb does not apply to FerroEHR: it is a clinical server run under its operator’s change control, an upgrade can carry a database migration the operator schedules and backs up for, an update installed on the manufacturer’s schedule would restart the service at a moment no clinician or operator chose, and a channel into the deployment for the manufacturer would be an inbound path into a system holding special-category data (the justification). The operator installs each update as described in 8(c).
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 FerroEHR server, its images and its chart are not intended for integration into another product with digital elements. Other software connects to a running instance over the openEHR REST API, as FerroBRIDGE does.
The nine openehr-* crates published on crates.io are libraries intended for
integration into other products, and each is a product of its own. The
information for their integrators is on
Rust crates § Information for integrators.
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 a CycloneDX SBOM per server binary, an SPDX SBOM of the source tree,
an SBOM on each container image, a CycloneDX SBOM per openehr-* crate and an
SBOM attested on the Helm chart. Where each one is and how to verify it is in
the SBOMs, one per published artefact.
Related
- Cyber Resilience Act: the manufacturer, what applies from when, and the questions for counsel.
- Instructions for use and the information sheet: the documents that accompany each release under the EHDS.
- Complaints, incidents and vulnerabilities: the reporting channels and procedures.
Complaints, incidents and vulnerabilities
Cadasto B.V. is the manufacturer of every FerroHEALTH product, FerroEHR included, and runs one post-market procedure for all of them: complaints, serious incidents under the EHDS, actively exploited vulnerabilities and severe incidents under the CRA, corrective action, withdrawal and recall, security advisories, vulnerabilities in integrated components, cooperation with the authorities and the cessation of operations. That procedure, with its quotations from the regulations, is published in the FerroHEALTH book: Post-market. The manufacturer’s name, address and single point of contact are on The manufacturer.
This page keeps what is particular to FerroEHR.
Reporting about FerroEHR
- A vulnerability, including one you have seen exploited: report it
privately through
GitHub private vulnerability reporting on the FerroEHR repository, or
by email to security@cadasto.com with “FerroEHR
vulnerability” in the subject, as
SECURITY.mdsays. If you have seen it exploited, say so. - Anything that harmed a person, or could have: write to info@cadasto.com with “FerroEHR incident” in the subject.
- Any other complaint: write to info@cadasto.com with “FerroEHR complaint” in the subject, or open a GitHub issue when the report can be public.
Say which version you run (ferroehr --version, or the image tag) and how it
is deployed. Never send patient data: describe the case, or build a synthetic
one. A deployment attaches the JSON document ferroehr report writes: it
names the version, commit, features, specification pins, migration level,
deployment posture and redacted configuration, and carries no credential and
no patient data (the command).
FerroEHR’s registers
The registers of EHDS Art. 30(1)(o) and the upstream register of CRA Art. 13(6) are kept per product. FerroEHR’s are public, in its repository:
docs/registers/complaints.tsv: every complaint about FerroEHR, whatever the channel, with the versions it concerns, how it was classified, the record of the work on it and its outcome.docs/registers/non-conforming-versions.tsv: every finding that released FerroEHR versions do not conform, with the requirement missed, whether it was a serious incident or notified under the CRA, the corrective action, and when the authorities and the users were told.docs/registers/upstream-reports.tsv: every vulnerability reported to the maintainer of a component FerroEHR integrates, with the channel, the upstream reference, whether a fix was shared and the outcome.
No row names the person who complained or carries patient data, and the upstream register names components, never people. A vulnerability enters the registers when its advisory is published.
Possible serious incidents in FerroEHR
The manufacturer treats these FerroEHR events as possible serious incidents under EHDS Art. 2(2)(r): a committed version lost or attributed to the wrong EHR; a read or an AQL result that returns another patient’s data; data under a restriction of processing served on a path that should refuse it; an access the audit trail did not record; a signature verification that accepts a tampered version.
A withdrawn FerroEHR release
A published FerroEHR release is immutable, so a non-conforming version is
never changed or deleted. The fix ships in a new patch release. A withdrawn
version’s floating image tags (<major>.<minor> and latest of the server,
viewer and PostgreSQL images) move to the correcting release, and the version
is listed as unsupported in
SECURITY.md § Supported versions. Its own version tag, its
image digests and its chart version stay published, so a deployment pinned to
any of them keeps running the withdrawn version until the deployment moves.
Security advisories for FerroEHR are GitHub security advisories on the
FerroEHR repository, and the ### Security entry of its changelog carries
each advisory’s GHSA- identifier.
The maintainers’ step-by-step checklist for FerroEHR, with the release tooling
it runs, is
docs/post-market.md.
The technical documentation readiness page shows
what of the documentation an authority may ask for exists today.
Intended purpose
Cadasto B.V. states the intended purpose of the EHR system that FerroEHR and FerroBRIDGE form together, under the EHDS (Regulation (EU) 2025/327) and the Cyber Resilience Act (CRA, Regulation (EU) 2024/2847), once for both products: the statement and its version, who uses the system, how it is operated (self-hosted, or hosted by Cadasto B.V.), and what the intended purpose excludes, the medical-device purposes of the MDR among them. That statement is published in the FerroHEALTH book: The EHDS EHR system: intended purpose.
This page keeps FerroEHR’s part of it: its essential functions, the data it is designed to process, the environment it runs in and relies on, and the use and misuse that can be foreseen for it (CRA Annex II point 4, EHDS Annex III 1(b)). The CRA risk assessment, the hazard log and the claims review are written against it.
- What FerroEHR is for
- The data FerroEHR is designed to process
- The operational environment
- Reasonably foreseeable use and misuse
- What the intended purpose excludes
Warning
The quotations are from the Official Journal texts vendored in the repository under
docs/law/eu/. This page says what the manufacturer intends. It does not say that FerroEHR, or a deployment of it, meets either regulation: no conformity assessment has been carried out and no EU declaration of conformity exists.
What FerroEHR is for
FerroEHR stores, versions and queries the structured health records of one healthcare provider, and serves them to the software that provider’s health professionals and patients use. It holds each record as openEHR compositions with their full version history, and serves them through the openEHR REST API (ITS-REST Release-1.1.0) and the Archetype Query Language (AQL 1.1). It has no clinical user interface of its own: health professionals reach it through the clinical applications the provider connects to it.
FerroEHR records every access to the records it holds in its access log, the European logging software component of EHDS Art. 2(2)(o).
Its essential functions, in the sense of CRA Annex II point 4:
- storing EHRs, compositions, EHR status and folders with an append-only
version history and contribution-atomic commits
(database.
); - answering AQL queries over the stored records (querying);
- validating every write against the operational template it claims and the Reference Model invariants (templates and validation);
- keeping the identity of the record subject apart from the clinical record, in a separate demographic domain (the pseudonymisation boundary);
- authenticating every caller and deciding every request (authentication, authorization);
- recording every access, refusals included, and serving the log back through IHE ITI-81 (audit trail);
- restriction of processing, the research objection and the retention register (retention, restriction and objection);
- physical deletion, whole-repository dump and load, and EHR Extract export (admin APIs).
The security properties that go with these functions are on the Security page; the risk that survives each control is in the threat model.
The data FerroEHR is designed to process
EHDS Annex III 1(b) and Art. 38(2)(d) ask for “the categories of personal electronic health data that the EHR system has been designed to process”.
Clinical content, in the clinical domain: whatever the operational
templates the deploying organisation loads describe. This includes the
priority categories of EHDS Art. 14(1): “(a) patient summaries; (b) electronic
prescriptions; (c) electronic dispensations; (d) medical imaging studies and
related imaging reports; (e) medical test results, including laboratory and
other diagnostic results and related reports; and (f) discharge reports”, and
any category a Member State adds in national law. Which of them an instance
holds depends on the templates it loads, and the deployment declares that in
the audit category register
map, which classifies every access record. FerroEHR ships no such map. Images
are held as DV_MULTIMEDIA attachments, optionally offloaded to an
S3-compatible store (S3 multimedia), or as
references to an imaging archive; FerroEHR implements no DICOM image transfer.
Identities, in the demographic domain: parties (persons, organisations, roles) and their identifiers, with national identifiers optionally sealed under AES-256-GCM (the sealed identifier).
The link between the two: which party an EHR belongs to, as the EHR’s own
EHR_STATUS.subject in the clinical domain.
The access log: who accessed which record, when, from which origin and in which priority category. It names health professionals and patients.
Operating data: the configuration, metrics, traces and logs, which carry no identified data (telemetry), and the daily usage report, which carries instance facts and coarse performance aggregates and no patient data.
The operational environment
Each organisation gets its own FerroEHR instance, whether it runs FerroEHR
itself or Cadasto B.V. hosts it; the two operating models are described in the
FerroHEALTH book.
The public sandbox at sandbox.ferroehr.eu is a demonstration holding demo
data, wiped nightly.
- One instance per organisation. FerroEHR is single-tenant: several organisations are served by several instances, each with its own database and its own database roles (one instance, one organisation).
- Runtime. The distroless, non-root container image on Kubernetes through the Helm chart, on Docker Compose, or the binary built from source, on Linux (amd64 or arm64) (installation).
- Database. A PostgreSQL 18 cluster the deploying organisation provisions; the Helm chart deploys none.
- Profile.
deployment.profile = "production", which refuses to start while a separation is open and not accepted by name (go-live checklist). The shipped default issandbox, which must not hold real personal data and says so on the banner, in the log and onGET /rest/status. - Expected time in use. Longer than five years, which is why Cadasto B.V.
commits to keep publishing security fixes for at least five years after
each release, shipped only in the newest release
(
SECURITY.md).
The security environment FerroEHR assumes
These are the parts of the environment the manufacturer designs FerroEHR to rely on and does not provide itself (CRA Annex II point 4). The threat model names each as a trusted or semi-trusted actor.
- TLS termination. Every connection to the API is encrypted, either by the
server’s own listener (
[server.tls], TLS 1.3 by default, mutual TLS available) or by an ingress or proxy in front of it. The shipped default leaves[server.tls]unset; the hop behind a proxy is the deploying organisation’s, and the server cannot see whether it is encrypted (B1 network and protocol, server configuration). - An identity provider. Users and their credentials live in the deploying organisation’s OpenID Connect provider, which issues the tokens FerroEHR verifies. FerroEHR issues no credentials and manages no identity lifecycle, and a compromised identity provider defeats every control below it (enterprise identity providers, authentication). Basic authentication against a configured list is for service accounts and development.
- Database protection. The database is reached only by FerroEHR’s own credentials, one per domain and each least-privilege, over a network path restricted to the server, with TLS to the database, encryption at rest at the volume layer, and backups taken per domain. Anyone with a database connection is past every API control (B6 the database, database roles, TLS and database security, backup and recovery).
- The platform. A hardened cluster or host, operators the organisation trusts, and network policy around the instance (cluster hardening: the cluster, images, the workload, network and policy, secrets, detection and response).
- Off-box copies. A forwarding sink for the access log that the server’s identity cannot rewrite, and a monitored backup (B7 the audit trail).
Reasonably foreseeable use and misuse
The CRA distinguishes “reasonably foreseeable use”, use that “is not necessarily the intended purpose” but “is likely to result from reasonably foreseeable human behaviour or technical operations or interactions” (Art. 3(24)), from “reasonably foreseeable misuse”, use “not in accordance with its intended purpose, but which may result from reasonably foreseeable human behaviour or interaction with other systems” (Art. 3(25)).
Foreseeable uses the manufacturer accepts: a teaching or research instance holding synthetic or pseudonymised data; population queries over a pseudonymised cohort, which FerroEHR serves with small-cell suppression (cohort queries); the store behind a patient-facing service of the provider; a test system for an application vendor.
Foreseeable misuse, and what FerroEHR does about it:
| Misuse | What FerroEHR does | What remains |
|---|---|---|
Real patient data in an instance running the shipped sandbox profile | states the profile on the banner, in the log, on GET /rest/status and in the viewer | nothing refuses it; the Helm chart and the Compose files declare sandbox explicitly, and the chart’s values say what a deployment holding patient data sets |
| The quickstart Compose file in production, with its development user and RBAC off | the README and the Compose file call these development defaults; production refuses RBAC off unless rbac_off is accepted by name | nothing refuses it under sandbox; the go-live checklist is the control |
auth.enabled = false on a reachable network | production refuses it at boot unless auth_off is accepted by name (#3638) | an accepted gap is stated on every boot; the sandbox profile does not refuse it |
| A plaintext listener on a routable address with no TLS ingress in front | production refuses it at boot unless plaintext_listener is accepted by name; a loopback bind is exempt (#3638); a separate management listener (management.listen), which binds every interface in plain HTTP, opens the same gap (#3668) | a deployment behind a TLS-terminating ingress accepts plaintext_listener, and nothing checks that the ingress exists or that the management port is unreachable off the host |
| Several organisations in one instance | no tenant model exists to misconfigure; one instance per organisation is documented | nothing in the software can detect it (B5) |
| Real patient data on the public sandbox | the sandbox is labelled as demo data and wiped nightly | nothing refuses it |
| The access log switched off, or failing open, in production | production refuses audit_off and audit_fails_open unless each is accepted by name | an accepted gap is stated on every boot, and the organisation owns it |
| The access log shipped over plaintext syslog | the syslog feed sends over RFC 5425 TLS only, through ihe-atna (#3887) | none for the feed; the repository’s own TLS configuration is the deployment’s |
| Reads and writes straight against the database | the domain roles limit what each credential reaches | such access bypasses authorisation and the access log (B6) |
| Structural validation taken for clinical correctness | validation checks structure, invariants and terminology bindings only | clinical governance is the organisation’s (threat model) |
| openEHR conformance results, or these pages, taken for regulatory conformity | the compliance overview says FerroEHR holds no certification or declaration | none |
| A release run after a newer one is published | only the newest release is supported (SECURITY.md), and the release feed and advisories announce each new one; the end month of the five-year commitment is in every release’s notes and the running server states it on the boot banner, in ferroehr --version, on GET /management/info and GET /management/status, and logs a warning at boot and daily once it has passed (#3639) | nothing refuses to run; the server does not look for newer releases |
What the intended purpose excludes
The exclusions that hold for the whole EHR system, the medical-device purposes of the MDR first, are in the FerroHEALTH statement. For FerroEHR they mean:
- No diagnosis or advice. FerroEHR stores and returns records as written; it computes no diagnosis, score, alert or treatment advice.
- Hosting for several organisations. One instance serves one organisation.
- Identity management. FerroEHR verifies identities that another system issues.
- The interoperability component. Exchange in the European electronic health record exchange format is FerroBRIDGE’s part of the EHR system.
CRA risk assessment
This page is the cybersecurity risk assessment Cadasto B.V., the manufacturer of each tagged FerroEHR release, keeps under the Cyber Resilience Act (Regulation (EU) 2024/2847). CRA Art. 13(2) has the manufacturer “undertake an assessment of the cybersecurity risks associated with a product with digital elements and take the outcome of that assessment into account during the planning, design, development, production, delivery and maintenance phases”. Art. 13(3) says what the assessment holds: “an analysis of cybersecurity risks based on the intended purpose and reasonably foreseeable use, as well as the conditions of use”, and an indication of “whether and, if so in what manner, the security requirements set out in Part I, point (2), of Annex I are applicable to the relevant product with digital elements and how those requirements are implemented”, and of how Part I point (1) and the vulnerability handling of Part II are applied. Where a requirement does not apply, Art. 13(4) asks for “a clear justification to that effect” in the technical documentation. The assessment is point 3 of the technical documentation of CRA Annex VII.
The page is versioned with the release: this book is frozen with every release
at /docs/vX.Y.Z/, so each release’s documentation carries the assessment
that applied to it. The statuses below are those of revision 2 of the
assessment, 2026-10-07 (the table at the end lists the revisions).
- Scope and dates
- The basis: intended purpose, use and environment
- How the risks were analysed
- Annex I Part I(1): the level of cybersecurity
- Annex I Part I(2), point by point
- (a) No known exploitable vulnerabilities
- (b) Secure by default, and reset to the original state
- (c) Security updates, automatic updates, notification and postponement
- (d) Protection from unauthorised access, and reporting it
- (e) Confidentiality of stored, transmitted and processed data
- (f) Integrity, and reporting corruptions
- (g) Data minimisation
- (h) Availability, also after an incident
- (i) Minimal impact on other devices and networks
- (j) Limited attack surface
- (k) Exploitation mitigation
- (l) Recording and monitoring, with an opt-out
- (m) Secure removal of all data and settings, and secure transfer
- Requirements and limbs that do not apply
- Outbound data flows (Annex I Part I(2)(g))
- Annex I Part II: vulnerability handling
- Security-relevant paths
- Revisions
Warning
Every quotation is from the Official Journal text vendored in the repository at
docs/law/eu/cra/text.html(EUR-Lex); none of its three corrigenda touches Article 13 or the Annexes cited here. EHDS Art. 104 amends CRA Art. 13(4) and inserts Art. 32(5a); those changes are read fromdocs/law/eu/ehds/text.html. No conformity assessment has been carried out and no EU declaration of conformity exists. A status on this page describes the evidence the repository holds, never conformity.
Scope and dates
- The products assessed. Each tagged release: the
ferroehrbinaries, theferroehr,ferroehr-viewerandferroehr-postgresimages, the Helm chart and the source archive. The nineopenehr-*crates published on crates.io under Apache-2.0 are products of their own; this page covers them only where a row says so. - Who the requirements bind. Annex I Part I sets properties of the product, which the manufacturer ensures (CRA Art. 6(a), Art. 13(1)). Part II sets the manufacturer’s processes; its chapeau reads “Manufacturers of products with digital elements shall:”. A deploying organisation that runs an unmodified release is the addressee of neither.
- When. Annex I, Art. 13 and Art. 32 apply from 11 December 2027; Art. 14 from 11 September 2026 (CRA Art. 71(2)). The assessment runs now so that the gaps are closed before that date.
- The EHDS route. Cadasto B.V. declares FerroEHR with FerroBRIDGE as an EHR system. For such a product, CRA Art. 32(5a), inserted by EHDS Art. 104(3), routes the Annex I conformity through the EHDS Chapter III procedure, and CRA Art. 13(4) as EHDS Art. 104(1) replaces it lets this assessment “be part of the risk assessment required by those Union legal acts”. The hazard log is that EHDS-side assessment for FerroEHR’s part of the logging component; the recording of FerroBRIDGE’s FHIR facade accesses, from FerroBRIDGE 0.0.16, is documented with FerroBRIDGE’s releases. The technical documentation carries both.
The basis: intended purpose, use and environment
The intended-purpose statement is the basis Art. 13(3)
asks for. In one paragraph: FerroEHR stores, versions and queries the
structured health records of one healthcare provider, serves them to that
provider’s clinical applications through the openEHR REST API and AQL, and
records every access. It runs one instance per organisation, self-hosted by
the organisation or hosted by Cadasto B.V. as a service, on a PostgreSQL 18
cluster provisioned for that instance, behind TLS, with users in the
organisation’s identity provider. Its foreseeable misuse (the sandbox
profile holding real data, authentication off, a plaintext listener, several
organisations in one instance) is listed on that page with what the product
does against each.
The assets are those of the threat model: the clinical payload, the demographic parties and their identifiers, the EHR-to-subject link, the access log, the version history, the signing keys, the credentials, instance separation and availability.
The expected time in use is longer than five years, so Cadasto B.V.
commits to keep publishing security fixes for at least five years after each
release, shipped only in the newest release, which is the one release
supported (CRA Art. 13(8) and (10);
SECURITY.md
carries the reasoning, which is Annex VII point 4).
How the risks were analysed
CRA Art. 3(37) defines a cybersecurity risk as “the potential for loss or disruption caused by an incident”, “expressed as a combination of the magnitude of such loss or disruption and the likelihood of occurrence of the incident”. The analysis starts from the threat model, which walks eight trust boundaries (B1 to B8) and states the control and the residual risk at each. The register below rates each risk on the intended purpose and the shipped controls: the magnitude by the asset it reaches, the likelihood by what an actor needs to cause it. The ratings are the manufacturer’s judgement, on three levels (high, medium, low).
| # | Risk | Magnitude | Likelihood with the shipped controls | Controls | Annex I Part I(2) |
|---|---|---|---|---|---|
| C1 | An unauthenticated caller reads or writes clinical data | high | low under the intended purpose; high when auth.enabled = false is misused under sandbox or accepted by name under production | authentication on by default with a boot refusal when no mechanism is configured; production refuses auth.enabled = false unless auth_off is accepted by name; per-request authorisation | (b), (d) |
| C2 | An authenticated caller reaches EHRs outside their remit | high | medium: the shipped EHR_ACCESS default is open, which production refuses unless accepted by name | RBAC, the access evaluator over per-EHR EHR_ACCESS and the access policy, the patient scope; production refuses the role gate off (rbac_off) and an open EHR_ACCESS default (open_ehr_access_default) unless each is accepted by name; every access recorded | (d), (l) |
| C3 | Data in transit is read or altered on the network | high | low behind a TLS ingress or with the server’s TLS; high on a plaintext listener | rustls TLS 1.3 and mutual TLS, off by default; production refuses a plaintext main listener on a routable address and a separate plain-HTTP management listener unless plaintext_listener is accepted by name; the syslog audit feed sends over TLS only (ihe-atna); a boot warning on a plaintext routable bind | (e) |
| C4 | Someone with a database connection reads, rewrites or deletes data, bypassing the API | high | depends on the deploying organisation’s database protection | least-privilege roles per domain; append-only versions; version signatures verified on read; the hash-chained access log | (e), (f) |
| C5 | An access happens and the log does not show it, or the log is altered | high | low with fail_mode = "closed" and an off-box sink; medium with the shipped fail_mode = "open" | refusals always recorded; production refuses audit off and audit failing open unless accepted; the hash chain | (f), (l) |
| C6 | A national identifier or identifying content leaks into the clinical record, telemetry or a report | high | low | the identifier scanner in strict mode; log sanitising; reports with no identifiers | (e), (g) |
| C7 | A malformed or hostile payload crashes or corrupts the server | medium | low | memory-safe Rust with unsafe forbidden; overflow checks in release; fuzzed parsers; caught panics | (j), (k) |
| C8 | The service is made unavailable | high (clinical availability) | medium: an authorised caller holding resources is not defended against | admission limit with 503 shedding; rate limits; body, header and statement limits; replicas and a disruption budget | (h) |
| C9 | A vulnerable component ships in a release | high | medium | cargo deny advisories gate; image scan before tagging; daily re-scan; Dependabot; VEX for argued findings | (a) |
| C10 | A tampered artefact reaches a deployment | high | low | SLSA Build L3 provenance; SBOM attestations; signed tags; immutable releases; a signed chart | (f) |
| C11 | Data stays recoverable after the organisation removes it | medium | medium: the erase removes every schema and blob, and backups, WAL, replicas and the media stay the organisation’s to remove | physical delete of EHRs; ferroehr db erase for all data and settings; the decommissioning page | (m) |
| C12 | An outbound integration sends more than its purpose needs, or to the wrong place | medium | low: every integration is off by default | the flows table below | (g), (i) |
| C13 | A holder of [authz.rbac] admin_role, or someone with a stolen administrator token, grants a client or a person more than the deploying organisation intends | high | medium: from 5.7.1 the operational policy (system clients, the backend and DEMOGRAPHIC client lists, the clients persons sign in through, the delegates that act for them and the system callers admitted without a scope, imports and exports, trusted systems and origins, change-feed readers, SCIM clients, federation agreements, just-in-time admission, Basic users’ roles and scopes, and the subject-audit, access-service, import and identifier-read privileges) is data in the CDR that an administrator changes through the Demographic API, in force on the next request on every replica, where 5.7.0 needed an edit of the configuration file and a restart | [authz.grants] allowed in ferroehr.toml caps what the CDR may grant, and its default admits commit_composition alone; only admin_role writes or reads a policy party, and demographic AQL hides one from every other caller; no grant gives admin_role or emergency_access_role: a hold_roles grant naming one is refused, the administrator comes from a token issuer in role_issuers or the one Basic user [authz.rbac] first_admin names, and break-glass from role_issuers alone; every policy write is a versioned commit validated against its template and an access record; a federation agreement that breaks a legal check is refused at its commit; a request or a token whose grants cannot be read is refused with 503 | (b), (d), (l) |
| C14 | Someone reads a patient’s record through the patient portal as that patient’s representative without a representation in force, or a former representative is taken for the patient | high | low: from 5.7.1 a parent, a guardian or a proxy signs in through a patients issuer and reads the record the representation names | a representative is admitted only while their PERSON holds a live representation of the subject of the launch EHR (a PARTY_RELATIONSHIP carrying ferroehr-operations::represents, within its time_validity), and the request is confined to that EHR; an unrecorded or ended representation is refused with 403 and refused-representation-unrecorded; a login that holds or ever held a representation of the subject is judged only as a representative, never as the patient, and the binding side table keeps who once represented whom; the patient writes only a representation of their own record and changes only one they inserted; every access is recorded bound to the representative’s PERSON, naming the subject and the relationship | (b), (d), (l) |
Annex I Part I(1): the level of cybersecurity
“Products with digital elements shall be designed, developed and produced in such a way that they ensure an appropriate level of cybersecurity based on the risks.” The manufacturer applies it through the register above: each risk has a control, and each control is traced to a point of Part I(2) below. The text names no measures, so the level is set against the risks of a clinical data repository holding special-category data, where disclosure cannot be undone and unavailability is a patient-safety matter.
Annex I Part I(2), point by point
The chapeau reads: “On the basis of the cybersecurity risk assessment referred to in Article 13(2) and where applicable, products with digital elements shall:”. Each entry gives the requirement, whether it applies, how FerroEHR implements it, the evidence, the status (met, partial or gap, describing the evidence only) and the open work.
(a) No known exploitable vulnerabilities
“be made available on the market without known exploitable vulnerabilities”
- Applies: yes.
- How:
cargo denyfails the build on any RustSec advisory and on yanked crates, with each accepted advisory dated and reasoned indeny.toml. Each of the three images is scanned by Trivy by its pushed digest, on both platforms, before it is tagged, so only a passing digest gets a tag, and the published images are re-scanned every day. Every shipped binary, in the release tarballs and in the images, is built withcargo auditable, so it carries its Rust dependency list and an image scan sees the crate graph. Every release also scans each image and server binary with no severity floor and unfixed findings included, joins every finding with its OpenVEX statement, and is refused, before any image is tagged, while a finding has none; the joined record and the raw reports are release assets. The Rust advisory statements are checked against the resolved dependency graph, and an operating-system statement that argues from what a binary loads carries that linkage as data, which the release lane reads off both Rust binaries on both architectures and refuses a contradiction of (#3694). - Evidence:
deny.toml;trivy.yaml;.github/workflows/scan-and-tag.yml;.github/workflows/image-scan.yml;security/vex/;scripts/checks/vex-reachability.sh;scripts/checks/vex-coverage.sh;scripts/checks/vex-linkage.sh;.github/workflows/release.yml(vulnerability-record); the exploitability record. - Status: partial. Every finding of the full scan carries a judgement or the
release does not ship, and the scan reads the Rust dependencies of the
server and viewer binaries from the binaries themselves (#3674, #3675). The
CRA does not define “known”. Eight OS findings are judged
affectedand have no upstream fix: CVE-2026-8674 (a long resolver search domain) in all three images; three libxml2 and two glibc JISX0213 findings in theferroehr-postgresimage that a database login reaches through PostgreSQL’s XML functions, which FerroEHR itself never calls (#3673); and the krb5 CVE-2026-107778 inferroehr-postgres, reached only through a GSSAPI configuration FerroEHR does not ship. Each carries an action statement insecurity/vex/. Re-checked for 4.3.9 on 2026-10-15: the seven earlier statements are stillaffected, CVE-2026-107778 joined them, and #3708 is open, so the status stays partial. - Open: the eight
affectedfindings (#3708), until Debian ships fixes that a rebuild picks up; each such rebuild is a security-only patch with its advisory.
(b) Secure by default, and reset to the original state
“be made available on the market with a secure by default configuration, unless otherwise agreed between manufacturer and business user in relation to a tailor-made product with digital elements, including the possibility to reset the product to its original state”
- Applies: yes. The tailor-made carve-out does not: a public release is not a tailor-made product agreed with a business user.
- How: authentication on, with a boot refusal when no mechanism is
configured; RBAC on; the admin and management surfaces off; every
integration off; Swagger UI
private; the rate limiter on; version signing on; the identifier scannerstrict. Weak settings are refused at boot: analg: nonetoken, a symmetric algorithm, a non-HTTPS issuer, an Argon2id hash below the floor. The chart runs non-root with a read-only root filesystem, all capabilities dropped,RuntimeDefaultseccomp and an ingress NetworkPolicy, and its validation fails a render that loses any of them. - Evidence:
app/ferroehr/assets/ferroehr.default.toml;app/ferroehr/src/config/auth.rs;app/ferroehr/src/config/deployment.rs;deploy/helm/ferroehr/values.yaml(config.deployment.profile);docker-compose.yml;deploy/helm/validate.sh;scripts/deploy-probes/reset.sh; the workload; returning to the original state. - Why
sandboxis the default: the binary, the chart and the Compose files all ship and declaredeployment.profile = "sandbox". Aproductiondefault would refuse to start until the deployment has separate database credentials per domain, a declared subject namespace, a closed audit fail mode and a schema-preparation credential of its own, none of which a first boot, an evaluation or the quickstart has. An installation that cannot start invites accepting every gap by name only to make it start, which records a choice nobody made deliberately. Asandboxmakes no such choice for the operator and stays loud instead: it names every open separation on the boot banner, in the log and on/management/status, andGET /ferroehr/rest/statusreports the profile, so a sandbox cannot pass for a production instance. It also means no existing deployment changes behaviour by upgrading. The instructions for a deployment holding patient data are to setproduction, which refuses every open separation that is not accepted by name. - Which shipped defaults a production holder keeps: these are secure as
shipped and
productionraises nothing about them: authentication on, RBAC on, the admin API and every management endpoint off, Swagger UIprivate, the rate limiter on, version signing on indigestmode with read-time verificationstrict, the identifier scannerstrictover every shipped rule, and the audit trail on with the local store and noretention, which the server refuses at boot where a jurisdiction in force sets a ceiling. These must change, andproductionrefuses them:authz.rbac.ehr_access_default = "open",audit.fail_mode = "open", an emptyprivacy.subject_namespaces, one database credential for every domain, anddatabase.migrations = "apply"on the runtime credential. Three may be accepted by name when the deployment closes them outside the server:plaintext_listener, when a TLS-terminating ingress fronts the port, andshared_cluster, when one PostgreSQL cluster holds the domains in separate schemas under separate roles. The usage report is on by default; it carries no health data (outbound data flows). - Reset: the book documents returning an instance to its original state,
configuration and database, for Docker Compose, Kubernetes and a single
binary. The deployment probe harnesses run the Compose and the Helm
procedures and read the outcome back: the database volume or the database is
gone, an EHR written before the reset is not found, the reinstalled server
migrates the empty database (
P-K8S-RESET-*), and the Compose server reports the shipped configuration (P-RESET-*). - Status: partial. The shipped profile is
sandbox, so a deployment holding patient data is secure only after it setsproductionand closes the five refused defaults above. The single-binary reset is documented and not exercised by a probe; its database step is the one the Helm probe runs. - Open: none for the reset.
(c) Security updates, automatic updates, notification and postponement
“ensure that vulnerabilities can be addressed through security updates, including, where applicable, through automatic security updates that are installed within an appropriate timeframe enabled as a default setting, with a clear and easy-to-use opt-out mechanism, through the notification of available updates to users, and the option to temporarily postpone them”
- Applies: the security-update limb, yes. The automatic-update limb, no: see the justification. The notification limb, yes: the sentence does not place it under “where applicable”, and this assessment reads it as applying. Postponement is inherent, because the deploying organisation decides when to upgrade.
- How: a fix ships in the next tagged release, as a security-only patch
unless a recorded reason makes that infeasible; there are no backports
(CRA Art. 13(10)). Users learn of it through the GitHub release, its notes,
the security advisory and the
### Securitychangelog section; the release feed (https://github.com/FerroHEALTH/FerroEHR/releases.atom) and the advisory listing (GET https://api.github.com/repos/FerroHEALTH/FerroEHR/security-advisories) are the subscription routeSECURITY.mdnames. The running server states the end month of the commitment for its release (five years from the month of its release date) on the boot banner, inferroehr --version, onGET /management/infoand onGET /management/statusassupport.status, and once that month has passed it logs a warning at boot and once a day (Art. 13(19)). - No in-product update check. The server does not contact anyone to learn of a newer release. The point names “the notification of available updates to users” and is silent on whether the product itself must deliver it. FerroEHR has no end-user interface of its own: its users are the deploying organisation’s operators and the applications that call its API, and an update reaches a deployment only through the operators’ change control. The notice goes to them through the feed and the advisory listing. A check from the server would add an outbound connection from every instance holding special-category data, would fail wherever the organisation blocks egress (as the chart’s egress policy lets it), and would reach the operators only as a log line.
- Evidence:
SECURITY.md;app/ferroehr/src/support.rs;app/ferroehr/src/banner.rs(banner_states_the_support_period); how long a version is supported; upgrades. - Status: met for the security-update and notification limbs, with the notice delivered outside the product as stated above.
- Open: none.
(d) Protection from unauthorised access, and reporting it
“ensure protection from unauthorised access by appropriate control mechanisms, including but not limited to authentication, identity or access management systems, and report on possible unauthorised access”
- Applies: yes. The list is open (“including but not limited to”); the duty is appropriate mechanisms.
- How: Basic (Argon2id) and bearer authentication through the
ferrohealth-smartcrate: asymmetric signature algorithms only, the RFC 9068 profile by default, and each issuer’s metadata and keys read at boot. Every route carries a SMART on openEHR scope requirement, and apatient/grant reaches only the EHR of the token’s launch context. Then RBAC, and the access evaluator over per-EHREHR_ACCESSand the controller’s access policy. A restrictedEHR_ACCESSdefault holds with the role gate off, and is refused at boot with authentication off. With a patient claim configured, the patient scope applies to the EHR row and to every versioned object on every query plan and on the direct EHR, composition and status routes. An EHR that records no subject is refused to a patient caller, and so is one whose subject id another namespace also holds, unless[auth] patient_namespacenames the namespace the claim is issued in. Every refused access (401,403) is recorded in the access log and counted in theauth_failuresmetric. - Evidence:
app/ferroehr-rest/src/extensions/access/;app/ferroehr-rest/src/system_log/middleware.rs;app/ferroehr/src/telemetry/metrics.rs; authentication, authorization;app/ferroehr/src/config/deployment.rs(production_refuses_auth_off_unless_accepted_by_name,production_refuses_rbac_off_and_a_restricted_default_stays_closed); deployment profile. - Status: met. Reporting is met.
productionrefusesauth.enabled = falseat boot unlessauth_offis accepted by name, and[authz.rbac] enabled = falseunlessrbac_offis; an accepted gap is stated on every boot. The shippedsandboxprofile accepts both, which (b) records. - Open: none beyond (b).
(e) Confidentiality of stored, transmitted and processed data
“protect the confidentiality of stored, transmitted or otherwise processed data, personal or other, such as by encrypting relevant data at rest or in transit by state of the art mechanisms, and by using other technical means”
- Applies: yes. The means are a menu (“such as”); application-level encryption at rest of the clinical payload is not used, with the justification.
- How: in transit, rustls with TLS 1.3 by default and mutual TLS, or a
TLS-terminating ingress; integrations offer TLS (syslog over TLS,
HTTPS-only S3 by default); a renewed server certificate is served without a
restart, on
SIGHUPand every[server.tls] reload_interval. At rest, protected national identifiers sealed under AES-256-GCM with a keyed lookup digest, per party version, inside the party commit; a write response serves the sealed form, an import or admin load carrying a protected value in plaintext is refused, and a dump carries the sealed rows as ciphertext. Other technical means: three pseudonymisation domains on separate credentials, checked byproduction; secrets that never render; log sanitising. - Evidence:
[server.tls]inferroehr.default.toml; B1, B6, the sealed identifier, TLS and database security. - Status: partial. The shipped transport default is plaintext, and
identifier sealing is off by default.
productionrefuses a plaintext main listener on a routable address unlessplaintext_listeneris accepted by name, and a loopback bind is exempt; a deployment behind a TLS-terminating ingress accepts the gap by name, because the ingress carries the encryption (app/ferroehr/src/config/deployment.rs,production_refuses_a_routable_plaintext_listener_and_exempts_loopback). The separate management listener (management.listen) binds every interface in plain HTTP, so setting it opens the same gap (production_refuses_a_plain_management_listener_on_its_own_port). The syslog audit feed sends over RFC 5425 TLS only, throughihe-atna(app/ferroehr/tests/it/system_log_tls_roundtrip.rs,tls_octet_counted_frame_round_trips). The change-event outbox sends nothing: its readers pull it over the main listener (#4786). An enabled audit FHIR feed on anhttp://URL opensplaintext_audit_feed, and an enabled multimedia store withan http:// urlopensplaintext_object_store(#3689,production_refuses_a_plaintext_audit_feed_and_object_store_unless_accepted). - Open: none.
(f) Integrity, and reporting corruptions
“protect the integrity of stored, transmitted or otherwise processed data, personal or other, commands, programs and configuration against any manipulation or modification not authorised by the user, and report on corruptions”
- Applies: yes, to data, programs and configuration. The configuration limb is split with the deploying organisation, with the justification.
- How: data: immutable versions, each signed (digest or OpenPGP) and
verified on read in
strictmode by default; the access log is hash-chained in the database over every column of a record, the render policy its FHIR document is rendered under is checked against its digest, andUPDATE,DELETEandTRUNCATEon it are refused. The runtime roles read the migration bookkeeping of their schema and cannot write it, and the server refuses to start while one can. Programs: SLSA Build L3 provenance and SBOM attestations, cosign on the chart, signed tags, immutable releases, a read-only root filesystem. Configuration: unknown keys and unknownFERROEHR__variables are refused at boot. - Evidence:
app/ferroehr/src/versioning/integrity.rs;app/ferroehr/migrations/audit/0003_tamper_chain.sql;app/ferroehr/migrations/audit/0011_chain_digest_v2.sql;app/ferroehr/src/system_log/chain_check.rs;app/ferroehr/tests/it/audit_chain.rs(the_chain_check_reports_a_tampered_record_on_the_health_surface,the_current_digest_covers_every_column,every_hashed_column_is_tamper_evident);app/ferroehr/migrations/clinical/0014_bookkeeping_read_only.sqland its party twin;app/ferroehr/src/config/strict.rs; tamper evidence; verifying releases. - Status: met. A signature failure on read is refused and logged. The
server verifies the access-log chain one minute after boot and then every
[audit.store] verify_interval(default86400;0turns it off). A finding is logged atERROR, counted inatna_audit_chain_findingswithkinddamageorunverifiable, and shown by theaudit_chainindicator onGET /health/readiness(DEGRADEDwhen damaged or unverifiable), which never flips readiness. Each replica runs its own check. A deployment that sets the interval to0reports a corruption only when an operator runsaudit.verify_audit_chain(). - Open: none.
(g) Data minimisation
“process only data, personal or other, that are adequate, relevant and limited to what is necessary in relation to the intended purpose of the product with digital elements (data minimisation)”
- Applies: yes, measured against the intended purpose.
- How: the clinical record carries pseudonymous subject references; the
identifier scanner refuses national identifiers in clinical content; the
identity, the link and the access log sit in their own domains; telemetry
carries no identified data; the access-log category classification never
reaches spans, logs or metrics;
ferroehr reportidentifies no person. - Evidence:
app/ferroehr/src/privacy/;app/ferroehr/src/telemetry/log_sanitize.rs; privacy and data minimisation; the pseudonymisation boundary. - Status: met for the processing the intended purpose needs; each outbound flow is justified in the flows table.
(h) Availability, also after an incident
“protect the availability of essential and basic functions, also after an incident, including through resilience and mitigation measures against denial-of-service attacks”
- Applies: yes. The measures named are an open list.
- How: an admission limit sheds load with
503andRetry-After; per principal and per address rate limits, on by default; body limits, header read timeouts, HTTP/2 stream caps, statement and query timeouts and a result-row cap; panics caught; two replicas, a disruption budget and topology spread in the chart; backup and point-in-time recovery documented. - Evidence:
app/ferroehr-rest/src/overload.rs;app/ferroehr-rest/src/rate_limit.rs;app/ferroehr-rest/src/limits.rs; request limits; backup and recovery. - Status: met. The residual risk is stated in the threat model: an authorised caller holding resources is not defended against, and the limiter is per process.
(i) Minimal impact on other devices and networks
“minimise the negative impact by the products themselves or connected devices on the availability of services provided by other devices or networks”
- Applies: yes.
- How: every outbound integration is off by default and bounded when on (retry limits, batch sizes, poll intervals, connect and request timeouts). The usage report sends at most one start report per ten minutes per instance and one daily report, each at most 64 KiB. A default-deny egress policy is available in the chart.
- Evidence:
ferroehr.default.toml;deploy/helm/ferroehr/values.yaml(networkPolicy.egress); usage report. - Status: met.
(j) Limited attack surface
“be designed, developed and produced to limit attack surfaces, including external interfaces”
- Applies: yes.
- How: optional surfaces are off by default (admin, management, SMART,
multimedia, events, the terminology API); Swagger UI is
private; optional integrations are compiled behind features; the runtime images are distrolessnonrootwith no shell; the chart installs an ingress NetworkPolicy. - Evidence:
docker/Dockerfile;docker/viewer/Dockerfile; operational surfaces. - Status: met.
(k) Exploitation mitigation
“be designed, developed and produced to reduce the impact of an incident using appropriate exploitation mitigation mechanisms and techniques”
- Applies: yes.
- How: Rust with
unsafe_code = "forbid"across the workspace andoverflow-checks = truein release builds; a non-root UID, no shell, a read-only root filesystem, all capabilities dropped,RuntimeDefaultseccomp and user namespaces; database credentials split so one leaked DSN reaches one domain. - Evidence:
Cargo.toml([workspace.lints.rust],[profile.release]); the workload; secrets, detection and response. - Status: met.
(l) Recording and monitoring, with an opt-out
“provide security related information by recording and monitoring relevant internal activity, including the access to or modification of data, services or functions, with an opt-out mechanism for the user”
- Applies: yes.
- How: the access log records every API access, every record a read or a
query served, and every refusal, in DICOM PS3.15 and FHIR
AuditEventform, with syslog and FHIR-feed sinks and ITI-81 retrieval; metrics and traces cover the rest. The opt-out is[audit] enabledand[audit.store] enabled;productionrefuses audit off unless accepted by name. - Evidence:
app/ferroehr/src/system_log/;app/ferroehr-rest/src/system_log/; audit trail; observability. - Status: met. A deploying organisation may owe the log under the EHDS or national law, so whether it may use the opt-out is outside the CRA.
(m) Secure removal of all data and settings, and secure transfer
“provide the possibility for users to securely and easily remove on a permanent basis all data and settings and, where such data can be transferred to other products or systems, ensure that this is done in a secure manner”
- Applies: yes.
- How:
ferroehr db erase --confirm <instance>removes all data and settings in one operation: every multimedia blob, then the four schemas with every domain, the access log, the stored settings and the instance id. Run without--confirmit erases nothing and prints what it would remove and the value that confirms it.DELETE {base}/admin/ehr/{ehr_id}andDELETE {base}/admin/ehr/allremove single EHRs with every version and orphaned multimedia; template and stored-query deletes exist. Transfer runs over the authenticated API and/ferroehr/rest/extensions/v1/admin/dump, over TLS when the deployment enables it. - Evidence:
app/ferroehr/src/decommission.rs;app/ferroehr/tests/it/decommission.rs; decommissioning; physical deletion; dump and load. - Status: met, shipped in #3642. The decommissioning page lists what the erase cannot reach and the deploying organisation removes: backups, WAL archives and replicas, the chart’s Secrets and claims, the database roles, configuration files, and the data held by systems the instance sent to. Sanitising the physical media is the organisation’s. A single party has no physical delete over REST, because the openEHR Admin API defines none; the page says so and names the alternatives.
Requirements and limbs that do not apply
CRA Art. 13(4): “Where certain essential cybersecurity requirements are not applicable to the product with digital elements, the manufacturer shall include a clear justification to that effect in that technical documentation.”
Automatic security updates (Annex I Part I(2)(c) and Part II(7))
Part I(2)(c) asks for automatic security updates “where applicable”, and Part II(7) for distribution “where applicable for security updates, in an automatic manner”. Neither applies to FerroEHR:
- FerroEHR is a clinical server run under its operator’s change control: the deploying organisation for a self-hosted instance, Cadasto B.V. for an instance it hosts as a service. An upgrade can carry a database migration that the operator schedules, backs up for and verifies, so in both cases the operator applies an update, never the product by itself.
- A clinical data repository is a system whose unavailability is a patient-safety matter (threat model, asset “Availability”). An update the manufacturer installs on its own schedule would restart the service and migrate the schema at a moment no clinician or operator chose.
- The operator controls the host, the cluster, the image registry it pulls from and the network. FerroEHR has no channel of its own into a deployment, and adding one would be an inbound path into a system holding special-category data, against (j). Where Cadasto B.V. hosts an instance, it applies updates as that instance’s operator under its own change control, not through the product.
- Updates are distributed securely by other means: signed, immutable releases
with provenance, digest-pinned images, the moving
<major>.<minor>tags an organisation can follow with its own tooling, and the advisory that tells it to.
So the automatic-installation limb and the opt-out that goes with it do not apply, and CRA Annex II point 8(e) (how to turn automatic installation off) has nothing to describe. The notification limb still applies (#3639).
Application-level encryption at rest (Annex I Part I(2)(e))
Part I(2)(e) names encryption at rest as one of the means (“such as”). FerroEHR does not encrypt the clinical payload before it reaches PostgreSQL:
- The payload is stored as canonical openEHR JSON that AQL queries inside; encrypting those fields in the application would make them unqueryable, which defeats the intended purpose.
- Encryption at rest is provided where the data is stored: at the volume or disk layer, which the deploying organisation provisions (TLS and database security).
- The fields whose disclosure re-identifies a person directly, the protected national identifiers, are sealed in the application (AES-256-GCM), because they are looked up by digest and never queried by content.
- Confidentiality at rest is further carried by “other technical means”: the separated domains and credentials, and least-privilege roles.
Configuration integrity (Annex I Part I(2)(f))
Part I(2)(f) lists “configuration” among what must be protected against
modification “not authorised by the user”. FerroEHR protects the configuration
it reads: unknown keys and unknown FERROEHR__ variables stop the boot, secrets
are read from mounted files, and the effective configuration is printed
redacted on demand. It does not sign or checksum its configuration file. The
file lives on the deploying organisation’s host or in its Kubernetes secrets
and config maps, under that organisation’s access control, and whoever can
change it there is, by the organisation’s own decision, a user authorised to
configure the product. Protecting it against other modification is the
platform’s job (secrets, detection and response).
Outbound data flows (Annex I Part I(2)(g))
Every connection FerroEHR opens on its own initiative, with what it carries and why. The database connections are the product’s own storage and are not listed.
| Flow | Default | Carries | Purpose, against the intended purpose |
|---|---|---|---|
Usage report to report.ferropulse.eu | on | instance id, version, commit, specification profile, licence grant type, deployment method, uptime, database health, PostgreSQL major version, CPU and memory ranges, and daily performance aggregates (fields) | Not part of the clinical purpose: it serves the manufacturer’s view of which versions, licence types and deployment sizes run. It carries no health data and no data from a request; the collector refuses an unknown member; the body is at most 64 KiB; ferroehr usage-report --print shows it before it is sent; one switch turns it off. Cadasto B.V. decided on 2026-10-06 to keep it on by default and accepts the residual risk, after an adjudication that read ePrivacy Art. 5(3) as requiring prior consent (privacy notice) |
Authorization-server metadata and keys from each [auth] issuer | when an issuer is configured | the issuer’s well-known URLs; no request data | verifying the tokens the provider’s identity provider issues |
Token introspection (mode = "introspection" in an [[auth.issuer]] table) | off | each bearer token presented to FerroEHR, with the client credential of [auth.issuer.introspection.client] or the token of [auth.issuer.introspection.bearer] | asking the issuer whether an opaque access token is active (RFC 7662) |
Patient identity source over PIXm ([record] subject_index = "pixm") | on (the default provider) | the subject identifier and its assigning authority as ITI-83 specifies, with the client credential of [pixm.endpoint.credentials.oauth] when set | resolving a subject to the pseudonym its EHR carries; the source is never asked to resolve a pseudonym back |
Client-credentials token requests ([audit.fhir_feed.endpoint.credentials.oauth], [terminology.endpoint.credentials.oauth]) | off | the product’s own client credential and the requested scope; no request data | authenticating the product to the deployment’s audit feed and terminology server |
Terminology server ([terminology]) | off | codes and value-set references to validate, expand or subsume | validating terminology bindings on write and expanding TERMINOLOGY() in AQL |
Multimedia to S3 ([record.multimedia]) | off | DV_MULTIMEDIA bytes above a size threshold, keyed by content hash | storing large attachments of the record outside the database |
Access log to syslog ([audit.syslog]) and to a FHIR feed ([audit.fhir_feed]) | off | access records | an off-box copy of the access log, which the threat model asks for |
Traces and metrics over OTLP (telemetry.otlp.endpoint) | off | spans and metrics, with identified data sanitised out | operating the instance |
Each integration except the usage report carries only what its purpose in the provider’s deployment needs, and only to a destination the deploying organisation configures.
Annex I Part II: vulnerability handling
Part II binds Cadasto B.V. These are processes, carried out partly through the
repository’s tooling; none is a property of the software a deployment runs.
The manufacturer’s policy is the same for every FerroHEALTH product and is
published in the FerroHEALTH book
(security,
post-market); the steps bound
to FerroEHR’s repository are docs/post-market.md.
| Point | How the manufacturer applies it | Status | Tracker |
|---|---|---|---|
| (1) Identify components; SBOM | an SBOM per published artefact: CycloneDX of the cargo graph per binary, SPDX per image, SPDX of the repository, CycloneDX per openehr-* crate attested against its .crate archive, and CycloneDX per chart version naming its images by digest, explained in the SBOMs; vulnerabilities in VEX, deny.toml, the changelog and each release’s exploitability record | met | shipped, #3643 |
| (2) Remediate without delay; security updates apart from functionality | acknowledgement within about 5 and assessment within about 10 business days; a fixed release within 7, 30 or 90 days of the confirmed assessment for a Critical, High or Medium vulnerability and with the next release for a Low one; a fix ships as a security-only patch unless the release notes record why that is infeasible (the FerroHEALTH security policy, linked from SECURITY.md) | met as policy from this change on | shipped, #3644 |
| (3) Regular security tests and reviews | daily fuzzing of seven parsers, CodeQL, OpenSSF Scorecard, clippy with the reliability lints, cargo deny, image scans, conformance runs, the deploy probe | met | none |
| (4) Disclose fixed vulnerabilities | a GitHub security advisory for every fixed vulnerability, with CVSS, affected and fixed versions and remediation, and the criteria for a delay (the FerroHEALTH security policy, SECURITY.md, docs/post-market.md); no advisory has been published yet | partial: the commitment is written, the record starts with the next fix | shipped, #3645 |
| (5) Coordinated vulnerability disclosure | the FerroHEALTH security policy, with FerroEHR’s reporting routes and scope in SECURITY.md and security.txt | met | none |
| (6) Share vulnerability information; a contact address | GitHub private reporting and security@cadasto.com; component vulnerabilities reported upstream and recorded in a register | met as policy from this change on | shipped, #3646, #3648 |
| (7) Distribute updates securely | provenance, attestations, signed tags, immutable releases, digest-pinned and scanned images, crates.io Trusted Publishing; the automatic limb does not apply (above) | met | none |
| (8) Disseminate updates without delay, free of charge, with advisories | public, immutable releases and moving tags; advisories under (4); whether “free of charge” holds for every commercial licence is a point for counsel | partial | shipped, #3645; counsel’s answer open, #3647 |
Security-relevant paths
These are the paths of the repository that hold an asset or a control of the
register above. A release that changes any of them since the previous release
is refused unless this page gains a row in its Revisions table:
scripts/checks/cra-risk-assessment.sh --since <previous tag> runs in the
release lane, and the same script refuses a declared path that no longer
exists, so the list cannot rot. CRA Art. 13(14) asks for procedures that keep
each product of a series in conformity as its design changes.
app/ferroehr-rest/src/extensions/accessauthentication, the RBAC gate, the patient scope and the enforcement pointapp/ferroehr-rest/src/smartSMART scope enforcementapp/ferroehr/src/config/auth.rsthe authentication configurationapp/ferroehr/src/config/authz.rsthe authorization configurationapp/ferroehr/src/config/deployment.rsthe deployment profiles and their refusalsapp/ferroehr/src/system_logthe access log and the audit chainapp/ferroehr-rest/src/system_logthe audit middlewareapp/ferroehr/migrations/auditthe audit storeapp/ferroehr/src/versioning/signatureversion signingapp/ferroehr/src/versioning/integrity.rsthe integrity check of stored versionsapp/ferroehr/src/privacythe pseudonymisation boundaryapp/ferroehr/src/decommission.rsthe erase of all data and settingsdocker/Dockerfilethe server imagedocker/viewer/Dockerfilethe viewer imagedocker/postgres/Dockerfilethe database imagedeploy/helm/ferroehr/templatesthe chart’s security contexts and policiesdeploy/helm/ferroehr/values.yamlthe chart’s shipped defaults
Revisions
CRA Art. 13(3) has the assessment “updated as appropriate during a support period”, and Art. 13(7) has the manufacturer update it “where applicable” as vulnerabilities and third-party information arrive. It is revised:
- with every release whose changes touch an asset or a control in the register (the security-relevant paths, gated at release, #3649);
- when a vulnerability or an incident shows a risk the register does not name;
- when the intended purpose changes.
| Version | Date | Change |
|---|---|---|
| 1 | 2026-10-06 | First assessment, from the CRA Annex I audit of #3611 |
| 2 | 2026-10-07 | (a): the per-release exploitability record (#3636), the viewer image scanned before it is tagged (#3674) and every release binary and image binary built with cargo auditable (#3675); (b): the declared profile in the chart and the Compose files, the reasons for sandbox and the shipped defaults a production holder keeps, and the reset procedure (#3637); Part II(1): SBOMs for the crates and the chart (#3643); the declared security-relevant paths and their release gate (#3649); (m): the erase command and the decommissioning page (#3642); (e): a plaintext amqp:// broker refused under production (#3676); (e): a plain http:// audit FHIR feed and a multimedia store with an http:// url refused under production (#3689); (b): the Helm reset run by the Kubernetes probe harness (#3677) |
| 3 | 2026-10-08 | Part II: the manufacturer’s vulnerability-handling and post-market policy is cited from the FerroHEALTH book, where it moved for every FerroHEALTH product; the measures are unchanged (#3701) |
| 4 | 2026-10-08 | Reviewed for release 4.3.6 against the security-relevant paths changed since 4.3.5: the outbound FHIR emitter and its AMQP flow are gone with the in-tree connector (#3080), so the outbound-flow table names change events alone on AMQP; (a): the ferroehr-postgres image drops GnuPG and gosu, and every operating-system finding of the three images carries an OpenVEX judgement in security/vex/ (#3673) |
| 5 | 2026-10-15 | Reviewed for release 4.3.9 against the security-relevant paths changed since 4.3.6. (d): the ABAC patient scope covers queries that read only the EHR row and every query plan, the direct routes refuse a subject-less or ambiguous EHR to a patient caller, and [authz.abac] patient_namespace names the claim’s namespace (#3771); ehr_access_default = "restricted" holds with the role gate off, is refused at boot with authentication off, and the role gate off is the rbac_off gap production refuses (#3742); the viewer’s Basic sign-in follows only a same-origin next. (e): protected national identifiers sealed per party version inside the commit, write responses serving the sealed form, plaintext protected values refused on import and admin load (#3772); the server certificate re-read every reload_interval_secs and EC keys in SEC1 or PKCS#8 (#3765, #3761); the OIDC 503 and a JWK Set parse error no longer quote the provider’s URLs or key material (#3666); the CDR and the viewer verify an identity provider against the platform trust store (#3767). (f): digest version 2 of the audit chain over every column (#3686); the runtime roles read-only on the migration bookkeeping, checked at boot in every database a pool reaches; version-signing errors carry their cause once (#3684). (a): rustls 0.23.46 for RUSTSEC-2026-0346 to -0349, and the release lane checks the linkage the OS VEX statements rest on (#3694); the seven affected findings of #3708 are unchanged. The chart: in-chart clients follow the server’s TLS (#3714), FerroBRIDGE as an opt-in, cluster-internal workload (#3713), client_auth: required refused at render (#3760), an Ingress in front of a TLS listener sending TLS to it (#3766), and the migration Job under its own hook ServiceAccount. No risk added to the register |
| 6 | 2026-10-19 | Reviewed for release 5.0.0 against the security-relevant paths changed since 4.3.11: in app/ferroehr/src/privacy/detect.rs the Finnish personal identity code rule cites Valtioneuvoston asetus väestötietojärjestelmästä 128/2010, 2 §, in place of the agency’s web page (#3840); the detection and its control-character table are unchanged. No risk added to the register |
| 7 | 2026-10-20 | Reviewed for release 5.1.0 against the security-relevant paths changed since 5.0.0. (d): authentication and the SMART on openEHR scope check move onto the shared ferrohealth-smart crate (#3872): only asymmetric algorithms verify a token, so the HMAC key is gone, every route carries a scope requirement, and a patient/ grant is confined to the launch context’s EHR, with the route parameter read from the full request path. The audit FHIR feed and the remote policy service authenticate with an OAuth 2.0 client-credentials token, and a policy service that cannot be reached with one fails the request closed (#3829), so the outbound-flow table names the token requests and the issuer metadata read at boot. (e): the chart mounts a database CA for sslmode=verify-full (database.caConfigMap), which the Kubernetes probe observed against four TLS clusters (#3788); a rotated mTLS client CA is re-read without a restart (#3769). No risk added to the register |
| 8 | 2026-10-20 | Reviewed for release 5.2.0 against the security-relevant paths changed since 5.1.0. (d): authentication moves to ferrohealth-smart 0.3.1 (#3875): the crate now caches verified Basic credentials under a keyed hash ([auth.basic] cache_ttl_seconds, default off), refuses a bearer value outside the RFC 6750 §2.1 b64token syntax as invalid_token, and refuses a blank sub, each of which FerroEHR held itself before; [auth] scopeless_subjects is honoured under the SMART on openEHR requirement. The EHDS Art. 8 restriction of access hides restricted data from every professional route, query and export, with an emergency override by a configured role and a declared emergency purpose (#3682). (e): a party’s protected national identifiers are read back only through an admin route that also needs authz.rbac.identifier_reader_role, and every read is an access record (#3776); an EHR extract never carries a sealed identifier between deployments (#3777). No risk added to the register |
| 9 | 2026-10-22 | Reviewed for release 5.3.0 against the security-relevant paths changed since 5.2.0. (l): the access log is written through FerroAUDIT’s ehds-logging and ihe-atna 0.2.4 (#3887, #3902): the record carries the token’s issuer, client and jti, the ITS-REST operation id and the outcome again, names each category by its HL7 Europe <system>|<code> token and says what the classification was read from (audit migration 0012); the syslog feed sends over RFC 5425 TLS only, so the UDP transport and its audit_syslog_udp deployment gap are gone. (d): authentication moves to ferrohealth-smart 0.4.0, and a Basic request the verified-credential cache admits writes no login record (#3895); the SMART launch route reads ehr_id with the one form decoder every query parameter now uses (#3891). (a): rustls-webpki 0.103.16 and the webpki roots 1.0.10 for RUSTSEC-2026-0381 to -0383 (GHSA-pmpg-vfwr-99qv). Both images build on Rust 1.99.1 with the builder digest re-resolved; the other paths changed only in tests. No risk added to the register |
| 10 | 2026-10-22 | Reviewed for release 5.3.2 against the security-relevant paths changed since 5.3.0; the v5.3.0 and v5.3.1 tags exist but their releases never published, so 5.3.2 is the first release since 5.2.0 and revision 9 covers the rest of its changes. (a): the distroless runtime base of both images is re-resolved to ca-certificates 20250419+deb13u1 for DSA-6572-1 (#3926, GHSA-pmpg-vfwr-99qv), the only package that differs from the previous base, which removes the compromised eMudhra (emSign) intermediates from the system trust store. No risk added to the register |
| 11 | 2026-10-24 | Reviewed for release 5.4.0 against the security-relevant paths changed since 5.3.3. (f): in [record.signing] mode = "pgp" an ECDSA or Ed448 signing key is refused at boot, so the constant-time defect of RUSTSEC-2026-0387 in crypto-bigint 0.5.5 is reached only over public keys and signatures, in verification (#3965, security/vex/rust-advisories.openvex.json); the signer takes the newest subkey that may sign, never a revoked or expired one, the primary key only when its self-signature grants signing, and no subkey while the primary key is revoked or expired (RFC 9580 §5.2.3.10, §5.2.3.13; #3967, #3969, #3971). (l): the audit drain closes its syslog connection with a TLS close_notify when it exits, so the records it sent last are not lost (#3959, ihe-atna 0.2.5). (a): the viewer image build no longer downloads the Tailwind standalone binary, one fewer third-party build input (#3932). No risk added to the register |
| 12 | 2026-10-24 | Reviewed for release 5.4.1 against the security-relevant paths changed since 5.4.0. (d): under SMART an authenticated request for a method the route does not serve is answered 405 with Allow before the scope check, and a request without a credential is still 401, so the scope check runs only on served methods (#3987). (e): the CDR asks one terminology server under [terminology] with one client credential, mounted by the chart as secrets.terminologyClientSecret; its token endpoint URL is masked in every rendering of the grant; terminology inputs travel in a POST body, so a code no longer appears in a URL; the per-server mutual-TLS certificates and pinned trust bundles are removed, and the server is verified against the platform trust store (#3085). The chart’s NetworkPolicy wording follows the renamed key without a rule change. No risk added to the register |
| 13 | 2026-10-25 | Reviewed for release 5.4.2 against the security-relevant paths changed since 5.4.1. (f): in [record.signing] mode = "pgp" a valid Certification Revocation of a Direct Key signature, created at or after it, cancels that signature, so neither its signing flag nor its key expiration lets the primary key sign (RFC 9580 §5.2.1.13, §5.2.3.10; #3972). (l): an access record whose patient lookup failed says unavailable instead of not-found, so a search by the patient’s identifier can tell a failed lookup from an EHR without a subject (Regulation (EU) 2025/327 Art 9(1); #3900); ihe-atna 0.2.7 answers the syslog connection’s liveness probe without a timer tick, which removes a millisecond wait per record from the audit drain (#3954). (d): ferrohealth-smart 0.5.0 refuses authorization-server metadata that repeats a member name (RFC 8259 §4; #4002). (a): utoipa-swagger-ui 10.0.2 takes the yanked zip 8.6.0 and its three extraction advisories out of the build (#3799; GHSA-vv5m-jxxh-4627, GHSA-4v9h-p7m9-rh26, GHSA-4684-h2q9-2vcp). No risk added to the register |
| 14 | 2026-10-27 | Reviewed for release 5.5.0 against the security-relevant paths changed since 5.4.2. (a): the zstd bindings move to zstd 0.14.3, zstd-safe 8.2.0 and zstd-sys 2.1.2, past four RUSTSEC advisories that response compression and decompression reach (#4095, GHSA-cwhv-87pq-3c3c); ferrohealth-smart 0.7.1 masks the userinfo of a grant-table URL no parser accepts (#4038, GHSA-vphj-3f8c-5hpx); the PostgreSQL image base is re-pinned to the 2026-10-21 respin of 18.6 (#4084). (d): opaque access tokens are checked by token introspection under [auth] mode = "introspection" (#4033); [auth] ca_file trusts a private issuer CA on every platform, with its chart value (#3909); the issuer metadata file is read through the shared parse (#4165); the caller’s roles come from ferrohealth-smart and the policy decision from ferrohealth-authz, with [authz.rbac] user_role retired (#4028, #4038); Basic credentials are cached for 300 seconds by default (#4088); a cohort query and an AQL query rooted at a demographic class apply the population gate (#4247). (g): the EHR index asks an IHE patient identity source over PIXm by default and a server without one refuses to start unless [pixm] subject_index = "local" is set, so subject identifiers leave the instance only to the source the deployment names (#3380, #4242); both new flows are in the outbound data flows table, and the chart’s usageReport.enabled=false now reaches FerroTERM, FerroBRIDGE and FerroPIX (#4270). (j): the server and the viewer run on the family HTTP stack of ferrohealth-server (#4137, #4139), the server reads only the configuration file it is named (#4087), and Template Data Document import and its routes are removed (#4199). (l): the audit trail takes a forwarded client address only from a [server] trusted_proxies peer (#4025); syslog frames are delivered from ihe-atna’s spool with retries (#4029); the ITI-81 retrieval is read and answered by ihe-atna and requires a date (#4030, #4040); the access record carries the data permit (#3379, #4120) and every access to one EHR names the EHR and the user (#4192); the chain check verifies from the last intact link (#4100, #4102). (m): each access record is deleted at its own retention end (#3899). No risk added to the register |
| 15 | 2026-10-28 | Reviewed for release candidate 5.6.0-rc1 against the security-relevant paths changed since 5.5.0. (h): ferrohealth-server 0.3.7 closes a plain-HTTP connection that sends no request header within [server] header_read_timeout_ms, counted from accept, and pauses accepting for up to a second after EMFILE or ENFILE, so silent connections from a client with no credentials no longer exhaust the file descriptors (#4283, GHSA-2mc2-h3jq-c5wg). (d): the patient-data gate and the SMART route table judge a route by the namespace it is served under, ITS-REST under /openehr/v1/, FHIR and IHE under /fhir/r4/ and the extensions under /extensions/v1/, so every moved route keeps its gate and its scope (#4330). (f), (l): the audit store renders each record’s AuditEvent from its columns under the render policy the record names, the chain digest covers every column, the search tokens included, in one version, each render policy and search token is checked against its digest, and audit migration 0017 refuses a store holding records of an earlier release (#4300, #4302, #4313); a deployment that declares no category map classifies through the map FerroEHR ships, and the production profile refuses one with no map at all as the no_category_map gap (#4298). (a): the server and viewer images build on the refreshed gcr.io/distroless/cc-debian13:nonroot digest. No risk added to the register |
| 16 | 2026-10-29 | Reviewed for release candidate 5.6.0-rc2 against the security-relevant paths changed since 5.5.0, after revision 15 reviewed 5.6.0-rc1, which was tagged and not published. (d): the ABAC request carries category and origin resource attributes on composition, contribution and query operations, which the Cedar schema declares and a remote PDP binding may name (#4299). (l): a body without FEEDER_AUDIT committed directly by a client the [[authz.origin]] register names records that client’s origin instead of the server’s system_id (#4299). (m): a retention period may be keyed on a registered origin, and the due list lists such a period over the objects of that origin (#4299). (b): the Helm chart has no default deployment profile and refuses to render until config.deployment.profile names sandbox or production, so an installation no longer runs the sandbox posture by omission (#4294). (d): a [server.tls] table that sets client_ca_file under client_auth = "none" is refused at load on ferrohealth-server 0.3.9, since such a listener asks no client certificate (#4349, GHSA-52mf-qg39-4q4j). (l): the FHIR rendering of an unclassified access record carries the BALP entity:data slice (#4353). No risk added to the register |
| 17 | 2026-10-29 | Reviewed for release candidate 5.6.0-rc3 against the security-relevant paths changed since 5.6.0-rc2. (d): the authentication layer, the ABAC enforcement point and the EHR access gate answer their 401 and 403 as RFC 9457 problem details, and under the FHIR base as an OperationOutcome, with the same status and the same decision as before; the refusal names the request id as its instance (#4342). (l): FerroEHR takes ehds-logging and ihe-atna 0.3.2, and the FHIR AuditEvent names the object an access touched by its openEHR object id as entity.what.identifier (#4366); the audit store writes a drained batch, its search tokens and its token sets in one transaction, and the GIN index on search_tokens collects new entries in a 512 kB fast-update list (GIN fastupdate), set by audit migration 0019 with 0017 kept at its 5.6.0-rc2 text, so the chain and its digests are unchanged and an audit store that 5.6.0-rc2 migrated upgrades in place (#4375, #4424); the fail-closed 503 of the audit middleware is problem details (#4342). (h): ferrohealth-server 0.4.0 closes a kept-alive connection idle for [server] idle_timeout_ms (120000 by default), and [server] header_read_timeout_ms counts from the first byte of each later request head, so a silent connection is still closed after accept by the head bound and an idle one by the idle bound (#4417). (b): the chart runs FerroPIX 0.0.12 by digest with its chart 0.3.4, whose pods run without service links and in a user namespace by default (#4392). No risk added to the register |
| 18 | 2026-10-31 | Reviewed for release candidate 5.6.0-rc4 against the security-relevant paths changed since 5.6.0-rc3. (d): with [authz.rbac] enabled, a bearer token whose SMART on openEHR resource scopes are all system/ scopes passes the role gate on clinical operations, and its scopes then decide what it reaches through the SMART check that runs after the role gate; a user/ or patient/ token, a token with no SMART on openEHR scope and a Basic user still need a role, and an admin operation still needs the admin role (#4467). (j), (a): the viewer image ships one server binary with FerroUI’s stylesheet, theme and scripts compiled into it, with no /site tree, no WebAssembly and no cargo-leptos build tool, and its Content-Security-Policy is script-src 'self'; style-src 'self' with no nonce and no 'wasm-unsafe-eval' (#4433). (d): clinical migration 0026 and party migration 0018 grant MAINTAIN on the partitioned node, version and vo_attestation, and on clinical.ehr, to ferroehr_clinical and ferroehr_party, which adds ANALYZE, VACUUM, CLUSTER, REINDEX and LOCK TABLE on tables those roles already write, and the threat model’s grant table names it (#4453). No risk added to the register |
| 19 | 2026-10-31 | Reviewed for release candidate 5.6.0-rc5 against the security-relevant paths changed since 5.6.0-rc4, which was tagged and not published: none of the declared paths changed. (a): the 5.6.0-rc4 vulnerability record stopped the release on CVE-2026-84243, the glibc gettext LANGUAGE directory traversal, which has no Debian fix for trixie; it is judged not_affected in the three images, since the ferroehr and ferroehr-viewer programs never leave the C locale and in ferroehr-postgres only the operator’s container environment can set LANGUAGE (#4500, security/vex/ferroehr-os.openvex.json, security/vex/postgres-os.openvex.json). The viewer takes its Content-Security-Policy from ferrohealth-server 0.4.2 with the policy unchanged (#4439). No risk added to the register |
| 20 | 2026-11-01 | Reviewed for release candidate 5.6.0-rc6 against the security-relevant paths changed since 5.6.0-rc5. (d): FerroEHR takes ferrohealth-smart 0.8.7, which decides whether a request may be the person’s own (a SMART patient/ grant or the ABAC patient claim, also beside user/ or system/ grants); with the EHDS Art. 3(3) delay turned on ([privacy.access_delay], off by default), such a request reads a held COMPOSITION as an unknown one (404) and a query, an export and a CONTRIBUTION leave it out, the treating professional releases it from a clinical route with the checks of a write to that EHR, which refuses a request that may be the person’s, and the hold register (placing a hold by hand, reading it, the controller’s release) is served under /admin/access-delay (#4351, clinical migration 0027, party migration 0019). (d): a write under a token whose SMART resource scopes are all patient/ scopes records PARTY_SELF as committer whatever the request names, and its update or deletion of a version a professional committed is refused with 403, directly or inside a CONTRIBUTION; a service auth_failure answers 403 where it answered 500 (#4350). (l): ehds-logging and ihe-atna 0.3.3; the person’s subject-scoped ITI-81 read leaves out the records about a held composition until release or expiry, while the syslog and FHIR feeds and the event stream carry them as controller feeds (#4351, #4521); placing, releasing and expiry of a hold are access records; ITI-81 finds a request id or a created version uid from the record’s own columns, and retention deletes the search tokens no remaining record names while the database refuses to delete one a kept record names (audit migration 0020, #4524). The Service Model vocabulary leaves identifiers and comments on these paths with no change of behaviour (#4213). No risk added to the register |
| 21 | 2026-11-01 | Reviewed for release candidate 5.6.0-rc7 against the security-relevant paths changed since 5.6.0-rc6. (d): the EHDS Art. 10 opt-out, off until [authz.rbac] access_service_roles declares the access-service roles: while an EHR carries it, a caller holding such a role reads the EHR as absent at every route, query and export, and every other caller reads it as before; an access-service caller that declares one of [audit] emergency_purpose_codes and does not act for the person reads it under the Art. 10(2) override, with the emergency mark on its access record; the controller records, reverses and reads the register under /admin/access-opt-out, and recording is refused with 400 while no access-service role is declared (#4516, clinical migration 0029). (d): every write checks its committer against the authenticated caller, so a committer naming another login of the caller’s token issuer or of this server, or a PARTY_SELF committer from a caller who is not the record’s person, is refused with 403, and a Bearer caller’s default committer is issued by the token issuer (#4520, #4585). (f): a CONTRIBUTION’s merge inputs (other_input_version_uids) are signed with the version they belong to (#4577). (l): the syslog form of an EHR-level access record names its object beside the patient, so the record of an Art. 3(3) hold names the held composition (#4569); recording, reversing and reading the opt-out register are access records, and an override read on a route that names the EHR adds an access-opt-out-override record against it (#4516). No risk added to the register |
| 22 | 2026-11-02 | Reviewed for release candidate 5.6.0-rc8 against the security-relevant paths changed since 5.6.0-rc7. (d): the role gate, the SMART on openEHR check and the access classification read one operation table for each operation’s permission letter, composition gate and audit class, and no operation’s requirement changed (#4721); the read-only ADL 1.4 to ADL 2 conversion of a stored template carries the SMART on openEHR template read requirement of the released template reads, and that of a stored archetype the requirement of the archetype routes (#4655); a POST, PUT or DELETE on a COMPOSITION refused under a GDPR Art. 18 restriction answers 403 with the processing-restricted problem type a restricted read carries, and the access layer’s refusals take the one service error type with their statuses unchanged (#4657). (d), (j): the empty linkage domain is gone with its ferroehr_linkage role, its pool, its [storage.linkage] and [storage.migrate.linkage] tables and the chart’s database.linkage and backup.linkage values and backup CronJob; audit migration 0021 drops the schema, revokes the role’s grants on ext, drops the role once nothing in the cluster names it and drops btree_gist, and the deployment posture measures three domains; a cohort and the AQL demographic join resolve a subject through the ehr subject columns and still write their linkage-domain access records (#4675, #4684). (d): ext migration 0009 grants the clinical role SELECT on ext.posture, which the subject pseudonym guard reads under a separated clinical credential (#4675). (d): every item-tag operation is checked by ABAC in the mode of its target, so a patient-scoped or template-scoped rule refuses a tag read or write wherever it refuses the target’s read or write, and a COMPOSITION tag read falls under the EHR_ACCESS privacy ceiling (#4768). (e), (g): the identifier scan reads a DV_IDENTIFIER’s declared type: one that declares an item is not refused, one in a FEEDER_AUDIT is scanned only when its type names a person identifier, and free text and untyped identifiers are scanned as before (#4702). (l): the conversion routes are access records, the template conversion naming the template it reads (#4655); a COMPOSITION tag read’s access record names the tagged COMPOSITION (#4768); under deployment.spec_profile = "stable" a party read records one access to each party it discloses through reverse_relationships (#4775); the audit store’s batch insert takes one batch-column struct (#4747); functions no path called are deleted from the audit store, the chain check and the signing key with no change of behaviour (#4746). No risk added to the register |
| 23 | 2026-11-02 | Reviewed for release candidate 5.6.0-rc9 against the security-relevant paths changed since 5.6.0-rc8, which was tagged and not published. (a): the 5.6.0-rc8 vulnerability record stopped the release on findings that had no judgement; the three gcc-14 libstdc++ findings CVE-2026-114690, CVE-2026-114691 and CVE-2026-115455 are judged not_affected in the three images, since each fix changes only a header template, the ferroehr and ferroehr-viewer programs contain no C++ code and PostgreSQL does not link libstdc++, and the ten SQLite findings CVE-2026-119371 to CVE-2026-119379 and CVE-2026-119591 are judged not_affected in ferroehr-postgres, where only lslogins reaches SQLite and nothing runs it (#4789, security/vex/ferroehr-os.openvex.json, security/vex/postgres-os.openvex.json); the vulnerability record now also runs on a release pull request and every day, so such a finding refuses before the tag (#4795). (f), (l): audit migration 0022 drops audit.reap_audit_events, audit.reap_audit_events_years and audit.reap_audit_events_before with their EXECUTE grants, and the unused store method that called audit.reap_audit_events is deleted; the trail is reaped only through audit.reap_audit_events_due, which honours each record’s own retention end, as before (#4770). No risk added to the register |
| 24 | 2026-11-02 | Reviewed for release candidate 5.6.0-rc10 against the security-relevant paths changed since 5.6.0-rc9, which was tagged and not published. (d): the outbox feed, GET /admin/outbox/{reader} and POST /admin/outbox/{reader}/ack, needs the __ferroehr.outbox scope alone: the product scope does not reach it, the outbox scope reaches no other admin route, and under [authz.rbac] the admin role is needed as on every /admin route; it serves the PHI-free envelopes after the reader’s cursor to the readers [record.change_feed] readers names, and leaves out an EHR under a restriction, an EHDS Art. 8 access restriction or an unoverridden research objection at read time (#4786, #4766). (j), (e): FerroEHR no longer publishes to a message broker, so the AMQP publisher and its lapin dependency, [events], the /admin/event_subscription routes and their store, the plaintext_broker deployment gap and the chart’s secrets.eventsUrl and config.events are gone, and the outbox sends nothing: its readers pull it over the main listener (#4786). (l): every feed read is an access record (#4786). (d): the ABAC enforcement point and the EHR access gate read a body through the negotiation module’s decoder at its new path, with no decision changed (#4722). No risk added to the register |
| 25 | 2026-11-04 | Reviewed for release 5.6.0 against the security-relevant paths changed since 5.6.0-rc10. (d): an EHR whose ferroehr.access_control.v1 settings do not parse is held closed, where it was served at the default level; a CONTRIBUTION, an EHR Extract import or an archive load that carries such settings is refused with 400; and an administrator repairs a held EHR with POST /admin/ehr-access/repair (#4846, #4854, #4865, #4853). (d): POST /message/export checks the EHR_ACCESS settings of every EHR its manifest names before it reads any content (#4864), both EHR Extract export routes and both import routes pass the ABAC pre-check (#4869, #4872), and a privacy override whose uid names neither a VERSIONED_COMPOSITION nor one of its versions is refused with 400 (#4837). (l): an export under the Art. 10(2) override records the override against each EHR it exports (#4870). (d): the viewer signs in and keeps its session through ferrohealth-session, with an absolute session lifetime and the session watch (#4873, #3057, #4223), and refuses a CDR request whose URL would leave the configured CDR (#4954). (a), (e): the PostgreSQL image builds on the 2026-11-02 respin of postgres:18.6 (#4836) and the base images take a digest update; the chart pins FerroTERM 0.4.1, FerroPIX 0.0.15 and FerroBRIDGE 0.0.19 by index digest, and its FerroBRIDGE needs [auth] for a mapping set (#4933, #4981); the family crates move to their newest releases, and [telemetry.otlp] refuses its TLS files beside an endpoint that is not https:// (#4968). No risk added to the register |
| 26 | 2026-11-05 | Reviewed for release 5.6.1 against the security-relevant paths changed since 5.6.0. (a): the chart deploys FerroPIX 0.0.16 with its chart 0.3.8 and FerroBRIDGE 0.0.20, each pinned by its index digest, and the hosted database box ferroehr-postgres 5.6.0; the published-image scan of 5.6.0 found no fixable HIGH or CRITICAL finding and no finding without a judgement (#4987, #4892, #4893). (b): the shipped defaults in values.yaml and _helpers.tpl change only in these image references; no key, profile or policy changes, and FerroPIX 0.0.16 and FerroBRIDGE 0.0.20 rename or remove no configuration key the chart sets (#4987). The server and viewer take ferrohealth-config 0.2.9, ferrohealth-server 0.4.4, ferrohealth-telemetry 0.2.5 and ferrohealth-usage-report 0.2.1, whose releases change no public API or behaviour (#4987). No risk added to the register |
| 27 | 2026-11-05 | Reviewed for release 5.6.2 against the security-relevant paths changed since 5.6.1, which was tagged and not published: none of the declared paths changed. (a): the 5.6.1 vulnerability record stopped the release on CVE-2026-76844, a heap overflow in zlib’s gzip file writer after a failed write, which has no Debian fix for trixie; it is judged not_affected in the three images, since the ferroehr and ferroehr-viewer programs never load the Debian zlib and in ferroehr-postgres the zlib 1.3.1 overflow needs a gzclearerr() call that nothing in the image imports (#4993, security/vex/ferroehr-os.openvex.json, security/vex/postgres-os.openvex.json). The published 5.6.0 images carry the same zlib package, and the same statements judge the finding there. No risk added to the register |
| 28 | 2026-11-05 | Reviewed for release 5.6.3 against the security-relevant paths changed since 5.6.2, which was tagged and not published. (a): the 5.6.2 release stopped at the performance guard, whose baseline was the unpublished v5.6.1; the guard now compares against the newest published release, so a release is still measured against the images users run (#4998). RUSTSEC-2026-0440 (astral-tokio-tar unmaintained) is judged not_affected, since only the test harness reaches the crate and no shipped artefact contains it (#4996, security/vex/rust-advisories.openvex.json). The server and the viewer take ferrohealth-server 0.5.0, which removes forwarding functions and changes no behaviour (#5000). (b): the shipped defaults in values.yaml and _helpers.tpl change only in the FerroBRIDGE image reference, 0.0.21 pinned by its index digest, which renames or removes no configuration key the chart sets (#5017). No risk added to the register |
| 29 | 2026-11-10 | Reviewed for release candidate 5.7.0-rc1 against the security-relevant paths changed since 5.6.3. (d): every person is bound to a demographic PERSON: a login no party carries is refused with 403 and refused-unbound, with no login-only committer, and a bound caller commits under the committer the server derives from its party (#5003, #5004, #5005, #5006); with a party mapping, the parties the binding relies on are written by an administrator only, and a party of a mapped template is validated against it on every write (#5013, #5042); the SCIM 2.0 service provider at /scim/v2/, off by default, serves only the clients [[scim.client]] declares (#5014, #5015), and just-in-time creation of a provisional person is off by default per issuer (#5016); a bound representative reaches only the EHR of the subject it represents (#5086); a system caller holds system/ scopes only and commits into an EHR only as a declared [[authz.system_client]] (#5100); a federation caller is admitted only under its [[authz.federation.agreement]], the Wabvpz Art. 15f roles are refused, a MyHealth@EU contact point reaches only the patient of its treatment relationship, and a caller above its agreement’s caller_rate is answered 429 (#5101, #5102, #5106, #5107, #5120, #5149); a Basic user never carries a system/ scope (#5003, GHSA-jhg2-jwjp-hq74), and scopeless_subjects and role_claims hold per issuer (#5047, GHSA-pfgx-xq28-2629); a DPoP proof is accepted once across replicas (#5072); a patients token whose act names someone other than the patient is refused (#5259); the management surface answers a refused binding with 403 (#5250). (l): every access record of an authenticated request carries the binding outcome with its fields, a delegated access records acting_mode = "delegated", every refused request is an access record with its refused-* code, refusals of tokens that failed verification are budgeted by source network, and the three renderings carry the binding fields (#5043, #5118, #5119, #5139, #5140, audit migrations 0023 to 0025); the recorded client is the one the issuer profile admitted (#5194). (g): a deleted SCIM User’s contacts are erased from every version of its PERSON (#5178), and the identifier scan reads the element name of an untyped identifier (#5291). (b), (e): the configuration moves to one table per concern with typed durations and sizes, and every key a release before 5.7.0 read is refused at load with its replacement named; [audit.syslog] and the four outbound integrations take the family’s client TLS table, the outbound integrations one endpoint table whose client honours its retry and masks its URL’s userinfo in every rendering, and the chart moves to its 25 line, whose boot check now replays an env-valued secret’s real value and judges the production overlay’s posture again (#5217, #5259, #5331, #5341). (m): the erase reads the database and the multimedia store under their new keys and erases the same inventory (#5259). (a): zlib’s CVE-2026-76844, CVE-2026-85091 and CVE-2026-27171 are fixed in the three images by the trixie-security package (#5137, #5152), the PostgreSQL image builds on the 2026-11-09 respin of postgres:18.6 (#5332), and its krb5 CVE-2026-112321, CVE-2026-112322, CVE-2026-112323 and CVE-2026-119079, which have no Debian fix, are judged not_affected: the first three sit in libgssrpc for kadmind, neither of which the image installs, and the fourth in a KDC’s request decoding, which PostgreSQL never performs (#5344, security/vex/postgres-os.openvex.json). No risk added to the register |
| 30 | 2026-11-11 | Reviewed for release candidate 5.7.0-rc3 against the security-relevant paths changed since 5.7.0-rc2. (d): a request whose [audit] purpose_header names a purpose of use its IHE IUA access token does not state is refused with 403 and recorded (#5323); a contact point’s TRC patient is read through one typed identifier (#5195). (l): the access record takes the purposes of use and the professional roles the access token states (#5323, audit migration 0026) and records a contact point’s request message id (#5011); a purpose the token states marks an emergency access. (b): the configuration is redacted by its secret types alone, so every URL and issuer identifier renders with its credentials masked in config check, ferroehr report, GET /management/env and GET admin/config, with no key-name scan beside the types (#5322); the annotated default configuration is generated from the configuration types and held to them by a check (#5316). (a), (e): every outbound client is built by ferrohealth-smart’s OutboundClient from its endpoint table, its TLS refusal named under the table’s tls key (#5324); the family crates move to their newest releases, ferrohealth-smart 0.18.0 among them (#5320); the chart and the deployment artifacts pin FerroPIX 0.0.26 and FerroTERM 0.4.5 by index digest (#5351); the thirteen MIT Kerberos CVEs of MITKRB5-SA-2026-001 in the PostgreSQL image are judged not_affected (#5374), and the five OpenSSL 3.5.7 CVEs of 2026-11-10 are judged not_affected in the three images: neither program of the ferroehr and ferroehr-viewer images maps libssl.so.3 or libcrypto.so.3, and the PostgreSQL server’s TLS never reaches the AES-GCM-SIV, QUIC or CMS code (#5393). No risk added to the register |
| 31 | 2026-11-13 | Reviewed for release candidate 5.7.1-rc1 against the security-relevant paths changed since 5.7.0. (d): the authorization policy moves from ferroehr.toml into the CDR. Who may do what beyond the role gate is coded content of demographic parties (a CAPABILITY coding a ferroehr-operations operation, a client_id identifier, an acts-for relationship), read on every request from each replica’s copy, with no restart: system clients and their writes, imports and exports (#5436, #5432), the backend and DEMOGRAPHIC client lists and the clients ferrohealth-smart 0.24.1 asks about while it classifies a token: a client persons sign in through (sign_in_persons), a client or RFC 8693 actor that acts for a person (act_for_persons) and a system caller admitted without a resource scope (access_without_scope), each answered from the replica’s copy of the grants, with 503 when the store cannot answer (#5437), Basic users’ roles and scopes, a Basic user now being a credential alone (#5438), the subject-audit, access-service, import and identifier-read privileges, whose four [authz.rbac] role names are removed so a role a token names grants none of them (#5521), trusted import systems, data origins, change-feed readers and SCIM clients (#5439), federation agreements, whose legal checks are judged at commit (#5440), and just-in-time admission (#5441); the keys that held them refuse boot as unknown keys. The audit category map, the EHDS Art. 3(3) access delay and the Cedar policy set become admin registers, versioned and audited, and an ABAC deployment on the embedded engine permits nothing until its policies are written (#5442). The risk changes with the move: the authority to grant passes from whoever edits the configuration file and restarts the server to whoever holds [authz.rbac] admin_role, and a grant is in force on the next request. The register gains C13 for that risk. Its controls: [authz.grants] allowed caps what the CDR may grant, commit_composition alone by default (#5435); only admin_role writes or reads a policy party, and demographic AQL hides one from every other caller (#5434, #5450, #5474, #5485); a hold_roles grant naming a privileged role is refused (#5438); the one new trust key, [authz.rbac] first_admin, names the Basic user that holds admin_role and the product scope from the file, so a deployment without a role-asserting issuer has a first administrator to write the first policy parties, and a name that is no Basic user refuses the start (#5438); a request whose grants cannot be read is refused with 503 (#5435). A system caller no longer imports without a grant (#5432), and an import or export grant reaches an EHR whose subject names no namespace only through the coded no_subject_namespace value, never as a wildcard (#5530). A representative reads a patient’s EHR through a patients issuer only while their PERSON holds a live representation of that patient, which the patient can grant and revoke for their own record (#5446); once the representation ends or is deleted, a former representative is refused and never taken for the patient (#5532, party migration 0038). The register gains C14 for the patient-side admission of a representative. (d): the SMART discovery document describes exactly one user-facing issuer, never a machines issuer (#5426); one [server] public_base_url takes the place of the SMART, SCIM and DPoP URLs, and a DPoP proof’s htu must name it (#5465); FerroEHR takes ferrohealth-smart 0.22 and its siblings, whose role-issuer and described-issuer checks replace FerroEHR’s own (#5417, #5422, #5465), and then ferrohealth-smart 0.24.1, ferrohealth-authz 0.17.0, ferrohealth-session 0.19.0, ihe-atna and ehds-logging 0.18.0, ihe-iti 0.9.0 and ferrobridge-term 0.10.0 (#5437); an [[auth.party]] table without a party source is refused (#5408). (b): every issuer FerroEHR’s own keys name renders its userinfo masked (#5418, GHSA-gwh2-7hjm-4pj4), the v5.7.0 removal aids are deleted (#5463), and the reference configuration lists 855 keys, 920 in 5.7.0, and names the 10 a deployment must set (#5455). (l): the access record classifies through the audit category register and names the client the policy grants admitted (#5442, #5436). (a), (b): the chart moves from 25.0.1 to 32.0.0, published for this candidate as 32.0.0-rc1: it loads the default demographic definitions, drops the keys removed above and the values that only restated a default, and takes config.server.public_base_url (#5428, #5436, #5437, #5438, #5439, #5440, #5442, #5455, #5462, #5465). Risks added to the register: C13 and C14 |
Hazard log: the logging component
This page is the clinical safety hazard log of FerroEHR’s European logging software component, the part of the EHR system that “provides logging information related to access by health professionals or other individuals to priority categories of personal electronic health data” (EHDS Art. 2(2)(o), Regulation (EU) 2025/327). EHDS Annex II 1.1 asks that the harmonised software components “achieve the performance intended by its manufacturer” and be designed so that, “during normal conditions of use, they are suitable for their intended purpose and their use does not put at risk patient safety”.
The Regulation names no method or standard for showing that, so the form of this log is FerroEHR’s own design. For each hazard it states the cause, what could happen to a patient, the control, the test that shows the control holds, and what remains. “Normal conditions of use” are those of the intended-purpose statement. The log is the EHDS-side companion of the CRA risk assessment, and it is versioned with the release like every page of this book. The performance side of Annex II 1.1, the component’s stated performance and the test that measures it on every release, is on the logging component’s intended performance.
- The component and the surface it records
- H1: an access is not recorded
- H2: a record names the wrong person, organisation or patient
- H3: the category of the data is not recorded
- H4: a record misstates where the data came from
- H5: the log is lost, or reaped too early
- H6: a patient cannot read their log
- H7: the access log is altered
- H8: the log discloses more than it should
- H9: an emergency access to data restricted under EHDS Art. 8 is not marked
- When the log is reviewed
Warning
The quotations are from the Official Journal text vendored in the repository at
docs/law/eu/ehds/text.html(EUR-Lex). A control and a passing test show what the software does; they do not show that the component meets Annex II, which no conformity assessment has examined.
The component and the surface it records
The component is, in the code: the FerroHEALTH products’ shared crates
ehds-logging 0.18.0 (the Annex II 3.2 access record, the Art. 14(1)
categories and their classification, the Art. 9(2) retention floor and the
emergency mark) and ihe-atna 0.18.0 (the BALP and DICOM renderings and the
ATNA sender), from FerroAUDIT; ferroehr::system_log (the access-event model,
the audit store, what each rendering says and the sinks),
ferroehr-rest::system_log (the middleware that records every API access and
classifies it), the ITI-81 GET /fhir/r4/AuditEvent retrieval, and the
retention register in ferroehr::storage::marks. The middleware is installed
outermost on the API router, around the authentication layer, so it sees every
response of the openEHR REST surface, refusals included. What each record
holds, field by field against Annex II 3.2, is on the
audit trail page.
Test paths below are relative to the repository root. Each was read for this log; “no test” means none exists.
H1: an access is not recorded
Cause: a route the middleware does not classify; a record dropped when the emission queue is full or the store is unreachable; a domain-level access (resolving a subject to an EHR, an EHR Extract export) that skips the middleware; reads made straight against the database.
Effect: a patient, or the organisation investigating a breach, cannot learn that their record was read. Under EHDS Art. 9 a patient has a right to that information.
Control: every generated ITS-REST operation has an explicit audit
classification, and an unknown operation falls back to the audited default.
The extension routes that change a record carry one too: the physical delete
of a demographic party is recorded as a delete of that party, as the physical
EHR delete is of the EHR. A rejected access (401, 403) is always recorded. Under
[audit] fail_mode = "closed" a request whose record cannot be taken is
answered 503 and the domain-level operations withhold their result. An AQL
execution emits one record per EHR it served. deployment.profile = "production" refuses audit switched off, audit with no durable sink and
audit failing open, unless each is accepted by name.
Shown by:
app/ferroehr-rest/src/system_log/classify.rs:every_generated_operation_is_explicit,every_read_operation_produces_an_access_record,unrecognised_operation_fails_closed_to_default,representative_mappings;app/ferroehr-rest/tests/it/admin_party_delete_http.rs:an_admin_deletes_the_party_and_the_access_record_names_it;app/ferroehr-rest/tests/it/audit_e2e.rs: one test per resource family (for examplecomposition_get_emits_read_record,aql_execute_emits_execute_record),unauthenticated_request_emits_401_record,fail_closed_returns_503_when_channel_full,fail_closed_503_carries_openehr_error_body_and_retry_after,aql_execute_emits_one_access_record_per_served_ehr;app/ferroehr/tests/it/access_event_fail_closed.rs:a_subject_lookup_is_withheld_when_its_record_is_rejected,an_extract_export_is_withheld_when_its_record_is_rejected;app/ferroehr/src/config/deployment.rs:production_refuses_each_open_gap_and_names_the_remedy,production_refuses_the_open_access_default_and_the_open_audit_fail_mode;app/ferroehr/tests/it/legal_marks.rs:setting_and_lifting_a_mark_is_recorded_in_the_access_trail;app/ferroehr-rest/tests/it/audit_route_coverage.rs:every_route_writes_exactly_one_access_recordenumerates every route the assembled router mounts, the extension routes included, drives each one once, and asserts exactly one access record carrying its operation id. The routes it exempts (the health probes, the public status and discovery documents, the OpenAPI document and Swagger UI, theOPTIONSmanifest and the management surface) are listed in the test with the reason.
Remains: the shipped fail_mode is open, so under the sandbox
profile a full queue drops a record and the request succeeds
(fail_open_serves_request_when_channel_full pins that behaviour). Database
access outside the server is recorded nowhere.
H2: a record names the wrong person, organisation or patient
Cause: the actor taken from something other than the verified credential; an organisation guessed when the token carries none; the EHR taken from the wrong part of the request; one record written for an AQL page that served several patients.
Effect: an access is attributed to a professional who did not make it, or recorded against the wrong patient, so a patient is told of an access to someone else’s record and the real one goes unseen.
Control: the principal comes from the authenticated credential; a 401
records the caller as unknown and never fabricates one. The organisation is
the provider of the caller’s party binding, read from the CDR, and is never
taken from a token claim. The EHR comes from the resource
the dispatch resolved, or from the request path where none exists. An AQL
execution records each served EHR separately. A token’s issuer classifies
its caller: the record carries the acting mode (person, or client for a
delegate acting for a person) and the person the token names; with [authz.assurance] configured, it carries the
assurance level the token maps to, and a token below the configured minimum is
refused with a step-up challenge. The DICOM message and the FHIR
AuditEvent give the client and this server the same data-flow role (DICOM
PS3.15 §A.5.2.7, IHE BALP): on a read the server is the source and the client
the destination, on a write or a query the client is the source. A FHIR
record of a delete carries the agent types the BALP Delete profile fixes
(the client as DCM 110150 Application, the server as custodian). The
FHIR AuditEvent names the object a read, create, update or delete touched
by its openEHR object id, as entity.what.identifier in the system
urn:openehr:object-id, and ITI-81 finds it by entity.identifier. The
syslog form of an EHR-level record names the same object beside the patient,
as a URI participant object, so the record of an EHDS Art. 3(3) hold names
the held composition (access-delay:<vo>).
Shown by:
app/ferroehr/tests/it/audit_ehds_mapping.rs:element_a_the_accessing_organisation_is_recorded_and_rendered_in_fhir,element_b_the_person_who_accessed_is_recorded_and_rendered,element_b_the_professional_behind_a_client_is_recorded_and_rendered,the_assurance_level_is_recorded_and_reaches_the_fhir_rendering_as_a_level,nen_7513_the_actor_roles_are_recorded_and_rendered_in_both_formats;app/ferroehr/tests/it/audit_store.rs:access_fields_round_trip_on_both_write_paths,the_accessing_organisation_round_trips_on_both_write_paths,the_actor_roles_round_trip_on_both_write_paths,both_inserts_persist_the_authentication_columns;app/ferroehr-rest/tests/it/patient_data_assurance.rs:a_token_below_the_minimum_gets_the_step_up_challenge,a_person_token_through_an_unlisted_client_is_refused,a_delegate_acting_for_a_professional_passes_and_is_recorded;app/ferroehr-rest/src/system_log/middleware.rs:ehr_id_from_the_matched_route,object_id_from_template_paths,object_id_from_query_paths,object_id_from_demographic_paths;app/ferroehr-rest/tests/it/audit_e2e.rs:unauthenticated_request_emits_401_record,aql_execute_emits_one_access_record_per_served_ehr;app/ferroehr/src/system_log/fhir.rs:dicom_and_fhir_agree_on_the_data_flow_direction,delete_carries_the_agent_types_balp_delete_fixes,a_classified_read_names_its_object_by_identifier;app/ferroehr/src/system_log/message.rs:an_access_delay_record_names_the_patient_and_the_held_composition.
Remains: the assurance block is off by default, and a system client’s
credential is recorded as that client. A Basic user is bound to a person by
its key; with a minimum configured, Basic is refused on patient data. The DICOM format has no element for the assurance
level, so the syslog feed carries none; the FHIR record carries the level as
the BALP ihe-assuranceLevel extension, and the raw claim value stays in the
local store’s column.
H3: the category of the data is not recorded
Cause: a template or archetype missing from the deployment’s audit category register; a record type the classifier does not reach.
Effect: a record cannot say whether the access reached a patient summary, a prescription or a test result, which Annex II 3.2(c) asks for and the patient’s information under EHDS Art. 9(2)(c) depends on.
Control: each access is classified when it happens by ehds-logging, by
template id, then root archetype id, then the query’s positive constraints,
every one of which must be mapped. A logical delete is
classified by the version it deleted, a VERSIONED_COMPOSITION read by the
composition it holds, a CONTRIBUTION read (with or without
Prefer: resolve_refs) by the versions it committed, and an EHR Extract
export or import by the versions it carried or landed. EHR, EHR_STATUS,
EHR_ACCESS and the directory are recorded none by resource kind. While
the audit category register declares no template and no archetype, the map
FerroEHR ships for the published CKM templates and COMPOSITION archetypes of
one priority category applies, and deployment.profile = "production"
refuses a register write that switches it off with nothing declared. An access the map
cannot classify is recorded unclassified, with the ids as evidence, and is
never refused. Each record carries the digest of the map that classified it.
Shown by:
app/ferroehr-rest/tests/it/audit_categories.rs:an_unmapped_template_is_unclassified_with_its_ids_as_evidence,a_multi_category_query_records_every_category_it_served,a_leaf_only_query_is_classified_from_its_constraints,a_zero_row_query_is_classified_from_its_constraints,a_not_contains_operand_never_counts,a_flat_write_is_classified_by_its_template,a_logical_delete_is_classified_by_the_version_it_deletes,a_versioned_composition_read_is_classified_by_its_composition,a_contribution_read_is_classified_by_its_versions,the_shipped_map_classifies_an_undeclared_deployment;app/ferroehr/tests/it/service_message_audit.rs:the_extract_records_carry_the_categories_of_the_data;app/ferroehr/src/config/deployment/tests.rs:production_requires_a_category_map_unless_accepted;app/ferroehr/tests/it/audit_ehds_mapping.rs:element_c_the_priority_category_is_recorded_and_rendered_in_fhir_only.
Remains: the shipped map covers only the published CKM templates and
archetypes whose data sit in one priority category, and a deployment’s own
map replaces it whole, so a map that misses a template the deployment uses
yields unclassified records. Records in the
demographic domain carry no classification, because no priority category
lives there. A deployment’s own map is the audit category register, an admin
register at the shipped map until it is written.
H4: a record misstates where the data came from
Cause: a body’s FEEDER_AUDIT provenance ignored; an AQL page’s
origins taken from one row only.
Effect: a patient or a reviewer is told the wrong system created the data that was read (Annex II 3.2(e)).
Control: each committed version records the distinct originating systems
of its body; a body with none records the origin of the committer’s
data_origin grant in the CDR, or this server; a read records the origins of
what it served, an AQL page the union, with the true count beside a capped
set. The FHIR AuditEvent of a read or a query carries the origins of the
data it served.
Shown by: app/ferroehr/tests/it/access_origins.rs:
a_body_without_feeder_audit_has_this_server_as_its_origin,
a_granted_origin_stamps_a_direct_commit,
feeder_audits_anywhere_in_the_body_count_once_each,
an_aql_page_records_the_union_of_the_origins_it_served,
an_unstamped_row_is_assessed_from_the_body_at_read;
app/ferroehr-rest/tests/it/audit_e2e.rs:
composition_get_records_the_origins_of_the_served_data;
app/ferroehr/src/system_log/fhir.rs:
query_record_carries_the_origins_of_the_served_data.
Remains: the DICOM rendering carries no origins, because PS3.15 defines no element for them; the local store and the FHIR export carry them.
H5: the log is lost, or reaped too early
Cause: a retention period shorter than the law requires; a reaper that deletes more than it should; the database that holds the local store lost; a forwarding sink down.
Effect: the information a patient has a right to for “at least three years from each date of access” (EHDS Art. 9(2)) no longer exists.
Control: each jurisdiction has a registered retention floor (three years
in every EU Member State, longer where national law sets more), and a
configured period below it stops the boot. The reaper deletes only records
past the horizon, in calendar years where the period is given in years, and
the chain stays verifiable after it runs. The forwarding outbox keeps
records until the sink takes them, and the audit drain closes its syslog
connection with a TLS close_notify when it exits, so the records it sent
last are not lost to a reset. production refuses audit with no
durable sink unless accepted by name.
Shown by:
app/ferroehr/src/config/audit_tests.rs:a_retention_below_the_jurisdiction_floor_is_refused,the_ehds_floor_holds_in_every_member_state_and_a_longer_national_floor_wins,retention_years_meets_a_floor_in_years_exactly,a_ceiling_below_a_floor_is_refused;app/ferroehr/src/system_log/retention.rs:the_ehds_floor_reaches_every_member_state_and_a_longer_national_floor_wins;app/ferroehr/tests/it/audit_store.rs:reap_deletes_only_rows_past_the_horizon,reap_years_deletes_only_rows_past_the_calendar_horizon;app/ferroehr/tests/it/audit_chain.rs:retention_reaping_leaves_a_verifiable_trail;app/ferroehr/tests/it/audit_feed.rs:arr_outage_leaves_rows_pending_then_delivers_on_recovery;app/ferroehr/tests/it/system_log_tls_roundtrip.rs:the_drain_closes_its_connection_with_close_notify_when_it_exits.
Remains: a local store shares the fate of its database, so backups and an off-box sink are the deploying organisation’s (B7).
H6: a patient cannot read their log
Cause: the log reachable only with an administrator credential; no retrieval scoped to one patient.
Effect: the information EHDS Art. 9 gives a patient cannot be produced.
Control: ITI-81 GET /fhir/r4/AuditEvent searches the log by patient,
agent, action and date, and a caller holding a read_subject_audit grant in
the CDR reads one subject’s records and nothing else. EHDS Art. 9(2) has the information
provided “through electronic health data access services”, which the Member
States establish (Art. 4(1)); FerroEHR serves the log to such a service and
has no patient-facing interface of its own. Where a deployment turns on the
EHDS Art. 3(3) delay (the access-delay register), the subject-scoped read leaves out
the records about a held composition until a professional releases it or the
hold expires, and then serves them with their original times
(ehds-logging 0.3.3); the syslog and FHIR feeds and the event stream are
controller feeds and carry those records unfiltered.
Shown by: app/ferroehr-rest/tests/it/audit_iti81.rs:
searchset_bundle_with_filters_and_paging,
a_subject_audit_grant_reads_one_subjects_log_and_nothing_else,
rbac_gates_the_audit_surface_to_admins;
app/ferroehr-rest/tests/it/access_delay_trail.rs:
a_record_about_a_held_composition_appears_in_the_persons_trail_at_release,
a_record_about_a_held_composition_appears_in_the_persons_trail_at_expiry;
app/ferroehr/tests/it/access_delay_sinks.rs:
the_syslog_feed_carries_a_record_about_a_held_composition,
the_fhir_feed_carries_a_record_about_a_held_composition,
the_event_stream_carries_the_commit_of_a_held_composition.
Remains: [authz.grants] allowed does not allow read_subject_audit by
default, so the log is admin-only until the deployment allows it and grants
it to the service that serves the person. A deployment that passes a
controller feed to the person shows them the records about a held composition
before its release.
H7: the access log is altered
Cause: a record changed or deleted in the database, by a compromised application role or by someone with direct access.
Effect: an access disappears, or appears to have been made by someone else, and the record a patient or a court relies on is false.
Control: records are hash-chained in the database, and a record’s digest
covers every column but the digest and the two forwarding stamps, its search
tokens included (audit migration 0017); each render policy a record names is
checked against its own digest, and each search token and token set against
its content; UPDATE, DELETE
and TRUNCATE on the log are refused; the application role cannot run DDL
or rewrite the log; audit.verify_audit_chain() names any record that
changed or went missing; the server runs that verification one minute after
boot and then every [audit.store] verify_interval (default one hour),
logs a finding at ERROR, counts it in atna_audit_chain_findings and shows
it on the audit_chain readiness indicator; forwarding puts copies off the
box.
Shown by:
app/ferroehr/tests/it/audit_chain.rs:a_modified_audit_record_is_detected_and_named,a_deleted_audit_record_is_detected_in_the_middle_and_at_the_end,the_audit_table_refuses_mutation_deletion_and_truncation,the_application_role_cannot_run_ddl_or_rewrite_the_audit_trail,the_batched_write_path_is_chained_too,the_chain_check_reports_a_tampered_record_on_the_health_surface,the_audit_subsystem_schedules_the_chain_check,the_digest_covers_every_column,every_hashed_column_is_tamper_evident,a_changed_or_missing_render_policy_is_reported,a_changed_search_token_or_set_is_reported;app/ferroehr/tests/it/audit_store.rs:the_access_trail_refuses_rewriting_deletion_and_truncation.
Remains: the chain gives evidence of tampering and does not prevent it.
A deployment that sets verify_interval = 0 finds a broken chain only
when an operator runs the check. The indicator never flips readiness, so a
finding reaches someone only through an alert on the counter or the
indicator, which the deploying organisation sets up.
H8: the log discloses more than it should
Cause: the category classification or identifying content copied into request logs, spans or metrics; the log served to a caller with no right to it.
Effect: the log of who read a patient’s record becomes a disclosure of that record.
Control: the classification stays in the access log; telemetry carries no identified data; the ITI-81 surface is authorised like any other.
Shown by: app/ferroehr-rest/tests/it/audit_categories.rs:
the_classification_never_reaches_spans_logs_or_metrics;
app/ferroehr/tests/it/privacy_leak.rs:
the_atna_records_carry_the_opaque_pseudonym_and_nothing_else;
app/ferroehr-rest/tests/it/audit_iti81.rs:
rbac_gates_the_audit_surface_to_admins.
Remains: the log names patients and actions by design, so whoever holds ITI-81 access reads that.
H9: an emergency access to data restricted under EHDS Art. 8 is not marked
Cause: a natural person restricts the access of health professionals to some of their data (EHDS Art. 8), and a professional reaches that data anyway because the person’s vital interests require it (Art. 11(5)). Without a mark, the access record of that emergency looks like any other.
Effect: EHDS Art. 9(1) includes “access provided in accordance with Article 11(5)” in what a patient is told about, and Art. 11(5) asks that such cases be “logged in a clear and understandable format” and be “easily accessible for the data subject”. An unmarked emergency access hides that it happened.
Control: a deployment names the purpose-of-use codes its callers declare
for an emergency ([audit] emergency_purpose_codes, each also on
purpose_codes). An access declaring one, in the [audit] purpose_header or
as a purpose of use its IHE IUA access token states (#5323), carries the
emergency mark in its access record: the emergency_access column, and in the
FHIR AuditEvent the ehds-logging entity ehds-emergency-access, which states the mark in plain
words and names the purposes that marked it.
The person’s own subject-scoped ITI-81 retrieval serves that document. The
mark lifts no restriction: an object restricted under GDPR Art. 18 is refused
with an emergency purpose exactly as without one, and the refused attempt is
logged with the mark. The same mark is carried by an access-service caller
that reads an EHR whose person opted out of the access services (EHDS
Art. 10) under the vital-interest override of Art. 10(2), and a route that
names that EHR adds an access-opt-out-override record against it.
Shown by: app/ferroehr-rest/tests/it/audit_emergency_access.rs:
an_emergency_access_is_marked_and_shown_in_the_subjects_own_access_log,
an_emergency_purpose_does_not_lift_a_gdpr_restriction;
app/ferroehr/tests/it/audit_ehds_mapping.rs:
art_11_5_the_emergency_mark_reaches_the_fhir_rendering_only;
app/ferroehr/tests/it/audit_store.rs:
both_inserts_persist_the_emergency_mark_and_it_cannot_be_rewritten;
app/ferroehr-rest/tests/it/access_opt_out_http.rs:
the_vital_interest_override_reads_the_ehr_and_is_recorded;
app/ferroehr/src/system_log/event.rs:
a_purpose_the_token_states_is_named_beside_the_declared_one.
Remains: the Art. 8 restriction hides restricted data from every
professional route, query and export, and only a caller holding
authz.rbac.emergency_access_role that declares an emergency purpose reads it
(app/ferroehr-rest/tests/it/access_restriction_http.rs:
only_an_emergency_access_reads_restricted_data_and_is_marked). The mark rests
on the purpose the caller declares or its token states, and an emergency
neither names is not marked. The DICOM syslog rendering has no purpose element and
does not carry the mark.
When the log is reviewed
The log is reviewed in the release that changes any module of the component listed above, with the hazards, controls and test names checked against that release’s tree. It is also reviewed when an incident, a complaint or a vulnerability shows a hazard the log does not name. The technical documentation cites it as the EHDS-side risk assessment of the component.
| Version | Date | Change |
|---|---|---|
| 1 | 2026-10-06 | First log, nine hazards |
| 2 | 2026-10-07 | H9 names the EHDS Art. 8 restriction; the emergency mark and the subject-scoped retrieval are its control |
| 3 | 2026-10-08 | Reviewed for release 4.3.6 (changes since 4.3.5: the assurance level and the natural person, the emergency mark, the FHIR connector removed beside the ITI-81 route); every named test exists and asserts its control; no hazard added |
| 4 | 2026-10-15 | Reviewed for release 4.3.9 (changes since 4.3.6: digest version 2 of the audit chain over every column, audit migration 0011 (#3686); one data-flow direction for the DICOM and FHIR renderings (#3687) and the BALP Delete agent types (#3750); the physical party delete classified and its party named (#3683); every audit-store and retention-register checkout through the typed database acquire (#3749)); every named test exists and asserts its control; H1, H2 and H7 name the new tests, H7 the version 1 records; no hazard added |
| 5 | 2026-10-20 | Reviewed for release 5.1.0 (changes since 5.0.0: the audit FHIR feed authenticates with an OAuth 2.0 client-credentials token, and a token endpoint that refuses or cannot be reached is a transport error, so the records stay pending and are delivered on recovery as H5 states (#3829); the assurance and professional rules the access record carries move under [authz] (#3872)); every named test exists and asserts its control; no hazard added |
| 6 | 2026-10-20 | Reviewed for release 5.2.0 (changes since 5.1.0: the EHDS Art. 8 restriction of access lands, so H9’s control is the restriction with its emergency override and the mark on that access record (#3682); a read of a party’s protected identifiers is recorded per scheme (#3776); the access context carries whether a request enforces the restriction); every named test exists and asserts its control; no hazard added |
| 7 | 2026-10-20 | Reviewed for the move onto FerroAUDIT (#3887): the access record, its categories and their classification, the retention floor and the emergency mark come from ehds-logging 0.1.1, the BALP and DICOM renderings and the ATNA sender from ihe-atna 0.1.1; the syslog feed sends over TLS only; H2, H3 and H9 name the moved tests; every named test exists and asserts its control; no hazard added |
| 8 | 2026-10-22 | Reviewed for release 5.3.2 (changes since 5.2.0: the move onto FerroAUDIT of review 7 (#3887), then ehds-logging and ihe-atna 0.2.4 (#3902), so the record carries the token’s jti, the operation subtype, outcomeDesc and the optional DICOM elements again, a Basic user is recorded with no issuer, a retention without end or under three years is stated as such, and archetype ids are compared as openEHR BASE 1.3.0 asks with each id kept as the access named it (#3908); the ITI-81 search form-decodes its query string (#3891)); every named test exists and asserts its control; no hazard added |
| 9 | 2026-10-24 | Reviewed for release 5.4.0 (changes since 5.3.3: ehds-logging and ihe-atna 0.2.5, and the audit drain closes its syslog connection with a TLS close_notify when it exits, logging and counting a close that fails, so the records it sent last are not lost to a reset (#3959); H5 names its test); every named test exists and asserts its control; no hazard added |
| 10 | 2026-10-27 | Reviewed for release 5.5.0 (changes since 5.4.2: syslog frames are delivered from ihe-atna’s spool with retries, and [audit.fhir_feed] batch_size and max_retries are gone (#4029); the ITI-81 query is read and answered by ihe-atna’s retrieve and requires a date (#4030, #4040); each access record is deleted at its own retention end (#3899); the chain check verifies from the last intact link, and the FHIR feed owes only the records written while it is configured (#4100, #4102); the access record and its renderings carry the data permit (#3379, #4120); the source address comes from the family server stack, believing a forwarded address only from a trusted proxy (#4025); every access to one EHR names the EHR and the user, so H2 names ehr_id_from_the_matched_route, the test #4192 put in place of ehr_id_from_various_paths); every named test exists; no hazard added |
| 11 | 2026-10-28 | Reviewed for release candidate 5.6.0-rc1 (changes since 5.5.0: the store keeps each record’s facts in columns and renders its AuditEvent on read under the render policy the record names, the chain digest covers every column in one version, and audit migration 0017 refuses a store holding records of an earlier release, so no record keeps an older digest and H7 drops that remainder (#4300); the recorded_at indexes ascend (#4302); every ITI-81 parameter answers through search tokens the chain covers (#4313); the ITI-81 retrieval moves to /ferroehr/rest/fhir/r4/AuditEvent (#4330); a deployment that declares no category map records the published CKM priority-category templates and archetypes through the shipped map, so H3 names its test and its remainder no longer says FerroEHR ships none (#4298); H7 names the render-policy and search-token tests and the digest test #4300 renamed); every named test exists; no hazard added |
| 12 | 2026-10-29 | Reviewed for release candidate 5.6.0-rc2 (changes since the 5.6.0-rc1 review: a body without FEEDER_AUDIT committed directly by a client the [[authz.origin]] register names records that client’s origin, so H4 names it and its test, and the retention register keys a period on the origin of the data (#4299); H3’s remainder said the binary ships no category map, which #4298 changed; the FHIR rendering of an access record ehds-logging does not classify carries the BALP entity:data slice its profile requires (#4353); the component’s intended performance is stated and measured (#4293), and its ATNA transactions are exercised against independent implementations (#4296)); every named test exists; no hazard added |
| 13 | 2026-10-29 | Reviewed for release candidate 5.6.0-rc3 (changes since the 5.6.0-rc2 review: FerroEHR takes ehds-logging and ihe-atna 0.3.2, and the FHIR AuditEvent names the object it touched by its openEHR object id as entity.what.identifier where it wrote a what.reference no FHIR server resolves, so H2 states it and names its test (#4366); the audit store writes a drained batch, its search tokens and its token sets in one transaction on one connection, and the GIN index on search_tokens collects new entries in a 512 kB fast-update list (GIN fastupdate) that audit migration 0019 sets, which changes no control H5 or H7 states (#4375, #4424); the ITI-81 route answers an authentication refusal as an OperationOutcome, the fail-closed 503 is RFC 9457 problem details, and fail_closed_503_carries_openehr_error_body_and_retry_after asserts the problem body (#4342)); every named test exists; no hazard added |
| 14 | 2026-11-01 | Reviewed for release candidate 5.6.0-rc6 (changes since the 5.6.0-rc3 review; the logging component did not change in 5.6.0-rc4 or 5.6.0-rc5: FerroEHR takes ehds-logging and ihe-atna 0.3.3, and with the EHDS Art. 3(3) delay turned on the subject-scoped ITI-81 read leaves out the records about a held composition until it is released or expires, while the syslog and FHIR feeds and the event stream carry them as controller feeds, so H6 states the hold and its remainder and names its tests (#4351, #4521); placing, releasing and expiry of a hold are access records (#4351); ITI-81 entity.identifier finds a request id or a created version uid from the record’s own columns through a hash index (audit migration 0020), and retention deletes the search tokens no remaining record names while the database still refuses to delete one a kept record names, which changes no control H7 states (#4524); the Service Model vocabulary leaves the component’s identifiers with no test renamed (#4213)); every named test exists; no hazard added |
| 15 | 2026-11-01 | Reviewed for release candidate 5.6.0-rc7 (changes since the 5.6.0-rc6 review: the syslog form of an EHR-level record names its object beside the patient as a URI participant object, so the record of an Art. 3(3) hold names the held composition as its FHIR AuditEvent does, and H2 states it and names its test (#4569); the EHDS Art. 10 opt-out lands, the access context carries whether a request enforces it, an access-service caller’s read under the Art. 10(2) override carries the emergency mark and a route that names the EHR adds an access-opt-out-override record, and recording, reversing and reading the register are access records, so H9 states the override’s mark and names its test (#4516)); every named test exists; no hazard added |
| 16 | 2026-11-02 | Reviewed for release candidate 5.6.0-rc8 (changes since the 5.6.0-rc7 review: the access classification reads one operation table with every operation’s audit class unchanged, and every_generated_operation_is_explicit and unrecognised_operation_fails_closed_to_default still hold it (#4721); the ADL 1.4 to ADL 2 conversion routes are access records, the template conversion a read of the template it names and the archetype conversion through the fail-closed default (#4655); a rejected access record refuses the request with 503 through the one service error type (#4657); the audit store’s batch insert takes one batch-column struct, and functions no path called are deleted from the store and the chain check (#4746, #4747); audit migration 0021 drops the linkage domain, and the subject crossings keep their linkage-domain access records (#4684); a COMPOSITION tag read’s access record names the tagged COMPOSITION (#4768); under deployment.spec_profile = "stable" a party read records one access to each party it discloses through reverse_relationships, beside the read’s own record, as an AQL statement does for each EHR it serves (#4775)); every named test exists; no hazard added |
| 17 | 2026-11-02 | Reviewed for release candidate 5.6.0-rc9 (changes since the 5.6.0-rc8 review; 5.6.0-rc8 was tagged and not published: audit migration 0022 drops the three horizon reap functions nothing called, and the unused store method that called audit.reap_audit_events is deleted, so the trail is reaped only through audit.reap_audit_events_due and each record’s own retention end, which H5 states; reap_deletes_only_rows_past_the_horizon and reap_years_deletes_only_rows_past_the_calendar_horizon exercise that path (#4770)); every named test exists; no hazard added |
| 18 | 2026-11-02 | Reviewed for release candidate 5.6.0-rc10 (changes since the 5.6.0-rc9 review; 5.6.0-rc9 was tagged and not published, and the logging component’s paths did not change: the access record of a VERSION read names the content it served and, for a COMPOSITION, the origins of its data, as the bare reads already did, with the parsed EHR id (#4660); every read of the outbox feed is an access record (#4786)); every named test exists; no hazard added |
| 19 | 2026-11-04 | Reviewed for release 5.6.0 (changes since the 5.6.0-rc10 review: the logging component’s modules changed only by refactors that change no record: one macro declares every guarded REST handler (#4887), every route calls its operation’s handler with no operation-string match (#4662), the last REST and service forwarders go (#4663), and the committer context, the audit borrows and the service error move below the service (#4835); outside them, a manifest export under the EHDS Art. 10(2) override records the override against the EHR it exports (#4870), and the scope of the logging component names FerroBRIDGE’s recording of its FHIR facade’s accesses from FerroBRIDGE 0.0.16 (#4822)); every named test exists; no hazard added |
| 20 | 2026-11-05 | Reviewed for release 5.6.1 (changes since the 5.6.0 review: no module of the logging component changed; the application code is unchanged and a viewer test reads the hosted sandbox posture (#4985); the deployment artifacts pin FerroPIX 0.0.16, FerroBRIDGE 0.0.20 and four FerroSYS crate releases that change no behaviour (#4987)); every named test exists; no hazard added |
| 21 | 2026-11-10 | Reviewed for release candidate 5.7.0-rc1 (changes since the 5.6.1 review; 5.6.2 and 5.6.3 changed no module of the logging component: every access record of an authenticated request carries the outcome of the party binding with the bound party, its groups, the provider acted for and the representation, and the FHIR AuditEvent, the DICOM message and the syslog feed render them (#5043, #5118, audit migration 0023); a delegated access records acting_mode = "delegated" where it recorded client, and a system caller’s system (#5118); every refused request is an access record through the gated path, with the refused-* code of a binding or caller-kind refusal, its own code per caller kind and the name of a missing key claim, and the refusals of tokens that failed verification are budgeted by source network (#5119, #5139, #5140, audit migrations 0024 and 0025); the recorded client is the one the issuer profile admitted, never another client_id claim (#5194); [audit.syslog] reads its TLS from [audit.syslog.tls] (#5217); the family crates move to ehds-logging and ihe-atna 0.9.1, and the FHIR feed tries a delivery again as [audit.fhir_feed.endpoint] retry states while its outbox still keeps every record until the sink takes it, as H5 states (#5209, #5259, #5331); H5 named its four floor tests in config/mod.rs, which #5259 moved to config/audit_tests.rs, and its member-state test in system_log/config.rs, which moves with the retention bounds to system_log/retention.rs (#5331), so it names both files; the audit keys take the 5.7.0 configuration tree (#5259); H2 named two assurance tests #5003 renamed, so it names a_person_token_through_an_unlisted_client_is_refused and a_delegate_acting_for_a_professional_passes_and_is_recorded); every named test exists; no hazard added |
| 22 | 2026-11-11 | Reviewed for release candidate 5.7.0-rc3 (changes since the 5.7.0-rc1 review; 5.7.0-rc2 changed no module of the logging component: the access record takes the purposes of use and the professional roles an IHE IUA access token states, in the new token_attributes column (audit migration 0026, chain digest version 3), renders them in the EHDS access record and the BALP AuditEvent, and refuses and records a request whose [audit] purpose_header names a purpose the token does not state (#5323); a purpose the token states marks an emergency access as a declared one does, so H9 names it and its test; a contact point’s request message id is recorded (#5011); [audit.syslog] url renders with its credentials masked (#5322); the component moves to ehds-logging and ihe-atna 0.12.0 (#5320)); every named test exists; no hazard added |
| 23 | 2026-11-13 | Reviewed for release candidate 5.7.1-rc1 (changes since the 5.7.0-rc3 review; 5.7.0-rc4 and 5.7.0 changed no module of the logging component: FerroEHR takes ehds-logging and ihe-atna 0.16.0 (#5417, #5422, #5465) and then 0.18.0 with ferrohealth-smart 0.24.1 (#5437, #5438); the category map is the audit category register, an admin register written by [authz.rbac] admin_role with every version kept and every read and write recorded, and a new version classifies the next access on every replica, so H3 states the register and names production_requires_a_category_map_unless_accepted, the test that a production deployment refuses a register write leaving the map empty (#5442); a body without FEEDER_AUDIT records the origin of the committer’s data_origin grant in the CDR in place of the [[authz.origin]] register, and H4 names the test under its new name, a_granted_origin_stamps_a_direct_commit (#5439); the recorded client is the one the policy grants admitted (#5436); the ITI-81 retrieval reads one subject’s log for a caller holding a read_subject_audit grant in the CDR, and an access-service caller is one holding an access_service grant, in place of the removed [authz.rbac] subject_audit_role and access_service_roles, so H6 states the grant, names a_subject_audit_grant_reads_one_subjects_log_and_nothing_else and says the ceiling keeps the log admin-only until the deployment allows the grant (#5521); every access of a representative in the patient portal is recorded bound to the representative’s PERSON, naming the subject and the relationship, and a former representative is refused and never recorded as the patient (#5446, #5532); the v5.7.0 removal aids of the audit keys are deleted (#5463)); H7 states the shipped verify_interval of one hour; every named test exists and asserts its control; no hazard added |
The logging component’s intended performance
EHDS Annex II 1.1 asks that the harmonised software components “achieve the
performance intended by its manufacturer” and be suitable for their intended
purpose in normal conditions of use (Regulation (EU) 2025/327,
docs/law/eu/ehds/text.html).
Annex III point 2 asks the technical documentation for the system in place to
evaluate that performance. This page states the performance Cadasto B.V.
intends for FerroEHR’s European logging software component, as claims a test
can check, and the test that checks them. The Regulation names no method and
no figure, so both are FerroEHR’s own design.
Warning
A met claim shows what the software did on the run that measured it. It does not show that the component meets Annex II, which no conformity assessment has examined.
The claims
The component is the access log the hazard log assesses:
every access through the API is recorded, by ehds-logging and ihe-atna
through ferroehr::system_log, in the local store, and retrieved through IHE
ITI-81. The claims hold under the deployment posture the
instructions for use
set for real data: the access log on, the local store on, and
[audit] fail_mode = "closed".
| Claim | Stated performance | How it is checked |
|---|---|---|
| Completeness | Every composition create and read has exactly one access record, and every AQL execution at least one (one per EHR it served). | Measured on every run: the access records of the measured window are counted through ITI-81 per operation id and compared with the operations that ran. |
| Loss under outage | No access succeeds without its record. A record the queue or the local store cannot take refuses the request with 503, and a record owed to a FHIR Audit Record Repository that is down stays owed and is delivered when it returns. | Deterministic tests, not a load measurement: app/ferroehr-rest/tests/it/audit_e2e.rs (fail_closed_returns_503_when_channel_full, fail_closed_503_carries_openehr_error_body_and_retry_after), app/ferroehr/tests/it/access_event_fail_closed.rs, and app/ferroehr/tests/it/audit_feed.rs (arr_outage_leaves_rows_pending_then_delivers_on_recovery). |
| Latency added | With the access log on, the median p50 and p95 request latency are at most 125 % of those with it off. | Measured: the same workload with the log off and on, on one machine. |
| Throughput kept | With the access log on, the median throughput is at least 80 % of that with it off. | Measured, as above. |
| Retrieval | A page of 50 access records retrieved through ITI-81 from the measured window takes at most a quarter of a second at p95 (MAX_RETRIEVAL_P95_MS in the verdict script). | Measured: 50 paged retrievals after each run. |
“Normal conditions of use” for these figures are the load of the release
performance guard: a store seeded with 20 EHRs of 10 compositions each, then
2,000 operations over 8 concurrent workers, of every 20 six composition
creates, eight composition reads and six AQL queries
(tools/loadtest).
The intended-purpose statement names no load, so this one is chosen to be the
one every release is already measured under. The ratios compare two runs on
one machine, so they hold across machines in a way an absolute latency would
not; the retrieval figure is absolute and generous for that reason.
The test
scripts/perf/audit.sh
starts the quickstart on fresh volumes, three times with the access log off
and three times with it on and failing closed, alternating the order. The
load test runs the workload against each; with the log on it waits for the
asynchronous log to settle after the seed, opens the measured window, and
after the measured phase counts the window’s records per operation id (the
ITI-81 subtype and _count=0) until two readings a second apart agree, then
times the paged retrievals.
scripts/perf/audit-verdict.sh
compares the medians with the claims above and exits non-zero when one is not
met; its --self-test holds each budget to its edge.
The release pipeline runs it on the release candidate in its performance leg.
A claim not met refuses the release, and the summary is attached to the
release as ferroehr-<tag>-logging-performance.md, which is the latest result
for that release. The weekly performance guard runs it on main.
To run it yourself against an image:
cargo build --release -p loadtest
FERROEHR_PORT=8080 bash scripts/perf/audit.sh ghcr.io/ferrohealth/ferroehr:<tag> \
ghcr.io/ferrohealth/ferroehr-postgres:<tag> perf-audit
What it does not measure
- Records over syslog or the FHIR feed are not timed: both send from the stored record, after the request, so they add no latency to it.
- The store’s size over years is not loaded: the retrieval figure holds for the store a run leaves. ITI-81 answers through a token index, so a search reads an index rather than every record, but no run measures a store of millions of records.
- Access made straight against the database, outside the server, is not recorded at all (hazard H1).
Claims review
Every public text about FerroEHR is read, once per release, against EHDS Art. 28 (Regulation (EU) 2025/327). The article reads: “In the information sheet, instructions for use or other information accompanying EHR systems, and in the advertising of EHR systems, it shall be prohibited to use text, names, trademarks, pictures and figurative or other signs that may mislead the professional user […] with regard to their intended purpose, interoperability and security by:
- (a) ascribing functions and properties to the EHR system which it does not have;
- (b) failing to inform the professional user of likely limitations related to interoperability or security features of the EHR system in relation to its intended purpose;
- (c) suggesting uses for the EHR system other than those stated to form part of the intended purpose in the technical documentation.“
This page is the record of those reviews: what was read, what was found, what was changed. It also carries the re-assessment of EHDS Annex II 2.5. The measure for point (c) is the intended-purpose statement.
- What is reviewed, and how
- The review of 2026-10-06
- The review of 2026-10-08
- The review of 2026-10-15
- The review of 2026-10-16
- The review of 2026-10-19
- The review of 2026-10-19, for 5.0.0
- The review of 2026-10-20, for 5.1.0
- Annex II 2.5, re-assessed
- Review record
- The review of 2026-10-20, for 5.2.0
- The review of 2026-10-22, for 5.3.2
- The review of 2026-10-24, for 5.4.0
- The review of 2026-10-24, for 5.4.1
- The review of 2026-10-25, for 5.4.2
- The review of 2026-10-27, for 5.5.0
- The review of 2026-10-28, for 5.6.0-rc1
- The review of 2026-10-29, for 5.6.0-rc2
- The review of 2026-10-29, for 5.6.0-rc3
- The review of 2026-10-31, for 5.6.0-rc4
- The review of 2026-10-31, for 5.6.0-rc5
- The review of 2026-11-01, for 5.6.0-rc6
- The review of 2026-11-01, for 5.6.0-rc7
- The review of 2026-11-02, for 5.6.0-rc8
- The review of 2026-11-02, for 5.6.0-rc9
- The review of 2026-11-02, for 5.6.0-rc10
- The review of 2026-11-04, for 5.6.0
- The review of 2026-11-05, for 5.6.1
- The review of 2026-11-05, for 5.6.2
- The review of 2026-11-05, for 5.6.3
- The review of 2026-11-10, for 5.7.0-rc1
- The review of 2026-11-10, for 5.7.0-rc2
- The review of 2026-11-11, for 5.7.0-rc3
- The review of 2026-11-11, for 5.7.0-rc4
- The review of 2026-11-11, for 5.7.0
- The review of 2026-11-13, for 5.7.1-rc1
Warning
The quotations are from the Official Journal text vendored at
docs/law/eu/ehds/text.html(EUR-Lex). Art. 28 takes “professional user” from Article 3, point (8), of Regulation (EU) 2018/1807, which the repository does not carry, so these pages do not restate that definition. A text that passes this review has been read against Art. 28 by the manufacturer; no authority has examined it.
What is reviewed, and how
The texts in scope, each release:
- the repository
README.mdand the landing page atferroehr.eu; - every page of this book, except the pages generated from the tracker and from committed measurement records, whose generators are reviewed instead;
SECURITY.md;- the READMEs of the published
openehr-*crates; - the OCI labels of the three images (
docker/Dockerfile,docker/viewer/Dockerfile,docker/postgres/Dockerfile) and the Helm chart’s description; - the public sandbox at
sandbox.ferroehr.eu.
Each claim about a function, a property, interoperability or security is checked against the code, the configuration defaults and the committed records, and against the intended-purpose statement. A misleading claim is fixed in the same change as the review. Measured numbers are never typed into a text: the conformance and performance figures come from generators over the committed run records, and a CI check fails a page whose numbers disagree with them.
The review of 2026-10-06
Read on the tree after commit d6539d470, before FerroEHR 4.3.5.
Changed
| # | Text | Claim | Art. 28 | Finding | Now reads |
|---|---|---|---|---|---|
| 1 | README, opening | “Every compliance claim it makes is machine-verified” | (a) | Only the openEHR conformance numbers are machine-verified. The regulatory pages are reviewed by hand, and “compliance” invites the regulatory reading | “Every conformance claim it makes is machine-verified” |
| 2 | README, “What makes it different” | “Compliance you can verify.” | (a) | as row 1 | “Conformance you can verify.” |
| 3 | README, licence paragraph and “Security & operations” | “Multi-tenancy […] fully integrated: each tenant is an isolated logical openEHR system, enforced by PostgreSQL row-level security” | (a) | FerroEHR is single-tenant, with no tenant column, row policy or tenancy configuration (one instance, one organisation) | “One instance per organisation: FerroEHR is single-tenant […]”; multi-tenancy removed from the feature list |
| 4 | README, “Security & operations” | national identifiers “sealed under a per-tenant key” | (a), (b) | there are no tenants, and the sealing is off by default | “sealed under a key the deployment holds […] (off by default)” |
| 5 | README, “Security & operations” | “IHE ATNA-compliant system log (DICOM audit messages over TLS syslog)” | (a), (b) | “compliant” claims a property nobody assessed; the syslog sink is off by default and ships with UDP; the default sink is the local hash-chained store | the access log, its two renderings, the local store and the optional forwarding, described as they ship |
| 6 | README, “Security & operations” | “Hardened by default” | (b) | TLS is off by default, and the shipped deployment.profile is sandbox, which must not hold real patient data | “Hardening built in”, with both limitations stated |
| 7 | README, “Integration” | the FHIR R4B connectors, with no limitation | (b) | the in-tree connector was removed in favour of FerroBRIDGE in v4.3.6 (#3080) | the removal is stated |
| 8 | Landing page, title, og: and twitter: descriptions, structured data | “Spec-compliant and measured”, “spec-conformant and measured” | (a) | states conformity as a property; what exists is a measured openEHR conformance record | “openEHR conformance, measured” |
| 9 | Landing page, hero note | “every compliance claim machine-verified” | (a) | as row 1 | “every conformance number machine-verified” |
| 10 | Landing page, conformance section | “Compliance you can verify.” and “Every release runs the complete conformance catalogue against the live server” | (a) | the release pipeline does not run the catalogue; the committed record measured FerroEHR 4.3.0 | “Conformance you can verify.”; the record “names the FerroEHR version it measured” |
| 11 | Landing page, feature grid heading | “Everything the openEHR standard asks for” | (a) | claims complete coverage of the standard, which nothing measures | “The openEHR platform services” |
| 12 | Landing page, Security card | “multi-tenancy” | (a) | as row 3 | “One instance per organisation.” |
| 13 | Book, Introduction | “Compliance you can run yourself” | (a) | as row 1 | “Conformance you can run yourself” |
| 14 | Book, System architecture | “why the compliance claims are checkable”, “the compliance claims are machine-derived” | (a) | as row 1 | “conformance claims” |
| 15 | Book, Beyond the core | “Security, multi-tenancy, and the audit trail” | (a) | as row 3 | “Security, instance separation and the audit trail” |
Read and kept
- The conformance and performance figures on the README, the landing page
and the book: rendered from
docs/conformance/ferroehr/byscripts/render/conformance-stats.shandscripts/render/perf-assets.sh, and checked in CI. No number is typed. - “openEHR-spec-conformant”, on the Conformance page,
in the
openehr-*crate READMEs, in theorg.opencontainers.image.descriptionlabel of the server image and in the Helm chart description: a claim about the openEHR specifications, backed by the committed record (CORE and STANDARD, every case passed) and explained on that page. It makes no claim about any regulation. - “aims to be the first openly developed, source-available openEHR CDR with a published, tracker-backed EU compliance posture” (the compliance overview, Why FerroEHR exists): stated as an aim, beside the statement that FerroEHR holds no certification and no declaration.
- The compliance pages, the DPIA and the go-live checklist: each says it does not make a deployment compliant with anything.
- The image labels: the server image carries
eu.ferroehr.image.carries-sandbox-posture="true", which tells an operator the shipped profile; the manufacturer label names Cadasto B.V. SECURITY.md: its commitments match the procedures indocs/post-market.mdand the release procedure.- The public sandbox: the viewer shows the sandbox notice on every page, the README calls its content demo data, wiped nightly, and the landing page calls it a live demo.
Left open
- The Helm chart’s description (
Chart.yaml, and the chart README that helm-docs generates from it) says “hardened-by-default security posture” and lists the workload hardening, which is accurate, but does not say that a stock install runs thesandboxprofile. The chart now declaresconfig.deployment.profile: sandboxin its values, and the chart README says so under “Before you install”; theChart.yamldescription still does not.
The review of 2026-10-08
Read on the tree after commit de648fcc3, for FerroEHR 4.3.6. This release
removes the in-tree FHIR connector (#3080) and moves the deployment gaps off
the public status document (#3671), so those two facts were checked in every
text in scope.
Changed on 2026-10-08
| # | Text | Claim | Art. 28 | Finding | Now reads |
|---|---|---|---|---|---|
| 1 | Landing page, “Fits your stack” | “FHIR R4B” | (a) | FerroEHR maps no FHIR resources; it reaches FHIR R4B terminology servers and renders its access log as FHIR R4 AuditEvent | “FHIR R4B terminology” |
| 2 | Book, instructions for use, CRA user information, configuration, go-live checklist | an accepted deployment gap is stated “on GET /ferroehr/rest/status” | (a) | the gaps moved to the authenticated GET /management/status (#3671); the public status document carries the profile only | “on GET /management/status” |
| 3 | Book, instructions for use, the deployment profile | the list of what production refuses | (b) | omitted the plaintext audit feed and the plaintext object store (#3676, #3689) | both named |
| 4 | Book, instructions for use, limitations | none on FHIR | (b) | an operator of an earlier release may rely on the removed connector | FerroEHR maps no FHIR resources, and [fhir] is refused at boot |
| 5 | Book, information sheet, (e) | the standards table | (b) | omitted the FHIR terminology operations and RFC 9470, which this release uses | both listed |
Read and kept on 2026-10-08
- The README’s integration list and the book’s Beyond the core: both state that FHIR R4 mapping is FerroBRIDGE’s and name the two uses of FHIR FerroEHR keeps.
- Single tenancy: the README, the landing page and the book state one instance per organisation; “multi-tenant” appears only where the book quotes openEHR’s placement of multi-tenancy outside one system.
- The Helm chart’s description: it now says a stock install runs the
sandboxprofile (#3637), which closes the item left open on 2026-10-06.
Left open on 2026-10-08
Nothing.
The review of 2026-10-15
Read on the tree after commit 606a29cce, for FerroEHR 4.3.9. The facts of
this release checked in every text in scope: the ABAC patient scope over
EHR-only queries and [authz.abac] patient_namespace (#3771); a restricted
EHR_ACCESS default with the role gate off, and the rbac_off gap (#3742);
national identifiers sealed per party version, the sealed form in write
responses and the refusal of plaintext protected values on import (#3772);
digest version 2 of the audit chain (#3686); the AQL row rules (#3733,
#3734); the removal of FOSSA; the TLS certificate reload and EC keys (#3765,
#3761); the four-cluster production layout (#3755 to #3757, #3762); the
example generator (#3739, #3740); quoted GET query parameters (#3781). The
2026-10-08 move of the deployment gaps to GET /management/status (#3671) was
re-checked on every page, and eleven pages still named the public document.
Changed on 2026-10-15
| # | Text | Claim | Art. 28 | Finding | Now reads |
|---|---|---|---|---|---|
| 1 | Book, licensing, security, go-live checklist (two items), Kubernetes, authentication configuration (two places), Compose (two places), installation, configuration, command line, DPIA R9, compliance overview (GDPR Art. 25, DSV Art. 4) | an open or accepted deployment gap, or the licence in force, is reported on GET /ferroehr/rest/status (or /rest/status) | (a) | the public document carries status, the versions, the timestamp and the profile only; the gaps, the licence and the support period are on GET /management/status (#3671) | “on GET /management/status”; the configuration page adds that the public document carries the profile only |
| 2 | Book, instructions for use, the deployment profile | the list of what production refuses | (b) | omitted the role gate off while authentication is on, the rbac_off gap this release adds (#3742) | named |
| 3 | Book, instructions for use, limitations | none on how AQL reads repeated nodes | (b) | AQL 1.1.0 does not define the rows of a path through a repeated node; this release changed them (#3733), so another server, or a client written for an earlier release, may count differently | the limitation is stated, with the regrouping a client needs |
| 4 | Book, instructions for use, limitations | none on the audit chain’s coverage | (b) | records written before the upgrade keep digest version 1, which leaves out the columns added after the chain was introduced (#3686) | stated, with the columns and the trigger that alone protects them |
| 5 | Book, configuration, migrate_on_runtime_credential | a domain relocated to its own database “is prepared on that domain’s runtime DSN” | (a) | [database.<domain>] migrate_url` now prepares it on its own migration credential (#3756); only without it does the runtime DSN prepare it and open the gap | both cases stated |
| 6 | Book, records of processing, categories of personal data | clinical content “in the ehr schema”; parties “in the demographic schema” | (a) | the schemas are clinical and party since the storage rewrite | clinical and party |
| 7 | Book, Kubernetes, server TLS | the viewer’s OIDC client “trusts the public roots it is built with”, so a private-CA issuer is not trusted | (a) | the viewer’s OIDC client verifies against the platform trust store (#3767) | a private-CA issuer is trusted once its CA is in the store or under SSL_CERT_DIR |
| 8 | Book, querying with AQL, the URL form | how a parameter value binds | (b) | silent on a quoted value, which now binds the JSON string it denotes (#3781) | the quoted form and the malformed case stated |
| 9 | Book, templates and validation, the example composition | “a skeleton instance you can fill in”, with no limitation | (b) | the example passes the server’s own validation except for two open defects (#3779, #3780) and templates whose mandatory content only a slot admits | the exceptions named |
| 10 | Book, threat model, what each database credential can reach | the writer roles hold SELECT, INSERT, UPDATE and DELETE on their schema | (b) | the migration bookkeeping is now read-only to every runtime role, and the boot refuses a writable one | stated below the table |
| 11 | Book, information sheet, (e) | TERM “3.1.0” | (b) | the server applies amendment 3.1.4 (SPECPR-450), which adds properties and units the template upload and the quantity validation accept (#3717, #3727) | “3.1.0, with amendment 3.1.4 (SPECPR-450)” |
The technical documentation’s Annex III 2 named the public status document for
the deployment posture too; it names GET /management/status now.
| 12 | Repository README, the template-model and example bullets (two places) | every template “generates spec-valid example compositions that pass the server’s own validation” | (a) | #3779 and #3780 are open, and a template whose mandatory content only an archetype slot admits has no committable example | “a template […] generates” them, “except for the cases the book’s example page lists” |
| 13 | Repository README, the deployment posture and licence bullets | sandbox names every open gap “on GET /rest/status”; “GET /ferroehr/rest/status reports the grant in force” | (a) | both are on GET /management/status (#3671) | “on GET /management/status” |
| 14 | Book, EHDS readiness row 1.2 | its issue reference | (a) | the probe that issue asked for ran (#3692), without hostUsers: false or sslmode=verify-full | names #3788 for those two |
Read and kept on 2026-10-15
- FOSSA: no text in scope names FOSSA, a FOSSA badge or a FOSSA lane after its removal in this release.
- The patient scope and
patient_namespace: the[authz.abac]table and its patient-scope list state the EHR-only queries, the direct-route refusals and the namespace rule as they ship; the security page’s fail-closed box is unchanged by them. - The restricted
EHR_ACCESSdefault andrbac_off: the authentication configuration, the configuration page, the go-live checklist, the Kubernetes values table and the CRA risk assessment (d) state both. - Identifier protection: the privacy configuration, the threat model’s sealed-identifier section, the operations guide and the admin API page state the per-version rows, the sealed write response, the plaintext refusal on import and load, and the erasure of sealed rows.
- The audit chain: the audit trail page states both digest versions and the downgrade finding.
- AQL: querying with AQL and the AQL engine concept page state the row rules and say AQL 1.1.0 does not define them.
- TLS: the server configuration and the Kubernetes page state the reload interval, the EC key formats and the explicit-curve refusal.
- The information sheet’s BALP row (“the profile revision is not pinned”): kept. The delete agent types follow BALP 1.1.4, and the profile URLs the records carry are unversioned.
- The image labels and the Helm chart’s description: unchanged by this
release but for the chart description’s NetworkPolicy defaults (#3743),
which match
values.yaml.
Left open on 2026-10-15
Nothing.
The review of 2026-10-16
Read on the tree after commit e923076de, for FerroEHR 4.3.10. The facts of
this release checked in every text in scope: the usage report in format 2
(#3795); the usage report off in a CI run, whatever the switch says (#3794);
the dump and load archive on zip 9.0.4 (#3798).
Changed on 2026-10-16
| # | Text | Claim | Art. 28 | Finding | Now reads |
|---|---|---|---|---|---|
| 1 | Book, instructions for use, the usage report | “Every deployment sends a daily usage report to Cadasto B.V. by default” | (a) | the report also goes out at each start, and a server started in a CI run sends none (#3794) | both stated, with the two CI variables |
| 2 | Book, operations, the usage report | “It is on by default” | (a) | off in a CI run, whatever the switch says (#3794) | “on by default outside a CI run” |
Read and kept on 2026-10-16
- The usage report’s fields: the usage report page
lists the format 2 fields and the
statusobject as the server sends them, and says earlier releases send format 1. The field list in the CRA risk assessment’s outbound data flows, the shared responsibility summary, the records of processing note, the intended purpose and the threat model name the same information, which format 2 only regroups. - The CI switch: the usage report page
states the two variables, the boot line and the
--printnote as they ship, and the server configuration table states the two variables. - The dump and load archive: the
admin APIs page names no zip
library and its
compression_formatvalues are unchanged. - The README,
SECURITY.md, the crate READMEs, the image labels and the Helm chart’s description: unchanged by this release, and none names the usage report’s format or the zip library.
Left open on 2026-10-16
Nothing.
The review of 2026-10-19
Read on the tree after commit a15290689, for FerroEHR 4.3.11. The facts of
this release checked in every text in scope: the viewer drawn in FerroUI
0.1.6 (#3802, #3811, #3815, #3820); the viewer’s tab icon (#3808); the coming
split of the logging component with FerroSYS (#3662); the zip advisories
judged not affecting in the Rust-dependency VEX document (#3806).
Changed on 2026-10-19
Nothing. Every text in scope already states these facts.
Read and kept on 2026-10-19
- The viewer pages: the viewer names the footer’s manufacturer line and the System screen’s Manufacturer card (#3634), and dark mode describes the moon and sun button and the theme cookie as FerroUI draws them. No page names a component library the viewer no longer uses.
- The logging component: the EHDS readiness page and the technical documentation say FerroEHR ships the whole logging component today and that FerroSYS takes the central store, review, retention and retrieval in a later release; nothing calls that split shipped.
- The security notices: the release’s Security entry names the VEX document that records the three zip advisories as not affecting FerroEHR.
Left open on 2026-10-19
Nothing.
The review of 2026-10-19, for 5.0.0
Read on the tree after commit ec78e7f40, for FerroEHR 5.0.0. The facts of
this release checked in every text in scope: openehr-sdt builds a canonical
PARTY from a party Web Template and stamps the caller’s rm_version (#3810,
#3809); the openEHR terminology serves the interoperability group; archetype
identifiers follow the BASE 1.3.0 grammar under the development profile
(#3835, #3845); the nine openehr-* crates at 0.0.89; only the newest
release is supported (#3853); the viewer serves its hydration bundle on a
route of its own (#3849); the viewer draws with FerroUI 0.1.7 and chooses its
language from Accept-Language or [ui] locale.
Changed on 2026-10-19, for 5.0.0
- The Rust crates: the dependency examples named the
crates at
0.0.86, three versions behind the published line; they name0.0.89. Theopenehr-sdtrow names the PARTY build beside the composition formats. - The viewer: the
ui.localerow said a deployment adds a language as a catalog file. The catalogs are embedded when the viewer is built, so the row now says a new catalog reaches a deployment in a rebuilt image, never at run time.
Read and kept on 2026-10-19, for 5.0.0
- The support period:
SECURITY.md, the Rust crates page and the release notes say that only the newest release is supported and that the five years of security fixes are a commitment for the product, shipped in the newest release. No text in scope still promises fixes to an earlier release. - The crate READMEs: the
openehr-sdtREADME describes the composition formats and does not mention the PARTY build. An omission ascribes no function the crate lacks, and the README changes with the crate’s next content version. - The specification pins:
docs/VERSIONS.mdand the crate table name BASE 1.2.0 and 1.3.0, which is what the two generations implement.
Left open on 2026-10-19, for 5.0.0
Nothing.
The review of 2026-10-20, for 5.1.0
Read on the tree after commit 18097c6f1, for FerroEHR 5.1.0. The facts of this
release checked in every text in scope: authentication and the SMART on openEHR
scope check run on the shared ferrohealth-smart crate, only asymmetric
algorithms verify a token, the HMAC key is gone, and every route requires a
scope (#3872); the Keycloak overlay and the development stack serve their
issuer over TLS with a development CA, and the CDR accepts their tokens again
(#3873); AQL rooted at PERSON, ORGANISATION and ROLE, and a demographic
root joined to its EHR’s content (#3818, #3831); the audit FHIR feed and the
remote policy service authenticate with OAuth 2.0 client credentials (#3829);
the chart mounts a database CA for sslmode=verify-full (#3788); a rotated
mTLS client CA is re-read without a restart (#3769); the viewer reads every
word from its catalog with FerroUI 0.2.0 (#3860); the nine openehr-* crates
at 0.0.90.
Changed on 2026-10-20, for 5.1.0
- The repository
README.md: the authentication bullet named Basic and OAuth2/OIDC alone. Every route now refuses a caller whose scopes do not grant the operation, a limitation a deployment must know (Art. 28(b)), so the bullet says the SMART on openEHR scopes are checked on every route. - The Rust crates: the dependency examples named the crates
at
0.0.89; they name0.0.90.
Read and kept on 2026-10-20, for 5.1.0
- The Keycloak quickstart: Docker Compose, getting started and the README offer the overlay for bearer-token authentication. Between #3872 and #3873 the CDR did not accept the overlay’s tokens; on this tree it does, and the compose page names the development CA and the scopes the realm puts in every token.
- Authentication and authorization: security,
the authentication reference and
SMART App Launch describe the
[auth]keys, the RFC 9068 profile and the scope check as the code does. - Annex II 2.5: a caller refused for want of a scope is refused by the grant its own identity provider issued, which the deployment controls; the re-assessment below stands.
Left open on 2026-10-20, for 5.1.0
Nothing.
Annex II 2.5, re-assessed
EHDS Annex II 2.5: “The harmonised software components of an EHR system shall not include features that prohibit, restrict or place an undue burden on authorised access, personal electronic health data sharing or use of personal electronic health data for permitted purposes.” The text does not define “undue”.
The EHDS readiness page marks the row “Shipped” with two
pieces of evidence: the query surface over the whole stored record, and an
authorisation layer that refuses or permits without a commercial gate. The
question re-assessed here is whether the authorisation defaults change that,
now that production refuses the open EHR_ACCESS default unless it is
accepted by name.
- What “authorised” means here. The deploying organisation decides who is
authorised, and expresses it in RBAC roles, ABAC policy and per-EHR
EHR_ACCESSsettings. A refusal of a caller the organisation has not authorised is not a burden on authorised access. - The
restricteddefault. Underehr_access_default = "restricted", an EHR with no settings is reachable only by the admin role, so a professional the organisation means to authorise is refused until someone writes that EHR’s settings. That is a burden, and it is the organisation’s choice: theopendefault remains available,productionaccepts it by name, and the restrictive one exists because GDPR Art. 25(2) asks that personal data are not by default “made accessible without the individual’s intervention to an indefinite number of natural persons”. The settings take role entries (role:nurse), so one entry covers a whole role, and the admin role can always reach the record to write them (per-EHR access control). - Restriction of processing. A record under restriction is refused on every read path. The controller sets the mark under GDPR Art. 18; it is a restriction the organisation decides on, not one the software imposes (retention, restriction and objection).
- Small-cell suppression. A cohort query that would serve fewer distinct
EHRs than
privacy.cohort.small_cell_threshold(default 5) withholds its rows and says so. It applies only to population queries across the pseudonymisation boundary, and the deployment sets the threshold. - Rate limits and the admission limit. On by default, set above the server’s own measured whole-server ceiling, so they refuse abuse and leave normal load alone (request limits).
- The licence. The licence in force changes only the stamp on new
identifiers; it gates no feature, endpoint, limit or message
(
app/ferroehr/src/licence/mod.rs).
Outcome. No feature found prohibits or restricts access, sharing or use that the deploying organisation has authorised, and the burdens found are settings the organisation chooses and can change. The “Shipped” status stands on this reasoning, which the readiness page will cite.
Review record
One row per release. The release procedure adds the row when the release is cut, after the texts in scope have been read.
| Reviewed | Tree | Changed | Left open |
|---|---|---|---|
| 2026-10-06 | before 4.3.5, after d6539d470 | 15 claims, in the README, the landing page and three book pages | the chart description (#3637) |
| 2026-10-08 | 4.3.6, after de648fcc3 | 5 claims, in the landing page and five book pages; the chart description item closed | nothing |
| 2026-10-15 | 4.3.9, after 606a29cce | 14 claims, in 17 book pages, the README and the readiness row | nothing |
| 2026-10-16 | 4.3.10, after e923076de | 2 claims, in two book pages | nothing |
| 2026-10-19 | 4.3.11, after a15290689 | none | nothing |
| 2026-10-19 | 5.0.0, after ec78e7f40 | 2 claims, in two book pages | nothing |
| 2026-10-20 | 5.1.0, after 18097c6f1 | 2 claims, in the README and one book page | nothing |
| 2026-10-20 | 5.2.0, after e5aa1902b | 1 claim, in one book page | nothing |
| 2026-10-22 | 5.3.2, after 434cd351e | 4 claims, in four book pages and the technical documentation | nothing |
| 2026-10-23 | 5.3.3, after 25845e6d3 | 1 claim, in one book page: the templates page said ` | raw` is write-only, corrected for #3934 |
| 2026-10-24 | 5.4.0, after de38ec433 | none | nothing |
| 2026-10-24 | 5.4.1, after 9fdd36091 | 2 claims, in two book pages: the compliance index named [terminology.external] and a terminology route, and the crates page pinned 0.0.97 | nothing |
| 2026-10-25 | 5.4.2, after 2333f98ba | none; the changes of this release updated their own pages in the pull requests that made them | nothing |
| 2026-10-27 | 5.5.0, after bed3543e3 | 1 claim, in the hazard log: H2 named a middleware test renamed by #4192 | the conformance chapter bars counted the CNF TDD cases until the Veredictum 0.3.3 record, which carries none, replaced them (#4204) |
| 2026-11-04 | 5.6.0, after 25db5c69c | 4 claims, in the README, the landing page and two book pages: each said FerroBRIDGE’s broker delivery was in progress, which FerroBRIDGE 0.0.15 ships | the canonical-XML reverse_relationships left open by the 5.6.0-rc8 review shipped (#4778); a v2-namespace OPT 1.4 ordinal list stays tracked on #5258 |
| 2026-11-05 | 5.6.1, after 75262e1ce | 1 claim, in the Kubernetes installation: it said the chart pins FerroPIX 0.0.15, which the 5.6.1 pins moved to 0.0.16 | a v2-namespace OPT 1.4 ordinal list stays tracked on #5258 |
| 2026-11-05 | 5.6.2, after ea1190926 | none; the texts in scope make no claim this release changes | a v2-namespace OPT 1.4 ordinal list stays tracked on #5258 |
| 2026-11-05 | 5.6.3, after 6b2ff1644 | none; the texts in scope make no claim this release changes | a v2-namespace OPT 1.4 ordinal list stays tracked on #5258 |
The review of 2026-10-20, for 5.2.0
Read on the tree after commit e5aa1902b, for FerroEHR 5.2.0. The facts of this
release checked in every text in scope: authentication runs on
ferrohealth-smart 0.3.1, with [auth.basic] cache_ttl_seconds in place of
[authz] basic_cache_ttl_seconds, scopeless_subjects accepted and a
malformed bearer token answered 401 (#3875); [auth.smart] issuer_metadata_file
(#3875); the EHDS Art. 8 restriction of access with its emergency override
(#3682); the audited read of a party’s protected identifiers (#3776); an EHR
extract never carries a sealed identifier (#3777); the FLAT history origin from
the earliest event (#3888); the nine openehr-* crates at 0.0.91.
Changed on 2026-10-20, for 5.2.0
- The Rust crates: the dependency examples named the crates
at
0.0.90; they name0.0.91.
Read and kept on 2026-10-20, for 5.2.0
- The Art. 8 statements: security, the audit trail, the compliance overview, the instructions for use, EHDS readiness rows 1.1 and 1.3 and the hazard log describe the restriction as the code does, and none of them calls it planned any more.
- The authentication reference: the configuration reference,
security and using the API
name the moved cache key and the
401for a bearer value outsideb64token.
Left open on 2026-10-20, for 5.2.0
Nothing.
The review of 2026-10-22, for 5.3.2
Read on the tree after commit 434cd351e, for FerroEHR 5.3.2. The facts of this
release checked in every text in scope: the access log written through
FerroAUDIT’s ehds-logging and ihe-atna 0.2.4, with the categories named by
their HL7 Europe codes, category_basis, and the record’s jti, operation
subtype and outcomeDesc written again (#3887, #3902); the retention register
keyed on the category token (clinical migration 0016); the syslog feed over
RFC 5425 TLS only, with the UDP transport removed; ferrohealth-smart 0.4.0
and one login record per Basic credential verification (#3895); a + in a
query string read as a space (#3891); the subject id of a lookup by subject
kept out of every log, span and error body (#3906); Rust 1.99.1 with the MSRV
at 1.98; the nine openehr-* crates at 0.0.95.
Changed on 2026-10-22, for 5.3.2
- The Rust crates: the dependency examples named the crates
at
0.0.91; they name0.0.95. - EHDS readiness, the European logging component row
(from
website/book/ehds.yaml): it namedehds-loggingandihe-atnaat 0.1.1; it names 0.2.4, the version the rootCargo.tomlpins. - The hazard log, the component paragraph: as the row above.
- The technical documentation’s scope (
docs/technical-documentation/README.md): as the row above.
Read and kept on 2026-10-22, for 5.3.2
- The audit statements: the README, security, the audit trail, audit configuration, the go-live checklist, the information sheet and the instructions for use describe the syslog feed as TLS only and the categories by their HL7 Europe codes, as the code does.
- The toolchain: the README and building from source name the Rust 1.99 toolchain, and the Rust crates the MSRV 1.98.
- The landing page,
SECURITY.md, the crate READMEs, the image labels and the chart description make no claim this release changes.
Left open on 2026-10-22, for 5.3.2
Nothing.
The review of 2026-10-24, for 5.4.0
Read on the tree after commit de38ec433, for FerroEHR 5.4.0. The facts of this
release checked in every text in scope: the viewer rebuilt on FerroUI 0.3.6 in
islands mode, working with JavaScript off, with its new addresses, its
preferences as cookies of their own and an open tab that idles out (#3932,
#3057); an ECDSA or Ed448 OpenPGP signing key refused at boot for
RUSTSEC-2026-0387 (#3965); the signer’s choice of subkey and primary key
(#3967, #3969, #3971); the audit drain closing its syslog connection with
close_notify and FerroAUDIT 0.2.5 (#3959); the nine openehr-* crates
unchanged at 0.0.97.
Changed on 2026-10-24, for 5.4.0
Nothing: the pull requests that made these changes updated the texts they touched.
Read and kept on 2026-10-24, for 5.4.0
- The viewer statements: the README, the viewer
pages and the image label of
docker/viewer/Dockerfiledescribe the viewer the code draws; no text names a removed address, theferroehr-themecookie, the Tailwind build or a background poll. - The signing statements: PGP signing and the authentication and signing configuration state the refused ECDSA and Ed448 keys, the subkey the server signs with and the retired-key path, as the code does.
- The audit statements: the hazard log and
EHDS readiness name
ehds-loggingandihe-atna0.2.5, the version the rootCargo.tomlpins. - The landing page,
SECURITY.md, the crate READMEs, the information sheet, the instructions for use, the other image labels and the chart description make no claim this release changes.
Left open on 2026-10-24, for 5.4.0
Nothing.
The review of 2026-10-24, for 5.4.1
Read on the tree after commit 9fdd36091, for FerroEHR 5.4.1. The facts of this
release checked in every text in scope: the CDR asks one terminology server
under [terminology] through ferrobridge-term, and chart 14.0.0 wires
it (#3085); an unserved method is 405 with Allow under SMART (#3987);
the conformance statement declares unmatched-member-refused (#3988); a ROLE
template whose single attributes state 0..* uploads, and a demographic
template’s example is a party (#3994, #3995); the viewer offers demographic
templates only where they work (#3997); the nine openehr-* crates at 0.0.98.
Changed on 2026-10-24, for 5.4.1
- The compliance index (SGB V § 355 row) named
[terminology.external]and “the terminology route”; it now names[terminology]and itsurl. - The crates page pinned the
openehr-*crates at0.0.97; this release publishes0.0.98.
Read and kept on 2026-10-24, for 5.4.1
- The terminology statements: the
integrations configuration, the
Kubernetes installation and the chart README
describe the one
[terminology]andsecrets.terminologyClientSecret, as the code and the chart do. - The template statements: the templates page and content negotiation state the example party of a demographic template and its JSON and XML forms.
- The
405statement: content negotiation’s “405always names the allowed methods” holds under SMART as well. - The landing page,
SECURITY.md, the crate READMEs, the information sheet, the instructions for use, the image labels and the chart description make no claim this release changes.
Left open on 2026-10-24, for 5.4.1
Nothing.
The review of 2026-10-25, for 5.4.2
Read on the tree after commit 2333f98ba, for FerroEHR 5.4.2. The facts of this
release checked in every text in scope: a valid Certification Revocation of a
Direct Key signature cancels it, so it no longer lets the primary key sign
(#3972); an access record whose patient lookup failed writes unavailable
(#3900); the viewer’s Paths tab offers a query only on a COMPOSITION template,
on FerroUI 0.3.7 (#4001); ferrohealth-smart 0.5.0, one openehr-sdt in the
build (#4002); ihe-atna and ehds-logging 0.2.7 (#3954); zip 8.6.0 out of
the build (#3799); chart 14.0.1; the nine openehr-* crates at 0.0.98.
Changed on 2026-10-25, for 5.4.2
Nothing at the cut: each change above updated its page in its own pull request.
Read and kept on 2026-10-25, for 5.4.2
- The signing statement: the PGP signing page states that a revoked Direct Key signature is not chosen, as the code does.
- The viewer statement: Templates & EHRs says a node offers Build a query on this path only on a COMPOSITION template.
- The logging component: the EHDS readiness page,
rendered from the FerroHEALTH book’s
website/book/ehds.yaml, and the hazard log nameehds-loggingandihe-atna0.2.7. - The installation pins: the Kubernetes installation, the chart README and verifying releases name chart 14.0.1 and image 5.4.2.
- The landing page,
SECURITY.md, the crate READMEs, the information sheet, the instructions for use, the image labels and the chart description make no claim this release changes.
Left open on 2026-10-25, for 5.4.2
Nothing.
The review of 2026-10-27, for 5.5.0
Read on the tree after commit bed3543e3, for FerroEHR 5.5.0. The facts of
this release checked in every text in scope: the server and the viewer run on
the family’s ferrohealth-server, ferrohealth-config, ferrohealth-telemetry,
ferrohealth-smart, ferrohealth-authz and ferrohealth-secret crates, with
the renamed and retired configuration keys under Changed and Removed (#4087,
#4038, #4028, #4139, #4214); the EHR index asks an IHE patient identity source
over PIXm by default (#3380); opaque access tokens are checked by introspection
(#4033); [auth] ca_file trusts a private issuer CA (#3909); the audit trail is
delivered and retrieved through ihe-atna and carries the data permit (#4029,
#4030, #4120); Template Data Document import is removed (#4199); the quickstart
Keycloak overlay trusts its CA through ca_file and signs the viewer in
(#4236, #4243); the chart’s usageReport.enabled=false reaches FerroTERM, FerroBRIDGE and FerroPIX (#4270); chart 20.0.0 with appVersion 5.5.0.
Changed on 2026-10-27, for 5.5.0
- The hazard log: H2 named
ehr_id_from_various_paths, which #4192 replaced withehr_id_from_the_matched_route; the log names the new test.
Read and kept on 2026-10-27, for 5.5.0
- The configuration pages: the server configuration,
authentication, security and
the viewer name the new keys and say which old keys
refuse the start (
slow_aql_ms,user_role,LEPTOS_SITE_ADDR); no page still offerstoken_url,server.bind,ferroehr config default,healthcheck --urlor the TDD routes. - The CRA risk assessment: its outbound data flows table gains the token introspection flow and the patient identity source over PIXm, with revision 14.
- The installation pins: the Kubernetes installation,
the chart README and verifying releases name chart
20.0.0 and image 5.5.0, and the compose page
names
FERROEHR_CONFIGand the Keycloak overlay’sca_file. - The landing page,
SECURITY.md, the crate READMEs, the information sheet, the instructions for use, the image labels and the chart description make no claim this release changes.
Left open on 2026-10-27, for 5.5.0
- The conformance chapter bars showed the CNF TDD cases from the last measured run until the Veredictum 0.3.3 record, which carries none, replaced the record and the bars (#4204).
The review of 2026-10-28, for 5.6.0-rc1
Read on the tree after commit df14b4311, for the FerroEHR release candidate
5.6.0-rc1. The facts of this release checked in every text in scope: the REST
surface serves three namespaces, ITS-REST alone under /openehr/v1/, FHIR and
IHE under /fhir/r4/ and FerroEHR’s extensions under /extensions/v1/, with
no redirect from the old paths (#4330); the audit store renders each record’s
AuditEvent from its columns, answers every ITI-81 parameter through search
tokens, and its migration refuses a store holding records of an earlier
release (#4300, #4302, #4313); ferrohealth-server 0.3.7 bounds a silent
connection by [server] header_read_timeout_ms (#4283, GHSA-2mc2-h3jq-c5wg);
an AQL query nested past its depth bound answers 400 (#4284); a cut or
unreachable database answers 503 with Retry-After within about a second
(#4290, #4323); an abandoned query frees its connection (#4285); storage
generation 3 (#4306); a deployment that declares no category map records
accesses through the map FerroEHR ships (#4298); chart 20.0.1-rc1 with
appVersion 5.6.0-rc1.
Changed on 2026-10-28, for 5.6.0-rc1
- The hazard log: H7 named
the_current_digest_covers_every_columnandrecords_under_the_original_digest_still_verifyand kept a remainder for records under the version 1 digest; #4300 retired the versioned digests with the records they covered, so H7 namesthe_digest_covers_every_columnand the render-policy and search-token tests, and drops that remainder. H3 said FerroEHR ships no category map; it names the shipped map and its test (#4298). - The technical documentation named the FerroAUDIT pins as 0.2.5; it names
0.3.1, the version the root
Cargo.tomlpins.
Read and kept on 2026-10-28, for 5.6.0-rc1
- The API pages: the API overview names the
three namespaces, the resources page the
paged CONTRIBUTION list under
/extensions/v1/, and the audit trail the ITI-81 route under/fhir/r4/and the empty audit store 5.6.0 starts on; no page in scope names a moved route under/openehr/v1/. - The operations pages: AQL states the depth bounds,
operations the
503on a cut or unreachable database, and the server configuration and securityheader_read_timeout_ms. - The installation pins: the Kubernetes installation,
the chart README and verifying releases name chart
20.0.1-rc1 and image 5.6.0-rc1 in the book of main; the frozen book of 5.5.0
under
/docs/latest/keeps the 5.5.0 pins, since a pre-release freezes no book. - The landing page,
SECURITY.md, the crate READMEs, the information sheet, the instructions for use, the image labels and the chart description make no claim this release changes.
Left open on 2026-10-28, for 5.6.0-rc1
- The public sandbox runs 5.5.0 and is not redeployed for a pre-release, so it serves the old paths until 5.6.0 ships.
The review of 2026-10-29, for 5.6.0-rc2
Read on the tree after commit 40982f374, for the FerroEHR release candidate
5.6.0-rc2; 5.6.0-rc1 was tagged at 61d5d1ff7 and not published. The review of
2026-10-28 stands for everything 5.6.0-rc1 carried. The facts added since and
checked in every text in scope: the [[authz.origin]] register stamps a direct commit
from a registered client with that client’s origin, a retention period may be
keyed on a registered origin, and the ABAC request carries category and
origin attributes (#4299); a client CA under client_auth = "none" is
refused at load (#4349, GHSA-52mf-qg39-4q4j); the chart refuses to render
without an explicit deployment profile (#4294); the logging component’s
intended performance is stated and measured (#4293) and its ATNA transactions
are exercised against independent implementations (#4296); an unclassified
record’s FHIR rendering carries the BALP entity:data slice (#4353); chart
21.0.0-rc2 with appVersion 5.6.0-rc2.
Changed on 2026-10-29, for 5.6.0-rc2
- The hazard log: H4 said a body without
FEEDER_AUDITrecords this server as its origin; it names the registered client’s origin and its test (#4299). H3’s remainder said the chart’s empty map matches the binary, which ships a map since #4298; it says the shipped map applies.
Read and kept on 2026-10-29, for 5.6.0-rc2
- The retention and access pages: retention, the
audit configuration and
security describe the
[[authz.origin]]register, the origin-keyed retention policy and the two ABAC attributes as the code implements them. - The installation pins: the Kubernetes installation,
the chart README and verifying releases name chart
21.0.0-rc2 and image 5.6.0-rc2 in the book of main, and the Kubernetes page
sets
config.deployment.profilein its install example (#4294). - The TLS and performance pages: the server configuration
says
client_ca_fileis refused underclient_auth = "none", and logging performance states the claimsscripts/perf/audit.shmeasures. - The landing page,
SECURITY.md, the crate READMEs, the information sheet, the instructions for use, the image labels and the chart description make no claim this release changes.
Left open on 2026-10-29, for 5.6.0-rc2
- The public sandbox runs 5.5.0 and is not redeployed for a pre-release, so it serves the old paths until 5.6.0 ships.
The review of 2026-10-29, for 5.6.0-rc3
Read on the tree after commit df26a92e6, for the FerroEHR release candidate
5.6.0-rc3. The review of 2026-10-29 for 5.6.0-rc2 stands for everything that
release candidate carried. The facts added since and checked in every text in
scope: every error on the openEHR, extension and management routes is RFC 9457
problem details, the violations of a validation refusal reach a client as
errors under Prefer: return=representation, and an authentication refusal
under the FHIR base is an OperationOutcome (#4342); the openehr-its client
reads a problem details refusal (#4355); a + in a query string is a literal
plus (#4356); FROM PERSON p CONTAINS EHR e joins through the EHR’s
EHR_STATUS.subject.external_ref (#4411); a projection ending on a list
attribute answers the list once (#4413); the local EHR index is a supported
posture (#4379); [server] idle_timeout_ms closes an idle kept-alive
connection on ferrohealth-server 0.4.0 (#4417); the FHIR AuditEvent names
the object it touched by entity.what.identifier on FerroAUDIT 0.3.2 (#4366);
openehr-query is Apache-2.0 from 0.0.116 (#4405); the chart and the sandbox
run FerroPIX 0.0.12 (#4392); chart 21.0.0-rc3 with appVersion 5.6.0-rc3.
Changed on 2026-10-29, for 5.6.0-rc3
- The validation pages: template validation
and the privacy configuration said a
422lists its violations invalidationErrors, the body #4342 replaced; they name the problem’serrors, sent underPrefer: return=representation, and link thevalidation-failedtype. - The hazard log: H2 states that the FHIR
AuditEventnames the object it touched byentity.what.identifierand names its test (#4366).
Read and kept on 2026-10-29, for 5.6.0-rc3
- The API pages: Problem types and
content negotiation and errors
describe the problem body, its types and the
Prefermembers as the code writes them; querying with AQL describes the party join through the subject reference and the list projection as the engine answers them. - The server configuration: the server configuration
states
idle_timeout_msand the head bound asferrohealth-server0.4.0 applies them. - The licensing page and the crate READMEs name
openehr-queryApache-2.0 from 0.0.116 and BUSL-1.1 for 0.0.60 to 0.0.115. - The installation pins: the Kubernetes installation, the chart README and verifying releases name chart 21.0.0-rc3 and image 5.6.0-rc3 in the book of main.
- The landing page,
SECURITY.md, the information sheet, the instructions for use, the image labels and the chart description make no claim this release changes.
Left open on 2026-10-29, for 5.6.0-rc3
- The public sandbox runs 5.5.0 and is not redeployed for a pre-release, so it serves the old paths and the old error body until 5.6.0 ships.
The review of 2026-10-31, for 5.6.0-rc4
Read on the tree after commit d79ef8b40, for the FerroEHR release candidate
5.6.0-rc4. The review of 2026-10-29 for 5.6.0-rc3 stands for everything that
release candidate carried. The facts added since and checked in every text in
scope: an AQL lookup by an ELEMENT value reads a value index in both stores
(#4437), and a lookup of an EHR by its EHR_STATUS.subject reads the EHR row
(#4442); a request on a kept-alive connection idle past the head bound is
answered (#4381); the server keeps planner statistics on the partitioned
tables and the serving roles hold MAINTAIN on them (#4453), and a version
read probes its commit audit by key (#4438); EHR e NOT CONTAINS runs
(#4465); a DV_DATE_TIME comparison compares instants (#4466); the REST,
party, template and Simplified Format fixes of the Veredictum 0.3.0 catalogue
(#4458 to #4464, #4468 to #4475); a token holding only system/ SMART on
openEHR scopes passes the role gate on clinical operations (#4467); the viewer
draws every page on its server with FerroUI 0.6, with no WebAssembly (#4433);
AQL TERMINOLOGY('expand', …) takes the value set from the url argument of
a $expand query form (#4488); the conformance pipeline runs the Veredictum
0.3.0 catalogue against one deployment with FerroTERM beside it, in CI through
the Veredictum GitHub Action, and keeps no EHRbase comparison (#4448, #4449,
#4476); chart 21.0.0-rc4 with appVersion 5.6.0-rc4.
Changed on 2026-10-31, for 5.6.0-rc4
- The threat model: its grant table listed what each credential reaches
and left out the
MAINTAINgrant clinical migration 0026 and party migration 0018 give the serving roles; theferroehr_clinicalandferroehr_partyrows name it (#4453).
Read and kept on 2026-10-31, for 5.6.0-rc4
- The viewer pages: the viewer and security describe the server-drawn viewer, its Content-Security-Policy and its configuration as the image runs them.
- The operations pages: operations states the
MAINTAINgrant and the statistics refresh as the server applies them. - The API and query pages: querying with AQL lists
NOT CONTAINSas supported and refuses only a read through its variable; security states thesystem/scope rule of the role gate. - The hazard log and the technical documentation: the logging component is unchanged since 5.6.0-rc3, so neither gains a row.
- The installation pins: the Kubernetes installation, the chart README and verifying releases name chart 21.0.0-rc4 and image 5.6.0-rc4 in the book of main.
- The landing page,
SECURITY.md, the information sheet, the instructions for use, the image labels and the chart description make no claim this release changes.
Left open on 2026-10-31, for 5.6.0-rc4
- The public sandbox runs 5.5.0 and is not redeployed for a pre-release, so it serves the old paths and the old error body until 5.6.0 ships.
The review of 2026-10-31, for 5.6.0-rc5
Read on the tree after commit b3df38e01, for the FerroEHR release candidate
5.6.0-rc5. 5.6.0-rc4 was tagged and not published, so its review above stands
for everything it carried. The facts added since and checked in every text in
scope: CVE-2026-84243 is judged not_affected in every image (#4500); AQL
TERMINOLOGY('validate', …) and TERMINOLOGY('subsumes', …) keep a
params_uri value that carries a ? whole (#4490); an AQL query aimed at
named EHRs reads their objects first (#4487); the viewer takes its
Content-Security-Policy from ferrohealth-server 0.4.2, with the same policy
(#4439); the Conformance workflow runs the Veredictum SMART documents (#4450);
the storage bench measures on one runner (#4318); the LANG specification is
re-vendored and the openehr-* crates step to 0.0.122 (#4377); chart
21.0.0-rc5 with appVersion 5.6.0-rc5.
Read and kept on 2026-10-31, for 5.6.0-rc5
- The viewer and security pages: the viewer and
security state the Content-Security-Policy the viewer
sends on
ferrohealth-server0.4.2. - The query page: querying with AQL describes
TERMINOLOGY()as the engine answers it. - The hazard log and the technical documentation: the logging component is unchanged since 5.6.0-rc4, so neither gains a row.
- The installation pins: the Kubernetes installation, the chart README and verifying releases name chart 21.0.0-rc5 and image 5.6.0-rc5 in the book of main.
- The landing page,
SECURITY.md, the information sheet, the instructions for use, the image labels and the chart description make no claim this release changes.
Left open on 2026-10-31, for 5.6.0-rc5
- The public sandbox runs 5.5.0 and is not redeployed for a pre-release, so it serves the old paths and the old error body until 5.6.0 ships.
The review of 2026-11-01, for 5.6.0-rc6
Read on the tree after commit df911334d, for the FerroEHR release candidate
5.6.0-rc6. The facts added since 5.6.0-rc5 and checked in every text in scope:
the CONTRIBUTION commit reads the body through the released NewContribution
schema and refuses the shapes it does not define with 400 (#3595, #4543);
the EHDS Art. 3(3) delay of the person’s own access, off by default under
[privacy.access_delay] (#4351); the EHDS Art. 5 mark of what a person inserts and the
403 on their change of a professional’s version (#4350); the ADL 2
validation fixes (#4505, #4513, #4522, #4529, #4536, #4540, #4567); the FLAT
and STRUCTURED reads under an ADL 2 template (#4551, #4559); the node header
columns and the smaller storage per version (#4525); the audit search tokens
taken from the record’s columns (#4524); the 400 for a malformed versioned
read (#4541); the viewer’s template releases and its unavailable count
(#4506, #4533); the conformance pipeline on Veredictum 0.3.2 with the released
and development profiles and their README badges (#4503); and the
openehr-* crates versioned at publish (#4555); chart 21.0.0-rc6 with
appVersion 5.6.0-rc6.
Read and kept on 2026-11-01, for 5.6.0-rc6
- The README and the conformance page: the badges are drawn from the runs
on
mainunder each profile, and conformance states that the released profile alone backs a released claim and that the development profile is never counted toward it. - The security, authentication and audit pages: security and the authentication configuration describe the Art. 3(3) delay as a Member State option, off by default, that withholds data from the person and never from a professional, and the audit trail names the feeds that carry records about a held composition as controller feeds.
- The resources page: resources states the
CONTRIBUTION body as the released
NewContributionschema reads it. - The operations page: the storage sizing section names 5.6.0-rc5 as the measured release and states the node header columns’ effect on it.
- The hazard log and the technical documentation: the logging component
changed since 5.6.0-rc5 (
ehds-loggingandihe-atna0.3.3, the held composition’s records, audit migration 0020), so the hazard log gains review 14, H6 names the hold and its tests, and the technical documentation gains its 5.6.0-rc6 row. - The installation pins: the Kubernetes installation, the chart README and verifying releases name chart 21.0.0-rc6 and image 5.6.0-rc6 in the book of main.
SECURITY.md, the information sheet, the instructions for use, the image labels and the chart description make no claim this release changes.
Left open on 2026-11-01, for 5.6.0-rc6
- The conformance run on
mainhad known red rows under the released profile; two of them were Veredictum’s (Vernum-Projecten/Veredictum#964 and Vernum-Projecten/Veredictum#965). The triage on #4455 attributed every row, and the Veredictum 0.3.3 released-profile run onmainhas none left. - The public sandbox runs 5.5.0 and is not redeployed for a pre-release, so it serves the old paths and the old error body until 5.6.0 ships.
The review of 2026-11-01, for 5.6.0-rc7
Read on the tree after commit 3e519c06b, for the FerroEHR release candidate
5.6.0-rc7. The facts added since 5.6.0-rc6 and checked in every text in scope:
the EHDS Art. 10 opt-out from the access services, off until
[authz.rbac] access_service_roles declares their roles, with the Art. 10(2)
vital-interest override (#4516); every write’s committer checked against the
authenticated caller and a Bearer caller’s default committer issued by the
token issuer (#4520, #4585); the ADL 2 FLAT and STRUCTURED writes, Web
Template and validation fixes (#4552, #4559, #4560, #4568, #4574, #4579,
#4580); the AQL archetype predicate that matches the namespace exactly and the
version as the oldest release (#4629, #4630); the CONTRIBUTION merge inputs
and the import of a malformed one (#4577, #4602); the syslog form of an
access-delay record naming the held composition (#4569); the viewer’s upload
refusals (#4523, #4596); storage generation 4 and the storage bench on one
runner (#4525); ferroehr report naming the published openehr-* crate
versions (#4565); the response texts without the Service Model vocabulary
(#4531, #4634); chart 21.0.0-rc7 with appVersion 5.6.0-rc7.
Read and kept on 2026-11-01, for 5.6.0-rc7
- The security, authentication and administration pages: security, the authentication configuration and the administration APIs describe the Art. 10 opt-out as a Member State option that FerroEHR ships the software part of, off by default, which hides the EHR from the declared access services only and deletes nothing.
- The audit page: the audit trail states that the syslog
and FHIR forms of the hold’s record name the same
access-delay:<vo>. - The resources and query pages: resources states the committer check and the CONTRIBUTION merge inputs, and querying with AQL states the namespace and version rule of an archetype predicate.
- The performance and operations pages: performance
describes the storage bench as two builds on one runner and names its
bounds, and operations and the
command line say which
openehr-*versionsferroehr reportnames, read throughopenehr_crates_origin. - The hazard log and the technical documentation: the logging component changed since 5.6.0-rc6 (the syslog object of an EHR-level record, the opt-out’s access records and the override’s mark), so the hazard log gains review 15, H2 and H9 name their new tests, and the technical documentation gains its 5.6.0-rc7 row.
- The installation pins: the Kubernetes installation, the chart README and verifying releases name chart 21.0.0-rc7 and image 5.6.0-rc7 in the book of main.
SECURITY.md, the information sheet, the instructions for use, the image labels and the chart description make no claim this release changes.
Left open on 2026-11-01, for 5.6.0-rc7
- The conformance run on
mainunder the released profile fails no row against the server and has one errored row, Veredictum’s own (Vernum-Projecten/Veredictum#964, closed upstream after the pinned 0.3.2, which still errors on it); the triage on #4455 stays open. The badges show the run as it stands, and no text claims a green record. - The public sandbox runs 5.5.0 and is not redeployed for a pre-release, so it serves the old paths and the old error body until 5.6.0 ships.
The review of 2026-11-02, for 5.6.0-rc8
Read on the tree after commit 97265816d, for the FerroEHR release candidate
5.6.0-rc8. The facts added since 5.6.0-rc7 and checked in every text in scope:
the published Veredictum 0.4.0 record of a released-profile run against
FerroEHR on deployment.spec_profile = "stable" with no failed and no errored row, the
Veredictum 0.1.6 documents removed, and the released-profile verdict required
in the merge queue and the release (#4451, #4455, #4771); conformance_profile derived from that record (#4672); the read-only
ADL 1.4 to ADL 2 conversion routes (#4655); a template upload that answers
400 for every invalid template and never refuses a stored one (#4643,
#4647); the ITS-JSON minItems of folders, events and languages
(#4644, #4648); the canonical XML items root of a LOCATABLE (#4645); an AQL
parent archetype that admits a child release only through that release’s own
parent release (#4637); a subject resolved through the EHR subject columns and
the empty linkage domain removed (#4675, #4684, #4697); the
processing-restricted type on a refused write and the curated 500 texts
(#4657); the identifier scan reading a DV_IDENTIFIER’s declared type
(#4702); the validation refusal’s Prefer advice (#4597); the inline
primitive’s node id (#4739); the viewer’s session gate on every unsafe method
and LEPTOS_SITE_ADDR no longer read (#4724, #4725); every item-tag
operation checked by ABAC in its target’s mode (#4768); reverse_relationships
in a stable-profile canonical-JSON party read (#4775); chart 21.0.0-rc8 with
appVersion 5.6.0-rc8.
Changed on 2026-11-02, for 5.6.0-rc8
- Privacy configuration: the
identifier scanner was said to refuse a national-identifier value “wherever
it sits,
DV_IDENTIFIER.idincluded”. Since #4702 aDV_IDENTIFIERwhosetypedeclares an item is not scanned, and one in aFEEDER_AUDITonly when itstypenames a person, which the same page’s table states. The sentence now points at that table. - Kubernetes installation: the production deployment probe was said to run against four PostgreSQL clusters. With the linkage domain gone (#4684) it runs against three, and the text says so.
- Records of processing: the audit schema was said to sit outside “all three” pseudonymisation domains; since #4684 there are two, the clinical and the demographic.
- Conformance: the page said the instrument judges
FerroEHR on its default
developmentprofile. Since #4775 the released run judges it ondeployment.spec_profile = "stable", as the workflow sets; the page now names the profile of each run.
Read and kept on 2026-11-02, for 5.6.0-rc8
- The conformance pages: conformance, the landing page and the README show the Veredictum 0.4.0 badges and the record’s counts per part from the committed record, and state that the released run decides the job. No text types a number the record does not carry.
- The API pages: using the API derives
conformance_profilefrom the record and names no configuration key for it; problem types states the400of a template upload and theprocessing-restrictedtype; templates and validation describes the conversion routes as FerroEHR’s own design with their404and422; content negotiation names the root elements no ITS-XML schema publishes. - The security and demographics pages: security states
that an item-tag operation takes its target’s ABAC mode (#4768), and
demographics states that a stable-profile
canonical-JSON party read carries
reverse_relationshipsand the canonical-XML read does not yet. - The storage and configuration pages: the
server configuration refuses
[storage.linkage]as an unknown key, operations carries the upgrade past the linkage domain, and the audit trail keeps thelinkageaccess-record domain for a crossing, which the code still writes. - The hazard log and the technical documentation: the logging component changed since 5.6.0-rc7 (the operation table, the conversion routes’ access records, the service error type, the batch insert, audit migration 0021, the tag read’s object and the records of the parties a party read discloses), so the hazard log gains review 16 and the technical documentation its 5.6.0-rc8 row; no control changed and every named test exists.
- The installation pins: the Kubernetes installation, the chart README and verifying releases name chart 21.0.0-rc8 and image 5.6.0-rc8 in the book of main.
SECURITY.md, the information sheet, the instructions for use, the image labels and the chart description make no claim this release changes.
Left open on 2026-11-02, for 5.6.0-rc8
- The development-profile run, shown beside the record and never counted toward it, fails the row tracked on #5258; its badges show the run as it stands, and no text claims it green. The two rows #4776 tracked pass: under the development profile an ADL 2 description without an author or a lifecycle state is refused.
- A stable-profile canonical-XML party read does not carry
reverse_relationshipsyet (#4778); the demographics page says so. - The public sandbox runs 5.5.0 and is not redeployed for a pre-release, so it serves the old paths and the old error body until 5.6.0 ships.
- The performance page keeps the figures the
Veredictum 0.1 line measured until a
perf-resultrecord measured on the reference host replaces them, as the page says.
The review of 2026-11-02, for 5.6.0-rc9
Read on the tree after commit e6100379c, for the FerroEHR release candidate
5.6.0-rc9. 5.6.0-rc8 was tagged and not published: its vulnerability record
refused findings that had no OpenVEX judgement, so every claim of the 5.6.0-rc8
review above reaches users first with this release. The facts added since
5.6.0-rc8 and checked in every text in scope: the OpenVEX judgements of the
gcc-14 and SQLite findings (#4789); the vulnerability record run on a release
pull request and every day, and the published images re-scanned every day
(#4795); audit migration 0022 and the three unused horizon reap functions
removed (#4770); the AOM2 node id of a primitive constraint inside a rule or a
slot assertion (#4770); chart 21.0.0-rc8 with appVersion 5.6.0-rc9.
Read and kept on 2026-11-02, for 5.6.0-rc9
- The supply-chain pages: verifying releases, the supply-chain hardening page and the CRA risk assessment state the daily re-scan and the vulnerability record each release publishes, as the workflows run them.
- The audit and retention pages: the audit trail and the hazard log’s H5 describe reaping through each record’s own retention end, and no text names a removed reap function; the hazard log gains review 17 and the technical documentation its 5.6.0-rc9 row.
- The installation pins: the Kubernetes installation, the chart README and verifying releases name chart 21.0.0-rc8 and image 5.6.0-rc9 in the book of main.
SECURITY.md, the information sheet, the instructions for use, the image labels and the chart description make no claim this release changes.
Left open on 2026-11-02, for 5.6.0-rc9
- Everything the 5.6.0-rc8 review left open: the development-profile run’s
failed rows (#4776, #4777), the canonical-XML
reverse_relationships(#4778), the 5.5.0 sandbox and the performance page’s earlier figures.
The review of 2026-11-02, for 5.6.0-rc10
Read on the tree after commit 797ceb527, for the FerroEHR release candidate
5.6.0-rc10. 5.6.0-rc8 and 5.6.0-rc9 were tagged and not published, so the
claims of their reviews above reach users first with this release. The facts
added since 5.6.0-rc9 and checked in every text in scope: the outbox served to
its named readers over a cursor feed under the __ferroehr.outbox scope, and
FerroEHR’s own broker publisher, [events], the subscription routes and the
viewer’s Subscriptions page removed (#4786, #4766); the access record of a
VERSION read naming the content it served (#4660); the BASE 1.3.0 description
invariants of an ADL 2 template under the development profile (#4776); a
slow database connect no longer recorded as an outage, and a reset one
recorded as an outage on the pool’s own connect too (#4782, #4807); Prefer
read on every route as RFC 7240 §2 defines it (#4722); chart
21.0.0-rc9 with appVersion 5.6.0-rc10.
Changed on 2026-11-02, for 5.6.0-rc10
- The README, the landing page, beyond core and change events said FerroBRIDGE reads the feed and delivers the events to an AMQP broker, and the landing page listed “RabbitMQ via FerroBRIDGE”. FerroBRIDGE’s broker delivery is still in progress (FerroHEALTH/FerroBRIDGE issue 1367), so each text now says so, and the change-events page says a deployment that needs broker events keeps a release with FerroEHR’s own publisher until a FerroBRIDGE release carries it. The removal fragment of the changelog says the same.
Read and kept on 2026-11-02, for 5.6.0-rc10
- The configuration, integrations, administration API, audit and privacy
pages describe
[record.change_feed] readers, the feed’s scope and its access records, and the change-events page the removed[events],secrets.eventsUrlandplaintext_broker, which the server refuses at boot. - The hazard log and the technical documentation: the logging component’s modules did not change since 5.6.0-rc9; the hazard log gains review 18 and the technical documentation its 5.6.0-rc10 row for the VERSION read’s record and the feed’s access records.
- The installation pins: the Kubernetes installation, the chart README and verifying releases name chart 21.0.0-rc9 and image 5.6.0-rc10 in the book of main.
SECURITY.md, the information sheet, the instructions for use, the image labels and the chart description make no claim this release changes.
Left open on 2026-11-02, for 5.6.0-rc10
- Broker delivery waits on a FerroBRIDGE release (FerroHEALTH/FerroBRIDGE issue 1367), as the change-events page says.
- Everything the 5.6.0-rc8 review left open: the development-profile run’s
failed row tracked on #5258, the canonical-XML
reverse_relationships(#4778), the 5.5.0 sandbox and the performance page’s earlier figures.
The review of 2026-11-04, for 5.6.0
Read on the tree after commit 25db5c69c, for FerroEHR 5.6.0, the stable
release after 5.5.0 and the ten release candidates whose reviews stand above.
The facts added since 5.6.0-rc10 and checked in every text in scope: an EHR
whose access settings do not parse held closed, such settings refused on every
write and load, and the administrator’s repair route (#4846, #4854, #4865,
#4853); the manifest export checked against the EHR_ACCESS settings of every
EHR it names, both EHR Extract export and import routes behind the ABAC
pre-check, and an Art. 10(2) override export recorded (#4864, #4869, #4872,
#4870); the viewer’s sign-in through ferrohealth-session, its absolute
session lifetime and session watch, and its CDR requests confined to the
configured CDR (#4873, #3057, #4223, #4954); a version equal to its predecessor
stored once, and [record.versioning] record.versioning.idempotent_resend (#4415); storage
generation 5 (#4904); the family pins, FerroTERM 0.4.1, FerroPIX 0.0.15 and
FerroBRIDGE 0.0.19 by digest, and the newest family crates (#4933, #4981, #4968); the
conformance record of Veredictum 0.4.1 (#4971); chart 21.0.0 with appVersion
5.6.0.
Changed on 2026-11-04, for 5.6.0
- The README, the landing page, beyond core and
change events said FerroBRIDGE’s broker
delivery was in progress and that a deployment needing broker events keeps
5.5.0 or 5.6.0-rc7. FerroBRIDGE 0.0.15 delivers the outbox feed to an AMQP
broker under its
[events]lane (FerroHEALTH/FerroBRIDGE issue 1367, closed 2026-11-02), so each text now names that release, and the migration steps on the change-events page apply to FerroBRIDGE 0.0.15 or later.
Read and kept on 2026-11-04, for 5.6.0
- The chart, its README and the Kubernetes installation
say what FerroBRIDGE 0.0.17 checks through
[auth], which #4933 corrected where they said FerroBRIDGE authenticated no caller. - The configuration and operations pages name the refusal of the OTLP TLS
files beside an endpoint that is not
https://, the span named by method and route andhttp_server_active_requests(#4968). - The hazard log, the technical documentation and the CRA risk assessment: every test the hazard log names exists; it gains review 19, the CRA risk assessment revision 25, and the technical documentation keeps its 5.6.0 row.
- The installation pins: the Kubernetes installation, the chart README and verifying releases name chart 21.0.0 and image 5.6.0.
SECURITY.md, the information sheet, the instructions for use, the image labels and the chart description make no claim this release changes.
Left open on 2026-11-04, for 5.6.0
- A v2-namespace OPT 1.4 whose ordinal list keeps
xsi:type DV_ORDINALis accepted, tracked on #5258 for the next release. - The performance page keeps its earlier figures until a record measured on the reference host replaces them.
The review of 2026-11-05, for 5.6.1
Read on the tree after commit 75262e1ce, for FerroEHR 5.6.1, the patch
release after 5.6.0. The facts added since 5.6.0 and checked in every text in
scope: the hosted sandbox’s viewer posture with the session keys the 5.6.0
viewer reads (#4985); the family pins, FerroPIX 0.0.16 with its chart 0.3.8,
FerroBRIDGE 0.0.20 and ferroehr-postgres 5.6.0 on the hosted database box by
digest, with FerroTERM still at 0.4.1, and four FerroSYS crate releases that
change no behaviour (#4987); chart 21.0.1 with appVersion 5.6.1.
Changed on 2026-11-05, for 5.6.1
- The Kubernetes installation said the chart pins FerroPIX 0.0.15 by digest. #4987 moved the pin to 0.0.16 with the FerroPIX chart 0.3.8, so the page now names 0.0.16.
Read and kept on 2026-11-05, for 5.6.1
- The README, beyond core and change events name FerroBRIDGE 0.0.15 or later for broker delivery, which 0.0.20 still delivers.
- Audit and the technical documentation name FerroBRIDGE’s recording of its FHIR facade’s accesses from 0.0.16, unchanged in 0.0.20.
- The hazard log, the technical documentation and the CRA risk assessment: every test the hazard log names exists; it gains review 20, the CRA risk assessment revision 26, and the technical documentation keeps its 5.6.0 row, since no module of the logging component changed.
- The installation pins: the Kubernetes installation, the chart README and verifying releases name chart 21.0.1 and image 5.6.1.
SECURITY.md, the information sheet, the instructions for use, the image labels and the chart description make no claim this release changes.
Left open on 2026-11-05, for 5.6.1
- A v2-namespace OPT 1.4 whose ordinal list keeps
xsi:type DV_ORDINALis accepted, tracked on #5258 for 5.7.0. - The performance page keeps its earlier figures until a record measured on the reference host replaces them.
The review of 2026-11-05, for 5.6.2
Read on the tree after commit ea1190926, for FerroEHR 5.6.2, the
security-only patch release after 5.6.0; the v5.6.1 tag exists and its
release never published. The fact added since 5.6.1 and checked in every text
in scope: CVE-2026-76844 in the zlib package of the three images, judged
not_affected in security/vex/ferroehr-os.openvex.json and
security/vex/postgres-os.openvex.json (#4993); chart 21.0.2 with
appVersion 5.6.2.
Read and kept on 2026-11-05, for 5.6.2
- Verifying releases describes the two OS
documents by the packages they cover, zlib among them, and counts six
affectedfindings inferroehr-postgres; the new statements arenot_affected, so both hold. - The CRA risk assessment gains revision 27 for the judgement; the hazard log and the technical documentation keep their rows, since no module of the logging component changed.
- The installation pins: the Kubernetes installation, the chart README and verifying releases name chart 21.0.2 and image 5.6.2.
SECURITY.md, the information sheet, the instructions for use, the image labels and the chart description make no claim this release changes.
Left open on 2026-11-05, for 5.6.2
- A v2-namespace OPT 1.4 whose ordinal list keeps
xsi:type DV_ORDINALis accepted, tracked on #5258 for 5.7.0. - The performance page keeps its earlier figures until a record measured on the reference host replaces them.
The review of 2026-11-05, for 5.6.3
Read on the tree after commit 6b2ff1644, for FerroEHR 5.6.3, the first
published release since 5.6.0; the v5.6.1 and v5.6.2 tags exist and neither
release published, so this review also covers the facts of the 5.6.1 and
5.6.2 reviews. The facts added since 5.6.2 and checked in every text in
scope: the performance guard’s baseline, the newest published release
(#4998); RUSTSEC-2026-0440 judged not_affected (#4996); ferrohealth-server
0.5.0 (#5000); FerroBRIDGE 0.0.21 in the chart by digest (#5017); chart 21.0.4
with appVersion 5.6.3.
Read and kept on 2026-11-05, for 5.6.3
- Verifying releases describes the Rust document as the advisories the gate accepts plus the one a lock-file scanner reports, which holds with RUSTSEC-2026-0440 among the accepted.
- The README, beyond core, change events and audit name FerroBRIDGE 0.0.15 or later for broker delivery and its facade’s access records from 0.0.16, which 0.0.21 still provides.
- The CRA risk assessment gains revision 28; the hazard log and the technical documentation keep their rows, since no module of the logging component changed.
- The installation pins: the Kubernetes installation, the chart README and verifying releases name chart 21.0.4 and image 5.6.3.
SECURITY.md, the information sheet, the instructions for use, the image labels and the chart description make no claim this release changes.
Left open on 2026-11-05, for 5.6.3
- A v2-namespace OPT 1.4 whose ordinal list keeps
xsi:type DV_ORDINALis accepted, tracked on #5258 for 5.7.0. - The performance page keeps its earlier figures until a record measured on the reference host replaces them.
The review of 2026-11-10, for 5.7.0-rc1
Read on the tree after commit a6ce1927d, for the FerroEHR release candidate
5.7.0-rc1. The facts of this release checked in every text in scope:
- Party binding: every person is bound to a demographic
PERSON. A login no party carries is refused with403andrefused-unbound, and a bound caller commits under the committer the server derives (#5003, #5004, #5005, #5006). The Basic user list holds persons only (#5009). - SCIM 2.0 provisioning at
/scim/v2/, off by default, with the Entra ID profile and contact erasure (#5014, #5015, #5178). Just-in-time creation of a provisional person is off by default (#5016). - The caller kinds: system callers, federation agreements with the Wabvpz Art. 15f roles, the MyHealth@EU contact point route and its caller rate, and representative confinement (#5086, #5100, #5101, #5102, #5107, #5149).
- The access record carries the binding outcome, and every refused request is recorded (#5118, #5119).
- The security fixes GHSA-jhg2-jwjp-hq74 and GHSA-pfgx-xq28-2629 (#5003, #5047), the zlib fixes in the three images (#5137, #5152), and the four krb5 CVEs of the PostgreSQL image judged
not_affected(#5344). - The configuration tree is one table per concern, with every retired key refused by name (#5259). The four outbound integrations use one endpoint table (#5331).
- The family run path (#5321).
- Chart 25.0.1-rc1 with
appVersion5.7.0-rc1.
Changed on 2026-11-10, for 5.7.0-rc1
- The chart description and README said
config.deployment_profilenames the posture, and the README’s install command set that key, which the chart refuses to render since #5259. #5341 renamed both toconfig.deployment.profilebefore this review. It also made the chart’s boot check judge the production overlay’s posture again. - The CRA risk assessment’s outbound data flows named
[auth] mode = "introspection"with[auth.introspection.client]and[pixm] subject_index. They now namemode = "introspection"in an[[auth.issuer]]table,[auth.issuer.introspection.client]and[record] subject_index(#5259). #5331 had already moved the integrations’oauthtables to[<x>.endpoint.credentials.oauth]. Revision 29 records the release. - The hazard log:
- H2 named two assurance tests #5003 renamed.
- H5 named its floor tests in
config/mod.rsandsystem_log/config.rs, which moved toconfig/audit_tests.rsandsystem_log/retention.rs. - Review 21 records both moves.
- The technical documentation named the FerroAUDIT pins as 0.3.3. It names 0.9.1, the version the root
Cargo.tomlpins, and gains the 5.7.0-rc1 row.
Read and kept on 2026-11-10, for 5.7.0-rc1
- The configuration pages: configuration, the integrations, audit, auth and CLI pages, security, the terminology page and the go-live checklist name the 5.7.0 keys.
docs-claimsresolves every documented key against the shipped default configuration. - The identity pages: identity providers says the Basic list holds persons only and machines use client credentials. The bootstrap and migration page names the four steps and the go-live prerequisites: FerroBRIDGE v0.0.23 and FerroFED v0.0.17 before a deployment adds
personsissuers its bridge or gateway writes through. - The installation pins: the Kubernetes installation, the chart README and verifying releases name chart 25.0.1-rc1 and image 5.7.0-rc1 in the book of main. The frozen book of 5.6.3 under
/docs/latest/keeps its pins, since a pre-release freezes no book. SECURITY.mdnamessecurity@cadasto.comfor a vulnerability report (#5272).- The landing page, the crate READMEs, the information sheet, the instructions for use and the image labels make no claim this release changes.
Left open on 2026-11-10, for 5.7.0-rc1
- The public sandbox runs 5.6.3 until the owner moves it to 5.7.0-rc1 for the reseed #5009 asks of the candidate. The release legs move it to 5.7.0 at the stable cut.
- A v2-namespace OPT 1.4 whose ordinal list keeps
xsi:type DV_ORDINALis accepted, tracked on #5258, now for 5.9.0. - The performance page keeps its earlier figures until a record measured on the reference host replaces them.
The review of 2026-11-10, for 5.7.0-rc2
Read on the tree after commit 936d1d921, for the FerroEHR release candidate
5.7.0-rc2. 5.7.0-rc1 was tagged at dd30c84c4 and not published. The review
of 2026-11-10 for 5.7.0-rc1 stands for everything 5.7.0-rc1 carried. The facts
added since, checked in every text in scope:
- The release’s performance guard and logging evaluation start the login provisioner the quickstart ships, so they measure the candidate with its Basic login bound (#5346). No product code changed.
- Chart 25.0.1-rc2 carries
appVersion5.7.0-rc2.
Read and kept on 2026-11-10, for 5.7.0-rc2
- The logging performance page describes the method and the claims
scripts/perf/audit.shmeasures. The script now binds its login as the quickstart does, which changes neither. - The installation pins: the Kubernetes installation, the chart README and verifying releases name chart 25.0.1-rc2 and image 5.7.0-rc2 in the book of main.
- The landing page,
SECURITY.md, the crate READMEs, the information sheet, the instructions for use, the image labels and the chart description make no claim this release changes.
Left open on 2026-11-10, for 5.7.0-rc2
- The public sandbox runs 5.6.3 until the owner moves it to 5.7.0-rc2 for the reseed #5009 asks of the candidate. The release legs move it to 5.7.0 at the stable cut.
- A v2-namespace OPT 1.4 whose ordinal list keeps
xsi:type DV_ORDINALis accepted, tracked on #5258 for 5.9.0. - The performance page keeps its earlier figures until a record measured on the reference host replaces them.
The review of 2026-11-11, for 5.7.0-rc3
Read on the tree after commit 1b79e7f5c, for the FerroEHR release candidate
5.7.0-rc3. The reviews of 2026-11-10 for 5.7.0-rc1 and 5.7.0-rc2 stand for
everything those candidates carried. The facts added since, checked in every
text in scope:
- The configuration is redacted by its secret types alone, and every URL and issuer renders with its credentials masked (#5322). Administration APIs says so and names the URL keys.
- The annotated default configuration is generated from the configuration types, and the reference page includes it (#5316).
- The family crates move to their newest releases, and every outbound client is built from the family endpoint table (#5320, #5324, #5325). The quickstart, the hosted sandbox and the chart pin FerroPIX 0.0.26 and FerroTERM 0.4.5 (#5351).
- The audit record takes the purpose of use and the professional role from an IHE IUA token (#5323) and records a contact point’s request message id (#5011).
- The crates page says the
openehr-*crates follow Cargo SemVer, judged bycargo-semver-checks, and that their next publish moves the line to 0.1.0 (#5353). - The quickstart compose file attached to a release carries a checksum.
- Chart 25.0.1-rc4 carries
appVersion5.7.0-rc3.
Read and kept on 2026-11-11, for 5.7.0-rc3
- The configuration pages: configuration includes the generated reference, which
config-reference.shholds to the types, anddocs-claimsresolves every documented key. - The installation pins: the Kubernetes installation, the chart README and verifying releases name chart 25.0.1-rc4 and image 5.7.0-rc3 in the book of main. The Kubernetes installation names FerroPIX 0.0.26.
- The landing page and the README were aligned with the FerroPIX site in #5382 and make no claim this release changes beyond it.
SECURITY.md, the crate READMEs, the information sheet, the instructions for use, the image labels and the chart description make no claim this release changes.
Left open on 2026-11-11, for 5.7.0-rc3
- The public sandbox runs 5.6.3 until the owner moves it to 5.7.0-rc3 for the reseed #5009 asks of the candidate. The release legs move it to 5.7.0 at the stable cut.
- A v2-namespace OPT 1.4 whose ordinal list keeps
xsi:type DV_ORDINALis accepted, tracked on #5258 for 5.9.0. - The performance page keeps its earlier figures until a record measured on the reference host replaces them.
The review of 2026-11-11, for 5.7.0-rc4
Read on the tree after commit 43bb17040, for the FerroEHR release candidate
5.7.0-rc4. The reviews for 5.7.0-rc1 to 5.7.0-rc3 stand for everything those
candidates carried. The facts added since, checked in every text in scope:
- The hosted sandbox’s configuration declares its SCIM service provider under
[auth.scim], and CI reads every server and viewer configuration the repository ships through the program built from the change (#5396). The hosted sandbox README and the bootstrap and migration page name[[auth.scim.client]]. - The viewer’s OpenID Provider issuer and redirect URIs render with their credentials masked, through
ferrohealth-session0.13.0 (#5394). - Chart 25.0.1-rc5 carries
appVersion5.7.0-rc4.
Read and kept on 2026-11-11, for 5.7.0-rc4
- The installation pins: the Kubernetes installation, the chart README and verifying releases name chart 25.0.1-rc5 and image 5.7.0-rc4 in the book of main.
- The landing page, the README,
SECURITY.md, the crate READMEs, the information sheet, the instructions for use, the image labels and the chart description make no claim this release changes.
Left open on 2026-11-11, for 5.7.0-rc4
- The public sandbox runs 5.6.3 until the owner moves it to 5.7.0-rc4 for the reseed #5009 asks of the candidate. The release legs move it to 5.7.0 at the stable cut.
- A v2-namespace OPT 1.4 whose ordinal list keeps
xsi:type DV_ORDINALis accepted, tracked on #5258 for 5.9.0. - The performance page keeps its earlier figures until a record measured on the reference host replaces them.
The review of 2026-11-11, for 5.7.0
Read on the tree after commit 52733869b, for the FerroEHR release 5.7.0.
The reviews for 5.7.0-rc1 to 5.7.0-rc4 stand for everything those candidates
carried. The facts added since, checked in every text in scope:
- A
PERSONbinds a login only while it performs a professionalROLEof the party mapping’s role template, andferroehr party-binding adoptgives an existingPERSONitsROLE(#5004). The bootstrap and migration page says so and ordersadoptbefore the first SCIM run. - The hosted sandbox’s reseed brings the CDR up through the deploy script’s
deployverb and names its EHR subjects by FerroPIX pseudonym (#5406, #5409). - Chart 25.0.1 carries
appVersion5.7.0.
Changed on 2026-11-11, for 5.7.0
- The bootstrap and migration page named FerroFED v0.0.17 as the release whose gateway reaches the CDR under the caller, and said it would follow this release. FerroFED v0.0.17 was tagged without that change, FerroFED v0.0.19 does not carry it either, and FerroHEALTH/FerroFED#1615, which carries it, is open in the FerroFED milestone v0.0.20. The page now says no FerroFED release up to v0.0.19 reaches the CDR under the caller and names the issue, and the 5.7.0 changelog section says the same.
Read and kept on 2026-11-11, for 5.7.0
- The installation pins: the Kubernetes installation, the chart README and verifying releases name chart 25.0.1 and image 5.7.0 in the book of main, which the release freezes under
/docs/v5.7.0/. - The landing page, the README,
SECURITY.md, the crate READMEs, the information sheet, the instructions for use, the image labels and the chart description make no claim this release changes.
Left open on 2026-11-11, for 5.7.0
- The public sandbox follows the
latestimage tags, which the release legs move to 5.7.0 once its images are scanned and tagged. - A v2-namespace OPT 1.4 whose ordinal list keeps
xsi:type DV_ORDINALis accepted, tracked on #5258 for 5.8.0. - The performance page keeps its earlier figures until a record measured on the reference host replaces them.
The review of 2026-11-13, for 5.7.1-rc1
Read on the tree after commit de48ac5a8, for the FerroEHR release candidate
5.7.1-rc1. The reviews for 5.7.0-rc1 to 5.7.0 stand for everything 5.7.0
carried. The facts added since, checked in every text in scope:
- Operational policy lives in the CDR (#5433): who may do what is coded content of demographic parties, read on every request with no restart, under
[authz.grants] allowed. System clients with their imports and exports (#5432, #5436, #5530), the backend and DEMOGRAPHIC clients and the clients a token is classified through (#5437), Basic users’ roles and scopes, with[authz.rbac] first_adminas the first administrator (#5438), trusted import systems, origins, change-feed readers and SCIM clients (#5439), federation agreements (#5440), just-in-time admission (#5441) and the four privileges beyond clinical access (#5521) are grants; the audit category map, the access delay and the Cedar policy set are admin registers (#5442). A policy party is recognised by the codes it holds, in any archetype, and only an administrator reads or writes one (#5434, #5450, #5474, #5485). - The configuration lists 855 keys, 920 in 5.7.0, and names the 10 a deployment must set (#5455); one public URL takes the place of three (#5465), and the party mapping defaults to the shipped demographic definitions (#5428, #5462).
- Representatives in the patient portal read the patient’s record under a representation the deployment or the patient records, and a former representative is never taken for the patient (#5446, #5532).
- The demographic write rules refuse a relationship sourced elsewhere and a reference of the wrong kind, and
reverse_relationshipsreads as it stood at a version (#5471, #5472, #5473). - The security fix GHSA-gwh2-7hjm-4pj4: every issuer FerroEHR’s own keys name renders its userinfo masked (#5418).
- The family crates move to
ferrohealth-smart0.24.1 and its siblings,ihe-atnaandehds-logging0.18.0 among them (#5417, #5422, #5465, #5437). - Chart 32.0.0-rc1 carries
appVersion5.7.1-rc1.
Changed on 2026-11-13, for 5.7.1-rc1
- The 5.7.1-rc1 changelog section said a policy party is recognised by its archetype, answered
403naming the archetype, and that no check read a grant yet; a later change of the same release recognises it by its codes and every check reads the grants. It said a Basic user holds its granted roles beside its[[auth.basic.users]]table, which no longer holds roles, and that demographic AQL hides a party by its root archetype. The four entries (#5434, #5435, #5438, #5450) now say what 5.7.1 does. - The key counts of the release notes said 868 keys, 921 in 5.7.0. The generated reference lists 855 at this commit, and the 5.7.0 reference listed 920: the 921st key,
[auth] described_issuer, came after 5.7.0 (#5425). The #5455 entries, the CRA risk assessment and this review give 855 and 920. - The CRA risk assessment: revision 31 and C13 name the client standing, the first administrator, the four privileges #5521 moved, the import and export reach of #5530 and the portal representations, and the crates of #5437. The technical documentation and the hazard log name the FerroAUDIT pins 0.18.0, and both record the ITI-81 subject read and the access-service mark coming from grants (#5521); H6 already names the grant and its test.
Read and kept on 2026-11-13, for 5.7.1-rc1
- The Operational policy page describes each kind of policy party with a worked example and labels each of its own-design decisions;
docs/architecture.mdrecords the model with its citations. - The configuration pages: configuration includes the generated reference, and the auth, audit and privacy pages, security and identity providers name the 5.7.1 keys and the grants that replaced the removed ones.
docs-claimsresolves every documented key. - The installation pins: the Kubernetes installation, the chart README and verifying releases name chart 32.0.0-rc1 and image 5.7.1-rc1 in the book of main.
- The landing page, the README,
SECURITY.md, the crate READMEs, the information sheet, the image labels and the chart description make no claim this release changes.
Left open on 2026-11-13, for 5.7.1-rc1
- The instructions for use at the pinned revision (2026-10-26) name keys 5.7.0 and 5.7.1 refuse at start:
deployment_profile,[audit.store] retention_years,[audit.syslog] host,[authz.professional]and[audit.categories], and say FerroEHR ships no category map. The page lives in the FerroHEALTH book, whose repository is paused, so it is tracked on #5534 for the owner’s call. - The public sandbox follows the
latestimage tags and stays on 5.7.0, since a pre-release moves no tag. - A v2-namespace OPT 1.4 whose ordinal list keeps
xsi:type DV_ORDINALis accepted, tracked on #5258 for 5.8.0. - The performance page keeps its earlier figures until a record measured on the reference host replaces them.
Getting started
This chapter takes you from nothing to a running server with a template loaded, a clinical composition stored, and an AQL query returning results in a few minutes, using Docker Compose. It is the fastest way to see FerroEHR work end to end and to get a feel for the API before reading the reference chapters. Everything here uses the built-in development credentials; do not use them outside local evaluation.
Warning
The steps below enable Basic auth with the throwaway user
ferroehr/ferroehr, leave role-based access control off (so that one user reaches every enabled surface, admin API included), and use a permissive CORS policy. This is a development configuration only. See Security and the configuration reference before exposing a server.
1. Start the stack
You need Docker with the Compose plugin (2.23.1 or newer). Download
docker-compose.yml (attached to every
release, and
pulling that release’s images) into an empty directory and start it. The copy
in the repository pulls the :main images built from main and carries
main’s configuration, for running main:
curl -fsSLO https://github.com/FerroHEALTH/FerroEHR/releases/latest/download/docker-compose.yml
docker compose up --wait
This pulls and starts two services: the server (ferroehr) on port 8080,
and a preconfigured PostgreSQL 18 database. The server runs its schema
migrations automatically on first boot, so the database is ready as soon as it
reports healthy. Nothing else is needed: the server’s configuration travels
inside the Compose file, which also ships one Basic-auth user (ferroehr /
ferroehr, holding both the ADMIN and USER roles) so the API authenticates
out of the box.
Published ports bind 127.0.0.1 by default, so the stack is reachable from
this machine and not from the network. Three things are optional and stay down
until you ask for them: the viewer
(docker compose --profile viewer up, then http://localhost:3000), a
SeaweedFS S3 gateway for multimedia (--profile s3), and a ready-made Keycloak
identity provider for bearer-token auth (a second downloadable overlay,
docker-compose.keycloak.yml). See Docker Compose
for all of them.
2. Probe the status endpoint
The status endpoint is public and confirms the server is up:
curl http://localhost:8080/ferroehr/rest/status
It answers a small JSON document: status, server_version,
openehr_rest_api_version, a timestamp, the licence in force and the
declared deployment profile. All clinical API routes live under
the base path /ferroehr/rest/openehr/v1. Interactive OpenAPI documentation is
served at http://localhost:8080/ferroehr/rest/swagger-ui; sign in with the
API credential when the browser asks (the UI is served to authenticated users by
default, see api.openapi_ui). If you have no
server yet, use the hosted sandbox: https://sandbox.ferroehr.eu opens the
viewer over a live CDR, and the same server’s Swagger UI is at
https://sandbox.ferroehr.eu/ferroehr/rest/swagger-ui. Both take the public
demo credentials ferroehr / ferroehr. The sandbox is a shared demo server
that resets every night, so treat anything you write there as temporary and
expect it to slow down under heavy use.
What is already in the sandbox
The nightly reset reloads a fixed demo dataset, so the server always answers with something to look at:
- 8 EHRs, each with a mixed record and its own patient. The sandbox
resolves patients through FerroPIX, the FerroHEALTH patient identity
source, as the compose quickstart does: the patients are
sandbox-patient-01…-08in the synthetic hospital domainurn:oid:2.999.1.1, and eachEHR_STATUSnames its patient by the pseudonym FerroPIX minted in the clinical domainurn:oid:2.999.7.1.POST /query/cohortwithsubjectsnamed in the hospital domain finds their EHRs through FerroPIX. Two of them carry a secondEHR_STATUSversion: patient 07 is not queryable and so never appears in AQL results, patient 08 is not modifiable and refuses writes with a409. - 183 compositions across 17 ADL 1.4 templates: sixteen from the
openEHR CKM (vital signs, problem and medicines lists, lab results,
referrals, an International Patient Summary, several statutory case-report
forms) and one terminology-binding template whose coded text resolves
against the terminology server running beside the CDR. Six compositions
have more than one version, so
LATEST_VERSIONandALL_VERSIONSdiffer on real data. - 233 ADL 2 archetypes and 5 ADL 2 templates, browsable under
extensions/v1/definition/archetype/adl2andopenehr/v1/definition/template/adl2. Two of the templates are ADL 2 source templates whose slots the server flattens against that archetype library, and the compositions committed from them came out of the server’s own…/examplegenerator. - 11 demographic parties (persons, roles, party relationships) and a FOLDER directory in every EHR whose items reference real compositions.
- 5 stored AQL queries under
eu.ferroehr.sandbox, all of which return rows:composition_index,blood_pressure,case_reports,composition_versions, andpatient_record(takes an$ehr_idparameter). Run one withGET /query/eu.ferroehr.sandbox::composition_index, or open the viewer’s query screen.
There are also three always-on, unauthenticated health endpoints: /health,
/health/liveness and /health/readiness; the last one reports each
dependency it checked. See Operations → Health probes.
3. Create an EHR
An EHR is the container for one subject’s records. Create one with a POST
(no body needed):
curl -u ferroehr:ferroehr -X POST -i \
http://localhost:8080/ferroehr/rest/openehr/v1/ehr
The -i flag shows the response headers. On success you get 201 Created; the
new EHR’s identifier is in the ETag header (as the weak form
W/"<ehr_id>"), and Location points at the created resource. Copy the UUID;
the examples below refer to it as EHR_ID.
By default the response body is empty. Add -H 'Prefer: return=representation'
to have the server return the full EHR object instead, or
-H 'Prefer: return=identifier' for just the uid; either way
Preference-Applied echoes what the server honoured.
4. Upload a template
Before you can store a composition, the server needs the Operational Template
(OPT 1.4) that the composition conforms to. Templates are XML documents;
upload one with Content-Type: application/xml:
curl -u ferroehr:ferroehr \
-H 'Content-Type: application/xml' \
--data-binary @my-template.opt \
http://localhost:8080/ferroehr/rest/openehr/v1/definition/template/adl1.4
A successful upload returns 201 Created. If you do not have a template to
hand, the openEHR community publishes example OPTs (for instance the
Vital Signs templates used in the openEHR training material), and the
international Clinical Knowledge Manager is the
source for the archetypes they are built from. List what is loaded, and inspect
a template’s derived WebTemplate (a JSON description convenient for building
forms), with:
# List templates
curl -u ferroehr:ferroehr \
http://localhost:8080/ferroehr/rest/openehr/v1/definition/template/adl1.4
# Fetch the WebTemplate for one template
curl -u ferroehr:ferroehr \
-H 'Accept: application/openehr.wt+json' \
http://localhost:8080/ferroehr/rest/openehr/v1/definition/template/adl1.4/my_template_id
See Templates & validation for the full template lifecycle and the WebTemplate/FLAT/STRUCTURED formats.
5. Commit a composition
A composition is one clinical document, stored inside an EHR and validated
against its template. Post the composition JSON (its archetype_details name
the template it belongs to):
curl -u ferroehr:ferroehr \
-H 'Content-Type: application/json' \
-H 'Prefer: return=representation' \
--data-binary @my-composition.json \
http://localhost:8080/ferroehr/rest/openehr/v1/ehr/$EHR_ID/composition
On success you get 201 Created and (because of Prefer: return=representation)
the stored composition in the body, now carrying a server-assigned version
identifier in its uid. If the composition does not conform to its template you
get 422 Unprocessable Entity with the validation errors; a malformed request
gets 400 Bad Request. The composition walkthrough in
Resource walkthroughs covers update and delete,
which use the If-Match header for optimistic concurrency.
6. Query with AQL
Now query across the data with the Archetype Query Language. The simplest query lists the EHR ids the server holds:
curl -u ferroehr:ferroehr \
-H 'Content-Type: application/json' \
-d '{"q":"SELECT e/ehr_id/value FROM EHR e"}' \
http://localhost:8080/ferroehr/rest/openehr/v1/query/aql
The response is a RESULT_SET: a columns array describing each selected value
and a rows array of result tuples. To pull values out of the compositions you
committed, select by their archetype path, for example every systolic blood
pressure above 140:
curl -u ferroehr:ferroehr -H 'Content-Type: application/json' -d '{
"q": "SELECT o/data[at0001]/events[at0006]/data[at0003]/items[at0004]/value/magnitude AS systolic FROM EHR e CONTAINS COMPOSITION c CONTAINS OBSERVATION o[openEHR-EHR-OBSERVATION.blood_pressure.v2] WHERE o/data[at0001]/events[at0006]/data[at0003]/items[at0004]/value/magnitude > 140"
}' http://localhost:8080/ferroehr/rest/openehr/v1/query/aql
Querying with AQL is the full language guide — parameters, stored queries, version scope, terminology, pagination, and the supported feature set.
7. Explore the API interactively
Open http://localhost:8080/ferroehr/rest/swagger-ui (signing in with the API
credential when the browser asks) to browse and try every endpoint from your
browser. The UI’s spec selector carries one entry per API
family: the standardised openEHR groups (EHR, Query, Definition, Demographic,
Admin) and the server’s own extensions (status & management, terminology, party
relationships, messaging, audit, SMART discovery), plus FerroEHR: Complete surface last, which
is the whole server in one document. Every entry is filtered from that same
document, which the server generates from its own handlers, so nothing here can
drift from the routes it actually serves. When authentication is enabled the
“Authorize” dialog shows the one scheme the server is configured for (HTTP
Bearer/JWT when OIDC is set up, otherwise HTTP Basic). The hosted sandbox runs
the same UI at https://sandbox.ferroehr.eu/ferroehr/rest/swagger-ui if you
want to try it before running anything locally — and
https://sandbox.ferroehr.eu itself opens the viewer
on that server, with the demo credentials ferroehr / ferroehr.
Next steps
- Installation — running it for real (Compose, Kubernetes, or from source) and the configuration reference.
- Using the API — the per-resource reference with headers, status codes, and versioning.
- Operations — migrations, probes, observability and upgrades, plus the admin & messaging APIs.
- Concepts — the openEHR model and how FerroEHR is built, if the terms above were unfamiliar.
Using the API
FerroEHR exposes the openEHR REST API (ITS-REST Release-1.1.0, the version
the server reports and is conformance-tested against): a resource-based HTTP
interface for creating EHRs, committing and retrieving versioned clinical
documents, managing folders and contributions, and running queries. This part is
the practical reference for client developers: the resources and their
operations, the headers that drive versioning and content negotiation, and the
error contract. For the complete endpoint reference (every path, parameter, and
schema), open the Swagger UI of the live sandbox at
https://sandbox.ferroehr.eu/ferroehr/rest/swagger-ui and sign in with the
public demo credentials ferroehr / ferroehr. That server generates the
document from its own handlers, so it describes the running release and its
“Try it out” buttons issue real requests. The sandbox’s landing surface,
https://sandbox.ferroehr.eu, is the viewer over the same server and
takes the same credentials. This book explains how to use the API.
Base path
The openEHR REST API hangs off a configurable base path, which defaults to:
/ferroehr/rest/openehr/v1
Only what openEHR ITS-REST 1.1.0 defines is served there. FerroEHR’s other interfaces sit beside it, under the same REST root:
| Namespace | Default path | Holds |
|---|---|---|
| openEHR REST API | /ferroehr/rest/openehr/v1 | the ITS-REST 1.1.0 routes: EHR, composition, directory, contribution, demographic parties, definition, query, the admin EHR deletes |
| FerroEHR extensions | /ferroehr/rest/extensions/v1 | FerroEHR’s own routes, on their own version line: terminology, party relationships, the archetype library, EHR Extract messages, the cohort query and the admin extensions |
| FHIR and IHE | /ferroehr/rest/fhir/r4 | the IHE ITI-81 AuditEvent retrieval |
Every path in these chapters is relative to the openEHR base unless the page
says otherwise. So “POST /ehr” means
POST http://your-host:8080/ferroehr/rest/openehr/v1/ehr. The base path is set
with FERROEHR__API__BASE_PATH, and it may be shortened as far as
/ferroehr/v1 (see
Shortening the REST base path).
The status and documentation routes hang off the REST root, which the server
derives from the base path by dropping the segments that name the openEHR API:
/ferroehr/rest by default. The public, unauthenticated status probe is at
/ferroehr/rest/status and interactive docs at /ferroehr/rest/swagger-ui at
the access level openapi_ui names (by default any authenticated principal, so
a browser prompts for the API credential; the documents list the whole enabled
operation surface). Every deployment serves that UI from its own routes, so your
own server always documents its own surface. The health probes stay at the
process root whatever the base path is: /health, /health/liveness,
/health/readiness.
Capability discovery
An OPTIONS request to the API base path returns the server’s
conformance manifest: the product name and version, the vendor, the openEHR
REST API version it implements, the conformance profile its conformance record
earns, and the API groups this deployment actually mounts.
curl -X OPTIONS -i \
http://localhost:8080/ferroehr/rest/openehr/v1
The response carries an Allow header and a JSON body:
{
"solution": "FerroEHR",
"solution_version": "…",
"vendor": "Cadasto B.V.",
"restapi_specs_version": "1.1.0",
"conformance_profile": "…",
"endpoints": ["/ehr", "/definition", "/query", "/demographic"]
}
Two things to know before you build discovery on it:
endpointsis the live set, not a fixed list:/adminappears only when the admin API is enabled. It covers the standardised openEHR groups only; FerroEHR’s own extension families (health, management, messaging, item tags, the archetype-source routes) declare themselves through the served OpenAPI document instead.- The identity fields are configurable (
[api.options], see Server, database & telemetry); their defaults are the build’s own provenance. conformance_profileis derived from the conformance record. The build reads the committed Veredictum summary (docs/conformance/ferroehr/summary.mdin the repository) and sendsBASE+OPTIONSwhen the BASE rows and the OPTIONS rows the run claimed have none failed and none errored,BASEwhen only the BASE rows do, and leaves the member out otherwise. ITS-REST types the member as a free string and the openEHR conformance framework names no profiles, so these values are FerroEHR’s own. No configuration key sets it.
Note
The manifest lives at the API base path and nowhere else. A bare
/alias existed in earlier versions and was removed. Point discovery at the base path.
Authentication
Requests are authenticated unless auth is explicitly disabled. Two mechanisms ship:
- HTTP Basic: a configured user store; send
Authorization: Basic …. The examples in this book use-u user:passwordwith curl. - OAuth2 / OIDC bearer tokens: send
Authorization: Bearer <token>, validated against a configured issuer (Keycloak, Entra ID, any standards-compliant provider).
Authorization is coarse role-based access control by default (a USER role for
clinical operations, an ADMIN role for admin operations), with optional
attribute-based policies on top. The full picture (mechanisms, roles, the
pseudonymisation boundary) is in Security.
Which status a credential problem gets
The distinction matters when you are writing a client, because only one of these means “fix your credential”:
| Situation | Status | What it means |
|---|---|---|
No Authorization header | 401 | with a WWW-Authenticate challenge listing the schemes this server implements, and no error= code — nothing has gone wrong yet (RFC 6750 §3.1) |
| Credential presented and rejected | 401 | the challenge carries error="invalid_token": expired, revoked, malformed (a bearer token outside the RFC 6750 §2.1 b64token alphabet included), or simply wrong |
Authorization header malformed | 400 | two Authorization headers, or a header that is no scheme followed by a space and a credential. The server never got as far as a credential, so this is a request defect (error="invalid_request") |
| Authenticated, not permitted | 403 | for a bearer caller the challenge carries error="insufficient_scope", naming what is missing |
| The token issuer is unreachable | 503 | with Retry-After. No token can be validated, so the server cannot decide; it is not a statement about your credential (RFC 9110 §15.6.4). Retry; do not discard the token |
Two Basic-auth details worth knowing: the credential must be padded base64 (RFC 7617 §2 defers to RFC 4648, whose §3.2 requires the pad characters; an unpadded credential is refused), and an unknown username costs the same time as a known one, so response timing reveals nothing about which accounts exist.
Warning
The quickstart ships a throwaway Basic user (
ferroehr/ferroehr), and so do the examples in this book. Replace it before any real use.
The chapters here
- Resource walkthroughs: EHR, EHR_STATUS, COMPOSITION, DIRECTORY, and CONTRIBUTION, each with real curl examples, the headers they need, and the status codes they return.
- Content negotiation & errors: choosing JSON or
XML, the simplified formats, the
Preferheader,ETag/If-Matchoptimistic concurrency, the commit-metadata headers, and the error response shape.
For querying, see Querying with AQL; for loading templates, Templates & validation; for the admin, messaging and management surfaces, Admin & messaging APIs.
Resource walkthroughs
This chapter walks through the core openEHR resources (EHR, EHR_STATUS,
COMPOSITION, DIRECTORY, CONTRIBUTION and ITEM_TAG) with real
curl examples you can adapt. For each resource it shows the operations, the
headers they need, and the status codes they return. Paths are relative to the
base /ferroehr/rest/openehr/v1 (see Using the API); examples use
Basic auth (-u ferroehr:ferroehr) and JSON. Content negotiation, the Prefer
header, and ETag/If-Match versioning are cross-cutting and get their own
chapter, Content negotiation & errors; this chapter
uses them in context.
Datetime parameters. Several operations below take a point in time
(version_at_time, the CONTRIBUTION time_range bounds). Write it in the
extended ISO 8601 form: YYYY-MM-DDThh:mm:ss.sss[Z|±hh:mm], e.g.
2016-06-23T13:42:16.117+02:00. The timezone is optional: leave it off
(2016-06-23T13:42:16) and the value is read in the server’s local
timezone, so supply Z or an explicit offset whenever the client’s timezone may
differ from the server’s. The time itself is required: a bare date
(2016-06-23), the compact “basic” ISO form (20160623T134216Z), a
zone-annotated form (2016-06-23T13:42:16[Europe/Amsterdam]), and anything
unparseable all return 400 Bad Request.
EHR
An EHR is the top-level container for one subject’s health record.
Create an EHR
curl -u ferroehr:ferroehr -X POST -i \
http://localhost:8080/ferroehr/rest/openehr/v1/ehr
POST /ehr — the body is optional; you may supply an EHR_STATUS to set the
subject and flags at creation. Returns 201 Created with the new EHR id in
ETag and a Location header. With Prefer: return=representation the body is
the full EHR; otherwise it is empty. Supplying an EHR_STATUS whose subject
already has an EHR returns 409 Conflict.
With no body the server mints the spec’s default EHR_STATUS
(is_queryable: true, is_modifiable: true, a PARTY_SELF subject, and an
archetype_details block naming openEHR-EHR-EHR_STATUS.generic.v1). A
supplied EHR_STATUS must be a complete, RM-valid instance: EHR_STATUS is
always an archetype root, so archetype_details (with its archetype_id) is
mandatory, and a body without it is refused with 422 naming the violated
invariant. Some servers accept such a partial status and fill the gap
silently; FerroEHR validates the supplied resource exactly as the Reference
Model defines it, so either send the complete status or omit the body and let
the server mint the default.
To create with a specific id, use PUT /ehr/{ehr_id} (also 201; 409 if that id
is already used).
Once the deployment declares [privacy] subject_namespaces, a supplied
EHR_STATUS.subject.external_ref must name one of those namespaces and carry a
UUID; anything else is a 422 naming the RM path and never echoing the value.
Left undeclared, that rule is out of force and whatever you send is stored. See
Privacy & data minimisation.
Retrieve an EHR
curl -u ferroehr:ferroehr \
http://localhost:8080/ferroehr/rest/openehr/v1/ehr/$EHR_ID
GET /ehr/{ehr_id} returns 200 with the EHR, or 404 if unknown. You
can also look one up by subject: GET /ehr?subject_id=…&subject_namespace=…
(both parameters required).
The EHR root object is not itself versioned, so its reads carry a weak ETag
built from EHR.ehr_id.value but no Last-Modified.
EHR_STATUS
EHR_STATUS holds the record’s metadata: the link to the subject, and the
is_queryable / is_modifiable flags. It is itself versioned.
Setting is_modifiable to false deactivates the EHR: any attempt to
create, update, or delete its content (a composition, the directory, or a
folder) is refused with 409 Conflict, through every write path including a
CONTRIBUTION commit. The EHR_STATUS itself stays writable (so you can set the
flag back to true to reactivate), and reads and queries are unaffected.
Read the current status
curl -u ferroehr:ferroehr \
http://localhost:8080/ferroehr/rest/openehr/v1/ehr/$EHR_ID/ehr_status
GET /ehr/{ehr_id}/ehr_status returns the current EHR_STATUS, its version id
in ETag. Add ?version_at_time=<ISO 8601> to read it as of a point in time.
GET …/ehr_status/{version_uid} reads a specific version.
Update the status
Updates require the current version id in an If-Match header (optimistic
concurrency):
curl -u ferroehr:ferroehr -X PUT \
-H 'Content-Type: application/json' \
-H 'If-Match: "<current-version-uid>"' \
-H 'Prefer: return=representation' \
--data-binary @ehr-status.json \
http://localhost:8080/ferroehr/rest/openehr/v1/ehr/$EHR_ID/ehr_status
PUT /ehr/{ehr_id}/ehr_status returns 200 (with representation) or 204
(minimal), plus the new ETag. A stale or wrong If-Match returns 412
Precondition Failed with the current version id in ETag.
Status version history
The versioned_ehr_status sub-resource exposes the full version history:
GET …/versioned_ehr_status: theVERSIONED_EHR_STATUSobject,GET …/versioned_ehr_status/revision_history: the revision history,GET …/versioned_ehr_status/version(optionally?version_at_time=) and…/version/{version_uid}— a specific version.
COMPOSITION
A COMPOSITION is a committed clinical document, validated against its template.
Create a composition
curl -u ferroehr:ferroehr \
-H 'Content-Type: application/json' \
-H 'Prefer: return=representation' \
--data-binary @composition.json \
http://localhost:8080/ferroehr/rest/openehr/v1/ehr/$EHR_ID/composition
POST /ehr/{ehr_id}/composition returns 201 Created with the version id in
ETag. A body that cannot be constructed as a COMPOSITION (malformed JSON,
an undeclared or repeated member, a missing mandatory attribute, an empty list
the model requires non-empty, a _type foreign to its slot) is 400 Bad
Request: parsing is the shape check, so structural defects never reach
validation. A body that constructs but fails semantic validation (template
constraints, RM invariants, terminology bindings) returns 422 Unprocessable
Entity with the errors; an unknown EHR, 404.
Retrieve a composition
curl -u ferroehr:ferroehr \
http://localhost:8080/ferroehr/rest/openehr/v1/ehr/$EHR_ID/composition/$UID
GET /ehr/{ehr_id}/composition/{uid_based_id} accepts either a full version id
(<uuid>::<system>::<n>) or a bare object uuid (in which case add
?version_at_time= to pick a point in time). It returns 200 with the
composition, 204 if the composition was (logically) deleted at that time, or
404.
Update and delete
# Update — If-Match is the CURRENT version id; the URL uses the bare object uuid
curl -u ferroehr:ferroehr -X PUT \
-H 'Content-Type: application/json' \
-H 'If-Match: "<current-version-uid>"' \
--data-binary @composition.json \
http://localhost:8080/ferroehr/rest/openehr/v1/ehr/$EHR_ID/composition/$OBJECT_UUID
# Delete — the URL uses the FULL version id
curl -u ferroehr:ferroehr -X DELETE \
http://localhost:8080/ferroehr/rest/openehr/v1/ehr/$EHR_ID/composition/$VERSION_UID
PUT returns 200/204 (per Prefer) with the new version id, 412 on
an If-Match mismatch, 422 on validation failure. A PUT whose content
equals the current version’s still creates a version, with its own commit
audit, contribution and id, and stores the content once (the new version
reads its predecessor’s rows); a deployment that prefers Cadasto’s answer to
a repeated send turns on [record.versioning] record.versioning.idempotent_resend
(Authentication & access), and
the server then answers with the existing version’s id and commits nothing. DELETE is a logical
delete (the history is retained), returning 204 with the new deleted
version’s ETag; deleting something already deleted returns 400, and a
version id that is not the latest returns 409.
Warning
Watch the id you pass.
PUTtakes the object uuid (the versioned object), whileDELETEtakes the full version id (the version you are superseding).GETaccepts either.
Note
A version’s lifecycle state (set through the
openehr-version: lifecycle_state.code_stringheader; see Content negotiation & errors; the default on a commit is532|complete|) must follow the openEHR version-lifecycle state machine. An illegal transition is rejected with 422 Unprocessable Entity naming the states. In particular, a version left in the801|abandoned|state cannot be updated straight tocomplete: you must first retrieve it back to553|incomplete|, then complete it.Two further rules apply to the state a commit may claim:
523|deleted|belongs toDELETEalone. Deleting is one act (a new version whose data is removed and whose state isdeleted), so aPUTorPOSTthat carries content may not claim it. Such a request is rejected 422. Conversely, aDELETEthat supplies a lifecycle other than523|deleted|is rejected 400: the value would have to be discarded, and the server tells you rather than pretending to honour it. ADELETEwith no lifecycle header at all is the normal case and is unaffected.553|incomplete|relaxes what a commit must contain. Content committed asincompletemay leave mandatory attributes absent and1..*containers empty, for compositions, folders, and demographic parties and relationships alike. Everything else is still checked: types, terminology codes, patterns and archetype constraints. Missing content is allowed here; wrong content is still rejected 422. TheEHR_STATUSresource is the one exception: it does not accept theincompletestate.
Composition version history
GET …/versioned_composition/{versioned_object_uid} and its revision_history,
version, and version/{version_uid} sub-resources mirror the EHR_STATUS
history endpoints.
DIRECTORY
The DIRECTORY is an optional FOLDER tree for organising compositions
within an EHR. The /directory endpoints manage the EHR’s primary hierarchy
(the openEHR EHR.directory, which is always the first member of
EHR.folders).
An EHR can also index additional folder hierarchies beyond the directory:
commit further root FOLDERs through the CONTRIBUTION endpoint (the openEHR
REST API defines no dedicated endpoint for them). The EHR resource then lists
every live hierarchy in its folders attribute, in creation order, with
directory always equal to the first member; deleting the directory promotes
the next live hierarchy.
# Create the directory
curl -u ferroehr:ferroehr \
-H 'Content-Type: application/json' \
--data-binary @folder.json \
http://localhost:8080/ferroehr/rest/openehr/v1/ehr/$EHR_ID/directory
# Read it (optionally at a time, or a sub-path)
curl -u ferroehr:ferroehr \
'http://localhost:8080/ferroehr/rest/openehr/v1/ehr/'$EHR_ID'/directory?path=episodes/2024'
POST /ehr/{ehr_id}/directory: create the root folder; 201.PUT /ehr/{ehr_id}/directory: update it; requiresIf-Match; 200/204.DELETE /ehr/{ehr_id}/directory: logical delete; requiresIf-Match; 204.GET /ehr/{ehr_id}/directory: the current folder tree, optionally filtered by?version_at_time=and?path=(slash-separated folder names). 204 if deleted at that time.GET /ehr/{ehr_id}/directory/{version_uid}: a specific version, optionally?path=.
Folder items are OBJECT_REFs, and the server validates the ones that claim
this system: a reference whose namespace is local (or the server’s
configured system id) must resolve to a versioned object in that EHR, or the
commit is refused with 422 naming each unresolvable reference at its tree
path. References into other namespaces (another system’s id, or unknown)
are stored verbatim without a resolvability check, since openEHR object
references are explicitly allowed to point outside the current system. The
same rule applies to folder hierarchies committed through the CONTRIBUTION
endpoint.
CONTRIBUTION
A CONTRIBUTION is an atomic change-set: a group of versioned-object changes (compositions, statuses, folders) committed together with one shared audit. Use it when several changes must land as a unit.
curl -u ferroehr:ferroehr \
-H 'Content-Type: application/json' \
--data-binary @contribution.json \
http://localhost:8080/ferroehr/rest/openehr/v1/ehr/$EHR_ID/contribution
POST /ehr/{ehr_id}/contribution takes a contribution whose versions array
each describe a change (the RM object, its lifecycle_state, and a
per-version commit_audit with its change_type) plus a shared audit. The
body is read through the released NewContribution schema, and a body that
does not match it is refused with a 400. It returns 201 with the
contribution id in ETag, or 400/404/409/422 on invalid input,
unknown EHR, a uid conflict, or a change set that is well-formed but cannot be
followed.
A minimal entry that creates a composition looks like this:
{
"versions": [
{
"lifecycle_state": {
"value": "complete",
"defining_code": { "terminology_id": { "value": "openehr" }, "code_string": "532" }
},
"commit_audit": {
"_type": "UPDATE_AUDIT",
"change_type": {
"value": "creation",
"defining_code": { "terminology_id": { "value": "openehr" }, "code_string": "249" }
},
"description": { "_type": "DV_TEXT", "value": "first draft" },
"committer": { "_type": "PARTY_IDENTIFIED", "name": "Dr Jones" }
},
"data": { "_type": "COMPOSITION", "…": "…" }
}
],
"audit": {
"change_type": {
"value": "creation",
"defining_code": { "terminology_id": { "value": "openehr" }, "code_string": "249" }
},
"committer": { "_type": "PARTY_IDENTIFIED", "name": "Dr Jones" }
}
}
These things about the payload are worth calling out:
- Every audit carries its own
change_typeandcommitter, the sharedauditand eachcommit_auditalike. They are your account of the change and are never derived or invented by the server: a contribution without anaudit, or an audit that omits either one, is refused with a 400. Thechange_typeis aDV_CODED_TEXTnaming a code of the openEHR audit change type group, such as249(creation),251(modification),523(deleted) or666(attestation); a code outside the group is a 422. The server fills intime_committed, andsystem_idwhen you do not supply one. Asystem_idthat is not a string is a 400, and an empty one a 422. - An audit is sent as
UPDATE_AUDIT,AUDIT_DETAILSor with no_type. AnATTESTATIONorUPDATE_ATTESTATIONaudit is a 400: attestations go in the version’sattestationslist (see below). - Every
commit_auditnames its owncommitter. The server never copies the shared audit’s committer into a version that leaves it out: that version is refused with a 400. A committer that is not aPARTY_PROXYobject at all, such as a bare string, is a 400 too; one that is aPARTY_PROXYbut breaks its own rules, such as aPARTY_IDENTIFIEDwith no name, identifiers or reference, is a 422. A version’s committer is stored as you send it, even when it differs from the shared audit’s. A version that omitssystem_idgets the shared audit’s, and every audit in the contribution carries the sametime_committed. - A committer that names a login must name you. On every write, a
contribution or a direct write of a composition, EHR status, directory,
EHR or demographic object, the server compares the committer with the
login that authenticated the request where it can. A committer whose
identifiershold aDV_IDENTIFIERwith theissuerof your token (orferroehr, for a login this server holds), or whoseexternal_refis aGENERIC_IDin thatscheme, must carry your own login, or the write is refused with a 403. APARTY_SELFcommitter states that the record’s person committed, so it is a 403 unless the request comes from the person, whose writes the server records asPARTY_SELFitself. A committer the server cannot compare with a login, such as a name only or an identifier from a professional register, is stored as you send it when your login is bound to no party. The access record of the write names the login that made it. With authentication off, nothing is compared. The committer’s own rules (the 422 above) apply on the direct writes as well. - For a caller it knows, the server writes the committer. When your login
is bound to a demographic
PERSON(see[authz.party_binding]), every commit, attestation and CONTRIBUTION records aPARTY_IDENTIFIEDwith thePERSON’s name, your login identifier (DV_IDENTIFIER{issuer = token iss, id = <the issuer profile's person_key value>, type = "oauth2"}, or{issuer = "ferroehr", id = <user>, type = "basic"}for a Basic user), the provider (type = "healthcare-provider") and anexternal_refto thePERSON. A patient writing in their own EHR is recorded asPARTY_SELFwith noexternal_ref, and a representative as aPARTY_RELATEDnaming their ownPERSONand the coded relationship. Send no committer, or the placeholder{"_type": "PARTY_IDENTIFIED", "identifiers": [{"_type": "DV_IDENTIFIER", "issuer": "<token iss or ferroehr>", "id": "<sub or user name>"}]}where ITS-REST requires one; the server replaces it. A placeholder naming anyone else, and a stated committer with another name, another identifier or anotherexternal_ref, is a 403, as is a statedPARTY_RELATED. This deviates from the ITS-REST rule that a stated committer is merged: the record has to identify who acted (EHDS Art. 13(4)). A patient-context token commits no demographic version (403). Who is the committer has the committer for every kind of caller. - Importing needs an import grant.
POST /message/import…needs animport_ehrorimport_ehr_extractpolicy grant covering the EHR’s subject namespace. A wrappedcommit_auditor attestation of an imported version is kept as received, but one whose committer names a party of this server, or carries a login identifier of its issuers, is a 403 unless the version was created by a system acreating_systemelement of the caller’s import grant names (Operational policy). - A
descriptionis aDV_TEXTorDV_CODED_TEXTobject that names its_type. A plain string, or an object without_type, is a 400. A coded description keeps itsdefining_code. The same holds for an attestation’sreasonanddescription. - Members an audit or the contribution does not declare are accepted and
ignored. The released schemas leave both objects open, so a
reasonoris_pendingon a plain audit, or an extra top-level member, changes nothing. lifecycle_stateis required on every version and is aDV_CODED_TEXT, as in the example. Omitting it, or sending it as a plain string or as{"terminology_id": …, "code_string": …}, is a 400, on an attestation entry (see below) as well, even though an attestation commits no new version. A code outside the openEHR version lifecycle state group is a 422.- A version entry may carry members the schema does not declare. The
released
UPDATE_VERSIONschema leaves the object open, so an extra member that means nothing on a locally createdORIGINAL_VERSION, such asitem(an imported version’s attribute) or an extension of your own, is accepted and ignored. An imported version comes only through the import route. - A version entry records its merge inputs. When the version merges other
versions, list them in
other_input_version_uidsasOBJECT_VERSION_IDobjects ({"value": "…::…::…"},_typeoptional). The committedORIGINAL_VERSIONstores them as given and serves them on every read and in the signed form. They may name versions this server does not hold. An empty list, an entry that is not anOBJECT_VERSION_ID, or the list on an attestation entry is a 422. - A version entry never states what the server assigns. The server assigns
the identity of every version it commits and links it to the contribution
being created, so a
uidor acontributionon a version entry is a 400 namingversions[i]/uidorversions[i]/contribution. The optional_typeself-tag isUPDATE_VERSIONorORIGINAL_VERSION; any other class is a 400.
A version’s attestations list carries UPDATE_ATTESTATION objects, each with
its own change_type, committer, reason (required) and is_pending
(required), and optionally proof, items, attested_view and system_id.
On an entry that commits content, this is how content is committed already
signed, or marked as awaiting signature (is_pending: true); the attestations
are part of the version the server signs, and are read back on the version
envelope, in the revision history, and in exports. A coded reason must be a
member of the openEHR attestation reason group, items, when present, must
be non-empty, and the committer follows the same rules as an audit’s. An
attestation without system_id gets its version audit’s.
An attestation entry signs or reviews a version that is already stored,
without committing a new one. Give its commit_audit the change type 666
(attestation), name the attested version in preceding_version_uid, leave
data out, and put one or more UPDATE_ATTESTATIONs in its attestations; an
attestation entry without any is a 400. The entry still needs a
lifecycle_state, which the server checks against the version lifecycle
state group (a 422 when it is outside it) but does not store, because no
new version carries it.
GET /ehr/{ehr_id}/contribution/{contribution_uid} returns 200 with the
contribution, or 404. Add Prefer: resolve_refs to get full VERSION objects
instead of OBJECT_REFs (see
Content negotiation & errors).
GET /ferroehr/rest/extensions/v1/ehr/{ehr_id}/contribution (no uid) lists the
EHR’s contributions, newest first. It is a FerroEHR extension (the openEHR REST
API defines only the by-uid read), so it sits under the extensions root beside
the openEHR API. Paginate with ?offset= (default 0) and ?fetch= (default 20, capped at
100). It returns 200 with a JSON summary, or 404 for an unknown EHR:
{
"rows": [
{
"uid": "…",
"time_committed": "…",
"committer": "…",
"change_type": "251",
"change_type_rubric": "amendment"
}
],
"total": 123
}
committer is the audit committer’s name only; the by-uid read returns the
full PARTY_PROXY. change_type is the openEHR audit-change-type code and
change_type_rubric its display rubric from the same terminology the by-uid
read uses, so a client never maps codes locally. total counts all of the
EHR’s contributions, not just the returned window.
Note
The contribution envelope is canonical JSON only: openEHR publishes no CONTRIBUTION XML document, so an XML
Accepton these routes is a 406 and an XMLContent-Typea 415. The FLAT and STRUCTURED formats, when used, apply only to the inner compositiondataof each version, never to the envelope.
ITEM_TAG
ITEM_TAGs are small key/value annotations on a versioned object or on
one specific version, optionally pointing at a node inside the data through
target_path. They carry no clinical meaning and do not create a new version.
Use them for workflow state, review flags, and integration bookkeeping.
# Every tag in an EHR, optionally filtered
curl -u ferroehr:ferroehr \
'http://localhost:8080/ferroehr/rest/openehr/v1/ehr/'$EHR_ID'/tags?tag_key=flag'
# Replace the tag list of one composition (container-wide, by object uuid)
curl -u ferroehr:ferroehr -X PUT \
-H 'Content-Type: application/json' \
-H 'Prefer: return=representation' \
--data-binary '[{"key":"flag","value":"follow-up"}]' \
http://localhost:8080/ferroehr/rest/openehr/v1/ehr/$EHR_ID/composition/$OBJECT_UUID/tags
# Delete every tag under one key
curl -u ferroehr:ferroehr -X DELETE \
http://localhost:8080/ferroehr/rest/openehr/v1/ehr/$EHR_ID/composition/$OBJECT_UUID/tags/flag
GET /ehr/{ehr_id}/tags: every tag in the EHR, whatever it targets. The optionaltag_key,tag_valueandtag_target_pathfilters are exact, case-sensitive, and AND-combined; an omitted filter constrains nothing. An EHR with no matching tag answers 200 with[], never 404.GET|PUT /ehr/{ehr_id}/composition/{uid_based_id}/tagsand the same pair under…/ehr_status/{uid_based_id}/tags— read or replace the addressed collection. ThePUTbody is a bare JSON array of tags (keyrequired,valueandtarget_pathoptional;targetandowner_idcome from the route, and a body that supplies them, or any other undeclared member, is a 400). An empty array[]is the clear-all form, never an error.PUTanswers 204 by default, 200 with the resulting list underPrefer: return=representation.DELETE …/tags/{key}: delete every tag under one key on the addressed collection; 204.
Two properties shape how you address them:
- The id you pass selects which collection. A full version id
(
OBJECT_VERSION_ID) addresses that one version’s tags; a bare object uuid (HIER_OBJECT_ID) addresses the versioned-object container’s tags. - The two collections are disjoint. A tag has exactly one target, so replacing the container’s list never touches any version’s list, and replacing one version’s list never touches the container’s or a sibling version’s.
Every returned tag carries a server-assigned target (the bare uid of what it
tags) and owner_id (an OBJECT_REF to the owning EHR). Tags can also ride
along with a content write instead of taking a second round trip; see
Item tags via headers.
Status-code summary
| Code | Meaning across these resources |
|---|---|
| 200 | Retrieved, or updated with Prefer: return=representation / return=identifier. |
| 201 | Created (EHR, composition, directory, contribution). |
| 204 | Success with no body (return=minimal), or deleted / deleted-at-time. |
| 400 | Malformed request, missing required header/parameter, an undeclared payload member, or already-deleted. |
| 404 | Unknown EHR, object, version, or no version at the requested time. |
| 405 | Method not allowed on this resource (always with an Allow header), or the resource is switched off by configuration. |
| 406 | The Accept header names no representation this resource has. |
| 409 | Conflict: a duplicate subject or id, a version that is not the latest, or a content write to a deactivated (is_modifiable = false) EHR. The deactivation check runs before any content is validated, so a defective body on a deactivated record reports the state conflict rather than a 422. |
| 412 | If-Match did not match the latest version (current id returned in ETag). |
| 415 | The request Content-Type names a format this resource cannot process. |
| 422 | Well-formed but unfollowable: failed template or semantic validation, a body the data-minimisation rules refuse, an illegal version-lifecycle transition, or a change set the server cannot apply. |
| 429 | Too many requests, with Retry-After and the x-ratelimit-* headers the limiter computed. |
| 503 | The server cannot decide or cannot serve right now, with Retry-After: the admission cap is full, the token issuer is unreachable, or (under [audit] fail_mode = "closed") the access record could not be taken. Retry; none of these is a statement about your request. |
The Content negotiation & errors chapter covers the error body shape and the headers referenced above in full.
Content negotiation & errors
A handful of HTTP mechanisms cut across every openEHR resource: choosing the
wire format (JSON or XML), controlling how much a write returns (the Prefer
header), versioned optimistic concurrency (ETag and If-Match), and the
request headers that enrich a commit (audit metadata and item tags). This
chapter explains them all, plus the shape of error responses, so the examples in
Resource walkthroughs make sense in general.
- JSON and XML
- Simplified formats (FLAT and STRUCTURED)
- The
Preferheader ETagandIf-Match— optimistic concurrencyLast-Modified— when the version was committed- Imported versions
- Commit metadata headers
- Item tags via headers
- Error responses
JSON and XML
FerroEHR speaks canonical JSON and canonical XML for the RM-typed resources. Choose with the standard HTTP headers:
- Request body: set
Content-Type: application/jsonorapplication/xml(text/xmlworks the same asapplication/xml). - Response: set
Accept: application/jsonorapplication/xml. With noAccept, or with several acceptable formats at equal quality, JSON wins.
JSON is wired end to end for every operation. XML is supported for the
spec-typed RM objects whose canonical XML shape the openEHR ITS-XML schemas
define: a single composition, EHR_STATUS, EHR, FOLDER, the demographic
party types, and the version family (versioned objects and revision history).
Responses that are not a spec-typed RM value (collections, item tags, and the
query and terminology DTOs) are JSON-only, as is the CONTRIBUTION envelope.
# Commit a composition as XML, ask for XML back
curl -u ferroehr:ferroehr \
-H 'Content-Type: application/xml' \
-H 'Accept: application/xml' \
--data-binary @composition.xml \
http://localhost:8080/ferroehr/rest/openehr/v1/ehr/$EHR_ID/composition
Choosing the XML namespace
openEHR publishes its canonical XML schemas in two lineages, each declaring its own namespace:
| Lineage | Root namespace | Status |
|---|---|---|
| v1 | http://schemas.openehr.org/v1 | The schema release openEHR labels stable, frozen against an older Reference Model |
| v2 (default) | http://schemas.openehr.org/v2 | The newer schema release, still marked trial by openEHR; the only one that models the current Reference Model |
Pick one per request with a version parameter on the XML media type:
# Read a composition in the v1 namespace
curl -u ferroehr:ferroehr \
-H 'Accept: application/xml; version=1' \
"http://localhost:8080/ferroehr/rest/openehr/v1/ehr/$EHR_ID/composition/$UID"
# Commit one whose payload already uses the v1 namespace
curl -u ferroehr:ferroehr \
-H 'Content-Type: application/xml; version=1' \
-H 'Accept: application/xml; version=1' \
--data-binary @composition-v1.xml \
"http://localhost:8080/ferroehr/rest/openehr/v1/ehr/$EHR_ID/composition"
What to expect:
- No parameter (or
version=2) means the v2 default, and the response header staysContent-Type: application/xml. - A v1 response says so:
Content-Type: application/xml; version=1. - On requests the parameter is a courtesy, not a requirement. The reader
dispatches on element names and
xsi:typeand never inspects the root namespace, so both lineages parse identically whatever you declare; you only need the parameter when you want the declaration to be accurate. - Asking for a lineage the server does not serve (
version=3, say) is 406 Not Acceptable onAcceptand 415 Unsupported Media Type onContent-Type. The refusal is deliberate: the parameter exists so you can be specific about the representation you can consume, and quietly substituting a different one would defeat that. - Operational templates are always v1.
GET …/definition/template/adl1.4/{template_id}returns OPT XML in the v1 namespace and ignores the parameter; it is a template document, not a canonical RM resource.
The documents FerroEHR writes for the two lineages are byte-identical apart
from that root namespace: the same elements, the same order, the same xsi:type
dispatch. The two schema bundles are a different story, and that matters if
you intend to validate.
If you validate responses against the published XSDs
Both published bundles have a problem today, and knowing which one you are hitting saves a long debugging session.
The v1 bundle is frozen at an older Reference Model, so it does not describe
everything a current openEHR document may contain. It declares no schema at all
for EHR, EHR_STATUS, CONTRIBUTION or the demographic party types, and it omits
attributes that later RM releases added: FOLDER.details,
ELEMENT.null_reason, DV_QUANTITY.units_system and units_display_name,
CODE_PHRASE.preferred_term, and ENTRY.workflow_id among them. A perfectly
valid directory or blood-pressure response can therefore fail v1 validation.
FerroEHR does not drop clinical content to fit the older bundle. That content gap
is why v2 is the default: the lineage a schema-validating client receives
without asking has to be the one that models what the server actually emits.
The v2 bundle currently cannot be compiled at all. One of its base
simple types constrains archetypeNodeId with a Perl-flavoured pattern (using
(?:…) non-capturing groups), and the XML Schema pattern language admits no
such construct, so a conformant XSD processor rejects the schema set rather
than the document. The defect sits in every v2 Reference Model folder, not just
the newest, and it is upstream: nothing in a response can work around it.
Warning
As a result there is no bundle today that both compiles and models current RM content. If you must schema-validate right now, request
version=1and accept that it will reject valid content it never modelled; otherwise validate structurally against your own profile and treat the published XSDs as documentation. FerroEHR tracks the v2 defect and will say so here when upstream fixes the facet.
Note
The
versionparameter is a FerroEHR extension: the openEHR REST specification predates the two schema lineages and says nothing about selecting one. It never changes the media type itself (responses are alwaysapplication/xml), so a client that ignores it behaves exactly as the specification describes.
Root elements no schema publishes
The published ITS-XML bundles declare a document element for only a few
documents: composition, version, versioned_object (typed as the EHR
Extract’s versioned object), items (any other LOCATABLE), and the
template, archetype, extract and query documents. Four documents FerroEHR serves
as XML have no published root: EHR, VERSIONED_COMPOSITION,
VERSIONED_EHR_STATUS and REVISION_HISTORY. None of them is a LOCATABLE
and none is the Extract’s versioned object, so no declared element fits.
FerroEHR names each root after its class, with no xsi:type on it:
| Route | Root element |
|---|---|
GET /ehr/{ehr_id}, and an EHR create with Prefer: return=representation | <ehr> |
GET …/versioned_composition/{versioned_object_uid} | <versioned_composition> |
GET …/versioned_ehr_status | <versioned_ehr_status> |
GET …/versioned_composition/{versioned_object_uid}/revision_history and GET …/versioned_ehr_status/revision_history | <revision_history> |
No specification governs these four roots: they are FerroEHR’s own design, and a validator working from the published schemas has no element to check them against. The gap is reported upstream in #4652; when openEHR publishes an element, FerroEHR moves to it and says so here.
Simplified formats (FLAT and STRUCTURED)
Beyond the canonical formats, the server implements the openEHR Simplified
Formats: template-driven JSON representations that use friendly field
identifiers (vital_signs/body_temperature:0/any_event:0/temperature|magnitude)
instead of full RM paths. Select them the same way as JSON/XML, with these media
types:
| Media type | Meaning |
|---|---|
application/openehr.wt.flat+json | FLAT — one flat JSON object of path: value pairs |
application/openehr.wt.structured+json | STRUCTURED — the same data as nested JSON |
application/openehr.wt+json | A template rendered as Web Template JSON (template endpoints only) |
Where they work:
- Compositions: full round-trip. Commit with
Content-Type: application/openehr.wt.flat+json(or…structured…) and read back with the matchingAccept. - Template examples:
GET …/definition/template/adl1.4/{id}/example(and the ADL2 form) return the generated example in canonical JSON or XML, FLAT, or STRUCTURED, chosen viaAccept. The example party of a demographic template comes in canonical JSON or XML only. - Template definitions:
GET …/definition/template/adl1.4/{id}withAccept: application/openehr.wt+jsonreturns the Web Template document.Accept: application/jsonreturns the same document (it is the only JSON representation of a template) underContent-Type: application/json: the response always carries the media type you asked for. - Contributions: the CONTRIBUTION envelope itself stays canonical JSON; a
simplified media type applies only to each composition payload inside
versions[].data.
Two rules to know when committing a composition in a simplified format:
- A FLAT/STRUCTURED payload cannot carry its own template id, so the
openehr-template-idrequest header is required; the commit is rejected with 422 without it. - There is no
?format=query parameter: format selection is done exclusively through the standardAcceptandContent-Typeheaders.
Requests naming a media type the endpoint does not support are answered with 415 Unsupported Media Type (request body) or 406 Not Acceptable (response format), with a body naming the formats that endpoint does support. EHR, EHR_STATUS, directory, and demographic resources have no simplified representation (the format is generated from an operational template, which those resources do not have). They speak canonical JSON/XML only.
The query API is JSON only: it does not accept XML or the simplified media types.
The Prefer header
Write operations (create/update) accept a Prefer header controlling the
response body. Its default is return=minimal:
Prefer value | Effect |
|---|---|
return=minimal (default) | Empty body; the identifier is in ETag/Location. Status 204 on update, 201 on create. |
return=representation | The full created/updated resource in the body, status 200/201. |
return=identifier | Just the resource identifier object — {"uid": "…"} (templates: {"template_id": "…"}). Status 200/201, never 204. |
Use return=representation when you want the server-completed object back (with
its assigned version id and any server-set audit fields); use return=minimal
for throughput when you only need the id.
return=identifier always comes back with a body, so it never uses 204: an
update that would answer 204 under return=minimal answers 200 with the
identifier object instead. Under an XML Accept the identifier body is the
equivalent single element, <uid>…</uid>.
Every write response names the preference the server actually applied in a
Preference-Applied header (return=representation, return=identifier, or
return=minimal), so a client can tell what it got without sniffing the body.
The header reports what the response did: a request with no Prefer gets
return=minimal (the default behaviour), and where an identifier cannot be
produced at all (an item-tag collection has no uid, for instance) the server
applies and reports return=minimal rather than claiming an identifier response
it did not send.
Prefer: resolve_refs
Contribution reads return their versions as OBJECT_REFs by default. Add
resolve_refs to the Prefer header (it combines with the return=… token,
e.g. Prefer: return=representation, resolve_refs) and the response carries the
full VERSION objects instead: one round trip instead of one per version. A
version created here resolves to an ORIGINAL_VERSION; one this server received
from another system resolves to the IMPORTED_VERSION that wraps it (see
Imported versions).
ETag and If-Match — optimistic concurrency
openEHR objects are versioned, and updates use HTTP preconditions to prevent lost updates:
-
Every read and successful write returns an
ETagheader carrying the object or version identifier as a weak ETag,W/"…". -
Updating or deleting a versioned object requires an
If-Matchheader set to the current version id. Both the weak form and a bare quoted value are accepted; echoing theETagyou received works either way:If-Match: W/"8849182c-82ad-4088-a07f-48ead4180515::your.system::2" If-Match: "8849182c-82ad-4088-a07f-48ead4180515::your.system::2" -
If the object has moved on since you read it, the write fails with 412 Precondition Failed and the current version id in the response
ETag. Re-read, reconcile, and retry against the new version.
A Location header is emitted only when a resource is created. Reads
and deletes identify the version through ETag alone, so do not expect
Location on them; the ETag is the authoritative identifier.
Last-Modified — when the version was committed
Alongside the ETag, versioned responses carry a Last-Modified header in
the standard HTTP-date form (Wed, 22 Jul 2009 19:15:56 GMT). Its value is the
commit time of the version being served (the audit time_committed of that
VERSION), so it changes exactly when the ETag does.
You get it on:
- every
VERSIONread (…/versioned_composition/{uid}/version[/{version_uid}],…/versioned_ehr_status/version[/{version_uid}]) and revision history read; - every COMPOSITION,
EHR_STATUS, and DIRECTORY read, including the FLAT and STRUCTURED representations, which describe the same version; - every write of those resources (create, update, and the delete
204), and the EHR create201; - every CONTRIBUTION, both the read and the commit
201, where the value is the contribution audit’s commit time. On a contribution commit you get the header under eitherPrefersetting; withreturn=minimalthere is no response body, so the header is the only place the commit time appears.
Resources that are not versioned do not carry it: GET /ehr/{ehr_id} returns the
weak ETag (built from EHR.ehr_id.value) but no Last-Modified, because the
EHR root object has no commit audit of its own.
Template responses (ADL 1.4 and ADL2) carry a weak ETag keyed on the template
identifier; for ADL2 it is the resolved artefact id, so requesting a template
by a partial id or a major-version prefix still gives you an ETag that changes
when the served artefact changes.
Note
Version ids normally end in a plain trunk number (
…::2), but openEHR version trees can branch: when a version that was created on another system is modified locally, the server forks a branch and the new version id ends in a three-part tree id (…::2.1.1). Treat the version id as an opaque token (echo it back inIf-Matchexactly as received) and it works the same for trunk and branch versions.ALL_VERSIONSqueries and version reads return branch versions alongside trunk ones; the latest version of an object is always the latest trunk version.
Imported versions
Most versions are created here, and a VERSION read returns them as an
ORIGINAL_VERSION. A version that arrived from another system (through an
EHR Extract import) is a copy, and openEHR wraps a copy: the server commits it
as an IMPORTED_VERSION and the version resource serves that wrapper. Both
shapes appear at the same URLs
(…/versioned_composition/{uid}/version[/{version_uid}],
…/versioned_ehr_status/version[/{version_uid}]) and in a resolve_refs
contribution read, so branch on _type:
{
"_type": "IMPORTED_VERSION",
"contribution": { "_type": "OBJECT_REF", "type": "CONTRIBUTION", "…": "…" },
"commit_audit": { "_type": "AUDIT_DETAILS", "…": "…" },
"item": {
"_type": "ORIGINAL_VERSION",
"uid": { "_type": "OBJECT_VERSION_ID", "value": "…::source.example.org::1" },
"contribution": { "_type": "OBJECT_REF", "type": "CONTRIBUTION", "…": "…" },
"commit_audit": { "_type": "AUDIT_DETAILS", "…": "…" },
"data": { "…": "…" }
}
}
Two acts, kept apart on purpose:
- the wrapper’s
contributionandcommit_auditare this server’s act of importing: our system id, the importing user, the instant the import landed here, change type249|creation|; itemis the receivedORIGINAL_VERSION, byte-for-byte as it was sent, keeping the source system’s contribution reference, commit audit and signature.
Three consequences worth designing for:
- An
IMPORTED_VERSIONhas nouidof its own. It shares the wrapped version’s identity, so read the version id fromitem.uid.value. TheETagstill carries that id, so theIf-Matchround trip is unchanged. - Times are local.
VERSIONED_OBJECT.time_created,Last-Modified, the revision history and every as-of-instant read report when the version became available here, never the source system’s earlier clock, so a query for the record’s state at a past instant returns what this repository actually held then. The original committal is still there, insideitem.commit_audit. - An export unwraps. EHR Extracts carry
ORIGINAL_VERSIONs, so exporting an imported version ships the wrapped original verbatim; the receiving system creates its own wrapper. Wrappers never nest.
Commit metadata headers
When you commit through the direct resource endpoints (EHR creation,
composition, EHR_STATUS, directory), the server builds the version’s audit for
you. Two request headers let you set parts of it: openehr-version for the
version’s own attributes and openehr-audit-details for the commit audit.
The value is a comma-separated list of attribute.subkey="value" pairs (quoted
values may contain commas; the header may repeat, and repeats are merged):
# Commit a composition as a draft (lifecycle state "incomplete", code 553)
openehr-version: lifecycle_state.code_string="553"
# Name the committer, describe the change, and stamp the source system
openehr-audit-details: committer.name="John Doe",description.value="Corrected dosage",system_id="pas.example.org"
The attributes the server merges:
| Header | Attribute | Sub-keys |
|---|---|---|
openehr-version | lifecycle_state | code_string |
openehr-audit-details | change_type | code_string |
openehr-audit-details | description | value (or a bare value) |
openehr-audit-details | committer | name, external_ref.id, external_ref.namespace, external_ref.type (defaults to PERSON) |
openehr-audit-details | system_id | (bare value) |
A client-supplied system_id is merged into the commit audit, useful when a
gateway commits on behalf of a source system; when absent, the server stamps its
own system id. An empty system_id="" is refused with a 422, as on a
CONTRIBUTION: leave the key out to get the server’s.
Both EHR creates (POST /ehr and PUT /ehr/{ehr_id}) accept the headers too:
creating an EHR commits its EHR_STATUS and EHR_ACCESS in a contribution, so the
supplied description, committer, and system id land on that commit, and
openehr-version sets the new EHR_STATUS version’s lifecycle state. The
change_type on a create is constrained to 249|creation| (a create commits a
first version), so restating 249 is accepted while any other change type is
rejected. A DELETE accepts the headers as well: a logical delete commits a
523|deleted| version, and the audit metadata rides with it.
Note
openEHR itself deprecated an earlier spelling of these headers in Release-1.0.3: the attribute sat in the header name (
openEHR-VERSION.lifecycle_state: code_string="553",openEHR-AUDIT_DETAILS.committer: name="John Doe", and the bareopenEHR-AUDIT_DETAILS). The specification keeps them available for backward compatibility and so does this server, so an older client keeps working. If both forms appear, the value-form header above wins.
Item tags via headers
Item tags (small key/value annotations, optionally pointing at a node inside
the data via target_path) can ride the same request as a write, so tagging
does not need a second round trip (the dedicated endpoints are in
Resource walkthroughs). Two headers carry them:
openehr-item-tag: tags targeting the versioned object;openehr-version-item-tag: tags targeting the version being committed.
The value is a ;-separated list of tags, each a comma-separated set of
key="…", value="…", and optional target_path="…" pairs:
openehr-version-item-tag: key="diagnosis",value="confirmed",target_path="/content[0]"; key="reviewed",value="true"
They are accepted on the EHR-group change-controlled writes (composition create/update, EHR_STATUS update, directory create/update) and on demographic party writes. Sending the header with an empty value removes all tags. A defective tag refuses the whole request before the content is committed, so a bad tag never leaves a half-applied write behind.
The two headers address different targets, so the response echo keeps them
apart: openehr-item-tag confirms the tags now stored on the versioned object,
openehr-version-item-tag those stored on the version just committed, and a
header you did not send is not echoed at all. (Demographic parties store tags
against the versioned object only, so both headers carry the same list there.)
Error responses
Errors use conventional HTTP status codes (see the summary in
Resource walkthroughs) with one body
shape on every openEHR and extension route: RFC 9457
problem details, media type
application/problem+json. The body is JSON, so a client that sends
Accept: application/json reads it as well. The FHIR routes under
/ferroehr/rest/fhir/r4/ answer a FHIR OperationOutcome instead.
{
"type": "https://ferroehr.eu/docs/latest/using-the-api/problems.html#validation-failed",
"title": "The content fails validation",
"status": 422,
"detail": "the content fails validation at 2 path(s); a request with `Prefer: return=representation` receives each path and its violation",
"instance": "urn:uuid:0190a6f3-7c1e-7d7a-9f43-1c5b8a2e4d10"
}
typenames the problem. A refusal you can act on has a FerroEHR type, documented on Problem types; every other error isabout:blank, whosetitleis the status phrase, such asNot Found.titleis the same for every occurrence of a type;detailexplains this occurrence.statusrepeats the HTTP status.instanceis the server’s request id, the one theX-Request-Idresponse header and the server log carry, so an operator can find the request.
The openEHR REST specification lets a server return additional error details
when the request carries Prefer: return=representation. FerroEHR does: with
that header, a problem carries its extension members, and the response says
Preference-Applied: return=representation.
-
validation-failedlists every violation inerrors, as{"path": …, "detail": …}, so a client can point the user at the exact offending node. Itsdetailthen ends after the number of paths, without the advice to send the header:"errors": [ { "path": "/content[0]/data/events[0]/data/items[1]/value/magnitude", "detail": "value out of range" }, { "path": "/content[0]/data/events[0]/data/items[2]/value/defining_code", "detail": "code not in group" } ]A refusal from the data-minimisation rules uses the same list, with one entry per finding, and deliberately never echoes the value that matched: repeating it would carry the identifier into the response body, the access log and the traces.
-
aql-invalidgives the byte range of the AQL text it points at asposition,{"start": …, "end": …}. -
version-conflictnames the latest version ascurrent_version, the same value itsETagcarries.
No problem carries a stack trace, SQL, a server path or a value from the
store: a server fault is a 500 with a fixed detail.
Match on the HTTP status first, then on type; read detail for the
human-readable explanation.
405 always names the allowed methods
Every 405 Method Not Allowed carries an Allow header listing the methods the
target resource currently supports, as
RFC 9110 §15.5.6
requires, so a client can discover the right method without guessing:
HTTP/1.1 405 Method Not Allowed
Allow: GET,HEAD,PUT
Content-Type: application/problem+json
{ "type": "about:blank", "title": "Method Not Allowed", "status": 405, "detail": "the request method is not allowed on this resource" }
Whether a method is served depends on the resource, never on your credential.
With authentication on, an authenticated request with a method the resource
does not serve gets this 405 whatever its token grants; the role and SMART
scope checks apply only to a served method. A request without a credential is
still 401.
When a resource is switched off by configuration (the
admin API with FERROEHR__API__ADMIN=false),
the header is present but empty, which
RFC 9110 §10.2.1
defines as “the resource allows no methods”: nothing you can send to that path
will be served until the gate is opened.
A method the server does not recognize at all is answered 405 as well (with
Allow), not 501. The openEHR spec suggests 501 there, but the two rules it
states overlap for any method outside its own list, and a blanket 501 would
also mislabel requests to paths that simply do not exist and are owed a 404.
501 Not Implemented remains reserved for a recognized operation this server
does not implement.
Problem types
Every error on FerroEHR’s openEHR and extension routes is an RFC 9457
problem details document (Content negotiation & errors).
Its type is either about:blank, an error that means no more than its HTTP
status, or one of the FerroEHR types below. Each type’s URI is this page at
the type’s anchor, such as
https://ferroehr.eu/docs/latest/using-the-api/problems.html#aql-invalid.
The title is the same for every occurrence; the members marked “with
Prefer: return=representation” appear only when the request carries that
header.
aql-invalid
Status: 400 Bad Request. Title: The AQL query is not valid.
The AQL text does not parse, or the query engine refuses it (a construct
outside the supported AQL, a path it cannot type, a parameter it cannot bind).
Correct the query; detail says what was refused.
With Prefer: return=representation: position, {"start": …, "end": …},
the byte range of the query text a parse refusal points at.
query-timeout
Status: 408 Request Timeout. Title: The query ran longer than the
server allows.
The query ran past record.query.timeout and the server aborted it. Narrow the
query (a tighter WHERE, a LIMIT, fetch and offset) or ask the operator
to raise the limit.
validation-failed
Status: 422 Unprocessable Content. Title: The content fails
validation.
The payload parsed but fails its template, the Reference Model, the terminology, or the data-minimisation rules. Correct the content at each path.
With Prefer: return=representation: errors, one
{"path": …, "detail": …} per violation, keyed by the RM path of the
offending node.
A template upload (POST /definition/template/adl1.4 and …/adl2) declares no
422 in ITS-REST 1.1.0, so it answers the same refusal as an about:blank
400, with the same detail and errors.
content-invalid
Status: 422 Unprocessable Content. Title: The content cannot be
processed.
The payload is well-formed but cannot be processed, such as an archetype the
server cannot accept. detail names the rule. A template the server cannot
accept on upload is a 400, as under validation-failed.
conflict
Status: 409 Conflict. Title: The request conflicts with the
resource’s current state.
The resource already exists (an EHR for the subject, a composition with the given id) or the write conflicts with a concurrent one. Read the resource and decide whether to retry.
version-conflict
Status: 412 Precondition Failed. Title: The version named is not the
latest.
The If-Match header names a version other than the latest, so another write
came first. The ETag header carries the latest version; read it, merge, and
write again against it.
With Prefer: return=representation: current_version, the latest version,
the same value as the ETag.
unauthenticated
Status: 401 Unauthorized. Title: The request needs credentials.
The request carried no credentials, or credentials the server did not accept.
The WWW-Authenticate header says which scheme to use.
forbidden
Status: 403 Forbidden. Title: The caller may not perform this
operation.
The caller is authenticated, and the access policy (roles, SMART scopes, EHR
access, assurance level) refuses the operation. detail names the missing
grant. When the EHR’s access directives or the access policy refuse, detail
starts with the refusal code (refused-consent-denied,
refused-consent-required, refused-sensitivity,
refused-no-care-relationship, refused-purpose-missing,
refused-purpose-not-permitted; see Access directives).
With Prefer: return=representation: refusal, that code. A restriction or an
opt-out never answers 403: the data read as absent (404), with nothing in
the body that names them.
processing-restricted
Status: 403 Forbidden. Title: Processing of this record is
restricted.
The record carries a restriction of processing (GDPR Art. 18), so the server keeps it stored and refuses other processing until the restriction is lifted.
unavailable
Status: 503 Service Unavailable. Title: The server is temporarily
unavailable.
The server or its database is overloaded or draining. Retry after the
Retry-After header’s delay.
rate-limited
Status: 429 Too Many Requests. Title: The caller sent more requests
than its rate allows.
The caller passed [server.caller_rate]. Retry after the Retry-After
header’s delay.
archive-invalid
Status: 400 Bad Request. Title: The archive cannot be loaded.
The archive at file_sys_loc that POST /admin/load reads is malformed: the
container (archive.zip, archive.7z), manifest.json, a segment or a blob
entry is absent, truncated or does not parse as an export archive, or the
manifest declares a logical format that names no export format. Export the
archive again, or repair the entry; detail names it.
With Prefer: return=representation: archive, {"entry": …} for the entry
that cannot be read or {"format": …} for the declared format.
trc-patient-mismatch
Status: 404 Not Found. Title: No data for the patient of the
treatment relationship confirmation.
A MyHealth@EU contact point’s request reaches beyond the patient its
treatment relationship confirmation names: another patient’s EHR, an EHR this
server does not hold, a TRC patient no EHR belongs to, or a route that names
no EHR. Every case gets this one answer, so it never tells whether an EHR
exists (eHDSI XCA Profile 8.0.1 §4.2.1, §4.2.2). detail opens with the
agreement service’s MyHealth@EU *_NOT_FOUND code, such as
ERROR_PS_NOT_FOUND, which the contact point answers as “No Data”, and the
server records the request as a refused-trc-patient-mismatch security event
(Identity providers).
Querying with AQL
The Archetype Query Language (AQL 1.1) is how you read data out of FerroEHR.
Instead of querying hidden database tables, you query the clinical model
directly: you name the RM types and archetypes you want, express structural
nesting with CONTAINS, and select values by their path within an archetype. The
same query runs unchanged on any conformant openEHR system. This chapter is a
practical walkthrough: the language, how to run queries over HTTP, parameters,
stored queries, version scope, terminology, pagination and limits, and the
supported feature envelope.
- The shape of a query
- Running a query over HTTP
- The result set
- Parameters
- Stored queries
- Cohort queries across the pseudonymisation boundary
- Queries rooted at a demographic class
- Querying the access log
- Version scope: LATEST_VERSION and ALL_VERSIONS
- Terminology in queries
- Pagination and limits
- What is supported
The shape of a query
An AQL statement has the familiar SELECT … FROM … WHERE … ORDER BY skeleton,
but the “tables” are RM types and the “columns” are archetype paths:
SELECT
c/name/value AS composition_name,
o/data[at0001]/events[at0006]/data[at0003]/items[at0004]/value/magnitude AS systolic
FROM EHR e
CONTAINS COMPOSITION c
CONTAINS OBSERVATION o[openEHR-EHR-OBSERVATION.blood_pressure.v2]
WHERE o/data[at0001]/events[at0006]/data[at0003]/items[at0004]/value/magnitude > 140
ORDER BY systolic DESC
-
FROMbinds variables to RM types (EHR e,COMPOSITION c,OBSERVATION o). A type can be constrained by archetype id in square brackets (OBSERVATION o[openEHR-EHR-OBSERVATION.blood_pressure.v2]). Naming a parent archetype also returns data recorded under its specialisations, as openEHR requires: for ADL 1.4 identifiers the specialisation is the hyphen-extended concept (…blood_pressurematches…blood_pressure-cuff), and for ADL 2 identifiers (where the hyphen carries no such meaning) the lineage is read from the ADL 2 archetypes and templates you have uploaded, so the parent matches every stored specialisation of it whatever its concept is named. In both cases the major version is a hard boundary:.v1never matches.v2data. Within a major, the version you name is the oldest release you accept:.v1matches everyv1release,.v1.2matches data recorded underv1.2.0or any laterv1release, and.v1.2.3matchesv1.2.3and later. Data recorded under an ADL 1.4 id (.v1alone) is found only by a.v1query. The namespace must match exactly:org.example::…finds only data recorded inorg.example, and an id without a namespace finds only data recorded without one (#4629, #4630). -
CONTAINSexpresses structural containment: “an EHR that contains a composition that contains a blood-pressure observation”. Chains can nest several deep, and combine withAND,OR, andNOT. Folder containment follows the RM’s reference model:FOLDER f CONTAINS COMPOSITION cmatches the compositions a folder’sitemsreference, transitively over the folder’s sub-tree, andFOLDER f1 CONTAINS FOLDER f2matches strict sub-folders plus the folders of a versioned folder theitemsreference — one reference hop, so a chain of references is expressed by chainingCONTAINS. A pair the RM defines no containment relationship for (sayCOMPOSITION CONTAINS COMPOSITION) is refused with a typed error. Containment is strict: a node does not contain itself, soCLUSTER cl1 CONTAINS CLUSTER cl2binds only clusters nested inside another cluster. A variable declared inside anORbranch can be read inSELECT,WHERE, andORDER BY: a row where its branch did not match readsnullfor it, and when both branches match, each match of one pairs with each match of the other. This holds for a branch that is a versioned object of its own too:EHR e CONTAINS (COMPOSITION c1[...] OR COMPOSITION c2[...])returns the current version of each matching composition, itsc1/uid/valueincluded, and aFOLDERbranch reads the compositions the folder references. -
SELECTprojects values by path. Paths use archetype node ids (at0004) and RM attribute names (value/magnitude);ASnames a column. A path through a repeated node returns one row per node it reaches: selecting the systolic and the diastolic of a blood-pressureEVENTreturns one row per event, each pairing that event’s own two values, withnullwhere an event lacks one. Paths that share a prefix share that node in a row, and a path that reaches nothing readsnullwithout removing the row. The AQL specification does not define this row shape; it is this engine’s documented convention. -
WHEREfilters on typed leaf values, with comparisons,EXISTS,LIKE,MATCHES, and boolean combinators. The AQL specification does not say how a test behaves on a path that reaches several nodes; this engine’s rule is:- Every repeated step a
WHEREpath descends, and theSELECThas not already bound, is bound once for the wholeWHEREclause, the way aSELECTpath binds it: one node per binding, and onenullbinding when nothing matches. Steps written identically (predicate included) are one binding, soevents[at0006]andeventsare two. - A row is kept when some assignment of those bindings makes the whole
clause true, with SQL’s three-valued logic: a test of a
nullvalue is unknown, and an unknown clause does not keep the row. - A path that shares a prefix with a selected path reads the node that row is bound to.
The boolean laws therefore hold.
<systolic> >= 140 AND <diastolic> >= 90holds only for an event carrying both values, also underORandNOT, whether or not theSELECTreads the event;NOT (<systolic> > 140)holds when some event’s systolic is 140 or lower, and is unknown when the path reaches nothing;NOT (A OR B)equalsNOT A AND NOT B; adding a test withANDnever adds rows. Paths compared with each other, and paths inside a function call, read through the same bindings. Elements of a list attribute inside one node’s data (links,participations,identifiers, …) are not bindings: a test of such a path against a value holds when any element of the bound node satisfies it, and is unknown when the list is empty or absent, soNOT (c/links/target/value = 'x')drops a composition without links. Beside another path or inside a function, such a path reads its first element.EXISTS <path>asks whether the data at that path exists (the AQL specification’s own definition). It reads through theSELECTbindings, and otherwise looks at the whole path on its own, outside the clause’s bindings:EXISTSholds when any node on the path carries the data andNOT EXISTSwhen none does, whatever the other tests bind.A list attribute in a projected path is read by one of two rules, depending on what the list holds:
- Row rule: a list that holds structure nodes (
c/content,p/identities,.../items,.../events) gives one row per node.SELECT o/data[at0001]/events/time/valueover an observation with two events answers two rows, one time each. - Cell rule: a list inside one node’s data (
links,context/participations,composer/identifiers,mappings,feeder_audit/originating_system_item_ids) gives one cell. A path that ends on the list answers the list itself, and a path that continues below it answers the array of its matches. Both arenullwhere nothing matches. Over a composition with a placer and a filler order number,c/feeder_audit/originating_system_item_idsanswers[{"_type": "DV_IDENTIFIER", "id": "ORD-PLACER-1", ...}, {"_type": "DV_IDENTIFIER", "id": "ORD-FILLER-1", ...}]andc/feeder_audit/originating_system_item_ids/idanswers["ORD-PLACER-1", "ORD-FILLER-1"].
Paths through different repeated steps of one variable are bound independently, so selecting both returns every combination of their nodes.
- Every repeated step a
-
Aggregates read every data item of their path in the rows
FROMandWHEREselect:MAX(<systolic>)over an observation measured twice sees both events, andCOUNTover a list attribute counts its elements. An item counts when some assignment of theWHEREbindings, with the steps the item shares fixed to its own nodes, makes the clause true, soSELECT COUNT(<systolic>) ... WHERE NOT (<systolic> < 140)counts exactly the readings that selecting<systolic>would return. List elements inside one node are not filtered one by one:COUNT(<links path>)under aWHEREon that path counts every link of a row the clause keeps. An aggregate adds no rows, soCOUNT(*)counts the rows theWHEREclause keeps whatever other aggregates sit beside it.COUNT(DISTINCT)compares numbers by value (120and120.0are one value), a stored JSONnullcounts as no value, andAVGreturns a decimal mean. -
ORDER BY,LIMIT, andOFFSETbehave as you expect; quantities order by their openEHR magnitude semantics. -
Date/time comparisons accept reduced precision on both sides: openEHR admits partial values (
2019,1985-06), and the engine compares them by flooring to the first instant they contain (a partial date assumes the first month/day, a partial time assumes zero). A comparison value that is not an ISO 8601 date/time at all is refused with a 400.
Running a query over HTTP
The query API lives under the base path at /query/aql. The simplest form is a
POST with a JSON body:
curl -u ferroehr:ferroehr \
-H 'Content-Type: application/json' \
-d '{"q":"SELECT e/ehr_id/value FROM EHR e"}' \
http://localhost:8080/ferroehr/rest/openehr/v1/query/aql
The body fields are:
| Field | Meaning |
|---|---|
q | The AQL text (required). |
offset | Rows to skip (default 0). |
fetch | Maximum rows to return. |
query_parameters | An object of named parameter values (see below). |
There is also a GET /query/aql form taking q, offset, fetch, an optional
ehr_id, and query_parameters as query-string parameters, convenient for
simple, cacheable reads.
offset, fetch, ehr_id and named parameters are accepted in the query string
on the POST forms too. A value supplied in both the body and the URL must
agree; a disagreement is a 400 Bad Request rather than a silent choice
between them.
The query API is JSON only (Accept: application/json).
Scoping to an EHR
You can restrict a query to one EHR without writing the constraint into the AQL:
pass an ehr_id query-string parameter, or the openehr-ehr-id request header.
Both forms work on every execution endpoint: ad-hoc and stored, GET and
POST alike. (openEHR-EHR-id is the deprecated spelling of the same header and
still resolves, HTTP header names being case-insensitive.)
If a request carries both forms they must name the same EHR; a request whose parameter and header name different EHRs is self-contradictory and is rejected with a 400 Bad Request. So is a request repeating the header with two different values. An empty header value counts as “not supplied” and conflicts with nothing.
The id must exist: a malformed id is a 400, and a well-formed id that matches no EHR is an honest 404 Not Found rather than an empty result set, so a typo cannot masquerade as “no data”.
The result set
A query returns a RESULT_SET: a description of the columns and an array of row
tuples.
{
"meta": {
"_type": "RESULTSET",
"_schema_version": "1.0.0",
"_created": "…",
"_executed_aql": "SELECT e/ehr_id/value FROM EHR e"
},
"q": "SELECT e/ehr_id/value FROM EHR e",
"columns": [
{ "name": "#0", "path": "/ehr_id/value" }
],
"rows": [
[ "7d44b88c-4199-4bad-9764-5da0e2a97441" ],
[ "b1e2c3d4-5678-90ab-cdef-1234567890ab" ]
]
}
Each entry in columns names the column (the AS alias, or #<index> when you
did not alias it) and its path. Each row in rows is an array of cells, one
per column in column order. A cell can be a scalar or a full RM object (for
example {"_type":"DV_TEXT","value":"Labs"}) depending on what you selected. A
stored-query execution additionally carries the query’s name.
The meta block’s _executed_aql field is the AQL the server actually ran, with
your named parameters substituted in as literals. Paste it straight back into an
ad-hoc query when debugging a parameterised call. The top-level q keeps the
text exactly as you submitted it, and _created stamps when this response was
produced.
Query responses carry a weak ETag that is a content digest of the result
set: two runs returning identical results carry the identical tag, so a client
can cheaply detect “nothing changed” between polls. The digest deliberately
covers the query, the executed AQL, the columns and the rows, and not the
per-response _created stamp, so an unchanged result does not mint a new tag
every second.
Parameters
Parameterise a query with named placeholders (a name preceded by a dollar sign)
and supply the values in query_parameters. This is the safe way to inject
values, with no string concatenation:
curl -u ferroehr:ferroehr -H 'Content-Type: application/json' -d '{
"q": "SELECT c FROM EHR e CONTAINS COMPOSITION c WHERE c/name/value = $name",
"query_parameters": { "name": "Vital signs" }
}' http://localhost:8080/ferroehr/rest/openehr/v1/query/aql
On the URL, each parameter can also be its own query-string key, which is the form the openEHR request documentation shows and is usually easier to build by hand:
curl -u ferroehr:ferroehr --get \
--data-urlencode 'q=SELECT c FROM EHR e CONTAINS COMPOSITION c WHERE c/name/value = $name' \
--data-urlencode 'name=Vital signs' \
http://localhost:8080/ferroehr/rest/openehr/v1/query/aql
Four details about the URL form: the leading $ is optional ($name and name
bind the same parameter); a value in double quotes binds the JSON string it
denotes, so uid="123" binds the text 123, as {"uid": "123"} does in a
POST body (a value that only starts with a quote keeps its text); any other
value that parses as a JSON scalar binds as that type (36 as a number, true
as a boolean) while everything else binds as text; and the reserved keys q, offset, fetch, ehr_id and query_parameters are
request controls, never parameters. Where the same name appears both as its own
key and inside query_parameters, the named key wins.
Stored queries
You can register a query once, under a qualified name and version, and execute it by name later. Storing is done through the definition API with the AQL as a plain-text body; executing is done through the query API.
# Store a query as org.example::bp_over, version 1.0.0
curl -u ferroehr:ferroehr -X PUT -i \
-H 'Content-Type: text/plain' \
--data-binary 'SELECT o/data[at0001]/events[at0006]/data[at0003]/items[at0004]/value/magnitude FROM EHR e CONTAINS OBSERVATION o[openEHR-EHR-OBSERVATION.blood_pressure.v2]' \
http://localhost:8080/ferroehr/rest/openehr/v1/definition/query/org.example::bp_over/1.0.0
# List and fetch stored queries
curl -u ferroehr:ferroehr \
http://localhost:8080/ferroehr/rest/openehr/v1/definition/query/org.example::bp_over
# Execute it
curl -u ferroehr:ferroehr \
http://localhost:8080/ferroehr/rest/openehr/v1/query/org.example::bp_over/1.0.0
Storing. Both store forms answer 200 OK with an empty body and a
Location header naming exactly the version that was written:
PUT /definition/query/{name}/{version}stores at that exact SemVer. The pair is immutable (re-storing an existing(name, version)is a 409 Conflict, never an overwrite) and a partial or malformed version segment is a 400.PUT /definition/query/{name}(no version) stores or updates at the default version1.0.0.
The body must be text/plain: declaring another media type is a 415, and an
absent Content-Type reads as the plain-text body. The AQL is parsed at store
time, so a syntactically invalid query is rejected 400; the server never
stores a query it cannot execute. An optional query_type parameter names the
formalism, default AQL (case-insensitive); anything else is rejected 400
with an honest “unsupported formalism” message rather than a misleading “invalid
AQL”.
Naming. The qualified name is [{namespace}::]{query-name}, each part over
the characters a-z, A-Z, 0-9, _, . and -; a name outside that
grammar, a three-part {namespace}::{formalism}::{query-name} included, is a
400, and the formalism goes in the query_type parameter. The namespace is optional: a bare name is stored under the assumed namespace
misc, so my_compositions and misc::my_compositions are the same query and
listings show the qualified form. Identity is case-insensitive while the casing
you stored is preserved. The query-name aql is reserved (case-insensitive; it would collide with
the ad-hoc /query/aql route) and is rejected with a
400.
Reading and executing.
GET /definition/query/{pattern}lists every version of the queries the pattern matches, where an empty part is a wildcard:org.examplelists the names that start withorg.example,org.example::every query in that namespace,org.example::bpthe names in it that start withbp, and::bpthe names that start withbpin any namespace.GET /definition/query(no name at all) lists every stored query, a FerroEHR convenience, since the openEHR API defines only the named form.GET /definition/query/{name}/{version}fetches one, by exact SemVer or by prefix (1,1.0→ the highest matching stored version).GET|POST /query/{name}executes the latest version;GET|POST /query/{name}/{version}executes that version, again by exact SemVer or prefix. Both take the sameoffset,fetch,ehr_idand named parameters as ad-hoc queries; aPOSTbody of{}executes a parameterless stored query.- A
{version}segment on these reads that is no SemVer and no{major}or{major}.{minor}prefix (v1.x,01) is a 400; a well-formed version that is not stored is a 404.
Deleting a stored query is an admin operation; see Admin & messaging APIs.
Cohort queries across the pseudonymisation boundary
Some questions are about a population rather than a patient: the blood pressures of everyone in a city, the medication history of an age band, the readmissions of the people one organisation cares for. Answering them normally means someone producing a list of patient identifiers first, which is exactly the disclosure the split between clinical and demographic storage exists to avoid.
POST /ferroehr/rest/extensions/v1/query/cohort answers them without producing that list. It is a FerroEHR
extension — no openEHR spec governs it: AQL is defined over the clinical domain
and has no demographic source, and ITS-REST publishes an ad-hoc and a stored
query and nothing else.
How it runs. Three steps:
- A predicate from the deployment’s allow-list selects parties in the demographic domain. It reads one archetype leaf and returns identifiers, nothing else — no name, address or national identifier leaves that domain.
- Those parties resolve to the EHRs whose
EHR_STATUS.subjectnames them: theexternal_refwhoseid.valueis the party’s uid without::<system>::<version>, the referencePOST /ehrstores. Identifiers in, identifiers out. - Your AQL runs on the clinical pool, scoped to exactly those EHRs.
The demographic and the clinical statements never meet. With
[database.party] url set, each pool authenticates as a role revoked from the
other, and the server refuses to boot if one can read across. You never receive a party
identifier: the response carries what your AQL projected, plus counts.
The allow-list. A cohort predicate can only name something the deployment
declared, under [privacy.cohort.predicates] — the surface is off until at least one is
bound, and the route answers 404 until then. Five keys are bindable:
city, postcode_area, sex, age_band and organisation. Each binding
names the archetype of the leaf’s nearest archetyped ancestor, the leaf’s
at-code, and how a value is matched. See
Privacy & data minimisation for the
keys and their defaults.
Naming subjects by identifier. With [privacy.cohort] subjects = true a request
may carry subjects, a list of { "id": …, "namespace": … } identifiers in
any identifier domain (an optional type defaults to PERSON). Each one
resolves to the EHR whose EHR_STATUS.subject.external_ref names it, after the
[pixm] provider has put it in the clinical domain, and the result
intersects with what cohort selects. Under subject_index = "local" the
identifier names itself, so an EHR created over POST /ehr with that subject
in its EHR_STATUS is found. Under an IHE patient identity source FerroEHR
asks the PIX Manager to translate the identifier forward into its own clinical
domain (ITI-83 with targetSystem set to that domain) and finds the EHR whose
EHR_STATUS carries that pseudonym. A subject no EHR belongs to adds nothing. A subject
that cannot be resolved, because the identity source fails or no provider is
installed, fails the whole query rather than shrinking the cohort.
Under an IHE patient identity source, cohorts name their subjects. There an
EHR_STATUS names its patient by the clinical pseudonym, never by a party of
this server, and FerroEHR never asks the source to translate a pseudonym back
into another domain (openEHR RM EHR_STATUS.subject; GDPR
Art. 4(5) and Art. 25). A demographic predicate would need that,
so a request with a non-empty cohort is refused 400 there, before any
domain or the PIX Manager is asked. The cohort digest takes each subject by
its namespace alone, so the access record carries no identifier value.
Running one.
curl -u ferroehr:ferroehr -X POST \
-H 'Content-Type: application/json' \
-d '{
"q": "SELECT c/uid/value FROM EHR e CONTAINS COMPOSITION c",
"cohort": [{ "name": "city", "value": "Groningen" }],
"purpose": "secondary-use",
"fetch": 100
}' \
http://localhost:8080/ferroehr/rest/extensions/v1/query/cohort
q, offset, fetch and query_parameters mean what they mean on the ad-hoc
body. There is no ehr_id: the cohort is the scope, and supplying one is a
400. Several cohort entries intersect — city and sex, not city or
sex.
The response is an ordinary RESULT_SET with one extra block:
{
"meta": {
"_type": "RESULTSET",
"cohort": {
"size": 412,
"served_ehrs": 388,
"suppressed": false,
"definition": "9f2c…"
}
},
"rows": [["8849fd1e-…::local::1"]]
}
size is how many EHRs the cohort resolved to, served_ehrs how many the rows
actually came from, and definition a SHA-256 digest of the predicate list —
the cohort’s identity, carrying none of its values.
Small-cell suppression. A result set narrow enough to name one person
re-identifies that person out of content you hold no individual entitlement to.
When fewer EHRs are served than privacy.cohort.small_cell_threshold (default 5), the
rows are withheld and suppressed is true. The response says so rather than
looking like an empty cohort: a caller who cannot tell the two apart will keep
widening the predicate until the boundary leaks. Set the threshold to 0 to
disable suppression.
The access record. Every execution — suppressed and failed ones included —
records one linkage-domain access event naming the cohort by its digest, the
purpose you declared, and how many EHRs were served. A crossing of this boundary
that nobody can reconstruct afterwards is what the access log exists to prevent.
The predicate values are never recorded: they are the cohort, and a trail
carrying them would be a second copy of it.
Limits. A predicate matching more than privacy.cohort.max_cohort_size parties
(default 100000) is refused 422 rather than truncated — a silently shortened
cohort is a wrong denominator with nothing on the wire to say so. More named
subjects than that ceiling are refused the same way. An unbound predicate
name, a malformed age band (the form is <min>-<max> whole years, both
inclusive), a predicate under an IHE identity source, or a request with
neither a predicate nor a subject is a 400. An empty
cohort runs no AQL and answers an empty result set.
Measured. The committed record docs/benchmarks/cohort/record.json
in the repository (produced by the ignored cohort_bench test, not by the
conformance instrument) measures the whole call, predicate to result set, over
a corpus of 100 000 parties, each the subject of one EHR holding one
composition, seeded through the service API, with the database in a local
container. Selecting one composition path per EHR:
| Cohort | p50 | p95 | Demographic statement | Clinical statement |
|---|---|---|---|---|
| 100 EHRs | 71 ms | 116 ms | 54 ms | 1 ms |
| 1 000 EHRs | 102 ms | 145 ms | 51 ms | 11 ms |
| 10 000 EHRs | 543 ms | 820 ms | 64 ms | 325 ms |
| 100 000 EHRs | 2.6 s | 2.9 s | 260 ms | 702 ms |
Measured over 100 000 parties, 100 000 EHRs and 100 000 compositions at commit 54495c274ebf on a consumer-laptop (8 cores, 16 GB, nvme); the two statement columns are EXPLAIN (ANALYZE) times.
The difference between the statement times and the wall clock is result
assembly and the access records. Both statements run on indexes (idx_dem_node_archetype on the demographic side, the current-version
and EHR indexes on the clinical side); no sequential scan appears in any of the
recorded plans. The record names the commit it was measured at; a re-run
replaces it rather than appending.
Queries rooted at a demographic class
The Demographic API reads a party by its identifier and has no search. To find
a party or a relationship by what it holds, such as an identifier in its
details, FerroEHR serves a subset of the experimental AQL demographic
extension on the same POST /query/aql and GET /query/aql routes. No openEHR
specification governs it: QUERY 1.1 lets FROM name any Reference Model class
but gives semantics only to the clinical repository, so everything below is
FerroEHR’s own design, and the extension may change.
SELECT p/uid/value
FROM PERSON p
WHERE p/details[at0001]/items[at0002]/value/id = $identifier
ORDER BY p/uid/value
The grammar served. The query is ordinary AQL 1.1 syntax with these rules on
the FROM clause:
-
The outermost class is a demographic root, optionally under a
VERSIONclass, and it is the only demographic class at the root of the query. The roots served are:Root What it reads PERSON,ORGANISATION,GROUP,AGENT,ROLEthe parties of that class ACTORevery PERSON,ORGANISATION,GROUPandAGENTPARTYevery party of the five classes PARTY_RELATIONSHIPthe relationships stored as their own object on FerroEHR’s relationship routes The abstract
PARTYandACTORcover the concrete classes the RM places below them, soFROM PARTY p WHERE …finds a party by an identifier without knowing its class. Every root reads parties of any archetype. A relationship held inside its source party’srelationshipsis part of that party, so you read it through a path such asp/relationships[at0030]/target/id/value, never as a root. -
Below it,
CONTAINSmay name the content classes a party holds:CLUSTER,ELEMENT, the item structures, and the party containersPARTY_IDENTITY,CONTACT,ADDRESSandCAPABILITY, with archetype and node predicates as usual, for exampleCONTAINS CLUSTER c[openEHR-DEMOGRAPHIC-CLUSTER.person_identifier.v2]. -
SELECT,WHEREandORDER BYtake paths inside the party: itsdetailstree, itsidentities,contacts(with theiraddresses) andcapabilities(with theircredentials), itsrelationshipsandroles,p/uid/value, and the whole party (SELECT p).identities,contacts,addressesandcapabilitieshold structure nodes, so a path through them follows the row rule above;relationshipsandrolesare held in the party’s own data, so a projected path through them follows the cell rule and answers the array of its matches. Named parameters,LIMIT/OFFSET, the RESToffsetandfetch, and the functions and aggregates of the clinical envelope apply unchanged.
What a row is. The query reads the latest trunk version of each party. A
logically deleted party, and a party under a restriction of processing, answers
no row. p/uid/value is the version identifier the Demographic API returns.
What is refused. Each of these is a 400 Bad Request naming the construct, so you can tell a refusal from an empty result:
- a demographic class anywhere but the root, or a second one, including
PARTY p CONTAINS PARTY_RELATIONSHIP r; - a
PARTY_RELATIONSHIProot that names anEHR, because a relationship is the subject of no EHR; - a query that names
EHRor a clinical versioned object such asCOMPOSITIONanywhere but directly under the root (see the join below); - an
ehr_idscope (query parameter oropenehr-ehr-idheader), because a party is in no EHR.
Joining a party to its EHR. An EHR operand directly under the root
reaches the EHR the party is the subject of:
SELECT p/uid/value, c/name/value
FROM PERSON p CONTAINS EHR e CONTAINS COMPOSITION c[openEHR-EHR-COMPOSITION.encounter.v1]
WHERE p/details[at0001]/items[at0002]/value/id = $identifier
ORDER BY c/context/start_time/value DESC
A party is the subject of an EHR when the EHR’s current EHR_STATUS.subject
is a PARTY_SELF whose external_ref names the party: its id.value is the
party’s uid without ::<system>::<version>, and its type is the root class
or one of its abstract RM ancestors (ACTOR for PERSON, ORGANISATION,
GROUP and AGENT, PARTY for all five). Under the abstract PARTY or
ACTOR root each party joins under its own class, so a reference that names
a PERSON as an ORGANISATION joins under no root. This is the reference POST /ehr stores, so an EHR
created with that subject joins with no other call.
The namespace of the reference is not
compared: BASE OBJECT_REF.namespace takes any name a deployment chooses
(local, demographic, or your own), and the id and the class already name
one party. A deployment that pseudonymises the subject stores a pseudonym in
id.value, and a pseudonym is not a party uid, so its EHRs do not join.
Party classes may sit beside the EHR in an AND
(PERSON p CONTAINS (CLUSTER id[…] AND EHR e CONTAINS COMPOSITION c)). A row
is a party row together with a clinical row of an EHR that party is the subject
of, so a party with no EHR, and an EHR whose subject has no party, answer no
row. FerroEHR runs the query as three statements, each on one database
credential: the party half, the EHRs whose subject names those parties, and
the clinical half scoped to those EHRs. It
then joins, orders and pages the rows. The rules that follow:
- each column, each
WHEREcondition joined byAND, and eachORDER BYkey reads one side only, the party or the EHR; a condition comparing the two, or anORacross them, is a 400; - aggregates and
SELECT DISTINCTare a 400; - each half, and the joined rows, may hold at most
record.query.max_result_rowsrows; above that the query is a 400 asking you to narrow it, never a shortened answer; - the clinical half carries your per-EHR access decision and patient scope as any query does, and the party read and the crossing to the EHRs each leave an access record in their own domain.
Who may run it. The query runs under the authorisation of a Demographic API
read: the role check that admits a party read admits the query, and the per-EHR
access decision and the attribute-based patient scope, which govern EHR
content, do not apply to parties. The SMART aql-… scopes that govern every
query still apply. The query runs on the demographic database credential, and
its access record is filed under the demographic domain with the number of rows
served.
Policy parties. A caller without the administrator role never receives
a policy party through any root: a system’s AGENT, a policy ROLE, an
acts-for PARTY_RELATIONSHIP, or a party that holds an acts-for
relationship. The rule applies under every root, the abstract PARTY and
ACTOR included, to the nodes reached through CONTAINS and to the party
half of a join, and counts, pages and aggregates see only what you may read
(Operational policy has the rule in full).
Querying the access log
The access log is queryable with AQL as its own top-level class,
ACCESS_LOG_ENTRY, on the same POST /query/aql and GET /query/aql routes
and through stored queries. It serves review and analysis of the log (EHDS
Annex II 3.3) and record demerging. No openEHR specification defines AQL over an
access log: the class comes from the draft access-log model FerroEHR proposes,
and everything below is FerroEHR’s own design.
SELECT l/time_recorded/value, l/ehr_id/value, l/accessor/party/external_ref/id/value
FROM ACCESS_LOG_ENTRY l
WHERE l/items/version_id/value = $version
ORDER BY l/time_recorded/value DESC
The class stands alone. ACCESS_LOG_ENTRY is the one class of its FROM
clause. It never appears inside an EHR containment, it never contains an
EHR or any other class, and it takes no predicate in FROM, so no query
returns log entries and clinical data in one result. A query that breaks this
gets 400 with a message naming the rule.
Who may run it, and what they see. The log has its own access control, apart from any clinical query right, and the query follows the rules of the access log’s own resources:
| Caller | Reads |
|---|---|
| A caller the admin class admits | every EHR’s entries in the full view; an ehr_id scope narrows them |
| The patient, or a representative bound to them | the entries of the EHR they are confined to, in the subject view, without those about data held from them |
| Anyone else | nothing: 403 |
In the subject view a path the view leaves out (the credential, the delegation,
the binding, the channel, the query text and digest, the security labels,
other_details, each origin’s endpoint and the link) reads as absent: its
column is null and a condition on it matches nothing, so it cannot be probed
through WHERE. An accessor member the access policy’s EHDS Art. 9(3)
restrictions withhold is left out of the column for the accessor kinds they
name, and reads as absent in a condition for every entry, since a condition
cannot tell the kinds apart without reading the member. A person who scopes
another EHR gets 404. The SMART aql-…
scopes that govern every query still apply.
Paths and conditions. Paths name the entry’s attributes as the draft model
defines them, checked against that model. A path that crosses a list, such as
l/items/version_id/value, reads as the list of every value it reaches, and a
condition on it holds when any member matches. WHERE takes the comparison
operators, LIKE, matches over a value list, EXISTS, AND, OR and NOT;
ORDER BY, LIMIT, OFFSET and the offset and fetch parameters page the
entries as they page any query. Without ORDER BY the newest entries come
first. l/time_recorded/value compares as an instant, written as an ISO 8601
date-time with its offset. Aggregates, functions, SELECT DISTINCT, path
predicates and TERMINOLOGY() are refused.
Every query is recorded. A query of the log is a read of the log, and it
writes its own access-log entry: the action read, the query named by its
digest, and for the person the log of their EHR.
Version scope: LATEST_VERSION and ALL_VERSIONS
By default a query sees the latest version of each object. FerroEHR also
supports querying the entire version history, a capability many CDRs lack.
Wrap a source in VERSION and choose the scope:
SELECT v/commit_audit/time_committed, c/name/value
FROM EHR e
CONTAINS VERSION v[ALL_VERSIONS]
CONTAINS COMPOSITION c
LATEST_VERSION (the default) reads only current trunk versions;
ALL_VERSIONS reads across history (including branch versions, where a version
tree has any) so you can see how a record changed over time. A standard
predicate on a version attribute selects the versions it holds for, with the
operator you write: VERSION v[commit_audit/time_committed/value > $t] reads
every version committed after $t, and >=, =, <, <= and != read the
versions their comparison admits. The bound is an ISO 8601 date, time or
date-time; a number, boolean or NULL literal there, or a string no ISO 8601
form reads, is refused with 400. The VERSION variable also exposes commit
metadata: the audit, the committed time, and the version uid.
A VERSIONED_OBJECT operand between the EHR and the version names the
versioned object itself. Its variable answers uid/value, the object id every
version of it shares, and owner_id/id/value, the EHR that owns it; any other
path on it is refused. It sets no version scope of its own: the VERSION
below it does.
SELECT vo/uid/value, v/uid/value, c/name/value
FROM EHR e
CONTAINS VERSIONED_OBJECT vo
CONTAINS VERSION v[ALL_VERSIONS]
CONTAINS COMPOSITION c
VERSION paths
A VERSION variable answers these paths:
| Path | Reads |
|---|---|
uid/value | the version id, object_id::creating_system_id::version_tree_id |
contribution/id/value | the CONTRIBUTION the version was committed in |
lifecycle_state/value, lifecycle_state/defining_code/code_string, lifecycle_state/defining_code/terminology_id/value | the lifecycle state as rubric, code or terminology |
commit_audit/time_committed, commit_audit/time_committed/value, commit_audit/system_id, commit_audit/committer | the commit audit |
commit_audit/change_type/value, .../defining_code/code_string, .../defining_code/terminology_id/value | the audit change type |
commit_audit/description, commit_audit/description/value, .../defining_code/code_string, .../defining_code/terminology_id/value | the audit description |
commit_audit/is_pending, commit_audit/reason, commit_audit/reason/value | the ATTESTATION attributes of a commit audit that is an ATTESTATION; empty on a plain AUDIT_DETAILS |
attestations, attestations[<predicate>], attestations/<path> | the version’s ATTESTATIONs, see below |
LAST(v/attestations/<path>) | the path on the most recent ATTESTATION, a FerroEHR extension function |
Any other path on a VERSION variable is refused with a typed error.
Attestations and the review worklist
A version carries the attestations committed with it and every attestation
added to it afterwards through a 666|attestation| contribution (RM common,
change control package, §Attestation). ATTESTATION is not LOCATABLE, so
you reach it by path from the VERSION variable, not with
CONTAINS ATTESTATION. A path below attestations is any attribute of
ATTESTATION: is_pending, reason/value, proof, items/value,
committer/name, time_committed/value and the others the class declares.
When a pending attestation is signed, the RM adds a second ATTESTATION
with is_pending = false and keeps the pending one. A version that was
signed can also be marked pending again later, when further action turns out
to be needed. Only the most recent attestation says whether a version waits
for signature, so the review worklist reads that one:
SELECT e/ehr_id/value, c/uid/value, v/commit_audit/time_committed
FROM EHR e CONTAINS VERSION v[LATEST_VERSION] CONTAINS COMPOSITION c
WHERE LAST(v/attestations/is_pending) = true
LAST(<path below v/attestations>) reads the path off the most recent
attestation of the version: the last one in the list, those committed with
the version first and then in commit order. A predicate on attestations
filters first, so LAST(v/attestations[reason/value='authorisation']/is_pending)
reads the latest attestation with that reason. SELECT LAST(v/attestations)
returns the latest ATTESTATION. On a version with no attestation it reads
nothing, so the comparison keeps no row. LAST takes exactly one path below
attestations; any other argument is refused.
LASTis a FerroEHR extension. AQL 1.1.0 has no way to select the last element of a list. It admits functions an implementation adds (QUERY, §Functions), andLASTis one. Another CDR refuses the query as an unknown function. FerroEHR follows a standard form once a later AQL release defines one.
EXISTS v/attestations[is_pending=true] AND NOT EXISTS v/attestations[is_pending=false] is portable AQL. It finds versions that
were marked pending and never signed, but it misses a version that was
signed and then marked pending again, so it is not the worklist.
SELECT v/attestationsreturns the version’s attestations as one list, those committed with the version first, then in commit order. A path below it returns the list of that attribute, one entry per attestation that has it. A version with no attestation gives an empty cell.- A predicate on
attestationstests attributes of each attestation ([is_pending=true],[reason/value=$reason]). An archetype or name predicate is refused:ATTESTATIONhas neither. - A comparison on a path below
attestationsholds when any attestation of the version satisfies it:v/attestations/is_pending = truekeeps a version with at least one pending attestation, signed or not. On a version with no attestation the comparison is unknown, so neither it nor itsNOTkeeps the row. AQL 1.1.0 does not say how a comparison over a multi-valued attribute evaluates; this reading is FerroEHR’s own decision. LATEST_VERSION(the default) reads the attestations of each composition’s current version only, which is what the worklist counts. Attestations do not carry over to a new version (§Attestation), so an older version raises no responsibility;ALL_VERSIONSstill finds it.
Terminology in queries
Value filters can be backed by terminology in three ways:
TERMINOLOGY('expand', …)as (or inside) amatchesoperand expands a value set so a coded field matches any code in it, rather than listing codes by hand;TERMINOLOGY('validate'|'subsumes', …) = trueas a boolean condition evaluates a code-membership or subsumption test once per query;- a terminology URI operand (
matches { terminology://… }) expands the set the URI identifies.
These require a terminology source; if no terminology server is configured, the in-process openEHR bundle is used. See Terminology servers for wiring the FHIR terminology server.
Two rejections to expect here: only expand may stand as a matches operand
(the other operations have no value-list meaning), and only validate and
subsumes have boolean semantics, so TERMINOLOGY('lookup', …) = true is
refused rather than guessed at. A value set the configured server does not know
is a 400 naming it; a terminology server that fails mid-query is a 500,
kept distinct from a bad query on purpose.
Pagination and limits
Combine LIMIT/OFFSET in the AQL with the fetch/offset request parameters
to page through large result sets. Three bounds interact, and it is worth knowing
which one you hit:
| Bound | Where it comes from | Effect |
|---|---|---|
LIMIT/OFFSET, or fetch/offset | your query or request | Exactly the window you asked for. |
record.query.max_result_rows | server config, default 10000 | The largest page one execution serves: the page of a query nothing else bounds, and the maximum a LIMIT or fetch may ask for. 0 means unbounded. |
record.query.timeout | server config, default 30000 | Per-query database execution budget. On by default; 0 disables it. |
Two bounds on the shape of the query text are fixed in the server. Brackets
and CONTAINS may nest at most 64 levels, and a WHERE expression may be at
most 512 levels deep, where each AND, OR, NOT, CONTAINS and bracket on
a path counts one level. A query beyond either returns 400 Bad Request
naming the bound, and a stored query beyond either is refused when you store
it. AND and OR chain one level per operator, so a long list of
alternatives over one path belongs in MATCHES {…}, which the bound does not
count:
WHERE c/name/value MATCHES {'Blood pressure', 'Pulse', 'Body weight'}
A query that exceeds the time budget returns 408 Request Timeout; narrow it
(add archetype constraints, an ehr_id scope, or a WHERE filter) rather than
retrying it unchanged. A LIMIT or fetch larger than the row ceiling returns
400 Bad Request naming the ceiling; the page is never silently shortened,
because a client paging with its own fetch as the stride would skip rows
without noticing. Page with offset and a fetch at or below the ceiling. A
result that stops at the ceiling without either bound set is the default page:
page explicitly to read past it.
Always order a query you intend to page
OFFSET skips rows of a result, and without ORDER BY a result has no defined
row order. Two requests for consecutive pages can then repeat a row or miss one
entirely, and nothing in the response says so. Give any query you page an
ORDER BY on something unique, such as c/uid/value.
Ordering also changes what paging costs, in the direction that helps you. An
ordered query sorts the whole matched set to answer any page, so the first page
already pays most of the work and a deep page costs little more than a shallow
one. An unordered query skips rows one at a time, so its cost grows with the
offset, from almost nothing on page one. Either way what dominates is how much
your FROM/CONTAINS matched, not how deep you paged.
One more reason to order a paged query, if the deployment runs attribute-based authorization: the authorization decision is made over every EHR and template the query would touch, not over the page it served, so that set is collected whatever the page size. An ordered query pays nothing extra for it, because it was producing the whole matched set anyway. An unordered page that looks cheap carries the whole collection on top of it. Narrow the query, and order it.
Tip
The more specific your
FROM/CONTAINS(name the archetype, scope byehr_id), the faster the query: those constraints map to indexed columns, while broad “everything that contains anything” queries do the most work. Repeated identical query text reuses a cached plan, so parameterising a recurring query beats rewriting its literals.
What is supported
FerroEHR implements the core AQL 1.1 envelope and rejects out-of-envelope constructs with an explicit, typed error rather than silently returning wrong results. Supported today includes:
SELECTof paths, literals, aliases,DISTINCT, and the aggregatesCOUNT(includingCOUNT(DISTINCT)),MIN,MAX,SUM,AVG.MINandMAXorder their operand by type (a quantity by its openEHR magnitude, a date/time chronologically, text lexically) so they work over non-numeric leaves;FROMoverEHR,VERSIONED_OBJECT(itsuidandowner_id),VERSION(LATEST_VERSION/ALL_VERSIONS, its commit metadata and its attestations, see VERSION paths), and the RM structure classes, with archetype and name predicates, and over the demographic classes (PARTY,ACTOR, their five concrete classes and a standalonePARTY_RELATIONSHIP) as the experimental demographic extension;CONTAINStrees withAND,OR, andNOT CONTAINS;WHEREcomparisons on typed leaves (with openEHR magnitude ordering for quantities),EXISTS,LIKE,MATCHESvalue lists, and range predicates;ORDER BYtyped leaves,LIMIT/OFFSET,TOP n, named query parameters, and theehr_id,offset, andfetchrequest parameters;- the single-row functions:
LENGTH,SUBSTRING,POSITION, the stringCONTAINS,CONCAT/CONCAT_WS,ABS,MOD,CEIL,FLOOR,ROUND, andCURRENT_DATE/CURRENT_TIME/CURRENT_DATE_TIME/NOW/CURRENT_TIMEZONE; - terminology-backed
TERMINOLOGY()operands and terminology-URImatchesoperands (see above).
What is refused, and why
Every refusal below is a typed error naming the construct, so you never get a silently incorrect answer:
- Demographic forms outside the served subset. A demographic class below
the root, and a query mixing a demographic root with
EHRor clinical content other than the join (see Queries rooted at a demographic class). - The access log beside anything else.
ACCESS_LOG_ENTRYinside anEHRcontainment, over or beside another class, or with a predicate inFROM(see Querying the access log). TOP … BACKWARD.TOPis deprecated as of AQL 1.1.0 and the direction variant is not implemented; the error carries the specification’s own rewrite (ORDER BY <path> DESC LIMIT n).TOPandLIMITin one query are also refused; pick one.- Regex and
ORnode predicates.[{/…/}]is archetype-definition syntax, not AQL value matching, and a disjunctive node predicate is outside the accepted subset. - Branch version addressing. A version predicate may address trunk versions;
reading branch content is done by scoping
ALL_VERSIONS, not by naming a branch. - Reading a variable declared under
NOT CONTAINS.NOT CONTAINSstates that no such node exists, so a path through its variable has nothing to read. SELECT DISTINCTordered by an unselected expression. De-duplication and sorting by something the projection dropped have no defined meaning together; sort by a selected column.- Analysis failures, which are precise: an unknown RM
class or attribute, an unbound
$parameter, a duplicateFROMvariable name,LIMIT 0, a negativeOFFSET, wrong function arity,SUM/AVGover a non-numeric path, and anarchetype_node_idcriterion that is neither an archetype identifier nor a node code. Variable names are case-insensitive, as the specification requires.
The specification generation is an acceptance boundary
Which Reference Model classes and attributes a query may name depends on the
deployment’s deployment.spec_profile. On the
default development profile the query surface is the full RM 1.2.0 model. On
stable (RM 1.1.0), a FROM class or a path attribute that only a newer
generation defines is refused with 400 Bad Request, and the message names
both the offending class or attribute and the active profile. A server of that
generation would answer “unknown”, so returning rows instead would silently
overclaim the profile the deployment advertises.
Nothing else about querying changes with the profile: paths, predicates, and the result-set shape are identical.
Templates & validation
A template is what tells FerroEHR what clinical data to accept. Before you can commit a composition, you upload the Operational Template (OPT) it conforms to; from that template the server derives everything it needs to validate incoming data and to describe the data’s shape to client applications. This chapter covers uploading and retrieving templates in both ADL generations, the derived WebTemplate, the convenience FLAT and STRUCTURED composition formats, and how validation behaves on commit. If templates and archetypes are new to you, read the openEHR primer first.
- Uploading an OPT 1.4 template
- Uploading ADL 2 artefacts
- Listing templates
- Deleting a template
- Archetype sources (a FerroEHR extension)
- The WebTemplate
- Composition formats
- Validation on commit
- Next
Uploading an OPT 1.4 template
FerroEHR ingests templates in the OPT 1.4 XML format. Upload one with
Content-Type: application/xml:
curl -u ferroehr:ferroehr -i \
-H 'Content-Type: application/xml' \
--data-binary @vital_signs.opt \
http://localhost:8080/ferroehr/rest/openehr/v1/definition/template/adl1.4
The upload takes OPT XML and nothing else: a request declaring another payload
type (Content-Type: application/json, say) is refused with 415 Unsupported
Media Type before the template is parsed. text/xml works the same as
application/xml, and omitting the header altogether is fine; the endpoint has
only one body format.
A successful upload returns 201 Created with the id in ETag and
Location. Add Prefer: return=identifier when you only need the id back; the
response body is then the JSON identifier object:
{ "template_id": "vital_signs" }
(return=representation returns the stored OPT XML; the default is an empty
body.) Uploading a template whose id already exists returns 409 Conflict;
templates are immutable once loaded. Template ids are compared
case-insensitively (the stored casing is preserved), so uploading a
case-variant of an existing id (Vital_Signs against a stored vital_signs)
is also a 409 Conflict, not a second template.
What “invalid template” means, and which status you get
The upload runs two distinct gates. Both answer 400 Bad Request, the only refusal ITS-REST 1.1.0 declares for the upload besides the 409 duplicate:
- A payload that is not well-formed XML: the server could not read it as XML at all.
- A well-formed document that is not a valid operational template. This
covers both the structural check (foreign or
duplicated top-level elements, a decoded OPT with an empty
template_idorconcept) and the full archetype-model artefact-validity catalogue: reference-model conformance of every constrained type and attribute, occurrence/cardinality consistency, terminology code definedness and language consistency, archetype-identifier well-formedness, and constraint pattern validity (temporal and duration patterns, boolean satisfiability, assumed values inside their own constraints). The response body lists the offending archetype-model rule codes (VCARM,VATID,VCORM,Pattern_validity, …) in the problem’serrors, each with a human-readabledetail; a request withPrefer: return=representationreceives them (Problem types).
The second gate also validates the template’s own meta-data against the RM
resource-package invariants: the template’s language (and every description
detail’s) must be in the openEHR languages code set, is_controlled must
agree with the presence of a revision_history, and a description needs a
non-empty original_author, lifecycle_state, and at least one detail with a
non-empty purpose, with details keyed by distinct languages. Those refusals
carry the RM invariant name (for example
RESOURCE_DESCRIPTION.Lifecycle_state_valid) in errors. ADL 1.4
archetype source uploads enforce the same family; there, an empty
purpose/use/misuse string is reported as a named warning rather than
refused, because the empty string is how real-world 1.4 authoring spells
absence.
A refusal lists everything it found, not the first thing. errors
carries one entry per violation, so a template with an empty use and an empty
misuse reports both, and a code list with several duplicated codes names each
one. Fix the list, upload once. Two things are worth knowing about the shape of
that list:
- A constrained type the reference model does not have, or an attribute its parent type does not declare, makes every rule below it meaningless. Those violations say that the tree under them went unchecked, so a short list is never a claim that nothing else is wrong. Fix them and upload again.
- A template with more than 200 violations reports the first 200 and a final
TRUNCATEDentry saying so.
What an OPT 1.4 export must carry
One requirement of the OPT 1.4 XML format catches exported templates. Inside a
C_DV_ORDINAL, every list entry is a DV_ORDINAL whose symbol is a
DV_CODED_TEXT, and a DV_CODED_TEXT carries a <value> element beside its
defining_code. The element may be empty, <value/>: the rubric a user sees is
resolved from the template’s term_definitions, not from this text. CKM’s
exporter writes the empty element, so its templates load. Archetype Designer
omits it, and such a template is refused with 400, naming the <symbol>
element, its line, and the fix. Add <value/> to each ordinal symbol and upload
again.
Whether the schema should require the element on an ordinal symbol is a question for openEHR, tracked at https://github.com/FerroHEALTH/FerroEHR/issues/3401.
Uploading ADL 2 artefacts
ADL 2 artefacts (archetypes, templates and operational templates) are accepted
as text/plain source on …/definition/template/adl2 and validated by the full
ADL 2 engine: the source is parsed, then checked against the AOM2 validity
catalogue (phase-1 basic integrity, reference-model conformance, and, for a
specialised artefact whose parent is already loaded, specialisation
conformance).
Both failure modes answer 400 Bad Request, the only refusal ITS-REST 1.1.0 declares for the upload besides the 409 duplicate:
- A source that does not parse carries the ADL syntax (
S-prefixed) error codes. - A source that parses but fails validation lists the AOM2 validity
(
V-prefixed) rule codes in itserrors:VARD,VCORM,VCARM,VACSDand friends. - A constraint on
propertyunderDV_QUANTITYfailsVCARM: no RM release defines that attribute, and AOM 2 has noC_DV_QUANTITY. It is the ADL 1.4 archetype-profile attributeC_DV_QUANTITY.property, which some 1.4 to 2 converters copy into ADL 2. The error names the path and points you to the archetype’s ADL 1.4 source: upload that as an archetype source, and its conversion to ADL 2 drops the property. - A description without an author or a lifecycle state fails validation
under the default
developmentprofile, and theerrorsnameRESOURCE_DESCRIPTION.Original_author_validorRESOURCE_DESCRIPTION.Lifecycle_state_valid. BASE 1.3.0 states both; thestableprofile’s BASE 1.2.0 states neither, so it accepts such a source.
Every archetype a template or archetype fills a slot with or references
through use_archetype must already be loaded (AOM2 rule VARXR), so upload
the archetypes before the templates built on them. A template naming one the
CDR does not hold is refused with a 400 whose errors carry one VARXR entry
per missing archetype id.
A reference may name its archetype down to the major version only
(openEHR-EHR-OBSERVATION.bp.v1). With several releases of that archetype
loaded, it resolves to the newest release of that major version (v1.10.0
before v1.9.0, and never v2.0.0), a release before a release candidate. A
reference with a minor or patch version (.v1.2, .v1.2.3) narrows the match
to it, and an alpha or beta version is matched only by its full id. A
reference to a major version no loaded release carries is a missing archetype.
Two major versions of one archetype are two archetypes, so one template may
reference both (.v1 and .v2), each resolving to its own release. A
reference resolves within one namespace: the one it names, or, when it names
none, the namespace of the archetype or template that makes it.
A duplicate artefact id returns 409 Conflict.
A loaded ADL 2 template is retrieved in either of two representations, chosen by
Accept: the stored ADL 2 source (text/plain, the default) or the
operational template as JSON (application/json). Accept: application/xml
has no declared body here and is a 406. A template whose constituent
archetype was deleted after its upload cannot be compiled: its JSON form and
its example answer 422, and with Prefer: return=representation the
errors list one VARXR entry per missing archetype, its detail the
archetype id. Upload the archetype again to restore it. A partial template_id resolves to
the latest matching version, and a separate route addresses a version
explicitly:
# The ADL 2 source, verbatim
curl -u ferroehr:ferroehr -H 'Accept: text/plain' \
http://localhost:8080/ferroehr/rest/openehr/v1/definition/template/adl2/openEHR-EHR-COMPOSITION.t_vitals.v1.0.0
# The operational template as JSON, latest version matching the partial id
curl -u ferroehr:ferroehr -H 'Accept: application/json' \
http://localhost:8080/ferroehr/rest/openehr/v1/definition/template/adl2/openEHR-EHR-COMPOSITION.t_vitals.v1
# Resolved inside one SemVer version (exact, or a `{major}` / `{major}.{minor}` prefix)
curl -u ferroehr:ferroehr -H 'Accept: text/plain' \
http://localhost:8080/ferroehr/rest/openehr/v1/definition/template/adl2/openEHR-EHR-COMPOSITION.t_vitals/1.0
A version on that route that is no SemVer and no {major} or {major}.{minor}
prefix (v1.x, 01) is a 400; a well-formed version that is not stored is
a 404.
Note
The Basic-authenticated examples on this page run against the quickstart, whose user holds
user/template-*.cruds. The template family is scope-governed on every deployment: a caller, Basic or bearer, whose scopes grant notemplate-access answers403. See SMART App Launch.
Listing templates
# List all templates
curl -u ferroehr:ferroehr \
http://localhost:8080/ferroehr/rest/openehr/v1/definition/template/adl1.4
# Filter and page the list
curl -u ferroehr:ferroehr \
'http://localhost:8080/ferroehr/rest/openehr/v1/definition/template/adl1.4?template_id=vital*&offset=0&fetch=20'
# Get the canonical OPT XML for one template
curl -u ferroehr:ferroehr -H 'Accept: application/xml' \
http://localhost:8080/ferroehr/rest/openehr/v1/definition/template/adl1.4/vital_signs
Both list endpoints (ADL 1.4 and ADL 2) accept the same three filters
(template_id, concept, and version, each a glob pattern with * wildcards)
plus offset (rows to skip, default 0) and fetch (maximum rows; absent or 0 =
all). The filters AND together. An offset past the end of the match set is an
empty list, not an error.
Note
When the
versionparameter is absent, the list collapses to the latest version of each template (the highest.vNaxis of itstemplate_id). Passversion=*to list every stored version, or a partial glob (version=*.v1*) to select specific ones.
Deleting a template
Deletes are deliberately not part of the openEHR definition API, and FerroEHR keeps them off the provisioning routes:
- an OPT 1.4 template is removed with
DELETE /ferroehr/rest/extensions/v1/admin/template/{template_id}, behind the admin gate (see Admin & messaging APIs); - an ADL 2 artefact is removed with
DELETE /ferroehr/rest/extensions/v1/definition/artefact/adl2/{artefact_id}.
Both refuse with 409 Conflict while any committed version still references the template, and the message names how many versions still hold the reference. A physical delete can never orphan committed clinical data. The count spans archived content too, so an archived composition’s template cannot be deleted out from under it. Delete the compositions first.
The ADL 2 delete also refuses with 409 Conflict while another stored
artefact still needs the one you delete, and the message names every one of
them. An artefact needs another when it does not compile without it: a
template or archetype that fills a slot with it or references it through
use_archetype, a specialised archetype whose parent it is, and every
artefact built on one of those. So an archetype a stored template uses is not
deleted, and a specialised archetype keeps its parent. Delete the dependents
first; an archetype nothing uses deletes at once. A stored
operational template inlines its archetypes and needs none of them.
Archetype sources (a FerroEHR extension)
Beyond operational templates, FerroEHR can also hold the source archetypes
they were built from, so a deployment can keep its definition material in one
place. ITS-REST defines no archetype routes, so they sit under the extensions
root, /ferroehr/rest/extensions/v1, beside the openEHR API, and every route
below is relative to it:
| Route | What it does |
|---|---|
| `GET | POST /definition/archetype/adl1.4` |
| `GET | DELETE /definition/archetype/adl1.4/{archetype_id}` |
GET /definition/archetype/adl2, …/adl2/count | List the stored ADL 2 archetypes, and count them |
GET /definition/artefact/adl2, …/adl2/count | List and count all stored ADL 2 artefacts (archetypes, templates, OPTs) |
DELETE /definition/artefact/adl2/{artefact_id} | Remove one ADL 2 artefact no other stored artefact needs |
Properties worth knowing before you build on these:
- They are our own design. The openEHR REST API provisions operational templates only: it declares no archetype resource, no count, and no delete. These routes realize the openEHR service model’s archetype operations, which the released wire never surfaced, so they are excluded from openEHR wire conformance.
- The archetype id is the client’s, never assigned. An ADL 1.4 upload reads
it out of the source’s own
archetypeheader, and a re-upload of the same id replaces it (there is no conflict branch: the service operation is replace-or-create). Success is 201 with the id in the body and aLocation. - Ids match case-insensitively, and a malformed id on a read is simply a 404; nothing is stored under it.
- Writes respect the read-only role. A principal carrying the configured read-only role is refused 403 before the store is touched. Uploads that do not parse or fail the phase-1 validity catalogue are 422.
Converting ADL 1.4 to ADL 2 (a FerroEHR extension)
Two read-only routes, also under the extensions root, convert what you stored in ADL 1.4 to ADL 2:
| Route | What it converts |
|---|---|
GET /definition/archetype/adl1.4/{archetype_id}/adl2 | A stored ADL 1.4 archetype |
GET /definition/template/adl1.4/{template_id}/adl2 | A stored ADL 1.4 operational template, one ADL 2 archetype per archetype root it embeds |
curl -s -H "Authorization: Bearer $TOKEN" \
"$FERROEHR/ferroehr/rest/extensions/v1/definition/template/adl1.4/vital_signs.v1/adl2"
The answer is application/json:
roots: one entry per converted archetype. For a template, the top root comes first and the embedded roots follow in document order. Each entry carries:archetype_id;- the ADL 2 source in
adl2; - the conversion
log: the at-codes minted for external terms, the value-set codes and the notes; conversion_details: the record of the conversion, undersource_model(the converted archetype id, or the template id for a template’s roots),tool(the converter’s name and version) andtime, plus everything the conversion dropped or changed, such as a term binding outside the root’s codes or an occurrences cap.
structure: the slot fills that joined the roots in the template. An ADL 1.4 template embeds each archetype, and the converted roots replace the embedded child with a slot, so this list keeps which archetype filled which slot. It is empty for an archetype.
An id nothing is stored under answers 404. A stored source that no
longer converts answers 422, the status an archetype upload answers
for a source it cannot accept. A specialised archetype whose stored parent
lacks a term code the archetype introduces without its specialisation dots
(at0006 where depth 1 needs at0.1) also answers 422: AOM 1.4 requires
the dots on every code a specialisation adds. The routes only read, so the
read-only role may call them.
The description meta-data follows the conversion rules of the AOM 2
specification (Release 2.3 changes): each line of a translation’s
other_contributors detail becomes one entry of that translation’s
other_contributors, and the original language’s copyright becomes the
archetype’s copyright. A translation’s copyright that differs from it stays
with that translation, and an identical one is dropped.
No openEHR specification defines the rest of the conversion. The ADL 2 specification says ADL 1.4 archetypes must be convertible, and the AOM 2 specification sets the meta-data rules above, but no text sets the constraint algorithm or a route for it. Both routes and the rest of the conversion are FerroEHR’s own design, and they are excluded from openEHR wire conformance.
The WebTemplate
The WebTemplate is a JSON description of a template that is far easier for application code to consume than raw OPT XML: it lists every field with its path, type, cardinality, allowed values, and labels, which is exactly what you need to render a form or map data. Request it with the WebTemplate media type:
curl -u ferroehr:ferroehr \
-H 'Accept: application/openehr.wt+json' \
http://localhost:8080/ferroehr/rest/openehr/v1/definition/template/adl1.4/vital_signs
The WebTemplate is part of openEHR’s own Simplified Formats
sub-specification of ITS-REST 1.1.0, and FerroEHR emits its metadata format
version 2.3 as that specification defines it, so tooling written against the
standard model works unchanged.
Accept: application/json on the same URL returns that identical WebTemplate
document (it is the only JSON representation of a template) but labelled
Content-Type: application/json, the type you asked for. Use
Accept: application/xml for the canonical OPT instead.
You can also fetch an example composition for a template (a skeleton
instance you can fill in) from
GET /definition/template/adl1.4/{template_id}/example. The same endpoint exists
for ADL 2 templates at GET /definition/template/adl2/{template_id}/example: the
stored operational template is turned into a WebTemplate and walked into an
example composition. Both serve any of canonical JSON/XML, FLAT, or STRUCTURED
(via Accept) and take the same two query parameters: type
(input/output) and detail_level (required/medium/complete).
The example carries every attribute and node the template makes mandatory, so it passes the server’s own validation. A template whose mandatory content only an archetype slot admits cannot be filled by any example.
A demographic template (one rooted at PERSON, ORGANISATION, GROUP,
AGENT or ROLE) gets an example party of that class instead, in canonical
JSON or XML. An example ROLE carries a placeholder performer, which the
reference model makes mandatory. Every example party carries one identity,
even at required when the template marks its identity optional, because the
reference model admits no party without one; a party template that
constrains no identity at all answers 400 Bad Request. The Simplified Formats map no party class,
so Accept: application/openehr.wt.flat+json or …structured+json on a party
example answers 406 Not Acceptable.
A template whose root is neither a COMPOSITION nor a party class (an
OBSERVATION or a SECTION, for example) has no example: the endpoint answers
400 Bad Request naming the root, because the example the specification
defines is an instance of a versioned-object class such as COMPOSITION,
which such a template does not describe.
Composition formats
When committing or retrieving a composition, the canonical openEHR JSON (or XML) is always available, but two flatter formats are offered for convenience, keyed to a template:
-
FLAT (simSDT):
application/openehr.wt.flat+json. The whole composition as a single flat map ofpath|attribute → value, which is compact and easy to produce from a form. For example:{ "vital_signs/blood_pressure/any_event:0/systolic|magnitude": 120, "vital_signs/blood_pressure/any_event:0/systolic|unit": "mm[Hg]", "vital_signs/blood_pressure/any_event:0/diastolic|magnitude": 80, "vital_signs/blood_pressure/any_event:0/diastolic|unit": "mm[Hg]", "vital_signs/language|code": "en", "vital_signs/language|terminology": "ISO_639-1" } -
STRUCTURED (structSDT):
application/openehr.wt.structured+json. The same data as a nested JSON tree that mirrors the template structure, rather than a flat map.
Send the matching Content-Type when committing, or the matching Accept when
retrieving, and the server converts between the flat/structured form and the
canonical composition. Both are defined by openEHR’s Simplified Formats
sub-specification of ITS-REST 1.1.0. That specification text is the only
authority the server follows here, and there is no vendor-compatibility mode. The
canonical JSON and XML remain the full-fidelity wire format. They work against
both ADL 1.4 and ADL 2 templates: a FLAT or STRUCTURED commit keyed to an
ADL 2-registered template resolves and is validated against that template’s
archetype constraints exactly as an ADL 1.4 commit is.
Note
The FLAT and STRUCTURED formats are always relative to a template: the paths are template paths, and the target template comes from the
openehr-template-idrequest header, without which a commit is a 400. Use them for form-driven capture; use canonical JSON/XML for full-fidelity exchange and archival.
Optional RM attributes (_-prefixed keys)
Beyond the template’s own fields, FLAT and STRUCTURED carry the optional
reference-model attributes as _-prefixed path segments, round-tripping in both
directions. Indexed families take an :n suffix; sub-fields ride the usual
|attribute pipes:
{
"vital_signs/blood_pressure/_uid": "9fcc1c70-…",
"vital_signs/blood_pressure/_link:0|type": "problem",
"vital_signs/blood_pressure/_link:0|target": "ehr://…",
"vital_signs/blood_pressure/any_event:0/systolic/_null_flavour|code": "253",
"vital_signs/blood_pressure/any_event:0/systolic/_normal_range/lower|magnitude": 90,
"vital_signs/blood_pressure/_other_participation:0|function": "witness",
"vital_signs/blood_pressure/_other_participation:0|name": "Dr. Marcus Johnson"
}
Which families apply depends on the node they hang off:
| Host | Families |
|---|---|
| Any locatable node | _uid, _link:n, _feeder_audit |
| Any entry (observation, evaluation, instruction, action, admin entry) | _work_flow_id, _guideline_id, _provider, _other_participation:n |
| An instruction | _expiry_time, _wf_definition |
| An action | _instruction_details, and _reason:n on its state transition |
| An element | _null_flavour, _null_reason |
| A data value | _mapping:n, _normal_range, _other_reference_ranges:n, _accuracy, _language, _encoding, _charset, _thumbnail |
| Any party reference (a provider, a participation, the subject) | _identifier:n |
| The composition’s event context | _health_care_facility, _participation:n |
An ACTION’s _instruction_details carries exactly three suffixes on the field
itself: the instruction’s path within its composition, that composition’s uid,
and the activity id:
{
"encounter/procedure/_instruction_details|path": "/content[openEHR-EHR-INSTRUCTION.request.v1]",
"encounter/procedure/_instruction_details|composition_uid": "4cdc3017-d8c5-4cd3-9900-f3bb7171d006",
"encounter/procedure/_instruction_details|activity_id": "activities[at0001]"
}
An interval event additionally carries |sample_count (the number of samples the
interval summarises) alongside its /width and /math_function fields.
An element that records why a value is missing carries _null_flavour (and
optionally _null_reason) instead of a value (the reference model makes the
two mutually exclusive), and both directions preserve it:
{
"vital_signs/blood_pressure/any_event:0/systolic/_null_flavour|code": "253",
"vital_signs/blood_pressure/any_event:0/systolic/_null_flavour|value": "unknown",
"vital_signs/blood_pressure/any_event:0/systolic/_null_flavour|terminology": "openehr",
"vital_signs/blood_pressure/any_event:0/systolic/_null_reason": "not asked"
}
Who the entry is about: subject
Every entry (observation, evaluation, instruction, action, admin entry) records a subject. It defaults to the owner of the EHR, and while it stays the default it does not appear on the wire at all. When an entry is about someone else (a relative, a donor, a fetus) spell it out with the party suffixes:
{
"family_history/family_history/subject|name": "Susan Doe",
"family_history/family_history/subject|id": "199",
"family_history/family_history/subject|id_scheme": "HOSPITAL-NS",
"family_history/family_history/subject|id_namespace": "HOSPITAL-NS",
"family_history/family_history/subject/relationship|code": "10",
"family_history/family_history/subject/relationship|value": "mother",
"family_history/family_history/subject/relationship|terminology": "openehr"
}
A /relationship sub-path makes the subject a related party; additional
identifiers ride the /_identifier:n family; |_type: "PARTY_SELF" marks a
subject that is the EHR owner yet still carries an external reference.
Context fields: ctx/ shortcut or full path
The composition’s event context is normally set through the ctx/ shortcuts
(ctx/time, ctx/setting, ctx/language, …). The equivalent full paths are
accepted on input too, and take precedence over the shortcut defaults:
…/context/start_time, …/context/setting, the _end_time and _location
forms, and an entry’s …/language and …/encoding. A bare
…/context/setting|code is resolved against the openEHR setting value set,
exactly as ctx/setting is. A full path also feeds the defaults its shortcut
feeds: …/context/start_time sets the default history origin of every
observation and the time of every event that gives none, exactly as ctx/time
does. When you give both spellings, the full path sets the stored field and the
ctx/ key sets the defaults. Output always uses the ctx/ form for these, so a
round trip through FLAT is stable. A path the Simplified Formats specification
does not define is rejected with an error, never silently dropped.
Embedding canonical JSON with |raw
When one node needs full fidelity inside an otherwise-FLAT commit, write the
node’s canonical JSON verbatim under the |raw suffix:
{
"vital_signs/blood_pressure/any_event:0/systolic|raw": {
"_type": "DV_QUANTITY", "magnitude": 120, "unit": "mm[Hg]"
}
}
The embedded object must carry _type (without it, the key is treated as a
normal leaf). Retrieval decomposes a value into regular FLAT keys wherever the
Simplified Formats define them, and returns |raw only for a value they cannot
express: a stored value whose type differs from the template’s, or a
DV_STATE.
DV_STATE has no FLAT form
The Simplified Formats RM mapping chapter has a table for each data value type
it maps, and none for DV_STATE (RM value: DV_CODED_TEXT, is_terminal: Boolean). No specification governs a FLAT or STRUCTURED spelling for it, and
FerroEHR invents none: a write that decomposes a DV_STATE node (|code,
|value, a bare value) is refused with an error that names the node, and
the node is sent and returned as |raw canonical JSON instead:
{
"my_template/my_observation:0/process_state|raw": {
"_type": "DV_STATE",
"value": {
"_type": "DV_CODED_TEXT", "value": "completed",
"defining_code": {
"_type": "CODE_PHRASE",
"terminology_id": {"_type": "TERMINOLOGY_ID", "value": "local"},
"code_string": "at0012"
}
},
"is_terminal": true
}
}
The FLAT and STRUCTURED examples leave a DV_STATE node out, and an element
whose value the template leaves open does not offer DV_STATE among its
alternatives. The gap is reported upstream in #3936.
Coded text and open value sets
A coded field whose template value set is open accepts free text under the
|other suffix. |other may not be combined with |code, |value,
|terminology, or |preferred_term on the same leaf, and is rejected when the
value set is closed.
Duplicate node names
When a template contains sibling nodes with the same name, the generated
WebTemplate/FLAT path ids are disambiguated with underscore suffixes counted from
1 (blood_pressure, blood_pressure_1, blood_pressure_2) as the
specification prescribes. There is no vendor-compatibility mode: the
specification’s numbering is the only numbering, and vendor-only DV_QUANTITY
suffixes such as |unit_system and |unit_display_name are not accepted. If
your tooling was written against another server’s path ids, map them on the
client side.
Validation on commit
Every composition is validated against its template at commit time. This is where the template earns its keep. The server checks:
- structure: required sections and fields are present, and cardinality and occurrence constraints are respected;
- leaf values: data types, units, value ranges, string patterns, decimal precision, and date/time constraints match the template;
- terminology: coded values are members of the value sets the template binds, using the bundled openEHR terminology or a configured external FHIR terminology server (see Terminology servers).
A second pass runs beside it and refuses the same way: the clinical side’s
data-minimisation rules read the subject reference, the party proxies and every
string leaf of the body, and a finding is a 422 naming the RM path and the
rule that matched, never the offending value. That pass is configured
independently of the template, and the shipped default already refuses a
national identifier anywhere in clinical content. See
Privacy & data minimisation.
Date and time patterns
A template can constrain which parts of a date, time or date-time value must be
present. The pattern takes the form yyyy-mm-ddTHH:MM:SS, and each part is
written one of three ways:
| In the pattern | Meaning |
|---|---|
a letter field (yyyy, mm, dd, HH, MM, SS) | the part is required |
?? | the part is optional |
XX | the part is not allowed |
So yyyy-mm-ddTXX:XX:XX accepts 2022-02-03 and refuses
2022-02-03T04:05:06, and HH:MM:?? accepts both 10:30 and 10:30:15.
A refusal names the parts in words and repeats the pattern with this key:
temporal value '2022-02-03T04:05:06' does not satisfy the pattern
'yyyy-mm-ddTXX:XX:XX': the template allows a date only; a time is not allowed
here. Pattern key: a letter field (yyyy, mm, dd, HH, MM, SS) is required, ?? is
optional, XX is not allowed.
If a composition is well-formed but breaks its template, the commit fails with
422 Unprocessable Entity, a validation-failed problem whose errors, sent
when the request carries Prefer: return=representation, hold one
{"path": …, "detail": …} per offending node, so a client can show the user
exactly what to fix. A syntactically malformed request instead gets 400 Bad Request.
The error shapes are described in
Content negotiation & errors.
A version committed as 553|incomplete| relaxes what must be present while
still checking everything that is; see the lifecycle notes in
Resource walkthroughs.
Demographic parties
A party is validated against a template only when the shared party mapping names that template. SCIM provisioning, just-in-time creation and the login binding write their parties through this mapping, and it names three kinds of definition:
- the templates a professional’s
PERSONmay use; - the template of a provisioned
GROUP; - the archetype of a group membership
PARTY_RELATIONSHIP.
Each one is resolved in the definition store, so it is an OPT 1.4 template you
uploaded, or an ADL 2 template or archetype, which the store compiles to its
OPT2. A PERSON or GROUP is validated when its
archetype_details.template_id names a mapped template, and a
PARTY_RELATIONSHIP when its archetype_details.archetype_id is the mapped
membership archetype. This holds on every demographic write: the party and
relationship routes, and a demographic CONTRIBUTION.
Every other party keeps the reference-model checks alone. A party you create through the Demographic API under any other template, or under none, is accepted exactly as before, and its template id is never looked up.
A validated party is judged the way a composition is, under the version’s lifecycle state (RM common, Change Control, Incomplete Content):
| The body | 532|complete| | 553|incomplete| |
|---|---|---|
| meets every template constraint | committed | committed |
| misses a mandatory node, slot filler or list member | 422 naming each missing path | committed |
| breaks any other constraint (a type, a value, an upper limit) | 422 naming the path | 422 naming the path |
| is a different class from the template’s root | 422 at / | 422 at / |
To complete an incomplete party, commit a new version as 532|complete| with
the missing nodes filled in. A logical delete carries no data, so it is never
template-checked. A demographic write answers one 422 whose detail lists
each path: message pair, separated by ; .
Next
- Using the API → Resource walkthroughs — the full composition create/update/delete lifecycle.
- Querying with AQL — reading the data back out by path.
Beyond the core
The core of FerroEHR is the openEHR platform: EHRs, compositions, contributions, templates, versioning, and AQL. Around that core the server carries capabilities for fitting into the systems around it: moving whole records between systems, storing the people those records refer to, validating codes against an external terminology server, telling downstream systems that something changed, and keeping large attachments out of the database.
This chapter set describes each one the way you meet it: what it does, whether you have to turn it on, and how to consume it.
Note
FHIR R4 resource mapping is not part of FerroEHR. It is FerroBRIDGE (BUSL-1.1), a separate server that maps between FHIR and openEHR with FHIRconnect mappings and reaches FerroEHR over the ITS-REST API. On Kubernetes the FerroEHR chart deploys it beside the CDR with
bridge.enabled=true(FerroBRIDGE). FerroEHR keeps two uses of FHIR: the access log rendered as FHIRAuditEventwith the ITI-81 retrieval (Audit), and the client for external FHIR terminology servers (Terminology servers).
What is on already, and what you switch on
Two different things are collected here, and they behave differently:
- Always mounted, part of the API surface. The demographic API and the
/messagegroup (EHR Extract export and import) are ordinary routes. They have no feature switch: they are served on every deployment and gated only by the same authentication and authorization as the clinical API (Security). The bundled openEHR terminology is likewise always present in-process, with no configuration and no external dependency. - Off until you configure them. Everything that reaches outside the server is opt-in: external terminology servers, change events, and multimedia offload to object storage. A bare server contacts none of them, and its clinical behaviour is that of a single-tenant, integration-free openEHR CDR until you enable one.
Important
Some of these carry PHI, and each chapter says which. The one that moves clinical content off this system is multimedia offload (the blob bytes land in your bucket). Change-event envelopes carry identifiers and metadata only. Treat enabling offload as a deliberate, auditable decision about where clinical data is allowed to go.
Every configuration key these chapters name lives in the configuration reference; the integration sections are on Integrations and Audit.
Build features, and what a slim build refuses
Two of these capabilities are also cargo features of the server build
(fhir and multimedia), both on in the published binaries and
container images, and on in any default build. Their code lives in a separate
crate the platform pulls in only when the matching feature is on, so a
--no-default-features build contains none of it.
A slim build does not start up quietly missing a capability: it refuses at
boot when the configuration asks for one it was built without. The fhir
feature covers the two uses of FHIR the server keeps: the external FHIR
terminology providers, and the FHIR AuditEvent the audit store, the audit
feed and the ITI-81 retrieval carry. See
From source → Build features
for the exact list of settings a slim binary rejects.
Note
One gap worth knowing if you build slim:
api.terminologyis a route switch, and in a slim build those routes are simply not compiled in, so the setting has no effect rather than failing loudly. The boot refusals cover the settings that would otherwise lose or fail to deliver data.
The capability set
- EHR Extract & messaging: export a whole EHR, clone it into another system with its distributed version identity intact, and import an extract into an existing record.
- Demographics: a versioned party store (persons, organisations, groups, agents, roles) with relationships, over a REST surface that mirrors the EHR APIs.
- Terminology servers: the bundled openEHR terminology for local codes, plus any number of external FHIR terminology servers for validating coded values against external value sets; FerroTERM ships with the quickstart as the terminology overlay and runs beside the sandbox CDR.
- Change events (outbox feed): a transactional outbox that records a PHI-free event for every commit and serves it, in order and at least once, to the readers you name, so downstream systems can respond to changes instead of polling. FerroBRIDGE 0.0.15 and later deliver the events on to an AMQP broker.
- S3 multimedia: threshold-based, content-addressed
offload of large
DV_MULTIMEDIAblobs to any S3-compatible object store, with integrity verification on the way back in.
Security, instance separation and the audit trail are covered in Security; running the server in production, including the health and observability surfaces these integrations feed, is covered in Operations.
EHR Extract & messaging
Moving a patient’s record between openEHR systems (migrating to another CDR, replicating an EHR to a downstream repository, or importing an externally produced document) is what openEHR’s EHR Extract and messaging services are for. FerroEHR implements whole-EHR export, import into a new or an existing EHR (including cross-system cloning that preserves version identity).
Note
The openEHR service model defines a Message component, but the released REST API publishes no extract or message endpoint at all. FerroEHR therefore serves these operations under a
/messagegroup of its own design, beside the openEHR API at/ferroehr/rest/extensions/v1/message; the routes are ours, not the standard’s, and they gate no openEHR conformance claim. Unlike the admin extensions, they are not admin-gated: they carry the same ordinary authentication as the clinical API. The four routes, with their bodies, parameters, and status codes, are in Admin & messaging APIs.
Exporting an EHR
An export produces an openEHR EXTRACT: a self-contained package of an EHR’s versioned objects. There are two ways to ask for one.
Whole-EHR export takes every versioned object in one EHR at its latest version and assembles them into a single extract. This is the simplest way to snapshot or hand off a complete record, and it needs nothing but the EHR’s identifier.
Export by specification takes an EXTRACT_SPEC: a manifest naming which
entities to include (each by EHR id or by subject id, optionally narrowed to
specific version containers) plus the extract type. It produces one extract
per manifest entity, in manifest order. Use it for selective or
policy-controlled export.
Tip
The manifest must name at least one entity:
EXTRACT_MANIFEST.entitiesis mandatory and non-empty in the Reference Model, so an empty manifest does not even decode: the request is refused as malformed rather than answered with an empty result. If you want “everything”, that is whole-EHR export, not an empty spec.
Not every selector the Reference Model allows is supported: search criteria and some commit-time intervals are refused explicitly rather than silently ignored, so an export never quietly returns a different set than you asked for.
Importing and cloning across systems
Import is the inverse, and it is where openEHR’s distributed version identity matters. When a record produced on one system is imported into another, the imported versions keep their original identity while being recorded as having arrived from elsewhere.
Cloning a whole EHR takes an extract and materializes it into a new EHR. There are exactly two outcomes, and you choose between them with one optional parameter:
- Supply a target EHR id and the clone lands under that identifier; the “same patient, other EHR service” case.
- Supply nothing and the source EHR id the extract carries is re-used, which makes it a true clone. The server does not invent a fresh identifier; if the extract names no source id and you named no target, the request is refused.
Either way, the response names the EHR that was created, so a caller that
supplied no id still learns what it got. An EHR that already exists under the
target id is a conflict, not a merge, and so is an imported EHR_STATUS naming
a subject some other EHR already holds.
Each original version in the extract is committed wrapped in an
IMPORTED_VERSION, so the record shows both the original authorship and the
fact of import: version identity is preserved, not regenerated.
Importing into an existing EHR merges an extract’s versions into an EHR that is already there, following the openEHR change-control copying rules. The extract’s content items become new versions of that EHR’s versioned objects.
Together these are the mechanism behind cross-system migration: export from the source, import into the destination, and the destination’s history faithfully reflects where each version came from.
An import takes the data-minimisation pass too. Extract import stores what
it receives, so it cannot rewrite a body; instead it refuses one whose content
carries a national identifier, a subject reference that is not a declared
pseudonym, or an identified party the deployment does not permit, with the same
422 and the same RM path the ordinary commit path reports. The rules are on
Privacy & data minimisation, and they
apply to the admin archive load for the same reason.
Protected national identifiers do not travel in an extract
With national-identifier protection on, a party’s versioned body carries a reference where each protected identifier stood, and the value lives in a sealed row under that deployment’s own root key. An extract carries the versions and never the sealed rows, so the identifier cannot cross from one FerroEHR to another in an extract:
- A party with a plaintext protected value is refused. An imported version
is a faithful copy that is never modified (RM common
master06§Copying), so the receiving deployment cannot seal it on the way in. - A party with another deployment’s sealed reference is refused. The row it
names is not held here, so it could never be read back, and the refusal
(
422) says so.
This is a decided refusal, not a gap waiting for a key exchange. Re-wrapping the sealed rows for the receiving deployment would hand one organisation’s key material, or a wrapped copy of every value, to another, and no openEHR specification defines such an exchange. Move a record this way instead:
- Export the EHR and import the extract without the party. The clinical side holds pseudonyms and never a national identifier, so the clinical content moves unchanged.
- Register the person in the receiving deployment through its own party API
(
POST {base}/demographic/person), with the identifier the receiving organisation holds for the person. The receiving deployment seals it under its own key. - Link the party to the EHR in the receiving deployment.
Between two deployments of one organisation that share the root key, the admin dump and load carries the sealed rows as ciphertext and restores them.
When ATNA auditing is enabled (it is on by default, see
Security) each completed
export and import emits a security-audit event under the ATNA Extract object
class, so records moving between systems are captured in the audit trail with
their direction.
Divergent copies and version branches
openEHR’s version tree branches when a version created on another system is
modified locally, and FerroEHR implements that: the local write forks a branch at
the imported version’s fork point, and the new version id carries a three-part
tree id (…::2.1.1) rather than a plain trunk number.
Branch versions are served at the same URLs as trunk ones and appear in the
revision history and in ALL_VERSIONS queries; the latest version of an object
is always the latest trunk version. See
Content negotiation & errors for how
version ids read on the wire. So importing a copy of a record that has diverged
on two systems is supported, and the divergence stays visible in the version tree
instead of being flattened away.
FerroEHR as a federation node
FerroFED is the FerroHEALTH federation gateway: a client sends one AQL query to it, and it dispatches the query to the openEHR CDRs it federates. FerroEHR is one of those CDRs, a node. This page is the node contract: what a FerroEHR node exposes, what it requires, and what it refuses. The gateway’s own behaviour is FerroFED’s and is documented there.
The ground is the openEHR Federation Tier with AQL specification, release 1.0.0, approved by the openEHR SEC on 2026-10-12 (https://github.com/syntaric/openehr-federation-spec). Its requirements are numbered N1 to N44. Most of them bind the gateway. The rows below are the ones a node answers.
FerroFED 0.0.13 runs FerroEHR 5.4.1 as its node in its end-to-end harness and its quickstart.
Endpoints
A node exposes the openEHR REST API (ITS-REST 1.1.0) under its own base URL
([server] base_path; N28). The gateway uses:
| Use | Endpoint |
|---|---|
| The dispatched query, scoped to the resolved EHR (N7, N33) | POST {base}/query/aql with ehr_id, or a WHERE e/ehr_id/value = … predicate (N29) |
| A follow-up read by version uid (N22) | GET {base}/ehr/{ehr_id}/composition/{uid} and the other resource reads |
| A routed write (N23) | the ITS-REST commit operations; ETag and Location come back for the gateway to pass through (N31) |
The node’s system_id and release | OPTIONS {base}/ and GET {base}/ (ITS-REST system information) |
| Moving a record between nodes | GET /ferroehr/rest/extensions/v1/message/export/{ehr_id} and POST /ferroehr/rest/extensions/v1/message/import?ehr_id=… (EHR Extract & messaging) |
The node answers an ITS-REST RESULT_SET (N17). It runs WHERE, ORDER BY,
LIMIT and OFFSET locally; merging pages across nodes is the gateway’s work
(N9, N39).
Identity
The node is invoked on its local ehr_id alone (N33, N34). It never needs
the patient’s identifier in the query: the gateway resolves the patient to
{node, local ehr_id} pairs outside AQL, through IHE PIXm or a record locator
(FerroPIX). The node’s own cross-reference is the IHE identity source asked
over PIXm, or the EHR_STATUS subject of the node’s own EHRs
(Demographics).
A node does not have to store a directly identifying identifier in
EHR_STATUS.subject (N5). With [privacy] subject_namespaces it keeps only a
pseudonym, and the identifier scanner refuses a national identifier where it
is configured (Privacy & data minimisation).
Every version keeps its identity across nodes (N21, N22, N36). An
OBJECT_VERSION_ID is object_id::creating_system_id::version_tree_id (RM
common master06 §Version Identification). An EHR exported from one node and
imported on another keeps every version uid and its creating_system_id byte
for byte; the receiving node records the import as its own act beside the
copied original (RM common master06 §The Copy Operation). The integration test
federation_node in app/ferroehr/tests/it/ moves an EHR between two nodes
and compares every version uid.
Admission (N42a)
A federation admits a node on four identifier conditions. For three of them, the operator configures a FerroEHR node as follows:
- A federation-wide unique
system_id. The default,ferroehr.local, is the same on every node that leaves it unset. Set[server] system_idto a name no other member uses before the node commits its first version: thesystem_idis stamped into every version uid and never changes (Server settings). - No adoption of a foreign
ehr_idon import.POST /message/importwithoutehr_idre-uses the source EHR’s id (RM common master06 §Copying, Case 1). A federation member imports with?ehr_id=set to an id it chose. - No reuse of an
ehr_id. A node never issues an id twice; creating an EHR under an id it holds is refused (409 Conflict, ITS-REST EHR APIPUT /ehr/{ehr_id}). ehr_idgeneration. FerroEHR mints everyehr_idas a UUIDv7 (RFC 9562 §5.7).
Authentication
There is no central FerroHEALTH authorization service. Each node validates the bearer tokens of the deployment’s own authorization server itself, as a SMART App Launch resource server (SMART App Launch), and records the caller in its access log (N24, N25). The gateway propagates the client’s identity; the node decides on it.
Callers of another organisation
A professional or an organisation of another party reaches the node with a
token of a federation issuer, never with a login bound to a local
PERSON. The node records them by their verified asserted identity, and
their rights come from an agreement, never from a role
(Who the caller is).
- The issuer and its bounds. An
[[auth.issuer]]of kindfederationwith an[[auth.federation]]table: how its claims map to the professional’s or the organisation’s fields, and the countries, issuing authorities and provider identifier prefixes a token must stay within. A token outside them is refused with401. - One agreement per partner and accessor. Each
federation agreement is
a grant on the partner’s party in the CDR, written through the Demographic
API by an administrator and judged at its commit. It names its read scopes
(
patient/scopes only), the templates it writes, its discard window, its accessor (federated_person_accessorfederated_organisation_access), the access class of an organisation, its legal ground, a consent condition kept apart from the legal ground, its caller rate (required on every agreement) and its opt-out override. - The opt-out holds for every outside caller. Every verified external
person and organisation is an access-service caller by its kind (EHDS
Art. 10(1)), so an opted-out EHR answers as an unknown one. Only a person
agreement with
opt_out_override, under an emergency purpose, reaches one. - Wabvpz Art. 15f bars insurers and occupational and insurance
physicians from an exchange system: under an NL agreement a bedrijfsarts
or verzekeringsarts, and an organisation that is not a care provider, are
refused with
403. - Wabvpz Art. 15a consent. Every NL federation read needs the consent
decision reference, from Mitz or from the data holder’s own registration
(
consent = "mitz"or"local"), carried in the token. - An organisation record. An
organisationrecord alone does not satisfy EHDS Annex II 3.2(b) where a person views the data;chainedmeets it only together with the requester’s log, which the agreement obliges the requester to keep forchained_log_retention. - The MyHealth@EU route through a national contact point is the contact-point route; the gateway side is FerroHEALTH/FerroFED#1620.
What the node refuses
Access decisions are the node’s (N26, N27). Whatever the gateway pre-filtered, the node applies its own controls before it releases data:
- role and attribute rules, and the per-EHR
EHR_ACCESSdecision; - the restriction of access by health professionals (EHDS Art. 8);
- a restriction of processing
(GDPR Art. 18): a restricted object leaves every query result and export,
and a point read of it answers
403; - a research objection (GDPR Art. 21(6)): the EHR leaves every population query and export.
A refusal is the node’s answer, which the gateway reports for that node. The run that sets a restriction at a node and shows a federated query never returns the restricted object belongs in FerroFED’s harness (FerroHEALTH/FerroFED#1389).
What this page does not claim
FerroEHR implements no gateway: no patient discovery (IHE XCPD), no
cross-node merge, no registry of nodes. Those are FerroFED’s and FerroPIX’s.
The node answers ehr_get_by_subject only for an identifier its own
cross-reference already holds.
Demographics
Alongside clinical records, a CDR often needs to store the people and organisations those records refer to: patients, clinicians, care teams, institutions. FerroEHR provides a versioned demographic store for the openEHR party types and the relationships between them, over a REST surface that mirrors the EHR APIs.
The demographic endpoints are always mounted (there is no feature switch) and are subject to the same authentication and authorization as the rest of the API. See Security.
Note
The party wire API is defined by the openEHR REST specification’s Demographic API, which carries DEVELOPMENT lifecycle status inside the released specification. Party relationships are the one part with no specification at all: those routes are a FerroEHR extension realizing the service model’s relationship interface, and no conformance claim covers them.
- What is stored
- Where a party is stored
- Party endpoints
- Relationships
- What a submitted party must satisfy
- The specification generation a body is read against
What is stored
The store holds the five openEHR party types (PERSON, ORGANISATION,
GROUP, AGENT, and ROLE) and PARTY_RELATIONSHIP between them.
Every party is a fully versioned object with no owning EHR: updates create new
versions, history is retained, and you can read a party as of a point in time or
by a specific version, exactly as for compositions and EHR_STATUS. The
ETag / Location / Prefer / If-Match conventions are the same ones the EHR
group uses (see Using the API) and writes are
wrapped in contributions the same way clinical writes are.
Deletion is logical, as it is for clinical content: a delete commits a new version in the deleted state rather than erasing history. A deleted party then reads as absent, and deleting one twice is refused.
Where a party is stored
Parties do not live in the clinical schema. They live in a party schema of
their own, with its own archival partitions and its own database roles, and the
database refuses the mix in both directions: a version with no owning EHR cannot
enter the clinical schema, and one that has an owner cannot enter party. Point [database.party] url at a role of its own
and the schema separation becomes a credential separation as well. See
Operations → Database roles and least
privilege for the roles
and the pseudonymisation boundary
for what the split is for.
The demographic side is where a person’s national identifier legitimately
lives, and [privacy.identifier_protection] decides how it is held there:
with it on, the value leaves the versioned body for an encrypted column and
the body keeps a reference, while a keyed digest beside the ciphertext still
answers “which party holds this identifier”. The wire shape of every route
below is unchanged either way. See
Privacy & data minimisation.
Party endpoints
All paths are relative to the API base path (/ferroehr/rest/openehr/v1), and
{kind} is one of agent, group, organisation, person, or role.
| Method | Path | Purpose |
|---|---|---|
POST | /demographic/{kind} | create a party |
GET | /demographic/{kind}/{uid_based_id} | read a party |
PUT | /demographic/{kind}/{uid_based_id} | update a party |
DELETE | /demographic/{kind}/{uid_based_id} | logically delete a party |
GET | /demographic/versioned_party/{versioned_object_uid} | the versioned container |
GET | /demographic/versioned_party/{versioned_object_uid}/revision_history | revision history |
GET | /demographic/versioned_party/{versioned_object_uid}/version | version at a time (query parameter) |
GET | /demographic/versioned_party/{versioned_object_uid}/version/{version_uid} | a specific version |
Party changes can also be committed and read as contributions
(POST /demographic/contribution,
GET /demographic/contribution/{contribution_uid}), and parties support item
tags (GET /demographic/tags, plus
/demographic/{kind}/{uid_based_id}/tags and
DELETE …/tags/{key} per party).
A demographic contribution follows the payload rules of the EHR one (see
Resources → CONTRIBUTION) and is
refused the same way. A contribution without an audit, an audit without
change_type or committer, an audit sent as an attestation, a plain-string
description, and a version without a DV_CODED_TEXT lifecycle_state are
each a 400. A version whose object
is not a party or a PARTY_RELATIONSHIP, a lifecycle state outside the openEHR
version lifecycle state group, and content that fails validation are each a
422. The body is canonical JSON only: an XML or simplified-format
Content-Type is a 415.
Relationships
Party relationships are managed through a parallel set of routes (the FerroEHR
extension the note above describes) with the same versioned shape as parties.
ITS-REST defines no relationship routes, so they sit under the extensions root,
/ferroehr/rest/extensions/v1, beside the openEHR API, and every path below is
relative to it:
| Method | Path | Purpose |
|---|---|---|
POST | /demographic/party_relationship | create a relationship |
GET/PUT/DELETE | /demographic/party_relationship/{uid_based_id} | read / update / delete |
GET | /demographic/versioned_party_relationship/{versioned_object_uid} | the versioned container |
GET | /demographic/versioned_party_relationship/{versioned_object_uid}/revision_history | revision history |
GET | /demographic/versioned_party_relationship/{versioned_object_uid}/version[/{version_uid}] | version at a time / by id |
A PARTY_RELATIONSHIP is a versioned object in its own right, not a party, so
it has its own versioned-container routes rather than appearing under
/demographic/versioned_party.
What a submitted party must satisfy
A party body is validated against the Reference Model before anything is
committed: identities, contacts, and relationship references have to be
well-formed, a ROLE’s capabilities and performer have to be present where the
model requires them, and a party reference has to name a legal type and
namespace. A body that fails these is refused as unprocessable, with the
offending path named.
A relationship a party carries in its own relationships list is stored
under its source, so its source must name that party’s version container
(the Reference Model’s PARTY.Relationships_validity). This holds on every
write: POST and PUT on the party routes and each version of a demographic
CONTRIBUTION. The server assigns a new party’s container id when it commits
the party, and ignores a uid you put in the body of a create, so a create
that carries a relationship is refused 422: create the party first, then
add the relationship with a PUT. On a PUT, and on a CONTRIBUTION version
that modifies a party, a body uid that names another container than the one
you write to is refused 422 as well.
The references between parties name a party’s version container, never one of
its versions, so a reference whose id is an OBJECT_VERSION_ID
(<uuid>::<system>::<version>) is refused 422: a relationship’s source
and target, inline or in a relationship container, a ROLE’s performer
and each of an actor’s roles. A reference also has to name the right kind of
party. A performer names an actor (PERSON, ORGANISATION, GROUP or
AGENT) and a roles entry names a ROLE, and both, with the two ends of a
relationship container, must name a party this server holds when the write
commits; a party the same CONTRIBUTION creates counts. A logically deleted
party still counts. A refusal names the attribute’s documentation and the path.
Two limits are worth knowing because they are deliberate rather than accidental:
- There is no demographic archetype or template store, so a party is checked against the Reference Model but not against an archetype. The service model’s “definitions valid” precondition therefore does not apply here.
PARTY.reverse_relationshipsis derived, never stored from a client’s copy: it is the inverse of therelationshipsother parties carry. The next section says when a read serves it.
The specification generation a body is read against
The server runs one openEHR specification generation set at a time, chosen by the
deployment.spec_profile setting (development by default, stable for the released
generations; see the
configuration reference). For demographics
this shows up at the door, because the two generations disagree about one
attribute:
- Under
stable, a JSON party body may carryPARTY.reverse_relationships: the released generation defines it, so refusing a valid instance of the generation the server advertises would invent a prohibition. The value is accepted and then dropped, because the server derives that attribute itself. A party read lists, inreverse_relationships, oneLOCATABLE_REFper relationship another party carries with this party as its target: the reference names that party’s version container and the relationship’s path in its data. The path names that one relationship: by itsuidwhen no sibling shares it (/relationships[<node> and uid='…']), else by its archetype node id and name when no sibling shares both, else by its position (/relationships[2]), the three unique forms of BASE §Data Paths and Uniqueness. A relationship container whosetargetis this party is listed too, as a reference to the container itself, with no path. Canonical JSON and XML both carry it, and so do aVERSIONread’sdataand the representation a create or update returns. - Under
development, the attribute is not part of the model and a body carrying it is refused as an undeclared field, like any other unknown key. RM 1.2.0 keepsreverse_relationships()as a function, and FerroEHR evaluates it on its own route, in either profile:GET /ferroehr/rest/extensions/v1/demographic/party/{uid_based_id}/reverse_relationshipsanswers a JSON array of the sameLOCATABLE_REFs,[]when no relationship targets the party. It takesversion_at_timelike a party read.
Which relationships a read lists depends on what it addresses. A read by the
party’s container id lists them as they stand now. A read of one version, by
its OBJECT_VERSION_ID, at a version_at_time, or through the
versioned_party routes, lists them as they stood when that version was
committed, so a version reads the same every time you fetch it. The
specification leaves this open; it is FerroEHR’s own choice.
XML bodies need no such split: undeclared elements are skipped in either profile.
This is an acceptance boundary, not a conversion: nothing is silently translated between generations. If you feed a mixed estate, pick the profile that matches what your clients actually send.
Terminology servers
openEHR records carry coded values: a diagnosis, a route of administration, a laboratory unit. Some codes come from openEHR’s own terminology; others must be checked against an external code system such as SNOMED CT or LOINC. FerroEHR serves the bundled openEHR terminology in-process, and asks one FHIR terminology server, FerroTERM, about every other code system.
- The bundled openEHR terminology
- The terminology server
- FerroTERM beside the CDR
- Running one locally (development and CI)
- On Kubernetes
- Terminology in AQL
The bundled openEHR terminology
The server ships the openEHR terminology bundle (Terminology 3.1.0) and uses it by default, with no configuration and no external dependency. It answers the questions the platform needs while validating and querying: which terminologies exist, whether a code belongs to one, what a term’s rubric is, whether one code subsumes another, and whether a code is a member of a value set.
Enumeration is always the bundle’s job. A lookup or a membership test goes to the bundle when the bundle knows that terminology, and only otherwise to the terminology server.
Exposing the lookups over REST
You can also expose these lookups over a small read-only REST surface. It is a
FerroEHR extension (no openEHR REST contract defines a terminology API) and it
is off by default; while disabled, every route answers 404 as if it were
not mounted. Turn it on with FERROEHR__API__TERMINOLOGY=true and it
serves:
| Method | Path | Purpose |
|---|---|---|
GET | /terminology | list terminologies |
GET | /terminology/{terminology_id} | describe one terminology |
GET | /terminology/{terminology_id}/term/{code} | look up a term |
GET | /terminology/{terminology_id}/subsumes?ref_code=&candidate= | subsumption test |
GET | /terminology/{terminology_id}/value_set/{value_set_id} | get a value set |
GET | /terminology/{terminology_id}/value_set/{value_set_id}/validate?candidate_code=&at_date= | test membership |
All paths are relative to the extensions root, /ferroehr/rest/extensions/v1,
where FerroEHR serves its own extensions beside the openEHR API. An
unknown terminology or value set is a 404; a missing required query parameter
is a 400.
The terminology server
Note
The CDR is only ever a client of the terminology server. FerroEHR does not implement one: you run a FHIR terminology server and point the CDR at it by URL. The one that ships with the product is FerroTERM, started by the quickstart’s terminology overlay; any other server speaking the FHIR terminology operations (Ontoserver, Snowstorm, HAPI FHIR) works the same way.
The terminology server is off by default, and while it is off nothing is
requested: validation uses the in-process bundle alone. The keys live under
[terminology] and its [terminology.endpoint] table; the full table, including the timeout and OAuth2, is on
Integrations. The minimum
is the switch and the server’s FHIR R4B base URL:
[terminology.endpoint]
url = "http://ferroterm:8080/r4b"
Enabling the server with no URL is a boot error, not a silent fall back to the bundle. So is an incomplete OAuth2 grant: a control you configured either works or the server refuses to start.
One server answers every terminology the bundle does not carry. openEHR puts the
resolver of an archetype constraint binding in a “terminology query server”
outside the CDR, and FerroTERM serves SNOMED CT, LOINC, ICD and any FHIR
CodeSystem or ValueSet from one process, so the CDR holds one client to one
server.
What it changes at commit time
The mechanism is openEHR’s own archetype constraint binding. Where a template
binds an archetype constraint code (an ac code) to a query against an
external terminology, the specification puts the resolver outside the CDR: the
archetype holds an identifier for a query, and the query itself is defined in the
terminology server.
With the terminology server enabled, committing a composition resolves those bindings for every bound coded value the instance actually carries:
- The code is in the value set → the commit proceeds.
- The code is not in the value set →
422, naming the path, the code, and the bound query. That is a real constraint violation, soon_errordoes not change it. - The value set could not be resolved →
on_errordecides, see below.
Only bound external queries leave the process. openEHR and the bundle’s own local terminologies are still answered in-process.
Warning
The composition’s
terminology_idtravels verbatim as the FHIRsystemparameter, and no openEHR specification defines a mapping betweenterminology_idvalues (SNOMED-CT) and FHIR system URIs (http://snomed.info/sct). If your archetypes and your terminology server disagree on that spelling, align them in the terminology-server configuration. The CDR does not rewrite the value.
What it changes when an ADL 2 archetype is uploaded
An ADL 2 archetype’s term_bindings are checked too (AOM2 validity rule
VETDF). A binding target is a URI in the IHTSDO model, …/id/<code>, and the
CDR takes it apart before asking: http://snomed.info/id/50121007 (or the
snomedct.info host the ADL 2 specification’s own examples use) is asked as
system=http://snomed.info/sct, code=50121007, per the SNOMED CT URI Standard;
http://loinc.org/id/LA6742-6 as system=http://loinc.org; any other …/id/…
URI as the URI before /id/. The outer binding key (SNOMED-CT, Snomed,
LOINC, however the author spelled it) is not sent. The server’s
answer then decides:
- the code exists → accepted;
- the code system is served and the code is not in it →
422, naming the rule, the binding and the code; - the code system is not served by the terminology server (or the server cannot say) → accepted with a warning in the log. AOM2 puts it this way: codes for inaccessible terminologies “should be flagged with a warning indicating that no verification was possible”, so a CDR wired at a server that carries only LOINC still stores archetypes with SNOMED CT bindings.
The same rule holds with no terminology server configured at all: nothing is asked and nothing is refused.
Which FHIR operation is used
Membership is tested with ValueSet/$validate-code, one direct yes/no with the
least payload; $expand serves a value set’s contents, $subsumes a
subsumption test and $lookup a term. Every call is a round trip to the
server, which keeps no answer the CDR would have to invalidate.
The CDR speaks to the server through
ferrobridge-term, FerroBRIDGE’s
FHIR terminology client, over the FHIR R4B operation definitions. Each
operation is a POST of a Parameters resource to the operation’s path under
the configured base URL, so a code never travels in a URL. The at_date of a
term lookup or a membership test is sent as the operation’s date input. Each
call is made once, without a retry, so [terminology] timeout bounds the whole
call on the commit path.
A response that does not fit the operation’s R4B definition is treated as an
upstream fault rather than partially read, and takes the same path as an
unreachable server: a $lookup answer without its name or display, an
$expand answer without an expansion, a $subsumes outcome outside its four
codes, or a body of another resource type. The server’s refusals are read
through the tx-issue-type coding of their OperationOutcome: not-found
means the server does not serve the code system or value set, invalid-code
that the code is not in it, and a 404 or 410 without either coding that the
thing asked about is unknown.
Authenticating to the server
A server behind an authorization server takes an OAuth2 client-credentials
grant under [terminology.endpoint.credentials.oauth]; the token is cached and renewed shortly
before it expires. The client secret should come from a mounted file rather than
an inline value, client_secret_file. The keys are on
Integrations.
There is no option to disable certificate verification. Server-certificate and hostname verification are always on against the platform’s trust store.
When the terminology server cannot answer
on_error decides what happens when a bound value set cannot be resolved at
all, whether the server is unreachable, answers an error, or does not know the
value set:
false(the default, fail-open): the composition is accepted and a warning is logged. The availability of an external service does not block clinical writes.true(fail-closed): the composition is rejected with a validation error naming the unresolved binding.
A code that is resolved and turns out not to be a member is a different matter: that is a constraint violation and is rejected under either setting.
Pick deliberately. Fail-closed means commits stop while your terminology server is down; fail-open means they are accepted unvalidated. There is no third option that gives you both.
FerroTERM beside the CDR
FerroTERM is the terminology server
FerroEHR ships with: the docker-compose.terminology.yml overlay of the
quickstart starts it beside the CDR and points [terminology] at
http://ferroterm:8080/r4b, the compose page
has the commands. The hosted sandbox at https://sandbox.ferroehr.eu runs the
same pair on one machine, so the coded-text binding you see resolving there is a
real round trip to a real terminology server.
What the sandbox shows, and how it is arranged:
- The server is not on the public surface. FerroTERM answers on the
sandbox’s private compose network alone; there is no route to it at
sandbox.ferroehr.eu, its own browser UI is off, and the CDR is its only caller. You exercise it through the CDR: commit a composition against thecnf.tpl.dv_coded_text_binding_scttemplate with a code inside its bound value set and it is accepted, with a code outside it and the answer is422; the/terminology/*routes look codes up; AQLTERMINOLOGY()expands a value set into aMATCHESoperand. - Fail-open, the shipped default: a binding the server cannot resolve is accepted. No openEHR text decides between the two postures, so the conformance instrument names it as an option, and the party statement selects the arm that accepts.
- The content is the shaped seed: two code systems and two value sets under
the reserved
example.testdomain, with no licensed terminology in them.
SNOMED CT on a public sandbox
Serving SNOMED CT to the public is a licensed activity, and the arrangement above is what the SNOMED CT Affiliate Licence Agreement (April 2023, snomed.org/get-snomed) asks for. Clause 2.2.4 permits systems “made available to the general public for accessing and/or retrieving any part of the International Release and/or data encoded using the foregoing”, provided users “are not able to extract any substantial portion of SNOMED CT” and no fee is charged for access. Clause 2.7 requires “reasonable measures to ensure that the International Release (and any part of it) cannot be accessed or downloaded from the Licensee’s systems except by authorised users”. A raw FHIR terminology endpoint open to anonymous callers would let anyone walk a code system or expand large value sets; per-code operations through the CDR, behind its rate limit, do not.
The sandbox serves the SNOMED CT International Edition, release 20260901
(http://snomed.info/sct/900000000000207008/version/20260901), loaded by the
operator under their Affiliate Licence from an index built off the machine. The
International Edition rather than a national one: it needs the Affiliate Licence
alone (a Member’s national release also needs an agreement with that Member), its
English displays fit an international audience, and it is the lighter of the two.
Every surface showing that content carries the notice the licence prescribes:
This material includes SNOMED Clinical Terms® (SNOMED CT®) which is used by permission of the International Health Terminology Standards Development Organisation (IHTSDO). All rights reserved. SNOMED CT®, was originally created by The College of American Pathologists. “SNOMED” and “SNOMED CT” are registered trademarks of the IHTSDO.
No SNOMED CT content is in this repository, in any image, or in CI; the index exists only on the sandbox machine. This is a description of the arrangement, not legal advice: the licence text is the authority and the Member’s conditions apply in each territory.
LOINC on the sandbox
The sandbox also serves LOINC version 2.83 (http://loinc.org), from an
index built the same way. The LOINC licence
(loinc.org/license) grants use and distribution
“for any commercial or non-commercial purpose” without fees and names “online
terminology services” among the permitted products, on three conditions this
deployment meets: the notice below is available where the service’s terms are
stated, every LOINC code is shown with one of its LOINC display names (the FHIR
operations return the long common name), and the version is stated. Where a
LOINC record carries a third-party copyright notice of its own, that notice
travels with the record.
This material contains content from LOINC (http://loinc.org). LOINC is copyright © Regenstrief Institute, Inc. and the Logical Observation Identifiers Names and Codes (LOINC) Committee and is available at no cost under the license at http://loinc.org/license. LOINC® is a registered United States trademark of Regenstrief Institute, Inc.
Neither index is in the repository, an image or CI; both exist only on the sandbox machine, beside the licence-free shaped seed the compose profile ships.
Running one locally (development and CI)
The quickest local terminology server is the quickstart’s
terminology overlay:
FerroTERM beside the CDR, the shaped seed served, the CDR wired, one command
and no checkout. The conformance lane runs the same server from a checkout of
the repository, with the shaped seed mounted read-only out of
docker/terminology/seed/:
docker compose -p ferroehr-cnf --project-directory . --profile terminology \
-f docker/sut-ferroehr.yml -f docker/sut-terminology.yml up -d --wait ferroehr
The profile starts FerroTERM (host port 8090 by default,
FERROEHR_TERMINOLOGY_PORT), which reports healthy only once the mounted code
systems and value sets are served, and the CDR waits on that. The overlay file
is what points the CDR at it, by switching on the [terminology] the
development configuration already carries in the disabled state.
None of this touches the downloadable quickstart Compose file on its own, which uses the in-process openEHR terminology only; the terminology overlay is the opt-in that adds FerroTERM to it.
Warning
The seeded content is synthetic and lives under the reserved
example.testdomain: one hierarchical code system shaped like SNOMED CT and one shaped like LOINC, each with an enumerated value set. It carries no licensed terminology content. Point the CDR at a real server, and for SNOMED CT hold the appropriate licence, for anything beyond experimentation.
Tip
Serving your own content is the same shape: FerroTERM loads every FHIR
CodeSystemandValueSetin the directoryFERROTERM__TERMINOLOGY__CODE_SYSTEMSnames, and serves them read-only. A value set it does not hold is an unresolved binding, which youron_errorsetting then decides the fate of.
On Kubernetes
terminology.enabled=true runs FerroTERM in the cluster and wires the CDR at it
(FerroTERM on Kubernetes).
A server outside the cluster goes through the config passthrough, which
renders the keys verbatim into the server’s configuration file
(Any server setting is reachable):
# values.yaml
config:
terminology:
api.terminology: true
server:
enabled: true
url: https://tx.example.org/fhir
on_error: true # fail-closed: an unresolvable binding rejects the commit
secrets:
# only when the server sits behind an authorization server; the grant itself
# goes under config.[terminology].oauth
terminologyClientSecret: ""
Before you enable it: a reachable terminology server, a decision on
on_error, and (if the chart’s default-deny egress policy is on) an
egress rule that admits the server, or every call fails as a timeout.
To turn it off, set config.the [terminology] table: false; validation
falls back to the in-process bundle and no external call is made.
Terminology in AQL
Query authors can constrain a match to a value set with the AQL TERMINOLOGY()
function: TERMINOLOGY('expand', …) resolves a value set and merges its codes
into a matches list at query-analysis time, so the planner sees an ordinary
value list. A terminology://… operand in a matches list is expanded the same
way. See Querying with AQL for the query surface.
Operations with no defined comparison semantics in AQL are typed rejections rather than silent wrong answers.
Change events (outbox feed)
When something is committed to the CDR, downstream systems often need to know: an analytics pipeline, a care-coordination service, a cache invalidator. FerroEHR records a small event for every commit in a transactional outbox and serves those events to the readers you name over a cursor feed. The events carry identifiers and metadata, never the record content.
FerroEHR publishes to no message broker. FerroBRIDGE, the family’s export and
import server, delivers the events to an AMQP broker such as RabbitMQ from 0.0.15
on: its [events] lane reads this feed and publishes each event with its own
exchange, routing keys and queues, and moves its cursor only after the broker
confirmed the event
(FerroBRIDGE issue 1367).
- Delivery guarantees
- Naming the readers
- Reading the feed
- The event envelope
- Moving from FerroEHR’s own RabbitMQ publisher
Delivery guarantees
- No commit without its event. Every commit writes its event row into the outbox in the same database transaction as the change itself. A rolled-back commit writes none.
- Ordered, without gaps. Each row gets a sequence number,
seq. The feed serves the rows after a reader’s cursor inseqorder. A commit that drew a lowerseqand has not ended yet holds a read back until it ends, so a reader never acknowledges past a row that becomes visible later. - At least once. The cursor moves only when the reader acknowledges. A
reader that reads, delivers and stops before acknowledging reads the same
rows again, so a consumer deduplicates on
contribution_id. - PHI-free envelopes. An event carries ids, version numbers and metadata. To read the clinical content, a consumer calls the authenticated REST API.
- Commits never wait on a reader. A reader that is down loses nothing inside the retention window. The prune deletes a row only once it is older than the window and at or below every active reader’s cursor.
flowchart LR
commit["commit<br/>(composition / status / folder / party)"]
tx[("same DB transaction")]
node["clinical data"]
outbox["event_outbox row"]
feed["GET /admin/outbox/{reader}"]
bridge["FerroBRIDGE<br/>(reader)"]
broker["AMQP broker"]
commit --> tx
tx --> node
tx --> outbox
outbox -.->|"rows after the cursor, in seq order"| feed
feed --> bridge
bridge -->|"publish, await confirm"| broker
bridge -.->|"POST …/ack"| feed
Naming the readers
The feed is off until a reader is granted. A reader is policy, held in the
CDR: the reader element of a read_change_feed grant in force on the
AGENT of the client that reads it, a name matching
^[a-z][a-z0-9-]{0,62}$. An administrator writes the grant through the
Demographic API, and it takes effect on the next request with no restart
(Operational policy).
[authz.grants] allowed must admit read_change_feed.
While a reader is granted, every commit writes its outbox row; with none, no commit does. The server registers each granted reader and marks every reader no grant names any more inactive at boot, on every feed call and before every prune. An inactive reader keeps its cursor, so granting it again resumes where it stopped, and it holds the prune back no longer.
The retention is configuration, under [record.change_feed]:
| Key | Environment variable | Default | Meaning |
|---|---|---|---|
retention | FERROEHR__RECORD__CHANGE_FEED__RETENTION | "7d" | how long an acknowledged row is kept after its commit |
prune_interval | FERROEHR__RECORD__CHANGE_FEED__PRUNE_INTERVAL | "1h" | how often the prune runs |
On Kubernetes the chart renders its config tree into the server’s
configuration file, so the same keys are config.record.change_feed.*.
Reading the feed
GET {rest_root}/extensions/v1/admin/outbox/{reader}?limit=100&domain=clinical
POST {rest_root}/extensions/v1/admin/outbox/{reader}/ack?domain=clinical
Both routes need the scope __ferroehr.outbox, and the product scope does not
reach them. With [authz.rbac] on, the caller also needs the admin role, as on
every /admin route. Every read is one access record.
A read answers 200 with the events after the reader’s cursor, at most
limit (1 to 1000, default 100), and an empty list when there are none. A read
moves no cursor:
{
"reader": "ferrobridge",
"events": [
{
"seq": 42,
"contribution_id": "0196f1f4-8c3a-7d2e-9b1a-3c5d7e9f1a2b",
"ehr_id": "7d44b88c-4199-4bad-97dc-d78268e01398",
"committed_at": "2026-11-02T09:15:00.123456Z",
"versions": [
{
"vo_id": "0196f1f4-8c3b-7a10-8f2e-4d6c8b0a2e4f",
"kind": "COMPOSITION",
"sys_version": 3,
"version_tree_id": "3",
"change_type": "251",
"template_id": "vital_signs.v1"
}
]
}
]
}
The acknowledgement takes {"last_seq": 42} and answers 204 once the cursor
is there. Acknowledging the current cursor again is a 204 too. A last_seq
below the cursor, or above the highest row, answers 409 and moves nothing. A
reader no grant in force names answers 404 on both routes, and a caller
whose own read_change_feed grant does not name the reader 403.
The two outboxes
The clinical and the party domain each keep their own outbox, with their own
seq and their own cursor per reader. domain=clinical (the default) reads
EHR, composition, folder and contribution commits; domain=party reads the
demographic commits, whose ehr_id is null. A reader that never reads one of
the two holds that outbox’s prune back, so read both.
The event envelope
| Field | Meaning |
|---|---|
seq | the row’s place in its outbox |
contribution_id | the contribution the commit made |
ehr_id | the EHR; null for a demographic contribution |
committed_at | the commit instant |
versions[] | one entry per changed versioned object |
Each versions[] entry carries:
| Field | Meaning |
|---|---|
vo_id | the versioned object’s identifier |
kind | the full RM type name: COMPOSITION, EHR_STATUS, EHR_ACCESS, FOLDER, or one of the demographic kinds (PERSON, ORGANISATION, GROUP, AGENT, ROLE, PARTY_RELATIONSHIP) |
sys_version | the version ordinal |
version_tree_id | the version-tree id, so a branch version is distinguishable from a trunk one |
change_type | the numeric openEHR audit change-type code: 249 creation, 250 amendment, 251 modification, 523 deleted, 666 attestation, and the other members of that code group |
template_id | the composition’s operational template, or null |
An erasure tombstone tells each reader that an EHR or a party was
physically deleted, so it deletes what it derived (GDPR Art. 19). It carries
"event": "erase", the erased ehr_id (or, for a party, "ehr_id": null and
the party’s vo_id), and a versions list of entries whose change_type is
erase, with no contribution_id and no committed_at.
What the feed leaves out
A commit to an EHR that carries a restriction (GDPR Art. 18) or an unoverridden research objection (Art. 21(6)) writes no event. A read also leaves out the rows of an EHR that carries such a mark, or an EHDS Art. 8 access restriction of the EHR or of an object the commit touched, at the moment it is read. Such a row is served once the mark is lifted, as long as the reader’s cursor has not passed it.
Moving from FerroEHR’s own RabbitMQ publisher
Earlier releases of FerroEHR published to RabbitMQ themselves, under
[events], with subscription rows under /admin/event_subscription. Both are
gone. To keep the events flowing to the same broker through FerroBRIDGE 0.0.15
or later:
- Grant FerroBRIDGE’s client a
read_change_feedgrant naming its reader, and give the client the__ferroehr.outboxscope. - Configure FerroBRIDGE’s events lane with the broker URL, the exchange and the queues your subscriptions used to declare.
- Remove
[events]from FerroEHR’s configuration,secrets.eventsUrlfrom the chart values, andplaintext_brokerfromdeployment.accepts: the server refuses to start on any of them.
A new reader starts at cursor 0, so FerroBRIDGE delivers every row still in
the outbox: the ones the publisher had not sent, and the ones it had sent inside
the retention window, which a consumer that deduplicates on contribution_id
skips.
S3 multimedia
Clinical records sometimes carry large binary attachments (scanned documents,
images, waveforms) as DV_MULTIMEDIA values. Keeping big blobs inline in the
database bloats storage and slows queries. FerroEHR can offload large multimedia
blobs to any S3-compatible object store, keeping a small content-addressed
reference in the composition, and re-materialize them on demand when a record is
read back.
How offload works
Offload is a commit-path transformation applied to DV_MULTIMEDIA nodes anywhere
in the tree, including a node’s nested thumbnail, which is itself a multimedia
value:
- A node qualifies only when it is purely inline (it has
dataand nouri) and its decoded byte length is strictly greater than the configured threshold. A value at or below the threshold stays inline; a value that already references external media is stored verbatim, never touched. - The raw decoded bytes are written to the object store under a key that is the SHA-256 hash of those bytes, in lowercase hex. Because the key is the content hash, identical blobs deduplicate automatically and an upload whose key already exists is a no-op.
- The node is rewritten in place: inline
datais removed and replaced with auriof the forms3://<bucket>/<hash>, plus anintegrity_check(the same SHA-256 digest), anintegrity_check_algorithmcode phrase (SHA-256), andsizeset to the decoded byte length.
Uploads happen before anything is persisted, so a failed upload aborts the commit and a record is never half-stored, so the version count is unchanged.
Note
What lives where afterwards: the object store holds the blob bytes; the composition in PostgreSQL holds a compact, spec-legal
DV_MULTIMEDIAthat points at the blob by content hash. Everything stays canonical openEHR JSON: thes3://reference and the integrity fields are standard Reference Model attributes, not FerroEHR inventions. The digest appears twice in two encodings, because the model asks for it that way:integrity_checkis a byte array, so canonical JSON renders it base64, while theurispells the same digest as lowercase hex.
Reading blobs back
By default a read returns the stored form, the compact reference. To get the
bytes back inline, ask for expansion on the read with ?expand_multimedia=true.
It is available on the reads that can return externalized content: composition
and versioned-composition reads, EHR_STATUS and its versioned reads, and
directory (folder) reads.
The server fetches each of its own externalized blobs (only URIs of the exact
form s3://<configured-bucket>/<hash> count as its own, so a foreign https://
or other-bucket reference is left alone) verifies the SHA-256 of the fetched
bytes against the key, and only then re-inlines the data. A hash mismatch is a
hard error, so a corrupted or tampered blob is never quietly served.
An expanded value keeps its uri and integrity fields alongside the restored
data: it is both inline and external, which is spec-legal and means a
subsequent commit of that same body re-offloads cleanly.
If the object store is unreachable, both halves of the path fail loudly rather
than losing content: a commit that needs to offload is refused 500 and nothing
is written, and an expanded read of an already-offloaded record is refused 500. A
read without expand_multimedia still answers 200; it never touches the
store.
Turning it back off
enabled governs new offloads, not access to old ones. Switching it back to
false:
- New commits keep large
DV_MULTIMEDIAinline, byte-identical, with no dependency on the object store. Nothing else about the request or the record changes. - Records that were already offloaded keep their
s3://reference and stay fully readable:?expand_multimedia=truestill fetches, verifies and re-inlines them, as long as anendpointis still configured. Content this server externalized does not become unreachable because a switch was flipped.
Warning
Removing the
endpointas well is the decision that matters. With no store reachable at all, an expansion request against an already-offloaded record fails, and does not quietly answer200with the compact reference. The bytes are still in your bucket and still reachable with an S3 client; the API refuses rather than pretending the request was honoured. So decide what happens to the blobs already in the bucket before you remove the endpoint, not before you flipenabled.
One slim-build caveat: a binary built without the multimedia feature has no
object-store code at all, so it serves the stored compact reference and does not
refuse the expansion. Do not read externalized records with a slim binary.
Enabling it
Offload is off by default. The keys live under [record.multimedia]; the full table with
every default and its meaning is on
Integrations. The essentials:
| Environment variable | Default | Meaning |
|---|---|---|
FERROEHR__RECORD__MULTIMEDIA__ENABLED | false | master switch |
FERROEHR__RECORD__MULTIMEDIA__THRESHOLD | 262144 (256 KiB) | offload blobs larger than this; smaller stay inline |
FERROEHR__RECORD__MULTIMEDIA__URL | unset | S3 endpoint URL; unset uses default AWS endpoint resolution |
FERROEHR__RECORD__MULTIMEDIA__BUCKET | openehr-multimedia | target bucket |
FERROEHR__RECORD__MULTIMEDIA__REGION | us-east-1 | S3 region, required even for non-AWS endpoints |
FERROEHR__RECORD__MULTIMEDIA__ACCESS_KEY_ID | unset | access key id |
FERROEHR__RECORD__MULTIMEDIA__SECRET_ACCESS_KEY | unset | secret key (or …__SECRET_ACCESS_KEY_FILE for a mounted secret) |
With both the access key and the secret unset, the client runs unsigned (anonymous), the mode a local development SeaweedFS gateway accepts with no credentials. Set both to make signed requests against a real store.
An enabled integration is refused at boot when its endpoint is set but
blank, relative, or carrying a scheme other than http or https. That case is
easy to reach by accident (an unset Compose variable expanding to nothing, an
empty Helm value, a bare host:port) so it is refused where an operator can
still act on it, rather than at the first multimedia commit.
Warning
The bucket must already exist. The server never creates it, and a missing bucket is not distinguishable on the wire: S3 answers a
PUTinto a bucket that does not exist with403 AccessDenied, not404 NoSuchBucket. So every multimedia commit fails500and the log saysAccess Denied, which reads like a credentials problem and is not one. Create the bucket before you enable the integration; the SeaweedFS recipe below shows the one-liner.
Warning
Offloaded blobs are PHI. In production the bucket must be private, encrypted, and reached over HTTPS (an
https://url). Prefer instance or workload identity over static keys where your platform supports it. See Operations for the deployment-side security posture.
Note
Externalization is also a cargo feature (
multimedia), on in the published images and any default build. A slim--no-default-featuresbuild contains none of the object-store code and refuses to boot withrecord.multimedia.enabled = truerather than silently storing every blob inline; see From source → Build features.
On Kubernetes
Every key above is reachable as config.multimedia.*
(Any server setting is reachable);
the S3 credentials go through secrets.*, which the chart mounts as files:
# values.yaml
config:
multimedia:
enabled: true
endpoint: https://s3.example.com
bucket: openehr-multimedia
threshold: 262144
secrets:
multimediaAccessKeyId: "AKIA…"
multimediaSecretAccessKey: "…"
Before you enable it: the bucket must exist (nothing in the chart creates it)
and, if the chart’s default-deny egress policy is on, an egress rule must admit
the endpoint. To turn it off, set config.record.multimedia.enabled: false and leave
the endpoint in place so already-externalized content stays readable (see
Turning it back off).
Quick setup with SeaweedFS
Any S3-compatible store works: AWS S3, MinIO, SeaweedFS. SeaweedFS is a light option for development and testing: its S3 gateway needs no credentials.
Step 1, create the bucket. The gateway starts with no buckets at all, and
nothing in it creates one. Against an unauthenticated development gateway a bare
PUT on the bucket path is enough:
curl -X PUT http://127.0.0.1:8333/openehr-multimedia
curl -s http://127.0.0.1:8333/ # the bucket now appears in ListAllMyBuckets
The Compose stack does this for you: the s3
profile brings up the gateway plus a seaweedfs-init service that performs
exactly that PUT once the gateway is healthy, reading the same bucket variable
the server does so the two cannot disagree. This step is only for a gateway you
run yourself.
Step 2, point the server at the gateway and allow plain HTTP for local use:
export FERROEHR__RECORD__MULTIMEDIA__ENABLED=true
export FERROEHR__RECORD__MULTIMEDIA__URL=http://127.0.0.1:8333
export FERROEHR__RECORD__MULTIMEDIA__BUCKET=openehr-multimedia
The same exports drive the Compose stack, which passes the whole
FERROEHR__RECORD__MULTIMEDIA__* set through from your shell; only the endpoint changes,
to the in-network hostname http://seaweedfs:8333.
Step 3, check what the server actually took. /management/env reports the
effective configuration, which is the quickest way to catch a variable that never
arrived:
curl -s -u ferroehr:ferroehr http://localhost:8080/management/env | jq .multimedia
The secret access key is masked there. access_key_id is not masked, and
deliberately so: it is an identifier rather than a credential, and seeing it is
how you confirm which key the server is actually using.
With the switch on and the bucket present, large DV_MULTIMEDIA values committed
through the ordinary composition APIs (see
Using the API) are offloaded automatically. Nothing
about the request or the stored record changes except the size of what lives in
the database.
Note
Base64 inflates a blob by about a third on the wire, and the whole request body is still subject to the request-body limit (
api.body_limiton the clinical surface,server.body_limiteverywhere); a composition that exceeds it is refused413before offload is ever considered. See[server].
Rust crates
FerroEHR’s openEHR specification layer is published on crates.io as nine standalone Rust crates, usable without the CDR. They are the same crates the server itself is built on: the spec types are generated deterministically from the official openEHR machine-readable artifacts (BMM/XSD/OpenAPI), and the engines (ADL, AQL, Simplified Formats, serialization runtimes) are hand-written against the vendored specification text.
| Crate | Implements | What it gives you |
|---|---|---|
openehr-base | BASE 1.2.0 + 1.3.0 | Foundation + base types (identification, intervals, ISO-8601 types) |
openehr-rm | RM 1.1.0 + 1.2.0 | The Reference Model: COMPOSITION, data structures/types, change control, generated invariant validation, the static RM attribute model |
openehr-am | AM 1.4.0 + 2.4.0 | The Archetype Object Model, both majors side by side |
openehr-adl | ADL 2.4.0 | ADL2/cADL/ODIN parser, AOM2 validation, flattener, OPT2, ADL 1.4→2 conversion |
openehr-term | TERM 3.1.0 | Terminology model + the embedded official openEHR terminology (five languages: en, es, ja, pt, zh) |
openehr-lang | LANG 1.0.0 + 1.1.0 | The BMM meta-model and its P_BMM schema form, plus hand-written ODIN, BEL and Expression-Language readers |
openehr-query | QUERY 1.1.0 | AQL lexer, parser, typed AST with source spans, visitors, parameter binding, and canonical printer; the federation feature for the FROM ENDPOINT directive |
openehr-its | ITS-JSON, ITS-XML, ITS-REST 1.1.0 | Canonical JSON + XML codecs, the generated ITS-REST contract (axum server router, client, and an operation matcher for intermediaries), OPT 1.4 and AOM2 archetype XML |
openehr-sdt | ITS-REST 1.1.0 Simplified Formats + SMART App Launch | Simplified Formats (FLAT/STRUCTURED/Web Template), a canonical PARTY built from a party Web Template, template-independent RM-instance validation, the SMART on openEHR scope grammar |
[dependencies]
openehr-rm = "0.0.98"
openehr-its = "0.0.98"
All nine are edition 2024 with an MSRV of Rust 1.98, and all nine
inherit the workspace lint table, including unsafe_code = "forbid", which no
attribute anywhere in the crate can relax. There is no unsafe block in the
published specification layer.
- Generations: reaching more than one specification version
- Versioning
- Taking only the part of
openehr-itsandopenehr-sdtyou need - Releases
- Information for integrators (CRA Annex II point 8(f))
- Licensing
Generations: reaching more than one specification version
A crate generated from more than one openEHR generation exposes each as a
version-named module: openehr_rm::v1_1 and openehr_rm::v1_2,
openehr_base::v1_2 / v1_3, openehr_am::v1_4 / v2_4,
openehr_lang::v1_0 / v1_1, openehr_term::v3_1. The crate’s prelude
re-exports the current generation, so ordinary code needs no module path;
an older generation is reached by naming its module in full:
#![allow(unused)]
fn main() {
// The current generation (RM 1.2.0), via the crate prelude:
use openehr_rm::prelude::Composition;
// The released generation (RM 1.1.0), via its own module path. Import
// renaming is not used anywhere in this project; where both generations
// appear in one file, give one of them a type alias:
type Rm110Composition = openehr_rm::v1_1::composition::composition::Composition;
}
Each generation mirrors its specification’s own package structure, so the path
after the generation module reads the same in both. Every generation module
also carries its own prelude; no name from one generation is ever mixed into
another.
openehr-lang is the one crate whose generations also differ in what they
contain, because upstream publishes two BMM meta-models side by side. Its
v1_1 generation carries them as sibling specification units: the stable,
tool-implemented BMM v2.x model (bmm, its persistence form
bmm_persistence, and the beom expression model) is on the generation’s
prelude, while the paused BMM3 model (bmm3) is reachable only by full module
path. They cannot be merged (a set of class names, BmmClass, BmmModel and
BmmPackage among them, occurs in both units with materially different
shapes) so the prelude carries the stable units and the choice stays explicit
at the use site. The older v1_0 generation is what its release actually
defines: the BMM model plus an ODIN reader, with no BEL or Expression-Language
notation.
Versioning
The package version is the crates’ own independent SemVer line: it tracks
this implementation’s code and moves freely with fixes and improvements, never
with the vendored openEHR specification versions. All nine crates always
release in lockstep, and each release follows The Cargo Book, “SemVer
Compatibility”: cargo-semver-checks compares the public API of each crate
with its newest release, and a breaking change moves the minor version
(0.1.4 to 0.2.0) while a compatible one moves the patch (0.1.4 to
0.1.5). The line moves from 0.0.x, where every release is a breaking
release by the Cargo rule, to 0.1.0 at its next publish, so a caret
requirement such as openehr-rm = "0.1" takes every compatible release.
The implemented specification version is therefore a separate datum, per
generation. Each generated crate emits a Generation enum that is the only
authority for it: one variant per generation module, Default marking the
current one, each variant carrying its specification version as a const fn,
and Display/FromStr round-tripping the module token:
#![allow(unused)]
fn main() {
assert_eq!(openehr_rm::Generation::default().spec_version(), "1.2.0");
assert_eq!(openehr_rm::Generation::V1_1.spec_version(), "1.1.0");
assert_eq!(openehr_rm::Generation::default().as_str(), "v1_2");
}
There is deliberately no crate-level SPEC_VERSION constant in the generated
crates: a single constant would contradict a caller using a non-current
generation. Exactly four crates implement one specification each and do expose
one: openehr_its::SPEC_VERSION, openehr_sdt::SPEC_VERSION,
openehr_query::SPEC_VERSION, openehr_adl::SPEC_VERSION.
Taking only the part of openehr-its and openehr-sdt you need
openehr-its layers its features so a browser or embedded consumer does not
have to compile an HTTP server to read a template. The parsing spine is
json → xml → opt14, each pulling in the one below it. Beside the spine
sit schema-validation (validation against the compiled-in ITS-JSON RM
schema, its only jsonschema user) and three ITS-REST features. rest is the
generated contract (DTOs, parameter structs, route tables and the ApiError
type, plus the routes::lookup operation matcher) over serde and http, with no HTTP engine. rest-server adds the
per-group server traits, their success enums and a generated router(api) per group, which is what brings
in axum. rest-client adds a generated client per API group over a runtime
that sends through reqwest: each operation answers one outcome variant per
status the OpenAPI documents, and an undocumented status is an error. A
consumer that calls a CDR takes rest-client and never compiles axum. The
default feature full is all seven, so an existing dependency line keeps the
crate it had. With default-features = false and no feature at all,
openehr-its compiles empty.
openehr-sdt sits on top: its flat feature pulls openehr-its with opt14
and adds the Simplified Formats and RM-instance validation, and cache adds
the async Web Template cache (the only moka user). Its default full is
both. opt14 and flat build for wasm32-unknown-unknown, so a browser
consumer can call flat::webtemplate::builder::build_web_template or read an
OPT 1.4 template:
[dependencies]
openehr-its = { version = "0.0.98", default-features = false, features = ["opt14"] }
openehr-sdt = { version = "0.0.98", default-features = false, features = ["flat"] }
With default-features = false and no feature at all, openehr-sdt compiles
to the SMART App Launch scope grammar alone: std-only, with no dependency of
any kind, so a REST client can parse scope strings with the grammar the CDR
enforces instead of carrying a second one.
Releases
The nine crates publish as the last leg of the release pipeline, gated on a human: the leg runs in a protected environment with a required reviewer, so the run pauses there and nothing reaches crates.io without an explicit approval. A separate dispatch lane covers a publish between releases and the recovery path when the release leg fails.
Both lanes authenticate with crates.io Trusted Publishing (OIDC, no long-lived token anywhere) and publish the crates one at a time in dependency order, treating “already exists on the index” as done, so a run interrupted halfway can be re-run to finish the set. The lane then reads the registry back and refuses to report success unless all nine resolve at the same version, because a straggler makes its siblings’ internal requirements unresolvable for every consumer.
Information for integrators (CRA Annex II point 8(f))
The crates are libraries for building into other software. The Cyber Resilience Act (Regulation (EU) 2024/2847) has a product intended for integration into other products accompanied by “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” (Annex II point 8(f)). This section is that information for the nine crates. The rest of the information Annex II lists for FerroEHR is on CRA information and instructions to the user; the manufacturer and the reporting channels there apply to the crates too.
- Reporting a vulnerability in a crate: to Cadasto B.V., through GitHub
private vulnerability reporting or security@cadasto.com,
as
SECURITY.mddescribes. - Hearing of a fixed vulnerability: every fixed vulnerability that reaches a published crate gets a GitHub security advisory on the repository, naming the affected and the fixed crate versions. An advisory that names a published crate also reaches the GitHub Advisory Database in OSV format. Watch the advisories; nothing in the crates contacts anyone.
- Support period: only the newest published version of all nine is
supported. Cadasto B.V. commits to keep publishing security fixes for at
least five years after each version (CRA Art 13(8)), and the fix ships only
in the newest published version, never as a backport (Art 13(10))
(
SECURITY.md§ Supported versions). The version that carries a fix may also carry a breaking change, which then moves the minor (see Versioning), so plan for the work of taking the newest version when you set the support period of your own product. - Software bill of materials: each release publishes a CycloneDX SBOM per
crate, listing its normal and build dependencies, attested against the
.cratearchive crates.io serves (the SBOMs). Annex I Part II(1) has you draw up an SBOM of your own product “covering at the very least the top-level dependencies”; the crate SBOMs give you what each crate pulls in below that. - Where the crates come from: crates.io Trusted Publishing authenticates
the upload, and records no build provenance. The source of truth is this
repository at the release tag
(the
openehr-*crates).
What the crates do for the security of your product, and what they leave to it:
- Memory safety.
unsafe_code = "forbid"holds in all nine crates; there is nounsafeblock in them. - Parsers. The canonical JSON and XML readers, the AQL parser, the ADL parser, the OPT 1.4 reader, the simplified formats and the identifier types each have a libFuzzer harness run on a nightly campaign, and a crash is fixed in the crate. Fuzzing finds crashes and does not prove their absence. Bound the size of what you hand a parser, and the time you let it run, in your own product: the FerroEHR server does this with its request body limits and timeouts.
- The REST contract. The
rest-serverrouter ofopenehr-itsdispatches each request to the server traits you implement and authenticates no one. Authentication, authorisation, rate limiting, TLS and an access log are layers your product adds. Therest-clientengine sends over rustls TLS, never follows a redirect, and takes areqwest::ClientBuilderyou configure with your trust roots and proxies. - The SMART scope grammar in
openehr-sdtparses scope strings. It decides no access; enforcing a scope is your product’s. - No storage, no network of their own. The crates write nothing to disk;
openehr-langreads the BMM schema files from the directory your code names. They open no connection except the requests your code sends throughrest-client.
For the documentation of Annex VII: the crates are third-party components of
your product, which CRA Art. 13(5) has you integrate with due diligence. Your
technical documentation names the crate versions you build (the
Cargo.lock records them) and your risk assessment covers how your product
uses them. The FerroEHR CRA risk assessment
assesses the FerroEHR release and covers the crates only where a row says so;
it is not an assessment of your product.
Licensing
The nine crates fall into two groups.
The six generated-or-wire crates (openehr-base, openehr-rm, openehr-am,
openehr-lang, openehr-term, openehr-its) and the AQL parser
openehr-query are Apache-2.0, the
licence of the openEHR machine-readable artifacts they are generated from, so
any Rust project can use them, in proprietary and hosted products included.
They embed material derived from those artifacts (generated types carrying
specification documentation text, codecs and a REST contract generated from
the XSD, OpenAPI and BMM files), which is Apache-2.0 as well, and their files
name the openEHR Foundation as a second copyright holder. openehr-its also
carries the hand-written runtimes, canonical JSON entry points and
wire-validation dispatcher the generated code cannot ship without, and it
packages the vendored ITS-JSON schema as bytes, so its README carries that
file’s attribution (upstream repository, the exact vendored commit, and the
licence) inside the package, where it travels with any redistribution.
openehr-query is hand-written from openEHR’s Apache-2.0 AQL grammar and
ships only its Rust sources, the README and LICENSE-APACHE-2.0.
The two hand-written engines, openehr-adl and openehr-sdt, are under the Business Source License 1.1, the licence of
the FerroEHR application. Each declares BUSL-1.1 and ships only its own
Rust sources, the README and its LICENSE with the parameters. Non-production
use of these two is free, production use is free for Non-Commercial
Purposes, and any other production use, hosting for third parties or
distribution for a fee needs a commercial licence, exactly as for the
application.
openehr-term carries a third term, because it embeds a different kind of
openEHR material: the official terminology XML (the five language bundles, the
external-terminology index, and the property/unit data) is CC-BY-SA 3.0,
redistributed verbatim with attribution. Its manifest declares
Apache-2.0 AND CC-BY-SA-3.0 and the package ships both license texts, so the declaration a consumer reads names every license the
crate’s own bytes are under. If you redistribute the crate, the terminology data
travels under CC-BY-SA 3.0.
Versions 0.0.56 and earlier were published under the MIT terms in force at the
time (MIT AND Apache-2.0 for the crates that embed openEHR material) and keep
them; 0.0.57 was never published; 0.0.58 and 0.0.59 are Apache-2.0 for all
eight crates of that time. From 0.0.60 openehr-query and openehr-adl are
BUSL-1.1, and openehr-its was published as BUSL-1.1 AND Apache-2.0 from
0.0.60 to 0.0.67; its 0.0.68 was never published, and from 0.0.69 it is
Apache-2.0 again. Its hand-written Simplified Formats, RM-instance validation
and scope grammar moved into the new openehr-sdt, first published alone at
0.0.68 under BUSL-1.1 against the 0.0.67 siblings and in lockstep from 0.0.69.
openehr-query is Apache-2.0 again from 0.0.116; its 0.0.60 to 0.0.115 keep
BUSL-1.1.
Published
versions keep the licence they were published with. The full picture, including
the vendored material that never reaches a published package, is in
Licensing.
The openEHR specifications themselves are © the openEHR Foundation.
Installation
FerroEHR is one self-contained binary that connects to a PostgreSQL 18 database. There is no application server to install and no language runtime to provision: the binary links a pure-Rust TLS stack and needs no OpenSSL and no JVM, so all you choose is how to run it and where the database lives. This part covers the three paths and the full configuration surface.
- Try it in Codespaces: one click boots the published images in a GitHub Codespace in your browser, with the Swagger UI and the viewer forwarded. Nothing to install. Made for evaluating FerroEHR; a real deployment uses one of the paths below.
- Docker Compose: the fastest way to run the server plus a preconfigured PostgreSQL 18, for development and evaluation. One downloadable file that pulls the published images and needs no configuration. Optional viewer, OIDC, and observability overlays.
- Kubernetes & Helm: the production path, a hardened non-root workload that connects to an externally managed PostgreSQL 18. Its companion, Cluster hardening, covers what the chart cannot do for you.
- From source: building the binary yourself with the pinned Rust toolchain, and running the test suite.
- Configuration reference: how configuration loads and what every key means, split by area: server, database and telemetry, authentication and access, integrations, audit and subject proxy, and the CLI and production checklist.
What every path has in common
One configuration file, with environment overrides on top. The server reads
a single ferroehr.toml covering every subsystem; FERROEHR__* environment
variables override individual keys, and repeatable --set key=value flags
override those. An array of tables, such as [[auth.issuer]], is set from the
environment by element index (FERROEHR__AUTH__ISSUER__0__ISSUER). ferroehr config default writes an annotated template with every key at its default, and
ferroehr config check validates the result without touching the database.
The schema is the binary’s, and who applies it is a choice. By default
(database.migrations = "apply") the server applies its embedded migrations at boot, so
an empty database self-provisions. Setting database.migrations = "verify" makes the
server issue no DDL at all (it checks the schema and refuses to start if it is
not this build’s) which lets the runtime role hold no DDL rights. Something
else then runs ferroehr db migrate under a migrator role first. That check
still reads every schema’s migration state, so a least-privilege deployment
also sets database.migrate_url to the credential that can. Both postures are laid
out in Operations → Applying migrations.
A deployment declares what it may hold. The top-level
deployment.profile key is sandbox by default: the server starts whatever
separations are missing and names every one of them on the banner, in the log
and on GET /management/status. Set it to production and the server
refuses to start while a separation is open and not accepted by name in
deployment.accepts. Read
deployment.profile before you point a
deployment at real patient data.
Choosing a specification generation
One top-level key, deployment.spec_profile, selects which openEHR specification
generation set the deployment runs: development (the default: Reference
Model 1.2.0 with BASE 1.3.0) or stable (the latest released generations:
Reference Model 1.1.0 with BASE 1.2.0). It is a
single coupled choice, and stable → development is always safe while the
reverse is not, so decide it before you commit clinical data. The full
semantics, defaults, and the direction contract are in
deployment.spec_profile.
Note
A Clinical Data Repository stores PHI. In production the database must be an externally managed, backed-up, point-in-time-recoverable PostgreSQL 18, never a throwaway sidecar. The Kubernetes chart deliberately ships no in-cluster database for this reason.
Try it in Codespaces
The fastest way to try FerroEHR is a GitHub Codespace: one click boots the published images in your browser, with nothing installed on your machine.
What you get
Creating a Codespace on the FerroEHR repository starts a container that pulls
the published quickstart images and runs docker compose up for you:
- the FerroEHR server with a preconfigured PostgreSQL 18,
- the viewer,
- the Swagger UI for the full REST API.
The stack boots automatically. When the terminal prints FerroEHR is up.,
open the PORTS panel and follow the forwarded ports:
| Port | What it serves |
|---|---|
8080 | the REST API, with the Swagger UI at /ferroehr/rest/swagger-ui |
3000 | the viewer |
Sign in with the quickstart credentials, ferroehr / ferroehr. From there
the Getting started walkthrough applies unchanged:
create an EHR, upload a template, commit a composition, and query it back
with AQL, either from the Swagger UI or with curl in the Codespace
terminal.
What it is, and what it is not
The Codespace is a tester sandbox and always runs the published release
images pinned in the standalone docker-compose.yml. It does not build the
checkout you opened it on: the COMPOSE_FILE environment variable inside the
container pins every docker compose command to that file, so the
repository’s development override (which switches to from-source builds) does
not apply. To develop FerroEHR itself, use a local checkout as described
under Repository development.
The Codespace runs on your own GitHub account. The smallest machine type (2 cores, 8 GB) is enough, and GitHub’s free monthly Codespaces allowance covers a long evaluation. Stop or delete the Codespace when you are done; a stopped Codespace restarts the stack automatically on resume.
The hosted sandbox
A public demo runs at https://sandbox.ferroehr.eu as the second
zero-install path: no GitHub account needed, point any REST client at it
with the demo credentials ferroehr / ferroehr. The Swagger UI is at
https://sandbox.ferroehr.eu/ferroehr/rest/swagger-ui. So everyone knows
what it runs on and what to expect from it:
| Compute | one dedicated Hetzner Cloud CX33 (4 shared vCPU, 8 GB RAM, 80 GB NVMe SSD; Nuremberg, eu-central; €8.49/month net), running the published container images behind a Caddy proxy that terminates TLS |
| Database | a second, dedicated CX33 running the published ferroehr-postgres image (PostgreSQL 18), reachable only over a Hetzner private network — no public database port |
| Data durability | none by design: every night around midnight UTC the whole store is wiped and fresh demo data is seeded |
The server does not scale to zero, so there is no cold start; it is still a single small machine shared by every visitor. It is a demo, never a place for real data.
The sandbox image is pinned to the latest release tag, so it always runs a released FerroEHR rather than a development snapshot.
Create, change and delete whatever you like: the nightly reset returns the sandbox to a small seeded corpus (a handful of demo EHRs with example compositions from published CKM templates), so nothing you do needs cleaning up and nothing you store survives the night.
If the stack is not up
The boot log is in the terminal that ran start-stack.sh. To restart the
stack by hand:
bash .devcontainer/start-stack.sh
docker compose ps shows the three services; the server is healthy when
curl http://localhost:8080/health answers 200.
Docker Compose
Docker Compose is the quickest way to run FerroEHR together with a
preconfigured PostgreSQL 18, for local development and evaluation. The
quickstart is one file and zero configuration: download
docker-compose.yml, run docker compose up, and the published images are
pulled and started: no repository checkout, no bind mounts, no environment
variables. This chapter describes the three published images, the services, the
authentication posture the quickstart ships with, the optional profiles and
overlays, and the variables that tune them. For a step-by-step first run, see
Getting started.
Note
This chapter applies equally to the standalone
docker-compose.ymldownloaded into an empty directory and to a baredocker compose upin a repository checkout — both run the published images. Building from source is an explicit opt-in (-f docker-compose.yml -f docker-compose.dev.yml) — see Repository development below.
- The three images
- Bringing up the stack
- Container engines: Docker and Podman
- The isolation posture
- The quickstart’s authentication posture
- The patient identity source (FerroPIX)
- The local EHR index
- The OIDC variant (Keycloak overlay)
- The terminology overlay (FerroTERM)
- Optional services (Compose profiles)
- Port already in use?
- Connecting to the database
- Variables the compose files read
- Repository development
- Build provenance
- Observability overlay
- Next
Note
The quickstart file carries the server configuration inline (a Compose
configsentry withcontent:), which requires Docker Compose 2.23.1 or newer. Check withdocker compose version.
The three images
FerroEHR publishes three container images to GHCR:
| Image | Contents |
|---|---|
ghcr.io/ferrohealth/ferroehr | The ferroehr server binary on a distroless, non-root, shell-less multi-arch base (amd64 + arm64). Configured by a mounted TOML file and/or FERROEHR__* environment variables. |
ghcr.io/ferrohealth/ferroehr-postgres | postgres:18.6 (with Debian security updates applied at image build) plus init scripts that pre-create the application login role, the NOLOGIN group roles (ferroehr_migrator and the four database roles ferroehr_clinical, ferroehr_party, ferroehr_clinical_reader, ferroehr_party_reader, plus ferroehr_linkage, which the released grant files still name), the database and the schemas (clinical, ext, audit), so the app role never needs superuser. |
ghcr.io/ferrohealth/ferroehr-viewer | The viewer, a standalone web application that talks to the CDR strictly over ITS-REST. Optional; see the viewer profile below. |
Each image is published under several tags:
| Tag | Published from |
|---|---|
X.Y.Z, X.Y | every release |
latest | the newest release |
main | every push to the default branch |
sha-<commit> | every push, for exact pinning |
The quickstart Compose file pins the exact release version it shipped with
on all three images, so a downloaded file always runs one known-good, mutually
compatible set; a CI guard (scripts/checks/compose-image-tags.sh) fails the
build whenever those pinned tags disagree with the version being released, so
they cannot be forgotten at a cut. To run something else, set the image
variables in the table below.
The role the server connects as in the quickstart owns the database and is a
member of ferroehr_migrator and ferroehr_clinical, which is what lets it apply
migrations at boot, and of ferroehr_clinical and ferroehr_party, so the
schema separation is exercised on one credential. That single credential is
deliberate: one container with one DSN cannot demonstrate the credential
separation honestly.
A least-privilege deployment sets database.migrations = "verify", runs
ferroehr db migrate out of band under the migrator DSN, and serves on a
narrow runtime credential. It also has to name the credential that prepares
the schema, in [database] migrate_url: preparation reads all four
_sqlx_migrations bookkeeping tables even under verify, which no
least-privilege role can do, ferroehr_clinical included. Unset, migrate_url
falls back to [database] url, which is what the quickstart runs. See
Operations → Which credential prepares the
schema and
Applying migrations.
The PostgreSQL image is init-scripts only: it creates roles and schemas, and bakes in no migration state. The schema needs no extension, so a plain PostgreSQL 18 serves just as well. The server owns the schema content and applies its migrations idempotently at every boot, so a fresh database self-provisions and a restart is a no-op.
Note
PostgreSQL init scripts run only when the data volume is empty. If you see startup notices like
skipping role creation (no CREATEROLE privilege)orroles absent, your volume predates the image’s role setup (or you are running a plainpostgresimage): either recreate the volume (docker compose down -v, which destroys data) or create the group roles once by hand as a superuser (Operations has the statements). The server runs fine either way: the grants are a defense-in-depth layer, not a functional requirement.
Bringing up the stack
Download docker-compose.yml (attached to every
release, and
pulling that release’s images) into an empty directory and start it. The copy
in the repository pulls the :main images built from main and carries
main’s configuration, for running main:
curl -fsSLO https://github.com/FerroHEALTH/FerroEHR/releases/latest/download/docker-compose.yml
docker compose up --wait
This pulls and starts the core services (no profile needed): the database and the server below, and the patient identity source described in The patient identity source (FerroPIX).
ferroehr-postgres: the database image, with a named data volume, apg_isreadyhealthcheck,pg_stat_statementspreloaded, and a modest tuning floor (shared buffers, WAL size, work memory, lz4-compressed WAL full-page images — which cut per-commit WAL volume roughly in half — and a larger/dev/shmthan Docker’s default, which otherwise starves parallel workers).ferroehr: the server, which waits for the database to report healthy (depends_on: condition: service_healthy), then boots, migrates, and serves on port 8080. Its healthcheck is the binary’s ownhealthchecksubcommand, because the image has no shell.
The API is then at http://localhost:8080/ferroehr/rest/openehr/v1, with
Swagger UI at http://localhost:8080/ferroehr/rest/swagger-ui (the browser asks
for the API credential; api.openapi_ui chooses who may read it).
Important
Every published port binds the loopback interface by default (
127.0.0.1:HOST:CONTAINER), and that is a security property rather than a style choice: a published port is DNAT’d by rules Docker inserts ahead of the host firewall’s own chains, so aufw deny 8080does not stop a port published on0.0.0.0. To reach the stack from another machine, name the interface explicitly (FERROEHR_BIND_HOST=0.0.0.0 docker compose up, or a single address). The database publishes no host port at all — see Connecting to the database.
Note
Third-party base images are pinned by digest (
name:tag@sha256:…), not by a mutable tag, so a pull always resolves the exact same image. Each service also declares a CPU and memory ceiling (deploy.resources.limits), so a local stack cannot exhaust the host; the server’s and the database’s are overridable for constrained machines.
Warning
PostgreSQL 18’s official image stores data in a major-version subdirectory, so the data volume mounts at
/var/lib/postgresql(the parent), not the pre-18/var/lib/postgresql/data. The bundled Compose file already does this correctly; keep the convention if you adapt it.
Container engines: Docker and Podman
The quickstart runs on Docker and on Podman. Both were verified first-hand on
2026-08-24: the core stack, the viewer and s3 profiles, and both
overlays boot to healthy under podman compose exactly as under
docker compose, with the same commands:
podman compose up -d --wait
Podman-specific notes:
podman composedelegates to an external Compose provider. With Docker’s own Compose CLI installed (the common case on a machine that has ever run Docker Desktop) you get identical Compose behaviour; with the Pythonpodman-composepackage, flag coverage differs — prefer the Docker Compose provider.- The default
podman machineon macOS ships with 2048 MiB of memory. That is enough for the quickstart and both overlays, but not for building the server image from source inside the VM (a single spec-crate compile at release optimization holds more than that). If you want the build-from-source developer path under Podman, resize the machine first:podman machine set --memory 8192. - Building from source under Podman (Buildah) is not part of the verified quickstart surface; the supported quickstart path is the published images.
The repository’s own CI and measurement lanes run Docker; the compose-driven
scripts (scripts/conformance.sh, the deployment probe, the UI journey
battery) are exercised against Docker only.
The isolation posture
Every service in every committed compose file drops all Linux capabilities
and adds back only what its entrypoint provably needs, sets
no-new-privileges:true, bounds its file descriptors, restarts unless stopped,
and keeps Docker’s default seccomp profile (the posture is the absence of an
unconfined override, so that absence is what a CI guard checks). No service is
privileged and none mounts the Docker daemon socket.
Most services additionally run a read-only root filesystem with a tmpfs for the
paths that must be writable. Two do not, and each says why in place: the S3
gateway writes its volume store, and the server container hits a real mutual
exclusion rather than an oversight: Compose refuses an inline config in a
read-only service, and that inline config is what makes this file standalone. A
deployment that mounts its configuration from a file instead can add
read_only: true and a tmpfs at /tmp. On Kubernetes the conflict does not
arise: the configuration arrives as a mounted ConfigMap and the chart sets
readOnlyRootFilesystem: true.
The quickstart’s authentication posture
The server configuration travels inside the Compose file and is written for evaluation, not for production:
- Basic auth with one user:
ferroehr/ferroehr(stored as an Argon2id hash), carrying theADMINandUSERroles. - The user is a professional
PERSON: the server stores the default demographic definitions as it boots, and the configuration sets no mapping key, so the default party mapping names them and SCIM Users, Groups and representation work. Theferroehr-provisionservice then creates the user’sPERSONthrough/scim/v2/Users, with a client credentials token the developmentidentity-issuersigns for the clientquickstart-scim. It stays up and reports healthy once the login is bound, sodocker compose up --waitreturns when the user can work. - RBAC disabled: so any authenticated caller may use every enabled
surface, including the admin API. The
ADMIN/USER/READONLYseparation is switched on by setting[authz.rbac] enabled = trueand giving each user an explicitroleslist; see Security. - Admin API enabled: so the optional viewer’s panels work.
- Management introspection enabled, with
infoandmetricsatprivate,prometheusatpublic, andenvandloggersatadmin_only. - Permissive CORS: any origin may call the API from a browser.
- No TLS: plain HTTP on port 8080.
- The
sandboxdeployment profile, declared in the inline configuration: the binary’s default, stated so the file says what it runs. The server names every separation it has not made on the boot banner, in the log and onGET /management/status, and the viewer raises a notice saying the deployment must not hold real patient data. That is the quickstart telling the truth about itself, not a fault. Seedeployment.profile.
Warning
These are development credentials and development defaults. Before exposing a server, replace the user store (or point it at an identity provider), turn RBAC on, restrict CORS, close the admin API, and terminate TLS in front of the server. The configuration reference and Security cover each of these.
To change any of it without editing the Compose file, add FERROEHR__*
variables to the ferroehr service’s environment: block; the environment
layer wins over the inline file. An array of tables, such as the Basic-auth
user store, is set by element index (FERROEHR__AUTH__BASIC__USERS__0__USER),
key by key over the file’s; replacing the users is usually clearer in the
inline config or your own mounted TOML file.
The patient identity source (FerroPIX)
FerroEHR keeps no patient-to-record cross-reference of its own by default. It
asks an IHE patient identity source over PIXm (ITI-83) which pseudonym the
clinical domain holds for a patient
([pixm]). The quickstart runs
FerroPIX as that source, pinned by tag and image-index digest (CI runs the
config check of every pinned image over its inline configuration), with four
services beside the server:
identity-issuer: a development OpenID Provider (NAV’smock-oauth2-server) that signs any client credentials request, athttp://localhost:8180/quickstart. It is not for anything real.ferropix: the PIX Manager, athttp://localhost:8090/fhir. Its configuration declares the pseudonymisation domainurn:oid:2.999.7.1with FerroEHR’s clientferroehras its consumer, so it mints a pseudonym the first time FerroEHR asks, and a synthetic identifier domainurn:oid:2.999.1.1fed by the clientquickstart-source.ferropix-postgresandferropix-key: FerroPIX’s own database, and a one-shot job that writes its sealing key into a volume, so the file carries no key.
The server’s [pixm] names the endpoint and the grant, and
[privacy] subject_namespaces declares the clinical domain. The server reads
FerroPIX’s CapabilityStatement at boot and does not start until it answers.
The issuer, FerroPIX and FerroEHR share the issuer’s network namespace. A
server accepts a plain-http issuer only on loopback
(RFC 8414 §2), and the
mock issuer writes the host it was asked on into every token, so all three
reach it at http://localhost:8180. The issuer service therefore publishes the
ports of all three and answers to the names ferroehr and ferropix on the
compose network.
To register a synthetic patient and ask for the pseudonym by hand:
SRC=$(curl -s -d grant_type=client_credentials -d client_id=quickstart-source \
-d client_secret=any -d 'scope=system/Patient.cud' \
http://localhost:8180/quickstart/token | jq -r .access_token)
curl -s -X PUT -H "Authorization: Bearer $SRC" \
-H 'Content-Type: application/fhir+json' \
'http://localhost:8090/fhir/Patient?identifier=urn:oid:2.999.1.1%7CH-1' \
-d '{"resourceType":"Patient","identifier":[{"system":"urn:oid:2.999.1.1","value":"H-1"}],"name":[{"family":"Synthetic"}]}'
Any conformant PIX Manager can take FerroPIX’s place: point [pixm.endpoint] url,
assigning_authority and [pixm.endpoint.credentials.oauth] at it.
The local EHR index
The other supported posture keeps the subject-to-EHR cross-reference in
FerroEHR ([pixm]): EHR_STATUS.subject
names a patient by its own namespace and identifier, and
GET /ehr?subject_id=…&subject_namespace=… finds the EHR by them. One
variable selects it, with no copy of the configuration to make:
FERROEHR_EHR_INDEX=local docker compose up
The server then runs the file’s ferroehr-config-local block, which differs
from ferroehr-config in [pixm] and [privacy] alone: the local map,
and no pseudonym namespace, so a subject reference is stored as the client
sends it:
curl -u ferroehr:ferroehr -X POST -i -H 'Content-Type: application/json' \
http://localhost:8080/ferroehr/rest/openehr/v1/ehr -d '{
"_type": "EHR_STATUS",
"archetype_node_id": "openEHR-EHR-EHR_STATUS.generic.v1",
"archetype_details": {"_type": "ARCHETYPED", "rm_version": "1.1.0",
"archetype_id": {"_type": "ARCHETYPE_ID", "value": "openEHR-EHR-EHR_STATUS.generic.v1"}},
"name": {"_type": "DV_TEXT", "value": "EHR Status"},
"subject": {"_type": "PARTY_SELF", "external_ref": {"_type": "PARTY_REF",
"namespace": "benchmark", "type": "PERSON",
"id": {"_type": "GENERIC_ID", "value": "1793131381", "scheme": "benchmark"}}},
"is_queryable": true, "is_modifiable": true}'
curl -u ferroehr:ferroehr -i \
'http://localhost:8080/ferroehr/rest/openehr/v1/ehr?subject_id=1793131381&subject_namespace=benchmark'
The identity services still start, and nothing asks them. Start without the variable to return to FerroPIX; the EHRs created on the local index keep their subject references, and the database refuses no stored row.
The OIDC variant (Keycloak overlay)
A second standalone file adds a ready-made identity provider, so you can
exercise bearer-token authentication without registering a client anywhere.
Download docker-compose.keycloak.yml from the same release, beside the base
file, and stack the two:
docker compose -f docker-compose.yml -f docker-compose.keycloak.yml up
That starts Keycloak with a small demo realm (ferroehr) defined inline and
points the server’s bearer validation at it. Basic auth from the base file keeps
working, so the server then advertises Basic, Bearer.
The overlay adds the realm’s [[auth.party]] table, which changes the party
mapping. On a volume the base quickstart already started, the server refuses
to boot on the changed mapping until the binding side table is refilled, so
add or remove the overlay with the server stopped and refill first:
docker compose -f docker-compose.yml -f docker-compose.keycloak.yml up -d keycloak
docker compose -f docker-compose.yml -f docker-compose.keycloak.yml stop ferroehr
docker compose -f docker-compose.yml -f docker-compose.keycloak.yml run --rm --no-deps ferroehr party-binding refill
The server accepts a token issuer only over HTTPS, or plain HTTP on a loopback
host, so Keycloak serves the issuer over TLS at
https://keycloak.localhost:8443/auth/realms/ferroehr. The containers resolve
keycloak.localhost through a network alias on the compose network, and a
browser resolves every *.localhost name to the loopback address, where the
published port lands, so both sides use one issuer URL with no hosts entry. On
the first up, a one-shot keycloak-tls service generates a development CA
and a certificate for that name into the keycloak-tls volume and discards
the CA’s private key; the server ([auth.tls] trust_roots_file) and the viewer
([oidc.tls] trust_roots_file) trust that CA beside the public ones.
docker compose down --volumes deletes the volume, and the next up
generates a new CA. Keycloak also answers plain HTTP on port 8081 for the token
call below, and the tokens it mints there name the HTTPS issuer. Keycloak’s
access tokens carry typ: JWT, so the overlay adds the realm as a third
[[auth.issuer]] table with profile = "keycloak"
(FERROEHR__AUTH__ISSUER__2__PROFILE=keycloak), beside the issuer the
quickstart’s Basic user binds under and the issuer of its SCIM client.
Start the viewer too and sign in at http://localhost:3000 as any user below:
docker compose -f docker-compose.yml -f docker-compose.keycloak.yml --profile viewer up
The viewer takes the authorization-code flow with PKCE through the
ferroehr-viewer client and calls the server with the user’s token. Your
browser does not trust the development CA, so it warns once on the Keycloak
page: accept the warning, or trust the CA, which
docker compose cp keycloak:/opt/keycloak/conf/tls/ca/ca.crt . copies out. A
browser that does not resolve *.localhost needs 127.0.0.1 keycloak.localhost
in its hosts file.
Every route checks SMART on openEHR scopes, so the realm puts them in every
token: user/composition-*.cruds, user/template-*.cruds and
user/aql-*.cruds grant a user every resource family, the service client gets
their system/ twins, and __ferroehr.platform is the product scope the ADMIN
and DEMOGRAPHIC APIs need. The roles below then decide.
The overlay also turns RBAC on, deliberately: an identity provider whose roles decide nothing is a login screen, not authorization. So the realm ships four users whose roles are load-bearing:
| User | Password | Realm roles | What it demonstrates |
|---|---|---|---|
ferroehr | ferroehr | ADMIN, USER | the full surface, admin API included |
clinician | clinician | USER | the clinical API without the admin routes |
auditor | auditor | USER, READONLY | reads succeed, every write is refused 403 |
nobody | nobody | none | an authenticated caller with no grant |
The server refuses a person whose login no demographic party carries, so the
overlay binds each of the four before you sign in. The realm import gives
every user a fixed id, which Keycloak puts in sub, and the one-shot
ferroehr-provision-keycloak creates a SCIM User for each with that id as its
login key, as a second client of the development issuer, which the one-shot
ferroehr-grant-keycloak first grants scim_provision in the CDR with the
realm’s identifier issuer, urn:ferroehr:keycloak-quickstart-login, as its
binding_issuer. The service
account acts for nobody, so it binds to no party.
Two confidential clients are defined, and both put ferroehr, the audience the
server checks, in every access token:
| Client | Secret | Grants |
|---|---|---|
ferroehr-viewer | ferroehr-viewer-quickstart-secret | the authorization-code flow with PKCE (S256), redirecting only to the viewer’s origin on port 3000, and the password grant so a token can be fetched by curl |
ferroehr-service | ferroehr-service-quickstart-secret | the client-credentials grant only |
Fetch a user’s token and call the API with it:
TOKEN=$(curl -s -d client_id=ferroehr-viewer -d client_secret=ferroehr-viewer-quickstart-secret \
-d username=ferroehr -d password=ferroehr -d grant_type=password \
http://localhost:8081/auth/realms/ferroehr/protocol/openid-connect/token \
| jq -r .access_token)
curl -H "Authorization: Bearer $TOKEN" -X POST -i \
http://localhost:8080/ferroehr/rest/openehr/v1/ehr
A service with no user behind it takes the client-credentials grant with
ferroehr-service. Its service account holds USER, so the token reaches the
clinical API and the admin routes refuse it with 403. Its system/aql-*
grant counts because the CDR grants the client query_system_wide, and it
creates EHRs because the CDR grants it commit_composition, the only way a
caller acting for no person commits: the ferroehr-provision-keycloak
one-shot writes its AGENT and a ROLE coding both operations through the
Demographic API, and the overlay admits them in [authz.grants] allowed
(FERROEHR__AUTHZ__GRANTS__ALLOWED)
(Operational policy).
The commit_composition grant names no template, so it commits no
COMPOSITION:
TOKEN=$(curl -s -d client_id=ferroehr-service -d client_secret=ferroehr-service-quickstart-secret \
-d grant_type=client_credentials \
http://localhost:8081/auth/realms/ferroehr/protocol/openid-connect/token \
| jq -r .access_token)
Warning
The realm, the client secret, the user passwords and the CA are demo values, served by a Keycloak in
start-devmode. For a real deployment, drop this overlay and point an[[auth.issuer]]table (orFERROEHR__AUTH__ISSUER__0__ISSUERand its siblings) at your own issuer over HTTPS.
The terminology overlay (FerroTERM)
FerroTERM is the Ferro family’s
FHIR terminology server: R4, R4B and R5 endpoints over a precomputed index, no
JVM, no database, one distroless image. The overlay
docker-compose.terminology.yml starts it beside the CDR and switches the CDR’s
terminology server on, so archetype value-set bindings resolve at commit and
AQL TERMINOLOGY() expands through it. It also switches on the read-only
/terminology/* extension API (FERROEHR__API__TERMINOLOGY, off by
default): a term, subsumption or value-set call there for a terminology the
bundled openEHR terminology does not carry is answered by FerroTERM, while
listing and describing terminologies stays with the bundle:
docker compose -f docker-compose.yml -f docker-compose.terminology.yml up
curl 'http://localhost:8090/r4b/metadata?mode=terminology'
It is an overlay rather than a profile for the same reason as the Keycloak and
observability ones: enabling it has to change the CDR’s environment, which a
profile cannot do. FerroTERM’s image carries its own health probe (the binary’s
healthcheck subcommand, since the distroless image has no shell), and the CDR
is declared to start only once that probe reports healthy, so docker compose up --wait returns with both serving.
Out of the box FerroTERM serves the licence-free shaped seed this repository
ships (two code systems and two value sets under the reserved example.test
domain, the content the conformance lane binds to), mounted read-only straight
out of the ferroehr image. No licensed terminology is distributed with
FerroEHR or FerroTERM. To serve a release you hold a licence for, build its
index once into the named volume and tell the server to open it:
FERROTERM_RF2=/path/to/SnomedCT_Release.zip \
docker compose -f docker-compose.yml -f docker-compose.terminology.yml \
--profile terminology-build run --rm ferroterm-build
FERROTERM_INDEX=/data/index \
docker compose -f docker-compose.yml -f docker-compose.terminology.yml up
The archive is mounted read-only and unpacked to a tmpfs that dies with the build container. FerroTERM’s loading page covers the other code systems and their build flags.
Three things the operator owns:
- The code-system licence. SNOMED CT needs an Affiliate Licence (free in Member countries, see snomed.org/get-snomed); LOINC, ICD and RxNorm have their own terms. Every surface that shows SNOMED CT content carries the notice its licence prescribes (clause 8.3.1) and the release version and date.
- Who can reach the server. The overlay publishes FerroTERM on the loopback
interface at port 8090 (
FERROEHR_TERMINOLOGY_PORT) so you can query it while developing. FerroTERM has no authentication and no rate limit of its own; a deployment that serves other machines puts a reverse proxy with both in front, or removes theports:block and lets the CDR be the only caller, which is what the hosted sandbox does. - FerroTERM’s licence. BUSL-1.1 from the same Licensor as FerroEHR: non-commercial production use is free, any other production use needs a commercial licence. Its README says which is which.
The CDR keeps its shipped fail-open posture: a binding the server cannot resolve
is accepted. FERROEHR__TERMINOLOGY__ON_ERROR=true turns an
unreachable server into a 422 refusal instead; the
terminology page
explains both. A code the server resolves as outside its value set is refused
with 422 under either posture.
Optional services (Compose profiles)
The core services are profile-less and start on every up. Further services
sit behind a Compose
profile and stay down until
you ask for them:
-
ferroehr-viewer(--profile viewer): the viewer on port 3000, pointed at the server inside the Compose network. Start the stack with it:docker compose --profile viewer up # → http://localhost:3000 (log in with ferroehr / ferroehr) -
seaweedfsandseaweedfs-init(--profile s3): an S3 gateway for largeDV_MULTIMEDIAexternalization (development and test only). Point the server at it and bring the profile up:export FERROEHR__RECORD__MULTIMEDIA__ENABLED=true export FERROEHR__RECORD__MULTIMEDIA__URL=http://seaweedfs:8333 # dev only; production S3 is HTTPS export FERROEHR__RECORD__MULTIMEDIA__BUCKET=openehr-multimedia docker compose --profile s3 up -d --wait ferroehr seaweedfsThe compose file passes the whole
FERROEHR__RECORD__MULTIMEDIA__*set through from your shell, so there is no file to edit, andseaweedfs-initcreates the bucket by issuing an idempotentCreateBucketagainst the gateway, which ships with none, and answers an S3 write into a missing bucket with403 AccessDenied, a reply that reads as a credentials problem and is not one. It reads the same bucket variable the server does, so the two cannot drift.To turn it off again,
unsetthose variables (or setFERROEHR__RECORD__MULTIMEDIA__ENABLED=false) and re-up: an unset variable is removed from the container’s environment rather than passed as empty, so the server falls back to its own default ofenabled = false.Confirm the server took them with
curl -s -u ferroehr:ferroehr http://localhost:8080/management/env | jq .multimedia("enabled": trueand a non-emptyendpointmean the wiring is right). In production, point the multimedia settings at a real, credentialed, HTTPS S3 endpoint instead; see S3 multimedia. -
ferroehr-backup-clinicalandferroehr-backup-party(--profile backup): onepg_dumpjob per pseudonymisation domain, run on demand rather than started with the stack:docker compose --profile backup run --rm ferroehr-backup-clinical docker compose --profile backup run --rm ferroehr-backup-partyEach writes a timestamped custom-format dump into its own host directory (
FERROEHR_BACKUP_CLINICAL_DIRandFERROEHR_BACKUP_PARTY_DIR, defaulting to./backups/clinicaland./backups/party). SetFERROEHR_BACKUP_USER="$(id -u):$(id -g)"and the files land owned by you; unset, the job runs as root inside the container with one capability,DAC_OVERRIDE, which is what writing a directory it does not own actually requires.Three dumps rather than one is the point: a single whole-database dump holds the clinical record, the identities of its subjects and the map between them, and whoever reads that file re-identifies every record in it. This stack runs one login credential, so it separates the artefacts and not the authority to produce them; Operations → Dump each domain separately is the production procedure, including why a backup credential needs
BYPASSRLS.
Two things that used to be profiles of this file are not any more. Both have to change the server’s configuration to be useful, which a profile cannot do, so each is a separate file instead:
- OIDC / Keycloak is the
docker-compose.keycloak.ymloverlay above (and, in a repository checkout, akeycloakprofile of the development override described below). - A terminology server is the
docker-compose.terminology.ymloverlay above, FerroTERM beside the CDR; the repository’s conformance stack additionally runs its own seeded server for the acceptance lane, see Terminology servers.
Port already in use?
Every published port is a variable, so a conflict never requires editing any
file. When docker compose up refuses with port is already allocated (or
address already in use), pick a free port and pass it:
FERROEHR_PORT=8081 docker compose up
The same works for the other ports (FERROEHR_VIEWER_PORT,
FERROEHR_PIX_PORT, FERROEHR_ISSUER_PORT, FERROEHR_S3_PORT; PostgreSQL publishes no host port — see
Connecting to the database). The defaults stay
fixed on purpose: every URL in this book assumes localhost:8080, and
Docker’s automatic ephemeral-port allocation exists only when a mapping
omits the host port entirely
— a server that silently moved ports would break every printed URL, so here
you always choose the port and always know it.
Note
On Windows the refusal reads differently:
Ports are not available: exposing port TCP 127.0.0.1:8080 … bind: Only one usage of each socket address … is normally permittedwhen another program holds the port, or… An attempt was made to access a socket in a way forbidden by its access permissionswhen the port sits in a Windows reserved range. The remedy is the same variable; to see the reserved ranges, runnetsh interface ipv4 show excludedportrange protocol=tcp. (The classic Windows collision — a natively installed PostgreSQL service holding 5432 — no longer affects the quickstart, which publishes no database port.)
Connecting to the database
The quickstart publishes no PostgreSQL host port: the server reaches the
database over the compose network, so nothing needs one, and a published
5432 collided with natively installed PostgreSQL (on Windows the installer
registers an auto-started postgresql-x64-* service). For a psql session,
no port is needed at all:
docker compose exec ferroehr-postgres psql -U postgres -d ferroehr
For a GUI client on the host (pgAdmin, DBeaver), add the db-publish
overlay, downloaded from the same release beside the base file:
docker compose -f docker-compose.yml -f docker-compose.db-publish.yml up
It publishes 127.0.0.1:5432 (retune with FERROEHR_DB_PORT, widen with
FERROEHR_BIND_HOST — the warning above applies).
Variables the compose files read
Set these in your shell (or an .env file) to retune without editing anything:
| Variable | Default | Effect |
|---|---|---|
FERROEHR_IMAGE | ghcr.io/ferrohealth/ferroehr:<release> | Server image to run. |
FERROEHR_POSTGRES_IMAGE | ghcr.io/ferrohealth/ferroehr-postgres:<release> | Database image to run. |
FERROEHR_VIEWER_IMAGE | ghcr.io/ferrohealth/ferroehr-viewer:<release> | Viewer image (the viewer profile). |
FERROEHR_BIND_HOST | 127.0.0.1 | Host interface every published port binds. |
FERROEHR_PORT | 8080 | Host port mapped to the server. |
FERROEHR_VIEWER_PORT | 3000 | Host port mapped to the viewer. |
FERROEHR_PIX_PORT | 8090 | Host port mapped to FerroPIX, the patient identity source. |
FERROEHR_ISSUER_PORT | 8180 | Host port mapped to the development OpenID Provider. |
FERROPIX_POSTGRES_PASSWORD | postgres | FerroPIX’s database superuser password (init only). |
FERROEHR_DB_PORT | not published | Host port for PostgreSQL, read only by the db-publish overlay (default 5432 there). |
FERROEHR_S3_PORT | 8333 | Host port mapped to the S3 gateway (the s3 profile). |
FERROEHR_BACKUP_CLINICAL_DIR | ./backups/clinical | Host directory the clinical dump job writes to (the backup profile). |
FERROEHR_BACKUP_PARTY_DIR | ./backups/party | Host directory the party dump job writes to. |
FERROEHR_BACKUP_USER | 0:0 (root in the container) | uid:gid the dump jobs run as. Set it to $(id -u):$(id -g) and the files land owned by you. |
FERROEHR_CPUS / FERROEHR_MEM | 4 / 4G | Server container resource ceiling. |
FERROEHR_DB_CPUS / FERROEHR_DB_MEM | 4 / 4G | Database container resource ceiling. |
PG_INIT_USER / PG_INIT_PASSWORD / PG_INIT_DB | ferroehr | App role, password, and database created by the DB image’s init script. |
POSTGRES_PASSWORD | postgres | Bootstrap superuser password (init only). |
FERROEHR__TELEMETRY__FORMAT | pretty | Log rendering for docker compose logs. Set json for log collectors. |
FERROEHR__TELEMETRY__FILTER | info | Log level filter. |
FERROEHR__DATABASE__MAX_CONNECTIONS | 10 | Server connection-pool ceiling. |
FERROEHR__SERVER__MAX_CONCURRENT_REQUESTS | 256 | Concurrent-request bound (503 with Retry-After past it). |
FERROEHR__RECORD__SIGNING__ENABLED | true | Version signing. |
A commercial licence token is not a passthrough variable: mount the signed
token file into the server container read-only and name its path with
FERROEHR__DEPLOYMENT__LICENCE_FILE (the compose file carries a commented example beside
FERROEHR__RECORD__SIGNING__ENABLED). Unset, the server runs under the embedded
non-commercial grant and reports which on GET /management/status.
The Keycloak overlay adds KEYCLOAK_PORT (default 8081),
KEYCLOAK_HOSTNAME, KEYCLOAK_ADMIN_USER and KEYCLOAK_ADMIN_PASSWORD (both
admin); the observability overlay adds GRAFANA_PORT (default 3000). The
FERROEHR__RECORD__MULTIMEDIA__* set is declared with no defaults on purpose, so an
unset key reaches the server as absent rather than as an empty string.
The server container is passed FERROEHR__DATABASE__URL (assembled from the database
variables), and its configuration file is the inline quickstart config,
delivered to /etc/ferroehr/ferroehr.toml, which FERROEHR_CONFIG names.
Any other setting from the configuration reference can be
added under the ferroehr service’s environment: block and takes precedence
over the file. Every variable uses the same FERROEHR__… grammar as the rest of
that reference; a single-underscore spelling is rejected at startup, not
ignored.
Repository development
A bare docker compose up in a checkout runs the same published-images
quickstart as the downloaded file. Building from the current sources is an
explicit opt-in: the docker-compose.dev.yml overlay, passed as a
second file,
switches the stack to the from-source developer posture:
docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build
That builds the server, database and viewer images from the current sources
(the :local tags) instead of pulling published ones, and replaces the inline
quickstart configuration with docker/ferroehr.dev.toml: three Basic users
(ferroehr, ferroehr-admin, ferroehr-readonly, all with password
ferroehr), RBAC enabled so the role separation is exercised, and trust for
the development Keycloak realm. The override also defines a keycloak profile
that imports the full development realm
(docker compose --profile keycloak up).
Downloaders of the standalone quickstart file never see any of this; it is
purely a convenience for working on FerroEHR itself, and it only ever
applies when its -f is passed — nothing merges it in silently.
Tip
A cold from-source build compiles at two parallel rustc jobs by default, and a release-optimization compile can hold several gigabytes per job. If the build gets OOM-killed on a memory-constrained host (observed on a 24 GB machine that was also running another stack), rerun it serially — slower, but it completes:
CARGO_BUILD_JOBS=1 docker compose -f docker-compose.yml -f docker-compose.dev.yml build
Build provenance
Images built by CI (and any docker compose build you drive from a checkout)
embed a build SHA reported at /management/info and on the
ferroehr_build_info metric. The build does not read .git; instead the SHA is
passed as the standard REVISION build argument, the same value that fills the
org.opencontainers.image.revision image label (CI uses the commit SHA; the
project’s own scripts export git rev-parse --short=12 HEAD). The argument is
declared by the files that carry build: blocks (the development override and
the conformance stack) not by the pull-only quickstart file. When no value is
supplied the identity falls back to the workspace version with an unknown
SHA; the build never fails for lack of it.
Observability overlay
A further standalone file adds a full local telemetry stack: an OTLP
collector, Prometheus, Tempo, Loki and Grafana with a provisioned
service-overview dashboard. Like the Keycloak overlay it travels inline, so
downloading it beside docker-compose.yml is enough:
docker compose -f docker-compose.yml -f docker-compose.observability.yml up
# Grafana → http://localhost:3000
The overlay reconfigures the server for that stack: it exports traces and
metrics over OTLP/gRPC (FERROEHR__TELEMETRY__OTLP__ENDPOINT with
FERROEHR__TELEMETRY__OTLP__METRICS=true), switches stdout to JSON lines
(FERROEHR__TELEMETRY__FORMAT=json), and enables the management surface on its own
internal port 9464 with info, metrics and prometheus reachable there. That
port is only published on the Compose network; Grafana’s 3000 is the sole
published port.
Metrics are pushed, not scraped, and that is a property of the bundled
image rather than a preference: grafana/otel-lgtm runs Prometheus with a
config file carrying no scrape_configs at all, and receives metrics over OTLP
from its own collector. A scrape job dropped into that image is read by nothing,
which is what an earlier version of this overlay did: every metric panel was
empty with no error anywhere. Since one meter provider feeds both readers, the
push carries every metric family the scrape endpoint would, and
/management/prometheus stays reachable on the Compose network for anyone who
wants to compare the two.
Grafana’s port 3000 is the same one the viewer would use, but the two
never collide by accident: the viewer only starts when you ask for the
viewer profile. If you want both at once, move one of them
(FERROEHR_VIEWER_PORT=3001 or GRAFANA_PORT=3001).
This is the easiest way to see the server’s metrics and traces without wiring up a collector by hand. See Operations for what the server exports and how to consume it in production.
Next
- Configuration reference — every setting you can pass.
- Kubernetes & Helm — the production deployment.
- Returning to the original state: resetting the stack to the configuration and empty database it shipped with.
Kubernetes & Helm
The ferroehr Helm chart deploys FerroEHR as a hardened, production-shaped
Kubernetes workload (non-root, read-only root filesystem, a NetworkPolicy that
admits its serving port only, its own user namespace) against an external
PostgreSQL 18. This chapter
covers installing it, verifying what you installed, the database role model it
expects, the security posture it pins, the health probes, the optional
integrations, and upgrades.
- Installing
- Configuration: one key, one file
- Database roles — who runs migrations
- Secrets and mounted config
- Security posture
- Health probes
- Authentication is required, and the chart says so before it installs
- Integrations
- Any server setting is reachable
- The common switches
- FerroEHR Viewer (a second workload, off by default)
- FerroPIX (the patient identity source, on by default)
- FerroTERM (a terminology server beside the CDR, off by default)
- FerroBRIDGE (the FHIR bridge, off by default)
- Per-domain backups (one CronJob per domain, off by default)
- Staying available while things move
- Upgrades
Important
The chart requires Kubernetes 1.36 or newer (
kubeVersion: ">=1.36.0-0"). That is a compatibility floor, not a support opinion: 1.36 is the release where the newest field the chart renders (hostUsers, which gives every pod its own user namespace) became stable, so nothing has to be version-gated into silence. Your nodes must be Linux with containerd 2.0 or newer, or CRI-O 1.25 or newer; without that support the pod does not start, which is the loud failure rather than a silent downgrade. SethostUsers: trueto opt out and share the host’s user namespace. What the user namespace buys is in Cluster hardening.
Important
There is no in-chart PostgreSQL. A CDR stores PHI, so its database must be an externally managed, backed-up, point-in-time-recoverable PostgreSQL 18 (a managed service or an operator-run cluster). The chart carries only the connection string, preferably from an existing Secret.
Installing
The chart is published to GHCR as an OCI artifact, beside the images it deploys. Create a Secret holding the app-role connection string, then install:
kubectl create namespace ferroehr
kubectl -n ferroehr create secret generic ferroehr-db \
--from-literal=FERROEHR__DATABASE__URL='postgres://ferroehr_clinical:***@pg-host:5432/ferroehr?sslmode=verify-full'
helm install ferroehr oci://ghcr.io/ferrohealth/charts/ferroehr \
--version 33.0.0 -n ferroehr \
--set config.deployment.profile=sandbox \
--set database.existingSecret=ferroehr-db \
--set image.tag=5.7.1-rc1 \
--set ferropix.enabled=false --set config.record.subject_index=local
config.deployment.profile=sandbox names the posture of a trial install,
which must not hold real patient data; the chart has no default and refuses to
render without one. A deployment holding patient data starts from the
production overlay instead. The last line opts in to
the in-instance EHR index, for a CDR run on its own.
By default the chart runs FerroPIX, the IHE patient identity source, beside the
CDR and points the EHR index at it, which needs FerroPIX’s own Secrets and an
issuer: see FerroPIX.
With neither, the render is refused and names both choices, as the server’s
boot would be.
Important
helm repo adddoes not work for this chart, and never will. There is no HTTP chart repository and noindex.yaml: OCI is the only publication path, so that there is exactly one place a chart version can exist. Every command takes theoci://reference above. Helm has treated OCI registries as first-class since 3.8, so the cost of this choice is real but narrow: a client older than Helm 3.8 cannot install this chart at all.
helm show, helm pull, helm template and helm upgrade all take the same
reference. To read the chart’s metadata without installing it:
helm show chart oci://ghcr.io/ferrohealth/charts/ferroehr --version 33.0.0
Pin two versions, not one
The chart version and the image tag move independently, and this is the thing
people get wrong first. --version selects the chart (its templates and
values schema); image.tag selects the server binary. The chart’s appVersion
is only the default for the second, and it names the release the chart was cut
against.
| Selects | Pin with | Line | |
|---|---|---|---|
| Chart version | templates, values schema, defaults | --version 33.0.0 | SemVer over the chart’s own contract |
| Image tag | the server binary | --set image.tag=5.7.1-rc1 (or image.digest) | the application’s SemVer line |
Always pin the image to an immutable version or, better, a @sha256 digest,
never latest. Pin the two deliberately: the config tree is passed through to
the server, so a key the chart’s defaults carry and your chosen image does not know
is a boot refusal (unknown configuration key …), which presents as
CrashLoopBackOff. A chart version is never republished with different content
(the publish lane refuses to overwrite one) so a pinned chart version is a fixed
artifact.
Note
A published chart version being immutable is a property of that refusal, not of the registry: an OCI tag is mutable, and
helm pushover an existing one would silently replace it. That is why a correction always ships as a new chart version, and why the6.0.3→6.0.4bump exists: the chart’sappVersionmoved to a new release while its own version had already been published.
Verifying what you installed
Everything published here is signed keyless through Sigstore, bound to this repository’s build identity, so every claim is checkable rather than asserted. Two different artifacts answer two different questions, and you can ask both.
Who signed this chart: a cosign signature over the chart’s digest:
cosign verify ghcr.io/ferrohealth/charts/ferroehr:<chart-version> \
--certificate-identity-regexp '^https://github\.com/FerroHEALTH/FerroEHR/\.github/workflows/build-chart\.yml@' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
Both flags matter. Without them cosign verify would accept a signature from
any identity in the transparency log; with them you are requiring that this
repository’s chart-publishing workflow, authenticated by GitHub’s OIDC issuer,
is what signed the bytes you pulled.
What it was built from: a SLSA build provenance attestation:
# the chart
gh attestation verify oci://ghcr.io/ferrohealth/charts/ferroehr:<chart-version> -R FerroHEALTH/FerroEHR
# the image it deploys
gh attestation verify oci://ghcr.io/ferrohealth/ferroehr:<tag> -R FerroHEALTH/FerroEHR
The publish lane reads both back from the registry before it reports success, so a run that produced only one of them fails instead of going green.
Important
Both commands verify what the publishing lanes produce now. A published artifact is never replaced, so if one you pinned answers
HTTP 404: Not Foundit carries no attestation, which is the honest state rather than a verification failure, and the fix is to pin a current version. Image signing landed during the3.17.4cycle, so image tags from before it have nothing to verify.
Note
helm install --verifyandhelm verifydo not apply: they check a PGP.provfile, and this chart ships none. That is deliberate: a.provneeds a long-lived private key in CI, which is the exact thing this project’s publishing lanes are built to avoid (the crates.io lane uses OIDC Trusted Publishing and holds no token at all). The two keyless commands above are what replace it: nothing to leak, and the same trust root as the images.
Your values file is checked before anything is applied
The chart ships a values.schema.json, so helm install, helm upgrade, helm lint and helm template refuse a values file that misspells one of the
chart’s own keys, gets a type wrong, or names a value outside the permitted set,
rather than rendering and silently ignoring it:
Error: values don't meet the specifications of the schema(s) in the following chart(s):
ferroehr:
- at '/image/pullPolicy': value must be one of 'Always', 'IfNotPresent', 'Never'
The config: tree is deliberately exempt. Those keys are the server’s
(see the configuration reference), the binary validates them
at boot, and copying that vocabulary into the chart’s schema would fork it: a
new configuration key would then be rejected by the chart until someone
remembered to widen the schema. So a mistake under config: is reported when the
pod starts, not when the chart renders; --skip-schema-validation disables the
check entirely if you ever need to bypass it.
The chart is also listed on Artifact
Hub, which renders the
chart’s metadata plus a security report over the four images the chart’s own
metadata lists: the server, the optional viewer, the backup jobs’ pg_dump
image, and FerroTERM.
Warning
Between releases the chart’s
configdefaults track development and can be ahead ofappVersion’s image. Check the pairing before you install, with the image itself as the authority:helm template ferroehr oci://ghcr.io/ferrohealth/charts/ferroehr --version 33.0.0 \ -s templates/configmap.yaml --set database.existingSecret=ferroehr-db \ | sed -n '/ferroehr.toml/,$p' | sed '1d;s/^ //' > /tmp/ferroehr.toml docker run --rm -v /tmp/ferroehr.toml:/etc/ferroehr/ferroehr.toml:ro \ -e FERROEHR_CONFIG=/etc/ferroehr/ferroehr.toml \ -e FERROEHR__DATABASE__URL=postgres://u:p@db:5432/ferroehr \ --entrypoint /usr/local/bin/ferroehr ghcr.io/ferrohealth/ferroehr:<tag> config checkExit 0 means the image accepts the rendered configuration. A reported unknown key means the image is older than the chart’s defaults: use a newer tag, or set that key to
nullfor this deployment. A published chart is checked this way before it is published: the publish lane refuses to ship a chart whose defaults its ownappVersionimage rejects, and it repeats the check against every values overlay the chart carries, so this matters mainly when you install from a checkout ofmain, or pin an image older than the chart.
That install alone boots but answers 401 to everything, deliberately:
config.auth.enabled is on and no mechanism is configured yet, and a server that
authenticates nothing is not a safe default. Add a config.auth.issuer table
(with its kind and audience) or a config.auth.basic.users entry before expecting a
request to succeed. Every route also checks the SMART on openEHR scopes of the
caller: a Basic user’s scopes, a token’s scope claim.
Configuration: one key, one file
The chart carries the server’s whole configuration under one key, config,
rendered into a ferroehr.toml ConfigMap mounted at
/etc/ferroehr/ferroehr.toml. Its keys are therefore exactly the TOML keys of
the configuration reference (config.server.listen,
config.authz.rbac.enabled, config.deployment.spec_profile, and so on) so anything
that reference documents can be set without waiting for a bespoke chart key.
Secret-bearing keys are the one exception: a credential never reaches that ConfigMap. A ConfigMap is not a sensitive object: it is readable with namespace read, quoted wholesale into issues and support tickets, collected by backup tooling that skips Secrets, and not covered by Secret encryption at rest. The chart therefore classifies every key it renders and takes one of two actions.
A secret the chart routes: record.signing.key_passphrase,
record.multimedia.secret_access_key, a Basic user’s password_hash, a terminology
client_secret, and the two URL-shaped ones (database.url and
audit.fhir_feed.endpoint.url) has a secrets: key of its own, so
a value under config: is a mistake and fails the render, naming the key that
belongs there:
Error: execution error at (ferroehr/templates/deployment.yaml:…):
refusing to render a secret into the ConfigMap (a ConfigMap is not a sensitive object …):
- config.record.signing.key_passphrase: set `secrets.signingKeyPassphrase` instead
A secret the chart cannot route moves the whole rendered ferroehr.toml into
the chart’s Secret, and no ConfigMap is created at all, the safe direction,
taken automatically. No key reaches that branch today: every credential the
server models now has either a *_file sibling or a Secret-borne environment
route. The branch exists for the next one that does not, so that a secret key
added upstream fails safe instead of landing in a ConfigMap. When it is taken, the
install notes say which object your release used, and the configuration is read
with:
kubectl -n ferroehr get secret ferroehr-config \
-o jsonpath='{.data.ferroehr\.toml}' | base64 -d
Classification is by name shape, not by a list of today’s keys: any key whose
name carries password, passphrase, secret, credential, private_key,
api_key or a trailing token is treated as a credential unless it ends in
_file, _path or _dir (those hold a path), and the four URL-shaped secrets are
matched by path, because url carries no shape a classifier can see. That is what
makes a secret key added to the server’s configuration tree in a future release
move to the Secret rather than leak silently. extraEnv is the escape hatch for
anything neither config: nor secrets: surfaces.
The deployment profile and the access log
The chart’s values declare three keys, so a rendered ferroehr.toml always
says what it runs:
config.deployment.profile: no default; the chart refuses to render until it namessandboxorproduction, so an installation that follows a quickstart instead of the instructions for use does not end up in the sandbox posture by omission (EHDS Annex II 1.2).sandboxmust not hold real patient data: the server names every separation it has not made on its boot banner and on/management/status, and reports the profile onGET /ferroehr/rest/status. A deployment holding patient data setsproduction, which refuses to start while a separation is missing and not named inconfig.deployment.accepts. The chart defaults leave several open: one DSN for every domain, an emptyconfig.privacy.subject_namespaces, the server’sopendefaults forconfig.audit.fail_modeandconfig.authz.rbac.ehr_access_default,config.database.migrations: applyon the runtime credential, and a plaintext listener behind the ingress; seedeployment.profile. The chart’s production overlay closes them and accepts the plaintext listener by name.config.audit.store.retention: unset. Set it in place ofconfig.audit.store.retentionwhen the horizon must be exact in calendar years, such as3for a German SGB V § 309 controller withconfig.audit.store.sgb_v_309_controller: true.- The category map is no chart value: it is the audit category register, an admin register you write through the admin API once the server runs. Until then the category map FerroEHR ships applies. The access delay is an admin register too.
The Audit page has the category vocabulary and the retention floors and ceilings the server enforces at boot.
The production overlay
The chart ships values-production.yaml beside values.yaml. Layered over
the defaults, it runs config.deployment.profile: production with every
separation that profile checks made, except one it accepts by name:
| Gap | In the overlay |
|---|---|
shared_credential | the clinical and party domains each read their own Secret (database.existingSecret, database.party.existingSecret), and the audit domain reads database.audit.existingSecret |
shared_cluster | yours to make: the server compares the cluster each domain pool reaches, so the separation is three DSNs on three PostgreSQL clusters. Each cluster is prepared on its own migrator: the migration Job applies the schema in every cluster, and the server verifies it there, on database.<domain>.migrateExistingSecret (database.migrateExistingSecret for the clinical cluster) |
migrate_on_runtime_credential | config.database.migrations: verify, with migrations.job.enabled preparing the schema on database.migrateExistingSecret |
open_subject_namespace | config.privacy.subject_namespaces declared |
audit_off, audit_fails_open | the audit trail on with its local store, config.audit.fail_mode: closed |
no_category_map | the shipped category map (the default), or templates and archetypes of your own in the audit category register, which refuses a write that opens the gap |
open_ehr_access_default | config.authz.rbac.ehr_access_default: restricted |
auth_off | OIDC authentication on |
rbac_off | the role gate on (config.authz.rbac.enabled: true, the chart’s default) |
plaintext_audit_feed, plaintext_object_store | the audit FHIR feed and the multimedia store off; an https:// URL for either when you turn it on |
plaintext_listener | accepted by name: TLS ends at the Ingress (ingress.tls), the pod listens in plain HTTP, and the NetworkPolicy admits only the ingress controller’s namespace (networkPolicy.ingressFrom, with networkPolicy.ingressAllowAll: false) |
The database hop is TLS with the server’s certificate checked: end every DSN in
?sslmode=verify-full&sslrootcert=/etc/ferroehr-db-ca/ca.crt, and put the CA
your database certificates chain to in a ConfigMap under the key ca.crt. The
overlay names it ferroehr-db-ca (database.caConfigMap), and the chart mounts
it read-only at /etc/ferroehr-db-ca in the server, the migration Job and the
backup CronJobs. A CA the image already trusts needs no ConfigMap; leave
database.caConfigMap empty then.
Every Secret name, the CA ConfigMap name, the identity provider, the pseudonym namespace, the host, the TLS Secret and the ingress controller’s namespace in it are examples. Replace them in a values file of your own and pass both:
helm pull oci://ghcr.io/ferrohealth/charts/ferroehr --version 33.0.0 --untar
helm install ferroehr ./ferroehr -n ferroehr \
-f ./ferroehr/values-production.yaml -f my-site-values.yaml
A name you forget to replace fails loudly: a Secret that does not exist keeps
the pod from starting, and the server refuses to start under production
while a separation is open, naming each gap and its remedy. The chart’s
validation renders the overlay and asserts each separation above, and its
boot check has the server evaluate the posture from the rendered
configuration. Neither reaches a database. The deployment probe
(scripts/deploy-probe-k8s.sh --production-only) installs the overlay on a
real cluster against three PostgreSQL clusters that refuse a connection without
encryption: it observes the migration Job prepare all three and the server start
under production with plaintext_listener as its only gap, both over
sslmode=verify-full against the CA the overlay mounts, and the server refuse
all three domains on one cluster by naming shared_cluster. Against your own databases, shared_cluster is first
judged when the pod starts.
Database roles — who runs migrations
The chart expects a PostgreSQL role model in which the runtime pod is never a superuser. Four roles cover the single-domain posture:
| Role | Purpose |
|---|---|
| owner | owns the database (provisioning only) |
ferroehr_migrator | runs the append-only schema migrations |
ferroehr_clinical | day-to-day reads and writes; the running pod connects as this |
ferroehr_clinical_reader | read-only, for replicas and reporting |
Migrations are DDL, so whoever applies them can rewrite the schema. Two flows,
and config.database.migrations is where you choose:
- (a) The pod migrates itself (
config.database.migrations: apply, the default). Simplest for single-tenant or small deployments, and the runtime DSN must then be a member offerroehr_migrator, so the serving process holds DDL rights on the clinical schema for its whole life. - (b) A separate migration step (
config.database.migrations: verify) under a migrator DSN, with the pods on a narrow runtime DSN. The server issues no DDL at all and refuses to boot against a database that has not been migrated to its build, so the two versions cannot race the schema. Recommended for production. It needsdatabase.migrateExistingSecretas well, for the reason the paragraph further down gives:verifyreads all four bookkeeping tables, which a narrow runtime role cannot do.
Set migrations.job.enabled and the chart runs (b) for you as a
pre-install,pre-upgrade hook Job that runs ferroehr db migrate. Helm creates
it before the Deployment and waits for it, so a failed migration fails the release
rather than rolling pods against a schema that was never applied. The Job
authenticates from its own Secret (deliberately a different credential from
database.existingSecret) and rendering is refused if you enable it without one:
database:
existingSecret: ferroehr-db # postgres://ferroehr_clinical:…
migrateExistingSecret: ferroehr-db-migrator # postgres://ferroehr_migrator:…
migrations:
job:
enabled: true
existingSecret: ferroehr-db-migrator # the same credential, its own Secret mount
config:
db:
migrate: verify
The demographic domain takes its own credential the same way, and that is what turns the schema separation into a credential separation. One more goes with them, because no runtime credential can prepare the schema:
database:
existingSecret: ferroehr-db # postgres://ferroehr_clinical:…
party:
existingSecret: ferroehr-db-party # postgres://ferroehr_party:…
migrateExistingSecret: ferroehr-db-migrator # postgres://ferroehr_migrator:…
All three are mounted as files, so no DSN enters the pod’s environment. Unset
the demographic one and that pool shares the first, which is
the schema-only posture, still separated and still verified at boot. Creating
the four domain
roles is a database step the chart cannot do for you;
Operations has
the statements and what ferroehr db verify reports.
database.migrateExistingSecret is what the pod prepares the schema with, and
it is required as soon as database.existingSecret is anything narrower than a
credential reaching every schema. Preparation spans them all at once: the DDL
of all four migration sets under config.database.migrations: apply, all four
_sqlx_migrations bookkeeping tables under verify. So verify is not the
exception, and this is not only about the domain roles. ferroehr_clinical holds
one pseudonymisation domain, ferroehr_clinical holds the clinical schemas, and
neither can read the party bookkeeping at all; without
this value the pod is refused on the first set it cannot read and does not
start. It is normally the same credential
migrations.job.existingSecret carries; the Job needs its own copy because it
runs before the Deployment exists. Unset, preparation falls back to
database.existingSecret, which is what a single-credential install has
always done.
database.migrateExistingSecret reaches one database. A domain whose DSN
reaches another database or cluster is prepared there, on that database’s own
migrator, which database.<domain>.migrateExistingSecret names:
database:
party:
existingSecret: ferroehr-db-party # postgres://ferroehr_party:…@party-db/…
migrateExistingSecret: ferroehr-db-party-migrate # postgres://ferroehr_migrator:…@party-db/…
The migration Job mounts it and applies the schema in that database; the server
mounts it and verifies the schema there under config.database.migrations: verify. The
domain’s own role cannot do either, because it holds one domain and cannot read
the ext set’s bookkeeping. The server refuses to start when the two DSNs of
one domain reach different databases.
Give the migrator DSN a short lock_timeout
(?options=-c%20lock_timeout%3D5s) so DDL blocked behind live traffic fails
fast instead of queueing; migrations.job.activeDeadlineSeconds is the hard
ceiling on the step either way. migrations.runByMigratorRole remains an
informational marker surfaced in the install notes, which also tell you when
the Job is enabled but config.database.migrations is still apply, a combination
that buys nothing, because the server would migrate itself anyway.
You can check the posture from outside the cluster at any time: ferroehr db verify exits 0 only when the database carries exactly that build’s migrations,
and issues no DDL doing it.
Secrets and mounted config
Some material is file-shaped rather than a value: ATNA TLS certificates, terminology-server client certificates, a JWKS blob, the PGP
signing key, and a commercial licence token. Supply these under config.files,
whose entries the chart mounts read-only from a Secret at /etc/ferroehr/<key>
(and which is deliberately not part of the rendered TOML); point the matching
in-TOML *_file / *_path key at the mounted path. A commercial licence goes
the same way: put the token the licensor issued under config.files as
licence.asc and set config.deployment.licence_file to /etc/ferroehr/licence.asc;
GET /management/status then reports licence.use = "commercial". Without
it the pod runs under the non-commercial grant every build embeds (see
Licensing & legal). Secret-bearing scalar values go under
secrets:: signingKeyPassphrase,
auditFhirFeedUrl, basicUserPasswordHashes,
multimediaAccessKeyId, multimediaSecretAccessKey,
terminologyClientSecret, and the database DSN comes from
database.existingSecret (key database.existingSecretKey, default
FERROEHR__DATABASE__URL). None of these ever reach the ConfigMap, and all but two are
delivered as mounted files rather than environment values.
How a secret reaches the process differs by whether the configuration key has a
*_file sibling, and the difference is a security one: an environment variable
is readable through /proc/<pid>/environ and is inherited by every child
process, so the OWASP Kubernetes Security Cheat
Sheet
asks for a read-only volume instead.
| Secret | How the chart delivers it |
|---|---|
| the database DSN | mounted at /etc/ferroehr-secrets/database.url, reached through FERROEHR__DATABASE__URL_FILE, projected from database.existingSecret when you supply one, so the credential that reaches patient data never enters the pod’s environment |
secrets.signingKeyPassphrase | mounted at /etc/ferroehr-secrets/record.signing.key_passphrase |
secrets.multimediaSecretAccessKey | mounted at /etc/ferroehr-secrets/record.multimedia.secret_access_key |
secrets.basicUserPasswordHashes (per user-id) | mounted at /etc/ferroehr-secrets/auth.basic.users.<user>.password_hash; the chart injects the matching password_hash_file |
secrets.terminologyClientSecret | mounted at /etc/ferroehr-secrets/[terminology].oauth.client_secret; the chart injects the matching client_secret_file into config.[terminology].oauth, which must declare the grant |
secrets.auditFhirFeedUrl | env; audit.fhir_feed.endpoint.url is the only credential-bearing key with no *_file sibling |
secrets.multimediaAccessKeyId | env; an access key id is not secret (it is reported unredacted by the management surface’s env endpoint) |
The mount is read-only, 0440, owned root:65532 so the non-root process reads
it through the group bit, and it is deliberately not a subPath mount,
because a subPath-mounted Secret never receives updates and a rotation would
not propagate.
Note
A Basic user’s Argon2id hash is delivered as a mounted file like the others: put it in
secrets.basicUserPasswordHashesunder the user-id, declare only theuserunderconfig.auth.basic.users. Settingpassword_hashunderconfig:is refused, and the error names the key that carries it. An Argon2id hash is not a plaintext password, but it is an offline cracking target, which is what the boot-time OWASP parameter floor exists to make expensive.
Security posture
The chart pins the following, and its render gate holds it: the Restricted fields are asserted per container for every workload in the render, the two isolation settings are asserted to agree across a release’s workloads, and the golden renders pin the exact bytes so a changed default fails a diff.
| Field | Value |
|---|---|
runAsNonRoot | true (uid/gid 65532, the distroless nonroot user) |
readOnlyRootFilesystem | true (a writable emptyDir is mounted at /tmp) |
allowPrivilegeEscalation | false |
capabilities.drop | [ALL] |
seccompProfile.type | RuntimeDefault (pod and container) |
hostUsers | false; the pod gets its own user namespace |
supplementalGroupsPolicy | Strict; only the groups the manifest names |
| ServiceAccount token | not mounted (the workload never calls the K8s API) |
enableServiceLinks | false (see below; not a preference) |
| NetworkPolicy | ports narrowed to the API (and management) port; sources admitted unless you narrow them with networkPolicy.ingressFrom; set networkPolicy.ingressAllowAll: false to have the chart refuse the open state (see §Ingress) |
The whole set satisfies the Pod Security Restricted profile, and the deployment probe harness reads it back off a running pod rather than off the rendered manifest: the container runtime’s own spec for the security context, the API server for admission, the EndpointSlice for readiness.
Satisfying the profile and enforcing it are different things, and only one of them is yours to do. Enforcement comes from a label on the namespace, which a chart cannot set for a namespace it does not own, so label it, or the posture above is a convention nothing checks and nothing fails when a future change regresses it:
kubectl label --overwrite namespace ferroehr \
pod-security.kubernetes.io/enforce=restricted \
pod-security.kubernetes.io/enforce-version=latest
With the label in place the API server refuses a non-compliant pod outright (Pod Security Admission), which is a stronger guarantee than any check the chart can make about itself. The install notes print this as a prerequisite for the same reason.
enableServiceLinks: false is load-bearing, not hygiene. The kubelet injects a
set of Service link environment
variables
for every Service in the namespace, and for a Service named ferroehr* those
land inside the server’s reserved FERROEHR_ namespace, whose strict boot-time
sweep rejects unknown variables and refuses to start. Leaving service links on
makes every install crash-loop.
Egress restriction is opt-in (networkPolicy.egress.enabled) because egress
targets (the database, broker, terminology server) are deployment-specific;
when you enable it the chart always admits DNS and you add rules for the rest.
In the default posture the server’s only outbound traffic is DNS and PostgreSQL,
so those two rules suffice; each integration you switch on adds a target, and a
blocked one can fail silently. The full destination table is in
Namespaces, network & policy.
Two limits worth stating plainly. First, with networkPolicy.ingressFrom empty
the rendered ingress rule carries no from selector, and a rule without from
admits every source, other namespaces included. Only the port list is
narrowed in that state, so set ingressFrom to your ingress controller for a PHI
workload, and set networkPolicy.ingressAllowAll: false if an open ingress rule
must never render at all; the full treatment is
§Ingress.
The viewer’s own policy carries the same pair under viewer.networkPolicy.
Second, a NetworkPolicy is only as real as the CNI that implements it:
on a cluster whose network plugin does not enforce NetworkPolicy the object is
documentation rather than a control, and nothing in Kubernetes reports that.
Confirm it by attempting a connection the policy should refuse.
The database-side controls (the server certificate behind sslmode=verify-full,
pgaudit, at-rest encryption, WAL archiving / PITR) belong to whoever provisions
PostgreSQL; the chart mounts the CA (database.caConfigMap) but cannot enforce
the rest. See
Operations.
TLS at the pod
The production overlay ends TLS at the Ingress and accepts plaintext_listener
by name. To close that gap instead, the server terminates TLS itself
(config.server.tls), and every client the chart wires to it follows: the
viewer and FerroBRIDGE call https://<release>:<service.port>, the kubelet
probes over HTTPS, the Service declares appProtocol: https, and a
ServiceMonitor that scrapes the API port uses https too.
The clients check the server’s certificate against a CA you name in
service.tls.caExistingSecret. The certificate must carry the Service name
(the release’s full name, ferroehr for a release called ferroehr) as a DNS
SAN, which no public CA issues, so the chart refuses to render a TLS listener
beside an enabled viewer, FerroBRIDGE or API-port scrape while that value is
empty. Name a Secret that holds the CA certificate alone: every pod and the
ServiceMonitor that read it then read no private key, and a ServiceMonitor in
another namespace reads its own copy there. A cert-manager Certificate
writes the key pair and the CA into one Secret (tls.crt, tls.key,
ca.crt); copy ca.crt out of it (trust-manager’s Bundle does this) rather
than naming that Secret. The Ingress in front of the TLS listener must reach
it over HTTPS too, and how a controller is told so is controller-specific, so
the chart refuses to render the Ingress with server TLS on until
ingress.backendTlsAnnotations names it:
config:
deployment.accepts: [] # nothing left to accept for the listener
server:
tls:
certificate_file: /etc/ferroehr-tls/tls.crt
key_file: /etc/ferroehr-tls/tls.key
reload_interval: 1min
extraVolumes:
- name: server-tls
secret:
secretName: ferroehr-server-tls
defaultMode: 0440
items:
- { key: tls.crt, path: tls.crt }
- { key: tls.key, path: tls.key }
extraVolumeMounts:
- { name: server-tls, mountPath: /etc/ferroehr-tls, readOnly: true }
service:
tls:
caExistingSecret: ferroehr-server-ca # ca.crt alone
ingress:
backendTlsAnnotations: # ingress-nginx
nginx.ingress.kubernetes.io/backend-protocol: HTTPS
When cert-manager renews the certificate, the kubelet updates the mounted
files and the server serves the new pair within
config.server.tls.reload_interval (a minute above; unset, only SIGHUP
reads the files again), with no restart; a renewed pair that fails to load is logged and the old one stays in
service. A rotated client CA (client_ca_file, for client_auth) is picked up
on the same interval, and the connections already open keep the trust anchor
they were verified against.
The viewer reads the mounted CA through its own cdr.tls.trust_roots_file,
beside the image’s roots. FerroBRIDGE reads it through SSL_CERT_DIR, which
the chart sets to the image’s system roots plus the mounted CA, so its other
peers that verify through the platform verifier stay trusted. For an OIDC
issuer whose certificate comes from a private CA, name a Secret holding that
CA in viewer.auth.oidc.caExistingSecret (key viewer.auth.oidc.caExistingSecretKey,
ca.crt by default): the chart mounts it and points the viewer’s
[oidc.tls] trust_roots_file at it. For the server’s own [auth]
issuer behind a private CA, name the Secret in auth.caExistingSecret (key
auth.caExistingSecretKey, ca.crt by default): the chart mounts it and points
the server’s [auth.tls] trust_roots_file at it. The ServiceMonitor reads the Secret from its own namespace, and
the prometheus.io/scheme: https pod annotation follows the listener when
metrics.enabled is set. With config.server.tls.client_auth: required the
kubelet probes cannot present a client certificate, so the chart refuses to
render it; keep it at none or optional.
config.management.listen stays plain HTTP on its own listener.
Health probes
All three probes use the always-on, unauthenticated, PHI-free health routes on the main HTTP port. They need no configuration at all: no management surface, no access level, nothing to forget:
| Probe | Route | Contract |
|---|---|---|
| liveness | /health/liveness | 200 while the process is up; touches no dependency |
| readiness | /health/readiness | 200 (up or degraded) or 503 (down, booting or draining): checks the database ping, migrations applied and the audit sender, each bounded at one second |
| startup | /health/liveness | the same constant, with a long failure threshold, so a slow first boot is not killed mid-migration |
That split is deliberate: a database outage must fail readiness (the pod stops receiving traffic) and never liveness (which would restart the container in a loop).
Note
There is no
execprobe option. One existed and was removed: it ran the binary’shealthchecksubcommand, which then asked the openEHR status document rather than a health route, so readiness never touched the database and a pod with a dead database reported Ready and took clinical traffic. The subcommand now asks/health/readiness, and thehttpGetprobes above remain what the chart runs.
Warning
Migrations run only at boot, so a replaced or wiped database leaves the pods NotReady until something migrates it. Readiness reports the
migrationsindicatordown(its detail on/management/health:core schema tables missing (migrations not applied)) whiledbreadsup: the pod reaches PostgreSQL, finds no schema, and does not migrate again, because migration is a startup step. Liveness keeps passing (correctly: the process is healthy), so the kubelet never restarts the container and the Deployment sits with no ready replicas and no error in the logs after the first one:kubectl -n ferroehr get pods # Running, not READY curl -s http://ferroehr:8080/health/readiness # 503, "migrations" down, "db" up kubectl -n ferroehr rollout restart deploy/ferroehrThe check re-tests the schema on every probe, so a pod recovers on its own within one
probes.readiness.periodSecondsof the schema existing; an untouched pod returns to ready, with no restart, once anything else has migrated. What needs the restart is the case where the only thing that would migrate is the pod itself.That is what makes the interaction with flow (b) load-bearing: when migrations run out of band, the migration step must complete before the Deployment rolls, or the first pods sit unready waiting for a schema.
migrations.job.enableddoes exactly that, as a hook Helm waits on. Durable storage is the other half: anemptyDir-backed or otherwise disposable PostgreSQL puts a clinical repository one node eviction away from this state.One recovery path does not self-heal, and it is worth knowing before you try it: restoring or dropping part of the schema set. A restore that brings back some of a domain’s relations without its migration bookkeeping makes the next migration run fail permanently with
relation "version" already exists: the pod crash-loops, and restarting it retries the same failure. Recreate the whole database rather than one schema.
The management surface is independent of the probes and stays ops-only
(/management/info, /prometheus, /metrics, /env, /loggers,
/flamegraph). Unlike the bare binary, the chart ships
config.management.enabled: true with every endpoint off, so nothing is
exposed until you opt one in. Set
config.management.endpoints.prometheus: public plus metrics.enabled=true
to add the prometheus.io/* scrape annotations; set config.management.listen
to serve the surface on its own internal listener, so /management is never
reachable on the clinical API port. The health probes stay on the main port
regardless of all of this, and the install notes warn you if you add the scrape
annotations while the endpoint is still off.
Those annotations are honoured by a Prometheus that discovers targets in its own
scrape configuration. An operator-managed Prometheus
(kube-prometheus-stack) ignores them and selects targets through
ServiceMonitor
objects instead, so set metrics.serviceMonitor.enabled=true there;
metrics.serviceMonitor.labels is where the label your Prometheus’
serviceMonitorSelector matches on goes. It needs the monitoring.coreos.com
CRDs installed first, or the install fails on an unknown kind.
Authentication is required, and the chart says so before it installs
config.auth.enabled defaults to true, and the server requires at least one
mechanism with it: a 401 challenge has to name a scheme the server actually
implements (RFC 9110 §11.6.1),
so it exits rather than run as an openEHR API that can only refuse every request.
The chart therefore refuses to render a values file that enables
authentication without configuring one, so helm install stops with an
actionable error instead of reporting success and crash-looping:
Error: execution error at (ferroehr/templates/deployment.yaml:...):
config.auth.enabled is true but no authentication mechanism is configured...
Pick one:
config:
auth:
issuer:
- issuer: https://keycloak.example.org/realms/ferroehr
kind: persons
profile: keycloak
audience: [ferroehr]
party:
- issuer: https://keycloak.example.org/realms/ferroehr
identifier_issuer: urn:example:staff-login
identifier_type: uuid
authz:
rbac:
role_issuers: [https://keycloak.example.org/realms/ferroehr]
party_binding:
provider: { issuer: "urn:oid:2.16.528.1.1007.3.3", id: "12345678" }
or Basic auth, whose password hashes go in secrets.basicUserPasswordHashes
while the user stays under config.auth.basic.users; its scopes and roles
are grants on its PERSON, and config.authz.rbac.first_admin names the
Basic user that holds admin_role. A person’s token is admitted only through
a client the CDR grants sign_in_persons
(Operational policy).
A Basic user is a person: each maps to the binding key of its PERSON under
config.authz.party_binding.basic_user, under the identifier issuer of a
config.auth.party table (see deploy/helm/ci/basic-auth-values.yaml).
The server stores FerroEHR’s
default demographic definitions as it
boots, and with no mapping key set the party mapping names them, so a chart
install needs no list of definitions. A party mapping that names templates
of your own needs them in the definition store before the server boots,
which refuses a mapping whose templates it lacks. definitions.files lists
them, each a name ending in .opt (OPT 1.4) or .adls (ADL 2) and its
content: the chart puts them in a ConfigMap of their own and runs
ferroehr definitions load on them as an init container, with the server’s
image, configuration and secrets, in the order listed. A definition already
stored with the same text is left alone, so the step runs at every pod
start, and one stored under its id with other text fails the pod. The list
is empty by default. deploy/helm/ci/basic-auth-values.yaml keeps the
default mapping and provisions its user through /scim/v2/Users (see
[auth.scim]).
A persons issuer with sender_constraint: required runs on any number of
replicas: each records the DPoP proofs it accepts in the database they all
share, so a proof replayed to another replica is refused there (RFC 9449
§11.1).
Warning
config.auth.enabled: falsemakes the chart render, and serves every request unauthenticated. On a repository holding patient data that is a development-only choice; the chart makes you state it explicitly rather than reaching it by omission.
Integrations
Any server setting is reachable
The chart renders its config tree verbatim into ferroehr.toml. So
config.<the.toml.path> sets any key in the
configuration reference, including keys this page and
values.yaml never mention. There is no allow-list to extend and no chart
release to wait for:
# values.yaml — [record.query] plan_cache_capacity, which values.yaml never names
config:
query:
plan_cache_capacity: 512
helm upgrade ferroehr oci://ghcr.io/ferrohealth/charts/ferroehr \
--version 33.0.0 -n ferroehr --reuse-values \
--set config.record.query.plan_cache_capacity=512
Turning something off is the same edit in reverse: remove the key (or set the
integration’s enabled back to false) and upgrade. The tables below are a
curated starting point for the switches most deployments want; they are not
the boundary of what the chart supports.
Two things make this safe to rely on:
- A typo is a boot refusal, not a silent default. The server sweeps its configuration strictly and rejects an unknown key with a did-you-mean, so a misspelled path fails loudly at startup instead of quietly doing nothing. Check before you deploy with the schema and boot gates described under Check your values before you deploy them.
- Credentials do not belong in this tree.
configbecomes a mounted file; secrets have their own routes (secrets.*,existingSecret, and the*_filekey siblings); see Secrets and mounted config.
The common switches
Every switch below lives in the chart’s config tree, so its key is the
TOML key from the configuration reference. Most are off
by default; the ones that ship on are marked, and enabling any of the others
is an explicit, auditable decision:
| Integration | Chart key | Default | Notes |
|---|---|---|---|
| Specification generation | config.deployment.spec_profile | development | One coupled choice; stable runs the released generations. |
| ADMIN API | config.api.admin | off | Physical, irreversible delete. Gate behind admin RBAC. |
| Terminology extension API | config.api.terminology | off | 404 when off. |
| Outbox feed | config.authz.grants.allowed admitting read_change_feed | none | The commit-event feed for the readers a read_change_feed grant in the CDR names; FerroBRIDGE delivers it to a broker. See Change events. |
| Bearer tokens | config.auth.issuer | unset | A list of issuer tables, each with its kind, profile and audience, and a config.auth.party table for a persons issuer; the issuer’s metadata and key set are read at boot, asymmetric algorithms only. |
| Party binding | config.authz.party_binding.provider | unset | Required once authentication admits a credential: the healthcare provider the deployment acts for. Each Basic user maps to its binding key under config.authz.party_binding.basic_user. |
| RBAC | config.authz.rbac.enabled | on | The coarse role gate (active while config.auth.enabled). |
| Patient scope | config.auth.patient_claim | unset | Holds every caller to the patient the claim names (the patient scope). |
| S3 multimedia | config.record.multimedia.enabled | off | ⚠ Offloaded blobs are PHI. Private, encrypted, HTTPS bucket; keys via secrets.multimediaAccessKeyId and secrets.multimediaSecretAccessKey. |
| Terminology server | config.terminology | off | The one FHIR terminology server, at config.terminology.endpoint.url. To run FerroTERM in the cluster instead, use terminology.enabled (FerroTERM), which sets these keys for you. |
| ATNA audit trail | config.audit.enabled | on | On with the local store only; forwarding (config.audit.syslog, config.audit.fhir_feed) is opt-in per sink. |
| Version signing | config.record.signing.enabled | on (config.record.signing.mode: digest) | pgp mode needs a config.files key plus secrets.signingKeyPassphrase, and fails closed at boot without a usable key. |
| OTLP telemetry | config.telemetry.otlp.endpoint | unset | Setting the endpoint is all it takes; without a config.telemetry.otlp table nothing is exported. With networkPolicy.egress.enabled, add a rule for the collector, since a blocked exporter drops spans without an error. |
Full detail on each is in Beyond the core, Security, and Operations.
The usage report is on by default, and
usageReport.enabled=false switches it off for FerroEHR, for FerroTERM and for
FerroBRIDGE. Each of those takes its own terminology.usageReport.enabled or
bridge.usageReport.enabled when you want it to differ. FerroPIX runs from its
own chart, which cannot read this chart’s switch: set
ferropix.usageReport.enabled=false as well, or the chart refuses to render.
FerroEHR Viewer (a second workload, off by default)
viewer.enabled renders a second Deployment and Service for the viewer
beside the CDR, from its own image
(viewer.image.repository, tagged appVersion by default so the two move
together). It is off by default: the viewer is a separate product surface with
its own attack surface, and a CDR is complete without it.
Three properties are worth knowing before you switch it on:
- It reaches the CDR strictly over the REST API, which
viewer.networkPolicy.enabled(on by default) enforces rather than assumes: the viewer’s egress admits the CDR Service, DNS and outbound HTTPS for an identity provider, and nothing else. It holds no database credential. - It is a human-facing web UI, so
viewer.ingress.enabledis the normal way to reach it, andviewer.auth.oidc.enabledwith an issuer, client id andviewer.auth.oidc.publicBaseUrlis how you keep a person who should not see PHI out of it. Its client secret comes fromviewer.existingSecret, mounted as a file exactly as the server’s DSN is. viewer.replicaCountis 1 deliberately. The viewer holds session state in process, so a second replica needs sticky sessions at the ingress or users are logged out on a reroute.
The viewer carries the same security context as the server, and the chart’s
render gate holds it to the same Restricted profile and the same pod-isolation
settings: a release whose two workloads disagreed about hostUsers would be a
posture nobody could state in one sentence. The deployment probe harness then
reads that back off the running viewer container, exactly as it does for the
server: its uid, its empty capability bounding set, its read-only root and its
seccomp filter come from the container runtime’s own spec, its admission from an
enforce=restricted namespace, and its login page from an HTTP request made
inside the cluster through the viewer Service, so the second workload is never
vouched for by the first. What that run does not establish is stated in its
own record: the viewer’s OIDC path, the screens behind a session, and whether a
CNI enforces the viewer’s NetworkPolicy. Its screens are documented in the
viewer chapter.
FerroPIX (the patient identity source, on by default)
The CDR keeps no patient-to-record cross-reference of its own by default: it
asks an IHE patient identity source over PIXm (ITI-83) which pseudonym the
clinical domain holds for a patient
([pixm]). The chart takes
FerroPIX as the chart dependency
ferropix (oci://ghcr.io/ferrohealth/charts, pinned in Chart.lock), so
its Deployment, Service, NetworkPolicy and configuration are its own chart’s,
and every key under ferropix: is that chart’s value. With
ferropix.enabled (the default) the chart writes
config.record.subject_index = "pixm" and config.pixm.endpoint.url at the
FerroPIX Service, and refuses a values file that sets either too. With the
egress policy on, it adds the rule to FerroPIX’s pods.
You supply FerroPIX’s PostgreSQL URL and sealing key, its issuer, the pseudonymisation domain whose consumer is the CDR’s client, and the CDR’s side of the same facts:
ferropix:
database: {existingSecret: ferropix-db}
dataKey: {existingSecret: ferropix-data-key}
config:
public_base_url: https://pix.example.org
auth:
issuer:
- {issuer: https://idp.example.org/realms/pix, kind: machines, audience: [https://pix.example.org/fhir]}
trust:
issuer: [{issuer: https://idp.example.org/realms/pix, clients: [hospital-source]}]
pseudonym_domain:
- {namespace: urn:oid:2.999.7.1, name: Clinical domain, consumer_client_id: ferroehr}
config:
privacy:
subject_namespaces: [urn:oid:2.999.7.1]
pixm:
assigning_authority: urn:oid:2.999.7.1
endpoint:
credentials:
oauth:
token_endpoint: https://idp.example.org/realms/pix/protocol/openid-connect/token
client_id: ferroehr
scope: system/Patient.rs
secrets:
ehrIndexClientSecret: <the client secret>
secrets.ehrIndexClientSecret is mounted at
/etc/ferroehr-secrets/ehr_index.oauth.client_secret, and the chart injects
the matching client_secret_file; the production overlay reads it from a
Secret you own through extraEnv instead. Another PIX Manager:
ferropix.enabled: false and config.pixm.endpoint.url. A CDR run on its
own: ferropix.enabled: false and config.record.subject_index: local.
The chart pins FerroPIX 0.0.26 by digest (ferropix.image) with the
FerroPIX chart built for it. Since FerroPIX 0.0.19 every [[auth.issuer]]
entry carries its kind and its own audience: an issuer that signs only
the client credentials tokens of the Source and of FerroEHR is
kind: machines, and FerroPIX refuses an audience written on the auth
section itself. Since 0.0.21 a
Patient Identity Source is admitted only with a client credentials token,
and a Basic user holding a system/ scope refuses the start. Since FerroPIX 0.0.8, public_base_url is a
top-level key and the clients that may act as a Patient Identity Source sit
in the [[trust.issuer]] table, apart from the [[auth.issuer]] entry that
names the issuer; FerroPIX refuses the older server.public_base_url and auth.issuer[].clients, so an
upgrade from a chart that pinned FerroPIX 0.0.7 moves those two keys in your
values.
The restricted-profile gate holds FerroPIX’s pods to the Pod Security
Standards restricted profile like every other pod in the release. FerroPIX’s
chart sets the two properties this chart adds for its own pods itself:
enableServiceLinks: false, and a user namespace per pod unless FerroPIX’s
own hostUsers value, under ferropix:, is true.
FerroTERM (a terminology server beside the CDR, off by default)
FerroTERM is the Ferro family’s
FHIR terminology server: R4, R4B and R5 endpoints over a precomputed index, no
JVM, no database, one distroless image. terminology.enabled renders it as a
third workload beside the CDR and the viewer, and points the CDR at it, so
archetype value-set bindings resolve at commit and AQL TERMINOLOGY() expands
through it. The CDR’s own /terminology/* extension routes are a separate
switch: they answer only with config.api.terminology=true, which is
false by default, and return 404 otherwise whether or not FerroTERM is
running. It is the Helm equivalent of the
compose terminology overlay.
helm upgrade --install ferroehr oci://ghcr.io/ferrohealth/charts/ferroehr \
--version 33.0.0 -n ferroehr --reuse-values \
--set terminology.enabled=true
That renders a Deployment, a ClusterIP Service, its own ServiceAccount, a
ConfigMap holding the code systems, and a NetworkPolicy. It also writes three
two things into the CDR’s ferroehr.toml: config.terminology.on_error from
terminology.failOnError, and config.terminology.endpoint.url at the
Service address.
Because the chart writes those two, a values file that contradicts either is
refused at render rather than silently overwritten. Two shapes are refused
while terminology.wireCdr is on:
config.terminology.endpoint.url— two answers to “which server resolves a binding” is how resolution ends up pointed somewhere nobody chose.config.terminology.on_errordisagreeing withterminology.failOnError— same reason, for the posture that decides whether an unresolvable binding is a422.
Set terminology.wireCdr=false to keep your own server and run FerroTERM
unwired. The CDR asks one terminology server, so a server of your own and the
in-cluster FerroTERM are an either-or.
No Ingress is rendered, and no value renders one. The CDR is the only
caller, which is the posture the hosted sandbox
runs and what the SNOMED CT Affiliate Licence asks of a public deployment:
clause 2.2.4 permits a public system to serve SNOMED-encoded data provided users
cannot extract a substantial portion of the release and no fee is charged, and
clause 2.7 requires measures so the release cannot be downloaded except by
authorised users. A published FHIR terminology endpoint answers $expand and
$lookup to every client that reaches it, and FerroTERM has neither
authentication nor a rate limit of its own. Its NetworkPolicy is therefore the
one in this chart that narrows sources by default: ingress admits the CDR’s pods
on the terminology port and nothing else, egress admits DNS.
terminology.networkPolicy.extraIngressFrom adds a peer you decide to admit.
No boolean opens this port the way networkPolicy.ingressAllowAll opens the
CDR’s — and a peer you add is admitted exactly as written, which includes
admitting everything: a namespaceSelector: {} selects every namespace in the
cluster (networking/v1: “if present but empty, it selects all namespaces”). The
values schema therefore refuses an empty peer, and an empty podSelector or
namespaceSelector inside one, so reaching that state takes labels you chose
rather than a blank.
Out of the box it serves the shaped seed, which is synthetic content under
the reserved example.test domain: two code systems and two value sets, the
same content the conformance lane binds to. The chart carries those files and
mounts them as a ConfigMap, so a fresh install from the registry serves
terminology with no repository checkout.
terminology.codeSystems.existingConfigMap swaps in a ConfigMap of your own FHIR
JSON. No licensed terminology ships with FerroEHR or FerroTERM. One caveat with
a ConfigMap of your own: the pod’s rollout annotation hashes the chart’s own seed
files and the NAME you gave, not the contents of an object the chart does not
own, so editing that ConfigMap updates the volume while the running pods keep
serving what they read at boot. Restart the workload after such an edit
(kubectl rollout restart deployment/ferroehr-terminology).
A real release is an index you build off-cluster. Run
ferroterm-build --rf2 <release.zip> --out <dir> on a machine that holds the
archive, put the output on a PersistentVolume, and name that claim in
terminology.index.persistentVolumeClaim. The chart mounts it read-only at
terminology.index.mountPath and sets FERROTERM__TERMINOLOGY__INDEX; with no claim named,
the variable is absent and the seed is served alone. The chart provisions no
storage and renders no build Job, for the same reason it provisions no database:
unpacking a licensed archive is a step whose licence terms are yours, not a step
a chart should start on its own.
Naming a claim also switches this Deployment to strategy: Recreate. A rolling
update creates the replacement pod before the outgoing one goes away, and a
ReadWriteOnce volume can only be attached by one node, so the new pod would
sit Pending on the attachment while kubectl reported a progressing rollout.
Recreate stops the old pods first, which costs a short terminology outage at
every upgrade and finishes. If your index volume is ReadOnlyMany, override it
with terminology.strategy={type: RollingUpdate}. FerroTERM’s
loading page covers the
other code systems and their build flags. Size the memory limit for the edition
before you mount it: terminology.resources ships a 1536Mi limit, and the same
FerroTERM page states the resident size of each edition, which the limit must
cover.
The fail posture is the CDR’s shipped one. terminology.failOnError
defaults to false, so a binding the server cannot resolve is accepted; true
turns an unreachable terminology server into a 422 refusal. The
terminology page
explains both. A code the server resolves as outside its value set is refused
with 422 under either posture.
FerroTERM’s licence. BUSL-1.1 from the same Licensor as FerroEHR: non-commercial production use is free, any other production use needs a commercial licence. Its README says which is which. The licence for whatever code systems you load is separate and yours to hold; SNOMED CT needs an Affiliate Licence (free in Member countries, see snomed.org/get-snomed), and every surface showing its content carries the notice clause 8.3.1 prescribes plus the release version and date.
More than one replica needs two other keys. terminology.replicaCount is a
throughput choice — each replica loads its own copy of the index, so watch the
memory limit — and above 1 the pods spread one per node by default, the same
soft constraint the CDR gets. Turn terminology.podDisruptionBudget.enabled on
with it: without a budget a node drain may take every terminology replica at
once, and the CDR’s own budget does not cover these pods. It is off by default
because the shipped replica count is 1 and a budget over a single pod blocks the
drain it exists to survive.
FerroTERM carries the same security context as the CDR and the viewer, and the
chart’s render gate holds all three to the same Restricted profile. The
deployment probe harness reads this workload back off a running cluster too: its
applied runtime posture, the shaped seed reaching the process from the ConfigMap
volume, a refusal on the terminology port from a pod the policy does not name,
and the CDR resolving a bound code through the Service. Its image is
pinned by digest in terminology.image.digest and moves on FerroTERM’s own
release line, so it does not follow appVersion the way the viewer image does.
Because that digest is set, terminology.image.tag alone deploys nothing: the
digest wins, and a tag pointing anywhere else is refused at render rather than
ignored. Clear the digest to deploy by tag.
FerroBRIDGE (the FHIR bridge, off by default)
FerroBRIDGE maps between FHIR R4
and openEHR with FHIRconnect mappings and reaches FerroEHR over ITS-REST.
FerroEHR itself serves no FHIR API for clinical data, so FerroBRIDGE is the
component that does. bridge.enabled renders it as its own workload in the same
release: a Deployment, a ClusterIP Service, its own ServiceAccount, a ConfigMap
holding its configuration file, and a NetworkPolicy.
The chart writes three sections of that file for you:
[cdr]:base_urlis this release’s CDR Service with its REST base path (http://<release>:<service.port><config.api.base_path>), and[cdr.credentials.oauth]names the client ofbridge.cdr.oauthand its secret, a file mounted from your Secret.[terminology]: withterminology.enabledon,base_urlis the chart’s FerroTERM Service at/r4andwire_versionisr4. With it off the section is absent, and you may set your own underbridge.config.[mappings]:directoryis where the mapping files below are mounted.
FerroBRIDGE reaches the CDR as a machine. It obtains and renews a token
with the OAuth 2.0 client credentials grant (RFC 6749 §4.4) from a machines
issuer the CDR trusts, and the CDR checks it as it checks every token. A Basic
user is a person and holds no system/ scope, so the chart has no Basic mode.
Add the issuer to config.auth.issuer with kind: machines, name
FerroBRIDGE’s client in bridge.cdr.oauth, and, when it commits what
$toopenehr maps, grant the client in the CDR: an AGENT carrying its
client_id and performing a ROLE that grants commit_composition, as
A system client shows. The
render is refused when bridge.cdr.oauth.issuer is not a machines issuer of
config.auth.issuer. FerroBRIDGE reads the token endpoint from that issuer’s
metadata; when the authorization server serves none there, set
bridge.cdr.oauth.tokenEndpoint, and issuer still names the issuer the CDR
trusts.
config:
auth:
issuer:
- issuer: https://idp.example.org/realms/machines
kind: machines
audience: [ferroehr-machines]
bridge:
cdr:
existingSecret: ferroehr-bridge-cdr
oauth:
issuer: https://idp.example.org/realms/machines
clientId: ferrobridge
scope: system/composition-*.cruds system/template-*.r system/aql-*.rs
audience: ferroehr-machines
The client secret comes from a Secret you create. The chart never takes it
as a value. The Secret carries the key client_secret, which is mounted as a
file and named by client_secret_file, so it is in neither the ConfigMap nor
the environment.
kubectl -n ferroehr create secret generic ferroehr-bridge-cdr \
--from-file=client_secret=./bridge-client-secret
The mapping files come from a ConfigMap you create, named in
bridge.mappings.existingConfigMap, with each key listed in
bridge.mappings.files. The chart mounts every key on its own: a whole
ConfigMap volume also carries the kubelet’s ..data snapshot directories, and
FerroBRIDGE reads those as a second and third copy of every file and
refuses the start with a duplicate mapping name. FerroBRIDGE fetches each
template a mapping context names from the CDR at boot, so upload the templates
first; a template the CDR does not hold stops the start. Without a mapping set
FerroBRIDGE still starts, and $tofhir and $toopenehr answer 503.
A mapping set needs [auth]. With mappings FerroBRIDGE serves its
FHIRconnect operations, and it refuses to start them until FerroBRIDGE’s
[auth] keys issuer and audience, set under bridge.config, name the
authorization server whose tokens its callers present, or until its enabled
is false, which serves them to every caller the NetworkPolicy admits. The keys are FerroBRIDGE’s own
(configuration reference).
bridge:
enabled: true
cdr:
existingSecret: ferroehr-bridge-cdr
oauth:
issuer: https://idp.example.org/realms/machines
clientId: ferrobridge
mappings:
existingConfigMap: ferroehr-bridge-mappings
files:
- vital_signs.context.yml
- blood_pressure.yml
config:
auth:
issuer: https://idp.example.org
audience: [https://bridge.example.org/fhir]
networkPolicy:
ingressFrom:
- podSelector:
matchLabels:
app.kubernetes.io/name: my-fhir-client
It stays inside the cluster. A caller FerroBRIDGE admits acts on the CDR
under the client above. So the chart
renders no Ingress for it and no value renders one, the Service is always
ClusterIP, and the NetworkPolicy admits only the peers you list in
bridge.networkPolicy.ingressFrom. An empty list is refused at render, and the
values schema refuses a peer that selects everything (an empty peer, or an empty
podSelector or namespaceSelector inside one). There is no key that admits
every source. Egress admits this release’s CDR, FerroTERM when it runs, and
DNS; bridge.networkPolicy.extraEgress adds a rule for an upstream you name in
bridge.config. When you narrow the CDR’s own networkPolicy.ingressFrom, the
chart adds FerroBRIDGE’s pods to it, and FerroTERM’s policy admits them too.
Anything else goes in bridge.config, rendered into the same file with
the keys of FerroBRIDGE’s
configuration reference.
FerroBRIDGE refuses an unknown key at boot. The render refuses a key the chart
writes (cdr.base_url, cdr.credentials, server.listen, terminology while
FerroTERM runs, mappings.directory while the chart mounts the mappings) and
any secret-shaped key, such as a password, a token or cdm.url: set its
_file sibling and mount the file with bridge.extraVolumes and
bridge.extraVolumeMounts. FerroBRIDGE’s FHIR facade ([facade]) keeps its
identity map in a file it writes, and the root filesystem is read-only, so
turning the facade on also takes a PersistentVolumeClaim of yours mounted with
those two keys and named in facade.identity_store, with
bridge.strategy={type: Recreate} when the claim is ReadWriteOnce. Back that
volume up with the CDR’s database.
Probes use FerroBRIDGE’s own endpoints: liveness /health/liveness, readiness
/health/readiness, which answers 503 while the CDR or FerroTERM is
unreachable. FerroBRIDGE carries the same security context as the other
workloads and the release-wide hostUsers setting, and the render gate holds
it to the same Restricted profile. Its image is pinned by digest in
bridge.image.digest and moves on FerroBRIDGE’s own release line, never with
appVersion; a tag other than the pin is refused while the digest is set. The
deployment probe harness boots it on a cluster and reads back its runtime
posture, its admission, the credential being used for the template fetch, a
refusal on its port from a pod outside ingressFrom, and its readiness from a
pod inside it. FerroBRIDGE’s own deployment documentation is at
https://ferrobridge.eu/docs/operate/container.html.
Per-domain backups (one CronJob per domain, off by default)
backup.enabled renders one CronJob per pseudonymisation domain:
backup.clinical.schedule dumps the clinical schemas, backup.party.schedule
dumps the identities, and each writes to its own existing claim
(backup.clinical.persistentVolumeClaim, backup.party.persistentVolumeClaim).
The image is backup.image.repository, which carries pg_dump.
A third job renders for the audit domain when database.audit.existingSecret
gives it a database of its own. While the trail shares the clinical database
the clinical dump names its schema and nothing more is needed; once it is
somewhere else, that dump cannot reach it and nothing else would take it, so
backup.audit.schedule, backup.audit.existingSecret and
backup.audit.persistentVolumeClaim become required the same way the other
two are, and the clinical dump stops naming the audit schema.
The chart refuses to render rather than let the separation collapse quietly: a missing claim is an error naming the value, and naming the same claim for any two domains is an error too, because one volume holding the clinical record beside the identities is the state per-domain backups exist to prevent.
Each job needs its own backup credential, named by
backup.clinical.existingSecret, backup.party.existingSecret and, when it
renders,
backup.audit.existingSecret, and
the render is refused without them. It cannot be the pool’s credential: each
domain’s runtime role is revoked from the other domains, so a dump taken through
one would be silently partial. Give each domain a read-only role on that
domain’s schema alone. Every job reads its DSN from a mounted file, never an
environment variable.
The chart provisions no storage. Create the claims yourself, and give them
different access control; that part no chart can do for you. The restore
procedure, and the ferroehr db verify gate that judges it, are on the
Operating page.
Staying available while things move
Five defaults keep the API serving through the events that routinely interrupt it. None needs configuring; each is listed because the reason matters when you tune it.
Replicas land on different nodes. With nothing telling the scheduler
otherwise, two replicas can share one node and one node failure is a total
outage. The chart ships a soft spread constraint (maxSkew: 1 over
kubernetes.io/hostname, whenUnsatisfiable: ScheduleAnyway) so replicas
prefer separate nodes but a single-node or full cluster still schedules them
rather than leaving a pod Pending. Setting topologySpreadConstraints
replaces it wholesale, so give the complete constraint including its own
labelSelector; add a topology.kubernetes.io/zone entry if your cluster spans
zones.
A terminating pod stops receiving requests before it shuts down. Deleting a
pod removes it from the EndpointSlice and sends SIGTERM concurrently, and
the removal still has to propagate to every node. preStopSleepSeconds (default
5) holds the container for that window first. It uses the native sleep hook
action rather than an exec hook, because the image ships no shell to run one.
A node drain does not hang on unhealthy pods. The PodDisruptionBudget sets
podDisruptionBudget.unhealthyPodEvictionPolicy: AlwaysAllow, the
documented recommendation.
The API default, IfHealthyBudget, makes a drain wait for pods to become
healthy, which never completes when they are unhealthy because of the drain.
A migration interrupted by a drain is not counted as a failure. The
migration Job carries a podFailurePolicy that ignores pod failures caused by
disruption, so ordinary cluster maintenance during a release cannot exhaust
migrations.job.backoffLimit and fail the upgrade with no migration error
anywhere in the logs.
A reused connection is not closed under a client. The server closes a
kept-alive connection only after config.server.idle_timeout (two minutes by
default) with no request, and counts config.server.header_read_timeout
from the first byte of each request. Keep the idle limit longer than the idle
timeout of your clients (90 s for a Go client) and of the ingress controller or
load balancer in front, so they close an idle connection first. A client that
sends a request into a connection the server is closing gets no answer, and a
client that never retries a POST reports the commit as failed.
Two more are available and off by default. service.trafficDistribution: PreferSameZone keeps traffic inside the caller’s zone, for lower latency and
inter-zone cost, at the price of even load, so measure before setting it. And
autoscaling.behavior passes scaling policies straight through; the documented
defaults already scale up immediately and wait out a five-minute stabilization
window before scaling down, so change it only to be more conservative.
Upgrades
Migrations are append-only (a schema change is a new file, never an edit to
an applied one) so a rolling upgrade stays compatible with the previous schema
during the window where both versions run: additive DDL first, destructive
changes in a later release once all pods are on the new version. Keep
replicaCount at two or more (or autoscaling.enabled) and the default
PodDisruptionBudget so upgrades and node drains never fully interrupt the API;
the default terminationGracePeriodSeconds covers the binary’s shutdown drain.
Roll back by re-pinning the prior image tag or digest.
A change anywhere under config, config.files or secrets changes the
checksum/config pod annotation, so helm upgrade rolls the pods for a
configuration-only change too, including a rotated secret or an edited
mounted file, both of which are read at boot and would otherwise reach the volume while
every running pod kept using the old value.
helm uninstall removes everything the chart created; the chart declares no
PersistentVolumeClaim, so nothing is left behind; your database, and the Secret
holding its DSN, are yours and survive.
Preview an upgrade against what you have installed with
helm diff, or render the new chart version and read it:
helm template ferroehr oci://ghcr.io/ferrohealth/charts/ferroehr --version 33.0.0 \
-n ferroehr -f my-values.yaml | less
Working from a checkout instead, deploy/helm/validate.sh runs the chart’s full
render gate: the helm-version pin, lint, YAML validity, the structural
Restricted-profile and selector-immutability gates, the secret-leak gate, the
values-schema probes, and the golden-render diff. It is the same gate CI runs on
every change to the chart, so a local run and a pull request agree by
construction.
Check your values before you deploy them
A render that lints is not a deployment that boots. validate.sh never runs the
server, so it cannot see a configuration the server refuses: a missing
authentication mechanism, an HS* algorithm, a password hash that is not a
real Argon2id PHC string, SMART enabled without its public base URL. Every one of those renders perfectly and crash-loops the pod. The
script prints exactly which properties it does not check, on success as well as
on failure, so a green run is not mistaken for a working deployment.
The check that closes that gap runs the image against your rendered configuration:
FERROEHR_IMAGE=ghcr.io/ferrohealth/ferroehr:5.7.1-rc1 \
deploy/helm/ci/boot-check.sh my-values.yaml
It renders the chart, mounts the ConfigMap and the Secret exactly as the
Deployment does (with their real values, not placeholders) replays the
declared environment, and runs ferroehr config check inside the image. Point
FERROEHR_IMAGE at the tag you intend to deploy: the answer is specific to that
image, since a key your values carry may be newer than the server that has to
read it.
It validates configuration only; it opens no socket, so it cannot tell you the issuer resolves, the broker is reachable or the database accepts the DSN. CI runs the same script over every values overlay the chart ships.
Cluster hardening
The Kubernetes chapter documents the chart. This section is the other half: an audit of this deployment against the OWASP Kubernetes Security Cheat Sheet, split by who can actually apply each control.
That split is the point. A workload chart controls its pod security context, its resource bounds, its NetworkPolicy, its ServiceAccount and how it consumes secrets. It cannot patch a node, set an API-server flag, configure etcd, authenticate a kubelet, or install an admission controller. For those, the honest deliverable is not a setting but a statement of what you owe and what happens if you do not, because a deployment that inherits an unchecked assumption is not secured by the chart’s own hardening.
Important
Several controls here are ones no application-level hardening can compensate for. If the kubelet accepts anonymous requests, or anything untrusted can read etcd, then every control this project ships (non-root, read-only rootfs, dropped capabilities, RBAC, the access evaluator, the audit trail) is bypassable, because the attacker is beneath the layer they operate in. Those are marked where they appear.
Claims about what the chart renders are checked against the chart’s own render gates. Claims about what a cluster then applies come from the deployment probe harness, which reads each answer from the layer that actually decides it (the container runtime’s own spec for the security context, the API server for admission, the EndpointSlice for readiness) and which declares in its own record what it did not exercise, so silence is never read as coverage.
The five pages
| Page | Covers |
|---|---|
| The cluster: hosts, control plane, access | node and OS hardening, the supported version window, rolling upgrades, advisories, etcd, the port surface, cluster API access, cluster RBAC, kubelet authentication |
| Images: build, provenance, scanning | the distroless image and what it costs you during an incident, keyless signing and the identity to trust, copyable admission policies, scanning after release, the full supply-chain map |
| The workload: security context & admission | the applied security context, user namespaces, AppArmor, Restricted-profile compliance versus enforcement, sandboxing, kernel modules |
| Namespaces, network & policy | namespace scoping, one instance per organisation, the service-mesh decision, which admission engine, resource bounds in four layers, deny-by-default egress |
| Secrets, detection & response | Secrets at rest and exactly what ours contain, runtime detection on a shell-less image, per-replica alerting, breach containment and credential rotation, the two log streams, managed control planes |
The ownership map
| Cheat-sheet control | Owner | Where |
|---|---|---|
| Host hardening, OS patching, node firewall | operator | cluster |
| Supported Kubernetes version window | operator (chart states the floor) | cluster |
| Rolling upgrades rather than mutating containers | chart | cluster |
| Kubernetes security advisories | operator | cluster |
| Kubernetes Dashboard | operator (we ship none) | cluster |
| etcd access + encryption at rest | operator | cluster |
| Control-plane and kubelet ports | operator | cluster |
| The workload’s own port surface | chart | cluster |
| Cluster API access control, MFA | operator | cluster |
Cluster RBAC (Node,RBAC, NodeRestriction) | operator | cluster |
| The workload’s own RBAC | chart, deliberately none | cluster |
| Kubelet authentication/authorization | operator | cluster |
| Minimal, current, authorized images | chart/CI | images |
| Image provenance at admission | operator (we publish the attestations) | images |
| Continuous scanning of published images | CI | images |
| Supply chain | CI, with two gaps | images |
| Pod/container security context | chart | workload |
| Pod Security Admission enforcement | operator (one kubectl label) | workload |
| Container sandboxing | neither; a recorded decision | workload |
| Kernel-module loading | satisfied by the chart | workload |
| Namespace isolation | chart (namespace-scoped by construction) | network |
| Service mesh | neither; a recorded decision | network |
| Centralized policy management | operator, for admission only | network |
| Container resource bounds | chart | network |
Namespace ResourceQuota/LimitRange | operator | network |
| Egress restriction | chart (mechanism) + operator (destinations) | network |
| Secrets encrypted at rest | operator | secrets |
| Runtime/syscall detection | operator (unusually cheap here) | secrets |
| Replica behavioural deviation | operator (from metrics we publish) | secrets |
| Breach containment + credential rotation | operator (procedure is ours) | secrets |
| Cluster API audit logging | operator | secrets |
| Container logging | chart/app | secrets |
| Managed control plane | provider | secrets |
Final thoughts: the three practices, checked
The cheat sheet closes with three practices rather than controls. Checking them against what this project actually ships, rather than claiming them:
“Embed security into the container lifecycle as early as possible”:
evidenced. Security here is CI, not a review checklist: the chart’s render gate
parses every rendered object and asserts the Restricted profile per container,
the golden renders pin the exact bytes, the secret-leak gate refuses a credential
that would reach a ConfigMap, the image scanners run at build and again on a
schedule against the published tags, cargo deny runs on every change, and
zizmor and CodeQL read the workflows themselves. Each of those refuses a merge
rather than filing a comment, and each of the chart-side ones has been watched to
fail deliberately; a gate nobody has seen fail is a gate nobody knows works.
“Use Kubernetes-native controls to reduce operational risk”: evidenced. The chart’s controls are the platform’s own: a NetworkPolicy rather than an in-app firewall, a security context and the Restricted profile rather than a hardening sidecar, resource limits rather than in-process throttling alone, probes rather than an external watchdog, a user namespace rather than a trusted UID, and no service mesh because what one would add is either already provided or not needed at this shape. The one place we did not take a native control is Pod Security Admission, and that is because labelling a namespace is not a chart’s call, stated as the operator’s rather than quietly skipped.
“Leverage the context Kubernetes provides to prioritize remediation”: partly,
and here is the honest version. The generic form of this practice is to rank
findings by whether the affected code is reachable in your deployment. This
project’s answer is the OpenVEX documents: when a scanner reports advisories
in a privilege-dropping helper that opens no socket and parses no untrusted
input, the response is a machine-readable not_affected statement with a
controlled-vocabulary justification and an impact_statement a reader can
check, not a silenced ignore list, and not a rebuild that fixes nothing.
That mechanism has a cost, and stating it is what makes the claim honest: a VEX
statement is a claim about today’s binary, and it must be re-checked on every
base-image bump. When upstream rebuilds that helper, statements about it become
obsolete, and a stale not_affected is worse than no VEX at all: it is an
argument that has quietly stopped being true while still suppressing its finding.
The scheduled scan is what surfaces a finding whose statement no longer matches,
and the re-check itself is a human obligation, not an automated one.
The cluster: hosts, control plane, access
The controls on this page are almost all the operator’s, and several are ones no application-level hardening can compensate for. Read them as what you owe the CDR running on top, not as background.
- Host hardening and the version window
- Upgrades roll, they do not replace
- Security advisories
- The dashboard we do not ship
- etcd and what our secrets contain
- Ports, theirs and ours
- Cluster API access
- Cluster RBAC, and why this chart needs none
- Kubelet access
Host hardening and the version window
Operator’s. Keep the node OS patched, hardened and firewalled; a workload chart cannot reach any of it. The cheat sheet’s list applies unchanged.
The part worth stating precisely is the version window. Upstream Kubernetes maintains release branches for the three most recent minor releases, each receiving roughly a year of patch support (kubernetes.io/releases). A cluster below that window receives no security backports at all: a published CVE in the API server or kubelet simply stays open on it.
The chart’s kubeVersion: ">=1.36.0-0" is a compatibility floor, not a
statement about that window. It sits at the window’s newest release because 1.36
is where the newest field the chart renders (hostUsers, user namespaces)
became stable, which is what lets every field it renders apply unconditionally
instead of being gated into silence on the clusters that most needed it. The cost
is real and worth naming: an operator one minor behind cannot install this chart.
See Beyond Restricted: the user
namespace for what
that buys.
A version gate is a silent absence; a floor is a loud refusal. For a workload holding PHI the loud one is correct, so the chart declares the floor and refuses below it rather than installing with a safety property quietly inapplicable.
If you run outside the supported window, you have accepted that the platform
beneath this CDR is unpatched, and no setting in values.yaml changes that.
Upgrades roll, they do not replace
Chart’s. The cheat sheet asks that a new version arrive by rolling update rather than by mutating a running container. The chart sets the strategy explicitly rather than inheriting the API server’s percentages:
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0 # served capacity never drops
maxUnavailable: 0 means a replacement pod must pass its readiness probe before
an old one is removed. At the default two replicas this is identical to what
Kubernetes computed from 25% (it rounds down to zero); above two replicas the
percentage default would have taken a pod out of service, and this does not. The
trade-off is real and fails in the safe direction: on a cluster with no spare
scheduling capacity a maxUnavailable: 0 rollout stalls visibly instead of
proceeding at reduced capacity.
Observed on a live cluster rather than argued: a probe pod drove a long run of
sequential requests at the Service through a full helm upgrade, with
Killing/Started events for both replicas inside the window, and recorded no
failed request, while the ReplicaSet history showed the old revision scaled to
zero as the new one scaled up (a roll, not a recreate) and the Deployment reported
Available=True (MinimumReplicasAvailable) throughout.
Security advisories
Operator’s, with a decision recorded on our side.
You must follow
kubernetes-announce and the
official advisory
feed.
Kubernetes CVEs are announced there, and nothing in this project will tell you
about them.
This project does not track Kubernetes platform advisories, deliberately. The decision, so it is not mistaken for an oversight: we run no cluster and cannot act on a node or control-plane CVE, and a watcher that opened issues we could only close as “the operator’s” would be noise that trains people to ignore it. What we do track is what we ship: dependency advisories on every change, our own container images on a schedule, and the openEHR specifications through release watchers.
A vulnerability in Kubernetes itself is reported to Kubernetes, not to this project. A vulnerability in FerroEHR, including in the chart, comes to us, through the security policy published with the source.
The dashboard we do not ship
Operator’s. This chart installs no Kubernetes Dashboard, and nothing in it depends on one. If you install one, the cheat sheet’s conditions apply: never expose it publicly, give it a limited-privilege ServiceAccount, and put an authenticating reverse proxy in front of it if it must be reachable at all.
This section stays because the same reasoning applies to two surfaces that are ours, and an operator hardening “the dashboard” should find them here:
/management/*: the ops-introspection surface (info,prometheus,metrics,env,loggers,flamegraph). It is a privileged read onto the deployment:envrenders the effective configuration andflamegraphprofiles the live process. The chart ships the master switch on and every endpointoff, so nothing is exposed until you name an endpoint and a level. Setconfig.management.listento move the whole surface onto its own listener so it is never reachable on the clinical API port.- The viewer: a separate image with its own Deployment, which this
chart can render but leaves off (
viewer.enabled). It consumes the CDR strictly over the REST API and holds no database credential, but it is a privileged UI and belongs behind the same authenticating edge you would put in front of a dashboard, which is whatviewer.auth.oidc.enabledandviewer.ingress.enabledare for.
etcd and what our secrets contain
Operator’s, and this is one of the controls that cannot be compensated for.
The cheat sheet’s requirements stand: mutual TLS between the API server and etcd, etcd reachable from nothing else, and separate instances or ACLs to bound what a component can read.
What makes it concrete for this deployment: anything that can read etcd can read every Secret in the cluster, and this release’s Secrets are not incidental. They hold the database DSN (the credential that reaches patient data) plus the version-signing passphrase, any Basic user’s Argon2id hash, and any terminology-server client secret. So “etcd is a cluster concern” is true and insufficient: for this workload etcd is the confidentiality boundary of the credentials that reach PHI. The full inventory is what our Secrets contain.
Two mitigations you can apply without touching etcd’s network posture:
- Encryption at rest for Secrets: not on by default in Kubernetes. See Kubernetes’ encryption-at-rest configuration, which is a cluster-level setting an operator applies once.
- An external secret manager, which removes the credential from etcd
entirely: every secret this chart carries has a
*_fileroute or anexistingSecretroute, so the value can arrive from a CSI driver or an operator-synced Secret rather than from chart values.
Ports, theirs and ours
Operator’s, for the cluster’s ports. Block untrusted access to the
control-plane ports 6443 (API server), 2379-2380 (etcd), 10250-10257
(kubelet and controller/scheduler), and the worker ports 10248-10250. An
exposed 10250 is the kubelet case below.
Ours, for the workload’s ports, and in the default posture the surface is one port:
| Port | Serves | Who should reach it |
|---|---|---|
8080 (service.port) | the openEHR REST API, the always-on /health family, and /management/* when config.management.listen is unset | your ingress controller or gateway, not the internet directly |
config.management.listen (unset by default) | /management/* on its own listener when set | operators and your Prometheus, never clinical clients |
3000 (viewer.service.port) | the viewer, only when viewer.enabled | your ingress controller, in front of an authenticating edge |
Read off the running pod rather than the template, from the listening sockets in the container’s own network namespace: the default posture binds one port and nothing else:
LISTENING TCP ports in the container netns: [8080]
The shipped NetworkPolicy narrows inbound traffic to that port list. Whether the narrowing is enforced is a property of your CNI, not of the object: on a cluster whose network plugin does not implement NetworkPolicy the object is accepted, stored and displayed with no effect and no warning. Verify it the way the managed-cluster section shows: attempt a connection the policy should refuse, from a pod in another namespace, and require it to fail.
Two limits stated in full under Namespaces, network & policy
§Ingress
and repeated because they matter here: with networkPolicy.ingressFrom empty the
rule carries no from and therefore admits every source, including other
namespaces (only the port list is narrowed in that state; set
networkPolicy.ingressAllowAll: false to have the chart refuse to render that
state at all, and the same pair exists for the viewer under
viewer.networkPolicy); and a NetworkPolicy is only as real as the CNI that
implements it.
Cluster API access
Operator’s. Control access to the Kubernetes API: authenticate, then authorize, and deny by default.
- Recommended routes: OIDC, a managed-IAM integration, or user impersonation, with MFA on the identities that can reach the cluster API.
- Not suitable for production: static token files, long-lived X.509 client certificates, and service-account tokens used as human credentials. They cannot be revoked individually, they do not expire usefully, and they carry no second factor.
Worth drawing explicitly, because it saves a translation: this server implements
the same shape. Authentication then authorization, deny by default, OIDC
preferred over long-lived credentials, and a missing credential distinguished from
a refused one (401 with a challenge versus 403). The
Security chapter is the detail. An operator who understands why
a static token file is a poor cluster credential already understands why
config.auth.basic is a machine and bootstrap mechanism here and a
config.auth.issuer is the production one for people.
Cluster RBAC, and why this chart needs none
Operator’s, for the cluster: run the API server with
--authorization-mode=Node,RBAC and enable the NodeRestriction admission
plugin, so a compromised kubelet cannot edit objects belonging to other nodes.
Ours, and it is an absence on purpose. The chart creates a ServiceAccount and
no Role, RoleBinding, ClusterRole or ClusterRoleBinding at all, with
serviceAccount.automountServiceAccountToken: false. That is not an omission to
be tidied up later: the workload never calls the Kubernetes API, so it needs no
permissions, and it is not given a token with which to try. The same holds for the
viewer’s own ServiceAccount when that workload is enabled. Checkable on a
live release:
helm get manifest ferroehr | grep -cE '^kind: (Role|RoleBinding|ClusterRole|ClusterRoleBinding)'
kubectl -n ferroehr get role,rolebinding
The first prints zero; the second reports no resources. And because the token is not mounted, no service-account token file exists under the pod’s volumes on the node.
If you are reviewing this chart and reaching for a Role to add: don’t. The correct fix for a future feature that genuinely needs the Kubernetes API is a Role enumerating exactly the verbs and resources it needs, plus turning the token mount back on for that ServiceAccount alone, not a broad grant added speculatively.
Kubelet access
Operator’s, and the second control no application hardening can compensate for.
Run every kubelet with --anonymous-auth=false and
--authorization-mode=Webhook so its HTTPS endpoint is not open. Left open, that
endpoint permits arbitrary command execution in any container on the node.
For this deployment, spelled out: an attacker reaching an unauthenticated kubelet gets a process-level foothold in a running CDR: the ability to read the database DSN out of the mounted secret files, to read patient data straight from memory, and to do so beneath the layer where authentication, RBAC, the access evaluator and the ATNA audit trail operate, so none of them see it and none of them can stop it. Non-root, a read-only root filesystem, an empty capability set and a private user namespace raise the cost of what happens next; they do not prevent the entry.
This is a cluster-configuration control, and it is worth confirming rather than
assuming; an exposed 10250 is a routine finding in real clusters.
Images: build, provenance, scanning
The image half of the audit. Building a minimal image and signing it is ours; requiring a cluster to check that signature before running the image is yours, and this page carries the copyable policies for both engines that can do it.
- The build phase, and what distroless costs
- Image provenance at admission
- Continuous scanning of published images
- The supply-chain map
The build phase, and what distroless costs
Ours. Each build-phase control and what actually satisfies it:
| Control | Satisfied by |
|---|---|
| Minimal image (distroless) | gcr.io/distroless/cc-debian13:nonroot: no shell, no package manager, no libc tooling |
| Image currency | base images and CI job containers pinned by digest, not tag, so a rebuild cannot silently change bytes |
| Vulnerability identification in CI | Trivy over every published image, hadolint over every Dockerfile, plus secret and misconfiguration scanning over the whole tree |
| Continuous scanning after release | a scheduled scan of the published tags; below |
| Authorized images only | signed provenance published; enforcement is the operator’s; below |
| Non-root by construction | the image declares USER 65532:65532 (numeric, so the kubelet can verify it without reading /etc/passwd), and the pod pins runAsNonRoot plus uid 65532 independently |
Three images are published, and they are not equivalent in risk. The server and
the viewer are distroless and carry almost no OS package surface. The
PostgreSQL image is a thin, COPY-only layer over the upstream postgres image
(it adds initialization scripts and nothing else) so its package set is
upstream’s, and its CVEs arrive on upstream’s schedule rather than ours. The chart
deploys none of the second and third: it takes an external DSN and can
optionally render the viewer.
What distroless costs, stated before an incident rather than during one: there
is no shell in the image, so kubectl exec … -- sh does not work. That is the
security property working as intended (an attacker who achieves command
execution finds no interpreter, no curl, no package manager) but it changes how
you debug. Use instead:
kubectl logs(the server logs JSON by default, for a collector),- the always-on
/health/readinessbody, which names the failing dependency, /management/*for the effective configuration, live log filters and an on-demand CPU flamegraph,kubectl debug -it <pod> --image=busybox:1.37 --target=ferroehrstarts an ephemeral container shares the target’s namespaces without adding a shell to the image that ships.
The registry posture: the images are public on GHCR, so a pull needs no credential and there is nothing to leak. Public does not mean trusted, which is the point of the next section: nothing about a public registry stops a cluster pulling a different image with the same name from somewhere else.
Image provenance at admission
The operator’s, and this is provenance nobody in your cluster currently checks.
The publishing lanes attest their artifacts through keyless Sigstore, so a verifier can establish that an artifact came from this repository’s build: the published images carry a signed SLSA v1 provenance attestation, and the chart carries both an attestation and a cosign signature over its digest. Nothing in a cluster requires that check before running an image, and a signature nobody verifies changes nothing about what actually runs. That is what the policies below close.
The identity to trust, read off a real artifact
Each lane signs with a short-lived Fulcio certificate whose subject alternative name is the workflow that issued the token, and whose issuer is GitHub’s OIDC provider. Read it off a published artifact rather than deriving it from a workflow file:
gh attestation verify oci://ghcr.io/ferrohealth/ferroehr:main \
-R FerroHEALTH/FerroEHR --format json \
| jq '.[0].verificationResult.signature.certificate
| {subjectAlternativeName, issuer, sourceRepositoryRef, runnerEnvironment}'
{
"subjectAlternativeName": "https://github.com/FerroHEALTH/FerroEHR/.github/workflows/build-image.yml@refs/heads/main",
"issuer": "https://token.actions.githubusercontent.com",
"sourceRepositoryRef": "refs/heads/main",
"runnerEnvironment": "github-hosted"
}
The SAN’s ref varies with the trigger, and that is the part a policy gets wrong. Each lane runs on more than one ref, so each issues more than one identity:
| Artifact | Signing workflow | SAN on a release build | SAN on a development build |
|---|---|---|---|
| the three images | build-image.yml — the reusable builder both callers use | …/build-image.yml@refs/tags/vX.Y.Z (the release pipeline) | …/build-image.yml@refs/heads/main (via containers.yml) |
| the chart | build-chart.yml — the reusable chart lane | …/build-chart.yml@refs/tags/vX.Y.Z (the release pipeline’s chart leg) | …/build-chart.yml@refs/heads/main (a workflow_dispatch chart-only publish, or the recovery of a release’s chart leg for a tag cut before a re-run could finish it) |
| the release binaries | release-build.yml | …/release-build.yml@refs/tags/vX.Y.Z | (none; the lane only runs on a tag) |
All three prefixed with https://github.com/FerroHEALTH/FerroEHR/.github/workflows/,
and all with issuer https://token.actions.githubusercontent.com.
The release binaries are signed by release-build.yml rather than by the release
workflow because the build lives in a reusable workflow: the certificate
names the workflow that owns the build definition, which is what makes the
--signer-workflow pin below meaningful.
Pick the ref set deliberately, because the choice is a refusal. A policy
matching refs/tags/v… only admits released images and refuses
ghcr.io/ferrohealth/ferroehr:main, correct for production, and the
reason a policy tested against :main appears broken when it is working. A
staging cluster that runs :main needs both refs. Nothing accepts an
arbitrary branch: refs/heads/main is exact, not a prefix match.
Kyverno
The engine chosen here. Two details decide whether this policy works at all:
type: SigstoreBundle. These attestations are GitHub Artifact Attestations, stored in the Sigstore bundle format as an OCI referrer. Kyverno reads that format only under this type; the field defaults toCosign, which looks for asha256-<digest>.sigtag that these images do not have (it returns 404: the bundle is a referrer, not a cosign tag). Requires Kyverno 1.13 or newer.attestations:, notattestors:alone. Kyverno’s own rule is that “eachverifyImagesrule can be used to verify signatures or attestations, but not both”, and what the image lane produces is a signed attestation: there is no detached image signature. A rule withattestors:at the top level therefore fails closed on a perfectly legitimate image.
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: ferroehr-image-provenance
annotations:
pod-policies.kyverno.io/autogen-controllers: none
spec:
background: false
webhookTimeoutSeconds: 30
rules:
- name: verify-ferroehr-provenance
match:
any:
- resources:
kinds: [Pod]
namespaces: [ferroehr]
verifyImages:
- imageReferences:
- "ghcr.io/ferrohealth/ferroehr"
- "ghcr.io/ferrohealth/ferroehr:*"
- "ghcr.io/ferrohealth/ferroehr-viewer*"
# Sigstore bundle format, GitHub Artifact Attestations. Omitting
# this defaults to Cosign, which looks for a signature that does not
# exist and refuses every image.
type: SigstoreBundle
failureAction: Enforce
attestations:
- type: https://slsa.dev/provenance/v1
attestors:
- count: 1
entries:
- keyless:
issuer: https://token.actions.githubusercontent.com
# Released images only. For a staging cluster that runs
# the development tag, make the group
# `(heads/main|tags/v.+)`.
subjectRegExp: '^https://github\.com/FerroHEALTH/FerroEHR/\.github/workflows/containers\.yml@refs/(tags/v.+)$'
rekor:
url: https://rekor.sigstore.dev
conditions:
- all:
- key: '{{ buildDefinition.buildType }}'
operator: Equals
value: https://actions.github.io/buildtypes/workflow/v1
Add ghcr.io/ferrohealth/ferroehr-postgres* to imageReferences only if you run
that image in the namespace; the chart never installs it.
failureAction sits on the verifyImages entry: the spec-level
validationFailureAction is deprecated in the CRD (“use validationFailureAction
under the validate rule instead”), and a verifyImages rule has no validate
block. mutateDigest, verifyDigest and required all default to true, which
is what you want: a tag is rewritten to the digest that was verified, and an image
with no attestation is refused rather than passed.
sigstore-policy-controller
If you already run it. The equivalent two details:
signatureFormat: bundleon the authority. The default islegacy(cosign’s own), which cannot read these attestations. Requires policy-controller v0.13.0 or newer.- an
attestations:entry, because in bundle format policy-controller supports only attestations, not plain signatures.
apiVersion: policy.sigstore.dev/v1beta1
kind: ClusterImagePolicy
metadata:
name: ferroehr-image-provenance
spec:
images:
- glob: "ghcr.io/ferrohealth/ferroehr**"
authorities:
- keyless:
url: https://fulcio.sigstore.dev
identities:
- issuer: https://token.actions.githubusercontent.com
# Same group as the Kyverno policy: `(heads/main|tags/v.+)` for a
# staging cluster that runs the development tag.
subjectRegExp: '^https://github\.com/FerroHEALTH/FerroEHR/\.github/workflows/containers\.yml@refs/(tags/v.+)$'
signatureFormat: bundle
attestations:
- name: require-slsa-provenance
predicateType: https://slsa.dev/provenance/v1
Note
What has been checked, and what has not. The identity, the issuer and the predicate type above are verified first-hand against the published images with
cosign verify --certificate-identity-regexp …, which admits them and refuses both an unsigned image and, under a tags-only pattern, a:mainimage, so the matcher is neither vacuous nor accidentally permissive. The manifests are checked field by field against the publishedClusterPolicyandClusterImagePolicyCRDs. Neither policy has been exercised by a running admission controller, and the Kyverno CLI is no substitute:kyverno testreports averifyImagesrule asExcludedand returns the same verdict whichever result you assert. Before enforcing, run the policy inAudit(Kyverno) or as awarnpolicy (policy-controller) long enough to see one real deployment pass.
The chart is signed too, and verifying it is a release-time check rather than a
per-pod one: an admission controller sees pods and images, never the Helm
artifact a human pulled. The chart’s own commands are on the
Kubernetes page; its identity is the
build-chart.yml row in the table above.
Should the chart ship an admission policy? No, and the reason is structural: an
admission policy is cluster-scoped and governs workloads the chart knows nothing
about, while the chart deliberately renders no cluster-scoped object at all (see
namespaces). A
ClusterPolicy in this chart would mean helm uninstall removing a control that
other releases had come to depend on. The chart’s contribution is the policy
document, here, versioned with the lanes whose identity it encodes.
Without an admission controller, the manual equivalent is a release-time check.
Add --signer-workflow to insist on the lane as well as the repository; without
it you are trusting that some workflow here signed the image:
gh attestation verify oci://ghcr.io/ferrohealth/ferroehr:main \
-R FerroHEALTH/FerroEHR \
--signer-workflow FerroHEALTH/FerroEHR/.github/workflows/build-image.yml
Substitute a vX.Y.Z tag for main on a release; the signer workflow is the
same.
Important
Signing landed in the publishing lanes during the
3.17.4cycle, so image tags from before it answerHTTP 404: Not Found, and there is nothing to verify, which is the correct answer and not a verification failure to work around. Pin a current version instead.
Then deploy by digest (image.digest), so what you verified is what runs: a
tag can be moved afterwards, a digest cannot.
Continuous scanning of published images
Ours. CI scans images at build time, which catches what was known when they were built and nothing after. A CVE published the week after a release applies to the image people are running, so the published tags are re-scanned on a weekly schedule: all three images at the tag a user pulls, with the same severity floor and the same adjudicated exceptions as the build-time scan, and the OpenVEX documents applied so an accepted finding stays accepted with its argument attached.
A finding does two things, because either alone fails quietly: it opens (or comments on) a tracking issue, and it fails the run. A red scheduled run nobody looks at is not a control, and an issue with no failing check can be closed without the finding being addressed.
The PostgreSQL image is what this lane exists for, and it has already fired: the
3.17.5 release moved that image onto a rebuilt PostgreSQL 18.4 base to pull in
current Debian packages, changing nothing about FerroEHR itself. The distroless
images carry almost no OS package surface, and when the lane was written none of
the three published images carried a fixable HIGH or CRITICAL finding.
The remediation side is standing machinery, not a per-incident scramble. The PostgreSQL image applies Debian security updates at its own build time, so an OS-package fix published between upstream base rebuilds reaches the image at the next release rather than waiting on someone else’s cadence; a second weekly lane watches the pinned base itself and opens an issue when a newer PostgreSQL patch tag exists or the pinned tag is re-pointed upstream; and the exact published-image scan is reproducible locally against a rebuilt candidate, so a fix is proven clean before it merges.
The supply-chain map
Each cheat-sheet supply-chain control, and the artifact that satisfies it, so a reader can check rather than trust:
| Control | Satisfied by | Check it yourself |
|---|---|---|
| Trusted, minimal base images | gcr.io/distroless/cc-debian13:nonroot, digest-pinned; build stages pinned by digest too | grep FROM docker/Dockerfile |
| Vulnerability scanning in CI | Trivy over every published image, HIGH/CRITICAL with a fix available | the image vulnerability scan job log |
| Scanning after release | a daily scan of the published tags | .github/workflows/image-scan.yml |
| Dockerfile linting | hadolint, with adjudicated exceptions in .hadolint.yaml | the Dockerfile lint job |
| Secret + misconfiguration scanning | Trivy’s secret and misconfig scanners over the tree | the tree-scan job |
| Dependency advisories | cargo deny on every change, plus a scheduled latest-dependencies lane | cargo deny check |
| Signed images | a Sigstore keyless SLSA v1 provenance attestation per image | gh attestation verify oci://ghcr.io/ferrohealth/ferroehr:<tag> -R FerroHEALTH/FerroEHR |
| Signed chart | an attestation plus a cosign signature over the chart digest, both read back from the registry before the lane reports success | gh attestation verify oci://ghcr.io/ferrohealth/charts/ferroehr:<version> -R FerroHEALTH/FerroEHR |
| SBOM | an SPDX SBOM written onto the image index by the builder; a CycloneDX dependency-graph SBOM attached and Sigstore-attested per released binary | docker buildx imagetools inspect <image> --format '{{json .SBOM}}' |
| Adjudicated findings carry their argument | OpenVEX documents under security/vex/, applied by the scheduled scan | read the impact_statement in the document |
| Secured CI/CD | every uses: digest-pinned, permissions: {} by default, no context interpolated into a shell, zizmor and CodeQL over the workflows themselves | the zizmor job |
| No long-lived registry token | crates.io Trusted Publishing (OIDC); GHCR uses the ephemeral workflow token | the crates.io leg of .github/workflows/release.yml |
| Independent grade | OpenSSF Scorecard, computed by someone other than us | the Scorecard badge |
Two gaps remain, stated here rather than left out of a page that otherwise reads as complete:
- Nothing verifies the signatures at admission. We sign; no cluster is required to check before running an image. The policies to close it are above, and neither has yet been exercised by a running admission controller, which is why the instruction there is to run them in audit mode first.
- Provenance exists only from the
3.17.4cycle onward. Images published before the signing lane landed carry no attestation and never will, because a published artifact is not replaced.gh attestation verifyon those returns a 404, which is the correct answer and not a verification failure to work around.
The workload: security context & admission
The pod-level controls: what the chart asks for, what the runtime actually applies, and the one command that turns compliance into enforcement.
- The security context, and what keeps it true
- Beyond Restricted: the user namespace
- AppArmor, and why it is not on by default
- Pod Security Admission: complying versus being refused
- Sandboxing is not a substitute for instance separation
- Kernel modules: already impossible
The security context, and what keeps it true
Ours, and settled. Read back from the running container through the
container runtime’s own view of the pod, not from values.yaml:
process.user : {'additionalGids': [65532], 'gid': 65532, 'uid': 65532}
noNewPrivileges : True
capabilities.bnd : None ← an EMPTY bounding set, not "default minus ours"
root.readonly : True
seccomp default : SCMP_ACT_ERRNO
RW mounts : /tmp (plus the kernel/kubelet-managed /proc, /dev/*, /etc/hosts)
RO mounts : /etc/ferroehr /etc/ferroehr-secrets /sys /sys/fs/cgroup
Three things worth drawing out. The capability bounding set is empty, so the
drop is total at the kernel level rather than a subtraction from a runtime’s
default set. readOnlyRootFilesystem: true needed exactly one writable
path (the chart’s own /tmp emptyDir) and no per-integration surprise, which
is what makes it safe to keep rather than the setting an operator relaxes during
the first incident. And the server pod carries no init containers and no
sidecars, so the context above is the whole pod.
What keeps it true is not this page. deploy/helm/validate.sh parses the rendered
objects and asserts the Restricted fields per container, for every workload in
the render (including the optional viewer and the migration Job) and
the golden renders pin the exact bytes, so even a changed default fails a diff.
Both run in CI on any change to the chart. That structure is deliberate: the gate
this replaced grepped the rendered file for field names, so one compliant
container vouched for every other one, and a second workload could ship
non-compliant while the gate stayed green. The gate also fails when it finds
nothing to check, because a pod-less render reporting “all containers compliant”
is a false green, and it fails when a render carries no NetworkPolicy, or when a
multi-replica Deployment has neither spread constraints nor affinity.
A template edit that drops securityContext.readOnlyRootFilesystem or
securityContext.allowPrivilegeEscalation therefore fails a job, not a review.
Beyond Restricted: the user namespace
The Restricted profile stops a container from asking for privilege. It does nothing about what a container’s UID means on the node, and under the Kubernetes default, uid 65532 in the pod is uid 65532 on the host, so a container escape arrives as a real host user with whatever that user can reach.
The chart closes that by default. Every pod it renders carries hostUsers: false,
which puts the pod in its own user namespace and maps its UID range onto an
unprivileged host range. Read off a running pod:
$ cat /proc/self/uid_map
0 838860800 65536
$ id
uid=65532 gid=65532 groups=65532
The process still sees uid 65532; the kernel sees an offset host UID inside that mapped range. Root inside the pod (which this workload never uses, but a compromised process might reach for) maps to the base of the range, which owns nothing. Capabilities granted inside the namespace do not apply outside it.
This is why the chart’s kubeVersion floor is 1.36: that is the release where
user namespaces went stable
(KEP-127),
and the floor is what lets the field render unconditionally instead of being
gated and silently absent on the clusters that most needed it.
If your nodes cannot support it, the pod does not start, which is the failure
mode you want rather than a silent downgrade. The requirement is a Linux node
whose runtime implements idmapped mounts (containerd 2.0 or newer, CRI-O 1.25 or
newer). Set hostUsers: true to opt out; the chart then omits the field entirely
rather than stating the API default, so a future cluster-wide default can still
apply.
The same reasoning drives podSecurityContext.supplementalGroupsPolicy: Strict,
so the process gets only the groups the manifest names: a group baked into an
image cannot widen file access. And the chart’s render gate asserts that this
isolation set is identical across every workload of a release: a viewer that
shared the host user namespace while the server did not would be a posture nobody
could state in one sentence, and that is exactly the shape of drift a second
workload introduces. That is also why hostUsers is a release-wide key rather
than one per workload.
AppArmor, and why it is not on by default
securityContext.appArmorProfile (stable since Kubernetes 1.31) is a further
confinement layer, and it is left off deliberately, because it is not free: a node
without AppArmor rejects the pod outright rather than ignoring the field.
Observed on a node that does not carry it:
STATUS: AppArmor
Warning AppArmor pod/… Cannot enforce AppArmor: AppArmor is not enabled on the host
Turn it on once you know your nodes carry it: most Debian and Ubuntu nodes do, while Docker Desktop and several minimal distributions do not:
securityContext:
appArmorProfile:
type: RuntimeDefault
Pod Security Admission: complying versus being refused
Meeting the Restricted profile and being refused when you stop meeting it are different properties, and only the first is ours.
Restricted compliance, field by field, so the claim is checkable against the standard rather than asserted:
| Restricted requires | The chart sets |
|---|---|
hostNetwork/hostPID/hostIPC unset | none set |
| no privileged containers | securityContext.privileged: false |
allowPrivilegeEscalation: false | set |
capabilities dropped to ALL (only NET_BIND_SERVICE may be added) | drop: [ALL], none added |
runAsNonRoot: true | set, pod and container, uid/gid 65532 |
seccompProfile.type RuntimeDefault or Localhost | RuntimeDefault, pod and container |
| no hostPath volumes | only emptyDir and projected volumes (the latter carrying the ConfigMap and Secret sources) |
readOnlyRootFilesystem (hardening beyond Restricted) | true |
The enforcement half is the operator’s, and it is one command:
kubectl label --overwrite namespace ferroehr \
pod-security.kubernetes.io/enforce=restricted \
pod-security.kubernetes.io/audit=restricted \
pod-security.kubernetes.io/warn=restricted
The install notes print the same command as a prerequisite, with
enforce-version=latest so the profile does not silently loosen as the cluster
moves.
Why the chart does not do this itself, recorded so it is not re-litigated:
Helm installs into a namespace that already exists (or one
helm --create-namespace creates, which is the CLI’s action and not a template),
so a chart that declared its own release namespace would fight the tool, and
helm uninstall would then delete a namespace holding objects the release does
not own. More fundamentally, a PSA label is namespace-wide policy: it governs
every workload in that namespace, including backup jobs, sidecars and any database
an operator colocates. A single application chart is the wrong scope to claim it.
Observed on a live cluster, in a namespace labelled enforce=restricted, with the
database genuinely external to it:
-
the chart installs and serves unchanged: both replicas running with no restarts, readiness
UP, and a real openEHR write accepted. No admission warnings for its pods. -
a regression of the chart’s own pod spec is refused. Upgrading with
--set securityContext.privileged=true --set securityContext.allowPrivilegeEscalation=trueproduced a ReplicaSet that could create no pods, and:Error creating: pods "ferroehr-…" is forbidden: violates PodSecurity "restricted:latest": privileged (container "ferroehr" must not set securityContext.privileged=true), allowPrivilegeEscalation != falsewhile the healthy ReplicaSet kept both replicas serving, because
maxUnavailable: 0means the rollout cannot retire a good pod before a replacement is ready. The two controls compose: the label refuses the regression, and the strategy means the refusal costs no availability.
What you get by not applying the label: the chart still complies, but nothing
enforces it. A future chart change, a stray --set securityContext.privileged=true,
or a sidecar injected by other tooling would be admitted, and the first sign would
be a running privileged container in the namespace holding your PHI.
One practical note from that test: a colocated database fixture is unlikely to be
Restricted-compliant (the upstream postgres entrypoint must start as root), so
labelling a namespace that contains one will refuse it. That is another reason the
production posture puts the database outside the cluster.
Sandboxing is not a substitute for instance separation
Not required, and the reason matters more than the conclusion. The cheat sheet scopes sandboxing (Kata, gVisor, Firecracker) to clusters running untrusted workloads. This is our own code, so the threat it addresses (a container escape by hostile software you chose to run) is not the one in front of us. And the escape it hardens against is already narrowed by the pod’s own user namespace, which is on by default.
Important
A container sandbox does nothing to separate organisations, and that is the misreading worth preventing. FerroEHR is single-tenant: one instance serves one organisation, with its own database and its own domain roles. A sandbox draws a stronger boundary around one container, which is a boundary a single organisation is already alone inside. What separates two organisations is running two instances; the namespace model is where that is arranged.
A sandbox is worth considering in one case: a cluster where this workload runs
beside third-party or customer-supplied code, and you want to protect this
workload’s node from that. Note the cost first: a sandboxed runtime changes the
syscall surface and the performance profile of a database-bound server, and the
gVisor/Kata runtimes need a RuntimeClass the chart does not set (add it through
your platform’s pod defaults if you adopt one).
Kernel modules: already impossible
Satisfied by the chart’s own posture, which is unusual for a host-side control and worth recording precisely rather than deferring.
Loading a kernel module requires CAP_SYS_MODULE. The container’s capability
bounding set is empty (read off the running container, not off the
manifest’s request) and allowPrivilegeEscalation: false with
noNewPrivileges set means no setuid binary can regain it. The pod’s own user
namespace makes the point twice over: a capability held inside it does not apply
outside it. So this container cannot trigger a module load at all, whatever
/etc/modprobe.d/ on the host says. An attempt would still be a
runtime-detection
signal;
it just cannot succeed.
Host-side blacklisting remains good practice for the node, and stays the operator’s: it constrains every other workload on that node, including ones with capabilities this one does not have, and a privileged pod anywhere on the node can still load modules that affect this container’s kernel.
Namespaces, network & policy
Where the release’s boundaries are drawn: namespace scoping, how organisations are separated, the decisions not to adopt a mesh or a second policy engine, resource bounds in four nested layers, the ingress policy that narrows ports before it narrows sources, and deny-by-default egress: the one control on these pages that is not free.
- Namespaces, and one instance per organisation
- Service mesh: a recorded decision
- Centralized policy, and which engine
- Resource bounds: four layers
- Ingress: ports are narrowed, sources are yours
- Egress: deny by default, and what it breaks
Namespaces, and one instance per organisation
Ours, and satisfied by construction. Every object the chart renders is namespace-scoped: Deployment, Service, ConfigMap, Secret, ServiceAccount, NetworkPolicy, PodDisruptionBudget, HorizontalPodAutoscaler, Ingress, ServiceMonitor, the migration Job, and the viewer’s own Deployment, Service, ServiceAccount, NetworkPolicy and Ingress when that workload is enabled. There is no ClusterRole, no ClusterRoleBinding, no CustomResourceDefinition, no cluster-scoped object of any kind, and no template hard-codes a namespace: every reference resolves within the release’s own namespace. So two releases in two namespaces cannot collide, and neither can reach the other’s Secrets.
Separating organisations is a release per organisation, each in its own
namespace with its own database. FerroEHR carries no in-database tenancy, and
that is where openEHR puts the boundary: an openEHR system is one organisation’s
repository, and multi-tenancy is something the infrastructure beneath it does
with several such systems (BASE architecture_overview
master06-design_of_the_ehr.adoc §The EHR System).
What that buys, against the in-process alternative it replaces:
| One release per organisation | |
|---|---|
| Isolation boundary | Kubernetes plus PostgreSQL: separate Secrets, NetworkPolicies, quotas, RBAC, and a separate database |
| Blast radius of an application-level bug | one organisation, because a query has nothing else to reach |
| Blast radius of a compromised database credential | one organisation’s database |
| Cost | one Deployment, one connection pool and one image pull per organisation |
The cost is real and it is the price of the boundary. A shared process scoped by a row predicate is cheaper and is not equivalent, however similar the wire behaviour looks.
Service mesh: a recorded decision
Not adopted, deliberately. The cheat sheet presents a mesh as a trade-off, not a requirement, and for this workload the trade lands clearly.
What a mesh would provide, and what already provides it:
| Mesh benefit | Already covered by |
|---|---|
| mTLS between services | the server terminates TLS natively (config.server.tls), including client-certificate authentication for the IHE ATNA node-authentication posture; the database connection uses sslmode=verify-full |
| East-west traffic restriction | the shipped NetworkPolicy, and for the viewer an egress policy that admits the CDR Service, DNS and outbound HTTPS and nothing else |
| Request-level observability | OTLP traces and Prometheus metrics from the application, which sees openEHR operations rather than an L7 proxy’s view of opaque HTTP |
| An audit trail of access | the ATNA/BALP audit trail, which records who read which patient’s record, a property no proxy can reconstruct |
Against that: a mesh is a second control plane, a sidecar in every pod (which the Restricted profile and the empty capability set then have to accommodate), and an opinionated platform to upgrade in lockstep. For one workload plus an external database, the lateral-movement problem a mesh exists to solve barely exists.
A genuine gap, named rather than glossed: a mesh would give workload
identity: SPIFFE-style cryptographic identity per pod, so the database could
authenticate the client workload rather than a shared password held in a Secret.
Nothing in this deployment provides that; the DSN is a bearer credential, and any
process that can read the Secret can use it. The mitigations available without a
mesh are an external secret manager plus short-lived credentials, for example
cloud IAM database authentication, where the DSN carries a rotating token rather
than a password, bound through serviceAccount.annotations. If you run a mesh
anyway, expect the overlaps above rather than double-implementing them, and note
that its sidecar will need its own Pod Security accommodation.
Centralized policy, and which engine
Operator’s, and only for one of the three use cases a general policy engine is usually proposed for.
- Application authorization: already solved, do not add a second engine. This server ships a policy-driven authorization layer: RBAC, plus the access evaluator over the access directives each EHR carries and the controller’s access policy. Adding a policy engine for application decisions would mean two policy engines disagreeing about one question, and the one that loses is whichever is consulted second.
- Service-mesh authorization: moot, no mesh (above).
- Admission control: applies, and it is the same lever image provenance and Pod Security enforcement need.
Decision: Kyverno, chosen for what it must enforce rather than on general
merit. It is the only one of the three candidates that covers both levers with
one controller: verifyImages does keyless signature and attestation
verification, and its policies can enforce pod-security constraints beyond what
namespace labels express. sigstore-policy-controller does provenance only, so it
would have to be paired with something else. Kubernetes’ built-in
ValidatingAdmissionPolicy (CEL, no external controller) is attractive for pod
shape and is the right tool for cheap structural rules, but it cannot verify
signatures at all, because CEL evaluation makes no network calls and cannot
reach a transparency log, so it cannot be the answer to the control that matters
most here.
If you already run OPA/Gatekeeper for other reasons, keep it and add
sigstore-policy-controller alongside for provenance; do not run two general
admission engines. The copyable provenance policies are in
Images, and Pod
Security enforcement needs no engine at all: it is
the namespace label.
Resource bounds: four layers
Split exactly. Container requests and limits are the chart’s; namespace
ResourceQuota and LimitRange are cluster-admin objects, and a workload chart
that created one would be claiming the whole namespace for itself, wrong the
moment anything else shares it.
The chart’s bounds, and where they come from:
| Value | Derivation | |
|---|---|---|
resources.requests.cpu | 250m | the scheduling floor: enough to boot, run migrations and serve steady traffic. An idle-but-serving pod uses far less, so this is deliberately generous rather than tuned to observed idle: a request is what the scheduler reserves, and a too-tight one gets the pod placed on a node with nothing left for a traffic spike. |
resources.requests.memory | 256Mi | observed steady-state resident use is a fraction of this, and the headroom is for the connection pool, the template and WebTemplate caches, and the per-request AQL working set. |
resources.limits.cpu | 2 | AQL execution is the CPU-heavy path and is bounded per query by config.record.query.timeout; two cores lets a query and normal traffic proceed without throttling. CPU limits throttle rather than kill, so this trades latency, not availability. |
resources.limits.memory | 1Gi | a hard ceiling: exceeding it is an OOM kill, so it sits well above observed use. The application-level body and result limits below are what keep a single request from approaching it. |
Those figures are for a modest replica. Tune them from your own metrics rather than
treating them as a recommendation, and remember that raising replicaCount
multiplies the request, which is what a namespace quota will notice first. The
viewer has its own, smaller bounds under viewer.resources.
The layering is the point, and an operator should see it as one story: four nested bounds, each catching what the next cannot:
- Per request:
config.server.body_limitandconfig.api.body_limit(413 on an over-large body),config.server.request_timeout(408),config.record.query.timeoutandconfig.record.query.max_result_rows(a query cannot return an unbounded row set),config.database.statement_timeoutas the backstop the HTTP timeout cannot be, because dropping a handler future does not cancel the statement PostgreSQL is running. - Per connection / per caller:
config.server.header_read_timeoutbounds a socket before a request exists andconfig.server.idle_timeouta kept-alive one between requests;config.server.caller_raterefuses429;config.server.max_concurrent_requestsrefuses503when the server is full. - Per container: the requests and limits above.
- Per namespace: the operator’s, and the only layer that protects other workloads from this one:
apiVersion: v1
kind: ResourceQuota
metadata:
name: ferroehr
namespace: ferroehr
spec:
hard:
requests.cpu: "2"
requests.memory: 4Gi
limits.cpu: "12"
limits.memory: 8Gi
pods: "12"
count/services: "4"
---
apiVersion: v1
kind: LimitRange
metadata:
name: ferroehr-defaults
namespace: ferroehr
spec:
limits:
- type: Container
# A pod that arrives with no limits gets these, so nothing in the namespace
# can be unbounded by omission.
default: {cpu: "1", memory: 512Mi}
defaultRequest: {cpu: 100m, memory: 128Mi}
max: {cpu: "4", memory: 2Gi}
Size the quota above replicaCount × requests with headroom for a rolling
upgrade: maxSurge: 1 means one extra pod exists mid-rollout, and a quota with
no room for it makes upgrades stall rather than fail, which looks like a hung
deployment. The migration Job needs its share too when
migrations.job.enabled is on.
Ingress: ports are narrowed, sources are yours
The chart’s mechanism, your peers: and the one control on this page whose default looks stronger than it is.
networkPolicy.enabled ships on, and the policy it renders admits inbound
traffic to the API port (plus the management port when that runs on its own
listener) and to nothing else. That half is unconditional. The other half is not:
the rule’s sources are narrowed only when you set networkPolicy.ingressFrom.
While that list is empty the rule carries no from clause at all, and in the
NetworkPolicy API a rule with no from admits every source, other
namespaces and off-cluster clients included, not “any pod in this namespace”
(NetworkPolicies).
So the shipped posture is: ports restricted, sources open. Nothing about
kubectl get networkpolicy, the object’s own name, or a summary that says
“NetworkPolicy: enabled” distinguishes that from a policy that restricts both:
which is why the chart now states it as a value you can see and change rather
than leaving it implicit in an empty list.
Narrow it to whatever fronts the CDR:
networkPolicy:
enabled: true
ingressFrom:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: ingress-nginx # your controller's namespace
# - ipBlock: {cidr: 10.0.0.0/16} # or a CIDR, for off-cluster callers
ingressAllowAll: false # refuse to ever render the open rule
The viewer does not need an entry: when viewer.enabled is on, the chart
appends the viewer’s own pod selector to whatever you list, because a narrowed
policy that forgets it locks the viewer out of the CDR and presents as the CDR
being down.
The viewer’s own policy works exactly the same way, under
viewer.networkPolicy.ingressFrom and viewer.networkPolicy.ingressAllowAll,
with the same refusal on false + empty. Its egress half is genuinely closed
(the CDR Service and DNS, nothing else) but its ingress half ships open like the
CDR’s, and what sits behind it is a login page. Narrow both.
Important
networkPolicy.ingressAllowAll: falsemakes “no open ingress” a checked fact. With it set, an emptyingressFromis refused at render time, the same treatment egress gives a policy with no database destination, and for the same reason: an absent selector is a decision, and this one is invisible in the place an operator would look for it. Set it in the values file of any deployment where an open ingress rule would be a finding, and a later edit that drops youringressFromfails the install instead of quietly reopening the port.It ships as
true, which is the honest name for what the chart has always rendered: a stockhelm installproduces the open rule, and now says so, in the values file, in the object’skubernetes.io/description, and in the notes printed at install. A non-emptyingressFromalways narrows, whatever this key is set to; it decides the empty case only.
Warning
A NetworkPolicy is only as real as the CNI that implements it. On a cluster whose network plugin does not enforce NetworkPolicy, the object is accepted, stored and displayed with no effect and no warning. Verify by attempting a connection the policy should refuse, from a pod in another namespace, since that is precisely the source an empty
ingressFromadmits.
Egress: deny by default, and what it breaks
The mechanism is the chart’s; the destinations are yours: and this is the control where a NetworkPolicy stops being free.
Enabling networkPolicy.egress.enabled refuses all outbound traffic except
what is listed. DNS is always included, and the database is a first-class value
because it is the only destination that is never optional:
networkPolicy:
egress:
enabled: true
database:
to:
- ipBlock: {cidr: 10.0.12.7/32} # a managed database
# or, in-cluster:
# - podSelector: {matchLabels: {app.kubernetes.io/name: postgres}}
port: 5432
rules: [] # one entry per integration, below
Important
Enabling egress with no destinations at all (neither
networkPolicy.egress.database.tonornetworkPolicy.egress.rules) is refused at render time rather than at rollout, because that mistake presents as a database fault: readiness reports the database down, the log shows a connect timeout, and nothing mentions the network policy. Supplyingrulesbut omitting the database destination renders, so keep the database entry where it belongs rather than folding it into a raw rule where it is easy to lose.
The destination set, derived from the configuration tree rather than from what a default install happens to use. Every row except the usage report is off unless its key is set, so add only the rows you have switched on:
| Destination | Turned on by | Port | Typically |
|---|---|---|---|
| Cluster DNS | always | UDP+TCP 53 | in-cluster (always allowed) |
| PostgreSQL | the DSN, never optional | the DSN’s (5432) | off-cluster (managed) |
| OTLP collector | config.telemetry.otlp.endpoint | 4317 gRPC / 4318 HTTP | in-cluster |
| Token issuer (metadata + key set) | each config.auth.issuer table, unless it sets its own jwks_file | 443 | off-cluster |
| FHIR terminology server | config.the [terminology] table plus its url | 443 | off-cluster |
| FerroTERM in the cluster | terminology.enabled | 8080 | in-cluster, and the chart renders this rule itself — it chose the destination when it wired the CDR at the Service, so you do not add it to rules. Omitted, terminology would fail silently: under the shipped fail-open posture an unresolvable binding is accepted, so nothing refuses and nothing logs. |
| Terminology token endpoint | config.[terminology].oauth.token_endpoint | 443 | off-cluster |
| Object store | config.record.multimedia.enabled plus config.record.multimedia.url (unset means AWS regional resolution) | 443, or the endpoint’s | off-cluster |
| Syslog audit repository | config.audit.syslog.url | 6514 TCP (TLS) | off-cluster |
| FHIR audit repository | config.audit.fhir_feed.endpoint.url plus secrets.auditFhirFeedUrl | 443 | off-cluster |
| FerroPULSE usage report | usageReport.enabled, on by default | 443 | off-cluster, report.ferropulse.eu. Without the rule the report logs a warning and nothing else is affected; see Usage report |
The viewer, when enabled, carries its own egress policy rather than appearing in this table: it admits the CDR Service, DNS, and outbound HTTPS for an identity provider. Narrow that last rule to your issuer’s address if you can.
Warning
A NetworkPolicy cannot match a DNS name. The API selects peers by pod, namespace or
ipBlockCIDR only, so every off-cluster row above needs a CIDR you supply and keep current. A managed database that moves IP, or a terminology server behind a rotating CDN address, will break under a CIDR that was correct when written. Where a provider publishes no stable range, the honest options are an egress gateway with a fixed address, or leaving egress off and accepting that outbound traffic is unrestricted, not a0.0.0.0/0rule that pretends to be a policy.
Two failure modes worth knowing before you tighten this.
An over-tight policy silently stops observability. A blocked OTLP exporter does not fail the request that generated the span: it drops the span, with no log line and no error. So a policy that forgets the collector produces a server that is healthy by every check and has quietly stopped being observable. If you enable egress and traces disappear, look at the policy before the collector.
Tightening egress under a running pod appears to work when it has not. A NetworkPolicy is enforced on new connections; existing conntrack flows survive. So a pod whose connection pool is already established keeps serving after you remove its database rule, and fails at the next restart, which may be a node drain in the middle of the night. Observed on a live cluster:
policy: DNS + database → readiness 200 {"status":"UP", db UP, migrations UP}, POST /ehr 201
remove the database rule (DNS only), pod untouched
→ readiness STILL 200, db STILL "UP" ← the pool survives
delete the pods so a fresh one must connect
→ readiness 503, no replica available
kubelet: Readiness probe failed: HTTP probe failed with statuscode: 503
restore the rule → ready again, with no restart
So: verify an egress policy by restarting a pod, not by watching the one that is already running. (The recovery in the last line needing no restart is the readiness check re-testing its dependencies on every probe, the same property described for migrations.)
Secrets, detection & response
What this deployment’s Secrets actually contain, how to notice a compromise on a shell-less image, what to do when you have one, and where a managed control plane takes controls out of your hands.
- Secrets at rest, and what ours contain
- Runtime detection on a shell-less image
- Replica deviation and the outbound inventory
- Breach containment and rotating credentials
- Logging: two streams that are not interchangeable
- On a managed control plane
Secrets at rest, and what ours contain
Operator’s: encryption at rest is an API-server flag
(--encryption-provider-config), and Kubernetes does not encrypt Secrets by
default. A Secret is base64-encoded, which is an encoding and not a
protection: without that configuration, everything below sits readable in etcd,
which is why the etcd
section is the other half
of this one.
The useful half is ours: exactly what this deployment’s Secrets contain, so you can judge the exposure rather than reading “secrets” generically.
| Secret content | Present when | What it gets an attacker |
|---|---|---|
| The database DSN | always | direct read/write access to all patient data, bypassing the API, its authorization and its audit trail entirely |
| A Basic user’s Argon2id hash | secrets.basicUserPasswordHashes | an offline cracking target, not a usable password |
The version-signing passphrase (plus the PGP key via config.files) | config.record.signing.mode: pgp | the ability to forge version signatures, breaking the integrity guarantee |
A terminology client_secret | secrets.terminologyClientSecret | access to the terminology server as this client |
| The audit repository URL | secrets.auditFhirFeedUrl | the ability to read or forge audit records at the repository |
| S3 credentials | secrets.multimediaSecretAccessKey (with secrets.multimediaAccessKeyId) | offloaded DV_MULTIMEDIA blobs, which are PHI |
| The viewer’s OIDC client secret | viewer.existingSecret, when the viewer is enabled | the ability to impersonate the viewer at your identity provider |
The rendered ferroehr.toml itself is not in that list, and that is worth
stating because it used to be: while a Basic user’s hash had nowhere secure to go,
configuring one moved the whole configuration file into a Secret. Every credential
the server models now has either a *_file sibling or a Secret-borne environment
route, so no key takes that branch today; the chart keeps it only so that a
secret key added upstream tomorrow fails safe instead of landing in a ConfigMap.
The first row is the one that matters most, and it has a property worth naming: the DSN is a bearer credential. Any process that can read it can use it, from anywhere the database is reachable: there is no binding to the workload that was issued it. That is the same gap named under service mesh (workload identity), reached from the other direction, and the mitigation is the same: a credential that is short-lived and issued to a workload identity rather than a long-lived password in an object.
Enable encryption at rest with an
EncryptionConfiguration
on every API server. Prefer a KMS provider over aescbc/secretbox with a local
key: a key sitting in a file on the control-plane node is protected by the same
boundary as the etcd data it encrypts. On a managed cluster this is usually one
setting (envelope encryption with the provider’s KMS); check whether it is on,
because it generally is not by default. Existing Secrets are only re-encrypted
when rewritten, so follow the documented kubectl get secrets --all-namespaces -o json | kubectl replace -f - step, or the encryption applies to new writes only.
Or remove them from etcd entirely. Every secret this chart carries has a
*_file route or an existingSecret route, so no code change is needed to source
them from a secret manager:
- A CSI driver (Secrets Store CSI
Driver with the Vault, AWS,
Azure or GCP provider) mounts the value as a file. Point
extraVolumesandextraVolumeMountsat it and set the matching*_fileconfiguration key;config.record.signing.key_passphrase_file,config.record.multimedia.secret_access_key_file, the terminology grant’sclient_secret_file. Nothing reaches a Kubernetes Secret at all. - An operator that syncs into a Secret (External Secrets Operator, Vault Agent Injector) still lands in etcd, so it buys rotation rather than removal: worth having, but pair it with encryption at rest.
- The DSN is mounted too, from
database.existingSecret, so a CSI-provided Secret carries it like any other. What a mount does not fix is that the DSN remains a bearer credential: cloud IAM database authentication is the route that removes the standing password (the DSN then carries a short-lived token), andserviceAccount.annotationsexists for the IRSA or Workload Identity binding that needs. config.audit.fhir_feed.endpoint.urlis the only credential-bearing key with no*_filesibling, so it is the one value still passed as an environment variable.
Finding exposed secrets is already covered in CI rather than left to an
operator: Trivy’s secret scanner runs over the whole tree and over every
published image, so a credential committed to the repository or baked into a layer
fails a job. The deliberate development credentials were checked against it and are
not flagged, so nothing is exempted to make it pass.
The volume-versus-environment half of this control (mounting secrets as read-only
files rather than passing them as environment variables) is
covered on the Kubernetes page and is
already the chart’s behaviour for every secret whose configuration key has a
*_file sibling.
Runtime detection on a shell-less image
Operator’s tooling (Falco, Tetragon, or a managed equivalent), but the signals are unusually high-confidence here, and that is what makes it worth more than a recommendation.
The runtime image is distroless and shell-less. There is no sh, no bash,
no curl, no package manager, and the container runs one process. So the usual
heuristics stop being heuristics:
| Signal | Why it is unambiguous for this image |
|---|---|
Any execve of anything other than /usr/local/bin/ferroehr | the image contains no other executable to run, so a second process means one arrived from outside |
| A shell process in the container | impossible under normal operation; there is no shell in the filesystem |
A write outside /tmp | the root filesystem is read-only and /tmp is the only declared writable mount |
| An outbound connection to anything not in the egress table | the inventory is complete and small |
| Any attempt to load a kernel module, mount, or change namespaces | the capability bounding set is empty, so these cannot succeed, but an attempt is still a signal |
A starter Falco rule set exploiting exactly that:
- macro: ferroehr_container
condition: container.image.repository endswith "/ferroehr"
- rule: FerroEHR unexpected process
desc: Any process other than the server binary in a shell-less image
condition: spawned_process and ferroehr_container and proc.exepath != "/usr/local/bin/ferroehr"
output: Unexpected process in FerroEHR container (proc=%proc.exepath parent=%proc.pname container=%container.id)
priority: CRITICAL
- rule: FerroEHR write outside tmp
desc: The root filesystem is read-only; /tmp is the only writable mount
condition: open_write and ferroehr_container and not fd.name startswith "/tmp/"
output: Write outside /tmp in FerroEHR container (file=%fd.name proc=%proc.exepath container=%container.id)
priority: CRITICAL
- rule: FerroEHR unexpected outbound connection
desc: Outbound to a destination outside the configured inventory
condition: >
outbound and ferroehr_container and
not fd.sport in (53) and not fd.sport in (5432, 4317, 4318, 443, 5671, 5672, 6514)
output: Unexpected egress from FerroEHR container (dest=%fd.rip:%fd.rport proc=%proc.exepath)
priority: WARNING
Tune the port list to the destinations you actually enabled; the point of the third rule is that the list is short enough to be worth writing. The macro matches the viewer’s image too, whose only expected process is its own server binary.
What each layer sees, and cannot. The syscall layer sees process execution,
file writes and raw connections (a compromise of the container) but it has no
idea which patient’s record was read, because to it every request is bytes on an
established socket. The ATNA audit trail sees exactly that: which subject
accessed which EHR, through which operation, under which authenticated identity:
but it is emitted by the application, so a compromise deep enough to control the
process can stop or falsify it. They are complementary and neither substitutes:
runtime detection is how you learn the process is not itself any more; the audit
trail is how you answer what was accessed while it still was. Forwarding audit
records off-box to an external repository (config.audit.syslog,
config.audit.fhir_feed) is what keeps the second answer available after the
first alarm.
Replica deviation and the outbound inventory
Operator’s practice, from material the server already publishes: which makes it more actionable here than the generic advice.
Replicas of this Deployment are interchangeable: same image, same configuration, traffic distributed by the Service. So a metric that differs per pod is a signal, and the Prometheus surface is already per-pod (each pod is its own scrape target). Worth alerting on a divergence between pods rather than on an absolute value:
| Comparison across pods | What a deviation suggests |
|---|---|
| request rate per pod | a load-balancing fault, or one pod being addressed directly, bypassing the Service |
| error ratio (5xx over total) per pod | a pod-local fault: a broken database connection, an exhausted pool, a failing dependency one pod reaches and others do not |
| tail latency per pod | a throttled pod (CPU limit), a noisy neighbour, or a degraded node |
| authentication-failure rate per pod | credential stuffing aimed at one endpoint, or a token-validation path failing on one pod (an unreachable JWKS endpoint) |
| resident memory slope per pod | a leak or an unbounded working set on one replica only |
| database pool acquire-wait per pod | that pod’s pool is starved while others are not |
The management surface’s prometheus endpoint (opened with
config.management.endpoints.prometheus) is the source, and
metrics.serviceMonitor.enabled is how an operator-managed Prometheus discovers
it. Two things worth knowing: the ATNA audit trail gives a second, independent
view (an access pattern that deviates per pod is visible there at
patient-and-operation granularity) and a pod that fails readiness leaves the
Service, so “one pod has zero traffic” can mean it is unready rather than
unreachable.
The outbound inventory the traffic half of this control asks for is the egress table, derived from the configuration tree. In the chart’s default posture, read from node conntrack on a running pod, the complete set is two destinations: TCP 5432 to the database and UDP 53 to cluster DNS. Nothing else. That is what makes a deny-by-default egress policy tractable: the base allowance is two rules, and every addition is a named, configured endpoint rather than an open range. Compare live traffic against the policy periodically: a connection the policy permits and nothing makes is a rule to remove.
Breach containment and rotating credentials
Scaling to zero is a clinical-safety decision, and it should be made before you
need it. kubectl scale deploy/ferroehr --replicas=0 is the Kubernetes-native
containment action, and for this workload it means clinical access stops
immediately: no reads, no commits, for everyone. That is the point during a
breach, and it is also an outage of a system clinicians may be depending on at
that moment. Decide in advance who is authorized to make that call.
What scaling to zero does:
- stops all new requests, including whatever the attacker is doing through the API;
- leaves the database untouched: it is external, so its data, its contents and its own access controls are unaffected;
- preserves the pod’s evidence only partially: scaling to zero terminates the pods, so anything in memory is gone. To preserve a pod for forensics, cordon its node and remove the pod from the Service by editing its labels instead; the ReplicaSet then creates a replacement while the original keeps running, detached from traffic.
What it does not do:
- it does not undo committed data. openEHR change control is append-only, so a malicious commit is a new version, not an overwrite. The prior version is still there and still retrievable.
- it does not stop an attacker who has the DSN. The database is reachable independently of these pods; a leaked DSN is used from anywhere the database admits, which is why rotating it (below), not scaling, is the containment action for that particular compromise.
- it does not truncate the audit trail. Records already written to the local
store, or already forwarded to an external repository, survive. Records still in
the outbox at termination are drained during the grace period, so a scale-to-zero
loses less than an abrupt kill; forwarding to an external repository
(
config.audit.syslog,config.audit.fhir_feed) is what makes the trail survive the pods entirely.
Rotating each credential
Every secret except two is a mounted file, so rotation is: update the Secret, then restart the pods. The restart is not optional: configuration is read at boot, and Kubernetes propagating a new Secret into the volume does not make a running process re-read it:
kubectl -n ferroehr create secret generic ferroehr-db \
--from-literal=FERROEHR__DATABASE__URL='postgres://…new…' --dry-run=client -o yaml \
| kubectl apply -f -
kubectl -n ferroehr rollout restart deploy/ferroehr
(A rotation you make through helm upgrade needs no explicit restart: any change
under config, config.files or secrets moves the checksum/config pod
annotation and rolls the Deployment by itself.)
| Credential | Rotation | Notes |
|---|---|---|
| Database DSN | update the Secret, then rollout restart | rotate the database password too, or the old one still works; maxUnavailable: 0 keeps the old pods serving on the old credential until the new ones are ready, so grant both briefly or accept a gap |
Terminology client_secret | update, then restart | rotate at the identity provider in the same window |
| S3 credentials | update, then restart | or remove them entirely with IRSA or Workload Identity |
| Audit repository URL | update, then restart | still an environment value (no *_file sibling) |
| Basic user password hash | update, then restart | rotate the password and re-hash at the OWASP Argon2id floor, which the server checks at boot |
| Viewer OIDC client secret | update, then restart the viewer | rotate at the identity provider in the same window |
| Version signing key | read the next section first | rotate the signing subkey, not the certificate |
Rotating the version signing key
In the default digest mode there is no key: the version signature is a hash of
the canonical form, recomputed at read time. Nothing to rotate, and nothing
breaks.
In pgp mode there are two mechanisms, and the first is the one to reach for.
The ordinary path: rotate the signing subkey. OpenPGP is built for this. A certificate is a primary key plus its subkeys (RFC 9580 §10.1), the primary key certifies while a subkey signs, and rotating means issuing a new signing subkey on the same certificate. The retired subkey stays in the certificate, so every version it signed keeps verifying, with no configuration change, no second key file, and no window where history is unreadable. It is also the only path that keeps the primary key’s identity intact; replacing a primary key discards everything that has ever been said about it.
# add a fresh signing subkey to the existing certificate
gpg --quick-add-key <FINGERPRINT> ed25519 sign 1y
# revoke or expire the previous one, then re-export BOTH halves
gpg --export-secret-keys --armor <FINGERPRINT> > signing.asc
Update the mounted Secret and roll the pods. The server signs with the newest signing-capable subkey and verifies against every subkey the certificate carries, so the switch is invisible to readers.
The exception: a whole certificate is replaced. A compromised primary key, an organisational change, or migrating from a different signer means a genuinely new certificate, and then the old one must be retained, because a stored signature carries no key identifier and a version signature is an immutable committed fact that cannot be re-issued. Keep the retired public key:
[record.signing]
mode = "pgp"
key_file = "/etc/ferroehr/signing.asc" # the new certificate
retired_key_files = ["/etc/ferroehr/signing-2025.pub.asc"] # public, verify-only
Under Helm these are config.record.signing.key_file and
config.record.signing.retired_key_files, with both files mounted through
config.files.
Note
Retired entries are public keys, which is what makes the safety property structural rather than a promise: no secret key is loaded for them, so a retired certificate can verify and can never sign again. Verification does not become permissive either: a signature matching neither the active certificate nor any retired one still fails, and tampered content still fails.
This is the same mechanism Debian uses for its archive: debian-archive-keyring
ships current and retired keys so packages signed under an older key stay
verifiable (Debian archive keys).
What neither mechanism covers. Key expiry and revocation are a different
problem: a strict verifier arguably should accept a signature made while the key
was valid and reject one made after, and nothing in a detached signature proves
when it was made. Solving that needs trusted timestamps (RFC 3161), the
approach Sigstore takes with
short-lived keys and a timestamp authority. FerroEHR does not implement it, so
treat an expired signing key as a certificate replacement and use
config.record.signing.retired_key_files.
If you are mid-rotation and need reads to keep working before either mechanism
is in place, config.record.signing.verify_on_read: warn downgrades a verification
failure from a 5xx to a logged and metered event
(version_signature_invalid_total{verdict="pgp_invalid"}). That is a deliberate,
recorded reduction in an integrity guarantee, not a setting to leave on.
Logging: two streams that are not interchangeable
Container logging is ours, and already the right shape. The server writes to
stdout and stderr and never to a file inside the container, which is both the
Kubernetes logging
architecture’s
expectation and a requirement of readOnlyRootFilesystem: true: there is nowhere
to write a log file. Set config.telemetry.format: json (the chart’s default) for a
collector; pretty is for a terminal.
The distinction that matters, because getting it wrong loses the accountability record:
| Application log | ATNA audit trail | |
|---|---|---|
| Purpose | diagnostics: what the process is doing | accountability: who accessed which patient’s record |
| Destination | stdout/stderr → node → your collector | its own store in the database, plus optional forwarding to an external repository |
| Format | JSON lines, ours | DICOM PS3.15 plus FHIR AuditEvent (IHE BALP), standardised |
| Retrieval | your log tool | the ITI-81 FHIR AuditEvent search endpoint |
| Retention | your collector’s policy | config.audit.store.retention (0 keeps forever) |
| May it be sampled or dropped? | yes, it is diagnostics | no |
Important
Do not treat the audit trail as “logs”. A collector configured to sample a noisy stream, or to drop under volume, is a reasonable policy for diagnostics and a compliance failure for the audit trail: it silently discards the record of who read which patient’s data. The two travel by different paths precisely so that one can be lossy: the audit trail does not go through stdout at all. If you also ship audit records to your log platform for convenience, that copy is a convenience, not the record.
The audit trail’s own failure behaviour is configurable, and the default is worth
knowing rather than inheriting: config.audit.fail_mode defaults to open, so
an operation whose audit record cannot be written still proceeds, and the failure
is metered rather than refused. closed answers 503 instead, the stronger
compliance posture, and one that turns an audit outage into a clinical outage.
Which is correct depends on whether your regulatory position can tolerate an
unaudited access more or less than a refused one; it is a policy choice either way,
and the shipped default chooses availability.
Cluster API audit logging is the operator’s. Enable it on the API server with
an audit policy (None / Metadata / Request / RequestResponse per rule).
Metadata for most resources with Request-level detail for Secret and RBAC
changes is a reasonable starting shape. Two things worth alerting on specifically:
authorization failures (Forbidden responses, a principal probing what it can
reach), and any read of Secrets in this namespace by a principal that is not the
kubelet, since that is what reading the DSN looks like from the API side.
Kubernetes Events are a third source, and distinct from both: they are the
cluster’s account of what happened to your objects, they expire (typically an
hour), and they are where this chart’s failures show up first:
Readiness probe failed: HTTP probe failed with statuscode: 503 when a dependency
is down, FailedCreate … violates PodSecurity "restricted:latest" when a pod spec
regresses under enforcement, Unhealthy and Killing during a rollout. Check
kubectl get events --sort-by=.lastTimestamp before the application log when a pod
will not start: the reason is usually there, and it is usually not in the log,
because the container never ran.
On a managed control plane
On EKS, GKE, AKS or an equivalent, several controls in this audit stop being yours: you cannot set API-server flags, reach etcd, or configure kubelet authentication. In exchange you inherit the provider’s defaults, which may be stronger or weaker than this sheet assumes, and which you should verify rather than assume.
| Control | On a managed cluster |
|---|---|
| Host hardening, node OS patching | provider’s, though node images and upgrades are usually still yours to trigger |
| API-server flags, authorization mode | provider’s (RBAC is on by default everywhere mainstream) |
| etcd access + encryption at rest | provider’s, but envelope encryption with your own KMS key is usually opt-in, and it is the control our Secrets need |
| Kubelet authentication | provider’s |
| Control-plane audit logging | provider’s to enable, often off or short-retention by default, and usually billed |
User namespaces (hostUsers: false) | depends on the node image’s runtime version, which is why the pod fails loudly rather than downgrading |
| Pod Security Admission | yours (namespace labels) |
| NetworkPolicy | yours to write; enforcement depends on the CNI |
| Everything the chart sets | unchanged: it is a workload |
Check the CNI before relying on the shipped NetworkPolicy. This is the item that varies most and fails most silently: a NetworkPolicy on a cluster whose network plugin does not enforce it is an object the API accepts, stores and displays, with no effect and no warning. Provider defaults differ, versions change them, and some require enabling enforcement at cluster creation, which cannot be changed afterwards on some platforms. Do not read your provider’s documentation and conclude; test it:
kubectl create namespace ferroehr-probe
kubectl -n ferroehr-probe run probe --image=busybox:1.37 --restart=Never --command -- sleep 600
kubectl -n ferroehr-probe exec probe -- nc -w3 -z <ferroehr-pod-ip> 5432 # must fail
kubectl -n ferroehr-probe exec probe -- nc -w3 -z <ferroehr-pod-ip> 8080 # must succeed
If the first command succeeds, the policy is decoration and every claim in this section that rests on it is void for your cluster. This is also the reason the project’s own deployment probe harness declares NetworkPolicy enforcement as something it does not exercise: a green result on one cluster’s CNI would say nothing about yours.
Provider audit tooling exists: for EKS, hardeneks is the commonly cited one. We have not run it, so it is named as a starting point rather than a recommendation: treat its output as input to the same ownership question this section asks, not as a verdict.
From source
You can build the ferroehr binary yourself: for a platform without a
published image, for local development, or to run the test suite. This chapter
covers the prerequisites and the build. Most operators should prefer the
published container images (Docker Compose,
Kubernetes & Helm); build from source when you need to.
Prerequisites
- The pinned Rust toolchain. The repository pins Rust 1.99.1 (edition
2024) via
rust-toolchain.toml, sorustupinstalls and selects it automatically the first time you build in the checkout; you do not choose a version by hand. - Docker: required only for the integration tests, which spin up a real PostgreSQL 18 in a container.
xmllint: required only for the canonical-XML tests.
Building
From the repository root:
cargo build --workspace
To build just the server binary in release mode (what the container image ships):
cargo build --release --locked -p ferroehr-server
The binary crate is ferroehr-server; the executable it produces is named
ferroehr, so the resulting binary is target/release/ferroehr. It links a
pure-Rust TLS stack (no OpenSSL, no JVM, no runtime dependencies) so it
drops into a minimal base image or runs directly on the host.
Running the tests
cargo nextest run --workspace
Every database-backed test takes its database from a shared harness: one
PostgreSQL 18 server, one migrated template database, and a fast clone per
test. By default the harness starts (or re-adopts) a single reusable postgres:18 container, so
Docker must be running; reclaim it afterwards with
docker rm -f ferroehr-testkit-pg18. To use a PostgreSQL 18 server you already
run instead, point the suite at it and Docker is not needed at all:
export FERROEHR_TEST_PG_URL='postgres://user:password@localhost:5432/postgres'
cargo nextest run --workspace
The role in that DSN must be allowed to CREATE DATABASE.
Running the binary
The binary is configured entirely through FERROEHR_* environment variables
(see the configuration reference). At minimum it needs a
database URL:
export FERROEHR__DATABASE__URL='postgres://ferroehr:ferroehr@localhost:5432/ferroehr'
target/release/ferroehr
It runs its schema migrations at boot and then serves on the configured bind
address (default 0.0.0.0:8080). That boot-time migration is a setting, not a
fixture: db.migrate = "verify" makes the server issue no DDL at all, for a
deployment whose database role has none of those rights (see
Operations).
Two global flags and three subcommand groups round the CLI out:
--config <path>points at a configuration file, overridingFERROEHR_CONFIG(with neither, the server reads no file);--set <key>=<value>is a repeatable dotted-path override with the highest precedence of all (--set db.max_connections=40);ferroehr config checkvalidates the effective configuration and prints it redacted, exiting 0 when valid and 78 otherwise, the fastest way to test a deployment’s configuration before starting it;ferroehr db migrateapplies the embedded migrations and exits, the out-of-band schema step, run under aferroehr_migratorDSN;ferroehr db verifychecks, without issuing any DDL, that the database carries exactly this build’s migrations, exiting 0 when it does;ferroehr healthcheck(used by the container healthcheck and Kubernetes exec probes) asksGET /health/readinesson the configuredserver.listenport over the loopback and exits 0 on200, 1 otherwise.
Note
Building from source gives you the same binary the images use: the container Dockerfile pins its Rust version from the same
rust-toolchain.toml, and CI cross-checks the two so they cannot drift.
Build features
The server builds with two additive cargo features, both on by default:
fhir (the FHIR terminology providers, and the FHIR AuditEvent the audit
store, the audit feed and the ITI-81 retrieval carry), and multimedia
(DV_MULTIMEDIA externalization to S3-compatible object storage). Their
implementations live in a separate crate that the platform library pulls in
only when the matching feature is on, so a build without them contains none of
their code.
A slim build compiles them out entirely:
cargo build --release --locked -p ferroehr-server --no-default-features
A slim binary refuses loudly at boot if the configuration enables an
integration it was built without: multimedia.enabled,
audit.store.enabled, audit.fhir_feed.enabled, or a configured external
FHIR terminology provider. The syslog ATNA feed and the in-process terminology
bundle remain available in slim builds.
Warning
The local audit store is on in the shipped defaults, so a slim build refuses to start on an untouched configuration. To run one, disable it explicitly (
FERROEHR__AUDIT__STORE__ENABLED=false) or configure the syslog feed as the audit sink; silently dropping the audit trail is not a boot mode.
Configuration reference
FerroEHR is configured by one file, ferroehr.toml, whose sections cover
the entire server, with FERROEHR_* environment variables (and repeatable
--set flags) as per-key overrides on top. This page is the entry point: the
quickstart, how configuration loads and how environment names map onto the
file, the one key that selects the openEHR specification generation set, and a
map of which page documents which section.
- Quickstart
- How configuration loads
deployment.spec_profiledeployment.profile- Where each section is documented
Quickstart
Copy the shipped template, edit it, and run:
# Every key under its description with its default, generated from the
# configuration types; only the keys you must set are live lines.
curl -fsSLo ferroehr.toml \
https://raw.githubusercontent.com/FerroHEALTH/FerroEHR/main/app/ferroehr/assets/ferroehr.default.toml
# Edit it: set the keys its "What you must set" block lists.
$EDITOR ferroehr.toml
# Validate without touching the database, then run.
ferroehr config check --config ferroehr.toml
ferroehr --config ferroehr.toml
The template opens with a What you must set block: the keys a deployment
that holds real data sets (the posture, the database, the system identifier,
the patient identity source and pseudonym namespace, the provider and at
least one token issuer), and they are its only live lines. Every other key is
optional: its #? line shows the built-in default it runs on. Each key’s note ends with why it is in the file:
infrastructure (what the server needs before it reaches its store), trust
(what it trusts, its floors and its secrets), or nothing more for a tuning
key. A key the configuration types leave unclassified fails the build, so the
file cannot gain a key nobody justified.
A server started with no file and no environment still boots, with one exception you will hit immediately: authentication is on by default and a server with no mechanism configured refuses to start. See Zero-config boot and the production checklist.
How configuration loads
Configuration is assembled once at boot from four layers, lowest precedence to highest:
- Built-in defaults: the values in the tables on the section pages.
- The config file:
ferroehr.toml(see file discovery). FERROEHR_*environment variables: override individual keys.--set key=valueCLI flags (repeatable), which win over everything.
Some conventional names sit below their FERROEHR_ forms within layer 3:
DATABASE_URL→database.url, andRUST_LOG→telemetry.filter.PORT→ a0.0.0.0:<PORT>value forserver.listen(the port container platforms such as Vercel, Cloud Run and Heroku inject and route traffic to).- The libpq environment set
(
PGHOST,PGUSER,PGPASSWORD,PGDATABASE,PGPORT,PGSSLMODE), which managed-Postgres integrations such as Neon inject: whenPGHOSTis set and no URL form is, the server assembles the DSN from them. An explicitDATABASE_URLbeats the assembled form, andFERROEHR__DATABASE__URLbeats both.
Nothing else has a non-FERROEHR_ name.
The environment-variable mapping
Every key has one mechanical environment spelling: FERROEHR + the TOML
path, upper-cased, with a double underscore (__) between every segment,
including after the FERROEHR prefix. A single underscore only ever appears
inside a key word.
| TOML | Environment variable |
|---|---|
[database] max_connections = 20 | FERROEHR__DATABASE__MAX_CONNECTIONS=20 |
[authz.rbac] admin_role = "…" | FERROEHR__AUTHZ__RBAC__ADMIN_ROLE=… |
[management.endpoints] env = "off" | FERROEHR__MANAGEMENT__ENDPOINTS__ENV=off |
[terminology.endpoint] url = "…" | FERROEHR__TERMINOLOGY__ENDPOINT__URL=… |
Scalars are typed automatically (bool / int / float, else string).
List-typed keys take comma-separated values
(FERROEHR__AUTHZ__RBAC__ROLE_ISSUERS=https://a,https://b). Map-keyed tables
are reachable too: the map key is just another segment
(FERROEHR__PRIVACY__COHORT__PREDICATES__CITY__NODE). An array of tables is
set by element index: FERROEHR__AUTH__ISSUER__0__AUDIENCE=ferroehr sets
audience of the first [[auth.issuer]] table key by key over the file’s,
and the next index past the end adds a table. An index with a leading zero,
one that skips an element, or one under a key that holds no array of tables
refuses the start.
Note
Enum values are lowercase /
snake_casetokens, exactly as the tables show. Secret-typed keys are redacted everywhere the configuration is rendered (the/management/envsnapshot,GET /ferroehr/rest/extensions/v1/admin/config,ferroehr config check,ferroehr report, logs), and a secret-URL key shows its host and path with the embedded credentials masked. Each secret, and each database URL, has a*_filesibling that reads the value from a file, for Kubernetes and Docker secret mounts. Setting a key and its*_filesibling at once is a boot error.
File discovery
The server reads the file --config <path> names, or else the file
FERROEHR_CONFIG=<path> names; later layers still override its values. A named
file is fatal if absent, unreadable or unparseable. With neither set, the server
reads no file and searches no directory: the environment and the defaults make
the whole configuration.
Strict validation
Configuration is validated at boot (and by ferroehr config check), and the
server refuses to start on any error:
- Unknown keys are rejected: in the file, naming the key and the closest
valid one, and in every
FERROEHR__…override, so a misspelled security key can never be silently ignored. Only the uniformFERROEHR__<SECTION>__<KEY>form sets a key. Any otherFERROEHR_variable, such as the single-underscoreFERROEHR_DB_URL, sets nothing and is left alone, because the viewer’sFERROEHR_VIEWER_variables share the prefix. - Type errors are boot errors, naming the key and what was expected.
- Semantic errors are aggregated: one pass reports every problem at once, so a broken configuration is fixed in a single iteration.
Durations, sizes and periods
Every duration is one string with its unit and no space: "30s", "10min",
"12h", "7d", or milliseconds with ms. The unit symbols are the UCUM codes (ms, s,
min, h, d), the unit system FHIR Quantity and openEHR DV_QUANTITY
use, so "10m" is refused (m is the metre) and a bare number is refused,
never read as seconds or milliseconds. Every size is one string with an
IEC 80000-13 binary unit: "512B", "256KiB", "64MiB", or GiB; a decimal
unit such as MB is refused. A retention is an ISO 8601 calendar period
of whole years or days, "P5Y" or "P1830D"; unset keeps forever. The
environment carries the same strings: FERROEHR__RECORD__QUERY__TIMEOUT=45s.
[server] and [auth] are family sections that keep their own key shapes
until the family releases move them.
Keys a release before v5.7.0 read
v5.7.0 moved the configuration tree to one table per concern. A key an
earlier release read is an unknown key like any other: the start is refused
naming it, with the keys its table does read, so
ferroehr config check --config <old file> lists every key an old file still
sets. The v5.7.0 changelog maps each old key to its replacement.
deployment.spec_profile
# The openEHR specification generation set the server runs.
[deployment]
spec_profile = "development" # or "stable"
openEHR publishes released specification versions and keeps developing the next ones. FerroEHR generates both, and this key decides which set the running server serves.
| Value | RM | BASE | Choose it when |
|---|---|---|---|
development (default) | 1.2.0 | 1.3.0 | You want the generations this build is developed against. This is the default for every deployment that does not set the key. |
stable | 1.1.0 | 1.2.0 | Your governance requires running on released openEHR specifications only. |
Environment form: FERROEHR__DEPLOYMENT__SPEC_PROFILE=stable.
Why it is one key and not two
The components’ generations are modelled against each other, not independently: RM 1.1.0’s own machine-readable model declares that it includes BASE 1.2.0. Letting you pick RM 1.1.0 with BASE 1.3.0 would offer a combination openEHR never published, so the profile is a single coupled choice and incoherent sets are unrepresentable.
Seeing which profile is active
The profile is reported in two places, so it is never a guess:
- the boot banner, on every start, alongside the RM version it serves;
GET /management/info, which names the active profile with the RM and BASE generations it selects, next to the build provenance.
What changes on the wire
The profile is an acceptance boundary, and it is exact in both directions.
Under stable, a query that addresses specification surface the released
generations do not define is refused with a typed error naming the active
profile: an AQL FROM class or a path attribute RM 1.1.0 does not declare
is rejected at planning time rather than answered as though it existed.
Released surface the development line later dropped stays accepted under
stable, which is the half most implementations get wrong. A demographic
party carrying the RM 1.1.0 PARTY.reverse_relationships attribute is read
and accepted under stable; development refuses it as an undeclared key,
because RM 1.2.0 removed it. The attribute is derived data the server
recomputes from relationships, so the copy you send is validated and then
dropped rather than stored.
Reading a stored object is bounded the same way. Every commit records whether
the released generations can express the body it accepted, and under stable
a stored version they cannot is refused with 409 Conflict naming the
active profile, the version, and the remedy; never served under a generation
set that does not define it, and never rewritten to fit one. Under
development the same object reads normally. This is FerroEHR’s own
extension: no openEHR specification governs runtime version selection, so the
status follows HTTP itself (RFC 9110 §15.5.10, a conflict with the current
state of the target resource, whose resolution the response describes).
Queries take the same refusal wherever they serve a version body. AQL is
gated in two places, and they answer different questions. At planning time the
query text is checked: a FROM class or path attribute the released generations
do not declare is rejected. At result assembly the projection is checked: a
whole-object projection (SELECT c FROM EHR e CONTAINS COMPOSITION c) returns
stored version bodies, so if any row of the page comes from a version the
released generations cannot express, the whole query answers 409 Conflict
naming that version. The row is never quietly dropped from the result set
instead: a RESULT_SET is columns and rows of values with nowhere to explain a
missing row, so silently eliding one would be an answer you could not tell from
“no such data”.
A leaf projection over the very same rows (SELECT c/name/value FROM EHR e CONTAINS COMPOSITION c) still answers 200. It serves data values rather than
version bodies, over paths the planning gate has already bounded to the released
generation’s declared surface. That is the honest boundary: the profile is an
acceptance boundary on what is served as an openEHR object, not a content filter
over the values inside one.
Under development none of this applies and it costs nothing: the assembly
gate returns before it touches the database.
The exact additive delta between the two generation sets is pinned in the build, so a future openEHR re-vendoring cannot silently widen or narrow what a profile accepts.
Changing the profile on an existing deployment
Treat the profile as a deployment commitment. Both directions are defined, but they are not symmetric:
| Direction | Supported? | Why |
|---|---|---|
stable → development | Always safe | openEHR minor releases are additive by the Foundation’s own release strategy, so every object stored under the released generations is valid under the development ones. |
development → stable | Only for data that never used a development-only construct | There is no down-conversion. An object that did use one becomes unreadable (409, not a silently degraded body) until you switch back. |
If you need to stay on released specifications, choose stable on day one
rather than migrating into it later. Silently rewriting stored clinical
content to fit an older generation would be data loss disguised as a setting,
so no tool does it.
Objects committed before this stamp existed, and objects written by the
verbatim-replay paths (EHR-Extract import, archive load), carry no recorded
answer; they are assessed at read instead, which costs one extra parse per
read of such an object and only under stable. Nothing is written back: a
read stays a read.
Note
No openEHR specification governs runtime version selection; this key is FerroEHR’s own design. What the specifications do govern is the compatibility direction it relies on: minor releases within a major line are additive supersets.
deployment.profile
# The declared posture: what this deployment may hold.
[deployment]
profile = "sandbox" # or "production"
accepts = [] # production only: gaps run without, by name
Every separation FerroEHR can make is a configuration key an operator can leave unset, and a deployment that has made none of them looks, from its own logs and its own API, like one that has made all of them. This key gives the server a declared posture and makes the two impossible to confuse.
| Value | Asserts | On boot |
|---|---|---|
sandbox (the binary’s default; the Helm chart has none and refuses to render until you choose) | Nothing; the deployment must not hold real personal data | Says which separations are missing: a red notice on the banner, one warn line per gap with the structured field posture = "deployment", and the same list on GET /management/status under deployment; the public GET /ferroehr/rest/status carries the profile only |
production | Every separation below holds, or is accepted by name in deployment.accepts | Refuses to start otherwise, naming each open gap, what it found and what to change |
The separations, each a real property the server checks rather than a box ticked by being present:
| Gap token | What production requires |
|---|---|
shared_credential | [database.party] url (or [database.clinical] url) set, so the two domains connect on their own database roles |
shared_cluster | The three pools reach three different PostgreSQL clusters, read from pg_control_system().system_identifier on each pool, never from the DSN text. The audit pool counts: Swiss law keeps the access log on a system separate from the one processing the data |
open_subject_namespace | [privacy] subject_namespaces declared, so an EHR_STATUS subject is an opaque pseudonym |
audit_off | [audit] enabled with a durable sink (the local store, syslog or the FHIR feed) |
audit_fails_open | [audit] fail_mode = "closed", so an operation whose access record cannot be taken is refused instead of succeeding unlogged |
no_category_map | A category map applies while auditing is on: the one FerroEHR ships (the default) or templates and archetypes of your own in the audit category register, which refuses a write that opens this gap, so every access record names the categories of the data it reached (EHDS Annex II 3.2(c)). The gap opens only with [audit.categories] shipped_map = false and nothing declared |
open_ehr_access_default | [authz.rbac] ehr_access_default = "restricted", so an EHR carrying no ACCESS_CONTROL_SETTINGS is reachable only by an admin. The shipped default is open. The setting is enforced with [authz.rbac] enabled on or off |
migrate_on_runtime_credential | [database] migrate_url set, or migrations = "verify", so no credential that serves requests can alter the schema. Evaluated per domain database: a domain relocated to a database of its own is prepared on [database.<domain>] migrate_url when that is set, and on that domain’s runtime DSN, which opens the gap, when it is not |
auth_off | [auth] enabled = true, so no request is served unauthenticated (CRA Annex I Part I(2)(d)) |
rbac_off | [authz.rbac] enabled = true whenever authentication is on, so a caller reaches only the operations its roles allow (CRA Annex I Part I(2)(d)). Not reported while auth_off is |
plaintext_listener | [server.tls] set, or [server] listen on a loopback address, so data does not cross the network in clear (CRA Annex I Part I(2)(e)). A deployment behind a TLS-terminating ingress accepts plaintext_listener by name, which records that the ingress carries the encryption. The gap also opens when management.listen is set on an enabled management surface: that listener never speaks TLS, so unset it (the surface then shares the main listener) or accept the gap by name where it is unreachable off the host |
plaintext_audit_feed | An https:// URL for an enabled audit FHIR feed ([audit.fhir_feed] url), so the access records, which name the patient and the professional, do not cross the network in clear (CRA Annex I Part I(2)(e)). A deployment whose repository is reached on a segment it trusts accepts plaintext_audit_feed by name |
plaintext_object_store | An https:// record.multimedia.url on an enabled multimedia store, so the externalised clinical blobs travel over an https:// endpoint (CRA Annex I Part I(2)(e)). A deployment whose object store is reached on a segment it trusts accepts plaintext_object_store by name |
An accepted gap is stated on every boot and on /management/status; it can be run,
not hidden. Environment form: FERROEHR__DEPLOYMENT__PROFILE=production,
FERROEHR__DEPLOYMENT__ACCEPTS=shared_cluster. There is no research value:
the key controls rigour, not purpose, and a secondary-use platform under an
EHDS data permit runs on real patient data at production rigour whatever it is
for.
This is FerroEHR’s own posture, not a legal requirement. GDPR Art. 4(5) asks that the additional information needed to re-identify a person be “kept separately and … subject to technical and organisational measures”, not that it sit on a separate server; one cluster with separated schemas and roles is a defensible reading. Two clusters are materially stronger, because a superuser, an instance-wide point-in-time recovery and a single compromise are bridges no grant can close, and that is a choice a deployment should make deliberately rather than inherit from a quickstart. See Compliance.
Where each section is documented
| Section | What it covers | Page |
|---|---|---|
[deployment] | The declared posture, the openEHR specification set and the licence token | This page |
[server], [server.caller_rate], [server.tls] | The HTTP listener (the family section): timeouts, the body limit, the concurrency bound, the drain, the caller rate, TLS | Server, database & telemetry |
[api], [api.options], [api.cors] | The openEHR REST API: the API base path, the system identifier, the OpenAPI UI, CORS, the clinical body tier, the ADMIN and terminology groups, the deployment’s own identity | Server, database & telemetry |
[database] | PostgreSQL connection, pool, migrations | Server, database & telemetry |
[telemetry] | The console, the request log and the OpenTelemetry export | Server, database & telemetry |
[usage_report] | The daily installation report to FerroPULSE, on by default; what it sends is on the Usage report page | Server, database & telemetry |
[auth], [authz] | Authentication (Basic, OAuth2/OIDC), the patient scope and RBAC | Authentication & access |
[management] | The ops-introspection surface | Authentication & access |
[auth.smart] | SMART App Launch discovery and scope enforcement | Authentication & access |
[record.signing] | VERSION signing and read-time verification | Authentication & access |
[record.versioning] | The opt-in answer to an update whose content equals the current version’s, off by default | Authentication & access |
[record.query] | AQL execution budgets and result ceilings | Integrations |
record.subject_index, [pixm], [pixm.endpoint] | Who holds the patient-to-EHR cross-reference: an IHE patient identity source over PIXm or the in-instance map | Integrations |
[record.change_feed] | The commit-event outbox retention; its readers are grants in the CDR | Integrations |
[terminology], [record.multimedia] | The terminology server, multimedia externalization | Integrations |
[audit], [audit.store], [audit.syslog], [audit.fhir_feed] | The IHE ATNA audit trail and its sinks | Audit |
[privacy], [privacy.identifier_scan] | What the clinical side refuses to hold: the subject reference, identified parties, the identifier scanner | Privacy & data minimisation |
[privacy.cohort], [privacy.cohort.predicates] | Cross-domain cohort queries: the demographic predicate allow-list, the small-cell floor, the cohort ceiling | Privacy & data minimisation |
[privacy.identifier_protection] | Sealing national identifiers in the demographic domain, and the key that opens them | Privacy & data minimisation |
| — | The CLI, the production checklist, file-versus-environment guidance | CLI & production checklist |
Server, database & telemetry
The listener ([server]), the REST surface ([api]), the PostgreSQL
connection ([database]), the observability section ([telemetry]), and the
usage report ([usage_report]). Precedence, the
environment-name grammar, and file discovery are on the
Configuration reference index.
[server]
The HTTP listener: the section every FerroHEALTH product shares
(ferrohealth-server), so the keys and their behaviour are the same in each.
It carries the stack every request passes through: the server’s request id,
the request timeout, the body limit, the concurrency bound, compression, the
request log, the health routes and the bounded drain on SIGTERM.
[server]
listen = "0.0.0.0:8080"
base_path = ""
request_timeout = "30s"
header_read_timeout = "30s"
idle_timeout = "2min"
body_limit = "64MiB"
drain_delay = "0s"
shutdown_timeout = "10s"
# max_concurrent_requests = 256
retry_after = "1s"
trusted_proxies = []
forwarded_header = "forwarded"
compression = true
compression_min_size = "1KiB"
# public_base_url = "https://cdr.example.com"
| Key | Type | Default | Description |
|---|---|---|---|
listen | socket address | 0.0.0.0:8080 | The IP address and port the listener binds: every interface at the port the container image exposes. A host name is refused at startup. PORT alone gives 0.0.0.0:<PORT>, and FERROEHR__SERVER__LISTEN wins over both. Set 127.0.0.1:8080 to keep a bare binary on the loopback. |
base_path | string | empty | The path every route is served under, the health routes included. Empty serves them at the process root. The openEHR API path is api.base_path. |
request_timeout | duration | "30s" | A request still running after this long is answered 408 with the openEHR error body. |
header_read_timeout | duration | "30s" | How long a client may take to send its request head, counted from accept for a connection’s first request and from the first byte of each later request on a kept-alive connection; a client that has not sent it by then, one that sent nothing after connecting included, is disconnected. Bounds the slow-header and the silent connection, which no other limit reaches. "0s" is refused. |
idle_timeout | duration | "2min" | How long a kept-alive HTTP/1.1 connection may wait for its next request; past it the server closes the connection with a clean end of stream. Keep it longer than the idle timeout of your clients (Go’s http.DefaultTransport keeps an idle connection 90 s) and of any load balancer, ingress controller or proxy in front, so they close an idle connection first and never send a request into one the server is closing. "0s" is refused. |
body_limit | size | "64MiB" | The largest request body any route reads, refused 413 above it. The bulk routes (operational-template upload, /message/import) take up to this; api.body_limit narrows the rest of the clinical surface below it. The largest operational template in the vendored CKM corpus is several megabytes, well below this ceiling. |
drain_delay | duration | "0s" | On SIGTERM or SIGINT, readiness answers 503 this long while the listener still accepts, so an orchestrator stops routing first. |
shutdown_timeout | duration | "10s" | Then the listener closes and the requests in flight get this long to finish; a connection still open after it is dropped. |
max_concurrent_requests | int | unset | The requests served at once. Past it a request is answered 503 with Retry-After and the openEHR error body, never queued, so offered load beyond capacity cannot exhaust memory. The health routes are never refused. Unset, there is no bound. |
retry_after | duration | "1s" | The Retry-After of a 503 or 429 the listener writes, in whole seconds (RFC 9110 §10.2.3). |
trusted_proxies | list | [] | The reverse proxies, as addresses or CIDR blocks, whose forwarded client address is believed. Empty, every request is named by its peer address. |
forwarded_header | enum{forwarded,x-forwarded-for} | forwarded | The header a trusted proxy names the client in (Forwarded is RFC 7239). |
compression | bool | true | Compress a response with gzip or Brotli when the client accepts one. |
compression_min_size | size | "1KiB" | The smallest response body that is compressed. |
public_base_url | string | unset | The URL clients reach the server at, through any proxy in front of it: https://cdr.example.com, or with the path a proxy serves it under (https://gw.example.com/cdr). FerroEHR’s own key beside the shared section, and the one place a deployment names its public URL; see below. An absolute http(s) URL with no userinfo, query or fragment. Required with auth.smart.discovery, [auth.scim] or [auth.dpop] under auth.enabled. |
A refusal the listener writes itself (408, 413, 429, 503) and a handler
that panics (500) answer the standard openEHR { error, message } body. 413
and 429 are not in the ITS-REST status table; ITS-REST admits them as
additional, non-conflicting codes, and they are what RFC 9110 §15.5.14 and
RFC 6585 §4 define for these refusals. A panic’s message reaches neither the
body nor the log.
public_base_url: the one public URL
A server behind a proxy cannot read from a request the URL its client
addressed, so three things that publish or check an absolute URL take it from
public_base_url. Each derives its URL from it and server.base_path, the
path the server mounts every route under:
| Consumer | URL |
|---|---|
The SMART discovery document’s services.org.openehr.rest.baseUrl | public_base_url + server.base_path + api.base_path |
Every SCIM meta.location and the SCIM discovery documents | public_base_url + server.base_path + /scim/v2 |
The URL a DPoP proof’s htu is compared with (RFC 9449 §4.3, check 9) | public_base_url + server.base_path + the request path |
With public_base_url = "https://gw.example.com/cdr" and
base_path = "/ehr", the discovery document names
https://gw.example.com/cdr/ehr/ferroehr/rest/openehr/v1, a SCIM User lives at
https://gw.example.com/cdr/ehr/scim/v2/Users/<id>, and a DPoP proof for
GET /ehr/ferroehr/rest/openehr/v1/ehr names
https://gw.example.com/cdr/ehr/ferroehr/rest/openehr/v1/ehr. A trailing /
on either is ignored.
Every request gets a request id the server mints, which the request log and the
access record carry and the response returns in X-Request-Id. A client’s own
X-Request-Id is returned to it unchanged and never recorded.
[server.caller_rate]: per-caller request rates
[server.caller_rate]
requests_per_second = 1024
burst = 2048
| Key | Type | Default | Description |
|---|---|---|---|
requests_per_second | int | (required in the table) | Sustained requests per second one authenticated subject may send on the clinical API. |
burst | int | (required in the table) | How many requests one subject may send at once before the rate applies. |
Unset, no caller is limited. The chart and the Compose quickstart set the values above.
This is not max_concurrent_requests, and you can tell them apart from the
status alone. max_concurrent_requests protects capacity: too many
requests in flight at once, from anyone, and the excess is refused 503 +
Retry-After. The caller rate protects fairness: one caller asking too often
over time, refused 429 + Retry-After. A 503 means the server is full; a
429 means you are asking too fast.
The limit is keyed on the authenticated subject, the only fair key for a clinical API: a hospital behind one NAT is a single address. It sits inside authentication, so the health routes, the status document and the discovery document are never refused by it.
Tip
Benchmarking this server? Lift the caller rate first, or you will measure it instead of the server. The project’s own measurement lanes compose an overlay that does exactly that, and both instruments refuse to write a record if the server answered any
429.
[server.tls]: native TLS and mutual-TLS client authentication
Native TLS termination on the main listener, unset by default; deployments
commonly terminate TLS at an ingress. client_auth = "required" is the IHE
ATNA ITI-19 mutually-authenticated-node posture (see the
Audit trail chapter). The
separate-port management listener always stays plain HTTP, so under
deployment.profile = "production" setting management.listen opens the
plaintext_listener gap.
[server.tls]
certificate_file = "/etc/ferroehr/server.pem"
key_file = "/etc/ferroehr/server.key"
client_auth = "none"
min_version = "1.3"
# reload_interval = "1min"
| Key | Type | Default | Description |
|---|---|---|---|
certificate_file | path | (required in the table) | Server certificate chain (PEM), the leaf first. A missing, unreadable or certificate-less file stops startup. |
key_file | path | (required in the table) | Server private key (PEM), read as a secret file. A key that does not belong to the leaf stops startup. |
client_auth | enum{none,optional,required} | none | Client-certificate policy. optional verifies a certificate when one is presented and still accepts connections without; required rejects any client without a verified certificate at the handshake. |
client_ca_file | path | unset | The explicit CA bundle client certificates must chain to, never the web PKI. Required when client_auth is optional or required, and refused at load when it is none, since a listener under none asks no client certificate. |
min_version | enum{“1.3”,“1.2”} | "1.3" | The lowest TLS version this listener negotiates. "1.0" and "1.1" are refused when the configuration is read (RFC 8996). |
reload_interval | duration | unset | How often the certificate, key and client CA are read again while the server runs. The files are always read again on SIGHUP. A changed pair is served, and a changed client CA verifies, from the next handshake on without a restart; a read that fails is logged and the running configuration stays. |
healthcheck_identity_file | path | unset | The client certificate chain and key, in one PEM, that ferroehr healthcheck presents to a listener requiring one. |
Before 5.5.0, client_ca_file alone meant that every client presents a
certificate. From 5.5.0, client_auth decides it and defaults to none, so a
configuration carried over from an earlier release set client_ca_file and no
client_auth, and 5.5.0 served it without asking a client certificate. Such a
configuration is now refused at load. Set client_auth = "required" beside
client_ca_file to keep mutual TLS (GHSA-52mf-qg39-4q4j).
ferroehr healthcheck speaks TLS to a TLS listener over the loopback and
accepts exactly the leaf certificate in certificate_file.
Note
min_versiondefaults to 1.3 only, as RFC 9325 §3.1.1 has it supported. Setting"1.2"enables 1.2 alongside 1.3, with the four forward-secret suites RFC 9325 §4.2 recommends; pick it only for a client that cannot do 1.3, such as an older integration engine or a pinned Java runtime.
Note
An EC certificate must name its curve. RFC 5480 §2.1.1 forbids explicit curve parameters, TLS clients refuse such a certificate, and the server refuses the pair at startup. LibreSSL (the
opensslthat ships with macOS) writes explicit parameters fromgenpkeyandreq -newkey ecunless you add-pkeyopt ec_param_enc:named_curve;openssl ecparam -name prime256v1 -genkeywrites a named curve.
[api]
The openEHR REST surface the listener serves.
[api]
base_path = "/ferroehr/rest/openehr/v1"
openapi_ui = "private"
system_id = "ferroehr.local"
# body_limit = "16MiB"
| Key | Type | Default | Description |
|---|---|---|---|
base_path | string | /ferroehr/rest/openehr/v1 | ITS-REST base path all API routes hang off. Shortening it is supported; see below. The served OpenAPI document describes whatever paths this setting produces, never the defaults. |
openapi_ui | enum{off,admin_only,private,public} | private | Who may read the Swagger UI and the OpenAPI documents under the REST root: off does not mount them, admin_only needs the admin role, private needs any authenticated principal (unauthenticated is 401 with the server’s WWW-Authenticate challenge, so a browser prompts for the Basic credential), public needs nothing. The documents list the whole enabled operation surface, admin and message groups included, so public discloses it to anyone who can reach the port; the hosted sandbox sets it deliberately. With authentication off the guard admits everyone, as the management endpoints do. |
cors | table | absent | [api.cors], the CORS protocol answers (Fetch Standard §3.2.3): allow_origins, allow_methods, allow_headers, expose_headers, allow_credentials and max_age (a duration), each named for the header it sets. Absent, no CORS header is sent. allow_origins = ["*"] admits any origin, which the server warns about at boot and which refuses allow_credentials. Production lists its origins. |
body_limit | size | unset | The largest body the ordinary clinical surface accepts, below server.body_limit, which the bulk routes keep. Unset, every route takes the listener’s limit. A value at or above the listener’s is refused at startup. The largest example composition in the vendored corpus is 526 KB; raise it if your compositions embed large DV_MULTIMEDIA data. |
admin | bool | false | Serve the ADMIN API group (physical delete); off, every admin route answers 405. |
terminology | bool | false | Mount the terminology extension API; the server it asks is [terminology]. |
system_id | string | ferroehr.local | This deployment’s own openEHR system identifier; see below. Set a stable, deployment-unique name in production (FERROEHR__API__SYSTEM_ID). |
base_path: shortening the REST base path
ITS-REST leaves the API base to the deployment and fixes only the version
segment at its end, so you may shorten base_path. The shape is checked at
boot, and a value that breaks a rule stops the server with an error naming the
key and every rule it broke:
- The first segment is
ferroehr./ferroehrx/v1and/x/ferroehr/v1are refused. This segment is not configurable away. - The last segment is
v1, the openEHR API version this server implements. The shortest accepted value is therefore/ferroehr/v1. - No trailing slash, no empty segment (
//), and every segment uses only the unreserved URL charactersA-Z a-z 0-9 - . _ ~.
The status and documentation routes hang off the REST root, which the server
derives from base_path by dropping the segments that name the openEHR API: the
trailing v1, plus an openehr segment directly before it when you spell one.
base_path | REST root | Status document |
|---|---|---|
/ferroehr/rest/openehr/v1 (default) | /ferroehr/rest | /ferroehr/rest/status |
/ferroehr/openehr/v1 | /ferroehr | /ferroehr/status |
/ferroehr/v1 | /ferroehr | /ferroehr/status |
/ferroehr/cdr/v1 | /ferroehr/cdr | /ferroehr/cdr/status |
The Swagger UI ({rest root}/swagger-ui), the OpenAPI documents
({rest root}/api-docs/…) and the SMART discovery document
({rest root}/.well-known/smart-configuration) move with it. The health family
is served under server.base_path, which is empty by default, so it stays at the
process root: /health, /health/liveness, /health/readiness.
Set it from the environment with:
FERROEHR__API__BASE_PATH=/ferroehr/v1
Note
The
ferroehr healthchecksubcommand, which the published container images run as their Docker health check, asksGET /health/readinesson theserver.listenport over the loopback, soapi.base_pathdoes not move it.
Behind a path-prefixed reverse proxy
A proxy that mounts the CDR under a prefix stacks that prefix on top of
base_path. A proxy serving the server at /cdr with the default base path
gives clients URLs like:
https://cdr.example.org/cdr/ferroehr/rest/openehr/v1/definition/template/adl1.4
Two ways to shorten that. Strip the prefix at the proxy, so the server sees the
path it serves (nginx proxy_pass http://cdr:8080/; with the trailing slash,
Caddy handle_path, Traefik StripPrefix). Or shorten the base path:
FERROEHR__API__BASE_PATH=/ferroehr/v1
which gives https://cdr.example.org/cdr/ferroehr/v1/definition/template/adl1.4.
Whichever you choose, tell every client. The server builds its Location
headers and its served OpenAPI paths from its own api.base_path, and it
cannot see a prefix the proxy adds. Name the prefix in
server.public_base_url, which the
SMART discovery document, the SCIM locations and the DPoP check read. The
FerroEHR Viewer has its own mirror key, cdr.base_path,
which must match.
system_id: the data-authoring identity
system_id is the identifier this CDR stamps into the data it authors. It
appears on the wire in three places:
EHR.system_id, recorded when an EHR is created. The openEHR RM (EHR Information Model, EHR Identifier Allocation) says theEHR.system_id“should be set to the value that would normally be used for locally created EHRs”: a value the deployment chooses, not a product constant.AUDIT_DETAILS.system_idon every commit for which the client did not supply one through theopenehr-audit-detailsheader. The openEHR REST API requires that “whensystem_idis not provided by the client, the server MUST set it to its own configured system identifier”.OBJECT_VERSION_ID.creating_system_id: the middle segment of every version identifier the server mints (<object_id>::<creating_system_id>::<version>).
Practical notes:
- The value must be a legal openEHR UID: a UUID, an ISO OID, or an
internet id (a reverse-domain / DNS-style name) per the openEHR BASE
identification grammar. The server judges it with the same validating
constructor its reader uses and refuses to boot on an illegal value,
because it becomes the
creating_system_idsegment of every version identifier the server mints and an illegal value would produce ids the server’s own reader rejects. A DNS-style name likecdr.hospital.exampleis valid; an empty value, or one containing the::field separator, is not. - Choose it before going live and keep it stable. The value is stored with
each EHR and each version; changing it later affects only newly authored
data: existing EHR ids, audit rows and version identifiers are never
rewritten, and previously issued
OBJECT_VERSION_IDs stay valid. - Make it unique per system, so data exchanged between openEHR systems
keeps unambiguous provenance. A node of a federation must hold a
system_idno other member uses (Federation Tier N42a); the defaultferroehr.localis the same on every node that leaves it unset. See FerroEHR as a federation node. system_idis not[api.options].system_idsays which system authored the data;[api.options]is the display identity of theOPTIONSSystem-Options manifest. Rebranding changes the manifest and nothing in stored data; changingsystem_idchanges what new data says about its origin and leaves the manifest alone.
[api.options]
The System-Options manifest identity (OPTIONS on the API base path, e.g.
OPTIONS /ferroehr/rest/openehr/v1, the System API’s one location). This is
the deployment’s display identity only; the identifier stamped into authored
data is system_id.
| Key | Type | Default | Description |
|---|---|---|---|
solution | string | FerroEHR | Product name. |
solution_version | string | the build’s version | Product version. |
vendor | string | Cadasto B.V. | Providing organisation: by default the manufacturer of the release, the name ferroehr --version and GET /management/info give. |
restapi_specs_version | string | the ITS-REST release this build implements (1.1.0) | The openEHR REST API edition advertised. |
The defaults are derived from the build rather than typed into the handler.
Override them only to rebrand. The manifest’s conformance_profile is no
identity field and has no key here: the build derives it from the committed
conformance record (see Using the API).
[database]
PostgreSQL connection.
[database]
url = "postgres://ferroehr:ferroehr@localhost:5432/ferroehr"
migrations = "apply"
max_connections = 20
min_connections = 2
acquire_timeout = "30s"
statement_timeout = "1min"
| Key | Type | Default | Description |
|---|---|---|---|
url | secret URL | postgres://ferroehr:ferroehr@localhost:5432/ferroehr | Connection DSN. The default suits a local from-source run against a localhost PostgreSQL, and the server logs a prominent warning at boot while it is in use; production MUST set it. Credentials are redacted from every rendering. DATABASE_URL is a recognized lower-priority alias. |
url_file | path | unset | Read the DSN from a file instead of the key above, for a mounted secret. Preferred over the environment form in Kubernetes: an environment value is readable through /proc/<pid>/environ and inherited by every child process. At most one of the pair, where the built-in development default does not count as “set”. |
migrate_url | secret URL | unset | DSN that PREPARES the schema, used for that one boot step and then closed. Preparation spans every schema of a database at once, which no domain-scoped runtime credential can do, so a deployment separating the runtime roles names the credential that can here. It prepares every domain whose DSN reaches the SAME DATABASE — which is the whole of the separated-credential posture, where each domain has a login role of its own on one database; a domain whose DSN reaches a different database is prepared on that database’s database.<domain>.migrate_url (on the domain’s own DSN when that is unset). Which it is, is read from the server (pg_control_system() plus current_database()), never from the DSN text. Unset, it falls back to url. See Operations → Which credential prepares the schema. |
migrate_url_file | path | unset | Read migrate_url from a file instead, for a mounted secret. At most one of the pair. |
migrate | enum{apply,verify} | apply | Whether the server applies its embedded migrations at boot. apply is what makes an empty configuration boot against an empty database. verify issues no DDL at all: it checks that the database already carries exactly this build’s migrations and refuses to start otherwise, so the serving DSN can authenticate as a role with no DDL rights. That check still READS every _sqlx_migrations table of each database, which no least-privilege role can do, so pair it with migrate_url above and with ferroehr db migrate run out of band; see Operations. |
max_connections | int | 20 | Pool ceiling. Write-heavy deployments benefit from raising it. |
min_connections | int | 2 | Idle connections kept open, avoiding cold-reopen churn under variable load. |
acquire_timeout | duration | "30s" | How long to wait for a free connection before failing. |
statement_timeout | duration | "1min" | statement_timeout applied to every pooled connection; "0s" leaves the server default. |
statement_timeout is the backstop for every statement. An AQL query
(ad hoc or stored) and the composition-count statistics stop sooner when their
caller goes away: a client that disconnects, or the AQL engine’s own
record.query.timeout, closes the statement’s
connection, its pool slot frees at once, and every pooled session sets
PostgreSQL’s client_connection_check_interval to one second, so the backend
stops the statement within about a second. Other statements run to their end
or to this timeout, so keep it above record.query.timeout: the AQL engine’s
typed refusal then fires first and this only catches what the engine does not
govern.
[database.<domain>]
One DSN per storage domain. Every domain always lives in its own schema
(clinical, party, audit) and every pool carries only its own on
its search_path, so no statement can reach another domain’s relations without
naming a schema it is not granted. Setting a url here adds the CREDENTIAL
separation, and — if the DSN names another host — lets the domain live in a
database or cluster of its own.
[database.party]
url_file = "/run/secrets/db-party-dsn"
| Key | Type | Default | Description |
|---|---|---|---|
database.clinical.url | secret URL | unset | DSN the clinical domain connects on (role ferroehr_clinical). Unset, it uses database.url. |
database.party.url | secret URL | unset | DSN the party (demographic) domain connects on (role ferroehr_party). Unset, it uses database.url. |
database.audit.url | secret URL | unset | DSN the audit repository is written through. Unset, it uses database.url. |
database.<domain>.url_file | path | unset | Read that domain’s DSN from a file instead, for a mounted secret. At most one of the pair. |
Why a schema is not always enough: a base backup, WAL archiving and physical
replication carry every schema of a database together
(PostgreSQL 18, Backup and Restore),
so a separation that must survive those is a separation of databases. The Swiss
EPDV Art. 10 Abs. 1 lit. b asks for storage “von anderen Datenbeständen getrennt”
and the DSV Art. 4 Abs. 5 for the log to be kept “getrennt vom System, in welchem
die Personendaten bearbeitet werden”; openEHR reads the same way for the identity
cross-reference, which “could be located on different machines” (BASE
architecture_overview/master07-security.adoc §Anonymity). No openEHR spec
governs pools or database roles — this is our own design.
What the server checks at boot:
- a runtime role that can read another domain’s relations is refused, always;
- two domains configured on different DSNs that turn out to authenticate as the same database role are refused — a separation that exists only in the configuration is worse than none, because it reads as one that holds;
- a missing domain role is a warning under
deployment.profile = "sandbox"and a refusal underproduction, where there are no grants to separate anything with.
Each database is prepared on its own migration credential. [database] migrate_url
names one database; a domain whose DSN reaches another database is prepared
there, and verified there under migrations = "verify", on the credential named in
[database.<domain>]:
[database.party]
url_file = "/run/secrets/db-party-dsn" # postgres://ferroehr_party:…@party-db/…
migrate_url_file = "/run/secrets/db-party-migrate-dsn" # postgres://ferroehr_migrator:…@party-db/…
| Key | Type | Default | Description |
|---|---|---|---|
database.<domain>.migrate_url | secret URL | unset | DSN that prepares the database the domain lives in, when that is not the database database.migrate_url reaches. Used for that one step and closed again. Unset, such a database is prepared on the domain’s own url, which a DML-only runtime role cannot do: it is refused on the first bookkeeping table it cannot read. |
database.<domain>.migrate_url_file | path | unset | Read it from a file instead, for a mounted secret. At most one of the pair. |
The server refuses to start when a domain’s url and its storage.migrate
URL reach different databases. [storage.linkage] and
[storage.migrate.linkage] are refused as unknown keys: the linkage domain is
gone (Operations → Upgrading past the linkage
domain).
[telemetry]
The console, the request log and the OpenTelemetry export: the section every
FerroHEALTH product shares (ferrohealth-telemetry). With no
[telemetry.otlp] table nothing is exported.
[telemetry]
format = "auto"
filter = "info,hyper=warn,tower=warn,h2=warn"
logged_query_parameters = []
# environment = "production"
# [telemetry.otlp]
# endpoint = "http://collector:4317"
# traces = true
# metrics = true
# sample_ratio = 1.0
| Key | Type | Default | Description |
|---|---|---|---|
format | enum{auto,json,pretty} | auto | Stdout rendering. auto picks json when stdout is not a TTY and the human format when it is. NO_COLOR turns colour off. |
filter | string | info,hyper=warn,tower=warn,h2=warn | Console filter directives, refused at boot when they do not parse; also the value /management/loggers resets to. RUST_LOG is a lower-priority fallback. The filter decides what the console writes and never thins a trace. |
logged_query_parameters | list of strings | [] | The query parameters whose values the request log may carry, each cut to 64 characters. Empty, the request log carries no query value. |
environment | string | unset | The deployment.environment.name resource attribute of every span and metric. |
otlp.endpoint | secret URL | (required in the table) | OTLP/gRPC collector endpoint; https:// speaks TLS. Credentials in it are masked in every rendering. |
otlp.traces | bool | true | Export FerroEHR’s spans. |
otlp.metrics | bool | true | Push the metrics over OTLP beside the Prometheus pull surface. One meter provider feeds both. |
otlp.sample_ratio | float | 1.0 | The share of traces sampled (0.1 is a common production start). A client’s traceparent is never read: every request starts a trace of the server’s own. |
otlp.trust_roots_file | path | unset | PEM trust roots the collector’s certificate may chain to, beside the platform’s. Refused at boot beside an endpoint that is not https://, and when the file holds no PEM certificate. |
otlp.client_identity_file | path | unset | PEM client certificate chain and key, for mutual TLS with the collector. Refused at boot beside an endpoint that is not https://, and when the file lacks a PEM certificate or a PEM private key. |
The service.name of every span and metric is ferroehr, and
service.version is the release and its commit.
The request log writes one line per request: the method, the matched route
template, the status, the latency and the server’s request id, never a body,
the raw path or a header value. It records the http.server.request.duration
histogram, scraped as http_server_request_duration_seconds with the
http_request_method, http_route, http_response_status_code and
url_scheme labels, and the http.server.active_requests counter of the
requests in flight, scraped as http_server_active_requests with the
http_request_method and url_scheme labels.
Tip
The ASCII boot banner follows the rendering that is actually installed, not the configured word: it prints for
pretty, and forautoonly when stdout is a terminal. Underjson, and underautooff a terminal (a container, a pipe into a log collector) stdout is parseable JSON from the first byte.
Note
Instrument names carry no Prometheus suffix; the exporter derives one. A counter named
auth_failuresis scraped asauth_failures_total, and units add_seconds/_bytes. Over OTLP the unsuffixed name is what a collector receives.
The scrape endpoint itself is not opened here; it is
management.endpoints.prometheus, which is off
until you name a level.
[usage_report]
The daily installation report to FerroPULSE, the collector Cadasto B.V. runs. It is on by default, and every boot logs one line saying whether it is on. What a report carries, when it is sent, the network it needs and the privacy notice are on the Usage report page.
[usage_report]
enabled = true
endpoint = "https://report.ferropulse.eu/v1/report"
deployment = "unknown"
| Key | Type | Default | Description |
|---|---|---|---|
enabled | bool | true | Send the report. false sends nothing and writes nothing to the database for it. In a CI run (GITHUB_ACTIONS or CI set to true or 1) the report is off whatever this says. Environment: FERROEHR__USAGE_REPORT__ENABLED. |
endpoint | URL | https://report.ferropulse.eu/v1/report | Where reports go. Must be an absolute https URL without credentials; plain http is accepted for a loopback host only. Anything else is refused when the configuration is read. Environment: FERROEHR__USAGE_REPORT__ENDPOINT. |
deployment | enum{helm,compose,binary,unknown} | unknown | How the instance was deployed, as the report states it. The Helm chart sets it to helm. Environment: FERROEHR__USAGE_REPORT__DEPLOYMENT. |
state_dir | path | unset | Refused. The section is the one every FerroHEALTH product shares, where this key names the directory of the instance id; FerroEHR keeps the instance id and the counts in the clinical database, so every replica reports as one installation. |
Under the Helm chart, set the switch with usageReport.enabled. The chart
writes enabled and deployment = "helm" into the rendered file itself and
refuses to render if either is also set under config.usage_report;
endpoint passes through config.usage_report unchanged.
Authentication & access
Who may call the server, what they may do once identified, and the surfaces
that are gated rather than always-on: [auth], [authz], [api] admin,
[auth.smart], [management], and [record.signing]. Precedence, the
environment-name grammar, and file discovery are on the
Configuration reference index.
[auth][authz][api] admin[auth.scim]- The access-delay register
[auth.smart][management][deployment][record.signing][record.versioning]
[auth]
Authentication: bearer tokens of one or more trusted issuers, Basic
credentials, or both. [auth] is the section every FerroHEALTH product shares,
checked by the ferrohealth-smart crate (0.9). FerroEHR is a resource server:
it checks tokens and never issues them. Every person a request comes from is
bound to a demographic PERSON (see [authz.party_binding]).
[auth]
enabled = true
[[auth.issuer]]
issuer = "https://keycloak.example.com/realms/staff"
kind = "persons"
profile = "keycloak"
audience = ["ferroehr"]
[[auth.party]]
issuer = "https://keycloak.example.com/realms/staff"
identifier_issuer = "urn:example:staff-login"
identifier_type = "uuid"
[[auth.basic.users]]
user = "clinician"
password_hash = "$argon2id$v=19$m=19456,t=2,p=1$…$…" # never a plaintext password
[authz.rbac]
first_admin = "clinician"
A Basic user is a credential alone: user and its Argon2id hash
(password_hash or password_hash_file). What it may do is policy in the
CDR: the roles and scopes the hold_roles and hold_scopes grants of its
PERSON name (Operational policy).
[authz.rbac] first_admin names the one Basic user that holds admin_role
and the product scope from the configuration: the administrator who writes
the first policy parties. Which clients a person signs in through, which
clients and RFC 8693 actors act for a person, and which system clients need
no scope are grants on the client’s AGENT (sign_in_persons,
act_for_persons, access_without_scope), so the clients from the example
above sign in only once an administrator grants them.
The section keys:
| Key | Type | Default | Description |
|---|---|---|---|
enabled | bool | true | Master switch. false = all requests pass unauthenticated (development only). With true and no mechanism configured the server refuses to start; see below. |
issuer | [[auth.issuer]] tables | none | The trusted issuers, one table each; see below. A flat issuer = "…" string is a type error at boot. |
tls | table | platform roots | [auth.tls], the family’s outbound TLS table: trust_roots_file, a PEM bundle of certificate authorities trusted in addition to the platform roots for an issuer behind a private PKI (every issuer’s metadata and key set are read trusting it), client_identity_file (one PEM holding a client certificate chain and its key) and min_version ("1.3" by default). An introspection grant’s calls use the grant’s own tls table. A file that cannot be read, holds no certificate, or does not parse refuses the start. |
realm | string | "" ⇒ ferroehr | The realm every WWW-Authenticate challenge names. |
capabilities | list of string | [] | SMART capabilities the discovery document adds: one SMART App Launch or the SMART on openEHR draft lists, or a full URI. |
scopes_supported | list of string | [] | The scopes the discovery document lists. Empty, it lists the scopes the route table honours. |
described_issuer | string | unset | The issuer the discovery document describes: one of kind persons, patients or federation whose metadata FerroEHR has, read from it, introspected, or supplied by [auth.smart] issuer_metadata_file. Read only with [auth.smart] discovery = true, where naming an unknown issuer, a machines issuer or one without metadata is a boot error. Required with discovery when more than one issuer could be described. It renders with any userinfo masked. See the described issuer. |
patient_claim | string | unset | The access-token claim naming the patient a caller is bound to. Set, it holds every request to the patient it names (the patient scope); a token without the claim is refused with 403. Unset or blank, no patient scope applies. |
patient_namespace | string | unset | The subject namespace (EHR_STATUS.subject.external_ref.namespace) the ids in patient_claim are issued in. Set, a claim names the EHR whose subject is that id under this namespace. Unset, a claim names the EHR holding that id only when no other namespace holds the same id. |
product_scope | string | "" ⇒ __ferroehr.platform | FerroEHR’s own scope. It admits the ADMIN API and, beside the clients the CDR grants access_demographic, the DEMOGRAPHIC API, the two surfaces no SMART on openEHR resource family covers. A full URI or a string starting with __ (SMART App Launch 2.2.0, Scopes and Launch Context, §Extensibility). |
The keys audience, algorithms, token_profile, clock_skew_seconds,
jwks_max_age_seconds, jwks_refresh_interval_seconds, jwks_file,
timeout_ms, mode, introspection, role_claims, acting_for_claim,
client_tokens and ca_file, which v5.6 read in [auth], are unknown keys
and refuse the start: the first ones live on each [[auth.issuer]] table,
the caller classification replaces acting_for_claim and client_tokens,
and [auth.tls] replaces ca_file.
[[auth.issuer]]: the trusted issuers
Each issuer’s metadata is read at boot, at the RFC 8414 §3 location first and
the OpenID Connect Discovery 1.0 §4 location after a 404, and with it the key
set at its jwks_uri, so an authorization server that cannot be reached
refuses the start. Every setting of an issuer lives on its own table. No two
issuers of one node share an audience, so one audience is one issuer and one
token form; the node’s audience must also differ from every other node’s, an
operator rule boot cannot see.
| Key | Type | Default | Description |
|---|---|---|---|
issuer | string | required | The issuer identifier: an https URL with no query, no fragment and no user name or password; plain http on a loopback host only. |
kind | persons, patients, machines or federation | required | Whose tokens it signs. persons signs the deployment’s own people (and the app-only tokens of its machines), patients tokens naming only the record subject, machines client credentials tokens only, and federation another party’s professionals or organisation. One issuer is one kind, so patients and professionals sign in at separate issuers, a realm or tenant each. |
profile | rfc9068, entra, keycloak, okta or nl | rfc9068 | The preset of what the issuer’s tokens look like, each value labelled with its source in the crate. Every profile key below may be set on the table over it. |
audience | list of string | required | Accepted aud values; a token naming none of them is refused (RFC 9068 §4, RFC 8725 §3.9). |
algorithms | list of string | ["RS256","RS384","PS256","PS384","ES256","ES384"] | Accepted signature algorithms. Asymmetric only: an HS* algorithm is a boot error, and none is no algorithm at all (RFC 8725 §3.1, §3.2). |
clock_skew | duration | "60s" | Leeway on exp, nbf and iat. At most "5min". |
jwks_max_age | duration | "10min" | A key set older than this is read again. |
jwks_refresh_interval | duration | "1min" | A token naming an unknown kid reads the key set again at most once per interval. |
jwks_file | path | "" | A JWK Set of public keys handed over out of band, read instead of the issuer’s metadata. A symmetric key (kty: "oct") or a private-key member (d, p, q, dp, dq, qi, oth, k) is a boot error. An issuer read from a file has no metadata, so it serves the SMART discovery document only with [auth.smart] issuer_metadata_file set. |
timeout | duration | "10s" | One call to the authorization server. |
mode | jwt or introspection | jwt | How the issuer’s tokens are checked: as JWTs against its key set, or posted to its RFC 7662 endpoint (see Opaque tokens). |
role_claims | list of string | ["roles","groups","entitlements"] | Token claim paths the caller’s roles are read from; dotted paths walk nested claims, and a role is matched without regard to case. scope is not a role source. A federation issuer reads no role. Whether a role grants admin_role and the other privileged roles is [authz.rbac] role_issuers. |
sender_constraint | none or required | none | required admits only a token bound to a DPoP key (RFC 9449) or to the client certificate of a mutual-TLS connection (RFC 8705 §3). A token carrying cnf is held to it under either value. |
assurance | table | unset | The assurance level the issuer’s tokens carry, in the shape of [authz.assurance]. |
person_key | string | sub (preset) | The claim a person is bound by. email, phone_number, preferred_username and name are never accepted as a key (OpenID Connect Core 1.0 §5.7). |
act_represents_patient | bool | unset | On a patients issuer, read a token whose sub is the patient and whose top-level act (RFC 8693 §4.1) names someone else as that person acting for the patient. FerroEHR binds the actor by their login to a representative’s PERSON and admits them while that PERSON holds a live representation of the patient (Representatives in the patient portal); otherwise it refuses the token with 403 (refused-representation-unrecorded). Without the key, ferrohealth-smart refuses a patients token that carries act with 401. |
token_types, required_claims, scope_claim, app_only_scope_claim | preset | The token shape that replaces token_profile: the accepted typ values, the claims every token carries, and where its scopes are read. For an issuer that minted under token_profile = "jwt", set token_types = ["JWT"] and the required_claims its tokens carry. | |
client_claims, app_only, guest, impersonation_marker, expect, user_claims, person_equality, unstable_claims, max_actor_chain, representation, tenant_claim, adapter, onward_* | preset | The other profile keys of ferrohealth-smart: which claim names the client, what marks an app-only token or a guest, what refuses an impersonation, the claims a token must carry exactly, how a representative names whom it acts for, the claim naming the tenant, the vendor adapter (idp-entra) and the onward grants. |
[[auth.party]], [[auth.federation]], [[auth.attributes]], [auth.dpop] and [auth.idp.entra]
| Table | Description |
|---|---|
[[auth.party]] | One per persons issuer, keyed by issuer: where its logins are looked up. identifier_issuer and identifier_type (guid and uuid compare in lower case) name the identifiers the issuer profile’s person_key is matched against; group_claim with group_identifier_issuer reads the groups a token asserts; guests looks a guest up. Boot refuses a persons issuer without one, a table that sets claim (the profile’s person_key is the key), two tables sharing an issuer or an identifier_issuer, and a table whose identifier_type is the type of no [[authz.party_binding.person.template]] key: SCIM and just-in-time creation write the key under that type and the lookup compares the type exactly, so no login of the issuer would bind. |
[[auth.federation]] | One per federation issuer: how its tokens’ claims map to the fields of another party’s professional or organisation (mapping = "iua", "ehdsi" or per field), the countries, issuing authorities and provider prefixes that bound them, and contact_point for a MyHealth@EU contact point. fields maps a field to its claim ({ claim = "..." }) or authorization_details member, among them consent.reference, the consent decision reference of a consent-conditioned read, and correlation_id, the requester’s id a chained organisation request carries. |
[[auth.attributes]] | At most one per persons issuer, keyed by issuer: where its tokens state the professional’s attributes (mapping = "iua", the IHE IUA claims under extensions.ihe_iua, or per field in fields), and authorization_details_purposes, whether the purpose_of_use of each RFC 9396 authorization_details entry is a purpose of use too. Its purposes of use and roles go into each access record, and a [audit] purpose_header naming a purpose the token does not state refuses the request with 403. |
[auth.dpop] | The DPoP proof check of a sender-constrained issuer: max_age ("60s"), clock_skew ("10s") and algorithms. Each accepted proof is recorded in the database every replica shares until its window ends, so a proof is accepted once across all of them (RFC 9449 §11.1), and a database that cannot record it refuses the request with 503. A proof’s htu must name server.public_base_url, server.base_path and the request path, so the table needs that key. |
[auth.idp.entra] | The Microsoft Graph access of the idp-entra adapter, which an issuer turns on with adapter = "idp-entra" to read the groups of an Entra ID groups overage: base_url (https://graph.microsoft.com/v1.0), timeout ("2s"), max_response_size (a size), security_enabled_only and the client credentials of [auth.idp.entra.credentials]. An issuer naming the adapter without this table refuses the start. |
Warning
auth.enabled = truewith no mechanism is a boot error. Such a server could only refuse every request while advertising an authentication scheme it does not implement, which RFC 9110 §11.6.1 forbids: a401challenge must name a scheme applicable to the target resource. Configure anissuer, configure[[auth.basic.users]], or setauth.enabled = falsefor a development server.
The key-set fetches verify the identity provider’s certificate against the
platform trust store and follow no redirects. An identity provider whose
certificate comes from a private CA is trusted once that CA is in the image’s
system store or in a directory or file named by SSL_CERT_DIR or
SSL_CERT_FILE. A key set that cannot be read when a token needs it answers
503, never 401: the server cannot decide, and a 401 would tell a caller
with a valid token that its credential was refused.
A validated token must also carry a non-blank sub claim: the authenticated
subject is stamped into the audit trail, so a token without one is refused with
401 rather than recorded under a placeholder identity. A bearer token outside
the RFC 6750 §2.1 b64token alphabet is refused the same way, with 401 and
error="invalid_token".
Opaque tokens by introspection
An authorization server that issues opaque access tokens is served with
mode = "introspection" on its [[auth.issuer]] table, whose
[auth.issuer.introspection] table holds the keys below. Each bearer token is posted to the issuer’s
introspection endpoint (RFC 7662 §2.1), and the active response stands in for
the JWT claims: sub, scope, the roles of role_claims, aud against
audience and iss against the issuer. An inactive token is a 401. An
endpoint that cannot answer is a 503, because the server cannot decide. An
active response is reused until its exp, at most cache_max_age.
| Key | Type | Default | Description |
|---|---|---|---|
endpoint | URL | unset | The introspection endpoint; unset reads the introspection_endpoint of the issuer’s metadata. https, or http on a loopback host. |
cache_max_age | duration | "60s" | The longest an active response is used; "0s" caches nothing. |
cache_capacity | int | 10000 | The most responses held at once. |
client | table | unset | The client authentication of the call (RFC 7662 §2.1), with the keys of an outbound grant: client_id and client_secret, private_key_jwt or mutual TLS (see the grant keys). |
bearer | table | unset | A client credentials grant whose token authorizes the call instead (SMART App Launch 2.2.0, Token Introspection). Exactly one of client and bearer. |
[[auth.issuer]]
issuer = "https://idp.example.org/realms/ferroehr"
kind = "persons"
audience = ["ferroehr"]
mode = "introspection"
[auth.issuer.introspection.client]
client_id = "ferroehr-rs"
client_secret_file = "/run/secrets/introspection-client"
The Basic-auth user store
[[auth.basic.users]] is an array of tables. A Basic user is always a
person: it maps to the PERSON carrying its binding key through
[[authz.party_binding.basic_user]], and a Basic user
with no mapping refuses the start, naming the user. A machine authenticates
with the client credentials grant (RFC 6749 §4.4), and a system/ scope on a
Basic user refuses the start.
| Key | Type | Default | Description |
|---|---|---|---|
user | string | required | The user-id. Empty, or with a colon or a control character, is a boot error (RFC 7617 §2). |
password_hash | secret | required | Argon2id PHC hash ($argon2id$v=19$…), never a plaintext password. Boot-validated against the OWASP floor; see below. |
password_hash_file | path | unset | Read the hash from a file instead, for a mounted secret. A hash is an offline cracking target, so prefer this wherever the configuration file itself is not treated as sensitive. Exactly one of the pair is required. |
scopes | list of string | [] | The SMART on openEHR scopes the user holds, checked on every route exactly like a token’s scope claim. A user bound to a PERSON also holds the scopes of its hold_scopes grants (What the grants decide). A user with none is refused everywhere a requirement applies. |
roles | list of string | [] | The user’s RBAC roles, upper-cased on authentication. A user bound to a PERSON also holds the roles of its hold_roles grants, never a privileged one. A user with none holds no role and is refused wherever [authz.rbac] asks for one. |
[auth.basic] itself takes one key beside the users:
| Key | Type | Default | Description |
|---|---|---|---|
cache_ttl | duration | "5min" | How long a credential that verified is kept, so a repeat request skips the Argon2id derivation; "0s" turns the cache off and checks every request. The entry is named by a keyed hash of user-id:password under a key drawn at boot, never the password, and only a credential that verified is kept, so a wrong password always pays the derivation. The cache holds at most 4096 credentials and empties at a restart. The user list and its hashes are read at boot, so removing a user or changing a password takes effect at the restart that loads the new list, which also empties the cache: the TTL never keeps a removed user working. Argon2id is slow by design, so with the cache off its cost bounds how many Basic requests a core can answer. |
Warning
Every
password_hashmust meet the OWASP Argon2id floor:m>=19456(19 MiB),t>=2,p>=1, algorithmargon2id. Anything weaker (or a non-argon2idPHC string, or an unparsable one) is a boot error naming the user. This is checked at startup because the verifier takes its cost parameters from the stored hash, so a deliberately cheap hash would otherwise verify happily and silently weaken every password in the store. The floor is the OWASP Password Storage Cheat Sheet §Argon2id minimum.
An unknown user-id is checked against a decoy hash of the same cost, so the time a refusal takes does not say whether the user exists.
[authz]
Role-based (RBAC) authorization, the party binding, the grant ceiling and the
patient-data assurance gate. Which caller may read which data is the access
evaluator’s, over each EHR’s access_directives and the controller’s access
policy, and takes no key here. The full evaluation order and design rationale are
in Security.
[authz.assurance]: the assurance level patient data requires
Off by default. What it refuses and the 401 challenge it sends are described
in Security.
| Key | Type | Default | Description |
|---|---|---|---|
claim | string | acr | The token claim carrying the authentication context class; a dotted path reaches into a JSON object. |
levels | table of string → low | substantial | high | empty | Maps each value your identity provider puts in claim to an eIDAS level of assurance. A value the table does not name carries no level. File-only: the keys are usually URIs. |
minimum | low | substantial | high | unset | The level a patient-data request must carry. Unset refuses nothing. |
[authz.assurance]
minimum = "substantial"
[authz.assurance.levels]
"http://eidas.europa.eu/LoA/substantial" = "substantial"
"http://eidas.europa.eu/LoA/high" = "high"
Boot refuses a minimum with an empty levels table or with no value mapped at
or above it (every patient-data request would be refused), a blank claim
beside a declared table, and a levels value that is blank or carries
whitespace, a quote or a backslash, because the refusal names the accepted
values in one quoted, space-separated acr_values parameter (RFC 9470 §3).
A Basic credential carries no level, so with minimum set every Basic user,
mapped to a person or not, is refused on patient data. While minimum is unset
and a Basic user is mapped in [[authz.party_binding.basic_user]], boot logs a
warn naming those users.
The access record carries the acting mode and the professional the caller
classification names; see Audit trail.
[authz.professional] is refused at boot: the issuer’s kind and profile
classify the caller, and a client acting for a person is one the CDR grants
act_for_persons.
[authz.party_binding]
How a person is attributed. There is no switch: binding is how FerroEHR
attributes a person, and enabled is refused at boot.
| Key | Type | Default | Description |
|---|---|---|---|
provider | { issuer, id }, or [[authz.party_binding.provider]] tables | required once [auth] admits a credential | The healthcare provider this deployment acts for, as an identifier issuer and id (in the Netherlands the URA). Every access record of a bound or provisional person and every version a person commits name it (EHDS Art. 13(4), Annex II 3.2(a)). A deployment that serves several providers declares one table per value of its issuers’ tenant_claim (tenant, issuer, id) instead; the two forms cannot be combined, and a bound issuer that names no tenant_claim is refused beside the table form. |
namespace | string | demographic | The PARTY_REF.namespace a bound party is written under, the value of the ITS-REST overview example (committer.external_ref.namespace="demographic"), held to the OBJECT_REF.namespace pattern [a-zA-Z][a-zA-Z0-9_.:/&?=+-]*. |
basic_user | [[authz.party_binding.basic_user]] tables | [] | One per Basic user: user, key_issuer (the identifier_issuer of an [[auth.party]] table) and key, the binding key the user’s PERSON carries. A Basic user with no table, a table naming no Basic user and a key_issuer no table names refuse the start. |
issuer | [[authz.party_binding.issuer]] tables | [] | How the tokens of one persons issuer are read when a first login creates a provisional PERSON; see Just-in-time creation. |
provisional_report_after | duration | "30d" | The age past which ferroehr party-binding check reports a provisional PERSON. |
[authz.party_binding]
provider = { issuer = "urn:oid:2.16.528.1.1007.3.3", id = "12345678" }
[[authz.party_binding.basic_user]]
user = "clinician"
key_issuer = "urn:example:staff-login"
key = "3f2b0c1e-0000-4000-8000-000000000001"
The party mapping
SCIM provisioning, just-in-time creation and the login binding read and
write the same demographic parties under one mapping. It names the
templates each party is valid against, the identifier selectors of the
binding key, userName and externalId, and where each SCIM attribute and
OpenID Connect claim goes. Names go in PARTY.identities and identifiers
in PARTY.details (RM demographic §Names and Addresses, §Party
Identification), and boot refuses a name mapped into details or an
identifier mapped into identities. No openEHR specification governs this
mapping: it is FerroEHR’s own design, and its targets are RM demographic
paths.
| Section | Keys | Description |
|---|---|---|
[[authz.party_binding.person.template]] | template_id, key, user_name, external_id, default | One per template a professional’s PERSON may use, so a migrated template can stay beside a new one. key, user_name and external_id are selectors, each { path, type }: the path of the ELEMENT holding the DV_IDENTIFIER and its type. Every identifier can sit at one path (the repeated element of an identifier cluster), so two selectors at one path are told apart by type, and the key by its issuer, the identifier_issuer of an [[auth.party]] table. Exactly one table sets default = true: SCIM and just-in-time creation create new persons with it. |
[[authz.party_binding.person.attribute]] | scim, oidc, jit, name, path | One per mapped value: a SCIM attribute path (the RFC 7644 valuePath form, emails[type eq "work"].value, and the FerroEHR extension urn:ietf:params:scim:schemas:extension:ferrohealth:2.0:User:loginIdentifier that feeds the binding key), an OpenID Connect claim, whether just-in-time creation writes it (jit, default false), whether it is the name the committer reads (name, at most one), and path, one path per template id. id, schemas, meta, active, userName and externalId are SCIM’s own and are never mapped. |
[authz.party_binding.professional_role] | template_id | The template of the professional ROLE, rooted at ROLE. A PERSON is a professional while it lists a ROLE of this template that names it as performer, is complete or incomplete, and whose time_validity holds today. |
[authz.party_binding.group] | template_id, external_id, display_name | The template of a SCIM Group’s GROUP, its externalId selector and the path of its displayName. |
[authz.party_binding.membership] | archetype_id | The PARTY_RELATIONSHIP archetype of a group membership, as each membership’s archetype_node_id carries it (the interface form of an ADL 2 id, openEHR-DEMOGRAPHIC-PARTY_RELATIONSHIP.membership.v1). SCIM serves /Groups when the group table names a display_name and this table is set. |
[authz.party_binding.patient] | template_id, identifier, name | The template of a patient’s PERSON, the subject of an EHR and the target of a representation: the path of the ELEMENT holding its identifiers (each a DV_IDENTIFIER of any type and issuer) and the path of its name. A PERSON written under this template is validated against it. |
With no mapping key set, every section maps FerroEHR’s default demographic definitions, which the server stores as it boots when the definition store holds no definition of their id. An empty configuration has this mapping:
[[authz.party_binding.person.template]]
template_id = "openEHR-DEMOGRAPHIC-PERSON.healthcare_professional.v1.0.0"
default = true
key = { path = "/details[id2]/items[id3]", type = "login" }
user_name = { path = "/details[id2]/items[id3]", type = "scim_user_name" }
external_id = { path = "/details[id2]/items[id3]", type = "scim_external_id" }
[[authz.party_binding.person.attribute]]
scim = "name.formatted"
name = true
path = { "openEHR-DEMOGRAPHIC-PERSON.healthcare_professional.v1.0.0" = "/identities[id4]/details[id5]/items[id6]" }
[[authz.party_binding.person.attribute]]
scim = "name.givenName"
path = { "openEHR-DEMOGRAPHIC-PERSON.healthcare_professional.v1.0.0" = "/identities[id4]/details[id5]/items[id7]" }
[[authz.party_binding.person.attribute]]
scim = "name.familyName"
path = { "openEHR-DEMOGRAPHIC-PERSON.healthcare_professional.v1.0.0" = "/identities[id4]/details[id5]/items[id8]" }
[[authz.party_binding.person.attribute]]
scim = 'emails[type eq "work"].value'
path = { "openEHR-DEMOGRAPHIC-PERSON.healthcare_professional.v1.0.0" = "/contacts[id9]/addresses[id10]/details[id11]/items[id12]" }
[authz.party_binding.professional_role]
template_id = "openEHR-DEMOGRAPHIC-ROLE.healthcare_professional.v1.0.0"
[authz.party_binding.group]
template_id = "openEHR-DEMOGRAPHIC-GROUP.care_team.v1.0.0"
external_id = { path = "/details[id2]/items[id3]", type = "scim_external_id" }
display_name = "/identities[id4]/details[id5]/items[id6]"
[authz.party_binding.membership]
archetype_id = "openEHR-DEMOGRAPHIC-PARTY_RELATIONSHIP.membership.v1"
[authz.party_binding.patient]
template_id = "openEHR-DEMOGRAPHIC-PERSON.patient.v1.1.0"
identifier = "/details[id2]/items[id3]"
name = "/identities[id6]/details[id7]/items[id8]"
The template ids are the ADL 2 ids of the stored archetypes, and the
membership archetype is named in the interface form each membership’s
archetype_node_id carries. A representation needs no section: FerroEHR
recognises it by the code it carries, in any archetype (see
Representatives in the patient portal). The default
key is of the type login, so an [[auth.party]] table whose
identifier_type is login needs no mapping key.
A section you set replaces that section’s default whole: a deployment that
sets [[authz.party_binding.person.template]] maps its own attributes too.
A deployment with templates of its own sets the sections that name them and
stores its templates before boot (ferroehr definitions load); the server
stores nothing under its ids, and still stores the default definitions,
which no section of its mapping then names.
A worked example over the default definitions, with the Microsoft Entra object id as the binding key. It sets the person section, and every other section keeps its default:
[[authz.party_binding.person.template]]
template_id = "openEHR-DEMOGRAPHIC-PERSON.healthcare_professional.v1.0.0"
default = true
key = { path = "/details[id2]/items[id3]", type = "guid" }
user_name = { path = "/details[id2]/items[id3]", type = "scim_user_name" }
external_id = { path = "/details[id2]/items[id3]", type = "scim_external_id" }
[[authz.party_binding.person.attribute]]
scim = "name.formatted"
oidc = "name"
jit = true
name = true
path = { "openEHR-DEMOGRAPHIC-PERSON.healthcare_professional.v1.0.0" = "/identities[id4]/details[id5]/items[id6]" }
With Microsoft Entra ID, map the object id to externalId (Entra’s
matching) and to the binding-key attribute (the binding): two attributes,
two selectors. The key’s [[auth.party]] identifier_type is guid, so a
key differing only in case binds one login.
Boot refuses, naming the key: no or two default tables; a selector path
that does not compile; two equal selectors; a key whose scheme
[privacy.identifier_protection] protects; any selector under the Dutch
BSN namespace (OID 2.16.840.1.113883.2.4.6.3); a key fed by an email
address, a phone number, preferred_username, name, upn or
unique_name; a template that is absent, rooted at another class or lacks
a mapped path; and a path whose type cannot carry its source. Deleting a template
the mapping names is refused with 409.
The parties the binding relies on are protected: a PERSON of a mapped
template carrying a selector identifier, its professional ROLE, a
representation relationship (one carrying ferroehr-operations::represents),
and a GROUP of the group template. Only an
administrator (authz.rbac.admin_role) writes one through the demographic
API, including the creation of a party that carries a selector identifier;
the patient a representation of its own targets writes that one too.
The policy parties (a party holding a capability coded in
ferroehr-operations, an acts-for relationship or a client_id identifier)
are recognised by what they hold and take no key of this mapping; they are an administrator’s to write and to read,
never a SCIM client’s: see Operational policy.
An administrator’s version that leaves a protected identifier out is refused
with 422. A present binding key is immutable (RFC 7643 §2.2): a version
that changes it is refused with 403, and
POST /admin/party/binding-key is the one
change. Each selector value binds one live party: a commit that gives a
binding key, a userName (compared after RFC 8265 width mapping, lower case
and NFC), an externalId or a group displayName a second party is refused
with 409. A deleted PERSON leaves its key as a tombstone that refuses
the login until an administrator binds the key again.
Changing the mapping
The side table is filled from the configured mapping and the party versions. The first boot fills it and stores the mapping’s digest; a replica whose mapping digest differs from the stored one refuses to start, naming both digests. Each running replica holds a lease it renews every 20 seconds. A mapping change is a stop-the-world step:
- Stop every replica. With Helm, scale the deployment to zero first: a rolling upgrade would start new replicas beside old ones.
- Run
ferroehr party-binding refillwith the new configuration. It refuses while a replica’s lease was renewed within the last minute, and refuses a store in which two parties carry one selector value, naming both. - Start the replicas with the new mapping. A replica still holding the old mapping refuses to start.
How a login is looked up
Every request of a person is looked up in the binding side table of the
party store, on the party database role, with no cache, so a change to a
party takes effect on the next request on every instance. The table holds
the binding key of each PERSON of a mapped template that performs a
professional ROLE (a ROLE of the mapped role template that its roles
list, that names it as performer, whose state is complete or
incomplete and whose time_validity holds today’s date in UTC) or that
is the source of a representation relationship, inline or of its own. A key of type guid or
uuid is compared in lower case. The table is written in each party
commit’s transaction and can be rebuilt from the party versions alone.
The request is refused with 403 and the binding code in the problem body
when the login matches two parties (refused-ambiguous), when its party is
inactive (refused-inactive) or abandoned (refused-abandoned), when
its key belongs to a deleted party (refused-deprovisioned), when the token
carries no key claim (refused-key-claim-missing), when the party lacks the
marker the caller’s kind needs (refused-wrong-marker), when the groups a
token asserts cannot be read (refused-groups-unavailable), when a guest
comes from an issuer whose table does not set guests (refused-guest), and
when a representative’s token names a subject its party has no live
representation relationship to (refused-representation-unrecorded). A party
store or an identity provider that cannot answer is answered 503, with
Retry-After when the identity provider gave one.
A person whose login matches no party is refused with 403 and
refused-unbound on every request, reads and writes alike; only the public
endpoints outside the auth layer answer. The problem names the identifier
issuer to provision the person under, and the refusal of a token without the
key claim names the missing claim instead. No setting serves an unbound person
under a login-only committer, so provision every professional (through
SCIM or the demographic API) before you add a persons issuer, or
let the issuer create a provisional PERSON at the first login
(just-in-time creation). Each
refusal writes one warn line naming the issuer and the outcome, never the
claim value, and counts into the binding_refusals metric by issuer and
outcome.
A representative reaches only the EHR whose EHR_STATUS.subject.external_ref
names the subject it represents: the issuer’s representation claim carries
the subject’s party id, matched without regard to case, and the subject must
be the target of one of the representative’s live relationships, so a
representative of an issuer no [[auth.party]] table binds is refused. Every
composition, EHR_STATUS, directory, contribution and query request is held
to that EHR, whatever the token’s scopes cover; a query must name it with
ehr_id. Templates stay readable. A persons token whose only clinical scopes
are patient/ is a professional confined to its launch EHR, and its commits
record the professional, never PARTY_SELF. A representative signing in
through a patients issuer is bound by FerroEHR itself, with no
[[auth.party]] table: see Representatives in the patient portal.
Just-in-time creation
Just-in-time creation lets a professional with no party work under their own
account at their first login, before SCIM or an administrator completes the
record. When a login of a persons issuer matches no party, and a
create_at_login grant in the CDR admits it, FerroEHR commits one PERSON
of the default template with lifecycle state 553|incomplete|, which RM
common §Incomplete Content allows for “incomplete demographic details”, and
its professional ROLE in the same demographic contribution, then serves the
request bound to it. The next request binds to that PERSON and creates
nothing. When a login creates a party is FerroEHR’s own design: no openEHR
specification governs it.
Which logins are created is operational policy, so it is CDR data and no
configuration key: an administrator writes a ROLE whose capability grants
ferroehr-operations::create_at_login, naming the issuer and the admission
conditions, through the Demographic API. The grant is read on each first
login, so a change applies to the next one without a restart. The
Operational policy page
documents the grant and has a worked example. [authz.grants] allowed
must list create_at_login, which the default does not, or no such grant
can be written or honoured.
The [[authz.party_binding.issuer]] table only says how an issuer’s tokens
are read, and an issuer without one reads the defaults:
| Key | Type | Default | Description |
|---|---|---|---|
issuer | string | required | A persons issuer an [[auth.party]] table binds. |
user_name_claim | string | the profile’s person_key | The claim the userName is read from. It must be one the issuer controls: an email address, a phone number, preferred_username, name, upn and unique_name refuse the start. |
idp_claim | string | idp | The dotted claim path an admit_idp condition reads the identity provider from (the Microsoft Entra idp claim). |
Creation also needs a default person template with a user_name selector,
[authz.party_binding.professional_role], and an attribute that maps an
OpenID Connect name claim (name, given_name, family_name,
middle_name or nickname) to the default template. The default mapping
has them. When a grant admits a login and the mapping lacks one, the login
is not created and the server logs what is missing.
[[authz.party_binding.issuer]]
issuer = "https://login.microsoftonline.com/<tenant-id>/v2.0"
user_name_claim = "oid"
What it writes is the attribution minimum: the binding key, the userName
and the name claims the token carries. Any other mapped attribute is written
only where its [[authz.party_binding.person.attribute]] sets jit = true
(GDPR Art. 25(2), data protection by default), and externalId is never
written, since RFC 7643 §3.1 leaves it to the provisioning client. The
version is committed with change type 249|creation|, a description naming
just-in-time creation and the issuer, and the person’s own committer: the
name, the login identifier and an external_ref naming the new PERSON.
FerroEHR reads every value from the access token only (RFC 9068 §2.2.2), so
the issuer must put the name claims in the access token.
It runs only for a person or a delegated caller of the issuer, never for a
representative, a patient, a system or a federation caller, and never for a
login whose outcome is anything other than unbound: an ambiguous, inactive,
abandoned or deprovisioned party, a token without the key claim and a party
with the wrong marker are refused as before. A PERSON a SCIM client deleted
is never created again by a later login, whatever the identity provider still
issues. A login that no grant in force admits, or whose token carries no
mapped name claim, is refused with 403 and refused-unbound. A guest is
created only under a grant whose admit_guests is true, and only when the
issuer’s [[auth.party]] guests admits it.
Concurrent first requests of one login commit one PERSON: the binding key’s
unique index refuses the second commit, and that request binds to the first
one’s PERSON. A login whose userName another party already holds is
refused with 403 and binds nothing. Just-in-time creation only creates: it
never updates, deactivates or deletes a PERSON, so a later login with
changed claims changes nothing.
A PERSON whose latest version is incomplete is provisional. The access
record of each of its requests carries binding = provisional, a demographic
read and an AQL query over VERSION/lifecycle_state show it, and
ferroehr party-binding check reports the provisional persons older than
provisional_report_after under side_table.provisional. What a provisional person may do is decided by
their SMART scopes and roles, as for anyone. A SCIM client whose
binding_issuer is the issuer’s identifier_issuer completes the PERSON:
it finds it by userName, with a binding key equal to its own, writes the
externalId with a PATCH, and a complete PUT completes it. SCIM
active = false abandons it.
The lawful basis for the attribution minimum (key, userName, name) is GDPR
Art. 6(1)(c): EHDS Art. 13(4) and the logging duties need the professional
identified. An operator who opts a contact attribute in with jit = true
names its own basis, Art. 6(1)(b) or (f). Because the data come from the
identity provider and not from the person, tell the professionals what Art. 14
asks: what is copied, from which source, and why. On a realm or tenant that
creates persons, make the name attributes administrator-controlled, as the key
is; Enterprise identity providers
shows the settings per identity provider.
Imports and system clients
The systems whose wrapped committers an import may carry are no key: a
creating_system element of the importer’s import grant names each one
(What the grants decide).
The system clients are not configuration. An OAuth client-credentials client
is granted what it may commit, import or export in the CDR, as an ACTOR
carrying its client_id that acts for a provider and performs a ROLE whose
capabilities grant the operations; see
What a system client may do.
The former [[authz.system_client]] table is an unknown key and refuses the
start.
Federation agreements
A federation agreement is CDR data, not a configuration key: a grant of
federated_person_access or federated_organisation_access on the partner’s
party, read on every request and judged when it is written. The configuration
keeps what the agreements are judged against: the federation issuers, their
[[auth.federation]] tables, [authz.grants] allowed (which must name both
codes before an agreement can be written) and [audit.store] retention. The
model, the codes and the rules are on
Operational policy. The
[[authz.federation.agreement]] table is removed, and a configuration that
still holds it is refused at boot as an unknown key.
[authz.grants]
| Key | Type | Default | Description |
|---|---|---|---|
allowed | list of operation codes | ["commit_composition"] | The operations of the ferroehr-operations terminology the policy grants may grant. A ROLE committed with a capability that codes an operation this list does not name is refused with 403, and one already stored is never honoured, so a compromised administrator account grants no more than you allow. An empty list lets the party store grant nothing; an unknown code refuses the start. Environment: FERROEHR__AUTHZ__GRANTS__ALLOWED, comma-separated. The codes and how a request reads its grants are on Operational policy. |
[authz.rbac]
| Key | Type | Default | Description |
|---|---|---|---|
enabled | bool | true | The coarse role gate (active when authentication is enabled). Off, every authenticated caller may use every enabled surface, reported as the rbac_off deployment gap. ehr_access_default and admin_role apply either way. |
admin_role | string | ADMIN | Role required for admin-class operations. A blank value is a boot error. |
readonly_role | string | READONLY | Role marking a principal read-only: refused on every write operation (create/update/delete/upload), even alongside granting roles. Reads and AQL queries are still allowed. |
emergency_access_role | string | unset | Role that reads data under an EHDS Art. 8 access restriction when the caller also declares one of [audit] emergency_purpose_codes (EHDS Art. 11(5)); the access record then carries the emergency mark. Unset, nobody may override a restriction. See restriction of access. |
role_issuers | list of string | [] | The persons issuers whose role claims may grant admin_role and emergency_access_role. A token of any other issuer never holds them, a Basic user keeps the roles its own table grants, and a hold_roles policy grant never gives one. An issuer of another kind refuses the start. Empty, no token grants them. |
ehr_access_default | enum{open,restricted} | open | What an EHR carrying no ACCESS_CONTROL_SETTINGS admits. restricted is object-level default-deny: only admin_role reaches a setting-less EHR, so an operator can still author the settings that open it. It is enforced whether enabled is on or off. With [auth] enabled = false nothing could enforce restricted, so that combination is a boot error. See Security. |
Reading one subject’s access log, acting as an EHDS Art. 10 access service,
importing an EHR or an extract, and reading a party’s protected identifiers
have no key here: each is a grant in the CDR (read_subject_audit,
access_service, import_ehr and import_ehr_extract, read_identifiers),
under [authz.grants] allowed. The keys that named a role for them before
5.7.1 are unknown keys, and the server refuses to start with one
(What the grants decide).
Note
The management surface is not configured under
[authz.rbac].[management.endpoints]owns it, one level per endpoint, with no global default beside it: an endpoint you do not name isoffand is not mounted. Only theadmin_onlylevel consultsauthz.rbac.admin_role.
[api] admin
| Key | Type | Default | Description |
|---|---|---|---|
admin | bool | false | Mount the ADMIN API (physical, irreversible delete). Off ⇒ every admin route answers 405 Method Not Allowed with an empty Allow header, never 403, and never touches the backend. |
Physical deletion is irreversible, so the group stays off by default. With it
on, /admin also joins the group list the OPTIONS System-Options manifest
advertises, so the manifest never names a group that answers 404.
[auth.scim]
FerroEHR is a SCIM 2.0 service provider (RFC 7644) at /scim/v2/, the
endpoint an identity provider provisions each professional through. It is off
by default.
| Key | Type | Default | Description |
|---|---|---|---|
filter_max_results | integer | 100 | The most resources one list response returns, which ServiceProviderConfig declares as filter.maxResults. At least 1. |
max_deactivations | integer | 100 | The most Users one client deactivates or deletes per window. Past it, a deactivation or deletion is 429 with Retry-After and logged at error. The count is kept in the database, so every replica shares one bound. At least 1. |
deactivation_window | duration | "1h" | The length of that window. At least "1min". |
contact_erasure_delay | duration | "0s" | How long after a User’s deletion the contacts of every version of its PERSON are erased (GDPR Art. 17). "0s" erases them in the deletion itself; at most "30d". |
max_group_members | integer | 5000 | The most members one Group holds. An add past it is 400 invalidValue. A membership change versions only the member’s PERSON, so its cost does not grow with the Group. At least 1. |
Who provisions is CDR data, read on every request: a provisioning client is
an OAuth client-credentials client of your own authorization server (an
[[auth.issuer]] of kind machines) whose ACTOR holds a scim_provision
grant in force. The grant’s binding_issuer is the identifier issuer of the
binding keys the client provisions, the identifier_issuer of an
[[auth.party]] table, and its token_scope the scope a token of the client
must hold; SMART on openEHR defines none for SCIM, so the value is yours to
choose. Each User belongs to the one client whose binding_issuer issues its
key, so no two clients’ grants name one. [authz.grants] allowed must admit
scim_provision. The first such grant is written with
ferroehr party-binding grant,
since no administrator can log in before the persons it provisions exist;
Operational policy has the
grant’s terms.
Every meta.location and discovery document names the resource by its URI
(RFC 7643 §3.1), under <public_base_url>/scim/v2 with
server.public_base_url
and server.base_path, so the table needs that key.
The table’s presence turns the endpoint on; it has no enabled key, and
setting one refuses the start. The start is refused when the table is present
without server.public_base_url, and when the party mapping
lacks what a User is written with: a default person template with a
user_name selector, and [authz.party_binding.professional_role].
[server]
public_base_url = "https://cdr.example.com"
[auth.scim]
[authz.grants]
allowed = ["commit_composition", "scim_provision"]
/scim/v2/ServiceProviderConfig answers without a token, so a client can read
the authentication scheme before it holds one. Every other path needs a
bearer token of a client that acts for nobody and holds a scim_provision
grant in force:
- no token, or one that does not verify, is 401 with
WWW-Authenticate: Bearer; - a person’s token, a client with no grant in force, a grant whose
binding_issuerno[[auth.party]]table issues or another client’s grant names too, and a token without the grant’stoken_scopeare 403, the last withWWW-Authenticate: Bearer error="insufficient_scope"(RFC 6750 §3.1).
Every refusal is an RFC 7644 §3.12 Error message in application/scim+json.
The client’s requests count against
[server.caller_rate] like any caller’s, so each
replica gives the client an allowance of its own, and past it a request is
429 with Retry-After. /scim/v2/Schemas serves the core User schema
reduced to userName, active and the SCIM attributes
[[authz.party_binding.person.attribute]] maps, and FerroEHR’s extension
urn:ietf:params:scim:schemas:extension:ferrohealth:2.0:User with
loginIdentifier, the attribute that feeds the binding key. /ResourceTypes
lists the User type at /Users.
Users
A User is a PERSON of the default person template performing the
professional ROLE. The client serves these operations (RFC 7644 §3):
POST /scim/v2/Userscreates thePERSONand itsROLEin one demographic CONTRIBUTION, under the client as committer, and answers 201 with the User, itsLocationand itsETag. The body carriesuserNameand the binding key inloginIdentifier;externalIdand every mapped attribute are optional. A version that fits its template in full iscomplete, and one that fits only with every lower limit at zero isincomplete, which the User’slifecycleStateandmissingPathsname. A User created withactive = falseis 400invalidValue.GET /scim/v2/Users/{id}answers the User with itsETag, the weak tag of its version, and 304 to anIf-None-Matchnaming that version.GET /scim/v2/Usersanswers aListResponse, an empty one with 200 when nothing matches.filtertakeseqandandoveruserName,externalIdandid; names and operators are compared in any case, and anything else is 400invalidFilter.startIndexandcountpage the result, at mostmax_resultsat a time.
The User’s userName, externalId and binding key are DV_IDENTIFIERs at
their selectors, issued by the client’s binding_issuer. A client sees only
its own Users, the ones whose key its binding_issuer issues: every other id
is 404 and absent from every list, as is a PERSON without a live
professional ROLE. The userName index spans every client, so a 409
uniqueness tells one client that a userName exists under another;
externalId is unique within one client. Every SCIM request is an access
record of the client, with the PERSON as its object.
A User is changed and removed through these operations:
PUT /scim/v2/Users/{id}replaces the User (RFC 7644 §3.5.1). A mapped attribute the body leaves out is cleared; the binding key andexternalIdare kept, and a left-outactivekeeps the lifecycle state.PATCH /scim/v2/Users/{id}applies the RFC 7644 §3.5.2 operations, value paths and areplacewithoutpathincluded, and commits the result as one version. The operation is read in any case, as the Entra ID client sendsReplace.DELETE /scim/v2/Users/{id}logically deletes thePERSONand its professionalROLEin one demographic CONTRIBUTION and answers 204. Every later request on the id is 404, the User leaves every list, and a new User may take itsuserName. The binding key stays behind as a tombstone: a login on it is refused as deprovisioned until the owning client creates a User with it again.
Each write answers with the User and its new ETag. An If-Match naming
another version is 412, a changed binding key is 400 mutability, and
a write without If-Match is accepted (RFC 7644 §3.14 makes entity tags a
MAY). active drives the lifecycle state of the PERSON (RM common
§Version Lifecycle):
| Current state | active in the request | Result |
|---|---|---|
complete or incomplete | true or left out | complete when the template holds in full, else incomplete |
complete | false | inactive |
incomplete | false | abandoned |
inactive | true | complete, or incomplete when the template does not hold |
abandoned | true | incomplete, then complete in a second version when the template holds |
inactive or abandoned | false or left out, with a change | 400 invalidValue: reactivate the User first |
inactive or abandoned | false or left out, without a change | 200, no new version |
An inactive or abandoned User is still read and found by a filter, so its
client can reactivate it. When the second version of an abandoned User
fails, the User stays incomplete and the same request completes it.
The versions of a deleted User are kept for the record-keeping duties that
need the professional’s identification (GDPR Art. 6(1)(c), laid down in law
as Art. 6(3) requires: in the Netherlands BW 7:454(3), twenty years, and the
logging duty of the Besluit elektronische gegevensverwerking door
zorgaanbieders). Outside the Netherlands, name your national retention
provision. Enable the identity provider’s protection against accidental
deletions beside max_deactivations.
Only the attribution minimum waits for that horizon: the name, the binding key
and the identifiers, userName and externalId among them. The contacts
serve no attribution, so FerroEHR erases them (GDPR Art. 5(1)(e)): with
auth.scim.contact_erasure_delay = 0 the deletion removes the contacts of every
version of the PERSON in the same transaction, and with a period a sweep
that runs every minute removes them once the period has passed. The sweep
reaches every deleted PERSON whose binding key the binding_issuer of a
scim_provision grant issues, one that has ended included,
an administrator’s demographic DELETE included. Each version keeps its uid,
audit and contribution, and its node rows are derived again from the erased
body. A server signature on such a version is removed, because it was taken
over the content the erasure changed. Each erasure is an access record, a
delete of party:<id>#contacts. A login on the key is still refused as
deprovisioned.
Groups
When [authz.party_binding.group] names a display_name and
[authz.party_binding.membership] is set, /scim/v2/Groups is served beside
/Users, and /scim/v2/ResourceTypes lists the Group. A Group is a
demographic GROUP of the group template:
- its
displayNameis theGROUP’sPARTY_IDENTITY, unique across the live Groups after case folding, so a duplicate is 409uniqueness; - its
externalIdis aDV_IDENTIFIERat theexternal_idselector under the client’s group issuer: thegroup_identifier_issuerof the[[auth.party]]table whoseidentifier_issueris the client’sbinding_issuer, so the group claim of that issuer’s tokens matches it. When that table sets none, the group issuer is thebinding_issuerwith/groupsappended (urn:example:logingivesurn:example:login/groups), with any trailing/of thebinding_issuerdropped first. A deployment whose tokens assert groups setsgroup_claimand agroup_identifier_issuerin the table, and that value is the group issuer; - each member holds one inline
PARTY_RELATIONSHIPof the membership archetype, with itsPERSONassourceand theGROUPastarget, stored in the member’s own version (RM demographic §Party Relationships). NoROLEis created for a Group, and aPERSONin no Group hasrelationshipsVoid.
A Group belongs to the client that created it; every other client gets
404. A member is a User of the same client: a member naming another
client’s User, an unknown id or a Group (nested Groups are not supported) is
400 invalidValue. What a Group allows stays with the token’s scopes and
roles; the access record lists the Groups the token names that the person
belongs to, and a Group in inactive or abandoned lists no member.
POST /scim/v2/Groupscreates theGROUPwith its members, if any, and answers 201 with the Group, itsLocationandETag.GET /scim/v2/Groups/{id}andGET /scim/v2/Groupsfilter witheqandandoverdisplayName,externalIdandid, andexcludedAttributes=membersleaves the members out. Each member is served with itsvalue,$refandtype.PATCH /scim/v2/Groups/{id}answers 204 with the newETag(RFC 7644 §3.5.2).addofmembersadds the listed members;removewith the filtermembers[value eq "<id>"]removes that member, andremoveofmemberswith neither a filter nor a value list removes them all.PUT /scim/v2/Groups/{id}replaces thedisplayNameand the members, keeps a left-outexternalId, and answers 200 with the Group.DELETE /scim/v2/Groups/{id}logically deletes theGROUPwith its memberships, and every later request on the id is 404.
Entra compatibility deviation. A remove of members that carries a
value list removes only the listed members, the request Microsoft Entra ID
sends. RFC 7644 §3.5.2.2 removes “the attribute and all values” when no
filter is specified; FerroEHR follows Entra only when the value list is
present.
A membership change is a new version of each member’s PERSON it touches,
in one CONTRIBUTION, and the GROUP gets no version; a change costs the same
whatever the Group’s size. The Group’s ETag is its GROUP version with a
membership revision that moves with every membership change, so it changes
whenever its members do (RFC 7644 §3.14). The member User’s ETag changes
too, since its PERSON holds the membership (RFC 7643 §4.1.2); its body does
not, because the User serves no groups attribute. Deleting a User deletes
the memberships its PERSON holds with it. Deleting a Group drops the
membership of each active member in the CONTRIBUTION that deletes the
GROUP. A GROUP an administrator set inactive or abandoned keeps its
version, since the version lifecycle draws no update of either state, and a
SCIM write to such a Group is 400 invalidValue.
Deactivated Users leave their Groups. The version lifecycle draws no
update of an inactive or abandoned PERSON (RM common master06 §Version
Lifecycle), so such a PERSON cannot take a membership change, and an
inactive PERSON binds to nothing. Setting a User’s active to false
therefore drops all its memberships in the same version, and each Group’s
ETag changes. Microsoft Entra ID often disables a user and then removes it
from its groups; the later remove finds nothing to remove and answers
204. An add naming an inactive or abandoned User is 400
invalidValue (“reactivate the User first”). A reactivated User belongs to
no Group until its client adds it again.
Provision from Microsoft Entra ID
Microsoft Entra ID provisions through a non-gallery enterprise application. FerroEHR validates the access token your own authorization server issues to it, so the steps split between the two.
-
Map the person template. The default party mapping maps
userName,externalId, the formatted, given and family name and the work email Entra sends. Set the person section only to map more, or to key the binding on the object id as the worked example there does.A value path such as
emails[type eq "work"].valueserves the value and itstype. FerroEHR holds one value pertypeand no preference among them, so/scim/v2/Schemasdeclaresprimaryread-only and theprimaryEntra sends is ignored (RFC 7644 §3.3). -
Grant the client. Grant its client
scim_provision, withferroehr party-binding grantor as an administrator through the Demographic API: the--issueris your authorization server, an[[auth.issuer]]of kindmachines, thebinding_issuerelement theidentifier_issuerof the[[auth.party]]your professionals log in through, and thetoken_scopeelement the scope its token holds. Setserver.public_base_urlto the URL Entra reaches. In the Helm chart, aconfig.auth.scimvalue also adds the/scim/v2path to the Ingress.ferroehr config checkrefuses a mapping the endpoint cannot serve. -
Federate Entra’s credential at your authorization server. Entra’s Workload Identity Federation presents a signed assertion, which your authorization server exchanges for a client-credentials access token (RFC 7523 §2.2). These checks are your authorization server’s, not FerroEHR’s, so verify each one there, as Microsoft’s “Workload Identity Federation for SCIM Provisioning” guide requires:
-
issis pinned to your full tenant issuer,https://login.microsoftonline.com/<tenant>/v2.0, and the assertion verifies against that tenant’s key set. -
audis pinned toapi://<workload-identity-app-id>, with one workload-identity application per FerroEHR deployment. -
azpis pinned to the application id of Microsoft’s provisioning service. -
utiis cached for the lifetime of the assertion, and an assertion whoseutiwas seen before is refused as a replay. - The access token it issues holds the grant’s
token_scope, names the client inclient_id, and lives between 1 and 6 hours, the range Microsoft’s guide asks for.
The assertion’s
subis the object id of a Microsoft application that every integration in the tenant shares, never yourclient_id, so it does not meet RFC 7523 §3 item 2.B. Accepting it is a deviation of your authorization server; record it there. Leaving Entra’s Secret Token blank, so that Entra uses its own token, is not supported: Microsoft reserves it for testing, and every non-gallery application in the tenant receives a token with the sameissandaud(RFC 9700 §2.3). A long-lived bearer token is not supported either. -
-
Point Entra at FerroEHR. Set the Tenant URL to
<server.public_base_url>/scim/v2and run Test Connection. Entra queries/Userswithfilter=externalId eq "<random guid>", which FerroEHR answers with an emptyListResponse, and fetches a random User and a random Group, each answered 404. -
Map the attributes in Entra. Map
userName,externalId,activeand the attributes of step 1. Map the attribute that carries the professional’s login identifier tourn:ietf:params:scim:schemas:extension:ferrohealth:2.0:User:loginIdentifier; Entra sends it without listing the extension inschemas, which FerroEHR accepts. An attribute the person template does not map is refused as undefined, so remove the rest of Entra’s default mappings. -
Protect against mass deactivation. Turn on Entra’s accidental deletions prevention, with a threshold at or below
max_deactivations. -
Provision groups. Map the group’s
objectIdto itsexternalId, so the object ids Entra puts in thegroupsclaim match, and provision only the groups assigned to the application, which keeps a person’s token under the groups overage limit. Entra creates each Group with no member, reads it withexcludedAttributes=members, finds it bydisplayName, and adds and removes members with PATCH.
Entra writes Replace and Add with a capital letter, disables a User with
active = false, sends DELETE once the user is removed, and never sends a
null. A value cleared in Entra therefore stays in FerroEHR until the User is
replaced or deleted, or an administrator removes it.
The access-delay register
The EHDS Art. 3(3) delay of the person’s own access to newly registered data
is a Member State option, and an
admin register, not a
configuration key: you turn it on through
{ext}/admin/registers/access-delay only where your Member State’s rule
provides for the delay, every version is kept with its committer, and a
change applies on the next request without a restart. [privacy.access_delay]
in ferroehr.toml is an unknown key and refuses boot. What the delay does is
on delayed access by the person.
| Member | Type | Default | Description |
|---|---|---|---|
enabled | bool | false | Whether the delay applies. Off, the person’s access is immediate (Art. 3(1)), every hold already placed stops withholding, and the admin route refuses a new hold with 400. |
categories | list of string | [] | The categories held at creation, named as the audit category register names one: a priority category of Art. 14(1) by its code (Laboratory-Reports, Medical-Imaging, …) or as <system>|<code>, or a national category the map declares. A name the map does not hold, and none, refuse the write. Empty holds nothing at creation; a professional still holds a composition by hand. |
max_delay | duration | required while enabled | The limit of a hold, a whole number of hours from "1h" to "8784h" (one year): new compositions of the listed categories are held from patient-context requests until a professional releases them or it passes. It is the length of a hold placed at creation and the latest end a professional may give one. Art. 3(3) allows the delay “for a limited period of time” only; the period is the Member State’s to set. |
{
"enabled": true,
"categories": ["Laboratory-Reports", "Medical-Imaging"],
"max_delay": "7d"
}
[auth.smart]
The SMART on openEHR scopes are enforced on every route whenever
[auth] is on: each operation carries a requirement from FerroEHR’s route
table, which the ferrohealth-smart crate checks against the token’s scopes
or a Basic user’s scopes. There is no switch for it. This section decides
what beside the route table: whether the discovery document is served, and
whose grants count for what. See SMART App Launch.
| Key | Type | Default | Description |
|---|---|---|---|
discovery | bool | false | Serve /.well-known/smart-configuration. It is built from the metadata of one [auth] issuer, the described issuer, so it needs an issuer whose metadata names a token_endpoint (SMART App Launch 2.2.0, Conformance, §Metadata), and server.public_base_url for its absolute services.*.baseUrl values. |
issuer_metadata_file | path | unset | A JSON file holding the RFC 8414 §2 metadata of the [auth] issuer it names, whose key set is a jwks_file, read at boot. It must name an [auth] issuer, wherever it stands in the list, repeat no member name, and every endpoint it names must be https (a loopback host excepted); the discovery document takes its token_endpoint and the other endpoints from it. Set for an issuer whose metadata is read from the issuer, it is a boot error. |
platform_base_url | string | unset ⇒ the REST root | The path the discovery document hangs off, e.g. /gateway/v1. |
episode_launch | bool | false | Advertise episode context and accept the launch/episode scope and episodeId claim; applies no episode-scoped filtering. |
patient_issuers | list of string | [] | The issuers whose patient/ grants count, each confined to the EHR the token’s ehrId claim names (master07 §Context Selection). Empty, a patient/ grant grants nothing. |
The launch-base64-json capability (master09) is advertised by listing it in
[auth] capabilities; the base64 JSON launch object is the application’s to
consume. The table is always read, since patient_issuers applies whether or
not the document is served; discovery alone turns the document on.
Which clients count as backend clients and which reach the DEMOGRAPHIC API is
policy the CDR holds, never a key here: the query_system_wide and
access_demographic grants of the client’s AGENT
(Operational policy).
patient_issuers stays in the file because it is trust: it says which
issuer’s ehrId claim names an EHR of this platform, which the server needs
before it can believe a patient/ token at all.
No smart URL may carry a user name or password, whether or not the document
is served: the discovery document publishes these URLs to every application,
so a credential in one would be served to anyone who asks.
The described issuer
The discovery document describes one authorization server: SMART App Launch
2.2.0, Conformance, §Metadata requires its authorization_endpoint whenever
the document advertises launch-standalone or launch-ehr, so it is where
every user launch starts. FerroEHR describes an issuer that serves a user
launch and whose metadata it has:
personsandpatients: eligible. A practitioner’s launch and a patient standalone launch both start at the issuer’s login.federation: eligible. Another party’s professionals sign in at it, and an agreement admits them.machines: never described. It signs client credentials tokens only:ferrohealth-smartrefuses every token of amachinesissuer that is not app-only, and FerroEHR refuses a system caller that holds auser/orpatient/scope, so no user launch can work there.
An issuer has metadata when it is introspected, when its metadata is read from
it, or when issuer_metadata_file supplies it. An issuer read from a
jwks_file alone has none.
With discovery = true, the start is refused unless exactly one issuer is
described:
[auth] described_issuerset: it must name an eligible issuer, else the start is refused, naming the key and why.[auth] described_issuerunset: the one eligible issuer is described. With more than one, the start is refused, naming them anddescribed_issuer. With none, as when the only issuer with metadata is amachinesissuer, the start is refused, saying no issuer can be described.
With discovery = false, no document is described and described_issuer is
not read.
The order of the [[auth.issuer]] tables never decides. SMART does not say
which of several trusted issuers a resource server describes. The rule is the
FerroHEALTH family’s own design, shared by every product through
ferrohealth-smart, and described_issuer is the same [auth] key in each.
[management]
The ops-introspection surface: build info, Prometheus, metric views, the effective configuration, runtime log control, and the on-demand profiler. Off by default, and every endpoint off individually.
The health probes are not configured here: /health, /health/liveness
and /health/readiness are always served on the main API port without
authentication, whatever this section says (see
Operations → Health probes).
[management]
enabled = false
base_path = "/management"
[management.endpoints]
info = "off"
metrics = "off"
prometheus = "off"
env = "off"
loggers = "off"
flamegraph = "off"
[management.profiling]
max_duration = "30s"
max_frequency = 999
| Key | Type | Default | Description |
|---|---|---|---|
enabled | bool | false | Mount the management router. |
base_path | string | /management | Base path for the management endpoints. |
port | int | unset ⇒ share the main listener | Serve management on its own listener and port. Must differ from the server.listen port, and it is plain HTTP, an internal surface. |
flame_file | path | unset | Span-timing capture: write the folded stacks of every span to this file, and render offline with inferno-flamegraph. Unset, the layer is not installed. For diagnostic sessions: the file grows with span traffic. |
[management.endpoints]: info, metrics, prometheus, env, loggers
and flamegraph, each enum{off,admin_only,private,public}, default off.
| Level | Meaning |
|---|---|
off | Not mounted at all; the route answers 404. |
admin_only | Requires an authenticated principal carrying authz.rbac.admin_role (401 unauthenticated, 403 authenticated but not admin). |
private | Requires any authenticated principal. |
public | Served outside authentication. |
env renders the effective configuration and flamegraph starts a profiler on
request, so the boot log prints exactly which endpoints a configuration turned
on and at which level.
[management.profiling]: limits for the on-demand CPU flamegraph behind
endpoints.flamegraph (see
Operations → Profiling):
| Key | Type | Default | Description |
|---|---|---|---|
max_duration | duration | "30s" | Longest sample window one request may ask for, in whole seconds. A request asking for more is refused with 400, never clamped. |
max_frequency | int | 999 | Highest sampling frequency (Hz) a request may ask for. Same refusal semantics. |
Warning
probes_enabledandendpoints.healthdo not exist. Configuration is strict, so a file or environment variable still setting either one fails at boot with an unknown-key error: delete the key; the probes are always on.
[deployment]
The commercial licence token. Every build embeds the licensor’s
non-commercial grant; a deployment that holds a commercial licence installs
its token here. The server behaves identically under either grant and reports
the one in force on GET /management/status (licence.use, licence.licensee,
licence.not_after, licence.configured_token). See
Licensing & legal.
| Key | Type | Default | Description |
|---|---|---|---|
licence_file | path | unset | The licence token the licensor issued. A token that cannot be read or does not verify is reported as refused on /management/status; the embedded grant stays in force. |
[record.signing]
VERSION signing. On by default in digest mode, with read-time verification of
the server’s own signatures strict by default.
| Key | Type | Default | Description |
|---|---|---|---|
enabled | bool | true | Server-side signing of committed versions. |
mode | enum{digest,pgp} | digest | A SHA-256 integrity digest, or an OpenPGP (RFC 4880) detached signature. |
key_file | path | unset | Armored secret key; required for pgp (a boot error otherwise). |
key_passphrase / key_passphrase_file | secret / path | unset | Key passphrase. At most one of the pair. |
retired_key_files | list of path | [] | Armored public keys retired from signing and kept for verification, so versions signed before a key rotation keep verifying. |
verify_on_read | enum{off,warn,strict} | unset ⇒ strict when signing is enabled | Read-time recompute-and-compare policy for the server’s own signatures. |
retired_key_files exists because a stored VERSION.signature records no key
identifier and is an immutable committed fact that cannot be re-issued;
keeping the retired public key is the only way history stays verifiable across
a rotation, and a public key can verify but never sign. Its environment form
takes a comma-separated list
(FERROEHR__RECORD__SIGNING__RETIRED_KEY_FILES=/keys/a.pub.asc,/keys/b.pub.asc).
Note
verify_on_readresolves tostrictwhen signing is enabled. On every read the server recomputes the signature of a version it signed and, on a mismatch, returns a500integrity fault rather than silently serving a provably corrupt record. Set it explicitly towarn(log + meterversion_signature_invalid_total, still serve) oroff(never check). Client-supplied signatures (an author’s own, or one carried by an imported version) are always stored verbatim and never re-verified, whatever this setting says, because the author may have signed a different agreed serialization.
Warning
pgpmode fails closed at boot if the key is missing or unusable: the server will not start. Verify the key and passphrase before switching modes.
Choose an Ed25519 signing key
The server refuses an ECDSA (P-256, P-384, P-521, secp256k1, Brainpool)
or Ed448 signing key at boot: their private-key arithmetic runs on
crypto-bigint 0.5, whose constant-time operations can branch on secret
values (RUSTSEC-2026-0387), with no fixed release on that line. The boot error
names the advisory. Move to Ed25519 with the steps below; the old certificate
goes in retired_key_files, where it keeps verifying, because verification
uses only public values.
An RSA signing key is accepted, but it makes every commit perform an RSA
private-key operation, the operation the Marvin timing sidechannel concerns
(RUSTSEC-2023-0071 / CVE-2023-49092), for which the underlying rsa crate has
no fixed release. An Ed25519 key keeps that code off the signing path entirely.
The server does not refuse an RSA key: a repository whose history is already RSA-signed needs that key to keep verifying, and signatures are immutable committed facts that cannot be re-issued. Instead it logs a warning at boot naming the advisory. To clear it:
- Generate a new signing key:
gpg --quick-generate-key "…" ed25519 sign, and export the armored secret key tokey_file. - Export the public half of the old certificate and add it to
retired_key_files, so versions signed with it still verify (see above). - Restart. New versions are signed with Ed25519; old ones keep verifying.
Rotation inside one certificate is cheaper still: add an Ed25519 signing
subkey to the existing certificate, export the armored secret key again to
key_file, and restart. The server signs with the newest subkey whose binding
grants signing and that is neither expired nor revoked
(the rule), with no
retired_key_files entry needed: the certificate keeps the previous subkey, so
past signatures continue to verify. For a refused ECDSA or Ed448 key this works
when the new Ed25519 subkey is the one chosen. The steps above, with a new
certificate, work in every case.
On Kubernetes, digest mode needs nothing; it is the default. pgp mode
needs the key as a file and its passphrase as a secret, both of which the chart
mounts for you:
# values.yaml
config:
signing:
enabled: true
mode: pgp
key_file: /etc/ferroehr/signing-key.asc
files:
signing-key.asc: |
-----BEGIN PGP PRIVATE KEY BLOCK-----
…
secrets:
signingKeyPassphrase: "…"
Every config.files key becomes /etc/ferroehr/<key>, mounted read-only from
a chart Secret at mode 0440, and that volume holds the private key, so it is
never world-readable inside the container. To go back to digest, set
mode: digest and drop the key material; versions already signed keep their
signatures and still verify.
[record.versioning]
What a commit stores is not a setting: a version whose content equals the
current version’s is committed like any other, with its own commit audit,
contribution, version id and ETag, and the content is stored once (the new
version reads its predecessor’s node rows). The one setting here is the
answer to a repeated send of the same content.
| Key | Type | Default | Description |
|---|---|---|---|
record.versioning.idempotent_resend | bool | false | When true, a PUT whose content equals the current version’s commits nothing and answers like a successful update with the existing version: 200 (or 204 under Prefer: return=minimal), and that version’s ETag and Location. |
Turn it on only for the integration that needs it: with the rule on, the
repeated send leaves no commit audit and no contribution, so the version
history does not record that the content was confirmed again, where the
default records every committal as the RM asks (RM common master06
§Committal and Audits). What the repeated send does leave is one record on
the access log ([audit]), operation resend, naming the version the
content matched and its content digest (<version uid>#sha256:<digest>),
the committer and the time: the entry Cadasto writes for a skipped send,
which says the last version was saved one more time. The content is matched
against the current version only, the one If-Match names; content equal to
an earlier version’s is committed as a new version. The openEHR REST API
does not govern skipping an identical commit; the answer is FerroEHR’s own,
chosen to match what a client sees from Cadasto.
[record.versioning]
idempotent_resend = true
Integrations
Query execution, the patient identity source and the three optional
integrations: [record.query], [pixm], [record.change_feed], [terminology],
[record.multimedia]. Everything except the query knobs and the identity source is
off by default, and a disabled integration contacts nothing and mounts no
routes. Precedence, the environment-name grammar, and file discovery are on the
Configuration reference index.
[record.query]
AQL execution bounds.
[record.query]
plan_cache_capacity = 256
timeout = "30s"
max_result_rows = 10000
| Key | Type | Default | Description |
|---|---|---|---|
plan_cache_capacity | int | 256 | Maximum distinct cached query plans; 0 disables the cache and every lookup runs the full parse-and-lower path. Cache activity is reported by the aql_plan_cache_events counter. |
timeout | duration | "30s" | Per-query database execution budget; "0s" disables it. Overrun is refused 408. |
max_result_rows | int | 10000 | The largest page one query execution serves: the page of a query nothing else bounds, and the maximum an explicit LIMIT or fetch may ask for (a larger page is refused 400); 0 means unbounded. |
timeout is on by default, and deliberately tighter than
database.statement_timeout. Keeping this budget the
tighter of the two means an overrun surfaces as the engine’s own typed 408
rather than a driver error. When it fires, or when the client disconnects or
the HTTP request timeout gives up first, the query’s connection is closed
instead of returned to the pool, so its pool slot frees at once and PostgreSQL
stops the statement within about a second (the session’s
client_connection_check_interval).
max_result_rows is the largest page one execution serves. Without it,
SELECT c FROM COMPOSITION c with no fetch generates SQL with no LIMIT and
materialises every matching row: one request, unbounded allocation. A query that
nothing else bounds takes the ceiling as its page. An explicit AQL LIMIT or a
fetch parameter is honoured as written up to the ceiling; a page larger than the
ceiling is refused with 400 naming the ceiling. The refusal is deliberate: a
silently shortened page would let a client that pages with its own fetch as the
stride skip the rows between the shortened page and its next offset, and the
RESULT_SET has nothing to say so. ITS-REST leaves both the fetch default and
its maximum to the implementation. A bulk consumer pages with offset and a
fetch at or below the ceiling, or the operator raises the ceiling deliberately.
[pixm]
Who translates a patient identifier into the clinical domain, so the EHR that
records the patient can be found (the EHR index). The EHR itself always says
whose record it is: its EHR_STATUS.subject.external_ref names the subject,
and FerroEHR finds a subject’s EHR by matching that reference, which it keeps
indexed beside the EHR on every EHR create and EHR_STATUS update. No openEHR
specification governs where the patient’s other identifiers live: the RM’s
PARTY_SELF section says the association “may be done elsewhere for security
reasons”, and FerroEHR’s design puts it in an IHE patient identity source.
record.subject_index = "pixm" asks an IHE patient identity source. FerroEHR asks a PIX
Manager, as a PIXm Patient Identifier Cross-reference Consumer
(IHE ITI TF-2 §3.83,
$ihe-pix), which identifier the clinical domain holds for a patient that
another domain’s identifier names. That identifier is the pseudonym
EHR_STATUS.subject carries. FerroEHR sends only what ITI-83 specifies, so any
conformant PIX Manager serves; FerroPIX is the one the compose quickstart and
the Helm chart run.
subject_index = "local", with no identity source, is the other supported
posture, for production as much as for development, tests and the
conformance suites: the subject-id and subject-namespace model. A client names
a patient in EHR_STATUS.subject.external_ref by any namespace and identifier
(benchmark / 1793131381), as OBJECT_REF.namespace and a local
GENERIC_ID.scheme allow, and a subject resolves to itself: the openEHR REST
API’s GET /ehr?subject_id=…&subject_namespace=… lookup and a cohort that
names its subjects both find the EHR whose EHR_STATUS names the subject,
matching namespace and identifier exactly. An EHR created over POST /ehr or
PUT /ehr/{ehr_id} is found from the moment it is created, and an
EHR_STATUS update that changes the subject moves it. The key has no
default: unset, the server refuses to start and the refusal names both
choices.
What the local posture means for pseudonymisation: with no
[privacy] subject_namespaces declared, the server stores a subject reference
as the client sends it, a real identifier included. Pseudonymisation then
belongs to the client, or to the demographic service the reference points at
(GDPR Art. 4(5)). There is no mixed mode: a deployment that declares pseudonym
namespaces keeps the rule in force under local too, so every subject
reference must name a declared namespace and carry a UUID, and no other
namespace is accepted beside them. A production deployment runs the
subject-id posture by accepting the open_subject_namespace gap by name
(deployment.profile), which boot and
GET /management/status then state.
subject_index alone switches the index, in the file or as
FERROEHR__RECORD__SUBJECT_INDEX. A [pixm] table kept beside "local" is not
used, and boot names its keys, so a configuration written for the IHE
source runs locally with FERROEHR__RECORD__SUBJECT_INDEX=local and no
other change; its declared pseudonym namespaces stay in force. The compose
quickstart selects its local configuration with one variable
(The local EHR index).
| Key | Type | Default | Description |
|---|---|---|---|
record.subject_index | enum{pixm,local} | required | Who translates a subject into the clinical domain. |
pixm.assigning_authority | URI | required for pixm | The clinical domain, such as urn:oid:2.999.7.1: the targetSystem of every ITI-83 query and the namespace the answered pseudonym is stored under. It must be one of privacy.subject_namespaces. |
pixm.method | enum{post,get} | post | post sends a Parameters body, so a patient identifier never appears in a URL or an access log; get is the form ITI-83 prescribes, for a PIX Manager that accepts no POST. |
pixm.endpoint | endpoint table | required for pixm | The PIX Manager: url, its FHIR base ([base] of [base]/Patient/$ihe-pix), timeout for one ITI-83 exchange with its tries and the waits between them, the retry of an exchange that got no answer or a 5xx, the TLS and the credential. |
[privacy]
subject_namespaces = ["urn:oid:2.999.7.1"]
[record]
subject_index = "pixm"
[pixm]
assigning_authority = "urn:oid:2.999.7.1"
[pixm.endpoint]
url = "https://pix.example.org/fhir"
[pixm.endpoint.credentials.oauth]
token_endpoint = "https://idp.example.org/realms/pix/protocol/openid-connect/token"
client_id = "ferroehr"
client_secret_file = "/run/secrets/pix-client"
scope = "system/Patient.rs"
[pixm.endpoint.credentials.oauth] is the client credentials grant every
ITI-83 request carries, with the grant’s keys; a 401
is answered once more under a new token. The client id is the one the
identity source mints pseudonyms in the clinical domain for, and the scope is
the one its PIX Manager takes from a Consumer. [pixm.endpoint.tls] holds
the client’s TLS material for a PIX Manager behind a private PKI or one that
asks for mutual TLS.
How a subject a cohort names is resolved:
| Step | Under ihe | Under local |
|---|---|---|
| the subject in the clinical domain | its clinical pseudonym, asked of the source; a subject already in the clinical domain names itself | the subject as given |
| the EHR of that subject | the one EHR whose EHR_STATUS names it | the one EHR whose EHR_STATUS names it |
The source is never asked to resolve a pseudonym back to another domain’s identifier.
No fallback. At start the server reads the source’s
CapabilityStatement and refuses to start when it does not answer. A request
the source then fails, refuses or times out on answers with an error that
carries what the source said, and nothing is answered from the EHR_STATUS
subject instead.
An answered pseudonym the [privacy] subject rule refuses, or more than one
identifier in the clinical domain, is refused too.
FerroEHR does no identity work in either mode. It matches no patients,
merges none and links no identifier domains; the identity source does. It asks
only for the cross-reference ITI-83 answers. PDQm
(ITI-78) is not used: its
search answers with the demographic Patient, which FerroEHR would only
discard, so asking for it breaks data minimisation
(GDPR Art. 5(1)(c)), and its
$match is patient matching.
[record.change_feed]
The commit-event outbox and its cursor feed. Off until a reader is granted:
a reader is the reader element of a read_change_feed grant in the CDR, not
a key (Operational policy).
The envelopes are PHI-free by design. The feed, its routes and its scope are on
Change events (outbox feed).
| Key | Type | Default | Description |
|---|---|---|---|
retention | duration | "7d" | How long an acknowledged row is kept after its commit; at least a second. |
prune_interval | duration | "1h" | How often the retention prune runs; never "0s". |
[terminology]
The one FHIR terminology server the CDR asks; the table’s presence turns it
on. The terminology extension API is api.terminology (bool, false).
| Key | Type | Default | Description |
|---|---|---|---|
endpoint | endpoint table | required | The server: url, its FHIR R4B base URL (for FerroTERM http://ferroterm:8080/r4b; a [terminology] table without it is a boot error), timeout for one call, the retry of a call that got no answer or a 5xx, the TLS and the credential. |
on_error | enum{accept,refuse} | accept | What an unresolvable binding does to a commit: accept accepts it (fail-open), refuse rejects it. |
Every key is a scalar, so the whole section is reachable through the
environment: FERROEHR__TERMINOLOGY__ENDPOINT__URL,
FERROEHR__TERMINOLOGY__ON_ERROR,
FERROEHR__TERMINOLOGY__ENDPOINT__TIMEOUT.
[terminology]
on_error = "accept"
[terminology.endpoint]
url = "http://ferroterm:8080/r4b"
The server answers every terminology the bundled openEHR terminology does not
carry: the /terminology/* extension API, AQL TERMINOLOGY(…) resolution, the
ADL 2 binding check and the composition-commit binding checks below. A response
that is not a valid FHIR R4B Parameters or ValueSet resource (for example an
$expand result missing the required ValueSet.status or
expansion.timestamp) is treated as an upstream fault rather than partially
read, so it takes the same path as an unreachable server and on_error
decides what the commit does.
Note
The terminology server needs the
fhirbuild feature, which is on in the published binary and container images. A binary built with--no-default-featuresrefuses at startup if[terminology]is configured; the in-process openEHR terminology bundle remains available.
The endpoint table
Every outbound HTTP integration, [terminology.endpoint], [pixm.endpoint] and
[audit.fhir_feed.endpoint], is the
FerroHEALTH family’s one endpoint
table, so an operator writes the same keys for each integration of each
product. Each integration’s client is built from it by ferrohealth-smart’s
outbound client, the one every product of the family uses.
| Key | Type | Default | Description |
|---|---|---|---|
url | URL | required | The service’s base URL. Credentials embedded in it are masked in every rendering, and a credential here beside one in credentials is a boot error: the service would receive two authorizations. |
timeout | duration | "10s" | How long one whole call may take; never zero. |
connect_timeout | duration | unset | How long opening the connection may take; unset, only timeout bounds it. |
retry | table | three attempts, a fifth of a second doubling to five seconds | How a call that got no answer, or a 5xx, is tried again: max_attempts (3) counts the first try, so 1 never retries; the wait starts at initial_backoff and doubles up to max_backoff ("5s"). A refusal the service answered on purpose is never retried. |
tls | table | platform roots | The family’s outbound TLS table: trust_roots_file, a PEM bundle trusted beside the platform’s roots for a service behind a private PKI; client_identity_file (or client_identity inline), one PEM holding the client certificate chain and its key for mutual TLS; and min_version ("1.3", or "1.2"). |
credentials | table | none | What every call carries: HTTP Basic (user with password or password_file) or the OAuth2 client-credentials grant [...credentials.oauth], never both. |
The grant’s access token is cached and re-requested shortly before it
expires, and a call the service answers with 401 is sent once more under a
new token. Its keys:
| Key | Type | Default | Description |
|---|---|---|---|
token_endpoint | URL | one of token_endpoint and issuer | The OAuth2 token endpoint. Credentials embedded in it are masked in every rendering. |
issuer | string | one of token_endpoint and issuer | The issuer whose metadata names the token endpoint (RFC 8414). |
client_id | string | required | The registered client identifier. Empty is a boot error. |
client_secret / client_secret_file | secret / path | one is required | The client secret, inline or read from a mounted file. |
client_auth | enum{client_secret_basic,client_secret_post,private_key_jwt,tls_client_auth,self_signed_tls_client_auth} | client_secret_basic | How the client authenticates at the token endpoint. |
scope | string | unset | The scope request parameter. |
audience | string | unset | The audience request parameter some authorization servers read. |
resource | URL | unset | The RFC 8707 resource request parameter. |
private_key_file | path | unset | The PEM private key that signs the client assertion under private_key_jwt (RFC 7523). |
kid | string | the RFC 7638 thumbprint | The kid the client assertion names. |
assertion_alg | string | by key type | The algorithm the client assertion is signed with. |
assertion_audience | enum{token_endpoint,issuer} | token_endpoint | The aud of the client assertion; issuer needs issuer set. |
tls | table | platform roots | The token endpoint’s own TLS table, with the keys above. |
refresh_margin | duration | "30s" | How long before the token expires a new one is fetched. |
timeout | duration | "10s" | How long one call to the authorization server may take. |
[terminology.endpoint.credentials.oauth]
token_endpoint = "https://idp.example.org/realms/ts/protocol/openid-connect/token"
client_id = "ferroehr-cdr"
client_secret_file = "/run/secrets/ts-client"
scope = "system/*.read"
Archetype value-set bindings at commit
With [terminology] enabled, committing a COMPOSITION also resolves
the archetype constraint bindings its template declares: where a template
binds an ac code to an external terminology query, the coded value in the
composition must be a member of the value set that query returns.
- The code is in the value set → the commit proceeds.
- The code is not in the value set →
422naming the path, the code, and the bound query. That is a real constraint violation, not a service failure, soon_errordoes not change it. - The value set could not be resolved (server down, error response, unknown
value set) →
on_errordecides:false(the default) accepts the commit and logs a warning;truerejects it with422.
With [terminology] disabled (the default) no binding is resolved
and no request is made, so commit behaviour is exactly as if this section did
not exist.
Note
The composition’s
terminology_idis sent verbatim as the FHIRsystemparameter, and no openEHR specification defines a mapping betweenterminology_idvalues (SNOMED-CT) and FHIR system URIs (http://snomed.info/sct). If your archetypes and your terminology server disagree, align them in the terminology-server configuration; the CDR does not rewrite the value.
[record.multimedia]
DV_MULTIMEDIA externalization to an S3-compatible object store. Off by
default: blobs stay inline, byte-identical, and no object store is built or
contacted. The table keeps enabled where other optional features use the
table’s presence, because url applies while it is off: the blobs already
offloaded are read back from it.
| Key | Type | Default | Description |
|---|---|---|---|
enabled | bool | false | Externalize large multimedia data. |
threshold | size | "256KiB" | Decoded size strictly above which data is offloaded; at or below it stays inline. |
url | secret URL | unset ⇒ default AWS endpoint resolution | S3-compatible endpoint. Must be an absolute http/https URL when set; an http:// URL is plain HTTP, development only, which production names as the plaintext_object_store gap. Credentials embedded in it are redacted from every rendering. |
bucket | string | openehr-multimedia | Target bucket for content-addressed blobs. |
region | string | us-east-1 | AWS region; S3 requires one even for non-AWS endpoints. |
access_key_id | string | unset | S3 access key id. Unset, with no secret key either, runs the client anonymously. |
secret_access_key / secret_access_key_file | secret / path | unset | S3 secret access key. At most one of the pair. |
An enabled integration whose url is set but blank, not an absolute URL,
or carries a scheme other than http/https is a boot error. That case is
easy to reach by accident (an unset Compose variable expanding to nothing, or
an empty Helm value) and used to boot cleanly and then fail on the first
multimedia commit, so it is refused where an operator can still act on it.
Warning
Offloaded blobs are PHI. The bucket must be private and encrypted, and reached over HTTPS. Multimedia externalization also needs the
multimediabuild feature (on in the published binary and container images); a slim build refuses at startup rather than silently keeping blobs inline.
Audit
The IHE ATNA audit trail: [audit] and its three sinks. Precedence, the
environment-name grammar, and file discovery are on the
Configuration reference index.
[audit]
The IHE ATNA audit trail (see the Audit trail chapter for what a record contains and how to search it). On by default with only the local store active: every deployment gets a queryable audit trail with nothing leaving the node, and forwarding to an external Audit Record Repository is opt-in per sink.
[audit]
enabled = true
source_id = "ferroehr"
value_if_missing = "UNKNOWN"
suppress_login_events = true
fail_mode = "open"
resolve_subject = true
queue_capacity = 8192
purpose_header = "x-purpose-of-use"
permit_header = "x-data-permit"
purpose_codes = []
emergency_purpose_codes = []
| Key | Type | Default | Description |
|---|---|---|---|
enabled | bool | true | Master audit switch. |
enterprise_site_id | string | unset | The AuditEnterpriseSiteID field. |
source_id | string | ferroehr | The audit source id, also used for the destination participant. |
value_if_missing | string | UNKNOWN | Fill value for empty mandatory fields. |
suppress_login_events | bool | true | Skip successful-login records. Rejected accesses (401/403) are always recorded. |
fail_mode | enum{open,closed} | open | What an undeliverable audit record does. open logs, meters and lets the request succeed; closed rejects auditable operations with 503 (including when the local store has stopped accepting writes) so no PHI access goes un-audited. |
resolve_subject | bool | true | Enrich the patient participant with a background lookup of the EHR’s subject. The lookup runs on the background drain, never on the request path; the IHE BALP patient patterns and the patient-centric audit search need the subject. |
queue_capacity | int | 8192 | Bounded audit queue capacity. Sized for write-path bursts: the drain persists in multi-row batches, so the queue only needs to ride out sink latency spikes. |
server_host | string | unset ⇒ the value_if_missing fill | This node’s advertised network address, reported as the destination NetworkAccessPointID. |
purpose_header | string | x-purpose-of-use | The request header a caller declares its purpose of use in, recorded on every access record. NEN 7513 asks on whose authority a record was read and EHDS Art. 9 asks why; neither is derivable from the request, so the caller declares it. IHE carries the equivalent in a SAML attribute rather than a header, so the header is FerroEHR’s own. An issuer with an [[auth.attributes]] table states the purposes in its token, and a header naming another purpose is refused (where the purpose comes from). |
permit_header | string | x-data-permit | The request header a secondary-use caller declares the data permit it acts under in (EHDS Art. 68), recorded on every access record as permit. The value is the permit’s identifier, 1 to 128 characters of letters, digits and . _ : / # -; any other value is recorded as absent. No specification names a header for it, so the header is FerroEHR’s own. See Secondary use. |
purpose_codes | list of string | [] | The purpose codes this deployment accepts. Empty records whatever the caller declares. A non-empty list records a declared code only when it is on the list, so an unagreed string does not sit in the trail reading like an established purpose. |
emergency_purpose_codes | list of string | [] | The purpose codes that mark an access as an emergency access in the vital interest of the patient (EHDS Art. 11(5)). Each must also be on purpose_codes, or the server refuses to start. Empty marks nothing. The mark is recorded on the access record and shown to the patient through the access log; it lifts no restriction. |
legal_basis | string | unset | The legal basis this deployment processes under, recorded on every access record. A deployment-level fact: the controller establishes the GDPR Art. 6/9 condition once. Unset records nothing rather than a guess. |
Note
The local store renders a FHIR R4
AuditEventfrom each record when it is read, and the ATX:FHIR Feed sends one, so both need thefhirbuild feature, on in the published binary and container images. A binary built with--no-default-featuresrefuses at startup ifaudit.store.enabledis set or[audit.fhir_feed]is configured; the DICOM/syslog feed needs no FHIR and stays available.
Note
There is no
[atna]section. Configuration is strict, so a file or environment variable still setting an[atna]key fails at boot with an unknown-key error; move the setting under[audit].
[audit.store]: the local Audit Record Repository
| Key | Type | Default | Description |
|---|---|---|---|
enabled | bool | true | Persist every record in the audit schema, served through the ITI-81 GET /fhir/r4/AuditEvent search. |
retention | calendar period | unset (keep forever) | How long records are kept, an ISO 8601 period of whole years ("P3Y") or days ("P1830D"); unset keeps them forever. Applied hourly by the retention reaper. Years are compared exactly against the floors and ceilings, which are written in years, and reaped with calendar arithmetic. A value below the retention floor of a jurisdiction the active [privacy.identifier_scan] rules name is a boot error naming both bounds; see Audit trail. The name is EHDS Annex II’s. |
sgb_v_309_controller | bool | false | Set only if the deploying organisation is, or acts for, one of the controllers SGB V § 307 names for a German telematics-infrastructure application. It caps the horizon at the three-year period of SGB V § 309 Abs. 1, after which Abs. 3 requires deletion without delay, so a declared controller cannot keep records forever. |
verify_interval | duration | "1h" | The time between two scheduled verifications of the store’s hash chain; "0s" turns the schedule off. Each run verifies the records written since the newest link an earlier run found intact. A finding is logged at ERROR, counted in atna_audit_chain_findings and reported by the audit_chain indicator on GET /health/readiness. See Tamper evidence. |
full_verify_interval | duration | "7d" | The time between two scheduled full passes over the hash chain, which also recompute the records before the checkpoint; "0s" leaves the full pass to SELECT * FROM audit.verify_audit_chain() on demand. A run that found damage is always followed by a full pass. |
The local store is the durability anchor of the whole subsystem: with it on, the FHIR feed drains from it, so a down repository loses nothing.
The floors and ceilings are written in calendar years. In every EU Member State
the floor is three years (EHDS Art. 9(2)), and a longer national floor wins:
five years in the Netherlands. Switzerland keeps its one-year floor. A
retention value is compared against them exactly. A retention
value is held to the most days the years can span for a floor (1096 for three
years, 1830 for the Dutch five, 366 for one) and to the fewest for a ceiling
(1095 for the German three). A declared § 309 controller in Germany therefore
has no retention value that passes both the EHDS floor and the § 309
ceiling, and sets retention = 3:
[audit.store]
retention = 3
sgb_v_309_controller = true
The audit category register
The map every access record is classified through by EHDS category (Annex II
3.2(c); see the EHDS logging elements)
is an admin register, not a
configuration key: you read and replace it through
{ext}/admin/registers/audit-categories, every version is kept with its
committer, and a change applies on the next request without a restart. The
classification is done by ehds-logging, the EHDS logging component the
FerroHEALTH products share (FerroAUDIT); the register is the deployment’s map.
A template id, or failing that a root archetype id, maps to a list of
categories, or to the word none for data of no category. An access the map
in force cannot classify is recorded unclassified with its ids, never
refused. [audit.categories] in ferroehr.toml is an unknown key and refuses
boot.
The shipped map. While the register declares no template and no
archetype, the map FerroEHR ships applies
(app/ferroehr/assets/audit-categories.default.toml).
It is also the register’s default, version 0, before anyone writes it. It
names the published CKM templates and COMPOSITION archetypes whose purpose
places their data in one priority category:
| Key | Category |
|---|---|
template International Patient Summary, archetype openEHR-EHR-COMPOSITION.health_summary.v1 | Patient-Summaries |
template ePrescription (FHIR), archetype openEHR-EHR-COMPOSITION.prescription.v0 | Electronic-Prescriptions |
template Generic lab test result example simple | Laboratory-Reports |
template CCTA report | Medical-Imaging |
archetype openEHR-EHR-COMPOSITION.transfer_summary.v1 | Discharge-Reports |
It leaves out the generic report.v1 and report-result.v1 containers, which
carry laboratory, imaging and other reports alike, so an access through them
is recorded unclassified instead of guessed. CKM publishes no composition for
an electronic dispensation. A map that declares any template or archetype
replaces the shipped map whole, so copy its entries into your own map to keep
them. A national category declared alone keeps the shipped map.
shipped_map = false with nothing declared leaves no map: every access is then
recorded unclassified. With deployment.profile = "production" and auditing
on, the register refuses that write as the no_category_map gap unless
deployment.accepts names it; this floor stays in ferroehr.toml.
{
"national": ["urn:oid:2.16.840.1.113883.2.4.3.11.60.1|beeld"],
"templates": {
"International Patient Summary": ["Patient-Summaries"],
"Laboratory Report": ["Laboratory-Reports"]
},
"archetypes": {
"openEHR-EHR-COMPOSITION.report-result.v1": ["Laboratory-Reports"],
"openEHR-EHR-COMPOSITION.encounter.v1": "none"
}
}
| Member | Type | Default | Description |
|---|---|---|---|
shipped_map | bool | true | Apply the map FerroEHR ships while no template and no archetype is declared. |
national | list of <system>|<code> | empty | The national categories (EHDS Art. 14(1) third subparagraph) the map may name. |
templates | object of template id → list of category, or "none" | empty | Consulted first, by the template id the object was committed against. |
archetypes | object of archetype id → list of category, or "none" | empty | Consulted for an object whose template the map does not name, by its root archetype id. A key that is not an archetype id refuses the write. |
A priority category of EHDS Art. 14(1) is named by its code in HL7 Europe’s
EEHRxFDocumentPriorityCategoryCS: Patient-Summaries,
Electronic-Prescriptions, Electronic-Dispensations, Medical-Imaging,
Laboratory-Reports and Discharge-Reports, or as <system>|<code>. A
national category is named by the <system>|<code> it is declared with. Keys
compare case-insensitively. An unknown code, an empty list, a word other than
none, or two keys that differ only in case refuses the write with a message
naming the entry, and so does a map that no longer names a category the
access-delay register holds. A
record stores each category as its <system>|<code> token.
The digest of the map that classified a record is on the record. A write of the register also mirrors the map into the retention register in the same transaction, so a retention period can be keyed on a category through the admin marks API.
The origins a deployment recognises
Every version records where its data came from at commit: each FEEDER_AUDIT
originating-system id its body carries, and the access log reports them (EHDS
Annex II 3.2(e)). Annex II 3.4 also asks for retention periods and access
rights that take the origin into account. The ids a sending system writes are
free text, so the origins your deployment recognises are policy in the CDR,
not configuration: each is the origin element of a data_origin grant in
force, which a
retention period
and an access directive’s data scope may then
name (Operational policy).
A body that carries no FEEDER_AUDIT, committed by the holder of such a
grant, is stamped with its origin; a direct commit by any other caller keeps
this server’s [api] system_id.
[audit.syslog]: the classic DICOM/syslog feed (ITI-20)
The DICOM PS3.15 audit message, framed as RFC 5424 syslog and sent over RFC
5425 TLS 1.2 or later by ihe-atna (FerroAUDIT). TLS is the one transport: an
audit message names a patient (ITI TF-2 §3.20.4.1.2.1.1).
| Key | Type | Default | Description |
|---|---|---|---|
url | string | tls://localhost:6514 | The repository, tls://host:port; RFC 5425 §4.1 names port 6514. The table’s presence ships records; absent, nothing is sent. |
tls.trust_roots_file | path | unset | PEM bundle of trust roots for the repository, beside the platform’s. |
tls.client_identity_file | path | unset | The client certificate chain and its private key in one PEM, for mutual TLS. |
tls.client_identity | secret | unset | The same PEM inline, in place of client_identity_file. |
tls.min_version | string | "1.3" | The oldest TLS version the client speaks; set "1.2" for a repository that offers no TLS 1.3. |
spool_dir | path | unset | The directory of the spool every frame is stored in before it is sent. It must give no access to the group or to other users. Unset, the spool is held in memory, and a restart loses the frames not yet delivered. |
spool_max_events | int | 100000 | The most frames the spool holds; a frame past it is refused and counted in atna_audit_dropped. |
spool_max_size | size | "256MiB" | The most the spool holds in size. |
retry.max_backoff | duration | "1min" | The longest wait between two delivery attempts after a failure. |
[audit.syslog.tls] is the outbound TLS table every FerroHEALTH product
takes, as [pixm.endpoint.tls] is. Concatenate the certificate chain and the private
key into the one PEM client_identity_file names.
The drain stores each frame in ihe-atna’s spool, and the crate’s forwarder
delivers it: one connection held open, a failed send retried with an
exponential backoff and jitter, and the connection closed with a TLS
close_notify on shutdown, so nothing is lost to a reset (ITI TF-2
§3.20.4.1.1, RFC 5425 §4.4). The local audit store keeps only the FHIR
document, never the syslog frame, so the spool, not the store, is syslog’s
outbox. delivered_syslog_at is no longer written.
[audit.fhir_feed]: the RESTful-ATNA feed (ITI-20 ATX:FHIR Feed)
| Key | Type | Default | Description |
|---|---|---|---|
endpoint | endpoint table | required | The repository: url, its FHIR base (records go to {url}/AuditEvent; credentials embedded in it are masked in every rendering), timeout for one POST, the retry of a delivery (retry.max_backoff defaults to "1min" here), the TLS and the credential. The table’s presence turns the feed on. |
poll_interval | duration | "2s" | How long the forwarder waits for a new record before it reads the store again. |
ihe-atna’s forwarder delivers the feed. With the local store on, it
delivers from the store, oldest record first: a record not yet delivered has
no delivered_fhir_feed_at, so a repository outage loses nothing, and the
record is stamped once the repository accepts it. A record the repository
refuses (a 4xx other than 401, 408 or 429) is set aside until the next
start. It is reported on GET /management/health as audit_delivery, and
the records behind it keep flowing. With the store off, the feed delivers
from an in-memory spool. The forwarder retries until the repository answers.
Authenticating the feed
The feed authenticates with the credential of [audit.fhir_feed.endpoint]:
HTTP Basic, or the OAuth 2.0 client credentials grant
[audit.fhir_feed.endpoint.credentials.oauth] (the IHE IUA authorized-client
model), with the grant’s keys.
Under the grant FerroEHR sends the token as a bearer token, renews it before
it expires, and when the repository refuses the held token with 401 fetches
a new one and sends the record once more. Credentials in url beside a
credential stop startup.
With the local store on, the feed delivers from the store and loses nothing across a repository outage. With the store off it delivers from an in-memory spool, so a restart loses what the spool holds.
[audit.access_log]: trusted systems
| Key | Type | Default | Description |
|---|---|---|---|
trusted_key_files | list of paths | [] | Armored OpenPGP public certificates of the systems whose exported logs this deployment imports. An import is refused when neither these nor the keyring’s own key signed its checkpoint. |
Signing the access log needs no key of this section. Whenever
[record.signing] holds an OpenPGP key (mode = "pgp" with a key_file),
the server signs each link of the access log and seals it in a signed
checkpoint every five minutes when it grew; without one it signs nothing.
Use an Ed25519 key: a link is signed for every entry an access writes, RSA
signing is far slower, and every audit write waits on it. The key is the one [record.signing] configures for version
signatures, with its retired certificates: one key per deployment, kept in
the secret store its key_file and key_passphrase_file name. See the
audit page.
Privacy & data minimisation
[privacy] is what the clinical side refuses to hold. Precedence, the
environment-name grammar, and file discovery are on the
Configuration reference index.
- What this section is for
[privacy][privacy.identifier_scan][privacy.cohort]- Interaction with the audit trail
- Protecting national identifiers in the demographic domain
What this section is for
FerroEHR keeps clinical content, demographic parties and the map between them in three separate database schemas reached by separate roles. That separation is only worth something if the clinical side does not carry the subject’s identity anyway, in the subject reference, in a party proxy, or in free text. This section is the three rules that keep it out.
No openEHR specification governs any of them. The Reference Model leaves
EHR_STATUS.subject.external_ref open and only advises against identifying
content on a party proxy (PARTY_IDENTIFIED: “Should not be used to include
patient identifying information”). GDPR
Art. 4(5) and Art. 25(2) are
what make it a duty; this section is where a deployment states its side of it.
All three rules run on the write path, before anything is stored. A refusal is
422 Unprocessable Entity with one errors[] entry per finding (sent when
the request carries Prefer: return=representation),
each naming the RM path and the rule that matched. A refusal never echoes the
offending value — it would otherwise travel into the response body, the
access log and the traces, which is the leak the rule exists to prevent.
[privacy]
subject_namespaces = []
allow_identified_parties_in_ehr = false
[privacy.identifier_scan]
mode = "strict"
rules = ["ch-ahvn13", "ch-epd-pid", "de-kvnr", "fi-hetu", "gb-nhs-number", "nl-bsn", "no-fodselsnummer", "se-personnummer"]
patterns = []
[privacy]
| Key | Type | Default | Description |
|---|---|---|---|
subject_namespaces | list of strings | [] | The pseudonymisation domains this deployment issues subject pseudonyms in. |
allow_identified_parties_in_ehr | bool | false | Accept a PARTY_RELATED whose relationship is self carrying name or identifiers in clinical content. Off already accepts every other party proxy; see the matrix below. |
The subject reference
EHR_STATUS.subject is a PARTY_SELF whose optional external_ref points at
a demographic service. Once subject_namespaces names at least one namespace,
that reference must name one of them and carry a UUID as its id.value:
[privacy]
subject_namespaces = ["urn:ferroehr:pseudonym"]
FERROEHR__PRIVACY__SUBJECT_NAMESPACES=urn:ferroehr:pseudonym,mpi.example
What a deployment gets by default, and what declaring a namespace adds:
subject_namespaces empty (default) | declared | |
|---|---|---|
EHR_STATUS.subject.external_ref written by a client | accepted with any namespace and any identifier, as the openEHR REST API admits | must name a declared namespace and carry a UUID; anything else is a 422 |
| The database | no shape held | a trigger on ehr refuses a non-UUID subject reference whichever session writes it |
| Minting | FerroEHR mints none | FerroEHR mints none: the IHE patient identity source does |
FerroEHR mints no pseudonym. Under the IHE patient identity source
([pixm]), the source answers the
pseudonym the clinical domain holds for a patient, and the identity source
mints it on the first ask; that domain’s assigning authority is a declared
namespace. Every value that arrives from elsewhere, a client writing
EHR_STATUS directly, an EHR-Extract, an archive load, meets the same rule,
which is why declaring the namespace is the deployment’s act.
Empty is the default, and it leaves the rule out of force. A pseudonym
namespace is a deployment fact — which service mints the tokens — and there is
no name a server could invent for an operator. Declaring one is the same act as
turning the rule on. An EHR with no subject reference at all is unaffected
either way: that is the default EHR_STATUS the openEHR REST API describes,
and it carries nothing to minimise.
Both spellings of a UUID’s case are accepted; the braced, URN and unhyphenated forms are not, because the promoted subject column is compared as text and four spellings of one pseudonym would be four subjects.
The rule has a second line of defence in the database. On every boot the
server stamps whether namespaces are declared, and a trigger on the ehr
table then refuses a subject reference that is not a UUID whichever code path
or session writes it (ehr_subject_pseudonym_guard). Declaring namespaces
over an existing store does not rewrite stored rows: the boot log names how
many EHRs carry a subject reference that is not a pseudonym, and those need
re-pseudonymising.
Identified parties
A party proxy inside clinical content — the composer, participations, the health care facility and the feeder-audit party slots — is governed by which class it is:
name | identifiers | |
|---|---|---|
PARTY_IDENTIFIED | accepted | accepted |
PARTY_RELATED, relationship a third party (mother, guardian, donor, …) | accepted | accepted |
PARTY_RELATED, relationship self | refused | refused |
The two classes mean different things, so one rule for both was the wrong
shape. PARTY_IDENTIFIED is the Reference Model’s own provider proxy: “Proxy
data for an identified party other than the subject of the record”,
“Typically for health care providers, e.g. name and provider number of an
institution”. A composer name or a performing clinician’s name is that, not
patient identity, and refusing it invented a prohibition the specification
does not contain. ctx/composer_name in the simplified formats produces
exactly this shape, and so does the example composition this server generates
for a template.
identifiers follows the same line. The class is “Used to describe parties
where only identifiers may be known … e.g. name and provider number of an
institution”, so a clinician’s registration number on the composer is the
class’s own paradigm case, and the simplified formats build exactly that from
ctx/participation_identifiers. What the separation between the two database
schemas exists to prevent is the subject’s national identifier on the
clinical side, and that is caught in two places: a self party’s
identifiers slot is refused by this rule, and a national-identifier value
is refused by the identifier scanner below in free text and in every
DV_IDENTIFIER.id the scanner reads by its type
(identifiers that declare their own type).
PARTY_RELATED is the “Proxy type for identifying a party and its
relationship to the subject of the record”, and that relationship “is coded
as self” where the party is the patient. A name on a self party is the
subject’s own identity and is refused. A name on any other relationship, the
mother who consented, the guardian, the donor, is a third party the Reference
Model models on purpose, and the openEHR REST API obliges a server to accept a
composition that carries it, so it is accepted. A relationship the server
cannot read counts as self: the rule refuses what it cannot prove harmless,
and the Reference Model validator names the missing attribute on its own.
A refused proxy stays expressible: PARTY_IDENTIFIED’s own validity rule is
satisfied by external_ref alone, so it points into the demographic domain
instead of restating the identity.
The commit’s own AUDIT_DETAILS.committer is not clinical content and is never
touched by this rule.
A deployment that needs a name or formal identifiers on a self party sets:
[privacy]
allow_identified_parties_in_ehr = true
which is announced at boot with a warning naming what it permits.
[privacy.identifier_scan]
Every string leaf of every clinical write is checked against the active
identifier rules: the EHR, EHR_STATUS, COMPOSITION and directory writes,
the CONTRIBUTION path, EHR-Extract import and the admin archive load. The two
replay paths store a record verbatim, so for them a finding refuses the whole
import or load rather than rewriting the content; demographic parties are the
domain that holds identity and are not scanned.
| Key | Type | Default | Description |
|---|---|---|---|
mode | strict or warn | strict | strict refuses the write; warn accepts it and records a warning naming the RM path and the rule. |
rules | list of rule keys | every rule the build ships | The national personal-identifier rules to scan for. An unknown key is a boot error listing the shipped keys. |
patterns | list of regular expressions | [] | Extra patterns for the kinds no build can ship a rule for. |
The shipped rules
Each rule transcribes the checksum its own issuing register publishes. A kind whose current algorithm could not be established from its own register is not shipped, because a rule that guesses is worse than an absent one: it tells an operator their data was scanned.
| Key | Jurisdiction | Identifier | Published by |
|---|---|---|---|
ch-ahvn13 | CH | AHV-Nummer (AHVN13) | AHVV Art. 133 for the structure; the check digit from the BSV Wegleitung VA/IK 318.106.02 d, Anhang 7; matches the plain run and the 756.3047.5009.62 display form |
ch-epd-pid | CH | Patientenidentifikationsnummer (EPD-PID) | EPDV-EDI Anhang 1, vendored at docs/law/ch/epdv-edi/: the fixed prefix 76133761 and a mod-10 check digit |
de-kvnr | DE | Krankenversichertennummer (the unchangeable part) | GKV-Spitzenverband, Richtlinie nach § 290 SGB V, 3.4.1, with Anlage 1; the letter-to-digit convention (A=01 … Z=26) is stated in prose only in the same Richtlinie’s Anlage 2 and fixed for A and C by the KVNR’s own worked examples |
fi-hetu | FI | henkilötunnus | Valtioneuvoston asetus väestötietojärjestelmästä 128/2010, 2 §: the date of birth, the century sign, the individual number and the mod-31 check character |
gb-nhs-number | GB | NHS Number | NHS Data Model and Dictionary |
nl-bsn | NL | burgerservicenummer | Rijksdienst voor Identiteitsgegevens, Logisch Ontwerp BSN |
no-fodselsnummer | NO | fødselsnummer | Skatteetaten |
se-personnummer | SE | personnummer | Skatteverket |
Two are deliberately absent. The Danish CPR-nummer has been issued without its modulus-11 control since 2007, and those numbers are fully valid, so a checksum rule would pass most recent ones through while reporting Denmark as covered. The Belgian rijksregisternummer’s modulo-97 check is widely reproduced but no definition published by the Rijksregister itself could be retrieved.
Why every rule is active by default
Clinical data crosses borders: a Dutch hospital receives referrals carrying a Norwegian fødselsnummer. An operator who has not configured the scanner is exactly the operator who has not yet worked out which identifiers their content carries, so the default covers all of them.
The two costs are not symmetric. A false positive is a loud 422 naming the RM
path and the rule, which an operator answers by narrowing rules or moving to
warn. A false negative is a national identifier stored on the clinical side
indefinitely.
A deployment that knows its jurisdictions narrows the list:
[privacy.identifier_scan]
rules = ["nl-bsn", "no-fodselsnummer"]
FERROEHR__PRIVACY__IDENTIFIER_SCAN__RULES=nl-bsn,no-fodselsnummer
A Dutch deployment that receives no British content, for example, has no
use for gb-nhs-number, whose check accepts one ten-digit run in eleven.
The boot log states which rules are active, so a jurisdiction that is not covered is visible rather than assumed.
False positives, and what narrows them
Every checksum accepts some fraction of random digit runs, and clinical content is full of numbers. Three things narrow it:
- A digit run must be delimited — bounded by something other than a letter, a digit or an underscore. Without that, every hex digest and long numeric identifier produces hits at the checksum’s own rate. It also means a UUID can never match any rule: its groups are 8, 4, 4, 4 and 12 characters, so no delimited run of 9, 10 or 11 digits occurs in one, and the opaque subject pseudonym the boundary mandates passes unconditionally.
CODE_PHRASE.code_stringis skipped. A terminology code system’s identifiers are digit runs by construction, so this one slot is where the collision is systematic rather than incidental. Measured over this repository’s vendored corpora: of the 30 distinct nine-digit values that satisfy the Dutch elfproef, 27 are SNOMED CT concept identifiers, all of them in a code slot. The carve-out names an RM slot, not a country.- Each rule narrows itself with whatever structure it has. Two independent
control digits (
no-fodselsnummer, 1 in 120), an embedded date (se-personnummer, 1 in 139 with the Luhn check), a non-numeric token shape (fi-hetu, 1 in 31 among tokens of that shape).nl-bsnat 1 in 11 is the loosest shipped rule, which is why the code-slot carve-out matters most to it. Every figure here is measured, over 100 000 random tokens of each rule’s own shape, by a test that fails if a rule drifts from the rate it publishes.
A deployment measuring its own content runs warn first, reads the recorded
findings, then moves to strict.
Identifiers that declare their own type
A DV_IDENTIFIER carries an optional type, which the Reference Model
describes as the “identifier type, such as prescription, or Social Security
Number”, and its examples run from a social security number to an “order id”.
The scanner reads it before it scans the id. When the type is absent or
names neither kind, the scanner reads the name of the ELEMENT that holds
the identifier instead, by the same words. Every ELEMENT is a LOCATABLE,
whose name the Reference Model calls “the original label by which this
entry was known to end users”, and an archetyped element carries its node
name there:
DV_IDENTIFIER | In clinical content | In FEEDER_AUDIT.originating_system_item_ids or feeder_system_item_ids |
|---|---|---|
type names a person identifier | scanned | scanned |
type names an item (an order, specimen, accession, sample, lot) | not scanned | not scanned |
no type, or one naming neither, and the element name names a person | scanned | scanned |
no type, or one naming neither, and the element name names an item | not scanned | not scanned |
no type, or one naming neither, and no element name naming either | scanned | not scanned |
A type that names a kind takes precedence over the element name, so an
identifier typed NHS Number is scanned under any element name.
The type is free text, so it is read by its words, in any case and in
snake_case, camelCase or spaced form. Words such as patient, person,
subject, national, social, insurance, NHS, BSN and the name of
every shipped rule name a person; order, placer, filler, accession,
specimen, sample, requisition, prescription, lot, batch, serial,
barcode and container name an item. A person word wins: patient order number is scanned. The feeder audit’s item-id lists are, in the Reference
Model’s words, “Identifiers used for the item in the originating system, e.g.
filler and placer ids”, so an identifier there is scanned only when its type
says it identifies a person.
A laboratory filler order number typed filler_order_number is therefore
stored even when its ten digits pass the NHS Number check by chance, which one
ten-digit run in eleven does. So is an untyped order number in the
Requester order identifier or Receiver order identifier element of
openEHR-EHR-OBSERVATION.laboratory_test_result.v1, while an untyped value in
an element named NHS number or Patient identifier is scanned. The
archetype’s Laboratory internal identifier names neither kind, so a value
there is scanned unless its type names an item. The same number written into free text is still
claimed by every rule in rules; a deployment with no NHS Numbers in its
content leaves gb-nhs-number out of that list.
Local patterns
Medical-record numbers, payer references and postcode forms have no single issuing register to transcribe, so a deployment declares them itself as Rust regular expressions:
[privacy.identifier_scan]
patterns = [
"\\bMRN-[0-9]{6}\\b",
"(^|[^0-9A-Za-z])[1-9][0-9]{3} ?[A-Z]{2}[^0-9A-Za-z]{1,3}[0-9]{1,4}([^0-9A-Za-z]|$)",
]
The second refuses a Dutch postcode paired with a house number — the pair is what identifies a household; a postcode alone does not. A pattern that does not compile is a boot error naming it.
[privacy.cohort]
Cross-domain cohort queries: select a population in the demographic domain,
resolve it to the EHRs whose EHR_STATUS subject names it, and run AQL over
exactly those EHRs. A FerroEHR extension — no openEHR spec governs it. The wire contract and a
worked example are in Querying with AQL.
Off until a predicate is bound. Which demographic leaf may be selected on is
a deployment fact about the archetypes in use, never something the server can
infer, so [privacy.cohort.predicates] is empty by default and POST /query/cohort
answers 404 until it is not. subjects = true turns the surface on without
a predicate, for cohorts that name their subjects by identifier. That is the one
form an IHE patient identity source serves ([pixm] subject_index = "pixm"):
it holds no party-to-EHR map, so a predicate is refused there.
[privacy.cohort]
small_cell_threshold = 5
max_cohort_size = 100000
[privacy.cohort.predicates]
city = { archetype = "openEHR-DEMOGRAPHIC-ADDRESS.address.v1", node = "at0012", kind = "text" }
| Key | Type | Default | Description |
|---|---|---|---|
small_cell_threshold | int | 5 | The distinct-EHR floor a result set must reach to be served. Below it the rows are withheld and the response is marked suppressed; 0 disables suppression. |
max_cohort_size | int | 100000 | The largest cohort a predicate may select. A wider one is refused 422 rather than truncated: a silently shortened cohort is a wrong denominator. |
predicates | table | empty | The allow-list, keyed by the name a caller uses. Empty, with subjects off, leaves the surface off. |
subjects | bool | false | Let a request name its subjects by identifier, in any identifier domain, each resolved through the [pixm] provider: under the IHE provider by a forward PIXm translation into the server’s clinical domain, never back. |
The allow-list
Exactly five keys are bindable — city, postcode_area, sex, age_band and
organisation — and an unknown key is a boot error. Each binding carries
three fields:
| Field | Description |
|---|---|
archetype | The archetype HRID of the leaf ELEMENT’s nearest archetyped ancestor, e.g. openEHR-DEMOGRAPHIC-PERSON.person.v1. Must be a demographic HRID; anything else is a boot error. |
node | The ELEMENT’s archetype_node_id at-code, e.g. at0012. |
kind | How a caller’s value is matched: text (exact, against value/value), text_prefix (prefix, LIKE-escaped), coded (exact, against value/defining_code/code_string), or birth_date (an inclusive age band in whole years, 40-49). |
age_band must be bound birth_date, and no other key may be — both halves are
boot errors, because a mismatch would bind a predicate that matches nothing
while reporting an empty cohort.
The archetype must be one the node model reaches. A party is decomposed into
its own rows for the party root, for each PARTY_IDENTITY, CONTACT, ADDRESS
and CAPABILITY nested in it, and for every archetyped ITEM_TREE or CLUSTER
under any of their details. An ADDRESS under a CONTACT is therefore
bindable like anything else.
Interaction with the audit trail
The ATNA Patient-Number participant is filled from the promoted subject column, so constraining the subject reference to an opaque pseudonym is also what keeps the audit trail and its forwarding sinks free of the identity. The contribution outbox carries no subject at all. Both are covered by a CI test that fails when any subject identifier other than the opaque UUID appears in an outbox payload, an ATNA message or a trace record.
Protecting national identifiers in the demographic domain
The rules above keep national identifiers off the clinical side. The
demographic side is where a party’s identifiers legitimately live, and
[privacy.identifier_protection] decides how they are held there.
With the table present, an identifier of a configured scheme never sits in the versioned
body. The value moves to party.national_identifier, sealed with
AES-256-GCM under a key derived per domain, and the body keeps a reference in
its place. Beside the ciphertext sits an HMAC-SHA-256 digest of the value, which
is what makes “which party holds this identifier” answerable without decrypting
anything — and, because it is keyed, what stops the database, a backup or a read
replica from reversing a nine-digit space.
#? [privacy.identifier_protection]
#? schemes = ["nl-bsn"]
#? key_file = "/run/secrets/ferroehr-identifier-key"
| Key | Type | Default | Description |
|---|---|---|---|
enabled | bool | false | Whether protection is in force. Off leaves identifiers stored as written. |
schemes | list of string | ["nl-bsn"] | The DV_IDENTIFIER.type values to protect. Each must exist in the party.identifier_scheme registry; with protection on, the server refuses to boot when one does not. |
key | secret | unset | The root key, 64 hex characters. Prefer key_file. |
key_file | path | unset | A file holding the root key, read at boot. |
Turning it on with no key, with an empty schemes list, or with a scheme the
registry does not hold, is a boot error.
A server that believes it seals national identifiers and does not is worse than
one that never claimed to.
Four properties worth knowing before you enable it:
- The stored, signed and served body are the same form. Sealing runs before the body is decomposed and signed, exactly like the multimedia offload, so a signature still verifies against the bytes the server holds. What a reader receives carries the reference; the value is available through the admin read below. A create or update response serves the stored form as well, so the value you submitted does not come back in it.
- Each party version keeps its own sealed rows. A later version retires the rows of the one before it without rewriting them, so an older version still expands to the value it committed. Only live rows take part in the one-party-per-value rule.
- Nothing resolves an identifier to a party. The server offers no lookup from an identifier value to the party that holds it. The keyed digest keeps a value live for at most one party at a time.
- Reading a value back is audited and needs its own grant.
GET /ferroehr/rest/extensions/v1/admin/party/identifiersserves a party version with its values put back, for a caller holding both the admin role and aread_identifiersgrant in the CDR, and records each scheme it expands (reading a party’s protected identifiers). - The key is load-bearing and rotation is a re-encryption. The runbook is in Operations.
Only the demographic writer role reaches the sealed value. The read-only twin sees that a party holds a protected identifier and which party it is, and is refused the ciphertext and the digest by column-level grant; the clinical roles are refused the table outright.
CLI & production checklist
The binary’s command-line surface, what a zero-configuration boot actually gives you, the minimum a production deployment sets, and which material belongs in a mounted file rather than an environment variable. Precedence, the environment-name grammar, and file discovery are on the Configuration reference index.
- The command line
- Zero-config boot and the production checklist
- What belongs in a mounted file (versus the environment)
- Variables outside the server’s namespace
The command line
Two flags are global: they apply to the server and to every subcommand:
| Flag | Description |
|---|---|
--config <path> | The configuration file to load, overriding FERROEHR_CONFIG. Fatal if missing or unreadable. |
--set <key>=<value> | A dotted-path override, repeatable, highest precedence of all layers (e.g. --set database.max_connections=40). |
With no subcommand, or with serve, the binary boots the server. ferroehr --version prints
the version and the manufacturer of the release:
ferroehr <version>
Manufactured by Cadasto B.V., Comeniusstraat 2d, 1817 MS Alkmaar, The Netherlands, info@cadasto.com
https://www.cadasto.com/contact/
Exit status
Every command, the server included, exits with one of these statuses, the failure written to stderr with its whole cause:
| Status | Meaning |
|---|---|
0 | The command did what it was asked. |
1 | The command failed for any other reason: a database it cannot reach, a probe that reads unhealthy, a server that cannot serve. |
2 | clap could not parse the command line. |
78 | The binary refuses its configuration (EX_CONFIG of sysexits(3)): an unknown or invalid key, a semantic rule the configuration breaks, an [auth] table with no mechanism, or a SCIM mapping it cannot serve. |
An orchestrator can tell a configuration to fix from a failure to retry by the status alone.
Where the binary runs
Every command on this page is the same binary, /usr/local/bin/ferroehr,
and the published image’s entrypoint. The image is distroless and has no
shell, so you run a command by naming the binary or by passing the
subcommand to the entrypoint, never through sh -c. A command runs in one
of three places.
The binary on a host:
ferroehr config check --config /etc/ferroehr/ferroehr.toml
ferroehr party-binding check --admin <ADMIN_PARTY_ID>
The image under Docker or Docker Compose. config check touches no
database, so you can check a file before an upgrade with the new image
alone, mounting the file where FERROEHR_CONFIG names it:
docker run --rm -v "$PWD/ferroehr.toml:/etc/ferroehr/ferroehr.toml:ro" -e FERROEHR_CONFIG=/etc/ferroehr/ferroehr.toml ghcr.io/ferrohealth/ferroehr:<version> config check
This form sees only the file and the variables you pass. To check the
configuration a Compose service actually gets (its file, its
FERROEHR__ environment and its secrets), run the subcommand in a
one-off container of that service. It works while the server refuses to
start, because --no-deps starts nothing else:
docker compose run --rm --no-deps ferroehr config check
The commands that read the database run inside the running server’s container:
docker compose exec ferroehr /usr/local/bin/ferroehr party-binding check --admin <ADMIN_PARTY_ID>
docker compose exec ferroehr /usr/local/bin/ferroehr party-binding adopt --admin <ADMIN_PARTY_ID> <PARTY_ID>...
The Helm chart. The server container is ferroehr in the Deployment
<release>-ferroehr, and kubectl exec runs a command in it with the
pod’s configuration, environment and secrets:
kubectl exec deploy/<release>-ferroehr -c ferroehr -- /usr/local/bin/ferroehr config check
kubectl exec deploy/<release>-ferroehr -c ferroehr -- /usr/local/bin/ferroehr party-binding check --admin <ADMIN_PARTY_ID>
kubectl exec deploy/<release>-ferroehr -c ferroehr -- /usr/local/bin/ferroehr party-binding adopt --admin <ADMIN_PARTY_ID> <PARTY_ID>...
The chart mounts the configuration from its ConfigMap, so after a
helm upgrade an existing pod reads the new file as soon as the kubelet
syncs it, before any pod restarts. A configuration the server refuses
leaves the new pod failing in its definitions init container, which
runs definitions load and refuses first. kubectl logs <pod> -c definitions shows the refusal. To run config check on that pod’s
configuration, copy the pod into a one-off pod with no init container that
runs the check once:
kubectl get pod <failing-pod> -o json \
| jq '{apiVersion, kind, metadata: {name: "<release>-ferroehr-config-check"},
spec: (.spec | del(.initContainers, .nodeName) | .restartPolicy = "Never"
| .containers |= map(select(.name == "ferroehr") | .args = ["config", "check"]
| del(.livenessProbe, .readinessProbe, .startupProbe)))}' \
| kubectl create -f -
kubectl logs <release>-ferroehr-config-check
kubectl delete pod <release>-ferroehr-config-check
The pod ends Failed with exit status 78 when the configuration is
refused and Succeeded with 0 when it is valid.
A file argument, such as party-binding check --expected, names a path
inside the container.
ferroehr config …
ferroehr config check [--config P] # validate file + environment + --set
The starting point for a real ferroehr.toml is
app/ferroehr/assets/ferroehr.default.toml,
every key under its description with its default, generated from the
configuration types. Every configuration key shows it whole.
config check runs the same validation the server runs at boot (the strict
unknown-key sweep, the type pass, the aggregated semantic rules, and the
“authentication enabled needs a mechanism” rule) and touches no database,
so it is safe in CI and before a rollout. It exits 0 when the configuration is
valid and 78 otherwise; on success it prints the effective configuration as TOML
with every secret redacted, and notes on stderr when database.url is still the
built-in development default. Where the binary runs
shows it under Docker Compose and Helm, including for a configuration the
server refuses.
ferroehr db …
ferroehr db migrate # apply the embedded migrations and exit
ferroehr db verify # verify, issuing no DDL, that the schema matches this build
These exist so a least-privilege deployment can separate the two database
identities: run db migrate once under a DSN that holds DDL rights (a
Kubernetes Job, an init container, a CI/CD stage), then boot the server with
database.migrations = "verify" under a DSN with no DDL rights at
all. verify still reads all five _sqlx_migrations bookkeeping tables, which
no least-privilege role can do, so point [database] migrate_url at the credential
that prepares the schema. See
Operations.
ferroehr definitions load
ferroehr definitions load person.adls role.adls # store each file, then exit
Stores each file in the definition store, in the order given, before
serve starts. An .opt file is an OPT 1.4 template and an .adls file an
ADL 2 archetype or template, whose parents and slot fillers come before it in
the list. Each file is validated and versioned exactly as the REST upload
(POST /definition/template/adl1.4 or /adl2) would, and the command stops
at the first refusal, naming the file. A file whose id is already stored with
the same text is left alone, so the step runs at every start; one stored
under the same id with other text is refused, because a stored definition
never changes and a changed one takes a new version in its id.
A deployment whose party mapping names templates of its own runs it first, so the mapping finds them when the server boots: as a one-shot compose service, a Helm init container or a setup step. The default demographic definitions, which the default mapping names, need no load: the server stores them as it boots.
ferroehr party-binding refill
ferroehr party-binding refill # rebuild the party binding side table under the configured mapping
Rebuilds the binding side table from the party versions under the configured party mapping and stores the mapping’s digest. Run it with every replica stopped after a mapping change: it refuses while a replica holds a live lease, and refuses a store in which two parties carry one selector value, naming both.
ferroehr party-binding check
ferroehr party-binding check [--admin <PARTY_ID>]... [--admin-key <ISSUER> <KEY>]...
[--migration <COMMITTER_NAME>]...
[--expected <FILE> [--expected-issuer <ISSUER>]]
The pre-flight of a migration to party binding. It reads the party versions under the configured party mapping and writes nothing: the side-table categories are read from a refill inside a transaction that is rolled back, so it runs before any boot fill and beside a running server. It connects with the configured database credentials and runs no migration. Under Docker Compose or Helm it runs in the server’s container (Where the binary runs).
The report is a JSON document on stdout:
issuers: peridentifier_issuer, thePERSONs that carry a binding key;duplicates: every binding key,userNameorexternalIdtwoPERSONs carry, which a fill refuses;inactiveandabandoned: the key-bearingPERSONs whose head is800|inactive|or801|abandoned|;side_table.provisional: the provisionalPERSONs that just-in-time creation created more than[authz.party_binding] provisional_report_afterdays ago (default 30) and that SCIM or an administrator has not completed, by container id and creation time, oldest first, with no name or other personal data;side_table.unadopted: the key-bearingPERSONs that perform no professionalROLE, whichadopthas not reached;side_table.basic_users: every[[authz.party_binding.basic_user]]with thePERSONit binds today, or none;provenance: for each key, the committer of the version that introduced it and who that committer is under the provenance rule;expected: with--expected, every login of the file (one per line) that no livePERSONcarries.
A key passes the provenance rule when the version that introduced it was
committed by a SCIM client, a client whose ACTOR holds or held a
scim_provision grant (its client identifier under its token issuer), by an
administrator, by a declared migration, or by just-in-time creation at a first
login of a persons issuer an [[auth.party]] table binds (a
249|creation| version carrying its description, committed
by the new PERSON itself). A stored version
records no role its committer held, so you name the administrators: by the
id of their PERSON with --admin, or by the identifier_issuer and value
of a key their PERSON carries with --admin-key. --migration declares a
migration by the committer name its versions carry. The report repeats what
you named.
The command exits non-zero, after printing the report, on a duplicate, a
mapped Basic user or expected login with no PERSON, or a key whose committer
fails the provenance rule.
ferroehr party-binding adopt
ferroehr party-binding adopt (--admin <PARTY_ID> | --admin-key <ISSUER> <KEY>)...
[--migration <COMMITTER_NAME>]... <PARTY_ID>...
Gives each listed PERSON a professional ROLE, so a prepared PERSON of
an existing deployment binds: a ROLE of the mapping’s
[authz.party_binding.professional_role] template with the PERSON as
performer, and a new PERSON version listing it in roles. Every
adoption of one run is one demographic CONTRIBUTION, committed by the first
administrator you name (a PARTY_IDENTIFIED committer whose external_ref
is that administrator’s PERSON), and each adopted PERSON gets one access
record through the configured [audit] trail. Adopt the existing persons
before the first SCIM provisioning run: without the ROLE, a userName eq
filter finds no User and the identity provider creates a duplicate.
The command applies the provenance rule of check with the same
--admin, --admin-key and --migration operator input, and refuses the
whole run, naming them, while any listed PERSON’s key was introduced by
another committer. It also refuses a party that is no live key-bearing
PERSON of a mapped template, an inactive or abandoned one, and a store in
which two PERSONs carry one selector value. A PERSON that already
performs the ROLE is reported under already and left alone. The report
is a JSON document on stdout with the CONTRIBUTION and each new ROLE.
ferroehr party-binding grant
ferroehr party-binding grant --issuer <ISSUER> --client-id <CLIENT_ID>
--operation <CODE> [--element <CODE>=<TEXT>]...
Grants an operation of the ferroehr-operations terminology to a client, on
the operator’s authority: an AGENT carrying the client identifier under the
token issuer, unless an ACTOR names the client already, and a ROLE it
performs whose capability grants the operation, with one scope element per
--element. It is the first grant of a new deployment, typically the
scim_provision of the client that provisions the administrators, since no
administrator can log in before their PERSON exists; every later grant is
an administrator’s write through the Demographic API. The commits take the
path a Demographic API write takes, with the server’s own committer: a code
[authz.grants] allowed does not admit, or an element named other than as
the operation reads it, refuses the run. A client that holds the operation
already gets nothing, so the command runs again safely. The report is a JSON
document on stdout naming the AGENT and the new ROLE, or already. The
operations and elements are on
Operational policy.
docker compose exec ferroehr /usr/local/bin/ferroehr party-binding grant \
--issuer https://login.example.org/machines --client-id entra-provisioning \
--operation scim_provision \
--element binding_issuer=urn:example:login --element token_scope=ferroehr/scim
ferroehr access-log …
ferroehr access-log checkpoint # seal the head of the log, print the checkpoint
ferroehr access-log verify [--checkpoint <file>] # verify against the newest or a kept checkpoint
ferroehr access-log export --ehr-id <id> [--output <file>]
ferroehr access-log import --input <file>
The access log’s integrity and transfer, described on the
audit page. checkpoint
and export need the keyring’s OpenPGP key (record.signing.mode = "pgp").
verify prints each finding and exits 1 when the log does not verify, so a
scheduled job can alert on it; pass --checkpoint a checkpoint you kept
outside this system to verify against it. import reads an export another
system wrote, verifies it against its checkpoint and
[audit.access_log] trusted_key_files, and records the import as an entry
of this system’s log.
ferroehr healthcheck
Asks the running server’s GET /health/readiness and exits 0 on 200, 1
otherwise, with the reason on stderr: the container HEALTHCHECK and the
Kubernetes exec-probe fallback. A draining server answers 503, so it reads
unhealthy. The subcommand loads the same configuration as the server (file,
environment, --set) and asks the server.listen port under
server.base_path, on the loopback when the server listens on every
interface. With [server.tls] set it speaks TLS and accepts exactly the leaf in
server.tls.certificate_file, presenting server.tls.healthcheck_identity_file
to a listener that requires a client certificate. It waits three seconds for
the answer.
ferroehr usage-report --print
ferroehr usage-report --print # the start report
ferroehr usage-report --print --event daily # the daily report, with its metrics
Prints the exact JSON body of the usage report this
instance would send now, on one line to stdout, and sends nothing. It loads the
same configuration as the server and connects to the database to read the
instance id and the shared metrics window, writing nothing. Notes go to stderr:
a sample id when the database holds none yet, and a line saying so when the
report is off. --print is required; printing is the only action.
ferroehr report
ferroehr report # writes ferroehr-report-<UTC time>.json here
ferroehr report --output /tmp/report.json # writes to the path you name
ferroehr report --output - # writes the JSON to stdout
Writes one JSON document naming what this deployment runs. Attach it to a complaint, a non-conformity finding or a serious-incident report: it is the “which FerroEHR does this deployment run” answer those start from. It loads the same configuration as the server and must pass the same validation. It reads the databases and writes nothing to them.
| Part | What it holds |
|---|---|
manifest | every part below with its status (included, partial or unavailable) and, for the last two, the reason |
build | version, commit, build date, rustc, the active deployment.spec_profile and the specification versions it selects, the PostgreSQL target, the audit posture, and the manufacturer |
image | named in the manifest only: a running binary cannot read the digest of the image it was started from, so attach docker inspect --format '{{index .RepoDigests 0}}' <image> or the pod’s status.containerStatuses[].imageID |
target | the CPU architecture and operating system the binary was built for, and whether it is a debug build |
features | the optional integrations compiled in (fhir, multimedia) |
openehr_crates | each openehr-* crate the binary links, with its version |
openehr_crates_origin | published in a release build, whose openehr_crates versions are the ones that release published to crates.io; source_tree in any other build, a pre-release included, whose versions are the source tree’s manifests |
licence | the licence summary GET /management/status serves (state, use, licensee, last valid day, what the configured token contributed); never the token |
deployment | the deployment profile, the open gaps and the accepted ones, measured over the databases, or from the configuration alone when they do not answer |
schema | for each database, the highest migration version applied and the highest this build embeds, per schema |
configuration | the effective configuration as config check prints it |
The crate versions on main are a floor below the line on crates.io: the
release that publishes the crates picks the version and writes it into its
checkout before it builds the server, so only a release build can name the
published version. A pre-release publishes no crates, and a build from source
names the version its manifests hold, which may be an older published version
than the code it links. Read openehr_crates_origin before you look a version
up on crates.io.
Nothing in it identifies a person: it reads no clinical, demographic or audit
table. Every secret in the configuration shows ***, every URL shows *** in
place of its user name and password, and a database error quoted as a reason
has each configured database user name and password masked too. A database
that does not answer within 15 seconds leaves the schema part out and names
it unavailable with unreachable: … as the reason.
Zero-config boot and the production checklist
With no file and no environment, the effective configuration is: listener
0.0.0.0:8080 at the ITS-REST base path with Swagger UI, reading bodies up to
64 MiB; the database at the
built-in development DSN with migrations applied at boot; RBAC on; signing on in
digest mode with read-time verification strict; the audit trail on with only
the local store; no caller rate limit; logs in auto format at info; and every
integration off. The one outbound connection on by default is the
usage report, which usage_report.enabled = false
switches off.
One thing that configuration does not do is serve requests.
auth.enabled defaults to true, and authentication enabled with no
mechanism configured is a boot error rather than a running server that refuses
everything: RFC 9110 §11.6.1 requires a 401 challenge to name a scheme
applicable to the resource, and a server with no mechanism has none: it could
only refuse every request while advertising a scheme it does not implement. The
error names the three ways out: add [[auth.basic.users]], add an [auth]
issuer, or set auth.enabled = false for development. So a bare docker run of
the image with no configuration stops at startup with that message, while the
downloadable Compose quickstart boots because it ships a user.
For production, set at least:
database.url: the real DSN, viaFERROEHR__DATABASE__URLfrom a secret or aurl_file-mounted value, never inline in a world-readable file. Leaving the development default in place is warned about loudly at every boot.database.migrations = "verify"with the schema applied out of band, so the serving role needs no DDL rights, plusdatabase.migrate_urlnaming the credential that reads every schema’s migration state at boot. The serving credential cannot.deployment.profile = "production"once the deployment holds real personal data. The server then refuses to start while a separation is open and not accepted by name, instead of running as a sandbox that looks identical.- an authentication mechanism: a Basic user store and/or an
[auth]issuer. telemetry.format = "json"for cluster log collectors.api.corsstaysfalse;api.openapi_uiper posture.api.system_id: this deployment’s own openEHR system identifier. Choose it before the first EHR is created: it is stored with every EHR, audit entry and version identifier, and changing it later never rewrites what is already committed.management.*per posture. A dedicatedmanagement.listenis recommended so the introspection surface is never reachable on the clinical listener, and every endpoint staysoffuntil you name a level for it.- TLS everywhere a transport supports it:
server.tls(or a TLS-terminating ingress), HTTPS for the object store; the audit syslog feed always speaks TLS. - real secrets via the environment or a
*_filesibling, never inline.
Before a deployment holding real patient data goes live, work through the go-live checklist: it turns each item above into something you run and read back, and adds the privacy and audit checks a controller is asked for.
What belongs in a mounted file (versus the environment)
The environment sets an array of tables only by element index
(FERROEHR__AUTH__ISSUER__0__ISSUER), so the issuers, the party
tables and the Basic-auth user store read more clearly from a file.
Genuinely file-shaped material (the PGP signing key, the ATNA and
terminology-server PEMs, a JWKS blob) is referenced by an
in-TOML *_path / *_file key pointing at a mounted path. On Kubernetes the
chart’s config.files map materialises each entry under /etc/ferroehr/,
read-only, from a Secret.
Prefer a *_file sibling over the environment form for any secret in a
container: an environment value is readable through /proc/<pid>/environ and is
inherited by every child process the container spawns.
Everything else is a plain key you can set in the file or override with a
FERROEHR_* variable.
For a worked development example (the server section, CORS, admin, management
and the Basic-auth user store) read the configuration carried inline in the
quickstart docker-compose.yml; see Docker Compose.
Variables outside the server’s namespace
The PostgreSQL init container’s variables are PG_INIT_USER, PG_INIT_PASSWORD
and PG_INIT_DB; they configure the database container, not the server, and
sit outside the server’s reserved FERROEHR_ namespace.
Inside that namespace, a handful of names are deliberately not configuration
keys and pass the strict sweep untouched: FERROEHR_CONFIG (the config-file
pointer), the build-stamp variables, and the Compose parameterization (image tags, host ports,
CPU and memory limits). They keep a single _ by design, which is exactly what
distinguishes them from configuration keys, and why a single-underscore
misspelling of a real key is reported at boot with the uniform spelling it
should have had.
Every configuration key
This page shows the shipped ferroehr.toml template, ferroehr.default.toml. It
holds every key FerroEHR reads, each under its description with its default.
tools/config-reference generates it from the configuration types, so it matches the server you
run.
- The file opens with What you must set: the keys a deployment that holds real data sets. Every other key is optional, and its note says so.
- Each key’s note ends with whether you must set it and why it is a key: infrastructure, trust, or neither for a tuning key with a built-in default.
- Only the keys of What you must set are live lines, so a copy of the file sets nothing else.
- Every other key is a
#?line, showing its default or, for a key with no default or a secret, a placeholder. Remove the#?marker and the space after it, then edit the value, to set it. - A
# [table.<name>]header shows a table you name yourself, with its keys commented out.
Every key can also be set as an environment variable: FERROEHR, then the TOML path with __
between the segments, such as FERROEHR__DATABASE__MAX_CONNECTIONS. The guides under
Configuration reference explain the sections.
# @generated by tools/config-reference from the configuration types. DO NOT EDIT.
# SPDX-FileCopyrightText: Cadasto B.V.
# SPDX-License-Identifier: BUSL-1.1
#
# ferroehr.toml: every key FerroEHR reads, each under its description. Copy
# this file to ferroehr.toml and set the keys the "What you must set" block
# names, which are its only live lines. Every other key is a `#?` line that
# shows its default, or a placeholder where it has none: remove `#? ` and edit
# the value to set it. A line marked `#` under a `# [table.<name>]` header
# shows a table you name yourself.
#
# A duration is a string with its unit ("500ms", "30s", "10min", "12h",
# "7d"), a size a string with an IEC binary unit ("64MiB"). Each key can
# also be set as FERROEHR__<TABLE>__<KEY>, such as
# FERROEHR__DATABASE__MAX_CONNECTIONS; `--set key=value` wins over it.
#
# What you must set
#
# This file lists 738 keys. A deployment that holds real data sets the 10
# below, the only live lines; every other key is optional and runs on the
# built-in default its `#?` line shows, or stays unset where its note says so.
#
# [deployment] profile
# [[auth.issuer]] issuer, kind, audience
# [authz.party_binding.provider] issuer, id
# [api] system_id
# [database] url
# [privacy] subject_namespaces
# [record] subject_index
#
# Each note ends with why the key is in the file: infrastructure (what the
# server needs before it reaches its store), trust (what it trusts, its floors
# and its secrets), or nothing more for a tuning key.
# The declared posture, the openEHR specification set and the licence token.
[deployment]
# The declared posture (`sandbox` | `production`; default `sandbox`).
# `production` refuses to start while a separation it asserts is missing and
# not accepted by name (#3226). Must set (infrastructure).
profile = "sandbox"
# The `DeploymentGap`s a `production` deployment runs without, each stated on
# every boot and on `/management/status`. Ignored under `sandbox`, which
# accepts everything. Optional (infrastructure).
#? accepts = []
# The openEHR specification generation set the server runs (`development` |
# `stable`; default `development`). Optional (infrastructure).
#? spec_profile = "development"
# The commercial licence token file the licensor issued. Optional in every
# respect: an unset, missing, malformed or expired token is logged once at boot
# and the server runs unlicensed, identically in every other way. Optional,
# unset by default (infrastructure).
#? licence_file = ""
# The HTTP listener: the family's section (the listen address, the timeouts,
# the body limit, the overload bound, the drain, TLS, the trusted proxies, the
# caller rate and compression) and the public base URL every public URL derives
# from.
#? [server]
# The socket address the listener binds. Optional (infrastructure).
#? listen = "0.0.0.0:8080"
# The path every route is served under: empty, or starting with `/` and not
# ending with one. Optional (infrastructure).
#? base_path = ""
# How long one request may take before the server answers `408`. Optional
# (infrastructure).
#? request_timeout = "30s"
# How long a client may take to send its first byte once it connected, and each
# HTTP/1.1 request head from that head's first byte; a client still sending its
# head then is disconnected, which bounds a connection that never finishes one.
# Never zero. Optional (infrastructure).
#? header_read_timeout = "30s"
# How long a kept-alive HTTP/1.1 connection may wait for its next request
# before the server closes it. Keep it longer than the idle timeout of the
# clients and proxies in front, so they close an idle connection first. Never
# zero. Optional (infrastructure).
#? idle_timeout = "2min"
# The largest request body the server reads before answering `413`. Optional
# (infrastructure).
#? body_limit = "64MiB"
# How long readiness stays withdrawn before the listener closes, so an
# orchestrator stops sending requests first. Optional (infrastructure).
#? drain_delay = "0s"
# How long the requests in flight may take once the listener closed. Optional
# (infrastructure).
#? shutdown_timeout = "10s"
# How many requests the server serves at once; past it a request is answered
# `503`. Unset, there is no bound. Optional, unset by default (infrastructure).
#? max_concurrent_requests = 0
# How long a refused request is told to wait (`Retry-After`), a whole number of
# seconds, since the header carries delay-seconds (RFC 9110 §10.2.3). Optional
# (infrastructure).
#? retry_after = "1s"
# The reverse proxies whose forwarded client address is believed, each an
# address or a CIDR block; empty, every request is named by its peer. Optional
# (infrastructure).
#? trusted_proxies = []
# The header a trusted proxy names the client in. Optional (infrastructure).
#? forwarded_header = "forwarded"
# Whether a response is compressed with gzip or Brotli when the client accepts
# one. Optional (infrastructure).
#? compression = true
# The smallest response body that is compressed. Optional (infrastructure).
#? compression_min_size = "1KiB"
# The URL clients reach this listener at, through any proxy in front of it:
# `https://cdr.example.com`, or with a path when a proxy serves the server
# under one. Every public URL derives from it, after `server.base_path`: the
# SMART discovery document's `baseUrl` (it, `base_path` and `api.base_path`),
# every SCIM `meta.location` (it, `base_path` and `/scim/v2`) and the URL a
# `DPoP` proof's `htu` is compared with (it, `base_path` and the request path,
# RFC 9449 §4.3). An absolute `http(s)` URL with no userinfo, query or
# fragment; required with `auth.smart.discovery`, `[auth.scim]` or
# `[auth.dpop]`. Optional, unset by default (infrastructure).
#? public_base_url = ""
# The listener's TLS; unset, the listener speaks plain HTTP behind a proxy that
# terminates TLS.
#? [server.tls]
# The certificate chain, the leaf first. Required in its table
# (infrastructure).
#? certificate_file = ""
# The private key of the leaf. Required in its table (infrastructure).
#? key_file = ""
# Whether the listener asks a client certificate. Optional (infrastructure).
#? client_auth = "none"
# The CA bundle a client certificate must chain to; required unless
# `client_auth` is `none`, and refused when it is. Optional, unset by default
# (infrastructure).
#? client_ca_file = ""
# How often the files are read again, never zero; unset, only `SIGHUP` reads
# them again. Optional, unset by default (infrastructure).
#? reload_interval = "500ms"
# The client certificate chain and key, in one PEM, the healthcheck presents to
# a listener that asks one. Optional, unset by default (infrastructure).
#? healthcheck_identity_file = ""
# The oldest TLS version the listener speaks: `"1.3"` unless lowered to
# `"1.2"`. Optional (infrastructure).
#? min_version = "1.3"
# The requests one caller may send; unset, a caller is not limited.
#? [server.caller_rate]
# The requests per second a caller may send once its burst is spent. Required
# in its table (infrastructure).
#? requests_per_second = 0
# The requests a caller may send at once. Required in its table
# (infrastructure).
#? burst = 0
# The console, the request log and the OpenTelemetry export, the family's
# shared section.
#? [telemetry]
# The console rendering. Optional (infrastructure).
#? format = "auto"
# The `tracing` filter directive of the console. Optional (infrastructure).
#? filter = "info,hyper=warn,tower=warn,h2=warn"
# The query parameters whose values the request log may carry; empty, it
# carries none. Optional (infrastructure).
#? logged_query_parameters = []
# The deployment environment, `deployment.environment.name` on the resource,
# such as `production`. Optional, unset by default (infrastructure).
#? environment = ""
# The OTLP collector, when spans and metrics are exported.
#? [telemetry.otlp]
# The collector's OTLP/gRPC endpoint; `https://` speaks TLS. It may carry a
# credential, so it renders masked. Optional (infrastructure).
#? endpoint = ""
# Whether the product's spans are exported. Optional (infrastructure).
#? traces = true
# Whether the metrics are pushed. Optional (infrastructure).
#? metrics = true
# The share of the server's traces that are sampled. Optional (infrastructure).
#? sample_ratio = 1.0
# The TLS to the collector: trust roots beside the platform's, the client
# identity for mutual TLS and the minimum version. The crate reads none of it:
# the product reads the table with `ferrohealth-server`'s `TlsClient` and hands
# the built configuration to `Telemetry::with_tls`. TLS material is refused
# beside an endpoint that is not `https://`.
#? [telemetry.otlp.tls]
# The client certificate chain and its private key, in one PEM. Optional, unset
# by default (infrastructure).
#? client_identity = ""
# A file holding `client_identity`. Optional, unset by default
# (infrastructure).
#? client_identity_file = ""
# A PEM bundle of trust roots beside the platform's. Optional, unset by default
# (infrastructure).
#? trust_roots_file = ""
# The oldest TLS version the client speaks: `"1.3"` unless lowered to `"1.2"`,
# as for the listener. Optional (infrastructure).
#? min_version = "1.3"
# The installation report to `FerroPULSE` (on by default).
#? [usage_report]
# The off switch: `false` sends nothing. Optional (infrastructure).
#? enabled = true
# The collector. Optional (infrastructure).
#? endpoint = "https://report.ferropulse.eu/v1/report"
# The directory the instance id lives in; without one nothing is sent, since
# every restart would count as a new installation. Optional, unset by default
# (infrastructure).
#? state_dir = ""
# How the product is deployed. Optional (infrastructure).
#? deployment = "unknown"
# Authentication: the `ferrohealth-smart` section, whose serialization writes
# every secret as `***`, `[auth.idp]`, `[auth.smart]` and `[auth.scim]`.
#? [auth]
# Whether inbound authentication is on; a product may refuse `false`. Optional
# (trust).
#? enabled = true
# The realm the challenges name; empty for none, which a product replaces with
# its own default. Optional.
#? realm = ""
# The SMART capabilities the discovery document adds, each a capability SMART
# App Launch 2.2.0 or the SMART on openEHR draft defines, or a full URI.
# Optional.
#? capabilities = []
# The scopes the discovery document lists as `scopes_supported`: only scopes
# the product honours, because "the server SHALL support all scopes listed
# here". Optional.
#? scopes_supported = []
# The issuer the discovery document describes; absent for the one eligible
# issuer (`crate::resource::described`). It renders with any userinfo masked.
# Optional, unset by default (trust).
#? described_issuer = ""
# The product's own scope, a full URI or a string starting with `__`; empty for
# none. Optional (trust).
#? product_scope = ""
# The access-token claim naming the patient a caller is bound to
# (`FERROEHR__AUTH__PATIENT_CLAIM`). Optional, unset by default (trust).
#? patient_claim = ""
# The subject namespace the patient claim's ids are issued in
# (`EHR_STATUS.subject.external_ref.namespace`, RM ehr master04 §EHR Status).
# Optional, unset by default (trust).
#? patient_namespace = ""
# The `[auth.issuer]` tables, each issuer with its own settings.
#? [[auth.issuer]]
# The issuer identifier. It renders with any userinfo masked, as `SecretUrl`
# renders itself. Must set (trust).
#? issuer = ""
# Whose tokens the issuer signs; required, with no default. Must set (trust).
#? kind = "persons"
# The preset the profile starts from. Optional (trust).
#? profile = "rfc9068"
# The audiences, of which a token's `aud` must contain one. Must set (trust).
#? audience = []
# The signature algorithms admitted. Optional (trust).
#? algorithms = ["RS256", "RS384", "PS256", "PS384", "ES256", "ES384"]
# The clock skew, at most `300s`. Optional (trust).
#? clock_skew = "1min"
# How long a held key set is used. Optional (trust).
#? jwks_max_age = "10min"
# The shortest time between two reads of the key set. Optional (trust).
#? jwks_refresh_interval = "1min"
# A key set file handed over out of band, in place of the issuer's `jwks_uri`;
# empty for none. Optional (trust).
#? jwks_file = ""
# How long one call to the authorization server may take. Optional (trust).
#? timeout = "10s"
# How the issuer's tokens are checked. Optional (trust).
#? mode = "jwt"
# Whether the issuer's tokens must be bound to a `DPoP` key or a client
# certificate: `none` (the default) or `required` (`crate::sender`). Optional
# (trust).
#? sender_constraint = "none"
# The claims the issuer's roles are read from, each a dotted path; by default
# `roles`, `groups` and `entitlements` (RFC 9068 §2.2.3.1), and none, never
# settable, on a `federation` issuer. Optional, unset by default (trust).
#? role_claims = []
# `ProfileKeys::person_key`. Optional, unset by default (trust).
#? person_key = ""
# `ProfileKeys::tenant_claim`. Optional, unset by default (trust).
#? tenant_claim = ""
# `ProfileKeys::client_claims`. Optional, unset by default (trust).
#? client_claims = []
# `ProfileKeys::impersonation_marker`. Optional, unset by default (trust).
#? impersonation_marker = ""
# `ProfileKeys::expect`. Optional, unset by default (trust).
#? expect = {}
# `ProfileKeys::user_claims`. Optional, unset by default (trust).
#? user_claims = []
# `ProfileKeys::person_equality`. Optional, unset by default (trust).
#? person_equality = []
# `ProfileKeys::unstable_claims`. Optional, unset by default (trust).
#? unstable_claims = []
# `ProfileKeys::onward_preview`. Optional, unset by default (trust).
#? onward_preview = []
# `ProfileKeys::onward_subject_audience`. Optional, unset by default (trust).
#? onward_subject_audience = false
# `ProfileKeys::max_actor_chain`. Optional, unset by default (trust).
#? max_actor_chain = 0
# `ProfileKeys::act_represents_patient`. Optional, unset by default (trust).
#? act_represents_patient = false
# `ProfileKeys::token_types`. Optional, unset by default (trust).
#? token_types = []
# `ProfileKeys::required_claims`. Optional, unset by default (trust).
#? required_claims = []
# `ProfileKeys::adapter`. Optional, unset by default (trust).
#? adapter = ""
# `ProfileKeys::max_onward_lifetime`. Optional, unset by default (trust).
#? max_onward_lifetime = "500ms"
# `ProfileKeys::onward_grant`. Optional, unset by default (trust).
#? onward_grant = "token_exchange"
# `ProfileKeys::onward_indicator`. Optional, unset by default (trust).
#? onward_indicator = "resource"
# `ProfileKeys::onward_parameters`. Optional, unset by default (trust).
#? onward_parameters = {}
# `ProfileKeys::onward_client_id`. Optional, unset by default (trust).
#? onward_client_id = false
# The introspection check, under `mode = "introspection"`.
#? [auth.issuer.introspection]
# The introspection endpoint; empty for the one the issuer's metadata names. It
# renders with its userinfo and its query masked. Optional (trust).
#? endpoint = ""
# The longest an active response is used; `0s` caches nothing. Optional
# (trust).
#? cache_max_age = "1min"
# The most responses held at once. Optional (trust).
#? cache_capacity = 10000
# The client authentication of the introspection call.
#? [auth.issuer.introspection.client]
# The issuer whose metadata names the token endpoint; exclusive with
# `token_endpoint`. It renders with any userinfo masked, as `SecretUrl` renders
# itself. Optional (trust).
#? issuer = ""
# The token endpoint itself; exclusive with `issuer`. It renders with its
# userinfo and its query masked. Optional (trust).
#? token_endpoint = ""
# The client identifier. Optional (trust).
#? client_id = ""
# How the client authenticates. Optional (trust).
#? client_auth = "client_secret_basic"
# The client secret, rendered redacted. Optional, unset by default (trust).
#? client_secret = ""
# The file holding the client secret. Optional, unset by default (trust).
#? client_secret_file = ""
# The PEM file holding the private key of the client assertion under
# `private_key_jwt`, and of the actor assertion of an onward exchange
# (`credentials.onward.actor_assertion`) whatever the client authentication.
# Optional, unset by default (trust).
#? private_key_file = ""
# The `kid` the assertion names; the RFC 7638 thumbprint when empty. Optional
# (trust).
#? kid = ""
# The algorithm the assertion is signed with; when unset, by key type, an EC
# key by its curve (P-256 ES256, P-384 ES384). Optional, unset by default
# (trust).
#? assertion_alg = ""
# The `scope` request parameter; empty for none. Optional (trust).
#? scope = ""
# The RFC 8707 resource indicator; empty for none. Optional (trust).
#? resource = ""
# The `audience` request parameter; empty for none. Optional (trust).
#? audience = ""
# How long before the token expires a new one is fetched. Optional (trust).
#? refresh_margin = "30s"
# How long one call to the authorization server may take. Optional (trust).
#? timeout = "10s"
# The `aud` of a `private_key_jwt` assertion: `token_endpoint` (the default) or
# `issuer`, which needs `issuer` set. Optional (trust).
#? assertion_audience = "token_endpoint"
# The PEM file of the `DPoP` key the tokens are bound to (RFC 9449). Optional,
# unset by default (trust).
#? dpop_key_file = ""
# Whether the tokens are bound to the client certificate (RFC 8705 §3).
# Optional (trust).
#? certificate_bound = false
# The security profile: `oauth2` (the default) or `fapi2`. Optional (trust).
#? security_profile = "oauth2"
# The hosts a FAPI 2.0 mutual-TLS alias may be on (RFC 8705 §5). Optional
# (trust).
#? mtls_alias_hosts = []
# The PEM file of the previous assertion key, published, never signing.
# Optional, unset by default (trust).
#? previous_private_key_file = ""
# How long the previous key stays published; `0s` for as long as it is set.
# Optional (trust).
#? previous_key_overlap = "0s"
# The PEM file of the next assertion key, published and never signing.
# Optional, unset by default (trust).
#? next_private_key_file = ""
# The RFC 9396 `authorization_details` JSON text; empty for none. Optional
# (trust).
#? authorization_details = ""
# The TLS of the token endpoint connection: trust roots beside the platform's,
# the client identity presented over mutual TLS (RFC 8705 §2) and the minimum
# version. The crate reads none of it: a table that names material resolves
# through the product's `TlsBuilder`.
#? [auth.issuer.introspection.client.tls]
# The client certificate chain and its private key, in one PEM. Optional, unset
# by default (trust).
#? client_identity = ""
# A file holding `client_identity`. Optional, unset by default (trust).
#? client_identity_file = ""
# A PEM bundle of trust roots beside the platform's. Optional, unset by default
# (trust).
#? trust_roots_file = ""
# The oldest TLS version the client speaks: `"1.3"` unless lowered to `"1.2"`,
# as for the listener. Optional (trust).
#? min_version = "1.3"
# The client credentials grant whose token authorizes the call.
#? [auth.issuer.introspection.bearer]
# The issuer whose metadata names the token endpoint; exclusive with
# `token_endpoint`. It renders with any userinfo masked, as `SecretUrl` renders
# itself. Optional (trust).
#? issuer = ""
# The token endpoint itself; exclusive with `issuer`. It renders with its
# userinfo and its query masked. Optional (trust).
#? token_endpoint = ""
# The client identifier. Optional (trust).
#? client_id = ""
# How the client authenticates. Optional (trust).
#? client_auth = "client_secret_basic"
# The client secret, rendered redacted. Optional, unset by default (trust).
#? client_secret = ""
# The file holding the client secret. Optional, unset by default (trust).
#? client_secret_file = ""
# The PEM file holding the private key of the client assertion under
# `private_key_jwt`, and of the actor assertion of an onward exchange
# (`credentials.onward.actor_assertion`) whatever the client authentication.
# Optional, unset by default (trust).
#? private_key_file = ""
# The `kid` the assertion names; the RFC 7638 thumbprint when empty. Optional
# (trust).
#? kid = ""
# The algorithm the assertion is signed with; when unset, by key type, an EC
# key by its curve (P-256 ES256, P-384 ES384). Optional, unset by default
# (trust).
#? assertion_alg = ""
# The `scope` request parameter; empty for none. Optional (trust).
#? scope = ""
# The RFC 8707 resource indicator; empty for none. Optional (trust).
#? resource = ""
# The `audience` request parameter; empty for none. Optional (trust).
#? audience = ""
# How long before the token expires a new one is fetched. Optional (trust).
#? refresh_margin = "30s"
# How long one call to the authorization server may take. Optional (trust).
#? timeout = "10s"
# The `aud` of a `private_key_jwt` assertion: `token_endpoint` (the default) or
# `issuer`, which needs `issuer` set. Optional (trust).
#? assertion_audience = "token_endpoint"
# The PEM file of the `DPoP` key the tokens are bound to (RFC 9449). Optional,
# unset by default (trust).
#? dpop_key_file = ""
# Whether the tokens are bound to the client certificate (RFC 8705 §3).
# Optional (trust).
#? certificate_bound = false
# The security profile: `oauth2` (the default) or `fapi2`. Optional (trust).
#? security_profile = "oauth2"
# The hosts a FAPI 2.0 mutual-TLS alias may be on (RFC 8705 §5). Optional
# (trust).
#? mtls_alias_hosts = []
# The PEM file of the previous assertion key, published, never signing.
# Optional, unset by default (trust).
#? previous_private_key_file = ""
# How long the previous key stays published; `0s` for as long as it is set.
# Optional (trust).
#? previous_key_overlap = "0s"
# The PEM file of the next assertion key, published and never signing.
# Optional, unset by default (trust).
#? next_private_key_file = ""
# The RFC 9396 `authorization_details` JSON text; empty for none. Optional
# (trust).
#? authorization_details = ""
# The TLS of the token endpoint connection: trust roots beside the platform's,
# the client identity presented over mutual TLS (RFC 8705 §2) and the minimum
# version. The crate reads none of it: a table that names material resolves
# through the product's `TlsBuilder`.
#? [auth.issuer.introspection.bearer.tls]
# The client certificate chain and its private key, in one PEM. Optional, unset
# by default (trust).
#? client_identity = ""
# A file holding `client_identity`. Optional, unset by default (trust).
#? client_identity_file = ""
# A PEM bundle of trust roots beside the platform's. Optional, unset by default
# (trust).
#? trust_roots_file = ""
# The oldest TLS version the client speaks: `"1.3"` unless lowered to `"1.2"`,
# as for the listener. Optional (trust).
#? min_version = "1.3"
# The assurance level the issuer's tokens carry.
#? [auth.issuer.assurance]
# The claim carrying the authentication context class, a dotted path; `acr` by
# default (OpenID Connect Core 1.0 §2). Optional (trust).
#? claim = "acr"
# The level each claim value the issuer emits stands for; a value the map does
# not name carries none. Optional (trust).
#? levels = {}
# The level a request held to the section must carry; none refuses nothing.
# Optional, unset by default (trust).
#? minimum = "low"
# `ProfileKeys::app_only`.
#? [[auth.issuer.app_only]]
# The claim of `{ claim, value }`. Optional, unset by default (trust).
#? claim = ""
# The value of `{ claim, value }`. Optional, unset by default (trust).
#? value = ""
# The claim of `{ absent_claim }`. Optional, unset by default (trust).
#? absent_claim = ""
# The subjects of `{ subjects }`. Optional, unset by default (trust).
#? subjects = []
# The `{ sub_is_client = true }` form. Optional, unset by default (trust).
#? sub_is_client = false
# The claim of `{ differs_from_iss }`. Optional, unset by default (trust).
#? differs_from_iss = ""
# `ProfileKeys::guest`.
#? [[auth.issuer.guest]]
# The claim of `{ claim, value }`. Optional, unset by default (trust).
#? claim = ""
# The value of `{ claim, value }`. Optional, unset by default (trust).
#? value = ""
# The claim of `{ absent_claim }`. Optional, unset by default (trust).
#? absent_claim = ""
# The subjects of `{ subjects }`. Optional, unset by default (trust).
#? subjects = []
# The `{ sub_is_client = true }` form. Optional, unset by default (trust).
#? sub_is_client = false
# The claim of `{ differs_from_iss }`. Optional, unset by default (trust).
#? differs_from_iss = ""
# `ProfileKeys::representation`.
#? [auth.issuer.representation]
# The claim naming the subject the person represents. Required in its table
# (trust).
#? claim = ""
# The claim carrying the ground of the representation, as asserted. Optional,
# unset by default (trust).
#? ground_claim = ""
# `ProfileKeys::scope_claim`.
#? [auth.issuer.scope_claim]
# The claim. Required in its table (trust).
#? claim = ""
# Its JSON form. Optional (trust).
#? form = "string"
# `ProfileKeys::app_only_scope_claim`.
#? [auth.issuer.app_only_scope_claim]
# The claim. Required in its table (trust).
#? claim = ""
# Its JSON form. Optional (trust).
#? form = "string"
# The `[auth.idp]` table: the vendor adapters a profile may name, each read in
# a build that compiles it in.
#? [auth.idp]
# The Microsoft Graph access of the `idp-entra` adapter (`[auth.idp.entra]`),
# which resolves an Entra ID groups overage.
#? [auth.idp.entra]
# The Microsoft Graph root every URL is built from, `https` without a query or
# a fragment. Optional (infrastructure).
#? base_url = "https://graph.microsoft.com/v1.0"
# The adapter's budget for one call, the token fetch and the Graph round trip
# together; never zero. Optional (infrastructure).
#? timeout = "2s"
# The largest Graph answer read; never zero. Optional (infrastructure).
#? max_response_size = "1MiB"
# The `securityEnabledOnly` parameter of `getMemberObjects`: `false` reads
# every group, administrative unit and directory role, `true` only the security
# groups. Optional (infrastructure).
#? security_enabled_only = false
# The client credentials grant the Graph token is obtained with, under the
# Graph permission the deployment grants.
#? [auth.idp.entra.credentials]
# The issuer whose metadata names the token endpoint; exclusive with
# `token_endpoint`. It renders with any userinfo masked, as `SecretUrl` renders
# itself. Optional (infrastructure).
#? issuer = ""
# The token endpoint itself; exclusive with `issuer`. It renders with its
# userinfo and its query masked. Optional (infrastructure).
#? token_endpoint = ""
# The client identifier. Optional (infrastructure).
#? client_id = ""
# How the client authenticates. Optional (infrastructure).
#? client_auth = "client_secret_basic"
# The client secret, rendered redacted. Optional, unset by default
# (infrastructure).
#? client_secret = ""
# The file holding the client secret. Optional, unset by default
# (infrastructure).
#? client_secret_file = ""
# The PEM file holding the private key of the client assertion under
# `private_key_jwt`, and of the actor assertion of an onward exchange
# (`credentials.onward.actor_assertion`) whatever the client authentication.
# Optional, unset by default (infrastructure).
#? private_key_file = ""
# The `kid` the assertion names; the RFC 7638 thumbprint when empty. Optional
# (infrastructure).
#? kid = ""
# The algorithm the assertion is signed with; when unset, by key type, an EC
# key by its curve (P-256 ES256, P-384 ES384). Optional, unset by default
# (infrastructure).
#? assertion_alg = ""
# The `scope` request parameter; empty for none. Optional (infrastructure).
#? scope = ""
# The RFC 8707 resource indicator; empty for none. Optional (infrastructure).
#? resource = ""
# The `audience` request parameter; empty for none. Optional (infrastructure).
#? audience = ""
# How long before the token expires a new one is fetched. Optional
# (infrastructure).
#? refresh_margin = "30s"
# How long one call to the authorization server may take. Optional
# (infrastructure).
#? timeout = "10s"
# The `aud` of a `private_key_jwt` assertion: `token_endpoint` (the default) or
# `issuer`, which needs `issuer` set. Optional (infrastructure).
#? assertion_audience = "token_endpoint"
# The PEM file of the `DPoP` key the tokens are bound to (RFC 9449). Optional,
# unset by default (infrastructure).
#? dpop_key_file = ""
# Whether the tokens are bound to the client certificate (RFC 8705 §3).
# Optional (infrastructure).
#? certificate_bound = false
# The security profile: `oauth2` (the default) or `fapi2`. Optional
# (infrastructure).
#? security_profile = "oauth2"
# The hosts a FAPI 2.0 mutual-TLS alias may be on (RFC 8705 §5). Optional
# (infrastructure).
#? mtls_alias_hosts = []
# The PEM file of the previous assertion key, published, never signing.
# Optional, unset by default (infrastructure).
#? previous_private_key_file = ""
# How long the previous key stays published; `0s` for as long as it is set.
# Optional (infrastructure).
#? previous_key_overlap = "0s"
# The PEM file of the next assertion key, published and never signing.
# Optional, unset by default (infrastructure).
#? next_private_key_file = ""
# The RFC 9396 `authorization_details` JSON text; empty for none. Optional
# (infrastructure).
#? authorization_details = ""
# The TLS of the token endpoint connection: trust roots beside the platform's,
# the client identity presented over mutual TLS (RFC 8705 §2) and the minimum
# version. The crate reads none of it: a table that names material resolves
# through the product's `TlsBuilder`.
#? [auth.idp.entra.credentials.tls]
# The client certificate chain and its private key, in one PEM. Optional, unset
# by default (infrastructure).
#? client_identity = ""
# A file holding `client_identity`. Optional, unset by default
# (infrastructure).
#? client_identity_file = ""
# A PEM bundle of trust roots beside the platform's. Optional, unset by default
# (infrastructure).
#? trust_roots_file = ""
# The oldest TLS version the client speaks: `"1.3"` unless lowered to `"1.2"`,
# as for the listener. Optional (infrastructure).
#? min_version = "1.3"
# The Basic users of the surface; absent for no Basic.
#? [auth.basic]
# How long a credential that verified is kept, so a repeat request skips the
# key derivation; `5min` by default, `0s` keeps none. Optional.
#? cache_ttl = "5min"
# The users.
#? [[auth.basic.users]]
# The user-id. Optional (trust).
#? user = ""
# The Argon2id PHC string of the password, rendered redacted. Optional, unset
# by default (trust).
#? password_hash = ""
# The file holding that PHC string. Optional, unset by default (trust).
#? password_hash_file = ""
# The `DPoP` proof check of the surface; absent for none, so a `DPoP` request
# is refused as carrying no admitted credential.
#? [auth.dpop]
# How long after its `iat` a proof is accepted, at most `300s`. Optional
# (trust).
#? max_age = "1min"
# How far a proof's `iat` may lie ahead, at most `300s`. Optional (trust).
#? clock_skew = "10s"
# The signature algorithms a proof may use; asymmetric only. Optional (trust).
#? algorithms = ["RS256", "RS384", "PS256", "PS384", "ES256", "ES384"]
# The TLS of the discovery document, the key set and the introspection calls of
# every issuer: trust roots beside the platform's, for an issuer behind a
# private certificate authority, a client identity and the minimum version. The
# crate reads none of it: the product's `TlsBuilder` builds it once at start.
#? [auth.tls]
# The client certificate chain and its private key, in one PEM. Optional, unset
# by default (trust).
#? client_identity = ""
# A file holding `client_identity`. Optional, unset by default (trust).
#? client_identity_file = ""
# A PEM bundle of trust roots beside the platform's. Optional, unset by default
# (trust).
#? trust_roots_file = ""
# The oldest TLS version the client speaks: `"1.3"` unless lowered to `"1.2"`,
# as for the listener. Optional (trust).
#? min_version = "1.3"
# The `[auth.federation]` tables, one per `federation` issuer.
#? [[auth.federation]]
# The `[auth.issuer]` this table describes, of kind `federation`. It renders
# with any userinfo masked, as `SecretUrl` renders itself. Optional (trust).
#? issuer = ""
# Whether the issuer is a MyHealth@EU contact point; required, with no default.
# Optional, unset by default (trust).
#? contact_point = false
# The default sources the table starts from. Optional, unset by default
# (trust).
#? mapping = "iua"
# The sources of each field, over the mapping's. Optional (trust).
#? fields = {}
# The country codes a professional may carry. Optional (trust).
#? countries = []
# The issuing authorities a professional or provider may name. Optional
# (trust).
#? issuing_authorities = []
# The prefixes a healthcare provider identifier must start with. Optional
# (trust).
#? provider_identifier_prefixes = []
# Whether the issuer attests the `authorization_details` it puts in a token,
# which RFC 9396 §12 has "sent through the user agent". Optional (trust).
#? attests_authorization_details = false
# The `authorization_details` type the attributes are read from. Optional,
# unset by default (trust).
#? authorization_details_type = ""
# The `authorization_details` types that state an organisation's access.
# Optional (trust).
#? organisation_types = []
# The claim holding the Verifiable Presentations of a Nuts RFC021 §6
# introspection response, `vps`. Optional, unset by default (trust).
#? presentations_claim = ""
# The credential types the deployment declares user-authenticated. Optional
# (trust).
#? user_credential_types = []
# The fields every token of the issuer must carry, each with a source. Optional
# (trust).
#? required_fields = []
# Whether the issuer's tokens must be sender-constrained, so the issuer fails
# to load without `sender_constraint = "required"`. Optional (trust).
#? requires_sender_constraint = false
# The subject-token issuers whose persons this issuer is trusted to map to its
# own, when it issues onward tokens (`client::onward`). Optional (trust).
#? exchanges_from = []
# The subject-token claim, a dotted path, whose value an onward token of this
# issuer must carry as `professional.hp_identifier`. Optional, unset by default
# (trust).
#? person_mapping = ""
# The `[auth.attributes]` tables, at most one per `persons` issuer: where it
# states its professionals' attributes.
#? [[auth.attributes]]
# The `[auth.issuer]` this table describes, of kind `persons`, `patients` or
# `machines`. It renders with any userinfo masked, as `SecretUrl` renders
# itself. Optional (trust).
#? issuer = ""
# The default sources the table starts from. Optional, unset by default
# (trust).
#? mapping = "iua"
# The sources of each field, over the mapping's. Optional (trust).
#? fields = {}
# Whether the `purpose_of_use` of each RFC 9396 `authorization_details` entry,
# written `system|code`, is read as a purpose of use. Optional (trust).
#? authorization_details_purposes = false
# The `[auth.party]` tables, one per `persons` issuer whose logins are bound to
# a party.
#? [[auth.party]]
# The `persons` issuer whose logins the table binds. It renders with any
# userinfo masked, as `SecretUrl` renders itself. Optional (trust).
#? issuer = ""
# The issuer of the identifiers the key is matched against; no two tables share
# one. Optional (trust).
#? identifier_issuer = ""
# The type of those identifiers, which declares the key's canonical form:
# `guid` or `uuid` is compared in lower case, any other type exactly. Optional
# (trust).
#? identifier_type = ""
# The claim naming the groups the token asserts, an array of strings; empty to
# read no group. Optional (trust).
#? group_claim = ""
# The issuer of the group identifiers the group claim names; set with
# `group_claim`. Optional (trust).
#? group_identifier_issuer = ""
# Whether a guest of the issuer is looked up; a guest is not by default.
# Optional (trust).
#? guests = false
# The SMART App Launch resource-server posture.
#? [auth.smart]
# Serve the `/.well-known/smart-configuration` discovery document (SMART App
# Launch 2.x §Conformance; default `false`). The document is built from the
# metadata of one `[auth]` issuer that serves a user launch: `[auth]
# described_issuer`, else the one issuer that is not of kind `machines` and
# whose metadata is available. Several such issuers and no `described_issuer`,
# or none, refuse the start. master04 §Services makes every
# `services.*.baseUrl` an "Absolute URL to the root of the API (required)", so
# the document needs `[server] public_base_url`. Optional (infrastructure).
#? discovery = false
# The RFC 8414 §2 authorization-server metadata of the `[auth]` issuer it
# names, whose key set is a `jwks_file` and carries none: a JSON document read
# at boot. SMART App Launch 2.2.0, Conformance, §Metadata requires the
# `token_endpoint` it names. Optional, unset by default (infrastructure).
#? issuer_metadata_file = ""
# The SMART platform base URL the discovery document hangs off (master04
# §Service Discovery: the document is served relative to the platform or
# gateway base, not the FHIR base). Unset, the REST root (`/ferroehr/rest`). A
# leading path segment is honoured, e.g. `/gateway/v1` →
# `/gateway/v1/.well-known/smart-configuration`. Optional, unset by default
# (infrastructure).
#? platform_base_url = ""
# Episode context (master09 §Experimental: Episode Context), advertised only:
# `episode_launch = true` adds `context-openehr-episode` to the document's
# capabilities and applies no episode filtering (openEHR has no first-class
# Episode resource; master09 calls the semantics "currently
# implementation-defined"). Optional (infrastructure).
#? episode_launch = false
# The issuers whose `patient/` grants count, each confined to the `ehrId` of
# the token's launch context (master07 §Context Selection: the `ehrId` names
# an EHR of the platform that issued it). Empty, a `patient/` grant grants
# nothing. Each renders with any userinfo masked. Optional (trust).
#? patient_issuers = []
# The SCIM 2.0 service provider and its provisioning clients; absent,
# `/scim/v2/` is not served.
#? [auth.scim]
# The most resources one list response returns (RFC 7643 §5, the
# `ServiceProviderConfig` `filter.maxResults`). Optional.
#? filter_max_results = 100
# The most Users one client deactivates or deletes in one window; past it, a
# deactivation or a deletion is refused with `429`. Optional.
#? max_deactivations = 100
# The length of that window. Optional.
#? deactivation_window = "1h"
# How long after a User's deletion the contacts of every version of its
# `PERSON` are erased (GDPR Art. 17), at most 30 days; `"0s"` erases them in
# the deletion itself. The name, the binding key and the identifiers stay.
# Optional.
#? contact_erasure_delay = "0s"
# The most members one Group holds; an add past it is refused with `400`. Each
# membership change stores every membership of the Group again (RM demographic
# master02 §Versioning Semantics), so the cap bounds a Group's version
# storage. Optional.
#? max_group_members = 5000
# RBAC, assurance, the party binding, the system clients and the grant ceiling.
#? [authz]
# Role-based access control.
#? [authz.rbac]
# Master switch of the coarse role gate, active only when auth is enabled
# (`FERROEHR__AUTHZ__RBAC__ENABLED`, default `true`). Optional (trust).
#? enabled = true
# The role required for Admin-class operations (default `ADMIN`). Optional
# (trust).
#? admin_role = "ADMIN"
# The role marking a principal as read-only (default `READONLY`): a caller
# carrying it is refused on every write operation even when it also holds
# granting roles (a restriction overrides a grant). Supports the conformance
# catalogue's authorization-separation cases. Optional (trust).
#? readonly_role = "READONLY"
# The role that may reach data under an EHDS Art. 8 access restriction in an
# emergency (`FERROEHR__AUTHZ__RBAC__EMERGENCY_ACCESS_ROLE`, default unset).
# Optional, unset by default (trust).
#? emergency_access_role = ""
# The issuers whose role claims may grant `admin_role` and
# `emergency_access_role`, each a `persons` issuer; empty, the default, lets no
# token grant them. Each renders with any userinfo masked. Optional (trust).
#? role_issuers = []
# The Basic user of `[auth.basic.users]` that holds `admin_role` and `[auth]
# product_scope` from this file (`FERROEHR__AUTHZ__RBAC__FIRST_ADMIN`, default
# unset). Optional, unset by default (trust).
#? first_admin = ""
# What an EHR carrying no `ACCESS_CONTROL_SETTINGS` admits (default `open`).
# Optional (trust).
#? ehr_access_default = "open"
# The authentication assurance a patient-data request must carry
# (`[authz.assurance]`, off by default).
#? [authz.assurance]
# The claim carrying the authentication context class, a dotted path; `acr` by
# default (OpenID Connect Core 1.0 §2). Optional (trust).
#? claim = "acr"
# The level each claim value the issuer emits stands for; a value the map does
# not name carries none. Optional (trust).
#? levels = {}
# The level a request held to the section must carry; none refuses nothing.
# Optional, unset by default (trust).
#? minimum = "low"
# The party binding: the provider, the namespace and the Basic users' keys
# (`[authz.party_binding]`).
#? [authz.party_binding]
# The `PARTY_REF.namespace` a bound party is written under, held to the
# `OBJECT_REF.namespace` pattern. Optional.
#? namespace = "demographic"
# The age past which `ferroehr party-binding check` reports a provisional
# `PERSON`. Optional.
#? provisional_report_after = "30d"
# The healthcare provider this deployment acts for, which every access record
# of a bound person and every version a person commits name (EHDS Art. 13(4),
# Annex II 3.2(a)): one provider, or one table per tenant.
#? [authz.party_binding.provider]
# The issuer of the identifier. Must set (trust).
#? issuer = ""
# The identifier. Must set (trust).
#? id = ""
# The key each Basic user is bound by (`[authz.party_binding.basic_user]`).
#? [[authz.party_binding.basic_user]]
# The `[auth.basic.users]` user-id. Optional (trust).
#? user = ""
# The `identifier_issuer` of the `[auth.party]` table the key belongs to.
# Optional (trust).
#? key_issuer = ""
# The binding key the user's `PERSON` carries. Optional (trust).
#? key = ""
# The person templates and attributes of the shared party mapping. Each mapping
# section defaults to FerroEHR's default demographic definitions, which every
# boot stores when no definition of their id is stored (the book's "Default
# demographic definitions" page); a deployment with templates of its own sets
# the section, and stores its templates before boot.
#? [authz.party_binding.person]
# `[authz.party_binding.person.template]`, one per template a professional's
# `PERSON` may use.
#? [[authz.party_binding.person.template]]
# An operational template in the definition store rooted at `PERSON`. Optional.
#? template_id = ""
# Whether SCIM and just-in-time creation create new persons with this template;
# exactly one table sets it. Optional.
#? default = false
# The binding key.
#? [authz.party_binding.person.template.key]
# The openEHR path. Optional.
#? path = ""
# The `DV_IDENTIFIER.type`. Optional.
#? type = ""
# The SCIM `userName`.
#? [authz.party_binding.person.template.user_name]
# The openEHR path. Optional.
#? path = ""
# The `DV_IDENTIFIER.type`. Optional.
#? type = ""
# The SCIM `externalId`.
#? [authz.party_binding.person.template.external_id]
# The openEHR path. Optional.
#? path = ""
# The `DV_IDENTIFIER.type`. Optional.
#? type = ""
# `[authz.party_binding.person.attribute]`, one per mapped value.
#? [[authz.party_binding.person.attribute]]
# A SCIM attribute path, with the RFC 7644 §3.4.2.2 `valuePath` filter form
# (`emails[type eq "work"].value`). Optional, unset by default.
#? scim = ""
# An OpenID Connect Core 1.0 §5.1 claim. Optional, unset by default.
#? oidc = ""
# Whether just-in-time creation writes the value. Optional.
#? jit = false
# Whether this is the name the committer reads; at most one table sets it.
# Optional.
#? name = false
# The path the value goes to, per template id. Optional.
#? path = {}
# The professional `ROLE` template.
#? [authz.party_binding.professional_role]
# An operational template rooted at `ROLE`. Optional.
#? template_id = "openEHR-DEMOGRAPHIC-ROLE.healthcare_professional.v1.0.0"
# The provisioned `GROUP` template.
#? [authz.party_binding.group]
# An operational template rooted at `GROUP`. Optional.
#? template_id = "openEHR-DEMOGRAPHIC-GROUP.care_team.v1.0.0"
# The path of the group's `displayName`, a `DV_TEXT` in `identities`. Optional.
#? display_name = "/identities[id4]/details[id5]/items[id6]"
# The group's `externalId`.
#? [authz.party_binding.group.external_id]
# The openEHR path. Optional.
#? path = "/details[id2]/items[id3]"
# The `DV_IDENTIFIER.type`. Optional.
#? type = "scim_external_id"
# The membership `PARTY_RELATIONSHIP` archetype.
#? [authz.party_binding.membership]
# A `PARTY_RELATIONSHIP` archetype. Optional.
#? archetype_id = "openEHR-DEMOGRAPHIC-PARTY_RELATIONSHIP.membership.v1"
# The patient's `PERSON` template.
#? [authz.party_binding.patient]
# An operational template rooted at `PERSON`: the subject of an EHR and the
# target of a representation. Optional.
#? template_id = "openEHR-DEMOGRAPHIC-PERSON.patient.v1.1.0"
# The path of the `ELEMENT` holding the patient's identifiers, each a
# `DV_IDENTIFIER` in `details` of any type and issuer. Optional.
#? identifier = "/details[id2]/items[id3]"
# The path of the patient's name, a `DV_TEXT` in `identities`. Optional.
#? name = "/identities[id6]/details[id7]/items[id8]"
# How FerroEHR reads each `persons` issuer's tokens when it creates a
# provisional `PERSON` at a first login (`[authz.party_binding.issuer]`).
#? [[authz.party_binding.issuer]]
# The `persons` issuer the table holds for. It renders with any userinfo
# masked. Optional (trust).
#? issuer = ""
# The claim the `userName` is read from; the issuer profile's `person_key` when
# unset. Optional, unset by default (trust).
#? user_name_claim = ""
# The dotted claim path the identity provider an `admit_idp` admission
# condition matches is read from. Optional (trust).
#? idp_claim = "idp"
# The operations the policy grants may grant (`[authz.grants]`).
#? [authz.grants]
# The operations the party store may grant (`FERROEHR__AUTHZ__GRANTS__ALLOWED`,
# comma-separated). Optional (trust).
#? allowed = ["commit_composition"]
# The openEHR REST API: the base path, the system identifier, the `OPTIONS`
# identity, the `OpenAPI` UI, CORS, the clinical body tier and the ADMIN and
# terminology groups.
[api]
# The ITS-REST base path all API routes hang off, from the root of the
# listener. `management.base_path` is set the same way; the two never overlap.
# Optional (infrastructure).
#? base_path = "/ferroehr/rest/openehr/v1"
# Who may read the Swagger UI and the `OpenAPI` documents at the REST root:
# `off` (not mounted), `admin_only`, `private` (any authenticated principal;
# the default) or `public`. The documents list the whole enabled operation
# surface, admin and message groups included, so `public` discloses it to
# anyone who can reach the port. The same vocabulary the management endpoints
# use; the name is the `OpenAPI` Specification's, the document the UI renders.
# Optional (infrastructure).
#? openapi_ui = "private"
# This CDR's own openEHR **system identifier** — the identity the deployment
# stamps into the data it authors (`FERROEHR__API__SYSTEM_ID`). Must set
# (infrastructure).
system_id = "ferroehr.local"
# The largest body the ordinary clinical surface accepts, below the listener's
# `server.body_limit`. Optional, unset by default (infrastructure).
#? body_limit = "512KiB"
# Whether the ADMIN API group is served. Optional (infrastructure).
#? admin = false
# Whether the terminology extension API is mounted. Off by default — the
# routes answer `404` unless enabled. The terminology server the CDR asks is
# `[terminology]`. Optional (infrastructure).
#? terminology = false
# The CORS protocol answers of the API (Fetch Standard §3.2). Absent, no CORS
# header is sent, so a browser on another origin cannot read a response.
#? [api.cors]
# `Access-Control-Allow-Origin`: the origins a browser may read responses for,
# each a serialized origin such as `https://app.example`, or `["*"]` for any
# origin (dev only). Optional (infrastructure).
#? allow_origins = []
# `Access-Control-Allow-Methods`: the methods a preflight admits; empty admits
# the method the preflight asks for. Optional (infrastructure).
#? allow_methods = []
# `Access-Control-Allow-Headers`: the request headers a preflight admits; empty
# admits the headers the preflight asks for. Optional (infrastructure).
#? allow_headers = []
# `Access-Control-Expose-Headers`: the response headers a script may read
# beyond the CORS-safelisted ones. Optional (infrastructure).
#? expose_headers = []
# `Access-Control-Allow-Credentials`: whether a credentialed request's response
# may be read. Refused beside `allow_origins = ["*"]`, which the Fetch Standard
# forbids together. Optional (infrastructure).
#? allow_credentials = false
# `Access-Control-Max-Age`: how long a preflight answer may be cached; unset
# sends no header. Optional, unset by default (infrastructure).
#? max_age = "500ms"
# The `OPTIONS /` System-Options manifest identity (`[api.options]`). Sourced
# from config so the public identity is not a string literal in the handler;
# the live endpoint list is supplied separately by `ferroehr_rest::router`.
# This is the *display* identity of the manifest — the data-authoring
# identity is `Self::system_id`.
#? [api.options]
# `Options.solution` — the product name. Optional.
#? solution = "FerroEHR"
# `Options.vendor` — the organisation providing the solution (ITS-REST
# `specifications/schemas/others/Options.yaml`, a plain string); defaults to
# the manufacturer's name (`crate::manufacturer::MANUFACTURER`). Optional.
#? vendor = "Cadasto B.V."
# The shared `PostgreSQL` DSN, pool tuning, migrations and one table per
# storage domain.
#? [database]
# `PostgreSQL` connection DSN (`postgres://user:pass@host:port/db`).
# Credentials are redacted from every rendering (`SecretUrl`). Must set
# (infrastructure).
#? url = ""
# Path to a file holding the DSN, read at boot in place of `Self::url`.
# Optional, unset by default (infrastructure).
#? url_file = ""
# DSN that schema preparation (`prepare`) authenticates as; unset (the default)
# reuses `Self::url`. Optional, unset by default (infrastructure).
#? migrate_url = ""
# Path to a file holding `Self::migrate_url`, read at boot in place of it —
# the mounted-secret route, as `Self::url_file` is for the clinical DSN.
# Setting both is a boot error. Optional, unset by default (infrastructure).
#? migrate_url_file = ""
# Upper bound of the connection pool. Optional.
#? max_connections = 20
# Connections the pool keeps open when idle (avoids cold reopen + `SET
# search_path` churn under variable load). Optional.
#? min_connections = 2
# How long to wait for a free connection before failing. Optional.
#? acquire_timeout = "30s"
# `statement_timeout` applied to every pooled connection; `"0s"` leaves the
# server default (usually unlimited). Optional.
#? statement_timeout = "1min"
# Whether the server applies its embedded migrations at boot (`MigrationMode`).
# Optional (infrastructure).
#? migrations = "apply"
# The clinical record's own DSN and the credential that prepares its database.
#? [database.clinical]
# This domain's `PostgreSQL` DSN. Unset reuses `[database] url`. Optional,
# unset by default (infrastructure).
#? url = ""
# Path to a file holding `Self::url`, read at boot in place of it — the route
# for a deployment that mounts its database credential as a file rather than
# passing it as an environment value, which is readable through
# `/proc/<pid>/environ` and inherited by every child process. Setting both is a
# boot error. Optional, unset by default (infrastructure).
#? url_file = ""
# The credential that prepares the database this domain lives in when that is
# not the database `[database] migrate_url` reaches. Optional, unset by default
# (infrastructure).
#? migrate_url = ""
# Path to a file holding `Self::migrate_url`, read at boot in place of it.
# Setting both is a boot error. Optional, unset by default (infrastructure).
#? migrate_url_file = ""
# The identities' own DSN and the credential that prepares their database.
#? [database.party]
# This domain's `PostgreSQL` DSN. Unset reuses `[database] url`. Optional,
# unset by default (infrastructure).
#? url = ""
# Path to a file holding `Self::url`, read at boot in place of it — the route
# for a deployment that mounts its database credential as a file rather than
# passing it as an environment value, which is readable through
# `/proc/<pid>/environ` and inherited by every child process. Setting both is a
# boot error. Optional, unset by default (infrastructure).
#? url_file = ""
# The credential that prepares the database this domain lives in when that is
# not the database `[database] migrate_url` reaches. Optional, unset by default
# (infrastructure).
#? migrate_url = ""
# Path to a file holding `Self::migrate_url`, read at boot in place of it.
# Setting both is a boot error. Optional, unset by default (infrastructure).
#? migrate_url_file = ""
# The audit repository's own DSN and the credential that prepares its database.
#? [database.audit]
# This domain's `PostgreSQL` DSN. Unset reuses `[database] url`. Optional,
# unset by default (infrastructure).
#? url = ""
# Path to a file holding `Self::url`, read at boot in place of it — the route
# for a deployment that mounts its database credential as a file rather than
# passing it as an environment value, which is readable through
# `/proc/<pid>/environ` and inherited by every child process. Setting both is a
# boot error. Optional, unset by default (infrastructure).
#? url_file = ""
# The credential that prepares the database this domain lives in when that is
# not the database `[database] migrate_url` reaches. Optional, unset by default
# (infrastructure).
#? migrate_url = ""
# Path to a file holding `Self::migrate_url`, read at boot in place of it.
# Setting both is a boot error. Optional, unset by default (infrastructure).
#? migrate_url_file = ""
# The management/observability surface.
#? [management]
# Master switch. When `false`, no management routes are mounted at all.
# Optional (infrastructure).
#? enabled = false
# The base path the management endpoints hang off. Optional (infrastructure).
#? base_path = "/management"
# When set, the management surface is served from its **own** listener on this
# socket address (a separate axum server task in the binary) instead of the
# main API listener — so production can keep it off the public listener
# entirely. The same form as `server.listen`. Optional, unset by default
# (infrastructure).
#? listen = ""
# Span-timing capture: every span's folded stacks are written to this file, for
# `inferno-flamegraph` to render offline. Unset, nothing is captured. Optional,
# unset by default (infrastructure).
#? flame_file = ""
# Per-endpoint access levels — the SINGLE authority for this surface.
#? [management.endpoints]
# `/management/info`. Optional (infrastructure).
#? info = "off"
# `/management/metrics` (+ `/{name}`) — the JSON registry view. Optional
# (infrastructure).
#? metrics = "off"
# `/management/prometheus` — the text exposition scraped by Prometheus.
# Optional (infrastructure).
#? prometheus = "off"
# `/management/env` — the redacted effective configuration. Optional
# (infrastructure).
#? env = "off"
# `/management/loggers` — the runtime `EnvFilter` control. Optional
# (infrastructure).
#? loggers = "off"
# `/management/flamegraph` — the on-demand CPU flamegraph (pprof sampling).
# Optional (infrastructure).
#? flamegraph = "off"
# `/management/health` — every readiness indicator with its detail. Optional
# (infrastructure).
#? health = "off"
# `/management/status` — the status document with the licence, the deployment
# posture and the support period. Optional (infrastructure).
#? status = "off"
# Limits for the on-demand CPU profiler (`endpoints.flamegraph`).
#? [management.profiling]
# The longest sample window a single request may ask for, in whole seconds.
# Optional.
#? max_duration = "30s"
# The highest sampling frequency a request may ask for, in Hz. Optional.
#? max_frequency = 999
# The IHE ATNA audit trail / System Log (local Audit Record Repository + the
# syslog and FHIR-feed forwarding sinks).
#? [audit]
# Master switch (`FERROEHR__AUDIT__ENABLED`). **On by default** — every
# deployment gets a queryable audit trail with zero external dependencies (the
# sinks decide where records go). Optional (infrastructure).
#? enabled = true
# Enterprise/site id → `AuditEnterpriseSiteID`
# (`FERROEHR__AUDIT__ENTERPRISE_SITE_ID`). Optional, unset by default
# (infrastructure).
#? enterprise_site_id = ""
# Audit source id → `AuditSourceID` and the destination participant
# (`FERROEHR__AUDIT__SOURCE_ID`). Optional (infrastructure).
#? source_id = "ferroehr"
# Fill value for empty mandatory fields (`FERROEHR__AUDIT__VALUE_IF_MISSING`).
# Optional.
#? value_if_missing = "UNKNOWN"
# Skip successful-login records (`FERROEHR__AUDIT__SUPPRESS_LOGIN_EVENTS`).
# Rejected accesses (401/403) are always recorded. Optional.
#? suppress_login_events = true
# Failure mode (`FERROEHR__AUDIT__FAIL_MODE`): `open` | `closed`. Optional
# (trust).
#? fail_mode = "open"
# Enrich the patient participant via a background indexed lookup of
# `ehr.subject_id` (`FERROEHR__AUDIT__RESOLVE_SUBJECT`). On by default — the
# IHE BALP `Patient*` patterns and the patient-centric audit search need the
# subject; the lookup runs only on the background drain. Optional.
#? resolve_subject = true
# Bounded audit queue capacity (`FERROEHR__AUDIT__QUEUE_CAPACITY`). Sized for
# write-path bursts: the drain persists in multi-row batches, so the queue only
# needs to ride out sink latency spikes, but a loaded write path can enqueue
# thousands per second. Optional.
#? queue_capacity = 8192
# This node's advertised network address → the destination
# network-access-point (`FERROEHR__AUDIT__SERVER_HOST`); the `value_if_missing`
# fill when unset. Optional, unset by default (infrastructure).
#? server_host = ""
# The request header carrying the caller's declared purpose of use
# (`FERROEHR__AUDIT__PURPOSE_HEADER`), recorded on every access record.
# Optional.
#? purpose_header = "x-purpose-of-use"
# The request header carrying the data permit the caller acts under
# (`FERROEHR__AUDIT__PERMIT_HEADER`), recorded on every access record.
# Optional.
#? permit_header = "x-data-permit"
# The purpose codes this deployment accepts (`FERROEHR__AUDIT__PURPOSE_CODES`).
# Optional.
#? purpose_codes = []
# The declared purpose codes that mark an access as an emergency access
# (`FERROEHR__AUDIT__EMERGENCY_PURPOSE_CODES`). Empty (the default) marks
# nothing. Optional (trust).
#? emergency_purpose_codes = []
# The legal basis this deployment processes under
# (`FERROEHR__AUDIT__LEGAL_BASIS`), recorded on every access record. Optional,
# unset by default (infrastructure).
#? legal_basis = ""
# The local Audit Record Repository.
#? [audit.store]
# Persist every record locally (`FERROEHR__AUDIT__STORE__ENABLED`). **On by
# default** (owner posture: compliance out of the box). Optional
# (infrastructure).
#? enabled = true
# How long records are kept, a calendar period (`"P5Y"`, `"P1830D"`); unset
# keeps them forever (`FERROEHR__AUDIT__STORE__RETENTION`). Applied hourly by
# the retention reaper. Optional, unset by default (infrastructure).
#? retention = "P5Y"
# Whether this deployment is one of the controllers SGB V § 307 names for a
# German telematics-infrastructure application
# (`FERROEHR__AUDIT__STORE__SGB_V_309_CONTROLLER`). **Off by default.**
# Optional (infrastructure).
#? sgb_v_309_controller = false
# The time between two scheduled verifications of the store's hash chain
# (`FERROEHR__AUDIT__STORE__VERIFY_INTERVAL`); `"0s"` turns the schedule off.
# Default one hour. Optional.
#? verify_interval = "1h"
# The time between two scheduled full passes over the hash chain
# (`FERROEHR__AUDIT__STORE__FULL_VERIFY_INTERVAL`), which also recompute the
# records before the checkpoint; `"0s"` leaves the full pass to `SELECT * FROM
# audit.verify_audit_chain()` on demand. Default one week. A run that found
# damage is always followed by a full pass. Optional.
#? full_verify_interval = "7d"
# The classic DICOM-over-syslog feed; absent, off.
#? [audit.syslog]
# The Audit Record Repository, `tls://host:port`
# (`FERROEHR__AUDIT__SYSLOG__URL`): RFC 5425 TLS, on the §4.1 port 6514 by
# default. Optional (infrastructure).
#? url = "tls://localhost:6514"
# The directory of the `ihe-atna` spool every record is stored in before it is
# sent (`FERROEHR__AUDIT__SYSLOG__SPOOL_DIR`), owner-only; unset, the spool is
# held in memory and a restart loses what it holds. Optional, unset by default
# (infrastructure).
#? spool_dir = ""
# The most records the spool holds
# (`FERROEHR__AUDIT__SYSLOG__SPOOL_MAX_EVENTS`). Optional.
#? spool_max_events = 100000
# The most the spool holds in size (`FERROEHR__AUDIT__SYSLOG__SPOOL_MAX_SIZE`).
# Optional.
#? spool_max_size = "256MiB"
# The TLS material of the connection to the ARR (`[audit.syslog.tls]`): the
# family's outbound TLS keys, the client identity for mutual TLS and the trust
# roots beside the platform's.
#? [audit.syslog.tls]
# The client certificate chain and its private key, in one PEM. Optional, unset
# by default (infrastructure).
#? client_identity = ""
# A file holding `client_identity`. Optional, unset by default
# (infrastructure).
#? client_identity_file = ""
# A PEM bundle of trust roots beside the platform's. Optional, unset by default
# (infrastructure).
#? trust_roots_file = ""
# The oldest TLS version the client speaks: `"1.3"` unless lowered to `"1.2"`,
# as for the listener. Optional (infrastructure).
#? min_version = "1.3"
# The wait between two delivery attempts.
#? [audit.syslog.retry]
# The longest wait between two delivery attempts after a failure. Optional.
#? max_backoff = "1min"
# The RESTful-ATNA FHIR `AuditEvent` feed; absent, off.
#? [audit.fhir_feed]
# How long the forwarder waits for a new record before it reads the store again
# (`FERROEHR__AUDIT__FHIR_FEED__POLL_INTERVAL`); at least 100 ms is waited.
# Optional.
#? poll_interval = "2s"
# `[audit.fhir_feed.endpoint]`, the family's outbound endpoint: the ARR's FHIR
# base URL (`url`; the `AuditEvent` endpoint is `{url}/AuditEvent`), the
# timeout of one `POST`, the `retry` of a delivery, the TLS and the credential,
# such as the OAuth 2.0 client credentials grant of the IHE IUA authorized
# client. Credentials in the URL are masked in every rendering.
#? [audit.fhir_feed.endpoint]
# The service's URL (RFC 3986); required. It renders with its userinfo and its
# query masked, in `Debug` and when serialized. Optional (infrastructure).
#? url = ""
# How long one whole call may take; never zero. Optional (infrastructure).
#? timeout = "10s"
# How long opening the connection may take; unset, only `timeout` bounds it.
# Optional, unset by default (infrastructure).
#? connect_timeout = "500ms"
# How a failed call is tried again.
#? [audit.fhir_feed.endpoint.retry]
# How many times one call is tried in all; 1 tries once. Optional
# (infrastructure).
#? max_attempts = 3
# The wait before the second try. Optional (infrastructure).
#? initial_backoff = "200ms"
# The longest wait between two tries. Optional (infrastructure).
#? max_backoff = "1min"
# The TLS of the connection, built by the product's reader of TLS material.
#? [audit.fhir_feed.endpoint.tls]
# The client certificate chain and its private key, in one PEM. Optional, unset
# by default (infrastructure).
#? client_identity = ""
# A file holding `client_identity`. Optional, unset by default
# (infrastructure).
#? client_identity_file = ""
# A PEM bundle of trust roots beside the platform's. Optional, unset by default
# (infrastructure).
#? trust_roots_file = ""
# The oldest TLS version the client speaks: `"1.3"` unless lowered to `"1.2"`,
# as for the listener. Optional (infrastructure).
#? min_version = "1.3"
# The credential the calls carry: HTTP Basic or the client credentials grant.
#? [audit.fhir_feed.endpoint.credentials]
# The Basic user-id. Optional (infrastructure).
#? user = ""
# The Basic password, rendered redacted. Optional, unset by default
# (infrastructure).
#? password = ""
# The file holding the Basic password. Optional, unset by default
# (infrastructure).
#? password_file = ""
# The client credentials grant.
#? [audit.fhir_feed.endpoint.credentials.oauth]
# The issuer whose metadata names the token endpoint; exclusive with
# `token_endpoint`. It renders with any userinfo masked, as `SecretUrl` renders
# itself. Optional (infrastructure).
#? issuer = ""
# The token endpoint itself; exclusive with `issuer`. It renders with its
# userinfo and its query masked. Optional (infrastructure).
#? token_endpoint = ""
# The client identifier. Optional (infrastructure).
#? client_id = ""
# How the client authenticates. Optional (infrastructure).
#? client_auth = "client_secret_basic"
# The client secret, rendered redacted. Optional, unset by default
# (infrastructure).
#? client_secret = ""
# The file holding the client secret. Optional, unset by default
# (infrastructure).
#? client_secret_file = ""
# The PEM file holding the private key of the client assertion under
# `private_key_jwt`, and of the actor assertion of an onward exchange
# (`credentials.onward.actor_assertion`) whatever the client authentication.
# Optional, unset by default (infrastructure).
#? private_key_file = ""
# The `kid` the assertion names; the RFC 7638 thumbprint when empty. Optional
# (infrastructure).
#? kid = ""
# The algorithm the assertion is signed with; when unset, by key type, an EC
# key by its curve (P-256 ES256, P-384 ES384). Optional, unset by default
# (infrastructure).
#? assertion_alg = ""
# The `scope` request parameter; empty for none. Optional (infrastructure).
#? scope = ""
# The RFC 8707 resource indicator; empty for none. Optional (infrastructure).
#? resource = ""
# The `audience` request parameter; empty for none. Optional (infrastructure).
#? audience = ""
# How long before the token expires a new one is fetched. Optional
# (infrastructure).
#? refresh_margin = "30s"
# How long one call to the authorization server may take. Optional
# (infrastructure).
#? timeout = "10s"
# The `aud` of a `private_key_jwt` assertion: `token_endpoint` (the default) or
# `issuer`, which needs `issuer` set. Optional (infrastructure).
#? assertion_audience = "token_endpoint"
# The PEM file of the `DPoP` key the tokens are bound to (RFC 9449). Optional,
# unset by default (infrastructure).
#? dpop_key_file = ""
# Whether the tokens are bound to the client certificate (RFC 8705 §3).
# Optional (infrastructure).
#? certificate_bound = false
# The security profile: `oauth2` (the default) or `fapi2`. Optional
# (infrastructure).
#? security_profile = "oauth2"
# The hosts a FAPI 2.0 mutual-TLS alias may be on (RFC 8705 §5). Optional
# (infrastructure).
#? mtls_alias_hosts = []
# The PEM file of the previous assertion key, published, never signing.
# Optional, unset by default (infrastructure).
#? previous_private_key_file = ""
# How long the previous key stays published; `0s` for as long as it is set.
# Optional (infrastructure).
#? previous_key_overlap = "0s"
# The PEM file of the next assertion key, published and never signing.
# Optional, unset by default (infrastructure).
#? next_private_key_file = ""
# The RFC 9396 `authorization_details` JSON text; empty for none. Optional
# (infrastructure).
#? authorization_details = ""
# The TLS of the token endpoint connection: trust roots beside the platform's,
# the client identity presented over mutual TLS (RFC 8705 §2) and the minimum
# version. The crate reads none of it: a table that names material resolves
# through the product's `TlsBuilder`.
#? [audit.fhir_feed.endpoint.credentials.oauth.tls]
# The client certificate chain and its private key, in one PEM. Optional, unset
# by default (infrastructure).
#? client_identity = ""
# A file holding `client_identity`. Optional, unset by default
# (infrastructure).
#? client_identity_file = ""
# A PEM bundle of trust roots beside the platform's. Optional, unset by default
# (infrastructure).
#? trust_roots_file = ""
# The oldest TLS version the client speaks: `"1.3"` unless lowered to `"1.2"`,
# as for the listener. Optional (infrastructure).
#? min_version = "1.3"
# The onward target the lane reaches on a caller's behalf, authenticating with
# `oauth`.
#? [audit.fhir_feed.endpoint.credentials.onward]
# The identifier of the issuer of the onward tokens, whose metadata names its
# token endpoint unless `token_endpoint` is set. It renders with any userinfo
# masked, as `SecretUrl` renders itself. Optional (infrastructure).
#? issuer = ""
# Whose tokens the issuer signs: `persons` (a delegated exchange), `patients`
# (a patient's own token) or `federation`; required, with no default. Optional,
# unset by default (infrastructure).
#? kind = "persons"
# The preset the issuer's profile starts from. Optional (infrastructure).
#? profile = "rfc9068"
# The token endpoint itself; empty to discover it from `issuer`. It renders
# with its userinfo and its query masked. Optional (infrastructure).
#? token_endpoint = ""
# The client id at this issuer; empty for the lane's own. Optional
# (infrastructure).
#? client_id = ""
# The audiences an onward token may name, at least one. Optional
# (infrastructure).
#? audiences = []
# The `resource` or `audience` values the request names, as the profile's
# `onward_indicator` says. Optional (infrastructure).
#? indicators = []
# The `scope` the request names; empty for none. Optional (infrastructure).
#? scope = ""
# The claim a chained federation route carries from the subject token to the
# onward token; empty for none. Optional (infrastructure).
#? correlation_claim = ""
# Whether the lane holds the tokens it obtains until they near their `exp`.
# `false` exchanges a token at the issuer on every call, a setting for a
# performance measurement's self-test, never for production. `true` by default.
# Optional (infrastructure).
#? cache = true
# Whether every token exchange sent without an actor token names the lane's
# client as its actor with an assertion signed by the current key of its
# `oauth` table's key ring (RFC 8693 §2.1; `Onward::with_actor_assertion`).
# `false` by default. Optional (infrastructure).
#? actor_assertion = false
# The profile keys set over the preset; `max_onward_lifetime` is required, here
# or in the preset.
#? [audit.fhir_feed.endpoint.credentials.onward.keys]
# `Profile::person_key`. Optional, unset by default (infrastructure).
#? person_key = ""
# `Profile::tenant_claim`. Optional, unset by default (infrastructure).
#? tenant_claim = ""
# `Profile::client_claims`. Optional, unset by default (infrastructure).
#? client_claims = []
# `Profile::impersonation_marker`. Optional, unset by default (infrastructure).
#? impersonation_marker = ""
# `Profile::expect`. Optional, unset by default (infrastructure).
#? expect = {}
# `Profile::user_claims`. Optional, unset by default (infrastructure).
#? user_claims = []
# `Profile::person_equality`. Optional, unset by default (infrastructure).
#? person_equality = []
# `Profile::unstable_claims`. Optional, unset by default (infrastructure).
#? unstable_claims = []
# `Profile::first_party_clients`. Optional, unset by default (infrastructure).
#? first_party_clients = []
# `Profile::max_actor_chain`. Optional, unset by default (infrastructure).
#? max_actor_chain = 0
# `Profile::act_represents_patient`. Optional, unset by default
# (infrastructure).
#? act_represents_patient = false
# `Profile::token_types`. Optional, unset by default (infrastructure).
#? token_types = []
# `Profile::required_claims`. Optional, unset by default (infrastructure).
#? required_claims = []
# `Profile::adapter`. Optional, unset by default (infrastructure).
#? adapter = ""
# `Profile::max_onward_lifetime`, a duration such as `"10min"`. Optional, unset
# by default (infrastructure).
#? max_onward_lifetime = "500ms"
# `Profile::onward_grant`. Optional, unset by default (infrastructure).
#? onward_grant = "token_exchange"
# `Profile::onward_indicator`. Optional, unset by default (infrastructure).
#? onward_indicator = "resource"
# `Profile::onward_parameters`. Optional, unset by default (infrastructure).
#? onward_parameters = {}
# `Profile::onward_client_id`. Optional, unset by default (infrastructure).
#? onward_client_id = false
# `Profile::onward_subject_audience`. Optional, unset by default
# (infrastructure).
#? onward_subject_audience = false
# `Profile::onward_preview`. Optional, unset by default (infrastructure).
#? onward_preview = []
# `Profile::app_only`.
#? [[audit.fhir_feed.endpoint.credentials.onward.keys.app_only]]
# The claim of `{ claim, value }`. Optional, unset by default (infrastructure).
#? claim = ""
# The value of `{ claim, value }`. Optional, unset by default (infrastructure).
#? value = ""
# The claim of `{ absent_claim }`. Optional, unset by default (infrastructure).
#? absent_claim = ""
# The subjects of `{ subjects }`. Optional, unset by default (infrastructure).
#? subjects = []
# The `{ sub_is_client = true }` form. Optional, unset by default
# (infrastructure).
#? sub_is_client = false
# The claim of `{ differs_from_iss }`. Optional, unset by default
# (infrastructure).
#? differs_from_iss = ""
# `Profile::guest`.
#? [[audit.fhir_feed.endpoint.credentials.onward.keys.guest]]
# The claim of `{ claim, value }`. Optional, unset by default (infrastructure).
#? claim = ""
# The value of `{ claim, value }`. Optional, unset by default (infrastructure).
#? value = ""
# The claim of `{ absent_claim }`. Optional, unset by default (infrastructure).
#? absent_claim = ""
# The subjects of `{ subjects }`. Optional, unset by default (infrastructure).
#? subjects = []
# The `{ sub_is_client = true }` form. Optional, unset by default
# (infrastructure).
#? sub_is_client = false
# The claim of `{ differs_from_iss }`. Optional, unset by default
# (infrastructure).
#? differs_from_iss = ""
# `Profile::delegates`.
#? [[audit.fhir_feed.endpoint.credentials.onward.keys.delegates]]
# The actor's issuer. Optional, unset by default (infrastructure).
#? issuer = ""
# The actor's `sub`. Optional, unset by default (infrastructure).
#? sub = ""
# The client. Optional, unset by default (infrastructure).
#? client = ""
# `Profile::representation`.
#? [audit.fhir_feed.endpoint.credentials.onward.keys.representation]
# The claim naming the subject the person represents. Required in its table
# (infrastructure).
#? claim = ""
# The claim carrying the ground of the representation, as asserted. Optional,
# unset by default (infrastructure).
#? ground_claim = ""
# `Profile::scope_claim`.
#? [audit.fhir_feed.endpoint.credentials.onward.keys.scope_claim]
# The claim. Required in its table (infrastructure).
#? claim = ""
# Its JSON form. Optional (infrastructure).
#? form = "string"
# `Profile::app_only_scope_claim`.
#? [audit.fhir_feed.endpoint.credentials.onward.keys.app_only_scope_claim]
# The claim. Required in its table (infrastructure).
#? claim = ""
# Its JSON form. Optional (infrastructure).
#? form = "string"
# What a `federation` issuer asserts, over its preset's defaults;
# `exchanges_from` and `person_mapping` are required.
#? [audit.fhir_feed.endpoint.credentials.onward.federation]
# The `[auth.issuer]` this table describes, of kind `federation`. It renders
# with any userinfo masked, as `SecretUrl` renders itself. Optional
# (infrastructure).
#? issuer = ""
# Whether the issuer is a MyHealth@EU contact point; required, with no default.
# Optional, unset by default (infrastructure).
#? contact_point = false
# The default sources the table starts from. Optional, unset by default
# (infrastructure).
#? mapping = "iua"
# The sources of each field, over the mapping's. Optional (infrastructure).
#? fields = {}
# The country codes a professional may carry. Optional (infrastructure).
#? countries = []
# The issuing authorities a professional or provider may name. Optional
# (infrastructure).
#? issuing_authorities = []
# The prefixes a healthcare provider identifier must start with. Optional
# (infrastructure).
#? provider_identifier_prefixes = []
# Whether the issuer attests the `authorization_details` it puts in a token,
# which RFC 9396 §12 has "sent through the user agent". Optional
# (infrastructure).
#? attests_authorization_details = false
# The `authorization_details` type the attributes are read from. Optional,
# unset by default (infrastructure).
#? authorization_details_type = ""
# The `authorization_details` types that state an organisation's access.
# Optional (infrastructure).
#? organisation_types = []
# The claim holding the Verifiable Presentations of a Nuts RFC021 §6
# introspection response, `vps`. Optional, unset by default (infrastructure).
#? presentations_claim = ""
# The credential types the deployment declares user-authenticated. Optional
# (infrastructure).
#? user_credential_types = []
# The fields every token of the issuer must carry, each with a source. Optional
# (infrastructure).
#? required_fields = []
# Whether the issuer's tokens must be sender-constrained, so the issuer fails
# to load without `sender_constraint = "required"`. Optional (infrastructure).
#? requires_sender_constraint = false
# The subject-token issuers whose persons this issuer is trusted to map to its
# own, when it issues onward tokens (`client::onward`). Optional
# (infrastructure).
#? exchanges_from = []
# The subject-token claim, a dotted path, whose value an onward token of this
# issuer must carry as `professional.hp_identifier`. Optional, unset by default
# (infrastructure).
#? person_mapping = ""
# The assurance level the issuer's tokens carry.
#? [audit.fhir_feed.endpoint.credentials.onward.assurance]
# The claim carrying the authentication context class, a dotted path; `acr` by
# default (OpenID Connect Core 1.0 §2). Optional (infrastructure).
#? claim = "acr"
# The level each claim value the issuer emits stands for; a value the map does
# not name carries none. Optional (infrastructure).
#? levels = {}
# The level a request held to the section must carry; none refuses nothing.
# Optional, unset by default (infrastructure).
#? minimum = "low"
# The systems whose exported access logs are imported.
#? [audit.access_log]
# Armored `OpenPGP` public certificates of the systems whose exported logs this
# deployment imports (`FERROEHR__AUDIT__ACCESS_LOG__TRUSTED_KEY_FILES`). An
# import verifies the checkpoint against these and the keyring's own key, and
# is refused when none signed it. Optional (trust).
#? trusted_key_files = []
# The data-minimisation policy: the subject namespaces, the identifier scan and
# protection, the cohort query and the access delay.
[privacy]
# The namespaces an `EHR_STATUS.subject.external_ref` may name
# (`FERROEHR__PRIVACY__SUBJECT_NAMESPACES`, comma-separated in the environment)
# — the pseudonymisation domains this deployment issues subject pseudonyms
# in. Must set (trust).
subject_namespaces = []
# Accept `PARTY_IDENTIFIED` / `PARTY_RELATED` carrying `name` or `identifiers`
# in clinical content (`FERROEHR__PRIVACY__ALLOW_IDENTIFIED_PARTIES_IN_EHR`).
# Optional (trust).
#? allow_identified_parties_in_ehr = false
# The identifier scanner.
#? [privacy.identifier_scan]
# `strict` (refuse) or `warn` (accept and record)
# (`FERROEHR__PRIVACY__IDENTIFIER_SCAN__MODE`). Optional (trust).
#? mode = "strict"
# The national personal-identifier rules this deployment scans for, by rule key
# (`FERROEHR__PRIVACY__IDENTIFIER_SCAN__RULES`, comma-separated in the
# environment). An unknown key is a boot error naming it. Optional (trust).
#? rules = ["ch-ahvn13", "ch-epd-pid", "de-kvnr", "fi-hetu", "gb-nhs-number", "nl-bsn", "no-fodselsnummer", "se-personnummer"]
# Extra identifier patterns this deployment refuses, as Rust regular
# expressions (`FERROEHR__PRIVACY__IDENTIFIER_SCAN__PATTERNS`, comma-separated
# in the environment). Optional (trust).
#? patterns = []
# The national-identifier protection of the demographic domain; absent, off.
#? [privacy.identifier_protection]
# The scheme codes to protect
# (`FERROEHR__PRIVACY__IDENTIFIER_PROTECTION__SCHEMES`). Optional (trust).
#? schemes = ["nl-bsn"]
# The root key, 64 hex characters
# (`FERROEHR__PRIVACY__IDENTIFIER_PROTECTION__KEY`), or its `key_file` sibling.
# Optional, unset by default (trust).
#? key = ""
# A file holding the root key, read at boot
# (`FERROEHR__PRIVACY__IDENTIFIER_PROTECTION__KEY_FILE`). Optional, unset by
# default (trust).
#? key_file = ""
# The cross-domain cohort-query allow-list and limits.
#? [privacy.cohort]
# The distinct-EHR floor a result set must reach to be served
# (`FERROEHR__PRIVACY__COHORT__SMALL_CELL_THRESHOLD`); `0` disables
# suppression. Optional (trust).
#? small_cell_threshold = 5
# The largest cohort a predicate may select
# (`FERROEHR__PRIVACY__COHORT__MAX_COHORT_SIZE`). Optional (trust).
#? max_cohort_size = 100000
# Whether a cohort may name its subjects by identifier
# (`FERROEHR__PRIVACY__COHORT__SUBJECTS`), each resolved through the installed
# EHR index provider. The one cohort form an IHE patient identity source
# serves, so it turns the surface on without a bound predicate. Optional
# (trust).
#? subjects = false
# The bound predicates, keyed by the name a caller uses
# (`[privacy.cohort.predicates]`). Empty — the default — leaves the
# predicate half of the surface off.
# [privacy.cohort.predicates.<name>]
# The archetype HRID of the nearest archetyped ancestor of the ELEMENT
# (`openEHR-DEMOGRAPHIC-ADDRESS.address.v1`), matched case-insensitively
# against the stored, case-folded column (BASE `base_types`
# `master05-identification_package.adoc` §"Composite Identifiers and Case").
# Required in its table (trust).
# archetype = ""
# The ELEMENT's `archetype_node_id` at-code (`at0012`). Required in its table
# (trust).
# node = ""
# How the caller's value is matched against the leaf. Required in its table
# (trust).
# kind = "text"
# The record itself: the subject index, versioning, signing, the query engine,
# the change feed and multimedia.
#? [record]
# Who holds the subject-to-EHR cross-reference, the IHE patient identity source
# of `[pixm]` (`pixm`) or the in-instance map (`local`). No default: an unset
# index refuses the start. Must set (infrastructure).
#? subject_index = "pixm"
# The answer to an identical re-send.
#? [record.versioning]
# `idempotent_resend` (default `false`): when `true`, an update whose content
# equals the current version's commits nothing and answers with the existing
# version's `ETag` and `Location`, leaving one `resend` record on the access
# log. No `commit_audit` and no CONTRIBUTION then record the act (RM common
# master06 §Committal and Audits), which is why the default records every
# commit. The name is RFC 9110 §9.2.2's: a re-send then has the effect of one
# request. Optional (infrastructure).
#? idempotent_resend = false
# VERSION signing.
#? [record.signing]
# Server-side signing of committed versions. Defaults **on** so the STANDARD
# "Signing" capability is demonstrably met. Optional (infrastructure).
#? enabled = true
# Signing mode: `digest` | `pgp`. Optional (infrastructure).
#? mode = "digest"
# Armored RFC 4880 secret key; **required for `pgp` mode** (validated at boot,
# fail-closed). Optional, unset by default (infrastructure).
#? key_file = ""
# Key passphrase, kept in `ferrohealth_secret::secret::Secret` and redacted
# from any config snapshot. Optional, unset by default (infrastructure).
#? key_passphrase = ""
# File-based indirection for `Self::key_passphrase` (K8s/Docker secrets).
# Exactly one of the pair may be set; the loader reads and trims the file.
# Optional, unset by default (infrastructure).
#? key_passphrase_file = ""
# Armored RFC 4880 **public** keys retired from signing but retained for
# verification, so versions signed before a key rotation keep verifying.
# Optional (infrastructure).
#? retired_key_files = []
# Read-time verification policy: `off` | `warn` | `strict`. **Unset** (the
# default) resolves via `Self::effective_verify_on_read` to `strict` when
# signing is enabled — the explicit "sign but never check" state is reachable
# only by deliberately setting `off`. Optional, unset by default
# (infrastructure).
#? verify_on_read = "off"
# AQL execution knobs.
#? [record.query]
# Max distinct cached query plans; `0` disables the plan cache (every lookup
# misses and the full parse→lower path runs). Optional.
#? plan_cache_capacity = 256
# Per-query DB execution budget; `"0s"` disables it. Overrun reports `408`
# (ITS-REST `Requests_and_responses` §HTTP status codes). Optional
# (infrastructure).
#? timeout = "30s"
# The largest page of rows one query execution serves; `0` means unbounded.
# Optional (infrastructure).
#? max_result_rows = 10000
# The commit-event outbox retention; its readers are the change-feed grants.
#? [record.change_feed]
# How long a row is kept once every active reader has acknowledged it, counted
# from its commit instant. Optional.
#? retention = "7d"
# How often the retention prune runs. Optional.
#? prune_interval = "1h"
# `DV_MULTIMEDIA` externalization to object storage. It keeps `enabled`,
# because its store applies while it is off: blobs already offloaded are read
# back from `url`.
#? [record.multimedia]
# Master switch. `false` (default) = today's inline behaviour, byte for byte;
# no object store is built or contacted. Optional (infrastructure).
#? enabled = false
# A decoded `DV_MULTIMEDIA.data` strictly larger than this is offloaded to the
# object store; at or below it stays inline. Default `"256KiB"`. Optional
# (infrastructure).
#? threshold = "256KiB"
# S3-compatible endpoint URL (e.g. a SeaweedFS S3 gateway in dev/test, or an
# AWS/MinIO endpoint in prod). `None` uses the object_store default AWS
# endpoint resolution. Any `userinfo` in it is masked in every rendering. An
# `http://` URL is plain HTTP, which a dev SeaweedFS speaks; a `production`
# deployment names it as a gap. Optional, unset by default (infrastructure).
#? url = ""
# Target bucket for content-addressed blobs. Optional (infrastructure).
#? bucket = "openehr-multimedia"
# AWS region (S3 requires one even for non-AWS endpoints). Optional
# (infrastructure).
#? region = "us-east-1"
# Access key id. `None` (with `secret_access_key` also `None`) runs the client
# unsigned/anonymous — the mode a keyless dev SeaweedFS accepts. Optional,
# unset by default (infrastructure).
#? access_key_id = ""
# Secret access key (paired with `access_key_id`); never rendered. Optional,
# unset by default (infrastructure).
#? secret_access_key = ""
# File-based indirection for `Self::secret_access_key` (K8s/Docker secrets).
# Exactly one of the pair may be set; the loader reads and trims the file.
# Optional, unset by default (infrastructure).
#? secret_access_key_file = ""
# The outbound FHIR terminology server; absent, none is asked.
#? [terminology]
# On a binding the server cannot resolve: `accept` (the default) or `refuse`. A
# resolved non-member is refused under either setting. Optional
# (infrastructure).
#? on_error = "accept"
# `[terminology.endpoint]`, the family's outbound endpoint: the FHIR R4B base
# URL (`url`, such as `http://ferroterm:8080/r4b`, required), the timeouts, the
# `retry` of a call, the TLS and the credential. Any `userinfo` in the URL is
# masked in every rendering.
#? [terminology.endpoint]
# The service's URL (RFC 3986); required. It renders with its userinfo and its
# query masked, in `Debug` and when serialized. Optional (infrastructure).
#? url = ""
# How long one whole call may take; never zero. Optional (infrastructure).
#? timeout = "10s"
# How long opening the connection may take; unset, only `timeout` bounds it.
# Optional, unset by default (infrastructure).
#? connect_timeout = "500ms"
# How a failed call is tried again.
#? [terminology.endpoint.retry]
# How many times one call is tried in all; 1 tries once. Optional
# (infrastructure).
#? max_attempts = 3
# The wait before the second try. Optional (infrastructure).
#? initial_backoff = "200ms"
# The longest wait between two tries. Optional (infrastructure).
#? max_backoff = "5s"
# The TLS of the connection, built by the product's reader of TLS material.
#? [terminology.endpoint.tls]
# The client certificate chain and its private key, in one PEM. Optional, unset
# by default (infrastructure).
#? client_identity = ""
# A file holding `client_identity`. Optional, unset by default
# (infrastructure).
#? client_identity_file = ""
# A PEM bundle of trust roots beside the platform's. Optional, unset by default
# (infrastructure).
#? trust_roots_file = ""
# The oldest TLS version the client speaks: `"1.3"` unless lowered to `"1.2"`,
# as for the listener. Optional (infrastructure).
#? min_version = "1.3"
# The credential the calls carry: HTTP Basic or the client credentials grant.
#? [terminology.endpoint.credentials]
# The Basic user-id. Optional (infrastructure).
#? user = ""
# The Basic password, rendered redacted. Optional, unset by default
# (infrastructure).
#? password = ""
# The file holding the Basic password. Optional, unset by default
# (infrastructure).
#? password_file = ""
# The client credentials grant.
#? [terminology.endpoint.credentials.oauth]
# The issuer whose metadata names the token endpoint; exclusive with
# `token_endpoint`. It renders with any userinfo masked, as `SecretUrl` renders
# itself. Optional (infrastructure).
#? issuer = ""
# The token endpoint itself; exclusive with `issuer`. It renders with its
# userinfo and its query masked. Optional (infrastructure).
#? token_endpoint = ""
# The client identifier. Optional (infrastructure).
#? client_id = ""
# How the client authenticates. Optional (infrastructure).
#? client_auth = "client_secret_basic"
# The client secret, rendered redacted. Optional, unset by default
# (infrastructure).
#? client_secret = ""
# The file holding the client secret. Optional, unset by default
# (infrastructure).
#? client_secret_file = ""
# The PEM file holding the private key of the client assertion under
# `private_key_jwt`, and of the actor assertion of an onward exchange
# (`credentials.onward.actor_assertion`) whatever the client authentication.
# Optional, unset by default (infrastructure).
#? private_key_file = ""
# The `kid` the assertion names; the RFC 7638 thumbprint when empty. Optional
# (infrastructure).
#? kid = ""
# The algorithm the assertion is signed with; when unset, by key type, an EC
# key by its curve (P-256 ES256, P-384 ES384). Optional, unset by default
# (infrastructure).
#? assertion_alg = ""
# The `scope` request parameter; empty for none. Optional (infrastructure).
#? scope = ""
# The RFC 8707 resource indicator; empty for none. Optional (infrastructure).
#? resource = ""
# The `audience` request parameter; empty for none. Optional (infrastructure).
#? audience = ""
# How long before the token expires a new one is fetched. Optional
# (infrastructure).
#? refresh_margin = "30s"
# How long one call to the authorization server may take. Optional
# (infrastructure).
#? timeout = "10s"
# The `aud` of a `private_key_jwt` assertion: `token_endpoint` (the default) or
# `issuer`, which needs `issuer` set. Optional (infrastructure).
#? assertion_audience = "token_endpoint"
# The PEM file of the `DPoP` key the tokens are bound to (RFC 9449). Optional,
# unset by default (infrastructure).
#? dpop_key_file = ""
# Whether the tokens are bound to the client certificate (RFC 8705 §3).
# Optional (infrastructure).
#? certificate_bound = false
# The security profile: `oauth2` (the default) or `fapi2`. Optional
# (infrastructure).
#? security_profile = "oauth2"
# The hosts a FAPI 2.0 mutual-TLS alias may be on (RFC 8705 §5). Optional
# (infrastructure).
#? mtls_alias_hosts = []
# The PEM file of the previous assertion key, published, never signing.
# Optional, unset by default (infrastructure).
#? previous_private_key_file = ""
# How long the previous key stays published; `0s` for as long as it is set.
# Optional (infrastructure).
#? previous_key_overlap = "0s"
# The PEM file of the next assertion key, published and never signing.
# Optional, unset by default (infrastructure).
#? next_private_key_file = ""
# The RFC 9396 `authorization_details` JSON text; empty for none. Optional
# (infrastructure).
#? authorization_details = ""
# The TLS of the token endpoint connection: trust roots beside the platform's,
# the client identity presented over mutual TLS (RFC 8705 §2) and the minimum
# version. The crate reads none of it: a table that names material resolves
# through the product's `TlsBuilder`.
#? [terminology.endpoint.credentials.oauth.tls]
# The client certificate chain and its private key, in one PEM. Optional, unset
# by default (infrastructure).
#? client_identity = ""
# A file holding `client_identity`. Optional, unset by default
# (infrastructure).
#? client_identity_file = ""
# A PEM bundle of trust roots beside the platform's. Optional, unset by default
# (infrastructure).
#? trust_roots_file = ""
# The oldest TLS version the client speaks: `"1.3"` unless lowered to `"1.2"`,
# as for the listener. Optional (infrastructure).
#? min_version = "1.3"
# The onward target the lane reaches on a caller's behalf, authenticating with
# `oauth`.
#? [terminology.endpoint.credentials.onward]
# The identifier of the issuer of the onward tokens, whose metadata names its
# token endpoint unless `token_endpoint` is set. It renders with any userinfo
# masked, as `SecretUrl` renders itself. Optional (infrastructure).
#? issuer = ""
# Whose tokens the issuer signs: `persons` (a delegated exchange), `patients`
# (a patient's own token) or `federation`; required, with no default. Optional,
# unset by default (infrastructure).
#? kind = "persons"
# The preset the issuer's profile starts from. Optional (infrastructure).
#? profile = "rfc9068"
# The token endpoint itself; empty to discover it from `issuer`. It renders
# with its userinfo and its query masked. Optional (infrastructure).
#? token_endpoint = ""
# The client id at this issuer; empty for the lane's own. Optional
# (infrastructure).
#? client_id = ""
# The audiences an onward token may name, at least one. Optional
# (infrastructure).
#? audiences = []
# The `resource` or `audience` values the request names, as the profile's
# `onward_indicator` says. Optional (infrastructure).
#? indicators = []
# The `scope` the request names; empty for none. Optional (infrastructure).
#? scope = ""
# The claim a chained federation route carries from the subject token to the
# onward token; empty for none. Optional (infrastructure).
#? correlation_claim = ""
# Whether the lane holds the tokens it obtains until they near their `exp`.
# `false` exchanges a token at the issuer on every call, a setting for a
# performance measurement's self-test, never for production. `true` by default.
# Optional (infrastructure).
#? cache = true
# Whether every token exchange sent without an actor token names the lane's
# client as its actor with an assertion signed by the current key of its
# `oauth` table's key ring (RFC 8693 §2.1; `Onward::with_actor_assertion`).
# `false` by default. Optional (infrastructure).
#? actor_assertion = false
# The profile keys set over the preset; `max_onward_lifetime` is required, here
# or in the preset.
#? [terminology.endpoint.credentials.onward.keys]
# `Profile::person_key`. Optional, unset by default (infrastructure).
#? person_key = ""
# `Profile::tenant_claim`. Optional, unset by default (infrastructure).
#? tenant_claim = ""
# `Profile::client_claims`. Optional, unset by default (infrastructure).
#? client_claims = []
# `Profile::impersonation_marker`. Optional, unset by default (infrastructure).
#? impersonation_marker = ""
# `Profile::expect`. Optional, unset by default (infrastructure).
#? expect = {}
# `Profile::user_claims`. Optional, unset by default (infrastructure).
#? user_claims = []
# `Profile::person_equality`. Optional, unset by default (infrastructure).
#? person_equality = []
# `Profile::unstable_claims`. Optional, unset by default (infrastructure).
#? unstable_claims = []
# `Profile::first_party_clients`. Optional, unset by default (infrastructure).
#? first_party_clients = []
# `Profile::max_actor_chain`. Optional, unset by default (infrastructure).
#? max_actor_chain = 0
# `Profile::act_represents_patient`. Optional, unset by default
# (infrastructure).
#? act_represents_patient = false
# `Profile::token_types`. Optional, unset by default (infrastructure).
#? token_types = []
# `Profile::required_claims`. Optional, unset by default (infrastructure).
#? required_claims = []
# `Profile::adapter`. Optional, unset by default (infrastructure).
#? adapter = ""
# `Profile::max_onward_lifetime`, a duration such as `"10min"`. Optional, unset
# by default (infrastructure).
#? max_onward_lifetime = "500ms"
# `Profile::onward_grant`. Optional, unset by default (infrastructure).
#? onward_grant = "token_exchange"
# `Profile::onward_indicator`. Optional, unset by default (infrastructure).
#? onward_indicator = "resource"
# `Profile::onward_parameters`. Optional, unset by default (infrastructure).
#? onward_parameters = {}
# `Profile::onward_client_id`. Optional, unset by default (infrastructure).
#? onward_client_id = false
# `Profile::onward_subject_audience`. Optional, unset by default
# (infrastructure).
#? onward_subject_audience = false
# `Profile::onward_preview`. Optional, unset by default (infrastructure).
#? onward_preview = []
# `Profile::app_only`.
#? [[terminology.endpoint.credentials.onward.keys.app_only]]
# The claim of `{ claim, value }`. Optional, unset by default (infrastructure).
#? claim = ""
# The value of `{ claim, value }`. Optional, unset by default (infrastructure).
#? value = ""
# The claim of `{ absent_claim }`. Optional, unset by default (infrastructure).
#? absent_claim = ""
# The subjects of `{ subjects }`. Optional, unset by default (infrastructure).
#? subjects = []
# The `{ sub_is_client = true }` form. Optional, unset by default
# (infrastructure).
#? sub_is_client = false
# The claim of `{ differs_from_iss }`. Optional, unset by default
# (infrastructure).
#? differs_from_iss = ""
# `Profile::guest`.
#? [[terminology.endpoint.credentials.onward.keys.guest]]
# The claim of `{ claim, value }`. Optional, unset by default (infrastructure).
#? claim = ""
# The value of `{ claim, value }`. Optional, unset by default (infrastructure).
#? value = ""
# The claim of `{ absent_claim }`. Optional, unset by default (infrastructure).
#? absent_claim = ""
# The subjects of `{ subjects }`. Optional, unset by default (infrastructure).
#? subjects = []
# The `{ sub_is_client = true }` form. Optional, unset by default
# (infrastructure).
#? sub_is_client = false
# The claim of `{ differs_from_iss }`. Optional, unset by default
# (infrastructure).
#? differs_from_iss = ""
# `Profile::delegates`.
#? [[terminology.endpoint.credentials.onward.keys.delegates]]
# The actor's issuer. Optional, unset by default (infrastructure).
#? issuer = ""
# The actor's `sub`. Optional, unset by default (infrastructure).
#? sub = ""
# The client. Optional, unset by default (infrastructure).
#? client = ""
# `Profile::representation`.
#? [terminology.endpoint.credentials.onward.keys.representation]
# The claim naming the subject the person represents. Required in its table
# (infrastructure).
#? claim = ""
# The claim carrying the ground of the representation, as asserted. Optional,
# unset by default (infrastructure).
#? ground_claim = ""
# `Profile::scope_claim`.
#? [terminology.endpoint.credentials.onward.keys.scope_claim]
# The claim. Required in its table (infrastructure).
#? claim = ""
# Its JSON form. Optional (infrastructure).
#? form = "string"
# `Profile::app_only_scope_claim`.
#? [terminology.endpoint.credentials.onward.keys.app_only_scope_claim]
# The claim. Required in its table (infrastructure).
#? claim = ""
# Its JSON form. Optional (infrastructure).
#? form = "string"
# What a `federation` issuer asserts, over its preset's defaults;
# `exchanges_from` and `person_mapping` are required.
#? [terminology.endpoint.credentials.onward.federation]
# The `[auth.issuer]` this table describes, of kind `federation`. It renders
# with any userinfo masked, as `SecretUrl` renders itself. Optional
# (infrastructure).
#? issuer = ""
# Whether the issuer is a MyHealth@EU contact point; required, with no default.
# Optional, unset by default (infrastructure).
#? contact_point = false
# The default sources the table starts from. Optional, unset by default
# (infrastructure).
#? mapping = "iua"
# The sources of each field, over the mapping's. Optional (infrastructure).
#? fields = {}
# The country codes a professional may carry. Optional (infrastructure).
#? countries = []
# The issuing authorities a professional or provider may name. Optional
# (infrastructure).
#? issuing_authorities = []
# The prefixes a healthcare provider identifier must start with. Optional
# (infrastructure).
#? provider_identifier_prefixes = []
# Whether the issuer attests the `authorization_details` it puts in a token,
# which RFC 9396 §12 has "sent through the user agent". Optional
# (infrastructure).
#? attests_authorization_details = false
# The `authorization_details` type the attributes are read from. Optional,
# unset by default (infrastructure).
#? authorization_details_type = ""
# The `authorization_details` types that state an organisation's access.
# Optional (infrastructure).
#? organisation_types = []
# The claim holding the Verifiable Presentations of a Nuts RFC021 §6
# introspection response, `vps`. Optional, unset by default (infrastructure).
#? presentations_claim = ""
# The credential types the deployment declares user-authenticated. Optional
# (infrastructure).
#? user_credential_types = []
# The fields every token of the issuer must carry, each with a source. Optional
# (infrastructure).
#? required_fields = []
# Whether the issuer's tokens must be sender-constrained, so the issuer fails
# to load without `sender_constraint = "required"`. Optional (infrastructure).
#? requires_sender_constraint = false
# The subject-token issuers whose persons this issuer is trusted to map to its
# own, when it issues onward tokens (`client::onward`). Optional
# (infrastructure).
#? exchanges_from = []
# The subject-token claim, a dotted path, whose value an onward token of this
# issuer must carry as `professional.hp_identifier`. Optional, unset by default
# (infrastructure).
#? person_mapping = ""
# The assurance level the issuer's tokens carry.
#? [terminology.endpoint.credentials.onward.assurance]
# The claim carrying the authentication context class, a dotted path; `acr` by
# default (OpenID Connect Core 1.0 §2). Optional (infrastructure).
#? claim = "acr"
# The level each claim value the issuer emits stands for; a value the map does
# not name carries none. Optional (infrastructure).
#? levels = {}
# The level a request held to the section must carry; none refuses nothing.
# Optional, unset by default (infrastructure).
#? minimum = "low"
# The IHE PIXm patient identity source the subject index asks (ITI-83) under
# `record.subject_index = "pixm"`.
#? [pixm]
# The assigning authority of the clinical domain, an absolute URI such as
# `urn:oid:2.999.1`: the `targetSystem` of every ITI-83 query and the
# `EHR_STATUS.subject.external_ref.namespace` the answered identifier is stored
# under. It must be one of `privacy.subject_namespaces`. Optional
# (infrastructure).
#? assigning_authority = ""
# How the PIX Manager is asked: `post` (the default) or `get`. Optional
# (infrastructure).
#? method = "post"
# `[pixm.endpoint]`, the family's outbound endpoint: the FHIR base URL of the
# PIX Manager (`url`, the `[base]` of `[base]/Patient/$ihe-pix`, PIXm
# §2:3.83.4.1.2), the timeout of one ITI-83 exchange, its `retry`, the TLS
# (trust roots for a PIX Manager behind a private PKI, a client identity for
# mutual TLS) and the credential, such as the OAuth 2.0 client credentials
# grant whose access token every request carries (IUA ITI-72 §3.72.4.2). Any
# `userinfo` in the URL is masked in every rendering.
#? [pixm.endpoint]
# The service's URL (RFC 3986); required. It renders with its userinfo and its
# query masked, in `Debug` and when serialized. Optional (infrastructure).
#? url = ""
# How long one whole call may take; never zero. Optional (infrastructure).
#? timeout = "10s"
# How long opening the connection may take; unset, only `timeout` bounds it.
# Optional, unset by default (infrastructure).
#? connect_timeout = "500ms"
# How a failed call is tried again.
#? [pixm.endpoint.retry]
# How many times one call is tried in all; 1 tries once. Optional
# (infrastructure).
#? max_attempts = 3
# The wait before the second try. Optional (infrastructure).
#? initial_backoff = "200ms"
# The longest wait between two tries. Optional (infrastructure).
#? max_backoff = "5s"
# The TLS of the connection, built by the product's reader of TLS material.
#? [pixm.endpoint.tls]
# The client certificate chain and its private key, in one PEM. Optional, unset
# by default (infrastructure).
#? client_identity = ""
# A file holding `client_identity`. Optional, unset by default
# (infrastructure).
#? client_identity_file = ""
# A PEM bundle of trust roots beside the platform's. Optional, unset by default
# (infrastructure).
#? trust_roots_file = ""
# The oldest TLS version the client speaks: `"1.3"` unless lowered to `"1.2"`,
# as for the listener. Optional (infrastructure).
#? min_version = "1.3"
# The credential the calls carry: HTTP Basic or the client credentials grant.
#? [pixm.endpoint.credentials]
# The Basic user-id. Optional (infrastructure).
#? user = ""
# The Basic password, rendered redacted. Optional, unset by default
# (infrastructure).
#? password = ""
# The file holding the Basic password. Optional, unset by default
# (infrastructure).
#? password_file = ""
# The client credentials grant.
#? [pixm.endpoint.credentials.oauth]
# The issuer whose metadata names the token endpoint; exclusive with
# `token_endpoint`. It renders with any userinfo masked, as `SecretUrl` renders
# itself. Optional (infrastructure).
#? issuer = ""
# The token endpoint itself; exclusive with `issuer`. It renders with its
# userinfo and its query masked. Optional (infrastructure).
#? token_endpoint = ""
# The client identifier. Optional (infrastructure).
#? client_id = ""
# How the client authenticates. Optional (infrastructure).
#? client_auth = "client_secret_basic"
# The client secret, rendered redacted. Optional, unset by default
# (infrastructure).
#? client_secret = ""
# The file holding the client secret. Optional, unset by default
# (infrastructure).
#? client_secret_file = ""
# The PEM file holding the private key of the client assertion under
# `private_key_jwt`, and of the actor assertion of an onward exchange
# (`credentials.onward.actor_assertion`) whatever the client authentication.
# Optional, unset by default (infrastructure).
#? private_key_file = ""
# The `kid` the assertion names; the RFC 7638 thumbprint when empty. Optional
# (infrastructure).
#? kid = ""
# The algorithm the assertion is signed with; when unset, by key type, an EC
# key by its curve (P-256 ES256, P-384 ES384). Optional, unset by default
# (infrastructure).
#? assertion_alg = ""
# The `scope` request parameter; empty for none. Optional (infrastructure).
#? scope = ""
# The RFC 8707 resource indicator; empty for none. Optional (infrastructure).
#? resource = ""
# The `audience` request parameter; empty for none. Optional (infrastructure).
#? audience = ""
# How long before the token expires a new one is fetched. Optional
# (infrastructure).
#? refresh_margin = "30s"
# How long one call to the authorization server may take. Optional
# (infrastructure).
#? timeout = "10s"
# The `aud` of a `private_key_jwt` assertion: `token_endpoint` (the default) or
# `issuer`, which needs `issuer` set. Optional (infrastructure).
#? assertion_audience = "token_endpoint"
# The PEM file of the `DPoP` key the tokens are bound to (RFC 9449). Optional,
# unset by default (infrastructure).
#? dpop_key_file = ""
# Whether the tokens are bound to the client certificate (RFC 8705 §3).
# Optional (infrastructure).
#? certificate_bound = false
# The security profile: `oauth2` (the default) or `fapi2`. Optional
# (infrastructure).
#? security_profile = "oauth2"
# The hosts a FAPI 2.0 mutual-TLS alias may be on (RFC 8705 §5). Optional
# (infrastructure).
#? mtls_alias_hosts = []
# The PEM file of the previous assertion key, published, never signing.
# Optional, unset by default (infrastructure).
#? previous_private_key_file = ""
# How long the previous key stays published; `0s` for as long as it is set.
# Optional (infrastructure).
#? previous_key_overlap = "0s"
# The PEM file of the next assertion key, published and never signing.
# Optional, unset by default (infrastructure).
#? next_private_key_file = ""
# The RFC 9396 `authorization_details` JSON text; empty for none. Optional
# (infrastructure).
#? authorization_details = ""
# The TLS of the token endpoint connection: trust roots beside the platform's,
# the client identity presented over mutual TLS (RFC 8705 §2) and the minimum
# version. The crate reads none of it: a table that names material resolves
# through the product's `TlsBuilder`.
#? [pixm.endpoint.credentials.oauth.tls]
# The client certificate chain and its private key, in one PEM. Optional, unset
# by default (infrastructure).
#? client_identity = ""
# A file holding `client_identity`. Optional, unset by default
# (infrastructure).
#? client_identity_file = ""
# A PEM bundle of trust roots beside the platform's. Optional, unset by default
# (infrastructure).
#? trust_roots_file = ""
# The oldest TLS version the client speaks: `"1.3"` unless lowered to `"1.2"`,
# as for the listener. Optional (infrastructure).
#? min_version = "1.3"
# The onward target the lane reaches on a caller's behalf, authenticating with
# `oauth`.
#? [pixm.endpoint.credentials.onward]
# The identifier of the issuer of the onward tokens, whose metadata names its
# token endpoint unless `token_endpoint` is set. It renders with any userinfo
# masked, as `SecretUrl` renders itself. Optional (infrastructure).
#? issuer = ""
# Whose tokens the issuer signs: `persons` (a delegated exchange), `patients`
# (a patient's own token) or `federation`; required, with no default. Optional,
# unset by default (infrastructure).
#? kind = "persons"
# The preset the issuer's profile starts from. Optional (infrastructure).
#? profile = "rfc9068"
# The token endpoint itself; empty to discover it from `issuer`. It renders
# with its userinfo and its query masked. Optional (infrastructure).
#? token_endpoint = ""
# The client id at this issuer; empty for the lane's own. Optional
# (infrastructure).
#? client_id = ""
# The audiences an onward token may name, at least one. Optional
# (infrastructure).
#? audiences = []
# The `resource` or `audience` values the request names, as the profile's
# `onward_indicator` says. Optional (infrastructure).
#? indicators = []
# The `scope` the request names; empty for none. Optional (infrastructure).
#? scope = ""
# The claim a chained federation route carries from the subject token to the
# onward token; empty for none. Optional (infrastructure).
#? correlation_claim = ""
# Whether the lane holds the tokens it obtains until they near their `exp`.
# `false` exchanges a token at the issuer on every call, a setting for a
# performance measurement's self-test, never for production. `true` by default.
# Optional (infrastructure).
#? cache = true
# Whether every token exchange sent without an actor token names the lane's
# client as its actor with an assertion signed by the current key of its
# `oauth` table's key ring (RFC 8693 §2.1; `Onward::with_actor_assertion`).
# `false` by default. Optional (infrastructure).
#? actor_assertion = false
# The profile keys set over the preset; `max_onward_lifetime` is required, here
# or in the preset.
#? [pixm.endpoint.credentials.onward.keys]
# `Profile::person_key`. Optional, unset by default (infrastructure).
#? person_key = ""
# `Profile::tenant_claim`. Optional, unset by default (infrastructure).
#? tenant_claim = ""
# `Profile::client_claims`. Optional, unset by default (infrastructure).
#? client_claims = []
# `Profile::impersonation_marker`. Optional, unset by default (infrastructure).
#? impersonation_marker = ""
# `Profile::expect`. Optional, unset by default (infrastructure).
#? expect = {}
# `Profile::user_claims`. Optional, unset by default (infrastructure).
#? user_claims = []
# `Profile::person_equality`. Optional, unset by default (infrastructure).
#? person_equality = []
# `Profile::unstable_claims`. Optional, unset by default (infrastructure).
#? unstable_claims = []
# `Profile::first_party_clients`. Optional, unset by default (infrastructure).
#? first_party_clients = []
# `Profile::max_actor_chain`. Optional, unset by default (infrastructure).
#? max_actor_chain = 0
# `Profile::act_represents_patient`. Optional, unset by default
# (infrastructure).
#? act_represents_patient = false
# `Profile::token_types`. Optional, unset by default (infrastructure).
#? token_types = []
# `Profile::required_claims`. Optional, unset by default (infrastructure).
#? required_claims = []
# `Profile::adapter`. Optional, unset by default (infrastructure).
#? adapter = ""
# `Profile::max_onward_lifetime`, a duration such as `"10min"`. Optional, unset
# by default (infrastructure).
#? max_onward_lifetime = "500ms"
# `Profile::onward_grant`. Optional, unset by default (infrastructure).
#? onward_grant = "token_exchange"
# `Profile::onward_indicator`. Optional, unset by default (infrastructure).
#? onward_indicator = "resource"
# `Profile::onward_parameters`. Optional, unset by default (infrastructure).
#? onward_parameters = {}
# `Profile::onward_client_id`. Optional, unset by default (infrastructure).
#? onward_client_id = false
# `Profile::onward_subject_audience`. Optional, unset by default
# (infrastructure).
#? onward_subject_audience = false
# `Profile::onward_preview`. Optional, unset by default (infrastructure).
#? onward_preview = []
# `Profile::app_only`.
#? [[pixm.endpoint.credentials.onward.keys.app_only]]
# The claim of `{ claim, value }`. Optional, unset by default (infrastructure).
#? claim = ""
# The value of `{ claim, value }`. Optional, unset by default (infrastructure).
#? value = ""
# The claim of `{ absent_claim }`. Optional, unset by default (infrastructure).
#? absent_claim = ""
# The subjects of `{ subjects }`. Optional, unset by default (infrastructure).
#? subjects = []
# The `{ sub_is_client = true }` form. Optional, unset by default
# (infrastructure).
#? sub_is_client = false
# The claim of `{ differs_from_iss }`. Optional, unset by default
# (infrastructure).
#? differs_from_iss = ""
# `Profile::guest`.
#? [[pixm.endpoint.credentials.onward.keys.guest]]
# The claim of `{ claim, value }`. Optional, unset by default (infrastructure).
#? claim = ""
# The value of `{ claim, value }`. Optional, unset by default (infrastructure).
#? value = ""
# The claim of `{ absent_claim }`. Optional, unset by default (infrastructure).
#? absent_claim = ""
# The subjects of `{ subjects }`. Optional, unset by default (infrastructure).
#? subjects = []
# The `{ sub_is_client = true }` form. Optional, unset by default
# (infrastructure).
#? sub_is_client = false
# The claim of `{ differs_from_iss }`. Optional, unset by default
# (infrastructure).
#? differs_from_iss = ""
# `Profile::delegates`.
#? [[pixm.endpoint.credentials.onward.keys.delegates]]
# The actor's issuer. Optional, unset by default (infrastructure).
#? issuer = ""
# The actor's `sub`. Optional, unset by default (infrastructure).
#? sub = ""
# The client. Optional, unset by default (infrastructure).
#? client = ""
# `Profile::representation`.
#? [pixm.endpoint.credentials.onward.keys.representation]
# The claim naming the subject the person represents. Required in its table
# (infrastructure).
#? claim = ""
# The claim carrying the ground of the representation, as asserted. Optional,
# unset by default (infrastructure).
#? ground_claim = ""
# `Profile::scope_claim`.
#? [pixm.endpoint.credentials.onward.keys.scope_claim]
# The claim. Required in its table (infrastructure).
#? claim = ""
# Its JSON form. Optional (infrastructure).
#? form = "string"
# `Profile::app_only_scope_claim`.
#? [pixm.endpoint.credentials.onward.keys.app_only_scope_claim]
# The claim. Required in its table (infrastructure).
#? claim = ""
# Its JSON form. Optional (infrastructure).
#? form = "string"
# What a `federation` issuer asserts, over its preset's defaults;
# `exchanges_from` and `person_mapping` are required.
#? [pixm.endpoint.credentials.onward.federation]
# The `[auth.issuer]` this table describes, of kind `federation`. It renders
# with any userinfo masked, as `SecretUrl` renders itself. Optional
# (infrastructure).
#? issuer = ""
# Whether the issuer is a MyHealth@EU contact point; required, with no default.
# Optional, unset by default (infrastructure).
#? contact_point = false
# The default sources the table starts from. Optional, unset by default
# (infrastructure).
#? mapping = "iua"
# The sources of each field, over the mapping's. Optional (infrastructure).
#? fields = {}
# The country codes a professional may carry. Optional (infrastructure).
#? countries = []
# The issuing authorities a professional or provider may name. Optional
# (infrastructure).
#? issuing_authorities = []
# The prefixes a healthcare provider identifier must start with. Optional
# (infrastructure).
#? provider_identifier_prefixes = []
# Whether the issuer attests the `authorization_details` it puts in a token,
# which RFC 9396 §12 has "sent through the user agent". Optional
# (infrastructure).
#? attests_authorization_details = false
# The `authorization_details` type the attributes are read from. Optional,
# unset by default (infrastructure).
#? authorization_details_type = ""
# The `authorization_details` types that state an organisation's access.
# Optional (infrastructure).
#? organisation_types = []
# The claim holding the Verifiable Presentations of a Nuts RFC021 §6
# introspection response, `vps`. Optional, unset by default (infrastructure).
#? presentations_claim = ""
# The credential types the deployment declares user-authenticated. Optional
# (infrastructure).
#? user_credential_types = []
# The fields every token of the issuer must carry, each with a source. Optional
# (infrastructure).
#? required_fields = []
# Whether the issuer's tokens must be sender-constrained, so the issuer fails
# to load without `sender_constraint = "required"`. Optional (infrastructure).
#? requires_sender_constraint = false
# The subject-token issuers whose persons this issuer is trusted to map to its
# own, when it issues onward tokens (`client::onward`). Optional
# (infrastructure).
#? exchanges_from = []
# The subject-token claim, a dotted path, whose value an onward token of this
# issuer must carry as `professional.hp_identifier`. Optional, unset by default
# (infrastructure).
#? person_mapping = ""
# The assurance level the issuer's tokens carry.
#? [pixm.endpoint.credentials.onward.assurance]
# The claim carrying the authentication context class, a dotted path; `acr` by
# default (OpenID Connect Core 1.0 §2). Optional (infrastructure).
#? claim = "acr"
# The level each claim value the issuer emits stands for; a value the map does
# not name carries none. Optional (infrastructure).
#? levels = {}
# The level a request held to the section must carry; none refuses nothing.
# Optional, unset by default (infrastructure).
#? minimum = "low"
Default demographic definitions
Party binding and SCIM provisioning write demographic parties under the templates and archetypes the party mapping names, and the server refuses to boot while the definition store lacks one of them. FerroEHR ships a default set of seven ADL 2 archetypes. The binary carries them, every boot stores each one whose id the definition store does not hold, and with no mapping key set the party mapping names them, so an empty configuration boots with SCIM Users, Groups and representation working:
- a professional’s
PERSONand the professionalROLEit performs, with the professional’s registrations and qualifications as its capabilities; - a care-team
GROUP, which a SCIM Group is provisioned as; - the membership
PARTY_RELATIONSHIPa member’sPERSONholds to itsGROUP; - the representation
PARTY_RELATIONSHIPa representative acts through; - a patient’s
PERSON, the subject a representation targets; - a healthcare provider’s
ORGANISATION, the provider a system acts for and a federation partner.
The policy definitions of Operational policy are not in this set, and are stored at boot the same way.
A stored definition is never overwritten: a definition stored under one of
these ids before the first boot, with its own text, is kept, and so is every
later version uploaded through the definition API. These are defaults. A
deployment may load its own templates instead, or beside them, and set the
[authz.party_binding] sections that name them; the server stores nothing
under its ids.
The files
Each file is in the repository under deploy/definitions/ and is attached to
every release as an asset of its own, with a .sha256sum file beside it.
A shipped definition never changes under its id. Boot stores a definition
only when its id is absent, so a change takes a new version, such as the
patient’s v1.1.0 beside v1.0.0, and a deployment receives it at its next
boot. deploy/definitions/published.sha256 records the content of every
definition the binary carries, and a test refuses a change under a recorded
id.
| File | What it is for | The key that names it |
|---|---|---|
openEHR-DEMOGRAPHIC-PERSON.healthcare_professional.v1.0.0.adls | A professional’s PERSON: the binding key, userName and externalId as identifiers in details (/details[id2]/items[id3]), the full, given and family name in identities (/identities[id4]/details[id5]/items[id6], id7, id8), and a work email in contacts (/contacts[id9]/addresses[id10]/details[id11]/items[id12]). | [[authz.party_binding.person.template]] template_id and the path keys of [[authz.party_binding.person.attribute]] |
openEHR-DEMOGRAPHIC-ROLE.healthcare_professional.v1.0.0.adls | The professional ROLE that makes a PERSON a professional while it is valid, with a CAPABILITY per credential: the field of practice and each registration and qualification, as the CKM individual_credentials archetype records them (/capabilities[id6]/credentials[id7]/items[id10] is a registration). | [authz.party_binding.professional_role] template_id |
openEHR-DEMOGRAPHIC-GROUP.care_team.v1.0.0.adls | A care team’s GROUP: its externalId as an identifier in details (/details[id2]/items[id3]) and its displayName in identities (/identities[id4]/details[id5]/items[id6]). | [authz.party_binding.group] template_id |
openEHR-DEMOGRAPHIC-PARTY_RELATIONSHIP.membership.v1.0.0.adls | The membership of a PERSON in a GROUP, held in the member’s relationships, with an optional role in the team. | [authz.party_binding.membership] archetype_id, as openEHR-DEMOGRAPHIC-PARTY_RELATIONSHIP.membership.v1 |
openEHR-DEMOGRAPHIC-PARTY_RELATIONSHIP.member_of.v1.0.0.adls | An example care-team membership from a professional’s PERSON to the team’s GROUP, held in the professional’s relationships, whose details carry ferroehr-operations::member_of and an optional role in the team. FerroEHR recognises it by that code in any archetype. | none |
openEHR-DEMOGRAPHIC-PARTY_RELATIONSHIP.under_care_of.v1.0.0.adls | An example care relationship from a patient’s PERSON to the team’s GROUP or the unit, held in the patient’s relationships, with the admission as its time_validity, whose details carry ferroehr-operations::under_care_of and an optional discharge time. FerroEHR recognises it by that code in any archetype. | none |
openEHR-DEMOGRAPHIC-PARTY_RELATIONSHIP.representation.v1.0.0.adls | An example representation from a representative’s PERSON to the subject’s, whose coded name is its type, at10 (parent), at11 (guardian) or at12 (authorised proxy), and whose details carry ferroehr-operations::represents and the openEHR subject_relationship code. FerroEHR recognises a representation by that code in any archetype. | none |
openEHR-DEMOGRAPHIC-PERSON.patient.v1.1.0.adls | A patient’s PERSON: its patient identifiers (/details[id2]/items[id3]), date of birth (id4) and sex (id5) in details, its names in identities, each named by its usage (/identities[id6]/details[id7]/items[id8], id9, id10), a postal and an electronic address, its relationships to personal contacts, third-party payers and providers, each payer and provider with the patient identifiers it issues, and its care relationships (id32) to the teams and units it is under the care of, carrying ferroehr-operations::under_care_of. | [authz.party_binding.patient] template_id, with its identifier and name paths |
openEHR-DEMOGRAPHIC-PERSON.patient.v1.0.0.adls | The patient’s PERSON as v5.7.1-rc1 published it: version 1.1.0 without the care relationship (id32). It stays byte for byte under its id, and a deployment that stored it receives 1.1.0 beside it. | none |
openEHR-DEMOGRAPHIC-ORGANISATION.healthcare_provider.v1.0.0.adls | A healthcare provider’s ORGANISATION: its provider identifiers in details (/details[id2]/items[id3], such as the Dutch URA, mandatory), its names named by their usage, and a postal and an electronic address. The acts-for relationship targets it, and a federation partner is one. | none |
The links above fetch the newest release’s copy. To fetch the copy of a
given release, replace vX.Y.Z with its tag:
base=https://github.com/FerroHEALTH/FerroEHR/releases/download/vX.Y.Z
for file in \
openEHR-DEMOGRAPHIC-PERSON.healthcare_professional.v1.0.0.adls \
openEHR-DEMOGRAPHIC-ROLE.healthcare_professional.v1.0.0.adls \
openEHR-DEMOGRAPHIC-GROUP.care_team.v1.0.0.adls \
openEHR-DEMOGRAPHIC-PARTY_RELATIONSHIP.membership.v1.0.0.adls \
openEHR-DEMOGRAPHIC-PARTY_RELATIONSHIP.member_of.v1.0.0.adls \
openEHR-DEMOGRAPHIC-PARTY_RELATIONSHIP.under_care_of.v1.0.0.adls \
openEHR-DEMOGRAPHIC-PARTY_RELATIONSHIP.representation.v1.0.0.adls \
openEHR-DEMOGRAPHIC-PERSON.patient.v1.0.0.adls \
openEHR-DEMOGRAPHIC-PERSON.patient.v1.1.0.adls \
openEHR-DEMOGRAPHIC-ORGANISATION.healthcare_provider.v1.0.0.adls; do
curl -fsSLO "$base/$file"
curl -fsSLO "$base/$file.sha256sum"
sha256sum --check "$file.sha256sum"
done
The same files at a release tag are in the repository at
https://github.com/FerroHEALTH/FerroEHR/tree/vX.Y.Z/deploy/definitions:
deploy/definitions/professional/: thePERSONand theROLE;deploy/definitions/care-team/: theGROUP, the membership and the two care relationships;deploy/definitions/representation/: the representation;deploy/definitions/patient/: the patientPERSON;deploy/definitions/provider/: the providerORGANISATION.
The links above point at main; replace main with a tag for that
release’s copy. Each directory’s PROVENANCE.md names the openEHR CKM
archetypes the files adapt and every change from them. openEHR CKM publishes
no GROUP and no PARTY_RELATIONSHIP archetype, so the GROUP and the
membership adapt the CKM ORGANISATION archetype and its inline
relationship, the representation adapts the person-to-person relationship of
the CKM PERSON archetypes, and the representation types are FerroEHR’s own
modelling. Every CKM source is a v0 draft, so each file names it with its
CKM id and modification time. The CAPABILITY of the professional ROLE is
CKM’s individual_credentials: the openEHR RM and CKM use a capability for a
performer’s qualifications. The files carry the
CKM sources’ licence, Creative Commons Attribution-ShareAlike 3.0.
How they are stored
Every boot stores each file whose id the definition store does not hold,
through the same path as POST /definition/template/adl2, before it judges
the party mapping. A file stored already is left alone, whatever its text.
No lane loads them with ferroehr definitions load any more: the
quickstart, the hosted sandbox, the development and conformance lanes and
the Helm chart boot on them as the binary stores them. The
chart’s definitions.files is empty by default and lists only definitions
of your own.
To store them before the first boot, for example to inspect them, use
ferroehr definitions load with
the files above; the first boot then keeps them.
The mapping that names them
With no mapping key set, [authz.party_binding] maps all of them but the
provider ORGANISATION, which the acts-for relationship of the policy parties
targets (the default mapping). SCIM serves
/scim/v2/Groups, and each client’s Groups’ externalIds are written under
its [[auth.party]] table’s group_identifier_issuer, or under one derived
from its binding_issuer when the table sets none
(Groups). A test boots an empty configuration,
stores the set as boot does, and provisions a SCIM User, a Group with the
User as its member and a representation through it, so the default mapping
and the files cannot drift apart.
A deployment with templates of its own sets the section that names them, and
only that section: the others keep their default. For the Helm chart, the
sections go under config.authz.party_binding, for example a person key of
another identifier type:
config:
authz:
party_binding:
person:
template:
- template_id: openEHR-DEMOGRAPHIC-PERSON.healthcare_professional.v1.0.0
default: true
key: { path: "/details[id2]/items[id3]", type: uuid }
user_name: { path: "/details[id2]/items[id3]", type: scim_user_name }
external_id: { path: "/details[id2]/items[id3]", type: scim_external_id }
Set the mapping before the first start. The binding side table is filled
under the mapping’s digest at the first start, and a server whose mapping
differs from it refuses to start until
ferroehr party-binding refill
has run with every replica stopped.
Party binding: bootstrap and migration
FerroEHR binds every person who logs in to a demographic PERSON, and a
login with no PERSON is refused (403, refused-unbound). This page
takes a new deployment from an empty database to its first bound login, and
takes an existing deployment, whose people were attributed by login alone,
to binding. The configuration it names is in
Authentication & access, and the two
commands are in CLI & production checklist. Every
incompatible change of the release, with its upgrade step, is on
Breaking changes of party binding.
No openEHR specification governs a deployment’s migration or its credential store: this is FerroEHR’s own design.
Who is a person
Every [[auth.basic.users]] entry is a person. It maps to the PERSON
that carries its binding key, with [[authz.party_binding.basic_user]]:
[[authz.party_binding.basic_user]]
user = "clinician"
key_issuer = "urn:example:staff-login" # the identifier_issuer of an [[auth.party]] table
key = "clinician" # the binding key the PERSON carries
A Basic user with no mapping refuses the start, naming the user. A machine,
read-only included, authenticates with OAuth 2.0 client credentials and
is granted in the CDR (Operational policy). A Basic credential carries no
assurance level, so with [authz.assurance] minimum set it is refused on
patient data, and the server logs a warn naming every mapped Basic user
while no minimum is set.
Bootstrapping a new deployment
With Basic users persons only, a new deployment has no machine login to start from, so it starts in this order:
- Store the definitions the party mapping names. The server stores
FerroEHR’s default demographic definitions
as it boots, which the default mapping names. A mapping that names
templates of your own needs them stored first: run
ferroehr definitions loadon them before the server starts, since boot refuses a mapping whose templates the store lacks. - Grant the identity provider’s SCIM client. It is an OAuth 2.0
client-credentials client (RFC 6749 §4.4) of the deployment’s
authorization server with the provisioning scope: an
[[auth.issuer]]of kindmachinesissues its tokens, andferroehr party-binding grantgrants itscim_provisionin the CDR with the scope astoken_scopeand thebinding_issuerits Users’ keys are written under (The first grant). - Provision the first person through
/scim/v2/. The identity provider, or you through that client, sendsPOST /scim/v2/Users(RFC 7644 §3.3). FerroEHR creates thePERSONand its professionalROLE, and issues thePERSON’s id itself (RFC 7643 §3.1: theid“is always issued by the service provider”). - Only then map a Basic user, by that person’s binding key. A Basic
user mapped before its
PERSONexists is refused at its first request.
The first administrator is a provisioned person whose token carries the
administrator role from an issuer [authz.rbac] role_issuers lists.
The Docker Compose quickstart follows this path from an
empty database: its ferroehr-provision one-shot takes a token for the
quickstart-scim client and provisions the user ferroehr through
/scim/v2/ once the server is healthy, and ferroehr is mapped by its
key. The hosted sandbox does the same with its ferroehr-provision
service after every nightly reset, and its reseed waits for the login to
bind before it commits the demo data.
Migrating an existing deployment
An existing deployment attributes its people by login alone. It moves to
binding in four steps, each with its check. Add the persons issuers last:
from then on, every login with no PERSON is refused.
1. Prepare the existing persons
Bring every existing PERSON, for example those migrated from an earlier
system, to a template of the party mapping, with the login identifier at
the binding-key selector and the identity provider’s userName at its
selector. Leave externalId to the identity provider, which issues it
(RFC 7643 §3.1). A prepared PERSON performs no professional ROLE yet,
so it does not bind.
Adopt them. ferroehr party-binding adopt gives each listed PERSON
a professional ROLE of the mapping’s role template, with the PERSON as
performer, and a new PERSON version listing it in roles, in one
demographic CONTRIBUTION committed by the administrator you name, and
writes one access record per adopted PERSON:
ferroehr party-binding adopt --admin <ADMIN_PARTY_ID> \
--migration "<committer name of the migration>" <PARTY_ID>...
Under Docker Compose or the Helm chart, run it in the server’s container (Where the binary runs).
It refuses, naming them, every PERSON whose binding key was introduced
by a committer the provenance rule does not accept (step 3), so a key a
demographic writer planted before the upgrade is never adopted silently.
Adopt before the first SCIM run: without the ROLE, the provider’s
userName eq query finds no User and creates a duplicate.
At its next start, the server fills the binding side table from the party versions and refuses to start on any duplicate key, naming the parties.
2. Upgrade, then provision through SCIM
Check the upgraded configuration before the server starts on it with
ferroehr config check, which runs the boot validation and touches no
database (Where the binary runs
shows it on the new image under Docker and for the configuration a Helm
release refuses).
Start the upgraded deployment with only the SCIM client’s issuer
configured; the persons issuers come in step 4, so no clinician meets a
refusal while provisioning runs (for Microsoft Entra ID, the initial
provisioning cycle). The provider’s filter=userName eq "..." queries find
the existing persons whose keys are equal, so it updates them, writing
their externalId, and creates only the professionals who have no
PERSON yet. A bulk load through SCIM is the one sanctioned route.
3. Run the pre-flight
ferroehr party-binding check --admin <ADMIN_PARTY_ID> \
--migration "<committer name of the migration>" \
--expected assigned-users.txt
Under Docker Compose or the Helm chart, run it in the server’s container,
with the --expected file at a path inside it
(Where the binary runs).
ferroehr party-binding check reads the party versions and writes
nothing, so it runs before any boot fill. Per key issuer it reports the
persons that carry a key, duplicates, inactive and abandoned persons, the
provisional persons older than provisional_report_after, the key-bearing
persons that perform no professional ROLE (which adopt has not
reached), and every mapped Basic user with the PERSON it binds.
For each key it reports the committer of the version that introduced the
key, and fails unless that committer was a SCIM client (one whose ACTOR
holds or held a scim_provision grant), an
administrator you name, a migration you declare, or just-in-time creation
on a persons issuer an [[auth.party]] table binds. A stored version records no role its
committer held, so you name the administrators (--admin, --admin-key),
and the report repeats them.
With --expected, it reads the identity provider’s list of assigned users
(their login identifiers, exported from the provider, one per line) and
lists every one with no PERSON. The command exits non-zero on a
duplicate, a missing person or a key that fails the provenance rule.
4. Add the persons issuers
Add each persons issuer with its [[auth.party]] table. Every login with
no PERSON is refused from then on; the warn lines and the
binding_refusals metric show any the pre-flight missed.
Versions committed before binding
Versions are immutable, and nothing rewrites an AUDIT_DETAILS (RM Common
master06-change_control_package.adoc §Committal and Audits), so every
version committed before the upgrade keeps the committer it was committed
with. Only versions committed after it name the bound PERSON.
Go-live prerequisites in other products
A deployment whose FerroBRIDGE facade or FerroFED gateway writes to
FerroEHR adds its persons issuers only after the bridge and the gateway
reach it under the caller; until then their writes are refused by the
committer rule.
| Product | What it needs | Release |
|---|---|---|
| FerroBRIDGE | Writes to the CDR under the facade caller’s exchanged token (FerroHEALTH/FerroBRIDGE#1582) | FerroBRIDGE v0.0.23 |
| FerroFED | The gateway reaches the CDR under the caller (FerroHEALTH/FerroFED#1615) | none as of FerroFED v0.0.19; the issue’s FerroFED milestone is v0.0.20 |
No FerroFED release up to v0.0.19 reaches the CDR under the caller, so a
deployment with a FerroFED gateway adds its persons issuers only once a
FerroFED release carries that change (FerroHEALTH/FerroFED#1615).
Breaking changes of party binding
The release that binds every person to a demographic PERSON changes the
configuration and the wire in ways an existing deployment must act on.
Each change below has the upgrade step it needs and its own entry under
Changed or Removed in the changelog. The order to apply them in is on
Party binding: bootstrap and migration.
Configuration
- The family pins move together.
ferrohealth-smart0.9, withferrohealth-authz,ferrohealth-session,ihe-atna,ehds-logging,ihe-iti,ferrohealth-config,ferrohealth-serverandferrohealth-ui. Upgrade: nothing to set; the configuration changes below follow from theferrohealth-smart0.9 shape. - Every issuer is an
[[auth.issuer]]table with a requiredkind(persons,patients,machinesorfederation) and a profile, and holds every setting of its tokens itself. Upgrade: write each issuer as its own table, move the section-level settings (audience,algorithms,clock_skew_seconds, thejwks_*keys,timeout_ms,mode,role_claims,[auth.introspection]) onto it, give it itskind, and put patients and professionals at separate issuers. token_profile, the section-level issuer settings and theclaimkey of[[auth.party]]are deleted. A configuration that still names them refuses the start, naming what replaces it. Upgrade: replacetoken_profile = "jwt"withtoken_types = ["JWT"]and therequired_claimsthe issuer’s tokens carry, droptoken_profile = "rfc9068", and let the issuer profile’sperson_keyname the key claim.acting_for_claimandclient_tokensare removed with[authz.professional]. The issuer’skindand profile classify the caller. Upgrade: remove the table and list a client that acts for a person in its issuer’sdelegates.- Basic users are persons only. Every
[[auth.basic.users]]entry maps to aPERSONby its binding key in[[authz.party_binding.basic_user]], an unmapped one refuses the start naming the user, and every machine, read-only included, uses OAuth 2.0 client credentials under a declared[[authz.system_client]]. Upgrade: provision each person a Basic user stands for through SCIM, map the user by that person’s key, and move every machine to client credentials. - Every committing system client needs its declaration, and the
facility rule only checks. A system caller commits into an EHR only as a
client an
[[authz.system_client]]table declares, each COMPOSITION of a template itswriteslists and naming a facility itsfacilitieslists; the server never writes the facility for it. Upgrade: declare every client that commits, with itswrites,facilitiesandorigins, and give its compositions the facility identifier. From 5.7.1 the table is gone and a system client is granted in the CDR (Operational policy). - Import needs a role. Importing an EHR Extract needs
[authz.rbac] import_roleor asystem/caller. Upgrade: setimport_roleand give it to the accounts that import. From 5.7.1import_roleis gone, and every caller, person or system, imports only under animport_ehrorimport_ehr_extractgrant in the CDR.
Binding and the committer
- Unbound, inactive, abandoned and deprovisioned persons are refused.
A
personslogin whose key noPERSONcarries is refused with403(refused-unbound), and so is one whosePERSONis800|inactive|,801|abandoned|or deleted. Upgrade: provision every professional before you add apersonsissuer, through the four steps. - The professional
ROLEis what makes aPERSONbindable. APERSONbinds only while it performs aROLEof the mapping’s role template naming it asperformer. Upgrade: give each existing person itsROLEwithferroehr party-binding adoptbefore the first SCIM run. - The committer is the server’s. A bound caller commits under the
committer the server writes, and a stated committer must equal it or be
the placeholder
{"_type": "PARTY_IDENTIFIED", "identifiers": [{"_type": "DV_IDENTIFIER", "issuer": "<iss>", "id": "<sub>"}]}, which names the authenticated caller; any other is refused with403. Upgrade: stop sending a committer, or send the placeholder. - Every person’s committer carries the provider identifier, type
healthcare-provider, beside the login identifier and theexternal_refto thePERSON, and a representative commits as aPARTY_RELATEDnaming their ownPERSONand the coded relationship. Upgrade: read the provider and the representative from these committers. - A patient’s committer is
PARTY_SELFwithoutexternal_ref. Upgrade: find a person’s own entries by the committer’sPARTY_SELFtype, not by a formerexternal_ref. - System callers and patient context are strict. A system caller holds
system/scopes only, and a token carrying auser/orpatient/scope is refused with403; a patient-context token commits no demographic version. Upgrade: give each system clientsystem/scopes alone. - The parties binding relies on are protected. A key-bearing
PERSON, its professionalROLE, a representation relationship and a provisionedGROUPare written through the demographic API by an administrator only, and a present binding key changes only throughPOST /admin/party/binding-key. Upgrade: write these parties as an administrator.
Versions committed before the upgrade keep their committer: versions are
immutable, and nothing rewrites an AUDIT_DETAILS (RM Common
master06-change_control_package.adoc §Committal and Audits).
Security
A clinical data repository holds PHI, so its access controls and audit trail are part of the product. This chapter covers the four security surfaces you configure when you deploy FerroEHR: authentication (who is calling), authorization (what they may do), the pseudonymisation boundary (which role reads which domain), and the ATNA audit trail (recording what happened). Each is independently configurable, and each is described here in terms of the environment variables you actually set.
This chapter tells you how to configure each control. Its companions tell you the rest: the Threat model states what remains true after each control has done its job: the trust boundaries, the residual risk at each, and what this software explicitly does not defend against; and Verifying releases covers the artifacts themselves: how to establish that the binary, image, or chart you downloaded came from this project’s own build. Read the threat model before you decide a control is sufficient for your deployment.
- Authentication
- Authorization
- Response security headers
- Request limits and rate limiting
- Operational surfaces: what is reachable, and by whom
- Secrets: mount files, never bake values
- Verifying what you pulled
- The pseudonymisation boundary
- One instance, one organisation
- Version signing
- ATNA audit trail
Configuration follows the same pattern throughout: the server reads defaults,
then the single ferroehr.toml file, then environment variables, with __
separating nested keys. The security configuration groups live in
distinct sections of ferroehr.toml: [auth] (authentication), [authz]
(authorization), [privacy] (the pseudonymisation boundary), and [audit]
(the ATNA audit trail). Any key can be overridden with the matching
FERROEHR_* environment variable shown below.
Authentication
Authentication is on by default (FERROEHR__AUTH__ENABLED=true). Setting
it to false lets all requests through unauthenticated, a development-only
mode.
There is no single “mode” switch. The server offers two mechanisms and enables
each by the presence of its configuration. Both are checked by
ferrohealth-smart, the resource-server crate every FerroHEALTH product
shares; FerroEHR checks tokens and never issues them.
- HTTP Basic is active when
[[auth.basic.users]]lists a user. Each user has a user-id and an Argon2id password hash (a PHC string beginning$argon2id$) or apassword_hash_filepointing at one, and nothing else: the SMART on openEHR scopes and the RBAC roles it holds are thehold_scopesandhold_rolesgrants of itsPERSONin the CDR, and[authz.rbac] first_adminnames the one Basic user that holdsadmin_roleand the product scope from the configuration. Because it is a list of users, the Basic store is normally supplied through the TOML configuration file rather than environment variables. - OAuth 2.0 bearer tokens are active when
[auth]names anissuer. The server reads the issuer’s metadata and key set at boot and validates every token’s signature (asymmetric algorithms only), issuer, audience, lifetime and type under RFC 9068.
Every person a request comes from is bound to a demographic PERSON, and the
server writes each version’s committer from that party:
Who is the committer.
Both mechanisms are validated at startup, and a configuration the server cannot honour refuses to boot rather than degrading at the first request:
| Configuration | Boot outcome |
|---|---|
auth.enabled = true with no mechanism | error: a 401 challenge must name a scheme the server implements (RFC 9110 §11.6.1) |
an issuer with no audience | error: a server with no declared audience cannot reject another server’s token (RFC 9068 §4, RFC 8725 §3.9) |
an issuer not https (plain http is accepted on a loopback host only), carrying a query or fragment, or a user name or password | error: RFC 8414 §2, §6.2; OpenID Connect Core 1.0 §1.2 |
| an issuer whose metadata or key set cannot be read | error: the start is refused rather than the first request |
clock_skew above "5min" | error: leeway may be “no more than a few minutes” (RFC 7519 §4.1.4) |
algorithms naming an HS* algorithm, or empty | error: the server accepts asymmetric algorithms only (RFC 8725 §3.1, §3.2) |
a jwks_file holding a symmetric key or a private-key member | error: a verifier holds public keys only |
a product_scope that is neither a full URI nor starts with __ | error: SMART App Launch 2.2.0, Scopes and Launch Context, §Extensibility |
a password_hash below m=19456,t=2,p=1 argon2id | error: the OWASP Argon2id floor |
[authz.assurance] minimum with an empty levels map, or with no mapped value at or above it | error: every patient-data request would be refused |
an [authz.assurance] levels value that is blank or carries whitespace, a quote or a backslash | error: the step-up challenge names the values in one quoted acr_values parameter (RFC 9470 §3) |
[authz.professional] | error: removed; the issuer’s kind and profile classify the caller |
a persons issuer with no [[auth.party]] table, two issuers sharing an audience, or no [authz.party_binding] provider | error: every person is bound to a party, under the provider the deployment acts for |
a Basic user with no [[authz.party_binding.basic_user]] mapping | error: a Basic user is a person, bound by its key |
an [authz.rbac] role_issuers entry that is not a persons issuer | error: only a person holds an administrator or emergency role |
Successfully verified Basic credentials are cached for
FERROEHR__AUTH__BASIC__CACHE_TTL (default 5min; 0s turns the cache off
and checks every request) so a busy client pays the deliberately expensive Argon2 verification
once per TTL instead of on every request. The cache names each entry by a keyed
hash of the credential, never the password, and an entry exists only after a
successful verification. The user list and its password hashes are read at
boot, so removing a user or changing a password takes effect at the restart
that loads the new list, and that restart also empties the cache: the TTL never
keeps a removed user working.
The bearer settings:
| Environment variable | Default | Meaning |
|---|---|---|
FERROEHR__AUTH__ISSUER__0__ISSUER | unset (required for bearer tokens) | the first [[auth.issuer]] table’s expected iss, and where the metadata is read: RFC 8414 §3 first, OpenID Connect Discovery 1.0 §4 after a 404; index 1 is the second table |
FERROEHR__AUTH__ISSUER__0__KIND | required | persons, patients, machines or federation: whose tokens the issuer signs |
FERROEHR__AUTH__ISSUER__0__PROFILE | rfc9068 | the preset of the issuer’s token shape: rfc9068, entra, keycloak, okta or nl |
FERROEHR__AUTH__ISSUER__0__AUDIENCE | unset (required with an issuer) | accepted aud values |
FERROEHR__AUTH__ISSUER__0__ALGORITHMS | RS256,RS384,PS256,PS384,ES256,ES384 | accepted signing algorithms, asymmetric only |
FERROEHR__AUTH__ISSUER__0__CLOCK_SKEW | 60s | leeway on exp, nbf and iat; capped at 5min |
FERROEHR__AUTH__ISSUER__0__JWKS_FILE | unset | a static JWK Set of public keys, read instead of the issuer’s metadata |
FERROEHR__AUTH__ISSUER__0__JWKS_MAX_AGE | 10min | a key set older than this is read again |
FERROEHR__AUTH__ISSUER__0__JWKS_REFRESH_INTERVAL | 1min | an unknown kid reads the key set again at most once per interval |
FERROEHR__AUTH__ISSUER__0__TIMEOUT | 10s | one call to the authorization server |
FERROEHR__AUTH__REALM | ferroehr | the realm every challenge names |
FERROEHR__AUTH__PRODUCT_SCOPE | __ferroehr.platform | the scope that admits the ADMIN and DEMOGRAPHIC APIs |
There is no separate key-set URL to set: the server reads the jwks_uri from
the issuer’s metadata unless you supply a JWKS_FILE. A rotated key is picked
up on the first token that names it, bounded by the refresh interval, and a
withdrawn key stops verifying within the max age.
Every route also enforces its SMART on openEHR requirement: a valid token or
Basic user whose scopes do not grant the operation is refused with 403. See
SMART App Launch.
Tip
Keycloak example. Point the issuer at your realm and let discovery do the rest:
export FERROEHR__AUTH__ISSUER__0__ISSUER=https://keycloak.example/realms/ferroehr export FERROEHR__AUTH__ISSUER__0__KIND=persons export FERROEHR__AUTH__ISSUER__0__PROFILE=keycloak export FERROEHR__AUTH__ISSUER__0__AUDIENCE=ferroehr-apiA person signs in through a client the CDR grants
sign_in_persons, such as the viewer, on theAGENTcarrying its client id under the realm.Keycloak’s access tokens carry
typ: JWT, outside the RFC 9068 profile the server expects by default, which thekeycloakprofile admits. The client’s default client scopes put the SMART on openEHR scopes the routes need into each token’sscopeclaim.The same pattern works for Active Directory or any standards-compliant identity provider; walkthroughs for Entra ID and AD FS (and the answer for plain-LDAP directories) are in Enterprise identity providers. User accounts, roles, and lifecycle are administered in the IdP; the CDR has no user API.
An unauthenticated request to a protected route is refused with 401; an
authenticated request that lacks the required role or scope is refused with
403. Two outcomes are neither: a malformed Authorization header, or two
of them, is a 400 (the server never read a credential), and an unreadable
key set is a 503 (no token can be validated, so the server cannot decide; it
is not a statement about the caller’s credential). The per-status table for
client authors is in Using the API.
The 401 body deliberately says nothing about why, and neither does the
challenge: every token that does not hold gets the one invalid_token answer
(RFC 9068 §4), with no error_description. Rendering the rejection would tell
an unauthenticated caller whether a token was expired or forged, which is
exactly the distinction an attacker probes for; the reason stays in the debug
log, where the operator can read it and the caller cannot. A 403 names no
scope either, in its challenge or its body. A request that carried no
credential at all, or one for a scheme the server does not admit, gets no error
code: it has not made a mistake yet (RFC 6750 §3.1).
Assurance level and the natural person on patient data
Two optional blocks under [authz] judge how a professional
authenticated and who stands behind a token. Both are off by default; with
neither configured nothing below changes the wire.
[authz.assurance] reads the authentication assurance level from a
token claim (claim, default acr) and maps each value your identity provider
emits to an eIDAS level (levels: low, substantial or high). With
minimum set, a patient-data request whose token maps below it, carries a value
the map does not name, or carries no such claim is refused with 401 and the
OAuth 2.0 step-up challenge of RFC 9470 §3:
WWW-Authenticate: Bearer realm="ferroehr", error="insufficient_user_authentication",
error_description="patient data requires authentication at assurance level substantial or higher",
acr_values="http://eidas.europa.eu/LoA/high http://eidas.europa.eu/LoA/substantial"
acr_values lists every mapped value at or above the minimum, so a client can
send the user back to the identity provider with that request. EHDS Annex II 3.1
asks an EHR system used by health professionals for reliable identification and
authentication of them; Implementing Regulation (EU) 2026/2099 Art. 6(3) sets
substantial for cross-border exchange, and high from 26 March 2032.
The natural person behind a token is the issuer’s to say. Each
[[auth.issuer]] declares its kind, and ferrohealth-smart classifies every
token by it and by the issuer’s profile: a persons token through a client
the CDR grants sign_in_persons is the person, a token through a client the
CDR grants act_for_persons is that client acting for the person the token
names, and an app-only token is a system. The server asks the policy grants
while it classifies the token, from the copy each replica holds, so a grant
takes effect on the next request. A persons token through any other
client is refused with 401. The access record names the person by the
profile’s person_key, and a delegated token as the client acting for that
person; see Audit trail.
What counts as patient data: every API route except the definition family
(/definition/...: templates, archetypes, stored-query texts), terminology,
the aggregate counts under /admin/report, and the admin routes that manage
configuration, the retention policy, templates and
stored queries. The list of exceptions is closed, so a route
added later is judged patient data until it is listed. The health family,
/rest/status, discovery and /management are outside the API and never
judged.
Basic credentials carry no assurance level and no issuer-asserted person.
With minimum set a Basic request for patient data gets the same 401 step-up
challenge; definition routes stay reachable with Basic. A Basic user is a
person, bound by its key ([[authz.party_binding.basic_user]]).
The assurance level is judged before RBAC, so a caller below the level learns
it must step up rather than that it lacks a role. A client token acting for a
professional is held to the same level as any other token: the acr it
carries is the one judged, so a client-credentials token needs your
authorization server to put the professional’s assurance level on it.
Two limits worth planning around
Plain-HTTP issuers are accepted on a loopback host only. The server reads the issuer’s metadata and keys over TLS, because over plain HTTP an attacker on the network could serve their own signing keys (RFC 8414 §6.2); there is no switch that admits a plain-HTTP issuer elsewhere.
Revocation latency equals the access-token lifetime. Tokens are validated
offline against the issuer’s published keys; the CDR calls no introspection
endpoint (RFC 7662 defines that mechanism but does not require a resource server
to use it), so a token revoked at the identity provider stays acceptable here
until its exp passes. That is deliberate: introspecting per request would put
the identity provider’s availability in the request path, and caching the results
only shortens the lag. The control is therefore the token lifetime, which your
authorization server owns: keep access-token lifetimes short (minutes, not
hours) if prompt revocation matters, and use refresh tokens for session length.
clock_skew_leeway_seconds adds at most its own value on top of exp.
Authorization
Authorization has three composable layers. The per-EHR EHR_ACCESS gate with
the access evaluator is the openEHR-grounded base and is always on; the coarse
role layer is active when authentication is enabled; the patient scope is
opt-in. A request must clear every active layer. Deployments serving SMART apps can
enable a fourth, token-scope layer on top; see
SMART App Launch.
Per-EHR access control (EHR_ACCESS)
Every EHR carries a versioned EHR_ACCESS object, the openEHR
access-decision authority for that record. A new EHR has no settings, and what
that admits is a server-wide choice:
authz.rbac.ehr_access_default | An EHR with no settings |
|---|---|
open (default) | reachable by any caller the coarse layers already admitted |
restricted | reachable only by authz.rbac.admin_role |
open is the default because it is what every existing deployment runs, and
changing it changes who can read existing records. restricted is object-level
default-deny, and it is the setting to reach for if your threat model
includes a caller enumerating record ids: a server-created ehr_id is a
time-ordered UUIDv7, so it is not even unpredictable, and the OWASP
Insecure Direct Object Reference Prevention
cheat sheet is explicit that an unpredictable identifier is not itself an access
control.
Note
Under
restricted, the admin role still reaches a setting-less EHR. That is deliberate: a plain deny would make such a record unreachable by everyone (including the operator who would author the settings that fix it) which is an outage rather than a control. Bind callers to patients with the patient scope below; this key decides only the default disposition.
Committing settings of the access_directives scheme switches that EHR to
explicit policy, and those settings always win over the server default,
in both directions. The settings are an ACCESS_DIRECTIVE_SETTINGS, a class
of FerroEHR’s draft access control package, and every coded value is a code
of the access control groups of FerroEHR’s terminology ferroehr-operations:
{
"_type": "EHR_ACCESS",
"name": { "_type": "DV_TEXT", "value": "EHR Access" },
"archetype_node_id": "openEHR-EHR-EHR_ACCESS.access_directives.v1",
"archetype_details": {
"_type": "ARCHETYPED",
"archetype_id": { "_type": "ARCHETYPE_ID",
"value": "openEHR-EHR-EHR_ACCESS.access_directives.v1" },
"rm_version": "1.2.0"
},
"settings": {
"_type": "ACCESS_DIRECTIVE_SETTINGS",
"default_access": {
"_type": "DV_CODED_TEXT", "value": "restricted",
"defining_code": { "_type": "CODE_PHRASE",
"terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" },
"code_string": "restricted" }
},
"gate_keepers": [
{ "_type": "PARTY_SELF" },
{ "_type": "PARTY_RELATED",
"external_ref": { "_type": "PARTY_REF", "namespace": "demographic", "type": "PERSON",
"id": { "_type": "HIER_OBJECT_ID",
"value": "0190b3a2-5a3e-7c1d-9e2f-3b4c5d6e7f80" } },
"relationship": { "_type": "DV_CODED_TEXT", "value": "guardian",
"defining_code": { "_type": "CODE_PHRASE",
"terminology_id": { "_type": "TERMINOLOGY_ID", "value": "openehr" },
"code_string": "10" } } }
]
}
}
- Default access:
openadmits any caller the other layers admit.restrictedadmits the administrator (authz.rbac.admin_role), the gate-keepers, a caller with a live care relationship to the subject and a caller a consent permit names;consent_requiredadmits the administrator, the gate-keepers and a caller a consent permit names. Every other caller gets403withrefused-consent-required. The record’s person always reads their own record. An EHR Extract export by manifest (POST /message/export) passes the access evaluator for every EHR the manifest names before it reads any content, so one EHR the caller may not reach refuses the whole export. - Who writes the settings: a new
EHR_ACCESSversion is committed by a gate-keeper the current settings name, or by an administrator acting on the person’s instruction.PARTY_SELFnames the record’s person; any other gate-keeper names a party of the demographic service by itsexternal_ref, matched against thePERSONthe caller is bound to. With no gate-keeper, only an administrator changes the settings. Every other caller is refused with403. A gate-keeper commits changes with a CONTRIBUTION (there is no dedicatedEHR_ACCESSendpoint in the openEHR REST API). The controller commits them on the person’s instruction withPOST /ferroehr/rest/extensions/v1/admin/ehr-access, which names the EHR in its body, so it reaches an EHR a restriction hides, and reads every version withGET /ferroehr/rest/extensions/v1/admin/ehr-access?ehr_id=…. Every change is versioned and audited like all record content. - Who reads the settings: the administrator, the record’s person and the
gate-keepers. To anyone else the settings are absent, so a restriction stays
invisible to a provider (EHDS Art. 8): an AQL query returns no
EHR_ACCESSrow of the EHR, an EHR Extract leaves itsEHR_ACCESSout, and a CONTRIBUTION that commits anEHR_ACCESSversion reads as unknown (404). One caller more receives theEHR_ACCESSin an EHR Extract: the holder of anexport_ehr_extractgrant whosesubject_namespacecovers the EHR, such as a migration client, since the extract transfers the whole EHR and an import elsewhere must keep the person’s directives. - Every write is checked: a CONTRIBUTION, an EHR Extract import and an
admin archive load that carry settings are refused whole with
400naming the first defect: settings of another scheme (the removedFERROEHR_ACCESS_CONTROL_V1among them), a member the class does not declare, or a broken invariant of the draft package, named asCLASS.Invariant, such asACCESS_DIRECTIVE.Restriction_denies. - Unreadable settings: stored settings that do not read as the scheme
hold the EHR closed. A request that names the EHR is refused with
500, no query reaches it, and the server logs an error naming it. Only settings stored before the write check can hold an EHR. An administrator repairs a held EHR withPOST /ferroehr/rest/extensions/v1/admin/ehr-access/repair, body{"ehr_id": "…", "settings": {…}}: the new settings must pass the write check, the repair commits a newEHR_ACCESSversion with its own commit audit and contribution, and it writes an access record (ehr-access-repair:<versioned object uid>) naming the administrator. The repair is refused with409for an EHR that is not held; such an EHR changes its settings with a CONTRIBUTION. - Every replica decides by the committed settings: the commit of an
EHR_ACCESSversion writes the EHR’s settings, one row per directive and exception and one row per sensitivity label into side tables in the same transaction, and notifies every replica when it commits. Each replica holds a copy of each EHR’s settings and drops it on that notification, so a revoked gate-keeper or directive decides the next request on every replica. While a replica’s listener is down it reads the settings on every request, and a settings store that cannot answer is503. The first boot fills the side tables from the stored versions, andferroehr party-binding refillrebuilds them. - The access evaluator decides every request: see Access directives below.
- The default definition: every boot stores the archetype
openEHR-EHR-EHR_ACCESS.access_directives.v1.0.0when no definition of its id is stored, and never over a stored one. It constrains the settings toACCESS_DIRECTIVE_SETTINGSand its attributes; the definition upload validates an archetype that names a class of the draft access control package against the RM extended by that package. FerroEHR reads the settings by their codes, never by this id, so a deployment may use its own.
The scheme is a FerroEHR extension: openEHR mandates the EHR_ACCESS object
and its change control but publishes no concrete access-control scheme. The
decision also holds for AQL, ad-hoc and stored queries alike: data the caller
may not read contribute no rows, whether the query names the EHR in its
WHERE clause, in an EHR predicate, through the ehr_id parameter, or not
at all, as in a population query, and COUNT, LIMIT and OFFSET count only
the rows the caller reads.
Access directives
The access evaluator decides every request that reaches an EHR, after
authentication, the operation grants and the SMART scopes, by a fixed
procedure over three sets of facts: the person’s directives and labels in the
EHR’s EHR_ACCESS settings, the caller’s facts in the demographic service
(the operations, sensitivity clearances and permitted purposes its
capabilities grant, and the care teams it is a member of), and the
controller’s access policy. The first step that
refuses decides, and a deny overrides a permit:
| Step | What refuses | Answer |
|---|---|---|
| 1. Opt-out (EHDS Art. 10) | an opt_out directive, for an access service | 404, as for an unknown EHR |
| 2. Restriction (EHDS Art. 8) | a restriction directive, for a professional, a system or an access service, over the data it covers | 404, as for unknown data |
| 3. Consent deny | any other deny directive that applies; a representative a delegation directive names reads only what it permits | 403 refused-consent-denied |
| 4. Sensitivity | data whose label or classification the caller is not cleared for, and no applying permit names | 403 refused-sensitivity |
| 5. Care relationship | no live care relationship to the subject, where the access policy requires one | 403 refused-no-care-relationship |
| 6. Purpose | no declared purpose, or one the caller may not declare, where the access policy requires one | 403 refused-purpose-missing, 403 refused-purpose-not-permitted |
| 7. Default access | the settings’ default_access, or authz.rbac.ehr_access_default for an EHR with none | 403 refused-consent-required |
- Who is bound. The record’s person skips every step (EHDS Art. 3). A
representative is held to steps 1 to 3 and skips the others (Art. 4(2)).
An access service is a caller holding an
access_servicegrant or a verified caller of afederationissuer. - When a directive applies. Every attribute an
applies_toentry sets must hold for the caller: the party (its ownPERSONorAGENT, a care team it is a member of, the provider its client acts for, or aGROUPthat provider is a member of), a role it holds, thecarerelationship (a live care relationship), therepresentativeandproxyrelationships, or its caller kind. Itsoperations(read,write,export,query),purposesandtime_validitymust hold too, and itsdatascopes say which data it covers: objects, templates, root archetypes, categories (through the category map), sensitivities, origins and commit time. One level ofexceptionsof the opposite effect narrows it. - A fact that cannot be read never opens data. A
time_validitybound with no offset, a purpose the request does not declare, or a commit with no recorded origin is read as covered by a deny and not by a permit. - Emergencies. An access service that may override an opt-out and
declares one of
[audit] emergency_purpose_codesreads an opted-out EHR where the directive’semergency_overrideholds, unless it acts for the person (Art. 10(2)). The holder ofauthz.rbac.emergency_access_roledeclaring such a purpose reads data a restriction or a consent deny covers where itsemergency_overrideholds, and passes steps 4 to 7 (Art. 11(5)). A directive whoseemergency_overrideis false binds in every emergency, as an absolute opt-out of the Member State’s law does (recital 55). Each such access carries the emergency mark. - Every decision is a copy. The settings, the caller facts and the access policy are held on each replica and dropped on the notification of the commit that changes them, so a decision adds no database transaction. A named object is read for its template, archetype, origins and commit time only when a directive, label or classification of the EHR depends on them.
- Refusals. A
403names its code indetail, and withPrefer: return=representationin therefusalmember (problem types). Steps 1 and 2 say nothing.
The decision procedure, its order and its codes are FerroEHR’s own design:
RM EHR IM §EHR Access requires every decision to follow EHR_ACCESS, and
publishes no procedure.
Upgrading drops every stored EHR_ACCESS of the removed
FERROEHR_ACCESS_CONTROL_V1 scheme, with its history, and the next boot
gives each such EHR the default EHR_ACCESS with no settings, which the
server default governs. Commit new settings in the access_directives
scheme for the EHRs that had them. Upgrading also drops the Art. 8
restriction and Art. 10 opt-out registers below with their rows and their
admin routes: record each restriction and opt-out that stood again as a
directive.
Restriction of access by health professionals (EHDS Art. 8)
Regulation (EU) 2025/327 Art. 8 gives a person the right to restrict the access of health professionals and healthcare providers to all or parts of their data, and has the fact of the restriction stay invisible to healthcare providers. Art. 11(5) lets the restricted data be reached where necessary to protect the person’s vital interests, logged so the person can see it. No openEHR specification governs this; it is our own design.
- Recording it. A restriction is a
restrictiondeny directive of the EHR’s ownEHR_ACCESSsettings (theaccess_directivesscheme above). The controller records it on the person’s instruction by committing a newEHR_ACCESSversion withPOST /ferroehr/rest/extensions/v1/admin/ehr-access, for the whole EHR (nodata) or for the versioned objects itsdata[].objectsname, and lifts it by committing a version without it (the routes).GET /ferroehr/rest/extensions/v1/admin/ehr-accessreads every version, so a lifted restriction stays in the history, and an EHR Extract carries the versions. A whole-EHR restriction covers data recorded after it too. - What the server reads of it. The access evaluator reads every
attribute of the directive for each caller (Access directives):
its
datascope,applies_to,operations,purposes,time_validityandexceptions. The event stream, which has no caller, withholds every object a restriction in force covers, and the whole EHR for adatascope beyondobjects. - What a professional sees. Restricted data reads as absent: a restricted composition or EHR answers 404 exactly as an unknown one does, a query leaves it out at every scope (and a query scoped to a restricted EHR answers as for an unknown EHR), an export skips it, a CONTRIBUTION lists none of its versions, the event stream withholds it, and a write to it is refused as a write to an unknown target. No status, header or count says that a restriction exists.
- What it does not change. Nothing is deleted, and storage and the controller’s own processing go on: the admin routes (dump, archive, erase, the registers) see everything. It is not the GDPR Art. 18 restriction of processing, which answers 403 and stops processing itself.
- The emergency override. A caller holding the role
authz.rbac.emergency_access_rolenames that declares one of[audit] emergency_purpose_codesreads the restricted data where the directive’semergency_overrideholds, and its access record carries the emergency mark. Either alone lifts nothing. Unset, nobody may override.
[authz.rbac]
emergency_access_role = "EMERGENCY"
[audit]
purpose_codes = ["TREAT", "ETREAT"]
emergency_purpose_codes = ["ETREAT"]
The grain is the versioned object, the whole EHR, or both. A finer grain (one entry inside a composition) is not built: an object is the unit the version reads, the queries and the exports already decide on, and splitting a composition would change what the stored, signed version holds.
Opt-out from the access services (EHDS Art. 10)
Regulation (EU) 2025/327 Art. 10(1) lets a Member State’s law give a person “the right to opt out from the access to their personal electronic health data registered in an EHR system through the electronic health data access services referred to in Articles 4 and 12”, and has the Member State “ensure that the exercise of that right is reversible”. Art. 10(2) lets the Member State admit “a healthcare provider or health professional” where processing “is necessary in order to protect the vital interests of the data subject or of another natural person”, even after an opt-out. No openEHR specification governs this; it is our own design.
FerroEHR ships the software part: a mark on the whole EHR that the callers you grant as the access services read as absent. Whether the right exists, how the person exercises it, and the rules and safeguards of Art. 10(2) are your Member State’s law and yours to apply. Where the Member State enforces the opt-out in its own services, leave the mark unused.
- Granting the access services. Your Art. 4 access service (the
person’s) and your Art. 12 health professional access service each hold an
access_servicegrant in the CDR: a capability of aROLEtheirACTORorPERSONperforms (Operational policy).[authz.grants] alloweddoes not allowaccess_serviceby default, so the opt-out holds for nobody, and recording one is refused with 400. A role a token names grants nothing here. - Recording and reversing it. An opt-out is an
opt_outdeny directive of the EHR’s ownEHR_ACCESSsettings, at most one, covering the whole EHR. The controller records it on the person’s instruction by committing a newEHR_ACCESSversion withPOST /ferroehr/rest/extensions/v1/admin/ehr-access, and reverses it by committing a version without it (the routes). The reversed opt-out stays readable as a past version, and a version without one is accepted whatever the configuration, so an opt-out can always be reversed. Itsemergency_overridefalse makes it absolute: no vital-interest override lifts it (EHDS recital 55). - What an access service sees. A request from a caller holding an
access_servicegrant reads the EHR as absent: a route that names the EHR or an object in it answers 404 as for an unknown EHR, a population query leaves its data out, a query scoped to it answers as for an unknown EHR, an export and the lookup by subject find no such EHR, and a write to it is refused as a write to an unknown EHR. - What it does not change. Every other caller reads the record as before:
your own care, through callers that hold no
access_servicegrant, and the controller’s admin routes. Nothing is deleted. It is not the Art. 8 restriction above, which reaches every professional route and leaves the person’s own access open. - The vital-interest override. An access-service caller that declares one
of
[audit] emergency_purpose_codesreads the EHR where the opt-out’semergency_overrideholds, unless it acts for the person (a SMARTpatient/grant or the patient claim), because Art. 10(2) names a healthcare provider or health professional. Its access record carries the emergency mark, and a route that names the opted-out EHR, in its path or in aPOST /message/exportmanifest, adds an access recordaccess-opt-out-override:ehr-wideagainst it. - The record. Each commit and each read through the controller’s route
is an access record on the EHR (
ehr-access:ehr-wide) naming the administrator.
[authz.grants]
allowed = ["commit_composition", "access_service"]
[audit]
purpose_codes = ["TREAT", "ETREAT"]
emergency_purpose_codes = ["ETREAT"]
Information a person inserts (EHDS Art. 5)
Regulation (EU) 2025/327 Art. 5 lets a person, or their representative, insert information in their own EHR through the access services. That information “shall be clearly distinguishable as having been inserted by the natural person or by his or her representative”, and the person “shall not be able to directly alter the electronic health data and related information inserted by health professionals”. FerroEHR keeps both rules at the commit. No openEHR specification governs who may change what, so the rules are our own design; the marker is the RM’s own.
- Who counts as the person. A bearer token with a
patient/scope and nouser/orsystem/scope (for examplepatient/composition-*.cruds), from an issuer in[auth.smart] patient_issuers. The SMART scope grammar reservespatient/for “applications acting in the context of a specific patient/EHR” anduser/for those acting for a logged-in practitioner, so a clinician’s app usesuser/scopes and keeps every professional right. The patient claim ([auth] patient_claim) does not make a caller the person, because a professional’s token in a patient’s context carries it too. The rule is the FerroHEALTH family’s strict answer, shared throughferrohealth-smart; the Art. 3(3) delay below asks its broad one. - Who counts as the representative. A person bound to their own
PERSONwho acts for the patient through a representation relationship FerroEHR has recorded (how a login is looked up), through apersonsissuer or the patient portal (representatives in the patient portal). The rules below hold for the representative exactly as for the person. - The marker. Every version and CONTRIBUTION the person commits records
PARTY_SELFwith noexternal_refasAUDIT_DETAILS.committer, the RM’s way to say the committer is the record subject (RM common, Audit Details). A representative’s recordsPARTY_RELATED, naming the representative’s ownPERSONand the coded relationship. FerroEHR writes this committer itself and refuses one the request states that differs, in theopenehr-audit-detailsheader or in a CONTRIBUTION body. Every read of the version carries it, an AQL query reads it withv/commit_audit/committer, the contribution list extension flags the change set withinserted_by_person, and the viewer names the committer “The person or their representative”. The marker is part of the stored version, so a dump and its restore keep it. - The composer. A COMPOSITION the person or the representative commits
names the person (
PARTY_SELF) or their representative (PARTY_RELATED) as its composer. Any other composer is refused with 403, so the person cannot present what they insert as a professional’s. - What the person may change. The person and their representative may
update and delete a version whose committer is
PARTY_SELForPARTY_RELATED. An update or a deletion of a version anyone else committed, a professional or a system, is refused with 403 and a body that names EHDS Art. 5, whether it comes as a direct write or inside a CONTRIBUTION. Nothing is written. The marker is in the version, so the rule holds whatever became of the access record of the write. - What a professional may change. A professional’s writes are unchanged. A professional may update or delete an entry the person inserted; the new version is the professional’s, which the person may then no longer alter. The person’s own versions stay in the version history.
Delayed access by the person (EHDS Art. 3(3))
Regulation (EU) 2025/327 Art. 3(1) gives a person access to their data “immediately after the personal electronic health data have been registered in an EHR system”. Art. 3(3) lets a Member State restrict that right “by delaying access to their personal electronic health data for a limited period of time until a health professional is able to properly communicate and explain to the natural persons concerned information that can have a significant impact on their health”. Recital 10 gives the example: a diagnosis of an incurable disease should come first in a consultation, not through an electronic channel. This is the opposite direction of the Art. 8 restriction above: the data is withheld from the person, never from a professional. No openEHR specification governs it; it is our own design.
FerroEHR ships the software part. Whether the delay applies, to which data and for how long is the Member State’s rule, and you configure it in the access-delay register, an admin register. It is off by default, so the person’s access stays immediate.
- What is held. With the register on, every new COMPOSITION whose category
(the audit category register, template first,
then the root archetype) is listed in the register’s
categoriesis held from the moment it is committed, for the register’smax_delay. Only the first version is held: a composition the person has already seen stays visible when it is amended, and a professional holds an amendment by hand if it needs explaining. A composition the person commits is never held from them. - Who it is held from. A request that may be the person’s own: a bearer
token carrying a SMART
patient/grant, or the patient claim ([auth] patient_claim). A token that carries either is treated as the person’s, whateveruser/orsystem/grant it also carries, so a mixed token is withheld from rather than shown the data too early. The rule is the FerroHEALTH family’s, shared with the other products throughferrohealth-smart. To that request a held composition reads as absent: a read answers 404 as for an unknown composition, a query and an export leave it out, a CONTRIBUTION lists none of its versions, and a write to it is refused as a write to an unknown target. - What a professional sees. Everything, as before. The hold changes no professional route, query or export.
- Releasing it. The treating professional releases a composition once it
has been explained, from the clinical surface with
POST /ferroehr/rest/extensions/v1/ehr/{ehr_id}/versioned_composition/{versioned_object_uid}/access-delay/release. The route takes the checks of a write to that EHR: itsEHR_ACCESSgate, the patient scope and the SMARTcomposition-update grant. A request that may be the person’s is refused with 403. The controller releases withPOST /ferroehr/rest/extensions/v1/admin/access-delay/release, and holds one by hand withPOST /ferroehr/rest/extensions/v1/admin/access-delay, for at most the access-delay register’smax_delay(the routes). - The limit. Every hold ends by itself when its period passes, released or not, because Art. 3(3) allows a delay “for a limited period of time” only.
- The record. Placing a hold, releasing it and its expiry are each an access record: the release names the professional who made it, and the server writes the expiry record within a minute of the limit passing.
- The person’s access trail (Art. 9). A record about a held composition
would tell the person a result exists. The subject-scoped ITI-81 read, the
one a patient portal serves the person’s own trail from, leaves out every
record that names a held composition, its hold included, until the hold is
released or expires; the records then appear unchanged, with their original
times. The filter is
ehds-logging’s, the FerroHEALTH family’s EHDS logging component. The controller’s unscoped read shows every record at all times.
Turning the section off makes every held composition readable to the person at once: the holds stay in the register, and no new one can be placed.
RBAC (role-based, coarse)
Every openEHR operation is classified as Public, Clinical, or
Admin, and a role model gates each class. Roles are plain,
case-insensitive strings. A Clinical operation needs an authenticated caller
and no role; the configured roles default to ADMIN (admin_role, every
Admin operation) and READONLY (readonly_role, refused on every write).
| Environment variable | Default | Meaning |
|---|---|---|
FERROEHR__AUTHZ__RBAC__ENABLED | true | the coarse role gate (active only when auth is enabled) |
FERROEHR__AUTHZ__RBAC__ADMIN_ROLE | ADMIN | role required for admin operations |
FERROEHR__AUTHZ__RBAC__READONLY_ROLE | READONLY | role marking a principal read-only: refused on every write |
FERROEHR__AUTH__ISSUER__0__ROLE_CLAIMS | ["roles","groups","entitlements"] | JWT claim paths mined for roles, per issuer; a Keycloak issuer adds realm_access.roles |
FERROEHR__AUTHZ__RBAC__ROLE_ISSUERS | empty | the persons issuers whose role claims may grant the administrator and emergency roles; a token of any other issuer never holds them |
Roles come from the JWT claims listed in ROLE_CLAIMS, or from a Basic user’s
configured roles. The defaults are the carriers
RFC 9068 §2.2.3.1 names
for conveying authorization state (roles, groups, entitlements, of which
roles and entitlements are SCIM
attributes), the default every FerroHEALTH product shares. A claim path may be
dotted, so an issuer that nests them differently, such as Keycloak’s
realm_access.roles, is configuration rather than a code change; a claim
carrying a single string and one carrying an array are both accepted.
A Clinical operation needs at least one role of any name; an Admin operation
needs the admin role. A Basic user holds the roles its roles list names
and nothing else, so a user with none is refused every Clinical operation;
roles = ["USER"] satisfies the Clinical class and no Admin operation. A
bearer token whose SMART on openEHR resource scopes are all system/ scopes,
such as system/template-*.r, is a backend client and needs no role for a
Clinical operation: its scopes decide what it reaches. A user/ or patient/
token belongs to a person and still needs a role. The former user_role key is refused at boot.
Disabling RBAC restores authentication-only behaviour.
Important
The management surface is not configured here.
/management/*is governed entirely by[management.endpoints], one level per endpoint, and nothing under[authz.rbac]changes it. There is no global default beside it: an endpoint you do not name isoffand is not mounted at all.Each level means:
off, not mounted, answers404;private, any authenticated principal;admin_only, authenticated and holdingauthz.rbac.admin_role(the one place RBAC is consulted);public, no check at all, including no authentication.The consequence worth internalising:
prometheus = "public"is reachable by an anonymous caller whatever your RBAC settings say, because apublicendpoint is mounted outside the authentication layer. Lock the surface down by raising the levels in[management], and read the effective set back from/management/env(or from the boot log line that names every mounted endpoint and its level) rather than assuming.
Important
The OAuth2
scopeclaim does not grant roles. A scope grants a client delegated authority (RFC 6749 §3.3); it asserts nothing about the subject’s roles. Reading it as one also made the at-least-one-role check pass for every OIDC token, sinceopenidalone satisfied it. If your callers rely on a scope naming a role, move that role into one of the role claims above. Scopes remain on the principal and still drive SMART scope enforcement.
Note
The downloadable Compose quickstart deliberately runs with RBAC off and a single user, so every surface works out of the box (see Docker Compose). Turn the role gate on with
[authz.rbac] enabled = true(orFERROEHR__AUTHZ__RBAC__ENABLED=true) and give each principal an explicitroleslist.
A principal carrying the readonly_role (default READONLY) is refused on
every write operation (creating an EHR, committing a composition, uploading a
template, and any update/delete) even when it also holds granting roles such
as ADMIN (a restriction always overrides a grant). Reads and AQL queries stay
permitted, so a READONLY account is an authenticated, view-only principal. The
repository’s from-source development stack ships one such account
(ferroehr-readonly, password ferroehr) alongside ferroehr and
ferroehr-admin, with RBAC at its default enabled = true, so the separation
can be tried out; the downloadable quickstart file has neither (one user, no
role gate).
The patient scope
A deployment whose callers each act for one patient, such as a patient portal behind its own identity provider, binds each caller to that patient with an access-token claim. Fine-grained decisions about who may read what are the access evaluator’s, over the subject’s directives and the access policy, and take no key; the patient scope is an authentication binding on top of them.
| Key | Environment variable | Default | Meaning |
|---|---|---|---|
[auth] patient_claim | FERROEHR__AUTH__PATIENT_CLAIM | unset | The access-token claim naming the patient a caller is bound to. Unset or blank, no patient scope applies. |
[auth] patient_namespace | FERROEHR__AUTH__PATIENT_NAMESPACE | unset | The subject namespace (EHR_STATUS.subject.external_ref.namespace) the claim’s ids are issued in. |
With patient_claim set, every caller is held to the EHR whose subject the
claim names:
- A token without the claim is refused with
403. - An operation on another patient’s EHR is refused with
403before it runs, or, for a read whose EHR only the result names, after. That covers the EHR,EHR_STATUS, COMPOSITION, CONTRIBUTION and DIRECTORY operations and their item tags. The EHR Extract import routes are checked as EHR writes and the export routes as EHR reads; an export by manifest (POST /message/export) holds every EHR it names, and one EHR of another patient refuses the whole export. - An AQL query reads only the rows of the caller’s patient, whatever the query
scopes or projects, including a query that reads only the
ehrrow. - A subject-less EHR is in no patient’s scope. Without
patient_namespace, the claim names a subject by its id alone, so an EHR whose subject id another namespace also holds is refused, on a direct route and in a query. Withpatient_namespaceset, the claim names the pair of namespace and id.
Warning
The patient scope is fail-closed: a gate reached without an authenticated caller refuses, and a subject lookup that fails is a
500, or a503withRetry-Afterwhen no database connection could be obtained. It is never read as a permit.
Response security headers
Three surfaces, three honest answers: the set differs because what they serve differs.
The REST API carries, on every response including the transport-layer ones
(413 from the body limit, 408 from the timeout, 503 from the overload
bound, 500 from the panic handler), the health routes and the management
listener on its own port. The family server stack sets them outermost
(ferrohealth-server), each only where a response does not set its own:
| Header | Value | Why |
|---|---|---|
Cache-Control | no-store | responses carry patient data; the OWASP cheat sheet names no-store for exactly that. It does not affect openEHR’s ETag/If-Match concurrency control, which is a precondition mechanism, not a caching one |
X-Content-Type-Options | nosniff | stops a proxy or browser re-guessing application/json as something executable |
Referrer-Policy | strict-origin-when-cross-origin | request paths carry ehr_id and version identifiers; this keeps them out of cross-origin Referer headers |
Cross-Origin-Resource-Policy | same-site | refuses cross-site embedding of API responses |
X-Frame-Options | DENY | for the HTML this origin can serve (Swagger UI) |
Content-Security-Policy | default-src 'none'; frame-ancestors 'none' | the defensive minimum, applied wherever a response does not set its own; Swagger UI needs a real policy and brings one. The cheat sheet is explicit that CSP “might be meaningless in the response of a REST API that returns content that is not going to be rendered”, so this is not a policy pretending to govern scripts: it says nothing loads and nothing frames |
X-XSS-Protection and X-Powered-By are absent because the cheat sheet says to
remove them, and no Server header is sent at all.
Strict-Transport-Security: max-age=31536000 is sent only when FerroEHR
serves TLS itself ([server.tls]). RFC 6797 §7.2
requires a browser to ignore it over plain HTTP, which is how this server is
commonly reached behind a terminating proxy, and forbids a server to send it
there. Behind such a proxy, set it at the proxy or ingress that owns TLS.
includeSubDomains is left out, because FerroEHR does not decide for the hosts
beside it.
The viewer carries the FerroHEALTH console set instead, because it serves
HTML: a CSP that admits scripts and styles from its own origin alone
(script-src 'self'; style-src 'self', no nonce, no inline script or
style), Referrer-Policy: no-referrer and Cross-Origin-Opener-Policy: same-origin (the viewer chapter
lists them), with Cross-Origin-Resource-Policy: same-site from the API set
beside them. Its Cache-Control has one scoped exception to no-store:
FerroUI’s stylesheet, theme and scripts under /ferrohealth-ui/<version>/
are served no-cache, so the browser keeps them and revalidates them, and
they hold nothing clinical (the viewer reaches the CDR from its own server,
never from the browser). Every document carries no-store, because
documents carry patient data. An asset response that is not a served body
(a 404, a redirect) is never kept either.
The published documentation site cannot carry response headers at all: it is
static files on GitHub Pages, so its policy travels as a <meta http-equiv>
element, which is weaker by specification (frame-ancestors, report-uri and
sandbox are ignored in meta form). Its img-src admits one outside path,
https://raw.githubusercontent.com/FerroHEALTH/FerroEHR/, for the conformance
badges the Conformance workflow pushes. Anyone re-hosting these docs behind a
real web server should send the headers properly instead.
Request limits and rate limiting
Four different protections, four different statuses, and an operator should be able to tell them apart from the status alone.
Connection bounds: [server] header_read_timeout. The limit that applies
before a request exists, because a client that opens a socket and trickles
headers, or sends nothing at all, reaches none of the others: a client that has
not sent its request head in time, counted from accept, is disconnected, on the
plain and the TLS listener alike. On a kept-alive connection the bound counts
from the first byte of each later request head, and [server] idle_timeout
(two minutes by default) closes a connection that waits that long for its next request.
Keep it longer than the idle timeout of your clients (90 s for a Go client) and
of any load balancer in front, so they close an idle connection first.
Body size: [server] body_limit and [api] body_limit. Two
tiers: the routes that accept bulk by design (template upload and
/message/import) take the listener’s limit, and the clinical surface the
narrower [api] one when it is set. Over-limit is 413. The listener’s
default is the family’s 1 MiB; a deployment that uploads operational
templates raises it (the chart and the Compose files set 64 MiB), and one whose
compositions embed large DV_MULTIMEDIA data raises the clinical tier
deliberately.
Request rate: [server.caller_rate], unset by default and set by the chart
and the Compose quickstart. It sits inside authentication, keyed on the
authenticated subject, because a hospital behind one NAT is a single address and
address-keying a clinical API would throttle a whole site for one busy client.
Refusal is 429 with Retry-After.
Concurrency: [server] max_concurrent_requests, the admission bound.
Refusal is 503 with Retry-After; the health routes are never refused.
So: 503 means the server is full right now, 429 means you are asking too
fast, 413 means your payload is too big. Full key tables are on the
configuration page.
If you benchmark this server, turn the rate limiter off first, or you will
measure the limiter. Our own measurement lanes compose an overlay that disables
it, and both instruments refuse to write a record if the server answered any
429: a performance number that is really a configuration key is worse than no
number.
Operational surfaces: what is reachable, and by whom
Everything reachable without a credential is listed here, with the reason it
is public. Every other route answers 401 to a request without one, and a
test drives every mounted route to keep this list closed. A public answer says
only what a client or probe needs; the detail behind it is on the
authenticated /management surface.
| Surface | Default | Why it is public, or how it is gated |
|---|---|---|
/health, /health/liveness | always on, unauthenticated | Orchestrator probes carry no credential. Liveness answers {"state":"up"} with no I/O behind it; /health answers the readiness status with the state alone. |
/health/readiness | always on, unauthenticated | An orchestrator probe: 200 while ready, 503 while the process boots or drains or an indicator is down. The body is the state, the phase and each indicator’s name and state, nothing more. The detail is /management/health. |
{rest root}/status | always on, unauthenticated | A documented client contract: status, server version, ITS-REST version, timestamp and the deployment profile. The licence, the deployment gaps and the support period are /management/status. |
{rest root}/.well-known/smart-configuration | mounted only with SMART on | SMART App Launch service discovery, read before the client holds any token (ITS-REST SMART App Launch, Service Discovery). |
OPTIONS {base path} | always on, unauthenticated | The ITS-REST System API’s options manifest, which its released OpenAPI document declares without security. |
{rest root}/swagger-ui, {rest root}/api-docs/* | private (api.openapi_ui) | Public only if you set public; admin_only and off are the other levels. |
/management/* | not mounted at all (management.enabled = false) | With the master switch off, every route is 404. |
/management/{info,metrics,prometheus,env,loggers,flamegraph,health,status} | each off individually | Even with the master switch on, each endpoint stays unmounted until you name a level for it. There is no global fallback: silence means off, so a surface this privileged opens one endpoint at a time, by name. |
management.listen | unset (shares the API listener) | Set it to serve ops introspection from its own listener on its own port. It binds all interfaces and always stays plain HTTP even with [server.tls] on, so treat it as an internal surface and keep it off any publicly routed port; the interface half of the separation is your network’s, not this key’s. Under deployment.profile = "production" setting it opens the plaintext_listener gap, so the server refuses to start unless the gap is accepted by name. |
env and flamegraph deserve particular caution: env renders the
effective configuration (redacted, but still configuration), and flamegraph
starts a CPU profiler on request, which is both a disclosure and a
denial-of-service lever. Both are off until you name a level, and the profiler
additionally caps the window and sampling frequency, refusing an out-of-range
request rather than clamping it silently.
Secrets: mount files, never bake values
Every secret this server reads has a *_file sibling, and the loader reads and
trims the file at startup. Exactly one of a pair may be set; both is a boot
error naming the pair:
| Secret | File sibling |
|---|---|
| the database DSN, per storage domain, and the credential that prepares the schema | database.url_file, database.<domain>.url_file, db.migrate_url_file |
| a Basic user’s Argon2 hash | auth.basic.users[].password_hash_file |
| the PGP signing-key passphrase | record.signing.key_passphrase_file |
| a terminology OAuth2 client secret | [terminology].oauth.client_secret_file |
| the object-store secret key | multimedia.secret_access_key_file |
| the national-identifier root key | privacy.identifier_protection.key_file |
(The TLS certificate_file / client_ca_file settings and a static key
set’s auth.jwks_file are paths by nature and have no inline form at all,
which is the same property arrived at from the other direction.)
That is deliberately the shape Docker Secrets and Kubernetes Secrets deliver: a file mounted into the container. So the recommended posture needs no extra machinery.
services:
ferroehr:
environment:
# Point the key at the mount path; the VALUE never appears anywhere.
FERROEHR__RECORD__SIGNING__KEY_PASSPHRASE_FILE: /run/secrets/signing_passphrase
secrets:
- signing_passphrase
secrets:
signing_passphrase:
file: ./secrets/signing_passphrase.txt # or `external: true` in swarm
Why files rather than environment variables: an environment variable is readable
from /proc/<pid>/environ by anything in the container’s namespace, appears in
docker inspect output, is inherited by every child process, and is routinely
captured whole by crash reporters and process listings. A mounted file is none of
those, and it can be rotated without recreating the container.
Two properties worth knowing because they are not obvious:
- Redaction is a property of the type, not a list. Secret-bearing fields are a
Secret/SecretUrlnewtype whoseDebugand serialization render***, so a new secret key cannot be forgotten by a per-endpoint redactor:/management/envandferroehr config checkshow***because the type does, not because something remembered to hide it. A Basic password hash in[auth]is asecrecysecret of the shared crate’s section, rendered***the same way. - A Kubernetes
Secretis base64, not encryption. The cheat sheet is blunt about this: Secrets are stored unencrypted in etcd by default. Enable encryption at rest or use an external manager; the chart mounts whatever you give it and cannot make an unencrypted store safe.
Warning
The downloadable quickstart carries an inline Argon2 hash for its throwaway
ferroehruser, because a self-contained demo file cannot reference a secret you do not have. That is the one place a credential appears in our own artifacts, and it is a development credential by construction; replace it before any real use.
Verifying what you pulled
Release binaries, container images and the Helm chart carry signed build provenance, SBOMs and checksums, so you can establish that the bytes you are about to run came from this repository’s own pipeline and see what went into them. The commands, the SBOM formats, the SLSA levels claimed per artifact, and the published VEX justifications for scanner findings are all in Verifying releases. Enforcing image provenance at admission time inside a Kubernetes cluster is covered separately, in Images: build, provenance, scanning.
The pseudonymisation boundary
The pseudonymisation boundary separates a record from the person it is about, and it is enforced by PostgreSQL grants rather than by the server’s own routing: code that reaches for the wrong schema is a bug that can be fixed, while a database role able to read two domains defeats the separation however correct the code is.
GDPR Art. 4(5) defines pseudonymisation as processing where attributing data to a person requires additional information “kept separately and subject to technical and organisational measures”, and Art. 32(1)(a) names it a security measure for health data. EDPB Guidelines 01/2025 require that separation to hold against internal actors, operators with database access included.
Two domains hold the two parts, each behind its own role:
flowchart LR
server["FerroEHR server"]
server -->|ferroehr_clinical| ehr[("clinical<br/>versions and nodes,<br/>keyed by an opaque subject pseudonym")]
server -->|ferroehr_party| demo[("party<br/>parties, and national identifiers<br/>sealed under a per-domain key")]
server -->|audit writer| audit[("audit<br/>ATNA record repository")]
ehr -. barred .- demo
Read one domain and you hold a clinical record whose subject is an opaque
identifier, or a set of people with no records attached. Only the two together
re-identify anything, and no credential the server uses holds both. The
migrations create the roles, grant each its own schema, and revoke every
other domain explicitly, in both directions; each role is NOINHERIT and a
member of no other, so a grant cannot arrive through a membership.
The boundary is checked at startup, not assumed: the server reads the catalogue for every table, view, sequence and function each role can reach in a domain it does not own, and refuses to serve if it finds one, naming the role and the object. A misconfigured grant is a failed boot, not a silent weakening.
Two limits are worth stating plainly. The clinical schema holds a pseudonym
only when [privacy] subject_namespaces declares the namespaces a subject
reference may draw from — left unset, whatever a client sends is what gets
stored, and no schema split saves you from a national identifier written into
the clinical side; see
Privacy and identifiers. And the split is a
schema split by default: giving the demographic domain its own
[database.party] url is what turns it into a credential split, which is the
deployment step described in
Operations.
Resolving across the boundary
One question needs both domains at once: which record belongs to this
person? The server answers it in the application, over two connections, never
in the database. An EHR names its subject in its own
EHR_STATUS.subject.external_ref, which the ehr relation copies into its
subject columns on every EHR create and EHR_STATUS update. A cohort and the
AQL demographic join read the parties on the party connection and the EHRs whose subject names them on the clinical connection,
with a second search path and, when [database.party] url is set, a second
database role. FerroEHR matches, links and merges no patients, and offers no
lookup from a national identifier to its party.
No statement performs the join, because no credential could: the
clinical role holds no grant in party and the party role holds none in
clinical, both revocations are explicit and in both directions, and the boot
check refuses to serve a database where either has been given one. The
crossing exists as an application step that can be audited, rather than as a
query anyone holding one password could write.
Every crossing records an access event in the linkage domain, naming who
asked, the purpose of use they declared, and how many EHRs it reached. A miss
is recorded like a hit: it says someone asked whether this deployment holds a
record for that person. The event deliberately does not name the EHR that
came back. A record pairing a party with its EHR would make the audit trail a
map from parties to their EHRs, which the split exists to withhold.
Looking an EHR up by subject (GET /ehr?subject_id=…&subject_namespace=…)
does not cross the boundary. That operation matches the EHR’s own
EHR_STATUS.subject.external_ref, which is the opaque pseudonym the privacy
layer already constrains, so it resolves a pseudonym rather than an identity
and reads no party. It records a linkage-domain access event all the same,
naming the subject namespace and the EHR it found, because who resolved a
subject to a record is worth knowing wherever it happened.
The lookup puts the subject identifier in the URL, because ITS-REST passes it
as a query parameter. FerroEHR keeps it out of everything it writes: the
request log and every trace span record the path and the matched route without
the query string, and the 404 for an unknown subject names only the
namespace. A reverse proxy or load balancer in front of FerroEHR sees the whole
URL, so configure it not to log query strings on this route, or not at all.
FerroPIX as the EHR index provider (IHE PIXm, planned in
#3380) resolves a
patient identifier to an EHR without putting it in a FerroEHR URL.
Declaring the posture
The separations above are each a configuration key, and a deployment that has
made none of them is indistinguishable from one that has made all of them
until something goes wrong. The top-level deployment.profile key
(configuration) makes the
posture explicit: production refuses to start while a separation is missing
and not accepted by name, and reads the cluster each pool reached from
pg_control_system() rather than trusting the DSN text; sandbox, the
default, names every missing separation on the banner, in the boot log and on
GET /management/status, reports the profile on GET /rest/status, and must
not hold real patient data. The database keeps
its own line of defence for the subject pseudonym too: once
privacy.subject_namespaces is declared, a trigger on ehr refuses a subject
reference that is not a UUID, whichever code path or session writes it.
One instance, one organisation
FerroEHR is single-tenant, and that is where openEHR puts the boundary. BASE
architecture_overview/master06-design_of_the_ehr.adoc §The EHR System defines
a system as “a distinct logical repository corresponding to an organisational
entity that is legally responsible for the management and governance of the
healthcare data contained within”, and says it is “distinct from any underlying
virtualisation infrastructure or cloud computing facility, which may house
multiple logical EHR systems in a multi-tenant fashion”. Multi-tenancy belongs
to the layer that hosts several systems, not inside one of them.
So several organisations are served by several instances: one instance, one
database, one set of domain roles each. That is a stronger boundary than a row
predicate — a defect in a query cannot cross it, because there is nothing to
cross — and it is what the §System Identity rule needs, since system_id
“becomes embedded in the version identifiers of committed – and possibly
signed – content” and “cannot easily be changed afterwards”. One system_id
shared across organisations mints version identifiers that cannot tell the
responsible parties apart.
There is therefore no tenant column on any relation, no row policy, no session
variable to set and no [tenancy] configuration. What separates the clinical
record from the identity of its subject is the pseudonymisation boundary above,
which is a different question and stays.
Version signing
Every version the server commits can carry a VERSION.signature, computed
inside the write transaction over the canonical form of the version itself.
Signing is on by default in digest mode, and read-time verification of
the server’s own signatures defaults to strict, so a served version that no
longer matches its stored signature is a 500 rather than a silently served
record.
The chapter Version signing covers the mechanism in two
pages: Digest signing (what is signed, when, what the
stored value proves, and how to reproduce it yourself) and
PGP signing (key configuration and rotation, client-supplied
signatures, and the signature an import wrapper carries). The [record.signing] keys
are in the configuration reference.
ATNA audit trail
Separately from openEHR’s own provenance, FerroEHR keeps an IHE ATNA
security audit trail of API access: on by default, persisted in the
local Audit Record Repository (the dedicated audit PostgreSQL schema),
rendered in both official formats (FHIR R4 AuditEvent per IHE BALP, and
the DICOM PS3.15 audit message for the classic syslog feed), retrievable via
the RESTful-ATNA ITI-81 FHIR search, and optionally forwarded to an
external ARR over syslog and/or the ITI-20 FHIR feed. Node authentication
(ITI-19) is available as native mutual TLS on the listener.
Stored records are tamper-evident: each is linked into a SHA-256 hash
chain maintained by the database, the table refuses every rewrite path except
the forwarding stamp, and SELECT * FROM audit.verify_audit_chain() names any
record that was modified or removed. That is detection, not prevention: the
controls that make it hard to forge wholesale are the least-privilege database
role and the off-box sinks.
The full chapter (record content, sinks, tamper evidence, the ITI-81 search,
fail-mode semantics, and mTLS) is Audit trail (IHE ATNA);
every [audit] key is in the
configuration reference.
Note
The ATNA trail is orthogonal to openEHR’s own
CONTRIBUTIONandAUDIT_DETAILS, which the server always writes in the same transaction as every change. openEHR audit records what a version says about its own authorship; ATNA records security surveillance of API access. Both coexist. Identified data never enters telemetry (metrics, traces, logs), so the audit trail is the single place where access to identified data is recorded; see Operations.
Verifying releases
Before you run a FerroEHR binary, image, or chart in a clinical environment, you should be able to answer two questions about the bytes you downloaded: did they arrive intact, and were they built by this project’s own release pipeline. This page is the operator’s procedure for both: one command per artifact kind, plus the deliberately-failing runs that prove your verification is actually checking something.
Every release publishes signed build provenance, a dependency SBOM, and a plain checksum alongside each artifact. Provenance is signed through Sigstore, so you can verify it yourself, and the signer identity is one you can pin to a single hardened workflow.
The repository moved to the FerroHEALTH organization on 2026-10-01, and
v4.3.2 is the first release built there. Releases up to and including v4.3.1
were built and signed while it was rubentalstra/FerroEHR, so their
attestations name that repository: verify them with -R rubentalstra/FerroEHR
and --signer-workflow rubentalstra/FerroEHR/…. Their images and charts were
published under ghcr.io/rubentalstra. The copies of v4.3.1 under
ghcr.io/ferrohealth carry the same digests, so gh attestation verify accepts
them with the old repository name. Their cosign signatures exist only beside
the originals, so run cosign verify against the ghcr.io/rubentalstra path.
- What a release publishes
- A release binary
- Prove your verification can fail
- A container image
- The Helm chart
- The SBOMs, one per published artefact
- What SLSA level each artifact reaches
- The
openehr-*crates - Findings a scanner will report
- If verification fails
What a release publishes
Substitute the release tag you downloaded for <tag> (for example
v5.7.1-rc1) and the architecture for <arch> (x86_64 or aarch64) throughout
this page. Linux is the only published target.
| Asset | What it is |
|---|---|
ferroehr-<tag>-<arch>-unknown-linux-gnu.tar.gz | the stripped server binary |
…tar.gz.sha256sum | a plain checksum of that tarball |
…tar.gz.sigstore.json | the Sigstore bundle for its build-provenance attestation |
…tar.gz.sbom.sigstore.json | the Sigstore bundle for its SBOM attestation |
…tar.gz.intoto.jsonl | the same provenance as one DSSE-wrapped in-toto statement per line |
ferroehr-<tag>-<arch>-unknown-linux-gnu.cdx.json | the CycloneDX dependency SBOM for that binary |
ferroehr-<tag>.spdx.json | the SPDX SBOM of the source tree at the release commit |
ferroehr-<tag>-vulnerability-record.json | every finding of a full scan of each image and binary, each with the OpenVEX statement that judges it (the record) |
ferroehr-<tag>-trivy-reports.tar.gz | the raw Trivy reports the record was joined from |
<crate>-<crate-version>.cdx.json | the CycloneDX SBOM of each published openehr-* crate |
<crate>-<crate-version>.crate.sbom.sigstore.json | the Sigstore bundle binding that SBOM to the .crate archive crates.io serves |
docker-compose.yml + the Keycloak and observability overlays | the quickstart stack, so a downloader never has to clone the repository |
Container images and the Helm chart are published to GHCR by their own lanes and carry their own attestations; see images and the chart below.
Note
The release lane refuses to publish a release whose asset set is incomplete. It creates the release as a draft, attaches every asset, checks the full expected set is present, and only then publishes, because a published release is immutable on this repository, so a missing asset could never be added afterwards. The remedy for a bad cut is a new patch version, never a retag.
A release binary
The floor: the checksum. Every tarball ships a .sha256sum beside it, and
this is the only verification available with neither gh nor cosign installed
, which is a realistic constraint in a locked-down clinical environment:
sha256sum -c ferroehr-<tag>-<arch>-unknown-linux-gnu.tar.gz.sha256sum
The file records the bare filename, so this works in whatever directory you put
the two files in. On macOS, shasum -a 256 -c is the same check.
Warning
Be clear about what a checksum buys: it detects a corrupt or truncated download, not a substituted release, because anyone who could replace the tarball could replace the checksum beside it. Only the Sigstore bundle answers “who built this”. The checksum is a floor, not a substitute.
The real check: the provenance attestation.
gh attestation verify ferroehr-<tag>-<arch>-unknown-linux-gnu.tar.gz \
-R FerroHEALTH/FerroEHR
Without reaching GitHub. Each release also carries its Sigstore bundles as assets, so verification needs nothing but the artifact and the bundle, useful on an air-gapped host, and the only form in which the signature travels with the download:
gh attestation verify ferroehr-<tag>-<arch>-unknown-linux-gnu.tar.gz \
--bundle ferroehr-<tag>-<arch>-unknown-linux-gnu.tar.gz.sigstore.json \
--repo FerroHEALTH/FerroEHR
The *.sbom.sigstore.json asset beside it is the same thing for the SBOM
attestation, so “which dependency graph was this binary built from” is
verifiable offline too. Verifying an SBOM attestation needs one extra flag:
gh attestation verify enforces the SLSA provenance predicate by default, so
a non-provenance attestation must name its predicate type explicitly:
gh attestation verify ferroehr-<tag>-<arch>-unknown-linux-gnu.tar.gz \
-R FerroHEALTH/FerroEHR \
--predicate-type https://cyclonedx.org/bom
Fully offline, with no call to GitHub at all: fetch the trusted key material once on a connected machine and carry it across with the bundle:
gh attestation trusted-root > trusted_root.jsonl # on a connected host
gh attestation verify ferroehr-<tag>-<arch>-unknown-linux-gnu.tar.gz \
--bundle ferroehr-<tag>-<arch>-unknown-linux-gnu.tar.gz.sigstore.json \
--custom-trusted-root trusted_root.jsonl \
--repo FerroHEALTH/FerroEHR
Require the hardened signer. Without a signer constraint you are trusting that some workflow in this repository signed the artifact. Pin the one that actually did:
gh attestation verify ferroehr-<tag>-<arch>-unknown-linux-gnu.tar.gz \
-R FerroHEALTH/FerroEHR \
--signer-workflow FerroHEALTH/FerroEHR/.github/workflows/release-build.yml
That workflow is the reusable release-build lane described under SLSA levels below.
The binary also describes itself. From v4.0.1 on, the shipped binary
embeds its own compressed dependency list in a .dep-v0 linker section
(built with cargo auditable;
the section is allocated, so it survives the release lane’s strip). A
scanner that reads binaries — syft, trivy, grype, osv-scanner — recovers the
crate graph from the artifact itself, even when the release page’s SBOM never
travelled with it:
syft ferroehr -o cyclonedx-json # the extracted binary, not the tarball
From v4.3.5 on, the binaries inside the ferroehr and ferroehr-viewer
images are built with cargo auditable as well, so a scan of either image
lists the Rust dependencies of the binary it carries, and the
exploitability record judges them per image.
Images of earlier releases carry no such list: a scan of them sees the
operating-system layer only, and the server’s Rust dependencies are visible
through the tarball scan and its SBOM.
# <version> is v4.3.5 or later, without the v
trivy image --list-all-pkgs --format json ghcr.io/ferrohealth/ferroehr-viewer:<version> \
| jq -r '.Results[] | select(.Type == "rustbinary") | .Packages[] | "\(.Name) \(.Version)"'
Tip
gh attestation verifyreports success by exiting zero and printing nothing in currentghversions. Check the exit status in scripts rather than grepping for a success message.
Prove your verification can fail
A check that cannot fail proves nothing, so do both of these once, by hand, before you trust a passing run:
# 1. Tamper with the artifact — verification must refuse it.
printf 'x' >> ferroehr-<tag>-<arch>-unknown-linux-gnu.tar.gz
gh attestation verify ferroehr-<tag>-<arch>-unknown-linux-gnu.tar.gz \
--bundle ferroehr-<tag>-<arch>-unknown-linux-gnu.tar.gz.sigstore.json \
--repo FerroHEALTH/FerroEHR
# → Error: verifying with issuer "sigstore.dev"; exit status 1
# 2. Name a repository that did not build it — also non-zero.
gh attestation verify … --repo someone-else/something
Re-download the tarball afterwards. Only once you have seen both refusals does a passing run mean something.
Cross-check the digest. The same digest is produced independently in three places, so they are worth comparing against each other rather than trusting any one of them:
# the published checksum file
cat ferroehr-<tag>-<arch>-unknown-linux-gnu.tar.gz.sha256sum
# the digest the provenance statement was signed over
jq -r '.payload' ferroehr-<tag>-<arch>-unknown-linux-gnu.tar.gz.intoto.jsonl \
| base64 -d | jq -r '.subject[].digest.sha256'
# the bytes on your disk
sha256sum ferroehr-<tag>-<arch>-unknown-linux-gnu.tar.gz
A container image
The three images (ferroehr, ferroehr-viewer, ferroehr-postgres) each
carry a Sigstore-signed SLSA provenance attestation, plus the SPDX SBOM and
provenance the builder writes onto the image index itself.
gh attestation verify oci://ghcr.io/ferrohealth/ferroehr:5.7.1-rc1 \
-R FerroHEALTH/FerroEHR
Important
Image tags carry no
vprefix. A release publishes4.0.0,3.20andlatest(plus asha-…tag per commit), while the release assets are named after thev4.0.1git tag. Usingv4.0.1as an image reference will simply not resolve.
The development tags (ghcr.io/ferrohealth/ferroehr:main and its two
siblings) are signed the same way, so you can rehearse the command against them
before a release.
Add --signer-workflow FerroHEALTH/FerroEHR/.github/workflows/build-image.yml
to require the hardened image-build lane specifically rather than any
workflow in this repository.
Verify by digest where it matters. A tag is mutable, so anything that GATES on verification (admission control, a deploy script) should resolve the tag once and verify the digest it resolved — otherwise the bytes verified and the bytes pulled can differ:
digest=$(docker buildx imagetools inspect ghcr.io/ferrohealth/ferroehr:5.7.1-rc1 \
| awk '/^Digest:/{print $2}')
gh attestation verify "oci://ghcr.io/ferrohealth/ferroehr@${digest}" \
-R FerroHEALTH/FerroEHR
The attestation is also pushed to the registry itself, so a host with
registry access but no GitHub API path can verify from the registry alone
with --bundle-from-oci. And the SBOM the builder wrote onto the image index
is readable without any verifier at all:
docker buildx imagetools inspect "ghcr.io/ferrohealth/ferroehr@${digest}" \
--format '{{ json .SBOM }}'
Enforcing this at admission time in a Kubernetes cluster is a separate job with its own machinery; see Images: build, provenance, scanning.
The Helm chart
The chart carries a keyless cosign signature in addition to its provenance attestation. The two are not redundant: the attestation says what the chart was built from, the signature says who signed the artifact you pulled, and the signature is what Helm-ecosystem tooling looks for.
cosign verify ghcr.io/ferrohealth/charts/ferroehr:<chart-version> \
--certificate-identity-regexp '^https://github\.com/FerroHEALTH/FerroEHR/\.github/workflows/build-chart\.yml@' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
Both flags are the point: without an identity and an issuer, cosign verify
accepts a signature from anyone in the transparency log.
gh attestation verify oci://ghcr.io/ferrohealth/charts/ferroehr:<chart-version> \
-R FerroHEALTH/FerroEHR \
--signer-workflow FerroHEALTH/FerroEHR/.github/workflows/build-chart.yml
Note
The chart version is not the product version. The chart runs its own SemVer line, so a chart version and the
appVersionit deploys move independently. Read the chart’sappVersionto learn which server release it defaults to.
The chart ships no PGP .prov file, so helm install --verify does not
apply. That is deliberate: a .prov needs a long-lived private key in CI, and
keyless Sigstore signing gives a consumer a stronger identity to pin without
one.
The publishing lane refuses to overwrite a chart version that already exists,
reads both the signature and the attestation back from the registry before
reporting success, and checks that the appVersion image accepts the chart’s
rendered defaults. It also attests the chart’s SBOM, which names every
image the chart deploys by digest
(the SBOMs).
The SBOMs, one per published artefact
Every artefact this project publishes carries a software bill of materials, and each one answers a different question about a different download:
| Artefact | SBOM | Where | Format | Answers |
|---|---|---|---|---|
| the server binary | ferroehr-<tag>-<arch>-unknown-linux-gnu.cdx.json | a release asset per architecture, attested against the tarball (…tar.gz.sbom.sigstore.json) | CycloneDX 1.5 | what is inside the binary I am about to run? Every cargo component with a pkg:cargo/… purl and licence, most with checksums, and the dependency edges, so “is this crate direct or four levels down” is answerable. This is what a vulnerability scanner consumes. |
| each container image | the image SBOM | written onto each image index by the builder | SPDX | what is in the image’s OS layer? Which is what matters for ferroehr-postgres, built on the upstream postgres image. |
each openehr-* crate | <crate>-<crate-version>.cdx.json | a release asset per crate, attested against the .crate archive crates.io serves (<crate>-<crate-version>.crate.sbom.sigstore.json) | CycloneDX 1.5 | what does this library pull into my build? The crate’s normal and build dependencies; dev-dependencies are left out, as cargo package strips them. |
| the Helm chart | the chart SBOM | an attestation on the chart’s OCI digest in GitHub’s attestation store | CycloneDX 1.5 | which images does this chart deploy? Each image the chart can deploy, named by repository, tag and the digest the tag resolved to when the chart was published, with its platforms. |
| the source tree | ferroehr-<tag>.spdx.json | a release asset per release | SPDX 2.3 | what am I redistributing, and under what terms? The attribution and licence-obligation view of the source tree at the release commit, the document a legal or procurement reviewer of a multi-licence redistribution asks for. |
The crate SBOMs ride the server release that ships them, so <crate-version>
is the crate’s own version (the crates run their own SemVer line). A crate
version that did not change in a release is described again, against the
archive crates.io already serves. Verify a crate SBOM against the archive you
downloaded:
curl -sSLO https://static.crates.io/crates/openehr-rm/openehr-rm-<crate-version>.crate
gh attestation verify openehr-rm-<crate-version>.crate \
-R FerroHEALTH/FerroEHR \
--predicate-type https://cyclonedx.org/bom \
--signer-workflow FerroHEALTH/FerroEHR/.github/workflows/release.yml
Read the chart SBOM, and verify it in the same step:
gh attestation verify oci://ghcr.io/ferrohealth/charts/ferroehr:<chart-version> \
-R FerroHEALTH/FerroEHR \
--predicate-type https://cyclonedx.org/bom \
--signer-workflow FerroHEALTH/FerroEHR/.github/workflows/build-chart.yml \
--format json --jq '.[].verificationResult.statement.predicate'
CycloneDX 1.5 is the highest version cargo-cyclonedx emits (it accepts 1.3,
1.4 or 1.5 and defaults to 1.3, so the release lane sets it explicitly); it
carries everything 1.6 consumers read. The release lane refuses an SBOM that
is not the format it claims or that names another artefact: the repository
SPDX document must name itself ferroehr and list at least one package, a
crate SBOM must describe that crate at that version, and every image in the
chart SBOM must resolve to a sha256 digest before the chart is pushed.
What SLSA level each artifact reaches
The levels are the SLSA v1.2 Build track (the current spec; v1.0 is marked Retired, and the Build-track requirements are unchanged across those versions — GitHub’s own documentation still phrases the same construction against “SLSA v1.0”). They differ per artifact, so a table is the honest form:
| Artifact | Level | Why |
|---|---|---|
| release binaries + their SBOM | Build L3 | built and attested inside a reusable workflow (release-build.yml), so the signing material is out of reach of any caller-defined step |
| container images | Build L3 | built, pushed and attested inside a reusable workflow (build-image.yml); the calling jobs pass names and label text, never steps |
| the Helm chart | Build L3 | packaged, pushed, signed and attested inside a reusable workflow (build-chart.yml); the caller carries only triggers |
Images and the chart reach L3 from the first publish after v4.0.1; earlier artifacts were attested at Build L2 (in the job that built them), and their attestations verify with the repository-scoped command, not the pinned signer.
Build L3’s distinguishing requirement is that secret material used for
authenticating the provenance “MUST NOT be accessible to the environment
running the user-defined build steps”. Every step of a GitHub Actions job shares one runner VM, so
attesting inside the building job cannot satisfy it. The release lane therefore
builds and signs inside a reusable workflow: it runs on its own VM, and a caller
passes declared inputs; it cannot add steps. The calling job has no steps at
all, which is what makes the property hard to lose by accident, and it is why
--signer-workflow is worth passing.
What is still not claimed, in either lane: the isolation is GitHub’s rather than this project’s, and nothing here asserts a reproducible or hermetic build; those are separate SLSA tracks this project does not address. Provenance proves where an artifact was built, not that the source was good. Naming the boundary is worth more than rounding a level up.
The openehr-* crates
The nine specification crates publish to crates.io through Trusted
Publishing: the workflow authenticates with a short-lived OIDC token, and no
long-lived crates.io token exists anywhere. Be precise about what that does
and does not give you: it is authentication, not provenance. crates.io
records and displays nothing about how a crate was built, and the Rust RFC
that introduced Trusted Publishing lists provenance verification as
explicitly out of scope — there is no registry-side attestation to verify,
from this project or any other. cargo checks the crate’s checksum against
the registry index, and that is the whole registry-side story. The crates’
source of truth is this repository: the publishing lane, the tags, and the
public history.
What this repository does attest is each crate’s SBOM, against the very
.crate archive crates.io serves; the crates.io leg of the release reads that
attestation back from crates.io’s own copy after publishing. See
the SBOMs for the command.
Findings a scanner will report
Run a scanner over a FerroEHR artifact and it will report findings. Every one
this project has assessed and accepted is published as an
OpenVEX document under
security/vex/,
carrying a controlled-vocabulary justification and an impact statement you can
check, rather than an ignore entry that records only the verdict. Point your
tooling at them (trivy --vex, and most SCA platforms take an OpenVEX feed).
| Document | Covers |
|---|---|
rust-advisories.openvex.json | the Rust dependency advisories: the ones the advisory gate accepts, plus one that only a Cargo.lock-reading scanner reports |
ferroehr-os.openvex.json | the Debian packages the ferroehr and ferroehr-viewer images inherit from their distroless base (glibc, the GCC runtime libraries, zlib) |
postgres-os.openvex.json | the Debian packages of the ferroehr-postgres image, one statement per finding |
A statement with status affected names a finding that applies to you, with
an action statement saying what to do until the fix ships. trivy --vex
leaves those findings in its output on purpose; only not_affected and
fixed statements remove one.
The ferroehr-postgres image is the upstream postgres:18.6 image with
Debian’s security updates applied at build time, minus two things: GnuPG and
the libraries only it uses (upstream needs it only to import a package signing
key while building the image), and upstream’s gosu, a Go binary, which a
short shell wrapper around util-linux setpriv replaces under the same name.
Every finding that remains is a Debian package with no fix in Debian yet. Six
are affected: three libxml2 findings and two glibc character-converter
findings, which any database login reaches through PostgreSQL’s XML functions,
and the resolver finding CVE-2026-8674. FerroEHR sends no XML to the database,
so the action statements come down to giving database logins only to the
FerroEHR roles and your administrators, and keeping the resolver configuration
the container receives under your control.
The Rust document is generated from deny.toml (the gate that actually
decides whether a build passes) joined with the published reasoning, and a CI
job fails if the two disagree in either direction. So an advisory cannot be
accepted without a justification reaching you, and a justification cannot claim
something the gate does not do.
The ferroehr-os.openvex.json statements argue from what the one program in
each image loads and imports: libgcc_s, libm, libc and the loader, no
RPATH or RUNPATH, no dlopen, no C++, and a named list of glibc functions it
never calls. Each statement carries those facts as data in a ferroehr:linkage
block, and the release pipeline reads them back off every ferroehr and
ferroehr-viewer binary it builds, on amd64 and arm64, with readelf before
the image is assembled. A binary that needs another library or imports a listed
function stops the release, so the statement you read describes the binary in
the image you pull. You can repeat the check on a binary you extracted from an
image: bash scripts/checks/vex-linkage.sh <path>/ferroehr (it needs GNU
readelf and jq).
One asymmetry worth knowing, because it produces findings that are real reports
of nothing. Cargo.lock records the union of every dependency any feature
combination could pull, so a scanner reading the lock file alone reports
crates this project’s feature set never compiles. cargo deny resolves features
and does not. Where the two disagree in that direction the feature-resolving
tool is the more precise instrument, and the VEX document carries that argument
for the specific crate it applies to, so you do not have to take our word for it
in prose.
The published images are additionally re-scanned every day at the tag an operator actually pulls. A fixable high-or-critical finding files or updates one tracker issue, and the issue is the alert: the scheduled run itself stays green, because a red scheduled run nobody looks at is not a control.
The exploitability record
The scan that gates an image blocks only high and critical findings that have
a fix. Every release therefore also scans each image (ferroehr,
ferroehr-viewer, ferroehr-postgres, both platforms, at the digest the
release pushed) and each server binary (x86_64 and aarch64) with no
severity floor and unfixed findings included, and publishes the result as
two release assets:
ferroehr-<tag>-trivy-reports.tar.gz: the raw Trivy JSON reports, one per image and platform and one per binary.ferroehr-<tag>-vulnerability-record.json: every finding from those reports, joined with the OpenVEX statement undersecurity/vex/that judges it. Each entry names the product (pkg:oci/<image>orpkg:cargo/ferroehr-server), the vulnerability id, the package and its installed version, the fixed version where one exists, the severity, and the statement: its status (not_affected,affectedorfixed), its justification, impact statement or action statement, and the document it comes from.
The release is refused while any finding has no such statement: the record is
checked before the images are tagged, so a refused release leaves its images
untagged and its GitHub release a draft. The rule for a finding with a fix is
to fix it by rebuilding, not to judge it. A statement counts only when it is a judgement:
under_investigation does not, and neither does not_affected without a
justification or impact statement, or affected without an action statement.
Read what a release shipped and why:
gh release download <tag> -R FerroHEALTH/FerroEHR -p 'ferroehr-*-vulnerability-record.json'
jq -r '.records[] | [.product, .id, .severity, .statement.status, .statement.justification] | @tsv' \
ferroehr-<tag>-vulnerability-record.json | sort -u
If verification fails
A failing verification is a security report, not a support question. Do not run the artifact, and follow SECURITY.md: report privately, never as a public issue. Note that only the newest release receives fixes; there is no maintenance branch to backport to.
Threat model
This chapter says what FerroEHR defends against, how, and (more usefully)
what remains true after the control has done its job. It exists because the
parts of this system that actually protect patient data are the parts no
external specification governs: openEHR’s REST specification makes
authentication a SHOULD and mandates no scheme, and no openEHR specification
governs authorization, so only the 401-versus-403 split is
specification-grounded. Everything finer is this project’s own design, and a
design nobody has written down asks every deployer to reconstruct it privately.
- What this is, and what it is not
- Assets
- Actors
- Trust boundaries
- What each database credential can reach
- Re-identification
- What is explicitly NOT defended against
- Reporting a finding
What this is, and what it is not
This is an attack-surface and trust-boundary analysis with named residual risk. Boundaries are enumerated, the control at each is stated, and the risk that survives the control is stated beside it.
It is not a certification, an audit report, or an assurance case in the formal sense, and it does not make FerroEHR compliant with anything. It is also not a substitute for your own analysis: your deployment introduces boundaries this document cannot see: your identity provider’s token policy, your network, your operators, your backups. The value here is that you do not have to reverse-engineer our half of it from configuration prose.
Read it alongside Security (how each control is configured), Audit trail (what is recorded), Verifying releases (establishing what you are running), Operations (the deployment surface) and Cluster hardening (what the platform owes).
Where this document and the code disagree, the code is right and this document is a defect. Report it.
Assets
What an attacker wants, in the order the loss hurts:
| Asset | Where it lives | Why it matters |
|---|---|---|
| Clinical payload: compositions, EHR status, folders | the clinical schema’s node and version tables, archival partitions included | this is PHI; disclosure is the primary harm and it is not undoable |
| Demographic parties and their identifiers | the party schema, archival partitions included, with protected national identifiers sealed in national_identifier | who the people are, held apart from what is recorded about them |
| The EHR id / subject cross-reference | the EHR’s own EHR_STATUS.subject.external_ref, promoted to the clinical.ehr subject columns | the additional information that re-attributes a pseudonymised record to a person once joined to the party or the identity source |
| The audit trail | the audit schema, plus any configured forwarding sink | it is the evidence that everything else happened; an attacker who can edit it can make an access disappear |
| Version history and its integrity | version, vo_head, contribution, attestations | an openEHR record’s value is that it is append-only and attributable; a silently rewritten prior version is worse than a deleted one |
| Signing keys | the configured signing key material for commit attestation | forging an attestation forges provenance of clinical content |
| Bearer credentials and password hashes | tokens in flight; Argon2id PHC hashes at rest | a stolen token is an authenticated clinical caller until it expires |
| Instance separation | one instance, one database, one set of domain roles per organisation | two organisations sharing one instance is a breach of both at once |
| Availability | the whole stack | a CDR that is down is a clinical system that is down; denial of service is a patient-safety issue here, not an inconvenience |
Actors
| Actor | Reaches | Assumed capability |
|---|---|---|
| Unauthenticated caller | the listening port | can send arbitrary bytes, replay anything observed, and probe every route |
| Authenticated clinical caller | the openEHR API within their grants | holds a valid token; may be a legitimate user acting outside their remit, or a compromised client |
| Admin / management caller | the admin, management and messaging surfaces | can delete physically, archive, dump and load; the most dangerous authorized actor |
| Database | everything stored | trusted for confidentiality, but assumed to be a place where a mistake is permanent |
| Terminology server (FHIR R4B) | called out to at validation and commit time | operator-configured; semi-trusted: it answers our questions and can lie |
| Object store (S3) | called out to for multimedia | operator-configured; semi-trusted, and its responses are parsed |
| Outbox reader | pulls change events over the feed | operator-configured, holding the __ferroehr.outbox scope; a sink for data, so a confidentiality boundary |
| Identity provider | issues the tokens everything else believes | fully trusted by construction; if it is compromised, no control below it holds |
| Cluster / host operator | the process, its memory, its filesystem, its secrets | fully trusted; outside the software’s reach |
Trust boundaries
flowchart LR
subgraph Untrusted
U[Unauthenticated caller]
C[Clinical client]
A[Admin client]
end
subgraph Deployment["Deployment boundary (operator-controlled)"]
subgraph Server["FerroEHR process"]
B1["B1 network + protocol"]
B2["B2 authentication"]
B3["B3 authorization<br/>EHR_ACCESS - RBAC - patient scope - SMART"]
B4["B4 content validation"]
B5["B5 instance separation"]
end
DB[("B6 PostgreSQL")]
AUD[("B7 audit store")]
end
subgraph External["Semi-trusted peers"]
IDP[Identity provider]
TS[Terminology server]
S3[Object store]
MQ[Outbox reader]
end
U --> B1
C --> B1
A --> B1
B1 --> B2
B2 --> B3
B3 --> B4
B4 --> B5
B5 --> DB
B5 --> AUD
B2 -.verifies tokens from.-> IDP
B4 -.asks.-> TS
B4 -.stores blobs.-> S3
MQ -.pulls the feed.-> B1
Each boundary below names the control that holds and the risk that remains.
B1 — Network and protocol
Control. TLS terminates either at the server (rustls, TLS 1.3 by default)
or in front of it. Connection-level bounds apply before a request even exists (an
HTTP/1 header-read timeout, an HTTP/2 stream cap with keep-alive PINGs); request
bodies are size-limited, requests are timed out, concurrency is capped by an
admission limit, and a two-tier tower_governor rate limit is on by
default. Panics are caught and become a clean 500 rather than a dropped
connection, and release builds run with overflow checks on so an arithmetic
mistake is a loud panic rather than a silently wrong number. Response security
headers are set. Every parser that reads attacker-controlled bytes (canonical
JSON, canonical XML, AQL, ADL, OPT 1.4 templates, the simplified formats, and
the identifier types) has a libFuzzer harness, built on the pull-request path
and fuzzed on a nightly campaign, and a crash is fixed in the crate, never in
the harness.
Residual risk.
- Fuzzing finds crashes; it does not prove their absence. The harnesses cover the parsers we identified as reachable. A parser reached by a path we did not enumerate is not covered by anything.
- Rate limiting is per-process. A multi-replica deployment behind a load balancer divides the effective limit by the replica count; it is not a distributed limiter. The shipped defaults are also deliberately generous: they sit above this implementation’s own measured whole-server ceiling, so the limiter refuses abuse rather than shaping normal load.
- Algorithmic complexity in query execution is not bounded by the limiter. A syntactically small AQL query can be an expensive one. Statement timeouts at the database are the backstop, and they are the operator’s to set.
- TLS termination in front of the server is the operator’s; nothing in the software can tell whether the hop behind the proxy is encrypted.
B2 — Authentication
Control. Two mechanisms: HTTP Basic against Argon2id PHC hashes with a
verified-credential cache, and OAuth 2.0 bearer tokens validated against the
issuer’s key set by ferrohealth-smart. Configuration is validated at boot,
not on the first request: a mandatory audience list, an https issuer whose
metadata and key set are read at start, asymmetric algorithms only (with none
and every HS* algorithm refused), and the OWASP Argon2id parameter floor. A
malformed Authorization header is a 400, not a 401: the server never read
a credential. An unreachable issuer is a 503, never a silent pass. A 401 body
names no reason, so it is not an oracle for expired-versus-forged.
Residual risk.
- A valid token is a valid caller. FerroEHR verifies signature, audience, issuer and expiry; it does not and cannot know whether the human behind the token is who the token says. Token theft is defended against by your identity provider’s lifetimes and binding, not by us.
- There is no token binding, no proof-of-possession and no replay window. A bearer token replayed from another network location is accepted.
- The identity provider is unconditionally trusted. A compromised issuer, or an attacker who can mint tokens with the right audience, defeats every authorization stage below, all of which read their inputs from claims.
- Basic authentication has no session, no lockout and no second factor. It is intended for machine callers and small deployments; the Argon2id cost is the only brake on offline cracking if a hash leaks.
B3 — Authorization
Control. Five stages, each of which can only narrow what the previous one allowed, which is what makes an optional stage safe to leave off:
- Authentication produces a principal or a typed refusal.
EHR_ACCESSis always on and unconditional, from the openEHR Reference Model’s own gateway clause: the access evaluator decides every request that reaches an EHR over the subject’s access directives, the caller’s facts in the CDR and the controller’s access policy.- RBAC checks the coarse operation class (public, clinical, or admin)
against roles taken from the RFC 9068 claim carriers. An OAuth2
scope is deliberately not treated as a role. The read-only restriction
overrides any grant. (The
/management/*surface is not in this classification: it is governed endpoint-by-endpoint by its own configuration, and an endpoint you do not name is not mounted at all.) - The patient scope (off by default) holds every caller to the EHR whose
subject the
[auth] patient_claimnames, on direct routes and in queries. - SMART scopes (off by default) are AND-composed onto the decisions before them.
Deny-by-default throughout, and fail-closed in both senses: no stage permits
by omission, and a stage that cannot decide is never read as a decision: an
unreachable issuer is 503, and a fact the evaluator cannot read refuses
rather than opens data. Silence is
never consent, and a broken control never looks like a policy outcome.
Residual risk.
- Open by default. With no access directives and an access policy that
requires no care relationship, any authenticated clinical caller can reach
any EHR the default disposition admits. If your model is “a clinician may
read only their own patients”, write it in the access policy
(
care_relationship_required) and record the care relationships. - Policy is only as good as the facts. Every decision is made from the caller’s identity the identity provider asserted and the facts the CDR holds about that caller. A wrong binding produces a correct decision on a false premise.
- Authorization is enforced at the API. Anything with a direct database connection is past it entirely; see B6.
- A legitimate caller acting outside their remit is not prevented, only recorded. That is what the audit trail is for, and detection is not prevention.
B4 — Content validation and outbound calls
Control. Committed content is validated against the operational template
(the WebTemplate walker), the Reference Model’s own invariants (machine-derived
from the specification’s meta-model rather than hand-written) and terminology
bindings. Canonical JSON is read by a strict reader that refuses undeclared
and duplicate keys. Outbound terminology and object-store calls go only
to operator-configured endpoints: terminology goes to the one configured FHIR
terminology server ([terminology], FerroTERM in every shipped
deployment), authenticated with an OAuth 2.0 client-credentials token when it
sits behind an authorization server, and verified against the platform trust
store. The one outbound call that is on by default is
the usage report to report.ferropulse.eu, which
[usage_report] enabled = false switches off; it sends a fixed set of fields
and reads nothing from the answer beyond its status code.
Residual risk.
- The terminology server is trusted to answer honestly. A compromised or misconfigured one can permit a code that should have been refused. It is a correctness boundary, and a clinical-safety one.
- A response parsed from a semi-trusted peer is still parsed. A terminology answer and an object-store response are both parsed by the server, so a compromised endpoint reaches a parser rather than only a validator. The object-store path once carried an XML parser version with denial-of-service advisories the client-facing canonical-XML codec did not share; both are now on the patched version, and the only pre-fix copy left in the build reaches it through the flamegraph renderer, which writes SVG and parses nothing. That argument is published as a machine-readable VEX document rather than left in a comment. Read the current documents for the current position: they name the versions, and they are regenerated from the gate.
- Multimedia blobs are stored, not inspected. FerroEHR is not an antivirus and does not pretend to be; a malicious blob is delivered faithfully to whatever opens it.
- Validation does not make content true. A well-formed composition asserting a clinically wrong fact is stored, correctly.
B5 — Instance separation
Control. One instance serves one organisation: one database, one set of
domain roles. There is no tenant column, no row policy and no session setting
to get wrong, because there is nothing inside the instance to separate. That is
also where openEHR puts the boundary — BASE architecture_overview
master06-design_of_the_ehr.adoc §The EHR System calls a system “a distinct
logical repository corresponding to an organisational entity that is legally
responsible” for the data and “distinct from any underlying virtualisation
infrastructure or cloud computing facility, which may house multiple logical
EHR systems in a multi-tenant fashion”.
Residual risk.
- Separation is now a deployment property, so a deployment mistake is the whole risk. Two organisations pointed at one instance share everything; nothing in the software will catch it, because there is no longer a tenant for it to compare against. The compensating control is that the mistake is visible in the deployment, not buried in a session variable.
- Instance separation does not separate resources by itself. Two instances on one node still compete for CPU, connections and disk unless the platform bounds them.
system_idmust differ per instance. It “becomes embedded in the version identifiers of committed – and possibly signed – content” and “cannot easily be changed afterwards” (§System Identity), so two instances sharing one value mint version identifiers that cannot tell the responsible parties apart.
B6 — The database
Control. The application connects with least-privilege roles, one per
pseudonymisation domain, and the schema is prepared by a separate credential
that is not any of them
(what each credential reaches). FORCE ROW LEVEL SECURITY
means even a table owner is subject to the policies. Version history is
temporal (PRIMARY KEY … WITHOUT OVERLAPS) rather than overwritten, so a prior
version is a row that exists, not one that was replaced. Every write emits a
contribution and an audit record in the same transaction.
Residual risk.
- Anyone with a database connection is past every control in B1–B5. That is the single largest residual risk in this system, and it is inherent: FerroEHR enforces authorization at the API. Protect the credentials and the network path accordingly.
- Encryption at rest is the operator’s. FerroEHR does not encrypt clinical payload before it reaches PostgreSQL; the payload is queryable JSONB, which is what makes AQL possible and is incompatible with application-level encryption of the same fields.
- A superuser can rewrite history. The temporal design makes accidental
overwrite structurally hard; it does not defend against someone with
UPDATEon the tables. The audit chain (B7) is the detection layer. - Backups carry PHI with none of these controls. A restored dump is a complete copy of the schemas it covers. Which schemas that is, and what two dumps are worth together, is Backup artefacts below.
B7 — The audit trail
Control. Every access is recorded in both official renderings (DICOM PS3.15
and FHIR R4 AuditEvent/BALP) into a local Audit Record Repository, on by
default, with optional syslog and ATX:FHIR-Feed forwarding. Refusals (401,
403, and the 400 a malformed credential header earns) are always recorded,
and an unattributable denial is recorded as unattributed rather than under a
fabricated subject. Records are hash-chained, so
SELECT * FROM audit.verify_audit_chain() names any record that was altered
or removed, and the server runs that verification itself on a schedule
(tamper evidence). ITI-81 is the retrieval side; ITI-19 mutual TLS is available for
node authentication.
Residual risk.
- Tamper evidence, not tamper proof. The chain proves alteration happened; it does not prevent it. An attacker with write access to the audit schema can rewrite the chain from the point of compromise forward, which is precisely why forwarding to an off-box sink matters, and why the sink should not be writable by the same identity.
- A local repository shares the blast radius of the thing it audits. If the database is lost, so is the local audit trail.
- The trail records what the server saw. A read performed directly against the database appears nowhere in it.
- Audit records are themselves sensitive. They name patients, subjects and actions; ITI-81 retrieval is a PHI-disclosure surface and is authorized like any other.
B8 — The supply chain
Control. Releases are built by a reusable workflow that satisfies SLSA v1.0
Build L3, signed through Sigstore with a signer identity a consumer can pin,
carrying a CycloneDX dependency SBOM, a SPDX repository SBOM, in-toto
provenance and a plain sha256sum; the verification procedure is
Verifying releases. The release is created as a draft
and only published once its full asset set is present, because a published
release is immutable. Container base images are digest-pinned, and the published
images are re-scanned weekly at the tag an operator actually pulls, with a
fixable high-or-critical finding both failing the run and filing an issue. Every
action is pinned to a commit SHA, workflows are audited by zizmor on every pull
request, and accepted advisories carry published VEX justifications. Commits and
tags are signed and the tags are protected by a ruleset.
Residual risk.
- Provenance proves where an artifact was built, not that the source was good. Build L3 says these bytes came from this workflow at this commit. It says nothing about what that commit contained.
- The build is not hermetic and not reproducible. Those are separate SLSA tracks this project does not address. A dependency resolved at build time is trusted to be what the lock file names.
- Review capacity is one person. No second human is structurally required between an idea and a released binary; the mitigation is machine enforcement and it is honestly recorded in GOVERNANCE.md.
- Fixes ship in the newest release only. Only the newest release is supported, and a fix arrives as a newer release; there is no maintenance branch to backport to. Cadasto B.V. commits to keep publishing security fixes for at least five years after each release (CRA Art 13(8) and (10)). See SECURITY.md.
What each database credential can reach
Every control from B1 to B5 is enforced at the API, so a database credential
is past all of them. What one credential holds is therefore the boundary that
survives a leaked connection string, and it is a property of the grants rather
than of the server’s routing. The migrations under
app/ferroehr/migrations/ apply those grants, revoke each domain from the
roles that do not own it, and make every domain role NOINHERIT and a member
of no other, so a privilege cannot arrive through a membership.
| Credential | Reaches | Cannot reach |
|---|---|---|
ferroehr_clinical | clinical, archival partitions included, with SELECT, INSERT, UPDATE and DELETE; MAINTAIN on the partitioned node, version and vo_attestation and on ehr, to keep their planner statistics; the ext.posture stamp, and SELECT on ext.posture for the subject pseudonym guard; USAGE on ext; in audit, record an event, stamp it forwarded, run the retention reaper and verify the chain | party, revoked explicitly and in both directions |
ferroehr_clinical_reader | SELECT on clinical; USAGE on ext; read the audit repository and verify the chain | party |
ferroehr_party | party, archival partitions included, with SELECT, INSERT, UPDATE and DELETE, the sealed national_identifier rows included; MAINTAIN on the partitioned node, version and vo_attestation, to keep their planner statistics | clinical, revoked explicitly and in both directions |
ferroehr_party_reader | SELECT on party. On national_identifier the table-level grant is revoked and re-granted column by column, so it reads id, party_id, scheme, created_at and retired_at and never lookup_digest, nonce or ciphertext | clinical |
The schema-preparation credential ([database] migrate_url, normally a member of ferroehr_migrator) | every schema: it issues the DDL of all four migration sets and reads all four _sqlx_migrations tables, and it owns the objects it created | nothing. The server opens it for that one boot step and closes it again, so no pool is held on it and no request is served through it |
A schema’s _sqlx_migrations bookkeeping, the record of which migrations ran
that the boot check compares, is read-only to every runtime role, the writer
roles included; the server refuses to start while a runtime role can write any
bookkeeping table, in every database a domain pool reaches.
The audit schema is granted to the clinical pair (ferroehr_clinical records an
event, stamps it forwarded, runs the retention reaper and verifies the chain;
ferroehr_clinical_reader reads it).
The local Audit Record Repository is written on the clinical pool, so a login
role that is a member of ferroehr_clinical alone writes its own access log. The
audit trail is not a pseudonymisation domain: the demographic roles hold no
privilege there, and the trail carries record identifiers, never
a subject’s data.
The four domain roles are checked at every boot. The server reads the
catalogue for every table, partitioned table, view, materialized view, foreign
table, sequence and function each of them can reach in a domain it does not
own, and refuses to serve when it finds one, naming the role, the object kind
and the object. A role that does not exist is skipped rather than failed,
because role provisioning is a deployment step and the migrations create the
roles only where the migrator holds CREATEROLE. ferroehr db verify runs
the same check from outside the deployment.
Residual risk.
- The grants are only a boundary once the credentials are separated. With
every
[database.<domain>] urlunset, all three pools authenticate as[database] urland the split is a schema split. Theshared_credentialgap ofdeployment.profileis what names that. - A login role can be a member of several domain roles. The compose stacks do exactly that, deliberately, and say so. The boot self-check measures the group roles, so it reports a boundary that a membership then crosses.
- A superuser holds everything, and so does the role that owns the objects. Neither is a runtime credential, and neither is constrained by any of the above.
Backup artefacts
A dump leaves the database with none of the grants attached, so the chart takes
one per domain rather than one per cluster: clinical with ext and audit,
and party on its own. Each job authenticates as its own read-only
role, because every domain role is revoked from the other domains and a dump
taken through a runtime credential would be silently partial. Each writes to
its own claim, and the chart refuses to render when two domains name the same
one.
Residual risk.
- Each dump is plaintext of its own domain. The clinical one holds every
composition. The demographic one holds every party and the sealed identifier
columns with them, which stay sealed only while
[privacy.identifier_protection] keylives somewhere the dump does not. - Two dumps together are worth more than twice one. The demographic dump beside the clinical one says which person each record belongs to: the record is re-identified. Who may read each claim is the control, and it is yours.
- A cluster-wide artefact spans every domain. A physical base backup and an
instance-wide point-in-time recovery are bridges no grant closes. That is
the
shared_clustergap, and running the domains on one cluster accepts it by name. - Nothing prunes old dumps, and no network policy of ours selects the dump pods.
Re-identification
Pseudonymisation is worth what the paths back are worth. These are the ones this system has.
An identifier written into clinical content
Control. A data-minimisation pass reads the canonical JSON of every
clinical commit body before it is stored. EHR_STATUS.subject.external_ref
must name a declared pseudonym namespace and carry a UUID once
[privacy] subject_namespaces is set. A PARTY_IDENTIFIED or PARTY_RELATED
carrying identifiers, and a PARTY_RELATED carrying a name, are refused
unless the deployment opts in. An identifier scanner reads every string leaf
against the active rules: eight ship, one per issuing register that publishes a
check digit (ch-ahvn13, ch-epd-pid, de-kvnr, fi-hetu, gb-nhs-number,
nl-bsn, no-fodselsnummer, se-personnummer), all active by default in strict mode, and a deployment
adds regular expressions for the kinds no build can ship a rule for. The two
write paths that replay content verbatim, EHR-Extract import and the admin
archive load, are scanned too: they store what they receive, so a body
carrying an identifier can only be refused. The database keeps its own line.
Once the namespaces are declared the server stamps ehr.posture, and a
trigger on ehr refuses a subject_id that is not a UUID, whichever session
writes it.
Residual risk.
- A checksum rule matches a number, not a person. A name, a street address, a date of birth and a local record number with no check digit pass every shipped rule.
subject_namespacesis empty by default, and with it empty the subject rule and the database trigger are both out of force. Theopen_subject_namespacegap ofdeployment.profileis what names that.- A finding names the RM path and the rule, never the value. That is deliberate, and it means a refusal tells an operator where to look rather than what was there.
Content that identifies without carrying an identifier
Control. None in the query engine. Clinical content is keyed by an opaque subject pseudonym, and AQL returns the rows it was asked for.
Residual risk. A rare diagnosis with an admission date and a place of
treatment identifies a person with no identifier field involved. Small-cell
suppression applies to the cohort query
only: a cohort result serving fewer distinct EHRs than
privacy.cohort.small_cell_threshold has its rows withheld and is marked suppressed.
An ordinary AQL execution takes no threshold at all, so nothing counts how
small a population a plain POST /query/aql returned. For that surface, who
may run AQL, for what purpose, and over which EHRs are the controls, and they
are configuration rather than arithmetic.
The reference that rejoins the two domains
Control. An EHR names its subject in its own
EHR_STATUS.subject.external_ref: a party id, or the opaque pseudonym an IHE
patient identity source answers for the clinical domain once
[privacy] subject_namespaces is declared. No name, no address and no
plaintext attribute. A cohort and the AQL demographic join resolve a party or
a named subject to its EHR through that reference, and each crossing writes a
linkage-domain access event naming the actor, the declared purpose of use
and how many EHRs it reached; the event deliberately does not name the subject
identifier. FerroEHR matches, links and merges no patients.
Residual risk.
- The identity source holds the re-identifying link. Its controls, who may resolve a pseudonym back to a person, are the source’s, and FerroEHR never asks for that resolution.
- A party id as subject re-identifies within the instance. Without declared
pseudonym namespaces, an
EHR_STATUSmay name a party of this server directly; the demographic and clinical credentials still never meet in one statement. - A miss is as informative as a hit. Asking whether this deployment holds a record for a person is itself a disclosure, which is why the miss is recorded too.
The sealed identifier and its lookup digest
Control. A protected national identifier leaves the versioned body and
lives in party.national_identifier under AES-256-GCM with a fresh
96-bit nonce per record, with the scheme code bound in as
associated data so a ciphertext moved between either fails to open. Beside it
is an HMAC-SHA-256 digest under a separate subkey, which is what lets equality
lookup work without the plaintext ever reaching the database. Both subkeys are
derived per domain from one configured root key. The resolve
function is SECURITY DEFINER, PUBLIC is revoked from it, and only
ferroehr_party may execute it. No server path calls it: FerroEHR offers no
lookup from an identifier to its party. The scheme
registry is a closed set: an identifier whose scheme nobody registered cannot
be stored as a protected one at all.
Each party version seals rows of its own. When a later version or the logical
deletion supersedes a version, its rows get a retired_at stamp and stay, so
an older version still expands to the value it committed. The resolve
function matches live rows only, and a value is live for at most one party at a
time.
Three paths that move a party version keep the value sealed:
- EHR-Extract import: a received version is stored verbatim, so the server
cannot seal it on the way in. It refuses with a
422a version that carries a protected scheme’s value in plaintext, and one that references a sealed row this instance does not hold, such as a reference from another instance. - Admin dump and load: the archive carries the party’s sealed rows, live and retired, as base64 ciphertext, nonce and digest, never the value. They open again only under the same root key.
- Physical erasure of a party: every sealed row of the party, live and retired, is deleted in the same transaction as its versions.
Residual risk.
- The root key is the whole control. Held beside a dump, the ciphertext opens and the digest can be recomputed over a nine-digit space in seconds. It belongs in a secret store, not next to the backup.
- Protection is off by default, and an identifier whose type the deployment did not list is left in the versioned body exactly as written.
- Rotating the key is a re-encryption, not an edit, because every record is sealed under a subkey derived from it.
The subject pseudonym
Control. FerroEHR mints no subject pseudonym. Once [privacy] subject_namespaces declares a namespace, an EHR_STATUS.subject.external_ref
must name a declared namespace and carry a UUID, and a trigger on ehr refuses
a non-UUID subject reference whichever session writes it. Under the IHE
provider the patient identity source mints the pseudonym the clinical domain
holds.
Residual risk. A stable per-subject identifier across the whole clinical
store is what makes it an EHR, and it is also a linkage key. Anyone holding
the clinical domain can gather every record of one subject, without knowing
who the subject is. With subject_namespaces empty, the default, neither rule
is in force and a client may write any identifier as the subject reference.
The audit trail as a re-identification surface
Control. Access records live in audit, outside both domains, and
retrieval is the admin-gated ITI-81 route. A linkage event names the party
and the purpose, not the EHR that was returned, so the trail is not a map from
parties to their EHRs.
Residual risk. The records name subjects, actors, organisations, roles and
what they read, which is sensitive in its own right and is a disclosure
surface like any other. Retention makes it durable on purpose: where one of
the deployment’s active identifier rules names a jurisdiction with a
registered retention floor, a shorter audit.store.retention is a boot
error rather than a silent trim. The Netherlands is the one registered floor
today, at 1830 days.
What is explicitly NOT defended against
Silence is never coverage, so these are stated rather than left to inference.
- A compromised identity provider. Everything downstream reads claims it asserted.
- A compromised host, container runtime, or cluster operator. Process memory holds decrypted PHI and key material by necessity.
- Anyone with direct database credentials.
- A malicious maintainer, or a compromise of the maintainer’s account or signing key. The bus factor is one; see MAINTAINERS.md.
- Physical access, side channels, and speculative-execution attacks.
- Traffic analysis. Request sizes, timings and error-code patterns can leak the existence of records; nothing pads or delays.
- A legitimate user’s authorized misuse, beyond recording it.
- Denial of service by a resource-holding authorized caller: an expensive query, a large commit, a slow client. The rate limiter is on but coarse and per-process; database statement timeouts and container limits are the operator’s.
- Data remanence. Physical deletion removes rows; it does not scrub filesystem blocks, WAL segments, replicas or backups.
- Clinical correctness. FerroEHR validates structure, invariants and terminology bindings. It does not know whether a recorded fact is true, and no control here is a substitute for clinical governance.
Reporting a finding
If you believe a control is weaker than stated here, or a residual risk is missing, that is a valid security report, including when the defect is in this document rather than in the code. Follow SECURITY.md: report privately, never as a public issue.
Data protection impact assessment
GDPR Art. 35 makes a data protection impact assessment mandatory before large-scale processing of health data. That assessment belongs to the controller, and it is about a deployment: its purposes, its users, its network, its organisation. What this page supplies is the half a supplier can supply, which is the technical description the assessment builds on.
FerroEHR is software. It is not a controller, not a processor and not a certified organisation, so nothing here says a deployment is compliant with anything. It says what the software does with personal data, which controls it ships, and what those controls do not reach.
- How to use this page
- 1. The processing this software performs
- 2. Data categories, by schema
- 3. Roles and the credentials that serve them
- 4. The pseudonymisation domain
- 5. Retention
- 6. Risk register
- 7. Controls, by issue and legal source
- 8. What this software cannot do for your assessment
- Next
How to use this page
Copy the sections you need into your own assessment and replace what is yours. Sections 1 to 5 describe the software and are the same for every deployment. The risk register in section 6 lists the risks the product’s own design creates and the control it ships against each; your assessment adds the risks your deployment creates. Section 7 maps shipped controls to the legal source each was built for.
Read it alongside the threat model, which states the residual risk at each boundary, and the shared responsibility page, which says which duties the software cannot carry.
1. The processing this software performs
A FerroEHR deployment stores and serves an openEHR clinical data repository. Seven activities carry personal data, and they are described one by one, with the Art. 30 fields, in Records of processing:
- Storage of clinical content as versioned objects.
- Versioning and change control: every write commits a contribution and an audit entry in the same transaction, and no version is overwritten.
- Query over stored content, in AQL.
- Identity and linkage: parties, protected national identifiers, and the
resolution of a party or a subject to the EHRs whose
EHR_STATUSnames it. - Access logging: one record per access, in DICOM PS3.15 and FHIR
AuditEventrenderings. - Change-event feed: a PHI-free envelope per commit, served to the
readers the
read_change_feedgrants in the CDR name. - Workforce identity: the professionals’
PERSONs, their groups and their professionalROLEs, provisioned through SCIM or created at a first login, which each version’s committer and each access record name.
Everything else the server does (templates, terminology lookup, conformance reporting) operates on definitions rather than on people.
2. Data categories, by schema
The database is split so that no single runtime credential holds both the clinical record and the identities. Each schema is a separate category of data with its own role.
| Schema | Personal data it holds | GDPR category |
|---|---|---|
clinical | Clinical content: compositions, EHR status, folders, contributions, attestations, item tags. The subject appears as EHR_STATUS.subject.external_ref, which is an opaque pseudonym once [privacy] subject_namespaces is declared | Art. 9 special-category health data |
party | Parties: persons, organisations, groups, agents, roles and their relationships, with names, addresses and contacts as the operational template defines them. Protected national identifiers live in national_identifier, sealed under a per-domain key with a keyed digest beside them | Art. 4(1) personal data; a national identifier is Art. 87 national identification number |
audit | One record per access: who, from which organisation, under which roles, what they read or wrote, the declared purpose, the outcome and the time | Art. 4(1) personal data about both the subject and the accessing person |
ext | No personal data. Helper functions, the runtime roles and the deployment posture | — |
3. Roles and the credentials that serve them
Four runtime database roles, each holding one domain and revoked from the others in both directions, plus a migration credential used for one boot step. The full grant-by-grant table, and what a backup artefact per schema is worth to a holder, is the threat model.
At the API, an access decision runs through authentication, the openEHR
EHR_ACCESS gateway with the access evaluator, RBAC, the optional patient scope and optional SMART scopes, each stage
only able to narrow the previous one. That layering is
Security.
4. The pseudonymisation domain
flowchart LR
subject(["The person"])
subgraph dom ["The pseudonymisation domain"]
clin[("clinical<br/>clinical record,<br/>keyed by an opaque pseudonym")]
demo[("party<br/>the person, and sealed<br/>national identifiers")]
end
aud[("audit<br/>who reached what, when")]
subject -.-> demo
clin -. barred .- demo
clin -->|"application-level crossing,<br/>two pools, recorded"| aud
Read one domain and you hold a clinical record whose subject is an opaque identifier, or a set of people with no records attached. Only the two together re-identify anything.
A cohort and the AQL demographic join cross the boundary. Each selects parties
on the demographic pool, then finds the EHRs whose EHR_STATUS.subject names
those parties on the clinical pool. The two hops are two connections in the
application, so no statement performs the join and no credential could issue
one. Every crossing writes an access record naming the
actor, the declared purpose and whether anything matched.
5. Retention
FerroEHR expires almost nothing on its own, which is deliberate: an openEHR record is indelible by design, and deciding when a record stops being needed is the controller’s judgement rather than a default.
| Data | What the software does | Key |
|---|---|---|
| Clinical content and its versions | Kept until an administrator deletes it. Archiving moves a record to the cold tier without expiring it | the admin API |
| Demographic parties | The same | the admin API |
| Access records | Kept forever by default; reaped hourly when a retention is set | [audit.store] retention |
| Change-event envelopes | Pruned seven days after their commit by default, once every active reader has acknowledged them | [record.change_feed] retention |
The access log carries a jurisdictional floor. Where one of the active
identifier-scan rules names a jurisdiction with a registered retention floor, a
shorter audit.store.retention is a boot error naming the floor rather
than a silent trim. The Netherlands is the one registered floor today: five
years from the moment the entry is written, under the
Besluit vaststelling bewaartermijn logging,
expressed as 1830 days because five calendar years never exceed that. Adding a
jurisdiction is a code change, not a configuration one, so a deployment
elsewhere sets its own floor by hand and records why.
6. Risk register
Each row is a risk the product’s own design creates or leaves. “Shipped control” is what the software does about it today; “what remains” is what your assessment has to size.
| # | Risk | Shipped control | What remains |
|---|---|---|---|
| R1 | A clinical record and the identity of its subject are held together, so one credential re-identifies everyone | Two schemas, four NOINHERIT roles, explicit revokes in both directions, and a boot self-check that refuses to serve when a role can read across | With every [database.<domain>] url unset, all three pools use one credential and the split is a schema split. A superuser and a cluster-wide restore span everything |
| R2 | A national identifier is written into clinical content | The identifier scanner over every string leaf of every clinical write, strict by default, with all eight shipped rules active; the subject rule; the refusal of identifying party proxies; and a database trigger on ehr once the namespaces are declared | A rule matches a checksummed number, not a name, an address or a local record number. subject_namespaces is empty by default, which leaves the subject rule and the trigger out of force |
| R3 | A national identifier is readable in the party store, in a backup or on a replica | AES-256-GCM per record with the scheme bound in, a keyed HMAC-SHA-256 digest for lookup, per-domain subkeys, and a SECURITY DEFINER resolve function only the party role may execute | Protection is off by default. An identifier whose scheme is not configured stays in the versioned body. The root key held beside a dump defeats all of it |
| R4 | Someone re-identifies a record and nobody can tell afterwards | Every resolution of a party or a subject to its EHRs writes a linkage-domain access record naming the actor, purpose and outcome, including a miss | Recording is not prevention. An actor entitled to the crossing re-identifies by design |
| R5 | Content identifies a person without carrying an identifier | Small-cell suppression on the cohort query: a result serving fewer distinct EHRs than privacy.cohort.small_cell_threshold (default 5) withholds its rows and says so | A rare diagnosis with a date and a place identifies without any identifier field. The threshold covers the cohort query alone; an ordinary AQL execution takes none |
| R6 | One organisation reads another’s rows | One instance per organisation: its own database, its own domain roles, and no relation, policy or session setting that two organisations could share. openEHR puts multi-tenancy at the layer hosting several systems rather than inside one (BASE architecture_overview master06-design_of_the_ehr.adoc §The EHR System) | The separation is now a deployment property, so two organisations pointed at one instance share everything and nothing in the software will catch it |
| R7 | Access records are altered or lost | Records are hash-chained and audit.verify_audit_chain() names any that changed; the runtime role can insert and stamp delivery and nothing more; syslog and FHIR-feed forwarding put copies off the box | The chain is evidence, not prevention. A local repository shares the blast radius of the database it audits, and a read made straight against the database appears nowhere |
| R8 | A backup carries what the grants withheld | One dump per domain, each under its own read-only role and its own claim, and the chart refuses to render when two domains name the same claim | Each dump is plaintext of its own domain. Two of them together rebuild the join. Nothing prunes old dumps |
| R9 | A deployment has made none of the separations and looks like one that has | deployment.profile = "production" refuses to start while a separation is open and not accepted by name; sandbox names every open one on the banner, in the log and on GET /management/status | The default is sandbox, so an operator who sets nothing gets the loud version rather than the enforced one |
| R11 | A professional’s data are copied from the identity provider beyond what attribution needs, or a login reaches another person’s PERSON | SCIM and just-in-time creation write only the attributes the party mapping names; just-in-time creation writes the key, the userName and the name only, and contacts are unmapped by default; the binding key is the identity provider’s immutable user id, never an email, a name or a upn, and never changes once set; a professional’s PERSON is writable only by its SCIM client or an administrator (Who is the committer) | The lawful basis for each mapped attribute, the Art. 14 information to the professionals, the retention of the attribution minimum (in the Netherlands the BW 7:454(3) horizon), and the identity provider’s own controls over who may change a user |
| R10 | Anyone with a database connection is past every API control | Least-privilege roles revoked from each other’s domains, and a version table that is appended to rather than overwritten | This is inherent. Authorization is enforced at the API, so protecting the credentials and the network path is yours |
7. Controls, by issue and legal source
Each control below is a closed tracker issue, so the claim is checkable against the pull request that delivered it. The complete list, generated from the tracker and re-checked by a CI job, is the control matrix; these are the ones a pseudonymisation assessment usually asks for.
A cell carries a mapping only where the delivering issue declares it, which is what the generated matrix reads, or where the source code itself cites the standard. An empty cell means no such declaration exists, never that the control is irrelevant to that source.
| Control | Issue | GDPR | EDPB 01/2025 | EHDS | NEN |
|---|---|---|---|---|---|
| Demographic parties in their own schema under a non-overlapping runtime role | #3153 | Art. 4(5), Art. 32(1)(a) | pseudonymisation domain | — | — |
| The clinical side refuses identifying data; the subject reference is constrained to a pseudonym namespace | #3154 | Art. 4(5), Art. 25(2) | — | — | — |
| National identifiers sealed, with a keyed digest that keeps a value live for one party at a time | #3155 | Art. 32(1)(a) | — | — | NEN 7510-2 cryptographic controls |
| Per-domain access logging for reads and queries | #3156 | — | — | Art. 9 | NEN 7513 event content |
| Separate encryption keys and per-schema backup handling | #3157 | Art. 4(5), Art. 32(1)(c) | — | — | — |
The declared deployment profile: production refuses what it cannot prove | #3226 | Art. 32(1) | — | — | — |
| The subject pseudonym is opt-in: FerroEHR mints none, and a declared namespace constrains every subject reference | #3232 | Art. 4(5) | — | — | — |
| A jurisdictional floor under access-log retention | #3242 | Art. 5(1)(e) | — | — | NEN 7513 retention |
| The accessing organisation on every access record | #3204 | — | — | Annex II 3.2(a) | — |
| The actor’s roles on every access record | #3239 | — | — | — | NEN 7513 actor role |
The legal sources, each cited to its publisher:
GDPR,
EHDS,
EDPB Guidelines 01/2025 on pseudonymisation,
NEN 7510,
NEN 7513.
NEN 7510-2 is the control set of that standard; the entries above name the
control family a measure belongs to rather than quoting a clause, because the
standard’s text is not free to redistribute and the linked publisher is the
authority.
8. What this software cannot do for your assessment
- It cannot decide your lawful basis, your purposes or your retention. Those are the assessment’s own findings.
- It cannot tell you who your processors are, including whichever managed PostgreSQL, object store, broker or terminology server the deployment uses.
- It cannot serve a data subject’s rights on its own. Which requests the software can answer and which the organisation must is shared responsibility.
- It cannot certify anything. No conformity assessment has been carried out and no EU declaration of conformity exists; see EHDS readiness.
Next
- Records of processing — the Art. 30 template.
- Go-live checklist — the checks to run before a deployment holds real patient data.
- Threat model — the residual risk at each boundary.
Records of processing
GDPR Art. 30 requires a controller to keep a record of its processing activities, and Art. 30(2) requires a shorter one from a processor acting on a controller’s behalf. Both records are the organisation’s, not the software’s. This page is a template for the part a FerroEHR deployment contributes: the activities the software performs by design, with the fields it can answer already filled and the fields only you can answer marked.
FerroEHR is software rather than a controller or a processor, so nothing here is a record on anyone’s behalf. It is a starting draft that saves you reading the source to find out what the server does with personal data.
- How to use this
- 1. Storing the clinical record
- 2. Versioning and change control
- 3. Query
- 4. Identity and linkage
- 5. Access logging
- 6. Change-event feed (off by default)
- 7. Workforce identity (off by default)
- Fields no software can fill
- Next
How to use this
Copy the activity tables below into your own register and fill the three columns nobody but you can fill: the purpose your organisation processes for, the lawful basis it relies on, and the recipients it discloses to. Delete any activity your deployment has switched off. Activities 6 and 7 are off by default and only apply if you turned them on.
The identity fields Art. 30(1)(a) asks for are yours in every case:
| Field | Value |
|---|---|
| Controller (name, contact) | your organisation |
| Joint controllers, if any | yours |
| Representative in the Union, if applicable | yours |
| Data protection officer | yours |
| Processors engaged | yours: the PostgreSQL operator, and any object store, outbox reader, terminology server or identity provider the deployment is configured against |
Note
One transmission is on by default and is not a processor relationship: the usage report to FerroPULSE. It carries no patient data and no staff identities. Cadasto B.V. receives it as controller for its own purposes, and its collector stores the IP address each report comes from. Where that makes the report personal data (an instance run by one person from their own connection, for example), list Cadasto B.V. as a recipient in your record, or switch the report off.
1. Storing the clinical record
| Art. 30 field | What the software does |
|---|---|
| Purpose | yours: the care or research purpose the repository serves |
| Categories of data subject | Patients and other record subjects; the health professionals recorded as composers, performers and participants |
| Categories of personal data | Clinical content as the operational templates define it, in the clinical schema, its cold archival partitions included. Special-category health data under Art. 9. The subject appears as an opaque pseudonym once [privacy] subject_namespaces is declared |
| Recipients | yours: whoever the API is exposed to. The software discloses nothing on its own |
| Third-country transfers | yours: wherever the deployment and its backups run |
| Retention | No automatic expiry. Content leaves only by an administrator’s deletion; archiving moves it to the cold tier without expiring it |
| Security measures | Least-privilege database roles per pseudonymisation domain; a data-minimisation pass over every write; one instance per organisation; TLS; authentication and layered authorization |
2. Versioning and change control
| Art. 30 field | What the software does |
|---|---|
| Purpose | Keeping the clinical record attributable and reconstructible, which openEHR’s change-control model requires |
| Categories of data subject | As activity 1, plus the committing user |
| Categories of personal data | One contribution and one audit entry per commit, naming the committer, the change type and the commit instant; every prior version of every object |
| Recipients | yours |
| Third-country transfers | yours |
| Retention | Indefinite by design. A version is superseded, never overwritten |
| Security measures | Contribution and audit written in the same transaction as the content; a temporal version table rather than in-place update; optional version signing |
3. Query
| Art. 30 field | What the software does |
|---|---|
| Purpose | yours: the reporting, cohort or operational purpose queries serve |
| Categories of data subject | As activity 1 |
| Categories of personal data | Whatever the query projects out of stored clinical content |
| Recipients | yours |
| Third-country transfers | yours |
| Retention | Results are not stored. Stored query definitions are, as AQL text |
| Security measures | Queries run on the clinical credential only, so no query can reach the demographic domain; the planning gate refuses constructs the active specification generation does not define; result caps and statement timeouts bound one query’s reach |
Note
Small-cell suppression applies to the cohort query only. A cohort result serving fewer distinct EHRs than
privacy.cohort.small_cell_thresholdhas its rows withheld and is marked suppressed; an ordinaryPOST /query/aqltakes no threshold, so a query returning one row about one rare condition is served like any other.
4. Identity and linkage
| Art. 30 field | What the software does |
|---|---|
| Purpose | Holding who the record subjects are, and resolving a person to their record where a caller is entitled to |
| Categories of data subject | Patients, and the parties a record refers to |
| Categories of personal data | Parties in the party schema with names, addresses and contacts as the template defines them; protected national identifiers sealed in national_identifier |
| Recipients | yours |
| Third-country transfers | yours |
| Retention | Parties leave only by an administrator’s deletion. The subject reference of an EHR leaves with the EHR that carries it |
| Security measures | Two schemas under their own roles, revoked from each other in both directions and checked at boot; AES-256-GCM sealing with a keyed HMAC-SHA-256 digest for lookup, under per-domain subkeys; each crossing from a party or a subject to its EHRs runs in the application over two pools and writes an access record |
5. Access logging
| Art. 30 field | What the software does |
|---|---|
| Purpose | Recording who reached what, which EHDS Annex II 3.2 requires of an EHR system and which NEN 7513 specifies the content of for Dutch deployments |
| Categories of data subject | The record subject, and the person who accessed the record |
| Categories of personal data | Per access: the accessing person and organisation, the roles held, the object and its domain, the outcome, the declared purpose of use, the configured legal basis and the time. Refusals are recorded too, unattributed where no principal was established |
| Recipients | yours: the local repository, plus any syslog or FHIR-feed Audit Record Repository configured |
| Third-country transfers | yours |
| Retention | [audit.store] retention, 0 meaning forever, reaped hourly otherwise. Where an active identifier rule names a jurisdiction with a registered floor, a shorter value is refused at boot |
| Security measures | Records are hash-chained and verifiable with audit.verify_audit_chain(); the runtime role may insert and stamp delivery and nothing else; the audit schema sits outside both pseudonymisation domains; the syslog feed can run over RFC 5425 TLS with a client certificate |
6. Change-event feed (off by default)
| Art. 30 field | What the software does |
|---|---|
| Purpose | Telling downstream systems that a commit happened, while a read_change_feed grant in the CDR names a reader |
| Categories of data subject | Record subjects, indirectly |
| Categories of personal data | A PHI-free envelope: the contribution id, the EHR id, the commit instant, and per version the object id, kind, version number, change type and template. No clinical content |
| Recipients | The configured readers (FerroBRIDGE, for one), and whoever they deliver to |
| Third-country transfers | yours: wherever the readers and their broker run |
| Retention | Rows pruned [record.change_feed] retention after their commit, seven days by default, once every active reader has acknowledged them |
| Security measures | Written in the same transaction as the commit it announces, so there is no event without its commit; read only by a caller holding the __ferroehr.outbox scope, one access record per read; the envelope carries identifiers, so a consumer still has to authenticate to the API to read anything |
7. Workforce identity (off by default)
| Art. 30 field | What the software does |
|---|---|
| Purpose | Identifying the health professionals and the representatives who act on the record, so each version and each access names the natural person and the provider (EHDS Art. 13(4), Annex II 3.1 and 3.2), when [auth.scim] or just-in-time creation is on |
| Categories of data subject | The deployment’s own professionals, its Basic users, and registered representatives |
| Categories of personal data | Per professional: the binding key (the identity provider’s immutable user id), the userName, the externalId, the name, the groups (care teams), the lifecycle state and the professional ROLE. Contact attributes only where the operator maps them; none are mapped by default. Just-in-time creation writes only the key, the userName and the name |
| Source (Art. 14(2)(f)) | The identity provider: Microsoft Entra ID, Keycloak or another SCIM client, or the access token at the first login |
| Lawful basis | yours. FerroEHR’s design assumes Art. 6(1)(c) for the attribution minimum (key, userName, name), since EHDS Art. 13(4) and the logging duties need the professional identified, and Art. 6(1)(b) or (f) for any contact attribute a deployment maps |
| Recipients | yours: everyone who reads a version’s committer or an access record |
| Third-country transfers | yours |
| Retention | yours. In the Netherlands the attribution minimum is kept for the BW 7:454(3) horizon of the records it attributes (twenty years); EHDS Art. 13(4) sets the duty to identify, not a period. Elsewhere, name the national retention provision (GDPR Art. 6(3)). Contact attributes are erased [auth.scim] contact_erasure_delay after a User’s deletion, and the attribution minimum stays with the versions it attributes |
| Security measures | A professional’s PERSON and the groups are writable only by their SCIM client or an administrator; the binding key never changes once set; every SCIM request is an access record of the client naming the person; deactivations past max_deactivations are refused |
Because the data come from the identity provider and not from the professional, give the professionals the information GDPR Art. 14 asks for: what is copied, from which source, for which purpose, and for how long.
Fields no software can fill
The record is not complete until these are answered, and they are answered by the organisation:
- The purpose of each activity and the lawful basis for it, which for health data means an Art. 9(2) condition beside the Art. 6 one.
- The recipients, including every category of person inside the organisation who can reach the API.
- Transfers to third countries and the safeguard relied on, which follows from where the database, the backups and every configured peer run.
- Time limits for erasure per category, which the software will not apply for you: it deletes when an administrator asks.
- The general description of security measures in Art. 30(1)(g), for which the technical half is the DPIA page and the threat model.
Next
- Data protection impact assessment — the technical description and the risk register.
- Go-live checklist — what to verify before real data arrives.
- Shared responsibility — which duties the software can carry.
Go-live checklist
Run this before a FerroEHR deployment holds real patient data. Every item is something you set and then read back from the running system, because a separation that was configured and never verified is a separation nobody has seen work.
None of it makes a deployment compliant with anything. It is the set of technical properties the software can hold, checked rather than assumed. The organisational half stays yours.
- 1. Role separation, verified from outside
- 2. The deployment profile is
production, and the server boots - 3. Identifier scanning is on and strict
- 4. The pseudonym namespaces are declared
- 5. Backups, one per domain
- 6. The audit trail is on, durable, and kept long enough
- 7. Schema preparation runs on its own credential
- 8. Callers are bound and rate-limited
- 9. The paperwork exists
- What this checklist does not cover
1. Role separation, verified from outside
Create the four domain roles, give each login role membership of exactly one, and point each pool at its own DSN:
[database]
url = "postgres://app_ehr:***@pg:5432/ferroehr"
migrate_url = "postgres://ferroehr_migrator:***@pg:5432/ferroehr"
[database.party]
url = "postgres://app_party:***@pg:5432/ferroehr"
Then check it:
ferroehr db verify
It exits 0 only when the database carries exactly this build’s migrations and no runtime role can read a domain it does not own, and it issues no DDL doing it. A breach names the role, the object kind and the schema-qualified object. The server runs the same check at every boot and refuses to serve on a breach, so this is the early warning rather than the only one.
The statements that create the roles, and what each one may reach afterwards, are Operations → Database roles and the threat model.
Warning
A login role that is a member of two domain roles crosses the boundary that
ferroehr db verifyreports as intact: the check measures the group roles. Give each login role one membership. The clinical login role’s membership inferroehr_clinicalalso covers the local Audit Record Repository, which that role writes; it holds no grant in the other two domains.
- Four domain roles exist, each
NOINHERITand a member of no other. - Each login role is a member of exactly one domain role.
-
ferroehr db verifyexits 0.
2. The deployment profile is production, and the server boots
[deployment]
profile = "production"
Under production the server refuses to start while a separation is open and
not accepted by name. The refusal lists every open gap with its finding and its
remedy, so one boot tells you the whole list:
deployment.profile = "production" refuses to start: this deployment has not
made the separations production asserts. Make them, or accept each one by name
in deployment.accepts (which is then stated on every boot and on /management/status):
- shared_credential: ...
The gaps are shared_credential, shared_cluster, open_subject_namespace,
audit_off, audit_fails_open, no_category_map, open_ehr_access_default,
migrate_on_runtime_credential, auth_off, rbac_off, plaintext_listener,
plaintext_audit_feed and plaintext_object_store. shared_cluster is read from
pg_control_system().system_identifier on each pool, the audit pool included,
rather than from the DSN text, so two names for one cluster do not pass it.
Two of them are the shipped compatibility defaults, kept as they are because
the conformance instrument and the development stacks need them: the
EHR_ACCESS default is open, and the audit trail fails open. A production
deployment either changes both, or names each in deployment.accepts and
carries the decision.
plaintext_listener opens whenever the main listener speaks plain HTTP on an
address reachable off the host. Behind a TLS-terminating ingress, accept it by
name: the entry records that the ingress carries the encryption. It also opens
when a separate management listener (management.listen) is set, because that
listener binds every interface and never speaks TLS: unset the port so the
surface shares the main listener, or accept the gap by name and keep that port
off any network clinical clients or the internet reach.
The syslog feed has no gap of its own: it sends over RFC 5425 TLS only.
plaintext_audit_feed opens when the audit FHIR feed ([audit.fhir_feed]) is on
with an http:// URL, and plaintext_object_store when the multimedia store is
on with an http:// url = true. Use https:// for both, or accept the gap by name
where the repository or the store is reached on a trusted segment.
A gap you have decided to run with goes in deployment.accepts by name. It is
then stated on every boot and on GET /management/status, so it is run
rather than hidden.
-
deployment.profile = "production"and the server starts. -
[authz.rbac] ehr_access_defaultand[audit] fail_modeare the values this deployment intends, not the ones it inherited. - Every entry in
deployment.acceptsis a decision someone recorded, not a leftover. -
GET /management/statusshows the profile and an accepted-gap list you recognise.
3. Identifier scanning is on and strict
[privacy.identifier_scan]
mode = "strict"
rules = ["ch-ahvn13", "ch-epd-pid", "de-kvnr", "fi-hetu", "gb-nhs-number", "nl-bsn", "no-fodselsnummer", "se-personnummer"]
Both are the defaults, so the check is that nothing turned them off. strict
refuses a clinical write carrying a value one of the active rules claims, and
names the RM path and the rule without echoing the value. Every rule the build
ships is active unless you narrow the list.
Add patterns for the identifier kinds no build can ship a rule for: local
medical-record numbers, payer references, a postcode paired with a house
number. Each is a Rust regular expression compiled at boot, and one that does
not compile is a boot error naming it.
If you are migrating existing content, run mode = "warn" first, read what it
reports, then switch to strict. Going live in warn means the scanner
observes and nothing acts.
-
mode = "strict". - The
ruleslist covers every jurisdiction whose identifiers your content can carry. - Local identifier kinds have a
patternsentry.
4. The pseudonym namespaces are declared
[privacy]
subject_namespaces = ["your-pseudonym-service"]
Empty is the default, and empty means the subject rule is out of force:
whatever a client sends becomes the clinical subject reference. Declaring a
namespace turns the rule on. From then on EHR_STATUS.subject.external_ref
must name a listed namespace and carry a UUID, the server stamps ehr.posture,
and a database trigger refuses a non-UUID subject whichever session writes it.
The name is a deployment fact: it identifies the service that mints your
pseudonyms, and no server can invent it for you. FerroEHR mints none; under
the IHE patient identity source it is the clinical domain’s assigning
authority, pixm.assigning_authority.
-
subject_namespacesnames at least one namespace. - The
open_subject_namespacegap no longer appears onGET /management/status.
5. Backups, one per domain
Backups leave the database with none of the grants attached, so one dump per
cluster undoes the split. Configure one per domain, each with its own
credential and its own volume. On Kubernetes that is the backup values:
backup:
enabled: true
clinical:
existingSecret: ferroehr-backup-clinical
persistentVolumeClaim: ferroehr-backup-clinical
party:
existingSecret: ferroehr-backup-party
persistentVolumeClaim: ferroehr-backup-party
Each credential is a read-only role on its own domain, and it cannot be the pool’s: each domain’s runtime role is revoked from the other domains, so a dump taken through one would be silently partial. The chart refuses to render when two domains name the same claim, which is the mistake that quietly puts the join back together.
Three things the chart does not do: it provisions no storage, it prunes no old dumps, and no network policy of ours selects the dump pods.
- Two dumps, two credentials, two volumes, and a third set for the audit domain when it has a database of its own.
- The demographic volume has the narrower audience.
- A restore has been rehearsed, and the rehearsal is recorded.
- Retention and pruning of the dumps is somebody’s job, and they know it.
6. The audit trail is on, durable, and kept long enough
[audit]
enabled = true
purpose_header = "x-purpose-of-use"
[audit.store]
enabled = true
retention = 0 # or a value at or above your jurisdiction's floor
Auditing is on by default with the local store as the sink. What a production deployment adds is a copy off the box, because a local repository shares the blast radius of the database it audits:
[audit.syslog]
url = "tls://arr.example:6514"
# or, for a RESTful ARR
[audit.fhir_feed.endpoint]
url = "https://arr.example/fhir"
Decide fail_mode deliberately. open logs a dropped record and serves the
request; closed refuses an auditable operation with 503 when the record
cannot be taken. closed is the posture that makes “no unaudited access” true.
Retention has a jurisdictional floor. Where one of your active identifier rules
names a jurisdiction with a registered floor, a shorter horizon is a boot error
naming the floor. Every EU Member State carries three years from each date of
access (EHDS Art. 9(2)); the Netherlands five years, from the
Besluit vaststelling bewaartermijn logging;
Switzerland one year (DSV Art. 4 Abs. 5). The floors are in calendar years, so
state the horizon as [audit.store] retention, which is compared
exactly; a retention is held to the most days those years can span
(1096, 1830 and 366). The audit trail page
lists the floors with their sources. A deployment in a jurisdiction with no
floor registered sets its own horizon and records why.
Verify the chain works before you need it:
SELECT * FROM audit.verify_audit_chain();
-
[audit] enabled = truewith a durable sink. - A copy is forwarded off the box, to a sink the server’s own identity cannot rewrite.
-
fail_modeis a decision, not a default. -
retention(orretention) is0or at or above the floor that applies to you. -
audit.verify_audit_chain()returns no rows on a healthy trail.
7. Schema preparation runs on its own credential
Preparing the schema spans every schema at once: the DDL of all four migration
sets under migrations = "apply", all four _sqlx_migrations bookkeeping tables
under "verify". No least-privilege runtime role can do either, ferroehr_clinical
included, so [database] migrate_url names the credential that can. Unset, it falls
back to [database] url, which is the single-credential posture.
-
[database] migrate_url(ormigrate_url_file) is set. -
migrations = "verify"if the schema is applied out of band, withferroehr db migraterun under the migrator DSN first.
8. Callers are bound and rate-limited
Every person is bound to a demographic PERSON before their issuer is
trusted (Who is the committer), and each caller is held to a
rate.
- Every professional is provisioned through SCIM, adopted, or admitted by
just-in-time creation before their
personsissuer is added (bootstrap and migration). -
[server.caller_rate]is set. It limits each authenticated caller on the clinical API, is kept per replica, and is off unless configured ([server.caller_rate]). - Every federation agreement carries its own
requests_per_secondandburst; its commit is refused without them (federation agreements).
9. The paperwork exists
- A data protection impact assessment has been carried out and signed off. The technical half is the DPIA page; the purposes, the lawful basis and the organisational measures are yours.
- The Art. 30 record of processing is written. The template is Records of processing.
- The processor agreements are in place for the database operator and every configured peer.
- Somebody has read what the software cannot do for a data subject.
What this checklist does not cover
- Your identity provider. Every authorization stage reads claims it asserted. Its token lifetimes, binding and revocation are outside the software.
- The platform. Host hardening, network policy, image admission and secret management are Cluster hardening.
- Encryption at rest. FerroEHR stores queryable JSONB and does not encrypt clinical payload before it reaches PostgreSQL. That is the database operator’s layer.
- Clinical governance. Validation checks structure, invariants and terminology bindings. It does not know whether a recorded fact is true.
Who is the committer
Every version FerroEHR stores carries an AUDIT_DETAILS, and its committer
is the “identity and optional reference into identity management service, of
user who committed the item” (RM common, AUDIT_DETAILS). FerroEHR writes
that committer itself, from the caller it authenticated and the demographic
party it bound the caller to. A client no longer says who committed. This
page shows what the server writes for each kind of caller, what a client may
still send, the refusals, and how a professional’s party gets the login
identifier the binding matches.
- Why the server writes it
- The committer for each kind of caller
- What a client may still send
- The refusals
- Imports
- What the access record adds
- How a party gets its login identifier
- The identity provider side
Why the server writes it
- RM common master04 §Referring to Demographic Entities:
PARTY_PROXY.external_ref“will be non-Void” “where there is an entry in such a service for the party in question”. A professional is aPERSONin FerroEHR’s demographic store, so the committer names thatPERSON. - RM common master04 §Audit Details lets the committer carry “a system
login identifier”, and §Attestation names
AUDIT_DETAILS.committeras “the identity of the attesting party”. - EHDS (Regulation (EU) 2025/327): Art. 13(4) asks the record to “identify the health professional and healthcare provider that carried out such registration or update”, Annex II 3.1 asks for “reliable mechanisms for the identification and authentication of health professionals”, and Annex II 3.2(a) and (b) ask the access record to name the provider and the natural person.
No openEHR specification governs how a login is matched to a party, when the
match is made, or what happens when none matches. That is FerroEHR’s own
design, configured under
[authz.party_binding].
The committer for each kind of caller
ferrohealth-smart classifies every token by its issuer’s kind and profile
(Who the caller is). The server
then writes the committer from the bound party:
| Caller | Committer the server writes |
|---|---|
A person, at a persons issuer through a first-party client | PARTY_IDENTIFIED with the PERSON’s name, an external_ref to the PERSON, the login identifier {issuer = <token iss>, id = <person_key value>, type = "oauth2"} and the provider identifier {issuer, id, type = "healthcare-provider"} |
A delegated person (a client or RFC 8693 actor the CDR grants act_for_persons) | the person’s own committer, as above; the client and the actor go into the access record, never into the committer |
| A Basic user | the committer of the PERSON its [[authz.party_binding.basic_user]] table maps it to, with the login identifier {issuer = "ferroehr", id = <user>, type = "basic"} |
| A representative | PARTY_RELATED naming the representative’s own PERSON in external_ref, their login identifier, and the coded relationship from the openEHR subject_relationship group (253|unknown| when no code fits) |
A patient of a patients issuer | PARTY_SELF with no external_ref (RM common master04, the first scheme of §Referring to the Patient) |
A verified external person of a federation issuer | PARTY_IDENTIFIED with no external_ref: the asserted name, the professional’s hp_identifier under "<country>:<issuing authority>", and the token’s iss and sub with type oauth2 |
| A MyHealth@EU contact point’s professional | as the external person, with the HP Identity Assertion’s NameID under the assertion’s issuer and type hp_identifier:<NameID format> |
A declared system client (relay or device) | PARTY_IDENTIFIED named by the client, with {issuer = <token iss>, id = <client>, type = "client"} and no external_ref |
An organisation of a federation issuer | none: it commits nothing |
| An undeclared system client | none: it commits nothing into an EHR (403) |
A person’s version names the provider the deployment acts for, from
[authz.party_binding] provider, so the version carries the Art. 13(4)
provider without the access record. A PERSON with no name gives a committer
with no name.
A system client commits clinical content only as declared:
- a
relayclient relays another system’s record of a human act, such as an HL7 v2 message. The COMPOSITION names the professional incomposeror in a context participation’sperformer, and the committer stays the client (EHDS Art. 13(4)). FerroBRIDGE writes its HL7 v2 messages this way, with the clinician in the content and the facility from its mapping rules; - a
deviceclient registers a device act with no professional acting. The COMPOSITION names the device incomposer. Treating such a registration as outside Art. 13(4) is FerroEHR’s reading of that article and ofCOMPOSITION.composer; - either one names a facility its grant covers in
context.health_care_facility, or, without a context, infeeder_audit.originating_system_audit.location. The server checks the facility and never fills it.
The client’s grant is policy data in the CDR, and the committer carries an
external_ref to the client’s ACTOR. The full rules are under
What a system client may do.
What a client may still send
A client keeps change_type, description and lifecycle_state, and its
COMPOSITION content, the composer included. Where ITS-REST requires a
committer (a CONTRIBUTION’s audit, each member’s commit_audit, an
embedded attestation), send the placeholder, which names the authenticated
caller and nothing else:
{
"_type": "PARTY_IDENTIFIED",
"identifiers": [
{ "_type": "DV_IDENTIFIER", "issuer": "<token iss, or ferroehr>", "id": "<sub, or the Basic user>" }
]
}
The server replaces it with the committer above. A committer that states
nothing the server’s does not (the same name, the caller’s own login
identifier, the bound PERSON as external_ref) is accepted too. On the
header path, send no openEHR-AUDIT_DETAILS committer at all.
The refusals
| Request | Answer |
|---|---|
A stated committer with another name, another identifier or another external_ref | 403 naming AUDIT_DETAILS.committer |
| A placeholder naming anyone other than the caller | 403 |
A stated PARTY_RELATED, or a PARTY_SELF from anyone but the record’s person | 403 |
| A person’s committer stated by a system caller | 403 |
| An attestation from a patient, a representative, a system caller, an external caller or an unbound caller | 403; only a person bound to a professional PERSON attests (RM common master04 §Attestation, “an explicit signing by one healthcare agent”; limiting it to professionals is FerroEHR’s reading) |
| A commit by an undeclared system client | 403 |
A system COMPOSITION outside its writes, or a person act from a client that is not relay | 403 |
A system COMPOSITION without a facility of its facilities, a relay act naming no professional, or an organisation composer | 422 naming the element |
| A patient-context token’s demographic write | 403 |
An import of a version whose committer names a local party, from a system no creating_system element of the importer’s import grant names | 403 |
A login the binding cannot use is refused before any commit; the codes are under How a login is looked up.
The deviation from ITS-REST
The ITS-REST overview (Requests_and_responses.md, §openehr-version and
openehr-audit-details) recommends that clients provision the audit headers
“based on authentication and authorization runtime data”, and says a supplied
value “MUST be merged”. Refusing a supplied committer that names someone
other than the authenticated caller deviates from that merge rule, on
purpose: a merged committer would let a client record another person as the
author, which RM common master04 and EHDS Art. 13(4) rule out. The
deviation is reported upstream in
#5019.
Imports
POST /message/import… needs an import_ehr or import_ehr_extract policy
grant covering the EHR’s subject namespace. An imported version keeps its
wrapped commit_audit and
attestations as received, so an IMPORTED_VERSION names who committed at the
source. A wrapped committer that names a PERSON of this server, or carries
a login identifier of its issuers, is refused with 403 unless the version
was created by a system a creating_system element of the caller’s import
grant names, read from the CDR on the request
(Operational policy). This
node’s own system id is never trusted that way.
What the access record adds
The committer says who committed. The access record of the same request says
how the caller was bound: binding (bound, provisional, external,
organisation, system, self or a refused-* code), the party, its
groups, the provider, the actor chain of a delegated token and the client. The
values and their renderings are under
The binding outcome.
How a party gets its login identifier
The binding matches the token’s person_key claim against the identifier at
the binding-key selector of a mapped PERSON template, under the
identifier_issuer of the issuer’s [[auth.party]] table. A PERSON
binds a professional only while it performs a live professional ROLE, and
a representative only while it is the source of a recorded representation
relationship. The identifier gets there in one of four ways:
- SCIM. Your identity provider provisions the person through
FerroEHR’s SCIM 2.0 endpoint at
/scim/v2/, sending the key inurn:ietf:params:scim:schemas:extension:ferrohealth:2.0:User:loginIdentifier. FerroEHR creates thePERSONand its professionalROLEin one contribution. - Just-in-time creation at the first login, off until an administrator
writes a
create_at_logingrant for the issuer in the CDR (Operational policy). - The demographic API, under the administrator role.
- An existing
PERSONthat already carries the identifier, adopted as the migration describes.
In the openEHR-DEMOGRAPHIC-CLUSTER.person_identifier.v2 shape, the key is
one DV_IDENTIFIER in the cluster PARTY.details holds, with the
[[auth.party]] identifier_issuer as issuer and its identifier_type as
type:
{
"_type": "CLUSTER",
"archetype_node_id": "openEHR-DEMOGRAPHIC-CLUSTER.person_identifier.v2",
"name": { "_type": "DV_TEXT", "value": "Person identifier" },
"items": [
{
"_type": "ELEMENT",
"archetype_node_id": "at0001",
"name": { "_type": "DV_TEXT", "value": "Identifier" },
"value": {
"_type": "DV_IDENTIFIER",
"issuer": "https://login.microsoftonline.com/<tenant-id>",
"id": "<the Entra object id>",
"type": "guid"
}
}
]
}
Who may set it
- A professional’s
PERSON, its professionalROLEand every provisionedGROUPare written only by the SCIM client that owns them or by an administrator. A professional editing their ownPERSONcannot change their binding. - The binding key never changes once set (RFC 7643 §2.2): a version that
changes it is refused with
403, andPOST /admin/party/binding-keyis the one change. - The professional
ROLEis created or retired only by a SCIM client, just-in-time creation under its admission rules, or an administrator. - A representative’s
PERSONand its representation relationship are registered by an administrator or by the proxy service’s registration, never by SCIM.
The identity provider side
FerroEHR is an OAuth 2.0 resource server and never speaks SAML. The walk-throughs, the generic standards path first, are on Enterprise identity providers.
Enterprise identity providers
FerroEHR does not manage users. There is no user table, no user API, and no plan to add one: identity administration is delegated to your identity provider (IdP), and the CDR consumes standard OAuth 2.0 bearer tokens. This page records that posture and walks through connecting an identity provider: the generic standards path first, then Microsoft Entra ID (Azure AD), AD FS, Okta, Keycloak, a SAML identity provider behind one of them, and the answer for plain-LDAP directories.
- The posture: users live in the IdP
- How the CDR consumes an IdP
- Who the caller is
- The generic standards path
- Microsoft Entra ID (Azure AD)
- AD FS (on-premises Active Directory)
- “We only have LDAP”
- Okta
- Keycloak
- A SAML identity provider through Keycloak or Entra ID
- Just-in-time creation
- Serving SMART apps
The posture: users live in the IdP
A clinical data repository is the wrong place to store credentials. A user store would make the CDR an authentication product (password lifecycle, lockout policy, MFA, recovery flows, and the largest new attack surface the product could grow) duplicating what a dedicated IdP already does under your existing governance. So the split is deliberate and permanent:
- The IdP owns identities: accounts, passwords, MFA, group/role membership, lifecycle (joiners/movers/leavers), and session policy.
- The CDR owns authorization: it validates the token, mines roles from its claims, and enforces RBAC, the access evaluator and per-EHR access control on every request.
The HTTP Basic user list in ferroehr.toml holds persons only, and it is not
a user store: each Basic user maps to the PERSON that carries its binding
key, which the identity provider provisions through SCIM
(bootstrap and migration). A
machine authenticates with OAuth 2.0 client credentials and is granted what
it may do in the CDR (Operational policy),
and most people authenticate with bearer tokens
from the IdP.
Note
The viewer follows the same rule: it authenticates against the same credentials the CDR accepts (the same OIDC issuer, or Basic) and has no user-management screens. To create, disable, or re-role a user, use your IdP’s own administration surface.
How the CDR consumes an IdP
Three things do all the work:
- Token validation (
[auth]): the server reads the issuer’s metadata and key set at boot and validates each bearer token’s signature (asymmetric algorithms only),iss,exp/nbf,audandtyp; the audience list is mandatory, so a server with none refuses to boot rather than accepting another service’s token. See the bearer settings table. - Role mining (
[[auth.issuer]]):FERROEHR__AUTH__ISSUER__0__ROLE_CLAIMS(default["roles","groups","entitlements"], the RFC 9068 §2.2.3.1 carriers; a Keycloak realm addsrealm_access.roles) names the JWT claim paths whose values become the caller’s roles for the role layer. A path may be dotted to walk nested claims, and a claim holding a single string is accepted as readily as an array. - SMART on openEHR scopes: every route requires a scope from the
token’s
scopeclaim (user/composition-*.cruds,user/aql-*.sand so on; see SMART App Launch). Your IdP has to mint them, for example as Keycloak client scopes assigned to the client. A token with roles and no SMART on openEHR scope authenticates and is then refused with403on every route.
Everything below is those three pointed at a different issuer.
Who the caller is
ferrohealth-smart classifies every token by its issuer’s kind and
profile, and the server acts on the kind:
- A person signs in at a
personsissuer through a first-party client, a client the CDR grantssign_in_persons, or with HTTP Basic. The login is bound to thePERSONcarrying its key, and the person commits under thatPERSON. - A delegated person reaches the server through a client or an RFC 8693
actor the CDR grants
act_for_persons. The token’s subject is the person, so the request is bound and committed exactly as the person’s own; the client and the actor do not change who committed. The access record carriesacting_mode = delegated, the client and the actor chain. - A Keycloak impersonation is a delegated person. Keycloak 26.8 puts the
administrator who impersonates a user into an RFC 8693
actclaim of every token of the impersonation session,{"sub": <the administrator's user id>, "preferred_username": …}, which “is always present and cannot be disabled” (Keycloak 26.8.0 release notes, Track impersonation across token lifecycle and downstream services). An impersonation is therefore refused like any undeclared actor, unless the CDR grants the administratoract_for_personson anACTORcarrying its user id as aclient_ididentifier under the issuer. Then the request is bound to the impersonated user and commits as that user, and the access record names the administrator as the actor (EHDS Annex II 3.2(b) asks for the natural person who accessed). Keycloak’sactnames no issuer, so the actor is recorded under the token’s issuer. Theimpersonatorclaim (id,username) of Keycloak’s built-in IMPERSONATOR_ID and IMPERSONATOR_USERNAME session note mappers repeatsactand decides nothing. To refuse every impersonation, add those mappers and setimpersonation_marker = "impersonator"on the issuer: a token carrying the claim is refused before any actor is read. A Keycloak older than 26.8 writes noact, so there the marker is the only way to see an impersonation at all. - A guest, by the profile’s
guestmarkers (Entra ID marks one withacct = 1or anidpother than the issuer), is refused with403(refused-guest) unless the issuer’s[[auth.party]]table setsguests = true. Admit guests only for people acting under your own responsibility (GDPR Art. 9(3) and Art. 29), such as contractors. - A system caller is an app-only token by the profile’s
app_onlymarkers:subequal to the client claim underrfc9068,idtyp = appwithoutscpunderentra, and the listed service-account subjects underkeycloak. A Basic user is never one. A system caller acts for no person, so it holdssystem/scopes only, and a token with auser/orpatient/scope is refused with403. It reads under itssystem/scopes. It commits into an EHR only as a client the CDR grantscommit_composition: anACTORcarrying itsclient_idand performing aROLEwhose capability grants it (Operational policy), under the committerPARTY_IDENTIFIED{name = <client>, identifiers = [{issuer = <iss>, id = <client>, type = "client"}]}with anexternal_refto thatACTOR. The grant decides the templates it writes, the facilities it writes at and whether it relays a person’s act or registers a device’s; an import or an export needs a grant of its own. - A verified external person or organisation of a
federationissuer is admitted only under the federation agreement its partner holds in the CDR for its accessor kind, the partner being the party that carries the token’s issuer andclient_idas aclient_ididentifier (Operational policy), and refused with403without one or under the other accessor’s. Its rights come from the agreement, never from a role:- it holds only the
patient/scopes the agreementreads(besideopenid,profile,fhirUser,online_accessandlaunch), so a token with any other scope is refused, and it reaches only the EHR of its launch context, which needs the issuer in[auth.smart] patient_issuers; - it is an access-service caller by its kind, so an opted-out EHR answers
404as an unknown one does (EHDS Art. 10(1)). Only an external person under an agreement withopt_out_overridereaches one, under an emergency purpose, recorded as an override; an organisation never does; - a read under an agreement with a
consentcondition needs the consent decision reference for the patient (Wabvpz Art. 1(j) and Art. 15a(1)): the token carries it in the claim orauthorization_detailsmember its[[auth.federation]]table maps toconsent.reference, as one string (a coded value refuses the token with401), and itspatient/grant holds it to the launch-context patient. A read without it is refused with403, and the access record carries the reference with the other external fields; - under an NL agreement, Wabvpz Art. 15f holds an insurer and an
occupational or insurance physician out. A caller whose
nl.roleis the UZI role 01.008 (bedrijfsarts) or 01.048 (verzekeringsarts) is refused with403asrefused-wabvpz-role, and a caller whosenl.organisation_typeis missing or is not a care provider type of Nictiz’sOrganisatieTypeCodelijstis refused with403asrefused-wabvpz-organisation-type, which is how an insurer is refused; - a
chainedorganisation request carries the requester’s correlation id in the claim or attestedauthorization_detailsmember its[[auth.federation]]table maps tocorrelation_id, as one string; a request without it is refused with403, and a request header never stands in for it; - a caller above its agreement’s
caller_rateis answered429withRetry-Afterbefore any patient lookup, a MyHealth@EU contact point’s included; - an external person commits only a COMPOSITION of a template the
agreement’s
writeslists; an organisation commits nothing, and neither attests or writes a demographic party. Neither deletes, except the discard of a dispensation described under the MyHealth@EU contact-point route; - an external person’s commit records the server’s committer, a
PARTY_IDENTIFIEDwith noexternal_ref: the asserted name as one string, the professional’shp_identifierunder the issuer"<country_code>:<issuing_authority_name>"with typehp_identifier, and the token’sissandsubwith typeoauth2. The country must be an upper-case ISO 3166-1 alpha-2 code, and the issuing authority is NFC-normalised with its white space trimmed and collapsed and may hold no:, control or bidi character. A missing or failing field is refused with403naming it. Map the authority with aconstantsource in the[[auth.federation]]table when the token does not carry it; - the COMPOSITION names the healthcare provider the token asserts in
EVENT_CONTEXT.health_care_facility, or with no context infeeder_audit.originating_system_audit.location: aDV_IDENTIFIERwith theprovider.healthcare_provider_identifierasidand theprovider.issuing_authority_nameasissuer. The server writes no facility and refuses a composition without it with422(EHDS Art. 13(4)). This is the domestic form; the MyHealth@EU contact-point form follows.
- it holds only the
- Attestations come only from a person bound to a professional
PERSON. A patient, a representative, a system caller and an unbound caller are refused with403(RM common master04 §Attestation).
The MyHealth@EU contact-point route
A federation issuer with contact_point = true in its [[auth.federation]]
table is a MyHealth@EU national contact point (NCPeH-A’s authorization
server). Its person agreement names the service it serves in ehdsi_service
(patient_summary, eprescription or orcd), and its issuer goes into
[auth.smart] patient_issuers. Every request runs with a sender-constrained token
(sender_constraint = "required"). On every patient-data route:
- The token carries the patient of the treatment relationship confirmation
in
ehdsi.patient.id, assystem|value, the patient identifier’s assigning authority and value, the form every family resource server reads. A token without it, or with a value of another form (an empty system or one with whitespace, or a value holding a control character,|,^,&,~or a backslash), is refused with403whosedetailopens withERROR_SEC_DATA_INTEGRITY_NOT_ENSURED(MyHealth@EU Requirements Catalogue 10.0.0 requirement 11.01.02), recorded asrefused-trc-missing, before the EHR index is asked. - The patient is resolved to its EHR through the deployment’s
EHR index, compared on the value and the
assigning authority, and the request must name that EHR: the route’s
{ehr_id}, or a query’sehr_id. The EHR stands in for the launch context the token does not carry (eHDSI XCA Profile 8.0.1 §4.2.1). - Another patient’s EHR, an EHR the server does not hold, an EHR an
opted-out patient’s record keeps out of reach, a TRC patient no EHR
belongs to, and a request that names no EHR all get one answer,
404of typetrc-patient-mismatchwhosedetailopens with the service’s*_NOT_FOUNDcode (ERROR_PS_NOT_FOUND,ERROR_EP_NOT_FOUNDorERROR_ORCD_NOT_FOUND), which the contact point answers as “No Data”. Each is recorded as arefused-trc-patient-mismatchsecurity event, once per request and never summarised (eHDSI XCA Profile 8.0.1 §4.2.2). - Where the agreement sets
discard, the person may discard a dispensation of a template itswriteslists, as a logical delete (DELETE /ehr/{ehr_id}/composition/{preceding_version_uid}), withindiscard_windowof its first commit (MyHealth@EU Requirements Catalogue 10.0.0, requirement 07.04). The eHDSI point of care is a name only, so the dispensation’sEVENT_CONTEXT.health_care_facilitymust carry every identifier the discarding token names its point of care by: theprovider.healthcare_provider_identifierunder theprovider.issuing_authority_name, and the same identifier under the issuerurn:oasis:names:tc:xspa:1.0:subject:organization-id, the HCPO’sorganization-id(eHDSI SAML Profile 10.0.0 §2.3). Any other discard is refused with403. - The committer of a contact point’s caller names the professional by the HP
Identity Assertion’s
NameID: aDV_IDENTIFIERwith the assertion’s issuer (ehdsi.assertion.issuer, NCP-B) asissuer, theNameID(ehdsi.professional.hp_identifier) asid, andhp_identifier:<NameID format>astype, such ashp_identifier:urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName, because one string under two formats names two identifiers (eHDSI SAML Profile 10.0.0 §2.1). The token’sissandsubfollow with typeoauth2, as on a domestic route. A discard is a logical delete under the same committer. - A contact point’s COMPOSITION carries, in
EVENT_CONTEXT.health_care_facility.identifiers, the provider’s identifier underprovider.issuing_authority_nameand, as a secondDV_IDENTIFIER, the HCPO’sorganization-idunder the issuerurn:oasis:names:tc:xspa:1.0:subject:organization-id. A commit without the second is refused with422; the server writes neither. - A token that carries permissions (
ehdsi.professional.permissions) records a dispensation and discards one only withPPD-046among them, as the code or itsurn:oasis:names:tc:xspa:1.0:subject:hl7:permission:URN (eHDSI SAML Profile 10.0.0 §2.5); otherwise it is refused with403.
The generic standards path
Every walk-through on this page configures the same three things: an issuer
of kind persons that signs your professionals’ access tokens, the
[[auth.party]] table their logins are bound through, and a SCIM client that
provisions their PERSONs. Configure them first against a standards-only
authorization server; the vendor sections after this one are the same
configuration through a preset (entra, keycloak, okta), each listing
the preset’s deviations with their sources. Every preset key can be set on
the issuer table, which wins over the preset.
-
The issuer. The
rfc9068profile is the default: an RFC 9068 access token withtypat+jwt, the client inclient_idand the scopes inscope.[[auth.issuer]] issuer = "https://as.example.com" kind = "persons" audience = ["ferroehr"]A person’s token is admitted only through a client the CDR grants
sign_in_persons: an administrator writes the client’sAGENT, carrying itsclient_idunder the issuer, and aROLEgranting the operation (Operational policy). -
The binding, on
sub. OpenID Connect Core 1.0 §5.7 namesisswithsubas the only stable identifier of an end-user, so therfc9068profile binds onsub. The[[auth.party]]table names the identifier the key is matched against:[[auth.party]] issuer = "https://as.example.com" identifier_issuer = "urn:example:staff-login" identifier_type = "uuid"An
email,phone_number,preferred_usernameornameis never a key. -
The SCIM client. Your authorization server issues the provisioning client an access token by the client credentials grant (RFC 6749 §4.4), or in exchange for a client assertion (RFC 7523 §2.2). Declare the authorization server as an issuer of kind
machines, and grant the clientscim_provisionin the CDR with thebinding_issuerof step 2. The SCIM client sends the key asurn:ietf:params:scim:schemas:extension:ferrohealth:2.0:User:loginIdentifier(RFC 7644). -
An onward caller. A service that calls FerroEHR for a signed-in professional, such as FerroBRIDGE, exchanges the professional’s token at the authorization server by RFC 8693 token exchange. Grant the service
act_for_personson theAGENTcarrying its client id (or, for an RFC 8693 actor, itssub) under the issuer: the request is bound to the professional, and the access record names the service.
Who is the committer shows what the server records for each of these callers.
Microsoft Entra ID (Azure AD)
Entra ID exposes a standards-compliant OIDC issuer per tenant.
-
Register an application (Entra admin center → App registrations). Note the Directory (tenant) ID and the Application (client) ID.
-
Define app roles (App registration → App roles): create roles named after the CDR roles you use (for example
USER,CLINICAL,ADMIN) and assign users/groups to them (Enterprise applications → your app → Users and groups). Entra puts assigned app roles in the token’srolesclaim. -
Expose an audience: either use the client ID as the audience or add an Application ID URI (for example
api://ferroehr). -
Point the CDR at the tenant issuer and mine the
rolesclaim:export FERROEHR__AUTH__ISSUER__0__ISSUER=https://login.microsoftonline.com/<tenant-id>/v2.0 export FERROEHR__AUTH__ISSUER__0__KIND=persons # Entra ID mints no RFC 9068 tokens (`typ` JWT, the scopes in `scp`), which # the `entra` profile reads. export FERROEHR__AUTH__ISSUER__0__PROFILE=entra export FERROEHR__AUTH__ISSUER__0__AUDIENCE=api://ferroehr export FERROEHR__AUTH__ISSUER__0__ROLE_CLAIMS=roles # Its roles may grant the administrator role. export FERROEHR__AUTHZ__RBAC__ROLE_ISSUERS=https://login.microsoftonline.com/<tenant-id>/v2.0Then grant your app
sign_in_personsin the CDR, on theAGENTcarrying its client id under the tenant issuer (Operational policy); a person’s token through any other client is refused with401. -
Verify: request a token for the app (any OAuth2 client credential or auth-code flow) and call the API. Read the status codes as a diagnostic:
Status What it tells you 200-familyroles arrived and the operation was permitted 401no credential, or one the server rejected (the body deliberately never says which) 403the token is valid but carries no role or SMART on openEHR scope the operation needs: a clinical call needs a matching scope and, unless every SMART on openEHR scope it holds is a system/scope, at least one role, an admin call needs the admin role and the product scope400the Authorizationheader itself is malformed; no credential was ever read503the CDR could not read your issuer’s key set again, so the token was never judged: check network egress, not the token
Important
A role must arrive in a role claim, not in
scope. The OAuth2scopeclaim grants a client delegated authority (RFC 6749 §3.3) and says nothing about the subject’s roles, so it is not a role source. If your IdP is configured to put role names inscope, map them intoroles(or another entry ofROLE_CLAIMS) instead.
Tip
Group-based deployments can emit the
groupsclaim instead and list it inROLE_CLAIMS, but group claims arrive as object IDs unless you configure group names, so app roles usually read better in policy.
Warning
Two configuration mistakes are boot errors rather than runtime surprises, so you will find them the first time you start the server: an issuer that is not an
httpsURL with no query or fragment, and an empty audience list. Both are deliberate: the second is what stops this server accepting a token minted for a different service. An issuer the server cannot reach at boot refuses the start too.
Binding and provisioning with the entra preset
The entra preset is the generic path with Entra ID’s deviations, each from
Microsoft’s Access token claims reference (claims) or Optional claims
reference (optional):
| Preset key | Value | Source |
|---|---|---|
person_key | oid | claims, oid: “The immutable identifier for the requestor”; sub is a pairwise value per application and never a key |
tenant_claim | tid | claims, tid |
token_types | ["JWT"] | claims, header typ “always JWT” |
scope_claim, app_only_scope_claim | scp (string), roles (array) | claims, scp and roles |
client_claims | ["azp"] | claims, azp |
app_only | idtyp = "app", and no scp | optional, idtyp; claims, scp “Only included for user tokens” |
guest | an idp other than the issuer, or acct = 1 | claims, idp; optional, acct |
expect | ver = "2.0" | claims, ver |
user_claims | ["acct"] | optional, acct, emitted only when the registration asks for it |
unstable_claims | upn, unique_name | claims, unique_name; optional, upn |
Binding on oid is FerroEHR’s choice on Microsoft’s “immutable identifier”
wording. For it to work, the app registration of FerroEHR’s API, and of
every service such as FerroBRIDGE that calls it, needs:
- the optional claims
acct(the guest marker: the preset requires it on every user token, so a registration without it is refused at the first token, naming the claim),idtyp(the app-only marker),given_nameandfamily_name, and theprofilescope thatoidneeds; "requestedAccessTokenVersion": 2in the manifest’sapiattribute (Understand the app manifest): FerroEHR accepts v2.0 tokens only, and a null value defaults to version 1.
Cross-tenant synchronisation and converted guests: a member-type user of
another tenant carries acct = 0, but an idp naming their home tenant. The
preset treats them as a guest by idp, so they bind only where the
[[auth.party]] table sets guests = true, and never as staff.
A person in more groups than fit in a token (the groups overage: “150 for
SAML tokens, 200 for JWT tokens”, claims) carries no groups claim, and the
login is refused with 403 (refused-groups-unavailable) unless the issuer
sets adapter = "idp-entra" with an [auth.idp.entra] table, which reads the
groups from Microsoft Graph. Provision only the groups assigned to the
application to stay under the limit.
Provisioning through SCIM. The non-gallery enterprise application, its
Tenant URL https://<host>/scim/v2/ and the steps on FerroEHR’s side are in
Provision from Microsoft Entra ID.
On the Entra side:
- Authentication. Use the OAuth 2.0 client credentials grant against your own authorization server, or Workload Identity Federation, in which Entra presents a signed client assertion your authorization server exchanges. Never leave the Secret Token blank: Entra then sends its own test token, which every non-gallery application of the tenant receives.
- Attribute mappings. Replace the tutorial’s
mailNicknametoexternalIdwithobjectIdtoexternalId, because a mail nickname “may not be unique in the directory” (Develop a SCIM endpoint). MapobjectIdtourn:ietf:params:scim:schemas:extension:ferrohealth:2.0:User:loginIdentifieras well, anduserPrincipalNametouserName. - Matching precedence. Set
externalIdfirst anduserNamesecond. - Remove every other attribute the FerroEHR mapping does not carry: “Schema discovery isn’t currently supported on custom non-gallery SCIM application” (Develop a SCIM endpoint), so Entra cannot learn FerroEHR’s schema and sends what its defaults name.
AD FS (on-premises Active Directory)
AD FS 2016+ speaks OIDC. This is also the supported path for on-premises Active Directory in general: front AD with AD FS (or another OIDC-capable broker) rather than pointing anything at LDAP.
-
Create an Application Group (AD FS Management → Application Groups → Web API template, or Server application + Web API for interactive clients). The Web API’s identifier becomes the token audience.
-
Issue role claims: on the Web API’s Issuance Transform Rules, add a rule mapping AD group membership to the
roleclaim (template: Send Group Membership as a Claim), one rule per CDR role. -
Point the CDR at the AD FS issuer and mine the
roleclaim:export FERROEHR__AUTH__ISSUER__0__ISSUER=https://adfs.example.com/adfs export FERROEHR__AUTH__ISSUER__0__KIND=persons export FERROEHR__AUTH__ISSUER__0__AUDIENCE=ferroehr-api # AD FS mints no RFC 9068 tokens: name the type and the claims its tokens carry. export FERROEHR__AUTH__ISSUER__0__TOKEN_TYPES=JWT export FERROEHR__AUTH__ISSUER__0__REQUIRED_CLAIMS=iss,sub,aud,exp export FERROEHR__AUTH__ISSUER__0__ROLE_CLAIMS=role export FERROEHR__AUTHZ__RBAC__ROLE_ISSUERS=https://adfs.example.com/adfsGrant your app
sign_in_personsin the CDR, as for Entra ID above.Discovery works out of the box (
https://adfs.example.com/adfs/.well-known/openid-configuration). -
Verify with the same status table as above:
401without a token,403with a token that lacks the required role.
Note
AD FS emits a single string for one role and an array for several; the role-mining layer accepts both shapes on any configured claim path.
“We only have LDAP”
The CDR does not speak LDAP, by design: LDAP bind would put password handling back inside the CDR. Front the directory with an OIDC-capable broker and connect that instead:
- Active Directory → AD FS (above) or Entra ID (if synced).
- Generic LDAP → Keycloak with LDAP user federation (the Keycloak example then applies verbatim), or any other OIDC provider that can federate LDAP.
The broker owns the LDAP bind; the CDR sees only signed tokens.
Okta
The okta preset reads Okta’s access tokens (Okta, OpenID Connect & OAuth
2.0 API, the reserved claims of the access token):
| Preset key | Value | Source |
|---|---|---|
person_key | uid | uid: “A unique identifier for the user” |
client_claims | ["cid"] | cid: “Client ID of the client that requested the access token” |
scope_claim | scp (array) | scp: “Array of scopes that are granted to this access token” |
app_only | no uid | uid “isn’t included in the access token if there is no user bound to it” |
token_types | none | the page names no typ, so an okta issuer fails to load until you set token_types to what your Okta server writes |
[[auth.issuer]]
issuer = "https://example.okta.com/oauth2/default"
kind = "persons"
profile = "okta"
token_types = ["<the typ header your server writes>"]
audience = ["api://ferroehr"]
Read the typ header of one of your server’s access tokens and set it in
token_types; the preset deliberately names none.
Keycloak
The keycloak preset reads Keycloak 26.8 access tokens: azp as the client,
scope as a string, typ JWT (confirm it against your own server), and no
app-only marker until you list your service accounts. Configure a realm for
binding as follows.
-
Two realms. An issuer has one
kind, so professionals sign in at one realm (kind = "persons") and patients at another (kind = "patients"). -
The binding on
sub. Keycloak’ssubis the user id, which no user can change. A user-profile attribute can be the key instead only when its Who can edit permission is Admin ("permissions": { "edit": ["admin"] }, Server Administration Guide, Managing user attributes). -
Service accounts. “A client’s service account is a user account with username
service-account-CLIENT_ID”, so itssubis a user id. List every service account of the realm by itssubin the issuer’sapp_only; the empty list refuses the issuer at load. On a realm with just-in-time creation an unlisted service account would be read as a person, so the list must be complete.[[auth.issuer]] issuer = "https://keycloak.example.com/realms/staff" kind = "persons" profile = "keycloak" audience = ["ferroehr"] app_only = [{ subjects = ["<the sub of service-account-lab>"] }] -
The audience for an onward caller. Keycloak’s standard token exchange requires “the requester client set as an audience in the
audclaim” of the subject token (Securing applications, token exchange). Add an audience mapper to the client scope your professionals’ tokens carry that puts the bridge’s or gateway’s client inaud, and let the onward caller name FerroEHR’s client id in theaudienceparameter. Grant the onward clientact_for_personsin the CDR. -
No impersonation on a binding realm. “Any user with the
impersonationrole in the realm can impersonate a user” (Impersonating users). Check that no user or group holds the realmimpersonationrole, or the fine-grained admin permissionimpersonate, and that no client holds the legacy token exchange’s impersonation permission; disable the legacy token exchange. Where an administrator must keep impersonation, add the built-in user session note mappers IMPERSONATOR_ID and IMPERSONATOR_USERNAME to the inbound client scope and setimpersonation_marker = "impersonator", so every impersonation is refused. Whether Keycloak 26.8 adds those mappers by default is not verified here; check the client scope. Keycloak 26.8 also writes an RFC 8693actclaim into every impersonation token, so an impersonator the CDR does not grantact_for_personsis refused even without the marker (Who the caller is). -
Realm hardening. On a binding or just-in-time realm: no self-registration, no social or other brokered identity provider without an explicit allow-list, and no automatic account linking (the first login flow’s “automatically set existing user”, or linking by email). Each of them would let a person choose which account, and so which
PERSON, a login reaches. -
SCIM. Keycloak 26.8 promotes its SCIM API to supported, as a service provider for its own realm’s users and groups (release notes, SCIM API (supported)). It provisions nothing outbound, so it cannot create FerroEHR’s
PERSONs orGROUPs: a deployment needs an upstream SCIM client, such as its identity governance or HR system, or just-in-time creation. Enabling Keycloak’s own SCIM adds a second SCIM endpoint to the deployment, which FerroEHR does not read.
A SAML identity provider through Keycloak or Entra ID
FerroEHR never sees SAML. It is an OAuth 2.0 resource server and validates only access tokens, so a SAML 2.0 identity provider reaches it through an authorization server that brokers it:
- Keycloak brokers it by Web Browser SSO (OASIS SAML V2.0 Profiles §4.1)
as the service provider, and issues its own OpenID Connect tokens after the
login. Set the identity provider’s Principal Type to the Subject
NameIDwith the persistent format (urn:oasis:names:tc:SAML:2.0:nameid-format:persistent, Keycloak’s default NameID Policy Format) or to an immutable attribute, so the brokered user’s Keycloaksubstays the same from login to login. Keycloak refuses a SubjectNameIDprincipal with the transient format. Map the name attributes togiven_name,family_nameandnamefor just-in-time creation, and the group attribute to the group claim. - Entra ID federates the SAML identity provider for its tenant, and the
entrapreset reads the tokens it issues as above.
Never bind on email, phone_number, preferred_username, name, upn or
unique_name, whatever the SAML assertion maps them from (OpenID Connect
Core 1.0 §5.7).
Just-in-time creation
An issuer can let a professional with no party work at their first login:
FerroEHR then creates a provisional PERSON from the access token and binds
the login to it, as
the configuration reference
describes. It is off until an administrator writes a create_at_login
grant for the issuer in the CDR, whose admission conditions read the
claims below
(Operational policy). What
each identity provider must do for it:
- Put the name claims in the access token. FerroEHR reads the person’s
data from the access token only (RFC 9068 §2.2.2 lets an authorization
server include resource owner attributes there), never from an ID token or
the userinfo endpoint. A generic issuer emits the OpenID Connect Core 1.0
§5.1 claims your mapped attributes name (
name,given_name,family_name). - Microsoft Entra ID (the
entrapreset): add the optional claimsgiven_nameandfamily_nameto the access token of your app registration and request theprofilescope: Entra documents both as v2.0 optional claims that “Requires theprofilescope” (Microsoft identity platform, Optional claims reference). Admit logins by group (anadmit_groupelement of thecreate_at_logingrant, holding an object id ofgroups) or by theidpclaim (anadmit_idpelement), which “records the identity provider that authenticated the subject of the token” and differs from the issuer for a guest (Access token claims reference). The key is the object idoid, neverupnoremail, which Entra calls mutable. - Keycloak (the
keycloakpreset): the built-inprofileclient scope maps the name claims; check that its mappers add them to the access token. Make the name attributes administrator-controlled as the key is: in the realm’s user profile, set the attribute’s Who can edit permission to Admin only ("permissions": { "edit": ["admin"] }in the JSON editor), which Keycloak defines as writable only from the administrative context (Server Administration Guide, Managing user attributes, Permission). A professional who could edit their own name could change what their first login writes.
The userName comes from user_name_claim, or the key when it is unset, and
never from a claim the user can change. SCIM completes a provisional PERSON
later: a client whose binding_issuer is the issuer’s identifier_issuer
finds it by userName, sets the externalId, and a complete PUT makes it
complete.
Serving SMART apps
If your IdP is also the authorization server for SMART App Launch apps, the same
[auth] issuer does double duty: the CDR validates the tokens those apps come
back with, and the discovery document it serves is built from that issuer’s
metadata, so the server it advertises to apps is the one it accepts tokens
from. See SMART App Launch.
SMART App Launch
FerroEHR is the resource server of a SMART on openEHR platform: a clinical
app is launched with an OAuth 2.0 access token from your authorization server
(Keycloak or any standards-compliant identity provider), and the CDR checks
the token, enforces the SMART on openEHR scopes it carries, and binds a
patient/ grant to the EHR of the launch context. FerroEHR never issues
tokens, registers clients, or serves the OAuth 2.0 endpoints itself; those
remain your authorization server’s job. Token checking and scope enforcement
run on ferrohealth-smart, the crate every FerroHEALTH product shares.
- Scopes are enforced on every route
- The scope grammar
- What each route requires
- Launch context: binding to one EHR
- The discovery document
- Configuration keys
Scopes are enforced on every route
Whenever [auth] is on, every route carries a SMART on openEHR requirement,
and a credential whose scopes do not meet it is refused with 403 and the
insufficient_scope challenge (RFC 6750 §3.1). There is no switch: a route the
table does not know is refused too, so a route can never answer to a token
that carries no grant for it. A bearer token’s scopes come from its scope
claim; a Basic user’s from the hold_scopes grants of its PERSON
(Operational policy), and the first administrator’s
[auth] product_scope from [authz.rbac] first_admin. With
authentication off nothing is checked.
The scopes, the role gate and the access evaluator are all checked: SMART only narrows, and never lets through what a role or a policy refuses (see Security).
The scope grammar
SMART on openEHR resource scopes have the form
<compartment>/<resource>.<permissions>:
- Compartment:
patient(the launch context’s EHR only),user(what the user may see), orsystem(a backend service, no user). - Resource: one of three families,
composition-<template-id>,template-<template-id>, oraql-<stored-query-name>. - Permissions: any combination of
ccreate,rread,uupdate,ddelete,ssearch/execute, in any order (.crud,.rs,.sr).
Resource ids accept wildcards: * matches within one ::-delimited namespace
segment, ** matches across namespaces, and a bare * or ** matches every
id. Every other character, :: and . included, is literal. The permission
tail is split at the last dot, so template ids and query names keep their
internal dots and versions.
| Scope | Grants |
|---|---|
user/composition-*.crud | Create, read, update, and delete any composition, and the EHR’s other data. |
user/composition-MyHospital::*.r | Read compositions of any template in the MyHospital namespace (not sub-namespaces). |
user/template-*.cruds | Full access to template definitions. |
user/aql-*.s | Run any query. |
patient/composition-*.r | Read the compositions of the launch context’s EHR only. |
system/aql-org.openehr::bloodpressure.v1.s | A backend service may run that one stored query. |
The FHIR v1 suffixes (.read, .write) are not part of this grammar. A token
may carry SMART on FHIR scopes beside these; they grant nothing on an openEHR
route.
What each route requires
| Routes | Requirement |
|---|---|
| COMPOSITION and versioned-composition operations | composition-<template> with the operation’s permission, the template read from the body or the stored version |
EHR, EHR_STATUS, DIRECTORY, CONTRIBUTION, the item tags, the EHR extract (/message) | composition- with the operation’s permission over every template: they are the EHR’s data, and the draft names no family of their own |
| operational templates, archetypes and artefacts | template-<template> with the operation’s permission, the template from the {template_id} path parameter |
| query execution | aql-<query> with s, the query from the {qualified_query_name} path parameter |
| stored-query definitions | aql-<query> with the operation’s permission |
| the DEMOGRAPHIC API | a client the CDR grants access_demographic, or the [auth] product_scope: no SMART on openEHR scope covers demographic data |
| the ADMIN API | the [auth] product_scope |
| the terminology API, the ITI-81 audit retrieval | an authenticated caller |
Note
An unresolved resource id matches only a bare wildcard. A template upload or list, an ad-hoc query and an EHR-level operation name no template or query, so only a scope on every resource (
*or**) covers them. Grant those scopes deliberately.
A system/aql-* grant “would grant access to all registered and ad-hoc AQL
queries system-wide” (master08 §Resource Scopes), so it counts only for a
backend client: a client the CDR grants query_system_wide.
Both client grants are policy the CDR holds, read on every request with no
restart: a capability of a ROLE the client’s AGENT performs, coded
ferroehr-operations::query_system_wide or
ferroehr-operations::access_demographic, under an [authz.grants] allowed
that admits the code. See
Operational policy
for a worked example. A grant counts for a client’s own app-only token; a
person signed in through that client holds the person’s grants.
Launch context: binding to one EHR
When an app is launched for a patient, your authorization server puts the
openEHR EHR id of the launch context in the token’s ehrId claim
(master07 §Context Selection). A patient/ grant then reaches that one EHR:
- it counts only for an issuer listed in
[auth.smart] patient_issuers, because anehrIdnames an EHR of the platform that issued it; - an EHR route whose
{ehr_id}names another EHR is refused, and so is an operation that names no EHR, such as creating an EHR; - a query runs only within the launch context’s EHR, named by its single-EHR
ehr_idparameter oropenehr-ehr-idheader; a query naming no EHR, or another one, is refused; - it reaches EHR data alone, never a template definition;
- a write under a grant of
patient/scopes alone is the person’s own: it is marked as inserted by the person and may not alter a version a professional committed (EHDS Art. 5).
user/ and system/ grants carry no such binding, and when a user/ grant
covers the same operation the wider grant wins.
A system/ grant belongs to a backend client acting for no person. A token
its issuer’s profile marks app-only holds system/ grants alone: one that
carries a user/ or patient/ scope is refused with 403, because no person
stands behind it. Such a client commits only under a grant of the CDR
(Who the caller is).
The discovery document
With [auth.smart] discovery = true, the server serves the SMART configuration
document, unauthenticated, at:
GET /ferroehr/rest/.well-known/smart-configuration
(relative to the REST root, or to [auth.smart] platform_base_url when set). The
document is built from the metadata of one [auth] issuer, read at boot:
[auth] described_issuer, else the one issuer that is not of kind
machines and whose metadata FerroEHR has. Several such issuers without
described_issuer, or none, refuse the start
(the described issuer). It carries the
authorization, token, registration, introspection and revocation endpoints,
the grant types and client authentication methods it supports, and its
jwks_uri. It therefore needs an issuer whose metadata names a
token_endpoint, which the document requires (SMART App Launch 2.2.0,
Conformance, §Metadata). An issuer read from a jwks_file has no metadata of
its own: [auth.smart] issuer_metadata_file names a JSON file with its RFC 8414 §2
metadata, which must name an [auth] issuer read from a jwks_file and hold
every endpoint to https (a loopback host excepted). The issuer it names may
stand anywhere in the list, beside a Basic users’ issuer listed first. Without
it, enabled = true refuses the start.
export FERROEHR__AUTH__ISSUER__0__ISSUER=https://as.example/realms/ferroehr
export FERROEHR__AUTH__ISSUER__0__KIND=persons
export FERROEHR__AUTH__ISSUER__0__AUDIENCE=ferroehr-api
export FERROEHR__AUTH__SMART__DISCOVERY=true
# The URL clients reach the server at, which the absolute service URLs hang
# off; required.
export FERROEHR__SERVER__PUBLIC_BASE_URL=https://cdr.example.com
The app signs persons in once the CDR grants it sign_in_persons, on the
AGENT carrying my-smart-app under the issuer
(Operational policy).
A document looks like:
{
"jwks_uri": "https://as.example/realms/ferroehr/certs",
"authorization_endpoint": "https://as.example/authorize",
"token_endpoint": "https://as.example/token",
"token_endpoint_auth_methods_supported": ["client_secret_basic", "private_key_jwt"],
"grant_types_supported": ["authorization_code", "client_credentials"],
"scopes_supported": [
"openid", "profile", "launch",
"user/composition-*.cruds", "user/template-*.cruds", "user/aql-*.cruds",
"system/composition-*.cruds", "system/template-*.cruds", "system/aql-*.cruds"
],
"services": {
"org.openehr.rest": {
"baseUrl": "https://cdr.example.com/ferroehr/rest/openehr/v1",
"description": "The openEHR REST API baseUrl"
}
},
"response_types_supported": ["code"],
"code_challenge_methods_supported": ["S256"],
"capabilities": [
"permission-user", "client-confidential-symmetric",
"client-confidential-asymmetric", "launch-standalone",
"context-openehr-ehr", "openehr-permission-v1"
]
}
servicesnames the openEHR REST service;org.fhir.restis never advertised, because FerroEHR serves no FHIR API for clinical data. EachbaseUrlis absolute, built fromserver.public_base_url,server.base_pathandapi.base_path, which is why that key is required.capabilitiescarries what the server enforces:context-openehr-ehrandopenehr-permission-v1always,permission-user, andpermission-patientonly whenpatient_issuersbinds an issuer; the client types and launch modes the issuer supports;sso-openid-connect, with theissuermember it requires, when the issuer’s metadata lists theopenidscope;context-openehr-episodewhenepisode_launchis on; and your[auth] capabilities, wherelaunch-base64-jsongoes if your apps read it.grant_types_supportednames onlyauthorization_codeandclient_credentials, whatever else the issuer advertises: the implicit and password grants are deprecated (master06 §Deprecated Flows).code_challenge_methods_supportedalways carriesS256and neverplain.scopes_supportedlists[auth] scopes_supportedwhen set, otherwise the scopes the route table honours above, with thepatient/ones only when an issuer is bound. It never copies the issuer’s own list: “the server SHALL support all scopes listed here”.
With enabled = false the path is not mounted at all (404).
Configuration keys
The keys live in [auth] and [auth.smart]; see the
configuration reference.
| Key | Default | Meaning |
|---|---|---|
FERROEHR__AUTH__SMART__DISCOVERY | false | Serve the discovery document. |
FERROEHR__SERVER__PUBLIC_BASE_URL | unset (required when enabled) | The URL clients reach the server at, e.g. https://cdr.example.com: the absolute services.*.baseUrl values are it, server.base_path and api.base_path. |
FERROEHR__AUTH__SMART__PLATFORM_BASE_URL | unset | Base the discovery document hangs off. Unset = the REST root (/ferroehr/rest). A leading path is honoured (/gateway/v1 → /gateway/v1/.well-known/smart-configuration). |
FERROEHR__AUTH__SMART__PATIENT_ISSUERS | [] | The issuers whose patient/ grants count. |
FERROEHR__AUTH__SMART__EPISODE_LAUNCH | false | Advertise and accept episode launch context (experimental; advisory only, no episode filtering). |
FERROEHR__AUTH__PRODUCT_SCOPE | __ferroehr.platform | The scope that admits the ADMIN API and, beside a client the CDR grants access_demographic, the DEMOGRAPHIC API. |
FERROEHR__AUTH__CAPABILITIES | [] | Capabilities the discovery document adds. |
FERROEHR__AUTH__SCOPES_SUPPORTED | [] | The scopes the discovery document lists. |
Note
Episode context is experimental: enabling it advertises the capability and accepts
launch/episode, but the server applies no episode-scoped filtering: openEHR has no first-class episode resource yet.
Audit trail (IHE ATNA)
FerroEHR keeps a full security audit trail of API access (who did what to which resource, with what outcome, from where, and when) following the IHE ATNA (Audit Trail and Node Authentication) profile, the standard the openEHR reference text points at (its platform service description names a system log “IHE ATNA-compliant”). It is on by default: every deployment records a queryable audit trail with zero external dependencies.
Warning
Two postures are legitimate to run and wrong to run silently, so the server says them at
warnon boot (structured fieldposture = "audit"), in theaudit_senderreadiness indicator and on/management/info: auditing off ([audit] enabled = false) writes no access log and leaves the EHDS logging component off, and the shipped defaultfail_mode = "open"drops a record the audit queue cannot take while the request succeeds, so an access under load can go unrecorded. A deployment that must never serve an unrecorded access setsfail_mode = "closed", which answers503andRetry-Afterinstead. A deployment declaringdeployment.profile = "production"refuses to start with auditing off.
- The record, in both official formats
- The openEHR access-log entry
- Reads are logged too, per record
- The EHDS logging elements, mapped
- Reading the access log over ITS-REST
- Sinks
- Tamper evidence
- Checkpoints and the transfer of a log
- Retrieving audit records (ITI-81)
- Node authentication (ITI-19, mutual TLS)
- Against independent ATNA implementations
- Configuration summary
The trail is orthogonal to openEHR’s own CONTRIBUTION/AUDIT_DETAILS
change-control audit (which the server always writes in the same transaction
as every version change): openEHR audit records what a version says about its
own authorship; ATNA records security surveillance of access, including
reads and rejected attempts.
The record, in both official formats
Every audited operation produces one record, rendered in the two formats the
IHE standards define. Both are written by the shared audit crates of the
FerroHEALTH products (FerroAUDIT): ehds-logging writes the EHDS access
record, and ihe-atna writes the BALP AuditEvent and the DICOM audit
message and sends them. FerroEHR decides which accesses are logged, what each
record says and where it is stored.
- FHIR R4
AuditEventfollowing the IHE BALP 1.1.4 (Basic Audit Log Patterns) content profiles: the modern RESTful-ATNA form and the canonical stored form. An access to clinical content is the EHDS access record:ehds-loggingwrites it on theRESTfulpattern of its action, with the patient behind the EHR as the patient entity (PatientRead,PatientCreateand the otherPatient*claims), the categories, the retention, the security labels and the origins. Every other record (an authentication, a template or party operation, a refused access) is a BALP exchange FerroEHR fills directly. The person is theagent:userslice, named by the token’s issuer and subject, with the token’sjtias itspolicy, the caller’s roles as itsroleand the client application as an agent of its own (BALP 1.1.4 §3:5.7.5.4); a Basic user is named by the account alone, with no issuer and no client. The ITS-REST operation id is a secondsubtype(urn:openehr:its-rest:operation). The object an access record reads, creates, updates or deletes is named by its openEHR object id asentity.what.identifierin the systemurn:openehr:object-id, never as awhat.reference, since it is no FHIR resource (FHIR R4 references.html §2.3.0.3). The outcome is stated inoutcomeDesc, andsource.typenames an application server. Query executions carry the search expression. - DICOM Audit Message (DICOM PS3.15 §A.5 XML): the classic ATNA form,
shipped as RFC 5424 syslog over RFC 5425 TLS per IHE ITI-20 when the syslog
sink is enabled, with the optional
EventOutcomeDescription,AuditSourceTypeCode(4, an application server) and each participant object’sParticipantObjectDataLifeCycle. A record about a patient’s data names the patient (Patient Number) and, when it has one, its object as a System Object with the ID type URI (PS3.15 Tables A.5.1.2.2-1 and A.5.1.2.4-1), the same id the FHIR form names. Dedicated DICOM event ids are used throughout: Patient Record (110110), Query (110112), Export/Import (110106/110107, the EHR-Extract directions), User Authentication (110114, with the LoginEventTypeCode110122).
Both formats give the client and the server the same data-flow role: on a
read the server is Source (DCM 110153) and the client Destination (110152),
because the data moves from the server to the client (DICOM PS3.15 §A.5.2.7,
the BALP Read profiles); on a create, an update and a query the client is
Source (PS3.15 §A.5.3.20 for a query, the BALP Create, Update and Query
profiles).
Every server operation is audited (an unrecognised extension operation fails
closed to a generic audited class, so nothing is silently unaudited) and
access refusals are always recorded: a 401, a 403, and the 400 a
malformed Authorization header earns. A refusal is attributed to the caller
only when one actually authenticated; an unattributable denial is recorded
as unattributed rather than under a fabricated subject, so no audit record
ever names an identity that did not authenticate.
Note
Successful-login records are suppressed by default (
[audit] suppress_login_events = true). Set it tofalseto record them. Even then, a login record marks a genuine authentication event, not every authenticated request: it is emitted when credentials were actually verified: a Basic verified-credential-cache miss. A cache hit continues an established session, and a Bearer request authenticated out of band at your identity provider, so neither mints a per-request login record. Rejections are recorded regardless of this switch.
The openEHR access-log entry
Every access to EHR data is recorded as an openEHR access-log entry: an
ACCESS_LOG_ENTRY of the draft org.openehr.rm.access_log 0.1.0 model,
FerroEHR’s proposal to openEHR, which no openEHR release defines yet. Reads,
writes, AQL queries, exports, refusals and reads of the access log itself each
write one. An access that reaches several EHRs writes one entry per EHR, and
the entries of one request share its request id, so a population query writes
one entry for each EHR that contributed a row, a statement that projects
only the EHR (SELECT e/ehr_id/value FROM EHR e) included.
The administrative routes that touch an EHR write entries the same way, one
per EHR they touched: the physical EHR delete, one EHR or in bulk; the
restriction, research-objection, access-delay and access-repair registers and
the EHR_ACCESS settings commit that carries a restriction or an opt-out;
archiving an EHR and restoring it; its retention anchor and the retention hold
on one of its objects; the repository dump and load; and the EHR Extract
export and import. The import of another system’s access log (ferroehr access-log import) writes its import entry through the same path. SCIM
provisioning touches party data only and writes none.
The entry names who accessed (the bound party, the groups, the provider, the
binding outcome and the credential by its issuer, subject, client and token
id), what (the EHR, the version or object, its categories and origins), why
(the declared purposes), under which authorisation (the agreement, the
representation, a data permit, the emergency mark, and the grounds of the
access decision below), the outcome (granted, refused or failed) and
the request. It carries no data value of the EHR:
a query is named by its stored name or the SHA-256 of its text, never the
text, and a read of the access log through ITI-81 is named by the digest of
its search.
The grounds of the access decision. The access evaluator’s decision on
the EHR is in the entry’s authorisations, each an ACCESS_AUTHORISATION
whose name and version name the document the ground is defined in:
| Kind | When | What it names |
|---|---|---|
role | always | each grant the caller held, by its operation code (name) and the ROLE that carries it (reference); each role the caller held |
subject of care | the person reads their own record | |
consent | a consent permit admitted the access, or the caller is a gate-keeper of the settings | EHR_ACCESS and the uid of its version; the directive by its uid, its first identifier or its position from 1, and its legal grounds |
representation | a delegation permit admitted a representative | as consent |
treatment relationship | the decision read a live care relationship | ACCESS_POLICY and the uid of its version |
emergency | an emergency lifted a directive or steps 4 to 7 | the directive it lifted, or the ACCESS_POLICY version |
The entry of each EHR an AQL query served names the same grounds a read of
that EHR alone names. The query’s condition is built from this replica’s copy
of every EHR’s settings, which holds each EHR’s subject and the uid of its
EHR_ACCESS version beside the settings, so the record adds no database read.
For an EHR with no settings, which the copy does not hold, a care relationship
is named when only a caller in care could have been served its rows.
A refusal names its code in outcome.reason, in the ferroehr-operations
terminology, and in outcome.description the step that refused and the
directive or policy of that step, such as step 2 (restriction): directive 1 of EHR_ACCESS 5a1c…::cdr.example.org::2. This holds for the 404 of an
opt-out or a restriction too: the response says nothing (EHDS Art. 8), and
the entry says why. An override in an emergency sets is_emergency, so the
person sees it in their access log (EHDS Art. 9 and 11(5)). The EHDS record
writes the versions the grounds name after the data permit at
agent[user].policy, “the policy or plan that authorized the activity being
recorded” (FHIR R4 AuditEvent.agent.policy), read from the entry’s grounds
when the record is rendered. Which grounds are named is FerroEHR’s own design.
The entry is the record. The store keeps an access to EHR data as its
entry alone, in audit.access_log_record, chained under one hash chain (see
Tamper evidence), and each entry states the date it is
kept until and why. The FHIR AuditEvent the ITI-81 search and the ITI-20
FHIR feed serve, the DICOM message the syslog sink sends and the EHDS access
record are projections of the stored entry: each is written from what the
log keeps and from nothing else, and none is stored as a second record.
audit.audit_event keeps the records of accesses outside the access log: an
authentication, a template or party operation, an application activity.
The entry is written in one database transaction with the rest of its batch,
and an access whose entry the store cannot take is refused under
fail_mode = "closed". The store requires [audit.store]; with the store off
the drain still builds each entry and sends its projections to the syslog
sink and the FHIR feed, and keeps nothing.
FerroEHR’s access details
The draft’s core attributes are openEHR’s: the action, the outcome, the
accessor, the items, the query, the authorisations, the channel. The facts
the BALP AuditEvent, the DICOM message and the EHDS access record carry
that the core holds no attribute for are kept in the entry’s
other_details, which the draft gives to the fields a jurisdiction adds: one
ITEM_TREE under the archetype id
openEHR-EHR-ITEM_TREE.ferroehr_access_details.v0, one ELEMENT per fact,
named by its at-code. They are part of the entry, so the hash chain covers
them, and a tombstone removes them with the rest of its content. No openEHR
specification governs them: they are FerroEHR’s own.
| at-code | Name | Value | Holds |
|---|---|---|---|
at0001 | event action | DV_TEXT | the DICOM EventActionCode: C, R, U, D or E |
at0002 | resource class | DV_TEXT | the class of resource the access addressed |
at0003 | outcome indicator | DV_COUNT | the DICOM EventOutcomeIndicator: 0, 4 or 8 |
at0004 | principal | DV_TEXT | the login the access was made under |
at0005 | issuer | DV_TEXT | the issuer of the caller’s token |
at0006 | client id | DV_TEXT | the client the token was issued to |
at0007 | token id | DV_TEXT | the token’s jti |
at0008 | organisation | DV_TEXT | the organisation the token named |
at0009 | role | DV_TEXT | a role the caller held, one element each |
at0010 | domain | DV_TEXT | the pseudonymisation domain, when it is not the resource class’s own |
at0011 | ehr id | DV_TEXT | the EHR the request named |
at0012 | subject | DV_IDENTIFIER | the subject of care of the EHR, as EHR_STATUS.subject names it, with its namespace as the issuer |
at0013 | subject lookup failed | DV_BOOLEAN | set when the subject could not be looked up |
at0014 | object id | DV_TEXT | the object the request named; none for a read of the log, whose search the entry names by digest |
at0015 | purpose | DV_TEXT | the purpose of use the caller declared |
at0016 | legal basis | DV_TEXT | the legal basis the deployment attributes |
at0017 | result count | DV_COUNT | how many records the access served |
at0018 | origin | DV_TEXT | an origin of the data, one element each |
at0019 | origin count | DV_COUNT | how many distinct origins the data had |
at0020 | category map digest | DV_TEXT | the category map the access was classified through |
at0021 | category content | DV_PARSABLE (application/json) | what the classification read |
at0022 | acting mode | DV_TEXT | how the credential acted |
at0023 | assurance level | DV_TEXT | the assurance level of the authentication |
at0024 | assurance value | DV_TEXT | the claim value the level was read from |
at0025 | professional id | DV_TEXT | the identifier of the natural person who accessed |
at0026 | token attributes | DV_PARSABLE (application/json) | the purposes and roles the token stated |
at0027 | binding | DV_PARSABLE (application/json) | the party binding with every field |
at0028 | summary | DV_PARSABLE (application/json) | the count and EHRs of a summary of refusals |
at0029 | event type | DV_TEXT | the DICOM EventTypeCode of an authentication record: 110122 Login, 110123 Logout |
The subject of care is kept so the BALP entity:patient and the
patient search parameter name the patient as they did when the access
was recorded, whatever happens to the EHR after. An entry imported from
another system (Checkpoints and the transfer of a log)
keeps that system’s details, and FerroEHR projects none of it.
To read the trail with SQL, audit.access_trail holds every record of
either form with the facts it states, in the audit vocabulary
(operation, principal, binding, party and the rest), an entry’s read
from its content. audit.access_detail(content::jsonb, 'at0022') reads one
access detail of an entry. The categories a classification computes are no
column there: the projection writes them.
The projections and their losses
Each projection reads one stored entry and writes one target record.
“Loss” means the target has no place for the value; the entry keeps it. The
FHIR R4 AuditEvent follows IHE BALP 1.1.4; an access the category map did
not classify is a BALP exchange without the EHDS entities. Each row is a test
(access_log::projection in the source).
To the FHIR R4 AuditEvent (IHE BALP 1.1.4).
| Entry | AuditEvent | Loss |
|---|---|---|
action | action (C, R, U, D, E), type rest and the FHIR interaction as the first subtype; an export or import is type Export or Import | the openEHR action has no code system of its own: export and import fold into R and C |
operation | a subtype in urn:openehr:its-rest:operation | none |
time_recorded | recorded | occurred: no period is written |
outcome.result | outcome: 0 granted, 4 refused or a minor failure, 8 a serious failure | refused and a minor failure share 4; outcomeDesc states the outcome in words and no reason code |
outcome.delivered | the delivered detail of the ehds-categories entity | none, as a detail |
accessor.party | the ihe-otherId typed PRN of agent:user (BALP 1.1.4 §3:5.7.5.4) | none |
accessor.credential | agent:user who.identifier (issuer as system, subject as value), the token id as its first policy, the client as an agent of its own, the assurance as ihe-assuranceLevel | the authentication method has no element |
accessor.provider | an agent naming the organisation | none |
accessor.roles, accessor.kind | agent:user role, the acting mode first | none |
accessor.groups, accessor.binding, accessor.delegation | details of the ehds-accessor entity, one actor per actor in the chain’s order | no element; details |
ehr_id | the ehr entity, with the subject of care as the patient entity (entity:patient, role 1) | none |
items | entity:data (type 2, role 4) naming the version in urn:openehr:object-id; the categories and the template and archetype ids as details of ehds-categories | the RM type and the paths have no element |
items.origins | one origin entity each | no element; entities |
query | entity:query (role 24), a stored query by its name | the text digest is not written |
purposes | purposeOfEvent and agent:user purposeOfUse | none |
authorisations | a permit as a policy of agent:user after the token id; an agreement in the ehds-relayed entity; a representation in ehds-accessor | legal grounds have no element; details |
is_emergency | the ehds-emergency-access entity naming the purposes that marked it | the mark becomes an entity |
channel.request_id, channel.client_address | the X-Request-Id entity; the client agent’s network.address | none |
system_id | source.observer.identifier; source.site from [audit] enterprise_site_id | none |
security_labels | the securityLabel of the entity they label | no meta.security is written |
retention | details of ehds-categories | no element; details |
link, checkpoints | nothing | the chain does not travel; verify it on the openEHR side |
other_details | the values it holds, where the rows above put them | the tree itself is not written |
To the DICOM PS3.15 A.5 audit message (the syslog sink).
| Entry | DICOM element | Loss |
|---|---|---|
action | EventActionCode; EventID Patient Record (110110), Query (110112), Export (110106), Import (110107) | as in R4 |
operation | EventTypeCode in openEHR-ITS-REST | none |
time_recorded | EventDateTime | occurred |
outcome | EventOutcomeIndicator, EventOutcomeDescription | the reason’s code |
accessor.credential | the requestor’s UserID (the subject, or the professional a client acts for) | the issuer, the token id, the assurance |
accessor.roles | RoleIDCode in urn:ferroehr:role | none |
accessor.party, binding, groups, delegation | details of the ehds-accessor participant object | no element; details |
accessor.provider | nothing | lost |
system_id | AuditSourceID, with AuditEnterpriseSiteID from the deployment | none |
channel.client_address | NetworkAccessPointID, type 2 | none |
ehr_id | the patient participant (type 1, role 1) names the subject of care | the ehr_id itself is not written |
items | a System Object (type 2, ID type URI) naming the version | the categories, origins, template and archetype |
query | the query object of the Query event | the text digest |
purposes, authorisations, is_emergency | nothing in the A.5.1 schema | lost |
retention, security_labels, link, other_details | nothing | lost |
To the EHDS access record (ehds-logging AccessRecord).
AccessRecord | Entry | Loss |
|---|---|---|
action | action | export and import fold into Read and Create |
recorded | time_recorded | none |
outcome, outcome_description | outcome.result and the outcome indicator | a refusal shares MinorFailure with a minor failure |
accessor (issuer, subject, client, token id, acting, roles, assurance, provider, party, groups, binding, actors, represents, relayed, purposes, policies) | accessor, purposes, authorisations and the access details | none |
subject.ehrs | ehr_id, with the subject of care found | one record per entry; the entries of a request share its request id |
categories | items.categories, computed again through the category map that classified the access | none |
delivered, origins, origin_count | outcome.delivered, items.origins, the origin count | none |
request (id, operation, resource, stored query, client address, correlation) | channel, operation, items, query | the query text is never carried |
retention, labels, emergency | retention, the categories and origins, is_emergency | none |
| none | link | the chain |
Reads are logged too, per record
A write leaves its own trail in openEHR’s contribution and audit chain. A read leaves nothing behind unless the server records it, and reads are what the access-logging rules are about: NEN 7513 requires per-access logging of who consulted which record and on whose authority, the Wabvpz gives the patient the right to know who consulted their record, and EHDS Art. 9 requires logging of access to electronic health data for primary use. No openEHR specification governs the read side, so this is FerroEHR’s own extension.
Every retrieval in the EHR, Query and Demographic APIs produces a record, and a
test walks the generated route tables to prove it: a newly generated GET that
emits nothing fails the build.
Each record additionally carries:
| Field | What it holds |
|---|---|
domain | The pseudonymisation domain read: ehr, demographic, linkage for a crossing that resolves a party or a subject to its EHRs, or system for an operation that touches no domain. |
organisation | The organisation a record written before 5.7.2 names, as an access-token claim named it. FerroEHR reads no organisation claim, so a new record leaves it empty; the provider the caller acts for is the binding’s provider. |
purpose | The purpose of use the caller declared in the x-purpose-of-use header, when the deployment accepts it. |
token_attributes | The purposes of use and the professional roles the access token states, each with its code system, for an issuer with an [[auth.attributes]] table (where the purpose comes from). |
emergency_access | true when the declared purpose, or a purpose the token states, is one of [audit] emergency_purpose_codes: an emergency access (EHDS Art. 11(5)). |
legal_basis | The basis the deployment processes under, from [audit] legal_basis. |
result_count | How many records the operation served. |
request_id | The x-request-id correlation id the response carried. |
A query is the case a single record cannot describe. One AQL statement is one
operation but potentially many disclosures, so it produces its own execute
record plus one access record per EHR it served, each carrying that EHR’s
served-row count. The served set is read off the rows the caller actually
received rather than the rows the statement matched: a legal record of access
must not name an EHR whose content was never disclosed. Each row names the EHR
of every EHR source and every versioned object it was drawn from, so a
statement that reads only the EHR is attributed too. Two query shapes carry
no per-EHR breakdown, because the shape makes it underivable —
SELECT DISTINCT, where an extra column changes which rows are distinct, and
an aggregate projection, where a per-row EHR is not valid SQL. Those record the
statement and its row count.
NEN 7513 content, field by field
NEN 7513 §5 lists what a logged event has to contain. This is where each item lives in the record:
| NEN 7513 asks for | FerroEHR records it as |
|---|---|
| The identity of the person who accessed the record | principal — the authenticated Basic username or OAuth sub; an unattributable denial is recorded as unattributed, never under a fabricated identity. With [authz.professional] configured, professional_id names the natural person when the token names a client application |
| The identity of the patient whose record was accessed | patient_id — the resolved EHR subject, which under the pseudonymisation boundary is an opaque pseudonym |
| Which record, or which part of it | resource_class + resource_id: the version uid, party uid or EHR id the operation touched |
| The date and time | recorded_at, the event time; stored_at is when the row was persisted |
| The kind of action | action (DICOM C/R/U/D/E) plus operation, the released ITS-REST operation id. It equals the served OpenAPI operationId except for the demographic CONTRIBUTION pair, served as demographic_contribution_create and demographic_contribution_get because the released contribution_create and contribution_get also name the EHR operations and one document needs unique ids |
| Whether it succeeded | outcome, the DICOM outcome indicator (0 success, 4 minor, 8 serious, 12 major) |
| Under which role or authority | roles — the roles the caller held at access time (the RFC 9068 §2.2.3.1 claim carriers for a bearer, the user definition for Basic), rendered as FHIR agent.role on the requestor and as a RoleIDCode per role on the DICOM requesting participant |
| On whose authority, and why | purpose and legal_basis, and permit, the identifier of the data permit a secondary-use caller declares it acts under (Secondary use) |
| Which system, and from where | AuditSourceID and the source participant’s network address (client_ip): the connection’s peer, or the client a peer in [server] trusted_proxies names in its forwarded_header (Server) |
| Who the person is in the demographic store, and for whom they act | binding and the fields beside it (the binding outcome): party (the bound PERSON), party_groups, provider, representation for a representative, and acting_mode (person, delegated, external or system); for a verified external accessor external_fields and agreement stand in for the party, and an organisation record names the organisation. The FHIR AuditEvent, the DICOM message and the syslog feed carry each in the ehds-accessor and ehds-relayed entities (the binding fields in the renderings) |
Two of these are the deployment’s to supply. purpose is only as meaningful as
the vocabulary you agree with your callers: set [audit] purpose_codes to that
vocabulary and a code outside it is recorded as absent rather than as free text
that reads at review time like an established purpose. legal_basis is a
deployment-level fact and is recorded on every access once you set it.
Mapping the recorded fields onto your own retention schedule and review process stays yours: the software records the events and serves them back, and no supplier document discharges the obligation to review them.
The EHDS logging elements, mapped
Annex II 3.2 of Regulation (EU) 2025/327 lists five things the European logging software component must record “on every access event or group of events”. This is where each one lands, or does not. The elements were read from the published text on 2026-09-10; the regulation is the authority and the wording below is a paraphrase.
| Annex II 3.2 | Access-event field | DICOM PS3.15 | FHIR AuditEvent | State |
|---|---|---|---|---|
| (a) the healthcare provider or other individuals having accessed | provider of the binding (the provider of the caller’s party binding, read from the CDR), or the organisation record of a verified external organisation | — (no such attribute) | the acts-for detail of the ehds-accessor entity | Recorded |
| (b) the specific natural person or persons having accessed | principal (+ token_id, client_ip), and professional_id + acting_mode for a caller its issuer classifies as a person or a delegate | ActiveParticipant/@UserID (the professional; a client application acting for one is a second, non-requesting participant; the token subject is @AlternativeUserID when it differs) | the agent:user slice, who the token’s issuer and subject, the professional’s identifier as its ihe-otherId, and the client application as an agent of its own (BALP 1.1.4 §3:5.7.5.4) | Recorded |
| (c) the categories of data accessed | categories + category_basis + category_evidence + category_map_digest, classified by ehds-logging through the audit category register (beside resource_class, domain and result_count) | none (no such element) | the entity named ehds-categories, with one ehds-category detail per category and its basis, each id the classification read and the map digest; each category is also a meta.security label | Recorded |
| (d) the time and date of access | recorded_at | EventIdentification/@EventDateTime | recorded | Recorded |
| (e) the origin or origins of data | origins + origin_count (the FEEDER_AUDIT originating systems of the served version bodies, or the server that created them, derived at commit onto version.origins) | — (no such element) | one entity named origin per origin, its system-id detail the originating system | Recorded |
Read (a) beside (b): they are both about the accessing side, and the pair
distinguishes the organisation on whose behalf the access happened from the
natural person who made it. The principal answers (b); the provider of the
caller’s party binding answers (a). It is read from the CDR, never from a token
claim, so the provider a record names is the one the deployment bound the
caller to. A caller with no binding, such as a Basic user with no PERSON,
leaves it empty rather than guessed.
Element (b) asks for a natural person, and a bearer token can name a client
application instead. Each issuer’s kind and profile
classify the caller, so every record says which it was and who stood behind it:
| Field | Meaning | DICOM PS3.15 | FHIR AuditEvent |
|---|---|---|---|
acting_mode | person when the token names a natural person, client when it names a client application | the participant split below | the agent split below |
professional_id | the natural person: the person’s own claim, or the professional a client token acts for | ActiveParticipant/@UserID of the requesting participant | the ihe-otherId extension of the agent:user, typed NPI |
principal | the token subject, as before: the client application in client mode | a second ActiveParticipant with UserIsRequestor="false" and the network address; @AlternativeUserID in person mode when it differs from the professional | agent:user who.identifier, with the issuer as its system; the acting mode is its first role |
assurance_level | the eIDAS level (low, substantial, high) the token’s assurance claim maps to under [authz.assurance] | none (no such attribute) | the ihe-assuranceLevel extension of the agent:user |
assurance_value | the raw claim value the level was read from, usually acr | none | none |
PS3.15 §A.5
gives ActiveParticipant no assurance attribute, so the DICOM message and the
syslog feed carry no level. The FHIR export carries the level as the BALP
ihe-assuranceLevel extension (BALP 1.1.4 §3:5.7.5.4) and never the raw claim
value, which lives in the local store’s column only. The tamper-evidence digest covers both columns, like every other column of
the record (see Tamper evidence for records written before
the digest was versioned).
For a system caller the mode and the professional stay empty and (b) is
answered by principal, which names the client application. Without [authz.assurance] levels the level stays empty;
the raw value is still recorded when the token carries the claim. A Basic
credential records none of the four.
Element (c) asks for the priority category of the data, in the sense of
Art. 14(1): patient summaries, electronic prescriptions, electronic
dispensations, medical imaging, medical test results and discharge reports,
plus any category a Member State adds in national law. AQL selects archetypes
and templates, never categories, and no openEHR specification maps the one
onto the other, so the deployment declares the mapping in
the audit category register, an
admin register: a
template id, or failing that the root archetype id, maps to a set of categories
(a priority category by its code in HL7 Europe’s
EEHRxFDocumentPriorityCategoryCS, such as Patient-Summaries or
Laboratory-Reports, a national category as its <system>|<code>), or to
none for content that holds no data of any category. While you declare no
template and no archetype, the map FerroEHR ships applies: the published CKM
templates and COMPOSITION archetypes whose data sit in one priority category
(the shipped map). Your own
map replaces it, and ehds-logging classifies each access through the map in
force.
Each record is classified when the access happens, from what it served or wrote, and never at commit, because the map is your reading of your templates and can change:
- a composition read or write is classified by the version’s template id, then by its root archetype id;
- an AQL execution is classified by the template and root archetype ids of the
versions its result page came from; where the answer carries no version (a
DISTINCTor aggregate projection, or zero rows) by the query’s positive archetype and template constraints, so an operand underNOT CONTAINSor a predicate underNOTnever counts. Every id the query constrains to must be mapped, and every content operand bound to an id, or the record isunclassifiedbeside what did map. Each per-EHR record of a query carries the categories that EHR disclosed; - a logical delete writes no content, so it is classified by the version it
deleted; a
VERSIONED_COMPOSITIONread by the composition it holds; - a
CONTRIBUTIONread, with or withoutPrefer: resolve_refs, is classified by the versions the contribution committed, a deleted version again by the version it deleted; - an EHR Extract export is classified by every version it carried, and an Extract import by the newest content of every versioned object it landed;
EHR,EHR_STATUS,EHR_ACCESS, the directory, item tags and revision histories are recorded asnone, by resource kind.
An access the map cannot classify is recorded unclassified, with the
template and archetype ids as evidence, and is never refused; the FHIR record
says why (unmapped, unbound, named-nothing). A stored category is its
<system>|<code> token. category_basis says what the classification was read
from (returned, written, queried or resource-kind; records written
before 5.3.2 carry template, archetype or query and the earlier
spellings), and category_map_digest names the map that produced it, so a
later map never rereads an old record. The map’s
digest is also on the boot line and on GET /management/info under
audit.category_map. The classification stays in the access log: it is never
written to the request log, a span or a metric label. The DICOM rendering has
no element for it (PS3.15 §A.5), so it travels in the local store and the FHIR
export only.
Records in the demographic domain carry no classification, because no priority category lives there.
Element (e) asks where the DATA came from, which is not where the request came
from. openEHR models that provenance as FEEDER_AUDIT on the content itself,
so every committed version records the distinct set of
FEEDER_AUDIT.originating_system_audit.system_id values found in its body, or
this server’s own system id when it carries none. A composition, status or
folder read then records the origins of the version it served, and an AQL
execution the union over the version rows its result page came from. The record
carries the true distinct count beside a set capped at 32, so a page drawing on
more origins than that says how many rather than looking complete. A version
committed before the column existed is assessed when it is read.
One further element, adjacent to the five: the declared purpose of use
reaches one export of the two, and only one of them could carry it. It is
stored on the record, served by ITI-81, and rendered as
agent.purposeOfUse on the
requesting person’s agent in the FHIR export. A declared code carries no
system: the vocabulary is the one you agree with your callers in [audit] purpose_codes, which has no published code system URI, and attributing the
code to a system it does not come from would misdescribe it. A purpose the
access token states keeps the system the token gives it.
The
DICOM Audit Message schema
of PS3.15 §A.5 defines no purpose element at all — EventIdentification,
ActiveParticipant, AuditSourceIdentification and
ParticipantObjectIdentification, and none of them carries one — so on that
side it is a limit of the format, not something this code withholds.
Where the purpose of use comes from
The purpose of use reaches the record from two places:
- The access token. An issuer with an
[[auth.attributes]]table (mapping = "iua") states its professionals’ attributes in the token: the IHE IUApurpose_of_useandsubject_roleclaims underextensions.ihe_iua(IHE ITI TF-2 §3.71.4.2.2.1.1), and withauthorization_details_purposesthepurpose_of_useof each RFC 9396authorization_detailsentry. The record stores them intoken_attributes, and both renderings write them with their code systems: the purposes at the requesting agent’spurposeOfUse, the roles at itsrole, beside the roles the caller held. - The
[audit] purpose_header(x-purpose-of-use), which the caller sets. It works alone for an issuer without an[[auth.attributes]]table, as before.
The token is the authorization server’s statement, so it decides. A request
whose header names a purpose the token, which states purposes, does not
state is refused with 403, and the refusal is recorded as a failed
authentication naming the caller and the token’s purposes. A header naming
one of the token’s purposes is admitted and recorded with both. Which source
wins is FerroEHR’s own design; no openEHR specification governs the purpose
of use.
Note
Every row of this table is asserted by a test (
app/ferroehr/tests/it/audit_ehds_mapping.rs), including the gaps: the tests that record an absence fail the day the field arrives, so the table and the code cannot drift apart in either direction.
The common specifications the regulation’s Article 36 provides for have not been adopted. When they are, this mapping is re-verified against them rather than assumed to still hold; see the EHDS readiness page.
The binding outcome
Every record of an authenticated request carries binding: how the caller
was bound to a demographic party, or why the binding refused it. The
committer the same request writes into a version is on
Who is the committer. It answers
Annex II 3.2(a) and (b) where the token’s subject alone does not. The columns
beside it hold what each outcome needs:
binding | The caller | Recorded beside it |
|---|---|---|
bound | a person bound to a complete PERSON | party, party_groups, provider, guest for an admitted guest, representation for a representative, actor_chain for a delegated token |
provisional | a person bound to an incomplete PERSON | party, party_groups, provider |
external | a verified external person of a federation issuer | external_fields, agreement, provider |
organisation | an organisation under an agreement with accessor = "organisation" | external_fields, agreement (with its legal ground and access class, and for a chained request correlation_id and correlation_source), provider |
system | a client acting for nobody | party, the client’s ACTOR in the policy parties; provider, the identifier of the ORGANISATION its acts-for relationship targets; facilities of the compositions it committed |
self | a patient token of a patients issuer | the principal |
refused-* | a refusal of the binding or of a caller kind: unbound, ambiguous, inactive, abandoned, deprovisioned, wrong-marker, representation-unrecorded, key-claim-missing, groups-unavailable, guest, external-incomplete, trc-patient-mismatch, trc-missing; and of a caller kind, system-personal-scope (a system caller holding a user/ or patient/ scope), no-agreement (no federation agreement admits the accessor) and scope-beyond-agreement (an external caller holding a scope its agreement does not read) and correlation-missing (a chained organisation request without an attested correlation id) | party for a party refused for its state or marker, binding_detail for what else the refusal names (represented, the subject a representative asserted; claim, the name of the key claim a token lacked, never its value) |
acting_mode is person, delegated for a person through a declared client
or actor, external for a verified external accessor and system for a client
acting for nobody (client remains on records written before). The FHIR
AuditEvent writes each mode as the person’s agent.role. A record of a
request with no authenticated caller carries no binding. The columns are in the
chain digest: version 2 hashes them, version 3 adds token_attributes, a new
record is version 3, and a record written before keeps verifying under its own
version.
The binding fields in the renderings
Neither BALP 1.1.4 §3:5.7.5.4 nor DICOM PS3.15 §A.5 has an element for the
binding fields beyond the bound person, so ehds-logging writes them as
details of two entities it adds, and FerroEHR hands it every field. The FHIR
AuditEvent carries each entity as an entity with its name and one
detail per value. The DICOM message carries each as a
ParticipantObjectIdentification of type 4 (Other) with the entity name as
its ParticipantObjectName and one ParticipantObjectDetail per value
(RESTful ATNA Rev. 3.6 Table 3.20.4.2.2.1-1), and the ITI-20 syslog feed
sends that message. Both renderings take the detail list from
ehds-logging, so they never disagree.
| Recorded field | Rendered as |
|---|---|
binding | ehds-accessor: binding, with guest for an admitted guest and security-event for refused-trc-patient-mismatch and refused-trc-missing |
party | ehds-accessor: party as <namespace>|<type>|<id>; in the FHIR AuditEvent also the person’s otherId typed PRN |
party_groups | ehds-accessor: one group per group, in the party’s namespace with type GROUP |
provider | ehds-accessor: acts-for as <issuer>|<id> |
facilities | ehds-accessor: one facility per facility, as <issuer>|<id> |
representation | ehds-accessor: represents, represents-ground and represents-relationship; a refusal’s represented as represents alone |
actor_chain | ehds-accessor: one actor per actor, <issuer>|<subject>, outermost first |
binding_detail | ehds-accessor: binding-claim for refused-key-claim-missing |
external_fields | ehds-relayed, marked asserted and naming the issuer by relayed-issuer: each 2026/2099 Annex field and eHDSI SAML attribute at its own detail (hp-family-name, hp-identifier, provider-identifier and the others), consent.reference as agreement-consent, and every other field as asserted-field <name>=<value> |
agreement | ehds-relayed: agreement-name, agreement-version, agreement-legal-ground and agreement-access-class |
correlation_id, correlation_source | the FHIR AuditEvent: correlation-id and correlation-source of the request id’s entity; the DICOM message: the same two details of ehds-relayed, since it carries no request entity |
acting_mode | the FHIR AuditEvent: the person’s agent.role; DICOM: none |
Every value goes through the renderers’ escape: a control character, a bidirectional control or a line separator is written as its code point, and no value is cut. A DICOM detail value is base64-encoded as given (PS3.15 §A.5.1.1). A binding record that lacks a field its code needs fails the rendering, and the sender reports the failure, never a record without the binding.
Refusal records and their budgets
Every refused request is recorded as a failed user authentication, through the
same path as an operation record: under [audit] fail_mode = "closed" a
refusal whose record the system log cannot take is answered 503. A refusal of
the login binding or of a caller kind carries its refused-* code. Refusals
are charged to one of two budgets, which never draw on each other, so a flood
of invalid tokens cannot hide a verified caller’s probing:
| Budget | Charged to | Per caller in a window | Per window |
|---|---|---|---|
| Failed verification | the source network: the /24 of an IPv4 address, the /64 of an IPv6 one | 10 | 1000 |
| Verified caller | the token’s iss and sub | 10 | 1000 |
A window lasts 60 seconds. Past a caller’s 10 records the rest of its
refusals in that window become one summary record, written when the window
closes: it names the caller and carries summary, the count and the EHR ids
the refused requests named (at most 64, while the count stays exact). Past a
budget’s 1000 records, the refusals of every caller not yet recorded in that
window become one summary record per issuer and outcome, naming no caller. A
security event (refused-trc-patient-mismatch, refused-trc-missing) is
recorded once for every answered request and never summarised. A federation
caller above its agreement’s caller_rate, a contact point’s included, is
answered 429 before any patient lookup, and every such refusal goes into
that caller’s summary record from the first, with binding_detail naming
caller-rate, so the count of security events stays bounded. A refusal
record the system log cannot take is counted in
atna_audit_refusals_unwritten and logged at error.
Note
The limits, the windows and the budgets are kept per replica. Behind a load balancer with three replicas, one caller can have up to 30 refusals recorded one by one in a window before the summaries begin, and each replica writes its own summary records.
Access through FerroBRIDGE’s FHIR facade
The openEHR REST API carries no end-user identity on a read, so when
FerroBRIDGE’s FHIR facade reads or writes through FerroEHR, FerroEHR’s record
names the bridge’s credential under (b) and cannot name the natural person
behind the FHIR request. From FerroBRIDGE 0.0.16 the bridge records each
facade access itself when its [audit] section is on: it writes the Annex II
3.2 record with the person, the categories, the time and the origin through
the same ehds-logging crate, and sends it as an IHE BALP AuditEvent
through ihe-atna over the ITI-20 FHIR feed to the Audit Record Repository
you configure there. The bridge refuses a facade access whose record it
cannot take. Read the two records together: FerroEHR’s says which data left
the CDR and to which client, and FerroBRIDGE’s says which person asked for
it. FerroBRIDGE’s
access record page
describes its record and its configuration.
Emergency access (EHDS Art. 11(5))
A natural person may restrict health professionals’ access to parts of their data (EHDS Art. 8). Art. 11(5) lets a professional reach restricted data where the person’s vital interests require it, and requires such cases to be “logged in a clear and understandable format” and “easily accessible for the data subject”. Art. 9(1) counts these accesses among the ones the person is told about.
You name the purpose codes your callers declare for an emergency in
[audit] emergency_purpose_codes. Each one must also be on
[audit] purpose_codes; the server refuses to start otherwise. An access
whose declared purpose is one of them carries the emergency mark:
- The stored record: the
emergency_accesscolumn istrue. It isfalsefor every other access and for records written before the column existed. - The FHIR
AuditEvent: theentitynamedehds-emergency-accessthatehds-loggingwrites, whosedescriptionstates the mark in plain words (“Emergency access: the accessor declared that the access was necessary to protect the vital interests of the data subject (Regulation (EU) 2025/327 Art 11(5)).”) and whoseehds-emergency-purposedetails name the purposes that marked it. The declared code stays onagent.purposeOfUseand onpurposeOfEvent. A patient portal keys on the entity and shows its description. - The DICOM syslog feed: no mark. The PS3.15 schema has no purpose element.
The person reads their own log, the marked accesses included, through the subject-scoped ITI-81 retrieval.
[audit]
purpose_codes = ["TREAT", "ETREAT"]
emergency_purpose_codes = ["ETREAT"]
The mark records the declaration and lifts no restriction. A composition or
EHR restricted under GDPR Art. 18 stays refused with an emergency purpose,
because Art. 18(2) admits processing only with consent, for legal claims, for
the rights of another person or for an important public interest, and the
person’s own vital interests are not on that list. The refused attempt is
still logged with the mark. An EHDS Art. 8 restriction of access by health
professionals is different: a caller holding authz.rbac.emergency_access_role
that declares an emergency purpose reads the restricted data, and its record
carries the mark
(restriction of access).
An emergency the caller does not declare is not marked.
Retention, and who chooses it
[audit.store] retention decides how long the repository keeps a record:
0, the default, keeps them forever, and any other value sets the horizon.
Every record stores the first date it may be deleted on, and the reaper
deletes each record hourly on or after that date and never before it. An
access record takes its end from the retention its categories and origins
call for (Regulation (EU) 2025/327 Annex II 3.4), so two records written the
same day can end on different dates; every other record ends the day after
its date of access plus the horizon. A record written before FerroEHR stored
per-record ends is reaped by the horizon.
An openEHR access-log entry states its own retention. Each
ACCESS_LOG_ENTRY carries an ACCESS_RETENTION when it is written:
retain_until, the last day it is kept, and grounds, the provisions that
set the period. The period is the one the retention policy above computes from
the entry’s categories and origins, so an entry whose categories call for
different periods keeps the longest, and an entry kept without end states no
retain_until. The grounds are coded in the ehds-logging terminology: the
legal ground of the floor (eu-2025-327-art-9-2 for Art. 9(2)) and what called
for the period (default, category:<system>|<code> or origin:<key>). The
same hourly worker replaces every entry whose retain_until has passed by an
ACCESS_LOG_TOMBSTONE in place, in any order of expiry. The tombstone keeps the
entry’s uid, system_id, time_recorded and chain link, names the grounds of
the period that ended, and holds nothing else of the entry, so the chain
verifies after the content is gone (Tamper evidence). A
tombstone is never replaced again, and the database refuses any other change
to it. An erasure a law orders before the period ends takes the same path
through POST {ext}/admin/access-log/erase, with the law’s provisions as the
tombstone’s grounds; the erasure is an access record of its own
(access-log-erasure:<uid>) naming the administrator
(Admin APIs). No configuration key decides an
entry’s period beyond [audit.store] retention, which stays the floor every
period is held to.
The default is deliberate. An access log is the evidence a data subject’s right of access is served from, and a repository that silently forgets is worse than one that grows — so the software keeps everything until an operator says otherwise, rather than choosing a horizon on their behalf.
Choosing that horizon is the deployment’s, and it is a legal question: EHDS Art. 9(2) makes the access information “available for at least three years from each date of access to the data”, and national law can ask for longer. NEN 7513 is the Dutch reference for this log and the Wabvpz for how long it must survive. The setting is per node, and one node serves one organisation, so two organisations needing different horizons run two instances.
A floor is enforced where a jurisdiction sets one. The jurisdictions a
deployment answers to are the ones its [privacy.identifier_scan] rules name,
and where one publishes a minimum retention for the access log the server
refuses to boot with a shorter horizon, naming the configured value and the
floor. 0 always passes. The floors are written in calendar years, as the law
writes them: a horizon set as [audit.store] retention is compared
against the years exactly, and one set as retention against the most
days those years can span (the day count in brackets below). The floors
registered:
| Jurisdiction | Floor | Source |
|---|---|---|
| Every EU Member State (AT, BE, BG, CY, CZ, DE, DK, EE, ES, FI, FR, GR, HR, HU, IE, IT, LT, LU, LV, MT, NL, PL, PT, RO, SE, SI, SK) | three years from each date of access (1096 days, the most three calendar years can span) | Regulation (EU) 2025/327 (EHDS) Art. 9(2); a longer national floor wins. Iceland, Liechtenstein and Norway are not listed: EHDS reaches the EEA only through an EEA Joint Committee decision |
| NL | five years from the moment the entry is written (1830 days, the most five calendar years can span) | Besluit vaststelling bewaartermijn logging (Stcrt. 2019, 38007), under Art. 5 of the Besluit elektronische gegevensverwerking door zorgaanbieders, which binds the period to NEN 7513 |
| CH | one year, and kept apart from the processing system (366 days, the most one calendar year can span) | Datenschutzverordnung (DSV) Art. 4 Abs. 5, as amended on 1 December 2025, for the logs of a large-scale automated processing of sensitive personal data; the separate storage is the deployment’s, through the forwarding sinks |
For the Netherlands the five national years win over the three EHDS years;
Switzerland is outside the Union and keeps its one year. Of the other shipped
jurisdictions, DE, FI and SE carry the EHDS floor, while GB and NO have no
floor registered: an unknown requirement is never guessed at, and a deployment
there sets its own. Art. 9 applies from 26 March 2029 for patient summaries,
prescriptions and dispensations and from 26 March 2031 for the other priority
categories (Art. 105). The floor is enforced from this release on, so a log
kept today already meets it when Art. 9 applies.
The effective retention is on the boot line beside the audit-enabled facts and
on GET /management/info under audit.
A record takes about 1.2 KB on disk, so the horizon decides how far the log
grows (Storage sizing).
Getting the log out
Three routes, and they answer different questions.
- The access log over ITS-REST: the access-log resources serve the openEHR access-log entries: one EHR’s log to the person it is about and their representative, and the full log to a reviewer. This is the person’s own route (EHDS Art. 9(2)).
- ITI-81 retrieval: the audit search
serves the records back as FHIR
AuditEventresources, filtered by patient, agent, date and outcome. This is the operator’s route and the one an IHE Audit Consumer uses: everything Annex II 3.2 records is reachable through it, including the purpose and the organisation, which the syslog feed’s DICOM form cannot carry. - The BALP feed: records fan out to syslog and to a FHIR feed as they are written, for a SIEM or a central Audit Record Repository.
Reading the access log over ITS-REST
The openEHR access-log entries are served under the extensions root,
/ferroehr/rest/extensions/v1. No openEHR ITS-REST release defines these
resources: they are part of FerroEHR’s access-log proposal to openEHR, and they
follow the ITS-REST 1.1.0 conventions, offset and fetch paging as the Query
API’s and ISO 8601 date-times.
| Method and path | Who | What |
|---|---|---|
GET /ehr/{ehr_id}/access_log | the subject of care, their representative, a reviewer | The entries of one EHR, newest first. Filters: from, to, action, outcome, accessor_kind, emergency, include_self; offset, fetch (1 to 1000, default 100). |
GET /ehr/{ehr_id}/access_log/{uid} | as above | One entry. |
GET /admin/access-log | a reviewer | Records across EHRs, entries and tombstones. Filters: ehr_id, party_namespace, party_type, party_id, issuer, subject, request_id, from, to, outcome, emergency; offset, fetch. |
GET /admin/access-log/chain | a reviewer | The uid and link of each record from from_sequence to to_sequence (at most 10000), without content, for verification. |
GET /admin/access-log/checkpoint | a reviewer | The newest stored checkpoint, or the one at sequence. |
A list answers offset, fetch and entries, and no total count, since a
count over a large log costs a scan. A parameter a resource does not take, or a
value outside its form, is a 400.
The caller’s authorisation selects the view, and no parameter widens it.
- The subject view goes to the person the EHR is about and to their
representative, bound through the party binding: a patient-portal token
reads the EHR of its launch context, and a representative, through a
personsissuer or as the actor of the patient’s token, reads the EHR of the subject the representation names (Operational policy). It shows who accessed (the provider and the party), when, the action and outcome, the items and their categories, the purposes and the emergency mark, and leaves out the credential, the delegation chain, the binding outcome, the channel, the query text and its digest, the security labels,other_detailsand the link, and the accessor members a restriction withholds. An entry about a composition held from the person under EHDS Art. 3(3) is left out until the hold ends, as in the subject-scoped ITI-81 read. Any other EHR answers404, the same as an unknown one, so its existence is not disclosed. - The full view, each record in its ITS-JSON form with its link, goes to
a reviewer: a caller the admin class admits (
admin_roleunder RBAC), the same callerGET /admin/access-logadmits. - Every other caller is refused with
403. The log has its own access control: a clinical grant such aspatient/composition-*.roruser/composition-*.rreaches none of it.
The person’s own reads of their log are recorded like every other read and
are left out of their default view; include_self=true adds them. Every read
of these resources, refused and failed ones included, writes an access-log
entry whose item names the log it read (ACCESS_LOG_RECORD for an entry,
ACCESS_LOG for an EHR’s whole log), with the filter named by its digest. A
tombstone keeps no EHR, so a removed entry is read through the review.
Restricting the subject view (EHDS Art. 9(3))
EHDS Art. 9(3) lets a Member State restrict the person’s right to see who
accessed their data “in exceptional circumstances”. If your law does, declare
the restriction in the controller’s
access policy, never in ferroehr.toml: each entry
of log_restrictions names the accessor kinds it applies to (the accessor kind rubrics of the log, such as person or external person), the
accessor members the subject view withholds (accessor_party,
accessor_provider, accessor_roles, accessor_groups, in
ferroehr-operations), and the provisions that lay it down, coded in your
jurisdiction’s terminology. FerroEHR ships no country’s restriction.
"log_restrictions": [{
"_type": "ACCESS_LOG_RESTRICTION",
"name": { "_type": "DV_TEXT", "value": "External accessor withheld" },
"archetype_node_id": "id11",
"accessor_kinds": [{ "_type": "DV_CODED_TEXT", "value": "external person",
"defining_code": { "_type": "CODE_PHRASE",
"terminology_id": { "_type": "TERMINOLOGY_ID", "value": "openehr" },
"code_string": "external person" } }],
"withheld": [{ "_type": "DV_CODED_TEXT", "value": "accessor_party",
"defining_code": { "_type": "CODE_PHRASE",
"terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" },
"code_string": "accessor_party" } }],
"legal_grounds": [{ "_type": "DV_CODED_TEXT", "value": "your national provision",
"defining_code": { "_type": "CODE_PHRASE",
"terminology_id": { "_type": "TERMINOLOGY_ID", "value": "urn:example:national-law" },
"code_string": "art-x" } }]
}]
- The subject and their representative get the subject view of an entry whose accessor is of a named kind without the withheld members. A reviewer reads the full entry, and the stored entry never changes.
- A policy write applies on the next request on every replica, with no restart.
- A write that changes the restrictions changes what the log means, so it
writes an access-log entry of its own (operation
admin_access_policy_write), and the policy history keeps every version. Under[audit] fail_mode = "closed", such a write is refused with503while the audit trail cannot take the entry.
# Who accessed my record this month? (the patient portal's token)
curl -H "Authorization: Bearer $PATIENT_TOKEN" \
"https://cdr.example.org/ferroehr/rest/extensions/v1/ehr/$EHR_ID/access_log?from=2026-11-01T00:00:00Z"
The same entries are queryable with AQL as the top-level class
ACCESS_LOG_ENTRY, under the same rules of who reads which view, and each such
query writes its own entry (Querying the access log).
Sinks
Records fan out to independently configured sinks ([audit] in
ferroehr.toml; see the
configuration reference):
| Sink | Default | What it does |
|---|---|---|
[audit.store] | on | The local Audit Record Repository: records persist in the dedicated audit PostgreSQL schema (append-only and tamper-evident, strictly outside the EHR content), served back via the ITI-81 search below. retention prunes old records hourly (0 = keep forever). |
[audit.syslog] | off | The classic ATNA feed: DICOM PS3.15 XML as RFC 5424 syslog over RFC 5425 TLS to an external ARR, per IHE ITI-20. |
[audit.fhir_feed] | off | The RESTful-ATNA feed (ITI-20 ATX: FHIR Feed): each FHIR AuditEvent is POSTed to an external FHIR ARR. With the local store on, delivery is outbox-driven: an ARR outage loses nothing, pending records ship on recovery. The outbox holds the records written while the feed is configured; with the feed off, no record is owed. Records stored before FerroEHR kept an outbox and never delivered ship once a feed runs. |
Emission never blocks the request path: a record is handed to a bounded queue
(queue_capacity) and written by a background drain.
While a composition is held from the person
With the access-delay register on, a new composition can be held from the person under EHDS Art. 3(3) until a professional releases it or its period passes. Only one route honours the hold: the subject-scoped ITI-81 read, the one a patient portal serves the person’s own trail from, leaves out every record that names a held composition. Every other sink and stream is a feed to the controller’s own systems and carries those records and events while the hold is in force:
| Sink or stream | What it carries during a hold | Why it is not filtered |
|---|---|---|
[audit.store], read without the patient scope | every record, the hold’s own included | The unscoped ITI-81 read is the controller’s, under the admin role |
[audit.syslog] | every record, sent as it is written: the commit, each read and the hold’s own record name the composition, the last as access-delay:<vo> beside the patient | An ITI-20 feed goes to an Audit Record Repository, which “receives event audit reports and stores them” (IHE ITI TF-1 §9.1.1.3) |
[audit.fhir_feed] | the same records as FHIR AuditEvent resources, POSTed as they are written, the hold’s own record naming the same access-delay:<vo> | The same ITI-20 repository, over ATX: FHIR Feed; the reader of a BALP AuditEvent is an Audit Consumer (BALP §1:52.1) |
Change events ([record.change_feed]) | the commit of the held composition: its vo_id, kind, change type and template | The feed serves the deployment’s own readers; it withholds what binds them, a restriction or objection (GDPR Art. 18 and 21, EHDS Art. 8), and the Art. 3(3) hold binds only the person’s access |
EHDS Art. 9(2) gives the person the access information “through electronic health data access services”, which are yours to run. A repository, a feed reader or anything built on them never reaches the person from FerroEHR, so none of them filters the hold: a filter there would also hide the record from the controller who answers for it. What you must not do, while a hold is in force:
- Serve the person’s trail from the external Audit Record Repository the syslog or FHIR feed writes to, for example through that repository’s own ITI-81 query. Serve it from FerroEHR’s subject-scoped read instead.
- Send the person a notification, under Art. 9(1) or otherwise, from a record on either feed or from a change event that names a held composition. Ask the hold first: a request in the person’s context reads the composition as absent (404) until the hold ends.
The shared-responsibility page puts the same duty on the deployment’s side.
The local store is the durability anchor. Under fail_mode = "closed", an
operation whose audit record cannot be recorded answers
503 Service Unavailable: the deployment demanded an audit trail it cannot
currently deliver, so no un-audited PHI access happens, and the same holds for
the domain-level records the subject resolutions and the EHR-Extract
transfers write. open, the default, drops-and-meters instead,
and every loss path is metered (the atna_audit_* counters in
Operations); the server announces that default at boot and on
the readiness indicator as a stated caution, because a metered loss is still a
loss. Login and rejection records never gate a response in either mode.
Tamper evidence
An audit trail that anything with the application’s database password can quietly rewrite is a log, not an accountability record. The local store is therefore tamper-evident: every record is linked into a SHA-256 hash chain maintained inside PostgreSQL, so each record commits to its predecessor and to its own content. The chain is built by the database itself, not by the server, which means it covers every writer: the per-event insert, the batched drain, and any statement typed by hand.
Each record’s digest covers every column of the record except the digest
itself (row_hash) and the two per-sink forwarding stamps
(delivered_syslog_at, delivered_fhir_feed_at). A column added by a later
release joins the digest in the same release.
The store keeps a record’s facts in columns and renders its FHIR AuditEvent
from them when the record is read (ITI-81) or delivered (the FHIR feed). What
the rendering takes from the configuration (source_id, enterprise_site_id,
server_host, value_if_missing, the store horizon, the audit category register and
emergency_purpose_codes) is kept once per distinct configuration in
audit.audit_render_policy, keyed by the SHA-256 of its text, and every record
names the policy it was written under. A record therefore renders the same
document after the configuration changes, and the verification below reports a
policy whose text no longer matches its digest, as it reports a changed record.
Release 5.6.0 starts on an empty audit store: its migration refuses a store
that holds records written by an earlier release, and names the remedy.
Four controls sit on top of it, and they are separate on purpose:
-
The table refuses the ordinary rewrite paths outright. The only permitted change to a stored record is the per-sink forwarding stamp; an
UPDATEof any other column, aDELETE, and aTRUNCATEare refused by the database. Retention pruning goes through the one sanctioned deletion path, which records which records it removed and what the surviving chain must link back to, so reaping does not look like tampering, and tampering does not look like reaping. -
The privileges are narrow. The runtime role may record an event, stamp it forwarded, and read the trail back. It holds nothing that can rewrite a record, remove one, or alter the chain’s own bookkeeping. That posture is only fully in force with
database.migrations = "verify"; see Operations, because a self-migrating server owns the schema and can therefore turn the enforcement off. -
Verification is a query you can run yourself. It recomputes every digest, re-walks every link, and checks both ends of the chain:
SELECT * FROM audit.verify_audit_chain();An empty result means the trail is intact. Any row names one record (its chain position, its id, when it was recorded) and what is wrong with it: content modified after it was written, a render policy changed or missing, records deleted with no retention record for the removal, or records removed from the end of the chain where no successor would have noticed.
-
The server runs the check itself, on a schedule. With the local store on, the check runs one minute after boot and then every
[audit.store] verify_interval(default3600, one hour;0turns it off). Each run verifies the records written since the newest link an earlier run found intact, and the chain head, so its cost follows the records written since rather than the size of the trail (audit.verify_audit_chain_incremental()). A full pass runs every[audit.store] full_verify_interval(default604800, one week;0leaves it to the query above) and after every run that found damage, so damage to an older record stays reported. A run that finds damage logs atERROR, one summary line with the finding count and one line per finding (the first 20), and adds the count to theatna_audit_chain_findingscounter withkind = "damage". A run that cannot verify at all counts askind = "unverifiable", because a trail that cannot be checked is never a pass. The latest result is theaudit_chainindicator onGET /health/readiness:UPwhile intact andDEGRADEDwhen damaged or unverifiable; its detail onGET /management/healthnames the first finding. It never flips readiness, because the trail keeps recording while the damage is investigated. Alert on the counter or on that component, and use the query above to see every finding. Each replica runs its own check.
Important
This is detection, not prevention, and the boundary is worth stating plainly. The chain is unkeyed, so a party with unrestricted write access to the
auditschema (the database owner, or a superuser) can delete a record and recompute every hash after it. What closes that case is keeping the trail somewhere that party does not control. Enable[audit.syslog]or[audit.fhir_feed]so records leave the box as they are written, and give the server an app-role-only DSN so it is not that party.
Checkpoints and the transfer of a log
The records of the openEHR access log (audit.access_log_record) are chained
with the audit_event records above. A chain proves order and completeness
against someone who cannot rewrite its whole tail. A checkpoint closes
that case: an ACCESS_LOG_CHECKPOINT names the position and digest of the
head of the chain and is signed with the deployment’s OpenPGP key, in the
form an openEHR ATTESTATION carries its proof (RM common, Generic Package
§Attestation). A verifier that holds a checkpoint detects any later rewrite
of the records it covers. No openEHR specification governs log signing; this
is our own design.
- The key is the keyring of version signing:
[record.signing]inpgpmode, with itsretired_key_filesstill verifying what an earlier key signed. With that key every link is signed and the log is sealed; a deployment without it signs nothing, andferroehr access-log checkpointanswers that the keyring holds no key. - Use an Ed25519 key. Each access writes one entry per EHR it reached, and each entry’s link is signed in the audit writer’s transaction while the head of the chain is locked. RSA signing is far slower than Ed25519, and every other audit write waits on it.
- The schedule. The server seals the head every five minutes when the
chain grew since the last checkpoint; a run on a log that did not grow
writes nothing. There is no switch and no interval to set.
ferroehr access-log checkpointandPOST /admin/access-log/checkpointseal one on demand. Keep a copy of a checkpoint somewhere the database owner does not control (a ticket, a timestamping service, the data protection officer’s mailbox): that copy is what makes a rewrite of the whole tail detectable. - Verification.
ferroehr access-log verifyandPOST /admin/access-log/verifyrecompute the whole chain (an entry replaced by its tombstone verifies through the content digest the tombstone keeps), check the checkpoint’s signature and that the link at its position is the one it sealed, and check the signature of every signed link. Each finding is reported; the command exits 1 when the log does not verify, and the route answers200withintact: false. - Signed links. Each link’s digest is signed as the eHDSI Audit Trail
Profile §2.2 asks of a national contact point. The server locks the head
of the chain, computes the links the new records will get, signs them and
writes each signature with its record in one
INSERT; a stored signature never changes. - Moving the log with the EHR. EHDS Annex II 2.6 and Art 9(2) keep the
access information available when an EHR moves to another system.
ferroehr access-log export --ehr-id <id>andGET /admin/access-log/export?ehr_id=write the EHR’s records with their links, every link from the first of them to the checkpoint they verify against, and that checkpoint, sealing one when none covers them. The receiving system runsferroehr access-log import --input <file>: it verifies the export against its checkpoint and the certificates in[audit.access_log] trusted_key_files, keeps the records with theirsystem_id, links andretain_untilapart from its own chain, and records the import as animportentry of its own log, built like every other entry and naming the system as its accessor. An import repeated stores nothing twice. An access to EHR data is stored as its entry alone, so a span holds anaudit_eventrecord only where an access outside the access log (an authentication, a template or party operation, an application activity) was recorded between the EHR’s entries, or where the span reaches records written before entries were the record. Such an export is refused, since only the database that wrote those records can recompute their links.
Retrieving audit records (ITI-81)
The RESTful-ATNA ITI-81 Retrieve ATNA Audit Event transaction is a FHIR
search on AuditEvent, so it is served at FerroEHR’s FHIR R4 base,
/ferroehr/rest/fhir/r4, beside the openEHR API rather than under it, where a
FHIR client or an IHE Audit Consumer expects [base]/AuditEvent. It is the one
FHIR route FerroEHR serves:
GET /ferroehr/rest/fhir/r4/AuditEvent
It returns a FHIR searchset Bundle of the matching records’ AuditEvent
documents, rendered from the store, newest first, with the full match total, a self link and a next link
while more pages follow. The query is read by ihe-atna, the family’s audit
crate. At least one date parameter is required (RESTful ATNA
§3.81.4.1.2.1): a query without one is a 400. Every search parameter
§3.81.4.1.2.2 says the repository shall support is applied. A parameter
with several comma-separated values matches any of them, and every
parameter of the query must match. A token takes the three forms of FHIR R4
Search §3.1.1.4.10: code, |code (recorded without a system) and
system|code (or system| for any code of that system). FerroEHR records
identifiers without a system, except the object of an access record, whose
system is urn:openehr:object-id: entity.identifier=urn:openehr:object-id|<uid>
and entity.identifier=<uid> find it, and a query that names another system
for an identifier matches nothing. Every parameter answers through an index. A
parameter on an element of the document (address and the .identifier,
entity-type, entity-role, type and subtype parameters) matches the
search tokens the store takes from the record’s rendered document when it
writes the record (audit.audit_search_token, audit.audit_search_set and
the record’s search_tokens, for an entry its row in
audit.access_log_search, which goes with the entry’s content when a
tombstone replaces it), so the search finds what the served document
says and renders only the page it serves. An entity.identifier that carries
the record’s request id or the object it names (the version uid of a create)
is read from the record’s own column instead, so a request adds no row to
audit.audit_search_token. Retention deletes the tokens that no remaining
record names, and never one a kept record names.
| Parameter | Matches |
|---|---|
date | required, repeatable: a FHIR date value with a prefix (eq when none, gt, lt, ge, le, sa, eb); a day such as 2026-07-12 covers the whole day, read in UTC |
patient | the recorded patient (EHR subject) id |
patient.identifier | entity.what.identifier of the entity whose role is Patient |
agent | the authenticated principal |
agent.identifier | agent.who.identifier |
entity | the touched resource id |
entity.identifier | entity.what.identifier of any entity |
entity-type | entity.type |
entity-role | entity.role |
source.identifier | source.observer.identifier, the audit source id |
type | type |
subtype | subtype (the REST interaction and the openEHR operation) |
address | a part of agent.network.address, compared without regard to case |
outcome | the outcome indicator: 0, 4, 8 or 12 (FerroEHR records 0, 4 and 8) |
action | the action code: C, R, U, D or E |
_count / _offset | paging; page size defaults to 50, capped at 1000; _count=0 returns the total alone |
A malformed value is a 400 carrying a FHIR OperationOutcome with
invalid; another FHIR R4 AuditEvent parameter, which §3.81.4.1.2.2 does
not ask for, is a 400 with not-supported; a parameter the crate does not
know is ignored
(§3.81.4.1.3). Under RBAC the
unscoped retrieval is admin-only; a caller holding a
read_subject_audit grant, a patient portal acting for the people it
serves, reads it scoped to one subject: one
patient or patient.identifier with one value is required, and the caller
is refused with a 403 that names the parameter when it omits
it. Reading a subject’s log is itself recorded as an access naming that
subject and the record count served. An
emergency access in the subject’s log
carries its mark as the ehds-emergency-access entity. The surface answers 404 when the local
store is disabled.
The subject-scoped ITI-81 read stays beside the access-log
resources. It serves the ATNA records
as FHIR AuditEvents to a portal that holds a read_subject_audit grant and
names the subject itself; GET /ehr/{ehr_id}/access_log serves the openEHR
access-log entries of the same accesses to the person, or their
representative, under the person’s own credential.
# Who accessed patient-42's data this month?
curl -u admin:pw \
"https://cdr.example.org/ferroehr/rest/fhir/r4/AuditEvent?patient=patient-42&date=ge2026-07-01T00:00:00Z"
This is also the openEHR “record demerging” instrument: when data lands in the wrong EHR, the patient-filtered audit search shows exactly who read it.
Note
Audit records are themselves sensitive (they name patients, subjects and actions) so this endpoint is a PHI-disclosure surface and is authorized like any other.
Node authentication (ITI-19, mutual TLS)
ATNA’s second half is node authentication. [server.tls] terminates TLS
natively and can demand a verified client certificate:
[server.tls]
certificate_file = "/etc/ferroehr/server.pem"
key_file = "/etc/ferroehr/server.key"
min_version = "1.3" # 1.3 (default) | 1.2
client_auth = "required" # none | optional | required
client_ca_file = "/etc/ferroehr/client-ca.pem"
The protocol floor is TLS 1.3 only by default, as RFC 9325 §3.1.1 has it
supported. Setting min_version = "1.2" enables
1.2 alongside 1.3, never instead of it, for a client that genuinely cannot
do 1.3, such as an older integration engine or a pinned Java runtime. TLS 1.1
and 1.0 are refused when the configuration is read (RFC 8996).
With client_auth = "required", only clients presenting a certificate
chaining to your explicit trust anchor complete the handshake: the IHE
mutually-authenticated-node posture. Deployments terminating TLS at an
ingress leave [server.tls] unset and enforce mTLS there instead.
Warning
The separate-port management listener (
management.listen) stays plain HTTP even with[server.tls]set, and it binds all interfaces. Treat it as an internal surface and keep it off any publicly routed port. Underdeployment.profile = "production"setting it opens theplaintext_listenergap, so the server refuses to start unless the gap is accepted by name.
Complete the posture with time synchronisation (IHE Consistent Time): run NTP/chrony on every node so audit timestamps align across systems.
Against independent ATNA implementations
The transactions above are tested by FerroEHR’s own suites, which read the
profiles the way FerroEHR’s authors read them. EHDS Annex II 1.4 asks that a
component meant to work with other products does so reliably, so
scripts/interop/atna.sh
runs the quickstart against software FerroEHR’s authors did not write, each
from a published image:
| Transaction | Independent implementation | What the run requires |
|---|---|---|
| ITI-20 FHIR feed | HAPI FHIR, an open-source FHIR R4 server, as the Audit Record Repository, with IHE BALP 1.1.4 loaded | It accepts every record, and its validator finds no error against base R4 and the BALP profile each record names |
| ITI-20 syslog | syslog-ng over RFC 5425 TLS | Every message parses as RFC 5424, and its payload is a well-formed DICOM PS3.15 A.5.1 AuditMessage (libxml2) |
| ITI-81 | HAPI FHIR’s AuditEvent search over the records the feed delivered | The same searches answer the same records on both |
cargo build --release -p loadtest
bash scripts/interop/atna.sh ghcr.io/ferrohealth/ferroehr:<tag> \
ghcr.io/ferrohealth/ferroehr-postgres:<tag> atna-out
It prints every disagreement and exits non-zero on any. A disagreement is either FerroEHR’s or a shared crate’s defect, filed and fixed, or the other side’s, recorded with the profile text that shows it.
The run of 2026-10-29 found no disagreement: HAPI FHIR accepted and validated all 71 records of the window, syslog-ng parsed all 72 messages, and the ten ITI-81 searches answered the same records on both repositories (the record).
Configuration summary
Auditing defaults to on with the local store only; see the
configuration reference for every
[audit] key and its FERROEHR__AUDIT__* environment form. The syslog sink’s
own keys are host and port under [audit.syslog], with its TLS material
under [audit.syslog.tls]; the
switches shared by every sink stay directly under [audit].
Note
There are no alternative spellings for any of these: an unrecognized
FERROEHR_*variable or an unknown TOML key is a boot error naming the spelling it should have had, never a silently ignored setting. Validate a deployment’s configuration up front withferroehr config check.
Version signing
Every version FerroEHR commits can carry a VERSION.signature: a value
computed over the version’s own canonical form, inside the write transaction
that stores it. openEHR defines two depths for that value, and FerroEHR
implements both as first-class modes (RM Common IM, Change Control §Digital
Signature).
| Mode | What is stored | What it establishes |
|---|---|---|
digest (the default) | sha256: + base64(SHA-256(canonical form)) | the version has not been altered since committal |
pgp | an ASCII-armored RFC 4880 detached signature | that, plus which key signed it |
Signing is on by default, in digest mode, and read-time verification of
the server’s own signatures defaults to strict: a served version that no
longer matches its stored signature is a 500 rather than a silently served
record.
The two pages
- Digest signing covers the mechanism both modes share: what goes into the signed form, when it is computed, what a stored digest does and does not prove, how verification at read behaves, and how to reproduce a digest yourself from the served JSON.
- PGP signing covers what changes when a key is involved: the key configuration and its fail-closed boot check, rotation and retired keys, client-supplied signatures versus server-generated ones, and the signature an import wrapper carries.
Read them in that order; the PGP page builds on the digest page rather than repeating it.
Where this sits
Version signing is openEHR’s own record-level integrity mechanism, and it is distinct from the two other integrity surfaces this book describes. The ATNA audit trail records security surveillance of API access, with its own hash chain over audit records. Verifying releases is about the artifacts you downloaded, not the data you stored. All three coexist and none substitutes for another.
Every [record.signing] key, with defaults and environment forms, is in the
configuration reference.
Digest signing
Every version FerroEHR commits can carry a VERSION.signature. openEHR
defines two depths for that value: hash the version and store the digest,
or sign the hash with a private key. The
openEHR RM Common IM, Change Control §Digital
Signature
puts it directly: “If only the hashing step is done, the digest acts as a
data integrity check, indicating if the data have been tampered with after
creation. If the signing step is carried out, it authenticates the user as
the author of the content.”
This page covers the hashing depth, which FerroEHR calls digest mode and
runs by default. PGP signing covers the other one.
- What the digest covers
- When it is computed
- What a stored digest proves
- Verification at read
- Verifying a digest yourself
- Switching modes later
What the digest covers
The signed value is the whole VERSION object as the server will serve it,
with the signature attribute itself left out. Concretely, for a locally
committed version that is the ORIGINAL_VERSION carrying:
uid, theOBJECT_VERSION_IDthis repository allocated;preceding_version_uid, when the version has a predecessor;contribution, theOBJECT_REFof the enclosing CONTRIBUTION;commit_audit, including its committer andtime_committed;lifecycle_state;data, the clinical content;attestations, the ones committed with the version.
The assembled object is reduced to a canonical string with
RFC 8785 (JSON Canonicalization
Scheme), and the digest is
sha256: followed by the standard-base64 encoding of the SHA-256 of that
string:
sha256:jtWX/CULavvzX0ehjowv2XZPICTQhN1t0+AXHfbEaNc=
The sha256: prefix is a FerroEHR addition. openEHR names the OpenPGP
format for the signing depth, and says nothing about how a bare digest is
spelled on the wire, so the prefix carries the algorithm and encoding that
a raw radix-64 hash would leave unstated. It is also what lets a reader
tell a digest from a PGP signature without a second stored column.
The RM section marks the exact serialization “To Be Determined” and notes that ODIN might be preferred because XML libraries differ. FerroEHR uses canonical openEHR JSON reduced by RFC 8785, which is deterministic and independent of the signature itself.
Note
A logically deleted version has no
dataattribute at all: openEHR deletes by committing a new version whose data is Void. Its digest therefore covers the identity, provenance and523|deleted|lifecycle state, and nothing else. It is a signature over a real version, not an empty one.
When it is computed
At commit, inside the write transaction, before any row is inserted. The commit instant and the CONTRIBUTION id are both known up front (the commit instant is the transaction timestamp), so the server assembles the exact version envelope it will later serve, signs that, and writes the version row, the CONTRIBUTION and the audit together.
Two properties follow, and both matter for verification:
- The signed bytes and the stored bytes are the same bytes. The content is decomposed into storage rows once and reassembled once; that reassembled value is what gets signed and what a read returns. There is no second serialization that could drift.
- A version that fails to sign does not commit. Signing sits inside the transaction, so a canonicalization or signer failure rolls the whole change back rather than storing an unsigned version.
flowchart TD
A["commit<br/>(direct write or CONTRIBUTION)"] --> B{"UPDATE_VERSION.signature<br/>supplied by the client?"}
B -->|yes| C["stored verbatim<br/>signature_client_supplied = true"]
B -->|no| D{"record.signing.enabled"}
D -->|false| E["no signature stored"]
D -->|true| F["assemble the VERSION envelope<br/>uid, contribution, commit_audit,<br/>lifecycle_state, data,<br/>at-committal attestations"]
F --> G["canonical form:<br/>drop signature, RFC 8785 (JCS)"]
G --> H{"record.signing.mode"}
H -->|digest| I["sha256: + base64(SHA-256(canonical))"]
H -->|pgp| J["RFC 4880 detached signature,<br/>ASCII-armored"]
I --> K[("version row<br/>same transaction")]
J --> K
C --> K
E --> K
What a stored digest proves
It proves that the version served today canonicalizes to the same bytes it did at commit. Any change to the content, the committer, the commit time, the lifecycle state or an at-committal attestation moves the digest, so a row edited behind the server’s back is detected the next time that VERSION is read.
It proves nothing about who wrote the version. A digest needs no key, so anyone holding the bytes can compute the same value, and an attacker who can rewrite a version row can rewrite its digest with it. Digest mode is a tamper-detection control against accidental corruption and against an actor who reaches the data but not the write path. Authorship and non-repudiation need a key, which is PGP mode.
It also covers one of the two copies FerroEHR stores. Every version’s content is written twice in the same transaction: as the materialized document a point read serves, and as the decomposed rows the AQL engine queries. The digest is computed over the first one, and read-time verification recomputes it from the same place. The decomposed rows are never recomputed on a read, so a row edited behind the server’s back is invisible to this check and can still reach a client through an AQL scalar result.
That copy has its own channel: POST /ferroehr/rest/extensions/v1/admin/integrity/verify
re-derives every stored version from its decomposed rows and reports any
that no longer match the stored document. It is an admin route, it runs
outside the request path, and it reports by identifier rather than by
content. The admin API reference
documents the report and its five defect values.
Verification at read
record.signing.verify_on_read resolves to strict whenever signing is enabled,
so the default deployment checks its own digests. On a VERSION read the
server rebuilds the envelope from the stored row, recomputes the canonical
form, recomputes the digest, and compares.
verify_on_read | On a mismatch |
|---|---|
strict (the default while signing is enabled) | 500; the record is provably corrupt and is not served |
warn | logs at error level, increments version_signature_invalid_total{verdict="digest_mismatch"}, still serves |
off | no check at all |
Verification runs where the server serves a VERSION object: the
versioned_composition and versioned_ehr_status version routes, their
version_at_time forms, the demographic version reads, and the versions a
CONTRIBUTION read resolves under Prefer: resolve_refs. A plain content read
(GET /ehr/{ehr_id}/composition/{uid_based_id}) returns the COMPOSITION
rather than the VERSION that carries the signature, and runs no check. AQL
reads the decomposed storage rows directly and runs no check either; the
storage-parity sweep is what
covers those.
Warning
A
strictmismatch is a500on purpose. The alternative is serving a record the server can prove was altered after committal, which in a clinical repository is worse than an outage on that one version. If a deployment needs reads to continue while an integrity problem is investigated,warnis the deliberate downgrade, and it is metered so the downgrade is visible.
Two cases are never verified, whatever the setting says:
- A client-supplied signature. A
VERSION.signaturea caller sent in a CONTRIBUTION is stored verbatim and served verbatim. The author may have signed another agreed serialization, which this server cannot recompute, so treating a non-match as corruption would be wrong. The stored row records which of the two it holds. - The
ORIGINAL_VERSIONwrapped inside an imported version. Its signature belongs to the system that created it. See PGP signing.
Verifying a digest yourself
The digest is reproducible from the served JSON. Fetch the VERSION:
BASE=http://localhost:8080/ferroehr/rest/openehr/v1
curl -u ferroehr:ferroehr -o version.json \
"$BASE/ehr/$EHR_ID/versioned_composition/$VO_UID/version/$VERSION_UID"
Then, over version.json:
- read the stored value,
jq -r '.signature' version.json; - drop that member,
jq 'del(.signature)' version.json; - canonicalize the result per RFC 8785 (the served bytes are canonical
openEHR JSON, whose member order is
_type-first, so they are not already in JCS order; this step is the one that decides whether the comparison works); openssl dgst -sha256 -binary,base64, and prefixsha256:.
Step 3 needs an RFC 8785 implementation. FerroEHR ships no command-line tool for it, so use a canonicalizer from your own language’s ecosystem.
Note
One case does not reproduce. openEHR allows an attestation to be added “at any time after committal”, and such an attestation post-dates the signature. FerroEHR appends those to the served
attestationslist after verification, so the served list can hold more entries than the signed form did, and the wire carries no marker separating the two. The server’s own check uses the at-committal set; an outside recomputation over a version attested after committal will not match. Versions with no after-committal attestations reproduce exactly.
Switching modes later
The stored format decides how a signature is checked, so a mode change does
not invalidate history: a sha256: digest keeps verifying after the server
moves to pgp mode, because the check keys off the value’s own prefix.
The reverse direction is weaker. A PGP-signed version read by a server in
digest mode has no key to verify against, so it is served without a
verdict rather than failing. Keep the certificate configured if those
versions must stay checkable.
Every key in [record.signing], with defaults and environment forms, is in the
configuration reference.
PGP signing
pgp mode replaces the stored SHA-256 digest with an OpenPGP
(RFC 4880) detached signature made
with a key the server holds. openEHR names that format directly: the
signature “is generated according to the openPGP standard”, and where a
digest only detects tampering, a signature “authenticates the user as the
author of the content to readers of the content” and “acts as a
non-repudiation measure, since the signature is stored permanently with the
data” (RM Common IM, Change Control §Digital
Signature).
Read Digest signing first: what gets signed, when, and how the canonical form is built are identical in both modes. This page covers what changes.
- What differs from digest mode
- Configuring the key
- Server-generated versus client-supplied signatures
- Imported versions carry two signatures
- Read-time verification
What differs from digest mode
digest | pgp | |
|---|---|---|
| Stored value | sha256: + base64(SHA-256(canonical form)) | ASCII-armored RFC 4880 detached signature |
| Key material | none | an armored secret key the server loads at boot |
| Hash | SHA-256 | SHA-256, inside the OpenPGP signature |
| Proves | the version was not altered after committal | that, plus which key signed it |
| Boot behaviour | nothing to validate | refuses to start without a usable key |
| Verification at read | recompute and compare | verify against the configured certificate |
The bytes being signed do not change. The server assembles the version
envelope, drops the signature attribute, reduces it to its RFC 8785
canonical form, and hands that string to the signer. Only the last step
differs.
Configuring the key
pgp mode needs a key_file pointing at an armored secret key, and the
passphrase that unlocks it if it has one:
[record.signing]
enabled = true
mode = "pgp"
key_file = "/etc/ferroehr/signing.asc"
key_passphrase_file = "/run/secrets/pgp-pass"
retired_key_files = ["/etc/ferroehr/signing-2025.pub.asc"]
The same settings as environment variables:
FERROEHR__RECORD__SIGNING__MODE=pgp
FERROEHR__RECORD__SIGNING__KEY_FILE=/etc/ferroehr/signing.asc
FERROEHR__RECORD__SIGNING__KEY_PASSPHRASE_FILE=/run/secrets/pgp-pass
FERROEHR__RECORD__SIGNING__RETIRED_KEY_FILES=/etc/ferroehr/signing-2025.pub.asc
Prefer key_passphrase_file over the inline key_passphrase: it is the
shape Docker Secrets and Kubernetes Secrets deliver, and the passphrase then
never appears in the environment. Setting both of the pair is a boot error.
The full key table, the Kubernetes config.files mount, and the rotation
walkthrough are in the
configuration reference.
Boot is fail-closed. The server loads the key, then signs a fixed test
string with it. A missing key_file, an unparseable file, a wrong
passphrase, or a certificate with no usable signing component all stop
startup with an error rather than leaving a running server that cannot sign.
The signing component is chosen at boot. No subkey signs while the primary key is revoked (RFC 9580 §5.2.1.11: “A revoked key is not to be used”) or past the Key Expiration Time its self-signature states (§5.2.3.13). RFC 9580 does not say in so many words that a subkey inherits its primary key’s revocation or expiry, so applying it is FerroEHR’s own choice: the primary key’s binding is what vouches for the subkey. Otherwise a subkey qualifies to sign when all of these hold:
- its newest valid Subkey Binding signature
(RFC 9580 §5.2.3.10)
carries the data-signing key flag
0x02(§5.2.3.29); - neither that binding nor the subkey has expired (§5.2.3.13);
- no valid Subkey Revocation signature covers it (§5.2.1.12: “A revoked subkey is not to be used”).
Of the qualifying subkeys, the one created last signs; on equal creation times, the later one in the file. RFC 9580 gives no rule for choosing among several signing subkeys, so preferring the newest is FerroEHR’s own choice. It is what makes adding a signing subkey a rotation. An encryption subkey never signs.
When no subkey qualifies, the primary key signs, provided the certificate lets it:
- its governing self-signature carries the signing flag
0x02. RFC 9580 keeps the primary key’s flags in a Direct Key signature or, by version 4 convention, in a User ID self-signature (§5.2.3.10), so the governing one is the newest valid Direct Key signature when it carries key flags, else the newest valid self-signature on the primary User ID. A Direct Key signature that a valid Certification Revocation created at or after it revokes is cancelled and not chosen (§5.2.1.13, §5.2.3.10: “Revoking a Direct Key signature cancels that signature”). A version 6 key without a valid Direct Key signature in force is not used at all, as §5.2.3.10 requires. A self-signature with no key flags grants no signing, since §5.2.3.29 counts an unstated flag as zero. RFC 9580 gives no precedence between the two places, so preferring the Direct Key signature is FerroEHR’s own choice; - neither that self-signature nor the primary key has expired (§5.2.3.13, counted from the primary key’s creation);
- no valid Key Revocation signature covers it (§5.2.1.11: “A revoked key is not to be used”).
When neither a subkey nor the primary key may sign, the server refuses
to start and names the signing flag. It never signs with a key the
certificate does not authorise. Add a signing subkey
(gpg --quick-add-key <FINGERPRINT> ed25519 sign), or re-issue the primary
key’s self-signature with the signing flag.
The choice holds until the next restart, so restart after adding, revoking or expiring a subkey, and before the chosen component expires.
Sign with Ed25519. It is the one algorithm the server signs with that has neither a refusal nor a warning.
An ECDSA or Ed448 signing key is refused at boot. The private-key
arithmetic of both runs on crypto-bigint 0.5, whose operations meant to be
constant-time can branch on secret values (RUSTSEC-2026-0387), and the 0.5
line has no fixed release. That covers ECDSA on every curve (P-256, P-384,
P-521, secp256k1, Brainpool). The server stops before it makes a single
signature and names the advisory. Only the signing component counts: a
certificate whose primary key is ECDSA and whose chosen signing subkey is
Ed25519 is accepted. Such a certificate stays usable for verification as a
retired key, since verifying uses only public
values.
An RSA signing key is accepted with a warning. Every commit would then
perform an RSA private-key operation, the operation the Marvin timing
sidechannel (RUSTSEC-2023-0071 / CVE-2023-49092) concerns, and the
underlying rsa crate has no fixed release. The server warns at boot and
keeps working, because a repository whose history is RSA-signed still needs
that key to verify it. An Ed25519 key keeps that code off the signing path.
Retired keys and rotation
A stored VERSION.signature records no key identifier, and it is an
immutable committed fact that cannot be re-issued. Rotating a key therefore
has to keep the old one verifiable. Two mechanisms do that:
- A new signing subkey on the same certificate. After a restart the server signs with the newest qualifying subkey (see above), the certificate retains the previous one, and verification tries the primary key and every subkey. Revoking the old subkey stops it signing and keeps it verifying. Nothing else changes.
retired_key_files. A replaced certificate’s public half is listed there and consulted during verification. A public key verifies and can never sign again, so a retired entry cannot become an active signer.
A retired certificate may use any algorithm the server can verify, ECDSA, Ed448 and RSA included, so moving off a refused signing key keeps every version it signed verifiable.
Server-generated versus client-supplied signatures
A VERSION.signature in this repository is one of two things, and the
distinction is recorded on the row rather than guessed from the value.
Server-generated is the ordinary case. The direct write routes
(POST/PUT/DELETE on a composition, the EHR status, the directory, a
demographic party) carry no signature field at all, so every version they
commit is signed by this server when signing is enabled.
Client-supplied reaches the server through one route: an
UPDATE_VERSION.signature inside a CONTRIBUTION commit. When a member
carries one, the server stores it verbatim and does not sign that version
itself, whatever record.signing.mode says. openEHR models the signature as a
fact created by the committer and carried with the data, potentially in
another agreed serialization, so the server has nothing to recompute it
against. Such a signature is never re-verified at read, and no
verify_on_read setting changes that.
Note
A client-supplied value is stored as sent, so an opaque or invalid one is served back unchanged rather than refused. It is a claim by the committer, and this server neither vouches for it nor mistakes it for its own. Only signatures the server generated are covered by read-time verification.
Imported versions carry two signatures
An EHR Extract import wraps each received ORIGINAL_VERSION in an
IMPORTED_VERSION, and openEHR is explicit about what happens to signatures
there. The wrapped original “is never modified”, and the wrapper is signed
like any other version: “all attributes of the object are serialised and
then used to generate a signature. The result will be that the
IMPORTED_VERSION instance will carry its own signature which signifies the
act of importing and making available locally an ORIGINAL_VERSION from
another system.”
FerroEHR implements exactly that:
- The wrapper is signed by this server, over the whole
IMPORTED_VERSIONincluding the wrappeditem, using the configured mode. An import is a local act of committal, so it is signed like one. - The wrapped original’s signature rides inside
itemuntouched. It belongs to the source system’s key, which this server does not hold, so it is served verbatim and never verified.
Reading such a version verifies the wrapper and leaves the wrapped
signature alone. Reading the same version as an ORIGINAL_VERSION (the form
an EHR Extract export carries) reproduces the received original with its
foreign signature and verifies nothing, which is what makes a re-export a
faithful copy.
Read-time verification
The stored signature’s own format decides how it is checked, which is why a mode change does not strand history. The full path:
flowchart TD
R["read a VERSION resource"] --> A["rebuild the envelope from the stored row<br/>(a deleted version carries no data attribute)"]
A --> B{"signature_client_supplied?"}
B -->|yes| S["serve"]
B -->|no| C{"verify_on_read"}
C -->|off| S
C -->|"warn / strict"| D{"a stored signature?"}
D -->|no| S
D -->|yes| E["recompute the canonical form<br/>drop signature, RFC 8785 (JCS)"]
E --> F{"stored value's format"}
F -->|"sha256: prefix"| G["recompute the digest and compare"]
F -->|"PGP armor"| H{"a PGP key configured?"}
F -->|"anything else"| I["client_foreign: serve"]
H -->|"yes (pgp mode)"| J["verify against the certificate,<br/>its subkeys and the retired ones"]
H -->|"no (digest mode)"| I3{"does the armor parse?"}
I3 -->|yes| I
I3 -->|"no: pgp_invalid"| L
G --> K{"verdict"}
J --> K
K -->|"match"| S
K -->|"failure"| L{"verify_on_read"}
L -->|warn| M["log + version_signature_invalid_total,<br/>then serve"]
L -->|strict| N["500 integrity failure"]
S --> T["append attestations added after committal"]
M --> T
I --> T
The server reaches one of five verdicts: digest_match, digest_mismatch,
pgp_valid, pgp_invalid, client_foreign. Two of them are failures,
digest_mismatch and pgp_invalid, and those are the ones counted, under
the verdict label on version_signature_invalid_total.
Three parts of the path are worth stating in prose:
- Attestations added after committal are appended after verification. openEHR allows an attestation “at any time after committal”, so such an attestation post-dates the signature and cannot be inside it. The server verifies the at-committal form and then extends the served list.
- A version with no stored signature is served normally. Versions committed while signing was disabled carry none, and their absence is not a failure.
strictis the default while signing is enabled. A mismatch is a500rather than a served record that is provably altered.warndowngrades that to a logged and metered event, which is a deliberate reduction in an integrity guarantee rather than a setting to leave on.
FerroEHR Viewer
ferroehr-viewer is a standalone web UI for managing an
ITS-REST-1.1.0 CDR, this server or any other. It is a pure REST client:
everything it does goes through the CDR’s public API (never the database),
so what you see in the viewer is exactly what the API serves. The whole
application is Rust, drawn on the server as plain HTML with FerroUI, the
component library the FerroHEALTH consoles share; the only scripts are
FerroUI’s own small modules, and there is no hand-written JavaScript
anywhere, including its browser tests.
- Running it
- Signing in
- The deployment profile
- Configuration
- How the pages work
- Audit log
- Acknowledgment
Running it
The quickstart compose ships the viewer as the ferroehr-viewer service on
port 3000, behind the viewer profile, so it
is opt-in and does not start with a plain docker compose up:
docker compose --profile viewer up
# → http://localhost:3000 (log in with the quickstart user ferroehr/ferroehr)
Standalone, point it at any CDR:
docker run -p 3000:3000 \
-e FERROEHR_VIEWER__CDR__BASE_URL=https://cdr.example.org \
ghcr.io/ferrohealth/ferroehr-viewer
On Kubernetes
The Helm chart deploys the viewer as its own Deployment, Service and ServiceAccount, with an optional Ingress and a NetworkPolicy that confines its egress to the CDR and DNS: the viewer is a REST client of the CDR by mandate, so the chart enforces that rather than trusting it. Off by default, and off renders nothing:
# values.yaml
viewer:
enabled: true
ingress:
enabled: true
hosts:
- host: viewer.example.org
paths:
- path: /
pathType: Prefix
auth:
oidc:
enabled: true
issuer: https://keycloak.example/realms/ferroehr
clientId: ferroehr-viewer
publicBaseUrl: https://viewer.example.org
# the OIDC client secret is MOUNTED from a Secret you create, never env-borne
existingSecret: viewer-oidc
It needs no database credential and never reaches the database. Before you
enable OIDC: a registered client whose redirect URI matches publicBaseUrl,
and a Secret holding its client secret. To turn the viewer off, set
viewer.enabled: false and upgrade; every viewer object is removed and the
CDR is untouched.
Note
To scale the viewer past one replica, set
session.store = "sealed"and the samesession.key(orsession.key_file) on every replica: the session is then a sealed cookie any key-holding replica can serve. The defaultmemorystore keeps sessions in one process, which is right for exactly one replica. A sealed store with no key refuses the start.
Signing in
The sign-in page offers exactly the methods that can actually work: the
viewer’s configured login modes intersected with the authentication
schemes the CDR advertises (its WWW-Authenticate challenge). A Basic
form is never shown against a bearer-only CDR, and vice versa. If the CDR
cannot be reached at all, the page falls back to the viewer’s own
configuration and renders anyway, and the outage then surfaces on the login
attempt instead of hiding the page. A username or password the CDR refuses
brings you back to the sign-in card with the refusal under the password.
The viewer verifies the CDR and the OIDC issuer against the platform trust
store and the extra certificate authorities its configuration names: a CDR or
an identity provider whose certificate comes from a private CA is trusted once
cdr.tls.trust_roots_file or oidc.tls.trust_roots_file names a PEM bundle holding that
CA, on Linux and macOS alike. A file that cannot be read,
or holds no certificate, refuses the start.
The viewer manages no accounts of its own: it authenticates you against the CDR (Basic) or your identity provider (OIDC), and there are no user, role, or password screens to find; those live in the CDR’s configuration and in your IdP.
The button with your name at the end of the top bar opens the user menu: who is signed in and how, Your preferences, Your access, the theme, Keyboard shortcuts and Sign out.
Your access
Your access (/access) answers what may this session do, and who says
so: the principal and how it signed in (a Basic session replays its CDR
account and carries no SMART scopes; an OIDC session carries an access token
whose scopes are listed), every scope on the session read as its parsed grant
(the compartment, the resource family and id pattern, and which of create,
read, update, delete and search it permits, with a broad access marker on a
bare *; an identity or launch scope such as openid, profile or
launch/patient reads as the request it makes), and a previewer: paste any
scope or a whole claim, press Read it, and read the same rendering. A
malformed scope says what the grammar expected. The user menu and Server’s
SMART tab link here.
The reading parses with the same grammar the CDR’s SMART on openEHR enforcement reads, so the two cannot drift. Scopes narrow access and never grant it; the CDR remains the enforcer.
When your session ends
A session ends when you sign out, when its idle window
(session.idle_timeout, an hour by default) passes with no request from
your browser, when its lifetime (session.absolute_timeout, 12 hours after
you signed in by default) runs out whatever you do, or when the CDR stops
accepting the credential behind it (an expired or revoked token). The pairing
of an idle timeout with an absolute one follows the OWASP Session Management
Cheat Sheet.
Each signed-in page watches its session. Two minutes before the idle window ends, a dialog says when the session ends and offers Stay signed in or Sign out; typing or clicking on the page also keeps the session going, at most once a minute. Nothing extends the lifetime, so near its end the page gives no warning and leaves when it runs out. When the session has ended, the page leaves for the sign-in page, which says the session ended, and signing in again (Basic or OIDC) returns you to the page you were on. Every other tab of the viewer in the same browser leaves with it, and signing out in one tab ends the others.
The idle window slides on each request your browser makes for a page or a
post. The watch’s own reads of the session do not slide it, so a tab left
open and untouched idles out after session.idle_timeout_s like a closed one.
With FerroUI’s scripts refused, the next page you ask for is where the viewer
notices.
The deployment profile
The status pill at the end of the top bar says whether the CDR answers. A
deployment that declares the sandbox profile (deployment.profile in its
configuration, reported on GET /rest/status) raises a band under the top bar
on every signed-in page: this deployment must not hold real patient data,
with the number of production separations the server reported as open (a
shared database credential, a shared cluster, no subject pseudonym namespace,
no durable audit trail, schema preparation on the runtime credential).
Its Details opens Server’s Overview, which names each one. A production
deployment raises no band. The
quickstart and the composed stacks run as sandbox; a CDR older than the
profile reports none and the viewer claims nothing. See the
deployment profile in
the server configuration.
Configuration
One TOML file (ferroehr-viewer.toml, read from the path --config or
FERROEHR_VIEWER_CONFIG names; with none named, no file is read), with
FERROEHR_VIEWER__<SECTION>__<KEY> environment overrides and --set key=value pairs over both. Unknown keys and unknown FERROEHR_VIEWER_
variables are refused at startup. The CDR refuses only an unknown FERROEHR__
override, because the viewer’s variables share its prefix:
| Key | Default | Meaning |
|---|---|---|
server.listen | 127.0.0.1:3000 (0.0.0.0:3000 in the image) | The socket address the viewer listens on. |
server.tls | unset | The listener’s certificate and key, as the CDR’s [server.tls] table; unset, the viewer speaks plain HTTP behind a terminating proxy. |
server.request_timeout / body_limit | "1min" / "16MiB" | How long one request may take, and the largest body it may post (a template or composition posts whole). |
server.drain_delay / shutdown_timeout | "0s" / "10s" | On SIGTERM the viewer withdraws readiness, waits the drain delay, then gives the requests in flight the shutdown bound. |
server.* | as the CDR’s | The other keys of the CDR’s [server] table (header_read_timeout, idle_timeout, max_concurrent_requests, retry_after, trusted_proxies, forwarded_header, compression, compression_min_size) apply as they do there. base_path and caller_rate are refused: the viewer’s pages are served at /, and it mounts no per-caller limit. |
telemetry.* | as the CDR’s | The CDR’s [telemetry] section: format (auto, json or pretty), filter (default info,hyper=warn,tower=warn,h2=warn, refused at startup when it does not parse; RUST_LOG is a lower-priority fallback, as on the CDR), logged_query_parameters, environment and the [telemetry.otlp] export. A viewer request line has the CDR’s fields, and a panic writes the CDR’s one fixed line. The service.name is ferroehr-viewer; the viewer serves no Prometheus surface, so its http.server.request.duration histogram leaves only over OTLP with otlp.metrics. |
cdr.base_url | http://localhost:8080 | The CDR origin (cdr.base_path is appended). |
cdr.base_path | /ferroehr/rest/openehr/v1 | The CDR’s ITS-REST base path. Mirror of the CDR’s own api.base_path: set the same value here when a deployment shortens it, or the viewer calls paths the CDR does not serve. The status document, the OpenAPI documents and the SMART discovery document are derived from it by the same rule the CDR uses. |
cdr.timeout | "30s" | How long one request to the CDR may take. |
cdr.tls.trust_roots_file | unset | A PEM bundle of certificate authorities trusted for the CDR beside the platform’s roots, for a CDR behind a private PKI. |
cdr.tls.client_identity (_file) | unset | The client certificate chain and its private key, in one PEM, presented to a CDR that asks for mutual TLS. |
cdr.tls.min_version | "1.3" | The oldest TLS version the CDR client speaks; "1.2" lowers it. |
cdr.management_base_url | derived from cdr.base_url | The CDR’s management surface, base path included; set it when the CDR serves management on its own internal listener (management.listen) or under a renamed base path. Drives Server’s management tabs. |
auth.basic_enabled | true | Offer the username/password form (validated against the CDR; held server-side). |
auth.oidc_enabled | false | Offer the OpenID Connect sign-in (authorization code + PKCE) at the provider [oidc] names. |
auth.public_base_url | — | The viewer’s externally visible origin: the origin the same-origin check compares a post with, the base of oidc.redirect_uri (<public_base_url>/auth/callback) when that is not set, and the base of oidc.post_logout_redirect_uri (<public_base_url>/sign-in?signed-out=1, the signed-out page) when that is not set. |
oidc.issuer / client_id / client_secret (_file) / redirect_uri / post_logout_redirect_uri / scopes | — | The viewer’s client at its OpenID Provider (ferrohealth-session’s [oidc]). The provider must allow the redirect URI <public_base_url>/auth/callback and the post-logout redirect URI <public_base_url>/sign-in?signed-out=1 (OpenID Connect RP-Initiated Logout 1.0 §3). With auth.oidc_enabled, an issuer that is not https off loopback, a missing client id or redirect URI, and scopes without openid are startup errors, and the provider’s metadata is discovered at the start. |
oidc.resolve | empty | host=ip:port entries for split-horizon DNS: the viewer reaches each provider host at its address, while browsers and tokens keep the canonical URL. |
oidc.tls.trust_roots_file / client_identity (_file) / min_version | unset / unset / "1.3" | The family’s outbound TLS table for the provider: a PEM bundle of certificate authorities trusted beside the platform’s roots, for a provider behind a private PKI; the client certificate chain and its private key in one PEM, for mutual TLS (RFC 8705 §2); and the oldest TLS version of the provider connection ("1.2" lowers it). |
login.notice | empty | Informational text on the sign-in card, line breaks preserved. A demo or evaluation deployment states its public credentials and usage expectations here. |
login.links | empty | Links under the sign-in card, each { label, href } — an API reference, a documentation page. |
session.store | memory | Where sessions are kept (ferrohealth-session’s [session]): memory in the one viewer process, or sealed in one AES-256-GCM cookie every replica holding the key opens. |
session.idle_timeout | "1h" | Session idle expiry: the window slides on each page or post the browser asks for and on Stay signed in, never on the session watch’s own reads. |
session.absolute_timeout | "12h" | The session’s lifetime from sign-in, which no activity extends. Zero, or a value below session.idle_timeout, is a startup error. |
session.secure_cookie | true | The cookies carry Secure and with it the __Host- prefix; set false only for plain-HTTP local development. |
session.key / session.key_file | unset | The sealing key of a sealed store: base64 of at least 64 bytes (openssl rand -base64 64), the same on every replica. A sealed store without one, or a key beside a memory store, is a startup error. |
ui.locale | en | The language a page renders in when the browser’s Accept-Language names none the viewer ships. English is the one language that ships today. A language is added as a catalog file under app/ferroehr-viewer/locales/<tag>/ (the viewer’s words) beside FerroUI’s (the components’ words) with no code change; the catalogs are embedded when the viewer is built, so a new one reaches a deployment in a rebuilt image, never at run time. A value that is no BCP 47 language tag is a startup error. |
Commands
ferroehr-viewer (or ferroehr-viewer serve) serves until SIGTERM or
SIGINT. ferroehr-viewer config check reads the configuration, checks
[oidc] and [session] and builds the CDR client and the session store,
reading every TLS file, without reaching the CDR or the provider.
ferroehr-viewer healthcheck, the image’s HEALTHCHECK, asks the viewer
beside it for GET /health/readiness over the loopback (over TLS when
server.tls is set) and exits 0 only on 200. The viewer serves the
family’s health routes: /health/liveness, /health/readiness and /health.
Every command exits 78 (EX_CONFIG of sysexits(3)) when the viewer
refuses its configuration (an unknown or invalid key, a TLS file that does not
read, an [oidc] or [session] table it cannot use) and 1 on any other
failure, with the whole cause on stderr. A command line clap cannot parse
exits 2.
Browser security headers
Every response carries a Content-Security-Policy that admits scripts and
styles from the viewer’s own origin alone (script-src 'self'; style-src 'self'), with no nonce and neither 'unsafe-inline' nor 'unsafe-eval',
beside X-Content-Type-Options: nosniff, X-Frame-Options: DENY,
Referrer-Policy: no-referrer, Cross-Origin-Opener-Policy: same-origin and
Cross-Origin-Resource-Policy: same-site; when the viewer serves TLS itself
(server.tls), Strict-Transport-Security: max-age=31536000 as well.
Every document is Cache-Control: no-store; FerroUI’s stylesheet, theme and
scripts under /ferrohealth-ui/<version>/ are no-cache, so a browser
revalidates them. A request that is not a
safe method (a form post, the search panel’s answer) is refused 403 unless the
browser’s Sec-Fetch-Site says it came from the viewer’s own pages; without
that header its Origin or Referer must name auth.public_base_url.
The viewer is stateless: it has no database and keeps no local files of
its own. Everything it shows, including how stored queries are grouped,
which is derived from the namespace in each query’s qualified name, lives in
the CDR and is read over ITS-REST, so nothing here needs backing up and
every replica shows the same repository. The sign-in and the session are
ferrohealth-session’s: with session.store = "sealed" the session is a
sealed cookie (AES-256-GCM, keyed by session.key), so any replica holding
the key can serve any signed-in visitor.
Sign-in and sessions live in the viewer’s server; the browser stores only
the session cookie, an opaque id or ciphertext: CDR credentials and bearer
tokens never reach it in readable form. The sign-in page is /sign-in, and
the sign-in routes are /login (which begins the OpenID Connect sign-in),
/auth/callback, /logout and /session.
How the pages work
The viewer draws every page on its server and sends it complete. Every link is a link and every action is a form that posts to the page it sits on, so the whole viewer works with JavaScript off. The browser then loads FerroUI’s small script modules, which add behaviour to a few parts of a page (the code editor, the path trees, the chart legend, the date pickers, the search panel’s suggestions, the user menu’s keyboard handling, the subject reveal and Copy buttons); nothing on a page waits for them. There is no hand-written JavaScript.
An editor (a new EHR, a composition, the EHR status, the directory, a party, a template upload) ends in a bar docked at the foot of the page: what has changed, Discard, and the save. A save that the CDR refuses keeps what you typed on the page beside the CDR’s own words.
The screens are listed in the sidebar; below 48 rem it folds into a drawer behind the menu button.
- Dashboard: record counts, the compositions committed per day, and the stored queries by namespace. See Queries.
- EHRs: find, create and delete EHRs; each EHR’s compositions, directory, status, contributions and tags. See Templates and EHRs.
- Parties: the demographic parties, their versions, relationships and tags. See Parties.
- Templates: upload and read ADL 1.4 and ADL 2 operational templates. See Templates and EHRs.
- Terminology: the terminologies the CDR serves. See Terminology.
- Stored queries and Query: build or write AQL, run it, chart and export the rows, save it to the CDR. See Queries.
- Server: what the CDR is, how it runs and what it serves, and the Audit log. See Server and audit log.
- Configuration: the CDR’s redacted running configuration, by section.
- About: the viewer, the CDR and their versions, the manufacturer and the CDR’s conformance manifest.
The top bar’s search takes an EHR id, a composition or party uid, a subject id, a template id or a stored-query name. From the second character a panel under the field shows what matches, five of a kind; the arrow keys move through it, Enter opens a hit and Escape closes it. Submitting the search opens the find page, which lists every match, or the other ways to find a record when nothing does.
The footer under every page names the viewer and its version, the manufacturer (Cadasto B.V.), and an About link.
Paging
A listing that can show patient data (the EHRs, an EHR’s compositions and
contributions, the audit log) pages with First, Previous, Next and Last under
the table and keeps its page in a cookie for the browser session, never in the
address or the history, as FerroUI asks of every family console. A filter
stays in the address, so a filtered view is still shareable; the page you
were on is not. Each step is a form that posts to /paging and comes back to
the listing, so paging works with JavaScript off.
Preferences and the keyboard
Your preferences keeps the viewer’s display choices, each in its own cookie for that browser: the theme, the reading choices, and the keyboard shortcuts. See Preferences and the theme.
Audit log
The audit log has its own section in Server and audit log.
Acknowledgment
The viewer’s feature set (the Template Manager, the point-and-click Query Builder, and saved, grouped and cohort queries) is inspired by EHRServer by Pablo Pazos and CaboLabs Health Informatics (Apache-2.0). The interface is reimplemented in Rust over FerroEHR’s own AQL engine, and no code is copied.
Dashboard & queries
The dashboard opens the viewer, and Query and Stored queries cover AQL end to end: build a query from a template or write it, run it, read the rows as a table or a chart, export them, and save the query to the CDR as a versioned stored query.
Dashboard
What the CDR holds, as it answered just now: the EHR, composition, template and stored-query counts (each a link to its screen), the compositions committed per day over the last 30 days, read by commit time with one AQL query, and the stored queries grouped by namespace.
Query
Query has two tabs over one form: Build and AQL. Run in the page header runs whichever tab is open; Save to the CDR beside it stores the query.
Build
Build lowers a template and a few choices into AQL you can read:
- Template, the operational template the query reads, and Returns: data points, whole compositions, a count, or the EHRs (a cohort). Apply redraws the form for a new template or shape.
- Data points, each a path from the template’s Web Template and an optional column name; Add a data point adds a row.
- Conditions, in groups that match all or any of their conditions, each negatable. A condition is a path, an operator for that data type and a value: a quantity takes a number with its unit, a date a date, a coded text one of the codes the template allows. Add a condition and Add a group close each group.
- Order and limit.
The AQL the form lowers to is shown under it, and is what Run sends.
Every control is a field of the page’s form, and Add and Remove post it, so Build works with JavaScript off.
AQL
The AQL tab is a code editor with line numbers and the AQL grammar’s findings
beside the line they name, before anything is sent. A $parameter in the
query gets a row under Parameters: its name and the value Run binds.
Open in Build appears when the query is one Build can represent, and opens
it there.
Results
Results come back under the form: how many rows, whether the query carried
its own LIMIT, and the rows as a table.
Chart in the Results heading runs the query again and draws the numeric columns as lines over the first time column (or over the row order when there is none), one series per column with a legend; Table goes back, and the next Run keeps the view you chose. The table under the chart names each point by its time. With FerroUI’s scripts loaded, pressing a legend entry hides that series; the last one shown stays.
Export in the Results heading opens a menu of the formats: CSV and
JSON download the rows. The query runs again on the viewer’s server and
the file arrives as aql-export.csv or aql-export.json. The menu works
with JavaScript off, and with no row Export is unavailable. The
viewer keeps no results between requests, so an export is always the CDR’s
answer at that moment.
Stored queries
Stored queries lists every stored query the CDR holds, grouped by the
namespace of its qualified name (org.example.vitals::latest-weights sits
under org.example.vitals): its versions, its parameters, and Run, Open in
Query and Delete this version from each row’s menu.
A stored query’s page has three tabs. Definition shows its AQL and facts.
Run runs it on the CDR with a value for each parameter. Which version runs
is the openEHR resolution choice: the latest (no version sent), a version
prefix (1 or 1.1, the latest matching it) or an exact version; the line
under the choice names the request it sends. Numbers and true/false are
sent as they are; quote a number to send it as text.
Versions lists every version.
Saving and versions
Save to the CDR takes a namespace, a name and a version. An empty version
lets the CDR assign one. A stored (name, version) pair cannot change: saving
the same pair again is refused and the popover says so. Opening a stored
version in Query fills Save with its namespace, its name and the next minor
version.
Deleting a version needs the CDR’s ADMIN role and asks first: Delete version… on the query’s page or in its row menu.
Templates & EHRs
Templates holds the operational templates the CDR validates compositions against, and EHRs opens every EHR with its compositions, directory, status, contributions and tags.
Templates
The list has a tab per family, ADL 1.4 and ADL 2, each with its count,
a find field over id, concept and archetype, and a row per template with
Build a query and Delete… in its menu. The releases of one template
share a group: the newest release leads with the number of releases, and the
earlier releases follow under it, each its own row. Releases belong together
when their ids differ only in the .v version at the end; an ADL 1.4
template whose id has no version joins the templates with the same concept
and root archetype.
Uploading a template
Upload a template opens an editor for one source: choose or drop a file
(.opt or .xml for ADL 1.4; .adl, .adls, .adlt, .adl2 or .txt for ADL 2; up to 16 MiB) or
paste the source, then Upload this template. The CDR validates it; a
refusal keeps the source on the page beside the CDR’s diagnostics, for ADL 2
the openEHR-ADL engine’s own words. With JavaScript off, paste the source.
A template
A template’s page has four tabs, and a fifth, Compare, when it has more than one release. Overview reads its identity, its releases with the number of compositions committed against each, and how to query it. The release you are reading is named beside the title; with more than one release it opens a list of the others, the newest marked, each a link that works with FerroUI’s scripts refused too.
Paths is its Web Template as a tree: pick a node to read its path, type and codes, and on a COMPOSITION template Build a query on this path. A demographic template’s nodes offer no query, since the query builder reads compositions. With FerroUI’s scripts loaded the tree folds in place and answers the arrow keys; without them each node is a link.
Source is the template as stored, with line numbers and Copy; Download in the More menu saves it as a file. Example is the composition the CDR generates for it, in the format, type and detail you pick.
Compare reads two releases, the one you are reading and the one before it unless you choose others, and lists each path the later release adds, removes or changes, with what it was and what it is.
ADL 2 templates
An ADL 2 template’s page opens on its latest release, and the JSON tab beside
Source shows the OperationalTemplateV2 document. An older release opens on
its Overview, says which release you are reading, and links back to the
latest.
A template whose archetypes the CDR no longer holds says so on every tab, names each missing archetype and links to uploading them. Its Paths, JSON and Example tabs stay empty until the archetypes are back.
Deleting a template
Delete… in a row’s menu opens the template with the confirmation inline; on the template’s page it opens a dialog. The CDR refuses while compositions use the template, and deleting needs its ADMIN role; either refusal arrives in the CDR’s words.
EHRs
The list shows every EHR the CDR holds, newest first, and finds one by its subject id and namespace. The subject is shown masked.
New EHR creates one with its status: an optional subject (an id the CDR keeps without reading it, and its namespace) and an optional EHR id; leave the id empty and the CDR mints a UUID. An id that is no UUID is refused before anything is sent; an id the CDR already holds is refused with a link to that EHR.
An EHR
An EHR’s page names it, its subject masked until you press Reveal (with JavaScript off the reveal is a link), and its Queryable and Modifiable badges, on every tab. A revealed subject hides again after the time set in Your preferences (30 seconds unless you change it). New composition and More (Commit several changes, Create the directory, Copy EHR id, Delete EHR…) sit in the header.
The tabs:
- Compositions: the EHR’s compositions, filtered by composer, template and start date; the filters stay in the address.
- Directory: the folder tree, Show one folder by path, and the directory’s versions with Restore… on each older one. Edit opens the editor: add, rename and remove folders and add references to the EHR’s compositions; nothing reaches the CDR until you save. Older versions reads further back than the newest ten.
- Status: the current
EHR_STATUSand its versions; Edit status sets Queryable, Modifiable and the other details as one new version. - Contributions: the contributions per day over the last 30 days and every contribution, each opening its versions.
- Tags: every tag in the EHR, on a composition or on the EHR status, by key and value; a row opens the object it tags.
Every save names the version it supersedes (If-Match). A save over a
version someone else replaced meanwhile is refused with the CDR’s 412, and
the editor offers to reload the newer version.
Deleting an EHR
Delete EHR… asks for the first eight characters of the EHR’s id, then removes the EHR and everything in it; it needs the CDR’s ADMIN role.
Committing several changes at once
Commit several changes builds one contribution: stage a new composition, an amended one or the EHR status, each with its document in an editor of its own, as many as you need, then commit them together with a description. The CDR takes all of them or none: a refused change keeps every staged change on the page beside the CDR’s words.
Compositions
A composition’s page has four tabs. Reading shows it as a person reads it, label and value, by section.
Document shows it in the format you pick (JSON, XML, FLAT or STRUCTURED),
as the CDR converts it. Versions lists every version and reads the
VERSIONED_COMPOSITION and the chosen version’s envelope; At a time opens
the version that was current then. Tags lists the composition’s tags and
sets or removes one; a tag stays on the composition across its versions and
commits no version.
Edit as a new version opens the document in an editor; the save writes the next version. Delete composition… marks it deleted with a new version; its versions stay readable and it leaves the EHR’s list.
Parties
Parties reads and writes the demographic parties the CDR holds (people, organisations, groups, agents and roles), their versions, the relationships between them, and their tags.
Note
Parties follow the released RM 1.1.0 demographic model. The openEHR REST API for them is still in development, and the relationship routes are this server’s own extension: a different openEHR server will not serve them.
Finding a party
Pick a kind and type a party’s uid, then Open. There is no list of parties: the demographic API publishes no “list all people” endpoint, and AQL reads EHRs. A versioned object uid opens the latest version; a version uid opens the object it belongs to. Open is a plain form and works with JavaScript off.
The one demographic collection the API publishes is the tag index, under Open: every tag on any party, each row opening the party it tags.
Creating a party
New party opens an editor with a starting document for the kind you pick
(Start over swaps it for another kind’s). Every attribute in it is one
openEHR requires: the party’s name, which openEHR uses for its type (the
names a person goes by live in identities), the archetype_details and the
root archetype_node_id, at least one identity, and for a role its
performer. Fill in the identity, replace the archetype ids with your own
demographic archetypes’, and create. The document is sent as you wrote it; a
refusal comes back with the CDR’s words and the path it names, the document
still on the page.
A party
A party’s page has five tabs. Overview reads its facts and identities.
Document shows it as the CDR serves it. Versions lists every version, each opening its envelope and its contribution; At a time opens the party as it stood then. Relationships lists the relationships the party is the source of. Tags lists its tags and sets or removes one.
Edit opens the whole party as JSON; the save writes the next version with
the opened one as its If-Match, so a party someone else changed meanwhile is
refused with the CDR’s 412. Delete party… marks it deleted; its versions
stay readable.
Relationships
A relationship joins a source party to a target: an employment, an authority, a care relationship. openEHR models it two ways, and both are visible here:
- inside the source party, which carries the relationships it is the source of; its Relationships tab lists those, each row opening the target;
- as an object of its own, with its id, versions and history, the shape this server’s relationship routes serve.
The target side cannot be listed: openEHR defines “relationships pointing at this party” as a derived attribute the CDR does not populate, and the tab says so where you would look.
Relate this party opens a new relationship with this party as its source: a type (openEHR stores it as the relationship’s name), the target’s kind and uid, and optional details. A relationship’s own page links both ends, reads its facts, versions and document, and edits its type and details; the ends do not change, since a relationship between other parties is another relationship.
Tags
A tag is a key, an optional value and an optional target path. Setting one re-sends the party’s whole tag collection, as the openEHR tag update does: the viewer reads the current tags and merges yours in, so a tag another client added between your read and your save can be lost; read again before editing a busy party. A tag stays on the party across its versions and commits no version.
Contributions
Every write here commits a contribution, openEHR’s record of one change set: who committed it, when and why. A version’s contribution link opens it, with the versions it touched, each linked to the object it belongs to.
Terminology
The Terminology screen browses the coded vocabularies the CDR can answer questions about: which terminologies it serves, what a code means, which codes a value set holds, whether a given code is one of them, and whether one code subsumes another. Everything on it is a read of the CDR’s public API; nothing is stored on the viewer’s side.
Note
The terminology API is this server’s own extension. openEHR’s REST release publishes no terminology contract, so the operations, URLs and JSON envelopes are this server’s own design over the openEHR TERM specification. A different openEHR server will not serve them.
Switching it on
The surface is opt-in and off by default. While it is off the CDR answers its terminology routes as if they were not mounted, and the screen says so in one card instead of pretending to work:
[api]
terminology = true```
or, as an environment override, `FERROEHR__API__TERMINOLOGY=true`.
Turning it on exposes only lookups over terminologies the server already holds:
the bundled openEHR terminology plus the external code sets beside it. Wiring
the FHIR terminology server is a separate setting, and it changes what
these lookups can answer; both are covered in
[Terminology servers](../beyond-core/terminology.md).
## The terminologies
**Terminologies**, the first of four tabs, lists exactly what the CDR reports:
the internal `openehr` vocabulary and the external code sets beside it
(languages, countries, character sets, media types). A row opens the
terminology's descriptor: publisher, identifying URI, version, and the fields
an extract may ask for, with links to look a code up in it and to expand one
of its groups. Fields the server does not publish are left out.
## Look up
Pick a terminology, type a code and **Look up**. A defined term comes back with
its text, the language it is written in and whether it is the preferred term.
An **effective date** is optional: supplied, it asks for the definition as it
stood that day; the openEHR bundle is one pinned release, so a date changes
nothing there, while an external terminology server can answer differently.
A code the terminology does not define is an answer, not an error: the page
says so, naming the code and the terminology.

> [!NOTE]
> openEHR terminology codes are scoped to their group: `532` is `complete` in
> one group and `completed` in another. A lookup reads the `openehr`
> terminology as flat and returns the first group's rubric, so expand the
> group under Value sets whenever the group matters.
## Value sets
Pick a terminology and a value set (for `openehr`, a vocabulary group such as
`audit_change_type`, offered as you type) and **Expand** it into its members.
Under them, **Validate** answers whether a code is a member, as a sentence
either way; a value set the CDR does not know has no members.

## Hierarchy
**Test** asks whether one code is broader than another. The test is strict,
so a code is never broader than itself, and the openEHR vocabulary defines no
hierarchy, so for any two openEHR codes the answer is no; the page says why.
Hierarchical answers come from an external terminology server when one is
bound.
Every tab is a GET form: the question stays in the address, so an answer is
shareable, and every tab works with JavaScript off.
## In the query builder
A condition on a coded text in [Build](queries.md#build) offers the codes the
template allows as a select, so a coded criterion is never typed from memory;
the query carries the bare code.
Server & audit log
Server says what the CDR this viewer reads is, how it runs and what it serves, as six tabs, and the Audit log browses its security audit trail. Everything on them comes from the CDR’s own endpoints over HTTP; the viewer has no privileged channel.
Overview
The CDR’s state, its deployment profile and version, and how it was built:
the version, the git commit, the build date and rustc, the PostgreSQL
target, the audit posture (whether auditing is on, its fail_mode, the local
store and the retention), the active
spec_profile with the
openEHR specification versions it selects, the manufacturer, and the end month
of the release’s support. The conformance manifest the CDR answers at
OPTIONS on its base path (its product, vendor, conformance profile and the
API groups it mounts) is on About.
Health, Metrics and Logging
These three tabs read the CDR’s management surface, and appear only when the
CDR serves it. To get them, enable the surface and give each endpoint an
access level (Operations → The management
surface); every endpoint ships
off:
[management]
enabled = true
[management.endpoints]
info = "admin_only" # the probe the tabs appear on; enable it with the rest
metrics = "admin_only"
env = "admin_only"
loggers = "admin_only"
If the CDR serves management on its own internal listener
(management.port) or under a renamed base path, point the viewer at it with
the full prefix (FERROEHR_VIEWER__CDR__MANAGEMENT_BASE_URL); unset, the
viewer derives {cdr.base_url}/management. Being allowed to read an endpoint
is the CDR’s decision per request, and a refusal is reported on the tab that
asked.
Health lists what the CDR depends on (the database, the migrations, the
audit chain and sender, and any optional components) with each one’s state
and the CDR’s detail. It reads the public readiness probe
(GET /health/readiness). The pill in the top bar answers a different
question: whether the API answers at all.
Metrics has three tiles (compositions committed, AQL queries, database
connections in use) over the whole metric registry: pick a
metric and Show its current samples with their labels. The choice stays in
the address (/server/metrics?metric=db_pool_connections). For dashboards
and alerts, scrape GET /management/prometheus.
Logging shows the filter in effect and the boot filter, and changes the
live filter without a restart: type tracing directives
(ferroehr=debug,sqlx=warn), Apply…, and confirm in the dialog; Reset
to the boot filter puts the startup value back. The tab then reads the
CDR’s answer, so what you see is what the server confirmed.
Important
A log-filter change applies to that CDR instance only and lasts until it restarts. Behind a load balancer each instance is set on its own; for a lasting change, set
log.filterin the server configuration.
API and SMART
API lists the OpenAPI documents the CDR serves for itself, one family at
a time: pick one (openEHR EHR, Query, Definition, Demographic, Admin, and the
FerroEHR extensions, or the complete surface) and read its endpoints by tag.
The family stays in the address (?family=query).
SMART reads the CDR’s SMART discovery document: the scopes it supports as parsed grants, the grant types and PKCE methods, and the document itself. Your access shows the scopes your session holds.
Configuration
Configuration in the sidebar shows the CDR’s redacted running configuration by section, each key with what it means; secrets show as their reference, never their value.
Audit log
The Audit log browses the CDR’s security audit trail (who accessed what,
with what outcome) through the IHE ITI-81 retrieval
(GET /fhir/r4/AuditEvent; see the Audit trail chapter).
Filter by principal, outcome, action, date window and patient; the filters
stay in the address, so a filtered view is shareable. The page lives in the
session, as on every listing that can show patient data.
A row opens its record: the event, who, the patient, what was done and the
outcome, and the stored FHIR R4 AuditEvent with line numbers and Copy.
A filter that matches nothing says so, with the filters named and a way to clear them.
The audit trail is an operator surface: the screen needs the CDR’s ADMIN role, and a session without it is refused in the CDR’s words. When the CDR’s local audit store is off, the screen says so.
Preferences & the theme
Your preferences (in the user menu) keeps the viewer’s display choices for you, in this browser: each one is its own cookie, read when the server draws a page, so a choice applies from the first paint and nothing is kept in browser storage. Nothing here names a patient, and nothing changes what you may do. Reset to defaults… clears them all.
Appearance
- Theme: light, dark, or the one your system uses. The user menu sets it too.
- Density: comfortable (the default) gives rows and forms room; compact fits more rows in every list.
- Reduce motion: follow the system, or always reduce.
Reading
- Language: follow the browser, or one of the languages the viewer ships
(English today; see
ui.localeunder Configuration). - First day of the week in the date pickers.
- Show a revealed identifier for 15 seconds to 2 minutes: how long a subject id stays shown after Reveal.
Keyboard
Shortcut hints, the key caps after a label: on wide screens with a keyboard (the default), on all wide screens, or never. Phones never show them. The keyboard shortcuts themselves are listed under Keyboard shortcuts in the user menu.
The dark theme
Every screen is drawn in both themes:
Operations
Running a clinical data repository in production means more than starting the binary: the database must be backed up and least-privileged, traffic must be encrypted, upgrades must be safe while the service stays up, and you need to see what the system is doing. This chapter is a production checklist (database roles, TLS, backup and point-in-time recovery, upgrades and migrations, observability, the health probes, and the management surface) drawn from how the container image and Helm chart are built to run. The operator-facing HTTP surfaces have their own page: Admin & messaging APIs.
- Database roles and least privilege
- Applying migrations
- TLS and database security
- Backup and point-in-time recovery
- Storage sizing
- Rotating the national-identifier key
- The container image and pod hardening
- Upgrades
- Observability
- The admin and messaging APIs
- Health probes
- The management surface
- The manufacturer and the deployment report
- Next
Database roles and least privilege
FerroEHR connects to an external PostgreSQL 18: a managed service or an operator-run cluster, never a chart-side sidecar, because a database holding PHI must be independently backed up and recoverable. The server carries only a connection string, ideally sourced from a secret.
The database never runs as a superuser at runtime. Two roles cover provisioning and migration:
| Role | Purpose | Used by |
|---|---|---|
| owner | owns the database | provisioning only |
ferroehr_migrator | runs the schema migrations; owns the helper functions | the migration step |
and four cover serving, split by pseudonymisation domain, the clinical record and the identity of its subject:
| Role | Reads and writes | Barred from |
|---|---|---|
ferroehr_clinical | clinical, archival tier included | party |
ferroehr_party | party, archival tier included | clinical |
ferroehr_clinical_reader | read-only over clinical | party |
ferroehr_party_reader | read-only over party | clinical |
The migrations create these roles idempotently, apply the per-schema grants,
and revoke every other domain explicitly in both directions, and revoke the
ability to create objects in the public schema. All four are NOINHERIT and
none is a member of another, so a boundary cannot be crossed by picking up a
membership. GDPR Art. 4(5) defines pseudonymisation as processing where
attribution to a person needs additional information “kept separately and
subject to technical and organisational measures”, and Art. 32(1)(a) names it a
security measure for health data
(https://eur-lex.europa.eu/eli/reg/2016/679/oj); EDPB Guidelines 01/2025
require that separation to hold against internal actors, operators with
database access included.
Each serving role holds SELECT/INSERT/UPDATE/DELETE on its own domain’s
tables, EXECUTE on the ext helper functions, and MAINTAIN on its store’s
partitioned tables (and ehr, for ferroehr_clinical), and nothing else: it is not
a superuser, does not bypass row-level security, and cannot create, alter or
drop a table, index, schema or role. On the audit trail it is narrower still:
it may record an event and stamp it forwarded, and it holds no privilege that
can rewrite or remove one (see Audit).
MAINTAIN is there so the server can keep those tables’ planner statistics
(see Planner statistics of the partitioned tables).
It also allows VACUUM, CLUSTER, REINDEX and LOCK TABLE on exactly
those tables. The role can already write every row of them, so what it adds
is the locks and index rebuilds those commands take. The reader roles do not
hold it.
Turning the schema split into a role split
The schema separation is unconditional: the server always reads and writes
parties in party, whatever it authenticates as, and each of the three pools
carries only its own schema on its search_path. The role separation is a
deployment choice, and it is one configuration table per domain:
[database.party]
url = "postgres://ferroehr_party:***@pg:5432/ferroehr"
(or url_file, for a mounted secret). With a domain’s url set the server
opens that pool on that credential, and a flaw that reaches one of them reaches
one domain. Left unset, the domain uses [database].url and the separation is
schema-only. Set both domains and no credential the server uses can join a
party to its EHR in SQL; the crossing happens in the application, over
two connections, and is recorded as an access event (see Security → Resolving
across the boundary).
A DSN that names another host moves the domain to a database or cluster of its own, which is the separation a schema cannot make: a base backup, WAL archiving and physical replication carry every schema of a database together (PostgreSQL 18, Backup and Restore).
Two boot checks make the posture honest. Two domains configured on different
DSNs that authenticate as the same database role are refused — a separation
that exists only in the configuration reads as one that holds, which is worse
than none. And a domain role that does not exist is a warning under
deployment.profile = "sandbox" and a refusal under production: absent roles
mean absent grants, and the boundary check would otherwise pass by having
nothing to measure.
Which credential prepares the schema
None of the domain credentials. Preparing a database spans every schema in
it at once: the DDL of each resident migration set under [database] migrations = "apply",
and their _sqlx_migrations bookkeeping tables under "verify" — a read, but a
read across the whole database. Each runtime role holds exactly one domain, so
none can do it, and verify is not the exception: a role that is a member of
ferroehr_clinical and nothing else is refused on the very first set: it
cannot read the ext, party or audit bookkeeping.
So the credential that prepares the schema is named separately, and the server uses it for that one boot step:
[database]
url = "postgres://ferroehr_clinical:***@pg:5432/ferroehr"
migrate_url = "postgres://ferroehr_migrator:***@pg:5432/ferroehr"
[database.party]
url = "postgres://ferroehr_party:***@pg:5432/ferroehr"
migrate_url prepares every domain that reaches the same DATABASE it does,
which is all of them in the posture above: three credentials, one database. A
domain whose DSN reaches a DIFFERENT database is prepared there on that
database’s own migrator, [database.<domain>] migrate_url, because migrate_url names one database and a relocated domain is not in it; unset, it falls back to the domain's own DSN, which a DML-only role cannot use. Which case a domain is in is read from the server itself (pg_control_system()andcurrent_database()`), never from the DSN text — two
DSNs that differ only in their credential reach the same database.
(or migrate_url_file, for a mounted secret). The connection is opened for
preparation and closed again: no pool is held on it, and no request is ever
served through it. Left unset it falls back to url, which is exactly what a
single-credential deployment has always run — its behaviour is unchanged by
this key existing.
A credential that cannot read a set is told which schema and which role, so the fix is visible from the message:
database role `app_ehr` cannot read the migration state of schema
`ext`: … point `[database] migrate_url` (or `migrate_url_file`) at the credential
that prepares the schema — unset, it falls back to `[database] url` — and, for a
domain in a database of its own, `[database.<domain>]` migrate_url` at that
database's migration credential
Either way the server refuses to boot when the grants themselves are wrong:
a self-check enumerates every table, view, sequence and function in each
domain and fails, naming the role and the object, if either runtime role can
read across the boundary. ferroehr db verify runs the same check. When the
four roles do not exist at all (the development, compose and test-harness case,
where the migrator holds no CREATEROLE) the check warns rather than inventing
a failure — under deployment.profile = "production" it refuses, because absent
roles mean absent grants and there is then nothing to measure.
On Kubernetes the same choice is chart values, mounted as files the same way the clinical DSN is, so no credential enters the pod’s environment:
database:
existingSecret: ferroehr-db # postgres://ferroehr_clinical:…
party:
existingSecret: ferroehr-db-party # postgres://ferroehr_party:…
audit:
existingSecret: ferroehr-db-audit # the audit repository's own DSN
migrateExistingSecret: ferroehr-db-migrator # postgres://ferroehr_migrator:…
Leave a domain’s block unset and that pool uses the shared DSN, which is the schema-only posture.
Provisioning the four roles is yours in both cases. The migrations create them
only when the migrator holds CREATEROLE and skip them with a NOTICE
otherwise, so on a managed database — where the migrator usually does not —
create them before the first deploy:
CREATE ROLE ferroehr_clinical NOLOGIN NOINHERIT;
CREATE ROLE ferroehr_party NOLOGIN NOINHERIT;
CREATE ROLE ferroehr_clinical_reader NOLOGIN NOINHERIT;
CREATE ROLE ferroehr_party_reader NOLOGIN NOINHERIT;
-- The released grant files still name this role, so a first install needs it
-- while they apply. The last migration drops it again where it may; a migrator
-- without CREATEROLE may not, so drop it yourself after the first boot.
CREATE ROLE ferroehr_linkage NOLOGIN NOINHERIT;
then give each login role membership of exactly one of the first four.
ferroehr db verify tells you whether the boundary holds afterwards.
The local Audit Record Repository is written on its own pool
([database.audit]), and the audit schema is granted to ferroehr_clinical
(record an event, stamp it forwarded, run the retention reaper, verify the
chain) and to ferroehr_clinical_reader (read it and verify the chain). A
clinical login role that is a member of ferroehr_clinical alone writes its own
access log; no extra membership is needed. The audit trail is not a
pseudonymisation domain, so this grant adds no reach into party.
The compose stacks create the four domain roles, and ferroehr_linkage for the
released grant files, and grant the clinical and party domains to
the single dev login role, which owns the database. That
demonstrates the schema separation and exercises the boot self-check; it is
deliberately not the credential separation, because one container with one
DSN cannot show that half honestly.
Which of these postures is exercised, and which is not
A recommendation nothing runs is a guess. This is what the suites cover.
Exercised against a real PostgreSQL 18:
- Two runtime credentials serving both domains through the assembled router,
each of the server’s own pools refused every relation of the other domain
(
app/ferroehr-rest/tests/it/credential_separation.rs), and the single-DSN fallback still serving both. - All four domain roles refused every relation in the domain they do not own,
enumerated from
information_schemarather than from a written list (app/ferroehr/tests/it/pseudonymisation_boundary.rs). - The boot sequence on separated credentials with
[database] migrate_url, under bothverifyandapply, and the single-DSN fallback under both (app/ferroehr/tests/it/schema_preparation_credential.rs). - The party domain relocated to a second database, prepared and verified
there on
[database.party], and the refusal when the domain’s two DSNs reach different databases (app/ferroehr/tests/it/relocated_domain_preparation.rs). - The chart’s production overlay on three PostgreSQL clusters, one per domain,
prepared by the migration Job and booting under
production(scripts/deploy-probe-k8s.sh --production-only, probes P-K8S-PROD-BOOT and P-K8S-PROD-SHARED). - The compose stack’s grant boundary read back from the running database by
scripts/deploy-probe.sh, which also records that the stack is single-credential by design.
Not exercised by anything, and stated rather than left to inference:
- A real deployment on separated DSNs: a container booting with the DSN
files mounted, and the chart wiring them through
database.party.existingSecretanddatabase.migrateExistingSecret. What is covered is the in-process half. - Role provisioning on a managed database where the migrator holds no
CREATEROLEand the roles are created by the manual step above.
Which posture you actually get depends on [database] migrations, because the server’s
embedded migrations are DDL: a self-migrating deployment necessarily runs as a
role that can execute DDL. The single-container quickstart takes that path: its
DSN authenticates as a non-superuser role that owns the database and is a member
of ferroehr_migrator, ferroehr_clinical and ferroehr_party.
Applying migrations
[database] migrations decides who runs the schema:
apply(the default): the server applies its embedded migrations at boot. This is what makes a fresh checkout and an empty database work with no configuration at all, and it is the right choice for development and for small single-tenant deployments. The runtime DSN must be a member offerroehr_migrator, so the serving process holds DDL rights for its whole life. Least isolation.verify: the server issues no DDL at all. At boot it checks that the database carries exactly this build’s migrations and refuses to start otherwise, naming the schema and what is wrong with it. The pools can then hold no schema rights at all, which is the least-privilege production posture: an application-level SQL flaw can reach rows, never the schema. The check itself still reads every schema’s bookkeeping, so it runs on[database] migrate_url— see which credential prepares the schema, and set that key wheneverdatabase.urlis a role that holds one domain.
Migrations are append-only, so upgrading an existing database in place is the supported path and always has been the one your data takes. A released migration is never edited: sqlx records a checksum of each applied file and refuses a database whose recorded checksum no longer matches, so a corrected schema arrives as a new migration rather than as a change to an old one. A CI guard fails any pull request that modifies, renames or deletes a migration the base branch already carries.
With verify, something else has to run the migrations first. Use the binary’s
own subcommand under the migrator DSN: a CI/CD stage, a one-shot job, or the
Helm chart’s migrations.job.enabled pre-install/pre-upgrade hook Job, which
Helm waits on so a failed migration fails the release (it takes its own
migrations.job.existingSecret holding the migrator DSN, deliberately a
different credential from the runtime one, and rendering fails without it):
FERROEHR__DATABASE__URL='postgres://ferroehr_migrator:***@pg:5432/ferroehr' \
ferroehr db migrate # applies; exits when done
FERROEHR__DATABASE__URL='postgres://ferroehr_clinical:***@pg:5432/ferroehr' \
FERROEHR__DATABASE__MIGRATE_URL='postgres://ferroehr_migrator:***@pg:5432/ferroehr' \
ferroehr db verify # read-only check; exit 0 iff the schema is current
db verify splits the same way the boot sequence does, and for the same
reason: the schema state is read on migrate_url, while the pseudonymisation
boundary is measured on the runtime DSNs — asking the migrator credential
whether it can reach every domain would answer yes by design and tell you
nothing about the roles that serve requests.
Gate the rollout on the migration step so two server versions never race the
schema. Note the difference in failure shape: a verify server refuses to boot
against an unmigrated database (loud, immediate), while an apply server that
loses its schema later stays up and reports readiness DOWN, the warning
below.
Warning
Migration is a boot step, and nothing re-runs it. A running instance whose database is replaced, wiped, or reachable-but-empty does not migrate. It reports
{"state":"down","phase":"serving","indicators":[{"name":"db","state":"up"}, {"name":"migrations","state":"down"}]}on
/health/readiness(503), with the detailcore schema tables missing (migrations not applied)on/management/health, leaves the load balancer’s rotation, and keeps passing liveness (correctly, since the process is healthy) so nothing restarts it. Under Kubernetes that is a Deployment sitting at0/Nready with no error after the first one.The readiness check re-tests the schema on every probe, so recovery does not require a restart of that instance: it goes back to
UPwithin one probe interval of the schema existing, whoever created it. What needs a restart is the case where the only thing that would migrate is the instance itself: thenkubectl rollout restart deploy/ferroehr(or a migration job) is the remedy.For the out-of-band flow this means: the migration step must complete before the first instance starts, or that instance sits unready until the schema appears, harmless but confusing, and it delays the rollout rather than failing it. Gate the rollout on the migration job.
Planner statistics of the partitioned tables
node, version and vo_attestation are partitioned by storage tier in both
stores, and PostgreSQL estimates a join over them from the statistics of the
partitioned table itself. Autovacuum analyzes the partitions and never the
partitioned table (PostgreSQL 18, §24.1.3 Updating Planner Statistics), so
FerroEHR runs ANALYZE ONLY on the partitioned tables itself, and on ehr
while autovacuum has never analyzed it:
- after it applies the migrations, as the migration credential;
- after
load_ehrsloads an archive; - at boot and then every hour, as each store’s serving role.
Without these statistics an AQL CONTAINS can read every COMPOSITION’s
nodes. ANALYZE needs the MAINTAIN privilege on the table, and the
migrations grant it to ferroehr_clinical on clinical.node,
clinical.version, clinical.vo_attestation and clinical.ehr, and to
ferroehr_party on the three partitioned tables of party. When a serving
role still lacks it, for example because the roles were absent when the
migrations ran, the hourly refresh logs a warning naming the tables it could
not analyze. Grant the role MAINTAIN on those tables, or run the same
ANALYZE ONLY from a scheduled job as the migration role.
Recovering a partially wiped database
A wipe that removes some of the server’s schemas is not a fresh start, and the server cannot tell it from one.
The server owns four schemas: ext, clinical, party and audit.
A fresh start drops all four. Each domain’s cold archival tier is a partition
of the relation it archives, inside that domain’s own schema, so a
DROP SCHEMA clinical CASCADE takes the archived rows with the live ones. There
is no separate mirror schema left to survive a wipe of the tier it mirrors.
Dropping some of the schemas is not a supported reset, because they are not
independent. ext holds the helper functions the clinical and party
relations depend on, so DROP SCHEMA ext CASCADE drops them with it, and those
sets, still recorded as applied, never recreate them. The next boot rebuilds
the dropped schemas, and its
migration check reads each set’s bookkeeping only, so it passes over a database
that has lost those guarantees.
A database written by a release before the storage rewrite is refused outright:
this database predates the storage rewrite: schema `ehr` carries its own
migration bookkeeping, which only a release before the rewrite wrote.
The new migration sets replace the old ones rather than upgrading them, so there is no in-place path. Dump anything worth keeping, recreate the database, and start the server against it.
Tip
When you wipe a FerroEHR database deliberately, drop the database, not a schema.
DROP DATABASEcannot leave half a repository behind, and it is the only wipe with no partial-state failure mode.ferroehr db erasedrops all four schemas of a database in one transaction, for taking an instance out of service (Decommissioning).
Upgrading past the linkage domain
Releases before 5.6.0 ran a third storage domain, linkage, with its own
schema, role (ferroehr_linkage), [storage.linkage] and
[storage.migrate.linkage] configuration, pool and backup job. It held no
relation once which EHR belongs to which subject became the EHR’s own
EHR_STATUS.subject, and this release removes it.
Before you upgrade, delete [storage.linkage] and [storage.migrate.linkage]
from the configuration, and the linkage blocks under database and backup
from the chart values: the server now refuses both tables as unknown keys, and
the chart schema refuses both blocks.
On a co-located database (no [database.<domain>] naming another database) the
first boot does the rest. Migration audit/0021_drop_linkage_domain.sql drops
the linkage schema, revokes what the role held on ext, drops the role when
nothing else in the cluster names it, and drops the btree_gist extension.
When it cannot drop the role or the extension, it says so in a NOTICE and the
boot carries on.
The migration runs in the database that holds the audit domain, so it does not
reach every layout. Run the following by hand, as a superuser or a member of
ferroehr_linkage, when either applies:
- the linkage domain lived in a database of its own, or
[database.audit]names a database other than the one that heldlinkage; - the cluster holds more than one FerroEHR database, which keeps the role named in the others.
In every such database:
DROP SCHEMA IF EXISTS linkage CASCADE;
REVOKE ALL ON SCHEMA ext FROM ferroehr_linkage;
REVOKE ALL ON ALL FUNCTIONS IN SCHEMA ext FROM ferroehr_linkage;
ALTER DEFAULT PRIVILEGES IN SCHEMA ext REVOKE EXECUTE ON FUNCTIONS FROM ferroehr_linkage;
DROP OWNED BY ferroehr_linkage;
DROP EXTENSION IF EXISTS btree_gist;
Then, once per cluster:
DROP ROLE ferroehr_linkage;
A database that held only the linkage domain holds nothing the server reads
any more; drop it with DROP DATABASE once you no longer need it. Drop the
login roles that were members of ferroehr_linkage as well.
TLS and database security
These are database-side settings that belong to whoever provisions PostgreSQL; the deployment references them but cannot enforce them:
- TLS in transit. Require
hostsslon the server and put?sslmode=verify-fullin the DSN so the client verifies the server certificate. - pgaudit. Run pgaudit as the database-layer complement to the openEHR
audit and the ATNA trail (for example
pgaudit.log = 'ddl, role, connection'globally plus object-level audit on the PHI tables) and ship the audit log to an immutable store with long (roughly six-year) retention. - Encryption at rest. Encrypt at the volume or disk layer. Do not encrypt the stored clinical JSON with pgcrypto: it would break AQL’s ability to query inside the data.
Backup and point-in-time recovery
Enable WAL archiving and point-in-time recovery from day one (pgBackRest or a
managed PITR), because a CDR’s data is not reconstructible. Clinical and audit
tables are never UNLOGGED. Test your restore, not just your backup.
Dump each domain separately
A logical backup is where the two pseudonymisation domains are easiest to
re-join by accident. One pg_dump of the whole database produces a single file
holding the pseudonymised clinical record beside the identities of its
subjects, and whoever can read that file can re-identify every record in it,
which is the separation the schema split and the database roles exist to
maintain. Two domains, two dumps, into targets with different access
control.
How many dumps, by DSN layout. The number of dumps follows the domains, not
the databases: co-located, the three domains share one database and are dumped
--schema by --schema as below; relocated, each database is dumped for the
domains that live in it. What never changes is that the clinical record and the
identities land in two different artefacts with two different audiences. ferroehr config check prints the resolved layout, which is the
list a backup runbook is written from. The audit repository travels with the
clinical dump while it shares that database (--schema=audit below) and needs a
dump of its own once [database.audit] names another one. On Kubernetes that
third dump is not yours to schedule: the chart renders a backup.audit
CronJob as soon as database.audit carries a Secret of its own, and drops
--schema=audit from the clinical job in the same render.
# The clinical domain
pg_dump --dbname="<span class="katex"><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8444em;vertical-align:-0.15em;"></span><span class="mord mathnormal" style="margin-right:0.07153em;">C</span><span class="mord mathnormal">L</span><span class="mord mathnormal" style="margin-right:0.07847em;">I</span><span class="mord mathnormal" style="margin-right:0.10903em;">N</span><span class="mord mathnormal" style="margin-right:0.07847em;">I</span><span class="mord mathnormal" style="margin-right:0.07153em;">C</span><span class="mord mathnormal">A</span><span class="mord"><span class="mord mathnormal">L</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3283em;"><span style="top:-2.55em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathnormal mtight" style="margin-right:0.02778em;">D</span></span></span></span><span class="vlist-s"></span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mord mathnormal" style="margin-right:0.10903em;">SN</span><span class="mord">"</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">−</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:0.8889em;vertical-align:-0.1944em;"></span><span class="mord">−</span><span class="mord mathnormal" style="margin-right:0.10764em;">f</span><span class="mord mathnormal" style="margin-right:0.02778em;">or</span><span class="mord mathnormal">ma</span><span class="mord mathnormal">t</span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:0.6984em;vertical-align:-0.0833em;"></span><span class="mord mathnormal">c</span><span class="mord mathnormal">u</span><span class="mord mathnormal">s</span><span class="mord mathnormal">t</span><span class="mord mathnormal">o</span><span class="mord mathnormal">m</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">−</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:0.6667em;vertical-align:-0.0833em;"></span><span class="mord">−</span><span class="mord mathnormal">n</span><span class="mord mathnormal">o</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">−</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:0.6667em;vertical-align:-0.0833em;"></span><span class="mord mathnormal">o</span><span class="mord mathnormal" style="margin-right:0.02691em;">w</span><span class="mord mathnormal">n</span><span class="mord mathnormal" style="margin-right:0.02778em;">er</span><span class="mspace"> </span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">−</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:0.7778em;vertical-align:-0.0833em;"></span><span class="mord">−</span><span class="mord mathnormal">sc</span><span class="mord mathnormal">h</span><span class="mord mathnormal">e</span><span class="mord mathnormal">ma</span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:0.7778em;vertical-align:-0.0833em;"></span><span class="mord mathnormal">c</span><span class="mord mathnormal" style="margin-right:0.01968em;">l</span><span class="mord mathnormal">ini</span><span class="mord mathnormal">c</span><span class="mord mathnormal">a</span><span class="mord mathnormal" style="margin-right:0.01968em;">l</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">−</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:0.7778em;vertical-align:-0.0833em;"></span><span class="mord">−</span><span class="mord mathnormal">sc</span><span class="mord mathnormal">h</span><span class="mord mathnormal">e</span><span class="mord mathnormal">ma</span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:0.6984em;vertical-align:-0.0833em;"></span><span class="mord mathnormal">e</span><span class="mord mathnormal">x</span><span class="mord mathnormal">t</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">−</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:0.7778em;vertical-align:-0.0833em;"></span><span class="mord">−</span><span class="mord mathnormal">sc</span><span class="mord mathnormal">h</span><span class="mord mathnormal">e</span><span class="mord mathnormal">ma</span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:0.7778em;vertical-align:-0.0833em;"></span><span class="mord mathnormal">a</span><span class="mord mathnormal">u</span><span class="mord mathnormal">d</span><span class="mord mathnormal">i</span><span class="mord mathnormal">t</span><span class="mspace"> </span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">−</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:0.8889em;vertical-align:-0.1944em;"></span><span class="mord">−</span><span class="mord mathnormal" style="margin-right:0.10764em;">f</span><span class="mord mathnormal">i</span><span class="mord mathnormal" style="margin-right:0.01968em;">l</span><span class="mord mathnormal">e</span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord">/</span><span class="mord mathnormal">ba</span><span class="mord mathnormal">c</span><span class="mord mathnormal" style="margin-right:0.03148em;">k</span><span class="mord mathnormal">u</span><span class="mord mathnormal">p</span><span class="mord mathnormal">s</span><span class="mord">/</span><span class="mord mathnormal">c</span><span class="mord mathnormal" style="margin-right:0.01968em;">l</span><span class="mord mathnormal">ini</span><span class="mord mathnormal">c</span><span class="mord mathnormal">a</span><span class="mord mathnormal" style="margin-right:0.01968em;">l</span><span class="mord">/</span><span class="mord mathnormal">c</span><span class="mord mathnormal" style="margin-right:0.01968em;">l</span><span class="mord mathnormal">ini</span><span class="mord mathnormal">c</span><span class="mord mathnormal">a</span><span class="mord mathnormal" style="margin-right:0.01968em;">l</span><span class="mord">−</span></span></span></span>(date -u +%Y%m%dT%H%M%SZ).dump
# The identities, into a different directory, owned by a different group
pg_dump --dbname="<span class="katex"><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8444em;vertical-align:-0.15em;"></span><span class="mord mathnormal" style="margin-right:0.13889em;">P</span><span class="mord mathnormal">A</span><span class="mord mathnormal" style="margin-right:0.13889em;">RT</span><span class="mord"><span class="mord mathnormal" style="margin-right:0.22222em;">Y</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3283em;"><span style="top:-2.55em;margin-left:-0.2222em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathnormal mtight" style="margin-right:0.02778em;">D</span></span></span></span><span class="vlist-s"></span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mord mathnormal" style="margin-right:0.10903em;">SN</span><span class="mord">"</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">−</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:0.8889em;vertical-align:-0.1944em;"></span><span class="mord">−</span><span class="mord mathnormal" style="margin-right:0.10764em;">f</span><span class="mord mathnormal" style="margin-right:0.02778em;">or</span><span class="mord mathnormal">ma</span><span class="mord mathnormal">t</span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:0.6984em;vertical-align:-0.0833em;"></span><span class="mord mathnormal">c</span><span class="mord mathnormal">u</span><span class="mord mathnormal">s</span><span class="mord mathnormal">t</span><span class="mord mathnormal">o</span><span class="mord mathnormal">m</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">−</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:0.6667em;vertical-align:-0.0833em;"></span><span class="mord">−</span><span class="mord mathnormal">n</span><span class="mord mathnormal">o</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">−</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:0.6667em;vertical-align:-0.0833em;"></span><span class="mord mathnormal">o</span><span class="mord mathnormal" style="margin-right:0.02691em;">w</span><span class="mord mathnormal">n</span><span class="mord mathnormal" style="margin-right:0.02778em;">er</span><span class="mspace"> </span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">−</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:0.7778em;vertical-align:-0.0833em;"></span><span class="mord">−</span><span class="mord mathnormal">sc</span><span class="mord mathnormal">h</span><span class="mord mathnormal">e</span><span class="mord mathnormal">ma</span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:0.8095em;vertical-align:-0.1944em;"></span><span class="mord mathnormal">p</span><span class="mord mathnormal">a</span><span class="mord mathnormal" style="margin-right:0.02778em;">r</span><span class="mord mathnormal">t</span><span class="mord mathnormal" style="margin-right:0.03588em;">y</span><span class="mspace"> </span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">−</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:0.8889em;vertical-align:-0.1944em;"></span><span class="mord">−</span><span class="mord mathnormal" style="margin-right:0.10764em;">f</span><span class="mord mathnormal">i</span><span class="mord mathnormal" style="margin-right:0.01968em;">l</span><span class="mord mathnormal">e</span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord">/</span><span class="mord mathnormal">ba</span><span class="mord mathnormal">c</span><span class="mord mathnormal" style="margin-right:0.03148em;">k</span><span class="mord mathnormal">u</span><span class="mord mathnormal">p</span><span class="mord mathnormal">s</span><span class="mord">/</span><span class="mord mathnormal">p</span><span class="mord mathnormal">a</span><span class="mord mathnormal" style="margin-right:0.02778em;">r</span><span class="mord mathnormal">t</span><span class="mord mathnormal" style="margin-right:0.03588em;">y</span><span class="mord">/</span><span class="mord mathnormal">p</span><span class="mord mathnormal">a</span><span class="mord mathnormal" style="margin-right:0.02778em;">r</span><span class="mord mathnormal">t</span><span class="mord mathnormal" style="margin-right:0.03588em;">y</span><span class="mord">−</span></span></span></span>(date -u +%Y%m%dT%H%M%SZ).dump
# The audit trail, ONLY when [database.audit] names a database of its own —
# co-located it is in the clinical dump above, and dumping it twice is a second
# copy of who read what
pg_dump --dbname="<span class="katex"><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8444em;vertical-align:-0.15em;"></span><span class="mord mathnormal">A</span><span class="mord mathnormal" style="margin-right:0.10903em;">U</span><span class="mord mathnormal" style="margin-right:0.02778em;">D</span><span class="mord mathnormal" style="margin-right:0.07847em;">I</span><span class="mord"><span class="mord mathnormal" style="margin-right:0.13889em;">T</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3283em;"><span style="top:-2.55em;margin-left:-0.1389em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathnormal mtight" style="margin-right:0.02778em;">D</span></span></span></span><span class="vlist-s"></span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mord mathnormal" style="margin-right:0.10903em;">SN</span><span class="mord">"</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">−</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:0.8889em;vertical-align:-0.1944em;"></span><span class="mord">−</span><span class="mord mathnormal" style="margin-right:0.10764em;">f</span><span class="mord mathnormal" style="margin-right:0.02778em;">or</span><span class="mord mathnormal">ma</span><span class="mord mathnormal">t</span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:0.6984em;vertical-align:-0.0833em;"></span><span class="mord mathnormal">c</span><span class="mord mathnormal">u</span><span class="mord mathnormal">s</span><span class="mord mathnormal">t</span><span class="mord mathnormal">o</span><span class="mord mathnormal">m</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">−</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:0.6667em;vertical-align:-0.0833em;"></span><span class="mord">−</span><span class="mord mathnormal">n</span><span class="mord mathnormal">o</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">−</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:0.6667em;vertical-align:-0.0833em;"></span><span class="mord mathnormal">o</span><span class="mord mathnormal" style="margin-right:0.02691em;">w</span><span class="mord mathnormal">n</span><span class="mord mathnormal" style="margin-right:0.02778em;">er</span><span class="mspace"> </span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">−</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:0.7778em;vertical-align:-0.0833em;"></span><span class="mord">−</span><span class="mord mathnormal">sc</span><span class="mord mathnormal">h</span><span class="mord mathnormal">e</span><span class="mord mathnormal">ma</span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:0.7778em;vertical-align:-0.0833em;"></span><span class="mord mathnormal">a</span><span class="mord mathnormal">u</span><span class="mord mathnormal">d</span><span class="mord mathnormal">i</span><span class="mord mathnormal">t</span><span class="mspace"> </span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">−</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:0.8889em;vertical-align:-0.1944em;"></span><span class="mord">−</span><span class="mord mathnormal" style="margin-right:0.10764em;">f</span><span class="mord mathnormal">i</span><span class="mord mathnormal" style="margin-right:0.01968em;">l</span><span class="mord mathnormal">e</span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord">/</span><span class="mord mathnormal">ba</span><span class="mord mathnormal">c</span><span class="mord mathnormal" style="margin-right:0.03148em;">k</span><span class="mord mathnormal">u</span><span class="mord mathnormal">p</span><span class="mord mathnormal">s</span><span class="mord">/</span><span class="mord mathnormal">a</span><span class="mord mathnormal">u</span><span class="mord mathnormal">d</span><span class="mord mathnormal">i</span><span class="mord mathnormal">t</span><span class="mord">/</span><span class="mord mathnormal">a</span><span class="mord mathnormal">u</span><span class="mord mathnormal">d</span><span class="mord mathnormal">i</span><span class="mord mathnormal">t</span><span class="mord">−</span></span></span></span>(date -u +%Y%m%dT%H%M%SZ).dump
Which EHR belongs to which subject is the EHR’s own EHR_STATUS.subject, so
it travels in the clinical dump.
The clinical and party examples ship. In Compose they are the opt-in backup
profile:
docker compose --profile backup run --rm ferroehr-backup-clinical
docker compose --profile backup run --rm ferroehr-backup-party
Set FERROEHR_BACKUP_CLINICAL_DIR and FERROEHR_BACKUP_PARTY_DIR to the two
targets; they default to ./backups/clinical and ./backups/party.
Run it as yourself — FERROEHR_BACKUP_USER="$(id -u):$(id -g)" — and the dump
lands owned by you. Left unset, the job runs as root inside the container and
keeps one capability, DAC_OVERRIDE, because that is what writing a directory
it does not own actually requires: the container drops every other capability,
and without this one uid 0 is just another user against your directory’s
permission bits. Everything else stays off — no privilege escalation, read-only
root filesystem.
Under Kubernetes the chart renders one CronJob per domain — see the chart’s
backup values.
Warning
A backup credential is not the application role. Each domain’s runtime role is revoked from the other domains, which is the pseudonymisation boundary doing its job — so a dump taken through one of them is silently partial rather than refused. Give each backup job its own role, read-only on its own domain and nothing else.
Two further properties are yours to arrange, because no configuration file can enforce them: the two targets carry different access control, and the credential each job uses reaches one domain. Give the demographic job the demographic DSN once you run two (Deploying); with a single credential you have separated the artefacts but not the authority to produce them.
Note
Point-in-time recovery stays instance-wide. All the domains live in one cluster, so a WAL archive covers them together and a recovery target restores them together. The separation this section is about is the logical dump.
Restoring
A restore is not finished when pg_restore exits. The grants are the
boundary — a database whose roles came back wrong is a database where the
clinical role can read the identities — so re-apply the role grants before the
server starts, then let the server check them:
createdb ferroehr_restored
pg_restore --dbname=ferroehr_restored --no-owner clinical-….dump
pg_restore --dbname=ferroehr_restored --no-owner demographic-….dump
# then, before anything serves traffic:
ferroehr db verify
Restore the clinical dump first. It is the one carrying the ext schema, whose
helper functions the other domains’ relations depend on.
ferroehr db verify issues no DDL. It checks that the database carries exactly
this build’s migrations, all four sets, so a restore that skipped a domain
is refused by name, and that no runtime role can read across the domain
boundary, exiting non-zero when either is untrue. It is the same check the
server runs at boot, which is why a server pointed at a badly restored database
refuses to start rather than serving from it.
What it does not read is a constraint. pg_restore ignores a failed
statement unless you pass --exit-on-error, so a table can come back with its
rows and without a key while every check above stays green. Read the restore’s
own output.
Restoring only one domain is a supported outcome, not a mistake: a demographic
dump restored on its own gives a database with identities and no clinical
record, which is what a rehearsal of the identity domain’s recovery looks like.
Such a database is not one the server will serve from — ferroehr db verify
refuses it for the domains that are missing, which is the correct answer for a
rehearsal target.
Storage sizing
The database grows with two things: the composition versions you commit and the requests the access log records. Size a deployment from the figures below, then check it against your own data with the query at the end of this section. No openEHR specification governs storage layout or sizing: these are measurements of our own design.
What the figures were measured on
FerroEHR 5.6.0-rc5 from the quickstart (docker-compose.yml with
FERROEHR_EHR_INDEX=local and the usage report off), PostgreSQL 18.6 with
shared_buffers=1GB, max_wal_size=4GB, wal_compression=lz4 and default
autovacuum, in a Podman VM with 8 CPUs and 16 gibibytes of memory. A client with 8 workers ran
each workload over ITS-REST in five phases, and the size of every relation
(pg_relation_size, the TOAST relation’s pg_total_relation_size and
pg_indexes_size) and the WAL position (pg_current_wal_lsn()) were read
after each phase:
- create 1 000 EHRs;
- commit 20 000 compositions, 20 per EHR;
- update 5 000 of them (
PUTwithIf-Match); - delete 2 000 versions;
- read 40 000 compositions.
The compositions are the vendored CKM examples for the vital signs template (10 769 bytes of canonical JSON without whitespace, 43 RM nodes) and, in a smaller run of 200 EHRs and 2 000 compositions, the International Patient Summary (87 133 bytes, 395 RM nodes). The vital signs workload ran twice: once on fresh volumes and once appending to the same database. The two runs grew the database by 608.0 MiB and 607.8 MiB, so the growth is linear in the work and does not depend on how much the database already holds.
The node rows, the clinical totals and the WAL below were measured again after
a node row below the root started to keep its archetype header, language and
encoding in columns: the same driver, PostgreSQL image and settings, against a
server built from the source, with 500 EHRs and 5 000 vital signs
compositions and 100 EHRs and 500 International Patient Summaries. That change
took a vital signs version from 21.6 KB to 17.1 KB and an International
Patient Summary from 159 KB to 131 KB. They were measured once more, with
the same driver and settings (300 EHRs, 3 000 vital signs compositions, 750
updates, 300 deletes and 6 000 reads; 100 EHRs and 500 International Patient
Summaries), after storage generation 5 let a node row store a plain
DV_DATE_TIME origin or time as its value string, leave out a bare
PARTY_SELF subject, and leave the root’s uid and archetype header with the
version row: a vital signs version went from 17.1 KB to 15.5 KB and an
International Patient Summary from 131 KB to 128 KB.
Measuring your own figures
scripts/perf/storage-sizing.sh in the repository runs the same phases
against a running FerroEHR and reports the bytes per create, update, delete
and read, per relation, and the node rows with their heap and index bytes per
row. Start the server on a fresh database, so the run is all the database
holds, then:
scripts/perf/storage-sizing.sh run sizing-out
It reads the sizes through psql as the database superuser, by default in the
quickstart’s ferroehr-postgres container (SIZING_PSQL names another
command), and writes sizing-out/report.json.
SIZING_TEMPLATE=international-patient-summary measures the larger
composition, and SIZING_EHRS, SIZING_PER_EHR, SIZING_UPDATES,
SIZING_DELETES and SIZING_READS set the counts; the script’s header lists
every setting. With the defaults (300 EHRs, 3 000 vital signs creates, 750
updates, 300 deletes and 6 000 reads) it reproduces the figures below within
a few percent. Its WAL figures include the full-page images each phase’s
CHECKPOINT forces, so they are higher than a steady state.
Bytes per composition version
| Per committed version | Vital signs (10.8 KB of JSON) | International Patient Summary (87 KB of JSON) |
|---|---|---|
| Node rows | 43 rows of 201 B heap and 83 B of index, 12.2 KB | 395 rows of 199 B heap and 92 B of index, 115 KB |
version row, with the body compressed (lz4) | 2.5 KB, in the row | 10.9 KB, in TOAST |
commit_audit, contribution and vo_head | 0.7 KB | 0.7 KB |
| Clinical storage per create or update | 14.6 to 15.5 KB (1.4 × the JSON) | 128 to 138 KB (1.5 to 1.6 × the JSON) |
| A delete (a version with no body and no nodes) | 1.4 KB | 2.5 KB |
| WAL written per create | 30 KB | 242 KB |
The node rows hold about 80 % of the clinical bytes, so the size of a version
follows the number of RM nodes in the composition more closely than the
length of its JSON. An update writes a complete version again (its body and
all its node rows), so it costs the same as a create. A new EHR takes about
8 KB, its EHR_STATUS version and the audit record included.
Bytes per audit record
With [audit.store] on (the default) every audited request writes one record,
reads included. A record of a composition read takes about 1.0 KB in
audit.audit_event (heap and indexes, no TOAST), and a record of a
composition create about 1.05 KB. The request id and the version uid are
searched through the record’s own columns, so a record adds no row to
audit.audit_search_token beyond the first record about a patient or a
resource kind. For a read-heavy workload the access log can outgrow the
clinical data: 40 000 composition reads add about 38 MiB, as much as about
1 800 new vital signs versions.
A sizing estimate
Add up, for the period you size for:
- the composition versions you expect, times the bytes per version of your own templates (15 KB for one like vital signs, 0.3 to 0.4 KB per RM node as a first estimate);
- the audited requests, times about 1.0 KB, for as long as the audit retention keeps them;
pg_wal, up tomax_wal_size(below);- your backups and WAL archive, which this database does not hold.
One million vital-signs-sized versions take about 15 GB, and ten million audited requests about 10 GB.
Audit retention
[audit.store] retention = 0, the default, keeps every audit record
forever, so the access log grows with every request for the life of the
database. A horizon (retention, or retention in calendar years)
makes the reaper delete each record on or after its end date, hourly, and the
audit_event table then levels off at roughly the horizon times the request
rate. The space of a deleted row is not returned to the operating system:
VACUUM marks it free and later records reuse it (PostgreSQL 18 docs,
Routine Vacuuming, Recovering Disk Space).
The reaper also deletes the search tokens no remaining record names. The
horizon is a legal choice with floors per jurisdiction, set out on the audit page.
pg_wal
PostgreSQL keeps the write-ahead log of the last checkpoints in pg_wal, up
to about max_wal_size (4 GB in the quickstart), on the same volume as the
data unless you move it. max_wal_size is a soft limit: a failing
archive_command, wal_keep_size or a replication slot whose standby falls
behind holds more (PostgreSQL 18 docs,
WAL Configuration).
Budget it as a fixed amount beside the database, not as growth. A commit
writes about twice its stored size to the WAL (30 KB for a 15.5 KB vital signs
version), which is what a WAL archive for point-in-time recovery receives.
Vacuum and fillfactor
The clinical write path is insert-only: a composition update or delete adds a
version and never updates or deletes an existing version or node row. After
the measured runs pgstattuple_approx found no dead tuples in
clinical.node_hot, clinical.version_hot or audit.audit_event, and under
1 % free space in node_hot. Changing autovacuum or fillfactor settings does
not change the volume. Autovacuum still has to run, for the planner
statistics and to freeze old rows before transaction ID wraparound.
Index maintenance
The node table’s primary key, clinical.node_hot_pkey, takes inserts from
concurrent commits at many places in the index, so its pages split and stay
partly empty. After the measured runs its leaves were 72 % full, and a rebuild
took it from 186 MiB to 149 MiB (20 % smaller) with 90 % full leaves. Rebuild
it after heavy write periods, without blocking reads or writes:
-- leaf density before; pgstattuple ships with PostgreSQL
CREATE EXTENSION IF NOT EXISTS pgstattuple;
SELECT avg_leaf_density FROM pgstatindex('clinical.node_hot_pkey');
REINDEX INDEX CONCURRENTLY clinical.node_hot_pkey;
Run it as the database owner or a role holding MAINTAIN on
clinical.node_hot. REINDEX CONCURRENTLY needs room for a second copy of
the index while it runs, and it waits for every transaction older than
itself to finish, so one long-running query or an idle open transaction holds
it up (PostgreSQL 18 docs,
REINDEX, Rebuilding Indexes Concurrently).
The audit indexes on recorded_at are ascending and fill their pages without
a rebuild.
Reading the size per relation
SELECT n.nspname || '.' || c.relname AS relation,
pg_size_pretty(pg_relation_size(c.oid)) AS heap,
pg_size_pretty(COALESCE(pg_total_relation_size(NULLIF(c.reltoastrelid, 0)), 0)) AS toast,
pg_size_pretty(pg_indexes_size(c.oid)) AS indexes,
pg_size_pretty(pg_total_relation_size(c.oid)) AS total
FROM pg_class c
JOIN pg_namespace n ON n.oid = c.relnamespace
WHERE c.relkind = 'r'
AND n.nspname IN ('clinical', 'party', 'audit', 'ext')
ORDER BY pg_total_relation_size(c.oid) DESC
LIMIT 15;
Divide the growth of clinical.node_hot and clinical.version_hot between
two readings by the versions committed in between
(SELECT count(*) FROM clinical.version_hot) to get your own bytes per
version. The functions are described in PostgreSQL 18 docs,
Database Object Management Functions.
Rotating the national-identifier key
Only relevant when [privacy.identifier_protection] is on. With it on, a
national identifier of a configured scheme never sits in the versioned body:
the value lives in party.national_identifier, sealed with AES-256-GCM under a
key derived per domain from your root key, with an HMAC-SHA-256 digest beside it
so an identifier can be looked up without decrypting anything.
The root key is load-bearing. Lose it and the sealed identifiers cannot be
read back by anything, including you. Hold it the way you hold the database
credentials: in your secret manager, injected as key_file, never in the TOML
you commit.
Rotation re-encrypts; it is not an edit. Both keys have to be present while it runs, because every row is opened under the old key and sealed under the new one, and the lookup digest changes with the key too — so the rotation rewrites the digest column and every stored reference keeps pointing at the same row. The rotation has to cover retired rows as well as live ones: every party version keeps rows of its own, and an older version opens its value from a retired row.
The procedure:
- Generate the new key:
openssl rand -hex 32, or any source of 32 random bytes rendered as hex. - Take a backup and verify it restores. A rotation rewrites every row in the table; a half-finished one you cannot roll back is the failure mode here.
- Stop writes to the demographic domain, or accept that identifiers written during the rotation are sealed under whichever key that write saw. A short maintenance window is simpler than reasoning about the alternative.
- Run the rotation under the migrator role, which is the only identity with rights on the whole table.
- Swap
key_fileto the new key and restart. Verify by resolving one known identifier and reading one party back. - Destroy the old key once step 5 is verified, not before.
The same key binds the admin dump archives. A dump carries the sealed rows as ciphertext, so restoring it needs the root key the rows were sealed under. An archive dumped before a rotation holds rows sealed under the old key, so step 6 also leaves the identifiers in those archives unreadable. Keep the old key for as long as you may restore one of them.
Warning
There is no automated rotation command yet. Until there is, the rotation is a scripted job you run against the demographic database with both keys available, and this page is the procedure it has to follow. Treat the absence of a command as a reason to rehearse the rotation on a copy first.
The subkeys are derived from the root key rather than stored, so rotating the root rotates all of them together. The pseudonymisation domain is part of that derivation: a subkey derived for the clinical domain opens nothing in the party one, so the per-schema backups above are separate artefacts under separate keys even where one root key is configured.
The container image and pod hardening
The published image is distroless and non-root (shell-less, with no package
manager) and is multi-architecture (amd64 and arm64) on GHCR. It is not a
static binary: the server links glibc and libgcc_s dynamically, which is why
the base image is the cc distroless variant rather than the smaller one, and
why the runtime needs no OpenSSL, no JVM and nothing else from a package
manager.
Under Kubernetes the pod runs the Kubernetes restricted profile: non-root
uid/gid 65532, read-only root filesystem with one writable /tmp, no
privilege escalation, an empty capability bounding set, RuntimeDefault
seccomp, and no service-account token (the workload never calls the Kubernetes
API). The chart’s own gates assert that per container on every render, and the
posture read back from a running container, plus the two things the chart
cannot do for you (applying the namespace enforcement label, and narrowing the
NetworkPolicy’s ingress sources: the shipped policy narrows the ports and,
until you set networkPolicy.ingressFrom, admits every source on them; set
networkPolicy.ingressAllowAll: false, and viewer.networkPolicy.ingressAllowAll
for the viewer, to have that state refused at render instead), are covered in
Installation → The workload: security context & admission
and Namespaces, network & policy →
Ingress.
The Compose path carries a comparable floor, and one guard keeps it:
scripts/checks/compose-hardening.sh runs over every committed compose
artifact and fails on a service definition without cap_drop: [ALL] and
no-new-privileges:true, on any privileged: true, on a seccomp=unconfined
or apparmor=unconfined override, on a mounted Docker daemon socket, and on a
published port that names no host address. The compose files go further than
the guard checks (capabilities are added back one at a time only where an
entrypoint provably needs them, file-descriptor limits are bounded, ports
default to the loopback interface, and most services run a read-only root
filesystem) but those extras are conventions, not enforced properties, so
check them when you adapt a file.
Two services in the quickstart file deliberately do not run read-only, and each
says why in place. The S3 gateway writes its volume store; the server cannot,
because Compose refuses an inline config in a read-only service and that
inline config is what makes the file standalone. A deployment that mounts its
configuration from a file instead can add read_only: true and a tmpfs at
/tmp.
What the host owes, and we cannot enforce
Four controls belong to whoever runs the daemon. They are stated here because a container hardening story that ignores them is misleading: the strongest pod security context in the world sits on top of these.
Keep the host kernel and Docker Engine current. A container is a kernel namespace, not a virtual machine: a kernel privilege-escalation bug is a container escape, and every runtime hardening above assumes the kernel enforcing it is patched. Track your distribution’s kernel updates and the Docker Engine release notes with the same urgency you would give a public-facing service.
Prefer rootless mode. Running the daemon as a non-root user means a container
escape lands as an unprivileged user rather than as root on the host
(https://docs.docker.com/engine/security/rootless/). The images here need no
privileged operation, no host networking, and no daemon socket, so nothing in this
deployment prevents rootless: the constraints are usually the host’s (cgroup v2,
newuidmap/newgidmap, and no privileged ports below 1024, which is why the
server binds 8080 rather than 80).
Set the daemon log level to info (the default) and keep it. Docker’s debug
level records request payloads and can put secret material into daemon logs, which
are typically world-readable to anyone with host log access and are shipped
wholesale to log aggregators.
Control who can pull and push your images. GHCR access is the deployment’s authorization boundary for what runs in production: whoever can push a tag your manifests reference can run their code with your database credentials. Restrict push rights, prefer digest pins over mutable tags for anything you deploy (the compose files pin the third-party images by digest for exactly this reason), and verify the published attestations before rollout; the verification command is in Installation → Kubernetes & Helm.
None of these four is something this project can assert on your behalf, which is why they are written as your checklist rather than as our claim.
Upgrades
-
Upgrade in place; the migrations are append-only. A released migration is never edited again, so a database created by an earlier release takes the new release’s migrations on top of the ones it already carries. The server records the checksum of every applied migration and refuses to start against a database whose recorded checksums differ from the files it carries (
migration 1 was previously applied but has been modified), which is why editing one would lock every existing installation out of its own database rather than revise its history. A correction ships as a new migration, and a CI guard fails any pull request that modifies, renames or deletes one the base branch already has. A rolling upgrade must still stay compatible with the previous schema for the window in which both versions run: additive changes first, destructive changes a release later.Releases up to and including 4.0.18 predate this policy and did edit migration files in place. A database created by one of those and never upgraded since is recreated rather than migrated.
-
Sweep for stale decomposition after a release that changes how content is decomposed. The version body is unaffected and every read serves it correctly; what is stale is the decomposed index over it, which a row-level query predicate depends on.
POST /ferroehr/rest/extensions/v1/admin/integrity/verifyreports each such version asstale_decompositionandPOST /ferroehr/rest/extensions/v1/admin/integrity/rebuild-nodes, run once unscoped, rewrites the rows from the stored document. The changelog names the affected object type at each release that needs it; 4.2.0 is one, for demographic parties. Both routes are on Admin & messaging APIs. -
Upgrading a 5.5.0 that sets
[server.tls] client_ca_file: setclient_auth = "required"beside it. Before 5.5.0 the CA alone meant a required client certificate; 5.5.0 read it under the newclient_authdefaultnoneand asked for no certificate, and from 5.6.0 such a table is refused at load (GHSA-52mf-qg39-4q4j). See[server.tls]. -
Bound the DDL yourself. Every pooled connection carries the
[database] statement_timeoutvalue (60 seconds by default), and the migration step runs on that pool, so a runaway statement is cut off, but there is nolock_timeout, so a migration that waits behind a long transaction waits as long as that transaction lasts. On a busy table useCREATE INDEX CONCURRENTLY, add constraintsNOT VALIDandVALIDATElater, and setlock_timeoutin the migration session (or on the migrator role) if you need the wait bounded. -
Pin the image. Deploy an immutable tag or, better, a
@sha256digest, neverlatest; roll back by re-pinning the prior digest, since the schema’s backward compatibility makes that safe. -
Stay available. Keep at least two replicas (or autoscaling) and a pod disruption budget so node drains and upgrades never fully interrupt the API. The default 30-second termination grace period covers the server’s short shutdown drain of the audit outbox.
How long the version you pinned is supported
Plan the upgrade cadence around this:
- 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. If you are not on the newest release, upgrade; upgrading is free. Under the Cyber Resilience Act, Cadasto B.V. commits to keep publishing security fixes for at least five years after each release (Art 13(8)) and ships them only in the newest release (Art 13(10)), which every user of an earlier release may run under the same licence terms. Staying on an older release means running without the fix.
- A fix normally arrives as the next patch on the current minor, so taking it does not oblige you to take new behaviour, but that is the usual case, not a promise. Where a fix is only correct alongside a behavioural change, the release carrying it carries the change, and the changelog entry says so.
- A published release is never repaired in place. Release immutability means the assets and the tag of a published release cannot be modified at all, so the remedy for any defect is a new version.
- The Helm chart and the published crates follow their own version lines, each supported only in its newest published version, which is where its fixes ship. A chart-only fix ships as a new chart version between server releases.
The running server states the end month of the commitment. Cadasto B.V.
keeps publishing fixed releases for at least five years after each release
(CRA Art 13(8)), and the server reads its release date from its changelog
heading at build time. The end month, the date until which fixed releases
keep coming, does not make the running release supported: a release is
supported only while it is the newest. The end month is on the boot banner (Support line), in the boot log, in
ferroehr --version, under support in GET /management/info, and under
support in GET /management/status as
{release_date, support_ends, status}, where support_ends is YYYY-MM and
status is supported (the commitment is still running), ended or
unreleased. Once the end month has passed,
status reads ended and the server logs a warn line at boot and once a day
(CRA Art 13(19)). A build of a version whose changelog heading carries no date
is not a release: it reports unreleased and no end month.
The server does not contact anyone to look for newer releases. To hear about
them, subscribe to the release feed
(https://github.com/FerroHEALTH/FerroEHR/releases.atom) and poll the
published security advisories
(GET https://api.github.com/repos/FerroHEALTH/FerroEHR/security-advisories).
The consequence for change control: budget for taking every release, or budget for maintaining a fork. There is no third option, and the full policy (with the reasoning and what to do if you need something stronger) is SECURITY.md.
Observability
tracing is the single instrumentation API. From it, three signal families
fan out, and identified data never enters any of them: telemetry uses
only closed-set labels and opaque request/trace ids, so correlation to a
patient is possible only through the audit trail.
-
Logs go to stdout (JSON when not attached to a terminal, pretty on a TTY). Shipping and rotation are the platform’s job.
FERROEHR__TELEMETRY__FORMAT(auto/json/pretty) andFERROEHR__TELEMETRY__FILTER(orRUST_LOG, defaultinfo,hyper=warn,tower=warn,h2=warn) control them, and the level can be changed at runtime through theloggersendpoint below. Every request writes one request-log line: method, route template, status, latency and the server’s request id. On boot the server prints a one-time ASCII banner (version, maintainer, project URL, and spec pins) to stdout ahead of the logs; it is suppressed underFERROEHR__TELEMETRY__FORMAT=jsonso machine log consumers see only structured lines. -
Traces export to any OpenTelemetry collector (Tempo, Jaeger, and so on) over OTLP, but only when you configure
[telemetry.otlp]. Each request’s span is a server span named{method} {route}, such asGET /ferroehr/rest/openehr/v1/ehr/{ehr_id}, never by a path containing ids, and its status is an error on a 5xx answer. A client’straceparentis never read: every request starts a trace of the server’s own. -
Metrics come from one OpenTelemetry meter provider with up to two readers: a Prometheus reader behind
/management/prometheus, and (with[telemetry.otlp]andmetrics = true) a periodic OTLP reader. Every instrument reaches both by construction, so a family can never exist on the scrape surface and be missing from the push. The catalogue covers HTTP request duration (http.server.request.duration) and the requests in flight (http.server.active_requests); authentication failures and login-binding refusals; database pool state, acquire latency and transaction counts; AQL query counts, latency and plan- cache events; compositions committed (by openEHR audit change type); validation failures and version-signature faults; WebTemplate cache events; events published; the whole ATNA audit pipeline; Tokio runtime gauges; process start time and resident memory; and theferroehr_build_infoidentity.Instrument names carry no
_totalsuffix and no unit suffix: units are declared on the instrument and the Prometheus exporter derives_total/_seconds/_bytesitself. Read the exposition to learn the exact rendered names rather than assuming either spelling.
The telemetry environment variables:
| Environment variable | Default | Meaning |
|---|---|---|
FERROEHR__TELEMETRY__OTLP__ENDPOINT | unset (nothing exported) | OTLP collector endpoint |
FERROEHR__TELEMETRY__OTLP__TRACES | true | export the spans |
FERROEHR__TELEMETRY__OTLP__METRICS | true | push the metrics beside the Prometheus reader |
FERROEHR__TELEMETRY__OTLP__SAMPLE_RATIO | 1.0 | share of traces sampled (start at 0.1 in production) |
FERROEHR__TELEMETRY__ENVIRONMENT | unset | reported deployment environment |
FERROEHR__MANAGEMENT__FLAME_FILE | unset (layer not installed) | write folded span-timing samples to this file for offline rendering, diagnostic sessions only |
Neither reader is reachable until you say so: the Prometheus surface needs
management.enabled plus an access level on the prometheus endpoint (see
the management surface), and the OTLP reader needs
telemetry.otlp.endpoint. A server with neither still records every
instrument; nothing exports it.
Tip
A single-container dev stack (
grafana/otel-lgtm, bundling an OTLP collector, Prometheus, Tempo, Grafana, and Loki) ships as a Compose overlay, together with a provisioned Grafana dashboard (request rate/errors/duration, database pool, AQL latency, validation failures, audit health) and a starter alert pack; point the server at it with the OTLP variables above.
On Kubernetes, the same keys arrive through the chart’s config
passthrough, and the metrics half has a second switch that is easy to miss:
# values.yaml
config:
telemetry:
environment: production
otlp:
endpoint: http://otel-collector.observability:4317
sample_ratio: 0.1
metrics: true
management:
enabled: true
endpoints:
prometheus: admin_only # the scrape endpoint is off until you name it
metrics:
enabled: true # adds the prometheus.io/* pod annotations
serviceMonitor:
enabled: false # or true, with the Prometheus Operator CRDs installed
metrics.enabled only adds the scrape annotations; the endpoint itself is
opened by config.management.endpoints.prometheus. Both are needed for an
annotation-discovering Prometheus, and neither is needed if you push over OTLP
instead. To turn the export off, drop telemetry.otlp; nothing is
exported without it.
The default dashboard. The “FerroEHR — service overview” Grafana dashboard (request rate/errors/latency, AQL rate and phase latency, plan-cache hit ratio, database pool, Tokio runtime, audit throughput — every query written against the served metric names) reaches Grafana three ways:
- Compose: the observability overlay provisions it automatically; nothing to do.
- Kubernetes: set
metrics.grafanaDashboard.enabled: trueand the chart ships it as a ConfigMap labelledgrafana_dashboard: "1", which the Grafana Helm chart’s dashboard sidecar (kube-prometheus-stack includes it) discovers and imports. The sidecar watches its own release namespace by default — install FerroEHR there, or widen the sidecar’ssearchNamespace.metrics.grafanaDashboard.foldersets thegrafana_folderannotation for sidecars with folder routing configured. - Anywhere else: import
deploy/helm/ferroehr/files/dashboards/ferroehr-overview.jsonby hand (Grafana → Dashboards → Import).
Warning
With the chart’s default-deny egress policy on, add the collector to
networkPolicy.egress.rules(port 4317). An OTLP exporter that cannot reach its collector fails silently: no traces, no error.
The usage report
Apart from your own telemetry, the server sends one report of its own: the
usage report to FerroPULSE, the collector Cadasto B.V.
runs. It is on by default outside a CI run and goes out at each start and
once a day, with the version, the licence grant type and coarse latency
figures, and no patient data. ferroehr usage-report --print shows the exact
JSON, and usageReport.enabled=false (Helm) or
FERROEHR__USAGE_REPORT__ENABLED=false switches it off. With the chart’s egress policy on, it needs a rule for
report.ferropulse.eu on port 443; without one it logs a warning.
The admin and messaging APIs
Two operator-facing HTTP surfaces have a page of their own, because each route carries its own switch, authorization class and status-code contract:
- The admin API (
{base}/admin/…, off by default): physical deletion, the activity report, archiving to the cold tier, and whole-repository dump and load. - The messaging API (
/ferroehr/rest/extensions/v1/message/…, always mounted): EHR Extract export and import.
The full reference is Admin & messaging APIs.
Warning
Enabling the admin API puts irreversible, whole-repository operations on the wire:
DELETE {base}/admin/ehr/allwith no parameter empties the repository. Keep it off unless a workflow needs it, turn RBAC on, and gate the admin role tightly.
Health probes
The health endpoints are always served, on the main API port, without authentication. There is nothing to enable and nothing to remember: they are mounted outside the API’s authentication and overload-shedding layers, so an orchestrator can probe a server whose management surface, admin API, and every optional integration are switched off, and a saturated server still answers its own probes.
Choosing a health endpoint
| Endpoint | Contract | Use it for |
|---|---|---|
GET /health | the readiness status (200 or 503) with the state alone, {"state": …} | load balancers, anything that must never be auth-gated |
GET /health/liveness | constant 200 with {"state":"up"}, touches nothing | Kubernetes livenessProbe and startupProbe |
GET /health/readiness | 200 while ready, 503 while the process boots or drains or an indicator is down; the FerroHEALTH readiness document (state, phase and each indicator’s name and state), each check bounded to one second. Only db and migrations read down; every other indicator reads at worst degraded | Kubernetes readinessProbe, ops dashboards |
GET /ferroehr/rest/status | public status document: status, server_version, openehr_rest_api_version, timestamp and deployment.profile. The full document, which adds licence (the grant in force: state, use, licensee, not_after, configured_token), the whole deployment posture (the declared profile, the separations still open and the ones accepted by name) and support (release_date, support_ends, status), is GET /management/status | version/identity checks |
GET /management/* | ops introspection; see below | operators, off by default, enable deliberately |
Every management request is itself recorded in the audit trail as a
system-domain access under its own operation id (management_info,
management_env, management_loggers_set, …), so a runtime filter change or a
configuration read is never an unrecorded administrative act.
There is exactly one health surface: the /health family above, the one every
FerroHEALTH product serves, and the route the container’s ferroehr healthcheck subcommand asks is /health/readiness. /ferroehr/rest/status is
a different contract, and no health endpoint exists under the REST root.
Not every indicator blocks readiness, and the distinction is deliberate:
| Indicator | Checks | Blocks readiness |
|---|---|---|
db | a pooled connection answers | yes |
migrations | this build’s schema is present, re-tested on every probe | yes |
audit_sender | the audit posture: DEGRADED with the consequence stated when auditing is off (no access log, no EHDS logging component); UP with fail_mode, the local store and its retention in the detail, and a stated caution under fail_mode = "open" | no: reports DEGRADED, never 503 |
audit_delivery | each forwarder to an external Audit Record Repository (present when [audit.syslog] or [audit.fhir_feed] is on): the records waiting, those the repository refused, those delivered, and whether the last attempt reached it; DEGRADED when the repository is unreachable or a record was refused | no: records wait in their spool or the store, so delivery problems never take the instance out of rotation |
audit_chain | the latest scheduled verification of the local audit store’s hash chain (incremental from the last intact link, with a periodic full pass) (present when the local store is on and [audit.store] verify_interval is not 0): UP while intact or before the first run, DOWN naming the finding count and the first damaged position, DEGRADED when the verification could not run | no: a damaged chain reports DOWN in the body, never 503, because the trail keeps recording while the damage is investigated |
An instance whose audit repository is unreachable therefore keeps taking
traffic and says so in the body; an instance that cannot reach its database, or whose
database lost the schema, leaves rotation. The detail strings are written to
carry no connection information (no DSN host, database name or role) because
this surface is unauthenticated by design.
Important
Liveness and readiness are deliberately different: liveness never touches a dependency, so a database outage takes the instance out of rotation (readiness
503) instead of getting the container killed and restarted in a loop. WirelivenessProbeandstartupProbeto/health/livenessandreadinessProbeto/health/readiness. The Helm chart does exactly this out of the box, and only the timings are tunable (probes.liveness,probes.readiness,probes.startup); there is deliberately no option to point the probes at the container’sferroehr healthchecksubcommand instead, because that subcommand probes the status document rather than a health endpoint, which would leave readiness never touching the database.
While the database restarts or is out of reach, requests answer 503 Service Unavailable with Retry-After: those that cannot get a connection, and those
whose open connection the restart or the network cut (SQLSTATE class 08,
57P01 admin shutdown, 57P02 crash shutdown, 57P03 cannot connect now,
or a reset socket). A transaction the cut interrupted is rolled back by
PostgreSQL. A request that waits more than a second for a connection makes
the server try a connection of its own: when that cannot reach the database,
the request answers 503 at once, and so does every request after it, until
a fresh attempt (at most every half second) connects again. A pool that is
only busy keeps its requests queued up to
[database] acquire_timeout (30 seconds by
default).
A statement the database cancels (SQLSTATE 57014, by
[database] statement_timeout or by an
operator’s pg_cancel_backend) also answers 503 with Retry-After: the
statement rolled back, so the request can be repeated. With the defaults the
request timeout (30 seconds) answers first, so the statement timeout (60
seconds) does not fire on a request. PostgreSQL measures its timeouts against
the database host’s wall clock, so a host whose clock steps forward, such as a
virtual machine resynchronised after a stall, cancels every running statement
at once; keep the database host’s clock synchronised by slewing, not stepping.
The management surface
The management surface is ops introspection only: build info, Prometheus,
the metric views, the effective configuration, and runtime log control. It is
off by default on the bare binary, and each endpoint is independently
opt-in with an access level (admin_only, private, or public). It can be
bound to its own internal port so it never appears on the public API listener.
Keeping it off costs you nothing operationally: the health probes above do not
depend on it.
| Environment variable | Default | Meaning |
|---|---|---|
FERROEHR__MANAGEMENT__ENABLED | false | enable the management surface |
FERROEHR__MANAGEMENT__BASE_PATH | /management | base path for the surface |
FERROEHR__MANAGEMENT__LISTEN | unset (main listener) | serve management on its own socket address, for example 0.0.0.0:9090 |
FERROEHR__MANAGEMENT__ENDPOINTS__<NAME> | off | the access level for ONE endpoint: off, private, admin_only or public. There is no global default beside it: an endpoint you do not name is not mounted and answers 404. |
The ops endpoints:
Every one of them ships off: nothing is mounted until you name the endpoint
and the level it should answer at. The right-hand column is the level to choose,
not a default you already have.
| Endpoint | Endpoint name to set | Purpose | Level to give it |
|---|---|---|---|
GET /management/info | info | product name and version, build SHA, build date, rustc, the active deployment.spec_profile, the openEHR specification versions that profile selects, the PostgreSQL target, the audit posture (enabled, fail_mode, local_store, retention), the manufacturer of the release (name, postal_address, email, website), and the support period (release_date, support_ends, status) | admin_only |
GET /management/prometheus | prometheus | Prometheus text exposition | admin_only, or public only when the port is not reachable outside the cluster; a public endpoint is served OUTSIDE authentication |
GET /management/metrics | metrics | JSON list of the registered metric names | admin_only |
GET /management/metrics/{name} | metrics | the current value(s) of one metric; 404 for a name that is not registered | admin_only |
GET /management/env | env | effective configuration, with secrets redacted | admin_only |
GET/POST/DELETE /management/loggers | loggers | read and change the log level at runtime | admin_only |
GET /management/flamegraph | flamegraph | on-demand CPU flamegraph of the running server | admin_only |
Paths above show the default management.base_path; change it and every path
moves with it. The metrics name covers both metric routes, and the
prometheus, metrics and loggers routes additionally need their backing
machinery present; without it they are simply not mounted, which is the same
404 as leaving them off.
A private or admin_only endpoint answers 401 with a challenge when the
request carries no valid credential. When the credential holds and the login
binding refuses the caller, it answers 403 with the binding code, such as
refused-unbound, as every other route does, and an admin_only endpoint
answers 403 to a caller without authz.rbac.admin_role.
Warning
/management/envand/management/loggersexpose and change server internals; keep themadmin_only, and prefer binding the surface to an internal-only port.
Profiling: the on-demand CPU flamegraph
When the server is measurably slow, the metrics tell you how slow;
/management/flamegraph tells you where the time goes. The endpoint samples the
whole process with an in-process sampling profiler (the
pprof crate) for a bounded window and
answers with a rendered flamegraph SVG; open it in a browser and read the wide
frames.
# sample 10 s at 99 Hz (the defaults) and open the result
curl -u admin:… -o flamegraph.svg \
"http://cdr.internal:9100/management/flamegraph?seconds=10&frequency=99"
seconds(default 10) andfrequency(default 99 Hz) are capped bymanagement.profiling.max_durationandmax_frequency(30 and 999 out of the box); a request beyond a cap is refused with400, never silently clamped.- One sample window at a time: a second request while one runs answers
409; retry when the window completes. - Sampling is low-overhead but not free; profile under the real load you are
diagnosing, and keep the endpoint
admin_onlyon an internal port like the rest of the surface. - Best results come from the container images and release builds, which keep
line tables (
debug = "line-tables-only") so frames resolve tofile:line.
With the surface enabled, the viewer grows an Operations screen over
it (dependency health, build provenance, the metric registry, and runtime log
control) which appears only while the CDR serves /management/info. See
Viewer → Server.
The manufacturer and the deployment report
Cadasto B.V. is the manufacturer of each tagged release. The running system names it, with its postal address and single point of contact, on every surface an operator or a user reads:
| Surface | What it shows |
|---|---|
| startup banner | Manufactured by Cadasto B.V. · https://www.cadasto.com/contact/, then the postal address and info@cadasto.com |
ferroehr --version | the version (a release build prints the release, any other build appends its commit as +dev.<commit>, as server_version on GET /ferroehr/rest/status does), then Manufactured by Cadasto B.V., Comeniusstraat 2d, 1817 MS Alkmaar, The Netherlands, info@cadasto.com and the website |
GET /management/info | a manufacturer object with name, postal_address, email and website |
OPTIONS on the API base path | vendor defaults to Cadasto B.V. ([api.options]) |
| viewer | the footer of every screen, and a Manufacturer card on /system |
| container images | the eu.ferroehr.image.manufacturer label |
ferroehr report writes one JSON file naming what a deployment runs: the
version, commit and build date, the enabled features, the specification pins
and openehr-* crate versions (the published ones in a release build, the
source tree’s in any other, as openehr_crates_origin says), the schema
migration level, the deployment
posture, the licence summary, the manufacturer and the effective
configuration with every secret redacted. Attach it to a complaint or a
serious-incident report; see
ferroehr report for what it
holds and what it leaves out.
Next
- Admin & messaging APIs — the operator-facing HTTP surfaces, route by route.
- Usage report — what the daily report to FerroPULSE carries, and how to switch it off.
- Configuration reference — every setting, with the server, database and telemetry keys on their own page.
- The API reference at
/ferroehr/rest/swagger-uion your own deployment, or https://sandbox.ferroehr.eu/ferroehr/rest/swagger-ui on the hosted sandbox — the document the server itself generates.
Admin & messaging APIs
Two groups of routes sit beside the clinical API for operators rather than for clinical clients: the admin API, which physically deletes, reports on, and moves repository content, and the messaging API, which exports and imports whole records as openEHR EHR Extracts. This page is the operator’s reference for both: every path, what gates it, what it accepts, and every status code it answers.
- Where these routes live, and what gates them
- Physical deletion
- The activity report
- Archiving
- Operational-policy registers
- The access policy
- Legal marks: restriction, objection and retention
- Re-keying a professional’s binding key
- Reading a party’s protected identifiers
- Storage integrity
- Dump and load
- EHR Extract export and import
- Other routes under
{base}/admin
Where these routes live, and what gates them
The routes ITS-REST defines (the two EHR deletes) sit under the openEHR base
path, {base}: with the default api.base_path it reads
/ferroehr/rest/openehr/v1. Every other route on this page is FerroEHR’s own
extension and sits beside it under {ext}, which reads
/ferroehr/rest/extensions/v1; so {ext}/admin/dump is
/ferroehr/rest/extensions/v1/admin/dump. Nothing ITS-REST does not define is
served under the openEHR base path.
The two groups are gated differently, and the difference matters operationally:
| Group | Switch | Authorization class | While switched off |
|---|---|---|---|
{base}/admin/… and {ext}/admin/… | api.admin (FERROEHR__API__ADMIN), default false | admin: the configured authz.rbac.admin_role (ADMIN by default) | every route answers 405 Method Not Allowed with an empty Allow header: the resource exists but currently serves no method |
{ext}/message/… | none (always mounted) | ordinary clinical, exactly like the composition API | n/a |
Two consequences worth planning around:
- The messaging routes are not admin-gated. They read and write the same
clinical content the composition API does, so they carry the same ordinary
authentication and the same coarse clinical class. A principal holding the
configured read-only role (
authz.rbac.readonly_role,READONLYby default) is refused 403 on every messaging import, before the body is read; the exports stay available to it. - RBAC has to be on for the admin role to mean anything. With
authz.rbac.enabled = false(the posture the Compose quickstart ships) authentication is the only gate, so any authenticated caller reaches every enabled admin route. Turn RBAC on before enabling the admin API anywhere that is not a laptop.
While the admin API is enabled, the server also advertises /admin in the
OPTIONS conformance manifest it serves at the API base-path root; with the
API off, that entry is absent.
Warning
DELETE {base}/admin/ehr/allwith no parameter empties the repository. There is no confirmation step and no undo. Keepapi.adminoff unless a workflow needs it, and gate the admin role tightly.
Physical deletion
Normal openEHR deletes are logical: the version history is retained. The admin API is the exception: physical, irreversible removal, for legal erasure requests and test-data cleanup.
| Route | Success | Refusals |
|---|---|---|
DELETE {base}/admin/ehr/{ehr_id} | 204: the EHR and every resource it owns (compositions, EHR_STATUS, item tags, contributions, and all their historical versions) are physically gone | 400 malformed id (rejected before any deletion), 404 no EHR with that id |
DELETE {base}/admin/ehr/all | 204: bulk delete | 400 any id in the list is not a well-formed UUID; the whole request is refused before anything is deleted |
DELETE {ext}/admin/party/{party_id} | 204: the demographic party, every PARTY_RELATIONSHIP naming it as source or target, and all their versions, contributions and commit audits are physically gone | 400 malformed id, 404 no party with that id (a relationship id is refused the same way) |
DELETE {ext}/admin/template/{template_id} | 204 | 404 unknown template, 409 a committed version still references it |
DELETE {ext}/admin/query/{qualified_query_name}/{version} | 204 | 400 a name outside [{namespace}::]{query-name} or a version that is no exact major.minor.patch, 404 unknown name, or a known name with no such version |
GET {ext}/admin/config | 200: the effective configuration as a redacted JSON tree | — |
Every route additionally answers 401 unauthenticated, 403 for an authenticated caller outside the admin class, and 405 while the group is switched off.
What an EHR delete reaches, in the order it runs: one clinical transaction removes the EHR row and, through the foreign-key graph, its versions over both storage tiers, their nodes, attestations, contributions, commit audits, item tags, folder memberships, the restriction and retention marks, the multimedia blob references and every pending change event of the EHR; an erasure tombstone is appended to the change-event stream in the same transaction, so a consumer that derived anything from the EHR is told to delete it (GDPR Art. 19). The externalized multimedia blobs no surviving version still references are removed from the object store.
A party delete announces itself the same way. DELETE {ext}/admin/party/{party_id} deletes a party physically. The released Admin API defines deletion for EHRs only, so the route
is our own extension, and the served OpenAPI document says so. It writes one
erasure tombstone on the party domain’s own outbox before its transaction
commits, naming the party and every PARTY_RELATIONSHIP erased with it. A
consumer of the party stream has no other way to learn the identity is gone.
The access log records it the way it records an EHR delete: action D under
the operation admin_party_delete, on the demographic resource, with the
party id as the resource.
What it keeps: the audit records naming the ehr_id or the party. Art. 17(3)(b)
withholds erasure where processing is necessary for compliance with a legal
obligation, and the national access-logging periods are that obligation. Data
outside the running database (backups, replicas, exports) is reached by your
own rotation, not by this call.
Details that decide behaviour:
- The bulk delete’s parameter is optional, and its absence means
everything.
DELETE {base}/admin/ehr/allwith noehr_iddeletes every EHR on the server. To delete a subset, pass?ehr_id=<uuid>, repeatable (?ehr_id=a&ehr_id=b) or comma-separated (?ehr_id=a,b); blank entries are dropped. An id that names no EHR deletes nothing and is not an error, so the bulk route has no404. - Deleting a template never orphans clinical data. The 409 is a deliberate guard: while any stored composition was committed against the template, the delete is refused and the message says how many committed versions still hold the reference. Delete those compositions first.
- A stored-query delete removes exactly one
(name, version)row. The query’s other versions survive. - The config view is redacted structurally, not by key name. Passwords and
password hashes, signing-key secrets and S3 secret keys render as
***; every URL that can carry credentials (database, the FHIR audit feed, the syslog audit repository, the terminology server and its token endpoint, the OTLP collector, the object store, the SMART platform and public base URLs, the SCIM public base URL) keeps its host and path and masks the embedded credentials and query (postgres://***@host:5432/db). The usage-report endpoint refuses credentials, and the OIDC issuer and the SMART URLs are refused at boot when they carry them. Non-secret identifiers (usernames, roles, an OIDC issuer) stay visible. Redaction is a property of the configuration’s secret types alone, with no key-name scan beside them, so no secret value can reach this response.
Note
The template delete, the stored-query delete and the config view are FerroEHR extensions: the openEHR admin API defines only the two EHR deletes. They share the same switch and the same authorization as those deletes.
The activity report
Four read-only counters over the repository’s change history, behind the same switch and role as the deletes.
Every route takes two query parameters:
| Parameter | Required | Meaning |
|---|---|---|
a_service | yes | the service whose versioned content to report on: one of Admin, Definitions, Ehr, Ehr_index, Demographic, Message, Query, System_log, matched case-insensitively |
time_interval | no | <lower>/<upper>, two ISO 8601 date-times matched inclusively against each commit time |
Either bound may be left empty for an open interval
(?time_interval=2026-01-01T00:00:00Z/); an absent parameter reports over all
time. A service that holds no versioned content reports an empty list or 0
rather than failing.
| Route | 200 body |
|---|---|
GET {ext}/admin/report/contribution | the matching CONTRIBUTION ids as a JSON array, ordered by commit time then id |
GET {ext}/admin/report/contribution/count | how many there are, as a bare JSON number |
GET {ext}/admin/report/versioned_composition/count | how many distinct COMPOSITION version containers had a version committed in the interval |
GET {ext}/admin/report/composition_version/count | how many individual COMPOSITION versions were committed in the interval |
400 covers an absent a_service, one that names no known service, a
time_interval that is not <lower>/<upper>, a bound that is not a valid ISO
8601 date-time, and an interval bounded on both sides whose lower bound is
after its upper bound: that is not an interval, and answering it with the
empty result it would select would hand back a truthful-looking count for a
window nobody asked for. Equal bounds are a legitimate single-instant interval
and are reported normally.
Archiving
Four routes that move a selected set of records to the server’s cold storage tier and back, behind the same switch and role. Archiving is not a delete: the archived records stay fully readable through the normal API, with their whole revision history intact.
| Route | Body | Success |
|---|---|---|
POST {ext}/admin/archive/ehrs | {"ehr_ids": ["…"]} | 204: every named EHR and all its versioned content is archived |
POST {ext}/admin/archive/parties | {"party_ids": ["…"]} | 204: every named demographic party is archived |
POST {ext}/admin/archive/ehrs/restore | {"ehr_ids": ["…"]} | 204: every named EHR’s archived content is back in the primary tier |
POST {ext}/admin/archive/parties/restore | {"party_ids": ["…"]} | 204: every named party’s archived content is back in the primary tier |
All four are all-or-nothing and idempotent: a body of the wrong shape or a
malformed id is 400 and an id that names nothing is 404, in both cases
before anything is moved; re-archiving an already-archived record, or restoring
one that is not archived, changes nothing. An empty list succeeds and moves
nothing. A body sent without Content-Type: application/json is 415. A
party that is currently archived is still found by its restore call (the
existence check spans both tiers) so an archived party is never reported
missing.
A party’s PARTY_RELATIONSHIPs are not carried along: each is an
independently addressable versioned object, archived in its own right.
What “cold storage tier” means here: the archived rows are physically moved out
of the primary tables into a separate schema in the same database, so the
tables and indexes that serve everyday traffic shrink by exactly what was
archived: no extra tablespace, volume, or external service to operate. Reads
of unarchived records never touch the cold tier; a read that addresses an
archived record is served from it. Writing to an archived record brings it
back to the primary tier first, so a versioned object is never split across
tiers; a physical delete clears both tiers; and {ext}/admin/dump still
exports archived content.
Two consequences to plan for:
- AQL queries see the primary tier only, so an archived record stops appearing in query results; that is exactly what shedding the query tables’ rows and indexes buys you. Everything addressed by id (an EHR, a composition, a folder, a party, a version, a revision history) keeps working as before. Restoring puts the record back in query results.
- There are three ways back, and only one of them is deliberate. The
…/restoreroutes above reverse a whole set on request; a write to an archived record thaws just that record as a side effect, whichever route the write came in on; and a physical delete removes it from both tiers. Query visibility is the effect to plan around, and the restore routes are how you get it back.
Operational-policy registers
Three routes behind the same switch, for admin_role only, carry the
operational policy that is data rather than configuration: the audit category
map and the EHDS Art. 3(3) access delay. What each
register holds is on Operational policy.
| Route | Body or header | Success |
|---|---|---|
GET {ext}/admin/registers/{register} | — | 200 {"register", "version", "committer", "committed_at", "document"}: the newest version, or version 0, the default; the ETag is the version |
PUT {ext}/admin/registers/{register} | If-Match: "<version>" and the whole register document | 200: the new version, as the read answers it, with its ETag; the next request on every replica runs under it |
GET {ext}/admin/registers/{register}/history | — | 200 {"register", "versions": [...]}: every version, newest first, ending with version 0 |
{register} is audit-categories or access-delay, and any
other name is 404. A write without If-Match is 400, and one whose
If-Match is no longer the newest version is 412: read the register again
and write over the version it answers. A document that does not hold is
400 and leaves the version in force. Every read and write is an access
record of its own.
The access policy
Four routes behind the same switch, for admin_role only, carry the
controller’s access policy. What it holds is on
Operational policy.
| Route | Body or header | Success |
|---|---|---|
GET {ext}/admin/access_policy | — | 200: the newest ACCESS_POLICY; the weak ETag is its version uid and Last-Modified its commit time. 404 while none is committed |
PUT {ext}/admin/access_policy | If-Match: <version uid>, or If-None-Match: * for the first version, and the whole ACCESS_POLICY | 200 (201 for the first): the new version with its ETag; the next request on every replica runs under it. Needs a policy grant of write_access_policy |
GET {ext}/admin/access_policy/history | — | 200: every ORIGINAL_VERSION, newest first, with its contribution and commit audit |
GET {ext}/admin/access_policy/versioned | — | 200: the VERSIONED_ACCESS_POLICY |
A write with neither condition is 400, and one whose condition no longer holds is 412: read the policy again and write over the version it answers. A policy that does not hold is 400 and leaves the version in force.
Legal marks: restriction, objection and retention
Eleven routes behind the same switch and role, carrying the four marks the law asks a repository to hold beside its clinical content. None of them deletes anything.
| Route | Body or parameter | Success |
|---|---|---|
POST {ext}/admin/restriction | {"ehr_id": "…", "vo_id": "…"?, "ground": "…", "note": "…"?} | 204: the restriction is recorded and in force |
GET {ext}/admin/restriction | ?ehr_id=… | 200: the register, newest request first, lifts included |
POST {ext}/admin/restriction/lift | {"ehr_id": "…", "vo_id": "…"?} | 204: every in-force restriction at that grain is lifted |
POST {ext}/admin/research-objection | {"ehr_id": "…", "objected": true, "ground": "…"?} | 204: the objection, its override, or its withdrawal is recorded |
PUT {ext}/admin/retention/policy | {"kind": "…", "jurisdiction": "…", "category": "…"?, "origin": "…"?, "period": "…", "anchor": "…", "source": "…"} | 204: the period is declared, keyed on one EHDS priority category when category is set and on one origin a data_origin grant in force names when origin is set |
GET {ext}/admin/retention/policy | — | 200: the whole retention register, each period with its category and origin (null for every object of the kind, or every origin) |
PUT {ext}/admin/retention/anchor | {"ehr_id": "…", "jurisdiction": "…", "anchored_at": "…"?, "hold_at": "…"?, "hold_ground": "…"?} | 204: the EHR’s anchor and any whole-record hold |
POST {ext}/admin/retention/hold | {"vo_id": "…", "held": true} | 204: the per-object exemption is placed or released |
GET {ext}/admin/retention/due | ?limit=100 | 200: what has run out, oldest first, per period and category, with the due and held object counts |
POST {ext}/admin/access-delay | {"ehr_id": "…", "vo_id": "…", "until": "…"?, "note": "…"?} | 204: the composition is withheld from the person under EHDS Art. 3(3) until until (an RFC 3339 instant within the access-delay register’s max_delay of now) or for the access-delay register’s max_delay; 400 while the access-delay register is off |
GET {ext}/admin/access-delay | ?ehr_id=… | 200: the access-delay register, newest hold first, each with its basis (category or professional), its end and its release |
POST {ext}/admin/access-delay/release | {"ehr_id": "…", "vo_id": "…"} | 204: every hold of the composition still in force is released, and the person reads it |
POST {ext}/ehr/{ehr_id}/versioned_composition/{versioned_object_uid}/access-delay/release | none | 204: the treating professional’s release from the clinical surface, with the checks of a write to that EHR; 403 to a request that may be the person’s |
POST {ext}/admin/access-log/erase | {"uid": "…", "grounds": [DV_CODED_TEXT, …]} | 200: the ACCESS_LOG_TOMBSTONE that replaced the access-log entry, for an erasure a law orders before the entry’s retention ends; it keeps the entry’s uid, system_id, time_recorded and chain link and names these grounds (Retention, and who chooses it); 409 for a tombstone or while the local audit store is off |
GET {ext}/admin/access-log | ?ehr_id=…&from=…&to=…&outcome=…&offset=…&fetch=… and the other filters | 200: the access log’s records across EHRs, newest first, in the full view (Reading the access log over ITS-REST); the read writes its own access-log entry |
GET {ext}/admin/access-log/chain | ?from_sequence=…&to_sequence=… | 200: the uid and link of each record of the span, at most 10000; 400 for a span holding audit_event records |
GET {ext}/admin/access-log/checkpoint | ?sequence=…? | 200: the newest stored ACCESS_LOG_CHECKPOINT, or the one at sequence; 404 when none is stored there |
POST {ext}/admin/ehr-access | {"ehr_id": "…", "preceding_version_uid": "…", "settings": {…} or null} | 200 {"ehr_id", "version_uid"}: the EHR_ACCESS settings are committed on the person’s instruction as a new version over preceding_version_uid; they hold the EHDS Art. 8 restriction and the Art. 10 opt-out as restriction and opt_out directives (Security); 400 for settings that do not parse, a restriction or opt_out directive with emergency_override false, a restricted object id that names no versioned object, or an opt_out directive while [authz.grants] allowed does not allow access_service; 412 when preceding_version_uid is not the current version |
GET {ext}/admin/ehr-access | ?ehr_id=… | 200 {"ehr_id", "versions": [{"version_uid", "settings"}]}: every EHR_ACCESS version, newest first, so the person’s lifted restrictions and reversed opt-outs stay readable |
POST {ext}/admin/ehr-access/repair | {"ehr_id": "…", "settings": {…}} | 200 {"ehr_id", "version_uid"}: the EHR_ACCESS of an EHR held closed by settings that do not parse is committed again with these settings, which must parse; 409 for an EHR that is not held |
A body of the wrong shape or a malformed id is 400, an id that names nothing
is 404, and a body without Content-Type: application/json is 415, in
each case before anything is recorded. Setting or lifting a mark is an access
record of its own.
A category is named as the audit category register names it (a priority category by
its code, Patient-Summaries, Electronic-Prescriptions,
Electronic-Dispensations, Medical-Imaging, Laboratory-Reports or
Discharge-Reports, or as <system>|<code>; a declared national category as
its <system>|<code>; or none; an unknown one is 400) and stored as its
<system>|<code> token, which serves EHDS
Annex II 3.4: retention periods that take the categories of the data into
account. The server mirrors the map into the register at every boot and with
every write of the audit category register. A period
keyed on a category lists the objects the map places in it; an object the map
cannot classify is listed under the longest period configured for its kind,
and a category row with no object is left out of due. A period with no
category lists every object of its kind, as before.
Restricting a record changes what every other route answers: reads of a restricted object become 403, it leaves AQL results at every scope, exports skip it and the event stream withholds it, and writes to it are refused. On a write the restriction is the LAST gate: content validation answers 422 and the preconditions that run before the commit transaction, a non-modifiable EHR or a second directory, answer 409, while the mark is read inside the transaction. A malformed write to a restricted object therefore answers 422 rather than 403. Both refuse the write and neither changes what is stored, so read the register itself to learn whether a restriction is in force. What each mark means, which provision it serves and what the deploying organisation still has to decide are on Retention, restriction and objection.
An access restriction is not a restriction of processing: it limits what a health professional reaches and nothing else, and it is invisible to them. What it changes is on restriction of access by health professionals.
An access delay is the opposite direction: it withholds a composition from the person, never from a professional. What it changes is on delayed access by the person.
Re-keying a professional’s binding key
A PERSON’s binding key, the login identifier it is bound to, is immutable
on every ordinary write (RFC 7643 §2.2). POST {ext}/admin/party/binding-key
is the one change, made by an administrator. No openEHR specification
governs it; it is our own extension.
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{"party_id": "0d6c…", "issuer": "https://login.example/tenant", "id": "5b0f…"}' \
"$BASE/admin/party/binding-key"
The PERSON gets a new version carrying the new key, the old key stops
binding in the same commit, and one access record carries both keys. The
route answers 403 when the new key is the requesting administrator’s own
login, 409 when the PERSON carries no key of that issuer or the new
key is already bound to another party, and 404 for an unknown or
deleted PERSON. The party mapping
says which parties are protected.
Reading a party’s protected identifiers
With national-identifier protection
on, a party’s versioned body carries a reference where each protected
identifier stood, and every ordinary read serves that reference.
GET {ext}/admin/party/identifiers is the one route that puts the values back
for a reader entitled to see them. No openEHR specification governs it; it is
our own extension.
curl -H "Authorization: Bearer $TOKEN" \
"$BASE/admin/party/identifiers?version_uid=8d7c…::ferroehr.local::2"
{
"version_uid": "8d7c…::ferroehr.local::2",
"expanded_schemes": ["nl-bsn"],
"version": { "_type": "ORIGINAL_VERSION", "data": { "_type": "PERSON", … } }
}
- Two gates. The route is in the admin group, so it needs
api.adminand the admin role, and it also needs aread_identifierspolicy grant in the CDR (Operational policy). Holding the admin role alone reveals no national identifier (403). - Any version.
version_uidnames one party version; a historical version shows the value it committed. - A view, never a write. The body is the stored
ORIGINAL_VERSIONwith the values put back, so it no longer matches the signed version. Nothing is written back. - Every read is recorded. Each scheme expanded is one access record in the
demographicdomain, naming the reader, the party and the scheme (party:<id>#national-identifier:<scheme>), never the value. A version that holds no protected identifier still leaves one record. Underaudit.fail_mode = "closed"a record the trail cannot take withholds the values with 503. - Refusals. 400 for a missing or malformed
version_uid, or a deployment that configures no identifier protection; 404 when no party holds that version.
Storage integrity
Two routes that check the stored data against itself and repair what they find, behind the same switch and role. FerroEHR stores every version’s content twice: once as the materialized document a point read serves, and once as the decomposed rows the AQL engine queries. A commit writes both in the same transaction, so they always agree; anything that changes one of them behind the server’s back breaks that agreement.
| Route | 200 body |
|---|---|
POST {ext}/admin/integrity/verify | the sweep report |
POST {ext}/admin/integrity/rebuild-nodes | the rebuild report |
The sweep covers both pseudonymisation domains, clinical and demographic, in one pass. Every finding names the domain it came from, so a report can never describe half the store while looking like it described all of it. It re-derives every stored version from its decomposed rows and compares the result with the stored document, then decomposes that document again and compares the rows it would write, which is what catches rows an older release left in a shape this one no longer produces. It reads the archived tier as well, takes no lock, and runs outside the request path of any clinical call, so it is safe to run on a live server. It is also a full scan of what it covers, so schedule it rather than calling it per request.
Four optional query parameters narrow the scan, and they compose. Both routes take the same set:
| Parameter | Effect |
|---|---|
ehr_id | cover only versions belonging to that EHR |
vo_id | cover only versions of that versioned object |
sys_version | cover only that version of it; the ordinal is per-object, so it needs vo_id and is a 400 on its own |
committed_since | cover only versions whose validity begins at or after that RFC 3339 instant |
Use them. Verifying one record after a support incident, or everything written since a known point, costs a fraction of a full repository scan.
Verifying a whole large repository
By default the route computes the whole report before it answers, so it has to
finish inside the server’s 30-second request timeout. Send
Accept: application/x-ndjson and it streams the same sweep instead, writing
each finding as it is made. Nothing bounds that response, so this is how you
verify a repository too large to scope:
curl -sN -X POST \
-H 'Accept: application/x-ndjson' \
"$BASE/admin/integrity/verify"
The body is one JSON object per line, each carrying a type:
type | When | Carries |
|---|---|---|
mismatch | as each disagreement is found | the same five fields the report’s mismatches entries carry, domain included |
progress | once per page of versions read | the counts so far |
summary | once, at the end | the final counts and elapsed_ms |
error | instead of summary, if the sweep failed part-way | a short message; the detail is in the server log |
Two consequences are worth planning around. The status code is sent before the
work is done, so a sweep that fails half-way still answered 200: read to the
end and check that the last line is a summary, not an error. And the stream
carries no reporting cap, so every mismatch reaches you rather than the first
thousand.
The stream has to be asked for by name. A request sending */*, or no Accept
at all, gets the aggregated document below, unchanged.
{
"versions_checked": 128,
"versions_with_body": 126,
"versions_without_body": 2,
"mismatch_count": 1,
"mismatches": [
{
"domain": "clinical",
"vo_id": "8849182c-82ad-4088-a07f-48ead4180515",
"sys_version": 2,
"kind": "COMPOSITION",
"defect": "content_differs"
}
],
"truncated": false,
"elapsed_ms": 431
}
domain is clinical or demographic, naming the schema the damaged version
lives in. It is also what the repair below uses to reach it.
defect is one of five values:
content_differs: both copies exist and hold different content.nodes_missing: the version has a stored document but no decomposed rows.nodes_unreadable: the decomposed rows exist but no longer form one tree.unexpected_nodes: the version is a logical delete, which stores no document, yet decomposed rows exist for it.stale_decomposition: the rows hold exactly the stored document, but not in the shape this version of the server decomposes it into. An older release wrote them. The content is intact and every read serves it correctly; what is stale is the index over it, so a query that depends on the current shape does not reach this version until the repair below rewrites its rows.
mismatch_count is the full count. mismatches is capped at 1000 entries and
truncated says whether the cap was reached; every mismatch is logged at
warn level with its identifiers whatever the cap does, so a truncated report
never loses a finding. The log line and the response carry identifiers only,
never content.
A finding is not a request failure: the sweep ran and is telling you what
it saw, so the status stays 200 and the report is the body. Check
mismatch_count, not the status code.
Note
This is the companion check to digest signing. A stored digest covers the document a point read serves; it says nothing about the decomposed rows, which no read-path check recomputes. Together the two cover both copies.
Repairing what the sweep found
The sweep is the diagnosis. POST {ext}/admin/integrity/rebuild-nodes is the
repair: it re-derives the decomposed rows of every damaged version from that
version’s stored document, one transaction per version.
curl -s -X POST "$BASE/admin/integrity/rebuild-nodes?ehr_id=$EHR_ID"
It runs the same sweep first and writes only the versions that sweep reports damaged, so a run over healthy data writes nothing at all. The scope parameters are the same four, so a repair can be as narrow as one version:
curl -s -X POST \
"$BASE/admin/integrity/rebuild-nodes?vo_id=$VO_ID&sys_version=2"
Which copy wins is not a choice the route makes. The stored document is the version’s canonical serialized form, the bytes a point read serves and the bytes a digest was taken over; the decomposed rows are an index derived from it. So the repair only ever runs in that direction, and a version whose document is the damaged copy is refused rather than having the damage copied into the index.
Each version is repaired inside one transaction: the document is read under a row lock, decomposed, the old rows deleted, the new set inserted, and the version re-derived from what was just written and compared with the document before the commit. Anything that fails rolls that transaction back, so the version’s rows are left exactly as they were. One refusal never stops the run that found it.
An archived object is thawed for the repair and re-archived in the same transaction, marker and all, because a write to a versioned object always happens in the primary tier.
A logically deleted version stores no document, so it rebuilds to no rows,
which is the repair for unexpected_nodes.
The same route is the upgrade step after a release that changes how content is
decomposed. Rows written by the older release hold the right content, so
nothing is damaged, but they are the wrong shape for the new one and the sweep
reports them stale_decomposition. Rebuilding writes them again from the
stored document, which is all the upgrade is. Run it unscoped once and the next
sweep is clean:
curl -s -X POST "$BASE/admin/integrity/rebuild-nodes"
The changelog names the affected object type at each such release.
{
"versions_checked": 128,
"versions_damaged": 2,
"versions_rebuilt": 1,
"versions_refused": 1,
"records": [
{
"domain": "clinical",
"vo_id": "8849182c-82ad-4088-a07f-48ead4180515",
"sys_version": 2,
"kind": "COMPOSITION",
"defect": "content_differs",
"outcome": "rebuilt",
"node_rows": 41
},
{
"domain": "demographic",
"vo_id": "1f0b7d64-6b2a-4a1f-9f0e-6b1d2a3c4d5e",
"sys_version": 1,
"kind": "PERSON",
"defect": "content_differs",
"outcome": "refused",
"reason": "the stored body does not decompose: ..."
}
],
"truncated": false,
"elapsed_ms": 812
}
defect is the sweep verdict that selected the version, from the five values
above. outcome is rebuilt, carrying the node_rows the version now has, or
refused, carrying the reason. records is capped at 1000 entries with
truncated saying whether the cap was reached; every record is logged at
info level with its identifiers whatever the cap does.
A refusal is not a request failure, so the status stays 200. Check
versions_refused: anything above zero means a stored document is itself
damaged, and that is a restore-from-backup question rather than a rebuild one.
Unlike the sweep, this route writes, so a server in read-only mode refuses it.
Dump and load
Two routes that move the whole repository to and from an archive on the server’s file system, behind the same switch and role. Both answer 200 with a JSON array of per-entity failure reports; an empty array means everything succeeded.
POST {ext}/admin/dump
Writes an archive of every EHR and of every standalone demographic
container: the parties and party relationships that live outside any EHR.
The body is {"file_sys_loc": "…"} plus the optional export settings:
| Field | Values | Default |
|---|---|---|
logical_format | openehr_canonical_json or openehr_canonical_xml | canonical JSON |
compression_format | zip or 7z (omit for loose files) | uncompressed |
segment_split_size | segment size in kb (a positive integer) | 1024 |
logical_format chooses how the clinical content is serialized, not how
the archive is packaged:
openehr_canonical_json(the default) keeps each version’s content inline in the segment files, exactly as this server stores it.openehr_canonical_xmlwrites each version to its ownversions/<version_uid>.xmlentry instead: a completeORIGINAL_VERSIONdocument under the openEHR-published<version>root, ready to hand to any tool that reads canonical openEHR XML.
The archive is a directory holding a manifest.json, one or more
segment-NNNN.json files, and a blobs/ subdirectory for any externalized
multimedia. When the repository holds standalone demographic containers, the
archive additionally carries a demographic-commons.json (their shared
audits and contributions) and one or more demographic-NNNN.json segments,
one record per party or relationship, in the same version-record shape the
EHR segments use. With compression_format set, those same entries are
packed into a single archive.zip or archive.7z inside the location
instead. The
archive’s own bookkeeping (the manifest and the segment skeleton) stays JSON
in both logical formats, because openEHR publishes no XML document form for
it.
POST {ext}/admin/load
Populates the repository from an archive. It takes the location and nothing
else: the container (loose files, a single archive.zip, or a single
archive.7z) is detected from what the location holds, and the logical format
is read from the archive’s own manifest, so a load never has to be told how
the dump was written. Archives written before the demographic wave existed
simply carry no demographic entries and load unchanged.
The repository being loaded into need not be empty. An EHR whose id is
already present is reported and skipped rather than failing the load, so the
response array names each one; and a standalone demographic container that
already exists is reported the same way, under its own kind (PERSON,
ORGANISATION, GROUP, AGENT, ROLE, or PARTY_RELATIONSHIP) as the
entity_type:
[ { "entity_type": "EHR",
"entity_id": "7d44b88c-4199-4bad-97dc-d78268e01398",
"dump_status": false,
"error": "an EHR with this id already exists" } ]
Both directions are lossless: a dump and a load reproduce every record, whichever format and container you choose.
With national-identifier protection on, a
party’s demographic record also carries its sealed identifier rows, live and
retired, as base64 ciphertext, nonce and lookup digest. The archive never holds
a protected value in plaintext. The rows open again only under the same
[privacy.identifier_protection] root key, so restore a dump into a
deployment configured with the key it was taken under. A load reports a
demographic container in the response array and restores none of it when:
- one of its sealed rows holds a value that is already live for another party in this repository, or names a scheme this repository has not registered;
- with protection on here, one of its versions carries a protected scheme’s value in plaintext, or references a sealed row the container does not carry.
Refusals
| Status | When |
|---|---|
| 400 | a missing or blank file_sys_loc; a format value outside the lists above; a non-positive segment_split_size; an encoding field (the openEHR service model declares that enumeration with no members, so no value a client could send names one); on load, an archive carrying externalized multimedia this server has no store for, and a malformed archive (a mangled or truncated container, manifest, segment or blob entry, or a manifest naming no known format), the archive-invalid problem, which names the entry. Nothing is loaded |
| 415 | the request Content-Type is not application/json |
| 500 | a location that holds no archive, or one the server’s filesystem refuses to read: the service model’s file_not_writable error for these operations. Nothing is loaded. On dump, the same status covers a location, segment, payload entry or manifest that could not be created or written |
A single unreadable versions/*.xml entry is not in that family: it belongs
to one EHR, so that EHR is reported in the response array and skipped whole
while the rest of the archive loads.
Note
The activity report, the archive routes and the dump/load pair are FerroEHR extensions: the openEHR service model defines these operations, but the released REST API surfaces no endpoint for them, so their URLs are our own. The two
…/restoreroutes go one step further: the service model declares the archive calls and no un-archive counterpart, so both the operation and its URL are ours. They gate no openEHR conformance claim; see Conformance.
EHR Extract export and import
Four routes under {ext}/message that move whole records between systems.
Unlike the admin extensions above, these are not admin-gated; see
the gate table.
GET {ext}/message/export/{ehr_id}: export one whole EHR. 200 with a JSON array holding oneEXTRACTthat carries every versioned object of the EHR, latest versions only. 400 ifehr_idis not a well-formed identifier, which is refused before any lookup; 404 if the EHR does not exist; 406 ifAcceptcannot be satisfied (the extract list is JSON only).POST {ext}/message/exportwith anEXTRACT_SPECbody — export by specification. 200 with oneEXTRACTper manifest entity, in manifest order. The manifest must name at least one entity, and each entity must name its record byehr_idorsubject_id, otherwise 400; an identifier that names nothing is 404.extract_typemust be one of the extract-content-type codes the openEHR Reference Model names (openehr-ehr,openehr-demographic,openehr-synchronisation,openehr-generic,generic-emr) or the catch-allother; anything else is 400, as is a selection this service does not support (search criteria, an unsupported commit-time interval). This route is classified as a read: it selects over held versions and commits nothing, exactly like the ad-hoc AQLPOST.POST {ext}/message/importwith anEXTRACTbody — clone a whole EHR. Add?ehr_id=<uuid>to fix the identifier the clone lands under; leave it off and the source identifier the extract carries is re-used. 201 with{"uid": "<ehr_id>"}, so a caller that supplied no id still learns what was created. The extract must carry anEHR_STATUS(400), and the target must not already exist: 409, which also covers an importedEHR_STATUSnaming a subject another EHR already holds.POST {ext}/message/import/{ehr_id}with anEXTRACTbody — add the extract’s content to an existing EHR as new versions. 204. 404 if the EHR does not exist; 409 if the EHR already holds anEHR_STATUSorEHR_ACCESSunder a different object id, or the imported status names another EHR’s subject; 422 if a version in the extract is semantically invalid (template, RM-invariant or terminology validation).
All four accept either application/json or application/xml bodies; any
other Content-Type is 415.
Note
The whole
{ext}/messagegroup is a FerroEHR extension: the openEHR service model defines a Message component, but the released REST API publishes no message or extract endpoint at all. These URLs are our own and gate no openEHR conformance claim; see Conformance. For the workflow-level view (what an extract is good for and how to drive an import) see EHR Extract & messaging.
Other routes under {base}/admin
The outbox feed shares the /admin path prefix but not the
api.admin switch: it answers for the readers the read_change_feed grants in
force name, and 404 for any other name, whatever api.admin says:
| Routes | Gate | Documented in |
|---|---|---|
{base}/admin/outbox/{reader}, {base}/admin/outbox/{reader}/ack | the __ferroehr.outbox scope and the caller’s own read_change_feed grant naming the reader | Change events (outbox feed) |
An unauthenticated caller is 401, and a caller without the scope or the grant 403.
For everything else an operator needs (migrations, health probes, the management surface, observability and upgrades) see Operations.
Operational policy
Policy that changes while the CDR runs is data the CDR holds, never a key in
ferroehr.toml: a hospital CDR cannot be stopped to edit a file. Each change
is versioned, carries who made it, is written to the access log, and decides
the next request on every replica without a restart. ferroehr.toml keeps
only what the server needs before it can reach its database or trust a
caller, such as the listeners, the issuers, admin_role, the deployment
profile and the security floors.
Operational policy takes two forms. Who may do what, which systems call FerroEHR, what each may write, import or export, the terms of each federation partner and the privileges a professional holds beyond clinical access, is openEHR demographic data in the party store: the policy parties, managed through the Demographic API, with every change a version with its committer. Policy that has no home in the openEHR demographic model is an admin register. FerroEHR stores, validates and protects the policy parties, and every request resolves its caller’s grants from them before any check runs. The checks that decide on a grant are listed under What the grants decide and What a system client may do.
No openEHR specification governs operational policy or where it is kept, and none gives a party an authorization meaning. The classes are the openEHR Reference Model’s (RM Demographic Information Model); the design on this page is FerroEHR’s own, and the points that are its own for the policy parties are under Own design.
- What stays in the configuration
- The policy parties
- The model
- Who writes and reads a policy party
- How a request reads its grants
- The access control terminology
- What the grants decide
- The first grant
- The grant ceiling
- Federation agreements
- For a check that reads a grant
- What a system client may do
- The example policy archetypes
- Worked examples
- Own design
- Caller facts: clearances, purposes and care relationships
- Representatives in the patient portal
- The admin registers
- The access policy
What stays in the configuration
The configuration file keeps what the server needs before it can reach its store, or before it can trust anything:
- the listeners, the database, TLS, telemetry, the audit sinks and record signing;
- the token issuers with their keys and trust bounds,
[auth] product_scope, and[authz.rbac] admin_rolewithrole_issuers: the authority that writes policy parties; - the party mapping of the deployment’s own people (
[authz.party_binding]), which is digest-locked. Each section defaults to FerroEHR’s default demographic definitions, which the server stores at boot as it stores the policy definitions, so a deployment that uses them sets no mapping key and one with templates of its own sets the sections that name them; the policy parties take no key; - the provider the instance acts for (
[authz.party_binding] provider); - the security floors: the assurance minimum,
ehr_access_defaultand the cohort thresholds; - break-glass:
[authz.rbac] emergency_access_roleand[audit] emergency_purpose_codes, which must work as configured when the party store does not answer; - the Basic users as credentials alone,
userwith its password hash, since a secret never becomes versioned openEHR data, and[authz.rbac] first_admin, the one Basic user that holdsadmin_roleand the product scope from the file: the first administrator, who writes the first policy parties; [auth.smart] patient_issuers, the issuers whoseehrIdclaim the server believes, which is issuer trust;- the grant ceiling,
[authz.grants] allowed: the operations the party store may grant at all, so a compromised administrator account cannot grant more than the operator allows (The grant ceiling).
Everything else is CDR data: who may do what is party data (below), and the policy with no demographic home is an admin register. The privileges beyond clinical access have no configuration key: reading one subject’s access log, acting as an EHDS Art. 10 access service, importing, and reading protected national identifiers are each a grant of its own operation (What the grants decide).
The policy parties
The model
The actor. A system is an AGENT (“any kind of agent, including
devices, software systems”, RM AGENT), an organisation is an
ORGANISATION and a person is a PERSON. Each is identified by a
DV_IDENTIFIER in PARTY.details (RM §Party Identification: identifiers
given by organisations “are treated as any other attribute of a Party”).
A system’s AGENT carries its OAuth 2.0 client_id under the token
issuer: the identifier’s issuer is the issuer URL, its id the
client_id and its type client_id.
What it may do. The actor performs a ROLE (RM ROLE.performer), and
the role’s CAPABILITY holds the grant in its credentials. The openEHR RM
and CKM use a capability for a performer’s qualifications (“Capability
should be backed up by credentials”, RM CAPABILITY), and the professional
ROLE of the default set records a clinician’s registrations that way,
from the CKM individual_credentials archetype. Reading a capability as an
authorization grant is FerroEHR’s own design, and the capability of each
policy ROLE is FerroEHR’s own archetype. The role’s
time_validity bounds the engagement and the capability’s time_validity
bounds the grant. Both are DV_INTERVAL<DV_DATE>, so a bound finer than a
day goes in the credentials, as the Not before and Not after elements.
On whose behalf. A system holds an acts-for PARTY_RELATIONSHIP from its
AGENT to the provider’s ORGANISATION. The RM stores a relationship in
the party at its source (RM §Party Relationships), so the acts-for
relationship is part of the AGENT’s version.
Management. The policy parties are written through the standard
ITS-REST 1.1.0 Demographic API, which marks itself DEVELOPMENT, and
FerroEHR adds no endpoint of its own for them: POST, PUT and DELETE on
/demographic/agent, /demographic/organisation, /demographic/person and
/demographic/role, and POST /demographic/contribution for a change of
several parties in one commit.
GET /demographic/versioned_party/{id}/revision_history is the history of a
grant. A PARTY_RELATIONSHIP changes through an update of its source party,
since the RM stores it there.
Audit. Every change carries its committer in
AUDIT_DETAILS.committer and is an access record of the demographic API, so
who granted what, and when, is recorded twice.
Revocation. A grant ends with a new version of the ROLE whose
time_validity ends before today, or with its deletion. An AGENT that committed
versions is set inactive, never deleted, because it is their committer.
Who writes and reads a policy party
The rule keys on what a party holds, in any archetype or template you model it with, never on its archetype id. A party is a policy party when a version of it holds:
- a
CAPABILITYwhosecredentialshold, anywhere in their tree, aDV_CODED_TEXTof FerroEHR’s operation terminology, terminology idferroehr-operations, such asferroehr-operations::import_ehr; - a
PARTY_RELATIONSHIP, held inline or written on FerroEHR’s own relationship routes, whosenameordetailshold the codeferroehr-operations::acts_for; - a
DV_IDENTIFIERof typeclient_id, which binds an actor to an OAuth 2.0 client.
A deployment that creates an AGENT “Legacy migration” with a ROLE of its
own archetype, whose capability’s credentials hold import_ehr, has written
a policy party; the same ROLE with a code of another terminology is an
ordinary one.
Only a caller holding [authz.rbac] admin_role creates, updates or deletes
one, through its own route or in a POST /demographic/contribution. Any
other caller is answered 403, and the answer names what makes it one, for
example the ROLE … is a policy party, as it holds a capability granting ferroehr-operations::import_ehr: only an administrator writes it. A
SCIM client never writes one, even for a PERSON it provisioned, and
neither does a holder of an access_demographic grant, so no client grants
itself a capability. The rule judges the version before the write as well
as the new one, so a non-administrator can neither change nor delete a
policy party, nor turn one into an ordinary party. Once a version of a party
is a policy party, the party is marked, in the commit’s own transaction, and
the mark is never cleared: every later write of it is an administrator’s.
Only an administrator reads one too: GET of the party, of
/demographic/versioned_party/{id} and its revision_history and
version reads, and of its tags answer 403 to any other caller when
the party carries the mark. A party
an administrator turns into an ordinary one stays an administrator’s to
read, every version of it. Every other party stays readable as before.
AQL over the demographic store applies the same rule. For a caller without
admin_role, a query rooted at any demographic class (PERSON,
ORGANISATION, GROUP, AGENT, ROLE, the abstract PARTY and ACTOR,
or PARTY_RELATIONSHIP), alone or under VERSION, leaves out every version
of a party or relationship that carries the mark. The query answers as if
those parties were not stored, and it is not refused:
- The rule is a condition of the one SQL statement the query runs, so
COUNTand the other aggregates,LIMIT,OFFSETand the RESTfetchandoffsetcount only the parties the caller may read. A page is never short because a policy party was taken out of it, and no row of a policy party leaves the database. - A node the query reaches through
CONTAINS, such as aROLE’sCAPABILITY, or through a path belongs to its party and is left out with it. The party half of a query that joins a party to itsEHRis filtered the same way. - The commit that stores a policy version marks the party, in the same transaction, and nothing clears the mark. The rule reads that mark from the party’s head row, which the query reaches by its key anyway, so it adds no statement and no transaction. The Demographic API read checks the same mark.
- An administrator’s query returns the policy parties.
So FROM AGENT and FROM PARTY never return a system’s AGENT to such a
caller, and FROM PARTY_RELATIONSHIP never returns an acts-for relationship
written as a PARTY_RELATIONSHIP of its own.
Every write and every read is an access record of the Demographic API, with its committer, as any demographic access is.
How a request reads its grants
FerroEHR reads a grant from coded content, never from an archetype or a template id. You model your parties from any archetypes, and a grant holds when the data carries the codes below. The terminology, its codes and the client identifier type are the stable contract.
The operation terminology. Its TERMINOLOGY_ID is
ferroehr-operations. A CAPABILITY grants an operation when its
credentials hold, at any depth, an element whose value is a
DV_CODED_TEXT with that terminology and the operation’s code:
| Code | Operation |
|---|---|
commit_composition | Commit a COMPOSITION on the caller’s own account, within the templates and facilities the grant names |
import_ehr | Import an EHR |
import_ehr_extract | Import an EHR extract |
export_ehr_extract | Export an EHR extract |
federated_person_access | Admit a federation partner’s persons under a data-sharing agreement |
federated_organisation_access | Admit a federation partner organisation itself under a data-sharing agreement |
read_subject_audit | Read the access log of one subject |
access_service | Act as an EHDS Article 10 access service, held to a subject’s opt-out |
read_identifiers | Read a party’s protected national identifiers |
data_origin | Be an origin of data: the grant’s origin is the id the party’s data carry |
read_change_feed | Read the commit-event outbox as the reader the grant’s reader names |
scim_provision | Provision Users and Groups over SCIM, owning the binding keys of the grant’s binding_issuer |
hold_roles | Hold, as a Basic user, the roles its role elements name |
hold_scopes | Hold, as a Basic user, the SMART scopes its scope elements name |
create_at_login | Create a provisional PERSON at the first login of a person no party carries, under the admission conditions the grant names (Just-in-time admission) |
query_system_wide | Count the client’s system/aql-* scope, which reaches every query over every EHR (SMART on openEHR, master08 §Resource Scopes) |
access_demographic | Reach the DEMOGRAPHIC API, which no SMART on openEHR scope covers |
sign_in_persons | Be a client the persons of its token issuer sign in through: a person’s token through it is the person’s own, or their representative’s |
act_for_persons | Act for the persons of its token issuer, as a third-party client or as the RFC 8693 actor a person’s token names in act |
access_without_scope | Be admitted, as a system caller whose token carries no resource scope, to every SMART on openEHR requirement |
write_care_relationship | Write the member_of and under_care_of care relationships through the Demographic API, as a hospital’s ADT system does (The access control terminology) |
write_access_policy | Write the controller’s ACCESS_POLICY |
The same terminology names the elements that qualify a grant, by the code
in the element’s name:
| Code | Element |
|---|---|
not_before | A DV_DATE_TIME: the instant before which the grant does not hold |
not_after | A DV_DATE_TIME: the instant after which the grant does not hold |
template | A template the grant writes |
facility | A facility the grant covers: an element whose value is a DV_IDENTIFIER (its issuer and id), or a CLUSTER of issuer with identifier or identifier_prefix |
issuer | In a facility CLUSTER: the issuer of the facility identifier |
identifier | In a facility CLUSTER: the facility identifier |
identifier_prefix | In a facility CLUSTER: a prefix every facility identifier it covers starts with |
origin | relay or device, as a DV_CODED_TEXT of this terminology or as a DV_TEXT |
relay | As an origin: the grant commits relayed records of a person’s act, such as HL7 v2 |
device | As an origin: the grant commits a device’s registrations, which no person made |
device_identifier_issuer | The issuer of a device identifier a device grant may name as its composer |
subject_namespace | The EHR_STATUS.subject.external_ref.namespace of the EHRs it touches, as a DV_TEXT; or the DV_CODED_TEXT no_subject_namespace of this terminology for the EHRs whose subject has no external_ref |
no_subject_namespace | As a subject_namespace value: the EHRs whose EHR_STATUS.subject carries no external_ref namespace, such as an anonymous record’s PARTY_SELF, and no other EHR |
creating_system | On an import grant: a creating_system_id whose wrapped committers the import may carry |
origin | On data_origin: the origin id, exactly one |
reader | On read_change_feed: the reader’s name, exactly one, matching ^[a-z][a-z0-9-]{0,62}$ |
binding_issuer | On scim_provision: the identifier_issuer of the binding keys the client owns, exactly one |
token_scope | On scim_provision: a scope the client’s access token must hold, at least one |
acts_for | On a PARTY_RELATIONSHIP: the source acts for the target |
represents | On a PARTY_RELATIONSHIP: the source represents the target, the subject, on the subject’s own record (Representatives in the patient portal); it makes no policy party |
role | A DV_TEXT: a role a hold_roles grant gives |
scope | A DV_TEXT: a SMART scope a hold_scopes grant gives |
login_issuer | A text or DV_URI: a token issuer whose first logins a create_at_login grant admits |
admit_idp | A text: an identity provider an admitted login comes from |
admit_group | A text: a group an admitted login holds |
admit_role | A text: a role an admitted login holds |
admit_assurance | A text, low, substantial or high: the lowest assurance level an admitted login carries |
admit_guests | A DV_BOOLEAN: whether a guest is admitted too |
sensitivity_clearance | A DV_CODED_TEXT of the jurisdiction’s sensitivity terminology: a sensitivity the capability clears |
permitted_purpose | A DV_CODED_TEXT of the jurisdiction’s purpose-of-use terminology: a purpose the capability lets its holder declare |
member_of | On a PARTY_RELATIONSHIP: the source, a professional’s PERSON, is a member of the target, a care-team GROUP; or the source, a provider ORGANISATION, is a member of the target GROUP |
under_care_of | On a PARTY_RELATIONSHIP: the source, a patient’s PERSON, is under the care of the target, a team GROUP or an organisational unit |
The terms of a federation agreement are named by codes of the same
terminology (Federation agreements), and the value of
an element any of these codes names is that element’s value, never an
operation. A code of another terminology grants nothing, and a code of
ferroehr-operations that no table defines is refused at commit.
A capability that codes several operations grants each of them. A scope
element holds a DV_TEXT, a DV_CODED_TEXT or a DV_IDENTIFIER, whose id
is read. A ROLE whose data_origin, read_change_feed or scim_provision
capability names its element other than as the table says is refused with
400 at its commit.
Who acts. A client is any ACTOR (AGENT, PERSON, ORGANISATION or
GROUP) that carries, anywhere in its details or identities, a
DV_IDENTIFIER whose type is client_id, whose issuer is the token
issuer and whose id is the OAuth 2.0 client_id. One party names a client:
a second party carrying the same issuer and client_id is refused with
409.
Whose grants. Every authenticated request resolves its caller’s grants
once: a system client, a token of a machines issuer, and a verified
external caller of a federation issuer, by its issuer and client_id; a
person the login binding bound to a PERSON, by that party;
anyone else to no grants. Its grants are the operations the capabilities of
the ROLEs whose performer names that party grant, when:
- the client and the
ROLEarecompleteorincomplete; a client set inactive holds no grant; - the
ROLE’stime_validityand the capability’stime_validityboth hold the request’s date, read in UTC. An absenttime_validityholds every date; - the request’s instant is not before
not_beforeand not afternot_after, when the credentials carry them. ADV_DATE_TIMEwithout an offset is read in UTC, and one that does not read as a date-time makes the capability hold on no date; [authz.grants] allowedadmits the operation.
A change takes effect on the next request with no restart. Each replica keeps
the grants in memory and reads them again when a commit changes one: the
commit notifies every replica through PostgreSQL, the request that made the
change reads them before it answers, and a replica whose notification
listener is down reads them on every request. When the grants must be read
and the database cannot answer, the request is answered 503.
ferroehr party-binding refill rebuilds the grants from the party versions,
with the rest of the binding side table.
The access control terminology
The access directives of an EHR, the controller’s access policy and the
caller facts they are read against are coded in ferroehr-operations too.
The groups below are the stable contract: the access evaluator and the
access write checks read these codes and no archetype id, so you model
consent, restriction and care relationships with your own archetypes and
bind their coded attributes to these groups. A value of another terminology,
or a code of ferroehr-operations outside the group its attribute is bound
to, is refused. Each code is the group’s rubric until codes are assigned.
openEHR defines no access control terminology (RM EHR IM,
ACCESS_CONTROL_SETTINGS: “Currently implementation dependent”), so every
group is FerroEHR’s own design.
| Group | Codes | Read from |
|---|---|---|
access default | open, restricted, consent_required | ACCESS_DIRECTIVE_SETTINGS.default_access: the disposition of an EHR where no directive applies |
access directive kind | consent, restriction, opt_out, delegation | ACCESS_DIRECTIVE.kind. A restriction (EHDS Art. 8) is always a deny; an opt_out (EHDS Art. 10) is a deny of the whole record |
access effect | permit, deny | ACCESS_DIRECTIVE.effect; a deny overrides a permit |
access relationship | care, representative, proxy | ACCESS_ACTOR_SCOPE.relationship: the caller’s relationship to the subject |
access caller kind | professional, access_service, subject, representative, system | ACCESS_ACTOR_SCOPE.caller_kind. An access_service caller is one holding the access_service grant |
access operation | read, write, export, query | ACCESS_DIRECTIVE.operations: the operation classes a directive applies to. No capability grants one |
access sensitivity clearance | sensitivity_clearance | The name of a credentials element whose value is a sensitivity code |
access permitted purpose | permitted_purpose | The name of a credentials element whose value is a purpose-of-use code |
care relationship | member_of, under_care_of | The name of a PARTY_RELATIONSHIP |
access refusal | refused-opt-out, refused-restricted, refused-consent-denied, refused-sensitivity, refused-no-care-relationship, refused-purpose-missing, refused-purpose-not-permitted, refused-consent-required | The access record of a refusal |
access log withheld | accessor_party, accessor_provider, accessor_roles, accessor_groups | ACCESS_LOG_RESTRICTION.withheld: the accessor members the access log’s subject view withholds under EHDS Art. 9(3) |
Two grants of the operation table belong to access control:
write_care_relationship and write_access_policy.
Codes FerroEHR does not own. Sensitivity, data category, purpose of use
and legal ground are coded in the terminology your jurisdiction names, such
as HL7 v3 Confidentiality and ActCode, the EHDS categories and HL7
PurposeOfUse. FerroEHR compares them by terminology id and code, and refuses
one coded in ferroehr-operations, which holds none.
Refusals. refused-opt-out and refused-restricted answer 404, as if
the data did not exist, and appear only in the access record, so that a
restriction or an opt-out is not visible to the caller (EHDS Art. 8). Every
other refusal answers 403 and names its code. The access record of every
refusal names its code, the step that refused and the directive or policy of
that step, and the record of an admitted access names the grounds it rested
on (The openEHR access-log entry).
What the grants decide
Each check below reads the grants of the request’s caller, beside what the
configuration grants. A change an administrator commits decides the next
request on every replica with no restart, and each operation must also be in
[authz.grants] allowed.
The committers an import may carry. An IMPORTED_VERSION keeps the
original’s commit_audit, so an import could make a version read as a local
colleague’s act. A wrapped committer naming a party of this CDR, or carrying a
login of its issuers, is refused with 403 unless the version’s
creating_system_id is one a creating_system element of the caller’s
import_ehr grant (for POST /ehr with an extract) or import_ehr_extract
grant (for an extract import into an existing EHR) names. This node’s own
system id is never trusted that way.
The origins of data (EHDS Annex II 3.4). An origin is recognised when a
data_origin grant in force names it in its origin element: a retention
period may be keyed on it (PUT {ext}/admin/retention/policy), and an access
directive’s data scope may name it. A body with no FEEDER_AUDIT, committed by the holder of
such a grant, is stamped with that origin in version.origins; any other
direct commit keeps this server’s system_id. A system that only sends data
through a feed, and never commits itself, holds the grant on an AGENT of
its own with no client identifier. A committer whose grants name two origins
commits no body without a FEEDER_AUDIT (403), since that body would come
from neither.
The readers of the change feed. A reader of the commit-event outbox is
named by the reader element of a read_change_feed grant in force. While
one is, every commit writes its outbox row; with none, no commit does. The
reader registry is reconciled with the grants at boot, on every feed call and
before every prune, so a reader no grant names any more is inactive and holds
the prune back no longer. GET {ext}/admin/outbox/{reader} and its
acknowledgement answer 404 for a reader no grant names, and 403 to a caller
whose own read_change_feed grant does not name it.
The SCIM provisioning clients. A request to /scim/v2/ is admitted for a
client-credentials token whose client’s ACTOR holds a scim_provision grant
in force. Its binding_issuer is the identifier_issuer of an
[[auth.party]] table that no other client’s grant names, and the token must
hold one of its token_scope values (403 with insufficient_scope
otherwise). The client owns the Users whose binding key that issuer issues.
The contacts of a deleted User are erased for every client that ever held the
grant, so ending a grant stops no erasure.
A Basic user’s roles and scopes. A Basic user is a credential alone.
Bound to a PERSON, it holds the roles the role elements of its
hold_roles grants name and the scopes the scope elements of its
hold_scopes grants name; a privileged role is never held this way. The one
exception is [authz.rbac] first_admin, which holds admin_role and the
product scope from the configuration. Every gate reads them: the role gate,
the SMART on openEHR scopes, the access evaluator and the access record. A token’s roles and
scopes come from the token alone, since its issuer is their authority.
Which clients a person’s token comes through. While ferrohealth-smart
classifies a token, it asks the grants of the ACTOR carrying the client
identifier under the token’s issuer: a person’s token through a client
granted sign_in_persons is the person’s, one through a client granted
act_for_persons is that client acting for the person, and one through any
other client is refused with 401. An RFC 8693 actor a person’s token names
is a delegate when the ACTOR carrying its sub under its issuer is granted
act_for_persons, and a system caller whose token carries no resource scope
meets every SMART on openEHR requirement when its ACTOR is granted
access_without_scope. The answer comes from the copy each replica holds, so
it adds no transaction, and a party store that cannot answer refuses the
token with 503.
Importing. message_import_ehr admits a caller with an import_ehr
grant whose subject_namespace names the EHR’s subject namespace;
message_import_ehr_extract the same with an import_ehr_extract grant
(What a system client may do).
Committing and exporting as a system client. A system client commits
under its commit_composition grants and exports under its
export_ehr_extract grants
(What a system client may do).
Reading protected identifiers. GET /admin/party/identifiers admits an
administrator who holds a read_identifiers grant. The administrator role
alone reveals no national identifier.
Reading one subject’s access log. GET /fhir/r4/AuditEvent admits a
caller outside the administrator role that holds a read_subject_audit
grant, for one subject at a time: the patient parameter names exactly one
subject, and without it the call is 403
(Audit trail).
Acting as an access service. A caller with an access_service grant is
an EHDS Art. 10 access service: an EHR whose person opted out reads as
absent to it at every route, query and export, unless it declares one of
[audit] emergency_purpose_codes and acts for no person (Art. 10(2)).
While [authz.grants] allowed does not allow access_service, recording an
opt-out is refused with 400, since it would hold for nobody
(Opt-out from the access services).
A role a token names never grants any of these four: each comes from its
grant alone, under the grant ceiling. The privileged roles of
[authz.rbac], admin_role and emergency_access_role, come from the
configuration and the token issuers role_issuers lists, and never from a
hold_roles grant: a ROLE whose hold_roles grant names one is refused at
commit with 403, and one stored before the role was configured is never
honoured.
For example, a ward clerk who signs in with Basic holds the clerk role
through this capability of a ROLE the clerk’s PERSON performs:
"capabilities": [{
"_type": "CAPABILITY", "archetype_node_id": "at0020",
"name": { "_type": "DV_TEXT", "value": "Ward clerk" },
"credentials": {
"_type": "ITEM_TREE", "archetype_node_id": "at0021", "name": { "_type": "DV_TEXT", "value": "Grant" },
"items": [
{ "_type": "ELEMENT", "archetype_node_id": "at0022", "name": { "_type": "DV_TEXT", "value": "Operation" },
"value": { "_type": "DV_CODED_TEXT", "value": "Hold roles",
"defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "hold_roles" } } },
{ "_type": "ELEMENT", "archetype_node_id": "at0023",
"name": { "_type": "DV_CODED_TEXT", "value": "Role",
"defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "role" } },
"value": { "_type": "DV_TEXT", "value": "WARD_CLERK" } }
]
}
}]
A hold_scopes capability is built the same way, with one scope element
per SMART scope. Both operations are allowed by name in
[authz.grants] allowed, as every other operation.
A SCIM provisioning client’s capability, on a ROLE of your own archetype
with no template (the element names carry the codes):
{ "_type": "CAPABILITY", "archetype_node_id": "at0020",
"name": { "_type": "DV_TEXT", "value": "Provisioning" },
"credentials": { "_type": "ITEM_TREE", "archetype_node_id": "at0021",
"name": { "_type": "DV_TEXT", "value": "Terms" },
"items": [
{ "_type": "ELEMENT", "archetype_node_id": "at0022",
"name": { "_type": "DV_TEXT", "value": "Operation" },
"value": { "_type": "DV_CODED_TEXT", "value": "scim_provision",
"defining_code": { "_type": "CODE_PHRASE",
"terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" },
"code_string": "scim_provision" } } },
{ "_type": "ELEMENT", "archetype_node_id": "at0023",
"name": { "_type": "DV_CODED_TEXT", "value": "binding_issuer",
"defining_code": { "_type": "CODE_PHRASE",
"terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" },
"code_string": "binding_issuer" } },
"value": { "_type": "DV_TEXT", "value": "urn:example:login" } },
{ "_type": "ELEMENT", "archetype_node_id": "at0024",
"name": { "_type": "DV_CODED_TEXT", "value": "token_scope",
"defining_code": { "_type": "CODE_PHRASE",
"terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" },
"code_string": "token_scope" } },
"value": { "_type": "DV_TEXT", "value": "ferroehr/scim" } }
] } }
A change-feed reader’s capability codes read_change_feed with a reader
element (ferrobridge), an origin’s codes data_origin with an origin
element (lab.example), and an importer’s import_ehr grant adds a
creating_system element (legacy.example) for each system it vouches for.
The first grant
An administrator is a person bound to a PERSON, and the PERSONs of a new
deployment usually arrive through a SCIM client, which itself needs a
scim_provision grant. ferroehr party-binding grant breaks that circle on
the operator’s authority: it commits, through the same path a Demographic
API write takes, an AGENT carrying the client identifier (unless an ACTOR
names the client already) and a ROLE it performs whose capability grants
the operation with the elements given. The commits carry the server’s own
committer, the ceiling and the element rules apply, and a client that holds
the operation already gets nothing, so it runs again safely:
ferroehr party-binding grant --issuer https://login.example.org/machines \
--client-id entra-provisioning --operation scim_provision \
--element binding_issuer=urn:example:login --element token_scope=ferroehr/scim
With --basic-user <user> in place of --issuer and --client-id, the
ROLE is performed by the PERSON the Basic user binds to, which must exist
already, for example the scopes a development lane’s users hold:
ferroehr party-binding grant --basic-user clinician --operation hold_scopes \
--element 'scope=user/composition-*.cruds' --element 'scope=user/aql-*.cruds'
Every later grant is an administrator’s write through the Demographic API.
[authz.rbac] first_admin is that administrator in a deployment whose people
sign in with HTTP Basic: it holds admin_role and the product scope before
any policy party exists.
The grant ceiling
[authz.grants] allowed lists the operations the party store may grant. The
default is the narrowest set that still lets a system client write:
["commit_composition"]. That grant reaches only the templates it names,
while an import, an export, a federation agreement and every privilege reach
data beyond one system’s own writes, so you admit each by name:
[authz.grants]
allowed = ["commit_composition", "import_ehr", "export_ehr_extract"]
The environment form is FERROEHR__AUTHZ__GRANTS__ALLOWED, comma-separated.
An empty list lets the party store grant nothing.
A ROLE committed with a capability that codes an operation the ceiling does
not admit is refused with 403, and the problem names the operation and the
key, for example the ROLE grants the operation import_ehr, which [authz.grants] allowed does not admit, so this CDR may not grant it. A grant
already stored, for example before you narrowed the ceiling, is never
honoured, and the server logs the operations it skips when it reads the
grants.
Federation agreements
A federation agreement says what a partner’s verified external persons, or
the partner organisation itself, may do here and on which legal ground. It is
a grant on the partner: the partner’s ACTOR (usually an ORGANISATION)
carries a client_id identifier for each client its federation issuer
issues tokens to, and a ROLE it performs holds one capability per accessor.
A capability coding federated_person_access admits the partner’s named
persons; one coding federated_organisation_access admits the organisation
itself, with no named person. The agreement holds while the grant does: its
time_validity and its not_before and not_after elements. An external
caller is admitted only under the agreement of its accessor kind that its
partner holds on the request, read from the CDR, so a new, changed or ended
agreement takes effect on the next request.
The agreement’s terms are elements of the capability’s credentials, each
named by its ferroehr-operations code:
| Code | Element |
|---|---|
agreement_name, agreement_version | DV_TEXT: the agreement’s name and version |
jurisdiction | DV_TEXT or DV_CODED_TEXT: the ISO 3166-1 alpha-2 code of the jurisdiction |
exchange | DV_TEXT: the kind of exchange |
purpose | DV_CODED_TEXT or DV_TEXT: what the exchange is for |
gdpr_art_6_1, gdpr_art_9_2 | DV_TEXT or DV_CODED_TEXT: the point of GDPR Art. 6(1), a to f, and of Art. 9(2), a to j |
national_provision | DV_TEXT: the provision of the law that applies |
consent | registry (an external consent registry, whose question names the responsible professional) or local: the source of the consent a read is conditioned on; a read must then carry its consent decision reference |
read_scope | DV_TEXT, one per scope: a patient/ scope the callers may read |
template | DV_TEXT, one per template: a template an external person may commit |
discard_window | DV_DURATION of whole hours, such as PT24H: an external person may discard a dispensation of its own point of care within it |
ehdsi_service | patient_summary, eprescription or orcd: the MyHealth@EU service a contact point’s person agreement serves |
requests_per_second, burst | DV_COUNT: the admission rate per caller |
opt_out_override | DV_BOOLEAN: a professional may read an opted-out EHR under an emergency purpose |
access_class | automated or chained: how an organisation’s access is attributed |
requester_log_retention | DV_DURATION of whole years or days, such as P5Y: how long a chained requester keeps its log |
A coded value is read by its code_string in any terminology, a text by its
value. A ROLE whose agreement breaks one of these rules is refused at its
commit with 422, and the problem names every rule it breaks:
- the partner carries a
client_ididentifier, and each identifier’s issuer is an[[auth.issuer]]of kindfederation; - a partner holds one agreement per accessor: a second capability for the same
accessor, in this
ROLEor another, is refused; - every element holds a value of its kind;
- every agreement sets
requests_per_secondandburst, reads onlypatient/scopes, and codes its GDPR points within their articles; - a contact point’s person agreement names its
ehdsi_service, and no other agreement does; - an organisation agreement names its
agreement_name,agreement_version, GDPR points andaccess_class, writes no template (EHDS Art. 13(4)), sets noopt_out_override, takes no consent from aregistry, and its partner is no contact point; - a
chainedorganisation agreement sets arequester_log_retentionat least as long as[audit.store] retention, and its issuer’s[[auth.federation]]table mapscorrelation_idfrom the token, never from a constant.
The partner’s client identifiers are read when the ROLE commits, so commit
the partner first; a contribution lists it before the ROLE. An agreement
that no longer keeps the rules, for example after its partner gained an
identifier of a contact point, admits no caller, and the server logs why.
/management/info lists every agreement in force under binding.agreements,
with its partner’s issuer and client, its accessor, name and legal ground, and
the boot line names each one.
For a check that reads a grant
A check inside a request reads the caller’s grants with
ferroehr::party_binding::grants::capabilities::Capabilities::current(),
which holds them for the duration of the request:
client()is theACTORthe client identifier names, with its state;grants(),of(operation)andholds(operation)are the grants in force, each anOperationwith itsROLE;credentials()of a grant reads its credentials by the code of an element’s name:named,texts,codes,count,boolean, andclustersfor aCLUSTERsuch as a facility;covers(operation, namespaces)is whether one grant of the operation names every subject namespace given; it never holds for none.
What a system client may do
A system client is a token of a machines issuer. It resolves to the
ACTOR carrying its client identifier, and what it may do is what that
party’s grants say. No key of ferroehr.toml declares a system client.
Commit into an EHR. A system client commits only under a
commit_composition grant; otherwise any commit into an EHR is answered
403. Its ACTOR acts for the provider its acts-for relationship targets,
or, with none, for the deployment’s [authz.party_binding] provider. A COMPOSITION is admitted when one commit_composition grant:
- lists its template in a
templateelement, or the commit is403; - has the origin that fits the act. A composer that is a
PARTY_IDENTIFIEDwhose identifier, of an issuer the grant lists as adevice_identifier_issuer, is thefeeder_audit.originating_system_audit.system_idis a device’s registration and needs the origindevice. Any otherCOMPOSITIONrecords a person’s act, needs the originrelay, and names the professional by an identifier, in the composer or in a performer participation (EHDS Art. 13(4)). The wrong origin is403, a person act naming nobody422; - covers the facility the
COMPOSITIONnames, inEVENT_CONTEXT.health_care_facilityor, with no context, infeeder_audit.originating_system_audit.location; otherwise422. The server never writes the facility.
A deletion is held to the templates the same way. A composer that names an
ORGANISATION is 422: the composer is a person.
Import. message_import_ehr needs an import_ehr grant and
message_import_ehr_extract an import_ehr_extract grant, either of which
names in subject_namespace the subject namespace of the EHR: of each
EHR_STATUS the extract carries and, for an extract into an existing EHR,
of that EHR. Any other import is 403, whatever roles the caller holds. The
versions inside an extract keep their original committers only when a
creating_system element of the grant names their creating_system_id.
An EHR whose subject names no namespace. The RM lets
EHR_STATUS.subject be a PARTY_SELF with no external_ref, for an
anonymous record, and a legacy system often holds such EHRs. A grant
reaches them only through a subject_namespace element whose value is the
DV_CODED_TEXT no_subject_namespace of ferroehr-operations, for the
import, the extract import and the export alike. That value covers exactly
those EHRs: a grant naming real namespaces does not reach them, and the
code reaches no EHR whose subject names a namespace. A grant that names no
subject_namespace at all is still refused at its commit with 422.
{ "_type": "ELEMENT", "archetype_node_id": "at0023",
"name": { "_type": "DV_CODED_TEXT", "value": "Subject namespace",
"defining_code": { "_type": "CODE_PHRASE",
"terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" },
"code_string": "subject_namespace" } },
"value": { "_type": "DV_CODED_TEXT", "value": "No subject namespace",
"defining_code": { "_type": "CODE_PHRASE",
"terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" },
"code_string": "no_subject_namespace" } } }
Export. A system client exports an EHR with message_export_ehrs or
message_export_ehr_extracts only under an export_ehr_extract grant whose
subject_namespace names the EHR’s subject namespace; any other export by a
system client is 403. A person’s export is decided by the access rules it
already meets.
Attribution. Every commit of a system client, an import included,
records as its committer a PARTY_IDENTIFIED named by the client, with the
client identifier under the token issuer and an external_ref to the client’s
ACTOR (PARTY_REF type ACTOR). Every access record of a system client
names the ACTOR as its party and the provider by the first DV_IDENTIFIER
in the details of the ORGANISATION its acts-for relationship targets, or
the deployment’s provider when it names none (EHDS Annex II 3.2(a)).
Checked at commit. A ROLE whose grant lacks the terms its operation is
checked by is refused with 422, naming the capability: a
commit_composition grant without an origin coding relay or device, a
device grant without a device_identifier_issuer, a facility CLUSTER
without one issuer and exactly one of identifier and identifier_prefix,
and an import or export grant without a subject_namespace.
The example policy archetypes
FerroEHR ships the archetypes below as examples of the model. They carry
the codes: each ROLE’s capability holds an Operation element whose value
is a ferroehr-operations code, the acts-for relationship holds
ferroehr-operations::acts_for in its details, and the AGENT holds a
client_id identifier. A party of one of them is a policy party because of
those codes, as a party of your own archetypes is. No configuration key
names them.
| Kind | Archetype |
|---|---|
System AGENT | openEHR-DEMOGRAPHIC-AGENT.system.v1 |
| Acts-for relationship | openEHR-DEMOGRAPHIC-PARTY_RELATIONSHIP.acts_for.v1 |
System client ROLE | openEHR-DEMOGRAPHIC-ROLE.system_client.v1 |
Federation partner ROLE | openEHR-DEMOGRAPHIC-ROLE.federation_partner.v1 |
Privileged ROLE | openEHR-DEMOGRAPHIC-ROLE.privileged.v1 |
Default definitions. The binary carries a default template of each,
version 1.0.0 (for example openEHR-DEMOGRAPHIC-ROLE.system_client.v1.0.0).
At boot FerroEHR stores each one through the normal definition path only
when no definition of its id is stored. It never overwrites a stored
definition, never refuses one you changed, and never seeds over your change.
After that they are ordinary definitions: upload a new version, a renamed or
a specialised template through the definition API, as for any other. The
default demographic definitions
are stored at boot the same way, the healthcare provider ORGANISATION the
examples below write among them. Every write of a policy party is validated against its own template. The sources
and every change from them are in
app/ferroehr/assets/definitions/policy/PROVENANCE.md.
The contract. The ferroehr-operations codes and the client_id
identifier type make a party a policy party, in any archetype, and FerroEHR
reads the terms of a system client’s grant by the codes in its elements’
names, never by a node id. The archetype ids and the node ids below describe
the examples, and every template and version built on an archetype keeps
them. A breaking change to them is a new archetype major version (.v2),
which FerroEHR does not take for the .v1 kind. Each grant is a
CAPABILITY at /capabilities[id6], its kind the coded name, its
credentials at /capabilities[id6]/credentials[id8], and its time_validity the day bounds.
| Archetype | Field | Node path | Type |
|---|---|---|---|
AGENT.system | Client identifier (issuer the token issuer, id the client_id, type client_id) | /details[id2]/items[id3] | DV_IDENTIFIER |
AGENT.system | Name | /identities[id4]/details[id5]/items[id6] | DV_TEXT |
PARTY_RELATIONSHIP.acts_for | Type (its name) | at10 acts for | DV_CODED_TEXT |
PARTY_RELATIONSHIP.acts_for | Agreement reference | /details[id3]/items[id4] | DV_TEXT |
PARTY_RELATIONSHIP.acts_for | Acts-for code, ferroehr-operations::acts_for | /details[id3]/items[id6] | DV_CODED_TEXT |
every policy ROLE | Kind of grant (the capability’s name) | /capabilities[id6]/name | DV_CODED_TEXT |
every policy ROLE | Operation, a ferroehr-operations code | /capabilities[id6]/credentials[id8]/items[id90] | DV_CODED_TEXT |
ROLE.system_client | Template written, named template | /capabilities[id6]/credentials[id8]/items[id9] | DV_TEXT |
ROLE.system_client | Facility, named facility: issuer, identifier, identifier prefix, named issuer, identifier, identifier_prefix | /capabilities[id6]/credentials[id8]/items[id10]/items[id11], [id12], [id13] | DV_TEXT |
ROLE.system_client | Device identifier issuer, named device_identifier_issuer | /capabilities[id6]/credentials[id8]/items[id14] | DV_TEXT |
ROLE.system_client | Not before, not after, authorisation reference | /capabilities[id6]/credentials[id8]/items[id15], [id16], [id17] | DV_DATE_TIME, DV_DATE_TIME, DV_TEXT |
ROLE.system_client | Origin, named origin: relay or device | /capabilities[id6]/credentials[id8]/items[id18] | DV_CODED_TEXT |
ROLE.system_client | Subject namespace, named subject_namespace | /capabilities[id6]/credentials[id8]/items[id19] | DV_TEXT |
ROLE.federation_partner | Kind (accessor) | at10 person, at11 organisation | |
ROLE.federation_partner | Agreement name, version, jurisdiction, exchange | /capabilities[id6]/credentials[id8]/items[id9], [id10], [id11], [id12] | DV_TEXT |
ROLE.federation_partner | Purpose | /capabilities[id6]/credentials[id8]/items[id13] | DV_CODED_TEXT |
ROLE.federation_partner | Legal ground: GDPR Art. 6(1), Art. 9(2), the provision of the law that applies | /capabilities[id6]/credentials[id8]/items[id14]/items[id15], [id16], [id17] | DV_TEXT |
ROLE.federation_partner | Consent source: registry or local | /capabilities[id6]/credentials[id8]/items[id18] | DV_CODED_TEXT |
ROLE.federation_partner | Read scope, template written | /capabilities[id6]/credentials[id8]/items[id19], [id20] | DV_TEXT |
ROLE.federation_partner | Discard window | /capabilities[id6]/credentials[id8]/items[id22] | DV_DURATION |
ROLE.federation_partner | MyHealth@EU service: patient_summary, eprescription or orcd | /capabilities[id6]/credentials[id8]/items[id23] | DV_CODED_TEXT |
ROLE.federation_partner | Caller rate: requests per second, burst | /capabilities[id6]/credentials[id8]/items[id24]/items[id25], [id26] | DV_COUNT |
ROLE.federation_partner | Opt-out override | /capabilities[id6]/credentials[id8]/items[id27] | DV_BOOLEAN |
ROLE.federation_partner | Access class: automated or chained | /capabilities[id6]/credentials[id8]/items[id28] | DV_CODED_TEXT |
ROLE.federation_partner | Requester log retention | /capabilities[id6]/credentials[id8]/items[id29] | DV_DURATION |
ROLE.federation_partner | Not before, not after, authorisation reference | /capabilities[id6]/credentials[id8]/items[id30], [id31], [id32] | DV_DATE_TIME, DV_DATE_TIME, DV_TEXT |
ROLE.privileged | Kind (privilege) | at10 subject audit, at11 access service, at12 identifier reader, at13 import | |
ROLE.privileged | Not before, not after, authorisation reference | /capabilities[id6]/credentials[id8]/items[id9], [id10], [id11] | DV_DATE_TIME, DV_DATE_TIME, DV_TEXT |
Worked examples
The examples use the base path /ferroehr/rest/openehr/v1, send
Content-Type: application/json and Prefer: return=representation, and
run as an administrator. The party ids are examples: use the ids your
server returns in the Location header and the body.
The provider this instance acts for is an ORGANISATION named
9d2f4a7e-3c1b-4e8a-9f60-2b7d5c8e1a40, and the federation partner below is
the ORGANISATION 7c4e9a2b-1f6d-4b3e-9c8a-5d2e0f7b1a36. The default set’s
healthcare provider ORGANISATION (openEHR-DEMOGRAPHIC-ORGANISATION.healthcare_provider.v1.0.0,
on Default demographic definitions)
records both, identified by their provider identifier. Neither is a policy
party, so any demographic writer may create them.
A system client
A laboratory relay commits laboratory results into EHRs at one facility.
First its AGENT, POST /demographic/agent:
{
"_type": "AGENT",
"archetype_node_id": "openEHR-DEMOGRAPHIC-AGENT.system.v1",
"archetype_details": {
"_type": "ARCHETYPED",
"archetype_id": { "_type": "ARCHETYPE_ID", "value": "openEHR-DEMOGRAPHIC-AGENT.system.v1" },
"template_id": { "_type": "TEMPLATE_ID", "value": "openEHR-DEMOGRAPHIC-AGENT.system.v1.0.0" },
"rm_version": "1.1.0"
},
"name": { "_type": "DV_TEXT", "value": "System agent" },
"details": {
"_type": "ITEM_TREE", "archetype_node_id": "id2", "name": { "_type": "DV_TEXT", "value": "Identifiers" },
"items": [{
"_type": "ELEMENT", "archetype_node_id": "id3", "name": { "_type": "DV_TEXT", "value": "Identifier" },
"value": {
"_type": "DV_IDENTIFIER",
"issuer": "https://login.example.org/machines",
"id": "lab-relay",
"type": "client_id"
}
}]
},
"identities": [{
"_type": "PARTY_IDENTITY", "archetype_node_id": "id4", "name": { "_type": "DV_TEXT", "value": "Name" },
"details": {
"_type": "ITEM_TREE", "archetype_node_id": "id5", "name": { "_type": "DV_TEXT", "value": "Items" },
"items": [{
"_type": "ELEMENT", "archetype_node_id": "id6", "name": { "_type": "DV_TEXT", "value": "Name" },
"value": { "_type": "DV_TEXT", "value": "Laboratory relay" }
}]
}
}]
}
Its grant is a ROLE it performs, POST /demographic/role, with the
AGENT 5b8e2c91-7d4a-4f3e-8a1c-6e9f0b2d4c73 the first call returned as
performer. Its capability grants commit_composition with the origin
relay, the template it writes and the facility it writes at, each element
named by its ferroehr-operations code. A system that also registers
device measurements holds a second capability with the origin device and
its device_identifier_issuer.
{
"_type": "ROLE",
"archetype_node_id": "openEHR-DEMOGRAPHIC-ROLE.system_client.v1",
"archetype_details": {
"_type": "ARCHETYPED",
"archetype_id": { "_type": "ARCHETYPE_ID", "value": "openEHR-DEMOGRAPHIC-ROLE.system_client.v1" },
"template_id": { "_type": "TEMPLATE_ID", "value": "openEHR-DEMOGRAPHIC-ROLE.system_client.v1.0.0" },
"rm_version": "1.1.0"
},
"name": { "_type": "DV_TEXT", "value": "System client" },
"identities": [{
"_type": "PARTY_IDENTITY", "archetype_node_id": "id2", "name": { "_type": "DV_TEXT", "value": "Role name" },
"details": {
"_type": "ITEM_TREE", "archetype_node_id": "id3", "name": { "_type": "DV_TEXT", "value": "Name" },
"items": [{
"_type": "ELEMENT", "archetype_node_id": "id4", "name": { "_type": "DV_TEXT", "value": "Full name" },
"value": { "_type": "DV_TEXT", "value": "Laboratory relay writes" }
}]
}
}],
"performer": {
"_type": "PARTY_REF", "namespace": "demographic", "type": "AGENT",
"id": { "_type": "HIER_OBJECT_ID", "value": "5b8e2c91-7d4a-4f3e-8a1c-6e9f0b2d4c73" }
},
"time_validity": {
"_type": "DV_INTERVAL",
"lower": { "_type": "DV_DATE", "value": "2026-12-01" },
"lower_unbounded": false, "upper_unbounded": true,
"lower_included": true, "upper_included": false
},
"capabilities": [{
"_type": "CAPABILITY", "archetype_node_id": "id6", "name": { "_type": "DV_TEXT", "value": "Relay" },
"credentials": {
"_type": "ITEM_TREE", "archetype_node_id": "id8", "name": { "_type": "DV_TEXT", "value": "Grant" },
"items": [
{
"_type": "ELEMENT", "archetype_node_id": "id90", "name": { "_type": "DV_TEXT", "value": "Operation" },
"value": { "_type": "DV_CODED_TEXT", "value": "Commit composition", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "commit_composition" } }
},
{
"_type": "ELEMENT", "archetype_node_id": "id18",
"name": { "_type": "DV_CODED_TEXT", "value": "Origin", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "origin" } },
"value": { "_type": "DV_CODED_TEXT", "value": "Relay", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "relay" } }
},
{
"_type": "ELEMENT", "archetype_node_id": "id9",
"name": { "_type": "DV_CODED_TEXT", "value": "Template written", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "template" } },
"value": { "_type": "DV_TEXT", "value": "openEHR-EHR-COMPOSITION.report-result.v1" }
},
{
"_type": "CLUSTER", "archetype_node_id": "id10",
"name": { "_type": "DV_CODED_TEXT", "value": "Facility", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "facility" } },
"items": [
{
"_type": "ELEMENT", "archetype_node_id": "id11",
"name": { "_type": "DV_CODED_TEXT", "value": "Issuer", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "issuer" } },
"value": { "_type": "DV_TEXT", "value": "urn:oid:2.16.528.1.1007.3.3" }
},
{
"_type": "ELEMENT", "archetype_node_id": "id12",
"name": { "_type": "DV_CODED_TEXT", "value": "Identifier", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "identifier" } },
"value": { "_type": "DV_TEXT", "value": "01234567" }
}
]
}
]
}
}]
}
Then a new version of the AGENT, PUT /demographic/agent/{uid} with the
If-Match of its version, that names the ROLE it performs and the
provider it acts for. A relationship is stored in its source party, and the
AGENT’s id exists only once the first call returns, so the acts-for
relationship goes in this second version.
{
"_type": "AGENT",
"archetype_node_id": "openEHR-DEMOGRAPHIC-AGENT.system.v1",
"archetype_details": {
"_type": "ARCHETYPED",
"archetype_id": { "_type": "ARCHETYPE_ID", "value": "openEHR-DEMOGRAPHIC-AGENT.system.v1" },
"template_id": { "_type": "TEMPLATE_ID", "value": "openEHR-DEMOGRAPHIC-AGENT.system.v1.0.0" },
"rm_version": "1.1.0"
},
"name": { "_type": "DV_TEXT", "value": "System agent" },
"details": {
"_type": "ITEM_TREE", "archetype_node_id": "id2", "name": { "_type": "DV_TEXT", "value": "Identifiers" },
"items": [{
"_type": "ELEMENT", "archetype_node_id": "id3", "name": { "_type": "DV_TEXT", "value": "Identifier" },
"value": {
"_type": "DV_IDENTIFIER",
"issuer": "https://login.example.org/machines",
"id": "lab-relay",
"type": "client_id"
}
}]
},
"identities": [{
"_type": "PARTY_IDENTITY", "archetype_node_id": "id4", "name": { "_type": "DV_TEXT", "value": "Name" },
"details": {
"_type": "ITEM_TREE", "archetype_node_id": "id5", "name": { "_type": "DV_TEXT", "value": "Items" },
"items": [{
"_type": "ELEMENT", "archetype_node_id": "id6", "name": { "_type": "DV_TEXT", "value": "Name" },
"value": { "_type": "DV_TEXT", "value": "Laboratory relay" }
}]
}
}],
"roles": [{
"_type": "PARTY_REF", "namespace": "demographic", "type": "ROLE",
"id": { "_type": "HIER_OBJECT_ID", "value": "e41c7b2a-6d3f-4a9e-8b05-2f7d1c9e3a68" }
}],
"relationships": [{
"_type": "PARTY_RELATIONSHIP",
"archetype_node_id": "openEHR-DEMOGRAPHIC-PARTY_RELATIONSHIP.acts_for.v1",
"name": {
"_type": "DV_CODED_TEXT", "value": "Acts for",
"defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "local" }, "code_string": "at10" }
},
"details": {
"_type": "ITEM_TREE", "archetype_node_id": "id3", "name": { "_type": "DV_TEXT", "value": "Details" },
"items": [{
"_type": "ELEMENT", "archetype_node_id": "id6", "name": { "_type": "DV_TEXT", "value": "Acts-for code" },
"value": {
"_type": "DV_CODED_TEXT", "value": "Acts for",
"defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "acts_for" }
}
}]
},
"source": {
"_type": "PARTY_REF", "namespace": "demographic", "type": "AGENT",
"id": { "_type": "HIER_OBJECT_ID", "value": "5b8e2c91-7d4a-4f3e-8a1c-6e9f0b2d4c73" }
},
"target": {
"_type": "PARTY_REF", "namespace": "demographic", "type": "ORGANISATION",
"id": { "_type": "HIER_OBJECT_ID", "value": "9d2f4a7e-3c1b-4e8a-9f60-2b7d5c8e1a40" }
}
}]
}
A backend client and a demographic client
A reporting job queries every EHR with a system/aql-* scope, and a master
patient index reads and writes persons through the DEMOGRAPHIC API. Neither
is a key in ferroehr.toml: each is a grant of the client’s AGENT, read on
every request. A system/aql-* scope “would grant access to all registered
and ad-hoc AQL queries system-wide” (SMART on openEHR, master08 §Resource
Scopes), so it counts only for a client granted query_system_wide; no
SMART on openEHR scope covers demographic data, so the DEMOGRAPHIC API admits
a client granted access_demographic, or a caller holding the
[auth] product_scope.
Both operations reach beyond one system’s own writes, so the ceiling admits each by name:
[authz.grants]
allowed = ["commit_composition", "query_system_wide", "access_demographic"]
The client’s AGENT is written as above, and its grant is a ROLE it
performs, POST /demographic/role. One ROLE can carry both operations; a
deployment that runs the two as separate clients gives each its own AGENT
and ROLE.
{
"_type": "ROLE",
"archetype_node_id": "openEHR-DEMOGRAPHIC-ROLE.system_client.v1",
"archetype_details": {
"_type": "ARCHETYPED",
"archetype_id": { "_type": "ARCHETYPE_ID", "value": "openEHR-DEMOGRAPHIC-ROLE.system_client.v1" },
"template_id": { "_type": "TEMPLATE_ID", "value": "openEHR-DEMOGRAPHIC-ROLE.system_client.v1.0.0" },
"rm_version": "1.1.0"
},
"name": { "_type": "DV_TEXT", "value": "System client" },
"identities": [{
"_type": "PARTY_IDENTITY", "archetype_node_id": "id2", "name": { "_type": "DV_TEXT", "value": "Role name" },
"details": {
"_type": "ITEM_TREE", "archetype_node_id": "id3", "name": { "_type": "DV_TEXT", "value": "Name" },
"items": [{
"_type": "ELEMENT", "archetype_node_id": "id4", "name": { "_type": "DV_TEXT", "value": "Full name" },
"value": { "_type": "DV_TEXT", "value": "Reporting and patient index" }
}]
}
}],
"performer": {
"_type": "PARTY_REF", "namespace": "demographic", "type": "AGENT",
"id": { "_type": "HIER_OBJECT_ID", "value": "5b8e2c91-7d4a-4f3e-8a1c-6e9f0b2d4c73" }
},
"capabilities": [{
"_type": "CAPABILITY", "archetype_node_id": "id6", "name": { "_type": "DV_TEXT", "value": "Reporting" },
"credentials": {
"_type": "ITEM_TREE", "archetype_node_id": "id8", "name": { "_type": "DV_TEXT", "value": "Grant" },
"items": [
{
"_type": "ELEMENT", "archetype_node_id": "id90", "name": { "_type": "DV_TEXT", "value": "Operation" },
"value": {
"_type": "DV_CODED_TEXT", "value": "Query system-wide",
"defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "query_system_wide" }
}
},
{
"_type": "ELEMENT", "archetype_node_id": "id90", "name": { "_type": "DV_TEXT", "value": "Operation" },
"value": {
"_type": "DV_CODED_TEXT", "value": "Access demographic",
"defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "access_demographic" }
}
}
]
}
}]
}
The client’s next request runs under the grant, on every replica, with no
restart. The grant counts for the client’s own app-only token, a token of a
machines issuer whose client_id the AGENT carries. A person signed in
through the same client holds the person’s own grants, never the client’s.
To withdraw it, end the ROLE’s time_validity or delete the ROLE
(Ending a grant).
A migration
A migration is a system client like any other: its AGENT is written as
above, and its ROLE holds the import and export operations. Here a job
imports the EHRs of a legacy system and its extracts over one night, and may
export them again to check the result. The capability’s time_validity
holds the migration to two days, Not before and Not after narrow it to
the night between them, and subject_namespace limits it to the legacy
system’s patients. [authz.grants] allowed must admit import_ehr,
import_ehr_extract and export_ehr_extract.
{
"_type": "ROLE",
"archetype_node_id": "openEHR-DEMOGRAPHIC-ROLE.system_client.v1",
"archetype_details": {
"_type": "ARCHETYPED",
"archetype_id": { "_type": "ARCHETYPE_ID", "value": "openEHR-DEMOGRAPHIC-ROLE.system_client.v1" },
"template_id": { "_type": "TEMPLATE_ID", "value": "openEHR-DEMOGRAPHIC-ROLE.system_client.v1.0.0" },
"rm_version": "1.1.0"
},
"name": { "_type": "DV_TEXT", "value": "System client" },
"identities": [{
"_type": "PARTY_IDENTITY", "archetype_node_id": "id2", "name": { "_type": "DV_TEXT", "value": "Role name" },
"details": {
"_type": "ITEM_TREE", "archetype_node_id": "id3", "name": { "_type": "DV_TEXT", "value": "Name" },
"items": [{
"_type": "ELEMENT", "archetype_node_id": "id4", "name": { "_type": "DV_TEXT", "value": "Full name" },
"value": { "_type": "DV_TEXT", "value": "Legacy HIS migration" }
}]
}
}],
"performer": {
"_type": "PARTY_REF", "namespace": "demographic", "type": "AGENT",
"id": { "_type": "HIER_OBJECT_ID", "value": "5b8e2c91-7d4a-4f3e-8a1c-6e9f0b2d4c73" }
},
"capabilities": [{
"_type": "CAPABILITY", "archetype_node_id": "id6", "name": { "_type": "DV_TEXT", "value": "Migration" },
"time_validity": {
"_type": "DV_INTERVAL",
"lower": { "_type": "DV_DATE", "value": "2026-12-05" },
"upper": { "_type": "DV_DATE", "value": "2026-12-06" },
"lower_unbounded": false, "upper_unbounded": false,
"lower_included": true, "upper_included": true
},
"credentials": {
"_type": "ITEM_TREE", "archetype_node_id": "id8", "name": { "_type": "DV_TEXT", "value": "Grant" },
"items": [
{
"_type": "ELEMENT", "archetype_node_id": "id90", "name": { "_type": "DV_TEXT", "value": "Operation" },
"value": { "_type": "DV_CODED_TEXT", "value": "Import EHR", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "import_ehr" } }
},
{
"_type": "ELEMENT", "archetype_node_id": "id90", "name": { "_type": "DV_TEXT", "value": "Operation" },
"value": { "_type": "DV_CODED_TEXT", "value": "Import EHR extract", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "import_ehr_extract" } }
},
{
"_type": "ELEMENT", "archetype_node_id": "id90", "name": { "_type": "DV_TEXT", "value": "Operation" },
"value": { "_type": "DV_CODED_TEXT", "value": "Export EHR extract", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "export_ehr_extract" } }
},
{
"_type": "ELEMENT", "archetype_node_id": "id19",
"name": { "_type": "DV_CODED_TEXT", "value": "Subject namespace", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "subject_namespace" } },
"value": { "_type": "DV_TEXT", "value": "nl.legacy-his.patients" }
},
{
"_type": "ELEMENT", "archetype_node_id": "id15",
"name": { "_type": "DV_CODED_TEXT", "value": "Not before", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "not_before" } },
"value": { "_type": "DV_DATE_TIME", "value": "2026-12-05T22:00:00Z" }
},
{
"_type": "ELEMENT", "archetype_node_id": "id16",
"name": { "_type": "DV_CODED_TEXT", "value": "Not after", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "not_after" } },
"value": { "_type": "DV_DATE_TIME", "value": "2026-12-06T05:00:00Z" }
},
{
"_type": "ELEMENT", "archetype_node_id": "id17", "name": { "_type": "DV_TEXT", "value": "Authorisation reference" },
"value": { "_type": "DV_TEXT", "value": "CHG-2026-1182" }
}
]
}
}]
}
The job then calls POST /message/import (message_import_ehr) and
POST /message/import/{ehr_id} (message_import_ehr_extract) with its own
token, and POST /message/export to read the result back. Each
import is committed under the job’s ACTOR and is an access record that names
it and the provider it acts for. The versions of an extract keep their legacy
committers when a creating_system element of the grant names the legacy
system’s creating_system_id; otherwise an extract naming a local party is
refused.
When the night ends the grant holds no longer, with no change to anything.
A federation partner
A partner organisation’s professionals read patient summaries under a
data-sharing agreement. The partner is an ORGANISATION that carries a
client_id identifier for each client its federation issuer issues tokens
to, for example { "_type": "DV_IDENTIFIER", "issuer": "https://federation.example", "id": "remote-portal", "type": "client_id" }
in its details; committing it is an administrator’s write, because the
identifier makes it a policy party. The agreement is a ROLE of the
federation partner template the partner performs, with one capability per
accessor, here person. Each term is an element whose name is its
ferroehr-operations code, which is how FerroEHR reads it in any archetype
(see Federation agreements).
{
"_type": "ROLE",
"archetype_node_id": "openEHR-DEMOGRAPHIC-ROLE.federation_partner.v1",
"archetype_details": {
"_type": "ARCHETYPED",
"archetype_id": { "_type": "ARCHETYPE_ID", "value": "openEHR-DEMOGRAPHIC-ROLE.federation_partner.v1" },
"template_id": { "_type": "TEMPLATE_ID", "value": "openEHR-DEMOGRAPHIC-ROLE.federation_partner.v1.0.0" },
"rm_version": "1.1.0"
},
"name": { "_type": "DV_TEXT", "value": "Federation partner" },
"identities": [{
"_type": "PARTY_IDENTITY", "archetype_node_id": "id2", "name": { "_type": "DV_TEXT", "value": "Role name" },
"details": {
"_type": "ITEM_TREE", "archetype_node_id": "id3", "name": { "_type": "DV_TEXT", "value": "Name" },
"items": [{
"_type": "ELEMENT", "archetype_node_id": "id4", "name": { "_type": "DV_TEXT", "value": "Full name" },
"value": { "_type": "DV_TEXT", "value": "Regional care network" }
}]
}
}],
"performer": {
"_type": "PARTY_REF", "namespace": "demographic", "type": "ORGANISATION",
"id": { "_type": "HIER_OBJECT_ID", "value": "7c4e9a2b-1f6d-4b3e-9c8a-5d2e0f7b1a36" }
},
"time_validity": {
"_type": "DV_INTERVAL",
"lower": { "_type": "DV_DATE", "value": "2026-01-01" },
"upper": { "_type": "DV_DATE", "value": "2036-12-31" },
"lower_unbounded": false, "upper_unbounded": false,
"lower_included": true, "upper_included": true
},
"capabilities": [{
"_type": "CAPABILITY", "archetype_node_id": "id6",
"name": {
"_type": "DV_CODED_TEXT", "value": "Person",
"defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "local" }, "code_string": "at10" }
},
"credentials": {
"_type": "ITEM_TREE", "archetype_node_id": "id8", "name": { "_type": "DV_TEXT", "value": "Grant" },
"items": [
{
"_type": "ELEMENT", "archetype_node_id": "id90", "name": { "_type": "DV_TEXT", "value": "Operation" },
"value": { "_type": "DV_CODED_TEXT", "value": "Federated person access", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "federated_person_access" } }
},
{
"_type": "ELEMENT", "archetype_node_id": "id9",
"name": { "_type": "DV_CODED_TEXT", "value": "Agreement name", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "agreement_name" } },
"value": { "_type": "DV_TEXT", "value": "Regional care network exchange" }
},
{
"_type": "ELEMENT", "archetype_node_id": "id10",
"name": { "_type": "DV_CODED_TEXT", "value": "Agreement version", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "agreement_version" } },
"value": { "_type": "DV_TEXT", "value": "2.1" }
},
{
"_type": "ELEMENT", "archetype_node_id": "id11",
"name": { "_type": "DV_CODED_TEXT", "value": "Jurisdiction", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "jurisdiction" } },
"value": { "_type": "DV_TEXT", "value": "DE" }
},
{
"_type": "ELEMENT", "archetype_node_id": "id12",
"name": { "_type": "DV_CODED_TEXT", "value": "Exchange", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "exchange" } },
"value": { "_type": "DV_TEXT", "value": "patient summary" }
},
{
"_type": "ELEMENT", "archetype_node_id": "id13",
"name": { "_type": "DV_CODED_TEXT", "value": "Purpose", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "purpose" } },
"value": { "_type": "DV_CODED_TEXT", "value": "treatment", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "HL7_PurposeOfUse" }, "code_string": "TREAT" } }
},
{
"_type": "CLUSTER", "archetype_node_id": "id14", "name": { "_type": "DV_TEXT", "value": "Legal ground" },
"items": [
{
"_type": "ELEMENT", "archetype_node_id": "id15",
"name": { "_type": "DV_CODED_TEXT", "value": "GDPR Article 6(1) point", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "gdpr_art_6_1" } },
"value": { "_type": "DV_TEXT", "value": "e" }
},
{
"_type": "ELEMENT", "archetype_node_id": "id16",
"name": { "_type": "DV_CODED_TEXT", "value": "GDPR Article 9(2) point", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "gdpr_art_9_2" } },
"value": { "_type": "DV_TEXT", "value": "h" }
},
{
"_type": "ELEMENT", "archetype_node_id": "id17",
"name": { "_type": "DV_CODED_TEXT", "value": "National provision", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "national_provision" } },
"value": { "_type": "DV_TEXT", "value": "the provision the agreement names" }
}
]
},
{
"_type": "ELEMENT", "archetype_node_id": "id18",
"name": { "_type": "DV_CODED_TEXT", "value": "Consent source", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "consent" } },
"value": { "_type": "DV_CODED_TEXT", "value": "Local", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "local" } }
},
{
"_type": "ELEMENT", "archetype_node_id": "id19",
"name": { "_type": "DV_CODED_TEXT", "value": "Read scope", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "read_scope" } },
"value": { "_type": "DV_TEXT", "value": "patient/composition-openEHR-EHR-COMPOSITION.patient_summary.v1.r" }
},
{
"_type": "CLUSTER", "archetype_node_id": "id24", "name": { "_type": "DV_TEXT", "value": "Caller rate" },
"items": [
{
"_type": "ELEMENT", "archetype_node_id": "id25",
"name": { "_type": "DV_CODED_TEXT", "value": "Requests per second", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "requests_per_second" } },
"value": { "_type": "DV_COUNT", "magnitude": 5 }
},
{
"_type": "ELEMENT", "archetype_node_id": "id26",
"name": { "_type": "DV_CODED_TEXT", "value": "Burst", "defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "burst" } },
"value": { "_type": "DV_COUNT", "magnitude": 20 }
}
]
}
]
}
}]
}
A privileged role
A professional covers a colleague’s access-log reviews for one week. The
grant is a ROLE of the privileged template performed by the professional’s
PERSON 3e7a1d5c-9b2f-4c8e-a6d0-1f4b8e2c7a95, with one capability per
privilege, here subject audit. The privileged role never grants the
administrator role or emergency access: the identity provider and the
configuration grant those.
{
"_type": "ROLE",
"archetype_node_id": "openEHR-DEMOGRAPHIC-ROLE.privileged.v1",
"archetype_details": {
"_type": "ARCHETYPED",
"archetype_id": { "_type": "ARCHETYPE_ID", "value": "openEHR-DEMOGRAPHIC-ROLE.privileged.v1" },
"template_id": { "_type": "TEMPLATE_ID", "value": "openEHR-DEMOGRAPHIC-ROLE.privileged.v1.0.0" },
"rm_version": "1.1.0"
},
"name": { "_type": "DV_TEXT", "value": "Privileged role" },
"identities": [{
"_type": "PARTY_IDENTITY", "archetype_node_id": "id2", "name": { "_type": "DV_TEXT", "value": "Role name" },
"details": {
"_type": "ITEM_TREE", "archetype_node_id": "id3", "name": { "_type": "DV_TEXT", "value": "Name" },
"items": [{
"_type": "ELEMENT", "archetype_node_id": "id4", "name": { "_type": "DV_TEXT", "value": "Full name" },
"value": { "_type": "DV_TEXT", "value": "Access log review cover" }
}]
}
}],
"performer": {
"_type": "PARTY_REF", "namespace": "demographic", "type": "PERSON",
"id": { "_type": "HIER_OBJECT_ID", "value": "3e7a1d5c-9b2f-4c8e-a6d0-1f4b8e2c7a95" }
},
"capabilities": [{
"_type": "CAPABILITY", "archetype_node_id": "id6",
"name": {
"_type": "DV_CODED_TEXT", "value": "Subject audit",
"defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "local" }, "code_string": "at10" }
},
"time_validity": {
"_type": "DV_INTERVAL",
"lower": { "_type": "DV_DATE", "value": "2026-12-07" },
"upper": { "_type": "DV_DATE", "value": "2026-12-13" },
"lower_unbounded": false, "upper_unbounded": false,
"lower_included": true, "upper_included": true
},
"credentials": {
"_type": "ITEM_TREE", "archetype_node_id": "id8", "name": { "_type": "DV_TEXT", "value": "Grant" },
"items": [
{
"_type": "ELEMENT", "archetype_node_id": "id90", "name": { "_type": "DV_TEXT", "value": "Operation" },
"value": {
"_type": "DV_CODED_TEXT", "value": "Read subject audit",
"defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "read_subject_audit" }
}
},
{
"_type": "ELEMENT", "archetype_node_id": "id11", "name": { "_type": "DV_TEXT", "value": "Authorisation reference" },
"value": { "_type": "DV_TEXT", "value": "Cover for the privacy officer, approved by the CMIO" }
}]
}
}]
}
Just-in-time admission
A first login of a person no party carries creates a provisional PERSON
only when a create_at_login grant admits it. The grant is a ROLE like
any other, and FerroEHR reads it on every first login, whoever performs the
ROLE: here the provider ORGANISATION performs it, which reads as “the
hospital admits its own staff”. Its capability names the issuer by
login_issuer and declares the admission conditions:
admit_idp: the identity providers whose logins are created, read from the issuer’s[[authz.party_binding.issuer]] idp_claim(idpby default);admit_group: the groups, read from the issuer’s[[auth.party]] group_claim, one of which an admitted login holds;admit_role: the roles, read from[auth] role_claims, one of which an admitted login holds;admit_assurance: the lowest[authz.assurance]level an admitted login carries;admit_guests: true to admit a guest the issuer’s[[auth.party]]table admits.
A login is admitted when it meets every condition the grant declares; each
list admits any one of its values. Several grants in force admit a login
when any one of them does. A grant names at least one login_issuer and
at least one of admit_idp, admit_group, admit_role and
admit_assurance, so no grant admits every login of an issuer: a grant
without a condition is refused with 422, as is an element whose value
does not read. [authz.grants] allowed must list create_at_login, which
the default does not.
The provider admits the logins of its Microsoft Entra tenant from members of
one group at assurance substantial or above, from 1 December 2026,
POST /demographic/role:
{
"_type": "ROLE",
"archetype_node_id": "openEHR-DEMOGRAPHIC-ROLE.login_admission.v1",
"archetype_details": {
"_type": "ARCHETYPED",
"archetype_id": { "_type": "ARCHETYPE_ID", "value": "openEHR-DEMOGRAPHIC-ROLE.login_admission.v1" },
"rm_version": "1.1.0"
},
"name": { "_type": "DV_TEXT", "value": "Login admission" },
"identities": [{
"_type": "PARTY_IDENTITY", "archetype_node_id": "at0001", "name": { "_type": "DV_TEXT", "value": "Role name" },
"details": {
"_type": "ITEM_TREE", "archetype_node_id": "at0002", "name": { "_type": "DV_TEXT", "value": "Name" },
"items": [{
"_type": "ELEMENT", "archetype_node_id": "at0003", "name": { "_type": "DV_TEXT", "value": "Full name" },
"value": { "_type": "DV_TEXT", "value": "Staff first login" }
}]
}
}],
"performer": {
"_type": "PARTY_REF", "namespace": "demographic", "type": "ORGANISATION",
"id": { "_type": "HIER_OBJECT_ID", "value": "9d2f4a7e-3c1b-4e8a-9f60-2b7d5c8e1a40" }
},
"time_validity": {
"_type": "DV_INTERVAL",
"lower": { "_type": "DV_DATE", "value": "2026-12-01" },
"lower_unbounded": false, "upper_unbounded": true,
"lower_included": true, "upper_included": false
},
"capabilities": [{
"_type": "CAPABILITY", "archetype_node_id": "at0010", "name": { "_type": "DV_TEXT", "value": "Admission" },
"credentials": {
"_type": "ITEM_TREE", "archetype_node_id": "at0011", "name": { "_type": "DV_TEXT", "value": "Terms" },
"items": [
{
"_type": "ELEMENT", "archetype_node_id": "at0012", "name": { "_type": "DV_TEXT", "value": "Operation" },
"value": {
"_type": "DV_CODED_TEXT", "value": "Create at login",
"defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "create_at_login" }
}
},
{
"_type": "ELEMENT", "archetype_node_id": "at0013",
"name": {
"_type": "DV_CODED_TEXT", "value": "Login issuer",
"defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "login_issuer" }
},
"value": { "_type": "DV_URI", "value": "https://login.microsoftonline.com/0f1e2d3c-4b5a-4968-8776-655443322110/v2.0" }
},
{
"_type": "ELEMENT", "archetype_node_id": "at0014",
"name": {
"_type": "DV_CODED_TEXT", "value": "Admitted group",
"defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "admit_group" }
},
"value": { "_type": "DV_TEXT", "value": "5f2a9c1e-0000-4000-8000-00000000c11a" }
},
{
"_type": "ELEMENT", "archetype_node_id": "at0015",
"name": {
"_type": "DV_CODED_TEXT", "value": "Admitted assurance",
"defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "admit_assurance" }
},
"value": { "_type": "DV_TEXT", "value": "substantial" }
}
]
}
}]
}
The ROLE is a policy party, so only an administrator writes or reads it.
The next first login of that tenant that meets both conditions creates its
PERSON, on every replica and with no restart. To stop creating, end the
ROLE as below; a PERSON already created stays. The configuration keeps
only how the issuer’s tokens are read
(Just-in-time creation).
Ending a grant
To end a grant, an administrator commits a new version of the ROLE whose
time_validity ends before today (an upper bound of yesterday, or of today
with upper_included false), with PUT /demographic/role/{uid} and the
If-Match of its current version, or deletes it with
DELETE /demographic/role/{uid}. Both are versions with their committer, so
the revision history keeps the grant and who ended it, and the change decides
the caller’s next request.
Own design
No openEHR specification governs these points; each is FerroEHR’s own design:
-
A capability is a grant. The RM defines
CAPABILITY.credentialsas “the qualifications of the performer of the role for this capability”; FerroEHR reads them as what the performer may do. -
Bounds finer than a day go in the credentials.
time_validityisDV_INTERVAL<DV_DATE>onROLE,CAPABILITYandPARTY_RELATIONSHIP, soNot beforeandNot afterareDV_DATE_TIMEelements. -
Only an administrator writes and reads a policy party. The RM’s
ACCESS_CONTROL_SETTINGSis implementation dependent, and the Demographic API defines no access rule for its own operations. -
AQL leaves the policy parties out for anyone else. AQL over a demographic store is FerroEHR’s own extension: QUERY §FROM gives semantics to the clinical repository only.
-
The grant ceiling.
[authz.grants] allowedbounds what the party store may grant. -
A grant is held in memory on every replica and read again when a commit changes one, so the request path adds no database read.
-
A
ROLE’sperformerties a grant to its party; the performer’sroleslist need not name theROLE. -
Break-glass stays in the configuration, so emergency access works when the party store does not answer.
-
Trust in imported committers is the importer’s. The RM keeps an imported version’s audit as received (
IMPORTED_VERSION); which systems’ committers may name a local party is a scope of the importer’s grant. -
An origin is a party’s grant. RM
FEEDER_AUDIT_DETAILS.system_idnames where data came from as free text; which ids a deployment recognises, and which origin a direct commit takes, is thedata_origingrant. -
The change feed and SCIM are grants. No openEHR spec defines a change feed or SCIM provisioning, so who reads the one and who provisions through the other is FerroEHR’s own reading of a capability.
-
The first grant is the operator’s.
ferroehr party-binding grantcommits it offline with the server’s own committer, since no administrator can log in before the persons a provisioning client creates. -
A
create_at_logingrant admits logins by its credentials, whoever performs itsROLE, and must declare a condition: the RM and the Demographic API say nothing about creating a party at a login. -
A federation agreement is a grant on the partner, keyed by its client identifiers, and its rules are judged when it is written.
Caller facts: clearances, purposes and care relationships
Beside its grants, a caller carries the facts the access evaluator reads:
the sensitivities it is cleared for, the purposes of use it may declare, and
the care teams it belongs to. A patient carries the teams and units it is
under the care of. FerroEHR reads each by its code of ferroehr-operations
in any archetype, never by an archetype id, and holds them on every replica
beside the grants, so a request reads them with no transaction of its own.
Clearance and permitted purpose. A CAPABILITY of a ROLE clears a
sensitivity when its credentials hold, at any depth, an element whose
name is the DV_CODED_TEXT sensitivity_clearance and whose value is a
DV_CODED_TEXT of the terminology your jurisdiction names, such as the HL7
v3 ActCode code PSY. An element named permitted_purpose whose value is
a purpose-of-use code, such as the HL7 PurposeOfUse code TREAT, lets the
holder declare that purpose. Both hold while the capability does: the
ROLE’s and the CAPABILITY’s time_validity and the not_before and
not_after elements. A value coded in ferroehr-operations, or no
DV_CODED_TEXT, is refused 422 at the commit of the ROLE. A ROLE
carrying either is a policy party, which only an administrator writes.
Care relationships. A PARTY_RELATIONSHIP in a PERSON’s
relationships whose name or details carry member_of makes the
professional a member of the care team its target names; one carrying
under_care_of puts the patient in the care of the team or unit its
target names, with the admission as its time_validity. The discharge is
the upper bound of time_validity, and the relationship stays, so the
evaluator can apply a grace period after it. A care relationship of a party
other than a PERSON, one whose target is no party of this store, and a
PARTY_RELATIONSHIP committed on its own carrying either code are refused
422, apart from the group memberships below. The default definitions ship
openEHR-DEMOGRAPHIC-PARTY_RELATIONSHIP.member_of.v1.0.0 and
openEHR-DEMOGRAPHIC-PARTY_RELATIONSHIP.under_care_of.v1.0.0 as examples
(Default demographic definitions).
Group memberships of a provider. A PARTY_RELATIONSHIP in an
ORGANISATION’s relationships carrying member_of makes that provider a
member of the GROUP its target names, such as the providers of a
regional health network, for as long as its time_validity holds. A system
client acting for the ORGANISATION then acts for the GROUP too, so a
consent permit naming the regional GROUP, such as one copied from the
region’s IHE BPPC opt-in policy, admits it. FerroEHR resolves one level: a
GROUP that is itself a member of another GROUP adds nothing. An
ORGANISATION carrying under_care_of is refused 422. The same
write_care_relationship rule guards a change of an ORGANISATION’s
memberships.
Who writes them. The care delivery environment does, as openEHR’s
security overview asks: “the evaluation of a role category such as ‘care
deliverer’ into particular identities … must be done in each care
delivery environment, not in the EHR” (BASE Architecture Overview, §The
Problem of Roles). A version of a PERSON that adds, changes or removes a
care relationship commits only for a caller holding the
write_care_relationship grant, such as your hospital’s ADT system, or for
an administrator; anyone else is refused 403. A version that leaves the
care relationships as they were needs no grant.
When a change applies. An admission, a transfer and a discharge decide the next request on every replica. The commit stamps the patient whose facts changed, and each replica reads only the facts of the parties stamped since its copy, in one indexed read.
No openEHR specification gives a capability or a relationship an access
meaning: reading them as clearances, purposes, care relationships and group
memberships, the write_care_relationship rule, and holding them in memory
are FerroEHR’s own design.
Representatives in the patient portal
A parent, a guardian or a proxy the patient chose reads the patient’s record through the patient portal as the patient’s representative. Regulation (EU) 2025/327 Art. 4(2) asks for proxy services that let natural persons authorise others to access their personal electronic health data on their behalf, and let legal representatives access the data of the persons whose affairs they administer, “in accordance with national law”; Member States set the rules for both. Who represents whom, and until when, is therefore data the deployment keeps in the CDR. FerroEHR builds in no country’s rules.
The representation
A representation is a PARTY_RELATIONSHIP from the representative’s
PERSON, its source, to the subject’s PERSON, its target, whose name or
details carry ferroehr-operations::represents. Any archetype may model
it; FerroEHR reads the code, never the archetype id. It may also name the
relationship with a DV_CODED_TEXT of the openEHR subject_relationship
group (254|parent|, 264|guardian|, 253|unknown| for a proxy), which the
committer and the access log carry. The shipped
openEHR-DEMOGRAPHIC-PARTY_RELATIONSHIP.representation.v1 is an example: its
name is the type (parent, guardian or authorised proxy) and its details hold
both codes.
It holds while its time_validity covers today’s date in UTC. It is either
inline, in the representative’s PERSON.relationships, which an
administrator writes, or a PARTY_RELATIONSHIP of its own
(POST /demographic/party_relationship, FerroEHR’s extension), which an
administrator or the patient writes.
The representative’s PERSON is of a template
[[authz.party_binding.person.template]] maps and carries a binding key: a
DV_IDENTIFIER whose issuer is the token issuer of the patient portal and
whose id is the representative’s login there (their sub).
Legal capacity
How old a minor must be before their parents no longer see their record, and
when someone may act for an adult, is national law. It reaches FerroEHR as
the representations the deployment records and the time_validity it gives
them: the deployment, or the national identity or authorisation service it
follows, ends a parent’s representation on the date the child decides
alone, and ends or adds a representation when a court or the patient changes
who may act. FerroEHR checks only that a live representation covers today,
so a change is effective on the next request, and holds no age band, no
country table and no archetype id of its own.
Signing in
A patients issuer names its patient by the EHR of the token’s launch
context (ehrId). A representative signs in one of two ways:
- As the actor of the patient’s token. The issuer sets
act_represents_patient = trueand puts the representative in the token’sactclaim (RFC 8693 §4.1):subis the patient,act.subthe representative. - Under their own login. The token’s
subis the representative and its launch context names the patient’s EHR.
Either way FerroEHR binds the login, under the token’s issuer, to the
PERSON whose binding key it is, and admits the request while that PERSON
holds a live representation of the subject of the EHR’s EHR_STATUS. The
request is confined to that EHR. A login whose PERSON holds, or has ever
held, a representation of the EHR’s subject is judged only as a
representative: it is admitted while a representation is live, and refused
once none is, whether the representation ended or was deleted, so a former
representative never becomes the patient. On the second path a login no
representative’s PERSON has ever carried for that subject is the patient
themself; on the first path such an actor is refused. A representation that
is not recorded, has ended or was deleted is refused with 403
(refused-representation-unrecorded); a representative’s PERSON that is
inactive or abandoned with refused-inactive, and a login two PERSONs
carry with refused-ambiguous. FerroEHR trusts a patients issuer for the
patient its token names, so the issuer, not FerroEHR, decides which EHR a
login may name; FerroEHR holds every login it knows as a representative to a
live representation.
Each access is recorded bound to the representative’s PERSON, naming the
subject they represent and the relationship (EHDS Annex II 3.2), and a commit
records the representative as a PARTY_RELATED committer.
The patient authorises a proxy
The patient authorises a proxy with a PARTY_RELATIONSHIP of its own, from
the proxy’s PERSON to their own:
curl -X POST "$BASE/ferroehr/rest/extensions/v1/demographic/party_relationship" \
-H "Authorization: Bearer $PATIENT_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"_type": "PARTY_RELATIONSHIP",
"archetype_node_id": "openEHR-DEMOGRAPHIC-PARTY_RELATIONSHIP.representation.v1",
"archetype_details": { "_type": "ARCHETYPED", "rm_version": "1.1.0",
"archetype_id": { "_type": "ARCHETYPE_ID", "value": "openEHR-DEMOGRAPHIC-PARTY_RELATIONSHIP.representation.v1" } },
"name": { "_type": "DV_CODED_TEXT", "value": "Authorised proxy",
"defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "local" }, "code_string": "at12" } },
"details": { "_type": "ITEM_TREE", "archetype_node_id": "id3",
"name": { "_type": "DV_TEXT", "value": "Details" },
"items": [
{ "_type": "ELEMENT", "archetype_node_id": "id4", "name": { "_type": "DV_TEXT", "value": "Representation code" },
"value": { "_type": "DV_CODED_TEXT", "value": "represents",
"defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "ferroehr-operations" }, "code_string": "represents" } } },
{ "_type": "ELEMENT", "archetype_node_id": "id6", "name": { "_type": "DV_TEXT", "value": "Relationship" },
"value": { "_type": "DV_CODED_TEXT", "value": "unknown",
"defining_code": { "_type": "CODE_PHRASE", "terminology_id": { "_type": "TERMINOLOGY_ID", "value": "openehr" }, "code_string": "253" } } } ] },
"time_validity": { "_type": "DV_INTERVAL", "lower": { "_type": "DV_DATE", "value": "2026-11-13" },
"lower_unbounded": false, "upper_unbounded": true, "lower_included": true, "upper_included": false },
"source": { "_type": "PARTY_REF", "namespace": "demographic", "type": "PERSON",
"id": { "_type": "HIER_OBJECT_ID", "value": "<the proxy PERSON>" } },
"target": { "_type": "PARTY_REF", "namespace": "demographic", "type": "PERSON",
"id": { "_type": "HIER_OBJECT_ID", "value": "<the patient PERSON>" } }
}'
The patient’s own credential reaches the writes of
/demographic/party_relationship, and FerroEHR admits only a representation
whose target is the subject of the patient’s launch EHR, before and after
the write. The committer is the patient, a PARTY_IDENTIFIED naming their
PERSON. The patient revokes the authorisation with
DELETE /demographic/party_relationship/{uid}, or ends it with a PUT whose
time_validity ends; the proxy’s next request is refused. The patient
changes only a representation they inserted themself: one an administrator
recorded, such as a court-appointed guardian’s, is the administrator’s
(EHDS Art. 5).
Where the portal is our own design
No openEHR specification governs these points; each is FerroEHR’s own design:
- A representation is recognised by its code, as the acts-for relationship is, so a deployment models it in any archetype.
- Legal capacity is the recorded representations and their validity. The rules are national law (EHDS Art. 4(2)), so FerroEHR holds no rule of its own.
- A portal login binds by the token issuer. The representative’s binding
key is a
DV_IDENTIFIERunder the issuer that signs their login, as a client’sclient_idis. - A patient writes the representation of themselves, and the party protection holds them to it.
The admin registers
Two kinds of operational policy have no home in the openEHR demographic model, so each is an admin register:
| Register | What it holds | Default, before anyone writes it |
|---|---|---|
audit-categories | The EHDS category map every access is classified through (the audit category register) | The category map FerroEHR ships |
access-delay | The EHDS Art. 3(3) delay of the person’s own access (the access-delay register) | Off |
You read and write them under {ext}/admin/registers/{register} with a token
or Basic user holding admin_role, with [api] admin = true; the routes are
on Admin & messaging APIs.
- Versioned. Every write appends a version that names its committer and when it was committed, and never overwrites one; the history route lists them all. Version 0 is the default no one committed.
- Whole, over a version. A write replaces the whole document and names the
version it replaces in
If-Match. A write over a version that is no longer the newest is refused with412, so two operators never overwrite each other’s change unseen. - Checked when written. A document that does not hold is refused whole with
400and never reaches a request: a category map that does not compile or a delay with an unusable limit. The register keeps its version in force. - Effective without a restart. Each replica keeps the registers in
memory and is told of every write through PostgreSQL
LISTEN/NOTIFYwhen the write commits; its next request after that reads the new version. The replica that took the write applies it to its own next request. While a replica’s listener is not connected, that replica reads the registers on every request, so it never serves an outdated policy. A database that cannot answer that read fails the request with503; it is never served under a guess. - Audited. Every read and write of a register is an access record.
A deployment provides its registers once the server runs, through the admin
API; neither has a key in ferroehr.toml.
A worked example: turning the access delay on
Read the register, then write the new document over the version it answered:
curl -s -u admin:… https://cdr.example/ferroehr/rest/extensions/v1/admin/registers/access-delay
# ETag: "0"
# {"register":"access-delay","version":0,"committer":null,"committed_at":null,
# "document":{"enabled":false,"categories":[],"max_delay":null}}
curl -s -u admin:… -X PUT \
-H 'Content-Type: application/json' -H 'If-Match: "0"' \
-d '{"enabled": true, "categories": ["Laboratory-Reports"], "max_delay": "72h"}' \
https://cdr.example/ferroehr/rest/extensions/v1/admin/registers/access-delay
# ETag: "1"
The next laboratory report committed on any replica is held from the person for up to 72 hours.
The security floor that stays in ferroehr.toml
A floor that must hold before a register can be read stays configuration. With
deployment.profile = "production" and auditing on, the audit category
register refuses a map that classifies nothing (no template, no archetype and
shipped_map = false) as the no_category_map gap, unless
deployment.accepts names it.
The access policy
The controller’s access policy states what holds for every EHR this FerroEHR
keeps: which kinds of data carry which sensitivity (classifications),
whether a professional’s clinical access needs a care relationship
(care_relationship_required, with a relationship_grace) and a declared
purpose (purpose_required), the catalogue of named directives a
patient can accept by reference, such as an IHE BPPC policy, and the
log_restrictions of the access log’s subject view your Member State’s law
lays down under EHDS Art. 9(3) (Audit).
It is an ACCESS_POLICY of FerroEHR’s draft access control package, written
against the default archetype openEHR-EHR-ACCESS_POLICY.controller.v1,
which every boot stores, or against one of your own. Break-glass and the default floor
stay in ferroehr.toml; the policy can only tighten them. Until you write
one, nothing is tightened.
- Versioned. Every write is a new version in its own contribution, with you as committer; the history route lists them all.
- Whole, over a version. Name the version you replace in
If-Match, or create the first withIf-None-Match: *. A stale condition is412. - Checked when written. A body that is no canonical-JSON
ACCESS_POLICYor breaks an invariant of the draft model is refused whole with400. - Effective without a restart, as the registers above.
- Read by the access evaluator on every request: a classification gives
the data it covers its sensitivities (step 4), and the two requirements
are steps 5 and 6 of the decision procedure.
A
relationship_gracethat is no ISO 8601 duration admits nothing after a care relationship ends.
The routes are on
Admin & messaging APIs. A write
needs admin_role and a policy grant of write_access_policy.
Usage report
Every FerroEHR instance sends a small JSON report to FerroPULSE, a collector that Cadasto B.V. runs. It goes out at each process start and once a day. It says that the instance is alive, which version it runs, under which licence grant type, 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 and how to
print it before it is sent, gives the switch, and carries the privacy notice for
the data the collector stores. No openEHR specification governs any of it.
Every FerroHEALTH product sends the same report through the family’s shared
ferrohealth-usage-report crate; FerroEHR supplies its status, its route
groups and the database that holds the report’s state.
- When a report is sent
- What a report contains
- What a report never contains
- See the report before it is sent
- Switch it off
- Network
- Privacy notice
When a report is sent
There are two kinds of report, and both are one HTTPS POST to
https://report.ferropulse.eu/v1/report with a JSON body of at most 64 KiB.
start: at each process start, once the server has connected to its database. An instance sends at most one start report per ten minutes, however many replicas start: the time of the last one is kept in the database. A pod in a crash loop sends one start report per ten minutes, not one per restart.daily: the first attempt 10 minutes after boot, then roughly every 24 hours (23.5 to 24.5 hours after the previous one, spread at random). One replica sends it for the whole instance. At each of its daily attempts a replica adds its counts to a window kept in the database; the replica that claims the report sends the totals and empties the window, and the counts of a replica that finds the report claimed wait there for the next one. A replica can claim it only when no daily report went out in the last 23 hours, so a restart does not add one.
The boot line, with the report on, reads:
usage report ON: instance id, version, licence type, deployment, uptime, host size and coarse request latency per route group, at each start and once a day; no clinical content, identifiers, URLs or request paths. Off: FERROEHR__USAGE_REPORT__ENABLED=false. Details: https://ferroehr.eu/docs/latest/usage-report.html
It carries the configured endpoint as the structured field endpoint. With the
report off, the line reads:
usage report OFF: switched off (FERROEHR__USAGE_REPORT__ENABLED=false); nothing is sent. Details: https://ferroehr.eu/docs/latest/usage-report.html
What a report contains
Every report carries these fields:
| Field | Sent in | What it is |
|---|---|---|
schema | both | Always 2, the version of the report format. |
event | both | start or daily. |
first_start | start | true when this start created the instance id, which marks a new installation; false on every later start. |
product | both | Always ferroehr. |
instance_id | both | A random UUID (version 4), created at the first start and stored in the database. It is not derived from the host, the licence or anything else about the deployment. Every replica shares it, and a restore of the database keeps it. |
version | both | The server version, for example 4.3.4. |
git_sha | both | The commit the binary was built from, 7 to 40 hex digits. A build that recorded no commit, such as one from a source tarball, sends 0000000. |
licence | both | The licence grant type: commercial when an installed licence permits commercial use, non-commercial otherwise. Never the licence id. |
deployment | both | How the instance was deployed: helm, compose, binary or unknown. It comes from [usage_report] deployment, which the Helm chart sets to helm. |
uptime_s | both | Seconds since this process started. |
cpu_bucket | both | The CPUs available to the process, as a range: 1-2, 3-4, 5-8, 9-16 or 17+. |
memory_bucket | both | The memory available to the process in GiB, the smaller of the host’s memory and the container limit, as a range: <4, 4-8, 8-16, 16-32 or 32+. Off Linux the server cannot read it and sends <4. |
status | both | The instance’s state, below. |
metrics | daily | The performance aggregates below. |
The status object carries three members:
| Member | What it is |
|---|---|
db_ok | Whether the database answered the health check. |
migrations_ok | Whether the database carries this build’s migrations. |
postgres_major | The PostgreSQL major version, for example 18. It is left out when the database did not answer. |
Earlier releases send version 1 of the format, or version 2 with a fourth
status member, spec_profile, and the AQL series in the daily metrics, as
described in that release’s book.
A start report, formatted here for reading (the server sends it on one line):
{
"schema": 2,
"event": "start",
"first_start": true,
"product": "ferroehr",
"instance_id": "5f0c6b2e-3d4a-4c8b-9e1f-2a3b4c5d6e7f",
"version": "4.3.4",
"git_sha": "1a2b3c4d",
"licence": "non-commercial",
"deployment": "helm",
"uptime_s": 0,
"cpu_bucket": "3-4",
"memory_bucket": "8-16",
"status": {
"db_ok": true,
"migrations_ok": true,
"postgres_major": 18
}
}
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": {
"composition": {
"p50_ms": 12.5, "p95_ms": 80.1, "p99_ms": 240.0,
"errors_5xx": 0,
"histogram": [10, 40, 120, 300, 90, 30, 8, 2, 0, 0, 0]
},
"query": {
"p50_ms": 60.0, "p95_ms": 310.0, "p99_ms": 900.0,
"errors_5xx": 1,
"histogram": [0, 5, 40, 200, 500, 300, 120, 30, 4, 1, 0]
}
},
"counters": {
"responses_4xx": 42
}
}
}
requests_bucket: the number of requests the REST API served in the window, as a range:0,1-100,100-1k,1k-10k,10k-100kor100k+. Each range includes its lower bound and excludes its upper one, so1-100means 1 to 99.groups: one entry per group of endpoints that served at least one request. A request is placed in a group by the part of the route template it matched below the openEHR API mount (server.base_pathfollowed byrest.base_path), never by the path the client sent, so arest.base_pathsuch as/ferroehr/ehr/v1does not move a query intoehr. Routes outside the mount count in no group. The groups areehr(EHR andEHR_STATUS),composition(compositions and their version history),contribution,query(query execution),definition(templates and stored queries),directory,admin, andotherfor the demographic, messaging, terminology and FHIR families. The health family, the management surface and the status and discovery documents are counted in no group.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.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. Counts add up across instances, so a fleet percentile comes from summed histograms.counters:responses_4xxcounts the grouped requests answered with a 4xx status. It is present once the window holds one.
What a report never contains
A report carries no patient data, no EHR id or any other id taken from a request, no request path, no AQL text or query parameter, no error message, no audit-log content, no user name, no client IP address, no licence id, 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 member it does not know.
The collector does record the IP address the report arrives from. See What the collector stores.
See the report before it is sent
ferroehr usage-report --print prints the exact JSON body the instance would
send now, and sends nothing. Add --event daily for the daily report; the
default is --event start. The command loads the same configuration as the
server and connects to the database to read the instance id and the shared
window, to which the running replicas add their counts at their daily
attempts. It writes nothing. Run it where the server runs:
# Kubernetes (the image has no shell, so call the binary by its path)
kubectl -n ferroehr exec deploy/ferroehr -- /usr/local/bin/ferroehr usage-report --print
# Docker Compose
docker compose exec ferroehr /usr/local/bin/ferroehr usage-report --print --event daily
The JSON goes to stdout on one line. Notes go to stderr: when the database holds no instance id yet, the id shown is a sample, and the first start creates the real one; with the report off, the command says so, and names the CI variable when a CI run switched it off. It works with the report off, and then shows the instance id stored at an earlier start. That id is what you give Cadasto to have stored reports erased (see Your right to object).
Switch it off
Any one of these stops the report:
[usage_report]
enabled = false
FERROEHR__USAGE_REPORT__ENABLED=false
The quickstart docker-compose.yml forwards this variable from your shell, so
export FERROEHR__USAGE_REPORT__ENABLED=false before docker compose up
switches the report off there too.
# Helm values
usageReport:
enabled: false
Under the Helm chart the switch is usageReport.enabled (on the command line,
--set usageReport.enabled=false). The chart writes it into the rendered
configuration together with deployment = "helm", and it refuses to render
when config.usage_report.enabled or config.usage_report.deployment is also
set.
The other FerroHEALTH products the chart can run report under their own names, and the same switch reaches them:
- FerroTERM (
terminology.enabled) followsusageReport.enabledunlessterminology.usageReport.enabledis set, throughFERROTERM__USAGE_REPORT__ENABLED. - FerroBRIDGE (
bridge.enabled) follows it unlessbridge.usageReport.enabledis set, through[usage_report]in itsconfig.toml. The chart writes that section for a FerroBRIDGE release from 0.0.7 on; the release it pins sends no report. - FerroPIX (
ferropix.enabled, on by default) is a dependency chart, and a dependency chart reads only its own values. Its switch isferropix.usageReport.enabled, and the chart refuses to renderusageReport.enabled=falsewhile that staystrue, so turning the report off takes both:
helm upgrade --install ferroehr oci://ghcr.io/ferrohealth/charts/ferroehr \
--set usageReport.enabled=false --set ferropix.usageReport.enabled=false
In a CI run the report is off whatever the switch says: when GITHUB_ACTIONS or
CI is true or 1 (in any letter case) in the server’s environment, it
sends nothing, and the boot line reads usage report OFF: CI detected (GITHUB_ACTIONS); nothing is sent with the variable it found. A container does
not inherit the CI runner’s environment, so a CI job that starts the image sets
FERROEHR__USAGE_REPORT__ENABLED=false itself; the collector also hides reports
that arrive from GitHub Actions runner addresses from every dashboard.
With the report off, the server sends nothing to FerroPULSE and writes nothing
to its database for the report, 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. Theendpointkey moves it; the server refuses 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, and a collector that refuses a report, is logged once at WARN. Boot, the health and readiness probes, 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 puts its counts back in the database, releases its claim, and is tried again an hour later. A report the collector refuses is not resent.
- NetworkPolicy egress: with the chart’s
networkPolicy.egress.enabledon, the pod needs a rule innetworkPolicy.egress.rulesthat admitsreport.ferropulse.euon port 443. A NetworkPolicy cannot match a DNS name, so the rule is anipBlock; see Egress. Without the rule the report logs a warning and nothing else is affected. If you do not want the report, switch it off: a blocked report is still attempted at every start and every day.
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 an instance run by one person, such as a practitioner 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.
This page is also part of the user information Cadasto supplies with FerroEHR under Annex II of the Cyber Resilience Act: it names the outbound connection, what it carries, and how to switch it off.
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 FerroEHR versions run in the field, so it can tell how many installations a security release concerns and whether they upgrade;
- to know how many installations run under each licence grant type;
- to see how the product performs 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 FerroEHR: 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 licence mix and field performance. The data come from the FerroEHR instance itself. You are not obliged to send them: the report can be switched off, and switching it off changes nothing else in FerroEHR.
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. To limit request rates, the collector also keeps a short counter per source address in memory, which is lost when it restarts.
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 Cadasto has signed (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
Important
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 that
ferroehr usage-report --printshows. 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).
Operators in Switzerland
Under the Swiss Federal Act on Data Protection (DSG Art. 19 Abs. 4), these are the states your report’s data are disclosed to: Germany, where the Hetzner data centre in Falkenstein runs the collector, and the Netherlands, where Cadasto B.V. is established. Both are listed in Annex 1 of the Swiss Data Protection Ordinance (DSV) as states whose legislation provides adequate protection (DSG Art. 16 Abs. 1).
Returning to the original state
This page resets a FerroEHR instance to the state its release shipped in: the configuration the release ships, and an empty database carrying the schema that release’s migrations create. Nothing else survives a reset. EHRs, compositions, templates, parties, the party-to-EHR map, the audit trail and the instance id the usage report sends are all gone, and the next boot starts as a fresh install.
Before you reset
Warning
A reset deletes the access log along with the records it describes. If the instance has ever held real personal data, the audit trail is subject to the retention floor of every jurisdiction you operate in (three years in every EU Member State, five in the Netherlands, one in Switzerland; see Audit), and your duty to keep it does not end when the instance does. Take a backup of every domain first, the audit trail included (Backup and point-in-time recovery), and keep it for that horizon.
A reset does not reach anything outside the instance. Your logical dumps, WAL archives, volume snapshots, log collector and any external Audit Record Repository still hold what they held. Deleting those is a separate decision with the same retention duties. To take the instance out of service for good instead of starting it again, follow Decommissioning.
The reset has two halves, and you need both:
- Configuration: the server reads its built-in defaults, then a
ferroehr.toml, thenFERROEHR__…environment variables, then--set(Configuration reference). The original state is the release’s own file and no overrides. - Database: drop the database and let the release’s migrations build it again. Drop the whole database, never single schemas (Recovering a partially wiped database explains why).
The deployment.profile the release ships is sandbox, so a reset instance
says on its boot banner and on GET /ferroehr/rest/status that it must not
hold real patient data. Set deployment.profile = "production" again before
it does.
Docker Compose
The quickstart keeps the database in the named volume ferroehr-pgdata (and,
with the s3 profile, multimedia in ferroehr-seaweedfs), and its server
configuration inline in docker-compose.yml.
-
Stop the stack and delete its volumes:
docker compose down --volumes--volumesremoves the named volumes the file declares (docker compose down). Run it with the same-foverlay files and--profileflags you started the stack with, so it finds every service. -
Restore the configuration. Replace
docker-compose.ymlwith the copy attached to your release on GitHub Releases, and remove everyFERROEHR__…,DATABASE_URLandRUST_LOGvariable you set, from your shell and from any.envfile next to the compose file:env | grep -E '^(FERROEHR__|DATABASE_URL=|RUST_LOG=)' # expect no output -
Start it again:
docker compose up -d --waitThe database image provisions the domain roles on the empty volume, and the server applies its migrations at boot.
-
Read the result back. The effective configuration should be the file’s and nothing else:
docker compose exec ferroehr /usr/local/bin/ferroehr config check
Kubernetes and Helm
The chart deploys no database, so the two halves are separate operations.
-
Remove the release, so no pod holds a connection:
helm uninstall ferroehr --namespace ferroehrThis keeps the Secrets and PersistentVolumeClaims you created yourself, such as the DSN Secret and the backup claims.
-
Drop and recreate the database, as a role that may (the bootstrap superuser or the database owner), connected to a different database:
DROP DATABASE ferroehr WITH (FORCE); CREATE DATABASE ferroehr OWNER ferroehr;WITH (FORCE)terminates the sessions still connected (DROP DATABASE). Use the owner your deployment provisioned the database with. If[database.party]or[database.audit]name databases of their own, drop and recreate each of those too. The domain roles are cluster-wide objects, so they survive the drop, and the migrations reuse them. -
Install the chart again with only the values every deployment must supply (the posture, the DSN Secret and an authentication mechanism), and none of your other overrides:
helm install ferroehr oci://ghcr.io/ferrohealth/charts/ferroehr \ --version <your chart version> \ --namespace ferroehr \ -f minimal-values.yamlThe schema is applied at boot (
config.database.migrations: apply, the chart default), or by the migration Job when you enabled it.
The Kubernetes deployment probes run these three steps against a real cluster: the release is removed and the DSN Secret survives, the database is dropped and recreated by the bootstrap superuser, and the reinstalled release migrates the empty database and no longer finds an EHR written before the reset.
A single binary
- Stop the server.
- Drop and recreate the database as in step 2 of the Kubernetes procedure.
- Restore the configuration: replace your
ferroehr.tomlwith a fresh copy ofapp/ferroehr/assets/ferroehr.default.toml(or delete it, which leaves the built-in defaults), and unset everyFERROEHR__…,DATABASE_URLandRUST_LOGvariable except the database DSN. - Prepare the schema with
ferroehr db migrate, or start the server with the defaultdatabase.migrations = "apply". - Check the effective configuration with
ferroehr config check.
How the procedure is tested
The deployment probe harness (scripts/deploy-probe.sh, its original_state
family) runs the Docker Compose procedure above. It writes an EHR, resets the
stack as steps 1 to 3 describe, and checks that the volume was deleted, that
the EHR is gone, and that the server reports the shipped configuration. The
Kubernetes and single-binary procedures are not exercised by any probe.
Decommissioning
This page takes a FerroEHR instance out of service for good and removes what it
stored. ferroehr db erase deletes the multimedia blobs and every schema the
migrations created, which takes every EHR, composition, template, party, the
party-to-EHR map, the audit trail, the stored settings and the instance id with
it. The rest of the page lists what the command cannot reach and how you remove
it yourself.
To start over with an empty instance of the same release instead, follow Returning to the original state.
- Before you erase
- Stop every server
- The dry run
- The erase
- What the erase does not reach
- Removing a single party
- How the procedure is tested
Before you erase
Warning
The erase cannot be undone. Nothing in FerroEHR keeps a copy.
You are the controller of what the instance holds, and the law may require you to keep some of it after the instance is gone. Settle these before you run the command:
- Clinical records. Medical-records law sets retention periods measured in
years after the last treatment or after death. If the records must survive
the instance, move them first: export each EHR over the API, or take a full
dump through
/ferroehr/rest/extensions/v1/admin/dump(dump and load), and check the copy in its new home before you erase. The retention marks and what is already due are described in Retention, restriction and objection. - The audit trail. Access logs have a retention floor of their own: three
years from each access in every EU Member State, five in the Netherlands, one
in Switzerland (Audit). The erase deletes the
auditschema. Take a dump of it first and keep that dump for the longest period that applies to you (Backup and point-in-time recovery). A dump kept for this reason is still personal data and needs the same protection as the instance had. - Data subjects and processors. If the instance served other organisations or fed other systems, tell them before the data goes.
Stop every server
Stop every FerroEHR server and job that connects to the databases: the replicas, the migration Job, the backup CronJobs and anything else that holds a connection. A server that keeps running holds locks, and the erase gives up after 30 seconds of waiting for one rather than hang. A server that keeps running could also write a new blob after the blobs are deleted.
With the Helm chart, helm uninstall (see Kubernetes
below) stops all of them. With Docker Compose, stop the ferroehr service and
leave the database running.
The dry run
Run the command once without --confirm. It erases nothing, prints what an
erase would delete, prints the value --confirm must carry, and exits with
status 1:
$ ferroehr db erase
`ferroehr db erase --confirm` would permanently delete:
12 multimedia blob(s) in bucket `openehr-multimedia`
database `ferroehr`: schemas audit, party, clinical, ext
instance id: 0b5e3c1e-6f4a-4d1b-9a43-2b7c5f1d8e90
to erase, run: ferroehr db erase --confirm 0b5e3c1e-6f4a-4d1b-9a43-2b7c5f1d8e90
Error: dry run: nothing was erased
The command reads the same configuration the server does (--config,
FERROEHR__… and --set), so run it with the configuration of the instance
you mean to remove. When the domains live in several databases, it prints one
line per database.
The value to confirm with names the instance:
- The instance id, when the database stores one. The server creates it at the first start with the usage report switched on.
- The name of the database the clinical domain lives in, when the database stores no instance id, because the usage report never ran.
Reading the value off the dry run is deliberate: you confirm the instance the configuration actually reaches, not the one you think it reaches.
The erase
ferroehr db erase --confirm 0b5e3c1e-6f4a-4d1b-9a43-2b7c5f1d8e90
The command runs in this order:
- It lists the blob store. A store that is configured but cannot be reached stops the command here, before any database is touched.
- It checks the confirmation. A value that does not match stops the command with nothing erased.
- It deletes every multimedia blob FerroEHR wrote to the bucket. These are the objects at the bucket root named by a 64-character lowercase hex SHA-256; any other object in the bucket is left alone.
- For each database, in one transaction, it drops the schemas
ext,clinical,partyandauditthat live there, withDROP SCHEMA … CASCADE. The cascade takes every table, row, function, partition and stored setting in them. A database is either erased whole or left as it was.
It connects as ferroehr db migrate does: on [database] migrate_url (or
[database] url when that is unset) for every domain in that database, and on a
relocated domain’s own DSN otherwise. That credential must own the schemas,
which the credential that ran the migrations does.
If a step fails, fix the cause and run the same command again. Blobs are deleted before the schemas, so a failure while deleting blobs leaves the database whole. A second run after a successful one finds nothing, says so, and exits 0.
A build without the multimedia feature refuses to run against a
configuration that names a blob store, because it cannot delete the blobs.
What the erase does not reach
The erase removes what FerroEHR stores in its databases and its bucket. The following are outside them, and removing them is your job.
Backups and dumps
Your pg_dump files, base backups and volume snapshots still hold everything.
With the chart’s backup CronJobs (backup.enabled), the dumps are on the
PersistentVolumeClaims you named in backup.clinical.persistentVolumeClaim,
backup.party.persistentVolumeClaim and, when the audit domain has its own database,
backup.audit.persistentVolumeClaim. The chart created none of these claims,
so helm uninstall leaves them. Keep the ones your retention duties require
and delete the rest.
WAL archives, replicas and standbys
A WAL archive (pgBackRest, WAL-G, archive_command) holds every change the
database ever made, including the rows the erase dropped. A streaming replica
or standby replays the drop, but a delayed standby, a logical replica or a
replica you detached keeps its copy. Expire the archive and remove every
replica once your retention period allows.
The databases and the roles
The erase drops schemas, not databases. Drop each database when nothing else lives in it:
DROP DATABASE ferroehr WITH (FORCE);
Run it as the owner or a superuser, connected to another database
(DROP DATABASE).
Repeat it for every database [database.party] or [database.audit] names.
The roles are cluster-wide, so neither command removes them: the migrations
create ferroehr_migrator, ferroehr_clinical, ferroehr_clinical_reader,
ferroehr_party and ferroehr_party_reader, and you created the login roles
your DSNs use. ferroehr_linkage is there too when a migrator without
CREATEROLE could not drop it. Drop them when no other database on the cluster
uses them:
DROP ROLE ferroehr_clinical, ferroehr_clinical_reader, ferroehr_party,
ferroehr_party_reader, ferroehr_migrator;
DROP ROLE IF EXISTS ferroehr_linkage;
DROP ROLE refuses a role that still owns objects or holds privileges in any database of the cluster.
Kubernetes and Helm
helm uninstall removes what the release created, including the Secret the
chart renders from secrets.* values:
helm uninstall ferroehr --namespace ferroehr
It leaves what you created yourself: the Secrets named in the
existingSecret values (the DSNs, the migrator DSN, the backup DSNs) and the
backup claims. List them and delete each one you no longer need:
kubectl get secret,pvc --namespace ferroehr
kubectl delete secret <name> --namespace ferroehr
kubectl delete pvc <name> --namespace ferroehr
Whether a deleted claim’s volume is wiped or kept depends on its storage
class’s reclaim policy
(Persistent Volumes).
A volume with the Retain policy survives the claim and must be deleted on its
own. Delete the namespace last if nothing else runs in it.
Docker Compose
docker compose down --volumes removes the database volume ferroehr-pgdata
and, with the s3 profile, the SeaweedFS volume ferroehr-seaweedfs. The
dumps the backup profile wrote are in ./backups/ next to the compose file.
Configuration, keys and secrets
Delete the files the instance read: ferroehr.toml, the files the *_file
and *_path keys point at (DSNs, TLS keys, the OIDC secret, the signing key
and its passphrase, the national-identifier key, the multimedia secret key),
the licence token, and any .env file. Remove the FERROEHR__… variables from your service definitions
and your secret store. Revoke the credentials themselves where they live: the
database passwords, the object-store access key, the OIDC client and the
outbox readers’ clients.
Systems FerroEHR sent data to
Change events an outbox reader took (and a broker it delivered them to), records sent to an external Audit Record Repository or a syslog collector, and the logs and traces your telemetry backend received are held by those systems. Remove them there, under the same retention duties.
The physical media
Dropping a schema or deleting an object frees the storage; it does not overwrite it, and a disk, a cloud volume or a bucket can still yield the bytes until they are reused. Sanitising the media (cryptographic erasure of an encrypted volume, the provider’s deletion guarantees, or destroying the disks) is outside what FerroEHR can do. Encrypting the volumes from the start (TLS and database security) is what makes cryptographic erasure possible at the end.
Removing a single party
The openEHR Admin API in ITS-REST defines deletion routes for EHRs only.
FerroEHR adds one of its own for a party: DELETE /ferroehr/rest/extensions/v1/admin/party/{party_id}
runs the specification’s physical_party_delete operation, removing the party
and every PARTY_RELATIONSHIP that names it, with all their versions. It sits
behind the admin API switch and the admin role, like the EHR delete, and
leaves the same access record. This is the route for an erasure request about
one person’s demographic record (GDPR Art. 17):
Physical deletion.
The other two ways to remove a party:
DELETEon the demographic API removes a party logically: a new version marks it deleted, and its history stays.ferroehr db eraseremoves every party along with the rest of the instance.
How the procedure is tested
The integration suite of the ferroehr crate writes an EHR with a composition,
a party, a party-to-EHR mapping, an audit record and an instance id into a
database, checks that a wrong confirmation changes nothing, erases, and checks
that none of the four schemas, and so no row, remains and that a second run is
a no-op. A second test deletes blobs from an in-memory store, and a third shows
that an unreachable store stops the erase before the database is touched. The
command has not been run against a real S3 bucket, a multi-database layout or a
Kubernetes cluster by any probe.
Contributing
FerroEHR is source-available (the Business Source License 1.1 for the
application, Apache 2.0 for the five generated openehr-* model crates, and
vendored third-party material under its upstream terms; see
Licensing & legal) and welcomes contributions. This
chapter is a short orientation for anyone who wants to file an issue, report a
vulnerability, or open a pull request; the authoritative documents live in the
repository and are linked below. You keep your copyright, and there is no
separate agreement to sign; the terms a contribution lands under are set out
in
CONTRIBUTING.md
§ Licensing of contributions.
Why FerroEHR exists explains what the project offers
the organisations that run it and build on it, and what it asks in return.
A bug report with a reproducing request, a conformance case for behaviour nothing covers yet, a specification ambiguity you had to resolve in your own integration, a documentation correction, or a measurement from your own hardware all count.
- Where to start
- Setting up
- The checks every pull request must pass
- Personal data
- Review
- Profiling: finding where the time goes
- Reporting issues and vulnerabilities
Where to start
The three governing documents are kept in the repository root:
- CONTRIBUTING — the practical rules for setup, the required checks, and pull requests.
- Code of conduct — the Contributor Covenant (v2.1) the community follows.
- Security policy — how to report a vulnerability privately.
Setting up
The Rust toolchain is pinned by the repository’s rust-toolchain.toml (stable
1.99.1), so rustup installs the right version automatically on your first
build. The declared minimum supported version is Rust 1.98 and CI
verifies it independently with cargo hack, so do not reach for a language
feature newer than that. The edition is 2024.
Two extra tools are needed for the full test suite:
- A PostgreSQL 18 server for the database-backed tests. The shared test
harness starts (or re-adopts) one reusable container if Docker is running;
otherwise point it at a server you already run with
FERROEHR_TEST_PG_URL(its role must be able toCREATE DATABASE). See From source → Running the tests. xmllint(fromlibxml2), used by the canonical-XML parity tests.
Install the shared git hooks once with bash scripts/install-hooks.sh.
The checks every pull request must pass
CI runs the same set of gates locally and on every pull request; none of them are advisory:
cargo build --workspace
cargo nextest run --workspace # unit + integration (real PostgreSQL 18)
cargo fmt --all --check
cargo clippy --workspace --all-targets --all-features -- -D warnings
# rustdoc lints + doctests (the rustdoc lint table is inert without a doc run)
RUSTDOCFLAGS='-D warnings' cargo doc --workspace --all-features --no-deps \
--document-private-items
cargo test --workspace --doc
cargo deny check # subsumes cargo-audit: same RustSec DB, plus yanked/licenses/bans/sources
cargo machete # unused dependencies
cargo hack check --rust-version --workspace # the declared MSRV really builds
bash scripts/checks/codegen-drift.sh # generated layer matches the vendored specs
Beyond those, a family of small single-purpose scripts under scripts/checks/
runs on every pull request: comment and doc-comment style, default values
declared inline in their struct’s Default impl, HTTP statuses compared as
types rather than as numbers, licensing declarations and SPDX headers, no Python
anywhere in the tooling, and the documentation-claim gates for this site. Each
is a plain bash script you can run yourself, and the failure message names
what to fix.
CI adds a few gates that need more than a checkout: a container smoke test that
composes the built server image against the database image, the browser
end-to-end battery for the viewer (bash scripts/ui-e2e.sh), the Helm
chart render and boot lanes, and the changelog, crate-version, and attribution
guards. Viewer-only work has its own local battery; see the repository’s
CONTRIBUTING.md.
Important
Two rules are absolute. Never hand-edit a generated file: anything under a
// @generated … DO NOT EDITheader is produced by the code generator; change the generator and regenerate instead. And never weaken, skip, or delete a test to make a build pass, or edit a test to route around a bug it exposes.
A few more conventions worth knowing before you open a pull request:
- Branch from
main, and target your pull request atmain. Branch names are<type>/<slug>with the conventional-commit types (feat/…,fix/…,docs/…,chore/…, and so on), and commit subjects use the same types. - Keep changes focused, and describe what changed and why. For anything that touches openEHR behaviour, cite the relevant specification section.
- Behaviour changes come with tests. Snapshot changes must be reviewed, not blindly accepted.
- Any user-visible change (the REST surface, AQL, validation, configuration, the
CLI, or the deployment artifacts) adds a changelog fragment under
changelog.d/(itsREADME.mdgives the format) and updates the matching page of this documentation, both in the same pull request. CI guards enforce both.
Personal data
The server keeps clinical content, the identities it belongs to and the map between them in three separate schemas, reachable by separate database roles. A change can move that boundary without meaning to, so four rules hold everywhere in the repository.
- Synthetic data only: tests, fixtures, seeds, examples and screenshots use invented values. A real name, national identifier, address, phone number, email or date of birth never goes into the repository, an issue, or a pull request body.
- No identifiers in telemetry: logs, traces, metric labels and
Debugoutput carry record identifiers (an EHR id, a version uid, a template id) and shapes, never the content of a subject’s data. ADebugimpl on a type holding personal data prints field names rather than field values. - No grant across the domains: a database role reaches one of the two pseudonymisation domains, never the other. A migration granting across them rejoins the identities to the records the split exists to separate.
- A review step at the boundary: a change touching the party migrations, the demographic or linkage services, the identifier scanner, the access-event model or an outbox payload builder describes its data flow, names the roles involved, and ticks the “Privacy boundary” checklist in the pull request template.
The privacy-boundary-guard job in CI enforces the last rule: a pull request
touching those paths without a ticked checklist fails. The same job reads the
added lines of every diff and fails on a value shaped like a real Dutch
identifier, a nine-digit number passing the BSN eleven-test or a postcode
followed by a house number. A synthetic value that still has that shape carries
privacy-allow: <reason> on the same line, and the job proves its own detectors
on every run before it judges a diff.
These are design-time rules because GDPR Art. 25 places data protection by design in the design phase, before a line of it is deployed.
Review
Two things review a pull request. The maintainers, who decide; and SonarQube Cloud, which analyzes every pull request (with CodeQL as the security scanner beside it).
The analysis is a second opinion, and deliberately nothing more. Its check is not required and it blocks no merge; if one of its findings is right, the change is written by hand. A finding that contradicts the vendored openEHR specification text, the repository’s own rules, or a local gate is wrong by construction, and saying so on the thread is the correct response.
Profiling: finding where the time goes
Four flamegraph instruments, all built on established crates (the sampling is
pprof, the rendering is
inferno). Pick by situation:
-
A running server (composed stack, staging, production): the
GET /management/flamegraphendpoint; see Operations → Profiling. -
A code path in isolation: the criterion benches carry a pprof profiler, so any bench emits a flamegraph under
--profile-time:cargo bench -p ferroehr --bench aql -- --profile-time 10 # → target/criterion/<bench>/profile/flamegraph.svg -
Async attribution (a sampled stack under tokio often blames the executor’s poll loop; a span flame blames the instrumented operation): set
management.flame_file = "/tmp/ferroehr.folded"; thetracing-flamelayer captures span timings as folded stacks, rendered offline:cargo install inferno inferno-flamegraph < /tmp/ferroehr.folded > span-flame.svg -
A whole local binary run (no code changes needed):
cargo flamegraph, a dev tool, not a dependency (cargo install flamegraph):cargo flamegraph --bin ferroehr # Linux: perf; add -F 999 for finer sampling cargo flamegraph --bench aql -- --bench # profile a bench run end to endOn macOS it uses
dtrace, which needs elevated permissions: run withsudo cargo flamegraph …or grant your terminal Developer-Tools access; on Linux you may needperfinstalled andkernel.perf_event_paranoid≤ 2.
Reporting issues and vulnerabilities
Use the GitHub issue tracker for bugs and feature requests.
Warning
Do not open a public issue for a suspected security vulnerability. Report it privately through GitHub’s private vulnerability reporting (“Report a vulnerability” on the repository’s Security tab). Because the server handles PHI-class data by design, reports about data exposure through the API, AQL, telemetry, or the audit trail are in scope even when they look like “just configuration”. Coordinated disclosure is preferred; please allow a reasonable window for a fix before publishing details.
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Maintenance rules: every pull request that changes user-visible behaviour (the
REST surface, AQL, validation, storage/migrations, configuration, CLI,
container/Helm artifacts) adds a fragment under changelog.d/ in the same PR,
in the format changelog.d/README.md gives, and never edits Unreleased here
(a CI guard enforces both). Cutting a release assembles the fragments into the
new version’s section (scripts/release/changelog.sh --assemble), moves the
link references on, and tags vX.Y.Z; the release workflow refuses a tag that
has no matching section here.
Unreleased
5.7.1-rc1 - 2026-11-13
5.7.1-rc1 is the first release candidate of 5.7.1, published for testing. 5.7.0 stays the stable release: this pre-release moves neither the latest image tags, the book under /docs/latest/ nor the hosted sandbox, it publishes no crates, and it receives no fixes; the next release candidate or 5.7.1 itself replaces it. Operational policy moves out of ferroehr.toml into the CDR as openEHR demographic data. Who may do what is coded content of parties written through the Demographic API, read on every request with no restart and capped by the grant ceiling [authz.grants] allowed: system clients with their imports and exports, the clients persons sign in through and the delegates that act for them, Basic users’ roles and scopes, trusted import systems, data origins, change-feed readers, SCIM clients, federation agreements, just-in-time admission and the privileges beyond clinical access. The audit category map, the access delay and the Cedar policy set become admin registers. The configuration shrinks from 920 keys in 5.7.0 to 855, and the reference names the 10 keys a deployment must set, where 5.7.0 named none; a removed key refuses the start as an unknown key, with no removal aid. Before you try it: run ferroehr config check on your file; name the Basic user who writes the first policy parties in [authz.rbac] first_admin, or give an administrator through a token issuer in role_issuers; then write each client, agreement and grant your file held through the Demographic API or ferroehr party-binding grant, and list each operation in [authz.grants] allowed, as the book’s Operational policy page shows. Representatives of a patient sign in through the patient portal under the representations the deployment records. FerroEHR runs on ferrohealth-smart 0.24.1, ferrohealth-authz 0.17.0, ferrohealth-session 0.19.0, ihe-atna and ehds-logging 0.18.0, ihe-iti 0.9.0 and ferrobridge-term 0.10.0. Party migrations 0033 to 0038 add the reverse-relationship validity, the policy party mark, the grant and client-provider rows, the standalone representations and who once represented whom, and clinical migration 0036 the admin registers. Helm chart 32.0.0-rc1 carries appVersion 5.7.1-rc1. Security carries one advisory, GHSA-gwh2-7hjm-4pj4: an issuer written with credentials in its URL rendered them unmasked.
Added
-
FerroEHR ships a complete default set of demographic definitions under
deploy/definitions/: the professionalPERSONandROLE, a care-teamGROUP, and the membership and representationPARTY_RELATIONSHIParchetypes the party mapping names, each adapted from openEHR CKM archetypes with aPROVENANCE.mdnaming its sources. The quickstart, its Keycloak overlay, the hosted sandbox, the development lanes and the conformance harness load all five and map them, so SCIM Users, Groups and representation work out of the box; the Helm chart’s defaultdefinitions.files(chart 25.1.0) loads them and leaves the party mapping to the operator. Every release attaches each file with a.sha256sum, and the book’s new “Default demographic definitions” page lists them with the keys that name them. A deployment may load its own templates instead (#5428). -
A system client imports and exports under its own grants (#5432):
message_import_ehrneeds animport_ehrgrant andmessage_import_ehr_extractanimport_ehr_extractgrant, and a system client’smessage_export_ehrsandmessage_export_ehr_extractsneed anexport_ehr_extractgrant, each covering the EHR’s subject namespace in itssubject_namespaceelements. Each commit of a system client, an import included, records a committer whoseexternal_refnames the client’sACTOR(PARTY_REFtypeACTOR), and its access record names thatACTORand the identifier of the provider it acts for. AROLEwhose grant lacks the terms of its operation (an origin, a device identifier issuer for a device, a facility’s issuer with one identifier or prefix, a subject namespace for an import or an export) is refused with422at its commit. The terminology gains the qualifier codesissuer,identifier,identifier_prefix,origin,relay,deviceanddevice_identifier_issuer. -
Operational policy has a home in the party store, with no configuration key. FerroEHR ships example policy definitions: a system’s
AGENT(openEHR-DEMOGRAPHIC-AGENT.system.v1), the acts-forPARTY_RELATIONSHIPto the provider it acts for, and the system-client, federation-partner and privilegedROLEs, each with aCAPABILITYwhose credentials hold the grant. The binary carries a default template of each, and each boot stores one only when no definition of its id is stored, never overwriting a deployment’s version. A party is a policy party by the codes it holds, in any archetype, as the entry under Changed describes. Every write of a policy party is validated against its own template. Only a caller holding[authz.rbac] admin_rolewrites or reads a policy party through the Demographic API, aCONTRIBUTIONincluded; any other caller, a SCIM client too, is answered403. The book’s “Operational policy” page documents the terminology as the contract, with a worked example of each kind (#5434). -
The default demographic set gains a patient
PERSON(deploy/definitions/patient/), adapted from the openEHR CKMperson-patientarchetype, with its patient identifiers, date of birth and sex indetails, its names named by their usage, a postal and an electronic address, and its relationships to personal contacts, payers and providers, and a healthcare providerORGANISATION(deploy/definitions/provider/), identified by its provider identifier, which the acts-for relationship targets and a federation partner is. The quickstart, the hosted sandbox, the conformance harness, the viewer lane and the Helm chart’s defaultdefinitions.filesload all seven definitions, and every release attaches each (#5434). -
Every authenticated request resolves its caller’s policy grants from the party store, read from coded content in parties of any archetype: a capability grants an operation when its credentials hold a
DV_CODED_TEXTof theferroehr-operationsterminology (commit_composition,import_ehr,import_ehr_extract,export_ehr_extract,federated_person_access,federated_organisation_access,read_subject_audit,access_service,read_identifiers), and a client is the party carrying aDV_IDENTIFIERof typeclient_idunder the token issuer. A system client resolves by its token’s issuer andclient_id, a bound person by theirPERSON, each to the operations of theROLEs it performs that hold on the request’s date by theROLE’s and the capability’stime_validityand at its instant by thenot_beforeandnot_afterelements. A grant changed through the Demographic API decides the caller’s next request on every replica with no restart, a second party naming the same client is refused with409, and a request whose grants cannot be read is503. Each replica keeps the grants in memory and reads them again when a commit notifies it, so a request adds no database read.ferroehr party-binding refillrebuilds them. See the book’s “Operational policy” page for the terminology contract (#5435). -
[authz.grants] allowed(FERROEHR__AUTHZ__GRANTS__ALLOWED), the operations the party store may grant. AROLEcommitted with a capability coding an operation it does not list is refused with403, and a stored one is never honoured. The default,["commit_composition"], admits system client writes only; an import, an export, a federation agreement and each privilege are admitted by name (#5435). -
A Basic user bound to a
PERSONholds the roles and SMART scopes its policy grants name: the newferroehr-operationscodeshold_rolesandhold_scopesgrant what the capability’sroleandscopeelements name, under[authz.grants] allowed. A change through the Demographic API applies to the user’s next request with no restart. A token’s roles and scopes still come from the token alone (#5438). -
A
hold_rolesgrant namingadmin_roleoremergency_access_roleis refused at commit with403and never honoured: the administrator authority and break-glass come from the configuration and the token issuers alone. See the book’s “Operational policy” page, “What the grants decide” (#5438). -
The
ferroehr-operationsterminology gains the operationsdata_origin,read_change_feedandscim_provisionand the scope elementscreating_system,origin,reader,binding_issuerandtoken_scope. A change an administrator commits through the Demographic API decides the next request with no restart: the outbox is written while a reader is granted and only that reader’s client reads it, a retention period may be keyed on an origin a grant names, and a SCIM request is admitted for a client whose grant is in force. AROLEthat names one of these elements other than as its operation reads it is refused with400(#5439). -
ferroehr party-binding grantcommits a client’s first grant on the operator’s authority, such as thescim_provisionof the client that provisions the administrators, who cannot log in before theirPERSONexists. The compose quickstart, the Keycloak overlay and the hosted sandbox run it in aferroehr-grantone-shot, andscripts/scim-provision.shtakes the client’s binding issuer and runs it throughSCIM_GRANT(#5439). -
The audit category map, the EHDS Art. 3(3) access delay and the Cedar policy set are admin registers under
{ext}/admin/registers/{audit-categories,access-delay,cedar-policies}:admin_rolereads one, replaces it whole over the versionIf-Matchnames (412on a stale write, the new version as theETag) and lists its history. Every version is kept with its committer, every read and write is an access record, and a change applies on the next request on every replica with no restart. A document that does not hold is refused with400, so a Cedar policy set that does not parse or validate never replaces the set in force (#5442). -
Representatives in the patient portal (#5446). A parent, a guardian or a proxy signs in through a
patientsissuer, as the RFC 8693actof the patient’s token or under their own login naming the patient’s EHR, and reads the patient’s record while theirPERSONholds a live representation of the patient: aPARTY_RELATIONSHIPcarryingferroehr-operations::represents, in any archetype. Who represents whom and until when, including the age and legal-capacity rules of national law, is the representations andtime_validitythe deployment records; FerroEHR builds in no country’s rules. The patient authorises a proxy withPOST /demographic/party_relationshipand revokes it with aDELETE, effective on the next request, and every access is recorded bound to the representative, naming the subject. -
[authz.party_binding.patient]names the template of a patient’sPERSON(template_id), the path of its identifiers (identifier) and the path of its name (name), and defaults to the shippedopenEHR-DEMOGRAPHIC-PERSON.patient.v1.0.0. Boot judges it against the definition store, and aPERSONwritten under that template is validated against it (#5462). -
GET /ferroehr/rest/extensions/v1/demographic/party/{uid_based_id}/reverse_relationshipsevaluates the RM 1.2.0 functionPARTY.reverse_relationships()in either specification profile: a JSON array of theLOCATABLE_REFs a stable-profile party read carries, as they stand now or, for a version id or aversion_at_time, as they stood at that version’s commit. No ITS-REST resource serves the function, so this is a FerroEHR extension (#5473). -
AQL over the demographic store serves every demographic root:
GROUPandAGENTasPERSONis, the abstractPARTYandACTORover the concrete classes below them, and a standalonePARTY_RELATIONSHIP. The policy filter applies under every root, throughCONTAINSand the join to anEHR, so a caller who is no administrator never receives a systemAGENT, a policyROLE, an acts-for relationship or a party holding one. Eachreverse_relationshipsreference now names exactly one relationship, by itsuid, by a unique node id and name, or by its position (#5474).
Changed
-
The book’s command-line page shows how to run
ferroehr config check,party-binding checkandparty-binding adoptin each place FerroEHR runs. On a host you call the binary. Under Docker,docker run … config checkchecks a mounted file before an upgrade,docker compose run --rm --no-deps ferroehr config checkchecks the configuration of a service that refuses to start, anddocker compose execruns the database commands. Under the Helm chart,kubectl exec deploy/<release>-ferroehr -c ferroehrruns them, and a one-off pod copied from a failing pod runsconfig checkon a configuration the server refuses. The party-binding migration page links each of its steps to these forms. Each example was run against the 5.7.0 image and chart 25.0.1 (#5416). -
The FerroHEALTH family crates move to their newest releases:
ferrohealth-smart0.18.0 to 0.19.1,ferrohealth-session0.13.0 to 0.14.0,ferrohealth-authz0.11.0 to 0.12.0,ferrobridge-term0.5.0 to 0.6.0,ihe-atnaandehds-logging0.12.0 to 0.13.0, andihe-iti0.4.0 to 0.5.0. Aprivate_key_jwtclient assertion FerroEHR signs for a token request or an onward exchange is now valid for 60 seconds, down from 300, so an authorization server that caps the lifetime below five minutes accepts it. No configuration key changes (#5417). -
The FerroHEALTH family crates move to their newest releases:
ferrohealth-smart0.19.1 to 0.21.0,ferrohealth-session0.14.0 to 0.16.0,ferrohealth-authz0.12.0 to 0.14.0,ferrobridge-term0.6.0 to 0.8.0,ihe-atnaandehds-logging0.13.0 to 0.15.0, andihe-iti0.5.0 to 0.7.0. FerroEHR’s own checks of[authz.rbac] role_issuersand of the issuer the SMART discovery document describes give way to the shared crate’s: a refused role issuer still renders with its userinfo masked, and the refusal now names only the first refused issuer of the list (#5422). -
Breaking: the SMART discovery document describes exactly one issuer, never a
machinesissuer and never by table order. With[auth.smart] discovery = true, 5.7.0 described the first issuer whose metadata it read, whatever its kind, so in the quickstart with the Keycloak overlay the document sent user launches to themachinesSCIM issuer, which signs no user token (SMART App Launch 2.2.0, Conformance, §Metadata:authorization_endpointis where a launch starts). The document now describes the issuer the new key[auth] described_issuernames, else the one issuer that is not of kindmachinesand whose metadata FerroEHR has (read from it, introspected, or supplied by[auth.smart] issuer_metadata_file). With discovery on, naming amachines, unknown or metadata-less issuer refuses the start. Without the key, more than one such issuer refuses the start, naming them and the key, and none refuses it, saying no issuer can be described. The rule isferrohealth-smart’s, anddescribed_issueris the same[auth]key in every FerroHEALTH product. Upgrade step: set[auth] described_issuerwhen you run more than one user-facing issuer (persons,patientsorfederation) with discovery on (#5425) (#5426). -
The quickstart, its Keycloak overlay, the hosted sandbox and the development lanes map the care-team
GROUP, the membership and the representation of the default demographic definitions, with a group claim on their[[auth.party]]tables, so a fresh start serves SCIM Users, Groups and representation out of the box. The book’s “Default demographic definitions” page and the chart README show the full mapping; the Helm chart’s own party mapping stays the operator’s (#5428). -
A system caller no longer imports with no grant (#5432): before, any
system/caller could import an EHR or an extract; it now needs a grant of the import operation covering the EHR’s subject namespace. -
The default professional definitions follow openEHR CKM more closely: the professional
ROLE(openEHR-DEMOGRAPHIC-ROLE.healthcare_professional.v1.0.0) records a clinician’s registrations and qualifications as itsCAPABILITY, adapted from the CKMindividual_credentialsarchetype, and the professionalPERSONnames its name by usage and its email address by type and usage, as CKM codes them, with free text still accepted. Every default definition’sderived_fromnames its CKM citeable id and modification time, and the representation relationship is re-cited to the person-to-person relationship of the CKMPERSONarchetypes. The text of each definition changes under the same id, so a definition store that holds the 5.7.0 text of the professionalPERSONorROLErefusesferroehr definitions loadof the new one with409(#5434). -
Breaking: which clients count as backend clients and which reach the DEMOGRAPHIC API is policy the CDR holds, read on every request with no restart, never a configuration key.
[auth.smart] backend_clientsand[auth.smart] demographic_clientsare removed, and a file orFERROEHR__AUTH__SMART__*variable that sets either is refused as an unknown key. A client’ssystem/aql-*scope counts when the client’sAGENTperforms aROLEwhose capability codesferroehr-operations::query_system_wide, and the DEMOGRAPHIC API admits a client whoseROLEcodesferroehr-operations::access_demographic, beside a caller holding[auth] product_scope. Both are new operations of the terminology, admitted by name in[authz.grants] allowed, whose default admits neither. A grant counts for the client’s own app-only token; a person signed in through the client holds the person’s grants. To move a deployment, write anAGENTcarrying the client’sclient_idand aROLEcoding the operation through the Demographic API, and list the operation in[authz.grants] allowed; the book’s “Operational policy” page has the worked example.[auth.smart] patient_issuersstays: it is trust, the issuers whoseehrIdclaim names an EHR of this platform (#5437). -
Federation agreements are read from the CDR on every request. An agreement is a grant of
federated_person_accessorfederated_organisation_accesson the partner’s party, which carries aclient_ididentifier for each client itsfederationissuer issues tokens to; its terms are elements of the capability’s credentials named byferroehr-operationscodes (agreement_name,agreement_version,jurisdiction,exchange,purpose,gdpr_art_6_1,gdpr_art_9_2,national_provision,consent,read_scope,template,discard_window,ehdsi_service,requests_per_second,burst,opt_out_override,access_class,requester_log_retention), and its validity is the grant’s own. A verified external caller is admitted only under the agreement its partner holds for its accessor kind, so a new, changed or ended agreement takes effect on the next request with no restart. Every legal check the configuration ran at boot now refuses theROLEat its commit with422, naming each rule it breaks./management/infoand the boot line list every agreement in force with its partner’s issuer and client. The legal checks hold no rule of one country: the jurisdiction is the agreement’s own element, and the consent source isregistryorlocal. See the book’s “Operational policy” page, “Federation agreements” (#5440). -
Just-in-time creation of a provisional
PERSONat a first login is admitted by CDR data instead of configuration. An administrator writes aROLEwhose capability grantsferroehr-operations::create_at_loginthrough the Demographic API; its credentials name the token issuer (login_issuer) and the admission conditions (admit_idp,admit_group,admit_role,admit_assurance, andadmit_guestsfor a guest), and any grant in force admits a login that meets every condition it declares. Each first login reads the grants from the replica’s in-memory copy, so a change applies to the next login with no restart. A grant that names no issuer or declares no condition is refused with422, and[authz.grants] allowedmust listcreate_at_login, which the default does not. See the book’s “Operational policy” page, “Just-in-time admission” (#5441). -
ferroehr.default.tomlopens with a “What you must set” block: the ten keys a deployment that holds real data sets ([deployment] profile,[[auth.issuer]] issuer,kindandaudience,[authz.party_binding.provider] issuerandid,[api] system_id,[database] url,[privacy] subject_namespacesand[record] subject_index). Every other key is marked optional with its built-in default, and each key’s note says why it is in the file: infrastructure, trust, or a tuning key. The configuration types carry the classification (x-ferroehr-class), and the reference generator, run by theconfig-referenceguard, fails on a key with no class, an optional key with no default, or a class entry that names no key. The classification adds and removes no key. The shipped configurations (the quickstart, the hosted sandbox, the development, perf and conformance files, the chart’svalues.yaml,values-production.yamland CI overlays) no longer restate a default:deployment.spec_profile,auth.enabled,[[auth.issuer]] profile = "rfc9068", the default[server]listener and body limit, the chart’sapi,database,authz.rbac,authz.abac,authz.party_binding.namespace,management.endpoints,record.signing,record.multimediaandaudit.storedefaults and the like. The server reads the same values as before (#5455). -
Breaking (chart): the chart moves to 27.0.0. Its
values.yamlno longer carriesconfig.deployment.spec_profile,config.api.openapi_ui,admin,terminology,config.database.migrations,acquire_timeout,statement_timeout,config.authz.rbac,config.authz.abac,config.authz.party_binding.namespace,config.management.endpoints,config.record.signing,config.record.multimediaorconfig.audit.store, each of which only restated the server’s default. A values file that sets them still works; a tool that reads them from the chart’s defaults finds them unset (#5455). -
ferroehr.default.tomllists 855 keys, down from 920 in 5.7.0, and marks 10 of them as must-set, where 5.7.0 marked none. 72 keys are gone: the operational policy moved into the CDR (#5432, #5436 to #5441, #5521), three tables became admin registers (#5442), the representation mapping became a code the relationship carries (#5446) and the three public URLs became one (#5465). 7 keys are new, each infrastructure or trust:[server] public_base_url(#5465),[auth] described_issuer(#5425), the three keys of[authz.party_binding.patient](#5462), the grant ceiling[authz.grants] allowed(#5435) and[authz.rbac] first_admin, the one Basic user that holdsadmin_rolefrom the file and writes the first policy parties (#5438). Both counts are the ones the file’s “What you must set” block states (#5455). -
The shipped
ferroehr.default.tomlsets only the keys of its “What you must set” block:[deployment] profile,[api] system_idand[privacy] subject_namespacesare its live lines, and every other key is a#?line that shows its default. A copy of the file sets 3 keys where it set 115 (122 in 5.7.0); this change removes and adds no key. The book’s “Operational policy” page merges “Which checks read a grant” into “What the grants decide” (#5455). -
The party mapping defaults to FerroEHR’s default demographic definitions. Each boot stores the seven definitions of
deploy/definitions/whose id the definition store does not hold, as it stores the policy definitions, and never overwrites a stored one. With no mapping key set,[authz.party_binding]person,professional_role,group,membership,representationand the newpatientsection map them, so an empty configuration boots with SCIM Users, Groups and representation working. A section a deployment sets replaces that section’s default, and nothing is stored under a deployment’s own ids. A SCIM client whose[[auth.party]]table sets nogroup_identifier_issuerwrites its Groups’externalIds under itsbinding_issuerwith/groupsappended, where the start was refused before. The quickstart (both its EHR index variants), the hosted sandbox, the development, conformance, performance and viewer lanes and the Helm chart drop the mapping keys that restated the default and theirferroehr definitions loadstep, and the chart’sdefinitions.filesis empty by default (chart 27.1.0). A deployment that maps its own templates keeps its keys and its definition list (#5462). -
The FerroHEALTH family crates move to the releases that take the DPoP external URL from the product:
ferrohealth-smart0.21.0 to 0.22.0,ferrohealth-authz0.14.0 to 0.15.0,ferrohealth-session0.16.0 to 0.17.0,ferrobridge-term0.8.0 to 0.9.0,ihe-atnaandehds-logging0.15.0 to 0.16.0, andihe-iti0.7.0 to 0.8.0 (#5465). -
A policy party is recognised by what it holds, in any archetype or template, and no longer by its archetype id: a
CAPABILITYwhosecredentialshold aDV_CODED_TEXTof FerroEHR’s operation terminologyferroehr-operations, aPARTY_RELATIONSHIPwhosenameordetailsholdferroehr-operations::acts_for, or aDV_IDENTIFIERof typeclient_id. A deployment’s ownROLEarchetype whose capability holdsimport_ehris a policy party, and a party of the shipped policy archetypes that holds none of these codes is an ordinary one. The shipped policy definitions are examples that carry the codes: each policyROLErequires anOperationelement (id90) in its credentials, and the acts-for relationship an acts-for code element (id6) in its details. A403for a policy party now names what makes it one in place of the archetype. The book’s “Operational policy” page states the rule (#5485).
Removed
-
Breaking:
[[authz.system_client]]is removed fromferroehr.toml, with every key it held (issuer,client_id,provider,facilities,writes,origins,device_identifier_issuers); a configuration that still sets it refuses boot as an unknown key. A system client is now granted in the CDR: anAGENT(or anyACTOR) carrying itsclient_id, acting for its providerORGANISATIONby an acts-for relationship (or, with none, for the deployment’s[authz.party_binding] provider), and performing aROLEwhose capability grantscommit_compositionwith its templates, facilities, origin (relayordevice) and device identifier issuers, each read by itsferroehr-operationscode; a change applies on the next request with no restart. The Helm chart 31.0.0 dropsconfig.authz.system_client(a major bump: a values file that sets it is refused), and the Keycloak quickstart grants its service clientcommit_compositionbesidequery_system_widethrough the Demographic API. See the book’s “Operational policy” page (#5436). -
The example
ROLEopenEHR-DEMOGRAPHIC-ROLE.data_migration.v1is removed (#5432): a migration is a system client whoseROLEgrants the import and export operations, on the system client exampleROLE, which now names each credentials element by itsferroehr-operationscode (#5436). -
Breaking: the client lists
ferrohealth-smartread while it classifies a token are policy the CDR holds, read on every request with no restart.[[auth.issuer]] first_party_clients,[[auth.issuer.delegates]](withclient,subandissuer) and[[auth.scopeless_subjects]](withissuerandsub) are removed, and a file orFERROEHR__AUTH__*variable that sets one is refused as an unknown key. The server answers the crate’s standing questions from the grants of theACTORcarrying the client identifier under the token’s issuer, through three new operations offerroehr-operations:sign_in_persons(a client persons sign in through),act_for_persons(a client, or the RFC 8693 actor a person’s token names, that acts for a person) andaccess_without_scope(a system caller admitted to every SMART on openEHR requirement without a resource scope).[authz.grants] allowedadmits each by name, and its default admits none. The answer comes from the copy of the grant rows each replica holds, so a token adds no database transaction, and a party store that cannot answer refuses the token with503. To move a deployment, write the client’sAGENTand aROLEcoding the operation through the Demographic API (orferroehr party-binding grant), and list the operation in[authz.grants] allowed. The Helm chart 32.0.0 dropsfirst_party_clientsfrom its example values (a major bump), and the Keycloak quickstart grants its viewersign_in_persons.ferrohealth-smartmoves to 0.24,ferrohealth-authzto 0.17,ferrohealth-sessionto 0.19,ihe-atnaandehds-loggingto 0.18,ihe-itito 0.9 andferrobridge-termto 0.10 (#5437). -
Breaking: a Basic user is a credential alone.
[[auth.basic.users]] rolesandscopesare removed, and a file that sets either is refused as an unknown key. A Basic user bound to aPERSONholds the roles and SMART scopes thehold_rolesandhold_scopesgrants of itsPERSONname, never a privileged role. The one trust key added,[authz.rbac] first_admin(FERROEHR__AUTHZ__RBAC__FIRST_ADMIN), names the Basic user that holdsadmin_roleand[auth] product_scopefrom the configuration: the first administrator, who writes the first policy parties; a name that is no Basic user refuses the start.ferroehr party-binding grant --basic-user <user>grants an operation to thePERSONa Basic user binds to, on the operator’s authority. The quickstart, the hosted sandbox, the development lanes and the performance gate make their Basic user the first administrator and grant its scopes and roles this way (scripts/scim-provision.shdoes it for the lanes it provisions), and the development configuration no longer declaresimport_role. The Helm chart 32.0.0 dropsrolesandscopesfrom its Basic users (#5438). -
Breaking:
[authz.import] trusted_systems,[[authz.origin]],[record.change_feed] readersand[[auth.scim.client]]are removed fromferroehr.toml. Each is now a grant in the CDR, read on every request, and a configuration that still sets one refuses boot as an unknown key. An import’screating_systemelement vouches for the systems whose wrapped committers it may carry, adata_origingrant names an origin, aread_change_feedgrant names a reader of the change feed, and ascim_provisiongrant names a SCIM client’sbinding_issuerandtoken_scope;[authz.grants] allowedmust admit each operation. The Helm chart 30.0.0 drops the outbox-readers line of its notes and documents the grants (a major bump: a values file that sets one of these keys is refused) (#5439). -
Breaking:
[authz.federation]and its[[authz.federation.agreement]]tables are removed fromferroehr.toml(issuer,accessor,name,version,jurisdiction,exchange,purpose,legal_ground,consent,reads,writes,discard,discard_window,ehdsi_service,caller_rate,opt_out_override,access_class,chained_log_retention). A configuration that still holds them refuses boot as an unknown key; write each agreement to the CDR as the book’s “Operational policy” page describes. The Helm chart 29.0.0 dropsconfig.authz.federation.agreement(a major bump: a values file that sets it is refused) (#5440). -
Breaking: the admission keys of
[[authz.party_binding.issuer]]are removed fromferroehr.toml:jit,guests_jit,admit_idp,admit_groups,admit_rolesandadmit_assurance. A configuration that still sets one refuses boot as an unknown key. Admission is acreate_at_logingrant in the CDR. The table keepsissuer,user_name_claimandidp_claim(#5441). -
Breaking:
[audit.categories],[privacy.access_delay]and[authz.abac.cedar]are removed fromferroehr.toml. Each is now an admin register, and a configuration that still sets one refuses boot as an unknown key. Write the category map, the access delay and the Cedar policy set through{ext}/admin/registers/{register}once the server runs; until then the shipped category map applies, the delay is off, and the Cedar set is empty, so an ABAC deployment on the embedded engine permits nothing until its policies are written. The Helm chart 26.0.0 dropsconfig.audit.categories(a major bump: a values file that sets it is refused), and the server no longer reads Cedar policy files from a directory (#5442). -
Breaking:
[authz.party_binding.representation]is removed, with itsarchetype_idandrelationship_codes(#5446). A representation is recognised by theferroehr-operations::representscode it carries in any archetype, and names its openEHRsubject_relationshipcode itself; the section is now an unknown key. Therefused-patient-representativerefusal is gone: apatientstoken whoseactnames a representative is admitted while a live representation binds them. -
The v5.7.0 configuration removal aids are gone. A key a release before v5.7.0 read, in the server’s
ferroehr.tomlor the viewer’s configuration, is now an unknown key like any other: the start is refused naming it and the keys its table does read, where v5.7.0 named the key that replaced it. The v5.7.0 changelog still maps every old key to its replacement (#5463). -
Breaking:
[auth.smart] public_base_url,[auth.scim] public_base_urland[auth.dpop] external_urlare removed fromferroehr.toml, and[server] public_base_urltakes their place. A deployment names the URL clients reach it at once. The SMART discovery document’sbaseUrlis that URL withserver.base_pathandapi.base_path, every SCIMmeta.locationhangs off it withserver.base_pathand/scim/v2, and a DPoP proof’shtumust name it withserver.base_pathand the request path (RFC 9449 §4.3). The SMARTbaseUrland the SCIM locations now carryserver.base_path, which they left out before. The key is required withauth.smart.discovery,[auth.scim]or[auth.dpop], and a configuration that still sets a removed key refuses boot as an unknown key: move its value to[server] public_base_url.ferroehr.default.tomllists two keys fewer. The Helm chart 28.0.0 takesconfig.server.public_base_urlin place ofconfig.auth.smart.public_base_urlandconfig.auth.scim.public_base_url(a major bump: a values file that sets either is refused at boot) (#5465). -
Breaking: four role names are removed from
[authz.rbac]:subject_audit_role,access_service_roles,import_roleandidentifier_reader_role. A configuration that still sets one refuses boot as an unknown key. Each permission is now a grant in the CDR and nothing else, under[authz.grants] allowed:read_subject_auditreads the access log of one subject (GET /fhir/r4/AuditEventwith onepatient),access_servicemakes a caller an EHDS Art. 10 access service held to an opt-out,import_ehrandimport_ehr_extractadmit the matching import, andread_identifiersadmitsGET /admin/party/identifiersbeside the admin role. A role a token or a Basic user names grants none of them. Recording an access opt-out is refused with400while[authz.grants] alloweddoes not allowaccess_service.[authz.rbac] role_issuersnow governsadmin_roleandemergency_access_rolealone, and the development compose configuration dropsimport_role. See the book’s “Operational policy” page, “What the grants decide” (#5521).
Fixed
-
A Web Template keeps the
timeof a singleEVENTthat the level removal collapses. ITS-REST simplified formats master04, §“Conditionally Collapsed Wrapper Types”, collapses anEVENTwith occurrences0..1into its OBSERVATION, and the builder dropped the event’s RM-mandatorytimewith it (RM data structures,EVENT.time1..1). FLAT and STRUCTURED had no key for the event time, so a written time was lost and read back as the history origin. The OBSERVATION now carries an in-contexttimeleaf at the event’s own path (…/events[at0002]/time). It builds into that event and reads out of it, as a retained event’stimedoes. Inopenehr-sdt(#5421). -
The worked
[authz.party_binding]example of the book’s authentication page names only definitions that exist: itsPERSON,ROLE,GROUP, membership and representation ids and paths are those of the shipped default set, and a test boots the example from the page against the files (#5428). -
ferroehr party-binding refilland the first fill rebuild the client identifiers of every kind ofACTOR, aPERSON, anORGANISATIONand aGROUPincluded; before, only anAGENT’s were rebuilt, so a client carried by another kind of party held no grant after a refill (#5436). -
A demographic AQL query by a caller without
[authz.rbac] admin_roleno longer returns policy parties. A query under any demographic root, alone or underVERSION, leaves out every version of a policy party, together with every node it reaches inside them throughCONTAINSor a path. The rule is part of the query’s one SQL statement, soCOUNT, the other aggregates and paging count only the parties the caller may read, and no extra statement runs. An administrator’s query returns them, as the Demographic API read does. The book’s “Operational policy” page states the rule (#5450). -
A specialised ADL 2 archetype whose differential path sits on an attribute below the root (
ELEMENT[at0002] matches { /value[at9001]/defining_code matches {...} }) is read from the object that owns the attribute, as AOM2C_ATTRIBUTE.pathdefines it. The upload no longer refuses such a path with VDIFP when the flat parent carries it, and the flat form overlays the constraint on the node the path names instead of adding it as a new attribute of the owning object (#5452). -
Archetype validation accepts a term binding keyed by a path that runs through a
use_nodeinternal reference, as AOM 2 VTTBK allows (“a path that is valid in the flat archetype”) and ADL 2 §Paths and Proxy Objects forms it, with the target’s node id. The 2013 CKMopenEHR-EHR-OBSERVATION.apgar.v1no longer fails VTTBK; a CDR whose terminology server serves LOINC still refuses it under VETDF, since it binds LOINC answer codes without their check digit (#5457). -
Breaking: a party’s inline relationship must be sourced at that party on every write. RM demographic
PARTY.Relationships_validity(relationships.for_all (r | r.source = self)) was judged only on aPUTwhose body carried nouid. APOST /demographic/{kind}, a demographic CONTRIBUTION version, and aPUTwhose bodyuidnamed another party’s container committed a relationship sourced at another party, which then showed in that party’sreverse_relationships. Each is now refused422namingPARTY.Relationships_validityand the relationship’ssource, and commits nothing. A new party’s container id is assigned by the commit, so a create that carries a relationship is refused: add the relationship with an update once the party exists. APUT, or a CONTRIBUTION version that modifies a party, whose bodyuidnames another container than the one it writes is refused422atuid(#5471). -
Breaking: demographic references must name a party’s version container of the right kind. RM demographic
master02-demographic_package.adoc§Party Relationships has relationship references denote “the Version container of a Party” byHIER_OBJECT_ID,role.adocmakesperformerthe “Reference to Version container of Actor playing the role”, andactor.adocmakesrolesthe “Identifiers of the Version container for each Role”. An inline relationship whosesourceortargetnamed anOBJECT_VERSION_ID, aROLE.performertypedROLEor naming a version or a party this server does not hold, anACTOR.rolesentry typedPERSONor naming a version or a missingROLE, and a relationship container between parties that do not exist all committed. Each is now refused422on the direct routes and in a demographic CONTRIBUTION, naming the attribute and its path; a reference to a party the same CONTRIBUTION creates, or to a logically deleted one, stands. A relationship container now appears in its target’sreverse_relationships(stable profile), as a reference to the container (#5472). -
A party read of an older version, by its
OBJECT_VERSION_IDor at aversion_at_time, listed inreverse_relationshipsthe relationships other parties hold today. It now lists them as they stood when that version was committed, and so do aVERSION<PARTY>read and the representation a create or update returns, which carried noreverse_relationshipsbefore. The reverse-relationship index keeps when each relationship held: the party migration0033_relationship_target_validityrebuilds it from the stored party versions, once, at startup (#5473). -
A party that ever had a policy version is now hidden from a caller without
[authz.rbac] admin_roleon both read paths, every version of it. Demographic AQL judged each version on its own, so it served the ordinary versions of a party an administrator had turned from a policy party into an ordinary one, while the Demographic API refused them. The commit that stores a policy version now marks the party in the same transaction, nothing clears the mark, and the party migration marks the parties already stored; an import, an archive load andferroehr party-binding refillmark from the stored versions. The Demographic API read and write rules and demographic AQL all key on that one mark, which AQL reads from the head row each query already joins, so no statement is added (#5485). -
An import or export grant can reach an EHR whose
EHR_STATUS.subjecthas noexternal_ref, such as an anonymous record’sPARTY_SELF, which no grant could reach once[authz.rbac] import_rolewas removed: asubject_namespaceelement holding theDV_CODED_TEXTno_subject_namespaceofferroehr-operationscovers exactly those EHRs, forimport_ehr,import_ehr_extractandexport_ehr_extract. A grant naming real namespaces still does not reach them, the code reaches no EHR whose subject names a namespace, and a grant naming nosubject_namespaceis still refused at its commit. See the book’s “Operational policy” page (#5530). -
A former patient-portal representative is no longer admitted as the patient once their representation ends or is deleted (#5532). On the own-login path, a login whose
PERSONholds or has ever held a representation of the EHR’s subject is judged only as a representative: admitted while a representation is live, refused withrefused-representation-unrecordedonce none is. FerroEHR keeps who once represented whom in the binding side table, and a refill rebuilds it from every version.
Security
Shipped with functional changes because: the fix of [[auth.attributes]], [[auth.federation]], [[auth.party]] and auth.scopeless_subjects comes only with ferrohealth-smart 0.19, which has no security-only release and changes the public API FerroEHR’s authentication is written against, and three of the FerroEHR keys the fix covers ([[authz.system_client]], [[authz.federation.agreement]] and [[auth.scim.client]]) were already replaced on main by grants the CDR holds, so a security-only patch of 5.7.0 would change code that no later release carries.
- An issuer written with a user name and password in its URL userinfo
(RFC 3986 §3.2.1) showed that password wherever 5.7.0 renders its
configuration:
ferroehr config check,GET /management/env,GET /ferroehr/rest/extensions/v1/admin/config,ferroehr report, the binding posture and the refusals at start-up (GHSA-gwh2-7hjm-4pj4, CWE-532, CWE-200). The keys that held the issuer as a plain string were[[authz.federation.agreement]] issuer,[[authz.party_binding.issuer]] issuer,[[authz.system_client]] issuer,[[auth.scim.client]] issuer,authz.rbac.role_issuersandauth.smart.patient_issuers, and, throughferrohealth-smart0.18,[[auth.attributes]],[[auth.federation]],[[auth.party]]andauth.scopeless_subjects. Each of these keys that 5.7.1 still reads holds the issuer as aSecretUrland renders it ashttps://***@host/..., as[[auth.issuer]]already did; the others are removed with the move of policy into the CDR. Only a deployment that wrote credentials into an issuer identifier is affected: remove them from every key that names the issuer and rotate the credential (#5418).
5.7.0 - 2026-11-11
5.7.0 follows 5.6.3 as the stable release and carries every change of its four release candidates: every person a login names is bound to a demographic PERSON, provisioned over SCIM or created just in time; the configuration is one table per concern with typed durations and sizes; AQL reads the attestations of a version; and FerroEHR runs on the newest FerroHEALTH family releases, with every outbound client built from the family endpoint table and every URL and issuer rendered with its credentials masked. It breaks deployments, each break with its upgrade step under Changed or Removed. Before you upgrade from 5.6.3: run ferroehr config check on your file, which names every key 5.6.3 read with its replacement, all at once, and remove [authz.professional], which refuses the start; give each persons issuer its [[auth.party]] table and each Basic user its [[authz.party_binding.basic_user]] mapping; give each existing PERSON its professional ROLE with ferroehr party-binding adopt before the first SCIM run, since a PERSON that performs no such ROLE binds no login, and list the persons still without one with ferroehr party-binding check; and add the persons issuers of a deployment whose FerroBRIDGE facade or FerroFED gateway writes to FerroEHR only after FerroBRIDGE v0.0.23 reaches it and a FerroFED release carries FerroHEALTH/FerroFED#1615, which no release does yet. The steps for party binding are on the book’s bootstrap and migration page. Party migrations 0027 to 0032, clinical migration 0035 and audit migrations 0023 to 0026 add the binding, SCIM, DPoP replay, refusal and access-record tables, columns and codes. The quickstart, the hosted sandbox and the chart move to FerroPIX 0.0.26 and FerroTERM 0.4.5. Helm chart 25.0.1 carries appVersion 5.7.0. Security carries two advisories, GHSA-jhg2-jwjp-hq74 and GHSA-pfgx-xq28-2629, the zlib fixes in the three images, and the not_affected judgements of the MIT Kerberos CVEs in the PostgreSQL image, the thirteen of MITKRB5-SA-2026-001 among them, and of the five OpenSSL 3.5.7 CVEs of 2026-11-10 in the three images.
Added
-
AQL reads the attestations of a version:
v/attestationsand anyATTESTATIONattribute below it (is_pending,reason,proof,items,committer,time_committed) underFROM EHR e CONTAINS VERSION v CONTAINS COMPOSITION c, with predicates onattestationsandEXISTS, andv/commit_audit/is_pendingandv/commit_audit/reasonon a commit audit that is anATTESTATION.SELECT v/attestationsreturns the list, and a comparison belowattestationsholds when any attestation matches. The FerroEHR extension functionLAST(v/attestations/<path>)reads the most recent attestation, soWHERE LAST(v/attestations/is_pending) = truelists the versions awaiting signature, including one marked pending again after it was signed (#4989). -
The party binding’s configuration, each table with its boot refusals:
[authz.party_binding](provideras one table or one table per tenant,namespace,basic_user),[authz.import] trusted_systems,[[authz.system_client]](the provider, facilities, templates and origins of each client-credentials client that commits) and[[authz.federation.agreement]](what a federation issuer’s external persons or organisation may do, on which legal ground), with[authz.rbac] role_issuersandimport_role. A template an agreement or a system client writes that the store does not hold refuses the start. The boot line andGET /management/infolist the issuers with their kind and identifier issuer, the provider, and every agreement with its accessor and legal ground, and an agreement that admits an organisation without a named person is logged atwarn(#5003). -
[auth.idp.entra], the Microsoft Graph access of theidp-entraadapter offerrohealth-smart, which resolves the groups of an Entra ID groups overage for an issuer whose profile setsadapter = "idp-entra"(#5003). -
[auth.dpop]and[[auth.issuer]] sender_constraint: tokens bound to a DPoP key (RFC 9449) or a mutual-TLS client certificate (RFC 8705), checked on every request. A DPoP proof is recorded by the replica that accepted it, so the Helm chart refuses a sender-constrained issuer on more than one replica (#5003). -
The login binding reads the local party source on every request, with no cache: the new party migration
0027_binding_side_tableadds the indexedbinding_identifier,binding_membershipandbinding_representationrelations, written in each party commit’s transaction from thePERSONs of the mapped templates that perform a professionalROLEor represent another person, theirGROUPmemberships and their representation relationships, and rebuilt from the party versions alone. A login matching two parties, aninactive,abandonedor deleted party, a token without the key claim, a party without the needed marker and unreadable groups are refused with403and their binding code; a party store or identity provider that cannot answer is answered503(#5004). -
ferroehr definitions load <path>...stores OPT 1.4 (.opt) and ADL 2 (.adls) definitions beforeserve, through the validation and versioning of the REST upload. A file already stored with the same text is left alone and other text under a stored id is refused, so a deployment runs it at every start to give its party mapping the templates it needs at boot.deploy/definitions/professional/holds a professional PERSON and ROLE pair adapted from openEHR CKM archetypes for the development lanes and the quickstart (#5006). -
The compose quickstart binds its user to a professional
PERSON: theferroehr-definitionsone-shot loads the PERSON and ROLE templates the party mapping names before the server starts, andferroehr-provisioncreates the user through/scim/v2/Userswith a token of the development issuer, then reports healthy, sodocker compose up --waitreturns once the login is bound. The Helm chart (23.3.0) takesdefinitions.files, which an init container stores withferroehr definitions loadbefore the server container starts. The conformance, browser and Kubernetes lanes load the same templates and provision every login they use through SCIM, with the committed test client ofdocs/conformance/party/scim/(#5006). -
ferroehr party-binding adopt <PARTY_ID>...gives each preparedPERSONof an existing deployment a professionalROLEof the mapping’s role template, with thePERSONasperformer, and a newPERSONversion listing it inroles, all in one demographic CONTRIBUTION committed by the first administrator named with--adminor--admin-key, and writes one access record per adoptedPERSONthrough the configured audit trail. It refuses the whole adoption, naming them, while any listedPERSON’s key was introduced by a committer that is no[[scim.client]], named administrator or--migration, so a key planted before the upgrade is never adopted. APERSONthat already performs theROLEis reported and left alone. The report is JSON on stdout (#5009). -
ferroehr party-binding checkis the read-only pre-flight of a migration to party binding, and the one report of the provisional persons just-in-time creation left incomplete. It reads the party versions alone, so it runs before any boot fill, and writes nothing. Per key issuer it reports thePERSONs that carry a binding key, every selector value twoPERSONs carry, the inactive and abandoned ones, the provisional ones older thanprovisional_report_days, the key-bearing ones that perform no professionalROLE, and every mapped Basic user with thePERSONit binds. For each key it names the committer of the version that introduced it, and fails unless that committer is a[[scim.client]], an administrator named with--adminor--admin-key, a migration declared with--migration, or just-in-time creation on an issuer withjit = true.--expected <file>lists every login of the identity provider with noPERSON. The report is JSON on stdout, and the command exits non-zero on a duplicate, a missing person or a key that fails the provenance rule (#5009). -
At boot, FerroEHR logs a
warnnaming every Basic user mapped in[[authz.party_binding.basic_user]]while[authz.assurance] minimumis unset: a Basic credential carries no assurance level, so such a person is never refused on patient data (#5009). -
The book has a “Who is the committer” page under Security. It covers the committer the server writes for each kind of caller, the placeholder a client may still send, the refusals with their status codes, and the deviation from the ITS-REST merge rule. It also shows how a professional’s
PERSONgets its login identifier. Enterprise identity providers now opens with the generic standards path and adds theentrapreset’s binding and provisioning settings, an Okta example, a Keycloak realm walk-through and a SAML section. The records of processing and the DPIA gain the workforce-identity activity, the federation node page gains its callers and agreements, and the go-live checklist checks the binding and the caller rates (#5010). -
The access record of a MyHealth@EU contact point’s request carries the request message’s UUID, the WS-Addressing
MessageIDits token relays asehdsi.message_id, as the record’srequest-message-id. The record then joins the contact point’s Patient Privacy audit entry (eHDSI Audit Trail Profile 10.1.0 §2.3.12 to §2.3.32) (#5011). -
The one
PERSONmapping SCIM provisioning, just-in-time creation and the login binding share:[[authz.party_binding.person.template]]with the binding key,userNameandexternalIdselectors of each template,[[authz.party_binding.person.attribute]]with the SCIM attribute, the OpenID Connect claim and the path of each mapped value, and[authz.party_binding.professional_role],[authz.party_binding.group],[authz.party_binding.membership]and[authz.party_binding.representation]. Boot refuses a mapping that breaks one of its rules, naming the key, including a template that is absent, rooted at another class or lacks a mapped path, and deleting a template the mapping names is refused with409(#5013). -
The new party migration
0028_binding_selectorsholds each binding key,userName(compared after RFC 8265 width mapping, lower case and NFC),externalIdand groupdisplayNameto one live party, so a commit giving one a second party is refused with409. The first boot fills the side table under the mapping’s digest, a replica with another mapping refuses to start, andferroehr party-binding refillrebuilds it after a mapping change, refusing while a replica runs and naming the parties when a value is carried twice (#5013). -
POST /admin/party/binding-keyre-keys aPERSON’s binding key: it refuses the administrator’s own login and a key already bound, retires the old key in the same commit and writes one access record carrying both (#5013). -
[scim]mounts the SCIM 2.0 service provider at/scim/v2/(off by default):[[scim.client]]declares each provisioning client byissuer,client_id,scopeandbinding_issuer, andpublic_base_urlnames the origin its documents hang off./scim/v2/ServiceProviderConfiganswers without a token;/ResourceTypesand/Schemasanswer a declared client acting for nobody that holds its scope, within[server.caller_rate]. Every refusal is an RFC 7644Errormessage. The start is refused for a client of a non-machinesissuer, one declared twice, two clients sharing abinding_issuer, or abinding_issuerno[[auth.party]]table carries (#5014). -
The SCIM endpoint answers the Microsoft Entra ID provisioning client as Microsoft’s “Develop a SCIM endpoint” guide documents it: a value-filtered attribute such as
emails[type eq "work"].valueserves itstypeand declaresprimaryread-only, so theprimaryEntra sends is ignored (RFC 7644 §3.3); aPATCHofuserNamerenames the User; and the Test Connection probes are answered with an emptyListResponseand404.ferroehr config checkrefuses a[scim]the person mapping cannot serve, asservedoes. The Helm chart exposesconfig.scimand routes/scim/v2on every Ingress host when it is enabled, and the book walks an operator through provisioning from Entra ID, with the Workload Identity Federation checks the authorization server makes (#5014). -
/scim/v2/Users/{id}takesPUT,PATCHandDELETE: a write commits the next version of the professional’sPERSON, clearing a mapped attribute aPUTleaves out, keeping the binding key andexternalId, and moving the lifecycle state byactive(completeorincompletetoinactiveorabandonedand back, anabandonedUser completed in two versions, an attribute change to an inactive User refused until it is reactivated).DELETElogically deletes thePERSONand its professionalROLEin one CONTRIBUTION and leaves the binding key as a tombstone. AnIf-Matchnaming another version is412, andServiceProviderConfigdeclares PATCH.[scim] max_deactivationsanddeactivation_window_minutesbound the deactivations and deletions of one client, counted in the database so replicas share the bound, with429past it (#5014). -
/scim/v2/Usersserves a client’s Users:POSTcreates the professional’sPERSONand its professionalROLEin one demographic CONTRIBUTION,completewhen the template holds in full andincompleteotherwise,GET /Users/{id}answers with the version’s entity tag and304to a matchingIf-None-Match, andGET /Usersanswers aListResponsefiltered byeqandandoveruserName,externalIdandid, with any other filter400invalidFilter. A client sees only the Users whose binding key itsbinding_issuerissues, every SCIM request is an access record of the client naming thePERSON, andServiceProviderConfigdeclares entity tags. The start is refused when[scim]is on and the party mapping has no default person template with auser_nameselector or no professional role (#5014). -
/scim/v2/Groupsserves SCIM Groups as demographicGROUPs of[authz.party_binding.group], each member holding an inlinePARTY_RELATIONSHIPof[authz.party_binding.membership]from itsPERSONto theGROUP, with noROLEminted: create, read,eq/andfilters ondisplayName,externalIdandid,excludedAttributes=members,PATCH(answered204),PUTandDELETE, with the entity tags of Users. A Group belongs to the client that created it, its members are that client’s Users, itsdisplayNameis unique, and itsexternalIdsits under the client’sgroup_identifier_issuer. Aremoveofmemberswith avaluelist removes only those members, an Entra compatibility deviation from RFC 7644 §3.5.2.2. Deleting a User removes its memberships in the same CONTRIBUTION.[scim] max_group_members(default 5000) caps a Group (#5015). -
Just-in-time creation of a provisional
PERSONat a first login, off by default and enabled perpersonsissuer in a new[[authz.party_binding.issuer]]table (jit,guests_jit,user_name_claim,idp_claim,admit_idp,admit_groups,admit_roles,admit_assurance). A login of a person or a delegated caller that matches no party and meets every declared admission condition commits one553|incomplete|PERSONholding the binding key, theuserNameand the name claims of the access token, with its professionalROLE, as a creation by the person, and is served bound to it; any other mapped attribute is written only where its mapping setsjit = true, andexternalIdnever. Concurrent first requests commit onePERSON, a deprovisioned or inactive login is never recreated, a takenuserNamerefuses the login, and a SCIM client of the key’s issuer completes thePERSON. Boot refusesjitwithout an admission condition or a mapping that can write it.ferroehr party-binding checklists the provisional persons older than[authz.party_binding] provisional_report_days(default 30) (#5016). -
A party of a mapped template is validated against that template on every demographic write: a
PERSONorGROUPwhosearchetype_details.template_idnames a template of the shared party mapping, and aPARTY_RELATIONSHIPof its membership archetype. A532|complete|version must meet every constraint, and a553|incomplete|one may miss mandatory nodes but nothing it carries may be wrong (RM common master06 §Incomplete Content); the refusal is a422naming each failing path. Every other party keeps the reference-model checks alone, so parties created through the Demographic API under other templates are accepted as before (#5042). -
The FHIR
AuditEvent, the DICOM audit message and the ITI-20 syslog feed carry the binding fields of the access record: the binding outcome, the party and its groups, the provider acted for, the facilities of a system commit, the representation with its relationship, the actor chain, the external accessor’s asserted fields and the agreement with its legal ground, consent and access class, and achainedrequest’s correlation id.ehds-logging0.5.1 writes them as theehds-accessorandehds-relayedentities, in the DICOM message as participant objects of type Other. The FHIR record also writes theexternalandsystemacting modes. FerroEHR moves toehds-loggingandihe-atna0.5.1 andihe-iti0.0.77 (#5043). -
A bound representative reaches only the EHR whose
EHR_STATUSnames the subject it represents. Every composition,EHR_STATUS, directory, contribution and query request is held to that EHR whatever the token’s scopes cover, and a query must name it withehr_id. A representative whose token names a subject its party has no live representation relationship to, or whose issuer no[[auth.party]]table binds, is refused with403andrefused-representation-unrecorded(#5086). -
The Helm chart (23.1.0) accepts
bridge.cdr.oauth.tokenEndpointfor an authorization server whose metadata FerroBRIDGE cannot read atbridge.cdr.oauth.issuer. FerroBRIDGE then requests its client credentials token from that endpoint, andissuerstill names themachinesissuer the CDR trusts (#5093). -
A MyHealth@EU contact point’s caller (a
contact_point = truefederationissuer) reaches patient data only for the patient of its treatment relationship confirmation. The token’sehdsi.patient.id(system|value) is resolved to its EHR through the EHR index, and every patient-data request must name that EHR. A token without it is refused with403andERROR_SEC_DATA_INTEGRITY_NOT_ENSURED, recorded asrefused-trc-missing. Another patient’s EHR, an unknown EHR and a request naming no EHR all answer one404of the new problem typetrc-patient-mismatch, carrying the agreement service’s*_NOT_FOUNDcode and recorded as arefused-trc-patient-mismatchsecurity event (eHDSI XCA Profile 8.0.1 §4.2.1, §4.2.2). A contact point’s person agreement now names itsehdsi_service; upgrade step: set it, and list the issuer in[smart] patient_issuers(#5102). -
An external person under an agreement with
discarddiscards a dispensation of a listed template, as a logical delete, withindiscard_window_hoursand from the same point of care: the dispensation’shealth_care_facilitycarries the token’s provider identifier and its eHDSIorganization-id. A token carrying permissions records and discards a dispensation only withPPD-046(eHDSI SAML Profile 10.0.0 §2.5) (#5102). -
A read under a federation agreement with a
consentcondition is served when the token carries the consent decision reference for its patient (Wabvpz Art. 1(j) and Art. 15a(1)), in the claim orauthorization_detailsmember the issuer’s[[auth.federation]]table maps toconsent.reference, and refused with403without it. The reference is one string, the token’spatient/grant holds it to the launch-context patient, and the access record carries it with the other external fields.ferrohealth-smartmoves to 0.9.3, which reads the field (#5106). -
Every access record of an authenticated request carries the outcome of the party binding (
binding:bound,provisional,external,organisation,system,selfor arefused-*code) with the fields it needs: the bound party, its groups, the provider, the guest mark, a representative’s representation, a delegated token’s actor chain, a verified external accessor’s fields and agreement, and the facilities a system caller’s compositions named.acting_modegainsdelegated,externalandsystem. The audit migration0023_binding_outcome.sqladds the columns and restores a per-row digest version: records written before stay version 1 and keep verifying, new records are version 2, and a version-1 record after a version-2 one is refused (#5118). -
Every refused request is an access record through the gated path, and a refusal of the login binding or of a caller kind carries its
refused-*binding code and the party it names. Refusals of tokens that failed verification are budgeted by source network and those of verified callers by issuer and subject, so neither crowds out the other; past a caller’s limit its refusals become one summary record with the count and the EHR ids they named, and past a budget one summary record per issuer and outcome is written. Security-event refusals are recorded for every answered request, and a refusal record the system log cannot take is counted inatna_audit_refusals_unwritten. The limits, windows and budgets are kept per replica (#5119). -
A
chainedorganisation request under a federation agreement is served only when its token carries the requester’s correlation id in the claim or attestedauthorization_detailsmember the issuer’s[[auth.federation]]table maps tocorrelation_id. Without it the request is refused with403and recorded under the binding coderefused-correlation-missing(audit migration0025); a request header never stands in for it. Theorganisationaccess record’sagreementcarries the id and its source beside the legal ground and the access class. A chained agreement whose issuer maps nocorrelation_id, or maps it from a constant, refuses the start (#5120). -
On the MyHealth@EU contact-point route, the committer of an external person names the professional by the HP Identity Assertion’s
NameID:DV_IDENTIFIER{issuer = the assertion's issuer, id = the NameID, type = "hp_identifier:<NameID format>"}, beside the voucher’soauth2identifier (eHDSI SAML Profile 10.0.0 §2.1), and a dispensation’s discard is a logical delete under the same committer. A contact point’s COMPOSITION must carry the HCPO’sorganization-idinEVENT_CONTEXT.health_care_facility.identifiers, under the issuerurn:oasis:names:tc:xspa:1.0:subject:organization-id, beside the provider’s identifier, or it is refused with422.ferrohealth-smartmoves to 0.9.4, which readsehdsi.assertion.name_id_formatand refuses a contact-point token without one of the three formats asERROR_HPI_INSUFFICIENT_INFORMATION; upgrade step: a contact point’s authorization server writes the NameID format into its tokens (#5144). -
A federation caller above its agreement’s
caller_rate, a MyHealth@EU contact point’s included, is answered429withRetry-Afterright after authentication and before any patient lookup, keyed on the token’s subject per replica, and every such refusal is counted into the caller’s summary record (#5149). -
A deleted SCIM User’s contacts are erased from every version of its
PERSON, keeping the name, the binding key and the identifiers for the record-keeping duties that need them.[scim] contact_erasure_minutes(default0, at most 43200) sets when:0erases them in theDELETEitself, a period leaves them to a sweep that runs every minute. Each erased version’s node rows are derived again from the new body, its server signature is removed, and the erasure is an access record namingparty:<id>#contacts. Party migration 0030 adds thescim_contact_erasuretable (#5178). -
openehr-rmtypes generic RM type names and paths:typing::RmTypeparses and prints names such asDV_INTERVAL<DV_QUANTITY>,typing::attribute_typegives an attribute of an instantiated class with the actual argument in place of the formal parameter, andtyping::path_typetypes every step of anRmPathwith its container. Eachmodel::RmAttributeandmodel::RmTypeRefkeeps the formal parameter it is written as (formal) beside the resolved bound.paths::write::item_at_path_mutandpaths::write::set_at_pathwrite at a path into a canonical instance, positional predicates included, creating the members the path names and changing nothing when a write is refused (#5187). -
openehr-sdt:flat::navigate::Navigatorgives every instance of a Web Template path in a composition, with each step’s occurrence, container index, positional path and JSON pointer, reaching a renamed instance where the template’s name is redundant and an OPT2 archetype root through the complete identifier the template recorded.flat::navigate::relativecompares two paths step by step.flat::attribute_keysgives the FLAT key of an RM attribute of a structural class (themaster05-rm_mapping.adoctables, checked against them). AWebTemplateNodecarriesfacts(the embedded template id of an OPT 1.4 archetype root and the terms its archetype defines) and every coded option itsterminology, so no consumer walks the operational template (#5189). -
openehr-basegives identifier and time parts as written:ObjectVersionId::object_id_strandObjectVersionId::versioned_object_idkeep the case of theobject_idpart,Iso8601Time::fraction_digitsandIso8601DateTime::fraction_digitsreturn the digits of the fractional second as text, andIso8601Duration::partsreturns each component’s designator and number verbatim (DurationDesignator,DurationPart), withIso8601Duration::fraction_digitsfor the seconds (#5190). -
openehr-itsreads the ITS-RESTETagas a typed entity tag:rest::etag::EntityTagparses and writes the RFC 9110 form, weak or strong, with the weak and strong comparisons. It types the tag as anObjectVersionIdor aHierObjectId. Every generated response-headers struct that carries anETaggainsentity_tag()beside the rawetagfield (#5191). -
openehr-termnames thenull_flavoursandsettinggroups:codes::NullFlavourandcodes::Settinggive each concept’s code and English rubric and read a code back, held equal to the bundled terminology by tests. Every typed group’sALLis now a slice (#5192). -
openehr-am:HridRefreads an archetype reference with the version precision it was written at (VersionPrecision: major, minor or full, BASE Artefact Identification §Referencing), gives the version as written and matches anArchetypeHridby the specification’s rule, the namespace never a wildcard.ArchetypeHrid::local_semantic_idgives the namespace-free interface form a Web TemplatenodeIdcarries, which thev2_4Web Template builder now uses (#5193). -
openehr-its:rest::stored_querytypes a stored query’s qualified name (QualifiedQueryName,[{namespace}::]{query-name}, withcheck_registrablerefusing the reservedaql), its version (QueryVersion,major.minor.patchin numeric order) and the version pattern a request addresses (VersionPattern, exact,{major}or{major}.{minor}, selecting the highest match), per ITS-REST 1.1.0. The generated stored-query operations and theStoredQueryandRESULT_SETdocuments carry them, so a name or version outside the grammar is a400where the request is decoded (#5207). -
openehr_rm::Generation::earliest_for_compositionanswers the oldest RM generation whose canonical-JSON decode accepts a composition, so a builder can nameARCHETYPED.rm_versionwithout naming a generation module; a value no generation decodes is a typedNoGenerationDecodeserror carrying every generation’s refusal (#5242). -
The access record takes the purposes of use and the professional roles from the access token. An issuer with an
[[auth.attributes]]table states them through the IHE IUApurpose_of_useandsubject_roleclaims (IHE ITI TF-2 §3.71.4.2.2.1.1) or thepurpose_of_useof RFC 9396authorization_details. The newtoken_attributescolumn of the audit store holds them, a new record is chain digest version 3, and the EHDS access record and the BALPAuditEventwrite them with their code systems. A request whose[audit] purpose_headernames a purpose the token does not state is refused with403, and the refusal is recorded. The header alone keeps working for an issuer without the table (#5323).
Changed
-
The published server, viewer and PostgreSQL images take their
org.opencontainers.image.base.nameandbase.digestlabels and annotations from the runtime stage’s digest-pinnedFROMline at build time, so a base-image bump changes that one line. An image built directly from a Dockerfile no longer carries these two labels (#4953). -
[auth]takes theferrohealth-smart0.9 shape. Every trusted issuer is an[[auth.issuer]]table with a requiredkind(persons,patients,machinesorfederation) and aprofile(rfc9068by default, orentra,keycloak,okta,nl), and holds every setting of its tokens itself. A configuration in the old shape refuses the start, naming what replaces it. Upgrade steps: write a flatissuer = "…"as an[[auth.issuer]]table; moveaudience,algorithms,clock_skew_seconds,jwks_max_age_seconds,jwks_refresh_interval_seconds,jwks_file,timeout_ms,mode,role_claimsand[auth.introspection]onto each issuer table ([auth.issuer.introspection]); give each issuer itskind, with patients and professionals at separate issuers (a realm or tenant each), since one issuer is one kind; replacetoken_profile = "jwt"withtoken_types = ["JWT"]and therequired_claimsthe issuer’s tokens carry, and droptoken_profile = "rfc9068"; and write eachscopeless_subjectsentry as{ issuer = "…", sub = "…" }(#5003). -
A
personstoken is admitted only through a client its issuer lists infirst_party_clientsordelegates. Upgrade step: list the deployment’s own clients, the viewer’s among them, infirst_party_clients, and a third-party client that acts for a person indelegates. The other 0.9 profile keys (person_key,tenant_claim,client_claims,app_only,guest,impersonation_marker,expect,user_claims,person_equality,unstable_claims,max_actor_chain,representation,scope_claim,app_only_scope_claim,adapter,sender_constraintand theonward_*keys) are documented in the configuration reference (#5003). -
An array of tables, such as
[[auth.issuer]], is set from the environment by element index (FERROEHR__AUTH__ISSUER__0__ISSUER), throughferrohealth-config0.2.10 (#5003). -
[smart] issuer_metadata_fileis the metadata of the[auth]issuer it names, wherever that issuer stands in the list, and a file naming no[auth]issuer refuses the start. The SMART discovery document describes the first introspected issuer, else that named issuer, else the first issuer whose metadata is read from it, else the first issuer, so a Basic users’ issuer listed first no longer takes the discovery document (#5003). -
The family crates move together:
ferrohealth-smart0.9.1,ferrohealth-authz0.3.0,ferrohealth-session0.3.1,ihe-atnaandehds-logging0.4.0,ihe-iti0.0.76,ferrohealth-config0.2.10,ferrohealth-server0.5.1 andferrohealth-ui0.6.9.ihe-atnaandehds-loggingnow escape every control and bidirectional formatting character of a value they write as its code point. Withferrohealth-ui0.6.9 the viewer’s session watch no longer throws when the party relationship form, which holds a control namedtarget, is submitted (#5003). -
The terminology client moves to
ferrobridge-term0.1.143 (FerroBRIDGE v0.0.22), which takes theferrohealth-smart0.9 token source (#5003). -
Every person is bound to a demographic party, with no switch. A
personsissuer needs its[[auth.party]]table, two issuers of one node may not share an audience, and[authz.party_binding] provider(the healthcare provider the deployment acts for, EHDS Art. 13(4) and Annex II 3.2(a)) is required once[auth]admits a credential; each refuses the start naming what to set. A Basic user is a person: it maps to the binding key of itsPERSONin[[authz.party_binding.basic_user]](user,key_issuer,key), and a Basic user without a mapping refuses the start, naming the user. Upgrade steps: add an[[auth.party]]table to eachpersonsissuer, setprovider, and map each Basic user under theidentifier_issuerof an[[auth.party]]table, which needs apersonsissuer; a deployment of Basic users alone declares one whosejwks_fileis a key set that signs nothing, as the quickstart and the sandbox do (#5003). -
A token grants
[authz.rbac] admin_role,emergency_access_role,import_roleandidentifier_reader_roleonly when its issuer is listed in the new[authz.rbac] role_issuers, each apersonsissuer; any other kind refuses the start. Upgrade step: list the issuers whose role claims grant these roles; a Basic user keeps the roles its own table grants (#5003). -
The compose quickstart, the dev and conformance stacks, the hosted sandbox and the Helm chart’s Basic overlays bind their Basic users under a
personsissuer that signs nothing: its key set, which every FerroEHR image carries at/opt/sandbox-posture/basic-users-jwks.json, is the public half of a key pair whose private key was discarded (#5003). -
The quickstart has one copy.
docker-compose.ymlonmainpulls the FerroEHR images at:mainand carriesmain’s configuration, which CI checks with the server image the change builds; the copy attached to each release pulls that release’s images, written by the release lane, which refuses a copy that still names:main. Download the release asset (releases/latest/download/docker-compose.yml) to run a release (#5003). -
The Helm chart moves to 22.0.0.
config.auth.issueris a list of issuer tables, each with itskind,profileandaudience, andvalues.yamlexposesconfig.auth.party,config.authz.party_binding,config.authz.rbac.role_issuers,config.authz.system_clientandconfig.authz.federation.agreement. The chart refuses an issuer withsender_constraint: requiredbesidereplicaCountabove 1 or autoscaling. Upgrade steps: rewriteconfig.authas the[auth]upgrade above describes, setconfig.authz.party_binding.provider, and list the issuers whose roles grant the administrator role inconfig.authz.rbac.role_issuers(#5003). -
A
PERSONbinds a login only while it performs a professionalROLEof the party mapping’s role template that names it asperformer; aPERSONthat carries the binding key and performs no suchROLEis refused like an unbound one (403,refused-unbound). SCIM provisioning and just-in-time creation commit theROLEwith thePERSON. Upgrade: give each existingPERSONitsROLEwithferroehr party-binding adoptbefore the first SCIM run, and list the persons still without one withferroehr party-binding check(#5004). -
A caller bound to a demographic
PERSONcommits under the committer the server writes: aPARTY_IDENTIFIEDwith thePERSON’s name, the login identifier (the issuer profile’sperson_keyvalue under the token issuer, typeoauth2, or the Basic user underferroehr, typebasic), the provider identifier (typehealthcare-provider) and anexternal_refto thePERSON, on every commit path, attestations and CONTRIBUTIONs included. Upgrade: stop sending a committer, or send the placeholder{"_type": "PARTY_IDENTIFIED", "identifiers": [{"_type": "DV_IDENTIFIER", "issuer": "<iss>", "id": "<sub>"}]}, which must name the authenticated caller; a stated committer with another name, identifier orexternal_ref, and a statedPARTY_RELATED, is refused with403(#5005). -
A patient’s committer is
PARTY_SELFwith noexternal_ref, and a representative commits as aPARTY_RELATEDnaming their ownPERSONand the coded relationship. A patient-context token commits no demographic version. Upgrade: read the person’s own entries by the committer’sPARTY_SELFtype, not by its formerexternal_ref(#5005). -
Importing an EHR Extract needs the role
[authz.rbac] import_rolenames, or asystem/caller, and a wrapped committer naming a party or a login of this deployment is refused unless its version was created by a system[authz.import] trusted_systemslists. Upgrade: setimport_roleand give it to the accounts that import (#5005). -
A person of a
personsissuer whose login no demographic party carries is refused with403andrefused-unboundon every request, with no fallback to a login-only committer. The problem names the identifier issuer to provision the person under, a token without the key claim is refused with a problem naming that claim, and each refusal counts into the newbinding_refusalsmetric by issuer and outcome. The Keycloak quickstart overlay provisions its four demo users through SCIM with theferroehr-provision-keycloakone-shot. Upgrade: provision every professional (through SCIM or the demographic API) before you add apersonsissuer to the upgraded deployment (#5006). -
A deployment whose FerroBRIDGE facade or FerroFED gateway writes to FerroEHR adds its
personsissuers only after the bridge and the gateway reach it under the caller: FerroBRIDGE v0.0.23, and the FerroFED release that carries FerroHEALTH/FerroFED#1615, planned for v0.0.20. Until then the committer rule refuses their writes. No FerroFED release reaches the CDR under the caller yet, so a deployment with a FerroFED gateway adds itspersonsissuers only once one does. The book’s new “Party binding: bootstrap and migration” page carries the bootstrap path, the four migration steps and these prerequisites, and “Breaking changes of party binding” lists every incompatible change with its upgrade step (#5009). -
The hosted sandbox follows the bootstrap path of party binding: its configuration declares the
sandbox-scimclient ([[scim.client]], with the development issuer trusted as amachinesissuer for it), the box’s newferroehr-provisionservice provisions the demoPERSONthrough/scim/v2/after every reset, andscripts/sandbox/reseed.shwaits for the demo login to bind before it seeds, then checks the committer of the marker’sEHR_STATUSversion references aPERSON. The deploy probe’s newbootstrapfamily (P-BOOTSTRAP-01) shows the compose quickstart does the same from an empty database: the quickstart user is a User of the SCIM client, and a commit of the Basic user names thatPERSON(#5009). -
With a party mapping configured, the parties the login binding relies on are written through the demographic API by an administrator (
authz.rbac.admin_role) only: aPERSONof a mapped template carrying a binding key,userNameorexternalId, its professionalROLE, a representation relationship, and aGROUPof the group template. Any other caller’s write is refused with403, a version that changes a present binding key is refused with403, and an administrator’s version that leaves a protected identifier out is refused with422. Upgrade: write these parties as an administrator, and change a key throughPOST /admin/party/binding-key(#5013). -
FerroEHR records every DPoP proof it accepts in its PostgreSQL database until the proof’s window ends, so a proof is accepted once across all replicas, and a proof replayed to another replica is refused there (RFC 9449 §11.1). If the database cannot record a proof, the request is refused with
503. The Helm chart (22.1.0) no longer refuses an issuer withsender_constraint: requiredbesidereplicaCountabove 1 or autoscaling (#5072). -
An AQL query scoped to one EHR now takes the streaming plan shape whatever its
ORDER BY,DISTINCTor aggregates, whether the EHR comes from theehr_idrequest parameter or from anehr_id/valueequality in the query. On a store of 100,000 compositions such a query used to spend 16 to 64 ms in PostgreSQL’s planner for an execution of about 1 ms, on every new connection and every new statement text; it now plans in 1 to 3 ms (#5076). -
The Helm chart (23.0.0) connects FerroBRIDGE to the CDR as a machine. FerroBRIDGE uses an OAuth 2.0 client credentials client of a
machinesissuer that the CDR trusts, set inbridge.cdr.oauth(issuer,clientId, and optionallyscope,audienceandresource). The client secret comes from theclient_secretkey ofbridge.cdr.existingSecret. The chart no longer accepts a Basic user for this connection: from ferrohealth-smart 0.9 a Basic credential belongs to a person and holds nosystem/scope. The chart refuses to render whenbridge.cdr.oauth.issueris not listed inconfig.auth.issuerwithkind: machines. To upgrade, add that issuer, create the client, and replace theuserandpasswordkeys of the Secret withclient_secret(#5085). -
A verified external person’s commit records the professional as its committer: a
PARTY_IDENTIFIEDwith the asserted name, thehp_identifierunder the issuer"<country_code>:<issuing_authority_name>"and the token’sissandsub, with noexternal_ref. A country code that is no upper-case ISO 3166-1 alpha-2 code, or an issuing authority holding a:, control or bidi character, is refused with403naming the field. The COMPOSITION must name the token’s healthcare provider (provider.healthcare_provider_identifierunderprovider.issuing_authority_name) as itshealth_care_facility, or it is refused with422. Upgrade step: mapprovider.issuing_authority_namein each[[auth.federation]]table whose agreements carrywrites, with aconstantsource where the token does not carry it (#5097). -
A system caller (an app-only token by its issuer profile’s
app_onlymarkers) holdssystem/scopes only: a token carrying auser/orpatient/scope is refused with403. It commits into an EHR only as a client an[[authz.system_client]]table declares, under the committerPARTY_IDENTIFIED{name = <client>, identifiers = [{issuer = <iss>, id = <client>, type = "client"}]}, and each COMPOSITION it commits must be of a template itswriteslists (403), name a facility itsfacilitieslists incontext.health_care_facility, or infeeder_audit.originating_system_audit.locationwhen it has no context (422), and be either a device act from adeviceclient or a relayed person act naming the professional by an identifier from arelayclient. Upgrade: declare every client that commits in[[authz.system_client]]with itswrites,facilitiesandorigins, and give its compositions the facility identifier (#5100). -
An attestation is accepted only from a caller bound to a professional
PERSON; one from a patient, a representative, a system caller or an unbound caller is refused with403. Upgrade: attest under the professional’s own token (#5100). -
A guest of a
personsissuer, by its profile’sguestmarkers, is refused with403(refused-guest) unless the issuer’s[[auth.party]]table setsguests = true. Upgrade: setguests = trueon the issuers whose guests act under your responsibility (#5100). -
A verified external person or organisation of a
federationissuer is admitted only under the[[authz.federation.agreement]]of its issuer and accessor, holding no scope beyond the agreement’sreads, and is an access-service caller by its kind: an opted-out EHR answers404to it, and only an external person under an agreement withopt_out_overridereaches one under an emergency purpose. It commits only a COMPOSITION of a template the agreement’swriteslists (an organisation nothing), and a read under aconsent-conditioned agreement, and every request under an NL agreement, is refused until the consent decision reference and the Wabvpz Art. 15f roles can be read. Upgrade: declare an agreement for everyfederationissuer and accessor, list the issuer in[smart] patient_issuers, and give its tokens only thepatient/scopes the agreement reads (#5101). -
Under an NL
[[authz.federation.agreement]], Wabvpz Art. 15f now decides admission in place of the refusal of every request. A caller whosenl.roleis the UZI role 01.008 (bedrijfsarts) or 01.048 (verzekeringsarts) is refused with403asrefused-wabvpz-role, and a caller whosenl.organisation_typeis missing or is not a care provider type of Nictiz’sOrganisatieTypeCodelijstis refused with403asrefused-wabvpz-organisation-type, so an insurer is refused. Every NL agreement declarespurpose = "care"; one without a purpose, or for akeuring, refuses the start. The code lists are vendored byscripts/vendor/nl-role-codes.shintodocs/specs/nl-role-codes/. Upgrade: addpurpose = "care"to every NL agreement and mapnl.organisation_type(andnl.rolefor persons) in its issuer’s[[auth.federation]]table (#5107). -
A delegated token’s access record now has
acting_mode = "delegated"where it hadclient, and a system caller’ssystem. The FHIR rendering still names a delegated access as a client one. Upgrade: a review query that selects delegated access byacting_mode = 'client'also selects'delegated'(#5118). -
FerroEHR builds on
ferrohealth-server0.6.1, whose public caller-rate take holds a federation caller to its agreement’scaller_rate. Its 0.6.0 break, therevocationfeature’s move toder0.8, touches no feature FerroEHR enables (#5149). -
The source tree no longer carries the UZI role code CodeSystem (
uzi-rolcode) of Nictiz’s zib 2020 package: its codes and titles reproduce the UZI-register CPS, which CIBG does not license for reproduction.scripts/vendor/nl-role-codes.shwrites it into the git-ignored.vendor-cache/nl-role-codes/, as it does the CPS, and--test-inputsfetches only what the Wabvpz tests read. Nictiz’s care provider types stay underdocs/specs/nl-role-codes/. Runscripts/vendor/nl-role-codes.sh --test-inputsonce before running theferroehr-resttests (#5175). -
A contact point’s
patient.idis read throughferrohealth-smart’sTrcPatientId, the family’s one definition of the TRC patient. A value with whitespace in its system, or a value holding a control character,|or a CX delimiter (^,&,~,\), is refused as a missing binding, as the contact point that writes the claim refuses it (#5195). -
[auth]takes three boot refusals fromferrohealth-smart: a Basic user’s hash below the Argon2id floor (m=19456, t=2, p=1), an issuer that carriesuserinfo, and private or symmetric key material in ajwks_file. They are refused as before, with the crate’s messages. Ajwks_filethat is no JWK Set now refuses the start where the crate reads the key set (#5209). -
The family crates move together to one
ferrohealth-smart: 0.13.1, withferrohealth-authz0.7.0,ferrohealth-session0.7.0,ihe-atnaandehds-logging0.8.0,ihe-iti0.0.83,ferrohealth-server0.6.4 andferrobridge-term0.1.148. The 0.13 line refuses a JSON document it cannot read without quoting it (GHSA-mhv7-3975-6xq3), so ajwks_fileor[smart] issuer_metadata_filethat does not parse is refused at boot with the crate’s message, which names the failure class and position; 0.13.1 keeps a refused key set, introspection or metadata body out of the error (GHSA-5qm7-v4fw-p2v9). The OAuth client credentials tables ([authz.abac.remote.oauth],[ehr_index.oauth],[terminology.oauth]and[audit.fhir_feed.oauth]) read as before (#5209). -
The API’s response security headers come from the family server stack (
ferrohealth-server0.6.2) with the same six headers and values. They now also reach the management listener on its own port, andStrict-Transport-Security: max-age=31536000is sent when FerroEHR or the viewer serves TLS itself ([server.tls], RFC 6797 §7.2). The viewer gainsCross-Origin-Resource-Policy: same-site(#5210). -
The server and the viewer read the parts of an
OBJECT_VERSION_IDthroughopenehr-baseand its BASE grammar, never by cutting at::. A value that is noOBJECT_VERSION_IDnow names no version: the AQL branch refusal, the version item tags and the viewer’s version numbers leave it alone, a reference to a container is read as the whole value (souuid::extensionno longer names the containeruuid), and the viewer’s deletes refuse it before calling the CDR. Every part keeps its case (#5211). -
ETagandIf-Matchvalues are read throughopenehr-its’s RFC 9110 entity tag on the server and in the viewer. The server accepts the same forms as before. The viewer reads its CDR’sETagstrictly: a value that is no entity tag names no version (#5212). -
The viewer’s audit screen reads the ITI-81 searchset and each
AuditEventas FHIR R4 resources, and a refusal’sOperationOutcometoo. A searchset that is no FHIR R4BundleofAuditEvents now shows as a failed read, never as a page of empty rows (#5214). -
The EHR index’s boot check reads the PIX Manager’s
CapabilityStatementthroughihe-iti’s PIXm client, with its transport and its client-credentials token, so a Manager behind IUA answers the probe as it answers ITI-83. A failed probe is reported as the client’s refusal: no answer, the status it answered, or no FHIR R4CapabilityStatement(#5216). -
[audit.syslog]reads its TLS material from[audit.syslog.tls], the outbound TLS table of every FerroHEALTH product (trust_roots_file,client_identity_fileorclient_identity,min_version), and handsihe-atnathe rustls configurationferrohealth-serverbuilds from it. The keystls_ca_file,tls_identity_cert_fileandtls_identity_key_fileare retired and refused at boot by name: name the roots file astrust_roots_file, and concatenate the client certificate chain and its private key into the one PEMclient_identity_filenames. The client speaks TLS 1.3 unlessmin_version = "1.2"lowers it (#5217). -
A SCIM Group membership is now held by the member: an inline
PARTY_RELATIONSHIPfrom the member’sPERSONto theGROUP, stored in thePERSON’s version (RM demographic §Party Relationships). A membership change versions only thatPERSON, so its cost no longer grows with the Group’s size. TheGROUPis versioned only by a rename, anexternalIdchange or its deletion. The Group’smembersis read from the membership index (#5220). -
A Group’s
ETagis now itsGROUPversion plus a membership revision, so it still changes with every membership change. The member User’sETagnow changes too, while its body stays the same (#5220). -
Deactivating a User (
active = false) drops all of its memberships in the same version, because an inactivePERSONcannot be versioned again. A reactivated User belongs to no Group until its client adds it again (#5220). -
Microsoft Entra ID’s disable-then-remove order now succeeds, since the later
removefinds nothing to remove. Anaddnaming an inactive User is400 invalidValue(“reactivate the User first”) (#5220). -
A refused SCIM write now names the rule it breaks in
detail(#5220). -
scripts/perf/scim-groups.shkeeps the database log,df -handfree -mof a failed run (#5220). -
A party commit no longer re-derives the login binding’s side table, the reverse-relationship index and the protection check from the whole stored body. Each hook reads what the committed body holds, derived once in memory, and writes only the rows that changed, and
ferroehr party-binding refillderives the rows with the same code. A party commit without a server signature no longer reassembles its body. A membership change at the cap of a 5 000-member SCIM Group went from 810 ms to 358 ms at p99 on a developer laptop (#5220). -
openehr-rmwrites the RFC 8785 canonical form aVERSIONsignature covers in one pass over the version, sorting each object’s members by reference. A 3.3 MBGROUPversion canonicalises about seven times faster than throughserde_jcs, with byte-identical output, so signed versions verify unchanged.serde_jcsremains the test oracle (#5220). -
The stored-query service takes the typed name, version and version pattern of
openehr_its::rest::stored_queryend to end, so it reads one grammar with the REST layer: the three-part{namespace}::{formalism}::{query-name}name, which ITS-REST 1.1.0Qualified_query_name.mddoes not define, is no longer accepted anywhere (the formalism is thequery_typeparameter), andDELETE /admin/query/{qualified_query_name}/{version}answers400for a name outside[{namespace}::]{query-name}or a version that is no exactmajor.minor.patch, where it answered404(#5223). -
Boot and
ferroehr config checkrefuse an[[auth.party]]table whoseidentifier_typeis thetypeof no[[authz.party_binding.person.template]]key, naming the issuer, the type and the types the templates write: no login of such an issuer could ever match a party, and every one would be refused. Upgrade step: give the deployment a person template whose key carries the table’sidentifier_type(or set the table to the type the template writes). The Helm CI and production values and the hosted sandbox now carry the professional PERSON and ROLE mapping, and the sandbox loads the two templates before the CDR starts (#5231). -
openehr_query::printer::to_aqlwrites eachWHEREcomparison with one space on each side of the operator (c/name/value = $nameValue), as the QUERY 1.1.0 AQL syntax examples do; path predicates keep their unspaced form ([ehr_id/value=$ehrUid]). The query builder’s generated AQL follows (#5241). -
openehr_sdt::flat::navigate::Navigatorowns what it copies from its Web Template (the name-fallback table and the OPT2 archetype references) and carries no template lifetime, so a consumer can keep it beside the template it was built from; it isDebug,Clone,SendandSync(#5243). -
Breaking: the configuration tree is one table per concern.
ferroehr.tomlmoves to[deployment],[api],[database],[auth](with[auth.smart]and[auth.scim]),[authz](with[[authz.origin]]),[management],[audit],[privacy](withidentifier_protection,cohortandaccess_delay),[record](withsubject_index,versioning,signing,query,change_feedandmultimedia),[terminology]and[pixm]. FerroEHR’s own keys take one duration type ("500ms","30s","10min","12h","7d", UCUM unit codes, so a bare number andmare refused), one size type ("256KiB","64MiB", IEC binary units, decimal units refused) and one calendar retention period ("P5Y","P1830D", unset keeps forever). An optional feature is on when its table is present:[terminology],[pixm],[auth.scim],[audit.syslog],[audit.fhir_feed],[privacy.identifier_protection]and[privacy.access_delay]carry noenabled;[authz.abac],[record.multimedia]and[auth.smart]keep a switch because some of their keys apply while off.record.subject_indexhas no default, so the server refuses to start until"pixm"or"local"is chosen.[api.cors]replacescors_permissivewith the Fetch Standard response headers (allow_origins,allow_methods,allow_headers,expose_headers,allow_credentials,max_age). The environment follows the tree (FERROEHR__DB__URLisFERROEHR__DATABASE__URL,FERROEHR__EHR_INDEX__PROVIDERisFERROEHR__RECORD__SUBJECT_INDEX). The Helm chart moves to its 25 line withconfig:on the same tree. Every key a release before v5.7.0 read is refused at load with its replacement named, all at once, soferroehr config check --config <old file>prints the whole move list; the refusals ship in v5.7.0 only and the next release removes them. To upgrade, runconfig checkon the old file and move each key it names:spec_profile,deployment_profile,deployment_acceptsandlicence.filearedeployment.spec_profile,deployment.profile,deployment.acceptsanddeployment.licence_file;[rest]is[api](swagger_uiisopenapi_ui,body_limit_bytesisbody_limit,cors_permissive = trueis[api.cors] allow_origins = ["*"],[rest.identity]is[api.options]withsolutionandvendor; the version keys are facts of the build),admin.enabledisapi.adminandterminology.api_enabledisapi.terminology;[db]is[database](acquire_timeout_secsisacquire_timeout,statement_timeout_msisstatement_timeout,migrateismigrations),[storage.<domain>]is[database.<domain>]and[storage.migrate.<domain>] urlis[database.<domain>] migrate_url;[smart]is[auth.smart](enabledisdiscovery,episode.enabledisepisode_launch,launch_base64_json = trueis"launch-base64-json"inauth.capabilities);[scim]is[auth.scim](max_resultsisfilter_max_results,deactivation_window_minutesisdeactivation_window,contact_erasure_minutesiscontact_erasure_delay);[authz.abac.cedar] reload_secsisreload_interval,[authz.abac.remote] server,connect_timeout_msandrequest_timeout_msareurl,connect_timeoutandtimeout,authz.party_binding.provisional_report_daysisprovisional_report_after, and an agreement’sdiscard_window_hoursandchained_log_retention_yearsarediscard_windowandchained_log_retention;[[origins.registered]]is[[authz.origin]];management.portismanagement.listen(anaddress:port) andmanagement.profiling.max_secondsismax_duration;audit.store.retention_daysandretention_yearsareaudit.store.retention,verify_interval_secondsandfull_verify_interval_secondsareverify_intervalandfull_verify_interval;[audit.syslog]hostandportareurl = "tls://host:port",spool_max_messagesisspool_max_events,spool_max_bytesisspool_max_size,retry_max_msisretry.max_backoff, and[audit.fhir_feed]poll_interval_msandretry_max_msarepoll_intervalandretry.max_backoff;[demographic.identifier_protection]is[privacy.identifier_protection],[cohort]is[privacy.cohort], and[access_delay]is[privacy.access_delay]withhoursasmax_delay;ehr_index.providerisrecord.subject_index("ihe"is"pixm") and the rest of[ehr_index]is[pixm](pixm_urlisurl,invocationismethod,request_timeout_msistimeout);versioning.skip_identical_resendisrecord.versioning.idempotent_resend;[signing]is[record.signing](key_pathiskey_file,retired_key_pathsisretired_key_files),[query]is[record.query](timeout_msistimeout),[outbox]is[record.change_feed](retention_daysisretention,prune_interval_secsisprune_interval), and[multimedia]is[record.multimedia](endpointisurl,threshold_bytesisthreshold, andallow_httpis retired: anhttp://url is plain HTTP);[terminology.server]is[terminology](fail_on_errorison_error = "accept" | "refuse",request_timeout_msistimeout). The family sections take the same types, fromferrohealth-server0.8,ferrohealth-telemetry0.4,ferrohealth-smart0.15 andferrohealth-session0.9:[server]request_timeout_ms,header_read_timeout_ms,idle_timeout_ms,drain_delay_ms,shutdown_timeout_msandretry_after_sarerequest_timeout,header_read_timeout,idle_timeout,drain_delay,shutdown_timeoutandretry_after,body_limit_bytesandcompression_min_bytesarebody_limitandcompression_min_size, and[server.tls] reload_interval_sisreload_interval;[telemetry.otlp]trust_roots_fileandclient_identity_filemove into[telemetry.otlp.tls], and anhttps://collector is dialed over it;[auth] ca_fileis[auth.tls] trust_roots_file, an[[auth.issuer]]table’sclock_skew_seconds,jwks_max_age_seconds,jwks_refresh_interval_secondsandtimeout_msareclock_skew,jwks_max_age,jwks_refresh_intervalandtimeout, its introspectioncache_max_age_secondsiscache_max_age,[auth.basic] cache_ttl_secondsiscache_ttl,[auth.dpop]max_age_secondsandclock_skew_secondsaremax_ageandclock_skew,[auth.idp.entra]timeout_msandmax_response_bytesaretimeoutandmax_response_size, and anoauthgrant’sca_file,client_certificate_fileandclient_key_fileare itstlstable’strust_roots_fileandclient_identity_file(one PEM), withrefresh_margin_ms,timeout_msandprevious_key_overlap_msasrefresh_margin,timeoutandprevious_key_overlap. The[auth]keys v5.6 read for every issuer (audience,algorithms,token_profile,jwks_file,mode,introspection,role_claimsand the rest) live on each[[auth.issuer]]table, andscopeless_subjectsentries are{ issuer, sub }tables. In the viewer,cdr.request_timeout_secsiscdr.timeout,[oidc] ca_fileis[oidc.tls] trust_roots_file,[oidc.tls]client_certificateandclient_keyareclient_identity_file, and[session]idle_timeout_s,absolute_timeout_sandsign_in_timeout_sareidle_timeout,absolute_timeoutandsign_in_timeout. Each of these is refused in v5.7.0 naming its replacement, in the CDR and the viewer alike (#5259). -
Breaking: a
patientstoken that names an actor is refused. Withferrohealth-smart0.15, apatientsissuer reads a token whose top-levelact(RFC 8693 §4.1) names someone other than the patient only when its[[auth.issuer]]table setsact_represents_patient = true; without it the token is refused401, where v5.6 admitted it as the patient’s own access. With it, FerroEHR refuses the token403(refused-patient-representative), because it binds no party to someone acting for a patient, and the access log records the refusal (#5259). -
SECURITY.md,security.txt(itsContact: mailto:field), the post-market record, the CRA technical documentation and the book’s compliance pages namesecurity@cadasto.comas the email route for a vulnerability report, in place ofinfo@cadasto.com, which stays the single point of contact for complaints and incidents, the manufacturer’s address on the running server and the address for licensing and other business questions (#5272). -
The shipped
ferroehr.tomltemplate (app/ferroehr/assets/ferroehr.default.toml) is generated from the configuration types withtools/config-reference: every key, each under its description and set to its default, a secret or a key with no default as a#?placeholder line. The book’s new page “Every configuration key” includes it whole. CI fails when it drifts from the types. No key changes: aferroehr.tomlthat loads today loads unchanged (#5316). -
The family crates move to their newest releases:
ferrohealth-smart0.18.0,ferrohealth-session0.12.0,ferrohealth-authz0.11.0,ferrohealth-server0.8.4 (its TLS certificate verifier is built once per process),ferrohealth-telemetry0.4.1,ihe-atnaandehds-logging0.12.0,ihe-iti0.4.0,ferrobridge-term0.5.0, andfhir-typesandfhir-search0.1.131. Every[[auth.issuer]], onward and OAuthissuerrenders with its credentials masked. A system caller, a patient and a patient’s representative carry the purpose of use their token states when their issuer has an[[auth.attributes]]table. An IUApurpose_of_useof empty codes states no purpose (#5320). -
ferroehrandferroehr-viewerrun through the FerroHEALTH family’s run path. A configuration either binary refuses (an unknown or invalid key, a broken semantic rule, an[auth]table with no mechanism, a SCIM mapping it cannot serve, or for the viewer a TLS file that does not read or an unusable[oidc]or[session]table) now exits78(EX_CONFIGofsysexits(3)) where it exited1, so an orchestrator can tell a configuration to fix from a failure to retry. Every other failure still exits1, and the failure is written to stderr as one line with its whole cause, prefixed with the binary’s name. Upgrade: a script or probe that expects exactly1fromconfig checkon a refused file expects78(#5321). -
The configuration is redacted by its secret types alone.
GET /management/env,GET /ferroehr/rest/extensions/v1/admin/configandferroehr config checkshow the tree as itsSecretandSecretUrlvalues serialize, and the second masking by key name and by URL shape is gone.[audit.syslog] url,[auth.smart] platform_base_urlandpublic_base_url, and[auth.scim] public_base_urlare secret URLs now, as are the OAuth, onward and introspection endpoints offerrohealth-smart0.17 and the viewer’s[oidc]endpoints offerrohealth-session0.11, so each renders with its credentials and query masked. Aplatform_base_urlgiven as a bare path renders as***(#5322). -
Every outbound integration (the terminology server, the PIXm identity source, the ITI-20 FHIR Feed, the remote policy decision point and the viewer’s CDR client) is built by
ferrohealth-smart’sOutboundClientfrom its endpoint table, and FerroEHR’s own client builder is gone. A PIXm exchange’stimeoutnow bounds the exchange with its tries and the waits between them, and the viewer refuses a[cdr] timeoutof zero at start (#5324). -
The family crates move to their newest releases:
ferrohealth-smart0.17.0,ferrohealth-session0.11.0,ferrohealth-authz0.10.0,ferrohealth-config0.4.4,ferrohealth-server0.8.3,ferrohealth-secret0.2.1,ferrohealth-usage-report0.4.1,ferrobridge-term0.4.0,ihe-atnaandehds-logging0.11.0, andihe-iti0.3.0. Every OAuth token endpoint and introspection endpoint renders with its credentials masked, and a TLS refusal of an outbound client names its<key>.tlstable (#5324). -
[auth.idp.entra]is read byferrohealth-smart’s[auth]section, so an unknown key under it is refused with the crate’s field list. The key path is unchanged. The effective configuration now shows[auth.idp]as an empty table when no adapter is configured (#5325). -
The build compiles FHIR R4’s resources alone:
fhir-typesis required with itsr4-resourcesfeature in place of the crate-wideresources, and the FerroBRIDGE crates (fhir-types,fhir-search,ferrobridge-term) are required by caret ranges in place of exact versions (#5327). -
Breaking: the outbound integrations take the family’s endpoint table.
[terminology],[pixm],[audit.fhir_feed]and[authz.abac.remote]read where they call and how from one[<x>.endpoint]table, the same keys for every outbound integration of every FerroHEALTH product:url,timeout,connect_timeout,retry(max_attempts,initial_backoff,max_backoff),tls(trust_roots_file,client_identity_file,min_version) andcredentials(HTTP Basicuserwithpasswordorpassword_file, or the client credentials grant[...credentials.oauth]).terminology.url,timeoutand[terminology.oauth]areterminology.endpoint.url,timeoutand[terminology.endpoint.credentials.oauth];pixm.url,timeout,[pixm.tls]and[pixm.oauth]arepixm.endpoint.url,timeout,[pixm.endpoint.tls]and[pixm.endpoint.credentials.oauth];audit.fhir_feed.url,[audit.fhir_feed.retry]and[audit.fhir_feed.oauth]areaudit.fhir_feed.endpoint.url,[audit.fhir_feed.endpoint.retry]and[audit.fhir_feed.endpoint.credentials.oauth];authz.abac.remote.url,connect_timeout,timeoutand[authz.abac.remote.oauth]areauthz.abac.remote.endpoint.url,connect_timeout,timeoutand[authz.abac.remote.endpoint.credentials.oauth]. The v5.6 keys are refused naming their new home. Every client now honoursretry: the terminology, PIXm and remote policy clients try a call that got no answer or a5xxup tomax_attemptstimes (three by default; each tried once before), so setmax_attempts = 1to keep one attempt, and the FHIR feed’s delivery rounds takemax_attemptstries each, frominitial_backoff, before the round waitsmax_backoff; the feed still never gives a record up. The environment follows the tree (FERROEHR__TERMINOLOGY__ENDPOINT__URL,FERROEHR__AUDIT__FHIR_FEED__ENDPOINT__URL), and so do the Helm chart’s values and its client secret routing, in the chart’s 25 line (#5331). -
The FerroEHR PostgreSQL image is built on the 2026-11-09 respin of
postgres:18.6(sha256:e3d24f69…), a same-version respin with rebuilt base packages. A full scan of the rebuilt image on amd64 and arm64 finds the same findings as the image of the previous base, each judged insecurity/vex/postgres-os.openvex.json, and a gate scan finds no fixable HIGH or CRITICAL finding (#5332). -
The development and Keycloak example compose files run Keycloak 26.8.2 (
quay.io/keycloak/keycloak:26.8.2@sha256:723b1d6e…). Of the 26.8.2 upgrading notes, the shipped realm meets the ones that touch it: the Admin REST API’s new audience check passes for the master realm’sadmin-clitoken the browser-test harness uses, and the realm uses no token exchange, identity broker, SAML client, CIBA or dynamic client registration. Theferroehr-serviceclient-credentials token carries the same audience and scopes as under 26.8.1 (#5333). -
The compose quickstart, the hosted sandbox and the Helm chart deploy FerroPIX 0.0.26 (
ghcr.io/ferrohealth/ferropix:0.0.26@sha256:85d40e6fdcdb39f782007eff91eb059861a4e039ca3f8fb56e37f2fa0f28d78a, the FerroPIX chart 0.3.19) and FerroTERM 0.4.5 (ghcr.io/ferrohealth/ferroterm:0.4.5@sha256:7c20d39e1989fce1dfb92e6ddfd853dfa9a52bb9b7b973fbba42430963ef75bd), and the development issuer ismock-oauth2-server6.1.5. FerroPIX’s configuration moves to the[[auth.issuer]]shape it now requires: the issuer iskind = "machines"and carries its ownaudience, and[auth] audienceis gone. A chart deployment that setsferropix.config.authmoves its audience onto each issuer the same way (#5351). -
The nine
openehr-*crates follow The Cargo Book’s SemVer rules, judged bycargo-semver-checks0.51.0 against their newest release on crates.io on every pull request, in the merge queue and in the release plan. Their next publish moves the line from0.0.xto0.1.0. From then on a compatible change ships as a patch and only a breaking change moves the minor, so a caret requirement such asopenehr-rm = "0.1"takes every compatible release. A public dependency moved to another compatibility line counts as a breaking change (#5353). -
openehr-rmwrites the ECMAScript number form of the RFC 8785 canonical form aVERSIONsignature covers withryu-js1.0, which carries the upstream fix for a panic in its fixed-point formatter, and is held byte-equal toserde_json_canonicalizer0.4 as its test oracle in place ofserde_jcs, so the lock holds oneryu-jsline. Its output is unchanged (#5372). -
ferroehr.eu takes the FerroHEALTH family layout: the “Oxide & Iron” brand tokens light and dark, a hero badge rendered from the workspace version at build time, a content hash on the stylesheet link, linked capability cards, the conformance record, the viewer screenshot, deployment cards, the family and the four parts of the book, and a 404 page in the same style. The book groups its pages under Evaluate, Integrate, Operate and Contribute, keeping every page’s address, opens in the recoloured light and navy themes and gains a Changelog page. The README’s quick start is the anchored steps of
docker/smoke-test.sh, held byscripts/checks/readme-quickstart.sh(#5382). -
The quickstart
docker-compose.ymleach release attaches now carries its.sha256sum; the README and the book download it withcurl -fsSLOfrom the latest release and start it withdocker compose up --wait, and the README check refuses a host path the file would read from the repository beyond the backup directories (#5387). -
The viewer moves to
ferrohealth-session0.13.0, which types the OpenID Providerissuer,redirect_uriandpost_logout_redirect_uriof[oidc]as secret URLs, so a password written into one of them renders masked in the viewer’sconfig check, its refusals and its configuration page (#5394).
Removed
-
[authz.professional](claim,client_tokens,acting_for_claim) and its403for a token that names no natural person. The issuer’skindand profile classify the caller, and the access record’s acting mode and professional come from that classification: a person’s own token is the person, and a delegated token is the client acting for the person it names. Upgrade step: remove the table, which refuses the start, and list a client that acts for a person in its issuer’sdelegates(#5003). -
The named refusal of
authz.rbac.user_role, which v5.6 introduced, is gone under the one-release rule for removal aids: the key is now refused as an unknown key when the configuration loads (#5259).
Fixed
-
A
553|incomplete|commit no longer refuses an empty mandatory archetype slot: RM common master06 §Incomplete Content sets every occurrences lower limit to zero, a slot’s included, while too many fillers are still refused. The OPT 1.4 writer now closes a mandatory slot once the fillers placed in it carry its lower bound, as ADL 2 §Slot Filling and Redefinition allows, and still refuses to close one they leave unmet (#5042). -
The example of a party template whose identity the template marks optional is a party of its class carrying one identity at every detail level, where the
requiredlevel answered500: RM demographicPARTY.identitiesadmits no party without one. A party template that constrains no identity at all answers400 Bad Requestnaming its class (#5057). -
An AQL
VERSIONstandard predicate oncommit_audit/time_committedapplies its operator:VERSION v[commit_audit/time_committed/value > $t]returns every version committed after$t, where it returned the trunk version current at$twhatever the operator (QUERY 1.1.0 master03 §Standard predicate). A number, boolean orNULLliteral as the bound, a string bound no ISO 8601 form reads, and atime_committedpath other than the whole value or/valueare refused with400(#5062). -
AQL refuses a number, boolean or
nullparameter or literal compared with a date/time path, inWHEREand in aVERSIONpredicate, with the same400a non-ISO 8601 string gets; such a bound used to becomeNULLand match nothing (#5064). -
The served OpenAPI document now lists, on both template example operations, the
400answered for a party template that constrains noPARTY_IDENTITY(#5066). -
The compose quickstart, the hosted sandbox and the Helm chart run FerroPIX 0.0.18 (
ghcr.io/ferrohealth/ferropix:0.0.18@sha256:6fb622b5b9ade34c8a4053112c8f166ff495d8b32bf99f35529d01e512b7cc42), with the FerroPIX chart 0.3.10 built for it. The 0.0.16 they pinned had an outbox sender that never slept while its outbox was empty, so an idle install kept about 1.2 CPU cores busy between FerroPIX and its PostgreSQL at about 8,000 transactions a second (FerroHEALTH/FerroPIX#490). 0.0.18 also makes FerroPIX’s[auth] scopeless_subjectsandrole_claimshold per issuer, which changes nothing for a FerroPIX that trusts one issuer, as every configuration FerroEHR ships does. The chart moves to 21.0.5 (#5073). -
An OPT2 built from a template that specialises a published archetype now carries that archetype, by its full id, as
parent_archetype_id, as theOPERATIONAL_TEMPLATEinvariantis_specialisedrequires (AOM2 §3.6.6), so a reader of the OPT finds the archetype its root specialises. The ADL form of an OPT still prints nospecializesection (OPT2 §Artefact Structure), so the parent travels in the canonical JSON form (#5075). -
A
refused-key-claim-missingaccess record names the key claim the issuer’s binding reads (itsperson_key) inbinding_detail.claim, so an operator sees which claim the token lacked. It records the name only, never a claim value (#5139). -
A
403for a caller kind is recorded with its own binding code:refused-system-personal-scopefor a system caller holding auser/orpatient/scope,refused-no-agreementfor an external caller whose issuer has no agreement for its accessor kind, andrefused-scope-beyond-agreementfor an external caller holding a scope its agreement does not read. Audit migration0024widens thebindingconstraint; the problem text of each refusal is unchanged (#5140). -
openehr-sdtbuilds no/contextnode, and nostart_timeorsettingleaf, in the Web Template of an OPT 1.4 whose COMPOSITION prohibitscontext(existence0..0, or anEVENT_CONTEXTof occurrences0..0), and the template example of such a template carries nocontext. A template that leavescontextopen or optional keeps the node as before (#5147). -
openehr-sdtgives the/contextnode it synthesizes in a Web Template theminof the template’s existence onCOMPOSITION.context, and0where the template leavescontextunconstrained, since the RM makescontextoptional (0..1). A client following the Web Template no longer treats the context as mandatory when the template does not require it, and therequiredtemplate example of such a template carries nocontext(#5154). -
An ADL2 template that deletes an attribute (
existence matches {0}), for exampleCOMPOSITION.context, keeps the prohibition after it compiles to its operational template:openehr-adl’screate_optnow returns aRawOptthat names each removed attribute beside the OPT, andbuild_web_template_v2_4takes that list. A template that deletescontextgets no/contextnode, and a commit that carries one is refused, as it is for an OPT 1.4 template that prohibitscontext. An OPT2 uploaded already compiled carries no such list and reads a deleted attribute at its reference-model existence. Breaking for crate users:create_optreturnsRawOptandbuild_web_template_v2_4takes the prohibited attributes (#5154). -
A composition commit whose
template_idnames a stored ADL2 archetype rather than a template is refused with422as an unknown operational template; it failed at the insert with a server error before (#5177). -
openehr-rmtypesREFERENCE_RANGE.rangeasDV_INTERVAL<T>:ReferenceRangeis now generic over its limit type (ReferenceRange<DvQuantity>on aDV_QUANTITY,ReferenceRange<DvOrdered>on the other ordered types), itsis_in_rangeandRange_is_simplework at that type, and the static RM model givesREFERENCE_RANGE.rangeandIMPORTED_VERSION.itemtheir argument. Eachmodel::RmAttributeandmodel::RmTypeRefnow keeps the formal parameter it is written as (formal,Some("T")forDV_INTERVAL.lower) beside the resolved bound. The RM class table declaresREFERENCE_RANGE<T>and leavesTunused; the generator restores it from a cited table and refuses a schema that no longer matches (#5196) (#5188). -
An access record names the client the token’s issuer profile reads from
client_claims(azpunder theentraandkeycloakprofiles), the one the caller was admitted as. A token carrying a differentclient_idclaim beside it was recorded under that claim. The[origins]register and the SCIM client lookup read the same client (#5194). -
An
IntervalorDV_INTERVALread from canonical JSON or XML that omits a boundedness or inclusion flag now takes it from its bound. An absent bound reads as unbounded and not included, and a present bound as bounded and included. A flag the wire states is kept as written. Before, an omitted flag always read as bounded and included, so an interval with only anuppercame out with a bounded, included lower side that had no value. ITS-JSON requires all four flags, and BASE ties none of them to its bound, so reading the omission is our own design (#5203). -
The viewer’s New contribution commits as the signed-in login. Each audit carries the placeholder naming that login, and the server records the committer it derives from the login. The free-text committer field is gone. For a login bound to a demographic
PERSON, a stated name that differs from thePERSON’s name was refused with403(#5222). -
The management surface answers a caller the login binding refuses with
403and its binding code, such asrefused-unbound, as every other route does, in place of401: the credential authenticated, so new credentials cannot help (RFC 9110 §15.5.4). An absent or invalid credential still answers401with its challenge (#5250). -
The party binding posture in
ferroehr reportand the boot log masks the user name and password of an issuer URL, as every other rendering of the configuration does (#5259). -
GET /definition/query/{namespace}::lists every stored query in the namespace again, where it answered400since the typed stored-query name: ITS-REST 1.1.0definition_query_listreads its name as a pattern in which an empty part is a wildcard, so::{name}also lists the names that start with it in any namespace.openehr-itsgainsrest::stored_query::QueryNamePattern, the type the generatedDefinitionQueryListParamscarries. The store and the single-query reads still refuse an empty name or namespace (#5268). -
The identifier scan (
[privacy.identifier_scan]) reads thenameof theELEMENTthat holds aDV_IDENTIFIERwhen the identifier’stypeis absent or names neither a person nor an item, with the same word rules. An untyped laboratory order number in theReceiver order identifierorRequester order identifierelement oflaboratory_test_result.v1that passes the NHS Number check by chance is now stored under the default rule set. A person word still wins, so an untyped value in an element namedNHS numberorPatient identifierstays scanned, and atypethat names a kind takes precedence over the element name (#5291). -
The Helm chart’s description and README name
config.deployment.profile, the key the chart refuses to render without since 5.7.0, and the README’s install command sets it; the command it showed set the oldconfig.deployment_profileand did not render (chart 25.0.1) (#5341). -
A representative’s write is held to the EHDS Art. 5 rules exactly as the person’s. A representative may no longer alter an entry a health professional inserted or name a professional as
composer. A version committed asPARTY_RELATEDcounts as inserted by the person, so the person and the representative may change it, and the contribution list reportsinserted_by_person = truefor it (#5359). -
The hosted sandbox’s configuration (
deploy/hosted/ferroehr.sandbox.toml) declares its SCIM service provider under[auth.scim]and[[auth.scim.client]], the tables 5.7.0 reads, so the sandbox starts on 5.7.0. Every server configuration the repository ships beside the quickstart and the chart (the hosted sandbox’s and each compose overlay’s) and every viewer configuration (the hosted sandbox’s, the quickstart’s with each overlay, and the chart’s viewer Deployment) is now read by the program built from the change under test in CI, so a shipped file the release refuses fails its pull request (#5396).
Security
Shipped with functional changes because: the advisory reaches only a deployment that trusts several issuers, which no configuration FerroEHR ships does, and its fix changes what such a configuration must state at boot, so it lands on main beside the AQL version attestations already merged for this release; a security-only patch of the last release remains open to the release cut.
-
A Basic user never carries a
system/scope, throughferrohealth-smart0.9.1 (GHSA-jhg2-jwjp-hq74, CWE-269, CWE-863). Asystem/scope granted to a Basic user gave that person every resource of a type, a backend service’s reach. Such a user now refuses the start, naming the user and the scope. Upgrade step: give each Basic user theuser/scopes a person holds, and move each machine on Basic to a client of the authorization server under the client credentials grant (#5003). -
[auth] scopeless_subjectsandrole_claimshold per issuer, throughferrohealth-smart0.8.9 (GHSA-pfgx-xq28-2629, CWE-863, CWE-639). Before it, beside several[[auth.issuer]]tables both lists applied to every trusted issuer’s tokens: a token from any of them whosesubwas listed met every SMART on openEHR requirement without a scope, and any of them could assert every role the RBAC checks,ADMINincluded. An entry is now written<issuer>#<value>and holds for that issuer alone; beside several issuers a bare entry, or one naming an issuer the section does not trust, refuses the boot. Upgrade step for a deployment with several issuers: write eachscopeless_subjectsentry as<issuer>#<sub>, and write eachrole_claimspath as<issuer>#<path>for the issuers whose roles count (or setrole_claims = []to read none), since the defaultrole_claimsis bare and refused. A deployment with one issuer changes nothing (#5047). -
The
ferroehr-postgresimage carries zlib1g1:1.3.dfsg+really1.3.1-1+deb13u1from trixie-security, which fixes CVE-2026-76844 and CVE-2026-85091 (HIGH, heap overflows in zlib’s gzip writer) and CVE-2026-27171 (MEDIUM, an infinite loop incrc32_combine64). The image of 5.6.3 and earlier releases carries1:1.3.dfsg+really1.3.1-1+b1, judgedaffectedwith the upgrade as its action (security/vex/postgres-os.openvex.json). Theferroehrandferroehr-viewerimages keep the distroless base’s zlib, which neither program loads (security/vex/ferroehr-os.openvex.json) (#5137). -
The
ferroehrandferroehr-viewerimages move to thegcr.io/distroless/cc-debian13:nonrootbuild of 2026-11-08 (sha256:cc66d222…), whose zlib1g1:1.3.dfsg+really1.3.1-1+deb13u1fixes CVE-2026-76844 and CVE-2026-85091 (HIGH, heap overflows in zlib’s gzip writer) and CVE-2026-27171 (MEDIUM, an infinite loop incrc32_combine64). Neither program loads zlib. The images of 5.6.3 and earlier releases carry1:1.3.dfsg+really1.3.1-1+b1, judgedaffectedwith the upgrade as its action, as theferroehr-postgresimage of those releases is (security/vex/ferroehr-os.openvex.json) (#5152, #5329). -
CVE-2026-112321, CVE-2026-112322 and CVE-2026-112323 (memory and CPU exhaustion in
kadmindthrough the AUTH_GSSAPI handler) and CVE-2026-119079 (CPU exhaustion in the KDC decoding an AS-REQ or TGS-REQ) in MIT Kerberos 5 have no Debian fix for trixie and are judgednot_affectedinferroehr-postgres. The image carries neitherkadmind, a KDC norlibgssrpc, and the PostgreSQL server never decodes either request; the configuration FerroEHR ships enables no GSS-API authentication (security/vex/postgres-os.openvex.json) (#5344). -
Thirteen MIT Kerberos 5 CVEs of MITKRB5-SA-2026-001 in the
ferroehr-postgresimage’slibgssapi-krb5-2,libk5crypto3,libkrb5-3andlibkrb5support01.21.3-5+deb13u1have no Debian fix for trixie and are judgednot_affected. The image keeps the four libraries because thepostgresbinary linkslibgssapi_krb5.so.2. Eleven sit in code the image does not carry: the KDC (CVE-2026-107364), its PKINIT plugin (CVE-2026-71200),kadmind(CVE-2026-107884, CVE-2026-112318),libgssrpc(CVE-2026-112314, CVE-2026-112315, CVE-2026-112320, CVE-2026-118380), the kadm5 libraries (CVE-2026-112316, CVE-2026-112319) andlibkdb5(CVE-2026-112317). The PAC checksum flaw (CVE-2026-111423) and the CAMMAC checksum flaw (CVE-2026-71199) sit inlibkrb5, which the server reaches only when it accepts a Kerberos ticket. The configuration FerroEHR ships has nogssorhostgssencline inpg_hba.confand no server keytab, and the server never reads a PAC or an authentication indicator (security/vex/postgres-os.openvex.json) (#5374). -
The five OpenSSL 3.5.7 CVEs of the OpenSSL advisory of 2026-11-10 have no Debian fix for trixie and are judged
not_affectedin the three images: the AES-GCM-SIV flaws CVE-2026-88823 and CVE-2026-95692, the QUIC flaws CVE-2026-88822 and CVE-2026-95691, and theCMS_encrypt()loop CVE-2026-107496. Theferroehrandferroehr-viewerprograms never maplibssl.so.3orlibcrypto.so.3: each links onlylibc,libmandlibgcc_s, imports nodlopen, and speaks TLS through rustls (security/vex/ferroehr-os.openvex.json). The PostgreSQL server maps both for TLS over TCP, which never selects AES-GCM-SIV (no TLS cipher suite is one), never opens a QUIC connection and never writes CMS, and the image never runs theopensslprogram or loads the legacy provider (security/vex/postgres-os.openvex.json) (#5393).
5.7.0-rc4 - 2026-11-11
5.7.0-rc4 is the fourth release candidate of 5.7.0, published for testing. It carries every change since 5.6.3, those of the 5.7.0-rc3, 5.7.0-rc2 and 5.7.0-rc1 sections below included. 5.6.3 stays the stable release: this pre-release moves neither the latest image tags, the book under /docs/latest/ nor the hosted sandbox, it publishes no crates, and it receives no fixes; the next release candidate or 5.7.0 itself replaces it. 5.7.0-rc3 was published, and its sandbox check failed: the hosted sandbox’s configuration still declared [scim], which 5.7.0 reads as [auth.scim], so the server refused it. The sandbox file now declares [auth.scim], and CI reads every server and viewer configuration the repository ships through the program built from the change, so a shipped file the release refuses fails its pull request. The viewer moves to ferrohealth-session 0.13.0, so its OpenID Provider issuer and redirect URIs render with their credentials masked. Before you try it, run ferroehr config check on your file: it names every key a release before 5.7.0 read with its replacement, all at once. The steps for party binding are on the book’s bootstrap and migration page. Helm chart 25.0.1-rc5 carries appVersion 5.7.0-rc4. Security carries the two advisories of 5.7.0-rc2, GHSA-jhg2-jwjp-hq74 and GHSA-pfgx-xq28-2629, the zlib fixes in the three images, and the not_affected judgements of the MIT Kerberos CVEs in the PostgreSQL image, the thirteen of MITKRB5-SA-2026-001 among them, and of the five OpenSSL 3.5.7 CVEs of 2026-11-10 in the three images.
Added
-
AQL reads the attestations of a version:
v/attestationsand anyATTESTATIONattribute below it (is_pending,reason,proof,items,committer,time_committed) underFROM EHR e CONTAINS VERSION v CONTAINS COMPOSITION c, with predicates onattestationsandEXISTS, andv/commit_audit/is_pendingandv/commit_audit/reasonon a commit audit that is anATTESTATION.SELECT v/attestationsreturns the list, and a comparison belowattestationsholds when any attestation matches. The FerroEHR extension functionLAST(v/attestations/<path>)reads the most recent attestation, soWHERE LAST(v/attestations/is_pending) = truelists the versions awaiting signature, including one marked pending again after it was signed (#4989). -
The party binding’s configuration, each table with its boot refusals:
[authz.party_binding](provideras one table or one table per tenant,namespace,basic_user),[authz.import] trusted_systems,[[authz.system_client]](the provider, facilities, templates and origins of each client-credentials client that commits) and[[authz.federation.agreement]](what a federation issuer’s external persons or organisation may do, on which legal ground), with[authz.rbac] role_issuersandimport_role. A template an agreement or a system client writes that the store does not hold refuses the start. The boot line andGET /management/infolist the issuers with their kind and identifier issuer, the provider, and every agreement with its accessor and legal ground, and an agreement that admits an organisation without a named person is logged atwarn(#5003). -
[auth.idp.entra], the Microsoft Graph access of theidp-entraadapter offerrohealth-smart, which resolves the groups of an Entra ID groups overage for an issuer whose profile setsadapter = "idp-entra"(#5003). -
[auth.dpop]and[[auth.issuer]] sender_constraint: tokens bound to a DPoP key (RFC 9449) or a mutual-TLS client certificate (RFC 8705), checked on every request. A DPoP proof is recorded by the replica that accepted it, so the Helm chart refuses a sender-constrained issuer on more than one replica (#5003). -
The login binding reads the local party source on every request, with no cache: the new party migration
0027_binding_side_tableadds the indexedbinding_identifier,binding_membershipandbinding_representationrelations, written in each party commit’s transaction from thePERSONs of the mapped templates that perform a professionalROLEor represent another person, theirGROUPmemberships and their representation relationships, and rebuilt from the party versions alone. A login matching two parties, aninactive,abandonedor deleted party, a token without the key claim, a party without the needed marker and unreadable groups are refused with403and their binding code; a party store or identity provider that cannot answer is answered503(#5004). -
ferroehr definitions load <path>...stores OPT 1.4 (.opt) and ADL 2 (.adls) definitions beforeserve, through the validation and versioning of the REST upload. A file already stored with the same text is left alone and other text under a stored id is refused, so a deployment runs it at every start to give its party mapping the templates it needs at boot.deploy/definitions/professional/holds a professional PERSON and ROLE pair adapted from openEHR CKM archetypes for the development lanes and the quickstart (#5006). -
The compose quickstart binds its user to a professional
PERSON: theferroehr-definitionsone-shot loads the PERSON and ROLE templates the party mapping names before the server starts, andferroehr-provisioncreates the user through/scim/v2/Userswith a token of the development issuer, then reports healthy, sodocker compose up --waitreturns once the login is bound. The Helm chart (23.3.0) takesdefinitions.files, which an init container stores withferroehr definitions loadbefore the server container starts. The conformance, browser and Kubernetes lanes load the same templates and provision every login they use through SCIM, with the committed test client ofdocs/conformance/party/scim/(#5006). -
ferroehr party-binding adopt <PARTY_ID>...gives each preparedPERSONof an existing deployment a professionalROLEof the mapping’s role template, with thePERSONasperformer, and a newPERSONversion listing it inroles, all in one demographic CONTRIBUTION committed by the first administrator named with--adminor--admin-key, and writes one access record per adoptedPERSONthrough the configured audit trail. It refuses the whole adoption, naming them, while any listedPERSON’s key was introduced by a committer that is no[[scim.client]], named administrator or--migration, so a key planted before the upgrade is never adopted. APERSONthat already performs theROLEis reported and left alone. The report is JSON on stdout (#5009). -
ferroehr party-binding checkis the read-only pre-flight of a migration to party binding, and the one report of the provisional persons just-in-time creation left incomplete. It reads the party versions alone, so it runs before any boot fill, and writes nothing. Per key issuer it reports thePERSONs that carry a binding key, every selector value twoPERSONs carry, the inactive and abandoned ones, the provisional ones older thanprovisional_report_days, the key-bearing ones that perform no professionalROLE, and every mapped Basic user with thePERSONit binds. For each key it names the committer of the version that introduced it, and fails unless that committer is a[[scim.client]], an administrator named with--adminor--admin-key, a migration declared with--migration, or just-in-time creation on an issuer withjit = true.--expected <file>lists every login of the identity provider with noPERSON. The report is JSON on stdout, and the command exits non-zero on a duplicate, a missing person or a key that fails the provenance rule (#5009). -
At boot, FerroEHR logs a
warnnaming every Basic user mapped in[[authz.party_binding.basic_user]]while[authz.assurance] minimumis unset: a Basic credential carries no assurance level, so such a person is never refused on patient data (#5009). -
The book has a “Who is the committer” page under Security. It covers the committer the server writes for each kind of caller, the placeholder a client may still send, the refusals with their status codes, and the deviation from the ITS-REST merge rule. It also shows how a professional’s
PERSONgets its login identifier. Enterprise identity providers now opens with the generic standards path and adds theentrapreset’s binding and provisioning settings, an Okta example, a Keycloak realm walk-through and a SAML section. The records of processing and the DPIA gain the workforce-identity activity, the federation node page gains its callers and agreements, and the go-live checklist checks the binding and the caller rates (#5010). -
The access record of a MyHealth@EU contact point’s request carries the request message’s UUID, the WS-Addressing
MessageIDits token relays asehdsi.message_id, as the record’srequest-message-id. The record then joins the contact point’s Patient Privacy audit entry (eHDSI Audit Trail Profile 10.1.0 §2.3.12 to §2.3.32) (#5011). -
The one
PERSONmapping SCIM provisioning, just-in-time creation and the login binding share:[[authz.party_binding.person.template]]with the binding key,userNameandexternalIdselectors of each template,[[authz.party_binding.person.attribute]]with the SCIM attribute, the OpenID Connect claim and the path of each mapped value, and[authz.party_binding.professional_role],[authz.party_binding.group],[authz.party_binding.membership]and[authz.party_binding.representation]. Boot refuses a mapping that breaks one of its rules, naming the key, including a template that is absent, rooted at another class or lacks a mapped path, and deleting a template the mapping names is refused with409(#5013). -
The new party migration
0028_binding_selectorsholds each binding key,userName(compared after RFC 8265 width mapping, lower case and NFC),externalIdand groupdisplayNameto one live party, so a commit giving one a second party is refused with409. The first boot fills the side table under the mapping’s digest, a replica with another mapping refuses to start, andferroehr party-binding refillrebuilds it after a mapping change, refusing while a replica runs and naming the parties when a value is carried twice (#5013). -
POST /admin/party/binding-keyre-keys aPERSON’s binding key: it refuses the administrator’s own login and a key already bound, retires the old key in the same commit and writes one access record carrying both (#5013). -
[scim]mounts the SCIM 2.0 service provider at/scim/v2/(off by default):[[scim.client]]declares each provisioning client byissuer,client_id,scopeandbinding_issuer, andpublic_base_urlnames the origin its documents hang off./scim/v2/ServiceProviderConfiganswers without a token;/ResourceTypesand/Schemasanswer a declared client acting for nobody that holds its scope, within[server.caller_rate]. Every refusal is an RFC 7644Errormessage. The start is refused for a client of a non-machinesissuer, one declared twice, two clients sharing abinding_issuer, or abinding_issuerno[[auth.party]]table carries (#5014). -
The SCIM endpoint answers the Microsoft Entra ID provisioning client as Microsoft’s “Develop a SCIM endpoint” guide documents it: a value-filtered attribute such as
emails[type eq "work"].valueserves itstypeand declaresprimaryread-only, so theprimaryEntra sends is ignored (RFC 7644 §3.3); aPATCHofuserNamerenames the User; and the Test Connection probes are answered with an emptyListResponseand404.ferroehr config checkrefuses a[scim]the person mapping cannot serve, asservedoes. The Helm chart exposesconfig.scimand routes/scim/v2on every Ingress host when it is enabled, and the book walks an operator through provisioning from Entra ID, with the Workload Identity Federation checks the authorization server makes (#5014). -
/scim/v2/Users/{id}takesPUT,PATCHandDELETE: a write commits the next version of the professional’sPERSON, clearing a mapped attribute aPUTleaves out, keeping the binding key andexternalId, and moving the lifecycle state byactive(completeorincompletetoinactiveorabandonedand back, anabandonedUser completed in two versions, an attribute change to an inactive User refused until it is reactivated).DELETElogically deletes thePERSONand its professionalROLEin one CONTRIBUTION and leaves the binding key as a tombstone. AnIf-Matchnaming another version is412, andServiceProviderConfigdeclares PATCH.[scim] max_deactivationsanddeactivation_window_minutesbound the deactivations and deletions of one client, counted in the database so replicas share the bound, with429past it (#5014). -
/scim/v2/Usersserves a client’s Users:POSTcreates the professional’sPERSONand its professionalROLEin one demographic CONTRIBUTION,completewhen the template holds in full andincompleteotherwise,GET /Users/{id}answers with the version’s entity tag and304to a matchingIf-None-Match, andGET /Usersanswers aListResponsefiltered byeqandandoveruserName,externalIdandid, with any other filter400invalidFilter. A client sees only the Users whose binding key itsbinding_issuerissues, every SCIM request is an access record of the client naming thePERSON, andServiceProviderConfigdeclares entity tags. The start is refused when[scim]is on and the party mapping has no default person template with auser_nameselector or no professional role (#5014). -
/scim/v2/Groupsserves SCIM Groups as demographicGROUPs of[authz.party_binding.group], each member holding an inlinePARTY_RELATIONSHIPof[authz.party_binding.membership]from itsPERSONto theGROUP, with noROLEminted: create, read,eq/andfilters ondisplayName,externalIdandid,excludedAttributes=members,PATCH(answered204),PUTandDELETE, with the entity tags of Users. A Group belongs to the client that created it, its members are that client’s Users, itsdisplayNameis unique, and itsexternalIdsits under the client’sgroup_identifier_issuer. Aremoveofmemberswith avaluelist removes only those members, an Entra compatibility deviation from RFC 7644 §3.5.2.2. Deleting a User removes its memberships in the same CONTRIBUTION.[scim] max_group_members(default 5000) caps a Group (#5015). -
Just-in-time creation of a provisional
PERSONat a first login, off by default and enabled perpersonsissuer in a new[[authz.party_binding.issuer]]table (jit,guests_jit,user_name_claim,idp_claim,admit_idp,admit_groups,admit_roles,admit_assurance). A login of a person or a delegated caller that matches no party and meets every declared admission condition commits one553|incomplete|PERSONholding the binding key, theuserNameand the name claims of the access token, with its professionalROLE, as a creation by the person, and is served bound to it; any other mapped attribute is written only where its mapping setsjit = true, andexternalIdnever. Concurrent first requests commit onePERSON, a deprovisioned or inactive login is never recreated, a takenuserNamerefuses the login, and a SCIM client of the key’s issuer completes thePERSON. Boot refusesjitwithout an admission condition or a mapping that can write it.ferroehr party-binding checklists the provisional persons older than[authz.party_binding] provisional_report_days(default 30) (#5016). -
A party of a mapped template is validated against that template on every demographic write: a
PERSONorGROUPwhosearchetype_details.template_idnames a template of the shared party mapping, and aPARTY_RELATIONSHIPof its membership archetype. A532|complete|version must meet every constraint, and a553|incomplete|one may miss mandatory nodes but nothing it carries may be wrong (RM common master06 §Incomplete Content); the refusal is a422naming each failing path. Every other party keeps the reference-model checks alone, so parties created through the Demographic API under other templates are accepted as before (#5042). -
The FHIR
AuditEvent, the DICOM audit message and the ITI-20 syslog feed carry the binding fields of the access record: the binding outcome, the party and its groups, the provider acted for, the facilities of a system commit, the representation with its relationship, the actor chain, the external accessor’s asserted fields and the agreement with its legal ground, consent and access class, and achainedrequest’s correlation id.ehds-logging0.5.1 writes them as theehds-accessorandehds-relayedentities, in the DICOM message as participant objects of type Other. The FHIR record also writes theexternalandsystemacting modes. FerroEHR moves toehds-loggingandihe-atna0.5.1 andihe-iti0.0.77 (#5043). -
A bound representative reaches only the EHR whose
EHR_STATUSnames the subject it represents. Every composition,EHR_STATUS, directory, contribution and query request is held to that EHR whatever the token’s scopes cover, and a query must name it withehr_id. A representative whose token names a subject its party has no live representation relationship to, or whose issuer no[[auth.party]]table binds, is refused with403andrefused-representation-unrecorded(#5086). -
The Helm chart (23.1.0) accepts
bridge.cdr.oauth.tokenEndpointfor an authorization server whose metadata FerroBRIDGE cannot read atbridge.cdr.oauth.issuer. FerroBRIDGE then requests its client credentials token from that endpoint, andissuerstill names themachinesissuer the CDR trusts (#5093). -
A MyHealth@EU contact point’s caller (a
contact_point = truefederationissuer) reaches patient data only for the patient of its treatment relationship confirmation. The token’sehdsi.patient.id(system|value) is resolved to its EHR through the EHR index, and every patient-data request must name that EHR. A token without it is refused with403andERROR_SEC_DATA_INTEGRITY_NOT_ENSURED, recorded asrefused-trc-missing. Another patient’s EHR, an unknown EHR and a request naming no EHR all answer one404of the new problem typetrc-patient-mismatch, carrying the agreement service’s*_NOT_FOUNDcode and recorded as arefused-trc-patient-mismatchsecurity event (eHDSI XCA Profile 8.0.1 §4.2.1, §4.2.2). A contact point’s person agreement now names itsehdsi_service; upgrade step: set it, and list the issuer in[smart] patient_issuers(#5102). -
An external person under an agreement with
discarddiscards a dispensation of a listed template, as a logical delete, withindiscard_window_hoursand from the same point of care: the dispensation’shealth_care_facilitycarries the token’s provider identifier and its eHDSIorganization-id. A token carrying permissions records and discards a dispensation only withPPD-046(eHDSI SAML Profile 10.0.0 §2.5) (#5102). -
A read under a federation agreement with a
consentcondition is served when the token carries the consent decision reference for its patient (Wabvpz Art. 1(j) and Art. 15a(1)), in the claim orauthorization_detailsmember the issuer’s[[auth.federation]]table maps toconsent.reference, and refused with403without it. The reference is one string, the token’spatient/grant holds it to the launch-context patient, and the access record carries it with the other external fields.ferrohealth-smartmoves to 0.9.3, which reads the field (#5106). -
Every access record of an authenticated request carries the outcome of the party binding (
binding:bound,provisional,external,organisation,system,selfor arefused-*code) with the fields it needs: the bound party, its groups, the provider, the guest mark, a representative’s representation, a delegated token’s actor chain, a verified external accessor’s fields and agreement, and the facilities a system caller’s compositions named.acting_modegainsdelegated,externalandsystem. The audit migration0023_binding_outcome.sqladds the columns and restores a per-row digest version: records written before stay version 1 and keep verifying, new records are version 2, and a version-1 record after a version-2 one is refused (#5118). -
Every refused request is an access record through the gated path, and a refusal of the login binding or of a caller kind carries its
refused-*binding code and the party it names. Refusals of tokens that failed verification are budgeted by source network and those of verified callers by issuer and subject, so neither crowds out the other; past a caller’s limit its refusals become one summary record with the count and the EHR ids they named, and past a budget one summary record per issuer and outcome is written. Security-event refusals are recorded for every answered request, and a refusal record the system log cannot take is counted inatna_audit_refusals_unwritten. The limits, windows and budgets are kept per replica (#5119). -
A
chainedorganisation request under a federation agreement is served only when its token carries the requester’s correlation id in the claim or attestedauthorization_detailsmember the issuer’s[[auth.federation]]table maps tocorrelation_id. Without it the request is refused with403and recorded under the binding coderefused-correlation-missing(audit migration0025); a request header never stands in for it. Theorganisationaccess record’sagreementcarries the id and its source beside the legal ground and the access class. A chained agreement whose issuer maps nocorrelation_id, or maps it from a constant, refuses the start (#5120). -
On the MyHealth@EU contact-point route, the committer of an external person names the professional by the HP Identity Assertion’s
NameID:DV_IDENTIFIER{issuer = the assertion's issuer, id = the NameID, type = "hp_identifier:<NameID format>"}, beside the voucher’soauth2identifier (eHDSI SAML Profile 10.0.0 §2.1), and a dispensation’s discard is a logical delete under the same committer. A contact point’s COMPOSITION must carry the HCPO’sorganization-idinEVENT_CONTEXT.health_care_facility.identifiers, under the issuerurn:oasis:names:tc:xspa:1.0:subject:organization-id, beside the provider’s identifier, or it is refused with422.ferrohealth-smartmoves to 0.9.4, which readsehdsi.assertion.name_id_formatand refuses a contact-point token without one of the three formats asERROR_HPI_INSUFFICIENT_INFORMATION; upgrade step: a contact point’s authorization server writes the NameID format into its tokens (#5144). -
A federation caller above its agreement’s
caller_rate, a MyHealth@EU contact point’s included, is answered429withRetry-Afterright after authentication and before any patient lookup, keyed on the token’s subject per replica, and every such refusal is counted into the caller’s summary record (#5149). -
A deleted SCIM User’s contacts are erased from every version of its
PERSON, keeping the name, the binding key and the identifiers for the record-keeping duties that need them.[scim] contact_erasure_minutes(default0, at most 43200) sets when:0erases them in theDELETEitself, a period leaves them to a sweep that runs every minute. Each erased version’s node rows are derived again from the new body, its server signature is removed, and the erasure is an access record namingparty:<id>#contacts. Party migration 0030 adds thescim_contact_erasuretable (#5178). -
openehr-rmtypes generic RM type names and paths:typing::RmTypeparses and prints names such asDV_INTERVAL<DV_QUANTITY>,typing::attribute_typegives an attribute of an instantiated class with the actual argument in place of the formal parameter, andtyping::path_typetypes every step of anRmPathwith its container. Eachmodel::RmAttributeandmodel::RmTypeRefkeeps the formal parameter it is written as (formal) beside the resolved bound.paths::write::item_at_path_mutandpaths::write::set_at_pathwrite at a path into a canonical instance, positional predicates included, creating the members the path names and changing nothing when a write is refused (#5187). -
openehr-sdt:flat::navigate::Navigatorgives every instance of a Web Template path in a composition, with each step’s occurrence, container index, positional path and JSON pointer, reaching a renamed instance where the template’s name is redundant and an OPT2 archetype root through the complete identifier the template recorded.flat::navigate::relativecompares two paths step by step.flat::attribute_keysgives the FLAT key of an RM attribute of a structural class (themaster05-rm_mapping.adoctables, checked against them). AWebTemplateNodecarriesfacts(the embedded template id of an OPT 1.4 archetype root and the terms its archetype defines) and every coded option itsterminology, so no consumer walks the operational template (#5189). -
openehr-basegives identifier and time parts as written:ObjectVersionId::object_id_strandObjectVersionId::versioned_object_idkeep the case of theobject_idpart,Iso8601Time::fraction_digitsandIso8601DateTime::fraction_digitsreturn the digits of the fractional second as text, andIso8601Duration::partsreturns each component’s designator and number verbatim (DurationDesignator,DurationPart), withIso8601Duration::fraction_digitsfor the seconds (#5190). -
openehr-itsreads the ITS-RESTETagas a typed entity tag:rest::etag::EntityTagparses and writes the RFC 9110 form, weak or strong, with the weak and strong comparisons. It types the tag as anObjectVersionIdor aHierObjectId. Every generated response-headers struct that carries anETaggainsentity_tag()beside the rawetagfield (#5191). -
openehr-termnames thenull_flavoursandsettinggroups:codes::NullFlavourandcodes::Settinggive each concept’s code and English rubric and read a code back, held equal to the bundled terminology by tests. Every typed group’sALLis now a slice (#5192). -
openehr-am:HridRefreads an archetype reference with the version precision it was written at (VersionPrecision: major, minor or full, BASE Artefact Identification §Referencing), gives the version as written and matches anArchetypeHridby the specification’s rule, the namespace never a wildcard.ArchetypeHrid::local_semantic_idgives the namespace-free interface form a Web TemplatenodeIdcarries, which thev2_4Web Template builder now uses (#5193). -
openehr-its:rest::stored_querytypes a stored query’s qualified name (QualifiedQueryName,[{namespace}::]{query-name}, withcheck_registrablerefusing the reservedaql), its version (QueryVersion,major.minor.patchin numeric order) and the version pattern a request addresses (VersionPattern, exact,{major}or{major}.{minor}, selecting the highest match), per ITS-REST 1.1.0. The generated stored-query operations and theStoredQueryandRESULT_SETdocuments carry them, so a name or version outside the grammar is a400where the request is decoded (#5207). -
openehr_rm::Generation::earliest_for_compositionanswers the oldest RM generation whose canonical-JSON decode accepts a composition, so a builder can nameARCHETYPED.rm_versionwithout naming a generation module; a value no generation decodes is a typedNoGenerationDecodeserror carrying every generation’s refusal (#5242). -
The access record takes the purposes of use and the professional roles from the access token. An issuer with an
[[auth.attributes]]table states them through the IHE IUApurpose_of_useandsubject_roleclaims (IHE ITI TF-2 §3.71.4.2.2.1.1) or thepurpose_of_useof RFC 9396authorization_details. The newtoken_attributescolumn of the audit store holds them, a new record is chain digest version 3, and the EHDS access record and the BALPAuditEventwrite them with their code systems. A request whose[audit] purpose_headernames a purpose the token does not state is refused with403, and the refusal is recorded. The header alone keeps working for an issuer without the table (#5323).
Changed
-
The published server, viewer and PostgreSQL images take their
org.opencontainers.image.base.nameandbase.digestlabels and annotations from the runtime stage’s digest-pinnedFROMline at build time, so a base-image bump changes that one line. An image built directly from a Dockerfile no longer carries these two labels (#4953). -
[auth]takes theferrohealth-smart0.9 shape. Every trusted issuer is an[[auth.issuer]]table with a requiredkind(persons,patients,machinesorfederation) and aprofile(rfc9068by default, orentra,keycloak,okta,nl), and holds every setting of its tokens itself. A configuration in the old shape refuses the start, naming what replaces it. Upgrade steps: write a flatissuer = "…"as an[[auth.issuer]]table; moveaudience,algorithms,clock_skew_seconds,jwks_max_age_seconds,jwks_refresh_interval_seconds,jwks_file,timeout_ms,mode,role_claimsand[auth.introspection]onto each issuer table ([auth.issuer.introspection]); give each issuer itskind, with patients and professionals at separate issuers (a realm or tenant each), since one issuer is one kind; replacetoken_profile = "jwt"withtoken_types = ["JWT"]and therequired_claimsthe issuer’s tokens carry, and droptoken_profile = "rfc9068"; and write eachscopeless_subjectsentry as{ issuer = "…", sub = "…" }(#5003). -
A
personstoken is admitted only through a client its issuer lists infirst_party_clientsordelegates. Upgrade step: list the deployment’s own clients, the viewer’s among them, infirst_party_clients, and a third-party client that acts for a person indelegates. The other 0.9 profile keys (person_key,tenant_claim,client_claims,app_only,guest,impersonation_marker,expect,user_claims,person_equality,unstable_claims,max_actor_chain,representation,scope_claim,app_only_scope_claim,adapter,sender_constraintand theonward_*keys) are documented in the configuration reference (#5003). -
An array of tables, such as
[[auth.issuer]], is set from the environment by element index (FERROEHR__AUTH__ISSUER__0__ISSUER), throughferrohealth-config0.2.10 (#5003). -
[smart] issuer_metadata_fileis the metadata of the[auth]issuer it names, wherever that issuer stands in the list, and a file naming no[auth]issuer refuses the start. The SMART discovery document describes the first introspected issuer, else that named issuer, else the first issuer whose metadata is read from it, else the first issuer, so a Basic users’ issuer listed first no longer takes the discovery document (#5003). -
The family crates move together:
ferrohealth-smart0.9.1,ferrohealth-authz0.3.0,ferrohealth-session0.3.1,ihe-atnaandehds-logging0.4.0,ihe-iti0.0.76,ferrohealth-config0.2.10,ferrohealth-server0.5.1 andferrohealth-ui0.6.9.ihe-atnaandehds-loggingnow escape every control and bidirectional formatting character of a value they write as its code point. Withferrohealth-ui0.6.9 the viewer’s session watch no longer throws when the party relationship form, which holds a control namedtarget, is submitted (#5003). -
The terminology client moves to
ferrobridge-term0.1.143 (FerroBRIDGE v0.0.22), which takes theferrohealth-smart0.9 token source (#5003). -
Every person is bound to a demographic party, with no switch. A
personsissuer needs its[[auth.party]]table, two issuers of one node may not share an audience, and[authz.party_binding] provider(the healthcare provider the deployment acts for, EHDS Art. 13(4) and Annex II 3.2(a)) is required once[auth]admits a credential; each refuses the start naming what to set. A Basic user is a person: it maps to the binding key of itsPERSONin[[authz.party_binding.basic_user]](user,key_issuer,key), and a Basic user without a mapping refuses the start, naming the user. Upgrade steps: add an[[auth.party]]table to eachpersonsissuer, setprovider, and map each Basic user under theidentifier_issuerof an[[auth.party]]table, which needs apersonsissuer; a deployment of Basic users alone declares one whosejwks_fileis a key set that signs nothing, as the quickstart and the sandbox do (#5003). -
A token grants
[authz.rbac] admin_role,emergency_access_role,import_roleandidentifier_reader_roleonly when its issuer is listed in the new[authz.rbac] role_issuers, each apersonsissuer; any other kind refuses the start. Upgrade step: list the issuers whose role claims grant these roles; a Basic user keeps the roles its own table grants (#5003). -
The compose quickstart, the dev and conformance stacks, the hosted sandbox and the Helm chart’s Basic overlays bind their Basic users under a
personsissuer that signs nothing: its key set, which every FerroEHR image carries at/opt/sandbox-posture/basic-users-jwks.json, is the public half of a key pair whose private key was discarded (#5003). -
The quickstart has one copy.
docker-compose.ymlonmainpulls the FerroEHR images at:mainand carriesmain’s configuration, which CI checks with the server image the change builds; the copy attached to each release pulls that release’s images, written by the release lane, which refuses a copy that still names:main. Download the release asset (releases/latest/download/docker-compose.yml) to run a release (#5003). -
The Helm chart moves to 22.0.0.
config.auth.issueris a list of issuer tables, each with itskind,profileandaudience, andvalues.yamlexposesconfig.auth.party,config.authz.party_binding,config.authz.rbac.role_issuers,config.authz.system_clientandconfig.authz.federation.agreement. The chart refuses an issuer withsender_constraint: requiredbesidereplicaCountabove 1 or autoscaling. Upgrade steps: rewriteconfig.authas the[auth]upgrade above describes, setconfig.authz.party_binding.provider, and list the issuers whose roles grant the administrator role inconfig.authz.rbac.role_issuers(#5003). -
A caller bound to a demographic
PERSONcommits under the committer the server writes: aPARTY_IDENTIFIEDwith thePERSON’s name, the login identifier (the issuer profile’sperson_keyvalue under the token issuer, typeoauth2, or the Basic user underferroehr, typebasic), the provider identifier (typehealthcare-provider) and anexternal_refto thePERSON, on every commit path, attestations and CONTRIBUTIONs included. Upgrade: stop sending a committer, or send the placeholder{"_type": "PARTY_IDENTIFIED", "identifiers": [{"_type": "DV_IDENTIFIER", "issuer": "<iss>", "id": "<sub>"}]}, which must name the authenticated caller; a stated committer with another name, identifier orexternal_ref, and a statedPARTY_RELATED, is refused with403(#5005). -
A patient’s committer is
PARTY_SELFwith noexternal_ref, and a representative commits as aPARTY_RELATEDnaming their ownPERSONand the coded relationship. A patient-context token commits no demographic version. Upgrade: read the person’s own entries by the committer’sPARTY_SELFtype, not by its formerexternal_ref(#5005). -
Importing an EHR Extract needs the role
[authz.rbac] import_rolenames, or asystem/caller, and a wrapped committer naming a party or a login of this deployment is refused unless its version was created by a system[authz.import] trusted_systemslists. Upgrade: setimport_roleand give it to the accounts that import (#5005). -
A person of a
personsissuer whose login no demographic party carries is refused with403andrefused-unboundon every request, with no fallback to a login-only committer. The problem names the identifier issuer to provision the person under, a token without the key claim is refused with a problem naming that claim, and each refusal counts into the newbinding_refusalsmetric by issuer and outcome. The Keycloak quickstart overlay provisions its four demo users through SCIM with theferroehr-provision-keycloakone-shot. Upgrade: provision every professional (through SCIM or the demographic API) before you add apersonsissuer to the upgraded deployment (#5006). -
A deployment whose FerroBRIDGE facade or FerroFED gateway writes to FerroEHR adds its
personsissuers only after the bridge and the gateway reach it under the caller: FerroBRIDGE v0.0.23 and FerroFED v0.0.17. Until then the committer rule refuses their writes. FerroFED v0.0.17 follows this release, so a deployment with a FerroFED gateway adds itspersonsissuers only once that release is out. The book’s new “Party binding: bootstrap and migration” page carries the bootstrap path, the four migration steps and these prerequisites, and “Breaking changes of party binding” lists every incompatible change with its upgrade step (#5009). -
The hosted sandbox follows the bootstrap path of party binding: its configuration declares the
sandbox-scimclient ([[scim.client]], with the development issuer trusted as amachinesissuer for it), the box’s newferroehr-provisionservice provisions the demoPERSONthrough/scim/v2/after every reset, andscripts/sandbox/reseed.shwaits for the demo login to bind before it seeds, then checks the committer of the marker’sEHR_STATUSversion references aPERSON. The deploy probe’s newbootstrapfamily (P-BOOTSTRAP-01) shows the compose quickstart does the same from an empty database: the quickstart user is a User of the SCIM client, and a commit of the Basic user names thatPERSON(#5009). -
With a party mapping configured, the parties the login binding relies on are written through the demographic API by an administrator (
authz.rbac.admin_role) only: aPERSONof a mapped template carrying a binding key,userNameorexternalId, its professionalROLE, a representation relationship, and aGROUPof the group template. Any other caller’s write is refused with403, a version that changes a present binding key is refused with403, and an administrator’s version that leaves a protected identifier out is refused with422. Upgrade: write these parties as an administrator, and change a key throughPOST /admin/party/binding-key(#5013). -
FerroEHR records every DPoP proof it accepts in its PostgreSQL database until the proof’s window ends, so a proof is accepted once across all replicas, and a proof replayed to another replica is refused there (RFC 9449 §11.1). If the database cannot record a proof, the request is refused with
503. The Helm chart (22.1.0) no longer refuses an issuer withsender_constraint: requiredbesidereplicaCountabove 1 or autoscaling (#5072). -
An AQL query scoped to one EHR now takes the streaming plan shape whatever its
ORDER BY,DISTINCTor aggregates, whether the EHR comes from theehr_idrequest parameter or from anehr_id/valueequality in the query. On a store of 100,000 compositions such a query used to spend 16 to 64 ms in PostgreSQL’s planner for an execution of about 1 ms, on every new connection and every new statement text; it now plans in 1 to 3 ms (#5076). -
The Helm chart (23.0.0) connects FerroBRIDGE to the CDR as a machine. FerroBRIDGE uses an OAuth 2.0 client credentials client of a
machinesissuer that the CDR trusts, set inbridge.cdr.oauth(issuer,clientId, and optionallyscope,audienceandresource). The client secret comes from theclient_secretkey ofbridge.cdr.existingSecret. The chart no longer accepts a Basic user for this connection: from ferrohealth-smart 0.9 a Basic credential belongs to a person and holds nosystem/scope. The chart refuses to render whenbridge.cdr.oauth.issueris not listed inconfig.auth.issuerwithkind: machines. To upgrade, add that issuer, create the client, and replace theuserandpasswordkeys of the Secret withclient_secret(#5085). -
A verified external person’s commit records the professional as its committer: a
PARTY_IDENTIFIEDwith the asserted name, thehp_identifierunder the issuer"<country_code>:<issuing_authority_name>"and the token’sissandsub, with noexternal_ref. A country code that is no upper-case ISO 3166-1 alpha-2 code, or an issuing authority holding a:, control or bidi character, is refused with403naming the field. The COMPOSITION must name the token’s healthcare provider (provider.healthcare_provider_identifierunderprovider.issuing_authority_name) as itshealth_care_facility, or it is refused with422. Upgrade step: mapprovider.issuing_authority_namein each[[auth.federation]]table whose agreements carrywrites, with aconstantsource where the token does not carry it (#5097). -
A system caller (an app-only token by its issuer profile’s
app_onlymarkers) holdssystem/scopes only: a token carrying auser/orpatient/scope is refused with403. It commits into an EHR only as a client an[[authz.system_client]]table declares, under the committerPARTY_IDENTIFIED{name = <client>, identifiers = [{issuer = <iss>, id = <client>, type = "client"}]}, and each COMPOSITION it commits must be of a template itswriteslists (403), name a facility itsfacilitieslists incontext.health_care_facility, or infeeder_audit.originating_system_audit.locationwhen it has no context (422), and be either a device act from adeviceclient or a relayed person act naming the professional by an identifier from arelayclient. Upgrade: declare every client that commits in[[authz.system_client]]with itswrites,facilitiesandorigins, and give its compositions the facility identifier (#5100). -
An attestation is accepted only from a caller bound to a professional
PERSON; one from a patient, a representative, a system caller or an unbound caller is refused with403. Upgrade: attest under the professional’s own token (#5100). -
A guest of a
personsissuer, by its profile’sguestmarkers, is refused with403(refused-guest) unless the issuer’s[[auth.party]]table setsguests = true. Upgrade: setguests = trueon the issuers whose guests act under your responsibility (#5100). -
A verified external person or organisation of a
federationissuer is admitted only under the[[authz.federation.agreement]]of its issuer and accessor, holding no scope beyond the agreement’sreads, and is an access-service caller by its kind: an opted-out EHR answers404to it, and only an external person under an agreement withopt_out_overridereaches one under an emergency purpose. It commits only a COMPOSITION of a template the agreement’swriteslists (an organisation nothing), and a read under aconsent-conditioned agreement, and every request under an NL agreement, is refused until the consent decision reference and the Wabvpz Art. 15f roles can be read. Upgrade: declare an agreement for everyfederationissuer and accessor, list the issuer in[smart] patient_issuers, and give its tokens only thepatient/scopes the agreement reads (#5101). -
Under an NL
[[authz.federation.agreement]], Wabvpz Art. 15f now decides admission in place of the refusal of every request. A caller whosenl.roleis the UZI role 01.008 (bedrijfsarts) or 01.048 (verzekeringsarts) is refused with403asrefused-wabvpz-role, and a caller whosenl.organisation_typeis missing or is not a care provider type of Nictiz’sOrganisatieTypeCodelijstis refused with403asrefused-wabvpz-organisation-type, so an insurer is refused. Every NL agreement declarespurpose = "care"; one without a purpose, or for akeuring, refuses the start. The code lists are vendored byscripts/vendor/nl-role-codes.shintodocs/specs/nl-role-codes/. Upgrade: addpurpose = "care"to every NL agreement and mapnl.organisation_type(andnl.rolefor persons) in its issuer’s[[auth.federation]]table (#5107). -
A delegated token’s access record now has
acting_mode = "delegated"where it hadclient, and a system caller’ssystem. The FHIR rendering still names a delegated access as a client one. Upgrade: a review query that selects delegated access byacting_mode = 'client'also selects'delegated'(#5118). -
FerroEHR builds on
ferrohealth-server0.6.1, whose public caller-rate take holds a federation caller to its agreement’scaller_rate. Its 0.6.0 break, therevocationfeature’s move toder0.8, touches no feature FerroEHR enables (#5149). -
The source tree no longer carries the UZI role code CodeSystem (
uzi-rolcode) of Nictiz’s zib 2020 package: its codes and titles reproduce the UZI-register CPS, which CIBG does not license for reproduction.scripts/vendor/nl-role-codes.shwrites it into the git-ignored.vendor-cache/nl-role-codes/, as it does the CPS, and--test-inputsfetches only what the Wabvpz tests read. Nictiz’s care provider types stay underdocs/specs/nl-role-codes/. Runscripts/vendor/nl-role-codes.sh --test-inputsonce before running theferroehr-resttests (#5175). -
A contact point’s
patient.idis read throughferrohealth-smart’sTrcPatientId, the family’s one definition of the TRC patient. A value with whitespace in its system, or a value holding a control character,|or a CX delimiter (^,&,~,\), is refused as a missing binding, as the contact point that writes the claim refuses it (#5195). -
[auth]takes three boot refusals fromferrohealth-smart: a Basic user’s hash below the Argon2id floor (m=19456, t=2, p=1), an issuer that carriesuserinfo, and private or symmetric key material in ajwks_file. They are refused as before, with the crate’s messages. Ajwks_filethat is no JWK Set now refuses the start where the crate reads the key set (#5209). -
The family crates move together to one
ferrohealth-smart: 0.13.1, withferrohealth-authz0.7.0,ferrohealth-session0.7.0,ihe-atnaandehds-logging0.8.0,ihe-iti0.0.83,ferrohealth-server0.6.4 andferrobridge-term0.1.148. The 0.13 line refuses a JSON document it cannot read without quoting it (GHSA-mhv7-3975-6xq3), so ajwks_fileor[smart] issuer_metadata_filethat does not parse is refused at boot with the crate’s message, which names the failure class and position; 0.13.1 keeps a refused key set, introspection or metadata body out of the error (GHSA-5qm7-v4fw-p2v9). The OAuth client credentials tables ([authz.abac.remote.oauth],[ehr_index.oauth],[terminology.oauth]and[audit.fhir_feed.oauth]) read as before (#5209). -
The API’s response security headers come from the family server stack (
ferrohealth-server0.6.2) with the same six headers and values. They now also reach the management listener on its own port, andStrict-Transport-Security: max-age=31536000is sent when FerroEHR or the viewer serves TLS itself ([server.tls], RFC 6797 §7.2). The viewer gainsCross-Origin-Resource-Policy: same-site(#5210). -
The server and the viewer read the parts of an
OBJECT_VERSION_IDthroughopenehr-baseand its BASE grammar, never by cutting at::. A value that is noOBJECT_VERSION_IDnow names no version: the AQL branch refusal, the version item tags and the viewer’s version numbers leave it alone, a reference to a container is read as the whole value (souuid::extensionno longer names the containeruuid), and the viewer’s deletes refuse it before calling the CDR. Every part keeps its case (#5211). -
ETagandIf-Matchvalues are read throughopenehr-its’s RFC 9110 entity tag on the server and in the viewer. The server accepts the same forms as before. The viewer reads its CDR’sETagstrictly: a value that is no entity tag names no version (#5212). -
The viewer’s audit screen reads the ITI-81 searchset and each
AuditEventas FHIR R4 resources, and a refusal’sOperationOutcometoo. A searchset that is no FHIR R4BundleofAuditEvents now shows as a failed read, never as a page of empty rows (#5214). -
The EHR index’s boot check reads the PIX Manager’s
CapabilityStatementthroughihe-iti’s PIXm client, with its transport and its client-credentials token, so a Manager behind IUA answers the probe as it answers ITI-83. A failed probe is reported as the client’s refusal: no answer, the status it answered, or no FHIR R4CapabilityStatement(#5216). -
[audit.syslog]reads its TLS material from[audit.syslog.tls], the outbound TLS table of every FerroHEALTH product (trust_roots_file,client_identity_fileorclient_identity,min_version), and handsihe-atnathe rustls configurationferrohealth-serverbuilds from it. The keystls_ca_file,tls_identity_cert_fileandtls_identity_key_fileare retired and refused at boot by name: name the roots file astrust_roots_file, and concatenate the client certificate chain and its private key into the one PEMclient_identity_filenames. The client speaks TLS 1.3 unlessmin_version = "1.2"lowers it (#5217). -
A SCIM Group membership is now held by the member: an inline
PARTY_RELATIONSHIPfrom the member’sPERSONto theGROUP, stored in thePERSON’s version (RM demographic §Party Relationships). A membership change versions only thatPERSON, so its cost no longer grows with the Group’s size. TheGROUPis versioned only by a rename, anexternalIdchange or its deletion. The Group’smembersis read from the membership index (#5220). -
A Group’s
ETagis now itsGROUPversion plus a membership revision, so it still changes with every membership change. The member User’sETagnow changes too, while its body stays the same (#5220). -
Deactivating a User (
active = false) drops all of its memberships in the same version, because an inactivePERSONcannot be versioned again. A reactivated User belongs to no Group until its client adds it again (#5220). -
Microsoft Entra ID’s disable-then-remove order now succeeds, since the later
removefinds nothing to remove. Anaddnaming an inactive User is400 invalidValue(“reactivate the User first”) (#5220). -
A refused SCIM write now names the rule it breaks in
detail(#5220). -
scripts/perf/scim-groups.shkeeps the database log,df -handfree -mof a failed run (#5220). -
A party commit no longer re-derives the login binding’s side table, the reverse-relationship index and the protection check from the whole stored body. Each hook reads what the committed body holds, derived once in memory, and writes only the rows that changed, and
ferroehr party-binding refillderives the rows with the same code. A party commit without a server signature no longer reassembles its body. A membership change at the cap of a 5 000-member SCIM Group went from 810 ms to 358 ms at p99 on a developer laptop (#5220). -
openehr-rmwrites the RFC 8785 canonical form aVERSIONsignature covers in one pass over the version, sorting each object’s members by reference. A 3.3 MBGROUPversion canonicalises about seven times faster than throughserde_jcs, with byte-identical output, so signed versions verify unchanged.serde_jcsremains the test oracle (#5220). -
The stored-query service takes the typed name, version and version pattern of
openehr_its::rest::stored_queryend to end, so it reads one grammar with the REST layer: the three-part{namespace}::{formalism}::{query-name}name, which ITS-REST 1.1.0Qualified_query_name.mddoes not define, is no longer accepted anywhere (the formalism is thequery_typeparameter), andDELETE /admin/query/{qualified_query_name}/{version}answers400for a name outside[{namespace}::]{query-name}or a version that is no exactmajor.minor.patch, where it answered404(#5223). -
Boot and
ferroehr config checkrefuse an[[auth.party]]table whoseidentifier_typeis thetypeof no[[authz.party_binding.person.template]]key, naming the issuer, the type and the types the templates write: no login of such an issuer could ever match a party, and every one would be refused. Upgrade step: give the deployment a person template whose key carries the table’sidentifier_type(or set the table to the type the template writes). The Helm CI and production values and the hosted sandbox now carry the professional PERSON and ROLE mapping, and the sandbox loads the two templates before the CDR starts (#5231). -
openehr_query::printer::to_aqlwrites eachWHEREcomparison with one space on each side of the operator (c/name/value = $nameValue), as the QUERY 1.1.0 AQL syntax examples do; path predicates keep their unspaced form ([ehr_id/value=$ehrUid]). The query builder’s generated AQL follows (#5241). -
openehr_sdt::flat::navigate::Navigatorowns what it copies from its Web Template (the name-fallback table and the OPT2 archetype references) and carries no template lifetime, so a consumer can keep it beside the template it was built from; it isDebug,Clone,SendandSync(#5243). -
Breaking: the configuration tree is one table per concern.
ferroehr.tomlmoves to[deployment],[api],[database],[auth](with[auth.smart]and[auth.scim]),[authz](with[[authz.origin]]),[management],[audit],[privacy](withidentifier_protection,cohortandaccess_delay),[record](withsubject_index,versioning,signing,query,change_feedandmultimedia),[terminology]and[pixm]. FerroEHR’s own keys take one duration type ("500ms","30s","10min","12h","7d", UCUM unit codes, so a bare number andmare refused), one size type ("256KiB","64MiB", IEC binary units, decimal units refused) and one calendar retention period ("P5Y","P1830D", unset keeps forever). An optional feature is on when its table is present:[terminology],[pixm],[auth.scim],[audit.syslog],[audit.fhir_feed],[privacy.identifier_protection]and[privacy.access_delay]carry noenabled;[authz.abac],[record.multimedia]and[auth.smart]keep a switch because some of their keys apply while off.record.subject_indexhas no default, so the server refuses to start until"pixm"or"local"is chosen.[api.cors]replacescors_permissivewith the Fetch Standard response headers (allow_origins,allow_methods,allow_headers,expose_headers,allow_credentials,max_age). The environment follows the tree (FERROEHR__DB__URLisFERROEHR__DATABASE__URL,FERROEHR__EHR_INDEX__PROVIDERisFERROEHR__RECORD__SUBJECT_INDEX). The Helm chart moves to its 25 line withconfig:on the same tree. Every key a release before v5.7.0 read is refused at load with its replacement named, all at once, soferroehr config check --config <old file>prints the whole move list; the refusals ship in v5.7.0 only and the next release removes them. To upgrade, runconfig checkon the old file and move each key it names:spec_profile,deployment_profile,deployment_acceptsandlicence.filearedeployment.spec_profile,deployment.profile,deployment.acceptsanddeployment.licence_file;[rest]is[api](swagger_uiisopenapi_ui,body_limit_bytesisbody_limit,cors_permissive = trueis[api.cors] allow_origins = ["*"],[rest.identity]is[api.options]withsolutionandvendor; the version keys are facts of the build),admin.enabledisapi.adminandterminology.api_enabledisapi.terminology;[db]is[database](acquire_timeout_secsisacquire_timeout,statement_timeout_msisstatement_timeout,migrateismigrations),[storage.<domain>]is[database.<domain>]and[storage.migrate.<domain>] urlis[database.<domain>] migrate_url;[smart]is[auth.smart](enabledisdiscovery,episode.enabledisepisode_launch,launch_base64_json = trueis"launch-base64-json"inauth.capabilities);[scim]is[auth.scim](max_resultsisfilter_max_results,deactivation_window_minutesisdeactivation_window,contact_erasure_minutesiscontact_erasure_delay);[authz.abac.cedar] reload_secsisreload_interval,[authz.abac.remote] server,connect_timeout_msandrequest_timeout_msareurl,connect_timeoutandtimeout,authz.party_binding.provisional_report_daysisprovisional_report_after, and an agreement’sdiscard_window_hoursandchained_log_retention_yearsarediscard_windowandchained_log_retention;[[origins.registered]]is[[authz.origin]];management.portismanagement.listen(anaddress:port) andmanagement.profiling.max_secondsismax_duration;audit.store.retention_daysandretention_yearsareaudit.store.retention,verify_interval_secondsandfull_verify_interval_secondsareverify_intervalandfull_verify_interval;[audit.syslog]hostandportareurl = "tls://host:port",spool_max_messagesisspool_max_events,spool_max_bytesisspool_max_size,retry_max_msisretry.max_backoff, and[audit.fhir_feed]poll_interval_msandretry_max_msarepoll_intervalandretry.max_backoff;[demographic.identifier_protection]is[privacy.identifier_protection],[cohort]is[privacy.cohort], and[access_delay]is[privacy.access_delay]withhoursasmax_delay;ehr_index.providerisrecord.subject_index("ihe"is"pixm") and the rest of[ehr_index]is[pixm](pixm_urlisurl,invocationismethod,request_timeout_msistimeout);versioning.skip_identical_resendisrecord.versioning.idempotent_resend;[signing]is[record.signing](key_pathiskey_file,retired_key_pathsisretired_key_files),[query]is[record.query](timeout_msistimeout),[outbox]is[record.change_feed](retention_daysisretention,prune_interval_secsisprune_interval), and[multimedia]is[record.multimedia](endpointisurl,threshold_bytesisthreshold, andallow_httpis retired: anhttp://url is plain HTTP);[terminology.server]is[terminology](fail_on_errorison_error = "accept" | "refuse",request_timeout_msistimeout). The family sections take the same types, fromferrohealth-server0.8,ferrohealth-telemetry0.4,ferrohealth-smart0.15 andferrohealth-session0.9:[server]request_timeout_ms,header_read_timeout_ms,idle_timeout_ms,drain_delay_ms,shutdown_timeout_msandretry_after_sarerequest_timeout,header_read_timeout,idle_timeout,drain_delay,shutdown_timeoutandretry_after,body_limit_bytesandcompression_min_bytesarebody_limitandcompression_min_size, and[server.tls] reload_interval_sisreload_interval;[telemetry.otlp]trust_roots_fileandclient_identity_filemove into[telemetry.otlp.tls], and anhttps://collector is dialed over it;[auth] ca_fileis[auth.tls] trust_roots_file, an[[auth.issuer]]table’sclock_skew_seconds,jwks_max_age_seconds,jwks_refresh_interval_secondsandtimeout_msareclock_skew,jwks_max_age,jwks_refresh_intervalandtimeout, its introspectioncache_max_age_secondsiscache_max_age,[auth.basic] cache_ttl_secondsiscache_ttl,[auth.dpop]max_age_secondsandclock_skew_secondsaremax_ageandclock_skew,[auth.idp.entra]timeout_msandmax_response_bytesaretimeoutandmax_response_size, and anoauthgrant’sca_file,client_certificate_fileandclient_key_fileare itstlstable’strust_roots_fileandclient_identity_file(one PEM), withrefresh_margin_ms,timeout_msandprevious_key_overlap_msasrefresh_margin,timeoutandprevious_key_overlap. The[auth]keys v5.6 read for every issuer (audience,algorithms,token_profile,jwks_file,mode,introspection,role_claimsand the rest) live on each[[auth.issuer]]table, andscopeless_subjectsentries are{ issuer, sub }tables. In the viewer,cdr.request_timeout_secsiscdr.timeout,[oidc] ca_fileis[oidc.tls] trust_roots_file,[oidc.tls]client_certificateandclient_keyareclient_identity_file, and[session]idle_timeout_s,absolute_timeout_sandsign_in_timeout_sareidle_timeout,absolute_timeoutandsign_in_timeout. Each of these is refused in v5.7.0 naming its replacement, in the CDR and the viewer alike (#5259). -
Breaking: a
patientstoken that names an actor is refused. Withferrohealth-smart0.15, apatientsissuer reads a token whose top-levelact(RFC 8693 §4.1) names someone other than the patient only when its[[auth.issuer]]table setsact_represents_patient = true; without it the token is refused401, where v5.6 admitted it as the patient’s own access. With it, FerroEHR refuses the token403(refused-patient-representative), because it binds no party to someone acting for a patient, and the access log records the refusal (#5259). -
SECURITY.md,security.txt(itsContact: mailto:field), the post-market record, the CRA technical documentation and the book’s compliance pages namesecurity@cadasto.comas the email route for a vulnerability report, in place ofinfo@cadasto.com, which stays the single point of contact for complaints and incidents, the manufacturer’s address on the running server and the address for licensing and other business questions (#5272). -
The shipped
ferroehr.tomltemplate (app/ferroehr/assets/ferroehr.default.toml) is generated from the configuration types withtools/config-reference: every key, each under its description and set to its default, a secret or a key with no default as a#?placeholder line. The book’s new page “Every configuration key” includes it whole. CI fails when it drifts from the types. No key changes: aferroehr.tomlthat loads today loads unchanged (#5316). -
The family crates move to their newest releases:
ferrohealth-smart0.18.0,ferrohealth-session0.12.0,ferrohealth-authz0.11.0,ferrohealth-server0.8.4 (its TLS certificate verifier is built once per process),ferrohealth-telemetry0.4.1,ihe-atnaandehds-logging0.12.0,ihe-iti0.4.0,ferrobridge-term0.5.0, andfhir-typesandfhir-search0.1.131. Every[[auth.issuer]], onward and OAuthissuerrenders with its credentials masked. A system caller, a patient and a patient’s representative carry the purpose of use their token states when their issuer has an[[auth.attributes]]table. An IUApurpose_of_useof empty codes states no purpose (#5320). -
ferroehrandferroehr-viewerrun through the FerroHEALTH family’s run path. A configuration either binary refuses (an unknown or invalid key, a broken semantic rule, an[auth]table with no mechanism, a SCIM mapping it cannot serve, or for the viewer a TLS file that does not read or an unusable[oidc]or[session]table) now exits78(EX_CONFIGofsysexits(3)) where it exited1, so an orchestrator can tell a configuration to fix from a failure to retry. Every other failure still exits1, and the failure is written to stderr as one line with its whole cause, prefixed with the binary’s name. Upgrade: a script or probe that expects exactly1fromconfig checkon a refused file expects78(#5321). -
The configuration is redacted by its secret types alone.
GET /management/env,GET /ferroehr/rest/extensions/v1/admin/configandferroehr config checkshow the tree as itsSecretandSecretUrlvalues serialize, and the second masking by key name and by URL shape is gone.[audit.syslog] url,[auth.smart] platform_base_urlandpublic_base_url, and[auth.scim] public_base_urlare secret URLs now, as are the OAuth, onward and introspection endpoints offerrohealth-smart0.17 and the viewer’s[oidc]endpoints offerrohealth-session0.11, so each renders with its credentials and query masked. Aplatform_base_urlgiven as a bare path renders as***(#5322). -
Every outbound integration (the terminology server, the PIXm identity source, the ITI-20 FHIR Feed, the remote policy decision point and the viewer’s CDR client) is built by
ferrohealth-smart’sOutboundClientfrom its endpoint table, and FerroEHR’s own client builder is gone. A PIXm exchange’stimeoutnow bounds the exchange with its tries and the waits between them, and the viewer refuses a[cdr] timeoutof zero at start (#5324). -
The family crates move to their newest releases:
ferrohealth-smart0.17.0,ferrohealth-session0.11.0,ferrohealth-authz0.10.0,ferrohealth-config0.4.4,ferrohealth-server0.8.3,ferrohealth-secret0.2.1,ferrohealth-usage-report0.4.1,ferrobridge-term0.4.0,ihe-atnaandehds-logging0.11.0, andihe-iti0.3.0. Every OAuth token endpoint and introspection endpoint renders with its credentials masked, and a TLS refusal of an outbound client names its<key>.tlstable (#5324). -
[auth.idp.entra]is read byferrohealth-smart’s[auth]section, so an unknown key under it is refused with the crate’s field list. The key path is unchanged. The effective configuration now shows[auth.idp]as an empty table when no adapter is configured (#5325). -
The build compiles FHIR R4’s resources alone:
fhir-typesis required with itsr4-resourcesfeature in place of the crate-wideresources, and the FerroBRIDGE crates (fhir-types,fhir-search,ferrobridge-term) are required by caret ranges in place of exact versions (#5327). -
Breaking: the outbound integrations take the family’s endpoint table.
[terminology],[pixm],[audit.fhir_feed]and[authz.abac.remote]read where they call and how from one[<x>.endpoint]table, the same keys for every outbound integration of every FerroHEALTH product:url,timeout,connect_timeout,retry(max_attempts,initial_backoff,max_backoff),tls(trust_roots_file,client_identity_file,min_version) andcredentials(HTTP Basicuserwithpasswordorpassword_file, or the client credentials grant[...credentials.oauth]).terminology.url,timeoutand[terminology.oauth]areterminology.endpoint.url,timeoutand[terminology.endpoint.credentials.oauth];pixm.url,timeout,[pixm.tls]and[pixm.oauth]arepixm.endpoint.url,timeout,[pixm.endpoint.tls]and[pixm.endpoint.credentials.oauth];audit.fhir_feed.url,[audit.fhir_feed.retry]and[audit.fhir_feed.oauth]areaudit.fhir_feed.endpoint.url,[audit.fhir_feed.endpoint.retry]and[audit.fhir_feed.endpoint.credentials.oauth];authz.abac.remote.url,connect_timeout,timeoutand[authz.abac.remote.oauth]areauthz.abac.remote.endpoint.url,connect_timeout,timeoutand[authz.abac.remote.endpoint.credentials.oauth]. The v5.6 keys are refused naming their new home. Every client now honoursretry: the terminology, PIXm and remote policy clients try a call that got no answer or a5xxup tomax_attemptstimes (three by default; each tried once before), so setmax_attempts = 1to keep one attempt, and the FHIR feed’s delivery rounds takemax_attemptstries each, frominitial_backoff, before the round waitsmax_backoff; the feed still never gives a record up. The environment follows the tree (FERROEHR__TERMINOLOGY__ENDPOINT__URL,FERROEHR__AUDIT__FHIR_FEED__ENDPOINT__URL), and so do the Helm chart’s values and its client secret routing, in the chart’s 25 line (#5331). -
The FerroEHR PostgreSQL image is built on the 2026-11-09 respin of
postgres:18.6(sha256:e3d24f69…), a same-version respin with rebuilt base packages. A full scan of the rebuilt image on amd64 and arm64 finds the same findings as the image of the previous base, each judged insecurity/vex/postgres-os.openvex.json, and a gate scan finds no fixable HIGH or CRITICAL finding (#5332). -
The development and Keycloak example compose files run Keycloak 26.8.2 (
quay.io/keycloak/keycloak:26.8.2@sha256:723b1d6e…). Of the 26.8.2 upgrading notes, the shipped realm meets the ones that touch it: the Admin REST API’s new audience check passes for the master realm’sadmin-clitoken the browser-test harness uses, and the realm uses no token exchange, identity broker, SAML client, CIBA or dynamic client registration. Theferroehr-serviceclient-credentials token carries the same audience and scopes as under 26.8.1 (#5333). -
The compose quickstart, the hosted sandbox and the Helm chart deploy FerroPIX 0.0.26 (
ghcr.io/ferrohealth/ferropix:0.0.26@sha256:85d40e6fdcdb39f782007eff91eb059861a4e039ca3f8fb56e37f2fa0f28d78a, the FerroPIX chart 0.3.19) and FerroTERM 0.4.5 (ghcr.io/ferrohealth/ferroterm:0.4.5@sha256:7c20d39e1989fce1dfb92e6ddfd853dfa9a52bb9b7b973fbba42430963ef75bd), and the development issuer ismock-oauth2-server6.1.5. FerroPIX’s configuration moves to the[[auth.issuer]]shape it now requires: the issuer iskind = "machines"and carries its ownaudience, and[auth] audienceis gone. A chart deployment that setsferropix.config.authmoves its audience onto each issuer the same way (#5351). -
The nine
openehr-*crates follow The Cargo Book’s SemVer rules, judged bycargo-semver-checks0.51.0 against their newest release on crates.io on every pull request, in the merge queue and in the release plan. Their next publish moves the line from0.0.xto0.1.0. From then on a compatible change ships as a patch and only a breaking change moves the minor, so a caret requirement such asopenehr-rm = "0.1"takes every compatible release. A public dependency moved to another compatibility line counts as a breaking change (#5353). -
openehr-rmwrites the ECMAScript number form of the RFC 8785 canonical form aVERSIONsignature covers withryu-js1.0, which carries the upstream fix for a panic in its fixed-point formatter, and is held byte-equal toserde_json_canonicalizer0.4 as its test oracle in place ofserde_jcs, so the lock holds oneryu-jsline. Its output is unchanged (#5372). -
ferroehr.eu takes the FerroHEALTH family layout: the “Oxide & Iron” brand tokens light and dark, a hero badge rendered from the workspace version at build time, a content hash on the stylesheet link, linked capability cards, the conformance record, the viewer screenshot, deployment cards, the family and the four parts of the book, and a 404 page in the same style. The book groups its pages under Evaluate, Integrate, Operate and Contribute, keeping every page’s address, opens in the recoloured light and navy themes and gains a Changelog page. The README’s quick start is the anchored steps of
docker/smoke-test.sh, held byscripts/checks/readme-quickstart.sh(#5382). -
The quickstart
docker-compose.ymleach release attaches now carries its.sha256sum; the README and the book download it withcurl -fsSLOfrom the latest release and start it withdocker compose up --wait, and the README check refuses a host path the file would read from the repository beyond the backup directories (#5387). -
The viewer moves to
ferrohealth-session0.13.0, which types the OpenID Providerissuer,redirect_uriandpost_logout_redirect_uriof[oidc]as secret URLs, so a password written into one of them renders masked in the viewer’sconfig check, its refusals and its configuration page (#5394).
Removed
-
[authz.professional](claim,client_tokens,acting_for_claim) and its403for a token that names no natural person. The issuer’skindand profile classify the caller, and the access record’s acting mode and professional come from that classification: a person’s own token is the person, and a delegated token is the client acting for the person it names. Upgrade step: remove the table, which refuses the start, and list a client that acts for a person in its issuer’sdelegates(#5003). -
The named refusal of
authz.rbac.user_role, which v5.6 introduced, is gone under the one-release rule for removal aids: the key is now refused as an unknown key when the configuration loads (#5259).
Fixed
-
A
553|incomplete|commit no longer refuses an empty mandatory archetype slot: RM common master06 §Incomplete Content sets every occurrences lower limit to zero, a slot’s included, while too many fillers are still refused. The OPT 1.4 writer now closes a mandatory slot once the fillers placed in it carry its lower bound, as ADL 2 §Slot Filling and Redefinition allows, and still refuses to close one they leave unmet (#5042). -
The example of a party template whose identity the template marks optional is a party of its class carrying one identity at every detail level, where the
requiredlevel answered500: RM demographicPARTY.identitiesadmits no party without one. A party template that constrains no identity at all answers400 Bad Requestnaming its class (#5057). -
An AQL
VERSIONstandard predicate oncommit_audit/time_committedapplies its operator:VERSION v[commit_audit/time_committed/value > $t]returns every version committed after$t, where it returned the trunk version current at$twhatever the operator (QUERY 1.1.0 master03 §Standard predicate). A number, boolean orNULLliteral as the bound, a string bound no ISO 8601 form reads, and atime_committedpath other than the whole value or/valueare refused with400(#5062). -
AQL refuses a number, boolean or
nullparameter or literal compared with a date/time path, inWHEREand in aVERSIONpredicate, with the same400a non-ISO 8601 string gets; such a bound used to becomeNULLand match nothing (#5064). -
The served OpenAPI document now lists, on both template example operations, the
400answered for a party template that constrains noPARTY_IDENTITY(#5066). -
The compose quickstart, the hosted sandbox and the Helm chart run FerroPIX 0.0.18 (
ghcr.io/ferrohealth/ferropix:0.0.18@sha256:6fb622b5b9ade34c8a4053112c8f166ff495d8b32bf99f35529d01e512b7cc42), with the FerroPIX chart 0.3.10 built for it. The 0.0.16 they pinned had an outbox sender that never slept while its outbox was empty, so an idle install kept about 1.2 CPU cores busy between FerroPIX and its PostgreSQL at about 8,000 transactions a second (FerroHEALTH/FerroPIX#490). 0.0.18 also makes FerroPIX’s[auth] scopeless_subjectsandrole_claimshold per issuer, which changes nothing for a FerroPIX that trusts one issuer, as every configuration FerroEHR ships does. The chart moves to 21.0.5 (#5073). -
An OPT2 built from a template that specialises a published archetype now carries that archetype, by its full id, as
parent_archetype_id, as theOPERATIONAL_TEMPLATEinvariantis_specialisedrequires (AOM2 §3.6.6), so a reader of the OPT finds the archetype its root specialises. The ADL form of an OPT still prints nospecializesection (OPT2 §Artefact Structure), so the parent travels in the canonical JSON form (#5075). -
A
refused-key-claim-missingaccess record names the key claim the issuer’s binding reads (itsperson_key) inbinding_detail.claim, so an operator sees which claim the token lacked. It records the name only, never a claim value (#5139). -
A
403for a caller kind is recorded with its own binding code:refused-system-personal-scopefor a system caller holding auser/orpatient/scope,refused-no-agreementfor an external caller whose issuer has no agreement for its accessor kind, andrefused-scope-beyond-agreementfor an external caller holding a scope its agreement does not read. Audit migration0024widens thebindingconstraint; the problem text of each refusal is unchanged (#5140). -
openehr-sdtbuilds no/contextnode, and nostart_timeorsettingleaf, in the Web Template of an OPT 1.4 whose COMPOSITION prohibitscontext(existence0..0, or anEVENT_CONTEXTof occurrences0..0), and the template example of such a template carries nocontext. A template that leavescontextopen or optional keeps the node as before (#5147). -
openehr-sdtgives the/contextnode it synthesizes in a Web Template theminof the template’s existence onCOMPOSITION.context, and0where the template leavescontextunconstrained, since the RM makescontextoptional (0..1). A client following the Web Template no longer treats the context as mandatory when the template does not require it, and therequiredtemplate example of such a template carries nocontext(#5154). -
An ADL2 template that deletes an attribute (
existence matches {0}), for exampleCOMPOSITION.context, keeps the prohibition after it compiles to its operational template:openehr-adl’screate_optnow returns aRawOptthat names each removed attribute beside the OPT, andbuild_web_template_v2_4takes that list. A template that deletescontextgets no/contextnode, and a commit that carries one is refused, as it is for an OPT 1.4 template that prohibitscontext. An OPT2 uploaded already compiled carries no such list and reads a deleted attribute at its reference-model existence. Breaking for crate users:create_optreturnsRawOptandbuild_web_template_v2_4takes the prohibited attributes (#5154). -
A composition commit whose
template_idnames a stored ADL2 archetype rather than a template is refused with422as an unknown operational template; it failed at the insert with a server error before (#5177). -
openehr-rmtypesREFERENCE_RANGE.rangeasDV_INTERVAL<T>:ReferenceRangeis now generic over its limit type (ReferenceRange<DvQuantity>on aDV_QUANTITY,ReferenceRange<DvOrdered>on the other ordered types), itsis_in_rangeandRange_is_simplework at that type, and the static RM model givesREFERENCE_RANGE.rangeandIMPORTED_VERSION.itemtheir argument. Eachmodel::RmAttributeandmodel::RmTypeRefnow keeps the formal parameter it is written as (formal,Some("T")forDV_INTERVAL.lower) beside the resolved bound. The RM class table declaresREFERENCE_RANGE<T>and leavesTunused; the generator restores it from a cited table and refuses a schema that no longer matches (#5196) (#5188). -
An access record names the client the token’s issuer profile reads from
client_claims(azpunder theentraandkeycloakprofiles), the one the caller was admitted as. A token carrying a differentclient_idclaim beside it was recorded under that claim. The[origins]register and the SCIM client lookup read the same client (#5194). -
An
IntervalorDV_INTERVALread from canonical JSON or XML that omits a boundedness or inclusion flag now takes it from its bound. An absent bound reads as unbounded and not included, and a present bound as bounded and included. A flag the wire states is kept as written. Before, an omitted flag always read as bounded and included, so an interval with only anuppercame out with a bounded, included lower side that had no value. ITS-JSON requires all four flags, and BASE ties none of them to its bound, so reading the omission is our own design (#5203). -
The viewer’s New contribution commits as the signed-in login. Each audit carries the placeholder naming that login, and the server records the committer it derives from the login. The free-text committer field is gone. For a login bound to a demographic
PERSON, a stated name that differs from thePERSON’s name was refused with403(#5222). -
The management surface answers a caller the login binding refuses with
403and its binding code, such asrefused-unbound, as every other route does, in place of401: the credential authenticated, so new credentials cannot help (RFC 9110 §15.5.4). An absent or invalid credential still answers401with its challenge (#5250). -
The party binding posture in
ferroehr reportand the boot log masks the user name and password of an issuer URL, as every other rendering of the configuration does (#5259). -
GET /definition/query/{namespace}::lists every stored query in the namespace again, where it answered400since the typed stored-query name: ITS-REST 1.1.0definition_query_listreads its name as a pattern in which an empty part is a wildcard, so::{name}also lists the names that start with it in any namespace.openehr-itsgainsrest::stored_query::QueryNamePattern, the type the generatedDefinitionQueryListParamscarries. The store and the single-query reads still refuse an empty name or namespace (#5268). -
The identifier scan (
[privacy.identifier_scan]) reads thenameof theELEMENTthat holds aDV_IDENTIFIERwhen the identifier’stypeis absent or names neither a person nor an item, with the same word rules. An untyped laboratory order number in theReceiver order identifierorRequester order identifierelement oflaboratory_test_result.v1that passes the NHS Number check by chance is now stored under the default rule set. A person word still wins, so an untyped value in an element namedNHS numberorPatient identifierstays scanned, and atypethat names a kind takes precedence over the element name (#5291). -
The Helm chart’s description and README name
config.deployment.profile, the key the chart refuses to render without since 5.7.0, and the README’s install command sets it; the command it showed set the oldconfig.deployment_profileand did not render (chart 25.0.1) (#5341). -
A representative’s write is held to the EHDS Art. 5 rules exactly as the person’s. A representative may no longer alter an entry a health professional inserted or name a professional as
composer. A version committed asPARTY_RELATEDcounts as inserted by the person, so the person and the representative may change it, and the contribution list reportsinserted_by_person = truefor it (#5359). -
The hosted sandbox’s configuration (
deploy/hosted/ferroehr.sandbox.toml) declares its SCIM service provider under[auth.scim]and[[auth.scim.client]], the tables 5.7.0 reads, so the sandbox starts on 5.7.0. Every server configuration the repository ships beside the quickstart and the chart (the hosted sandbox’s and each compose overlay’s) and every viewer configuration (the hosted sandbox’s, the quickstart’s with each overlay, and the chart’s viewer Deployment) is now read by the program built from the change under test in CI, so a shipped file the release refuses fails its pull request (#5396).
Security
Shipped with functional changes because: the advisory reaches only a deployment that trusts several issuers, which no configuration FerroEHR ships does, and its fix changes what such a configuration must state at boot, so it lands on main beside the AQL version attestations already merged for this release; a security-only patch of the last release remains open to the release cut.
-
A Basic user never carries a
system/scope, throughferrohealth-smart0.9.1 (GHSA-jhg2-jwjp-hq74, CWE-269, CWE-863). Asystem/scope granted to a Basic user gave that person every resource of a type, a backend service’s reach. Such a user now refuses the start, naming the user and the scope. Upgrade step: give each Basic user theuser/scopes a person holds, and move each machine on Basic to a client of the authorization server under the client credentials grant (#5003). -
[auth] scopeless_subjectsandrole_claimshold per issuer, throughferrohealth-smart0.8.9 (GHSA-pfgx-xq28-2629, CWE-863, CWE-639). Before it, beside several[[auth.issuer]]tables both lists applied to every trusted issuer’s tokens: a token from any of them whosesubwas listed met every SMART on openEHR requirement without a scope, and any of them could assert every role the RBAC checks,ADMINincluded. An entry is now written<issuer>#<value>and holds for that issuer alone; beside several issuers a bare entry, or one naming an issuer the section does not trust, refuses the boot. Upgrade step for a deployment with several issuers: write eachscopeless_subjectsentry as<issuer>#<sub>, and write eachrole_claimspath as<issuer>#<path>for the issuers whose roles count (or setrole_claims = []to read none), since the defaultrole_claimsis bare and refused. A deployment with one issuer changes nothing (#5047). -
The
ferroehr-postgresimage carries zlib1g1:1.3.dfsg+really1.3.1-1+deb13u1from trixie-security, which fixes CVE-2026-76844 and CVE-2026-85091 (HIGH, heap overflows in zlib’s gzip writer) and CVE-2026-27171 (MEDIUM, an infinite loop incrc32_combine64). The image of 5.6.3 and earlier releases carries1:1.3.dfsg+really1.3.1-1+b1, judgedaffectedwith the upgrade as its action (security/vex/postgres-os.openvex.json). Theferroehrandferroehr-viewerimages keep the distroless base’s zlib, which neither program loads (security/vex/ferroehr-os.openvex.json) (#5137). -
The
ferroehrandferroehr-viewerimages move to thegcr.io/distroless/cc-debian13:nonrootbuild of 2026-11-08 (sha256:cc66d222…), whose zlib1g1:1.3.dfsg+really1.3.1-1+deb13u1fixes CVE-2026-76844 and CVE-2026-85091 (HIGH, heap overflows in zlib’s gzip writer) and CVE-2026-27171 (MEDIUM, an infinite loop incrc32_combine64). Neither program loads zlib. The images of 5.6.3 and earlier releases carry1:1.3.dfsg+really1.3.1-1+b1, judgedaffectedwith the upgrade as its action, as theferroehr-postgresimage of those releases is (security/vex/ferroehr-os.openvex.json) (#5152, #5329). -
CVE-2026-112321, CVE-2026-112322 and CVE-2026-112323 (memory and CPU exhaustion in
kadmindthrough the AUTH_GSSAPI handler) and CVE-2026-119079 (CPU exhaustion in the KDC decoding an AS-REQ or TGS-REQ) in MIT Kerberos 5 have no Debian fix for trixie and are judgednot_affectedinferroehr-postgres. The image carries neitherkadmind, a KDC norlibgssrpc, and the PostgreSQL server never decodes either request; the configuration FerroEHR ships enables no GSS-API authentication (security/vex/postgres-os.openvex.json) (#5344). -
Thirteen MIT Kerberos 5 CVEs of MITKRB5-SA-2026-001 in the
ferroehr-postgresimage’slibgssapi-krb5-2,libk5crypto3,libkrb5-3andlibkrb5support01.21.3-5+deb13u1have no Debian fix for trixie and are judgednot_affected. The image keeps the four libraries because thepostgresbinary linkslibgssapi_krb5.so.2. Eleven sit in code the image does not carry: the KDC (CVE-2026-107364), its PKINIT plugin (CVE-2026-71200),kadmind(CVE-2026-107884, CVE-2026-112318),libgssrpc(CVE-2026-112314, CVE-2026-112315, CVE-2026-112320, CVE-2026-118380), the kadm5 libraries (CVE-2026-112316, CVE-2026-112319) andlibkdb5(CVE-2026-112317). The PAC checksum flaw (CVE-2026-111423) and the CAMMAC checksum flaw (CVE-2026-71199) sit inlibkrb5, which the server reaches only when it accepts a Kerberos ticket. The configuration FerroEHR ships has nogssorhostgssencline inpg_hba.confand no server keytab, and the server never reads a PAC or an authentication indicator (security/vex/postgres-os.openvex.json) (#5374). -
The five OpenSSL 3.5.7 CVEs of the OpenSSL advisory of 2026-11-10 have no Debian fix for trixie and are judged
not_affectedin the three images: the AES-GCM-SIV flaws CVE-2026-88823 and CVE-2026-95692, the QUIC flaws CVE-2026-88822 and CVE-2026-95691, and theCMS_encrypt()loop CVE-2026-107496. Theferroehrandferroehr-viewerprograms never maplibssl.so.3orlibcrypto.so.3: each links onlylibc,libmandlibgcc_s, imports nodlopen, and speaks TLS through rustls (security/vex/ferroehr-os.openvex.json). The PostgreSQL server maps both for TLS over TCP, which never selects AES-GCM-SIV (no TLS cipher suite is one), never opens a QUIC connection and never writes CMS, and the image never runs theopensslprogram or loads the legacy provider (security/vex/postgres-os.openvex.json) (#5393).
5.7.0-rc3 - 2026-11-11
5.7.0-rc3 is the third release candidate of 5.7.0, published for testing. It carries every change since 5.6.3, those of the 5.7.0-rc2 and 5.7.0-rc1 sections below included. 5.6.3 stays the stable release: this pre-release moves neither the latest image tags, the book under /docs/latest/ nor the hosted sandbox, it publishes no crates, and it receives no fixes; the next release candidate or 5.7.0 itself replaces it. Since 5.7.0-rc2, FerroEHR runs on the newest FerroHEALTH family releases (ferrohealth-smart 0.18.0, ferrohealth-session 0.12.0, ferrohealth-authz 0.11.0, ihe-atna and ehds-logging 0.12.0, ihe-iti 0.4.0, ferrobridge-term 0.5.0), every outbound client is built from the family endpoint table, and the configuration is redacted by its secret types alone, so every URL and issuer renders with its credentials masked. The quickstart, the hosted sandbox and the chart move to FerroPIX 0.0.26 and FerroTERM 0.4.5. The audit record takes the purpose of use and the professional role from an IHE IUA token and records a contact point’s request message id; audit migration 0026 adds their columns. The openehr-* crates are judged by Cargo SemVer, and their next publish moves the line to 0.1.0. Before you try it, run ferroehr config check on your file: it names every key a release before 5.7.0 read with its replacement, all at once. The steps for party binding are on the book’s bootstrap and migration page. Helm chart 25.0.1-rc4 carries appVersion 5.7.0-rc3. Security carries the two advisories of 5.7.0-rc2, GHSA-jhg2-jwjp-hq74 and GHSA-pfgx-xq28-2629, the zlib fixes in the three images, and the not_affected judgements of the MIT Kerberos CVEs in the PostgreSQL image, the thirteen of MITKRB5-SA-2026-001 among them, and of the five OpenSSL 3.5.7 CVEs of 2026-11-10 in the three images.
Added
-
AQL reads the attestations of a version:
v/attestationsand anyATTESTATIONattribute below it (is_pending,reason,proof,items,committer,time_committed) underFROM EHR e CONTAINS VERSION v CONTAINS COMPOSITION c, with predicates onattestationsandEXISTS, andv/commit_audit/is_pendingandv/commit_audit/reasonon a commit audit that is anATTESTATION.SELECT v/attestationsreturns the list, and a comparison belowattestationsholds when any attestation matches. The FerroEHR extension functionLAST(v/attestations/<path>)reads the most recent attestation, soWHERE LAST(v/attestations/is_pending) = truelists the versions awaiting signature, including one marked pending again after it was signed (#4989). -
The party binding’s configuration, each table with its boot refusals:
[authz.party_binding](provideras one table or one table per tenant,namespace,basic_user),[authz.import] trusted_systems,[[authz.system_client]](the provider, facilities, templates and origins of each client-credentials client that commits) and[[authz.federation.agreement]](what a federation issuer’s external persons or organisation may do, on which legal ground), with[authz.rbac] role_issuersandimport_role. A template an agreement or a system client writes that the store does not hold refuses the start. The boot line andGET /management/infolist the issuers with their kind and identifier issuer, the provider, and every agreement with its accessor and legal ground, and an agreement that admits an organisation without a named person is logged atwarn(#5003). -
[auth.idp.entra], the Microsoft Graph access of theidp-entraadapter offerrohealth-smart, which resolves the groups of an Entra ID groups overage for an issuer whose profile setsadapter = "idp-entra"(#5003). -
[auth.dpop]and[[auth.issuer]] sender_constraint: tokens bound to a DPoP key (RFC 9449) or a mutual-TLS client certificate (RFC 8705), checked on every request. A DPoP proof is recorded by the replica that accepted it, so the Helm chart refuses a sender-constrained issuer on more than one replica (#5003). -
The login binding reads the local party source on every request, with no cache: the new party migration
0027_binding_side_tableadds the indexedbinding_identifier,binding_membershipandbinding_representationrelations, written in each party commit’s transaction from thePERSONs of the mapped templates that perform a professionalROLEor represent another person, theirGROUPmemberships and their representation relationships, and rebuilt from the party versions alone. A login matching two parties, aninactive,abandonedor deleted party, a token without the key claim, a party without the needed marker and unreadable groups are refused with403and their binding code; a party store or identity provider that cannot answer is answered503(#5004). -
ferroehr definitions load <path>...stores OPT 1.4 (.opt) and ADL 2 (.adls) definitions beforeserve, through the validation and versioning of the REST upload. A file already stored with the same text is left alone and other text under a stored id is refused, so a deployment runs it at every start to give its party mapping the templates it needs at boot.deploy/definitions/professional/holds a professional PERSON and ROLE pair adapted from openEHR CKM archetypes for the development lanes and the quickstart (#5006). -
The compose quickstart binds its user to a professional
PERSON: theferroehr-definitionsone-shot loads the PERSON and ROLE templates the party mapping names before the server starts, andferroehr-provisioncreates the user through/scim/v2/Userswith a token of the development issuer, then reports healthy, sodocker compose up --waitreturns once the login is bound. The Helm chart (23.3.0) takesdefinitions.files, which an init container stores withferroehr definitions loadbefore the server container starts. The conformance, browser and Kubernetes lanes load the same templates and provision every login they use through SCIM, with the committed test client ofdocs/conformance/party/scim/(#5006). -
ferroehr party-binding adopt <PARTY_ID>...gives each preparedPERSONof an existing deployment a professionalROLEof the mapping’s role template, with thePERSONasperformer, and a newPERSONversion listing it inroles, all in one demographic CONTRIBUTION committed by the first administrator named with--adminor--admin-key, and writes one access record per adoptedPERSONthrough the configured audit trail. It refuses the whole adoption, naming them, while any listedPERSON’s key was introduced by a committer that is no[[scim.client]], named administrator or--migration, so a key planted before the upgrade is never adopted. APERSONthat already performs theROLEis reported and left alone. The report is JSON on stdout (#5009). -
ferroehr party-binding checkis the read-only pre-flight of a migration to party binding, and the one report of the provisional persons just-in-time creation left incomplete. It reads the party versions alone, so it runs before any boot fill, and writes nothing. Per key issuer it reports thePERSONs that carry a binding key, every selector value twoPERSONs carry, the inactive and abandoned ones, the provisional ones older thanprovisional_report_days, the key-bearing ones that perform no professionalROLE, and every mapped Basic user with thePERSONit binds. For each key it names the committer of the version that introduced it, and fails unless that committer is a[[scim.client]], an administrator named with--adminor--admin-key, a migration declared with--migration, or just-in-time creation on an issuer withjit = true.--expected <file>lists every login of the identity provider with noPERSON. The report is JSON on stdout, and the command exits non-zero on a duplicate, a missing person or a key that fails the provenance rule (#5009). -
At boot, FerroEHR logs a
warnnaming every Basic user mapped in[[authz.party_binding.basic_user]]while[authz.assurance] minimumis unset: a Basic credential carries no assurance level, so such a person is never refused on patient data (#5009). -
The book has a “Who is the committer” page under Security. It covers the committer the server writes for each kind of caller, the placeholder a client may still send, the refusals with their status codes, and the deviation from the ITS-REST merge rule. It also shows how a professional’s
PERSONgets its login identifier. Enterprise identity providers now opens with the generic standards path and adds theentrapreset’s binding and provisioning settings, an Okta example, a Keycloak realm walk-through and a SAML section. The records of processing and the DPIA gain the workforce-identity activity, the federation node page gains its callers and agreements, and the go-live checklist checks the binding and the caller rates (#5010). -
The access record of a MyHealth@EU contact point’s request carries the request message’s UUID, the WS-Addressing
MessageIDits token relays asehdsi.message_id, as the record’srequest-message-id. The record then joins the contact point’s Patient Privacy audit entry (eHDSI Audit Trail Profile 10.1.0 §2.3.12 to §2.3.32) (#5011). -
The one
PERSONmapping SCIM provisioning, just-in-time creation and the login binding share:[[authz.party_binding.person.template]]with the binding key,userNameandexternalIdselectors of each template,[[authz.party_binding.person.attribute]]with the SCIM attribute, the OpenID Connect claim and the path of each mapped value, and[authz.party_binding.professional_role],[authz.party_binding.group],[authz.party_binding.membership]and[authz.party_binding.representation]. Boot refuses a mapping that breaks one of its rules, naming the key, including a template that is absent, rooted at another class or lacks a mapped path, and deleting a template the mapping names is refused with409(#5013). -
The new party migration
0028_binding_selectorsholds each binding key,userName(compared after RFC 8265 width mapping, lower case and NFC),externalIdand groupdisplayNameto one live party, so a commit giving one a second party is refused with409. The first boot fills the side table under the mapping’s digest, a replica with another mapping refuses to start, andferroehr party-binding refillrebuilds it after a mapping change, refusing while a replica runs and naming the parties when a value is carried twice (#5013). -
POST /admin/party/binding-keyre-keys aPERSON’s binding key: it refuses the administrator’s own login and a key already bound, retires the old key in the same commit and writes one access record carrying both (#5013). -
[scim]mounts the SCIM 2.0 service provider at/scim/v2/(off by default):[[scim.client]]declares each provisioning client byissuer,client_id,scopeandbinding_issuer, andpublic_base_urlnames the origin its documents hang off./scim/v2/ServiceProviderConfiganswers without a token;/ResourceTypesand/Schemasanswer a declared client acting for nobody that holds its scope, within[server.caller_rate]. Every refusal is an RFC 7644Errormessage. The start is refused for a client of a non-machinesissuer, one declared twice, two clients sharing abinding_issuer, or abinding_issuerno[[auth.party]]table carries (#5014). -
The SCIM endpoint answers the Microsoft Entra ID provisioning client as Microsoft’s “Develop a SCIM endpoint” guide documents it: a value-filtered attribute such as
emails[type eq "work"].valueserves itstypeand declaresprimaryread-only, so theprimaryEntra sends is ignored (RFC 7644 §3.3); aPATCHofuserNamerenames the User; and the Test Connection probes are answered with an emptyListResponseand404.ferroehr config checkrefuses a[scim]the person mapping cannot serve, asservedoes. The Helm chart exposesconfig.scimand routes/scim/v2on every Ingress host when it is enabled, and the book walks an operator through provisioning from Entra ID, with the Workload Identity Federation checks the authorization server makes (#5014). -
/scim/v2/Users/{id}takesPUT,PATCHandDELETE: a write commits the next version of the professional’sPERSON, clearing a mapped attribute aPUTleaves out, keeping the binding key andexternalId, and moving the lifecycle state byactive(completeorincompletetoinactiveorabandonedand back, anabandonedUser completed in two versions, an attribute change to an inactive User refused until it is reactivated).DELETElogically deletes thePERSONand its professionalROLEin one CONTRIBUTION and leaves the binding key as a tombstone. AnIf-Matchnaming another version is412, andServiceProviderConfigdeclares PATCH.[scim] max_deactivationsanddeactivation_window_minutesbound the deactivations and deletions of one client, counted in the database so replicas share the bound, with429past it (#5014). -
/scim/v2/Usersserves a client’s Users:POSTcreates the professional’sPERSONand its professionalROLEin one demographic CONTRIBUTION,completewhen the template holds in full andincompleteotherwise,GET /Users/{id}answers with the version’s entity tag and304to a matchingIf-None-Match, andGET /Usersanswers aListResponsefiltered byeqandandoveruserName,externalIdandid, with any other filter400invalidFilter. A client sees only the Users whose binding key itsbinding_issuerissues, every SCIM request is an access record of the client naming thePERSON, andServiceProviderConfigdeclares entity tags. The start is refused when[scim]is on and the party mapping has no default person template with auser_nameselector or no professional role (#5014). -
/scim/v2/Groupsserves SCIM Groups as demographicGROUPs of[authz.party_binding.group], each member holding an inlinePARTY_RELATIONSHIPof[authz.party_binding.membership]from itsPERSONto theGROUP, with noROLEminted: create, read,eq/andfilters ondisplayName,externalIdandid,excludedAttributes=members,PATCH(answered204),PUTandDELETE, with the entity tags of Users. A Group belongs to the client that created it, its members are that client’s Users, itsdisplayNameis unique, and itsexternalIdsits under the client’sgroup_identifier_issuer. Aremoveofmemberswith avaluelist removes only those members, an Entra compatibility deviation from RFC 7644 §3.5.2.2. Deleting a User removes its memberships in the same CONTRIBUTION.[scim] max_group_members(default 5000) caps a Group (#5015). -
Just-in-time creation of a provisional
PERSONat a first login, off by default and enabled perpersonsissuer in a new[[authz.party_binding.issuer]]table (jit,guests_jit,user_name_claim,idp_claim,admit_idp,admit_groups,admit_roles,admit_assurance). A login of a person or a delegated caller that matches no party and meets every declared admission condition commits one553|incomplete|PERSONholding the binding key, theuserNameand the name claims of the access token, with its professionalROLE, as a creation by the person, and is served bound to it; any other mapped attribute is written only where its mapping setsjit = true, andexternalIdnever. Concurrent first requests commit onePERSON, a deprovisioned or inactive login is never recreated, a takenuserNamerefuses the login, and a SCIM client of the key’s issuer completes thePERSON. Boot refusesjitwithout an admission condition or a mapping that can write it.ferroehr party-binding checklists the provisional persons older than[authz.party_binding] provisional_report_days(default 30) (#5016). -
A party of a mapped template is validated against that template on every demographic write: a
PERSONorGROUPwhosearchetype_details.template_idnames a template of the shared party mapping, and aPARTY_RELATIONSHIPof its membership archetype. A532|complete|version must meet every constraint, and a553|incomplete|one may miss mandatory nodes but nothing it carries may be wrong (RM common master06 §Incomplete Content); the refusal is a422naming each failing path. Every other party keeps the reference-model checks alone, so parties created through the Demographic API under other templates are accepted as before (#5042). -
The FHIR
AuditEvent, the DICOM audit message and the ITI-20 syslog feed carry the binding fields of the access record: the binding outcome, the party and its groups, the provider acted for, the facilities of a system commit, the representation with its relationship, the actor chain, the external accessor’s asserted fields and the agreement with its legal ground, consent and access class, and achainedrequest’s correlation id.ehds-logging0.5.1 writes them as theehds-accessorandehds-relayedentities, in the DICOM message as participant objects of type Other. The FHIR record also writes theexternalandsystemacting modes. FerroEHR moves toehds-loggingandihe-atna0.5.1 andihe-iti0.0.77 (#5043). -
A bound representative reaches only the EHR whose
EHR_STATUSnames the subject it represents. Every composition,EHR_STATUS, directory, contribution and query request is held to that EHR whatever the token’s scopes cover, and a query must name it withehr_id. A representative whose token names a subject its party has no live representation relationship to, or whose issuer no[[auth.party]]table binds, is refused with403andrefused-representation-unrecorded(#5086). -
The Helm chart (23.1.0) accepts
bridge.cdr.oauth.tokenEndpointfor an authorization server whose metadata FerroBRIDGE cannot read atbridge.cdr.oauth.issuer. FerroBRIDGE then requests its client credentials token from that endpoint, andissuerstill names themachinesissuer the CDR trusts (#5093). -
A MyHealth@EU contact point’s caller (a
contact_point = truefederationissuer) reaches patient data only for the patient of its treatment relationship confirmation. The token’sehdsi.patient.id(system|value) is resolved to its EHR through the EHR index, and every patient-data request must name that EHR. A token without it is refused with403andERROR_SEC_DATA_INTEGRITY_NOT_ENSURED, recorded asrefused-trc-missing. Another patient’s EHR, an unknown EHR and a request naming no EHR all answer one404of the new problem typetrc-patient-mismatch, carrying the agreement service’s*_NOT_FOUNDcode and recorded as arefused-trc-patient-mismatchsecurity event (eHDSI XCA Profile 8.0.1 §4.2.1, §4.2.2). A contact point’s person agreement now names itsehdsi_service; upgrade step: set it, and list the issuer in[smart] patient_issuers(#5102). -
An external person under an agreement with
discarddiscards a dispensation of a listed template, as a logical delete, withindiscard_window_hoursand from the same point of care: the dispensation’shealth_care_facilitycarries the token’s provider identifier and its eHDSIorganization-id. A token carrying permissions records and discards a dispensation only withPPD-046(eHDSI SAML Profile 10.0.0 §2.5) (#5102). -
A read under a federation agreement with a
consentcondition is served when the token carries the consent decision reference for its patient (Wabvpz Art. 1(j) and Art. 15a(1)), in the claim orauthorization_detailsmember the issuer’s[[auth.federation]]table maps toconsent.reference, and refused with403without it. The reference is one string, the token’spatient/grant holds it to the launch-context patient, and the access record carries it with the other external fields.ferrohealth-smartmoves to 0.9.3, which reads the field (#5106). -
Every access record of an authenticated request carries the outcome of the party binding (
binding:bound,provisional,external,organisation,system,selfor arefused-*code) with the fields it needs: the bound party, its groups, the provider, the guest mark, a representative’s representation, a delegated token’s actor chain, a verified external accessor’s fields and agreement, and the facilities a system caller’s compositions named.acting_modegainsdelegated,externalandsystem. The audit migration0023_binding_outcome.sqladds the columns and restores a per-row digest version: records written before stay version 1 and keep verifying, new records are version 2, and a version-1 record after a version-2 one is refused (#5118). -
Every refused request is an access record through the gated path, and a refusal of the login binding or of a caller kind carries its
refused-*binding code and the party it names. Refusals of tokens that failed verification are budgeted by source network and those of verified callers by issuer and subject, so neither crowds out the other; past a caller’s limit its refusals become one summary record with the count and the EHR ids they named, and past a budget one summary record per issuer and outcome is written. Security-event refusals are recorded for every answered request, and a refusal record the system log cannot take is counted inatna_audit_refusals_unwritten. The limits, windows and budgets are kept per replica (#5119). -
A
chainedorganisation request under a federation agreement is served only when its token carries the requester’s correlation id in the claim or attestedauthorization_detailsmember the issuer’s[[auth.federation]]table maps tocorrelation_id. Without it the request is refused with403and recorded under the binding coderefused-correlation-missing(audit migration0025); a request header never stands in for it. Theorganisationaccess record’sagreementcarries the id and its source beside the legal ground and the access class. A chained agreement whose issuer maps nocorrelation_id, or maps it from a constant, refuses the start (#5120). -
On the MyHealth@EU contact-point route, the committer of an external person names the professional by the HP Identity Assertion’s
NameID:DV_IDENTIFIER{issuer = the assertion's issuer, id = the NameID, type = "hp_identifier:<NameID format>"}, beside the voucher’soauth2identifier (eHDSI SAML Profile 10.0.0 §2.1), and a dispensation’s discard is a logical delete under the same committer. A contact point’s COMPOSITION must carry the HCPO’sorganization-idinEVENT_CONTEXT.health_care_facility.identifiers, under the issuerurn:oasis:names:tc:xspa:1.0:subject:organization-id, beside the provider’s identifier, or it is refused with422.ferrohealth-smartmoves to 0.9.4, which readsehdsi.assertion.name_id_formatand refuses a contact-point token without one of the three formats asERROR_HPI_INSUFFICIENT_INFORMATION; upgrade step: a contact point’s authorization server writes the NameID format into its tokens (#5144). -
A federation caller above its agreement’s
caller_rate, a MyHealth@EU contact point’s included, is answered429withRetry-Afterright after authentication and before any patient lookup, keyed on the token’s subject per replica, and every such refusal is counted into the caller’s summary record (#5149). -
A deleted SCIM User’s contacts are erased from every version of its
PERSON, keeping the name, the binding key and the identifiers for the record-keeping duties that need them.[scim] contact_erasure_minutes(default0, at most 43200) sets when:0erases them in theDELETEitself, a period leaves them to a sweep that runs every minute. Each erased version’s node rows are derived again from the new body, its server signature is removed, and the erasure is an access record namingparty:<id>#contacts. Party migration 0030 adds thescim_contact_erasuretable (#5178). -
openehr-rmtypes generic RM type names and paths:typing::RmTypeparses and prints names such asDV_INTERVAL<DV_QUANTITY>,typing::attribute_typegives an attribute of an instantiated class with the actual argument in place of the formal parameter, andtyping::path_typetypes every step of anRmPathwith its container. Eachmodel::RmAttributeandmodel::RmTypeRefkeeps the formal parameter it is written as (formal) beside the resolved bound.paths::write::item_at_path_mutandpaths::write::set_at_pathwrite at a path into a canonical instance, positional predicates included, creating the members the path names and changing nothing when a write is refused (#5187). -
openehr-sdt:flat::navigate::Navigatorgives every instance of a Web Template path in a composition, with each step’s occurrence, container index, positional path and JSON pointer, reaching a renamed instance where the template’s name is redundant and an OPT2 archetype root through the complete identifier the template recorded.flat::navigate::relativecompares two paths step by step.flat::attribute_keysgives the FLAT key of an RM attribute of a structural class (themaster05-rm_mapping.adoctables, checked against them). AWebTemplateNodecarriesfacts(the embedded template id of an OPT 1.4 archetype root and the terms its archetype defines) and every coded option itsterminology, so no consumer walks the operational template (#5189). -
openehr-basegives identifier and time parts as written:ObjectVersionId::object_id_strandObjectVersionId::versioned_object_idkeep the case of theobject_idpart,Iso8601Time::fraction_digitsandIso8601DateTime::fraction_digitsreturn the digits of the fractional second as text, andIso8601Duration::partsreturns each component’s designator and number verbatim (DurationDesignator,DurationPart), withIso8601Duration::fraction_digitsfor the seconds (#5190). -
openehr-itsreads the ITS-RESTETagas a typed entity tag:rest::etag::EntityTagparses and writes the RFC 9110 form, weak or strong, with the weak and strong comparisons. It types the tag as anObjectVersionIdor aHierObjectId. Every generated response-headers struct that carries anETaggainsentity_tag()beside the rawetagfield (#5191). -
openehr-termnames thenull_flavoursandsettinggroups:codes::NullFlavourandcodes::Settinggive each concept’s code and English rubric and read a code back, held equal to the bundled terminology by tests. Every typed group’sALLis now a slice (#5192). -
openehr-am:HridRefreads an archetype reference with the version precision it was written at (VersionPrecision: major, minor or full, BASE Artefact Identification §Referencing), gives the version as written and matches anArchetypeHridby the specification’s rule, the namespace never a wildcard.ArchetypeHrid::local_semantic_idgives the namespace-free interface form a Web TemplatenodeIdcarries, which thev2_4Web Template builder now uses (#5193). -
openehr-its:rest::stored_querytypes a stored query’s qualified name (QualifiedQueryName,[{namespace}::]{query-name}, withcheck_registrablerefusing the reservedaql), its version (QueryVersion,major.minor.patchin numeric order) and the version pattern a request addresses (VersionPattern, exact,{major}or{major}.{minor}, selecting the highest match), per ITS-REST 1.1.0. The generated stored-query operations and theStoredQueryandRESULT_SETdocuments carry them, so a name or version outside the grammar is a400where the request is decoded (#5207). -
openehr_rm::Generation::earliest_for_compositionanswers the oldest RM generation whose canonical-JSON decode accepts a composition, so a builder can nameARCHETYPED.rm_versionwithout naming a generation module; a value no generation decodes is a typedNoGenerationDecodeserror carrying every generation’s refusal (#5242). -
The access record takes the purposes of use and the professional roles from the access token. An issuer with an
[[auth.attributes]]table states them through the IHE IUApurpose_of_useandsubject_roleclaims (IHE ITI TF-2 §3.71.4.2.2.1.1) or thepurpose_of_useof RFC 9396authorization_details. The newtoken_attributescolumn of the audit store holds them, a new record is chain digest version 3, and the EHDS access record and the BALPAuditEventwrite them with their code systems. A request whose[audit] purpose_headernames a purpose the token does not state is refused with403, and the refusal is recorded. The header alone keeps working for an issuer without the table (#5323).
Changed
-
The published server, viewer and PostgreSQL images take their
org.opencontainers.image.base.nameandbase.digestlabels and annotations from the runtime stage’s digest-pinnedFROMline at build time, so a base-image bump changes that one line. An image built directly from a Dockerfile no longer carries these two labels (#4953). -
[auth]takes theferrohealth-smart0.9 shape. Every trusted issuer is an[[auth.issuer]]table with a requiredkind(persons,patients,machinesorfederation) and aprofile(rfc9068by default, orentra,keycloak,okta,nl), and holds every setting of its tokens itself. A configuration in the old shape refuses the start, naming what replaces it. Upgrade steps: write a flatissuer = "…"as an[[auth.issuer]]table; moveaudience,algorithms,clock_skew_seconds,jwks_max_age_seconds,jwks_refresh_interval_seconds,jwks_file,timeout_ms,mode,role_claimsand[auth.introspection]onto each issuer table ([auth.issuer.introspection]); give each issuer itskind, with patients and professionals at separate issuers (a realm or tenant each), since one issuer is one kind; replacetoken_profile = "jwt"withtoken_types = ["JWT"]and therequired_claimsthe issuer’s tokens carry, and droptoken_profile = "rfc9068"; and write eachscopeless_subjectsentry as{ issuer = "…", sub = "…" }(#5003). -
A
personstoken is admitted only through a client its issuer lists infirst_party_clientsordelegates. Upgrade step: list the deployment’s own clients, the viewer’s among them, infirst_party_clients, and a third-party client that acts for a person indelegates. The other 0.9 profile keys (person_key,tenant_claim,client_claims,app_only,guest,impersonation_marker,expect,user_claims,person_equality,unstable_claims,max_actor_chain,representation,scope_claim,app_only_scope_claim,adapter,sender_constraintand theonward_*keys) are documented in the configuration reference (#5003). -
An array of tables, such as
[[auth.issuer]], is set from the environment by element index (FERROEHR__AUTH__ISSUER__0__ISSUER), throughferrohealth-config0.2.10 (#5003). -
[smart] issuer_metadata_fileis the metadata of the[auth]issuer it names, wherever that issuer stands in the list, and a file naming no[auth]issuer refuses the start. The SMART discovery document describes the first introspected issuer, else that named issuer, else the first issuer whose metadata is read from it, else the first issuer, so a Basic users’ issuer listed first no longer takes the discovery document (#5003). -
The family crates move together:
ferrohealth-smart0.9.1,ferrohealth-authz0.3.0,ferrohealth-session0.3.1,ihe-atnaandehds-logging0.4.0,ihe-iti0.0.76,ferrohealth-config0.2.10,ferrohealth-server0.5.1 andferrohealth-ui0.6.9.ihe-atnaandehds-loggingnow escape every control and bidirectional formatting character of a value they write as its code point. Withferrohealth-ui0.6.9 the viewer’s session watch no longer throws when the party relationship form, which holds a control namedtarget, is submitted (#5003). -
The terminology client moves to
ferrobridge-term0.1.143 (FerroBRIDGE v0.0.22), which takes theferrohealth-smart0.9 token source (#5003). -
Every person is bound to a demographic party, with no switch. A
personsissuer needs its[[auth.party]]table, two issuers of one node may not share an audience, and[authz.party_binding] provider(the healthcare provider the deployment acts for, EHDS Art. 13(4) and Annex II 3.2(a)) is required once[auth]admits a credential; each refuses the start naming what to set. A Basic user is a person: it maps to the binding key of itsPERSONin[[authz.party_binding.basic_user]](user,key_issuer,key), and a Basic user without a mapping refuses the start, naming the user. Upgrade steps: add an[[auth.party]]table to eachpersonsissuer, setprovider, and map each Basic user under theidentifier_issuerof an[[auth.party]]table, which needs apersonsissuer; a deployment of Basic users alone declares one whosejwks_fileis a key set that signs nothing, as the quickstart and the sandbox do (#5003). -
A token grants
[authz.rbac] admin_role,emergency_access_role,import_roleandidentifier_reader_roleonly when its issuer is listed in the new[authz.rbac] role_issuers, each apersonsissuer; any other kind refuses the start. Upgrade step: list the issuers whose role claims grant these roles; a Basic user keeps the roles its own table grants (#5003). -
The compose quickstart, the dev and conformance stacks, the hosted sandbox and the Helm chart’s Basic overlays bind their Basic users under a
personsissuer that signs nothing: its key set, which every FerroEHR image carries at/opt/sandbox-posture/basic-users-jwks.json, is the public half of a key pair whose private key was discarded (#5003). -
The quickstart has one copy.
docker-compose.ymlonmainpulls the FerroEHR images at:mainand carriesmain’s configuration, which CI checks with the server image the change builds; the copy attached to each release pulls that release’s images, written by the release lane, which refuses a copy that still names:main. Download the release asset (releases/latest/download/docker-compose.yml) to run a release (#5003). -
The Helm chart moves to 22.0.0.
config.auth.issueris a list of issuer tables, each with itskind,profileandaudience, andvalues.yamlexposesconfig.auth.party,config.authz.party_binding,config.authz.rbac.role_issuers,config.authz.system_clientandconfig.authz.federation.agreement. The chart refuses an issuer withsender_constraint: requiredbesidereplicaCountabove 1 or autoscaling. Upgrade steps: rewriteconfig.authas the[auth]upgrade above describes, setconfig.authz.party_binding.provider, and list the issuers whose roles grant the administrator role inconfig.authz.rbac.role_issuers(#5003). -
A caller bound to a demographic
PERSONcommits under the committer the server writes: aPARTY_IDENTIFIEDwith thePERSON’s name, the login identifier (the issuer profile’sperson_keyvalue under the token issuer, typeoauth2, or the Basic user underferroehr, typebasic), the provider identifier (typehealthcare-provider) and anexternal_refto thePERSON, on every commit path, attestations and CONTRIBUTIONs included. Upgrade: stop sending a committer, or send the placeholder{"_type": "PARTY_IDENTIFIED", "identifiers": [{"_type": "DV_IDENTIFIER", "issuer": "<iss>", "id": "<sub>"}]}, which must name the authenticated caller; a stated committer with another name, identifier orexternal_ref, and a statedPARTY_RELATED, is refused with403(#5005). -
A patient’s committer is
PARTY_SELFwith noexternal_ref, and a representative commits as aPARTY_RELATEDnaming their ownPERSONand the coded relationship. A patient-context token commits no demographic version. Upgrade: read the person’s own entries by the committer’sPARTY_SELFtype, not by its formerexternal_ref(#5005). -
Importing an EHR Extract needs the role
[authz.rbac] import_rolenames, or asystem/caller, and a wrapped committer naming a party or a login of this deployment is refused unless its version was created by a system[authz.import] trusted_systemslists. Upgrade: setimport_roleand give it to the accounts that import (#5005). -
A person of a
personsissuer whose login no demographic party carries is refused with403andrefused-unboundon every request, with no fallback to a login-only committer. The problem names the identifier issuer to provision the person under, a token without the key claim is refused with a problem naming that claim, and each refusal counts into the newbinding_refusalsmetric by issuer and outcome. The Keycloak quickstart overlay provisions its four demo users through SCIM with theferroehr-provision-keycloakone-shot. Upgrade: provision every professional (through SCIM or the demographic API) before you add apersonsissuer to the upgraded deployment (#5006). -
A deployment whose FerroBRIDGE facade or FerroFED gateway writes to FerroEHR adds its
personsissuers only after the bridge and the gateway reach it under the caller: FerroBRIDGE v0.0.23 and FerroFED v0.0.17. Until then the committer rule refuses their writes. FerroFED v0.0.17 follows this release, so a deployment with a FerroFED gateway adds itspersonsissuers only once that release is out. The book’s new “Party binding: bootstrap and migration” page carries the bootstrap path, the four migration steps and these prerequisites, and “Breaking changes of party binding” lists every incompatible change with its upgrade step (#5009). -
The hosted sandbox follows the bootstrap path of party binding: its configuration declares the
sandbox-scimclient ([[scim.client]], with the development issuer trusted as amachinesissuer for it), the box’s newferroehr-provisionservice provisions the demoPERSONthrough/scim/v2/after every reset, andscripts/sandbox/reseed.shwaits for the demo login to bind before it seeds, then checks the committer of the marker’sEHR_STATUSversion references aPERSON. The deploy probe’s newbootstrapfamily (P-BOOTSTRAP-01) shows the compose quickstart does the same from an empty database: the quickstart user is a User of the SCIM client, and a commit of the Basic user names thatPERSON(#5009). -
With a party mapping configured, the parties the login binding relies on are written through the demographic API by an administrator (
authz.rbac.admin_role) only: aPERSONof a mapped template carrying a binding key,userNameorexternalId, its professionalROLE, a representation relationship, and aGROUPof the group template. Any other caller’s write is refused with403, a version that changes a present binding key is refused with403, and an administrator’s version that leaves a protected identifier out is refused with422. Upgrade: write these parties as an administrator, and change a key throughPOST /admin/party/binding-key(#5013). -
FerroEHR records every DPoP proof it accepts in its PostgreSQL database until the proof’s window ends, so a proof is accepted once across all replicas, and a proof replayed to another replica is refused there (RFC 9449 §11.1). If the database cannot record a proof, the request is refused with
503. The Helm chart (22.1.0) no longer refuses an issuer withsender_constraint: requiredbesidereplicaCountabove 1 or autoscaling (#5072). -
An AQL query scoped to one EHR now takes the streaming plan shape whatever its
ORDER BY,DISTINCTor aggregates, whether the EHR comes from theehr_idrequest parameter or from anehr_id/valueequality in the query. On a store of 100,000 compositions such a query used to spend 16 to 64 ms in PostgreSQL’s planner for an execution of about 1 ms, on every new connection and every new statement text; it now plans in 1 to 3 ms (#5076). -
The Helm chart (23.0.0) connects FerroBRIDGE to the CDR as a machine. FerroBRIDGE uses an OAuth 2.0 client credentials client of a
machinesissuer that the CDR trusts, set inbridge.cdr.oauth(issuer,clientId, and optionallyscope,audienceandresource). The client secret comes from theclient_secretkey ofbridge.cdr.existingSecret. The chart no longer accepts a Basic user for this connection: from ferrohealth-smart 0.9 a Basic credential belongs to a person and holds nosystem/scope. The chart refuses to render whenbridge.cdr.oauth.issueris not listed inconfig.auth.issuerwithkind: machines. To upgrade, add that issuer, create the client, and replace theuserandpasswordkeys of the Secret withclient_secret(#5085). -
A verified external person’s commit records the professional as its committer: a
PARTY_IDENTIFIEDwith the asserted name, thehp_identifierunder the issuer"<country_code>:<issuing_authority_name>"and the token’sissandsub, with noexternal_ref. A country code that is no upper-case ISO 3166-1 alpha-2 code, or an issuing authority holding a:, control or bidi character, is refused with403naming the field. The COMPOSITION must name the token’s healthcare provider (provider.healthcare_provider_identifierunderprovider.issuing_authority_name) as itshealth_care_facility, or it is refused with422. Upgrade step: mapprovider.issuing_authority_namein each[[auth.federation]]table whose agreements carrywrites, with aconstantsource where the token does not carry it (#5097). -
A system caller (an app-only token by its issuer profile’s
app_onlymarkers) holdssystem/scopes only: a token carrying auser/orpatient/scope is refused with403. It commits into an EHR only as a client an[[authz.system_client]]table declares, under the committerPARTY_IDENTIFIED{name = <client>, identifiers = [{issuer = <iss>, id = <client>, type = "client"}]}, and each COMPOSITION it commits must be of a template itswriteslists (403), name a facility itsfacilitieslists incontext.health_care_facility, or infeeder_audit.originating_system_audit.locationwhen it has no context (422), and be either a device act from adeviceclient or a relayed person act naming the professional by an identifier from arelayclient. Upgrade: declare every client that commits in[[authz.system_client]]with itswrites,facilitiesandorigins, and give its compositions the facility identifier (#5100). -
An attestation is accepted only from a caller bound to a professional
PERSON; one from a patient, a representative, a system caller or an unbound caller is refused with403. Upgrade: attest under the professional’s own token (#5100). -
A guest of a
personsissuer, by its profile’sguestmarkers, is refused with403(refused-guest) unless the issuer’s[[auth.party]]table setsguests = true. Upgrade: setguests = trueon the issuers whose guests act under your responsibility (#5100). -
A verified external person or organisation of a
federationissuer is admitted only under the[[authz.federation.agreement]]of its issuer and accessor, holding no scope beyond the agreement’sreads, and is an access-service caller by its kind: an opted-out EHR answers404to it, and only an external person under an agreement withopt_out_overridereaches one under an emergency purpose. It commits only a COMPOSITION of a template the agreement’swriteslists (an organisation nothing), and a read under aconsent-conditioned agreement, and every request under an NL agreement, is refused until the consent decision reference and the Wabvpz Art. 15f roles can be read. Upgrade: declare an agreement for everyfederationissuer and accessor, list the issuer in[smart] patient_issuers, and give its tokens only thepatient/scopes the agreement reads (#5101). -
Under an NL
[[authz.federation.agreement]], Wabvpz Art. 15f now decides admission in place of the refusal of every request. A caller whosenl.roleis the UZI role 01.008 (bedrijfsarts) or 01.048 (verzekeringsarts) is refused with403asrefused-wabvpz-role, and a caller whosenl.organisation_typeis missing or is not a care provider type of Nictiz’sOrganisatieTypeCodelijstis refused with403asrefused-wabvpz-organisation-type, so an insurer is refused. Every NL agreement declarespurpose = "care"; one without a purpose, or for akeuring, refuses the start. The code lists are vendored byscripts/vendor/nl-role-codes.shintodocs/specs/nl-role-codes/. Upgrade: addpurpose = "care"to every NL agreement and mapnl.organisation_type(andnl.rolefor persons) in its issuer’s[[auth.federation]]table (#5107). -
A delegated token’s access record now has
acting_mode = "delegated"where it hadclient, and a system caller’ssystem. The FHIR rendering still names a delegated access as a client one. Upgrade: a review query that selects delegated access byacting_mode = 'client'also selects'delegated'(#5118). -
FerroEHR builds on
ferrohealth-server0.6.1, whose public caller-rate take holds a federation caller to its agreement’scaller_rate. Its 0.6.0 break, therevocationfeature’s move toder0.8, touches no feature FerroEHR enables (#5149). -
The source tree no longer carries the UZI role code CodeSystem (
uzi-rolcode) of Nictiz’s zib 2020 package: its codes and titles reproduce the UZI-register CPS, which CIBG does not license for reproduction.scripts/vendor/nl-role-codes.shwrites it into the git-ignored.vendor-cache/nl-role-codes/, as it does the CPS, and--test-inputsfetches only what the Wabvpz tests read. Nictiz’s care provider types stay underdocs/specs/nl-role-codes/. Runscripts/vendor/nl-role-codes.sh --test-inputsonce before running theferroehr-resttests (#5175). -
A contact point’s
patient.idis read throughferrohealth-smart’sTrcPatientId, the family’s one definition of the TRC patient. A value with whitespace in its system, or a value holding a control character,|or a CX delimiter (^,&,~,\), is refused as a missing binding, as the contact point that writes the claim refuses it (#5195). -
[auth]takes three boot refusals fromferrohealth-smart: a Basic user’s hash below the Argon2id floor (m=19456, t=2, p=1), an issuer that carriesuserinfo, and private or symmetric key material in ajwks_file. They are refused as before, with the crate’s messages. Ajwks_filethat is no JWK Set now refuses the start where the crate reads the key set (#5209). -
The family crates move together to one
ferrohealth-smart: 0.13.1, withferrohealth-authz0.7.0,ferrohealth-session0.7.0,ihe-atnaandehds-logging0.8.0,ihe-iti0.0.83,ferrohealth-server0.6.4 andferrobridge-term0.1.148. The 0.13 line refuses a JSON document it cannot read without quoting it (GHSA-mhv7-3975-6xq3), so ajwks_fileor[smart] issuer_metadata_filethat does not parse is refused at boot with the crate’s message, which names the failure class and position; 0.13.1 keeps a refused key set, introspection or metadata body out of the error (GHSA-5qm7-v4fw-p2v9). The OAuth client credentials tables ([authz.abac.remote.oauth],[ehr_index.oauth],[terminology.oauth]and[audit.fhir_feed.oauth]) read as before (#5209). -
The API’s response security headers come from the family server stack (
ferrohealth-server0.6.2) with the same six headers and values. They now also reach the management listener on its own port, andStrict-Transport-Security: max-age=31536000is sent when FerroEHR or the viewer serves TLS itself ([server.tls], RFC 6797 §7.2). The viewer gainsCross-Origin-Resource-Policy: same-site(#5210). -
The server and the viewer read the parts of an
OBJECT_VERSION_IDthroughopenehr-baseand its BASE grammar, never by cutting at::. A value that is noOBJECT_VERSION_IDnow names no version: the AQL branch refusal, the version item tags and the viewer’s version numbers leave it alone, a reference to a container is read as the whole value (souuid::extensionno longer names the containeruuid), and the viewer’s deletes refuse it before calling the CDR. Every part keeps its case (#5211). -
ETagandIf-Matchvalues are read throughopenehr-its’s RFC 9110 entity tag on the server and in the viewer. The server accepts the same forms as before. The viewer reads its CDR’sETagstrictly: a value that is no entity tag names no version (#5212). -
The viewer’s audit screen reads the ITI-81 searchset and each
AuditEventas FHIR R4 resources, and a refusal’sOperationOutcometoo. A searchset that is no FHIR R4BundleofAuditEvents now shows as a failed read, never as a page of empty rows (#5214). -
The EHR index’s boot check reads the PIX Manager’s
CapabilityStatementthroughihe-iti’s PIXm client, with its transport and its client-credentials token, so a Manager behind IUA answers the probe as it answers ITI-83. A failed probe is reported as the client’s refusal: no answer, the status it answered, or no FHIR R4CapabilityStatement(#5216). -
[audit.syslog]reads its TLS material from[audit.syslog.tls], the outbound TLS table of every FerroHEALTH product (trust_roots_file,client_identity_fileorclient_identity,min_version), and handsihe-atnathe rustls configurationferrohealth-serverbuilds from it. The keystls_ca_file,tls_identity_cert_fileandtls_identity_key_fileare retired and refused at boot by name: name the roots file astrust_roots_file, and concatenate the client certificate chain and its private key into the one PEMclient_identity_filenames. The client speaks TLS 1.3 unlessmin_version = "1.2"lowers it (#5217). -
A SCIM Group membership is now held by the member: an inline
PARTY_RELATIONSHIPfrom the member’sPERSONto theGROUP, stored in thePERSON’s version (RM demographic §Party Relationships). A membership change versions only thatPERSON, so its cost no longer grows with the Group’s size. TheGROUPis versioned only by a rename, anexternalIdchange or its deletion. The Group’smembersis read from the membership index (#5220). -
A Group’s
ETagis now itsGROUPversion plus a membership revision, so it still changes with every membership change. The member User’sETagnow changes too, while its body stays the same (#5220). -
Deactivating a User (
active = false) drops all of its memberships in the same version, because an inactivePERSONcannot be versioned again. A reactivated User belongs to no Group until its client adds it again (#5220). -
Microsoft Entra ID’s disable-then-remove order now succeeds, since the later
removefinds nothing to remove. Anaddnaming an inactive User is400 invalidValue(“reactivate the User first”) (#5220). -
A refused SCIM write now names the rule it breaks in
detail(#5220). -
scripts/perf/scim-groups.shkeeps the database log,df -handfree -mof a failed run (#5220). -
A party commit no longer re-derives the login binding’s side table, the reverse-relationship index and the protection check from the whole stored body. Each hook reads what the committed body holds, derived once in memory, and writes only the rows that changed, and
ferroehr party-binding refillderives the rows with the same code. A party commit without a server signature no longer reassembles its body. A membership change at the cap of a 5 000-member SCIM Group went from 810 ms to 358 ms at p99 on a developer laptop (#5220). -
openehr-rmwrites the RFC 8785 canonical form aVERSIONsignature covers in one pass over the version, sorting each object’s members by reference. A 3.3 MBGROUPversion canonicalises about seven times faster than throughserde_jcs, with byte-identical output, so signed versions verify unchanged.serde_jcsremains the test oracle (#5220). -
The stored-query service takes the typed name, version and version pattern of
openehr_its::rest::stored_queryend to end, so it reads one grammar with the REST layer: the three-part{namespace}::{formalism}::{query-name}name, which ITS-REST 1.1.0Qualified_query_name.mddoes not define, is no longer accepted anywhere (the formalism is thequery_typeparameter), andDELETE /admin/query/{qualified_query_name}/{version}answers400for a name outside[{namespace}::]{query-name}or a version that is no exactmajor.minor.patch, where it answered404(#5223). -
Boot and
ferroehr config checkrefuse an[[auth.party]]table whoseidentifier_typeis thetypeof no[[authz.party_binding.person.template]]key, naming the issuer, the type and the types the templates write: no login of such an issuer could ever match a party, and every one would be refused. Upgrade step: give the deployment a person template whose key carries the table’sidentifier_type(or set the table to the type the template writes). The Helm CI and production values and the hosted sandbox now carry the professional PERSON and ROLE mapping, and the sandbox loads the two templates before the CDR starts (#5231). -
openehr_query::printer::to_aqlwrites eachWHEREcomparison with one space on each side of the operator (c/name/value = $nameValue), as the QUERY 1.1.0 AQL syntax examples do; path predicates keep their unspaced form ([ehr_id/value=$ehrUid]). The query builder’s generated AQL follows (#5241). -
openehr_sdt::flat::navigate::Navigatorowns what it copies from its Web Template (the name-fallback table and the OPT2 archetype references) and carries no template lifetime, so a consumer can keep it beside the template it was built from; it isDebug,Clone,SendandSync(#5243). -
Breaking: the configuration tree is one table per concern.
ferroehr.tomlmoves to[deployment],[api],[database],[auth](with[auth.smart]and[auth.scim]),[authz](with[[authz.origin]]),[management],[audit],[privacy](withidentifier_protection,cohortandaccess_delay),[record](withsubject_index,versioning,signing,query,change_feedandmultimedia),[terminology]and[pixm]. FerroEHR’s own keys take one duration type ("500ms","30s","10min","12h","7d", UCUM unit codes, so a bare number andmare refused), one size type ("256KiB","64MiB", IEC binary units, decimal units refused) and one calendar retention period ("P5Y","P1830D", unset keeps forever). An optional feature is on when its table is present:[terminology],[pixm],[auth.scim],[audit.syslog],[audit.fhir_feed],[privacy.identifier_protection]and[privacy.access_delay]carry noenabled;[authz.abac],[record.multimedia]and[auth.smart]keep a switch because some of their keys apply while off.record.subject_indexhas no default, so the server refuses to start until"pixm"or"local"is chosen.[api.cors]replacescors_permissivewith the Fetch Standard response headers (allow_origins,allow_methods,allow_headers,expose_headers,allow_credentials,max_age). The environment follows the tree (FERROEHR__DB__URLisFERROEHR__DATABASE__URL,FERROEHR__EHR_INDEX__PROVIDERisFERROEHR__RECORD__SUBJECT_INDEX). The Helm chart moves to its 25 line withconfig:on the same tree. Every key a release before v5.7.0 read is refused at load with its replacement named, all at once, soferroehr config check --config <old file>prints the whole move list; the refusals ship in v5.7.0 only and the next release removes them. To upgrade, runconfig checkon the old file and move each key it names:spec_profile,deployment_profile,deployment_acceptsandlicence.filearedeployment.spec_profile,deployment.profile,deployment.acceptsanddeployment.licence_file;[rest]is[api](swagger_uiisopenapi_ui,body_limit_bytesisbody_limit,cors_permissive = trueis[api.cors] allow_origins = ["*"],[rest.identity]is[api.options]withsolutionandvendor; the version keys are facts of the build),admin.enabledisapi.adminandterminology.api_enabledisapi.terminology;[db]is[database](acquire_timeout_secsisacquire_timeout,statement_timeout_msisstatement_timeout,migrateismigrations),[storage.<domain>]is[database.<domain>]and[storage.migrate.<domain>] urlis[database.<domain>] migrate_url;[smart]is[auth.smart](enabledisdiscovery,episode.enabledisepisode_launch,launch_base64_json = trueis"launch-base64-json"inauth.capabilities);[scim]is[auth.scim](max_resultsisfilter_max_results,deactivation_window_minutesisdeactivation_window,contact_erasure_minutesiscontact_erasure_delay);[authz.abac.cedar] reload_secsisreload_interval,[authz.abac.remote] server,connect_timeout_msandrequest_timeout_msareurl,connect_timeoutandtimeout,authz.party_binding.provisional_report_daysisprovisional_report_after, and an agreement’sdiscard_window_hoursandchained_log_retention_yearsarediscard_windowandchained_log_retention;[[origins.registered]]is[[authz.origin]];management.portismanagement.listen(anaddress:port) andmanagement.profiling.max_secondsismax_duration;audit.store.retention_daysandretention_yearsareaudit.store.retention,verify_interval_secondsandfull_verify_interval_secondsareverify_intervalandfull_verify_interval;[audit.syslog]hostandportareurl = "tls://host:port",spool_max_messagesisspool_max_events,spool_max_bytesisspool_max_size,retry_max_msisretry.max_backoff, and[audit.fhir_feed]poll_interval_msandretry_max_msarepoll_intervalandretry.max_backoff;[demographic.identifier_protection]is[privacy.identifier_protection],[cohort]is[privacy.cohort], and[access_delay]is[privacy.access_delay]withhoursasmax_delay;ehr_index.providerisrecord.subject_index("ihe"is"pixm") and the rest of[ehr_index]is[pixm](pixm_urlisurl,invocationismethod,request_timeout_msistimeout);versioning.skip_identical_resendisrecord.versioning.idempotent_resend;[signing]is[record.signing](key_pathiskey_file,retired_key_pathsisretired_key_files),[query]is[record.query](timeout_msistimeout),[outbox]is[record.change_feed](retention_daysisretention,prune_interval_secsisprune_interval), and[multimedia]is[record.multimedia](endpointisurl,threshold_bytesisthreshold, andallow_httpis retired: anhttp://url is plain HTTP);[terminology.server]is[terminology](fail_on_errorison_error = "accept" | "refuse",request_timeout_msistimeout). The family sections take the same types, fromferrohealth-server0.8,ferrohealth-telemetry0.4,ferrohealth-smart0.15 andferrohealth-session0.9:[server]request_timeout_ms,header_read_timeout_ms,idle_timeout_ms,drain_delay_ms,shutdown_timeout_msandretry_after_sarerequest_timeout,header_read_timeout,idle_timeout,drain_delay,shutdown_timeoutandretry_after,body_limit_bytesandcompression_min_bytesarebody_limitandcompression_min_size, and[server.tls] reload_interval_sisreload_interval;[telemetry.otlp]trust_roots_fileandclient_identity_filemove into[telemetry.otlp.tls], and anhttps://collector is dialed over it;[auth] ca_fileis[auth.tls] trust_roots_file, an[[auth.issuer]]table’sclock_skew_seconds,jwks_max_age_seconds,jwks_refresh_interval_secondsandtimeout_msareclock_skew,jwks_max_age,jwks_refresh_intervalandtimeout, its introspectioncache_max_age_secondsiscache_max_age,[auth.basic] cache_ttl_secondsiscache_ttl,[auth.dpop]max_age_secondsandclock_skew_secondsaremax_ageandclock_skew,[auth.idp.entra]timeout_msandmax_response_bytesaretimeoutandmax_response_size, and anoauthgrant’sca_file,client_certificate_fileandclient_key_fileare itstlstable’strust_roots_fileandclient_identity_file(one PEM), withrefresh_margin_ms,timeout_msandprevious_key_overlap_msasrefresh_margin,timeoutandprevious_key_overlap. The[auth]keys v5.6 read for every issuer (audience,algorithms,token_profile,jwks_file,mode,introspection,role_claimsand the rest) live on each[[auth.issuer]]table, andscopeless_subjectsentries are{ issuer, sub }tables. In the viewer,cdr.request_timeout_secsiscdr.timeout,[oidc] ca_fileis[oidc.tls] trust_roots_file,[oidc.tls]client_certificateandclient_keyareclient_identity_file, and[session]idle_timeout_s,absolute_timeout_sandsign_in_timeout_sareidle_timeout,absolute_timeoutandsign_in_timeout. Each of these is refused in v5.7.0 naming its replacement, in the CDR and the viewer alike (#5259). -
Breaking: a
patientstoken that names an actor is refused. Withferrohealth-smart0.15, apatientsissuer reads a token whose top-levelact(RFC 8693 §4.1) names someone other than the patient only when its[[auth.issuer]]table setsact_represents_patient = true; without it the token is refused401, where v5.6 admitted it as the patient’s own access. With it, FerroEHR refuses the token403(refused-patient-representative), because it binds no party to someone acting for a patient, and the access log records the refusal (#5259). -
SECURITY.md,security.txt(itsContact: mailto:field), the post-market record, the CRA technical documentation and the book’s compliance pages namesecurity@cadasto.comas the email route for a vulnerability report, in place ofinfo@cadasto.com, which stays the single point of contact for complaints and incidents, the manufacturer’s address on the running server and the address for licensing and other business questions (#5272). -
The shipped
ferroehr.tomltemplate (app/ferroehr/assets/ferroehr.default.toml) is generated from the configuration types withtools/config-reference: every key, each under its description and set to its default, a secret or a key with no default as a#?placeholder line. The book’s new page “Every configuration key” includes it whole. CI fails when it drifts from the types. No key changes: aferroehr.tomlthat loads today loads unchanged (#5316). -
The family crates move to their newest releases:
ferrohealth-smart0.18.0,ferrohealth-session0.12.0,ferrohealth-authz0.11.0,ferrohealth-server0.8.4 (its TLS certificate verifier is built once per process),ferrohealth-telemetry0.4.1,ihe-atnaandehds-logging0.12.0,ihe-iti0.4.0,ferrobridge-term0.5.0, andfhir-typesandfhir-search0.1.131. Every[[auth.issuer]], onward and OAuthissuerrenders with its credentials masked. A system caller, a patient and a patient’s representative carry the purpose of use their token states when their issuer has an[[auth.attributes]]table. An IUApurpose_of_useof empty codes states no purpose (#5320). -
ferroehrandferroehr-viewerrun through the FerroHEALTH family’s run path. A configuration either binary refuses (an unknown or invalid key, a broken semantic rule, an[auth]table with no mechanism, a SCIM mapping it cannot serve, or for the viewer a TLS file that does not read or an unusable[oidc]or[session]table) now exits78(EX_CONFIGofsysexits(3)) where it exited1, so an orchestrator can tell a configuration to fix from a failure to retry. Every other failure still exits1, and the failure is written to stderr as one line with its whole cause, prefixed with the binary’s name. Upgrade: a script or probe that expects exactly1fromconfig checkon a refused file expects78(#5321). -
The configuration is redacted by its secret types alone.
GET /management/env,GET /ferroehr/rest/extensions/v1/admin/configandferroehr config checkshow the tree as itsSecretandSecretUrlvalues serialize, and the second masking by key name and by URL shape is gone.[audit.syslog] url,[auth.smart] platform_base_urlandpublic_base_url, and[auth.scim] public_base_urlare secret URLs now, as are the OAuth, onward and introspection endpoints offerrohealth-smart0.17 and the viewer’s[oidc]endpoints offerrohealth-session0.11, so each renders with its credentials and query masked. Aplatform_base_urlgiven as a bare path renders as***(#5322). -
Every outbound integration (the terminology server, the PIXm identity source, the ITI-20 FHIR Feed, the remote policy decision point and the viewer’s CDR client) is built by
ferrohealth-smart’sOutboundClientfrom its endpoint table, and FerroEHR’s own client builder is gone. A PIXm exchange’stimeoutnow bounds the exchange with its tries and the waits between them, and the viewer refuses a[cdr] timeoutof zero at start (#5324). -
The family crates move to their newest releases:
ferrohealth-smart0.17.0,ferrohealth-session0.11.0,ferrohealth-authz0.10.0,ferrohealth-config0.4.4,ferrohealth-server0.8.3,ferrohealth-secret0.2.1,ferrohealth-usage-report0.4.1,ferrobridge-term0.4.0,ihe-atnaandehds-logging0.11.0, andihe-iti0.3.0. Every OAuth token endpoint and introspection endpoint renders with its credentials masked, and a TLS refusal of an outbound client names its<key>.tlstable (#5324). -
[auth.idp.entra]is read byferrohealth-smart’s[auth]section, so an unknown key under it is refused with the crate’s field list. The key path is unchanged. The effective configuration now shows[auth.idp]as an empty table when no adapter is configured (#5325). -
The build compiles FHIR R4’s resources alone:
fhir-typesis required with itsr4-resourcesfeature in place of the crate-wideresources, and the FerroBRIDGE crates (fhir-types,fhir-search,ferrobridge-term) are required by caret ranges in place of exact versions (#5327). -
Breaking: the outbound integrations take the family’s endpoint table.
[terminology],[pixm],[audit.fhir_feed]and[authz.abac.remote]read where they call and how from one[<x>.endpoint]table, the same keys for every outbound integration of every FerroHEALTH product:url,timeout,connect_timeout,retry(max_attempts,initial_backoff,max_backoff),tls(trust_roots_file,client_identity_file,min_version) andcredentials(HTTP Basicuserwithpasswordorpassword_file, or the client credentials grant[...credentials.oauth]).terminology.url,timeoutand[terminology.oauth]areterminology.endpoint.url,timeoutand[terminology.endpoint.credentials.oauth];pixm.url,timeout,[pixm.tls]and[pixm.oauth]arepixm.endpoint.url,timeout,[pixm.endpoint.tls]and[pixm.endpoint.credentials.oauth];audit.fhir_feed.url,[audit.fhir_feed.retry]and[audit.fhir_feed.oauth]areaudit.fhir_feed.endpoint.url,[audit.fhir_feed.endpoint.retry]and[audit.fhir_feed.endpoint.credentials.oauth];authz.abac.remote.url,connect_timeout,timeoutand[authz.abac.remote.oauth]areauthz.abac.remote.endpoint.url,connect_timeout,timeoutand[authz.abac.remote.endpoint.credentials.oauth]. The v5.6 keys are refused naming their new home. Every client now honoursretry: the terminology, PIXm and remote policy clients try a call that got no answer or a5xxup tomax_attemptstimes (three by default; each tried once before), so setmax_attempts = 1to keep one attempt, and the FHIR feed’s delivery rounds takemax_attemptstries each, frominitial_backoff, before the round waitsmax_backoff; the feed still never gives a record up. The environment follows the tree (FERROEHR__TERMINOLOGY__ENDPOINT__URL,FERROEHR__AUDIT__FHIR_FEED__ENDPOINT__URL), and so do the Helm chart’s values and its client secret routing, in the chart’s 25 line (#5331). -
The FerroEHR PostgreSQL image is built on the 2026-11-09 respin of
postgres:18.6(sha256:e3d24f69…), a same-version respin with rebuilt base packages. A full scan of the rebuilt image on amd64 and arm64 finds the same findings as the image of the previous base, each judged insecurity/vex/postgres-os.openvex.json, and a gate scan finds no fixable HIGH or CRITICAL finding (#5332). -
The development and Keycloak example compose files run Keycloak 26.8.2 (
quay.io/keycloak/keycloak:26.8.2@sha256:723b1d6e…). Of the 26.8.2 upgrading notes, the shipped realm meets the ones that touch it: the Admin REST API’s new audience check passes for the master realm’sadmin-clitoken the browser-test harness uses, and the realm uses no token exchange, identity broker, SAML client, CIBA or dynamic client registration. Theferroehr-serviceclient-credentials token carries the same audience and scopes as under 26.8.1 (#5333). -
The compose quickstart, the hosted sandbox and the Helm chart deploy FerroPIX 0.0.26 (
ghcr.io/ferrohealth/ferropix:0.0.26@sha256:85d40e6fdcdb39f782007eff91eb059861a4e039ca3f8fb56e37f2fa0f28d78a, the FerroPIX chart 0.3.19) and FerroTERM 0.4.5 (ghcr.io/ferrohealth/ferroterm:0.4.5@sha256:7c20d39e1989fce1dfb92e6ddfd853dfa9a52bb9b7b973fbba42430963ef75bd), and the development issuer ismock-oauth2-server6.1.5. FerroPIX’s configuration moves to the[[auth.issuer]]shape it now requires: the issuer iskind = "machines"and carries its ownaudience, and[auth] audienceis gone. A chart deployment that setsferropix.config.authmoves its audience onto each issuer the same way (#5351). -
The nine
openehr-*crates follow The Cargo Book’s SemVer rules, judged bycargo-semver-checks0.51.0 against their newest release on crates.io on every pull request, in the merge queue and in the release plan. Their next publish moves the line from0.0.xto0.1.0. From then on a compatible change ships as a patch and only a breaking change moves the minor, so a caret requirement such asopenehr-rm = "0.1"takes every compatible release. A public dependency moved to another compatibility line counts as a breaking change (#5353). -
openehr-rmwrites the ECMAScript number form of the RFC 8785 canonical form aVERSIONsignature covers withryu-js1.0, which carries the upstream fix for a panic in its fixed-point formatter, and is held byte-equal toserde_json_canonicalizer0.4 as its test oracle in place ofserde_jcs, so the lock holds oneryu-jsline. Its output is unchanged (#5372). -
ferroehr.eu takes the FerroHEALTH family layout: the “Oxide & Iron” brand tokens light and dark, a hero badge rendered from the workspace version at build time, a content hash on the stylesheet link, linked capability cards, the conformance record, the viewer screenshot, deployment cards, the family and the four parts of the book, and a 404 page in the same style. The book groups its pages under Evaluate, Integrate, Operate and Contribute, keeping every page’s address, opens in the recoloured light and navy themes and gains a Changelog page. The README’s quick start is the anchored steps of
docker/smoke-test.sh, held byscripts/checks/readme-quickstart.sh(#5382). -
The quickstart
docker-compose.ymleach release attaches now carries its.sha256sum; the README and the book download it withcurl -fsSLOfrom the latest release and start it withdocker compose up --wait, and the README check refuses a host path the file would read from the repository beyond the backup directories (#5387).
Removed
-
[authz.professional](claim,client_tokens,acting_for_claim) and its403for a token that names no natural person. The issuer’skindand profile classify the caller, and the access record’s acting mode and professional come from that classification: a person’s own token is the person, and a delegated token is the client acting for the person it names. Upgrade step: remove the table, which refuses the start, and list a client that acts for a person in its issuer’sdelegates(#5003). -
The named refusal of
authz.rbac.user_role, which v5.6 introduced, is gone under the one-release rule for removal aids: the key is now refused as an unknown key when the configuration loads (#5259).
Fixed
-
A
553|incomplete|commit no longer refuses an empty mandatory archetype slot: RM common master06 §Incomplete Content sets every occurrences lower limit to zero, a slot’s included, while too many fillers are still refused. The OPT 1.4 writer now closes a mandatory slot once the fillers placed in it carry its lower bound, as ADL 2 §Slot Filling and Redefinition allows, and still refuses to close one they leave unmet (#5042). -
The example of a party template whose identity the template marks optional is a party of its class carrying one identity at every detail level, where the
requiredlevel answered500: RM demographicPARTY.identitiesadmits no party without one. A party template that constrains no identity at all answers400 Bad Requestnaming its class (#5057). -
An AQL
VERSIONstandard predicate oncommit_audit/time_committedapplies its operator:VERSION v[commit_audit/time_committed/value > $t]returns every version committed after$t, where it returned the trunk version current at$twhatever the operator (QUERY 1.1.0 master03 §Standard predicate). A number, boolean orNULLliteral as the bound, a string bound no ISO 8601 form reads, and atime_committedpath other than the whole value or/valueare refused with400(#5062). -
AQL refuses a number, boolean or
nullparameter or literal compared with a date/time path, inWHEREand in aVERSIONpredicate, with the same400a non-ISO 8601 string gets; such a bound used to becomeNULLand match nothing (#5064). -
The served OpenAPI document now lists, on both template example operations, the
400answered for a party template that constrains noPARTY_IDENTITY(#5066). -
The compose quickstart, the hosted sandbox and the Helm chart run FerroPIX 0.0.18 (
ghcr.io/ferrohealth/ferropix:0.0.18@sha256:6fb622b5b9ade34c8a4053112c8f166ff495d8b32bf99f35529d01e512b7cc42), with the FerroPIX chart 0.3.10 built for it. The 0.0.16 they pinned had an outbox sender that never slept while its outbox was empty, so an idle install kept about 1.2 CPU cores busy between FerroPIX and its PostgreSQL at about 8,000 transactions a second (FerroHEALTH/FerroPIX#490). 0.0.18 also makes FerroPIX’s[auth] scopeless_subjectsandrole_claimshold per issuer, which changes nothing for a FerroPIX that trusts one issuer, as every configuration FerroEHR ships does. The chart moves to 21.0.5 (#5073). -
An OPT2 built from a template that specialises a published archetype now carries that archetype, by its full id, as
parent_archetype_id, as theOPERATIONAL_TEMPLATEinvariantis_specialisedrequires (AOM2 §3.6.6), so a reader of the OPT finds the archetype its root specialises. The ADL form of an OPT still prints nospecializesection (OPT2 §Artefact Structure), so the parent travels in the canonical JSON form (#5075). -
A
refused-key-claim-missingaccess record names the key claim the issuer’s binding reads (itsperson_key) inbinding_detail.claim, so an operator sees which claim the token lacked. It records the name only, never a claim value (#5139). -
A
403for a caller kind is recorded with its own binding code:refused-system-personal-scopefor a system caller holding auser/orpatient/scope,refused-no-agreementfor an external caller whose issuer has no agreement for its accessor kind, andrefused-scope-beyond-agreementfor an external caller holding a scope its agreement does not read. Audit migration0024widens thebindingconstraint; the problem text of each refusal is unchanged (#5140). -
openehr-sdtbuilds no/contextnode, and nostart_timeorsettingleaf, in the Web Template of an OPT 1.4 whose COMPOSITION prohibitscontext(existence0..0, or anEVENT_CONTEXTof occurrences0..0), and the template example of such a template carries nocontext. A template that leavescontextopen or optional keeps the node as before (#5147). -
openehr-sdtgives the/contextnode it synthesizes in a Web Template theminof the template’s existence onCOMPOSITION.context, and0where the template leavescontextunconstrained, since the RM makescontextoptional (0..1). A client following the Web Template no longer treats the context as mandatory when the template does not require it, and therequiredtemplate example of such a template carries nocontext(#5154). -
An ADL2 template that deletes an attribute (
existence matches {0}), for exampleCOMPOSITION.context, keeps the prohibition after it compiles to its operational template:openehr-adl’screate_optnow returns aRawOptthat names each removed attribute beside the OPT, andbuild_web_template_v2_4takes that list. A template that deletescontextgets no/contextnode, and a commit that carries one is refused, as it is for an OPT 1.4 template that prohibitscontext. An OPT2 uploaded already compiled carries no such list and reads a deleted attribute at its reference-model existence. Breaking for crate users:create_optreturnsRawOptandbuild_web_template_v2_4takes the prohibited attributes (#5154). -
A composition commit whose
template_idnames a stored ADL2 archetype rather than a template is refused with422as an unknown operational template; it failed at the insert with a server error before (#5177). -
openehr-rmtypesREFERENCE_RANGE.rangeasDV_INTERVAL<T>:ReferenceRangeis now generic over its limit type (ReferenceRange<DvQuantity>on aDV_QUANTITY,ReferenceRange<DvOrdered>on the other ordered types), itsis_in_rangeandRange_is_simplework at that type, and the static RM model givesREFERENCE_RANGE.rangeandIMPORTED_VERSION.itemtheir argument. Eachmodel::RmAttributeandmodel::RmTypeRefnow keeps the formal parameter it is written as (formal,Some("T")forDV_INTERVAL.lower) beside the resolved bound. The RM class table declaresREFERENCE_RANGE<T>and leavesTunused; the generator restores it from a cited table and refuses a schema that no longer matches (#5196) (#5188). -
An access record names the client the token’s issuer profile reads from
client_claims(azpunder theentraandkeycloakprofiles), the one the caller was admitted as. A token carrying a differentclient_idclaim beside it was recorded under that claim. The[origins]register and the SCIM client lookup read the same client (#5194). -
An
IntervalorDV_INTERVALread from canonical JSON or XML that omits a boundedness or inclusion flag now takes it from its bound. An absent bound reads as unbounded and not included, and a present bound as bounded and included. A flag the wire states is kept as written. Before, an omitted flag always read as bounded and included, so an interval with only anuppercame out with a bounded, included lower side that had no value. ITS-JSON requires all four flags, and BASE ties none of them to its bound, so reading the omission is our own design (#5203). -
The viewer’s New contribution commits as the signed-in login. Each audit carries the placeholder naming that login, and the server records the committer it derives from the login. The free-text committer field is gone. For a login bound to a demographic
PERSON, a stated name that differs from thePERSON’s name was refused with403(#5222). -
The management surface answers a caller the login binding refuses with
403and its binding code, such asrefused-unbound, as every other route does, in place of401: the credential authenticated, so new credentials cannot help (RFC 9110 §15.5.4). An absent or invalid credential still answers401with its challenge (#5250). -
The party binding posture in
ferroehr reportand the boot log masks the user name and password of an issuer URL, as every other rendering of the configuration does (#5259). -
GET /definition/query/{namespace}::lists every stored query in the namespace again, where it answered400since the typed stored-query name: ITS-REST 1.1.0definition_query_listreads its name as a pattern in which an empty part is a wildcard, so::{name}also lists the names that start with it in any namespace.openehr-itsgainsrest::stored_query::QueryNamePattern, the type the generatedDefinitionQueryListParamscarries. The store and the single-query reads still refuse an empty name or namespace (#5268). -
The identifier scan (
[privacy.identifier_scan]) reads thenameof theELEMENTthat holds aDV_IDENTIFIERwhen the identifier’stypeis absent or names neither a person nor an item, with the same word rules. An untyped laboratory order number in theReceiver order identifierorRequester order identifierelement oflaboratory_test_result.v1that passes the NHS Number check by chance is now stored under the default rule set. A person word still wins, so an untyped value in an element namedNHS numberorPatient identifierstays scanned, and atypethat names a kind takes precedence over the element name (#5291). -
The Helm chart’s description and README name
config.deployment.profile, the key the chart refuses to render without since 5.7.0, and the README’s install command sets it; the command it showed set the oldconfig.deployment_profileand did not render (chart 25.0.1) (#5341). -
A representative’s write is held to the EHDS Art. 5 rules exactly as the person’s. A representative may no longer alter an entry a health professional inserted or name a professional as
composer. A version committed asPARTY_RELATEDcounts as inserted by the person, so the person and the representative may change it, and the contribution list reportsinserted_by_person = truefor it (#5359).
Security
Shipped with functional changes because: the advisory reaches only a deployment that trusts several issuers, which no configuration FerroEHR ships does, and its fix changes what such a configuration must state at boot, so it lands on main beside the AQL version attestations already merged for this release; a security-only patch of the last release remains open to the release cut.
-
A Basic user never carries a
system/scope, throughferrohealth-smart0.9.1 (GHSA-jhg2-jwjp-hq74, CWE-269, CWE-863). Asystem/scope granted to a Basic user gave that person every resource of a type, a backend service’s reach. Such a user now refuses the start, naming the user and the scope. Upgrade step: give each Basic user theuser/scopes a person holds, and move each machine on Basic to a client of the authorization server under the client credentials grant (#5003). -
[auth] scopeless_subjectsandrole_claimshold per issuer, throughferrohealth-smart0.8.9 (GHSA-pfgx-xq28-2629, CWE-863, CWE-639). Before it, beside several[[auth.issuer]]tables both lists applied to every trusted issuer’s tokens: a token from any of them whosesubwas listed met every SMART on openEHR requirement without a scope, and any of them could assert every role the RBAC checks,ADMINincluded. An entry is now written<issuer>#<value>and holds for that issuer alone; beside several issuers a bare entry, or one naming an issuer the section does not trust, refuses the boot. Upgrade step for a deployment with several issuers: write eachscopeless_subjectsentry as<issuer>#<sub>, and write eachrole_claimspath as<issuer>#<path>for the issuers whose roles count (or setrole_claims = []to read none), since the defaultrole_claimsis bare and refused. A deployment with one issuer changes nothing (#5047). -
The
ferroehr-postgresimage carries zlib1g1:1.3.dfsg+really1.3.1-1+deb13u1from trixie-security, which fixes CVE-2026-76844 and CVE-2026-85091 (HIGH, heap overflows in zlib’s gzip writer) and CVE-2026-27171 (MEDIUM, an infinite loop incrc32_combine64). The image of 5.6.3 and earlier releases carries1:1.3.dfsg+really1.3.1-1+b1, judgedaffectedwith the upgrade as its action (security/vex/postgres-os.openvex.json). Theferroehrandferroehr-viewerimages keep the distroless base’s zlib, which neither program loads (security/vex/ferroehr-os.openvex.json) (#5137). -
The
ferroehrandferroehr-viewerimages move to thegcr.io/distroless/cc-debian13:nonrootbuild of 2026-11-08 (sha256:cc66d222…), whose zlib1g1:1.3.dfsg+really1.3.1-1+deb13u1fixes CVE-2026-76844 and CVE-2026-85091 (HIGH, heap overflows in zlib’s gzip writer) and CVE-2026-27171 (MEDIUM, an infinite loop incrc32_combine64). Neither program loads zlib. The images of 5.6.3 and earlier releases carry1:1.3.dfsg+really1.3.1-1+b1, judgedaffectedwith the upgrade as its action, as theferroehr-postgresimage of those releases is (security/vex/ferroehr-os.openvex.json) (#5152, #5329). -
CVE-2026-112321, CVE-2026-112322 and CVE-2026-112323 (memory and CPU exhaustion in
kadmindthrough the AUTH_GSSAPI handler) and CVE-2026-119079 (CPU exhaustion in the KDC decoding an AS-REQ or TGS-REQ) in MIT Kerberos 5 have no Debian fix for trixie and are judgednot_affectedinferroehr-postgres. The image carries neitherkadmind, a KDC norlibgssrpc, and the PostgreSQL server never decodes either request; the configuration FerroEHR ships enables no GSS-API authentication (security/vex/postgres-os.openvex.json) (#5344). -
Thirteen MIT Kerberos 5 CVEs of MITKRB5-SA-2026-001 in the
ferroehr-postgresimage’slibgssapi-krb5-2,libk5crypto3,libkrb5-3andlibkrb5support01.21.3-5+deb13u1have no Debian fix for trixie and are judgednot_affected. The image keeps the four libraries because thepostgresbinary linkslibgssapi_krb5.so.2. Eleven sit in code the image does not carry: the KDC (CVE-2026-107364), its PKINIT plugin (CVE-2026-71200),kadmind(CVE-2026-107884, CVE-2026-112318),libgssrpc(CVE-2026-112314, CVE-2026-112315, CVE-2026-112320, CVE-2026-118380), the kadm5 libraries (CVE-2026-112316, CVE-2026-112319) andlibkdb5(CVE-2026-112317). The PAC checksum flaw (CVE-2026-111423) and the CAMMAC checksum flaw (CVE-2026-71199) sit inlibkrb5, which the server reaches only when it accepts a Kerberos ticket. The configuration FerroEHR ships has nogssorhostgssencline inpg_hba.confand no server keytab, and the server never reads a PAC or an authentication indicator (security/vex/postgres-os.openvex.json) (#5374). -
The five OpenSSL 3.5.7 CVEs of the OpenSSL advisory of 2026-11-10 have no Debian fix for trixie and are judged
not_affectedin the three images: the AES-GCM-SIV flaws CVE-2026-88823 and CVE-2026-95692, the QUIC flaws CVE-2026-88822 and CVE-2026-95691, and theCMS_encrypt()loop CVE-2026-107496. Theferroehrandferroehr-viewerprograms never maplibssl.so.3orlibcrypto.so.3: each links onlylibc,libmandlibgcc_s, imports nodlopen, and speaks TLS through rustls (security/vex/ferroehr-os.openvex.json). The PostgreSQL server maps both for TLS over TCP, which never selects AES-GCM-SIV (no TLS cipher suite is one), never opens a QUIC connection and never writes CMS, and the image never runs theopensslprogram or loads the legacy provider (security/vex/postgres-os.openvex.json) (#5393).
5.7.0-rc2 - 2026-11-10
5.7.0-rc2 is the second release candidate of 5.7.0, published for testing. 5.7.0-rc1 was tagged but not published: the release’s performance guard booted the candidate without the login provisioner its quickstart ships, so its load test was refused as an unbound login. The guard now starts the provisioner (#5346), and the server is unchanged. These notes carry every change since 5.6.3, those of the 5.7.0-rc1 section below included. 5.6.3 stays the stable release: this pre-release moves neither the latest image tags, the book under /docs/latest/ nor the hosted sandbox, it publishes no crates, and it receives no fixes; the next release candidate or 5.7.0 itself replaces it. Before you try it: the configuration is one table per concern with typed durations and sizes, so run ferroehr config check on your file first, which names every key a release before 5.7.0 read with its replacement, all at once; every person is bound to a demographic PERSON, so each persons issuer needs its [[auth.party]] table and each Basic user its [[authz.party_binding.basic_user]] mapping, with the steps on the book’s bootstrap and migration page; and a deployment whose FerroBRIDGE facade or FerroFED gateway writes to FerroEHR adds its persons issuers only after FerroBRIDGE v0.0.23 and FerroFED v0.0.17 reach it. Party migrations 0027 to 0032, clinical migration 0035 and audit migrations 0023 to 0025 add the binding, SCIM, DPoP replay and refusal tables, columns and codes. Helm chart 25.0.1-rc2 carries appVersion 5.7.0-rc2. Security carries two advisories, GHSA-jhg2-jwjp-hq74 and GHSA-pfgx-xq28-2629, the zlib fixes of CVE-2026-76844, CVE-2026-85091 and CVE-2026-27171 in the three images, and the not_affected judgements of four krb5 CVEs in the PostgreSQL image.
Added
-
AQL reads the attestations of a version:
v/attestationsand anyATTESTATIONattribute below it (is_pending,reason,proof,items,committer,time_committed) underFROM EHR e CONTAINS VERSION v CONTAINS COMPOSITION c, with predicates onattestationsandEXISTS, andv/commit_audit/is_pendingandv/commit_audit/reasonon a commit audit that is anATTESTATION.SELECT v/attestationsreturns the list, and a comparison belowattestationsholds when any attestation matches. The FerroEHR extension functionLAST(v/attestations/<path>)reads the most recent attestation, soWHERE LAST(v/attestations/is_pending) = truelists the versions awaiting signature, including one marked pending again after it was signed (#4989). -
The party binding’s configuration, each table with its boot refusals:
[authz.party_binding](provideras one table or one table per tenant,namespace,basic_user),[authz.import] trusted_systems,[[authz.system_client]](the provider, facilities, templates and origins of each client-credentials client that commits) and[[authz.federation.agreement]](what a federation issuer’s external persons or organisation may do, on which legal ground), with[authz.rbac] role_issuersandimport_role. A template an agreement or a system client writes that the store does not hold refuses the start. The boot line andGET /management/infolist the issuers with their kind and identifier issuer, the provider, and every agreement with its accessor and legal ground, and an agreement that admits an organisation without a named person is logged atwarn(#5003). -
[auth.idp.entra], the Microsoft Graph access of theidp-entraadapter offerrohealth-smart, which resolves the groups of an Entra ID groups overage for an issuer whose profile setsadapter = "idp-entra"(#5003). -
[auth.dpop]and[[auth.issuer]] sender_constraint: tokens bound to a DPoP key (RFC 9449) or a mutual-TLS client certificate (RFC 8705), checked on every request. A DPoP proof is recorded by the replica that accepted it, so the Helm chart refuses a sender-constrained issuer on more than one replica (#5003). -
The login binding reads the local party source on every request, with no cache: the new party migration
0027_binding_side_tableadds the indexedbinding_identifier,binding_membershipandbinding_representationrelations, written in each party commit’s transaction from thePERSONs of the mapped templates that perform a professionalROLEor represent another person, theirGROUPmemberships and their representation relationships, and rebuilt from the party versions alone. A login matching two parties, aninactive,abandonedor deleted party, a token without the key claim, a party without the needed marker and unreadable groups are refused with403and their binding code; a party store or identity provider that cannot answer is answered503(#5004). -
ferroehr definitions load <path>...stores OPT 1.4 (.opt) and ADL 2 (.adls) definitions beforeserve, through the validation and versioning of the REST upload. A file already stored with the same text is left alone and other text under a stored id is refused, so a deployment runs it at every start to give its party mapping the templates it needs at boot.deploy/definitions/professional/holds a professional PERSON and ROLE pair adapted from openEHR CKM archetypes for the development lanes and the quickstart (#5006). -
The compose quickstart binds its user to a professional
PERSON: theferroehr-definitionsone-shot loads the PERSON and ROLE templates the party mapping names before the server starts, andferroehr-provisioncreates the user through/scim/v2/Userswith a token of the development issuer, then reports healthy, sodocker compose up --waitreturns once the login is bound. The Helm chart (23.3.0) takesdefinitions.files, which an init container stores withferroehr definitions loadbefore the server container starts. The conformance, browser and Kubernetes lanes load the same templates and provision every login they use through SCIM, with the committed test client ofdocs/conformance/party/scim/(#5006). -
ferroehr party-binding adopt <PARTY_ID>...gives each preparedPERSONof an existing deployment a professionalROLEof the mapping’s role template, with thePERSONasperformer, and a newPERSONversion listing it inroles, all in one demographic CONTRIBUTION committed by the first administrator named with--adminor--admin-key, and writes one access record per adoptedPERSONthrough the configured audit trail. It refuses the whole adoption, naming them, while any listedPERSON’s key was introduced by a committer that is no[[scim.client]], named administrator or--migration, so a key planted before the upgrade is never adopted. APERSONthat already performs theROLEis reported and left alone. The report is JSON on stdout (#5009). -
ferroehr party-binding checkis the read-only pre-flight of a migration to party binding, and the one report of the provisional persons just-in-time creation left incomplete. It reads the party versions alone, so it runs before any boot fill, and writes nothing. Per key issuer it reports thePERSONs that carry a binding key, every selector value twoPERSONs carry, the inactive and abandoned ones, the provisional ones older thanprovisional_report_days, the key-bearing ones that perform no professionalROLE, and every mapped Basic user with thePERSONit binds. For each key it names the committer of the version that introduced it, and fails unless that committer is a[[scim.client]], an administrator named with--adminor--admin-key, a migration declared with--migration, or just-in-time creation on an issuer withjit = true.--expected <file>lists every login of the identity provider with noPERSON. The report is JSON on stdout, and the command exits non-zero on a duplicate, a missing person or a key that fails the provenance rule (#5009). -
At boot, FerroEHR logs a
warnnaming every Basic user mapped in[[authz.party_binding.basic_user]]while[authz.assurance] minimumis unset: a Basic credential carries no assurance level, so such a person is never refused on patient data (#5009). -
The one
PERSONmapping SCIM provisioning, just-in-time creation and the login binding share:[[authz.party_binding.person.template]]with the binding key,userNameandexternalIdselectors of each template,[[authz.party_binding.person.attribute]]with the SCIM attribute, the OpenID Connect claim and the path of each mapped value, and[authz.party_binding.professional_role],[authz.party_binding.group],[authz.party_binding.membership]and[authz.party_binding.representation]. Boot refuses a mapping that breaks one of its rules, naming the key, including a template that is absent, rooted at another class or lacks a mapped path, and deleting a template the mapping names is refused with409(#5013). -
The new party migration
0028_binding_selectorsholds each binding key,userName(compared after RFC 8265 width mapping, lower case and NFC),externalIdand groupdisplayNameto one live party, so a commit giving one a second party is refused with409. The first boot fills the side table under the mapping’s digest, a replica with another mapping refuses to start, andferroehr party-binding refillrebuilds it after a mapping change, refusing while a replica runs and naming the parties when a value is carried twice (#5013). -
POST /admin/party/binding-keyre-keys aPERSON’s binding key: it refuses the administrator’s own login and a key already bound, retires the old key in the same commit and writes one access record carrying both (#5013). -
[scim]mounts the SCIM 2.0 service provider at/scim/v2/(off by default):[[scim.client]]declares each provisioning client byissuer,client_id,scopeandbinding_issuer, andpublic_base_urlnames the origin its documents hang off./scim/v2/ServiceProviderConfiganswers without a token;/ResourceTypesand/Schemasanswer a declared client acting for nobody that holds its scope, within[server.caller_rate]. Every refusal is an RFC 7644Errormessage. The start is refused for a client of a non-machinesissuer, one declared twice, two clients sharing abinding_issuer, or abinding_issuerno[[auth.party]]table carries (#5014). -
The SCIM endpoint answers the Microsoft Entra ID provisioning client as Microsoft’s “Develop a SCIM endpoint” guide documents it: a value-filtered attribute such as
emails[type eq "work"].valueserves itstypeand declaresprimaryread-only, so theprimaryEntra sends is ignored (RFC 7644 §3.3); aPATCHofuserNamerenames the User; and the Test Connection probes are answered with an emptyListResponseand404.ferroehr config checkrefuses a[scim]the person mapping cannot serve, asservedoes. The Helm chart exposesconfig.scimand routes/scim/v2on every Ingress host when it is enabled, and the book walks an operator through provisioning from Entra ID, with the Workload Identity Federation checks the authorization server makes (#5014). -
/scim/v2/Users/{id}takesPUT,PATCHandDELETE: a write commits the next version of the professional’sPERSON, clearing a mapped attribute aPUTleaves out, keeping the binding key andexternalId, and moving the lifecycle state byactive(completeorincompletetoinactiveorabandonedand back, anabandonedUser completed in two versions, an attribute change to an inactive User refused until it is reactivated).DELETElogically deletes thePERSONand its professionalROLEin one CONTRIBUTION and leaves the binding key as a tombstone. AnIf-Matchnaming another version is412, andServiceProviderConfigdeclares PATCH.[scim] max_deactivationsanddeactivation_window_minutesbound the deactivations and deletions of one client, counted in the database so replicas share the bound, with429past it (#5014). -
/scim/v2/Usersserves a client’s Users:POSTcreates the professional’sPERSONand its professionalROLEin one demographic CONTRIBUTION,completewhen the template holds in full andincompleteotherwise,GET /Users/{id}answers with the version’s entity tag and304to a matchingIf-None-Match, andGET /Usersanswers aListResponsefiltered byeqandandoveruserName,externalIdandid, with any other filter400invalidFilter. A client sees only the Users whose binding key itsbinding_issuerissues, every SCIM request is an access record of the client naming thePERSON, andServiceProviderConfigdeclares entity tags. The start is refused when[scim]is on and the party mapping has no default person template with auser_nameselector or no professional role (#5014). -
/scim/v2/Groupsserves SCIM Groups as demographicGROUPs of[authz.party_binding.group], each member holding an inlinePARTY_RELATIONSHIPof[authz.party_binding.membership]from itsPERSONto theGROUP, with noROLEminted: create, read,eq/andfilters ondisplayName,externalIdandid,excludedAttributes=members,PATCH(answered204),PUTandDELETE, with the entity tags of Users. A Group belongs to the client that created it, its members are that client’s Users, itsdisplayNameis unique, and itsexternalIdsits under the client’sgroup_identifier_issuer. Aremoveofmemberswith avaluelist removes only those members, an Entra compatibility deviation from RFC 7644 §3.5.2.2. Deleting a User removes its memberships in the same CONTRIBUTION.[scim] max_group_members(default 5000) caps a Group (#5015). -
Just-in-time creation of a provisional
PERSONat a first login, off by default and enabled perpersonsissuer in a new[[authz.party_binding.issuer]]table (jit,guests_jit,user_name_claim,idp_claim,admit_idp,admit_groups,admit_roles,admit_assurance). A login of a person or a delegated caller that matches no party and meets every declared admission condition commits one553|incomplete|PERSONholding the binding key, theuserNameand the name claims of the access token, with its professionalROLE, as a creation by the person, and is served bound to it; any other mapped attribute is written only where its mapping setsjit = true, andexternalIdnever. Concurrent first requests commit onePERSON, a deprovisioned or inactive login is never recreated, a takenuserNamerefuses the login, and a SCIM client of the key’s issuer completes thePERSON. Boot refusesjitwithout an admission condition or a mapping that can write it.ferroehr party-binding checklists the provisional persons older than[authz.party_binding] provisional_report_days(default 30) (#5016). -
A party of a mapped template is validated against that template on every demographic write: a
PERSONorGROUPwhosearchetype_details.template_idnames a template of the shared party mapping, and aPARTY_RELATIONSHIPof its membership archetype. A532|complete|version must meet every constraint, and a553|incomplete|one may miss mandatory nodes but nothing it carries may be wrong (RM common master06 §Incomplete Content); the refusal is a422naming each failing path. Every other party keeps the reference-model checks alone, so parties created through the Demographic API under other templates are accepted as before (#5042). -
The FHIR
AuditEvent, the DICOM audit message and the ITI-20 syslog feed carry the binding fields of the access record: the binding outcome, the party and its groups, the provider acted for, the facilities of a system commit, the representation with its relationship, the actor chain, the external accessor’s asserted fields and the agreement with its legal ground, consent and access class, and achainedrequest’s correlation id.ehds-logging0.5.1 writes them as theehds-accessorandehds-relayedentities, in the DICOM message as participant objects of type Other. The FHIR record also writes theexternalandsystemacting modes. FerroEHR moves toehds-loggingandihe-atna0.5.1 andihe-iti0.0.77 (#5043). -
A bound representative reaches only the EHR whose
EHR_STATUSnames the subject it represents. Every composition,EHR_STATUS, directory, contribution and query request is held to that EHR whatever the token’s scopes cover, and a query must name it withehr_id. A representative whose token names a subject its party has no live representation relationship to, or whose issuer no[[auth.party]]table binds, is refused with403andrefused-representation-unrecorded(#5086). -
The Helm chart (23.1.0) accepts
bridge.cdr.oauth.tokenEndpointfor an authorization server whose metadata FerroBRIDGE cannot read atbridge.cdr.oauth.issuer. FerroBRIDGE then requests its client credentials token from that endpoint, andissuerstill names themachinesissuer the CDR trusts (#5093). -
A MyHealth@EU contact point’s caller (a
contact_point = truefederationissuer) reaches patient data only for the patient of its treatment relationship confirmation. The token’sehdsi.patient.id(system|value) is resolved to its EHR through the EHR index, and every patient-data request must name that EHR. A token without it is refused with403andERROR_SEC_DATA_INTEGRITY_NOT_ENSURED, recorded asrefused-trc-missing. Another patient’s EHR, an unknown EHR and a request naming no EHR all answer one404of the new problem typetrc-patient-mismatch, carrying the agreement service’s*_NOT_FOUNDcode and recorded as arefused-trc-patient-mismatchsecurity event (eHDSI XCA Profile 8.0.1 §4.2.1, §4.2.2). A contact point’s person agreement now names itsehdsi_service; upgrade step: set it, and list the issuer in[smart] patient_issuers(#5102). -
An external person under an agreement with
discarddiscards a dispensation of a listed template, as a logical delete, withindiscard_window_hoursand from the same point of care: the dispensation’shealth_care_facilitycarries the token’s provider identifier and its eHDSIorganization-id. A token carrying permissions records and discards a dispensation only withPPD-046(eHDSI SAML Profile 10.0.0 §2.5) (#5102). -
A read under a federation agreement with a
consentcondition is served when the token carries the consent decision reference for its patient (Wabvpz Art. 1(j) and Art. 15a(1)), in the claim orauthorization_detailsmember the issuer’s[[auth.federation]]table maps toconsent.reference, and refused with403without it. The reference is one string, the token’spatient/grant holds it to the launch-context patient, and the access record carries it with the other external fields.ferrohealth-smartmoves to 0.9.3, which reads the field (#5106). -
Every access record of an authenticated request carries the outcome of the party binding (
binding:bound,provisional,external,organisation,system,selfor arefused-*code) with the fields it needs: the bound party, its groups, the provider, the guest mark, a representative’s representation, a delegated token’s actor chain, a verified external accessor’s fields and agreement, and the facilities a system caller’s compositions named.acting_modegainsdelegated,externalandsystem. The audit migration0023_binding_outcome.sqladds the columns and restores a per-row digest version: records written before stay version 1 and keep verifying, new records are version 2, and a version-1 record after a version-2 one is refused (#5118). -
Every refused request is an access record through the gated path, and a refusal of the login binding or of a caller kind carries its
refused-*binding code and the party it names. Refusals of tokens that failed verification are budgeted by source network and those of verified callers by issuer and subject, so neither crowds out the other; past a caller’s limit its refusals become one summary record with the count and the EHR ids they named, and past a budget one summary record per issuer and outcome is written. Security-event refusals are recorded for every answered request, and a refusal record the system log cannot take is counted inatna_audit_refusals_unwritten. The limits, windows and budgets are kept per replica (#5119). -
A
chainedorganisation request under a federation agreement is served only when its token carries the requester’s correlation id in the claim or attestedauthorization_detailsmember the issuer’s[[auth.federation]]table maps tocorrelation_id. Without it the request is refused with403and recorded under the binding coderefused-correlation-missing(audit migration0025); a request header never stands in for it. Theorganisationaccess record’sagreementcarries the id and its source beside the legal ground and the access class. A chained agreement whose issuer maps nocorrelation_id, or maps it from a constant, refuses the start (#5120). -
On the MyHealth@EU contact-point route, the committer of an external person names the professional by the HP Identity Assertion’s
NameID:DV_IDENTIFIER{issuer = the assertion's issuer, id = the NameID, type = "hp_identifier:<NameID format>"}, beside the voucher’soauth2identifier (eHDSI SAML Profile 10.0.0 §2.1), and a dispensation’s discard is a logical delete under the same committer. A contact point’s COMPOSITION must carry the HCPO’sorganization-idinEVENT_CONTEXT.health_care_facility.identifiers, under the issuerurn:oasis:names:tc:xspa:1.0:subject:organization-id, beside the provider’s identifier, or it is refused with422.ferrohealth-smartmoves to 0.9.4, which readsehdsi.assertion.name_id_formatand refuses a contact-point token without one of the three formats asERROR_HPI_INSUFFICIENT_INFORMATION; upgrade step: a contact point’s authorization server writes the NameID format into its tokens (#5144). -
A federation caller above its agreement’s
caller_rate, a MyHealth@EU contact point’s included, is answered429withRetry-Afterright after authentication and before any patient lookup, keyed on the token’s subject per replica, and every such refusal is counted into the caller’s summary record (#5149). -
A deleted SCIM User’s contacts are erased from every version of its
PERSON, keeping the name, the binding key and the identifiers for the record-keeping duties that need them.[scim] contact_erasure_minutes(default0, at most 43200) sets when:0erases them in theDELETEitself, a period leaves them to a sweep that runs every minute. Each erased version’s node rows are derived again from the new body, its server signature is removed, and the erasure is an access record namingparty:<id>#contacts. Party migration 0030 adds thescim_contact_erasuretable (#5178). -
openehr-rmtypes generic RM type names and paths:typing::RmTypeparses and prints names such asDV_INTERVAL<DV_QUANTITY>,typing::attribute_typegives an attribute of an instantiated class with the actual argument in place of the formal parameter, andtyping::path_typetypes every step of anRmPathwith its container. Eachmodel::RmAttributeandmodel::RmTypeRefkeeps the formal parameter it is written as (formal) beside the resolved bound.paths::write::item_at_path_mutandpaths::write::set_at_pathwrite at a path into a canonical instance, positional predicates included, creating the members the path names and changing nothing when a write is refused (#5187). -
openehr-sdt:flat::navigate::Navigatorgives every instance of a Web Template path in a composition, with each step’s occurrence, container index, positional path and JSON pointer, reaching a renamed instance where the template’s name is redundant and an OPT2 archetype root through the complete identifier the template recorded.flat::navigate::relativecompares two paths step by step.flat::attribute_keysgives the FLAT key of an RM attribute of a structural class (themaster05-rm_mapping.adoctables, checked against them). AWebTemplateNodecarriesfacts(the embedded template id of an OPT 1.4 archetype root and the terms its archetype defines) and every coded option itsterminology, so no consumer walks the operational template (#5189). -
openehr-basegives identifier and time parts as written:ObjectVersionId::object_id_strandObjectVersionId::versioned_object_idkeep the case of theobject_idpart,Iso8601Time::fraction_digitsandIso8601DateTime::fraction_digitsreturn the digits of the fractional second as text, andIso8601Duration::partsreturns each component’s designator and number verbatim (DurationDesignator,DurationPart), withIso8601Duration::fraction_digitsfor the seconds (#5190). -
openehr-itsreads the ITS-RESTETagas a typed entity tag:rest::etag::EntityTagparses and writes the RFC 9110 form, weak or strong, with the weak and strong comparisons. It types the tag as anObjectVersionIdor aHierObjectId. Every generated response-headers struct that carries anETaggainsentity_tag()beside the rawetagfield (#5191). -
openehr-termnames thenull_flavoursandsettinggroups:codes::NullFlavourandcodes::Settinggive each concept’s code and English rubric and read a code back, held equal to the bundled terminology by tests. Every typed group’sALLis now a slice (#5192). -
openehr-am:HridRefreads an archetype reference with the version precision it was written at (VersionPrecision: major, minor or full, BASE Artefact Identification §Referencing), gives the version as written and matches anArchetypeHridby the specification’s rule, the namespace never a wildcard.ArchetypeHrid::local_semantic_idgives the namespace-free interface form a Web TemplatenodeIdcarries, which thev2_4Web Template builder now uses (#5193). -
openehr-its:rest::stored_querytypes a stored query’s qualified name (QualifiedQueryName,[{namespace}::]{query-name}, withcheck_registrablerefusing the reservedaql), its version (QueryVersion,major.minor.patchin numeric order) and the version pattern a request addresses (VersionPattern, exact,{major}or{major}.{minor}, selecting the highest match), per ITS-REST 1.1.0. The generated stored-query operations and theStoredQueryandRESULT_SETdocuments carry them, so a name or version outside the grammar is a400where the request is decoded (#5207). -
openehr_rm::Generation::earliest_for_compositionanswers the oldest RM generation whose canonical-JSON decode accepts a composition, so a builder can nameARCHETYPED.rm_versionwithout naming a generation module; a value no generation decodes is a typedNoGenerationDecodeserror carrying every generation’s refusal (#5242).
Changed
-
The published server, viewer and PostgreSQL images take their
org.opencontainers.image.base.nameandbase.digestlabels and annotations from the runtime stage’s digest-pinnedFROMline at build time, so a base-image bump changes that one line. An image built directly from a Dockerfile no longer carries these two labels (#4953). -
[auth]takes theferrohealth-smart0.9 shape. Every trusted issuer is an[[auth.issuer]]table with a requiredkind(persons,patients,machinesorfederation) and aprofile(rfc9068by default, orentra,keycloak,okta,nl), and holds every setting of its tokens itself. A configuration in the old shape refuses the start, naming what replaces it. Upgrade steps: write a flatissuer = "…"as an[[auth.issuer]]table; moveaudience,algorithms,clock_skew_seconds,jwks_max_age_seconds,jwks_refresh_interval_seconds,jwks_file,timeout_ms,mode,role_claimsand[auth.introspection]onto each issuer table ([auth.issuer.introspection]); give each issuer itskind, with patients and professionals at separate issuers (a realm or tenant each), since one issuer is one kind; replacetoken_profile = "jwt"withtoken_types = ["JWT"]and therequired_claimsthe issuer’s tokens carry, and droptoken_profile = "rfc9068"; and write eachscopeless_subjectsentry as{ issuer = "…", sub = "…" }(#5003). -
A
personstoken is admitted only through a client its issuer lists infirst_party_clientsordelegates. Upgrade step: list the deployment’s own clients, the viewer’s among them, infirst_party_clients, and a third-party client that acts for a person indelegates. The other 0.9 profile keys (person_key,tenant_claim,client_claims,app_only,guest,impersonation_marker,expect,user_claims,person_equality,unstable_claims,max_actor_chain,representation,scope_claim,app_only_scope_claim,adapter,sender_constraintand theonward_*keys) are documented in the configuration reference (#5003). -
An array of tables, such as
[[auth.issuer]], is set from the environment by element index (FERROEHR__AUTH__ISSUER__0__ISSUER), throughferrohealth-config0.2.10 (#5003). -
[smart] issuer_metadata_fileis the metadata of the[auth]issuer it names, wherever that issuer stands in the list, and a file naming no[auth]issuer refuses the start. The SMART discovery document describes the first introspected issuer, else that named issuer, else the first issuer whose metadata is read from it, else the first issuer, so a Basic users’ issuer listed first no longer takes the discovery document (#5003). -
The family crates move together:
ferrohealth-smart0.9.1,ferrohealth-authz0.3.0,ferrohealth-session0.3.1,ihe-atnaandehds-logging0.4.0,ihe-iti0.0.76,ferrohealth-config0.2.10,ferrohealth-server0.5.1 andferrohealth-ui0.6.9.ihe-atnaandehds-loggingnow escape every control and bidirectional formatting character of a value they write as its code point. Withferrohealth-ui0.6.9 the viewer’s session watch no longer throws when the party relationship form, which holds a control namedtarget, is submitted (#5003). -
The terminology client moves to
ferrobridge-term0.1.143 (FerroBRIDGE v0.0.22), which takes theferrohealth-smart0.9 token source (#5003). -
Every person is bound to a demographic party, with no switch. A
personsissuer needs its[[auth.party]]table, two issuers of one node may not share an audience, and[authz.party_binding] provider(the healthcare provider the deployment acts for, EHDS Art. 13(4) and Annex II 3.2(a)) is required once[auth]admits a credential; each refuses the start naming what to set. A Basic user is a person: it maps to the binding key of itsPERSONin[[authz.party_binding.basic_user]](user,key_issuer,key), and a Basic user without a mapping refuses the start, naming the user. Upgrade steps: add an[[auth.party]]table to eachpersonsissuer, setprovider, and map each Basic user under theidentifier_issuerof an[[auth.party]]table, which needs apersonsissuer; a deployment of Basic users alone declares one whosejwks_fileis a key set that signs nothing, as the quickstart and the sandbox do (#5003). -
A token grants
[authz.rbac] admin_role,emergency_access_role,import_roleandidentifier_reader_roleonly when its issuer is listed in the new[authz.rbac] role_issuers, each apersonsissuer; any other kind refuses the start. Upgrade step: list the issuers whose role claims grant these roles; a Basic user keeps the roles its own table grants (#5003). -
The compose quickstart, the dev and conformance stacks, the hosted sandbox and the Helm chart’s Basic overlays bind their Basic users under a
personsissuer that signs nothing: its key set, which every FerroEHR image carries at/opt/sandbox-posture/basic-users-jwks.json, is the public half of a key pair whose private key was discarded (#5003). -
The quickstart has one copy.
docker-compose.ymlonmainpulls the FerroEHR images at:mainand carriesmain’s configuration, which CI checks with the server image the change builds; the copy attached to each release pulls that release’s images, written by the release lane, which refuses a copy that still names:main. Download the release asset (releases/latest/download/docker-compose.yml) to run a release (#5003). -
The Helm chart moves to 22.0.0.
config.auth.issueris a list of issuer tables, each with itskind,profileandaudience, andvalues.yamlexposesconfig.auth.party,config.authz.party_binding,config.authz.rbac.role_issuers,config.authz.system_clientandconfig.authz.federation.agreement. The chart refuses an issuer withsender_constraint: requiredbesidereplicaCountabove 1 or autoscaling. Upgrade steps: rewriteconfig.authas the[auth]upgrade above describes, setconfig.authz.party_binding.provider, and list the issuers whose roles grant the administrator role inconfig.authz.rbac.role_issuers(#5003). -
A caller bound to a demographic
PERSONcommits under the committer the server writes: aPARTY_IDENTIFIEDwith thePERSON’s name, the login identifier (the issuer profile’sperson_keyvalue under the token issuer, typeoauth2, or the Basic user underferroehr, typebasic), the provider identifier (typehealthcare-provider) and anexternal_refto thePERSON, on every commit path, attestations and CONTRIBUTIONs included. Upgrade: stop sending a committer, or send the placeholder{"_type": "PARTY_IDENTIFIED", "identifiers": [{"_type": "DV_IDENTIFIER", "issuer": "<iss>", "id": "<sub>"}]}, which must name the authenticated caller; a stated committer with another name, identifier orexternal_ref, and a statedPARTY_RELATED, is refused with403(#5005). -
A patient’s committer is
PARTY_SELFwith noexternal_ref, and a representative commits as aPARTY_RELATEDnaming their ownPERSONand the coded relationship. A patient-context token commits no demographic version. Upgrade: read the person’s own entries by the committer’sPARTY_SELFtype, not by its formerexternal_ref(#5005). -
Importing an EHR Extract needs the role
[authz.rbac] import_rolenames, or asystem/caller, and a wrapped committer naming a party or a login of this deployment is refused unless its version was created by a system[authz.import] trusted_systemslists. Upgrade: setimport_roleand give it to the accounts that import (#5005). -
A person of a
personsissuer whose login no demographic party carries is refused with403andrefused-unboundon every request, with no fallback to a login-only committer. The problem names the identifier issuer to provision the person under, a token without the key claim is refused with a problem naming that claim, and each refusal counts into the newbinding_refusalsmetric by issuer and outcome. The Keycloak quickstart overlay provisions its four demo users through SCIM with theferroehr-provision-keycloakone-shot. Upgrade: provision every professional (through SCIM or the demographic API) before you add apersonsissuer to the upgraded deployment (#5006). -
A deployment whose FerroBRIDGE facade or FerroFED gateway writes to FerroEHR adds its
personsissuers only after the bridge and the gateway reach it under the caller: FerroBRIDGE v0.0.23 and FerroFED v0.0.17. Until then the committer rule refuses their writes. FerroFED v0.0.17 follows this release, so a deployment with a FerroFED gateway adds itspersonsissuers only once that release is out. The book’s new “Party binding: bootstrap and migration” page carries the bootstrap path, the four migration steps and these prerequisites, and “Breaking changes of party binding” lists every incompatible change with its upgrade step (#5009). -
The hosted sandbox follows the bootstrap path of party binding: its configuration declares the
sandbox-scimclient ([[scim.client]], with the development issuer trusted as amachinesissuer for it), the box’s newferroehr-provisionservice provisions the demoPERSONthrough/scim/v2/after every reset, andscripts/sandbox/reseed.shwaits for the demo login to bind before it seeds, then checks the committer of the marker’sEHR_STATUSversion references aPERSON. The deploy probe’s newbootstrapfamily (P-BOOTSTRAP-01) shows the compose quickstart does the same from an empty database: the quickstart user is a User of the SCIM client, and a commit of the Basic user names thatPERSON(#5009). -
With a party mapping configured, the parties the login binding relies on are written through the demographic API by an administrator (
authz.rbac.admin_role) only: aPERSONof a mapped template carrying a binding key,userNameorexternalId, its professionalROLE, a representation relationship, and aGROUPof the group template. Any other caller’s write is refused with403, a version that changes a present binding key is refused with403, and an administrator’s version that leaves a protected identifier out is refused with422. Upgrade: write these parties as an administrator, and change a key throughPOST /admin/party/binding-key(#5013). -
FerroEHR records every DPoP proof it accepts in its PostgreSQL database until the proof’s window ends, so a proof is accepted once across all replicas, and a proof replayed to another replica is refused there (RFC 9449 §11.1). If the database cannot record a proof, the request is refused with
503. The Helm chart (22.1.0) no longer refuses an issuer withsender_constraint: requiredbesidereplicaCountabove 1 or autoscaling (#5072). -
An AQL query scoped to one EHR now takes the streaming plan shape whatever its
ORDER BY,DISTINCTor aggregates, whether the EHR comes from theehr_idrequest parameter or from anehr_id/valueequality in the query. On a store of 100,000 compositions such a query used to spend 16 to 64 ms in PostgreSQL’s planner for an execution of about 1 ms, on every new connection and every new statement text; it now plans in 1 to 3 ms (#5076). -
The Helm chart (23.0.0) connects FerroBRIDGE to the CDR as a machine. FerroBRIDGE uses an OAuth 2.0 client credentials client of a
machinesissuer that the CDR trusts, set inbridge.cdr.oauth(issuer,clientId, and optionallyscope,audienceandresource). The client secret comes from theclient_secretkey ofbridge.cdr.existingSecret. The chart no longer accepts a Basic user for this connection: from ferrohealth-smart 0.9 a Basic credential belongs to a person and holds nosystem/scope. The chart refuses to render whenbridge.cdr.oauth.issueris not listed inconfig.auth.issuerwithkind: machines. To upgrade, add that issuer, create the client, and replace theuserandpasswordkeys of the Secret withclient_secret(#5085). -
A verified external person’s commit records the professional as its committer: a
PARTY_IDENTIFIEDwith the asserted name, thehp_identifierunder the issuer"<country_code>:<issuing_authority_name>"and the token’sissandsub, with noexternal_ref. A country code that is no upper-case ISO 3166-1 alpha-2 code, or an issuing authority holding a:, control or bidi character, is refused with403naming the field. The COMPOSITION must name the token’s healthcare provider (provider.healthcare_provider_identifierunderprovider.issuing_authority_name) as itshealth_care_facility, or it is refused with422. Upgrade step: mapprovider.issuing_authority_namein each[[auth.federation]]table whose agreements carrywrites, with aconstantsource where the token does not carry it (#5097). -
A system caller (an app-only token by its issuer profile’s
app_onlymarkers) holdssystem/scopes only: a token carrying auser/orpatient/scope is refused with403. It commits into an EHR only as a client an[[authz.system_client]]table declares, under the committerPARTY_IDENTIFIED{name = <client>, identifiers = [{issuer = <iss>, id = <client>, type = "client"}]}, and each COMPOSITION it commits must be of a template itswriteslists (403), name a facility itsfacilitieslists incontext.health_care_facility, or infeeder_audit.originating_system_audit.locationwhen it has no context (422), and be either a device act from adeviceclient or a relayed person act naming the professional by an identifier from arelayclient. Upgrade: declare every client that commits in[[authz.system_client]]with itswrites,facilitiesandorigins, and give its compositions the facility identifier (#5100). -
An attestation is accepted only from a caller bound to a professional
PERSON; one from a patient, a representative, a system caller or an unbound caller is refused with403. Upgrade: attest under the professional’s own token (#5100). -
A guest of a
personsissuer, by its profile’sguestmarkers, is refused with403(refused-guest) unless the issuer’s[[auth.party]]table setsguests = true. Upgrade: setguests = trueon the issuers whose guests act under your responsibility (#5100). -
A verified external person or organisation of a
federationissuer is admitted only under the[[authz.federation.agreement]]of its issuer and accessor, holding no scope beyond the agreement’sreads, and is an access-service caller by its kind: an opted-out EHR answers404to it, and only an external person under an agreement withopt_out_overridereaches one under an emergency purpose. It commits only a COMPOSITION of a template the agreement’swriteslists (an organisation nothing), and a read under aconsent-conditioned agreement, and every request under an NL agreement, is refused until the consent decision reference and the Wabvpz Art. 15f roles can be read. Upgrade: declare an agreement for everyfederationissuer and accessor, list the issuer in[smart] patient_issuers, and give its tokens only thepatient/scopes the agreement reads (#5101). -
Under an NL
[[authz.federation.agreement]], Wabvpz Art. 15f now decides admission in place of the refusal of every request. A caller whosenl.roleis the UZI role 01.008 (bedrijfsarts) or 01.048 (verzekeringsarts) is refused with403asrefused-wabvpz-role, and a caller whosenl.organisation_typeis missing or is not a care provider type of Nictiz’sOrganisatieTypeCodelijstis refused with403asrefused-wabvpz-organisation-type, so an insurer is refused. Every NL agreement declarespurpose = "care"; one without a purpose, or for akeuring, refuses the start. The code lists are vendored byscripts/vendor/nl-role-codes.shintodocs/specs/nl-role-codes/. Upgrade: addpurpose = "care"to every NL agreement and mapnl.organisation_type(andnl.rolefor persons) in its issuer’s[[auth.federation]]table (#5107). -
A delegated token’s access record now has
acting_mode = "delegated"where it hadclient, and a system caller’ssystem. The FHIR rendering still names a delegated access as a client one. Upgrade: a review query that selects delegated access byacting_mode = 'client'also selects'delegated'(#5118). -
FerroEHR builds on
ferrohealth-server0.6.1, whose public caller-rate take holds a federation caller to its agreement’scaller_rate. Its 0.6.0 break, therevocationfeature’s move toder0.8, touches no feature FerroEHR enables (#5149). -
The source tree no longer carries the UZI role code CodeSystem (
uzi-rolcode) of Nictiz’s zib 2020 package: its codes and titles reproduce the UZI-register CPS, which CIBG does not license for reproduction.scripts/vendor/nl-role-codes.shwrites it into the git-ignored.vendor-cache/nl-role-codes/, as it does the CPS, and--test-inputsfetches only what the Wabvpz tests read. Nictiz’s care provider types stay underdocs/specs/nl-role-codes/. Runscripts/vendor/nl-role-codes.sh --test-inputsonce before running theferroehr-resttests (#5175). -
[auth]takes three boot refusals fromferrohealth-smart: a Basic user’s hash below the Argon2id floor (m=19456, t=2, p=1), an issuer that carriesuserinfo, and private or symmetric key material in ajwks_file. They are refused as before, with the crate’s messages. Ajwks_filethat is no JWK Set now refuses the start where the crate reads the key set (#5209). -
The family crates move together to one
ferrohealth-smart: 0.13.1, withferrohealth-authz0.7.0,ferrohealth-session0.7.0,ihe-atnaandehds-logging0.8.0,ihe-iti0.0.83,ferrohealth-server0.6.4 andferrobridge-term0.1.148. The 0.13 line refuses a JSON document it cannot read without quoting it (GHSA-mhv7-3975-6xq3), so ajwks_fileor[smart] issuer_metadata_filethat does not parse is refused at boot with the crate’s message, which names the failure class and position; 0.13.1 keeps a refused key set, introspection or metadata body out of the error (GHSA-5qm7-v4fw-p2v9). The OAuth client credentials tables ([authz.abac.remote.oauth],[ehr_index.oauth],[terminology.oauth]and[audit.fhir_feed.oauth]) read as before (#5209). -
The API’s response security headers come from the family server stack (
ferrohealth-server0.6.2) with the same six headers and values. They now also reach the management listener on its own port, andStrict-Transport-Security: max-age=31536000is sent when FerroEHR or the viewer serves TLS itself ([server.tls], RFC 6797 §7.2). The viewer gainsCross-Origin-Resource-Policy: same-site(#5210). -
The server and the viewer read the parts of an
OBJECT_VERSION_IDthroughopenehr-baseand its BASE grammar, never by cutting at::. A value that is noOBJECT_VERSION_IDnow names no version: the AQL branch refusal, the version item tags and the viewer’s version numbers leave it alone, a reference to a container is read as the whole value (souuid::extensionno longer names the containeruuid), and the viewer’s deletes refuse it before calling the CDR. Every part keeps its case (#5211). -
ETagandIf-Matchvalues are read throughopenehr-its’s RFC 9110 entity tag on the server and in the viewer. The server accepts the same forms as before. The viewer reads its CDR’sETagstrictly: a value that is no entity tag names no version (#5212). -
The viewer’s audit screen reads the ITI-81 searchset and each
AuditEventas FHIR R4 resources, and a refusal’sOperationOutcometoo. A searchset that is no FHIR R4BundleofAuditEvents now shows as a failed read, never as a page of empty rows (#5214). -
The EHR index’s boot check reads the PIX Manager’s
CapabilityStatementthroughihe-iti’s PIXm client, with its transport and its client-credentials token, so a Manager behind IUA answers the probe as it answers ITI-83. A failed probe is reported as the client’s refusal: no answer, the status it answered, or no FHIR R4CapabilityStatement(#5216). -
[audit.syslog]reads its TLS material from[audit.syslog.tls], the outbound TLS table of every FerroHEALTH product (trust_roots_file,client_identity_fileorclient_identity,min_version), and handsihe-atnathe rustls configurationferrohealth-serverbuilds from it. The keystls_ca_file,tls_identity_cert_fileandtls_identity_key_fileare retired and refused at boot by name: name the roots file astrust_roots_file, and concatenate the client certificate chain and its private key into the one PEMclient_identity_filenames. The client speaks TLS 1.3 unlessmin_version = "1.2"lowers it (#5217). -
A SCIM Group membership is now held by the member: an inline
PARTY_RELATIONSHIPfrom the member’sPERSONto theGROUP, stored in thePERSON’s version (RM demographic §Party Relationships). A membership change versions only thatPERSON, so its cost no longer grows with the Group’s size. TheGROUPis versioned only by a rename, anexternalIdchange or its deletion. The Group’smembersis read from the membership index (#5220). -
A Group’s
ETagis now itsGROUPversion plus a membership revision, so it still changes with every membership change. The member User’sETagnow changes too, while its body stays the same (#5220). -
Deactivating a User (
active = false) drops all of its memberships in the same version, because an inactivePERSONcannot be versioned again. A reactivated User belongs to no Group until its client adds it again (#5220). -
Microsoft Entra ID’s disable-then-remove order now succeeds, since the later
removefinds nothing to remove. Anaddnaming an inactive User is400 invalidValue(“reactivate the User first”) (#5220). -
A refused SCIM write now names the rule it breaks in
detail(#5220). -
scripts/perf/scim-groups.shkeeps the database log,df -handfree -mof a failed run (#5220). -
A party commit no longer re-derives the login binding’s side table, the reverse-relationship index and the protection check from the whole stored body. Each hook reads what the committed body holds, derived once in memory, and writes only the rows that changed, and
ferroehr party-binding refillderives the rows with the same code. A party commit without a server signature no longer reassembles its body. A membership change at the cap of a 5 000-member SCIM Group went from 810 ms to 358 ms at p99 on a developer laptop (#5220). -
openehr-rmwrites the RFC 8785 canonical form aVERSIONsignature covers in one pass over the version, sorting each object’s members by reference. A 3.3 MBGROUPversion canonicalises about seven times faster than throughserde_jcs, with byte-identical output, so signed versions verify unchanged.serde_jcsremains the test oracle (#5220). -
The stored-query service takes the typed name, version and version pattern of
openehr_its::rest::stored_queryend to end, so it reads one grammar with the REST layer: the three-part{namespace}::{formalism}::{query-name}name, which ITS-REST 1.1.0Qualified_query_name.mddoes not define, is no longer accepted anywhere (the formalism is thequery_typeparameter), andDELETE /admin/query/{qualified_query_name}/{version}answers400for a name outside[{namespace}::]{query-name}or a version that is no exactmajor.minor.patch, where it answered404(#5223). -
Boot and
ferroehr config checkrefuse an[[auth.party]]table whoseidentifier_typeis thetypeof no[[authz.party_binding.person.template]]key, naming the issuer, the type and the types the templates write: no login of such an issuer could ever match a party, and every one would be refused. Upgrade step: give the deployment a person template whose key carries the table’sidentifier_type(or set the table to the type the template writes). The Helm CI and production values and the hosted sandbox now carry the professional PERSON and ROLE mapping, and the sandbox loads the two templates before the CDR starts (#5231). -
openehr_query::printer::to_aqlwrites eachWHEREcomparison with one space on each side of the operator (c/name/value = $nameValue), as the QUERY 1.1.0 AQL syntax examples do; path predicates keep their unspaced form ([ehr_id/value=$ehrUid]). The query builder’s generated AQL follows (#5241). -
openehr_sdt::flat::navigate::Navigatorowns what it copies from its Web Template (the name-fallback table and the OPT2 archetype references) and carries no template lifetime, so a consumer can keep it beside the template it was built from; it isDebug,Clone,SendandSync(#5243). -
Breaking: the configuration tree is one table per concern.
ferroehr.tomlmoves to[deployment],[api],[database],[auth](with[auth.smart]and[auth.scim]),[authz](with[[authz.origin]]),[management],[audit],[privacy](withidentifier_protection,cohortandaccess_delay),[record](withsubject_index,versioning,signing,query,change_feedandmultimedia),[terminology]and[pixm]. FerroEHR’s own keys take one duration type ("500ms","30s","10min","12h","7d", UCUM unit codes, so a bare number andmare refused), one size type ("256KiB","64MiB", IEC binary units, decimal units refused) and one calendar retention period ("P5Y","P1830D", unset keeps forever). An optional feature is on when its table is present:[terminology],[pixm],[auth.scim],[audit.syslog],[audit.fhir_feed],[privacy.identifier_protection]and[privacy.access_delay]carry noenabled;[authz.abac],[record.multimedia]and[auth.smart]keep a switch because some of their keys apply while off.record.subject_indexhas no default, so the server refuses to start until"pixm"or"local"is chosen.[api.cors]replacescors_permissivewith the Fetch Standard response headers (allow_origins,allow_methods,allow_headers,expose_headers,allow_credentials,max_age). The environment follows the tree (FERROEHR__DB__URLisFERROEHR__DATABASE__URL,FERROEHR__EHR_INDEX__PROVIDERisFERROEHR__RECORD__SUBJECT_INDEX). The Helm chart moves to its 25 line withconfig:on the same tree. Every key a release before v5.7.0 read is refused at load with its replacement named, all at once, soferroehr config check --config <old file>prints the whole move list; the refusals ship in v5.7.0 only and the next release removes them. To upgrade, runconfig checkon the old file and move each key it names:spec_profile,deployment_profile,deployment_acceptsandlicence.filearedeployment.spec_profile,deployment.profile,deployment.acceptsanddeployment.licence_file;[rest]is[api](swagger_uiisopenapi_ui,body_limit_bytesisbody_limit,cors_permissive = trueis[api.cors] allow_origins = ["*"],[rest.identity]is[api.options]withsolutionandvendor; the version keys are facts of the build),admin.enabledisapi.adminandterminology.api_enabledisapi.terminology;[db]is[database](acquire_timeout_secsisacquire_timeout,statement_timeout_msisstatement_timeout,migrateismigrations),[storage.<domain>]is[database.<domain>]and[storage.migrate.<domain>] urlis[database.<domain>] migrate_url;[smart]is[auth.smart](enabledisdiscovery,episode.enabledisepisode_launch,launch_base64_json = trueis"launch-base64-json"inauth.capabilities);[scim]is[auth.scim](max_resultsisfilter_max_results,deactivation_window_minutesisdeactivation_window,contact_erasure_minutesiscontact_erasure_delay);[authz.abac.cedar] reload_secsisreload_interval,[authz.abac.remote] server,connect_timeout_msandrequest_timeout_msareurl,connect_timeoutandtimeout,authz.party_binding.provisional_report_daysisprovisional_report_after, and an agreement’sdiscard_window_hoursandchained_log_retention_yearsarediscard_windowandchained_log_retention;[[origins.registered]]is[[authz.origin]];management.portismanagement.listen(anaddress:port) andmanagement.profiling.max_secondsismax_duration;audit.store.retention_daysandretention_yearsareaudit.store.retention,verify_interval_secondsandfull_verify_interval_secondsareverify_intervalandfull_verify_interval;[audit.syslog]hostandportareurl = "tls://host:port",spool_max_messagesisspool_max_events,spool_max_bytesisspool_max_size,retry_max_msisretry.max_backoff, and[audit.fhir_feed]poll_interval_msandretry_max_msarepoll_intervalandretry.max_backoff;[demographic.identifier_protection]is[privacy.identifier_protection],[cohort]is[privacy.cohort], and[access_delay]is[privacy.access_delay]withhoursasmax_delay;ehr_index.providerisrecord.subject_index("ihe"is"pixm") and the rest of[ehr_index]is[pixm](pixm_urlisurl,invocationismethod,request_timeout_msistimeout);versioning.skip_identical_resendisrecord.versioning.idempotent_resend;[signing]is[record.signing](key_pathiskey_file,retired_key_pathsisretired_key_files),[query]is[record.query](timeout_msistimeout),[outbox]is[record.change_feed](retention_daysisretention,prune_interval_secsisprune_interval), and[multimedia]is[record.multimedia](endpointisurl,threshold_bytesisthreshold, andallow_httpis retired: anhttp://url is plain HTTP);[terminology.server]is[terminology](fail_on_errorison_error = "accept" | "refuse",request_timeout_msistimeout). The family sections take the same types, fromferrohealth-server0.8,ferrohealth-telemetry0.4,ferrohealth-smart0.15 andferrohealth-session0.9:[server]request_timeout_ms,header_read_timeout_ms,idle_timeout_ms,drain_delay_ms,shutdown_timeout_msandretry_after_sarerequest_timeout,header_read_timeout,idle_timeout,drain_delay,shutdown_timeoutandretry_after,body_limit_bytesandcompression_min_bytesarebody_limitandcompression_min_size, and[server.tls] reload_interval_sisreload_interval;[telemetry.otlp]trust_roots_fileandclient_identity_filemove into[telemetry.otlp.tls], and anhttps://collector is dialed over it;[auth] ca_fileis[auth.tls] trust_roots_file, an[[auth.issuer]]table’sclock_skew_seconds,jwks_max_age_seconds,jwks_refresh_interval_secondsandtimeout_msareclock_skew,jwks_max_age,jwks_refresh_intervalandtimeout, its introspectioncache_max_age_secondsiscache_max_age,[auth.basic] cache_ttl_secondsiscache_ttl,[auth.dpop]max_age_secondsandclock_skew_secondsaremax_ageandclock_skew,[auth.idp.entra]timeout_msandmax_response_bytesaretimeoutandmax_response_size, and anoauthgrant’sca_file,client_certificate_fileandclient_key_fileare itstlstable’strust_roots_fileandclient_identity_file(one PEM), withrefresh_margin_ms,timeout_msandprevious_key_overlap_msasrefresh_margin,timeoutandprevious_key_overlap. The[auth]keys v5.6 read for every issuer (audience,algorithms,token_profile,jwks_file,mode,introspection,role_claimsand the rest) live on each[[auth.issuer]]table, andscopeless_subjectsentries are{ issuer, sub }tables. In the viewer,cdr.request_timeout_secsiscdr.timeout,[oidc] ca_fileis[oidc.tls] trust_roots_file,[oidc.tls]client_certificateandclient_keyareclient_identity_file, and[session]idle_timeout_s,absolute_timeout_sandsign_in_timeout_sareidle_timeout,absolute_timeoutandsign_in_timeout. Each of these is refused in v5.7.0 naming its replacement, in the CDR and the viewer alike (#5259). -
Breaking: a
patientstoken that names an actor is refused. Withferrohealth-smart0.15, apatientsissuer reads a token whose top-levelact(RFC 8693 §4.1) names someone other than the patient only when its[[auth.issuer]]table setsact_represents_patient = true; without it the token is refused401, where v5.6 admitted it as the patient’s own access. With it, FerroEHR refuses the token403(refused-patient-representative), because it binds no party to someone acting for a patient, and the access log records the refusal (#5259). -
SECURITY.md,security.txt(itsContact: mailto:field), the post-market record, the CRA technical documentation and the book’s compliance pages namesecurity@cadasto.comas the email route for a vulnerability report, in place ofinfo@cadasto.com, which stays the single point of contact for complaints and incidents, the manufacturer’s address on the running server and the address for licensing and other business questions (#5272). -
ferroehrandferroehr-viewerrun through the FerroHEALTH family’s run path. A configuration either binary refuses (an unknown or invalid key, a broken semantic rule, an[auth]table with no mechanism, a SCIM mapping it cannot serve, or for the viewer a TLS file that does not read or an unusable[oidc]or[session]table) now exits78(EX_CONFIGofsysexits(3)) where it exited1, so an orchestrator can tell a configuration to fix from a failure to retry. Every other failure still exits1, and the failure is written to stderr as one line with its whole cause, prefixed with the binary’s name. Upgrade: a script or probe that expects exactly1fromconfig checkon a refused file expects78(#5321). -
Breaking: the outbound integrations take the family’s endpoint table.
[terminology],[pixm],[audit.fhir_feed]and[authz.abac.remote]read where they call and how from one[<x>.endpoint]table, the same keys for every outbound integration of every FerroHEALTH product:url,timeout,connect_timeout,retry(max_attempts,initial_backoff,max_backoff),tls(trust_roots_file,client_identity_file,min_version) andcredentials(HTTP Basicuserwithpasswordorpassword_file, or the client credentials grant[...credentials.oauth]).terminology.url,timeoutand[terminology.oauth]areterminology.endpoint.url,timeoutand[terminology.endpoint.credentials.oauth];pixm.url,timeout,[pixm.tls]and[pixm.oauth]arepixm.endpoint.url,timeout,[pixm.endpoint.tls]and[pixm.endpoint.credentials.oauth];audit.fhir_feed.url,[audit.fhir_feed.retry]and[audit.fhir_feed.oauth]areaudit.fhir_feed.endpoint.url,[audit.fhir_feed.endpoint.retry]and[audit.fhir_feed.endpoint.credentials.oauth];authz.abac.remote.url,connect_timeout,timeoutand[authz.abac.remote.oauth]areauthz.abac.remote.endpoint.url,connect_timeout,timeoutand[authz.abac.remote.endpoint.credentials.oauth]. The v5.6 keys are refused naming their new home. Every client now honoursretry: the terminology, PIXm and remote policy clients try a call that got no answer or a5xxup tomax_attemptstimes (three by default; each tried once before), so setmax_attempts = 1to keep one attempt, and the FHIR feed’s delivery rounds takemax_attemptstries each, frominitial_backoff, before the round waitsmax_backoff; the feed still never gives a record up. The environment follows the tree (FERROEHR__TERMINOLOGY__ENDPOINT__URL,FERROEHR__AUDIT__FHIR_FEED__ENDPOINT__URL), and so do the Helm chart’s values and its client secret routing, in the chart’s 25 line (#5331). -
The FerroEHR PostgreSQL image is built on the 2026-11-09 respin of
postgres:18.6(sha256:e3d24f69…), a same-version respin with rebuilt base packages. A full scan of the rebuilt image on amd64 and arm64 finds the same findings as the image of the previous base, each judged insecurity/vex/postgres-os.openvex.json, and a gate scan finds no fixable HIGH or CRITICAL finding (#5332). -
The development and Keycloak example compose files run Keycloak 26.8.2 (
quay.io/keycloak/keycloak:26.8.2@sha256:723b1d6e…). Of the 26.8.2 upgrading notes, the shipped realm meets the ones that touch it: the Admin REST API’s new audience check passes for the master realm’sadmin-clitoken the browser-test harness uses, and the realm uses no token exchange, identity broker, SAML client, CIBA or dynamic client registration. Theferroehr-serviceclient-credentials token carries the same audience and scopes as under 26.8.1 (#5333).
Removed
-
[authz.professional](claim,client_tokens,acting_for_claim) and its403for a token that names no natural person. The issuer’skindand profile classify the caller, and the access record’s acting mode and professional come from that classification: a person’s own token is the person, and a delegated token is the client acting for the person it names. Upgrade step: remove the table, which refuses the start, and list a client that acts for a person in its issuer’sdelegates(#5003). -
The named refusal of
authz.rbac.user_role, which v5.6 introduced, is gone under the one-release rule for removal aids: the key is now refused as an unknown key when the configuration loads (#5259).
Fixed
-
A
553|incomplete|commit no longer refuses an empty mandatory archetype slot: RM common master06 §Incomplete Content sets every occurrences lower limit to zero, a slot’s included, while too many fillers are still refused. The OPT 1.4 writer now closes a mandatory slot once the fillers placed in it carry its lower bound, as ADL 2 §Slot Filling and Redefinition allows, and still refuses to close one they leave unmet (#5042). -
The example of a party template whose identity the template marks optional is a party of its class carrying one identity at every detail level, where the
requiredlevel answered500: RM demographicPARTY.identitiesadmits no party without one. A party template that constrains no identity at all answers400 Bad Requestnaming its class (#5057). -
An AQL
VERSIONstandard predicate oncommit_audit/time_committedapplies its operator:VERSION v[commit_audit/time_committed/value > $t]returns every version committed after$t, where it returned the trunk version current at$twhatever the operator (QUERY 1.1.0 master03 §Standard predicate). A number, boolean orNULLliteral as the bound, a string bound no ISO 8601 form reads, and atime_committedpath other than the whole value or/valueare refused with400(#5062). -
AQL refuses a number, boolean or
nullparameter or literal compared with a date/time path, inWHEREand in aVERSIONpredicate, with the same400a non-ISO 8601 string gets; such a bound used to becomeNULLand match nothing (#5064). -
The served OpenAPI document now lists, on both template example operations, the
400answered for a party template that constrains noPARTY_IDENTITY(#5066). -
The compose quickstart, the hosted sandbox and the Helm chart run FerroPIX 0.0.18 (
ghcr.io/ferrohealth/ferropix:0.0.18@sha256:6fb622b5b9ade34c8a4053112c8f166ff495d8b32bf99f35529d01e512b7cc42), with the FerroPIX chart 0.3.10 built for it. The 0.0.16 they pinned had an outbox sender that never slept while its outbox was empty, so an idle install kept about 1.2 CPU cores busy between FerroPIX and its PostgreSQL at about 8,000 transactions a second (FerroHEALTH/FerroPIX#490). 0.0.18 also makes FerroPIX’s[auth] scopeless_subjectsandrole_claimshold per issuer, which changes nothing for a FerroPIX that trusts one issuer, as every configuration FerroEHR ships does. The chart moves to 21.0.5 (#5073). -
An OPT2 built from a template that specialises a published archetype now carries that archetype, by its full id, as
parent_archetype_id, as theOPERATIONAL_TEMPLATEinvariantis_specialisedrequires (AOM2 §3.6.6), so a reader of the OPT finds the archetype its root specialises. The ADL form of an OPT still prints nospecializesection (OPT2 §Artefact Structure), so the parent travels in the canonical JSON form (#5075). -
A
refused-key-claim-missingaccess record names the key claim the issuer’s binding reads (itsperson_key) inbinding_detail.claim, so an operator sees which claim the token lacked. It records the name only, never a claim value (#5139). -
A
403for a caller kind is recorded with its own binding code:refused-system-personal-scopefor a system caller holding auser/orpatient/scope,refused-no-agreementfor an external caller whose issuer has no agreement for its accessor kind, andrefused-scope-beyond-agreementfor an external caller holding a scope its agreement does not read. Audit migration0024widens thebindingconstraint; the problem text of each refusal is unchanged (#5140). -
openehr-sdtbuilds no/contextnode, and nostart_timeorsettingleaf, in the Web Template of an OPT 1.4 whose COMPOSITION prohibitscontext(existence0..0, or anEVENT_CONTEXTof occurrences0..0), and the template example of such a template carries nocontext. A template that leavescontextopen or optional keeps the node as before (#5147). -
openehr-sdtgives the/contextnode it synthesizes in a Web Template theminof the template’s existence onCOMPOSITION.context, and0where the template leavescontextunconstrained, since the RM makescontextoptional (0..1). A client following the Web Template no longer treats the context as mandatory when the template does not require it, and therequiredtemplate example of such a template carries nocontext(#5154). -
An ADL2 template that deletes an attribute (
existence matches {0}), for exampleCOMPOSITION.context, keeps the prohibition after it compiles to its operational template:openehr-adl’screate_optnow returns aRawOptthat names each removed attribute beside the OPT, andbuild_web_template_v2_4takes that list. A template that deletescontextgets no/contextnode, and a commit that carries one is refused, as it is for an OPT 1.4 template that prohibitscontext. An OPT2 uploaded already compiled carries no such list and reads a deleted attribute at its reference-model existence. Breaking for crate users:create_optreturnsRawOptandbuild_web_template_v2_4takes the prohibited attributes (#5154). -
A composition commit whose
template_idnames a stored ADL2 archetype rather than a template is refused with422as an unknown operational template; it failed at the insert with a server error before (#5177). -
openehr-rmtypesREFERENCE_RANGE.rangeasDV_INTERVAL<T>:ReferenceRangeis now generic over its limit type (ReferenceRange<DvQuantity>on aDV_QUANTITY,ReferenceRange<DvOrdered>on the other ordered types), itsis_in_rangeandRange_is_simplework at that type, and the static RM model givesREFERENCE_RANGE.rangeandIMPORTED_VERSION.itemtheir argument. Eachmodel::RmAttributeandmodel::RmTypeRefnow keeps the formal parameter it is written as (formal,Some("T")forDV_INTERVAL.lower) beside the resolved bound. The RM class table declaresREFERENCE_RANGE<T>and leavesTunused; the generator restores it from a cited table and refuses a schema that no longer matches (#5196) (#5188). -
An access record names the client the token’s issuer profile reads from
client_claims(azpunder theentraandkeycloakprofiles), the one the caller was admitted as. A token carrying a differentclient_idclaim beside it was recorded under that claim. The[origins]register and the SCIM client lookup read the same client (#5194). -
An
IntervalorDV_INTERVALread from canonical JSON or XML that omits a boundedness or inclusion flag now takes it from its bound. An absent bound reads as unbounded and not included, and a present bound as bounded and included. A flag the wire states is kept as written. Before, an omitted flag always read as bounded and included, so an interval with only anuppercame out with a bounded, included lower side that had no value. ITS-JSON requires all four flags, and BASE ties none of them to its bound, so reading the omission is our own design (#5203). -
The viewer’s New contribution commits as the signed-in login. Each audit carries the placeholder naming that login, and the server records the committer it derives from the login. The free-text committer field is gone. For a login bound to a demographic
PERSON, a stated name that differs from thePERSON’s name was refused with403(#5222). -
The management surface answers a caller the login binding refuses with
403and its binding code, such asrefused-unbound, as every other route does, in place of401: the credential authenticated, so new credentials cannot help (RFC 9110 §15.5.4). An absent or invalid credential still answers401with its challenge (#5250). -
The party binding posture in
ferroehr reportand the boot log masks the user name and password of an issuer URL, as every other rendering of the configuration does (#5259). -
GET /definition/query/{namespace}::lists every stored query in the namespace again, where it answered400since the typed stored-query name: ITS-REST 1.1.0definition_query_listreads its name as a pattern in which an empty part is a wildcard, so::{name}also lists the names that start with it in any namespace.openehr-itsgainsrest::stored_query::QueryNamePattern, the type the generatedDefinitionQueryListParamscarries. The store and the single-query reads still refuse an empty name or namespace (#5268). -
The identifier scan (
[privacy.identifier_scan]) reads thenameof theELEMENTthat holds aDV_IDENTIFIERwhen the identifier’stypeis absent or names neither a person nor an item, with the same word rules. An untyped laboratory order number in theReceiver order identifierorRequester order identifierelement oflaboratory_test_result.v1that passes the NHS Number check by chance is now stored under the default rule set. A person word still wins, so an untyped value in an element namedNHS numberorPatient identifierstays scanned, and atypethat names a kind takes precedence over the element name (#5291). -
The Helm chart’s description and README name
config.deployment.profile, the key the chart refuses to render without since 5.7.0, and the README’s install command sets it; the command it showed set the oldconfig.deployment_profileand did not render (chart 25.0.1) (#5341).
Security
Shipped with functional changes because: the advisory reaches only a deployment that trusts several issuers, which no configuration FerroEHR ships does, and its fix changes what such a configuration must state at boot, so it lands on main beside the AQL version attestations already merged for this release; a security-only patch of the last release remains open to the release cut.
-
A Basic user never carries a
system/scope, throughferrohealth-smart0.9.1 (GHSA-jhg2-jwjp-hq74, CWE-269, CWE-863). Asystem/scope granted to a Basic user gave that person every resource of a type, a backend service’s reach. Such a user now refuses the start, naming the user and the scope. Upgrade step: give each Basic user theuser/scopes a person holds, and move each machine on Basic to a client of the authorization server under the client credentials grant (#5003). -
[auth] scopeless_subjectsandrole_claimshold per issuer, throughferrohealth-smart0.8.9 (GHSA-pfgx-xq28-2629, CWE-863, CWE-639). Before it, beside several[[auth.issuer]]tables both lists applied to every trusted issuer’s tokens: a token from any of them whosesubwas listed met every SMART on openEHR requirement without a scope, and any of them could assert every role the RBAC checks,ADMINincluded. An entry is now written<issuer>#<value>and holds for that issuer alone; beside several issuers a bare entry, or one naming an issuer the section does not trust, refuses the boot. Upgrade step for a deployment with several issuers: write eachscopeless_subjectsentry as<issuer>#<sub>, and write eachrole_claimspath as<issuer>#<path>for the issuers whose roles count (or setrole_claims = []to read none), since the defaultrole_claimsis bare and refused. A deployment with one issuer changes nothing (#5047). -
The
ferroehr-postgresimage carries zlib1g1:1.3.dfsg+really1.3.1-1+deb13u1from trixie-security, which fixes CVE-2026-76844 and CVE-2026-85091 (HIGH, heap overflows in zlib’s gzip writer) and CVE-2026-27171 (MEDIUM, an infinite loop incrc32_combine64). The image of 5.6.3 and earlier releases carries1:1.3.dfsg+really1.3.1-1+b1, judgedaffectedwith the upgrade as its action (security/vex/postgres-os.openvex.json). Theferroehrandferroehr-viewerimages keep the distroless base’s zlib, which neither program loads (security/vex/ferroehr-os.openvex.json) (#5137). -
The
ferroehrandferroehr-viewerimages move to thegcr.io/distroless/cc-debian13:nonrootbuild of 2026-11-08 (sha256:cc66d222…), whose zlib1g1:1.3.dfsg+really1.3.1-1+deb13u1fixes CVE-2026-76844 and CVE-2026-85091 (HIGH, heap overflows in zlib’s gzip writer) and CVE-2026-27171 (MEDIUM, an infinite loop incrc32_combine64). Neither program loads zlib. The images of 5.6.3 and earlier releases carry1:1.3.dfsg+really1.3.1-1+b1, judgedaffectedwith the upgrade as its action, as theferroehr-postgresimage of those releases is (security/vex/ferroehr-os.openvex.json) (#5152, #5329). -
CVE-2026-112321, CVE-2026-112322 and CVE-2026-112323 (memory and CPU exhaustion in
kadmindthrough the AUTH_GSSAPI handler) and CVE-2026-119079 (CPU exhaustion in the KDC decoding an AS-REQ or TGS-REQ) in MIT Kerberos 5 have no Debian fix for trixie and are judgednot_affectedinferroehr-postgres. The image carries neitherkadmind, a KDC norlibgssrpc, and the PostgreSQL server never decodes either request; the configuration FerroEHR ships enables no GSS-API authentication (security/vex/postgres-os.openvex.json) (#5344).
5.7.0-rc1 - 2026-11-10
5.7.0-rc1 is the first release candidate of 5.7.0, published for testing. 5.6.3 stays the stable release: this pre-release moves neither the latest image tags, the book under /docs/latest/ nor the hosted sandbox, it publishes no crates, and it receives no fixes; the next release candidate or 5.7.0 itself replaces it. Before you try it: the configuration is one table per concern with typed durations and sizes, so run ferroehr config check on your file first, which names every key a release before 5.7.0 read with its replacement, all at once; every person is bound to a demographic PERSON, so each persons issuer needs its [[auth.party]] table and each Basic user its [[authz.party_binding.basic_user]] mapping, with the steps on the book’s bootstrap and migration page; and a deployment whose FerroBRIDGE facade or FerroFED gateway writes to FerroEHR adds its persons issuers only after FerroBRIDGE v0.0.23 and FerroFED v0.0.17 reach it. Party migrations 0027 to 0032, clinical migration 0035 and audit migrations 0023 to 0025 add the binding, SCIM, DPoP replay and refusal tables, columns and codes. Helm chart 25.0.1-rc1 carries appVersion 5.7.0-rc1. Security carries two advisories, GHSA-jhg2-jwjp-hq74 and GHSA-pfgx-xq28-2629, the zlib fixes of CVE-2026-76844, CVE-2026-85091 and CVE-2026-27171 in the three images, and the not_affected judgements of four krb5 CVEs in the PostgreSQL image.
Added
-
AQL reads the attestations of a version:
v/attestationsand anyATTESTATIONattribute below it (is_pending,reason,proof,items,committer,time_committed) underFROM EHR e CONTAINS VERSION v CONTAINS COMPOSITION c, with predicates onattestationsandEXISTS, andv/commit_audit/is_pendingandv/commit_audit/reasonon a commit audit that is anATTESTATION.SELECT v/attestationsreturns the list, and a comparison belowattestationsholds when any attestation matches. The FerroEHR extension functionLAST(v/attestations/<path>)reads the most recent attestation, soWHERE LAST(v/attestations/is_pending) = truelists the versions awaiting signature, including one marked pending again after it was signed (#4989). -
The party binding’s configuration, each table with its boot refusals:
[authz.party_binding](provideras one table or one table per tenant,namespace,basic_user),[authz.import] trusted_systems,[[authz.system_client]](the provider, facilities, templates and origins of each client-credentials client that commits) and[[authz.federation.agreement]](what a federation issuer’s external persons or organisation may do, on which legal ground), with[authz.rbac] role_issuersandimport_role. A template an agreement or a system client writes that the store does not hold refuses the start. The boot line andGET /management/infolist the issuers with their kind and identifier issuer, the provider, and every agreement with its accessor and legal ground, and an agreement that admits an organisation without a named person is logged atwarn(#5003). -
[auth.idp.entra], the Microsoft Graph access of theidp-entraadapter offerrohealth-smart, which resolves the groups of an Entra ID groups overage for an issuer whose profile setsadapter = "idp-entra"(#5003). -
[auth.dpop]and[[auth.issuer]] sender_constraint: tokens bound to a DPoP key (RFC 9449) or a mutual-TLS client certificate (RFC 8705), checked on every request. A DPoP proof is recorded by the replica that accepted it, so the Helm chart refuses a sender-constrained issuer on more than one replica (#5003). -
The login binding reads the local party source on every request, with no cache: the new party migration
0027_binding_side_tableadds the indexedbinding_identifier,binding_membershipandbinding_representationrelations, written in each party commit’s transaction from thePERSONs of the mapped templates that perform a professionalROLEor represent another person, theirGROUPmemberships and their representation relationships, and rebuilt from the party versions alone. A login matching two parties, aninactive,abandonedor deleted party, a token without the key claim, a party without the needed marker and unreadable groups are refused with403and their binding code; a party store or identity provider that cannot answer is answered503(#5004). -
ferroehr definitions load <path>...stores OPT 1.4 (.opt) and ADL 2 (.adls) definitions beforeserve, through the validation and versioning of the REST upload. A file already stored with the same text is left alone and other text under a stored id is refused, so a deployment runs it at every start to give its party mapping the templates it needs at boot.deploy/definitions/professional/holds a professional PERSON and ROLE pair adapted from openEHR CKM archetypes for the development lanes and the quickstart (#5006). -
The compose quickstart binds its user to a professional
PERSON: theferroehr-definitionsone-shot loads the PERSON and ROLE templates the party mapping names before the server starts, andferroehr-provisioncreates the user through/scim/v2/Userswith a token of the development issuer, then reports healthy, sodocker compose up --waitreturns once the login is bound. The Helm chart (23.3.0) takesdefinitions.files, which an init container stores withferroehr definitions loadbefore the server container starts. The conformance, browser and Kubernetes lanes load the same templates and provision every login they use through SCIM, with the committed test client ofdocs/conformance/party/scim/(#5006). -
ferroehr party-binding adopt <PARTY_ID>...gives each preparedPERSONof an existing deployment a professionalROLEof the mapping’s role template, with thePERSONasperformer, and a newPERSONversion listing it inroles, all in one demographic CONTRIBUTION committed by the first administrator named with--adminor--admin-key, and writes one access record per adoptedPERSONthrough the configured audit trail. It refuses the whole adoption, naming them, while any listedPERSON’s key was introduced by a committer that is no[[scim.client]], named administrator or--migration, so a key planted before the upgrade is never adopted. APERSONthat already performs theROLEis reported and left alone. The report is JSON on stdout (#5009). -
ferroehr party-binding checkis the read-only pre-flight of a migration to party binding, and the one report of the provisional persons just-in-time creation left incomplete. It reads the party versions alone, so it runs before any boot fill, and writes nothing. Per key issuer it reports thePERSONs that carry a binding key, every selector value twoPERSONs carry, the inactive and abandoned ones, the provisional ones older thanprovisional_report_days, the key-bearing ones that perform no professionalROLE, and every mapped Basic user with thePERSONit binds. For each key it names the committer of the version that introduced it, and fails unless that committer is a[[scim.client]], an administrator named with--adminor--admin-key, a migration declared with--migration, or just-in-time creation on an issuer withjit = true.--expected <file>lists every login of the identity provider with noPERSON. The report is JSON on stdout, and the command exits non-zero on a duplicate, a missing person or a key that fails the provenance rule (#5009). -
At boot, FerroEHR logs a
warnnaming every Basic user mapped in[[authz.party_binding.basic_user]]while[authz.assurance] minimumis unset: a Basic credential carries no assurance level, so such a person is never refused on patient data (#5009). -
The one
PERSONmapping SCIM provisioning, just-in-time creation and the login binding share:[[authz.party_binding.person.template]]with the binding key,userNameandexternalIdselectors of each template,[[authz.party_binding.person.attribute]]with the SCIM attribute, the OpenID Connect claim and the path of each mapped value, and[authz.party_binding.professional_role],[authz.party_binding.group],[authz.party_binding.membership]and[authz.party_binding.representation]. Boot refuses a mapping that breaks one of its rules, naming the key, including a template that is absent, rooted at another class or lacks a mapped path, and deleting a template the mapping names is refused with409(#5013). -
The new party migration
0028_binding_selectorsholds each binding key,userName(compared after RFC 8265 width mapping, lower case and NFC),externalIdand groupdisplayNameto one live party, so a commit giving one a second party is refused with409. The first boot fills the side table under the mapping’s digest, a replica with another mapping refuses to start, andferroehr party-binding refillrebuilds it after a mapping change, refusing while a replica runs and naming the parties when a value is carried twice (#5013). -
POST /admin/party/binding-keyre-keys aPERSON’s binding key: it refuses the administrator’s own login and a key already bound, retires the old key in the same commit and writes one access record carrying both (#5013). -
[scim]mounts the SCIM 2.0 service provider at/scim/v2/(off by default):[[scim.client]]declares each provisioning client byissuer,client_id,scopeandbinding_issuer, andpublic_base_urlnames the origin its documents hang off./scim/v2/ServiceProviderConfiganswers without a token;/ResourceTypesand/Schemasanswer a declared client acting for nobody that holds its scope, within[server.caller_rate]. Every refusal is an RFC 7644Errormessage. The start is refused for a client of a non-machinesissuer, one declared twice, two clients sharing abinding_issuer, or abinding_issuerno[[auth.party]]table carries (#5014). -
The SCIM endpoint answers the Microsoft Entra ID provisioning client as Microsoft’s “Develop a SCIM endpoint” guide documents it: a value-filtered attribute such as
emails[type eq "work"].valueserves itstypeand declaresprimaryread-only, so theprimaryEntra sends is ignored (RFC 7644 §3.3); aPATCHofuserNamerenames the User; and the Test Connection probes are answered with an emptyListResponseand404.ferroehr config checkrefuses a[scim]the person mapping cannot serve, asservedoes. The Helm chart exposesconfig.scimand routes/scim/v2on every Ingress host when it is enabled, and the book walks an operator through provisioning from Entra ID, with the Workload Identity Federation checks the authorization server makes (#5014). -
/scim/v2/Users/{id}takesPUT,PATCHandDELETE: a write commits the next version of the professional’sPERSON, clearing a mapped attribute aPUTleaves out, keeping the binding key andexternalId, and moving the lifecycle state byactive(completeorincompletetoinactiveorabandonedand back, anabandonedUser completed in two versions, an attribute change to an inactive User refused until it is reactivated).DELETElogically deletes thePERSONand its professionalROLEin one CONTRIBUTION and leaves the binding key as a tombstone. AnIf-Matchnaming another version is412, andServiceProviderConfigdeclares PATCH.[scim] max_deactivationsanddeactivation_window_minutesbound the deactivations and deletions of one client, counted in the database so replicas share the bound, with429past it (#5014). -
/scim/v2/Usersserves a client’s Users:POSTcreates the professional’sPERSONand its professionalROLEin one demographic CONTRIBUTION,completewhen the template holds in full andincompleteotherwise,GET /Users/{id}answers with the version’s entity tag and304to a matchingIf-None-Match, andGET /Usersanswers aListResponsefiltered byeqandandoveruserName,externalIdandid, with any other filter400invalidFilter. A client sees only the Users whose binding key itsbinding_issuerissues, every SCIM request is an access record of the client naming thePERSON, andServiceProviderConfigdeclares entity tags. The start is refused when[scim]is on and the party mapping has no default person template with auser_nameselector or no professional role (#5014). -
/scim/v2/Groupsserves SCIM Groups as demographicGROUPs of[authz.party_binding.group], each member holding an inlinePARTY_RELATIONSHIPof[authz.party_binding.membership]from itsPERSONto theGROUP, with noROLEminted: create, read,eq/andfilters ondisplayName,externalIdandid,excludedAttributes=members,PATCH(answered204),PUTandDELETE, with the entity tags of Users. A Group belongs to the client that created it, its members are that client’s Users, itsdisplayNameis unique, and itsexternalIdsits under the client’sgroup_identifier_issuer. Aremoveofmemberswith avaluelist removes only those members, an Entra compatibility deviation from RFC 7644 §3.5.2.2. Deleting a User removes its memberships in the same CONTRIBUTION.[scim] max_group_members(default 5000) caps a Group (#5015). -
Just-in-time creation of a provisional
PERSONat a first login, off by default and enabled perpersonsissuer in a new[[authz.party_binding.issuer]]table (jit,guests_jit,user_name_claim,idp_claim,admit_idp,admit_groups,admit_roles,admit_assurance). A login of a person or a delegated caller that matches no party and meets every declared admission condition commits one553|incomplete|PERSONholding the binding key, theuserNameand the name claims of the access token, with its professionalROLE, as a creation by the person, and is served bound to it; any other mapped attribute is written only where its mapping setsjit = true, andexternalIdnever. Concurrent first requests commit onePERSON, a deprovisioned or inactive login is never recreated, a takenuserNamerefuses the login, and a SCIM client of the key’s issuer completes thePERSON. Boot refusesjitwithout an admission condition or a mapping that can write it.ferroehr party-binding checklists the provisional persons older than[authz.party_binding] provisional_report_days(default 30) (#5016). -
A party of a mapped template is validated against that template on every demographic write: a
PERSONorGROUPwhosearchetype_details.template_idnames a template of the shared party mapping, and aPARTY_RELATIONSHIPof its membership archetype. A532|complete|version must meet every constraint, and a553|incomplete|one may miss mandatory nodes but nothing it carries may be wrong (RM common master06 §Incomplete Content); the refusal is a422naming each failing path. Every other party keeps the reference-model checks alone, so parties created through the Demographic API under other templates are accepted as before (#5042). -
The FHIR
AuditEvent, the DICOM audit message and the ITI-20 syslog feed carry the binding fields of the access record: the binding outcome, the party and its groups, the provider acted for, the facilities of a system commit, the representation with its relationship, the actor chain, the external accessor’s asserted fields and the agreement with its legal ground, consent and access class, and achainedrequest’s correlation id.ehds-logging0.5.1 writes them as theehds-accessorandehds-relayedentities, in the DICOM message as participant objects of type Other. The FHIR record also writes theexternalandsystemacting modes. FerroEHR moves toehds-loggingandihe-atna0.5.1 andihe-iti0.0.77 (#5043). -
A bound representative reaches only the EHR whose
EHR_STATUSnames the subject it represents. Every composition,EHR_STATUS, directory, contribution and query request is held to that EHR whatever the token’s scopes cover, and a query must name it withehr_id. A representative whose token names a subject its party has no live representation relationship to, or whose issuer no[[auth.party]]table binds, is refused with403andrefused-representation-unrecorded(#5086). -
The Helm chart (23.1.0) accepts
bridge.cdr.oauth.tokenEndpointfor an authorization server whose metadata FerroBRIDGE cannot read atbridge.cdr.oauth.issuer. FerroBRIDGE then requests its client credentials token from that endpoint, andissuerstill names themachinesissuer the CDR trusts (#5093). -
A MyHealth@EU contact point’s caller (a
contact_point = truefederationissuer) reaches patient data only for the patient of its treatment relationship confirmation. The token’sehdsi.patient.id(system|value) is resolved to its EHR through the EHR index, and every patient-data request must name that EHR. A token without it is refused with403andERROR_SEC_DATA_INTEGRITY_NOT_ENSURED, recorded asrefused-trc-missing. Another patient’s EHR, an unknown EHR and a request naming no EHR all answer one404of the new problem typetrc-patient-mismatch, carrying the agreement service’s*_NOT_FOUNDcode and recorded as arefused-trc-patient-mismatchsecurity event (eHDSI XCA Profile 8.0.1 §4.2.1, §4.2.2). A contact point’s person agreement now names itsehdsi_service; upgrade step: set it, and list the issuer in[smart] patient_issuers(#5102). -
An external person under an agreement with
discarddiscards a dispensation of a listed template, as a logical delete, withindiscard_window_hoursand from the same point of care: the dispensation’shealth_care_facilitycarries the token’s provider identifier and its eHDSIorganization-id. A token carrying permissions records and discards a dispensation only withPPD-046(eHDSI SAML Profile 10.0.0 §2.5) (#5102). -
A read under a federation agreement with a
consentcondition is served when the token carries the consent decision reference for its patient (Wabvpz Art. 1(j) and Art. 15a(1)), in the claim orauthorization_detailsmember the issuer’s[[auth.federation]]table maps toconsent.reference, and refused with403without it. The reference is one string, the token’spatient/grant holds it to the launch-context patient, and the access record carries it with the other external fields.ferrohealth-smartmoves to 0.9.3, which reads the field (#5106). -
Every access record of an authenticated request carries the outcome of the party binding (
binding:bound,provisional,external,organisation,system,selfor arefused-*code) with the fields it needs: the bound party, its groups, the provider, the guest mark, a representative’s representation, a delegated token’s actor chain, a verified external accessor’s fields and agreement, and the facilities a system caller’s compositions named.acting_modegainsdelegated,externalandsystem. The audit migration0023_binding_outcome.sqladds the columns and restores a per-row digest version: records written before stay version 1 and keep verifying, new records are version 2, and a version-1 record after a version-2 one is refused (#5118). -
Every refused request is an access record through the gated path, and a refusal of the login binding or of a caller kind carries its
refused-*binding code and the party it names. Refusals of tokens that failed verification are budgeted by source network and those of verified callers by issuer and subject, so neither crowds out the other; past a caller’s limit its refusals become one summary record with the count and the EHR ids they named, and past a budget one summary record per issuer and outcome is written. Security-event refusals are recorded for every answered request, and a refusal record the system log cannot take is counted inatna_audit_refusals_unwritten. The limits, windows and budgets are kept per replica (#5119). -
A
chainedorganisation request under a federation agreement is served only when its token carries the requester’s correlation id in the claim or attestedauthorization_detailsmember the issuer’s[[auth.federation]]table maps tocorrelation_id. Without it the request is refused with403and recorded under the binding coderefused-correlation-missing(audit migration0025); a request header never stands in for it. Theorganisationaccess record’sagreementcarries the id and its source beside the legal ground and the access class. A chained agreement whose issuer maps nocorrelation_id, or maps it from a constant, refuses the start (#5120). -
On the MyHealth@EU contact-point route, the committer of an external person names the professional by the HP Identity Assertion’s
NameID:DV_IDENTIFIER{issuer = the assertion's issuer, id = the NameID, type = "hp_identifier:<NameID format>"}, beside the voucher’soauth2identifier (eHDSI SAML Profile 10.0.0 §2.1), and a dispensation’s discard is a logical delete under the same committer. A contact point’s COMPOSITION must carry the HCPO’sorganization-idinEVENT_CONTEXT.health_care_facility.identifiers, under the issuerurn:oasis:names:tc:xspa:1.0:subject:organization-id, beside the provider’s identifier, or it is refused with422.ferrohealth-smartmoves to 0.9.4, which readsehdsi.assertion.name_id_formatand refuses a contact-point token without one of the three formats asERROR_HPI_INSUFFICIENT_INFORMATION; upgrade step: a contact point’s authorization server writes the NameID format into its tokens (#5144). -
A federation caller above its agreement’s
caller_rate, a MyHealth@EU contact point’s included, is answered429withRetry-Afterright after authentication and before any patient lookup, keyed on the token’s subject per replica, and every such refusal is counted into the caller’s summary record (#5149). -
A deleted SCIM User’s contacts are erased from every version of its
PERSON, keeping the name, the binding key and the identifiers for the record-keeping duties that need them.[scim] contact_erasure_minutes(default0, at most 43200) sets when:0erases them in theDELETEitself, a period leaves them to a sweep that runs every minute. Each erased version’s node rows are derived again from the new body, its server signature is removed, and the erasure is an access record namingparty:<id>#contacts. Party migration 0030 adds thescim_contact_erasuretable (#5178). -
openehr-rmtypes generic RM type names and paths:typing::RmTypeparses and prints names such asDV_INTERVAL<DV_QUANTITY>,typing::attribute_typegives an attribute of an instantiated class with the actual argument in place of the formal parameter, andtyping::path_typetypes every step of anRmPathwith its container. Eachmodel::RmAttributeandmodel::RmTypeRefkeeps the formal parameter it is written as (formal) beside the resolved bound.paths::write::item_at_path_mutandpaths::write::set_at_pathwrite at a path into a canonical instance, positional predicates included, creating the members the path names and changing nothing when a write is refused (#5187). -
openehr-sdt:flat::navigate::Navigatorgives every instance of a Web Template path in a composition, with each step’s occurrence, container index, positional path and JSON pointer, reaching a renamed instance where the template’s name is redundant and an OPT2 archetype root through the complete identifier the template recorded.flat::navigate::relativecompares two paths step by step.flat::attribute_keysgives the FLAT key of an RM attribute of a structural class (themaster05-rm_mapping.adoctables, checked against them). AWebTemplateNodecarriesfacts(the embedded template id of an OPT 1.4 archetype root and the terms its archetype defines) and every coded option itsterminology, so no consumer walks the operational template (#5189). -
openehr-basegives identifier and time parts as written:ObjectVersionId::object_id_strandObjectVersionId::versioned_object_idkeep the case of theobject_idpart,Iso8601Time::fraction_digitsandIso8601DateTime::fraction_digitsreturn the digits of the fractional second as text, andIso8601Duration::partsreturns each component’s designator and number verbatim (DurationDesignator,DurationPart), withIso8601Duration::fraction_digitsfor the seconds (#5190). -
openehr-itsreads the ITS-RESTETagas a typed entity tag:rest::etag::EntityTagparses and writes the RFC 9110 form, weak or strong, with the weak and strong comparisons. It types the tag as anObjectVersionIdor aHierObjectId. Every generated response-headers struct that carries anETaggainsentity_tag()beside the rawetagfield (#5191). -
openehr-termnames thenull_flavoursandsettinggroups:codes::NullFlavourandcodes::Settinggive each concept’s code and English rubric and read a code back, held equal to the bundled terminology by tests. Every typed group’sALLis now a slice (#5192). -
openehr-am:HridRefreads an archetype reference with the version precision it was written at (VersionPrecision: major, minor or full, BASE Artefact Identification §Referencing), gives the version as written and matches anArchetypeHridby the specification’s rule, the namespace never a wildcard.ArchetypeHrid::local_semantic_idgives the namespace-free interface form a Web TemplatenodeIdcarries, which thev2_4Web Template builder now uses (#5193). -
openehr-its:rest::stored_querytypes a stored query’s qualified name (QualifiedQueryName,[{namespace}::]{query-name}, withcheck_registrablerefusing the reservedaql), its version (QueryVersion,major.minor.patchin numeric order) and the version pattern a request addresses (VersionPattern, exact,{major}or{major}.{minor}, selecting the highest match), per ITS-REST 1.1.0. The generated stored-query operations and theStoredQueryandRESULT_SETdocuments carry them, so a name or version outside the grammar is a400where the request is decoded (#5207). -
openehr_rm::Generation::earliest_for_compositionanswers the oldest RM generation whose canonical-JSON decode accepts a composition, so a builder can nameARCHETYPED.rm_versionwithout naming a generation module; a value no generation decodes is a typedNoGenerationDecodeserror carrying every generation’s refusal (#5242).
Changed
-
The published server, viewer and PostgreSQL images take their
org.opencontainers.image.base.nameandbase.digestlabels and annotations from the runtime stage’s digest-pinnedFROMline at build time, so a base-image bump changes that one line. An image built directly from a Dockerfile no longer carries these two labels (#4953). -
[auth]takes theferrohealth-smart0.9 shape. Every trusted issuer is an[[auth.issuer]]table with a requiredkind(persons,patients,machinesorfederation) and aprofile(rfc9068by default, orentra,keycloak,okta,nl), and holds every setting of its tokens itself. A configuration in the old shape refuses the start, naming what replaces it. Upgrade steps: write a flatissuer = "…"as an[[auth.issuer]]table; moveaudience,algorithms,clock_skew_seconds,jwks_max_age_seconds,jwks_refresh_interval_seconds,jwks_file,timeout_ms,mode,role_claimsand[auth.introspection]onto each issuer table ([auth.issuer.introspection]); give each issuer itskind, with patients and professionals at separate issuers (a realm or tenant each), since one issuer is one kind; replacetoken_profile = "jwt"withtoken_types = ["JWT"]and therequired_claimsthe issuer’s tokens carry, and droptoken_profile = "rfc9068"; and write eachscopeless_subjectsentry as{ issuer = "…", sub = "…" }(#5003). -
A
personstoken is admitted only through a client its issuer lists infirst_party_clientsordelegates. Upgrade step: list the deployment’s own clients, the viewer’s among them, infirst_party_clients, and a third-party client that acts for a person indelegates. The other 0.9 profile keys (person_key,tenant_claim,client_claims,app_only,guest,impersonation_marker,expect,user_claims,person_equality,unstable_claims,max_actor_chain,representation,scope_claim,app_only_scope_claim,adapter,sender_constraintand theonward_*keys) are documented in the configuration reference (#5003). -
An array of tables, such as
[[auth.issuer]], is set from the environment by element index (FERROEHR__AUTH__ISSUER__0__ISSUER), throughferrohealth-config0.2.10 (#5003). -
[smart] issuer_metadata_fileis the metadata of the[auth]issuer it names, wherever that issuer stands in the list, and a file naming no[auth]issuer refuses the start. The SMART discovery document describes the first introspected issuer, else that named issuer, else the first issuer whose metadata is read from it, else the first issuer, so a Basic users’ issuer listed first no longer takes the discovery document (#5003). -
The family crates move together:
ferrohealth-smart0.9.1,ferrohealth-authz0.3.0,ferrohealth-session0.3.1,ihe-atnaandehds-logging0.4.0,ihe-iti0.0.76,ferrohealth-config0.2.10,ferrohealth-server0.5.1 andferrohealth-ui0.6.9.ihe-atnaandehds-loggingnow escape every control and bidirectional formatting character of a value they write as its code point. Withferrohealth-ui0.6.9 the viewer’s session watch no longer throws when the party relationship form, which holds a control namedtarget, is submitted (#5003). -
The terminology client moves to
ferrobridge-term0.1.143 (FerroBRIDGE v0.0.22), which takes theferrohealth-smart0.9 token source (#5003). -
Every person is bound to a demographic party, with no switch. A
personsissuer needs its[[auth.party]]table, two issuers of one node may not share an audience, and[authz.party_binding] provider(the healthcare provider the deployment acts for, EHDS Art. 13(4) and Annex II 3.2(a)) is required once[auth]admits a credential; each refuses the start naming what to set. A Basic user is a person: it maps to the binding key of itsPERSONin[[authz.party_binding.basic_user]](user,key_issuer,key), and a Basic user without a mapping refuses the start, naming the user. Upgrade steps: add an[[auth.party]]table to eachpersonsissuer, setprovider, and map each Basic user under theidentifier_issuerof an[[auth.party]]table, which needs apersonsissuer; a deployment of Basic users alone declares one whosejwks_fileis a key set that signs nothing, as the quickstart and the sandbox do (#5003). -
A token grants
[authz.rbac] admin_role,emergency_access_role,import_roleandidentifier_reader_roleonly when its issuer is listed in the new[authz.rbac] role_issuers, each apersonsissuer; any other kind refuses the start. Upgrade step: list the issuers whose role claims grant these roles; a Basic user keeps the roles its own table grants (#5003). -
The compose quickstart, the dev and conformance stacks, the hosted sandbox and the Helm chart’s Basic overlays bind their Basic users under a
personsissuer that signs nothing: its key set, which every FerroEHR image carries at/opt/sandbox-posture/basic-users-jwks.json, is the public half of a key pair whose private key was discarded (#5003). -
The quickstart has one copy.
docker-compose.ymlonmainpulls the FerroEHR images at:mainand carriesmain’s configuration, which CI checks with the server image the change builds; the copy attached to each release pulls that release’s images, written by the release lane, which refuses a copy that still names:main. Download the release asset (releases/latest/download/docker-compose.yml) to run a release (#5003). -
The Helm chart moves to 22.0.0.
config.auth.issueris a list of issuer tables, each with itskind,profileandaudience, andvalues.yamlexposesconfig.auth.party,config.authz.party_binding,config.authz.rbac.role_issuers,config.authz.system_clientandconfig.authz.federation.agreement. The chart refuses an issuer withsender_constraint: requiredbesidereplicaCountabove 1 or autoscaling. Upgrade steps: rewriteconfig.authas the[auth]upgrade above describes, setconfig.authz.party_binding.provider, and list the issuers whose roles grant the administrator role inconfig.authz.rbac.role_issuers(#5003). -
A caller bound to a demographic
PERSONcommits under the committer the server writes: aPARTY_IDENTIFIEDwith thePERSON’s name, the login identifier (the issuer profile’sperson_keyvalue under the token issuer, typeoauth2, or the Basic user underferroehr, typebasic), the provider identifier (typehealthcare-provider) and anexternal_refto thePERSON, on every commit path, attestations and CONTRIBUTIONs included. Upgrade: stop sending a committer, or send the placeholder{"_type": "PARTY_IDENTIFIED", "identifiers": [{"_type": "DV_IDENTIFIER", "issuer": "<iss>", "id": "<sub>"}]}, which must name the authenticated caller; a stated committer with another name, identifier orexternal_ref, and a statedPARTY_RELATED, is refused with403(#5005). -
A patient’s committer is
PARTY_SELFwith noexternal_ref, and a representative commits as aPARTY_RELATEDnaming their ownPERSONand the coded relationship. A patient-context token commits no demographic version. Upgrade: read the person’s own entries by the committer’sPARTY_SELFtype, not by its formerexternal_ref(#5005). -
Importing an EHR Extract needs the role
[authz.rbac] import_rolenames, or asystem/caller, and a wrapped committer naming a party or a login of this deployment is refused unless its version was created by a system[authz.import] trusted_systemslists. Upgrade: setimport_roleand give it to the accounts that import (#5005). -
A person of a
personsissuer whose login no demographic party carries is refused with403andrefused-unboundon every request, with no fallback to a login-only committer. The problem names the identifier issuer to provision the person under, a token without the key claim is refused with a problem naming that claim, and each refusal counts into the newbinding_refusalsmetric by issuer and outcome. The Keycloak quickstart overlay provisions its four demo users through SCIM with theferroehr-provision-keycloakone-shot. Upgrade: provision every professional (through SCIM or the demographic API) before you add apersonsissuer to the upgraded deployment (#5006). -
A deployment whose FerroBRIDGE facade or FerroFED gateway writes to FerroEHR adds its
personsissuers only after the bridge and the gateway reach it under the caller: FerroBRIDGE v0.0.23 and FerroFED v0.0.17. Until then the committer rule refuses their writes. FerroFED v0.0.17 follows this release, so a deployment with a FerroFED gateway adds itspersonsissuers only once that release is out. The book’s new “Party binding: bootstrap and migration” page carries the bootstrap path, the four migration steps and these prerequisites, and “Breaking changes of party binding” lists every incompatible change with its upgrade step (#5009). -
The hosted sandbox follows the bootstrap path of party binding: its configuration declares the
sandbox-scimclient ([[scim.client]], with the development issuer trusted as amachinesissuer for it), the box’s newferroehr-provisionservice provisions the demoPERSONthrough/scim/v2/after every reset, andscripts/sandbox/reseed.shwaits for the demo login to bind before it seeds, then checks the committer of the marker’sEHR_STATUSversion references aPERSON. The deploy probe’s newbootstrapfamily (P-BOOTSTRAP-01) shows the compose quickstart does the same from an empty database: the quickstart user is a User of the SCIM client, and a commit of the Basic user names thatPERSON(#5009). -
With a party mapping configured, the parties the login binding relies on are written through the demographic API by an administrator (
authz.rbac.admin_role) only: aPERSONof a mapped template carrying a binding key,userNameorexternalId, its professionalROLE, a representation relationship, and aGROUPof the group template. Any other caller’s write is refused with403, a version that changes a present binding key is refused with403, and an administrator’s version that leaves a protected identifier out is refused with422. Upgrade: write these parties as an administrator, and change a key throughPOST /admin/party/binding-key(#5013). -
FerroEHR records every DPoP proof it accepts in its PostgreSQL database until the proof’s window ends, so a proof is accepted once across all replicas, and a proof replayed to another replica is refused there (RFC 9449 §11.1). If the database cannot record a proof, the request is refused with
503. The Helm chart (22.1.0) no longer refuses an issuer withsender_constraint: requiredbesidereplicaCountabove 1 or autoscaling (#5072). -
An AQL query scoped to one EHR now takes the streaming plan shape whatever its
ORDER BY,DISTINCTor aggregates, whether the EHR comes from theehr_idrequest parameter or from anehr_id/valueequality in the query. On a store of 100,000 compositions such a query used to spend 16 to 64 ms in PostgreSQL’s planner for an execution of about 1 ms, on every new connection and every new statement text; it now plans in 1 to 3 ms (#5076). -
The Helm chart (23.0.0) connects FerroBRIDGE to the CDR as a machine. FerroBRIDGE uses an OAuth 2.0 client credentials client of a
machinesissuer that the CDR trusts, set inbridge.cdr.oauth(issuer,clientId, and optionallyscope,audienceandresource). The client secret comes from theclient_secretkey ofbridge.cdr.existingSecret. The chart no longer accepts a Basic user for this connection: from ferrohealth-smart 0.9 a Basic credential belongs to a person and holds nosystem/scope. The chart refuses to render whenbridge.cdr.oauth.issueris not listed inconfig.auth.issuerwithkind: machines. To upgrade, add that issuer, create the client, and replace theuserandpasswordkeys of the Secret withclient_secret(#5085). -
A verified external person’s commit records the professional as its committer: a
PARTY_IDENTIFIEDwith the asserted name, thehp_identifierunder the issuer"<country_code>:<issuing_authority_name>"and the token’sissandsub, with noexternal_ref. A country code that is no upper-case ISO 3166-1 alpha-2 code, or an issuing authority holding a:, control or bidi character, is refused with403naming the field. The COMPOSITION must name the token’s healthcare provider (provider.healthcare_provider_identifierunderprovider.issuing_authority_name) as itshealth_care_facility, or it is refused with422. Upgrade step: mapprovider.issuing_authority_namein each[[auth.federation]]table whose agreements carrywrites, with aconstantsource where the token does not carry it (#5097). -
A system caller (an app-only token by its issuer profile’s
app_onlymarkers) holdssystem/scopes only: a token carrying auser/orpatient/scope is refused with403. It commits into an EHR only as a client an[[authz.system_client]]table declares, under the committerPARTY_IDENTIFIED{name = <client>, identifiers = [{issuer = <iss>, id = <client>, type = "client"}]}, and each COMPOSITION it commits must be of a template itswriteslists (403), name a facility itsfacilitieslists incontext.health_care_facility, or infeeder_audit.originating_system_audit.locationwhen it has no context (422), and be either a device act from adeviceclient or a relayed person act naming the professional by an identifier from arelayclient. Upgrade: declare every client that commits in[[authz.system_client]]with itswrites,facilitiesandorigins, and give its compositions the facility identifier (#5100). -
An attestation is accepted only from a caller bound to a professional
PERSON; one from a patient, a representative, a system caller or an unbound caller is refused with403. Upgrade: attest under the professional’s own token (#5100). -
A guest of a
personsissuer, by its profile’sguestmarkers, is refused with403(refused-guest) unless the issuer’s[[auth.party]]table setsguests = true. Upgrade: setguests = trueon the issuers whose guests act under your responsibility (#5100). -
A verified external person or organisation of a
federationissuer is admitted only under the[[authz.federation.agreement]]of its issuer and accessor, holding no scope beyond the agreement’sreads, and is an access-service caller by its kind: an opted-out EHR answers404to it, and only an external person under an agreement withopt_out_overridereaches one under an emergency purpose. It commits only a COMPOSITION of a template the agreement’swriteslists (an organisation nothing), and a read under aconsent-conditioned agreement, and every request under an NL agreement, is refused until the consent decision reference and the Wabvpz Art. 15f roles can be read. Upgrade: declare an agreement for everyfederationissuer and accessor, list the issuer in[smart] patient_issuers, and give its tokens only thepatient/scopes the agreement reads (#5101). -
Under an NL
[[authz.federation.agreement]], Wabvpz Art. 15f now decides admission in place of the refusal of every request. A caller whosenl.roleis the UZI role 01.008 (bedrijfsarts) or 01.048 (verzekeringsarts) is refused with403asrefused-wabvpz-role, and a caller whosenl.organisation_typeis missing or is not a care provider type of Nictiz’sOrganisatieTypeCodelijstis refused with403asrefused-wabvpz-organisation-type, so an insurer is refused. Every NL agreement declarespurpose = "care"; one without a purpose, or for akeuring, refuses the start. The code lists are vendored byscripts/vendor/nl-role-codes.shintodocs/specs/nl-role-codes/. Upgrade: addpurpose = "care"to every NL agreement and mapnl.organisation_type(andnl.rolefor persons) in its issuer’s[[auth.federation]]table (#5107). -
A delegated token’s access record now has
acting_mode = "delegated"where it hadclient, and a system caller’ssystem. The FHIR rendering still names a delegated access as a client one. Upgrade: a review query that selects delegated access byacting_mode = 'client'also selects'delegated'(#5118). -
FerroEHR builds on
ferrohealth-server0.6.1, whose public caller-rate take holds a federation caller to its agreement’scaller_rate. Its 0.6.0 break, therevocationfeature’s move toder0.8, touches no feature FerroEHR enables (#5149). -
The source tree no longer carries the UZI role code CodeSystem (
uzi-rolcode) of Nictiz’s zib 2020 package: its codes and titles reproduce the UZI-register CPS, which CIBG does not license for reproduction.scripts/vendor/nl-role-codes.shwrites it into the git-ignored.vendor-cache/nl-role-codes/, as it does the CPS, and--test-inputsfetches only what the Wabvpz tests read. Nictiz’s care provider types stay underdocs/specs/nl-role-codes/. Runscripts/vendor/nl-role-codes.sh --test-inputsonce before running theferroehr-resttests (#5175). -
[auth]takes three boot refusals fromferrohealth-smart: a Basic user’s hash below the Argon2id floor (m=19456, t=2, p=1), an issuer that carriesuserinfo, and private or symmetric key material in ajwks_file. They are refused as before, with the crate’s messages. Ajwks_filethat is no JWK Set now refuses the start where the crate reads the key set (#5209). -
The family crates move together to one
ferrohealth-smart: 0.13.1, withferrohealth-authz0.7.0,ferrohealth-session0.7.0,ihe-atnaandehds-logging0.8.0,ihe-iti0.0.83,ferrohealth-server0.6.4 andferrobridge-term0.1.148. The 0.13 line refuses a JSON document it cannot read without quoting it (GHSA-mhv7-3975-6xq3), so ajwks_fileor[smart] issuer_metadata_filethat does not parse is refused at boot with the crate’s message, which names the failure class and position; 0.13.1 keeps a refused key set, introspection or metadata body out of the error (GHSA-5qm7-v4fw-p2v9). The OAuth client credentials tables ([authz.abac.remote.oauth],[ehr_index.oauth],[terminology.oauth]and[audit.fhir_feed.oauth]) read as before (#5209). -
The API’s response security headers come from the family server stack (
ferrohealth-server0.6.2) with the same six headers and values. They now also reach the management listener on its own port, andStrict-Transport-Security: max-age=31536000is sent when FerroEHR or the viewer serves TLS itself ([server.tls], RFC 6797 §7.2). The viewer gainsCross-Origin-Resource-Policy: same-site(#5210). -
The server and the viewer read the parts of an
OBJECT_VERSION_IDthroughopenehr-baseand its BASE grammar, never by cutting at::. A value that is noOBJECT_VERSION_IDnow names no version: the AQL branch refusal, the version item tags and the viewer’s version numbers leave it alone, a reference to a container is read as the whole value (souuid::extensionno longer names the containeruuid), and the viewer’s deletes refuse it before calling the CDR. Every part keeps its case (#5211). -
ETagandIf-Matchvalues are read throughopenehr-its’s RFC 9110 entity tag on the server and in the viewer. The server accepts the same forms as before. The viewer reads its CDR’sETagstrictly: a value that is no entity tag names no version (#5212). -
The viewer’s audit screen reads the ITI-81 searchset and each
AuditEventas FHIR R4 resources, and a refusal’sOperationOutcometoo. A searchset that is no FHIR R4BundleofAuditEvents now shows as a failed read, never as a page of empty rows (#5214). -
The EHR index’s boot check reads the PIX Manager’s
CapabilityStatementthroughihe-iti’s PIXm client, with its transport and its client-credentials token, so a Manager behind IUA answers the probe as it answers ITI-83. A failed probe is reported as the client’s refusal: no answer, the status it answered, or no FHIR R4CapabilityStatement(#5216). -
[audit.syslog]reads its TLS material from[audit.syslog.tls], the outbound TLS table of every FerroHEALTH product (trust_roots_file,client_identity_fileorclient_identity,min_version), and handsihe-atnathe rustls configurationferrohealth-serverbuilds from it. The keystls_ca_file,tls_identity_cert_fileandtls_identity_key_fileare retired and refused at boot by name: name the roots file astrust_roots_file, and concatenate the client certificate chain and its private key into the one PEMclient_identity_filenames. The client speaks TLS 1.3 unlessmin_version = "1.2"lowers it (#5217). -
A SCIM Group membership is now held by the member: an inline
PARTY_RELATIONSHIPfrom the member’sPERSONto theGROUP, stored in thePERSON’s version (RM demographic §Party Relationships). A membership change versions only thatPERSON, so its cost no longer grows with the Group’s size. TheGROUPis versioned only by a rename, anexternalIdchange or its deletion. The Group’smembersis read from the membership index (#5220). -
A Group’s
ETagis now itsGROUPversion plus a membership revision, so it still changes with every membership change. The member User’sETagnow changes too, while its body stays the same (#5220). -
Deactivating a User (
active = false) drops all of its memberships in the same version, because an inactivePERSONcannot be versioned again. A reactivated User belongs to no Group until its client adds it again (#5220). -
Microsoft Entra ID’s disable-then-remove order now succeeds, since the later
removefinds nothing to remove. Anaddnaming an inactive User is400 invalidValue(“reactivate the User first”) (#5220). -
A refused SCIM write now names the rule it breaks in
detail(#5220). -
scripts/perf/scim-groups.shkeeps the database log,df -handfree -mof a failed run (#5220). -
A party commit no longer re-derives the login binding’s side table, the reverse-relationship index and the protection check from the whole stored body. Each hook reads what the committed body holds, derived once in memory, and writes only the rows that changed, and
ferroehr party-binding refillderives the rows with the same code. A party commit without a server signature no longer reassembles its body. A membership change at the cap of a 5 000-member SCIM Group went from 810 ms to 358 ms at p99 on a developer laptop (#5220). -
openehr-rmwrites the RFC 8785 canonical form aVERSIONsignature covers in one pass over the version, sorting each object’s members by reference. A 3.3 MBGROUPversion canonicalises about seven times faster than throughserde_jcs, with byte-identical output, so signed versions verify unchanged.serde_jcsremains the test oracle (#5220). -
The stored-query service takes the typed name, version and version pattern of
openehr_its::rest::stored_queryend to end, so it reads one grammar with the REST layer: the three-part{namespace}::{formalism}::{query-name}name, which ITS-REST 1.1.0Qualified_query_name.mddoes not define, is no longer accepted anywhere (the formalism is thequery_typeparameter), andDELETE /admin/query/{qualified_query_name}/{version}answers400for a name outside[{namespace}::]{query-name}or a version that is no exactmajor.minor.patch, where it answered404(#5223). -
Boot and
ferroehr config checkrefuse an[[auth.party]]table whoseidentifier_typeis thetypeof no[[authz.party_binding.person.template]]key, naming the issuer, the type and the types the templates write: no login of such an issuer could ever match a party, and every one would be refused. Upgrade step: give the deployment a person template whose key carries the table’sidentifier_type(or set the table to the type the template writes). The Helm CI and production values and the hosted sandbox now carry the professional PERSON and ROLE mapping, and the sandbox loads the two templates before the CDR starts (#5231). -
openehr_query::printer::to_aqlwrites eachWHEREcomparison with one space on each side of the operator (c/name/value = $nameValue), as the QUERY 1.1.0 AQL syntax examples do; path predicates keep their unspaced form ([ehr_id/value=$ehrUid]). The query builder’s generated AQL follows (#5241). -
openehr_sdt::flat::navigate::Navigatorowns what it copies from its Web Template (the name-fallback table and the OPT2 archetype references) and carries no template lifetime, so a consumer can keep it beside the template it was built from; it isDebug,Clone,SendandSync(#5243). -
Breaking: the configuration tree is one table per concern.
ferroehr.tomlmoves to[deployment],[api],[database],[auth](with[auth.smart]and[auth.scim]),[authz](with[[authz.origin]]),[management],[audit],[privacy](withidentifier_protection,cohortandaccess_delay),[record](withsubject_index,versioning,signing,query,change_feedandmultimedia),[terminology]and[pixm]. FerroEHR’s own keys take one duration type ("500ms","30s","10min","12h","7d", UCUM unit codes, so a bare number andmare refused), one size type ("256KiB","64MiB", IEC binary units, decimal units refused) and one calendar retention period ("P5Y","P1830D", unset keeps forever). An optional feature is on when its table is present:[terminology],[pixm],[auth.scim],[audit.syslog],[audit.fhir_feed],[privacy.identifier_protection]and[privacy.access_delay]carry noenabled;[authz.abac],[record.multimedia]and[auth.smart]keep a switch because some of their keys apply while off.record.subject_indexhas no default, so the server refuses to start until"pixm"or"local"is chosen.[api.cors]replacescors_permissivewith the Fetch Standard response headers (allow_origins,allow_methods,allow_headers,expose_headers,allow_credentials,max_age). The environment follows the tree (FERROEHR__DB__URLisFERROEHR__DATABASE__URL,FERROEHR__EHR_INDEX__PROVIDERisFERROEHR__RECORD__SUBJECT_INDEX). The Helm chart moves to its 25 line withconfig:on the same tree. Every key a release before v5.7.0 read is refused at load with its replacement named, all at once, soferroehr config check --config <old file>prints the whole move list; the refusals ship in v5.7.0 only and the next release removes them. To upgrade, runconfig checkon the old file and move each key it names:spec_profile,deployment_profile,deployment_acceptsandlicence.filearedeployment.spec_profile,deployment.profile,deployment.acceptsanddeployment.licence_file;[rest]is[api](swagger_uiisopenapi_ui,body_limit_bytesisbody_limit,cors_permissive = trueis[api.cors] allow_origins = ["*"],[rest.identity]is[api.options]withsolutionandvendor; the version keys are facts of the build),admin.enabledisapi.adminandterminology.api_enabledisapi.terminology;[db]is[database](acquire_timeout_secsisacquire_timeout,statement_timeout_msisstatement_timeout,migrateismigrations),[storage.<domain>]is[database.<domain>]and[storage.migrate.<domain>] urlis[database.<domain>] migrate_url;[smart]is[auth.smart](enabledisdiscovery,episode.enabledisepisode_launch,launch_base64_json = trueis"launch-base64-json"inauth.capabilities);[scim]is[auth.scim](max_resultsisfilter_max_results,deactivation_window_minutesisdeactivation_window,contact_erasure_minutesiscontact_erasure_delay);[authz.abac.cedar] reload_secsisreload_interval,[authz.abac.remote] server,connect_timeout_msandrequest_timeout_msareurl,connect_timeoutandtimeout,authz.party_binding.provisional_report_daysisprovisional_report_after, and an agreement’sdiscard_window_hoursandchained_log_retention_yearsarediscard_windowandchained_log_retention;[[origins.registered]]is[[authz.origin]];management.portismanagement.listen(anaddress:port) andmanagement.profiling.max_secondsismax_duration;audit.store.retention_daysandretention_yearsareaudit.store.retention,verify_interval_secondsandfull_verify_interval_secondsareverify_intervalandfull_verify_interval;[audit.syslog]hostandportareurl = "tls://host:port",spool_max_messagesisspool_max_events,spool_max_bytesisspool_max_size,retry_max_msisretry.max_backoff, and[audit.fhir_feed]poll_interval_msandretry_max_msarepoll_intervalandretry.max_backoff;[demographic.identifier_protection]is[privacy.identifier_protection],[cohort]is[privacy.cohort], and[access_delay]is[privacy.access_delay]withhoursasmax_delay;ehr_index.providerisrecord.subject_index("ihe"is"pixm") and the rest of[ehr_index]is[pixm](pixm_urlisurl,invocationismethod,request_timeout_msistimeout);versioning.skip_identical_resendisrecord.versioning.idempotent_resend;[signing]is[record.signing](key_pathiskey_file,retired_key_pathsisretired_key_files),[query]is[record.query](timeout_msistimeout),[outbox]is[record.change_feed](retention_daysisretention,prune_interval_secsisprune_interval), and[multimedia]is[record.multimedia](endpointisurl,threshold_bytesisthreshold, andallow_httpis retired: anhttp://url is plain HTTP);[terminology.server]is[terminology](fail_on_errorison_error = "accept" | "refuse",request_timeout_msistimeout). The family sections take the same types, fromferrohealth-server0.8,ferrohealth-telemetry0.4,ferrohealth-smart0.15 andferrohealth-session0.9:[server]request_timeout_ms,header_read_timeout_ms,idle_timeout_ms,drain_delay_ms,shutdown_timeout_msandretry_after_sarerequest_timeout,header_read_timeout,idle_timeout,drain_delay,shutdown_timeoutandretry_after,body_limit_bytesandcompression_min_bytesarebody_limitandcompression_min_size, and[server.tls] reload_interval_sisreload_interval;[telemetry.otlp]trust_roots_fileandclient_identity_filemove into[telemetry.otlp.tls], and anhttps://collector is dialed over it;[auth] ca_fileis[auth.tls] trust_roots_file, an[[auth.issuer]]table’sclock_skew_seconds,jwks_max_age_seconds,jwks_refresh_interval_secondsandtimeout_msareclock_skew,jwks_max_age,jwks_refresh_intervalandtimeout, its introspectioncache_max_age_secondsiscache_max_age,[auth.basic] cache_ttl_secondsiscache_ttl,[auth.dpop]max_age_secondsandclock_skew_secondsaremax_ageandclock_skew,[auth.idp.entra]timeout_msandmax_response_bytesaretimeoutandmax_response_size, and anoauthgrant’sca_file,client_certificate_fileandclient_key_fileare itstlstable’strust_roots_fileandclient_identity_file(one PEM), withrefresh_margin_ms,timeout_msandprevious_key_overlap_msasrefresh_margin,timeoutandprevious_key_overlap. The[auth]keys v5.6 read for every issuer (audience,algorithms,token_profile,jwks_file,mode,introspection,role_claimsand the rest) live on each[[auth.issuer]]table, andscopeless_subjectsentries are{ issuer, sub }tables. In the viewer,cdr.request_timeout_secsiscdr.timeout,[oidc] ca_fileis[oidc.tls] trust_roots_file,[oidc.tls]client_certificateandclient_keyareclient_identity_file, and[session]idle_timeout_s,absolute_timeout_sandsign_in_timeout_sareidle_timeout,absolute_timeoutandsign_in_timeout. Each of these is refused in v5.7.0 naming its replacement, in the CDR and the viewer alike (#5259). -
Breaking: a
patientstoken that names an actor is refused. Withferrohealth-smart0.15, apatientsissuer reads a token whose top-levelact(RFC 8693 §4.1) names someone other than the patient only when its[[auth.issuer]]table setsact_represents_patient = true; without it the token is refused401, where v5.6 admitted it as the patient’s own access. With it, FerroEHR refuses the token403(refused-patient-representative), because it binds no party to someone acting for a patient, and the access log records the refusal (#5259). -
SECURITY.md,security.txt(itsContact: mailto:field), the post-market record, the CRA technical documentation and the book’s compliance pages namesecurity@cadasto.comas the email route for a vulnerability report, in place ofinfo@cadasto.com, which stays the single point of contact for complaints and incidents, the manufacturer’s address on the running server and the address for licensing and other business questions (#5272). -
ferroehrandferroehr-viewerrun through the FerroHEALTH family’s run path. A configuration either binary refuses (an unknown or invalid key, a broken semantic rule, an[auth]table with no mechanism, a SCIM mapping it cannot serve, or for the viewer a TLS file that does not read or an unusable[oidc]or[session]table) now exits78(EX_CONFIGofsysexits(3)) where it exited1, so an orchestrator can tell a configuration to fix from a failure to retry. Every other failure still exits1, and the failure is written to stderr as one line with its whole cause, prefixed with the binary’s name. Upgrade: a script or probe that expects exactly1fromconfig checkon a refused file expects78(#5321). -
Breaking: the outbound integrations take the family’s endpoint table.
[terminology],[pixm],[audit.fhir_feed]and[authz.abac.remote]read where they call and how from one[<x>.endpoint]table, the same keys for every outbound integration of every FerroHEALTH product:url,timeout,connect_timeout,retry(max_attempts,initial_backoff,max_backoff),tls(trust_roots_file,client_identity_file,min_version) andcredentials(HTTP Basicuserwithpasswordorpassword_file, or the client credentials grant[...credentials.oauth]).terminology.url,timeoutand[terminology.oauth]areterminology.endpoint.url,timeoutand[terminology.endpoint.credentials.oauth];pixm.url,timeout,[pixm.tls]and[pixm.oauth]arepixm.endpoint.url,timeout,[pixm.endpoint.tls]and[pixm.endpoint.credentials.oauth];audit.fhir_feed.url,[audit.fhir_feed.retry]and[audit.fhir_feed.oauth]areaudit.fhir_feed.endpoint.url,[audit.fhir_feed.endpoint.retry]and[audit.fhir_feed.endpoint.credentials.oauth];authz.abac.remote.url,connect_timeout,timeoutand[authz.abac.remote.oauth]areauthz.abac.remote.endpoint.url,connect_timeout,timeoutand[authz.abac.remote.endpoint.credentials.oauth]. The v5.6 keys are refused naming their new home. Every client now honoursretry: the terminology, PIXm and remote policy clients try a call that got no answer or a5xxup tomax_attemptstimes (three by default; each tried once before), so setmax_attempts = 1to keep one attempt, and the FHIR feed’s delivery rounds takemax_attemptstries each, frominitial_backoff, before the round waitsmax_backoff; the feed still never gives a record up. The environment follows the tree (FERROEHR__TERMINOLOGY__ENDPOINT__URL,FERROEHR__AUDIT__FHIR_FEED__ENDPOINT__URL), and so do the Helm chart’s values and its client secret routing, in the chart’s 25 line (#5331). -
The FerroEHR PostgreSQL image is built on the 2026-11-09 respin of
postgres:18.6(sha256:e3d24f69…), a same-version respin with rebuilt base packages. A full scan of the rebuilt image on amd64 and arm64 finds the same findings as the image of the previous base, each judged insecurity/vex/postgres-os.openvex.json, and a gate scan finds no fixable HIGH or CRITICAL finding (#5332). -
The development and Keycloak example compose files run Keycloak 26.8.2 (
quay.io/keycloak/keycloak:26.8.2@sha256:723b1d6e…). Of the 26.8.2 upgrading notes, the shipped realm meets the ones that touch it: the Admin REST API’s new audience check passes for the master realm’sadmin-clitoken the browser-test harness uses, and the realm uses no token exchange, identity broker, SAML client, CIBA or dynamic client registration. Theferroehr-serviceclient-credentials token carries the same audience and scopes as under 26.8.1 (#5333).
Removed
-
[authz.professional](claim,client_tokens,acting_for_claim) and its403for a token that names no natural person. The issuer’skindand profile classify the caller, and the access record’s acting mode and professional come from that classification: a person’s own token is the person, and a delegated token is the client acting for the person it names. Upgrade step: remove the table, which refuses the start, and list a client that acts for a person in its issuer’sdelegates(#5003). -
The named refusal of
authz.rbac.user_role, which v5.6 introduced, is gone under the one-release rule for removal aids: the key is now refused as an unknown key when the configuration loads (#5259).
Fixed
-
A
553|incomplete|commit no longer refuses an empty mandatory archetype slot: RM common master06 §Incomplete Content sets every occurrences lower limit to zero, a slot’s included, while too many fillers are still refused. The OPT 1.4 writer now closes a mandatory slot once the fillers placed in it carry its lower bound, as ADL 2 §Slot Filling and Redefinition allows, and still refuses to close one they leave unmet (#5042). -
The example of a party template whose identity the template marks optional is a party of its class carrying one identity at every detail level, where the
requiredlevel answered500: RM demographicPARTY.identitiesadmits no party without one. A party template that constrains no identity at all answers400 Bad Requestnaming its class (#5057). -
An AQL
VERSIONstandard predicate oncommit_audit/time_committedapplies its operator:VERSION v[commit_audit/time_committed/value > $t]returns every version committed after$t, where it returned the trunk version current at$twhatever the operator (QUERY 1.1.0 master03 §Standard predicate). A number, boolean orNULLliteral as the bound, a string bound no ISO 8601 form reads, and atime_committedpath other than the whole value or/valueare refused with400(#5062). -
AQL refuses a number, boolean or
nullparameter or literal compared with a date/time path, inWHEREand in aVERSIONpredicate, with the same400a non-ISO 8601 string gets; such a bound used to becomeNULLand match nothing (#5064). -
The served OpenAPI document now lists, on both template example operations, the
400answered for a party template that constrains noPARTY_IDENTITY(#5066). -
The compose quickstart, the hosted sandbox and the Helm chart run FerroPIX 0.0.18 (
ghcr.io/ferrohealth/ferropix:0.0.18@sha256:6fb622b5b9ade34c8a4053112c8f166ff495d8b32bf99f35529d01e512b7cc42), with the FerroPIX chart 0.3.10 built for it. The 0.0.16 they pinned had an outbox sender that never slept while its outbox was empty, so an idle install kept about 1.2 CPU cores busy between FerroPIX and its PostgreSQL at about 8,000 transactions a second (FerroHEALTH/FerroPIX#490). 0.0.18 also makes FerroPIX’s[auth] scopeless_subjectsandrole_claimshold per issuer, which changes nothing for a FerroPIX that trusts one issuer, as every configuration FerroEHR ships does. The chart moves to 21.0.5 (#5073). -
An OPT2 built from a template that specialises a published archetype now carries that archetype, by its full id, as
parent_archetype_id, as theOPERATIONAL_TEMPLATEinvariantis_specialisedrequires (AOM2 §3.6.6), so a reader of the OPT finds the archetype its root specialises. The ADL form of an OPT still prints nospecializesection (OPT2 §Artefact Structure), so the parent travels in the canonical JSON form (#5075). -
A
refused-key-claim-missingaccess record names the key claim the issuer’s binding reads (itsperson_key) inbinding_detail.claim, so an operator sees which claim the token lacked. It records the name only, never a claim value (#5139). -
A
403for a caller kind is recorded with its own binding code:refused-system-personal-scopefor a system caller holding auser/orpatient/scope,refused-no-agreementfor an external caller whose issuer has no agreement for its accessor kind, andrefused-scope-beyond-agreementfor an external caller holding a scope its agreement does not read. Audit migration0024widens thebindingconstraint; the problem text of each refusal is unchanged (#5140). -
openehr-sdtbuilds no/contextnode, and nostart_timeorsettingleaf, in the Web Template of an OPT 1.4 whose COMPOSITION prohibitscontext(existence0..0, or anEVENT_CONTEXTof occurrences0..0), and the template example of such a template carries nocontext. A template that leavescontextopen or optional keeps the node as before (#5147). -
openehr-sdtgives the/contextnode it synthesizes in a Web Template theminof the template’s existence onCOMPOSITION.context, and0where the template leavescontextunconstrained, since the RM makescontextoptional (0..1). A client following the Web Template no longer treats the context as mandatory when the template does not require it, and therequiredtemplate example of such a template carries nocontext(#5154). -
An ADL2 template that deletes an attribute (
existence matches {0}), for exampleCOMPOSITION.context, keeps the prohibition after it compiles to its operational template:openehr-adl’screate_optnow returns aRawOptthat names each removed attribute beside the OPT, andbuild_web_template_v2_4takes that list. A template that deletescontextgets no/contextnode, and a commit that carries one is refused, as it is for an OPT 1.4 template that prohibitscontext. An OPT2 uploaded already compiled carries no such list and reads a deleted attribute at its reference-model existence. Breaking for crate users:create_optreturnsRawOptandbuild_web_template_v2_4takes the prohibited attributes (#5154). -
A composition commit whose
template_idnames a stored ADL2 archetype rather than a template is refused with422as an unknown operational template; it failed at the insert with a server error before (#5177). -
openehr-rmtypesREFERENCE_RANGE.rangeasDV_INTERVAL<T>:ReferenceRangeis now generic over its limit type (ReferenceRange<DvQuantity>on aDV_QUANTITY,ReferenceRange<DvOrdered>on the other ordered types), itsis_in_rangeandRange_is_simplework at that type, and the static RM model givesREFERENCE_RANGE.rangeandIMPORTED_VERSION.itemtheir argument. Eachmodel::RmAttributeandmodel::RmTypeRefnow keeps the formal parameter it is written as (formal,Some("T")forDV_INTERVAL.lower) beside the resolved bound. The RM class table declaresREFERENCE_RANGE<T>and leavesTunused; the generator restores it from a cited table and refuses a schema that no longer matches (#5196) (#5188). -
An access record names the client the token’s issuer profile reads from
client_claims(azpunder theentraandkeycloakprofiles), the one the caller was admitted as. A token carrying a differentclient_idclaim beside it was recorded under that claim. The[origins]register and the SCIM client lookup read the same client (#5194). -
An
IntervalorDV_INTERVALread from canonical JSON or XML that omits a boundedness or inclusion flag now takes it from its bound. An absent bound reads as unbounded and not included, and a present bound as bounded and included. A flag the wire states is kept as written. Before, an omitted flag always read as bounded and included, so an interval with only anuppercame out with a bounded, included lower side that had no value. ITS-JSON requires all four flags, and BASE ties none of them to its bound, so reading the omission is our own design (#5203). -
The viewer’s New contribution commits as the signed-in login. Each audit carries the placeholder naming that login, and the server records the committer it derives from the login. The free-text committer field is gone. For a login bound to a demographic
PERSON, a stated name that differs from thePERSON’s name was refused with403(#5222). -
The management surface answers a caller the login binding refuses with
403and its binding code, such asrefused-unbound, as every other route does, in place of401: the credential authenticated, so new credentials cannot help (RFC 9110 §15.5.4). An absent or invalid credential still answers401with its challenge (#5250). -
The party binding posture in
ferroehr reportand the boot log masks the user name and password of an issuer URL, as every other rendering of the configuration does (#5259). -
GET /definition/query/{namespace}::lists every stored query in the namespace again, where it answered400since the typed stored-query name: ITS-REST 1.1.0definition_query_listreads its name as a pattern in which an empty part is a wildcard, so::{name}also lists the names that start with it in any namespace.openehr-itsgainsrest::stored_query::QueryNamePattern, the type the generatedDefinitionQueryListParamscarries. The store and the single-query reads still refuse an empty name or namespace (#5268). -
The identifier scan (
[privacy.identifier_scan]) reads thenameof theELEMENTthat holds aDV_IDENTIFIERwhen the identifier’stypeis absent or names neither a person nor an item, with the same word rules. An untyped laboratory order number in theReceiver order identifierorRequester order identifierelement oflaboratory_test_result.v1that passes the NHS Number check by chance is now stored under the default rule set. A person word still wins, so an untyped value in an element namedNHS numberorPatient identifierstays scanned, and atypethat names a kind takes precedence over the element name (#5291). -
The Helm chart’s description and README name
config.deployment.profile, the key the chart refuses to render without since 5.7.0, and the README’s install command sets it; the command it showed set the oldconfig.deployment_profileand did not render (chart 25.0.1) (#5341).
Security
Shipped with functional changes because: the advisory reaches only a deployment that trusts several issuers, which no configuration FerroEHR ships does, and its fix changes what such a configuration must state at boot, so it lands on main beside the AQL version attestations already merged for this release; a security-only patch of the last release remains open to the release cut.
-
A Basic user never carries a
system/scope, throughferrohealth-smart0.9.1 (GHSA-jhg2-jwjp-hq74, CWE-269, CWE-863). Asystem/scope granted to a Basic user gave that person every resource of a type, a backend service’s reach. Such a user now refuses the start, naming the user and the scope. Upgrade step: give each Basic user theuser/scopes a person holds, and move each machine on Basic to a client of the authorization server under the client credentials grant (#5003). -
[auth] scopeless_subjectsandrole_claimshold per issuer, throughferrohealth-smart0.8.9 (GHSA-pfgx-xq28-2629, CWE-863, CWE-639). Before it, beside several[[auth.issuer]]tables both lists applied to every trusted issuer’s tokens: a token from any of them whosesubwas listed met every SMART on openEHR requirement without a scope, and any of them could assert every role the RBAC checks,ADMINincluded. An entry is now written<issuer>#<value>and holds for that issuer alone; beside several issuers a bare entry, or one naming an issuer the section does not trust, refuses the boot. Upgrade step for a deployment with several issuers: write eachscopeless_subjectsentry as<issuer>#<sub>, and write eachrole_claimspath as<issuer>#<path>for the issuers whose roles count (or setrole_claims = []to read none), since the defaultrole_claimsis bare and refused. A deployment with one issuer changes nothing (#5047). -
The
ferroehr-postgresimage carries zlib1g1:1.3.dfsg+really1.3.1-1+deb13u1from trixie-security, which fixes CVE-2026-76844 and CVE-2026-85091 (HIGH, heap overflows in zlib’s gzip writer) and CVE-2026-27171 (MEDIUM, an infinite loop incrc32_combine64). The image of 5.6.3 and earlier releases carries1:1.3.dfsg+really1.3.1-1+b1, judgedaffectedwith the upgrade as its action (security/vex/postgres-os.openvex.json). Theferroehrandferroehr-viewerimages keep the distroless base’s zlib, which neither program loads (security/vex/ferroehr-os.openvex.json) (#5137). -
The
ferroehrandferroehr-viewerimages move to thegcr.io/distroless/cc-debian13:nonrootbuild of 2026-11-08 (sha256:cc66d222…), whose zlib1g1:1.3.dfsg+really1.3.1-1+deb13u1fixes CVE-2026-76844 and CVE-2026-85091 (HIGH, heap overflows in zlib’s gzip writer) and CVE-2026-27171 (MEDIUM, an infinite loop incrc32_combine64). Neither program loads zlib. The images of 5.6.3 and earlier releases carry1:1.3.dfsg+really1.3.1-1+b1, judgedaffectedwith the upgrade as its action, as theferroehr-postgresimage of those releases is (security/vex/ferroehr-os.openvex.json) (#5152, #5329). -
CVE-2026-112321, CVE-2026-112322 and CVE-2026-112323 (memory and CPU exhaustion in
kadmindthrough the AUTH_GSSAPI handler) and CVE-2026-119079 (CPU exhaustion in the KDC decoding an AS-REQ or TGS-REQ) in MIT Kerberos 5 have no Debian fix for trixie and are judgednot_affectedinferroehr-postgres. The image carries neitherkadmind, a KDC norlibgssrpc, and the PostgreSQL server never decodes either request; the configuration FerroEHR ships enables no GSS-API authentication (security/vex/postgres-os.openvex.json) (#5344).
5.6.3 - 2026-11-05
5.6.3 is a patch release of 5.6.0 and the first published release since it. The v5.6.1 and v5.6.2 tags exist, but neither release published: the v5.6.1 vulnerability record found CVE-2026-76844 in the zlib package of every image without a judgement, and the v5.6.2 performance guard took the unpublished v5.6.1 as its baseline, whose images do not exist. The guard now compares against the newest published release (#4998). 5.6.3 therefore carries the changes of the 5.6.1 and 5.6.2 sections below: the hosted sandbox’s viewer posture, the FerroHEALTH releases the deployment artifacts pin, and the not_affected judgement of CVE-2026-76844 in every image. It adds ferrohealth-server 0.5.0, FerroBRIDGE 0.0.21 in the Helm chart and the judgement of RUSTSEC-2026-0440, which reaches only the test harness. The REST surface, AQL, storage and configuration are those of 5.6.0.
Changed
-
The server and the viewer take
ferrohealth-server0.5.0, whose release removes five forwarding functions from its public API and changes no behaviour, so the HTTP stack, TLS, the same-origin check and the health check answer as before (#5000). -
The Helm chart deploys FerroBRIDGE 0.0.21 (
ghcr.io/ferrohealth/ferrobridge:0.0.21@sha256:83bd9d2cb5e4ef6b19617c9434242f88489b0fd4150b2238a22acf17435c9a35), its newest release, which renames or removes no configuration key the chart sets. The chart moves to 21.0.4 (#5017).
Security
Shipped with functional changes because: no shipped artefact is affected (the VEX statement below records why), so there is no security update to separate from the other changes this release carries.
- RUSTSEC-2026-0440 (
astral-tokio-taris unmaintained, with no patched version) does not affect FerroEHR:testcontainersreaches the crate only in the test harness, and the server binary, theferroehrimage and theferroehr-viewerimage do not contain it.deny.tomlaccepts the advisory until atestcontainersrelease drops the crate (security/vex/rust-advisories.openvex.json) (#4996).
5.6.2 - 2026-11-05
5.6.2 is a security-only patch release over 5.6.1. The v5.6.1 tag exists, but its release never published: its vulnerability record found CVE-2026-76844 in the zlib package of every image without a judgement, and Debian has no fixed package for trixie. 5.6.2 adds that judgement and nothing else. It is the first published release since 5.6.0, so it also brings the 5.6.1 changes of this changelog: the hosted sandbox’s viewer posture and the FerroHEALTH releases the deployment artifacts pin. The REST surface, AQL, storage and configuration are those of 5.6.0.
Security
- CVE-2026-76844, a heap overflow in zlib’s gzip file writer after a failed
write, has no Debian fix for trixie and is judged
not_affectedin every image. Theferroehrandferroehr-viewerprograms never load the Debian zlib (security/vex/ferroehr-os.openvex.json), and inferroehr-postgresthe zlib 1.3.1 overflow needs agzclearerr()call that nothing in the image makes (security/vex/postgres-os.openvex.json) (#4993).
5.6.1 - 2026-11-05
5.6.1 is a patch release of 5.6.0. The hosted sandbox’s viewer starts again, since its posture carries the session keys the 5.6.0 viewer reads, and the deployment artifacts pin the FerroHEALTH releases published with or after 5.6.0: FerroPIX 0.0.16, FerroBRIDGE 0.0.20, ferroehr-postgres 5.6.0 on the hosted database box and four FerroSYS crates whose releases change no behaviour. The REST surface, AQL, storage and configuration are unchanged from 5.6.0.
Changed
- The deployment artifacts run the FerroHEALTH releases published with or after 5.6.0, each pinned by its index digest: FerroPIX 0.0.16 (
ghcr.io/ferrohealth/ferropix:0.0.16@sha256:0452371913ce8ed5c5c379693b8bd78683ffaf43d4f51c5278c5444d01d30318) in the compose quickstart, the hosted sandbox and the Helm chart, with the FerroPIX chart 0.3.8 built for it; FerroBRIDGE 0.0.20 (ghcr.io/ferrohealth/ferrobridge:0.0.20@sha256:7dd5550d57b7f0bdfdf194453feff95b093152fd235b9378877bebb8e8d055e2) in the chart; and on the hosted database boxghcr.io/ferrohealth/ferroehr-postgres:5.6.0@sha256:7e4ee7a8a18a5bd3bf4c1b03afd9f584131f717d088cd6844a4a845ece6a9c1b. FerroTERM stays at 0.4.1, its newest release. The server and the viewer takeferrohealth-config0.2.9,ferrohealth-server0.4.4,ferrohealth-telemetry0.2.5 andferrohealth-usage-report0.2.1, which change no public API or behaviour. None of these renames or removes a configuration key FerroEHR sets. The chart moves to 21.0.1 (#4987).
Fixed
- The hosted sandbox’s viewer starts again: its posture (
deploy/hosted/ferroehr-viewer.sandbox.toml) still spelled the 5.5[session]keyscookie_secureandsecret, which the 5.6.0 viewer refuses, sosandbox.ferroehr.euanswered 502 after the 5.6.0 deploy. The posture now setsstore = "sealed",secure_cookieandkey, and a viewer test reads it the way the box’s viewer does at boot (#4985).
5.6.0 - 2026-11-04
5.6.0 follows 5.5.0 as the stable release and carries every change of its ten release candidates: the EHDS Art. 3(3) delay of a person’s own access, the Art. 5 mark of what a person inserts and the Art. 10 opt-out from the access services, each off by default; ADL 2 validation, conversion and Web Templates checked against the AOM 2 rules; storage generations 3 to 6 and AQL plans that keep reads fast as a store grows; the outbox feed that replaces FerroEHR’s own broker publisher; RFC 9457 problem details on every error; and the viewer drawn on its server with FerroUI 0.6. It breaks deployments and clients, each break with its upgrade step under Changed or Removed. Before you upgrade from 5.5.0: export the audit records you must keep over ITI-81 with 5.5.0, then drop the audit schema, because audit migration 0017 starts 5.6.0 on an empty audit store and refuses one that holds records written by 5.5.0 or earlier; move every client of a route ITS-REST 1.1.0 does not define from /ferroehr/rest/openehr/v1/ to /ferroehr/rest/extensions/v1/, and the ITI-81 retrieval to /ferroehr/rest/fhir/r4/AuditEvent, since the old paths answer no redirect; read an error body as application/problem+json, detail where a client read message, and send Prefer: return=representation and read errors where it read validationErrors; send POST /ehr/{ehr_id}/contribution and POST /demographic/contribution bodies in the released NewContribution shape, since every other shape answers 400, and send no empty system_id, which every write path refuses with 422; write a space in a query string as %20; remove [events], the chart’s secrets.eventsUrl and plaintext_broker from deployment_accepts, which refuse the start, and deliver broker events through FerroBRIDGE 0.0.15 or later reading the outbox feed; set client_auth beside [server.tls] client_ca_file; and set config.deployment_profile for Helm chart 21.0.0, which renders no default profile, and bridge.config.auth for a chart FerroBRIDGE that serves a mapping set. Clinical migrations 0022 and 0023 and party migrations 0013 and 0014 read every version row of an existing store once, and every viewer user is signed out once. Helm chart 21.0.0 carries appVersion 5.6.0. Security carries two advisories, GHSA-2mc2-h3jq-c5wg and GHSA-52mf-qg39-4q4j, and the fix of CVE-2026-115905 in the zip crate that 5.5.0 shipped.
Added
-
Every signed-in viewer page carries FerroUI’s session watch: two minutes before the idle window ends a dialog offers Stay signed in or Sign out, typing or clicking on the page keeps the session going at most once a minute, and when the session has ended the page leaves for the sign-in page by itself, which returns to the page once you sign in again; every other viewer tab in the browser leaves with it, and signing out in one tab ends the others. The watch asks the new session route
/api/session, whose reads never extend the session (#4223). -
The logging component’s intended performance is stated as checkable claims (EHDS Annex II 1.1): every composition create and read recorded exactly once and every AQL execution at least once, no access succeeding without its record, at most 125 % of the latency and at least 80 % of the throughput with the access log off, and a 50-record ITI-81 page within 250 ms at p95.
scripts/perf/audit.shmeasures them with the access log off and on (the load test’s new--auditmode counts the records through ITI-81 and times retrievals),scripts/perf/audit-verdict.shgives the verdict, the release refuses a claim not met and attaches the summary asferroehr-<tag>-logging-performance.md(Annex III point 2), and the weekly performance guard runs it on main. The book’s compliance section gains the page that states the claims and the method (#4293). -
scripts/interop/atna.shexercises the logging component’s ATNA transactions against independent implementations run from published images (EHDS Annex II 1.4): the ITI-20 FHIR feed into HAPI FHIR as the Audit Record Repository, judged by its validator with IHE BALP 1.1.4; the ITI-20 syslog feed into syslog-ng over RFC 5425 TLS, each payload read as a DICOM PS3.15AuditMessage; and the same ITI-81 searches put to FerroEHR and to HAPI. The audit trail page documents it (#4296). -
FerroEHR ships an EHDS category map for the published CKM templates and COMPOSITION archetypes whose data sit in one Art. 14(1) priority category (the International Patient Summary, ePrescription, the generic laboratory result and CCTA report templates; the
health_summary,prescriptionandtransfer_summaryarchetypes), so an installation that declares no[audit.categories]keys records those accesses classified instead ofunclassified(EHDS Annex II 3.2(c)). A deployment that declares any template or archetype replaces it whole.[audit.categories] shipped_map = falsewith nothing declared leaves no map, whichdeployment_profile = "production"refuses as the newno_category_mapgap unlessdeployment_acceptsnames it (#4298). -
Retention periods and access rules can take the origin and the category of the data into account (EHDS Annex II 3.4). The new top-level
[origins]register declares the origins a deployment recognises, each by the id its data carry and the clients whose direct commits come from it; a body without aFEEDER_AUDITcommitted by a registered client is stamped with that client’s origin instead of the server’ssystem_id.PUT /admin/retention/policytakes an optionaloriginnaming a registered origin, the register andGET /admin/retention/duereport it, and the due list lists an origin-keyed period over the objects of that origin (clinical migration0020_retention_by_origin.sql). The ABAC request carriescategory(the access record’s category tokens) andoriginresource attributes on composition, contribution and query operations, the Cedar schema declares both, and a remote PDP binding may name them as parameters (#4299). -
The operations page gains a storage sizing section, measured on 5.6.0-rc5: about 21.6 KB of clinical storage per version of a vital signs composition (2.0 times its canonical JSON, 85 % of it node rows) and 155 KB for an International Patient Summary, about 1.2 KB per audit record of a read, the effect of
[audit.store]retention on growth,pg_walup tomax_wal_size, theREINDEX INDEX CONCURRENTLY clinical.node_hot_pkeystep (20 % of that index after heavy concurrent writing) and a query for the size per relation, with the method to reproduce the figures (#4304). -
EHDS Art. 5: what a person inserts in their own EHR is marked as theirs, and they cannot alter what a professional committed. A write under a token whose SMART resource scopes are all
patient/scopes recordsPARTY_SELFas itsAUDIT_DETAILS.committer, itsexternal_refnaming the login, whatever committer the request names; a COMPOSITION it commits must namePARTY_SELForPARTY_RELATEDas composer; and its update or deletion of a version whose committer is notPARTY_SELF, directly or inside a CONTRIBUTION, is refused with403. A professional’s writes are unchanged. The contribution list extension gainsinserted_by_personper row, and the viewer names aPARTY_SELFcommitter “The person or their representative”. A serviceauth_failurestatus now answers403where it answered500(#4350). -
The EHDS Art. 3(3) delay of the person’s own access to newly registered data, a Member State option and off by default. The new
[access_delay]section (enabled,categories,hours) holds every new COMPOSITION of a listed[audit.categories]category from requests that may be the person’s own (a bearer token with a SMARTpatient/grant or the ABAC patient claim, also besideuser/orsystem/grants, asferrohealth-smart0.8.7 decides it) for at mosthours: a read answers404as for an unknown composition, and a query, an export and a CONTRIBUTION leave it out, while a professional reads it as before. The treating professional releases a held composition from the clinical routePOST {ext}/ehr/{ehr_id}/versioned_composition/{versioned_object_uid}/access-delay/release, with the checks of a write to that EHR, and the controller withPOST /admin/access-delay/release; a professional holds one by hand within the limit withPOST /admin/access-delayand reads the register withGET /admin/access-delay; every hold ends at its limit, and placing, releasing and expiry are each an access record. The subject-scoped ITI-81 read of the person’s own trail (EHDS Art. 9) leaves out the records about a held composition until it is released or expires, then serves them with their original times (ehds-logging0.3.3) (clinical migration0027_access_delay.sql, party migration0019_access_delay_column.sql) (#4351). -
The
openehr-itsclient reads an RFC 9457 problem details refusal:ErrorBody::problem()exposes itstype,title,status,detailandinstance, ignoring a member of the wrong type (RFC 9457 §3.1), andErrorBody::message()answers the problem’sdetail, else itstitle, where it answered only the ITS-RESTError’smessage. Theopenehr-*crates move to 0.0.115 (#4355). -
The local EHR index (
[ehr_index] provider = "local") is a supported production posture beside the IHE patient identity source:EHR_STATUS.subjectnames a patient by its own namespace and identifier, whichGET /ehr?subject_id=&subject_namespace=matches, and with no[privacy] subject_namespacesdeclared the reference is stored as the client sends it. The compose quickstart selects it withFERROEHR_EHR_INDEX=local docker compose up, which runs itsferroehr-config-localblock (#4379). -
CI checks every inline configuration of the compose quickstart with the
config checkof the image the file pins, FerroEHR’s and FerroPIX’s, so the quickstart can no longer carry a configuration its pinned server refuses (#4380). -
[versioning] skip_identical_resend(defaultfalse): when on, an update whose content equals the current version’s commits nothing and answers like a successful update with the existing version’sETagandLocation. The access log keeps oneresendrecord naming the version matched and the content digest; the book names the audit consequence: no commit audit and no contribution record the repeated send (#4415). -
The Conformance workflow runs the Veredictum 0.3.0 catalogue in CI through the Veredictum GitHub Action, pinned by commit SHA and running the release image by digest. It builds FerroEHR from the commit, composes it with FerroTERM beside it on fresh volumes, reviews the party statement with
veredictum validate, fails on a failed or errored row, writes the Markdown summary to the job summary and uploads the results, JUnit and CTRF views. It runs on pull requests that touch the server, the party set, the conformance compose files or the workflow, onmain, on a release tag and twice a week.scripts/conformance.shtakes a stage (run,review,up,down), so CI and a local run compose the same deployment, andscripts/checks/veredictum-action.shfails while the Action SHA, its version comment, the image digest andVEREDICTUM_VERSIONdisagree (#4449). -
The Conformance workflow runs the Veredictum
smartdocuments (smart_discovery,smart_scopes) against the same FerroEHR build after the Veredictum Action, which forwards no SMART Platform base URL and no scoped tokens. The same pinned image runsveredictum testwith--platform-urlanddocs/conformance/party/ferroehr/ixit-smart.json, minting each access token in memory from the committed test issuer the SMART overlay trusts, and the job uploads its results, JUnit and CTRF views beside the catalogue’s and adds its summary under a heading of its own.scripts/conformance.shgains thesmartstage, andrundrives it after the catalogue, so a local run covers SMART too (#4450). -
GET /ehr/{ehr_id}andGET /ehr?subject_id=…now sendLast-Modified: the commit that created the EHR, or the later commit that added or deleted one of its folder hierarchies (#4462). -
The EHDS Art. 10 opt-out from access through the access services of Arts. 4 and 12, a Member State option and off by default. The new
[authz.rbac] access_service_roleskey declares the roles of the access-service callers; while an EHR carries the opt-out, a caller holding one reads it as absent: a route naming the EHR or an object in it answers404as for an unknown EHR, a population query leaves its data out, a scoped query, an export and the lookup by subject find no such EHR, and a write to it is refused as absent. Every other caller, the provider’s own care included, reads it as before. The controller records the opt-out on the person’s instruction withPOST /admin/access-opt-out, reverses it withPOST /admin/access-opt-out/reverse(the register keeps the reversal) and reads the register withGET /admin/access-opt-out; recording is refused with400while no access-service role is declared. An access-service caller that declares one of[audit] emergency_purpose_codesand does not act for the person reads the EHR under the Art. 10(2) vital-interest override, with the emergency mark on its access record and anaccess-opt-out-overriderecord against the EHR. Recording, reversing and reading the register are access records (clinical migration0029_access_opt_out.sql) (#4516). -
Two read-only extension routes convert stored ADL 1.4 definitions to ADL 2:
GET /ferroehr/rest/extensions/v1/definition/archetype/adl1.4/{archetype_id}/adl2for a stored archetype andGET /ferroehr/rest/extensions/v1/definition/template/adl1.4/{template_id}/adl2for a stored operational template, which converts to one ADL 2 archetype per embedded archetype root. Each answers 200 withapplication/json: (#4655)- the ADL 2 source of every root;
- each root’s conversion log and its
conversion_details, which name what the ADL 2 form drops or changes; - the slot fills that joined the roots. An unknown id answers 404. A stored source that no longer converts answers 422. No openEHR specification defines the conversion, so both routes are FerroEHR’s own design.
-
The commit-event outbox feed.
[outbox] readersnames the readers (FERROEHR__OUTBOX__READERS); boot registers each one and marks every reader the list no longer names inactive, so it holds the retention prune back no longer (#4766).GET /admin/outbox/{reader}?limit=&domain=answers the PHI-free envelopes after the reader’s cursor inseqorder, andPOST /admin/outbox/{reader}/ackwith{"last_seq": n}moves the cursor (204;409below the cursor or past the highest row;404for an unknown or inactive reader). Both routes need the__ferroehr.outboxscope, every read is an access record, and the clinical and party outboxes each keep their ownseqand cursor. A read waits for a commit that drew a lowerseqto end, so a reader never acknowledges past a row that becomes visible later. The prune now counts from the commit instant and keeps every row an active reader has not acknowledged (migrationsclinical/0030_outbox_feed.sql,party/0023_outbox_feed.sql). With no reader named, no commit writes an outbox row (#4786). -
An administrator repairs an EHR held closed by
EHR_ACCESSsettings that do not parse withPOST /admin/ehr-access/repairunder the extensions root, naming the EHR and the new settings in the body. The repair commits a newEHR_ACCESSversion with its commit audit and contribution, writes an access record, and is refused with409for an EHR that is not held (#4853). -
openehr-am:ArchetypeHridimplementsDisplay, writing the physical form[ns::]publisher-package-class.concept.vMAJOR.MINOR.PATCH[-status[.build]]that itsFromStrreads back, so a consumer no longer rebuilds an archetype or template id from the fields.openehr-adlwrites every identifier through it.version_idandphysical_idno longer write a trailing.after a version modifier that carries no build count (#4938).
Changed
-
A viewer session now also ends
session.absolute_minutesafter sign-in, 12 hours by default, whatever the activity; the idle window (session.idle_minutes) can no longer carry it further. A lifetime of zero or one shorter than the idle window refuses the start. A session cookie sealed by an earlier release carries no sign-in time and no longer opens, so the upgrade signs every viewer user out once (#3057). -
Breaking for clients that relied on the old leniencies:
POST /ehr/{ehr_id}/contributionandPOST /demographic/contributionnow read the body through the releasedNewContributionschema, and refuse every shape it does not define. Each refused shape answers 400: (#3595)- a
lifecycle_statein the CODE_PHRASE shape{"terminology_id": …, "code_string": …}, as a plain string, or as a bare{"value": …}. Send aDV_CODED_TEXT:{"value": "complete", "defining_code": {"terminology_id": {"value": "openehr"}, "code_string": "532"}}; - a
descriptionsent as a plain string, on the contributionaudit, on acommit_auditor on an attestation. Send aDV_TEXTorDV_CODED_TEXTobject:{"_type": "DV_TEXT", "value": "…"}; - a
commit_auditor contributionauditwithoutchange_type. The server no longer infers creation or modification frompreceding_version_uid; send the code of the change, for example249(creation),251(modification),523(deleted) or666(attestation); - a
commit_auditor contributionauditwhose_typeisATTESTATIONorUPDATE_ATTESTATION, or any value other thanUPDATE_AUDITorAUDIT_DETAILS. Send the audit asUPDATE_AUDIT(or with no_type) and put each attestation in the version’sattestationslist as anUPDATE_ATTESTATION. A666(attestation) version carries its attestations there too, and one with no attestation is refused; - a missing
audit, which answered 422 before. A missingversionslist, an attestation withoutreasonoris_pending, asystem_idthat is not a string, and apreceding_version_uidsent as a plain string instead of{"value": "…"}are refused the same way.
- a
-
An attestation’s own
system_idis kept, and one that states none takes thesystem_idof the version audit it belongs to instead of the server’s. An attestation committer is now checked against itsPARTY_PROXYrules like every other committer, so an invalid one answers 422 (#3595). -
The served OpenAPI document describes each extension route by what it does and by the ITS-REST text that governs it, and no longer names openEHR Service Model operations, interfaces or status codes. Routes, request and response fields and status codes are unchanged (#4213).
-
A population AQL query that only counts its root objects, such as
SELECT COUNT(c) FROM EHR e CONTAINS COMPOSITION cor the same withCOUNT(*), reads the current version rows and no longer probes the root node of every composition. At 545 000 compositions the count fell from about 9 s to 0.2 s (#4286). -
A REST request checks a connection out of each database pool once and keeps it until it answers, where it took one for each statement: two to four checkouts for a read of an EHR, an EHR_STATUS or a COMPOSITION, each waiting in the pool’s queue under load and each paying the pool’s release round trip. At 48 concurrent clients and a pool of 10, throughput rose by about 18 % and the median latency fell by about 13 % (#4289).
-
The Helm chart, at a new major version (21), has no default deployment profile: it refuses to render until
config.deployment_profilenamessandboxorproduction, so an installation that follows a quickstart instead of the instructions for use no longer runs the sandbox posture by omission (EHDS Annex II 1.2). A values file that relied on the oldsandboxdefault must now set it, for example--set config.deployment_profile=sandbox;values-production.yamlsetsproductionas before. The server binary’s own default and the Compose files, which declaresandboxexplicitly, are unchanged (#4294). -
The audit store keeps each record’s facts in columns and renders its FHIR R4
AuditEventfrom them when the record is read over ITI-81 or delivered by the FHIR feed, instead of storing the rendered document in every record. A record takes about a quarter of the space it took before. The configuration the rendering depends on (the audit source, the store horizon, the category map and the emergency purposes) is kept once per distinct configuration inaudit.audit_render_policy, and every record names the policy it was written under, so it renders the same document after the configuration changes. The tamper chain hashes every column of the record in one digest and checks each render policy against its digest; the earlier digest versions are retired. Audit migration 0017 needs an empty audit store and refuses one that holds records written by an earlier release, naming the remedy. ITI-81 parameters on an element of the document (address, the.identifierparameters,entity-type,entity-role,type,subtype) are matched against the rendered document (#4300). -
The three audit indexes on
recorded_atascend, so their pages fill instead of splitting half full on every insert; the newest-first ITI-81 search scans them backward (#4302). -
A clinical or party node row now stores only the part of its canonical JSON fragment that its own columns do not hold:
_type, a lowercasearchetype_node_id, a plain or simply coded name, and an ELEMENT value in one of the common basic shapes (a quantity, count, ordinal, coded or plain text, date, time, duration, identifier, boolean or URI) move into columns, the value into the new typed value columns. Every reader rebuilds the omitted keys, so the canonical JSON and every AQL result are unchanged, and a filter on a quantity’s magnitude or a code reads its column directly. The node heap shrinks by about a third (storage generation 3); a row written before keeps its whole fragment and reads the same. Migrationsext/0005,clinical/0019andparty/0012add the columns and the readers; no data is migrated (#4306). -
Every ITI-81 search parameter answers through an index again. The store takes the search tokens of a record’s rendered
AuditEventwhen it writes the record: each distinct token once inaudit.audit_search_token, the code-system tokens (type,subtype,entity-type,entity-role,source.identifier) as one shared set inaudit.audit_search_set, and their ids on the record insearch_tokensunder a GIN index;entityreads a hash index onresource_id. A search onaddressor a token parameter no longer renders every record in itsdatewindow. The tamper chain coverssearch_tokens, and the verifier reports a changed token or set (#4313). -
The storage-bench lane measures the baseline and the candidate on one runner in eight interleaved rounds each and gives two verdicts. The plan verdict fails an operation whose median pages per call rose more than 10 % and one page above the baseline’s highest round, whatever its time. The time verdict divides each round by its machine factor, so a slow spell of the runner no longer reads as the code, and fails an operation whose median p50 or p99 rose more than 15 % with every candidate round slower than every baseline round, or a candidate build that ran more than 15 % slower across the board in every round. A latency is no longer compared with a record measured on another runner (#4318).
-
The viewer takes FerroUI 0.5.8: a menu item draws a visible bar under the pointer and the keyboard focus, and the top bar’s search no longer opens its panel again over the page the router draws after a search is submitted or one of its options followed (#4319).
-
Nothing ITS-REST 1.1.0 does not define is served under the openEHR base path any more. FerroEHR serves three namespaces beside each other under
/ferroehr/rest/:/openehr/v1/holds only the ITS-REST routes,/fhir/r4/the FHIR and IHE interfaces, and/extensions/v1/FerroEHR’s own extensions. The ITI-81 retrieval moved from/ferroehr/rest/openehr/v1/fhir/r4/AuditEventto/ferroehr/rest/fhir/r4/AuditEvent. These routes moved from/ferroehr/rest/openehr/v1/...to/ferroehr/rest/extensions/v1/...with the same relative path:/terminology/...,/admin/event_subscription...,/demographic/party_relationship...,/demographic/versioned_party_relationship/...,/definition/archetype/...,/definition/artefact/...,/message/export...,/message/import...,/query/cohort, and the admin extensions/admin/config,/admin/template/{template_id},/admin/query/{qualified_query_name}/{version},/admin/party/...,/admin/archive/...,/admin/report/...,/admin/dump,/admin/load,/admin/integrity/...,/admin/restriction...,/admin/access-restriction...,/admin/research-objectionand/admin/retention/.... The old paths answer 404, with no redirect. The served OpenAPI document and its family documents name the new paths; the admin extensions, the archetype library and the cohort query have family documents of their own (admin-extensions,archetypes,cohort,contributions). The paged CONTRIBUTION list moved too, to/ferroehr/rest/extensions/v1/ehr/{ehr_id}/contribution(#4330). -
The server and viewer images build on the current
gcr.io/distroless/cc-debian13:nonrootdigest, so they carry the base image’s latest Debian package updates (#4335). -
Canonical JSON validation against the openEHR ITS-JSON schemas runs on
jsonschema0.59.0, which refuses a value whose regex match the engine cannot finish where 0.58 accepted it undernotorpatternProperties. Theopenehr-*crates move to 0.0.113 (#4336). -
A statement the database cancels, by its
statement_timeoutor a cancel request (SQLSTATE57014), answers503withRetry-Afterinstead of500: the statement rolled back, so the request can be repeated. By default the request timeout answers before the 60 s statement timeout fires, so on a request path it is raised by an operator’s cancel or by a forward step of the database host’s clock, which fires every running statement’s timeout at once (#4338). -
Every error on the openEHR routes (
/ferroehr/rest/openehr/v1/), the extension routes (/ferroehr/rest/extensions/v1/) and the management routes answers RFC 9457 problem details,application/problem+json, in place of the{ message, validationErrors, error }body shaped after the ITS-REST example. The status codes are unchanged. A problem carriestype,title,status,detailand the request id as aurn:uuid:instance; the refusals a client acts on have FerroEHR types documented on the book’s Problem types page (aql-invalid,query-timeout,validation-failed,content-invalid,conflict,version-conflict,unauthenticated,forbidden,processing-restricted,unavailable,rate-limited), every other error isabout:blank. A request withPrefer: return=representationreceives the additional details ITS-REST allows: the violations of a validation refusal aserrors({path, detail}, wherevalidationErrorsheld"<path>: <message>"strings), the bytepositionof an AQL parse refusal, and thecurrent_versionof a412. The stack’s own408,413,429,503and panic500are problems too, and anOperationOutcomeunder the FHIR base, where an authentication refusal is now anOperationOutcomeas well. The served OpenAPI document declares theProblemschema for every4xxand5xx, and the viewer reads problem details. A client that readmessagereadsdetail; one that readvalidationErrorssendsPrefer: return=representationand readserrors(#4342). -
The FHIR
AuditEventof an EHDS access record names the object it reads, creates, updates or deletes by its openEHR object id asentity.what.identifierwith the systemurn:openehr:object-id, where it wrote awhat.referencethat no FHIR server resolves and HAPI FHIR refused (FHIR R4 references.html §2.3.0.3). ITI-81 finds the record byentity.identifier. FerroEHR takes FerroAUDIT 0.3.2 (ihe-atnaandehds-logging) (#4366). -
The access log costs the request path less under load. The audit store writes a drained batch, its search tokens and its token sets in one transaction on one connection (one commit where it took up to three), stores only the tokens it does not hold yet, and the GIN index on
search_tokenstakes new entries through a pending list of 512 kB. On the release load test the store wrote 1.5 KB of WAL per record where it wrote 5.2 KB (#4375). -
The LANG specification text is re-vendored at
f80763ab(#4377). SPECLANG-18 states how a P_BMM schema’s JSON form encodes a cardinality interval, which the JSON schema reader already followed; its documentation now cites the rule, and a test pins it. SPECLANG-16 types the P_BMM class lists as keyed collections; the generated P_BMM model takes that change with #4497. The nineopenehr-*crates step to 0.0.122. -
[ehr_index] provider = "local"besidepixm_url,assigning_authority,[ehr_index.oauth]or[ehr_index.tls]is accepted, where it was refused: the IHE keys are kept, not used and named at boot, soprovideralone switches the index, in the file or asFERROEHR__EHR_INDEX__PROVIDER. Declared pseudonym namespaces stay in force under either index (#4379). -
A build no release lane marked reports its commit beside the package version, as SemVer build metadata (
5.6.0-rc2+dev.1a2b3c4d5e6f), onferroehr --versionandserver_versionofGET /ferroehr/rest/status(the boot banner and/management/infoalready name the commit beside the version), so a report from a build ofmainno longer reads as the release it follows; a release build reports the bare version (#4380). -
The compose quickstart runs FerroPIX 0.0.12, pinned by digest, with its configuration moved to that release’s keys (
public_base_urlat the top level, the Patient Identity Source’s client under[[trust.issuer]]), and Dependabot proposes each FerroPIX release (#4380). -
The Helm chart runs FerroPIX 0.0.12 by digest, with the FerroPIX chart 0.3.4 built for it, and the hosted sandbox runs FerroPIX 0.0.12 too; both had stayed at 0.0.7 and 0.0.10 when the quickstart moved. A values file for the chart’s FerroPIX moves
ferropix.config.server.public_base_urltoferropix.config.public_base_urland each issuer’sclientstoferropix.config.trust.issuer, the keys FerroPIX reads since 0.0.8; the chart’s examples and the production overlay do. FerroPIX’s chart now also runs its pods withenableServiceLinks: falseand in a user namespace (ferropix.hostUsers: false, the default). A CI guard holds the quickstart, chart and sandbox to one FerroPIX release and checks the sandbox’s and the chart’s FerroPIX configuration under it, so the Dependabot proposal for the quickstart pin moves all three (#4392). -
openehr-query, the AQL 1.1.0 lexer, parser, typed AST and printer, is published under Apache-2.0 from 0.0.116, like the generated model crates andopenehr-its, so any Rust project can parse AQL with it. Versions 0.0.60 to 0.0.115 keep the Business Source License 1.1 they were published under (#4405). -
A version whose content equals its predecessor’s stores that content once: the version row, its commit audit, its contribution, its attestations and its uid-stamped body are written as before, and the node rows are not, the new version reading its predecessor’s through the new
version.content_sys_versionand the storedversion.content_keyevery reader joins on (migrationsclinical/0032,party/0025andclinical/0033, which re-creates theretention_dueview). Every reader, AQL included, answers each version with its own uid. The digest the content is compared on isversion.content_digest, SHA-256 over the canonical body with the root uid removed; a row written before keeps its own rows and is never shared (#4415). -
FerroEHR takes
ferrohealth-server0.4.0 in place of 0.3.9. The new[server] idle_timeout_ms(120000 by default) closes a kept-alive HTTP/1.1 connection that waits that long for its next request, with a clean end of stream, and[server] header_read_timeout_mscounts from the first byte of each request head on a kept-alive connection (from accept for the first one, as before). The head bound 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, which a client such as Go’snet/httpsaw asEOFon aPOSTit does not retry (#4381). A deployment that setheader_read_timeout_msto bound idle connections setsidle_timeout_msinstead. The refusals the listener writes itself (408,413,429,503) and a panic’s500keep naming the server’s request id as theirinstancewhen the client sends its ownX-Request-Id, as every other FerroEHR refusal does (#4417). -
FerroEHR runs on
ferrohealth-server0.4.1, which keeps a product’s own fallback and the layers around it when the stack merges its routes (FerroHEALTH/FerroSYS#199). FerroEHR, v5.6.0-rc3 included, was not exposed to the regression 0.4.1 fixes: the REST API and the viewer declare their own fallback inside their layers, and the management endpoints guard each route they serve, so a path no route matches answers as it did before (#4427). -
The viewer draws every page on its server with FerroUI 0.6, with no Leptos and no WebAssembly: a link and a form load a new page, and FerroUI’s own small script modules add behaviour on top of what the server drew, so every page works with JavaScript off. The image ships the one
ferroehr-viewerbinary, with no/sitetree beside it and nohash.txt; FerroUI’s stylesheet, theme and scripts are served from inside it under/ferrohealth-ui/0.6.0/, and/pkg/no longer answers. The Content-Security-Policy is nowscript-src 'self'; style-src 'self'with no per-response nonce and no'wasm-unsafe-eval'. The image no longer readsLEPTOS_SITE_ROOT,LEPTOS_OUTPUT_NAMEorLEPTOS_HASH_FILES, so a deployment that sets them can drop them;LEPTOS_SITE_ADDRnaming another address thanserver.listenstill refuses the start. A proxy rule written for/pkg/(the hosted deployment’sCache-Controlfor it is removed) has nothing left to match (#4433). -
The viewer runs on
ferrohealth-server0.4.2 and takes its Content-Security-Policy from the family’s server-rendered console headers (FerroHEALTH/FerroSYS#202) in place of a layer of its own. The policy a deployment sees is unchanged:default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; connect-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none', with no nonce. FerroUI’s assets under/ferrohealth-ui/keep theCache-ControlFerroUI sets, and a refusal under that path isno-storewhatever FerroUI’s router sets, so a cache in front of the viewer keeps no error answer for an asset. The REST server takes the sameferrohealth-serverrelease with no change in what it serves (#4439). -
scripts/conformance.shruns the Veredictum 0.3.0 catalogue against one FerroEHR deployment: it reviews the party statement withveredictum validate, drivesveredictum testin the release image pinned by digest with Basic login, and writesresults.json, the HAR recording and the JUnit, CTRF and Markdown views todocs/conformance/ferroehr/. Docker or Podman runs it (CONTAINER_ENGINE). The FerroEHR statement now claims the 15 capability folders and answers every option of the 0.3.0 catalogue, and the IXIT keeps only what 0.3.0 reads (#4448). -
The published conformance record is a Veredictum 0.3.3 released-profile run, committed as
docs/conformance/ferroehr/results.jsonwith itssummary.md. The landing page and the book’s conformance page show the Veredictum badges of the released and development runs onmainand the record’s counts per part (BASE and OPTIONS), in place of the Veredictum 0.1.6 heat grid, chapter bars and tier pills. The docs and landing pages admit images fromraw.githubusercontent.com/FerroHEALTH/FerroEHR/for the badges (#4451). -
The measured performance lane runs Veredictum 0.3.3’s
perf.scripts/conformance.sh perfcomposes the conformance deployment with the measurement overlay, runs the pinnedclinical-mixworkload, checks the record withperf-judgeand redraws the book’s charts fromdocs/conformance/ferroehr/perf-result.json.scripts/conformance.sh perf-aameasures the deployment against itself, so the record carries its between-run noise floor. The measurement overlay also switches response compression off, and the IXIT names the deployment’s containers for the run’s server-side readings. The Performance and Benchmarks pages describe the new instrument. They keep the earlier figures until a record measured on the reference host replaces them (#4452). -
The serving roles may now analyze their store’s partitioned tables: new migrations (clinical 0026, party 0018) grant
MAINTAINonnode,versionandvo_attestation, and onclinical.ehr, toferroehr_clinicalandferroehr_party, so the hourly statistics refresh works under the role split.MAINTAINalso allowsVACUUM,CLUSTER,REINDEXandLOCK TABLEon exactly those tables. A role that still lacks it gets the warning naming the tables, as before (#4453). -
With the role gate on (
[authz.rbac] enabled), a bearer token whose SMART on openEHR resource scopes are allsystem/scopes, such assystem/template-*.r, now reaches a clinical operation without a role: it is a backend client, and its scopes decide what it reaches. Auser/orpatient/token belongs to a person and still needs at least one role, as does a token with no SMART on openEHR scope and a Basic user; an admin operation still needs the admin role (#4467). -
A tag update (
PUT …/tagson EHR_STATUS, COMPOSITION and the five party kinds) sent withPrefer: return=identifiernow answers200with the stored tag list andPreference-Applied: return=identifier. It answered204(#4475). -
The conformance deployment runs FerroTERM beside FerroEHR, pinned by digest, with
[terminology.server]pointed at it, locally inscripts/conformance.shand in the Conformance workflow, so theaql-terminology-supportedarm of the party statement runs against a real terminology server (#4476). -
The P_BMM model follows SPECLANG-16. The LANG 1.1.0 BMM that
openehr-codegenreads is now thespecifications-LANGfile atf80763ab, soP_BMM_SCHEMA.primitive_typesandclass_definitionsare maps keyed by class name,P_BMM_CLASS.ancestor_defsis a map ofP_BMM_BASE_TYPEkeyed by type signature (a simple ancestor included), andP_BMM_GENERIC_TYPE.generic_parameter_defsis an optional map keyed by formal parameter name. The formal and actual generic parameters (P_BMM_CLASS.generic_parameter_defs,P_BMM_GENERIC_TYPE.generic_parameter_defs,BMM_GENERIC_CLASS.generic_parameters) are insertion-orderedIndexMaps, because the specification fixes their declaration order, and the model builders bind each actual parameter to its formal by name. In the releasedv1_0generation,P_BMM_GENERIC_TYPE.generic_parameter_defsnow carries the1..*bound its BMM states. The nineopenehr-*crates step to 0.0.123 (#4497). -
The conformance pipeline runs Veredictum 0.3.1. The Conformance workflow drives the catalogue through the Veredictum Action twice, each run on fresh volumes: under the
releasedprofile, the frozen openEHR release, which is the record and decides the job, and under thedevelopmentprofile, the pinnedmasterof each openEHR repository, which is published beside it under its own job summary heading and artifact and never counted toward it. Both runs include the SMART documents: the Action now takes the SMART Platform base URL and the committed test issuer’s key. The workflow reads the result paths and the exit status from the Action’s outputs.scripts/conformance.shtakes the profile asCONF_PROFILE(releasedby default; adevelopmentrun writes todocs/conformance/ferroehr-development/) and drives the SMART documents in the same run, and the IXIT carries the test issuer’sscoped_tokensdeclaration (#4503). -
The viewer groups a template’s releases. The template list draws one group per template, the newest release first with the number of releases and the earlier releases under it, in both the ADL 1.4 and the ADL 2 tab. A template’s page names its release beside its title, where every other release is a link with the newest marked, also with FerroUI’s scripts refused; the release select and its Open button above the tabs are gone. The Overview lists the releases with the compositions committed against each, and a new Compare tab lists the paths one release adds, removes and changes against another (#4506).
-
Every write checks the committer against the login that authenticated the request where the server can compare them: a committer naming another login of the caller’s token issuer or of this server, or a
PARTY_SELFcommitter from a caller who is not the record’s person, is refused with a 403. A name only, or an identifier of another authority, is stored as sent. The direct writes (composition, EHR status, directory, EHR, demographic) now also refuse a committer that breaks its own rules with a 422, as the contribution path already did (#4520). -
An audit record no longer adds a row to
audit.audit_search_tokenfor its request id or for the version uid a create wrote. ITI-81entity.identifierfinds both from the record’s ownrequest_idandresource_idcolumns, through a new hash index onrequest_id(audit migration 0020), so the token table stays flat as requests are audited. Retention now deletes the search tokens that no remaining record names, among them the request id tokens of records written by 5.6.0-rc5 and earlier, and the database still refuses to delete a token a kept record names (#4524). -
A clinical or party node row below the root no longer repeats its archetype header, language and encoding: an archetype root’s
archetype_detailsandarchetype_node_idare rebuilt from thearchetypecolumn and a newrm_versioncolumn, and alanguageinISO_639-1and anencodinginIANA_character-setskeep only their code, in the newlanguageandencodingcolumns. Every reader puts the keys back where they stood, so the canonical JSON, every AQL result and the served key order are unchanged; a header of any other shape stays in the fragment. A vital signs version takes 17.1 KB instead of 21.6 KB and an International Patient Summary 131 KB instead of 159 KB. Migrationsext/0007,clinical/0028andparty/0020add the columns and the readers; no data is migrated, and a row written before keeps its whole fragment and reads the same (#4525). -
ext.storage_generation()reportsgeneration-4, the storage generation with the node header columns, and the storage benchmark records for it are committed underdocs/benchmarks/storage/generation-4/. Migrationext/0008changes only the label; nothing in the serving path reads it (#4525). -
Five response messages no longer name the openEHR Service Model. The admin dump route’s
400for a missingfile_sys_locnow reads “request body must carry a non-emptyfile_sys_locstring, a location on the server’s file system (FerroEHR’s own dump/load extension)”, and its400for anencodingmember reads “encodingis not accepted: FerroEHR’s own dump/load extension defines no encoding, so no value names one”. The admin activity-report400s fora_servicenow list the accepted service names (“query parametera_serviceis required: one of Admin, Definitions, …” and “query parametera_servicenames no platform service: … (expected one of …)”). The not-implemented answer ofstore_query_setreads “store_query_set is not implemented: no openEHR specification defines a query set”. Theopenehr-rmvalidation docs for the threePARTYandPARTY_RELATIONSHIPrelationship invariants now name the separate relationship container as FerroEHR’s own design against RM demographic §Party Relationships (#4531). -
Breaking for clients that relied on the remaining commit-audit leniencies: the audit rules of the CONTRIBUTION commit now hold on every write path (#4543).
- A
descriptionobject without_type, such as{"value": "…"}, is refused with 400 on a contributionaudit, acommit_auditand an attestation, and so is an attestationreasonwithout_type. Send{"_type": "DV_TEXT", "value": "…"}or aDV_CODED_TEXTwith its_type. - A stated empty
system_idis refused with 422 on the direct writes too (openehr-audit-details: system_id=""on a create, update or delete), where the server used to replace it with its own. Leavesystem_idout to get the server’s, or send a non-empty one. Asystem_idthat is not a string stays a 400 on both CONTRIBUTION routes. - A commit audit of type
UPDATE_ATTESTATIONhanded to the library’s direct write calls (create_composition,update_composition, the EHR_STATUS, DIRECTORY and party writes) is refused with 400, as on the CONTRIBUTION routes. Send the audit asUPDATE_AUDITand put each attestation in the version’sattestationslist.
- A
-
Members that
NewContributionorUPDATE_AUDITdo not declare, such as areasonoris_pendingon a plain audit or an extra top-level member of a contribution, are accepted and ignored: the released schemas leave both objects open (#4543). -
The
openehr-*crates take their version when they are published. A pull request that changes the crates no longer bumps their lockstep0.0.xversion: the crates publish reads crates.io, takes the next version when packaged content changed since the newest published one, and refuses to publish changed content under a version crates.io already holds. The version in the manifests onmaincan therefore trail the newest version on crates.io (#4555). -
The served Web Template of an ADL 2 operational template writes the
aqlPathof an ELEMENT’s value and of a data value’s parts without an[idN]predicate, since a data value carries noarchetype_node_id(ADL2master05-paths§“Relationship with W3C Xpath”). ADV_INTERVALand its parts read…/value,…/value/lowerand…/value/upper, the form the ADL 1.4 Web Template writes, where they read…/value[id6]/lower[id7]before, and the parts’ ids arelowerandupper(#4559). -
The served Web Template gives every
DV_INTERVAL<T>node itslowerandupperchildren, each of typeT, also when the operational template leaves them unconstrained (RMdata_types§DV_INTERVAL). Such a node had no children before. An unconstrained part carries the open inputs of its type, and itsaqlPathis…/value/loweror…/value/upper. This holds for ADL 1.4 and ADL 2 templates (#4559). -
The template example fills such an interval: an unconstrained part takes the example value of its constrained sibling, so the limits stay consistent (#4559).
-
The served Web Template of an ADL 2 operational template writes a coded input whose at-codes the template binds to a terminology as the bound terms: its
codelist carries each binding’s code and label and itsterminologynames the bound terminology (ADL2master08-terminology_integration§“From Constraints to Concrete Codes in Data”).COMPOSITION.categoryboundat1toopenehr::433reads{"value": "433", "label": "event"}withterminology: "openehr", where it read the localat1before, and an[acN@ttttt]constraint takes the bound terms of the terminology it names. A FLAT or STRUCTURED composition without a category, and the example composition, now carryopenehr::433. TheaqlPathof every data value drops its[idN]predicate, so a constrainedcategoryandcontext/settingread/categoryand/context/setting(#4574). -
A CONTRIBUTION’s
versions[]entry records its merge inputs: theother_input_version_uidsit states are stored on the committedORIGINAL_VERSIONand served on every read, where the server used to refuse the member with 400. The uids may name versions the server does not hold; an empty list or an entry that is not anOBJECT_VERSION_IDis a 422 (#4577). -
Other members
UPDATE_VERSIONdoes not declare, such asitemor an extension member, are accepted and ignored, where the server used to refuse them with 400: the released schema leaves the object open, as it doesNewContributionandUPDATE_AUDIT. Auidorcontributionon a version entry is still refused with 400, because the server assigns both, and so is a_typeother thanUPDATE_VERSIONorORIGINAL_VERSION(#4577). -
The admin dump route’s refusals name its parameters by their wire names and list the accepted values, not the Service Model class names. A bad
logical_formatorcompression_formatnow reads “<field>must be a string, one of …” or “<field>names no accepted value: … (expected one of …)”, and a non-integersegment_split_sizereads “segment_split_sizemust be an integer size in kb”. The served OpenAPI text for the route no longer namesEXPORT_SPECorEXPORT_FORMAT(#4634). -
Five archive dump and load failures still answer
500, and their bodies are now fixed text that echoes no value from the archive: (#4657)- an unreadable data segment no longer names the segment, though
manifest.jsonanddemographic-commons.jsonare still named; - an unknown logical format in the manifest no longer echoes the declared value;
- a version whose id carries a path separator, and a version whose commit audit the export lacks, no longer name the version.
- an unreadable data segment no longer names the segment, though
-
A failed expansion of a party’s protected national identifiers still answers
500, and its body now reads “expanding the protected identifiers of a party version failed” without echoing the requested version uid: a500body carries curated text only (#4657). -
Two query failures still answer
500, and their bodies now carry curated text only. A stored query whose record holds no query text reads “the stored query has no query text” without echoing its name, and a terminology server failure while aTERMINOLOGY('expand', …)operand is resolved reads “the terminology service failed while the query was being planned” instead of the upstream message (#4657). -
The
db_transactionscounter (outcome="commit") now counts every committed single-object write. It used to leave outEHR_STATUSand DIRECTORY writes (#4659). -
The access record of a VERSION read (
GET /ehr/{ehr_id}/versioned_composition/{versioned_object_uid}/version, its/version/{version_uid}form, and the same twoversioned_ehr_statusroutes) now names the content it served, and for a COMPOSITION the origins of its data, as the bare reads already did. Itsehr_idis the parsed EHR id, as on every other read, rather than the path text as sent. The response is unchanged (#4660). -
A query request whose
ehr_id, as the query parameter or theopenehr-ehr-idheader, is not a UUID is refused with the same 400 and text as before, now before the AQL is parsed and planned. The refusal therefore comes ahead of the refusals planning raises, such as an EHR scope on a query rooted at a demographic class, andaql_queries_total{outcome="analysis_error"}no longer counts it (#4661). -
OPTIONSon the API base path sendsconformance_profileasBASE+OPTIONSwhere it sentSTANDARD. The build derives the value from the committed Veredictum record,docs/conformance/ferroehr/summary.md:BASE+OPTIONSwhen the BASE rows and the run OPTIONS rows have none failed and none errored,BASEwhen only the BASE rows do, and the member left out otherwise. ITS-REST 1.1.0 types the member as a free string and CNF names no profiles, so the values are FerroEHR’s own. The[rest.identity] conformance_profileconfiguration key is removed: a configuration that still sets it is refused at boot as an unknown key (#4672). -
The served OpenAPI description of
POST /query/cohortno longer names the linkage domain, which the server no longer has. It says the predicate selects parties on the demographic database credential, and that those parties are resolved to the EHRs whoseEHR_STATUS.subjectnames one of them on the clinical credential. The route, its fields and its status codes are unchanged (#4695). -
Every route now reads
Preferas RFC 7240 §2 defines it, as error responses already did: a preference in a secondPreferfield, one that carries parameters after;(return=representation; x=1), and one with whitespace around=(return = representation) are honoured. Before, only the firstPreferfield was read, and such a preference was ignored (#4722). -
The viewer answers every request other than
GETandHEADthat arrives without a session, to any path but the sign-in page, the OIDC routes, sign-out and the search answer, with the sign-in page that says the session ended, before any handler runs. A post to a page returns there after signing in; a post to the export, preference, sidebar or paging route returns to the dashboard. The export post used to answer303to/login, and the preference, sidebar and paging posts ran without a session (#4724). -
Breaking:
POST /admin/loadanswers a malformed archive with400(#4738). A container,manifest.json, segment or blob entry that is absent, truncated or does not parse as an export archive, and a manifest that declares an unknown logical format, are the caller’s input, so the load refuses them with the newarchive-invalidproblem type instead of a500. Thedetailnames the entry, and withPrefer: return=representationthearchivemember carries it as{"entry": …}or{"format": …}. A location with no archive, or one the server’s filesystem refuses to read, still answers500. -
The conformance instrument is Veredictum 0.4.0, and the published conformance record (
docs/conformance/ferroehr/results.jsonwith itssummary.md) is a 0.4.0 released-profile run. The party statement answers the 0.4.0 catalogue: it keeps thexml-namespace-v2arm, which now asks only whether the TRIALhttp://schemas.openehr.org/v2namespace is also accepted, and selects the new development-profile option armadl2-id-coded-supported(#4771). -
The RM 1.2.0
TRANSLATION_DETAILSof the retained ADL 1.4 resource package, thedevelopmentprofile’s generation, spells its translator accreditationaccreditationnow, following the RM 1.2.0 BMM at09e481e9: its canonical JSON and canonical XML carry the keyaccreditationin place ofaccreditaton, and the XML reader binds an<accreditation>element it used to skip. Theopenehr-rmfieldv1_2::common::resource::translation_details::TranslationDetails::accreditatonis renamedaccreditation; the releasedv1_1generation keeps the RM 1.1.0 spelling (#4813). -
The regulatory position, the technical documentation, the audit trail page and the compliance overview name FerroBRIDGE’s recording of its FHIR facade’s accesses as part of the logging component, from FerroBRIDGE 0.0.16: FerroEHR’s record of a facade access names the bridge’s credential, and the bridge’s own Annex II 3.2 record, sent as an IHE BALP
AuditEvent, names the natural person. The pages no longer say FerroBRIDGE holds no part of the log, and say how the two harmonised components stay independent with it (#4822). -
The FerroEHR PostgreSQL image is built on the 2026-11-02 respin of
postgres:18.6(#4836,sha256:3a426452…), a same-version respin with rebuilt base packages. Every finding of a full scan of the rebuilt image keeps its judgement insecurity/vex/postgres-os.openvex.json, and none goes stale. -
A CONTRIBUTION that writes
ferroehr.access_control.v1settings whose privacy overrideuidis neither aVERSIONED_COMPOSITIONuid nor a version uid whose first part is one is refused with400, naming the override. Such an override matched no composition, since every composition id is a UUID; stored settings that still carry one are read without it (#4837). -
An archetype root converted from an ADL 1.4 operational template records each language its terminology carries beside the template’s own as a
conversion_detailsentry,translation.<language>, naming the source template. An OPT 1.4 has no translation record, so the conversion writes notranslationsentry for these languages (#4861). -
The viewer signs in and keeps its session through
ferrohealth-session0.2.1, FerroAUTH’s console sign-in (#4873). Its own OpenID Connect client and sealed-session code are gone. The sign-in page moves to/sign-in, and the sign-in routes are/login(which begins the OpenID Connect sign-in),/auth/callback,POST /logout(which now also revokes the token and, for an OpenID Connect session, uses the provider’s end-session endpoint when it has one) and/session, the session watch. Sessions are kept in the viewer process by default (session.store = "memory"), and in one sealed cookie withsession.store = "sealed"and a key. A sealed store without a key refuses the start, so there is no ephemeral key any more. FerroEHR pinsferrohealth-smart0.8.8. Upgrade note:- The provider must allow the redirect URI
<public_base_url>/auth/callbackin place of/auth/oidc/callback, and the post-logout redirect URI<public_base_url>/sign-in?signed-out=1, where an OpenID Connect sign-out returns. A Basic sign-out lands there directly. [auth.oidc]becomes[oidc].enabledmoves toauth.oidc_enabledandpublic_base_urltoauth.public_base_url.tls.trust_roots_filebecomesoidc.ca_file, andresolve = "host=ip:port"becomesoidc.resolve = ["host=ip:port"].tls.client_identity(one PEM) becomesoidc.tls.client_certificatewithoidc.tls.client_key(orclient_key_file), andtls.min_versionbecomesoidc.tls.min_version, still"1.3"by default.- In
[session],idle_minutesbecomesidle_timeout_sandabsolute_minutesbecomesabsolute_timeout_s, both in seconds;cookie_securebecomessecure_cookie.secretandsecret_filebecomekeyandkey_file, which only a sealed store takes, so a scaled deployment setssession.store = "sealed"beside its key. - The variables follow: for example
FERROEHR_VIEWER__AUTH__OIDC__ISSUERis nowFERROEHR_VIEWER__OIDC__ISSUER. Bookmarks to/loginreach the OpenID Connect sign-in, not the sign-in page. - The Helm chart (21.0.0) renders the new variables from the same
viewer.auth.oidc.*values.
- The provider must allow the redirect URI
-
A clinical or party node row stores a
HISTORYoriginand anEVENTorACTIONtimeof the plainDV_DATE_TIMEshape as their value string, leaves out anENTRYsubjectthat is a barePARTY_SELF, and the root row leaves out itsuid, which the version row already holds, and keeps its archetype header, language and encoding in the columns a row below the root used since generation 4, with the version’stemplate_idput back into the header. Four new boolean markers on the row (origin_compact,time_compact,party_self,uid_derived) say which keys it left out, so every reader puts them back exactly where they stood and a fragment of any other shape stays as written; the canonical JSON, every AQL result and the served key order are unchanged. Migrationsext/0010,clinical/0031andparty/0024add the markers and the readers; no data is migrated, and a row written before keeps its keys and reads the same (#4904). -
ext.storage_generation()reportsgeneration-5, the storage generation with the node compact markers, and the storage benchmark records for it are committed underdocs/benchmarks/storage/generation-5/. Migrationext/0011changes only the label; nothing in the serving path reads it (#4904). -
The terminology overlay (
docker-compose.terminology.yml), the Helm chart and the hosted sandbox run FerroTERM 0.3.3 (ghcr.io/ferrohealth/ferroterm:0.3.3@sha256:f25ddad886fd218ae1eb82af6b81b8ed16651333f5bd802e621c5ae83b0913f1), where the overlay and the chart ran 0.1.6 and the sandbox 0.3.1. FerroTERM 0.3 reads only itsFERROTERM__…configuration tree, so the overlay and the chart now setFERROTERM__TERMINOLOGY__CODE_SYSTEMS,FERROTERM__TERMINOLOGY__INDEX,FERROTERM__TERMINOLOGY__DEFAULT_LANGUAGEandFERROTERM__TELEMETRY__FORMAT. The overlay’s ownFERROTERM_INDEX,FERROTERM_LOG_FORMATandFERROTERM_DEFAULT_LANGUAGEshell variables keep their meaning. The index layout is unchanged, so a built index serves as it is. Upgrade: move anyterminology.extraEnventry that sets a pre-0.3 FerroTERM variable to itsFERROTERM__…key (#4931). -
The deployment artifacts run the newest release of each FerroHEALTH product, each pinned by its index digest. The terminology overlay, the SUT stack, the hosted sandbox and the Helm chart run FerroTERM 0.4.0 (
ghcr.io/ferrohealth/ferroterm:0.4.0@sha256:efaa80152721c3738e0d0c0695cadbfefe89c1cf6df3567b9d3bc1788767e047), whose index layout is unchanged, so a built index serves as it is. The compose quickstart, the hosted sandbox and the chart run FerroPIX 0.0.14 (ghcr.io/ferrohealth/ferropix:0.0.14@sha256:389f40d144fe2ef3d79c1c1628e9a662a058961b1650c5541e601addc27112d8), with the FerroPIX chart 0.3.6 built for it. The chart runs FerroBRIDGE 0.0.17 (ghcr.io/ferrohealth/ferrobridge:0.0.17@sha256:4cdf8d4b4c4d626b99a3929a363198067f87ac70875f4ce6db1d0614884f12af) where it ran 0.0.5, and now writes FerroBRIDGE’s[usage_report]frombridge.usageReport.enabled. FerroBRIDGE 0.0.17 checks the callers of its FHIRconnect operations, FHIR facade and operator API through[auth], and refuses to start them until[auth]namesissuerandaudienceor setsenabled = false. Upgrade: a values file that setsbridge.mappingsaddsbridge.config.auth.issuerandbridge.config.auth.audience, orbridge.config.auth.enabled: falseto serve the operations to every peerbridge.networkPolicy.ingressFromadmits (#4933). -
The viewer draws with FerroUI 0.6.6 (
ferrohealth-ui), and serves its stylesheet and scripts under/ferrohealth-ui/0.6.6/, with FerroUI’s fixes since 0.6.0: a mapping row’s relationship words and the top bar’s search submit fit a 320 px screen, and a combobox is not spell-checked (#4933). -
An ADL 2 upload that constrains
propertyonDV_QUANTITYis still refused withVCARM, and the error now says thatpropertyis the ADL 1.4 archetype-profile attributeC_DV_QUANTITY.property, which no ADL 2 or RM release defines, and that the archetype’s ADL 1.4 source uploads and converts to ADL 2 without it (#4964). -
The server, the viewer and the EHR index take the newest FerroHEALTH family crates:
ferrohealth-config0.2.8,ferrohealth-server0.4.3,ferrohealth-session0.2.2,ferrohealth-telemetry0.2.4,ihe-iti0.0.74 andferrobridge-term0.1.141. What changes for you:[telemetry.otlp]now refusestrust_roots_fileorclient_identity_filebeside an endpoint that is nothttps://, and a file that is no PEM of its kind, at boot and naming the key, where it exported in plain text with the files ignored. Upgrade: point the endpoint athttps://when the collector speaks TLS, or drop the two keys when it does not. Each request’s exported span is a server span named{method} {route}whose status is an error on a 5xx answer, where it was namedrequest./management/prometheusgainshttp_server_active_requests, the requests in flight by method and scheme. A panic line names the server’s id of the request it happened in. A configuration refusal no longer echoes a secret written unquoted in the file, and a refusal inside an array of tables names its key with the element’s index (#4968). -
The conformance instrument is Veredictum 0.4.1, and the published conformance record (
docs/conformance/ferroehr/results.jsonwith itssummary.md) is a 0.4.1 released-profile run. The record gains the threeaqlc_selectcases of the aql-conformance corpus at3ecd250(a quoted'True'and a quoted'3e102'stay String literals, and a quoted date/time literal projects as the value it writes). Veredictum 0.4.1 skips a refusal row whose every control was skipped, where 0.4.0 errored it, so on the development profiletemplate_adl2/get_template_adl2_example-invalid_typeand-invalid_detail_levelare no longer errored. The development snapshot moves RM to09e481e9and ITS-XML to27c7a78b(#4971). -
The deployment artifacts run the newest FerroHEALTH releases, each pinned by its index digest: FerroTERM 0.4.1 (
ghcr.io/ferrohealth/ferroterm:0.4.1@sha256:b7f10609992377a7b8bca666254bceca79fe4366e2e54fc5fbce079eb9abf619) in the terminology overlay, the SUT stack, the hosted sandbox and the Helm chart, with the index layout unchanged; FerroPIX 0.0.15 (ghcr.io/ferrohealth/ferropix:0.0.15@sha256:5572f80a3a17fe83228a2a6fcf40f1dcaf8cacc48275136927286ba6ded5c74b) in the compose quickstart, the hosted sandbox and the chart, with the FerroPIX chart 0.3.7 built for it; and FerroBRIDGE 0.0.19 (ghcr.io/ferrohealth/ferrobridge:0.0.19@sha256:bdf4bd416f772ac36e4b3a940eb67841989552c0a0950d680049d959bd54dcba) in the chart. None of the three renames or removes a configuration key FerroEHR sets. Helm chart 21.0.0 carries the three pins (#4981).
Removed
-
The conformance pipeline no longer runs EHRbase or the extra FerroEHR deployments.
docker/sut-ehrbase.yml, the EHRbase record and party set,docs/conformance/COMPARISON.md, the book’s Comparison with EHRbase page, and the openPGP-signing, fail-open and stable-spec compose overlays (docker/sut-signing-pgp.yml,sut-pgp-parallel.yml,sut-terminology-failclosed.yml,sut-terminology-failopen.yml,sut-spec-stable.yml) with the test signing keys undercorpus/keys/are gone.scripts/conformance.shno longer takesCONF_SUT,CONF_IXITorCONF_STATEMENT, and refusesCONF_PERF_CLASSandCONF_STRESSuntil the measured lanes move to the Veredictumperf/tree (#4448). -
The Veredictum pin watcher workflow,
scripts/checks/veredictum-pin.shwith itsveredictum-pin-guardjob, and theno-conformance-runlabel are gone: a pin bump now runs the new catalogue against its own build in the Conformance workflow (#4449). -
The Veredictum 0.1.6 conformance documents:
CONFORMANCE_REPORT.md,CONFORMANCE_STATEMENT.md,CONFORMANCE_CERTIFICATE.md,verdicts.json,run-exceptions.json, the CORE, STANDARD, OPTIONS, SEC-BASIC and performance badge files, and the heat grid and chapter bars the book and the landing page drew from them (#4451). -
The
CONF_PERF_CLASS,CONF_PERF_HOURSandCONF_STRESSsettings of the measured lanes are gone, along with the class runs, the step-load stress ladder and the AQL probe, which Veredictum 0.3.1 removed (#4452). -
The separate SMART step of the Conformance workflow, the
smartstage ofscripts/conformance.shwith itsCONF_SMART_OUT, anddocs/conformance/party/ferroehr/ixit-smart.jsonare gone: the one catalogue run covers the SMART documents. The party statement no longer carries theperformanceblock, which the Veredictum 0.3.1 statement schema refuses (#4503). -
The empty linkage storage domain is gone: its schema, its
ferroehr_linkagerole, the[storage.linkage]and[storage.migrate.linkage]configuration tables, its pool, thedatabase.linkageandbackup.linkagechart values, theferroehr-backup-linkagecompose job and thebtree_gistextension only its table needed. A configuration that still sets[storage.linkage]or[storage.migrate.linkage]is refused at boot as an unknown key. Cohort and AQL demographic join crossings still write theirlinkage-domain access records. Upgrade note: remove those keys and values before you upgrade. On a co-located database, migrationaudit/0021_drop_linkage_domain.sqldrops the schema, the role and the extension at the first boot, and raises aNOTICEfor any of them it cannot drop. When the linkage domain lived in a database of its own,[storage.audit]names another database, or the cluster holds more than one FerroEHR database, run in each such database, as a superuser or a member offerroehr_linkage:DROP SCHEMA IF EXISTS linkage CASCADE; REVOKE ALL ON SCHEMA ext FROM ferroehr_linkage; REVOKE ALL ON ALL FUNCTIONS IN SCHEMA ext FROM ferroehr_linkage; ALTER DEFAULT PRIVILEGES IN SCHEMA ext REVOKE EXECUTE ON FUNCTIONS FROM ferroehr_linkage; DROP OWNED BY ferroehr_linkage; DROP EXTENSION IF EXISTS btree_gist;thenDROP ROLE ferroehr_linkage;once per cluster. The released grant files still nameferroehr_linkage, so a first install whose migrator holds noCREATEROLEstill provisions that role and drops it after the first boot (#4684). -
A party migration drops the database function
party.resolve_national_identifier. No server path has called it since the linkage domain was removed (#4697). -
The viewer no longer reads
LEPTOS_SITE_ADDR: a value naming another address thanserver.listenno longer refuses the start.server.listen(FERROEHR_VIEWER__SERVER__LISTEN) sets the listen address (#4725). -
Migration
audit/0022drops the SQL functionsaudit.reap_audit_events(integer),audit.reap_audit_events_years(integer)andaudit.reap_audit_events_before(timestamptz), along with theirEXECUTEgrants. The server reaps the audit trail throughaudit.reap_audit_events_due, which honours each record’s own retention end, and nothing called the three any longer. Thespec_profiledocumentation no longer names a LANG generation, since the profile selects the RM and BASE generations only (#4770). -
Breaking: FerroEHR no longer publishes change events to a message broker. The AMQP publisher, the
lapindependency, theeventscargo feature, the[events]section, the/admin/event_subscriptionroutes with their subscription store (clinical migration0030_outbox_feed.sqldrops the table), theeventshealth indicator andevents_publishedmetric, theplaintext_brokerdeployment gap, the chart’ssecrets.eventsUrlandconfig.eventsvalues, and the viewer’s Subscriptions page are gone. A configuration that still carries[events], orplaintext_brokerindeployment_accepts, is refused at boot. Broker delivery moves to FerroBRIDGE, where it is in progress (FerroHEALTH/FerroBRIDGE#1367): it is to read the new outbox feed and publish to the broker, so a deployment that needs broker events stays on a release with FerroEHR’s own publisher until a FerroBRIDGE release carries it. Then name its reader in[outbox] readersand configure FerroBRIDGE’s events lane with the broker URL, exchange and queues (Change events (outbox feed)) (#4786). -
The chart’s
terminology.uivalue and the terminology overlay’sFERROTERM_UIvariable: FerroTERM 0.3 serves no UI of its own, so neither had an effect. A values file that still setsterminology.uiis refused by the values schema; delete the key (#4931).
Fixed
-
The hosted sandbox seeds its full demo dataset again. The v5.5.0 reseed stopped at the ADL 2 archetype library (233 stored / 89 refused against the pinned 231 / 91) because the box’s
.envstill forced FerroTERM 0.1.6, which reads none of the FerroTERM 0.3 settings the sandbox posture passes, so it served no LOINC and VETDF could only warn onbraden_scale’s mistyped LA9605-4. The corpus, the pin and the CDR were right. The seed now asks the CDR for a LOINC code before the library step and names a posture without LOINC (SANDBOX_TERMINOLOGY=without-loincopts a local run into 233 / 89), checks that the two files it names move together, and a corpus test holds the manifest’s pin to the adjudicated split with and without LOINC. The FerroPIX rollout script retires a staleFERROTERM_IMAGEoverride, checks that FerroTERM runs the pinned version and serves LOINC, and wipes before it seeds over an unfinished seed (#4278). -
The measurement overlay
docker/sut-measurement.ymlswitches the caller rate limiter off by removing the[server.caller_rate]keys, so the server logscaller rate limiting configuredwithenabled=falseat boot, instead of setting a rate of 4294967295 per second thatferrohealth-server0.3.5 truncated to a zero interval and that answered stray429s under concurrency.scripts/conformance.shrefuses to start a measurement stack whoseferroehrservice still sets a caller rate (#4281). -
A response to a request whose body FerroEHR left unread, such as a
404to aPOSTof a path it does not serve or a declared-length413, now carriesConnection: close. The connection closed after such a response without saying so, and a client that sent its next request on it met a closed socket, which a non-idempotent request cannot safely retry (RFC 9112 §9.6) (#4283). -
A
[server.caller_rate]above 1 000 000 000 requests per second no longer answers429to concurrent requests: such a rate now limits nothing, as its operator meant (#4283). -
Every request leaves one request line, a timeout
408, a declared-length413and the500of a panicked handler included, and a413for a body with no declared length that passes[server] body_limit_bytesis answered with the openEHR error body, as the declared-length413is (#4283). -
An AQL query whose
WHEREclause chains thousands ofNOT,ANDorORterms no longer overflows the stack and aborts the server. The parser refuses a query that nests brackets andCONTAINSdeeper than 64 levels or builds an expression deeper than 512 levels with400 Bad Request, before any recursive pass runs, on the ad-hoc, stored-query store and execution paths alike. A longORover one path is written asMATCHES {…}, which the bound does not count. A statement PostgreSQL refuses for its own complexity limit (SQLSTATE class 54) also answers400instead of500.openehr-querygainsParseError::TooDeep(#4284). -
An AQL query (ad hoc or stored) whose client disconnects, or that the server’s own
query.timeout_msor HTTP request timeout gives up on, no longer keeps its statement running and its pooled connection busy until the statement ends. The connection is closed instead of returned to the pool, so the slot frees at once, and every pooled session now sets PostgreSQL’sclient_connection_check_intervalto one second, so the backend stops the abandoned statement within about a second. The composition-count statistics behave the same way (#4285). -
The server’s resident memory no longer climbs under sustained load until the container’s memory limit kills it. The
ferroehrbinary now allocates through mimalloc instead of glibcmalloc, whose per-thread arenas kept freed memory and never gave it back. On a load test of 10 000 mixed jobs at 48 workers the peak resident set fell from 2.3 to 3.2 GB (growing run after run) to about 600 MB, and throughput rose by about a third (#4288). -
A request whose database connection a PostgreSQL restart, a crash or the network cuts now answers
503 Service UnavailablewithRetry-After, as a request that cannot get a connection already did, instead of500. SQLSTATE class08(except08P01),57P01,57P02,57P03and57P05, and a reset, aborted or closed socket on an open session count as such a cut (#4290). -
While PostgreSQL is down, requests that need the database answer
503withRetry-Afterabout a second after the first one starts waiting, and at once after that, instead of each queueing up todb.acquire_timeout_secs(30 seconds by default). An acquire that has waited a second tries one connection of its own; when that cannot reach the database, the outage is known until a fresh attempt connects, and requests are served again as soon as one does. A pool that is only busy keeps queueing as before (#4323). -
Superseding a composition or a party no longer slows down as its history grows. The foreign-key check that every new node and attestation row makes against its version could scan all versions of the object instead of probing one, depending on the planner statistics at the time: on the storage bench, superseding an object with a few hundred versions took about 14 ms instead of 9 ms when the plan flipped. Migrations
clinical/0022andparty/0013re-key the version-tree uniqueness constraintuq_version_treewith the object id last, so the check always probes the primary key. The constraint enforces the same uniqueness as before (#4340). -
The FHIR rendering of an access record
ehds-loggingdoes not classify (a template upload, a stored-query write, a template read) now carries the IHE BALP 1.1.4entity:dataslice its Create, Read, Update or Delete profile requires: type2, role4andwhat.identifier, naming the operation when the record names no object. HAPI FHIR’s validator refused the template upload record without it (#4353). -
A
+in a query string is a literal plus, as RFC 3986 §2.1 and §3.4 decode a URI query, on every ITS-REST operation and every extension route: a date-time offset such as2026-10-28T10:00:00+01:00or an AQL parameter sent with an unencoded+reaches the server unchanged, where it was read as a space. A space in a query value is sent as%20. This reverses the form-decoding of #3891: a client that writes a space as+now sends a plus. Theopenehr-*crates move to 0.0.114 (#4356). -
An AQL
EHR e[ehr_id/value='…']predicate whose value is not a UUID ('1234', the AQL 1.1.0 example) answers an empty result, as itsWHERE e/ehr_id/value = '…'spelling does, onPOSTandGET /query/aql; it was refused with400. Both spellings lower the EHR id comparison through one path, and a value the database cannot cast is refused with a message that no longer claims it came from a query parameter (#4378). -
A request sent on a kept-alive connection that sat idle longer than
[server] header_read_timeout_ms(30 s by default) is answered. The server used to close such a connection, sometimes while the request was arriving, so a client that reused it gotEOFwith no answer and no server log line, and a client that never retries aPOSTon a reused connection, such as Go’snet/http, reported a composition commit as failed. An idle connection now stays open until[server] idle_timeout_ms(120 s by default) and then ends cleanly before any new request byte; keep that limit longer than the idle timeout of your clients (90 s for Go) and of any load balancer in front (#4381). -
An AQL query with an archetype predicate no longer builds the archetype index bitmap of the whole store once per version. The planner multiplied the selectivities of the archetype columns, which each archetype fixes together, and expected about 15 000 of 545 067 blood-pressure OBSERVATIONs; a query over one EHR then took 38.8 s and answered
408. Clinical migration0021_archetype_statistics.sqlgives the columns a statistics object, and the same query takes 0.3 s (#4399). -
FROM PERSON p CONTAINS EHR e(and theORGANISATIONandROLEroots) joins a party to the EHR whoseEHR_STATUS.subject.external_refnames it, so a party created withPOST /demographic/personand an EHR created withPOST /ehranswer their row with no other call. Before, the join read only the party-to-EHR map, which no REST route writes, and answered no rows on a deployed server. The reference matches when itsid.valueis the party’s uid without::<system>::<version>and itstypeis the root class or its RM ancestor (ACTOR,PARTY), in any namespace; an EHR linked both ways answers once (#4411). -
An AQL projection whose path ends on a list attribute inside a node’s data (
c/feeder_audit/originating_system_item_ids,c/links,c/context/participations,c/composer/identifiers,.../mappings) answers the list itself,[{…}, {…}], andnullwhen the list is absent. It answered the list wrapped in a second list,[[{…}, {…}]]; a client that unwrapped that outer array reads the column directly now. A path that continues below a list (.../originating_system_item_ids/id) still answers the array of its matches,["…", "…"].COUNTover a path ending on a list counts its elements (#4413). -
Reading one version of a composition, EHR_STATUS, folder or party by its version id no longer slows down as the object’s history grows. Once a connection reused its prepared read, the plan scanned every version of the object and kept the one asked for: on the storage bench’s history of 500 versions such a read touched about 520 buffers instead of 12 to 24. Migrations
clinical/0023andparty/0014add an index on the version tree id columns of both storage tiers, so the read probes the one version it returns (#4420). -
An audit store that 5.6.0-rc2 migrated starts again. Audit migration 0017 changed after 5.6.0-rc2 shipped it, so the server refused such a store on the migration’s checksum at boot. 0017 is back to its 5.6.0-rc2 text, and the new audit migration
0019_search_tokens_pending_list.sqlgives the search token index its pending list of 512 kB, so a store that 5.6.0-rc2 migrated upgrades in place (#4424). -
An AQL query ordered by
c/uid/valuewith aLIMITno longer starts a parallel worker on every call, and no longer switches between that plan and a sort of the whole join depending on the planner statistics. The version uid it sorts on had no index, so the planner sorted the version rows through a parallelGather Merge, which costs a worker’s start-up per query on a server of any size: about 19 ms on the storage bench’s CI runner, where the two flat-shape path reads measured 23 ms in some rounds and 42 ms in others. Migrationsclinical/0024andparty/0015add an index on the uid expression of the hot version partition, so the query reads versions in uid order from it in one backend and stops at the limit (#4429). -
An AQL query that reads values along a path no longer spends up to a second compiling itself before it runs. Each path step was bound through a set-returning function that PostgreSQL estimates at ten rows, so a chain of steps multiplied the row estimate tenfold per step: the planner chose join orders for a statement millions of times larger than the real one and switched on JIT compilation for it. On the storage bench, a wide projection of 9 values over one EHR read in 1 s instead of 15 to 20 ms, and an ordered WHERE on a magnitude in about 0.5 s instead of 50 ms (#4430). Each step is now a
LATERALsubquery that the planner estimates from its own plan; results do not change (#4431). -
An AQL lookup by an ELEMENT value, such as a person by an identifier (
WHERE id/items[at0001]/value/id = $v) or a composition by a text value, read every node of the archetype in both stores and tested the value last: about 350 ms at 50 000 persons. The engine now anchors such an equality on the ELEMENT rows of the same version by their search text (ext.node_search_text, ext migration0006), which the new partial expression indexidx_node_hot_value_searchand its statistics object serve (clinical migration0025, party migration0016), so the lookup reads the one object: 26 buffers and under a millisecond at 50 000 persons. The party store also gets the archetype dependency statistics the clinical store has had since 5.6.0-rc2 (party migration0017). The storage bench measures the lookup asperson_identifier_lookup(#4437). -
The revision history and every point read of a version now reach the version’s commit audit through a lateral subquery that probes
pk_commit_auditby key once per version row, so stale statistics on the partitionedversiontable can no longer turn the read into a walk of the whole commit audit index (1 318 buffers against 21 for a four-version object beside 1 300 others) (#4438). -
A revision history or a current-version read of a COMPOSITION committed after the partitioned
versiontable last had statistics could walk the whole commit audit index: the planner held the highest commit audit id of the seed for the highest there is and rated a merge join overpk_commit_auditas cheap. On a store of 1 300 compositions the history of a four-version object read 1 318 buffers instead of 21, and the storage bench readrevision_historyat about 440 buffers per call in 3 of 8 rounds. The server now keeps the partitioned parents’ statistics (#4453), and each read probes the commit audit by key (#4438). -
An AQL lookup of an EHR by the subject of its EHR_STATUS (
WHERE e/ehr_status/subject/external_ref/id/value = $u AND e/ehr_status/subject/external_ref/namespace = $n) joined every EHR_STATUS version and read the subject out of its stored fragment: about 150 ms on a store of a few thousand EHRs. The two leaves now read the EHR row’ssubject_idandsubject_namespace, the copy the commit keeps of the current EHR_STATUS subject, so the lookup enters throughuq_ehr_subjectand reads one row. The storage bench measures it asehr_by_subject(#4442). -
The partitioned tables
node,versionandvo_attestationof the clinical and party stores never had planner statistics of their own, since autovacuum does not analyze a partitioned table, so the planner estimated joins over them without any (PostgreSQL 18 §24.1.3). The server now runsANALYZE ONLYon them, and onehrwhile autovacuum has never analyzed it, after applying the migrations, afterload_ehrs, at boot and every hour. The role it runs as needs theMAINTAINprivilege on those tables; without it the server logs the tables it could not analyze. The populationCONTAINSof an archetype now enters throughidx_node_hot_arch_subsume(3 703 buffers to 1 745 on the storage bench’s seed) (#4453). -
A party delete (
DELETE /demographic/{agent,group,organisation,person,role}/{uid_based_id}) and the party relationship delete now answer400when the path names the versioned object instead of its latestOBJECT_VERSION_ID, and delete nothing. They answered204and deleted the current version. The release requires thepreceding_version_uidin that path (ITS-RESTagent_delete.yamland its four siblings) (#4478) (#4458). -
A CONTRIBUTION member outside the operation’s member set, a party in an EHR CONTRIBUTION or a FOLDER in a demographic CONTRIBUTION, now answers
400as a body that fails the request schema. It answered422(#4459). -
A party update whose body carries no
uidnow checks each relationshipsourceagainst the party the path names and refuses a foreign source with422, as RMRelationships_validityrequires. The check ran only when the body carried auid, so such an update committed a relationship sourced at another party (#4460). -
An ADL 1.4 template upload whose XML ends with an element still open now answers
400, as for any document that is not well-formed XML. The well-formedness gate stopped at the end of input without checking that every element was closed, so a truncated upload answered422(#4461). -
A canonical JSON body that the published ITS-JSON schema admits and the RM refuses, such as a
DV_URIorDV_EHR_URIwithoutvalueor aDV_INTERVALlimitDV_ORDINALwithoutsymbol, now answers422naming the member, on the direct commit routes, the CONTRIBUTION members and the party commits. A body the schema refuses still answers400. All of them answered400(#4463). -
A directory create or update whose root FOLDER names an archetype in
archetype_node_idand carries noarchetype_detailsnow answers422and commits nothing: an archetype root carriesarchetype_details(RM common §The LOCATABLE Class). FerroEHR created such a directory. A553|incomplete|commit and a nested FOLDER keep it optional. The viewer’s empty directory root now carriesarchetype_details(#4464). -
AQL
EHR e NOT CONTAINS <class expression>now runs and returns the EHRs that hold no matching object. It was refused as unsupported with400(#4465). -
An AQL comparison between a
DV_DATE_TIMEpath that ends on the data value itself, such asc/context/start_time, and a date-time literal now compares the instants both name, so values with different offsets compare correctly. The comparison read the whole data value and matched nothing (#4466). -
A container member whose node id names an object constraint of the template but whose RM type conforms to none of them, such as an ELEMENT where the template allows only a CLUSTER, is now refused with
422. Only the opposite direction was refused (#4468). -
An ADL 1.4 template upload with
Prefer: return=representationnow answers the representationAcceptnames: the OPT XML, or the Web Template underapplication/openehr.wt+jsonorapplication/json. AnAcceptoutside those answers406and stores nothing. The upload always answered XML (#4469). -
A Simplified Format COMPOSITION commit without the
openehr-template-idheader, and a flat|rawvalue without_type, now answer400. Both answered422(#4470). -
A Simplified Flat or Structured
…/action_archetype_idnow sets the StringACTIVITY.action_archetype_id, and the flat output writes it back. The converter built an object from the template’s string constraint, so the commit answered422(#4471). -
ctx/action_ism_transition_current_state, as a rubric or a code, now setsACTION.ism_transition.current_stateof every ACTION the document gives no state. The converter wrote524|initial|first and the context value never applied (#4472). -
ctx/instruction_narrativenow becomesINSTRUCTION.narrativeof every INSTRUCTION the document gives no narrative. A placeholder<narrative>was stored instead (#4473). -
The Simplified Flat
DV_INTERVALsuffixes|lower_unbounded,|upper_unbounded,|lower_includedand|upper_includedare now read on an interval whose bounds are template nodes, and the flat output writes an unbounded flag when true and an included flag when false. The suffixes were refused as unknown with422(#4474). -
An AQL query aimed at named EHRs (the ITS-REST
ehr_idparameter) reads those EHRs’ objects first and each object’s own content after them, whatever the planner statistics say. When an archetype’s rows fell out of the most-common-value list of the archetype statistics, the planner estimated them at one row and could start from that archetype over the whole population, evaluating every projected path for every EHR’s rows before the EHR filter: the storage bench’s wide projection over one EHR read about 10 000 pages per call in some rounds and 1 200 in others. A node contained in a versioned object is now read inside its parent on such a query; results do not change (#4487). -
AQL
TERMINOLOGY('expand', …)against a FHIR terminology server takes the value set from theurlargument whenparams_uriis the$expandquery form (url=http://…), as the openEHR AQL examples write it, and still takes a bare value-set URL as it is. A query form withouturlis a 400 that names the missing argument. Before, the wholeparams_uriwent to the server as the URL, and the query was answered 400 because the value set was not found (#4488). -
AQL
TERMINOLOGY('validate', …)andTERMINOLOGY('subsumes', …)keep aparams_uriargument whole when its value carries a?, as the QUERY master03 exampleurl=http://snomed.info/sct?fhir_vsdoes. Before, the arguments were read from after the first?anywhere inparams_uri, so the value-set URL reached the terminology server truncated and the arguments before it were lost. Aparams_urithat starts with a path still has its arguments read from after the path’s?(#4490). -
An ADL 2 template whose constituent archetype the CDR does not hold is refused at upload, with a
422whoseerrorscarry oneVARXRentry per missing archetype (AOM2C_ARCHETYPE_ROOTvalidity rule VARXR); the 2013 CKMt_encounter_opt_test, built on the refusedapgar, no longer loads, so the sandbox library pin is 231 accepted / 91 refused. A stored template whose constituent was deleted later answers its JSON form and example with the sameVARXRlist, and the viewer says so on every tab of the template, names each missing archetype and links to uploading it, instead of a raw422(#4505). -
ADL 2 validation admits a constraint on an RM computed attribute. VCARM accepts an attribute “stored or computed” (AOM2
master04.5§Validity Rules:C_ATTRIBUTE), and a function with no arguments is a computed attribute (master04.2§Attribute Nodes), so an archetype that constrainsDV_PROPORTION.is_integral,DV_QUANTITY.is_integralorEVENT.offsetis no longer refused with422. The generated RM model (openehr_rm::v1_2::model) now carries each class’s computed attributes from the BMM functions (RmClass::computed_attributes,computed_attribute).openEHR-EHR-CLUSTER.microscopy_prostate_carcinoma.v1.0.0from the 2013 CKM ADL 2 export now uploads, and the sandbox archetype-library pin moves to 232 accepted and 90 refused.DV_QUANTITY.property, which no RM release defines, stays refused. The nineopenehr-*crates step to 0.0.124 (#4513). -
DELETE /ferroehr/rest/extensions/v1/definition/artefact/adl2/{artefact_id}refuses with409 Conflictwhile another stored ADL 2 artefact does not compile without the one deleted (a slot filler, ause_archetypereference or a specialisation parent, directly or through another artefact), and the message names every one of them. Before, the delete succeeded and left each template built on the archetype unable to compile (#4522). -
The viewer’s ADL 2 template upload names each violation the CDR found when it refuses the source: every AOM2 rule code with the CDR’s words for it, so a template whose constituent archetype the CDR does not hold names that archetype (
VARXR). The upload now asks forPrefer: return=representation, the preference under which ITS-REST lets a4xxcarry its error details, and reads the stored template’s id from theETagof the201(#4523). -
An ADL 2 operational template whose included archetype reuses the template’s node ids uploads again, where it was refused with
422under VCOSU. Node-id uniqueness now holds per archetype and restarts at eachC_ARCHETYPE_ROOT(AOM 2 VCOSU, “unique within the archetype”), and on an operational template the codes and interior node ids below a root are judged against that constituent’s entry incomponent_terminologies(OPT 2master03-opt_raw). A duplicate node id inside one archetype is still refused. The nineopenehr-*crates step to 0.0.125 (#4529). -
The viewer’s dashboard draws the EHR or composition count as unavailable, with the reason in plain words, when the CDR answers its count query with a result set of another shape (no row, several rows, an empty row, several values, or a value that is no whole number), where it drew 0 before. The template Releases table draws such a count the same way. A real zero still draws 0 (#4533).
-
An ADL 2 operational template upload runs the terminology integrity rules (VTLC, VATCV, VTVSID, VTVSUQ, VTVSMD, VTTBK, VTCBK, and VTSD where the level is carried) on each
component_terminologiesentry, and each violation names the component’s archetype id (#4536). -
A COMPOSITION committed against an ADL 2 operational template is validated against the template’s leaf constraints, where it was stored with
201whatever it held. An inlined archetype recorded by its complete identifier (openEHR-EHR-OBSERVATION.x.v1.0.0, BASEmaster07-referencing§Reconstitutability) now matches its template node, so theC_INTEGER,C_REAL,C_STRING,C_BOOLEAN, tuple, value-set and cardinality constraints below it answer422(AOM 2master04.5). An archetype root the template does not inline is refused as a node the template does not define, and aC_INTEGERorC_REALlist ({10, 15, 20}) admits each of its values where only the first was read. Canonical, FLAT and STRUCTURED commits take the same check. The nineopenehr-*crates step to 0.0.127 (#4540). -
A versioned read whose
versionpath segment is no SEMVER version and no{major}or{major}.{minor}prefix, such asv1.x,1.xor01, now answers400before any lookup, where it answered404(parameters/path/version.yaml,responses/400.yaml). This covers the ADL 2 template readGET /definition/template/adl2/{template_id}/{version}, the stored-query readGET /definition/query/{qualified_query_name}/{version}and both stored-query executions at a version,GETandPOST /query/{qualified_query_name}/{version}. A well-formed version the server does not hold still answers404(#4541). -
A FLAT or STRUCTURED read of a COMPOSITION committed against an ADL 2 operational template returns the content below an inlined archetype that the composition records by its complete identifier (
openEHR-EHR-OBSERVATION.x.v1.0.0, BASEmaster07-referencing§Reconstitutability). The read left out everything below such a root with no error; it now matches the root to its template node the way the commit does. The nineopenehr-*crates step to 0.0.128 (#4551). -
A COMPOSITION committed against an ADL 2 operational template whose
C_INTEGERorC_REALconstraint is a union of ranges (for examplemagnitude matches {|0..5|, |10..15|}) is refused with 422 when the value lies outside every range. Such a value was stored. The served Web Template does not change: its inputvalidation.rangeholds one range, so a union leaves it out, as before, and the check runs on the commit (#4552). -
A FLAT or STRUCTURED read of a COMPOSITION committed against an ADL 2 operational template returns the value of an ELEMENT that holds a
DV_INTERVALwhoselowerandupperthe template constrains. The read left the value out with no error (#4559). -
A FLAT or STRUCTURED read of a COMPOSITION returns the value of an ELEMENT that holds a
DV_INTERVALwhose template leaves the interval’slowerandupperunconstrained, for ADL 1.4 and ADL 2 templates. The read left the value out with no error, and a FLAT or STRUCTURED commit could not name the parts (#4559). -
A COMPOSITION written from FLAT or STRUCTURED against an ADL 2 operational template carries what a canonical body built to that template carries. A node the template gives no term text, such as the HISTORY and ITEM_TREE of an OBSERVATION, is named for its RM type (
History,Tree) instead of its bare id-code (id2). Every inlined archetype root records the complete identifier the template names (…cnf_minimal.v1.0.0, BASEmaster07-referencing§Reconstitutability) in itsarchetype_node_idandarchetype_details.archetype_id, andarchetype_details.rm_versionis the template’srm_release. Before this change the root recorded the interface form (…v1) and the server’s RM 1.2.0. Compositions built against an ADL 1.4 template keep their major-version archetype ids and RM 1.2.0 (#4560). -
ferroehr reportin a release build names theopenehr-*crate versions that release published to crates.io: the release lanes stamp the published version into the checkout before they build the server, where the report used to name the floor the source tree holds. A newopenehr_crates_originfield sayspublishedfor a release build andsource_treefor any other, a pre-release included (#4565). -
An ADL 2 archetype reference resolves to one defined stored release: an interface reference (
….v1) takes the newest release of its major version, a reference with a minor or patch version narrows the match to it, and an alpha or beta version matches only its full identifier (BASE Artefact Identification, Referencing). With several releases of one archetype stored, a template upload, an operational template and the delete’s dependents check used whichever release PostgreSQL returned last, and a reference to a major version no stored release carries resolved to another major version (#4567). -
An ADL 2 upload and an ADL 2 delete no longer race. An upload validated before a concurrent delete of an archetype it uses committed could store a template whose constituent was gone. Both now hold one transaction-scoped advisory lock from the repository read to the commit, so the second write decides on what the first committed: an upload after the delete is refused with
VARXR, and a delete after the upload is refused with a409naming the template (#4568). -
The syslog form (DICOM PS3.15, IHE ITI-20) of an EHR-level audit record names its object beside the patient, as a URI participant object with the id its FHIR
AuditEventnames. The record of placing, releasing or expiring an EHDS Art. 3(3) access delay names the held composition asaccess-delay:<vo>, so an Audit Record Repository fed by syslog can tell which composition a hold covers (#4569). -
An ADL 2 template or archetype that references two major versions of one archetype (
….v1and….v2), or one archetype under two namespaces, now compiles against both: theopenehr-adlrepository holds an artefact under its namespace, archetype and major version, and resolves each reference within that key (BASE Artefact Identification, Referencing). A reference without a namespace now resolves in the namespace of the artefact that makes it, and never in another namespace (#4579). -
A read of a stored ADL 2 template by a partial id or a
version(GET /definition/template/adl2/{template_id}) now resolves the way template compilation does: withv1.0.0stored besidev1.0.0-rc.1,….v1,….v1.0andversion=1.0.0answer the release in either upload order, and the release candidate is read only by its full version (BASE Artefact Identification, Referencing) (#4580). -
A write that sends no committer, on a route that takes a bare RM body (the
EHR_STATUS, COMPOSITION and DIRECTORY writes, and the demographic party and relationship writes), now records a Bearer caller’s login as issued by the token issuer, as EHR creation and every other default committer already did. It recorded the issuerferroehrfor every caller before; a Basic caller’s login is still issued byferroehr(#4585). -
The viewer’s ADL 1.4 template upload opens the stored template’s page, read from the
ETag(else theLocation) of the CDR’s201, where it went to an address with no template id. A refused upload names each violation the CDR found, its rule code or path and the CDR’s words for it, as the ADL 2 upload does: the upload asks forPrefer: return=representation, the preference under which ITS-REST lets a4xxcarry its error details (#4596). -
A
422validation refusal tells the client to sendPrefer: return=representationonly when the request did not send it; a request that sent it receives the violations inerrorsand adetailwithout the advice (#4597). -
An EHR Extract import refusal for a received version now names that version’s position in the extract (
chapters[i]/items[j]/item/versions[k]), so an importer can find the defectiveORIGINAL_VERSIONin a large extract (#4602). -
The import reads a version’s
other_input_version_uidswith the parser the CONTRIBUTION path uses and refuses an entry that is not anOBJECT_VERSION_ID, where it used to drop the entry. On the wire the extract decode already refuses such an entry with 422, so the import stays all or nothing (#4602). -
An AQL archetype predicate matches the namespace exactly and reads the version it names as the oldest release it accepts within the major:
org.a::…no longer finds data recorded inorg.b, an id without a namespace finds only data recorded without one, and.v1.4.2no longer finds data recorded underv1.0.0(BASE Artefact Identification §Referencing and §Supporting Archetype-based Querying; #4629, #4630). -
A query naming a parent archetype finds the data of a specialised child release only when that release declares a parent release at or after the queried one. Before, once one stored release of the child qualified, the data of every release of it was returned (BASE Artefact Identification, Referencing §Supporting Archetype-based Querying; #4637).
-
POST /definition/template/adl1.4andPOST /definition/template/adl2answer400for every invalid template, the only refusal ITS-REST 1.1.0 declares for both uploads besides the409duplicate. An OPT that breaks the OPT 1.4 schema, an ADL 2 source that breaks an AOM2 rule such as VCORM or VCARM, and an ADL 2 template whose constituent archetype is not held were refused with422. The problem keeps itsdetailand, withPrefer: return=representation, itserrors. Upgrade note: a client that read a422from a template upload reads a400, with the samedetailanderrors, under theabout:blankproblem type (#4643). -
A directory create or update whose FOLDER carries an empty
foldersarray, at the root or in a sub-folder, is refused with400and commits nothing. The ITS-JSON FOLDER schema givesfoldersminItems: 1, and the canonical JSON reader now refuses the empty array the same way in every document that carries a FOLDER, a CONTRIBUTION included. The viewer leavesfoldersout of a folder with no sub-folders (#4644). -
A canonical XML FOLDER, EHR_STATUS, PERSON, AGENT, GROUP, ORGANISATION, ROLE or PARTY_RELATIONSHIP document now has the root element
itemswithxsi:typenaming its class, the element the ITS-XML schemas publish for a LOCATABLE (Structure.xsd). The directory reads (latest, by version and at a time), the EHR_STATUS reads, the demographic reads and the demographic template examples served<folder>,<ehr_status>,<person>and the like, which no ITS-XML schema declares. XML input accepts the same form (#4645). -
POST /definition/template/adl1.4builds the template’s Web Template before it stores the template, so a template it cannot build is refused with400and nothing is stored. Once the template is stored, the upload answers201with itsLocation; withPrefer: return=representationand a Web TemplateAcceptit serves the Web Template built before the store, and the OPT if that cannot be served. It no longer answers422for a template it has already stored (#4647). -
A composition whose HISTORY carries
events: [], and an AGENT, GROUP, ORGANISATION or PERSON carryinglanguages: [], are refused with400and commit nothing. The ITS-JSON schemas give both arraysminItems: 1, and the canonical JSON reader now refuses the empty array as it does an empty FOLDERfolders. The FLAT builder no longer writes an emptyeventsfor a HISTORY that has no event (#4648). -
A write to a restricted COMPOSITION (
POST,PUTorDELETEon/ehr/{ehr_id}/composition) refused under a GDPR Art. 18 restriction now answers with theprocessing-restrictedproblem type, as the reads of a restricted record already did, in place of the genericforbiddentype. The status stays403(#4657). -
When an
EXTRACT_SPECcriterion’s AQL runs past the query time budget, the400body now states the timeout as plain text. It used to start with a control-character marker that was only ever meant for the server itself (#4657). -
Under a separated clinical credential,
POST /ehr,PUT /ehr/{ehr_id}and anEHR_STATUSupdate that name a subject no longer fail with a database error: the subject pseudonym guard reads the deployment posture, and the clinical role now holdsSELECTonext.posturethrough theextmigration0009(#4675). -
A cohort that names its subjects now finds, under
[ehr_index] provider = "local", the EHR created overPOST /ehrwith that subject in itsEHR_STATUS; it read a cross-reference table no route wrote, so it matched nothing. A cohort predicate and the AQL demographic join resolve a party to the EHRs whoseEHR_STATUS.subjectnames it. TheEHR_STATUSsubject is now the one source of which EHR belongs to which subject. Upgrade note:linkage.subject_ehrand thelinkage.erase_ehrfunction go with thelinkageschema, which audit migration0021drops with the linkage domain. Rows written there through the service API are dropped with the table; the EHRs they named keep their subject in their ownEHR_STATUS(#4675). -
The identifier scan (
[privacy.identifier_scan]) no longer refuses aDV_IDENTIFIERwhosetypedeclares an item rather than a person, such as a laboratoryfiller_order_numberthat passes the NHS Number check by chance. ADV_IDENTIFIERinFEEDER_AUDIT.originating_system_item_idsorfeeder_system_item_idsis scanned only when itstypenames a person identifier. Atypenaming a person (patient,NHS,BSN,social securityand similar) keeps the value scanned in every slot, and free text and untyped identifiers in clinical content are scanned as before. The default rule set is unchanged; a deployment that knows its jurisdictions still narrowsrules, so a Dutch one withrules = ["nl-bsn"]never claims an NHS Number (#4702). -
An inline primitive constraint in a parsed archetype or template now carries the node id AOM2
ADL_CODE_DEFINITIONS.Primitive_node_iddefines,at9999in an at-coded archetype andid9999in an id-coded one, where it carried the constant’s namePrimitive_node_id. An ADL 1.4 archetype converted to ADL2 gets the id-coded form (#4739). -
The ABAC policy-enforcement point checks every item-tag operation as it checks its target: a COMPOSITION tag read after the call like the COMPOSITION read, a COMPOSITION tag write before the call with the tagged version’s template, category and origin, and the EHR tag read before the call like the EHR read. These operations were unchecked before, so a patient-scoped or template-scoped rule now refuses a tag read or write wherever it refuses the target’s read or write. A COMPOSITION tag read also falls under the
EHR_ACCESSprivacy ceiling and its audit record names the tagged COMPOSITION (#4768). -
A primitive constraint inside a rule or a slot assertion of an id-coded ADL 2 archetype carries
id9999as its node id, asorg.openehr.am.aom2.adl_code_definitions§Constants definesPrimitive_node_idfor id-coded archetypes, where it carriedat9999before. An ADL 1.4 archetype converted to ADL 2 recodes its slot assertions the same way.openehr_adl::rules::parse_rules_bodyandparse_slot_assertionstake the archetype’sNodeCoding, whichopenehr_adl::codesnow exports (#4770). -
Under
spec_profile = "stable", a canonical-JSON party read lists inreverse_relationshipseveryPARTY_RELATIONSHIPanother party’s current version carries with this party as its target, oneLOCATABLE_REFeach naming the source party’s version container and the relationship’s path, as RM 1.1.0 §Party Relationships requires. The development profile, whose RM 1.2.0 makes the attribute a function, is unchanged. The released-profile conformance run now judges the server on the stable profile (#4775). -
Under the
developmentprofile,POST /definition/template/adl2refuses with400a template whose description has nooriginal_authoror an emptylifecycle_state, namingRESOURCE_DESCRIPTION.Original_author_validorRESOURCE_DESCRIPTION.Lifecycle_state_valid. BASE 1.3.0 states both invariants (org.openehr.base.resource.resource_description.adoc§Invariants). Thestableprofile’s BASE 1.2.0 states neither, so it still accepts such a template (#4776). -
A stable-profile party read in canonical XML carries
reverse_relationships(#4778), as the canonical-JSON read does: the XML response is written through the RM 1.1.0 generation, whosePARTYdeclares the element the ITS-XML RM Release-1.1.0Demographic.xsdcarries. A development-profile read stays without it. -
A database that accepts connections slowly is no longer recorded as down. A probe connect still in progress after its two-second bound now leaves the acquire queueing on the pool within
acquire_timeout_secs, so the request is served once the connect completes, or answers the pool-timeout503withRetry-After. Only a refused or reset connect, or a server shutting down (57P01,57P02,57P03), marks the database down and answers the outage503at once (#4782). -
A database that resets connections is now answered as an outage at once on every request, the
503withRetry-Aftera refused connect gets, instead of each request opening a connection of its own that the database resets. A connect of the pool’s own that is refused, reset or turned away as shutting down (57P01,57P02,57P03) records the outage as the probe does, and a probe that connects again clears it. A connect that is only slow still queues (#4807). -
An EHR whose
ferroehr.access_control.v1settings carry the scheme’s_typebut do not parse is held closed. Before, such an EHR was served at the default level, as if it carried no settings: open to every caller unless the server default was restricted, with no privacy ceiling on its compositions. Now every request that names the EHR, its reads and its export included, is refused with500, no query reaches it, and the server logs an error naming the EHR (#4846). -
A CONTRIBUTION or an EHR Extract import that carries
ferroehr.access_control.v1settings which do not parse is refused with400, naming the first setting that does not parse. Before, such settings were stored, and since #4846 they hold the EHR closed, with no way to repair it over REST (#4854). -
POST /message/exportchecks theEHR_ACCESSsettings of every EHR its manifest names, byehr_idorsubject_id, before it reads any content, and refuses the whole export with the403or500a read of that EHR gets. Before, the manifest form passed noEHR_ACCESSgate: any caller the route admitted could export an EHR whose access list refused them, or one held closed because its settings do not parse (#4864). -
An admin archive load refuses an archive whose
ferroehr.access_control.v1settings do not parse with400, naming the setting and the EHR, before anything of it is written. Before, the load stored such settings, and the EHR they belong to was then held closed (#4865). -
With attribute-based access control on, both EHR Extract export routes pass the ABAC pre-check:
GET /message/export/{ehr_id}the one a read of the EHR passes, andPOST /message/exportthe patient scope on every EHR its manifest names, before any content is read. Before, neither route reached the ABAC policy-enforcement point, so a caller bound to one patient could export any EHR the coarse layers admitted (#4869). -
An access service that exports an opted-out EHR through a
POST /message/exportmanifest under the EHDS Art. 10(2) vital-interest override now records the override against that EHR, once, before any content is read, as a read of the EHR by its path does. Before, the manifest form exported the EHR under the override and wrote no override record (#4870). -
With attribute-based access control on, both EHR Extract import routes (
POST /message/importandPOST /message/import/{ehr_id}) pass the ABAC pre-check a direct write passes, the patient scope on the target EHR included, and are audited as EHR writes. Before, neither route reached the ABAC policy-enforcement point, so a caller bound to one patient could import into any EHR the coarse layers admitted, and the request was audited under the generic application-activity class (#4872). -
A REST request whose body cannot be read is refused with
400, and one whose path parameter is not valid UTF-8 with400, instead of running as a request with an empty body or no path parameters. The body-limit check answers413only for a body over its limit; any other read failure is400(#4895). -
An AQL request abandoned while the EHR_ACCESS settings index loads, for example behind a table lock, no longer keeps its pool connection until the statement ends: each waiting request started the load again, so ten abandoned queries held nine of ten connections (#4903).
-
An archetype root converted from an ADL 1.4 operational template defines each slot that replaced an embedded root in every language of its terminology, with the embedded root’s concept term, and drops a term keyed by no
atoraccode (such as a tool’s°Cunit label) with aconversion_detailsentry. Before, such roots failed ADL 2 validation with VATID and VATCV (#4917). -
The ADL 1.4 to 2 converter no longer writes a
propertyattribute onDV_QUANTITY, which no RM release defines, from an ADL 1.4 archetype or an operational template; it drops theC_DV_QUANTITYproperty constraint and records it inconversion_details. Before, a converted archetype carrying one was refused with VCARM (#4920). -
The ADL 2 WebTemplate builder gives each
use_archetypesibling of one archetype that the template names with a fixedname/valueits own name-qualified path ([openEHR-EHR-SECTION.adhoc.v1,'Medication summary']), as the ADL 1.4 builder does, so a composition holding several such sections, such as an International Patient Summary, validates instead of being refused with “too many occurrences” (#4927). -
openehr-adl:print::printrefuses a terminology constraint ADL2 has no syntax for, such as the ADL 1.4[openehr::433]an unconverted 1.4 archetype keeps, withPrintError::TerminologyConstraint, where it used to write text thatparse_artefactthen refused (ADL2master04.5§Terminology Constraints) (#4937). -
A
LATEST_VERSIONAQL read joins an object’s node rows on its head’s content key. Since a version identical to its predecessor reads its predecessor’s node rows, such a read could reach a shared row through every version of a long identical chain before keeping the head.vo_head.trunk_head_content_keynow names the head’s node rows and everyLATEST_VERSIONread joins on it, and theversionpartitions declare avo_iddistinct count (n_distinct = -0.5) so the planner never prices a probe of one object’s versions at one row (migrationsclinical/0034,party/0026). The storage generation moves togeneration-6(ext/0012). The flat population read the storage bench measures stops at its limit only with the planner fix of the next entry (#4944). -
A population AQL read ordered by the composition uid with a
LIMIT(SELECT … FROM EHR e CONTAINS COMPOSITION c CONTAINS OBSERVATION o[…] ORDER BY c/uid/value LIMIT 50) stops at its limit again. Since a version identical to its predecessor reads its predecessor’s node rows, the store holds fewer node rows, and the planner’s estimate of the answer fell to a tenth of its size: it then joined the whole population into a sort, and the storage bench’s flat two-leaf read took thirteen times the pages. The ADL 1.4 specialisation test of an archetype predicate is now a byte range the archetype extended statistics read (arch_concept ~>=~ 'concept-' AND arch_concept ~<~ 'concept.', the same strings asLIKE 'concept-%'), and a node contained in aCOMPOSITION,EHR_STATUSorEHR_ACCESSroot joins it onnum > 0in place of the root’s nested-set interval (#4944). -
The viewer refuses, before sending it, a CDR request whose URL would leave the configured CDR: another scheme, host, port or user, a path outside the product root of
[cdr] base_path, the management base or the health family, or a path that holds a.or..segment in any spelling, a\or a control character. A browser-supplied id, stored-query name or version of..was percent-encoded unchanged and resolved away from the ITS-REST base; it now draws the refusal instead. A[cdr]URL that makes no absolute URL stops the viewer at start (#4954). -
openehr-adl:opt::create_opttakes unconverted ADL 1.4 constituents again. It keeps their 1.4 node codes, so 1.4 template paths such as/activities[at0001]/description[at0002]still resolve, and rewrites each 1.4 term constraint to the form ADL2 spells (master04.5§Formal Terminology Constraint), the wayadl14::convertdoes. An external code such as[openehr::433]becomes a new at-code bound tohttp://openehr.org/id/433, and a code list such as[local::at0168, at0169]becomes an ac-code value set. The OPT2 then prints and parses back (#4956). -
An AQL
ORcontainment branch that binds a versioned object underLATEST_VERSIONanswers the object once, with the head’s uid, when the head shares its predecessor’s node rows; it answered once for every version reading the shared tree (#4957). -
Under
spec_profile = "stable", an AQL whole-object result whose stored body the profile gate cannot read is refused with an error naming the version; it was served without the assessment (#4960). -
openehr-langlexes a long string literal,--comment,<# … #>plug-in block, embedded URI or contained regexp in constant stack in a debug build. Before, thelogoslexer took one stack frame per multi-byte character or escape of such a token, so building a template from ADL archetypes could overflow a thread’s default 2 MiB stack and abort. A 1 MiB token now lexes on a 256 KiB thread. The token stream and its spans are unchanged (#4961). -
The ADL 1.4 to ADL 2 conversion gives a terminology constraint that names no codes (
[openEHR::],[local::]) an ac-code per terminology, with no value set and no binding, and records the terminology in the conversion log. Before, every such constraint in an archetype shared one ac-code labelled as a synthesised value set, whatever terminology it named (#4965). -
Converting a stored specialised ADL 1.4 archetype to ADL 2 answers
422when the archetype introduces a term code its stored parent lacks without the specialisation dots its depth requires (at0006where depth 1 needsat0.1), naming each code. AOM 1.4 requires the dots, and the conversion used to carry such codes into ADL 2 (#4966). -
The ADL 1.4 to ADL 2 conversion gives a slot that redefines a parent slot (
at0004.1) the parent slot’s node id, as AOM 2 VDSSID requires, and the differential form it builds against a converted parent drops archetype slots and proxies the parent holds unchanged and keeps only terms of the archetype’s own specialisation level (VTSD) (#4967). -
openehr-adl’sopt::create_optno longer flattens an ADL 1.4 specialised archetype over its parent. An ADL 1.4 archetype is authored in flat form (ADL2master07.02§File-naming Convention, AOM2master03§Structural Variants), so overlaying a child such as CKMopenEHR-EHR-COMPOSITION.report-result.v1onreport.v1appended every object without a node id a second time: the OPT held twoEVENT_CONTEXTobjects and its Web Template two/contextnodes. An artefact whoseadl_versionis 1.4 or earlier is now its own flat form, keeps itsparent_archetype_id, and needs no parent in the repository; its 1.4 term constraints are still rewritten into the ADL2 form. ADL 2 differential flattening is unchanged (#4979).
Security
Shipped with functional changes because: both fixes exist only in ferrohealth-server releases that carry functional changes in the same serving path beside them (0.3.7 two fixes, 0.3.8 and 0.3.9 the problem details module, the kept listener TLS and the unmasked remedy), so there is no security-only release of the crate for FerroEHR to take, and the client CA refusal ships in the release candidate the advisory names. The zip move is a lock-only update that a security-only 5.5.1 could have carried; the published-image scan found CVE-2026-115905 in 5.5.0 on 2026-11-03, the day before this release was cut, so 5.6.0 ships the fix in place of a separate patch.
-
FerroEHR takes
zip9.1.3 in place of 9.0.4, and the workspace requires 9.0.5 or later. Through 9.0.4 the crate reads a file’s name from the central directory inZipArchiveand from the local file header in its streaming reader, so one crafted archive can name two different files (CVE-2026-115905, CRITICAL). The server links the crate for the administrator’s dump and load archive, so the server binary and theferroehrimage of 5.5.0 and earlier carry the affected version; the viewer image does not. Upgrade from 5.5.0, and until then load throughPOST /admin/loadonly archives this FerroEHR wrote (security/vex/rust-releases.openvex.json) (#4892). -
FerroEHR takes
ferrohealth-server0.3.7 in place of 0.3.5 (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 about 8400 silent connections from a client with no credentials exhausted the quickstart’s file descriptors and the CDR stopped answering, health checks included; the listener then retried a failedacceptat once and logged every failure. Such a connection now closes once[server] header_read_timeout_mspasses (30 s by default), counted from accept, and after anEMFILEorENFILEthe listener pauses up to 1 s before it accepts again and logs one warning every 10 seconds (#4283). -
A
[server.tls]table that setsclient_ca_filewithclient_authatnone, written or by default, is refused at load, naming the setting (GHSA-52mf-qg39-4q4j). Before 5.5.0 a client CA alone meant that every client presents a certificate; 5.5.0 moved the listener ontoferrohealth-server, whereclient_authdefaults tononeand the CA was read and ignored, so a configuration carried over passedconfig checkand served without asking a client certificate. FerroEHR takesferrohealth-server0.3.9, which refuses it and names the remedy in full. A 5.5.0 deployer who setsclient_ca_filesetsclient_auth = "required"beside it. The default template no longer pairs a client CA withnone, and says what eachclient_authvalue does (#4349). -
CVE-2026-84243, the glibc gettext
LANGUAGEdirectory traversal (GLIBC-SA-2026-0025), has no Debian fix for trixie yet and is judgednot_affectedin every image. Theferroehrandferroehr-viewerprograms never leave the C locale, so glibc ignoresLANGUAGEand opens no message catalog (security/vex/ferroehr-os.openvex.json). Inferroehr-postgresonly the container environment the operator writes can setLANGUAGE; no database connection can (security/vex/postgres-os.openvex.json) (#4500). -
CVE-2026-114690, CVE-2026-114691 and CVE-2026-115455, three libstdc++ defects in the gcc-14 packages of every image, have no Debian fix for trixie and are judged
not_affected. Each fix changes only a header template (the parallel-mode search, thestd::vector<bool>constructors, wide-stream extraction intostd::bitset), solibstdc++.so.6holds no copy; theferroehrandferroehr-viewerprograms contain no C++ code (security/vex/ferroehr-os.openvex.json), and inferroehr-postgresnothing is built in parallel mode and PostgreSQL does not link libstdc++ (security/vex/postgres-os.openvex.json) (#4789). -
CVE-2026-119371 to CVE-2026-119379 and CVE-2026-119591, ten SQLite defects without a Debian fix, are judged
not_affectedinferroehr-postgres: onlylsloginsreaches SQLite there, through liblastlog2, and nothing in the image runs it (security/vex/postgres-os.openvex.json) (#4789).
5.6.0-rc10 - 2026-11-02
5.6.0-rc10 is the tenth release candidate of 5.6.0, published for testing, and the first candidate published since 5.6.0-rc7. 5.6.0-rc8 and 5.6.0-rc9 were tagged and never published: the vulnerability record of 5.6.0-rc8 refused 86 findings that had no OpenVEX judgement, and the release plan of 5.6.0-rc9 refused the tag because two fragments merged ahead of it were missing from its section. A tag is never moved, so 5.6.0-rc10 carries everything both carried. It carries the CONTRIBUTION break of 5.6.0-rc6: POST /ehr/{ehr_id}/contribution and POST /demographic/contribution read the body through the released NewContribution schema and answer 400 for a lifecycle_state that is no DV_CODED_TEXT, a description that is a plain string or an object without _type, an audit without change_type, an audit typed ATTESTATION or UPDATE_ATTESTATION, a missing audit or versions, and a preceding_version_uid sent as a plain string, and a stated empty system_id is refused with 422 on every write path (#3595, #4543). These notes carry every change since 5.5.0, those of the 5.6.0-rc9, 5.6.0-rc8, 5.6.0-rc7, 5.6.0-rc6, 5.6.0-rc5, 5.6.0-rc4 and 5.6.0-rc3 sections below included. New since 5.6.0-rc7, and so in neither published candidate before this one: two read-only extension routes that convert a stored ADL 1.4 archetype or operational template to ADL 2 (#4655); template uploads that answer 400 for every invalid template and never refuse a template already stored (#4643, #4647); the ITS-JSON minItems of FOLDER.folders, HISTORY.events and ACTOR.languages enforced (#4644, #4648), and a canonical XML LOCATABLE rooted at the items element the ITS-XML schemas publish (#4645); an AQL query naming a parent archetype that finds a specialised child’s data only from a child release whose own parent release qualifies (#4637); conformance_profile derived from the committed conformance record (#4672); a subject resolved through the EHR_STATUS of its EHR, and the empty linkage domain removed with its configuration (#4675, #4684, #4697); a write refused under a GDPR Art. 18 restriction answering with the processing-restricted problem type, and 500 bodies that carry curated text only (#4657); an identifier scan that reads a DV_IDENTIFIER’s declared type (#4702); a validation refusal that advises Prefer: return=representation only to a request that did not send it (#4597); the AOM2 node id of an inline primitive constraint (#4739); a viewer that answers a request other than GET or HEAD without a session with the sign-in page and no longer reads LEPTOS_SITE_ADDR (#4724, #4725); every item-tag operation checked by ABAC in its target’s mode (#4768); and, under spec_profile = "stable", a canonical-JSON party read that lists the relationships naming it as their target in reverse_relationships (#4775); since 5.6.0-rc8, the OpenVEX judgements of the gcc-14 and SQLite findings that stopped it (#4789), the AOM2 node id of a primitive constraint inside a rule or slot assertion of an id-coded ADL 2 archetype, and the three unused horizon reap functions of the audit store removed (#4770); since 5.6.0-rc9, the outbox served to its named readers over a cursor feed in place of FerroEHR’s own broker publisher (#4786, #4766), the access record of a VERSION read naming the content it served (#4660), the BASE 1.3.0 description invariants of an ADL 2 template under the development profile (#4776), a slow database connect no longer recorded as an outage (#4782) while a database that resets connections is recorded as an outage on the pool’s own connect too (#4807), and Prefer read on every route as RFC 7240 §2 defines it (#4722). The published conformance record is a Veredictum 0.4.0 released-profile run against FerroEHR on spec_profile = "stable": 2872 of 3071 rows passed, none failed and none errored, and 199 were skipped, 116 for an option the statement does not select and 83 that rest on development text alone; it replaces the Veredictum 0.1.6 documents (#4451, #4771). The released-profile verdict is now required: a failed or errored row fails the merge queue, the image run on main and the release (#4455). The development-profile run, which is never a verdict, has 2946 rows passed, 3 failed (#4776, #4777) and 2 errored by Veredictum itself. 5.5.0 stays the stable release: this pre-release moves neither the latest image tags, the book under /docs/latest/ nor the hosted sandbox, it publishes no crates, and it receives no fixes; the next release candidate or 5.6.0 itself replaces it. Before you try it: FerroEHR no longer publishes to a message broker, so [events], the /admin/event_subscription routes and the viewer’s Subscriptions page are gone, a configuration that still carries [events] or plaintext_broker in deployment_accepts is refused at boot, and Helm chart 21.0.0-rc9 drops secrets.eventsUrl and config.events (clinical migration 0030 and party migration 0023); the outbox is served over GET /admin/outbox/{reader} and its ack, POST /admin/outbox/{reader}/ack, to the readers [outbox] readers names, under the __ferroehr.outbox scope; broker publishing moves to FerroBRIDGE, where it is in progress (FerroHEALTH/FerroBRIDGE#1367), so a deployment that needs RabbitMQ events stays on 5.6.0-rc7 until a FerroBRIDGE release carries it; under the development profile an ADL 2 template upload whose description has no original_author or an empty lifecycle_state answers 400; an invalid template on POST /definition/template/adl1.4 or POST /definition/template/adl2, an ADL 2 template whose constituent archetype is not held among them, answers 400 where it answered 422, with the same detail and errors under the about:blank problem type; a FOLDER with an empty folders, a HISTORY with an empty events and an AGENT, GROUP, ORGANISATION or PERSON with an empty languages answer 400; a canonical XML FOLDER, EHR_STATUS, PERSON, AGENT, GROUP, ORGANISATION, ROLE or PARTY_RELATIONSHIP document has the root element items with xsi:type naming its class, where it had <folder>, <ehr_status>, <person> and the like; OPTIONS on the API base path sends conformance_profile as BASE+OPTIONS where it sent STANDARD, and a configuration that sets [rest.identity] conformance_profile is refused at boot as an unknown key; an AQL archetype predicate matches the namespace exactly and reads the version it names as the oldest release it accepts, and a query naming a parent archetype finds a specialised child’s data only from a child release whose own parent release qualifies, so a query may find less than before; a cohort that names its subjects and the AQL demographic join resolve a party to the EHRs whose EHR_STATUS.subject names it, and a configuration that sets [storage.linkage] or [storage.migrate.linkage] is refused at boot and Helm chart 21.0.0-rc9 refuses a values file that sets database.linkage or backup.linkage, so remove those keys and values before you upgrade and, where the linkage domain lived in a database of its own, run the SQL the Removed entry gives; a POST, PUT or DELETE on a COMPOSITION under a GDPR Art. 18 restriction still answers 403, now with the processing-restricted problem type in place of forbidden; the 500 bodies of the archive dump and load, a failed expansion of a party’s protected identifiers and two query failures carry fixed text that echoes no value from the request, the archive or the terminology server; the identifier scan no longer refuses a DV_IDENTIFIER whose type declares an item rather than a person, and scans one in a FEEDER_AUDIT only when its type names a person identifier; the Veredictum 0.1.6 conformance documents (CONFORMANCE_STATEMENT.md and the rest) and the CONF_PERF_CLASS, CONF_PERF_HOURS and CONF_STRESS settings of the measured lanes are gone; with ABAC on, a patient-scoped or template-scoped rule refuses an item-tag read or write wherever it refuses the read or write of the tag’s target, and a COMPOSITION tag read falls under the EHR_ACCESS privacy ceiling; under spec_profile = "stable" a canonical-JSON party read carries reverse_relationships, while the canonical-XML read does not yet (#4778) and the development profile is unchanged; a write whose committer names another login of the caller’s token issuer or of this server, or a PARTY_SELF committer from a caller who is not the record’s person, answers 403, and a direct write whose committer breaks its own rules answers 422; a write that sends no committer on a bare RM body route records a Bearer caller’s login as issued by the token issuer, where it recorded ferroehr; a FLAT or STRUCTURED composition under an ADL 2 template records the complete archetype identifier and the template’s rm_release, and the served Web Template writes a bound coded input, COMPOSITION.category among them, as the bound terms (openehr::433) where it wrote the local at-code; a CONTRIBUTION commit must take the shapes above; a write under a token whose SMART resource scopes are all patient/ scopes records PARTY_SELF as committer and may change only what the person committed, and a service auth_failure answers 403 where it answered 500; a versioned read whose version is no SEMVER version or prefix answers 400 where it answered 404; the served Web Template of an ADL 2 template writes a data value’s aqlPath without an [idN] predicate; a composition that breaks an ADL 2 template’s leaf constraint answers 422; every route ITS-REST 1.1.0 does not define moves from /ferroehr/rest/openehr/v1/ to /ferroehr/rest/extensions/v1/, and the ITI-81 retrieval to /ferroehr/rest/fhir/r4/AuditEvent, with no redirect from the old paths; an error body is application/problem+json, so a client that read message reads detail, and one that read validationErrors sends Prefer: return=representation and reads errors; audit migration 0017 refuses an audit store that holds records written by 5.5.0 or earlier, while an audit store that 5.6.0-rc2 migrated upgrades in place; a [server.tls] table with client_ca_file must set client_auth = "required" (or "optional") beside it, or the configuration is refused at load; [server] header_read_timeout_ms no longer bounds an idle kept-alive connection, which the new [server] idle_timeout_ms (120000 by default) closes, so keep it longer than the idle timeout of your clients and load balancers; a client that wrote a space as + in a query string sends %20; a party delete names the latest OBJECT_VERSION_ID in its path and answers 400 for a versioned object id; a body the RM refuses after the ITS-JSON schema admits it answers 422, and a misplaced CONTRIBUTION member, a Simplified Format commit without openehr-template-id and a flat |raw value without _type answer 400; a tag update under Prefer: return=identifier answers 200 with the tag list; with [authz.rbac] enabled a token holding only system/ SMART on openEHR scopes reaches clinical operations without a role; the viewer image serves no /pkg/ and reads no LEPTOS_SITE_ROOT, LEPTOS_OUTPUT_NAME or LEPTOS_HASH_FILES, and its Content-Security-Policy is script-src 'self'; style-src 'self'; Helm chart 21.0.0-rc9 refuses to render until config.deployment_profile names sandbox or production, and a values file for its FerroPIX moves ferropix.config.server.public_base_url to ferropix.config.public_base_url and each issuer’s clients to ferropix.config.trust.issuer. Storage generation 3 adds node columns and migrates no data, and ext migration 0008 names generation 4, the generation with the node header columns, and changes only the label; clinical migration 0020 adds the origin to retention policies and 0021 statistics on the archetype columns, and clinical 0022 and 0023 and party 0013 and 0014 rebuild the version tree’s uniqueness constraint and index its version id columns, which reads every version row of an existing store once; clinical 0024 and party 0015 index the version uid, ext 0006, clinical 0025 and party 0016 add the ELEMENT value search index, built over every hot node row of an existing store, party 0017 adds the archetype statistics, and clinical 0026 and party 0018 grant MAINTAIN on the partitioned tables to the serving roles; clinical 0027 and party 0019 add the access delay, and ext 0007, clinical 0028 and party 0020 add the node header columns with no data migrated; audit migration 0019 gives the search token index a pending list of 512 kB, and audit 0020 adds the hash index on request_id; clinical 0029 adds the access opt-out; ext migration 0009 grants the clinical role SELECT on ext.posture, party 0021 drops the database function party.resolve_national_identifier, audit 0021 drops the linkage schema, the ferroehr_linkage role and the btree_gist extension, raising a NOTICE for any of them it cannot drop, party 0022 restates the comment on party_relationship_target.source_vo_id with no change to data, and audit 0022 drops the functions audit.reap_audit_events, audit.reap_audit_events_years and audit.reap_audit_events_before, which nothing called; clinical migration 0030 drops the event subscription table, and it and party migration 0023 replace the outbox’s published_at and its two indexes with an index on committed_at; the linkage migration set is gone. Helm chart 21.0.0-rc9 carries appVersion 5.6.0-rc10. Security carries two advisories, GHSA-2mc2-h3jq-c5wg and GHSA-52mf-qg39-4q4j, and the OpenVEX judgements of CVE-2026-84243, of three gcc-14 libstdc++ findings and of ten SQLite findings.
Added
-
The logging component’s intended performance is stated as checkable claims (EHDS Annex II 1.1): every composition create and read recorded exactly once and every AQL execution at least once, no access succeeding without its record, at most 125 % of the latency and at least 80 % of the throughput with the access log off, and a 50-record ITI-81 page within 250 ms at p95.
scripts/perf/audit.shmeasures them with the access log off and on (the load test’s new--auditmode counts the records through ITI-81 and times retrievals),scripts/perf/audit-verdict.shgives the verdict, the release refuses a claim not met and attaches the summary asferroehr-<tag>-logging-performance.md(Annex III point 2), and the weekly performance guard runs it on main. The book’s compliance section gains the page that states the claims and the method (#4293). -
scripts/interop/atna.shexercises the logging component’s ATNA transactions against independent implementations run from published images (EHDS Annex II 1.4): the ITI-20 FHIR feed into HAPI FHIR as the Audit Record Repository, judged by its validator with IHE BALP 1.1.4; the ITI-20 syslog feed into syslog-ng over RFC 5425 TLS, each payload read as a DICOM PS3.15AuditMessage; and the same ITI-81 searches put to FerroEHR and to HAPI. The audit trail page documents it (#4296). -
FerroEHR ships an EHDS category map for the published CKM templates and COMPOSITION archetypes whose data sit in one Art. 14(1) priority category (the International Patient Summary, ePrescription, the generic laboratory result and CCTA report templates; the
health_summary,prescriptionandtransfer_summaryarchetypes), so an installation that declares no[audit.categories]keys records those accesses classified instead ofunclassified(EHDS Annex II 3.2(c)). A deployment that declares any template or archetype replaces it whole.[audit.categories] shipped_map = falsewith nothing declared leaves no map, whichdeployment_profile = "production"refuses as the newno_category_mapgap unlessdeployment_acceptsnames it (#4298). -
Retention periods and access rules can take the origin and the category of the data into account (EHDS Annex II 3.4). The new top-level
[origins]register declares the origins a deployment recognises, each by the id its data carry and the clients whose direct commits come from it; a body without aFEEDER_AUDITcommitted by a registered client is stamped with that client’s origin instead of the server’ssystem_id.PUT /admin/retention/policytakes an optionaloriginnaming a registered origin, the register andGET /admin/retention/duereport it, and the due list lists an origin-keyed period over the objects of that origin (clinical migration0020_retention_by_origin.sql). The ABAC request carriescategory(the access record’s category tokens) andoriginresource attributes on composition, contribution and query operations, the Cedar schema declares both, and a remote PDP binding may name them as parameters (#4299). -
The operations page gains a storage sizing section, measured on 5.6.0-rc5: about 21.6 KB of clinical storage per version of a vital signs composition (2.0 times its canonical JSON, 85 % of it node rows) and 155 KB for an International Patient Summary, about 1.2 KB per audit record of a read, the effect of
[audit.store]retention on growth,pg_walup tomax_wal_size, theREINDEX INDEX CONCURRENTLY clinical.node_hot_pkeystep (20 % of that index after heavy concurrent writing) and a query for the size per relation, with the method to reproduce the figures (#4304). -
EHDS Art. 5: what a person inserts in their own EHR is marked as theirs, and they cannot alter what a professional committed. A write under a token whose SMART resource scopes are all
patient/scopes recordsPARTY_SELFas itsAUDIT_DETAILS.committer, itsexternal_refnaming the login, whatever committer the request names; a COMPOSITION it commits must namePARTY_SELForPARTY_RELATEDas composer; and its update or deletion of a version whose committer is notPARTY_SELF, directly or inside a CONTRIBUTION, is refused with403. A professional’s writes are unchanged. The contribution list extension gainsinserted_by_personper row, and the viewer names aPARTY_SELFcommitter “The person or their representative”. A serviceauth_failurestatus now answers403where it answered500(#4350). -
The EHDS Art. 3(3) delay of the person’s own access to newly registered data, a Member State option and off by default. The new
[access_delay]section (enabled,categories,hours) holds every new COMPOSITION of a listed[audit.categories]category from requests that may be the person’s own (a bearer token with a SMARTpatient/grant or the ABAC patient claim, also besideuser/orsystem/grants, asferrohealth-smart0.8.7 decides it) for at mosthours: a read answers404as for an unknown composition, and a query, an export and a CONTRIBUTION leave it out, while a professional reads it as before. The treating professional releases a held composition from the clinical routePOST {ext}/ehr/{ehr_id}/versioned_composition/{versioned_object_uid}/access-delay/release, with the checks of a write to that EHR, and the controller withPOST /admin/access-delay/release; a professional holds one by hand within the limit withPOST /admin/access-delayand reads the register withGET /admin/access-delay; every hold ends at its limit, and placing, releasing and expiry are each an access record. The subject-scoped ITI-81 read of the person’s own trail (EHDS Art. 9) leaves out the records about a held composition until it is released or expires, then serves them with their original times (ehds-logging0.3.3) (clinical migration0027_access_delay.sql, party migration0019_access_delay_column.sql) (#4351). -
The
openehr-itsclient reads an RFC 9457 problem details refusal:ErrorBody::problem()exposes itstype,title,status,detailandinstance, ignoring a member of the wrong type (RFC 9457 §3.1), andErrorBody::message()answers the problem’sdetail, else itstitle, where it answered only the ITS-RESTError’smessage. Theopenehr-*crates move to 0.0.115 (#4355). -
The local EHR index (
[ehr_index] provider = "local") is a supported production posture beside the IHE patient identity source:EHR_STATUS.subjectnames a patient by its own namespace and identifier, whichGET /ehr?subject_id=&subject_namespace=matches, and with no[privacy] subject_namespacesdeclared the reference is stored as the client sends it. The compose quickstart selects it withFERROEHR_EHR_INDEX=local docker compose up, which runs itsferroehr-config-localblock (#4379). -
CI checks every inline configuration of the compose quickstart with the
config checkof the image the file pins, FerroEHR’s and FerroPIX’s, so the quickstart can no longer carry a configuration its pinned server refuses (#4380). -
The Conformance workflow runs the Veredictum 0.3.0 catalogue in CI through the Veredictum GitHub Action, pinned by commit SHA and running the release image by digest. It builds FerroEHR from the commit, composes it with FerroTERM beside it on fresh volumes, reviews the party statement with
veredictum validate, fails on a failed or errored row, writes the Markdown summary to the job summary and uploads the results, JUnit and CTRF views. It runs on pull requests that touch the server, the party set, the conformance compose files or the workflow, onmain, on a release tag and twice a week.scripts/conformance.shtakes a stage (run,review,up,down), so CI and a local run compose the same deployment, andscripts/checks/veredictum-action.shfails while the Action SHA, its version comment, the image digest andVEREDICTUM_VERSIONdisagree (#4449). -
The Conformance workflow runs the Veredictum
smartdocuments (smart_discovery,smart_scopes) against the same FerroEHR build after the Veredictum Action, which forwards no SMART Platform base URL and no scoped tokens. The same pinned image runsveredictum testwith--platform-urlanddocs/conformance/party/ferroehr/ixit-smart.json, minting each access token in memory from the committed test issuer the SMART overlay trusts, and the job uploads its results, JUnit and CTRF views beside the catalogue’s and adds its summary under a heading of its own.scripts/conformance.shgains thesmartstage, andrundrives it after the catalogue, so a local run covers SMART too (#4450). -
GET /ehr/{ehr_id}andGET /ehr?subject_id=…now sendLast-Modified: the commit that created the EHR, or the later commit that added or deleted one of its folder hierarchies (#4462). -
The EHDS Art. 10 opt-out from access through the access services of Arts. 4 and 12, a Member State option and off by default. The new
[authz.rbac] access_service_roleskey declares the roles of the access-service callers; while an EHR carries the opt-out, a caller holding one reads it as absent: a route naming the EHR or an object in it answers404as for an unknown EHR, a population query leaves its data out, a scoped query, an export and the lookup by subject find no such EHR, and a write to it is refused as absent. Every other caller, the provider’s own care included, reads it as before. The controller records the opt-out on the person’s instruction withPOST /admin/access-opt-out, reverses it withPOST /admin/access-opt-out/reverse(the register keeps the reversal) and reads the register withGET /admin/access-opt-out; recording is refused with400while no access-service role is declared. An access-service caller that declares one of[audit] emergency_purpose_codesand does not act for the person reads the EHR under the Art. 10(2) vital-interest override, with the emergency mark on its access record and anaccess-opt-out-overriderecord against the EHR. Recording, reversing and reading the register are access records (clinical migration0029_access_opt_out.sql) (#4516). -
Two read-only extension routes convert stored ADL 1.4 definitions to ADL 2:
GET /ferroehr/rest/extensions/v1/definition/archetype/adl1.4/{archetype_id}/adl2for a stored archetype andGET /ferroehr/rest/extensions/v1/definition/template/adl1.4/{template_id}/adl2for a stored operational template, which converts to one ADL 2 archetype per embedded archetype root. Each answers 200 withapplication/json: (#4655)- the ADL 2 source of every root;
- each root’s conversion log and its
conversion_details, which name what the ADL 2 form drops or changes; - the slot fills that joined the roots. An unknown id answers 404. A stored source that no longer converts answers 422. No openEHR specification defines the conversion, so both routes are FerroEHR’s own design.
-
The commit-event outbox feed.
[outbox] readersnames the readers (FERROEHR__OUTBOX__READERS); boot registers each one and marks every reader the list no longer names inactive, so it holds the retention prune back no longer (#4766).GET /admin/outbox/{reader}?limit=&domain=answers the PHI-free envelopes after the reader’s cursor inseqorder, andPOST /admin/outbox/{reader}/ackwith{"last_seq": n}moves the cursor (204;409below the cursor or past the highest row;404for an unknown or inactive reader). Both routes need the__ferroehr.outboxscope, every read is an access record, and the clinical and party outboxes each keep their ownseqand cursor. A read waits for a commit that drew a lowerseqto end, so a reader never acknowledges past a row that becomes visible later. The prune now counts from the commit instant and keeps every row an active reader has not acknowledged (migrationsclinical/0030_outbox_feed.sql,party/0023_outbox_feed.sql). With no reader named, no commit writes an outbox row (#4786).
Changed
-
Breaking for clients that relied on the old leniencies:
POST /ehr/{ehr_id}/contributionandPOST /demographic/contributionnow read the body through the releasedNewContributionschema, and refuse every shape it does not define. Each refused shape answers 400: (#3595)- a
lifecycle_statein the CODE_PHRASE shape{"terminology_id": …, "code_string": …}, as a plain string, or as a bare{"value": …}. Send aDV_CODED_TEXT:{"value": "complete", "defining_code": {"terminology_id": {"value": "openehr"}, "code_string": "532"}}; - a
descriptionsent as a plain string, on the contributionaudit, on acommit_auditor on an attestation. Send aDV_TEXTorDV_CODED_TEXTobject:{"_type": "DV_TEXT", "value": "…"}; - a
commit_auditor contributionauditwithoutchange_type. The server no longer infers creation or modification frompreceding_version_uid; send the code of the change, for example249(creation),251(modification),523(deleted) or666(attestation); - a
commit_auditor contributionauditwhose_typeisATTESTATIONorUPDATE_ATTESTATION, or any value other thanUPDATE_AUDITorAUDIT_DETAILS. Send the audit asUPDATE_AUDIT(or with no_type) and put each attestation in the version’sattestationslist as anUPDATE_ATTESTATION. A666(attestation) version carries its attestations there too, and one with no attestation is refused; - a missing
audit, which answered 422 before. A missingversionslist, an attestation withoutreasonoris_pending, asystem_idthat is not a string, and apreceding_version_uidsent as a plain string instead of{"value": "…"}are refused the same way.
- a
-
An attestation’s own
system_idis kept, and one that states none takes thesystem_idof the version audit it belongs to instead of the server’s. An attestation committer is now checked against itsPARTY_PROXYrules like every other committer, so an invalid one answers 422 (#3595). -
The served OpenAPI document describes each extension route by what it does and by the ITS-REST text that governs it, and no longer names openEHR Service Model operations, interfaces or status codes. Routes, request and response fields and status codes are unchanged (#4213).
-
A population AQL query that only counts its root objects, such as
SELECT COUNT(c) FROM EHR e CONTAINS COMPOSITION cor the same withCOUNT(*), reads the current version rows and no longer probes the root node of every composition. At 545 000 compositions the count fell from about 9 s to 0.2 s (#4286). -
A REST request checks a connection out of each database pool once and keeps it until it answers, where it took one for each statement: two to four checkouts for a read of an EHR, an EHR_STATUS or a COMPOSITION, each waiting in the pool’s queue under load and each paying the pool’s release round trip. At 48 concurrent clients and a pool of 10, throughput rose by about 18 % and the median latency fell by about 13 % (#4289).
-
The Helm chart, at a new major version (21), has no default deployment profile: it refuses to render until
config.deployment_profilenamessandboxorproduction, so an installation that follows a quickstart instead of the instructions for use no longer runs the sandbox posture by omission (EHDS Annex II 1.2). A values file that relied on the oldsandboxdefault must now set it, for example--set config.deployment_profile=sandbox;values-production.yamlsetsproductionas before. The server binary’s own default and the Compose files, which declaresandboxexplicitly, are unchanged (#4294). -
The audit store keeps each record’s facts in columns and renders its FHIR R4
AuditEventfrom them when the record is read over ITI-81 or delivered by the FHIR feed, instead of storing the rendered document in every record. A record takes about a quarter of the space it took before. The configuration the rendering depends on (the audit source, the store horizon, the category map and the emergency purposes) is kept once per distinct configuration inaudit.audit_render_policy, and every record names the policy it was written under, so it renders the same document after the configuration changes. The tamper chain hashes every column of the record in one digest and checks each render policy against its digest; the earlier digest versions are retired. Audit migration 0017 needs an empty audit store and refuses one that holds records written by an earlier release, naming the remedy. ITI-81 parameters on an element of the document (address, the.identifierparameters,entity-type,entity-role,type,subtype) are matched against the rendered document (#4300). -
The three audit indexes on
recorded_atascend, so their pages fill instead of splitting half full on every insert; the newest-first ITI-81 search scans them backward (#4302). -
A clinical or party node row now stores only the part of its canonical JSON fragment that its own columns do not hold:
_type, a lowercasearchetype_node_id, a plain or simply coded name, and an ELEMENT value in one of the common basic shapes (a quantity, count, ordinal, coded or plain text, date, time, duration, identifier, boolean or URI) move into columns, the value into the new typed value columns. Every reader rebuilds the omitted keys, so the canonical JSON and every AQL result are unchanged, and a filter on a quantity’s magnitude or a code reads its column directly. The node heap shrinks by about a third (storage generation 3); a row written before keeps its whole fragment and reads the same. Migrationsext/0005,clinical/0019andparty/0012add the columns and the readers; no data is migrated (#4306). -
Every ITI-81 search parameter answers through an index again. The store takes the search tokens of a record’s rendered
AuditEventwhen it writes the record: each distinct token once inaudit.audit_search_token, the code-system tokens (type,subtype,entity-type,entity-role,source.identifier) as one shared set inaudit.audit_search_set, and their ids on the record insearch_tokensunder a GIN index;entityreads a hash index onresource_id. A search onaddressor a token parameter no longer renders every record in itsdatewindow. The tamper chain coverssearch_tokens, and the verifier reports a changed token or set (#4313). -
The storage-bench lane measures the baseline and the candidate on one runner in eight interleaved rounds each and gives two verdicts. The plan verdict fails an operation whose median pages per call rose more than 10 % and one page above the baseline’s highest round, whatever its time. The time verdict divides each round by its machine factor, so a slow spell of the runner no longer reads as the code, and fails an operation whose median p50 or p99 rose more than 15 % with every candidate round slower than every baseline round, or a candidate build that ran more than 15 % slower across the board in every round. A latency is no longer compared with a record measured on another runner (#4318).
-
The viewer takes FerroUI 0.5.8: a menu item draws a visible bar under the pointer and the keyboard focus, and the top bar’s search no longer opens its panel again over the page the router draws after a search is submitted or one of its options followed (#4319).
-
Nothing ITS-REST 1.1.0 does not define is served under the openEHR base path any more. FerroEHR serves three namespaces beside each other under
/ferroehr/rest/:/openehr/v1/holds only the ITS-REST routes,/fhir/r4/the FHIR and IHE interfaces, and/extensions/v1/FerroEHR’s own extensions. The ITI-81 retrieval moved from/ferroehr/rest/openehr/v1/fhir/r4/AuditEventto/ferroehr/rest/fhir/r4/AuditEvent. These routes moved from/ferroehr/rest/openehr/v1/...to/ferroehr/rest/extensions/v1/...with the same relative path:/terminology/...,/admin/event_subscription...,/demographic/party_relationship...,/demographic/versioned_party_relationship/...,/definition/archetype/...,/definition/artefact/...,/message/export...,/message/import...,/query/cohort, and the admin extensions/admin/config,/admin/template/{template_id},/admin/query/{qualified_query_name}/{version},/admin/party/...,/admin/archive/...,/admin/report/...,/admin/dump,/admin/load,/admin/integrity/...,/admin/restriction...,/admin/access-restriction...,/admin/research-objectionand/admin/retention/.... The old paths answer 404, with no redirect. The served OpenAPI document and its family documents name the new paths; the admin extensions, the archetype library and the cohort query have family documents of their own (admin-extensions,archetypes,cohort,contributions). The paged CONTRIBUTION list moved too, to/ferroehr/rest/extensions/v1/ehr/{ehr_id}/contribution(#4330). -
The server and viewer images build on the current
gcr.io/distroless/cc-debian13:nonrootdigest, so they carry the base image’s latest Debian package updates (#4335). -
Canonical JSON validation against the openEHR ITS-JSON schemas runs on
jsonschema0.59.0, which refuses a value whose regex match the engine cannot finish where 0.58 accepted it undernotorpatternProperties. Theopenehr-*crates move to 0.0.113 (#4336). -
A statement the database cancels, by its
statement_timeoutor a cancel request (SQLSTATE57014), answers503withRetry-Afterinstead of500: the statement rolled back, so the request can be repeated. By default the request timeout answers before the 60 s statement timeout fires, so on a request path it is raised by an operator’s cancel or by a forward step of the database host’s clock, which fires every running statement’s timeout at once (#4338). -
Every error on the openEHR routes (
/ferroehr/rest/openehr/v1/), the extension routes (/ferroehr/rest/extensions/v1/) and the management routes answers RFC 9457 problem details,application/problem+json, in place of the{ message, validationErrors, error }body shaped after the ITS-REST example. The status codes are unchanged. A problem carriestype,title,status,detailand the request id as aurn:uuid:instance; the refusals a client acts on have FerroEHR types documented on the book’s Problem types page (aql-invalid,query-timeout,validation-failed,content-invalid,conflict,version-conflict,unauthenticated,forbidden,processing-restricted,unavailable,rate-limited), every other error isabout:blank. A request withPrefer: return=representationreceives the additional details ITS-REST allows: the violations of a validation refusal aserrors({path, detail}, wherevalidationErrorsheld"<path>: <message>"strings), the bytepositionof an AQL parse refusal, and thecurrent_versionof a412. The stack’s own408,413,429,503and panic500are problems too, and anOperationOutcomeunder the FHIR base, where an authentication refusal is now anOperationOutcomeas well. The served OpenAPI document declares theProblemschema for every4xxand5xx, and the viewer reads problem details. A client that readmessagereadsdetail; one that readvalidationErrorssendsPrefer: return=representationand readserrors(#4342). -
The FHIR
AuditEventof an EHDS access record names the object it reads, creates, updates or deletes by its openEHR object id asentity.what.identifierwith the systemurn:openehr:object-id, where it wrote awhat.referencethat no FHIR server resolves and HAPI FHIR refused (FHIR R4 references.html §2.3.0.3). ITI-81 finds the record byentity.identifier. FerroEHR takes FerroAUDIT 0.3.2 (ihe-atnaandehds-logging) (#4366). -
The access log costs the request path less under load. The audit store writes a drained batch, its search tokens and its token sets in one transaction on one connection (one commit where it took up to three), stores only the tokens it does not hold yet, and the GIN index on
search_tokenstakes new entries through a pending list of 512 kB. On the release load test the store wrote 1.5 KB of WAL per record where it wrote 5.2 KB (#4375). -
The LANG specification text is re-vendored at
f80763ab(#4377). SPECLANG-18 states how a P_BMM schema’s JSON form encodes a cardinality interval, which the JSON schema reader already followed; its documentation now cites the rule, and a test pins it. SPECLANG-16 types the P_BMM class lists as keyed collections; the generated P_BMM model takes that change with #4497. The nineopenehr-*crates step to 0.0.122. -
[ehr_index] provider = "local"besidepixm_url,assigning_authority,[ehr_index.oauth]or[ehr_index.tls]is accepted, where it was refused: the IHE keys are kept, not used and named at boot, soprovideralone switches the index, in the file or asFERROEHR__EHR_INDEX__PROVIDER. Declared pseudonym namespaces stay in force under either index (#4379). -
A build no release lane marked reports its commit beside the package version, as SemVer build metadata (
5.6.0-rc2+dev.1a2b3c4d5e6f), onferroehr --versionandserver_versionofGET /ferroehr/rest/status(the boot banner and/management/infoalready name the commit beside the version), so a report from a build ofmainno longer reads as the release it follows; a release build reports the bare version (#4380). -
The compose quickstart runs FerroPIX 0.0.12, pinned by digest, with its configuration moved to that release’s keys (
public_base_urlat the top level, the Patient Identity Source’s client under[[trust.issuer]]), and Dependabot proposes each FerroPIX release (#4380). -
The Helm chart runs FerroPIX 0.0.12 by digest, with the FerroPIX chart 0.3.4 built for it, and the hosted sandbox runs FerroPIX 0.0.12 too; both had stayed at 0.0.7 and 0.0.10 when the quickstart moved. A values file for the chart’s FerroPIX moves
ferropix.config.server.public_base_urltoferropix.config.public_base_urland each issuer’sclientstoferropix.config.trust.issuer, the keys FerroPIX reads since 0.0.8; the chart’s examples and the production overlay do. FerroPIX’s chart now also runs its pods withenableServiceLinks: falseand in a user namespace (ferropix.hostUsers: false, the default). A CI guard holds the quickstart, chart and sandbox to one FerroPIX release and checks the sandbox’s and the chart’s FerroPIX configuration under it, so the Dependabot proposal for the quickstart pin moves all three (#4392). -
openehr-query, the AQL 1.1.0 lexer, parser, typed AST and printer, is published under Apache-2.0 from 0.0.116, like the generated model crates andopenehr-its, so any Rust project can parse AQL with it. Versions 0.0.60 to 0.0.115 keep the Business Source License 1.1 they were published under (#4405). -
FerroEHR takes
ferrohealth-server0.4.0 in place of 0.3.9. The new[server] idle_timeout_ms(120000 by default) closes a kept-alive HTTP/1.1 connection that waits that long for its next request, with a clean end of stream, and[server] header_read_timeout_mscounts from the first byte of each request head on a kept-alive connection (from accept for the first one, as before). The head bound 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, which a client such as Go’snet/httpsaw asEOFon aPOSTit does not retry (#4381). A deployment that setheader_read_timeout_msto bound idle connections setsidle_timeout_msinstead. The refusals the listener writes itself (408,413,429,503) and a panic’s500keep naming the server’s request id as theirinstancewhen the client sends its ownX-Request-Id, as every other FerroEHR refusal does (#4417). -
FerroEHR runs on
ferrohealth-server0.4.1, which keeps a product’s own fallback and the layers around it when the stack merges its routes (FerroHEALTH/FerroSYS#199). FerroEHR, v5.6.0-rc3 included, was not exposed to the regression 0.4.1 fixes: the REST API and the viewer declare their own fallback inside their layers, and the management endpoints guard each route they serve, so a path no route matches answers as it did before (#4427). -
The viewer draws every page on its server with FerroUI 0.6, with no Leptos and no WebAssembly: a link and a form load a new page, and FerroUI’s own small script modules add behaviour on top of what the server drew, so every page works with JavaScript off. The image ships the one
ferroehr-viewerbinary, with no/sitetree beside it and nohash.txt; FerroUI’s stylesheet, theme and scripts are served from inside it under/ferrohealth-ui/0.6.0/, and/pkg/no longer answers. The Content-Security-Policy is nowscript-src 'self'; style-src 'self'with no per-response nonce and no'wasm-unsafe-eval'. The image no longer readsLEPTOS_SITE_ROOT,LEPTOS_OUTPUT_NAMEorLEPTOS_HASH_FILES, so a deployment that sets them can drop them;LEPTOS_SITE_ADDRnaming another address thanserver.listenstill refuses the start. A proxy rule written for/pkg/(the hosted deployment’sCache-Controlfor it is removed) has nothing left to match (#4433). -
The viewer runs on
ferrohealth-server0.4.2 and takes its Content-Security-Policy from the family’s server-rendered console headers (FerroHEALTH/FerroSYS#202) in place of a layer of its own. The policy a deployment sees is unchanged:default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; connect-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none', with no nonce. FerroUI’s assets under/ferrohealth-ui/keep theCache-ControlFerroUI sets, and a refusal under that path isno-storewhatever FerroUI’s router sets, so a cache in front of the viewer keeps no error answer for an asset. The REST server takes the sameferrohealth-serverrelease with no change in what it serves (#4439). -
scripts/conformance.shruns the Veredictum 0.3.0 catalogue against one FerroEHR deployment: it reviews the party statement withveredictum validate, drivesveredictum testin the release image pinned by digest with Basic login, and writesresults.json, the HAR recording and the JUnit, CTRF and Markdown views todocs/conformance/ferroehr/. Docker or Podman runs it (CONTAINER_ENGINE). The FerroEHR statement now claims the 15 capability folders and answers every option of the 0.3.0 catalogue, and the IXIT keeps only what 0.3.0 reads (#4448). -
The published conformance record is a Veredictum 0.3.3 released-profile run, committed as
docs/conformance/ferroehr/results.jsonwith itssummary.md. The landing page and the book’s conformance page show the Veredictum badges of the released and development runs onmainand the record’s counts per part (BASE and OPTIONS), in place of the Veredictum 0.1.6 heat grid, chapter bars and tier pills. The docs and landing pages admit images fromraw.githubusercontent.com/FerroHEALTH/FerroEHR/for the badges (#4451). -
The measured performance lane runs Veredictum 0.3.3’s
perf.scripts/conformance.sh perfcomposes the conformance deployment with the measurement overlay, runs the pinnedclinical-mixworkload, checks the record withperf-judgeand redraws the book’s charts fromdocs/conformance/ferroehr/perf-result.json.scripts/conformance.sh perf-aameasures the deployment against itself, so the record carries its between-run noise floor. The measurement overlay also switches response compression off, and the IXIT names the deployment’s containers for the run’s server-side readings. The Performance and Benchmarks pages describe the new instrument. They keep the earlier figures until a record measured on the reference host replaces them (#4452). -
The serving roles may now analyze their store’s partitioned tables: new migrations (clinical 0026, party 0018) grant
MAINTAINonnode,versionandvo_attestation, and onclinical.ehr, toferroehr_clinicalandferroehr_party, so the hourly statistics refresh works under the role split.MAINTAINalso allowsVACUUM,CLUSTER,REINDEXandLOCK TABLEon exactly those tables. A role that still lacks it gets the warning naming the tables, as before (#4453). -
With the role gate on (
[authz.rbac] enabled), a bearer token whose SMART on openEHR resource scopes are allsystem/scopes, such assystem/template-*.r, now reaches a clinical operation without a role: it is a backend client, and its scopes decide what it reaches. Auser/orpatient/token belongs to a person and still needs at least one role, as does a token with no SMART on openEHR scope and a Basic user; an admin operation still needs the admin role (#4467). -
A tag update (
PUT …/tagson EHR_STATUS, COMPOSITION and the five party kinds) sent withPrefer: return=identifiernow answers200with the stored tag list andPreference-Applied: return=identifier. It answered204(#4475). -
The conformance deployment runs FerroTERM beside FerroEHR, pinned by digest, with
[terminology.server]pointed at it, locally inscripts/conformance.shand in the Conformance workflow, so theaql-terminology-supportedarm of the party statement runs against a real terminology server (#4476). -
The P_BMM model follows SPECLANG-16. The LANG 1.1.0 BMM that
openehr-codegenreads is now thespecifications-LANGfile atf80763ab, soP_BMM_SCHEMA.primitive_typesandclass_definitionsare maps keyed by class name,P_BMM_CLASS.ancestor_defsis a map ofP_BMM_BASE_TYPEkeyed by type signature (a simple ancestor included), andP_BMM_GENERIC_TYPE.generic_parameter_defsis an optional map keyed by formal parameter name. The formal and actual generic parameters (P_BMM_CLASS.generic_parameter_defs,P_BMM_GENERIC_TYPE.generic_parameter_defs,BMM_GENERIC_CLASS.generic_parameters) are insertion-orderedIndexMaps, because the specification fixes their declaration order, and the model builders bind each actual parameter to its formal by name. In the releasedv1_0generation,P_BMM_GENERIC_TYPE.generic_parameter_defsnow carries the1..*bound its BMM states. The nineopenehr-*crates step to 0.0.123 (#4497). -
The conformance pipeline runs Veredictum 0.3.1. The Conformance workflow drives the catalogue through the Veredictum Action twice, each run on fresh volumes: under the
releasedprofile, the frozen openEHR release, which is the record and decides the job, and under thedevelopmentprofile, the pinnedmasterof each openEHR repository, which is published beside it under its own job summary heading and artifact and never counted toward it. Both runs include the SMART documents: the Action now takes the SMART Platform base URL and the committed test issuer’s key. The workflow reads the result paths and the exit status from the Action’s outputs.scripts/conformance.shtakes the profile asCONF_PROFILE(releasedby default; adevelopmentrun writes todocs/conformance/ferroehr-development/) and drives the SMART documents in the same run, and the IXIT carries the test issuer’sscoped_tokensdeclaration (#4503). -
The viewer groups a template’s releases. The template list draws one group per template, the newest release first with the number of releases and the earlier releases under it, in both the ADL 1.4 and the ADL 2 tab. A template’s page names its release beside its title, where every other release is a link with the newest marked, also with FerroUI’s scripts refused; the release select and its Open button above the tabs are gone. The Overview lists the releases with the compositions committed against each, and a new Compare tab lists the paths one release adds, removes and changes against another (#4506).
-
Every write checks the committer against the login that authenticated the request where the server can compare them: a committer naming another login of the caller’s token issuer or of this server, or a
PARTY_SELFcommitter from a caller who is not the record’s person, is refused with a 403. A name only, or an identifier of another authority, is stored as sent. The direct writes (composition, EHR status, directory, EHR, demographic) now also refuse a committer that breaks its own rules with a 422, as the contribution path already did (#4520). -
An audit record no longer adds a row to
audit.audit_search_tokenfor its request id or for the version uid a create wrote. ITI-81entity.identifierfinds both from the record’s ownrequest_idandresource_idcolumns, through a new hash index onrequest_id(audit migration 0020), so the token table stays flat as requests are audited. Retention now deletes the search tokens that no remaining record names, among them the request id tokens of records written by 5.6.0-rc5 and earlier, and the database still refuses to delete a token a kept record names (#4524). -
A clinical or party node row below the root no longer repeats its archetype header, language and encoding: an archetype root’s
archetype_detailsandarchetype_node_idare rebuilt from thearchetypecolumn and a newrm_versioncolumn, and alanguageinISO_639-1and anencodinginIANA_character-setskeep only their code, in the newlanguageandencodingcolumns. Every reader puts the keys back where they stood, so the canonical JSON, every AQL result and the served key order are unchanged; a header of any other shape stays in the fragment. A vital signs version takes 17.1 KB instead of 21.6 KB and an International Patient Summary 131 KB instead of 159 KB. Migrationsext/0007,clinical/0028andparty/0020add the columns and the readers; no data is migrated, and a row written before keeps its whole fragment and reads the same (#4525). -
ext.storage_generation()reportsgeneration-4, the storage generation with the node header columns, and the storage benchmark records for it are committed underdocs/benchmarks/storage/generation-4/. Migrationext/0008changes only the label; nothing in the serving path reads it (#4525). -
Five response messages no longer name the openEHR Service Model. The admin dump route’s
400for a missingfile_sys_locnow reads “request body must carry a non-emptyfile_sys_locstring, a location on the server’s file system (FerroEHR’s own dump/load extension)”, and its400for anencodingmember reads “encodingis not accepted: FerroEHR’s own dump/load extension defines no encoding, so no value names one”. The admin activity-report400s fora_servicenow list the accepted service names (“query parametera_serviceis required: one of Admin, Definitions, …” and “query parametera_servicenames no platform service: … (expected one of …)”). The not-implemented answer ofstore_query_setreads “store_query_set is not implemented: no openEHR specification defines a query set”. Theopenehr-rmvalidation docs for the threePARTYandPARTY_RELATIONSHIPrelationship invariants now name the separate relationship container as FerroEHR’s own design against RM demographic §Party Relationships (#4531). -
Breaking for clients that relied on the remaining commit-audit leniencies: the audit rules of the CONTRIBUTION commit now hold on every write path (#4543).
- A
descriptionobject without_type, such as{"value": "…"}, is refused with 400 on a contributionaudit, acommit_auditand an attestation, and so is an attestationreasonwithout_type. Send{"_type": "DV_TEXT", "value": "…"}or aDV_CODED_TEXTwith its_type. - A stated empty
system_idis refused with 422 on the direct writes too (openehr-audit-details: system_id=""on a create, update or delete), where the server used to replace it with its own. Leavesystem_idout to get the server’s, or send a non-empty one. Asystem_idthat is not a string stays a 400 on both CONTRIBUTION routes. - A commit audit of type
UPDATE_ATTESTATIONhanded to the library’s direct write calls (create_composition,update_composition, the EHR_STATUS, DIRECTORY and party writes) is refused with 400, as on the CONTRIBUTION routes. Send the audit asUPDATE_AUDITand put each attestation in the version’sattestationslist.
- A
-
Members that
NewContributionorUPDATE_AUDITdo not declare, such as areasonoris_pendingon a plain audit or an extra top-level member of a contribution, are accepted and ignored: the released schemas leave both objects open (#4543). -
The
openehr-*crates take their version when they are published. A pull request that changes the crates no longer bumps their lockstep0.0.xversion: the crates publish reads crates.io, takes the next version when packaged content changed since the newest published one, and refuses to publish changed content under a version crates.io already holds. The version in the manifests onmaincan therefore trail the newest version on crates.io (#4555). -
The served Web Template of an ADL 2 operational template writes the
aqlPathof an ELEMENT’s value and of a data value’s parts without an[idN]predicate, since a data value carries noarchetype_node_id(ADL2master05-paths§“Relationship with W3C Xpath”). ADV_INTERVALand its parts read…/value,…/value/lowerand…/value/upper, the form the ADL 1.4 Web Template writes, where they read…/value[id6]/lower[id7]before, and the parts’ ids arelowerandupper(#4559). -
The served Web Template gives every
DV_INTERVAL<T>node itslowerandupperchildren, each of typeT, also when the operational template leaves them unconstrained (RMdata_types§DV_INTERVAL). Such a node had no children before. An unconstrained part carries the open inputs of its type, and itsaqlPathis…/value/loweror…/value/upper. This holds for ADL 1.4 and ADL 2 templates (#4559). -
The template example fills such an interval: an unconstrained part takes the example value of its constrained sibling, so the limits stay consistent (#4559).
-
The served Web Template of an ADL 2 operational template writes a coded input whose at-codes the template binds to a terminology as the bound terms: its
codelist carries each binding’s code and label and itsterminologynames the bound terminology (ADL2master08-terminology_integration§“From Constraints to Concrete Codes in Data”).COMPOSITION.categoryboundat1toopenehr::433reads{"value": "433", "label": "event"}withterminology: "openehr", where it read the localat1before, and an[acN@ttttt]constraint takes the bound terms of the terminology it names. A FLAT or STRUCTURED composition without a category, and the example composition, now carryopenehr::433. TheaqlPathof every data value drops its[idN]predicate, so a constrainedcategoryandcontext/settingread/categoryand/context/setting(#4574). -
A CONTRIBUTION’s
versions[]entry records its merge inputs: theother_input_version_uidsit states are stored on the committedORIGINAL_VERSIONand served on every read, where the server used to refuse the member with 400. The uids may name versions the server does not hold; an empty list or an entry that is not anOBJECT_VERSION_IDis a 422 (#4577). -
Other members
UPDATE_VERSIONdoes not declare, such asitemor an extension member, are accepted and ignored, where the server used to refuse them with 400: the released schema leaves the object open, as it doesNewContributionandUPDATE_AUDIT. Auidorcontributionon a version entry is still refused with 400, because the server assigns both, and so is a_typeother thanUPDATE_VERSIONorORIGINAL_VERSION(#4577). -
The admin dump route’s refusals name its parameters by their wire names and list the accepted values, not the Service Model class names. A bad
logical_formatorcompression_formatnow reads “<field>must be a string, one of …” or “<field>names no accepted value: … (expected one of …)”, and a non-integersegment_split_sizereads “segment_split_sizemust be an integer size in kb”. The served OpenAPI text for the route no longer namesEXPORT_SPECorEXPORT_FORMAT(#4634). -
Five archive dump and load failures still answer
500, and their bodies are now fixed text that echoes no value from the archive: (#4657)- an unreadable data segment no longer names the segment, though
manifest.jsonanddemographic-commons.jsonare still named; - an unknown logical format in the manifest no longer echoes the declared value;
- a version whose id carries a path separator, and a version whose commit audit the export lacks, no longer name the version.
- an unreadable data segment no longer names the segment, though
-
A failed expansion of a party’s protected national identifiers still answers
500, and its body now reads “expanding the protected identifiers of a party version failed” without echoing the requested version uid: a500body carries curated text only (#4657). -
Two query failures still answer
500, and their bodies now carry curated text only. A stored query whose record holds no query text reads “the stored query has no query text” without echoing its name, and a terminology server failure while aTERMINOLOGY('expand', …)operand is resolved reads “the terminology service failed while the query was being planned” instead of the upstream message (#4657). -
The
db_transactionscounter (outcome="commit") now counts every committed single-object write. It used to leave outEHR_STATUSand DIRECTORY writes (#4659). -
The access record of a VERSION read (
GET /ehr/{ehr_id}/versioned_composition/{versioned_object_uid}/version, its/version/{version_uid}form, and the same twoversioned_ehr_statusroutes) now names the content it served, and for a COMPOSITION the origins of its data, as the bare reads already did. Itsehr_idis the parsed EHR id, as on every other read, rather than the path text as sent. The response is unchanged (#4660). -
OPTIONSon the API base path sendsconformance_profileasBASE+OPTIONSwhere it sentSTANDARD. The build derives the value from the committed Veredictum record,docs/conformance/ferroehr/summary.md:BASE+OPTIONSwhen the BASE rows and the run OPTIONS rows have none failed and none errored,BASEwhen only the BASE rows do, and the member left out otherwise. ITS-REST 1.1.0 types the member as a free string and CNF names no profiles, so the values are FerroEHR’s own. The[rest.identity] conformance_profileconfiguration key is removed: a configuration that still sets it is refused at boot as an unknown key (#4672). -
Every route now reads
Preferas RFC 7240 §2 defines it, as error responses already did: a preference in a secondPreferfield, one that carries parameters after;(return=representation; x=1), and one with whitespace around=(return = representation) are honoured. Before, only the firstPreferfield was read, and such a preference was ignored (#4722). -
The viewer answers every request other than
GETandHEADthat arrives without a session, to any path but the sign-in page, the OIDC routes, sign-out and the search answer, with the sign-in page that says the session ended, before any handler runs. A post to a page returns there after signing in; a post to the export, preference, sidebar or paging route returns to the dashboard. The export post used to answer303to/login, and the preference, sidebar and paging posts ran without a session (#4724). -
The conformance instrument is Veredictum 0.4.0, and the published conformance record (
docs/conformance/ferroehr/results.jsonwith itssummary.md) is a 0.4.0 released-profile run. The party statement answers the 0.4.0 catalogue: it keeps thexml-namespace-v2arm, which now asks only whether the TRIALhttp://schemas.openehr.org/v2namespace is also accepted, and selects the new development-profile option armadl2-id-coded-supported(#4771).
Removed
-
The conformance pipeline no longer runs EHRbase or the extra FerroEHR deployments.
docker/sut-ehrbase.yml, the EHRbase record and party set,docs/conformance/COMPARISON.md, the book’s Comparison with EHRbase page, and the openPGP-signing, fail-open and stable-spec compose overlays (docker/sut-signing-pgp.yml,sut-pgp-parallel.yml,sut-terminology-failclosed.yml,sut-terminology-failopen.yml,sut-spec-stable.yml) with the test signing keys undercorpus/keys/are gone.scripts/conformance.shno longer takesCONF_SUT,CONF_IXITorCONF_STATEMENT, and refusesCONF_PERF_CLASSandCONF_STRESSuntil the measured lanes move to the Veredictumperf/tree (#4448). -
The Veredictum pin watcher workflow,
scripts/checks/veredictum-pin.shwith itsveredictum-pin-guardjob, and theno-conformance-runlabel are gone: a pin bump now runs the new catalogue against its own build in the Conformance workflow (#4449). -
The Veredictum 0.1.6 conformance documents:
CONFORMANCE_REPORT.md,CONFORMANCE_STATEMENT.md,CONFORMANCE_CERTIFICATE.md,verdicts.json,run-exceptions.json, the CORE, STANDARD, OPTIONS, SEC-BASIC and performance badge files, and the heat grid and chapter bars the book and the landing page drew from them (#4451). -
The
CONF_PERF_CLASS,CONF_PERF_HOURSandCONF_STRESSsettings of the measured lanes are gone, along with the class runs, the step-load stress ladder and the AQL probe, which Veredictum 0.3.1 removed (#4452). -
The separate SMART step of the Conformance workflow, the
smartstage ofscripts/conformance.shwith itsCONF_SMART_OUT, anddocs/conformance/party/ferroehr/ixit-smart.jsonare gone: the one catalogue run covers the SMART documents. The party statement no longer carries theperformanceblock, which the Veredictum 0.3.1 statement schema refuses (#4503). -
The empty linkage storage domain is gone: its schema, its
ferroehr_linkagerole, the[storage.linkage]and[storage.migrate.linkage]configuration tables, its pool, thedatabase.linkageandbackup.linkagechart values, theferroehr-backup-linkagecompose job and thebtree_gistextension only its table needed. A configuration that still sets[storage.linkage]or[storage.migrate.linkage]is refused at boot as an unknown key. Cohort and AQL demographic join crossings still write theirlinkage-domain access records. Upgrade note: remove those keys and values before you upgrade. On a co-located database, migrationaudit/0021_drop_linkage_domain.sqldrops the schema, the role and the extension at the first boot, and raises aNOTICEfor any of them it cannot drop. When the linkage domain lived in a database of its own,[storage.audit]names another database, or the cluster holds more than one FerroEHR database, run in each such database, as a superuser or a member offerroehr_linkage:DROP SCHEMA IF EXISTS linkage CASCADE; REVOKE ALL ON SCHEMA ext FROM ferroehr_linkage; REVOKE ALL ON ALL FUNCTIONS IN SCHEMA ext FROM ferroehr_linkage; ALTER DEFAULT PRIVILEGES IN SCHEMA ext REVOKE EXECUTE ON FUNCTIONS FROM ferroehr_linkage; DROP OWNED BY ferroehr_linkage; DROP EXTENSION IF EXISTS btree_gist;thenDROP ROLE ferroehr_linkage;once per cluster. The released grant files still nameferroehr_linkage, so a first install whose migrator holds noCREATEROLEstill provisions that role and drops it after the first boot (#4684). -
A party migration drops the database function
party.resolve_national_identifier. No server path has called it since the linkage domain was removed (#4697). -
The viewer no longer reads
LEPTOS_SITE_ADDR: a value naming another address thanserver.listenno longer refuses the start.server.listen(FERROEHR_VIEWER__SERVER__LISTEN) sets the listen address (#4725). -
Migration
audit/0022drops the SQL functionsaudit.reap_audit_events(integer),audit.reap_audit_events_years(integer)andaudit.reap_audit_events_before(timestamptz), along with theirEXECUTEgrants. The server reaps the audit trail throughaudit.reap_audit_events_due, which honours each record’s own retention end, and nothing called the three any longer. Thespec_profiledocumentation no longer names a LANG generation, since the profile selects the RM and BASE generations only (#4770). -
Breaking: FerroEHR no longer publishes change events to a message broker. The AMQP publisher, the
lapindependency, theeventscargo feature, the[events]section, the/admin/event_subscriptionroutes with their subscription store (clinical migration0030_outbox_feed.sqldrops the table), theeventshealth indicator andevents_publishedmetric, theplaintext_brokerdeployment gap, the chart’ssecrets.eventsUrlandconfig.eventsvalues, and the viewer’s Subscriptions page are gone. A configuration that still carries[events], orplaintext_brokerindeployment_accepts, is refused at boot. Broker delivery moves to FerroBRIDGE, where it is in progress (FerroHEALTH/FerroBRIDGE#1367): it is to read the new outbox feed and publish to the broker, so a deployment that needs broker events stays on a release with FerroEHR’s own publisher until a FerroBRIDGE release carries it. Then name its reader in[outbox] readersand configure FerroBRIDGE’s events lane with the broker URL, exchange and queues (Change events (outbox feed)) (#4786).
Fixed
-
The hosted sandbox seeds its full demo dataset again. The v5.5.0 reseed stopped at the ADL 2 archetype library (233 stored / 89 refused against the pinned 231 / 91) because the box’s
.envstill forced FerroTERM 0.1.6, which reads none of the FerroTERM 0.3 settings the sandbox posture passes, so it served no LOINC and VETDF could only warn onbraden_scale’s mistyped LA9605-4. The corpus, the pin and the CDR were right. The seed now asks the CDR for a LOINC code before the library step and names a posture without LOINC (SANDBOX_TERMINOLOGY=without-loincopts a local run into 233 / 89), checks that the two files it names move together, and a corpus test holds the manifest’s pin to the adjudicated split with and without LOINC. The FerroPIX rollout script retires a staleFERROTERM_IMAGEoverride, checks that FerroTERM runs the pinned version and serves LOINC, and wipes before it seeds over an unfinished seed (#4278). -
The measurement overlay
docker/sut-measurement.ymlswitches the caller rate limiter off by removing the[server.caller_rate]keys, so the server logscaller rate limiting configuredwithenabled=falseat boot, instead of setting a rate of 4294967295 per second thatferrohealth-server0.3.5 truncated to a zero interval and that answered stray429s under concurrency.scripts/conformance.shrefuses to start a measurement stack whoseferroehrservice still sets a caller rate (#4281). -
A response to a request whose body FerroEHR left unread, such as a
404to aPOSTof a path it does not serve or a declared-length413, now carriesConnection: close. The connection closed after such a response without saying so, and a client that sent its next request on it met a closed socket, which a non-idempotent request cannot safely retry (RFC 9112 §9.6) (#4283). -
A
[server.caller_rate]above 1 000 000 000 requests per second no longer answers429to concurrent requests: such a rate now limits nothing, as its operator meant (#4283). -
Every request leaves one request line, a timeout
408, a declared-length413and the500of a panicked handler included, and a413for a body with no declared length that passes[server] body_limit_bytesis answered with the openEHR error body, as the declared-length413is (#4283). -
An AQL query whose
WHEREclause chains thousands ofNOT,ANDorORterms no longer overflows the stack and aborts the server. The parser refuses a query that nests brackets andCONTAINSdeeper than 64 levels or builds an expression deeper than 512 levels with400 Bad Request, before any recursive pass runs, on the ad-hoc, stored-query store and execution paths alike. A longORover one path is written asMATCHES {…}, which the bound does not count. A statement PostgreSQL refuses for its own complexity limit (SQLSTATE class 54) also answers400instead of500.openehr-querygainsParseError::TooDeep(#4284). -
An AQL query (ad hoc or stored) whose client disconnects, or that the server’s own
query.timeout_msor HTTP request timeout gives up on, no longer keeps its statement running and its pooled connection busy until the statement ends. The connection is closed instead of returned to the pool, so the slot frees at once, and every pooled session now sets PostgreSQL’sclient_connection_check_intervalto one second, so the backend stops the abandoned statement within about a second. The composition-count statistics behave the same way (#4285). -
The server’s resident memory no longer climbs under sustained load until the container’s memory limit kills it. The
ferroehrbinary now allocates through mimalloc instead of glibcmalloc, whose per-thread arenas kept freed memory and never gave it back. On a load test of 10 000 mixed jobs at 48 workers the peak resident set fell from 2.3 to 3.2 GB (growing run after run) to about 600 MB, and throughput rose by about a third (#4288). -
A request whose database connection a PostgreSQL restart, a crash or the network cuts now answers
503 Service UnavailablewithRetry-After, as a request that cannot get a connection already did, instead of500. SQLSTATE class08(except08P01),57P01,57P02,57P03and57P05, and a reset, aborted or closed socket on an open session count as such a cut (#4290). -
While PostgreSQL is down, requests that need the database answer
503withRetry-Afterabout a second after the first one starts waiting, and at once after that, instead of each queueing up todb.acquire_timeout_secs(30 seconds by default). An acquire that has waited a second tries one connection of its own; when that cannot reach the database, the outage is known until a fresh attempt connects, and requests are served again as soon as one does. A pool that is only busy keeps queueing as before (#4323). -
Superseding a composition or a party no longer slows down as its history grows. The foreign-key check that every new node and attestation row makes against its version could scan all versions of the object instead of probing one, depending on the planner statistics at the time: on the storage bench, superseding an object with a few hundred versions took about 14 ms instead of 9 ms when the plan flipped. Migrations
clinical/0022andparty/0013re-key the version-tree uniqueness constraintuq_version_treewith the object id last, so the check always probes the primary key. The constraint enforces the same uniqueness as before (#4340). -
The FHIR rendering of an access record
ehds-loggingdoes not classify (a template upload, a stored-query write, a template read) now carries the IHE BALP 1.1.4entity:dataslice its Create, Read, Update or Delete profile requires: type2, role4andwhat.identifier, naming the operation when the record names no object. HAPI FHIR’s validator refused the template upload record without it (#4353). -
A
+in a query string is a literal plus, as RFC 3986 §2.1 and §3.4 decode a URI query, on every ITS-REST operation and every extension route: a date-time offset such as2026-10-28T10:00:00+01:00or an AQL parameter sent with an unencoded+reaches the server unchanged, where it was read as a space. A space in a query value is sent as%20. This reverses the form-decoding of #3891: a client that writes a space as+now sends a plus. Theopenehr-*crates move to 0.0.114 (#4356). -
An AQL
EHR e[ehr_id/value='…']predicate whose value is not a UUID ('1234', the AQL 1.1.0 example) answers an empty result, as itsWHERE e/ehr_id/value = '…'spelling does, onPOSTandGET /query/aql; it was refused with400. Both spellings lower the EHR id comparison through one path, and a value the database cannot cast is refused with a message that no longer claims it came from a query parameter (#4378). -
A request sent on a kept-alive connection that sat idle longer than
[server] header_read_timeout_ms(30 s by default) is answered. The server used to close such a connection, sometimes while the request was arriving, so a client that reused it gotEOFwith no answer and no server log line, and a client that never retries aPOSTon a reused connection, such as Go’snet/http, reported a composition commit as failed. An idle connection now stays open until[server] idle_timeout_ms(120 s by default) and then ends cleanly before any new request byte; keep that limit longer than the idle timeout of your clients (90 s for Go) and of any load balancer in front (#4381). -
An AQL query with an archetype predicate no longer builds the archetype index bitmap of the whole store once per version. The planner multiplied the selectivities of the archetype columns, which each archetype fixes together, and expected about 15 000 of 545 067 blood-pressure OBSERVATIONs; a query over one EHR then took 38.8 s and answered
408. Clinical migration0021_archetype_statistics.sqlgives the columns a statistics object, and the same query takes 0.3 s (#4399). -
FROM PERSON p CONTAINS EHR e(and theORGANISATIONandROLEroots) joins a party to the EHR whoseEHR_STATUS.subject.external_refnames it, so a party created withPOST /demographic/personand an EHR created withPOST /ehranswer their row with no other call. Before, the join read only the party-to-EHR map, which no REST route writes, and answered no rows on a deployed server. The reference matches when itsid.valueis the party’s uid without::<system>::<version>and itstypeis the root class or its RM ancestor (ACTOR,PARTY), in any namespace; an EHR linked both ways answers once (#4411). -
An AQL projection whose path ends on a list attribute inside a node’s data (
c/feeder_audit/originating_system_item_ids,c/links,c/context/participations,c/composer/identifiers,.../mappings) answers the list itself,[{…}, {…}], andnullwhen the list is absent. It answered the list wrapped in a second list,[[{…}, {…}]]; a client that unwrapped that outer array reads the column directly now. A path that continues below a list (.../originating_system_item_ids/id) still answers the array of its matches,["…", "…"].COUNTover a path ending on a list counts its elements (#4413). -
Reading one version of a composition, EHR_STATUS, folder or party by its version id no longer slows down as the object’s history grows. Once a connection reused its prepared read, the plan scanned every version of the object and kept the one asked for: on the storage bench’s history of 500 versions such a read touched about 520 buffers instead of 12 to 24. Migrations
clinical/0023andparty/0014add an index on the version tree id columns of both storage tiers, so the read probes the one version it returns (#4420). -
An audit store that 5.6.0-rc2 migrated starts again. Audit migration 0017 changed after 5.6.0-rc2 shipped it, so the server refused such a store on the migration’s checksum at boot. 0017 is back to its 5.6.0-rc2 text, and the new audit migration
0019_search_tokens_pending_list.sqlgives the search token index its pending list of 512 kB, so a store that 5.6.0-rc2 migrated upgrades in place (#4424). -
An AQL query ordered by
c/uid/valuewith aLIMITno longer starts a parallel worker on every call, and no longer switches between that plan and a sort of the whole join depending on the planner statistics. The version uid it sorts on had no index, so the planner sorted the version rows through a parallelGather Merge, which costs a worker’s start-up per query on a server of any size: about 19 ms on the storage bench’s CI runner, where the two flat-shape path reads measured 23 ms in some rounds and 42 ms in others. Migrationsclinical/0024andparty/0015add an index on the uid expression of the hot version partition, so the query reads versions in uid order from it in one backend and stops at the limit (#4429). -
An AQL query that reads values along a path no longer spends up to a second compiling itself before it runs. Each path step was bound through a set-returning function that PostgreSQL estimates at ten rows, so a chain of steps multiplied the row estimate tenfold per step: the planner chose join orders for a statement millions of times larger than the real one and switched on JIT compilation for it. On the storage bench, a wide projection of 9 values over one EHR read in 1 s instead of 15 to 20 ms, and an ordered WHERE on a magnitude in about 0.5 s instead of 50 ms (#4430). Each step is now a
LATERALsubquery that the planner estimates from its own plan; results do not change (#4431). -
An AQL lookup by an ELEMENT value, such as a person by an identifier (
WHERE id/items[at0001]/value/id = $v) or a composition by a text value, read every node of the archetype in both stores and tested the value last: about 350 ms at 50 000 persons. The engine now anchors such an equality on the ELEMENT rows of the same version by their search text (ext.node_search_text, ext migration0006), which the new partial expression indexidx_node_hot_value_searchand its statistics object serve (clinical migration0025, party migration0016), so the lookup reads the one object: 26 buffers and under a millisecond at 50 000 persons. The party store also gets the archetype dependency statistics the clinical store has had since 5.6.0-rc2 (party migration0017). The storage bench measures the lookup asperson_identifier_lookup(#4437). -
The revision history and every point read of a version now reach the version’s commit audit through a lateral subquery that probes
pk_commit_auditby key once per version row, so stale statistics on the partitionedversiontable can no longer turn the read into a walk of the whole commit audit index (1 318 buffers against 21 for a four-version object beside 1 300 others) (#4438). -
A revision history or a current-version read of a COMPOSITION committed after the partitioned
versiontable last had statistics could walk the whole commit audit index: the planner held the highest commit audit id of the seed for the highest there is and rated a merge join overpk_commit_auditas cheap. On a store of 1 300 compositions the history of a four-version object read 1 318 buffers instead of 21, and the storage bench readrevision_historyat about 440 buffers per call in 3 of 8 rounds. The server now keeps the partitioned parents’ statistics (#4453), and each read probes the commit audit by key (#4438). -
An AQL lookup of an EHR by the subject of its EHR_STATUS (
WHERE e/ehr_status/subject/external_ref/id/value = $u AND e/ehr_status/subject/external_ref/namespace = $n) joined every EHR_STATUS version and read the subject out of its stored fragment: about 150 ms on a store of a few thousand EHRs. The two leaves now read the EHR row’ssubject_idandsubject_namespace, the copy the commit keeps of the current EHR_STATUS subject, so the lookup enters throughuq_ehr_subjectand reads one row. The storage bench measures it asehr_by_subject(#4442). -
The partitioned tables
node,versionandvo_attestationof the clinical and party stores never had planner statistics of their own, since autovacuum does not analyze a partitioned table, so the planner estimated joins over them without any (PostgreSQL 18 §24.1.3). The server now runsANALYZE ONLYon them, and onehrwhile autovacuum has never analyzed it, after applying the migrations, afterload_ehrs, at boot and every hour. The role it runs as needs theMAINTAINprivilege on those tables; without it the server logs the tables it could not analyze. The populationCONTAINSof an archetype now enters throughidx_node_hot_arch_subsume(3 703 buffers to 1 745 on the storage bench’s seed) (#4453). -
A party delete (
DELETE /demographic/{agent,group,organisation,person,role}/{uid_based_id}) and the party relationship delete now answer400when the path names the versioned object instead of its latestOBJECT_VERSION_ID, and delete nothing. They answered204and deleted the current version. The release requires thepreceding_version_uidin that path (ITS-RESTagent_delete.yamland its four siblings) (#4478) (#4458). -
A CONTRIBUTION member outside the operation’s member set, a party in an EHR CONTRIBUTION or a FOLDER in a demographic CONTRIBUTION, now answers
400as a body that fails the request schema. It answered422(#4459). -
A party update whose body carries no
uidnow checks each relationshipsourceagainst the party the path names and refuses a foreign source with422, as RMRelationships_validityrequires. The check ran only when the body carried auid, so such an update committed a relationship sourced at another party (#4460). -
An ADL 1.4 template upload whose XML ends with an element still open now answers
400, as for any document that is not well-formed XML. The well-formedness gate stopped at the end of input without checking that every element was closed, so a truncated upload answered422(#4461). -
A canonical JSON body that the published ITS-JSON schema admits and the RM refuses, such as a
DV_URIorDV_EHR_URIwithoutvalueor aDV_INTERVALlimitDV_ORDINALwithoutsymbol, now answers422naming the member, on the direct commit routes, the CONTRIBUTION members and the party commits. A body the schema refuses still answers400. All of them answered400(#4463). -
A directory create or update whose root FOLDER names an archetype in
archetype_node_idand carries noarchetype_detailsnow answers422and commits nothing: an archetype root carriesarchetype_details(RM common §The LOCATABLE Class). FerroEHR created such a directory. A553|incomplete|commit and a nested FOLDER keep it optional. The viewer’s empty directory root now carriesarchetype_details(#4464). -
AQL
EHR e NOT CONTAINS <class expression>now runs and returns the EHRs that hold no matching object. It was refused as unsupported with400(#4465). -
An AQL comparison between a
DV_DATE_TIMEpath that ends on the data value itself, such asc/context/start_time, and a date-time literal now compares the instants both name, so values with different offsets compare correctly. The comparison read the whole data value and matched nothing (#4466). -
A container member whose node id names an object constraint of the template but whose RM type conforms to none of them, such as an ELEMENT where the template allows only a CLUSTER, is now refused with
422. Only the opposite direction was refused (#4468). -
An ADL 1.4 template upload with
Prefer: return=representationnow answers the representationAcceptnames: the OPT XML, or the Web Template underapplication/openehr.wt+jsonorapplication/json. AnAcceptoutside those answers406and stores nothing. The upload always answered XML (#4469). -
A Simplified Format COMPOSITION commit without the
openehr-template-idheader, and a flat|rawvalue without_type, now answer400. Both answered422(#4470). -
A Simplified Flat or Structured
…/action_archetype_idnow sets the StringACTIVITY.action_archetype_id, and the flat output writes it back. The converter built an object from the template’s string constraint, so the commit answered422(#4471). -
ctx/action_ism_transition_current_state, as a rubric or a code, now setsACTION.ism_transition.current_stateof every ACTION the document gives no state. The converter wrote524|initial|first and the context value never applied (#4472). -
ctx/instruction_narrativenow becomesINSTRUCTION.narrativeof every INSTRUCTION the document gives no narrative. A placeholder<narrative>was stored instead (#4473). -
The Simplified Flat
DV_INTERVALsuffixes|lower_unbounded,|upper_unbounded,|lower_includedand|upper_includedare now read on an interval whose bounds are template nodes, and the flat output writes an unbounded flag when true and an included flag when false. The suffixes were refused as unknown with422(#4474). -
An AQL query aimed at named EHRs (the ITS-REST
ehr_idparameter) reads those EHRs’ objects first and each object’s own content after them, whatever the planner statistics say. When an archetype’s rows fell out of the most-common-value list of the archetype statistics, the planner estimated them at one row and could start from that archetype over the whole population, evaluating every projected path for every EHR’s rows before the EHR filter: the storage bench’s wide projection over one EHR read about 10 000 pages per call in some rounds and 1 200 in others. A node contained in a versioned object is now read inside its parent on such a query; results do not change (#4487). -
AQL
TERMINOLOGY('expand', …)against a FHIR terminology server takes the value set from theurlargument whenparams_uriis the$expandquery form (url=http://…), as the openEHR AQL examples write it, and still takes a bare value-set URL as it is. A query form withouturlis a 400 that names the missing argument. Before, the wholeparams_uriwent to the server as the URL, and the query was answered 400 because the value set was not found (#4488). -
AQL
TERMINOLOGY('validate', …)andTERMINOLOGY('subsumes', …)keep aparams_uriargument whole when its value carries a?, as the QUERY master03 exampleurl=http://snomed.info/sct?fhir_vsdoes. Before, the arguments were read from after the first?anywhere inparams_uri, so the value-set URL reached the terminology server truncated and the arguments before it were lost. Aparams_urithat starts with a path still has its arguments read from after the path’s?(#4490). -
An ADL 2 template whose constituent archetype the CDR does not hold is refused at upload, with a
422whoseerrorscarry oneVARXRentry per missing archetype (AOM2C_ARCHETYPE_ROOTvalidity rule VARXR); the 2013 CKMt_encounter_opt_test, built on the refusedapgar, no longer loads, so the sandbox library pin is 231 accepted / 91 refused. A stored template whose constituent was deleted later answers its JSON form and example with the sameVARXRlist, and the viewer says so on every tab of the template, names each missing archetype and links to uploading it, instead of a raw422(#4505). -
ADL 2 validation admits a constraint on an RM computed attribute. VCARM accepts an attribute “stored or computed” (AOM2
master04.5§Validity Rules:C_ATTRIBUTE), and a function with no arguments is a computed attribute (master04.2§Attribute Nodes), so an archetype that constrainsDV_PROPORTION.is_integral,DV_QUANTITY.is_integralorEVENT.offsetis no longer refused with422. The generated RM model (openehr_rm::v1_2::model) now carries each class’s computed attributes from the BMM functions (RmClass::computed_attributes,computed_attribute).openEHR-EHR-CLUSTER.microscopy_prostate_carcinoma.v1.0.0from the 2013 CKM ADL 2 export now uploads, and the sandbox archetype-library pin moves to 232 accepted and 90 refused.DV_QUANTITY.property, which no RM release defines, stays refused. The nineopenehr-*crates step to 0.0.124 (#4513). -
DELETE /ferroehr/rest/extensions/v1/definition/artefact/adl2/{artefact_id}refuses with409 Conflictwhile another stored ADL 2 artefact does not compile without the one deleted (a slot filler, ause_archetypereference or a specialisation parent, directly or through another artefact), and the message names every one of them. Before, the delete succeeded and left each template built on the archetype unable to compile (#4522). -
The viewer’s ADL 2 template upload names each violation the CDR found when it refuses the source: every AOM2 rule code with the CDR’s words for it, so a template whose constituent archetype the CDR does not hold names that archetype (
VARXR). The upload now asks forPrefer: return=representation, the preference under which ITS-REST lets a4xxcarry its error details, and reads the stored template’s id from theETagof the201(#4523). -
An ADL 2 operational template whose included archetype reuses the template’s node ids uploads again, where it was refused with
422under VCOSU. Node-id uniqueness now holds per archetype and restarts at eachC_ARCHETYPE_ROOT(AOM 2 VCOSU, “unique within the archetype”), and on an operational template the codes and interior node ids below a root are judged against that constituent’s entry incomponent_terminologies(OPT 2master03-opt_raw). A duplicate node id inside one archetype is still refused. The nineopenehr-*crates step to 0.0.125 (#4529). -
The viewer’s dashboard draws the EHR or composition count as unavailable, with the reason in plain words, when the CDR answers its count query with a result set of another shape (no row, several rows, an empty row, several values, or a value that is no whole number), where it drew 0 before. The template Releases table draws such a count the same way. A real zero still draws 0 (#4533).
-
An ADL 2 operational template upload runs the terminology integrity rules (VTLC, VATCV, VTVSID, VTVSUQ, VTVSMD, VTTBK, VTCBK, and VTSD where the level is carried) on each
component_terminologiesentry, and each violation names the component’s archetype id (#4536). -
A COMPOSITION committed against an ADL 2 operational template is validated against the template’s leaf constraints, where it was stored with
201whatever it held. An inlined archetype recorded by its complete identifier (openEHR-EHR-OBSERVATION.x.v1.0.0, BASEmaster07-referencing§Reconstitutability) now matches its template node, so theC_INTEGER,C_REAL,C_STRING,C_BOOLEAN, tuple, value-set and cardinality constraints below it answer422(AOM 2master04.5). An archetype root the template does not inline is refused as a node the template does not define, and aC_INTEGERorC_REALlist ({10, 15, 20}) admits each of its values where only the first was read. Canonical, FLAT and STRUCTURED commits take the same check. The nineopenehr-*crates step to 0.0.127 (#4540). -
A versioned read whose
versionpath segment is no SEMVER version and no{major}or{major}.{minor}prefix, such asv1.x,1.xor01, now answers400before any lookup, where it answered404(parameters/path/version.yaml,responses/400.yaml). This covers the ADL 2 template readGET /definition/template/adl2/{template_id}/{version}, the stored-query readGET /definition/query/{qualified_query_name}/{version}and both stored-query executions at a version,GETandPOST /query/{qualified_query_name}/{version}. A well-formed version the server does not hold still answers404(#4541). -
A FLAT or STRUCTURED read of a COMPOSITION committed against an ADL 2 operational template returns the content below an inlined archetype that the composition records by its complete identifier (
openEHR-EHR-OBSERVATION.x.v1.0.0, BASEmaster07-referencing§Reconstitutability). The read left out everything below such a root with no error; it now matches the root to its template node the way the commit does. The nineopenehr-*crates step to 0.0.128 (#4551). -
A COMPOSITION committed against an ADL 2 operational template whose
C_INTEGERorC_REALconstraint is a union of ranges (for examplemagnitude matches {|0..5|, |10..15|}) is refused with 422 when the value lies outside every range. Such a value was stored. The served Web Template does not change: its inputvalidation.rangeholds one range, so a union leaves it out, as before, and the check runs on the commit (#4552). -
A FLAT or STRUCTURED read of a COMPOSITION committed against an ADL 2 operational template returns the value of an ELEMENT that holds a
DV_INTERVALwhoselowerandupperthe template constrains. The read left the value out with no error (#4559). -
A FLAT or STRUCTURED read of a COMPOSITION returns the value of an ELEMENT that holds a
DV_INTERVALwhose template leaves the interval’slowerandupperunconstrained, for ADL 1.4 and ADL 2 templates. The read left the value out with no error, and a FLAT or STRUCTURED commit could not name the parts (#4559). -
A COMPOSITION written from FLAT or STRUCTURED against an ADL 2 operational template carries what a canonical body built to that template carries. A node the template gives no term text, such as the HISTORY and ITEM_TREE of an OBSERVATION, is named for its RM type (
History,Tree) instead of its bare id-code (id2). Every inlined archetype root records the complete identifier the template names (…cnf_minimal.v1.0.0, BASEmaster07-referencing§Reconstitutability) in itsarchetype_node_idandarchetype_details.archetype_id, andarchetype_details.rm_versionis the template’srm_release. Before this change the root recorded the interface form (…v1) and the server’s RM 1.2.0. Compositions built against an ADL 1.4 template keep their major-version archetype ids and RM 1.2.0 (#4560). -
ferroehr reportin a release build names theopenehr-*crate versions that release published to crates.io: the release lanes stamp the published version into the checkout before they build the server, where the report used to name the floor the source tree holds. A newopenehr_crates_originfield sayspublishedfor a release build andsource_treefor any other, a pre-release included (#4565). -
An ADL 2 archetype reference resolves to one defined stored release: an interface reference (
….v1) takes the newest release of its major version, a reference with a minor or patch version narrows the match to it, and an alpha or beta version matches only its full identifier (BASE Artefact Identification, Referencing). With several releases of one archetype stored, a template upload, an operational template and the delete’s dependents check used whichever release PostgreSQL returned last, and a reference to a major version no stored release carries resolved to another major version (#4567). -
An ADL 2 upload and an ADL 2 delete no longer race. An upload validated before a concurrent delete of an archetype it uses committed could store a template whose constituent was gone. Both now hold one transaction-scoped advisory lock from the repository read to the commit, so the second write decides on what the first committed: an upload after the delete is refused with
VARXR, and a delete after the upload is refused with a409naming the template (#4568). -
The syslog form (DICOM PS3.15, IHE ITI-20) of an EHR-level audit record names its object beside the patient, as a URI participant object with the id its FHIR
AuditEventnames. The record of placing, releasing or expiring an EHDS Art. 3(3) access delay names the held composition asaccess-delay:<vo>, so an Audit Record Repository fed by syslog can tell which composition a hold covers (#4569). -
An ADL 2 template or archetype that references two major versions of one archetype (
….v1and….v2), or one archetype under two namespaces, now compiles against both: theopenehr-adlrepository holds an artefact under its namespace, archetype and major version, and resolves each reference within that key (BASE Artefact Identification, Referencing). A reference without a namespace now resolves in the namespace of the artefact that makes it, and never in another namespace (#4579). -
A read of a stored ADL 2 template by a partial id or a
version(GET /definition/template/adl2/{template_id}) now resolves the way template compilation does: withv1.0.0stored besidev1.0.0-rc.1,….v1,….v1.0andversion=1.0.0answer the release in either upload order, and the release candidate is read only by its full version (BASE Artefact Identification, Referencing) (#4580). -
A write that sends no committer, on a route that takes a bare RM body (the
EHR_STATUS, COMPOSITION and DIRECTORY writes, and the demographic party and relationship writes), now records a Bearer caller’s login as issued by the token issuer, as EHR creation and every other default committer already did. It recorded the issuerferroehrfor every caller before; a Basic caller’s login is still issued byferroehr(#4585). -
The viewer’s ADL 1.4 template upload opens the stored template’s page, read from the
ETag(else theLocation) of the CDR’s201, where it went to an address with no template id. A refused upload names each violation the CDR found, its rule code or path and the CDR’s words for it, as the ADL 2 upload does: the upload asks forPrefer: return=representation, the preference under which ITS-REST lets a4xxcarry its error details (#4596). -
A
422validation refusal tells the client to sendPrefer: return=representationonly when the request did not send it; a request that sent it receives the violations inerrorsand adetailwithout the advice (#4597). -
An EHR Extract import refusal for a received version now names that version’s position in the extract (
chapters[i]/items[j]/item/versions[k]), so an importer can find the defectiveORIGINAL_VERSIONin a large extract (#4602). -
The import reads a version’s
other_input_version_uidswith the parser the CONTRIBUTION path uses and refuses an entry that is not anOBJECT_VERSION_ID, where it used to drop the entry. On the wire the extract decode already refuses such an entry with 422, so the import stays all or nothing (#4602). -
An AQL archetype predicate matches the namespace exactly and reads the version it names as the oldest release it accepts within the major:
org.a::…no longer finds data recorded inorg.b, an id without a namespace finds only data recorded without one, and.v1.4.2no longer finds data recorded underv1.0.0(BASE Artefact Identification §Referencing and §Supporting Archetype-based Querying; #4629, #4630). -
A query naming a parent archetype finds the data of a specialised child release only when that release declares a parent release at or after the queried one. Before, once one stored release of the child qualified, the data of every release of it was returned (BASE Artefact Identification, Referencing §Supporting Archetype-based Querying; #4637).
-
POST /definition/template/adl1.4andPOST /definition/template/adl2answer400for every invalid template, the only refusal ITS-REST 1.1.0 declares for both uploads besides the409duplicate. An OPT that breaks the OPT 1.4 schema, an ADL 2 source that breaks an AOM2 rule such as VCORM or VCARM, and an ADL 2 template whose constituent archetype is not held were refused with422. The problem keeps itsdetailand, withPrefer: return=representation, itserrors. Upgrade note: a client that read a422from a template upload reads a400, with the samedetailanderrors, under theabout:blankproblem type (#4643). -
A directory create or update whose FOLDER carries an empty
foldersarray, at the root or in a sub-folder, is refused with400and commits nothing. The ITS-JSON FOLDER schema givesfoldersminItems: 1, and the canonical JSON reader now refuses the empty array the same way in every document that carries a FOLDER, a CONTRIBUTION included. The viewer leavesfoldersout of a folder with no sub-folders (#4644). -
A canonical XML FOLDER, EHR_STATUS, PERSON, AGENT, GROUP, ORGANISATION, ROLE or PARTY_RELATIONSHIP document now has the root element
itemswithxsi:typenaming its class, the element the ITS-XML schemas publish for a LOCATABLE (Structure.xsd). The directory reads (latest, by version and at a time), the EHR_STATUS reads, the demographic reads and the demographic template examples served<folder>,<ehr_status>,<person>and the like, which no ITS-XML schema declares. XML input accepts the same form (#4645). -
POST /definition/template/adl1.4builds the template’s Web Template before it stores the template, so a template it cannot build is refused with400and nothing is stored. Once the template is stored, the upload answers201with itsLocation; withPrefer: return=representationand a Web TemplateAcceptit serves the Web Template built before the store, and the OPT if that cannot be served. It no longer answers422for a template it has already stored (#4647). -
A composition whose HISTORY carries
events: [], and an AGENT, GROUP, ORGANISATION or PERSON carryinglanguages: [], are refused with400and commit nothing. The ITS-JSON schemas give both arraysminItems: 1, and the canonical JSON reader now refuses the empty array as it does an empty FOLDERfolders. The FLAT builder no longer writes an emptyeventsfor a HISTORY that has no event (#4648). -
A write to a restricted COMPOSITION (
POST,PUTorDELETEon/ehr/{ehr_id}/composition) refused under a GDPR Art. 18 restriction now answers with theprocessing-restrictedproblem type, as the reads of a restricted record already did, in place of the genericforbiddentype. The status stays403(#4657). -
When an
EXTRACT_SPECcriterion’s AQL runs past the query time budget, the400body now states the timeout as plain text. It used to start with a control-character marker that was only ever meant for the server itself (#4657). -
Under a separated clinical credential,
POST /ehr,PUT /ehr/{ehr_id}and anEHR_STATUSupdate that name a subject no longer fail with a database error: the subject pseudonym guard reads the deployment posture, and the clinical role now holdsSELECTonext.posturethrough theextmigration0009(#4675). -
A cohort that names its subjects now finds, under
[ehr_index] provider = "local", the EHR created overPOST /ehrwith that subject in itsEHR_STATUS; it read a cross-reference table no route wrote, so it matched nothing. A cohort predicate and the AQL demographic join resolve a party to the EHRs whoseEHR_STATUS.subjectnames it. TheEHR_STATUSsubject is now the one source of which EHR belongs to which subject. Upgrade note:linkage.subject_ehrand thelinkage.erase_ehrfunction go with thelinkageschema, which audit migration0021drops with the linkage domain. Rows written there through the service API are dropped with the table; the EHRs they named keep their subject in their ownEHR_STATUS(#4675). -
The identifier scan (
[privacy.identifier_scan]) no longer refuses aDV_IDENTIFIERwhosetypedeclares an item rather than a person, such as a laboratoryfiller_order_numberthat passes the NHS Number check by chance. ADV_IDENTIFIERinFEEDER_AUDIT.originating_system_item_idsorfeeder_system_item_idsis scanned only when itstypenames a person identifier. Atypenaming a person (patient,NHS,BSN,social securityand similar) keeps the value scanned in every slot, and free text and untyped identifiers in clinical content are scanned as before. The default rule set is unchanged; a deployment that knows its jurisdictions still narrowsrules, so a Dutch one withrules = ["nl-bsn"]never claims an NHS Number (#4702). -
An inline primitive constraint in a parsed archetype or template now carries the node id AOM2
ADL_CODE_DEFINITIONS.Primitive_node_iddefines,at9999in an at-coded archetype andid9999in an id-coded one, where it carried the constant’s namePrimitive_node_id. An ADL 1.4 archetype converted to ADL2 gets the id-coded form (#4739). -
The ABAC policy-enforcement point checks every item-tag operation as it checks its target: a COMPOSITION tag read after the call like the COMPOSITION read, a COMPOSITION tag write before the call with the tagged version’s template, category and origin, and the EHR tag read before the call like the EHR read. These operations were unchecked before, so a patient-scoped or template-scoped rule now refuses a tag read or write wherever it refuses the target’s read or write. A COMPOSITION tag read also falls under the
EHR_ACCESSprivacy ceiling and its audit record names the tagged COMPOSITION (#4768). -
A primitive constraint inside a rule or a slot assertion of an id-coded ADL 2 archetype carries
id9999as its node id, asorg.openehr.am.aom2.adl_code_definitions§Constants definesPrimitive_node_idfor id-coded archetypes, where it carriedat9999before. An ADL 1.4 archetype converted to ADL 2 recodes its slot assertions the same way.openehr_adl::rules::parse_rules_bodyandparse_slot_assertionstake the archetype’sNodeCoding, whichopenehr_adl::codesnow exports (#4770). -
Under
spec_profile = "stable", a canonical-JSON party read lists inreverse_relationshipseveryPARTY_RELATIONSHIPanother party’s current version carries with this party as its target, oneLOCATABLE_REFeach naming the source party’s version container and the relationship’s path, as RM 1.1.0 §Party Relationships requires. The development profile, whose RM 1.2.0 makes the attribute a function, is unchanged. The released-profile conformance run now judges the server on the stable profile (#4775). -
Under the
developmentprofile,POST /definition/template/adl2refuses with400a template whose description has nooriginal_authoror an emptylifecycle_state, namingRESOURCE_DESCRIPTION.Original_author_validorRESOURCE_DESCRIPTION.Lifecycle_state_valid. BASE 1.3.0 states both invariants (org.openehr.base.resource.resource_description.adoc§Invariants). Thestableprofile’s BASE 1.2.0 states neither, so it still accepts such a template (#4776). -
A database that accepts connections slowly is no longer recorded as down. A probe connect still in progress after its two-second bound now leaves the acquire queueing on the pool within
acquire_timeout_secs, so the request is served once the connect completes, or answers the pool-timeout503withRetry-After. Only a refused or reset connect, or a server shutting down (57P01,57P02,57P03), marks the database down and answers the outage503at once (#4782). -
A database that resets connections is now answered as an outage at once on every request, the
503withRetry-Aftera refused connect gets, instead of each request opening a connection of its own that the database resets. A connect of the pool’s own that is refused, reset or turned away as shutting down (57P01,57P02,57P03) records the outage as the probe does, and a probe that connects again clears it. A connect that is only slow still queues (#4807).
Security
Shipped with functional changes because: both fixes exist only in ferrohealth-server releases that carry functional changes in the same serving path beside them (0.3.7 two fixes, 0.3.8 and 0.3.9 the problem details module, the kept listener TLS and the unmasked remedy), so there is no security-only release of the crate for FerroEHR to take, and the client CA refusal ships in the release candidate the advisory names.
-
FerroEHR takes
ferrohealth-server0.3.7 in place of 0.3.5 (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 about 8400 silent connections from a client with no credentials exhausted the quickstart’s file descriptors and the CDR stopped answering, health checks included; the listener then retried a failedacceptat once and logged every failure. Such a connection now closes once[server] header_read_timeout_mspasses (30 s by default), counted from accept, and after anEMFILEorENFILEthe listener pauses up to 1 s before it accepts again and logs one warning every 10 seconds (#4283). -
A
[server.tls]table that setsclient_ca_filewithclient_authatnone, written or by default, is refused at load, naming the setting (GHSA-52mf-qg39-4q4j). Before 5.5.0 a client CA alone meant that every client presents a certificate; 5.5.0 moved the listener ontoferrohealth-server, whereclient_authdefaults tononeand the CA was read and ignored, so a configuration carried over passedconfig checkand served without asking a client certificate. FerroEHR takesferrohealth-server0.3.9, which refuses it and names the remedy in full. A 5.5.0 deployer who setsclient_ca_filesetsclient_auth = "required"beside it. The default template no longer pairs a client CA withnone, and says what eachclient_authvalue does (#4349). -
CVE-2026-84243, the glibc gettext
LANGUAGEdirectory traversal (GLIBC-SA-2026-0025), has no Debian fix for trixie yet and is judgednot_affectedin every image. Theferroehrandferroehr-viewerprograms never leave the C locale, so glibc ignoresLANGUAGEand opens no message catalog (security/vex/ferroehr-os.openvex.json). Inferroehr-postgresonly the container environment the operator writes can setLANGUAGE; no database connection can (security/vex/postgres-os.openvex.json) (#4500). -
CVE-2026-114690, CVE-2026-114691 and CVE-2026-115455, three libstdc++ defects in the gcc-14 packages of every image, have no Debian fix for trixie and are judged
not_affected. Each fix changes only a header template (the parallel-mode search, thestd::vector<bool>constructors, wide-stream extraction intostd::bitset), solibstdc++.so.6holds no copy; theferroehrandferroehr-viewerprograms contain no C++ code (security/vex/ferroehr-os.openvex.json), and inferroehr-postgresnothing is built in parallel mode and PostgreSQL does not link libstdc++ (security/vex/postgres-os.openvex.json) (#4789). -
CVE-2026-119371 to CVE-2026-119379 and CVE-2026-119591, ten SQLite defects without a Debian fix, are judged
not_affectedinferroehr-postgres: onlylsloginsreaches SQLite there, through liblastlog2, and nothing in the image runs it (security/vex/postgres-os.openvex.json) (#4789).
5.6.0-rc9 - 2026-11-02
5.6.0-rc9 is the ninth release candidate of 5.6.0, published for testing, and the first candidate published since 5.6.0-rc7: 5.6.0-rc8 was tagged and never published, because its vulnerability record refused 86 findings that had no OpenVEX judgement, and a tag is never moved, so 5.6.0-rc9 carries everything 5.6.0-rc8 carried. It carries the CONTRIBUTION break of 5.6.0-rc6: POST /ehr/{ehr_id}/contribution and POST /demographic/contribution read the body through the released NewContribution schema and answer 400 for a lifecycle_state that is no DV_CODED_TEXT, a description that is a plain string or an object without _type, an audit without change_type, an audit typed ATTESTATION or UPDATE_ATTESTATION, a missing audit or versions, and a preceding_version_uid sent as a plain string, and a stated empty system_id is refused with 422 on every write path (#3595, #4543). These notes carry every change since 5.5.0, those of the 5.6.0-rc8, 5.6.0-rc7, 5.6.0-rc6, 5.6.0-rc5, 5.6.0-rc4 and 5.6.0-rc3 sections below included. New since 5.6.0-rc7, and so in neither published candidate before this one: two read-only extension routes that convert a stored ADL 1.4 archetype or operational template to ADL 2 (#4655); template uploads that answer 400 for every invalid template and never refuse a template already stored (#4643, #4647); the ITS-JSON minItems of FOLDER.folders, HISTORY.events and ACTOR.languages enforced (#4644, #4648), and a canonical XML LOCATABLE rooted at the items element the ITS-XML schemas publish (#4645); an AQL query naming a parent archetype that finds a specialised child’s data only from a child release whose own parent release qualifies (#4637); conformance_profile derived from the committed conformance record (#4672); a subject resolved through the EHR_STATUS of its EHR, and the empty linkage domain removed with its configuration (#4675, #4684, #4697); a write refused under a GDPR Art. 18 restriction answering with the processing-restricted problem type, and 500 bodies that carry curated text only (#4657); an identifier scan that reads a DV_IDENTIFIER’s declared type (#4702); a validation refusal that advises Prefer: return=representation only to a request that did not send it (#4597); the AOM2 node id of an inline primitive constraint (#4739); a viewer that answers a request other than GET or HEAD without a session with the sign-in page and no longer reads LEPTOS_SITE_ADDR (#4724, #4725); every item-tag operation checked by ABAC in its target’s mode (#4768); and, under spec_profile = "stable", a canonical-JSON party read that lists the relationships naming it as their target in reverse_relationships (#4775); since 5.6.0-rc8, the OpenVEX judgements of the gcc-14 and SQLite findings that stopped it (#4789), the AOM2 node id of a primitive constraint inside a rule or slot assertion of an id-coded ADL 2 archetype, and the three unused horizon reap functions of the audit store removed (#4770). The published conformance record is a Veredictum 0.4.0 released-profile run against FerroEHR on spec_profile = "stable": 2872 of 3071 rows passed, none failed and none errored, and 199 were skipped, 116 for an option the statement does not select and 83 that rest on development text alone; it replaces the Veredictum 0.1.6 documents (#4451, #4771). The released-profile verdict is now required: a failed or errored row fails the merge queue, the image run on main and the release (#4455). The development-profile run, which is never a verdict, has 2946 rows passed, 3 failed (#4776, #4777) and 2 errored by Veredictum itself. 5.5.0 stays the stable release: this pre-release moves neither the latest image tags, the book under /docs/latest/ nor the hosted sandbox, it publishes no crates, and it receives no fixes; the next release candidate or 5.6.0 itself replaces it. Before you try it: an invalid template on POST /definition/template/adl1.4 or POST /definition/template/adl2, an ADL 2 template whose constituent archetype is not held among them, answers 400 where it answered 422, with the same detail and errors under the about:blank problem type; a FOLDER with an empty folders, a HISTORY with an empty events and an AGENT, GROUP, ORGANISATION or PERSON with an empty languages answer 400; a canonical XML FOLDER, EHR_STATUS, PERSON, AGENT, GROUP, ORGANISATION, ROLE or PARTY_RELATIONSHIP document has the root element items with xsi:type naming its class, where it had <folder>, <ehr_status>, <person> and the like; OPTIONS on the API base path sends conformance_profile as BASE+OPTIONS where it sent STANDARD, and a configuration that sets [rest.identity] conformance_profile is refused at boot as an unknown key; an AQL archetype predicate matches the namespace exactly and reads the version it names as the oldest release it accepts, and a query naming a parent archetype finds a specialised child’s data only from a child release whose own parent release qualifies, so a query may find less than before; a cohort that names its subjects and the AQL demographic join resolve a party to the EHRs whose EHR_STATUS.subject names it, and a configuration that sets [storage.linkage] or [storage.migrate.linkage] is refused at boot and Helm chart 21.0.0-rc8 refuses a values file that sets database.linkage or backup.linkage, so remove those keys and values before you upgrade and, where the linkage domain lived in a database of its own, run the SQL the Removed entry gives; a POST, PUT or DELETE on a COMPOSITION under a GDPR Art. 18 restriction still answers 403, now with the processing-restricted problem type in place of forbidden; the 500 bodies of the archive dump and load, a failed expansion of a party’s protected identifiers and two query failures carry fixed text that echoes no value from the request, the archive or the terminology server; the identifier scan no longer refuses a DV_IDENTIFIER whose type declares an item rather than a person, and scans one in a FEEDER_AUDIT only when its type names a person identifier; the Veredictum 0.1.6 conformance documents (CONFORMANCE_STATEMENT.md and the rest) and the CONF_PERF_CLASS, CONF_PERF_HOURS and CONF_STRESS settings of the measured lanes are gone; with ABAC on, a patient-scoped or template-scoped rule refuses an item-tag read or write wherever it refuses the read or write of the tag’s target, and a COMPOSITION tag read falls under the EHR_ACCESS privacy ceiling; under spec_profile = "stable" a canonical-JSON party read carries reverse_relationships, while the canonical-XML read does not yet (#4778) and the development profile is unchanged; a write whose committer names another login of the caller’s token issuer or of this server, or a PARTY_SELF committer from a caller who is not the record’s person, answers 403, and a direct write whose committer breaks its own rules answers 422; a write that sends no committer on a bare RM body route records a Bearer caller’s login as issued by the token issuer, where it recorded ferroehr; a FLAT or STRUCTURED composition under an ADL 2 template records the complete archetype identifier and the template’s rm_release, and the served Web Template writes a bound coded input, COMPOSITION.category among them, as the bound terms (openehr::433) where it wrote the local at-code; a CONTRIBUTION commit must take the shapes above; a write under a token whose SMART resource scopes are all patient/ scopes records PARTY_SELF as committer and may change only what the person committed, and a service auth_failure answers 403 where it answered 500; a versioned read whose version is no SEMVER version or prefix answers 400 where it answered 404; the served Web Template of an ADL 2 template writes a data value’s aqlPath without an [idN] predicate; a composition that breaks an ADL 2 template’s leaf constraint answers 422; every route ITS-REST 1.1.0 does not define moves from /ferroehr/rest/openehr/v1/ to /ferroehr/rest/extensions/v1/, and the ITI-81 retrieval to /ferroehr/rest/fhir/r4/AuditEvent, with no redirect from the old paths; an error body is application/problem+json, so a client that read message reads detail, and one that read validationErrors sends Prefer: return=representation and reads errors; audit migration 0017 refuses an audit store that holds records written by 5.5.0 or earlier, while an audit store that 5.6.0-rc2 migrated upgrades in place; a [server.tls] table with client_ca_file must set client_auth = "required" (or "optional") beside it, or the configuration is refused at load; [server] header_read_timeout_ms no longer bounds an idle kept-alive connection, which the new [server] idle_timeout_ms (120000 by default) closes, so keep it longer than the idle timeout of your clients and load balancers; a client that wrote a space as + in a query string sends %20; a party delete names the latest OBJECT_VERSION_ID in its path and answers 400 for a versioned object id; a body the RM refuses after the ITS-JSON schema admits it answers 422, and a misplaced CONTRIBUTION member, a Simplified Format commit without openehr-template-id and a flat |raw value without _type answer 400; a tag update under Prefer: return=identifier answers 200 with the tag list; with [authz.rbac] enabled a token holding only system/ SMART on openEHR scopes reaches clinical operations without a role; the viewer image serves no /pkg/ and reads no LEPTOS_SITE_ROOT, LEPTOS_OUTPUT_NAME or LEPTOS_HASH_FILES, and its Content-Security-Policy is script-src 'self'; style-src 'self'; Helm chart 21.0.0-rc8 refuses to render until config.deployment_profile names sandbox or production, and a values file for its FerroPIX moves ferropix.config.server.public_base_url to ferropix.config.public_base_url and each issuer’s clients to ferropix.config.trust.issuer. Storage generation 3 adds node columns and migrates no data, and ext migration 0008 names generation 4, the generation with the node header columns, and changes only the label; clinical migration 0020 adds the origin to retention policies and 0021 statistics on the archetype columns, and clinical 0022 and 0023 and party 0013 and 0014 rebuild the version tree’s uniqueness constraint and index its version id columns, which reads every version row of an existing store once; clinical 0024 and party 0015 index the version uid, ext 0006, clinical 0025 and party 0016 add the ELEMENT value search index, built over every hot node row of an existing store, party 0017 adds the archetype statistics, and clinical 0026 and party 0018 grant MAINTAIN on the partitioned tables to the serving roles; clinical 0027 and party 0019 add the access delay, and ext 0007, clinical 0028 and party 0020 add the node header columns with no data migrated; audit migration 0019 gives the search token index a pending list of 512 kB, and audit 0020 adds the hash index on request_id; clinical 0029 adds the access opt-out; ext migration 0009 grants the clinical role SELECT on ext.posture, party 0021 drops the database function party.resolve_national_identifier, audit 0021 drops the linkage schema, the ferroehr_linkage role and the btree_gist extension, raising a NOTICE for any of them it cannot drop, party 0022 restates the comment on party_relationship_target.source_vo_id with no change to data, and audit 0022 drops the functions audit.reap_audit_events, audit.reap_audit_events_years and audit.reap_audit_events_before, which nothing called; the linkage migration set is gone. Helm chart 21.0.0-rc8 carries appVersion 5.6.0-rc9. Security carries two advisories, GHSA-2mc2-h3jq-c5wg and GHSA-52mf-qg39-4q4j, and the OpenVEX judgements of CVE-2026-84243, of three gcc-14 libstdc++ findings and of ten SQLite findings.
Added
-
The logging component’s intended performance is stated as checkable claims (EHDS Annex II 1.1): every composition create and read recorded exactly once and every AQL execution at least once, no access succeeding without its record, at most 125 % of the latency and at least 80 % of the throughput with the access log off, and a 50-record ITI-81 page within 250 ms at p95.
scripts/perf/audit.shmeasures them with the access log off and on (the load test’s new--auditmode counts the records through ITI-81 and times retrievals),scripts/perf/audit-verdict.shgives the verdict, the release refuses a claim not met and attaches the summary asferroehr-<tag>-logging-performance.md(Annex III point 2), and the weekly performance guard runs it on main. The book’s compliance section gains the page that states the claims and the method (#4293). -
scripts/interop/atna.shexercises the logging component’s ATNA transactions against independent implementations run from published images (EHDS Annex II 1.4): the ITI-20 FHIR feed into HAPI FHIR as the Audit Record Repository, judged by its validator with IHE BALP 1.1.4; the ITI-20 syslog feed into syslog-ng over RFC 5425 TLS, each payload read as a DICOM PS3.15AuditMessage; and the same ITI-81 searches put to FerroEHR and to HAPI. The audit trail page documents it (#4296). -
FerroEHR ships an EHDS category map for the published CKM templates and COMPOSITION archetypes whose data sit in one Art. 14(1) priority category (the International Patient Summary, ePrescription, the generic laboratory result and CCTA report templates; the
health_summary,prescriptionandtransfer_summaryarchetypes), so an installation that declares no[audit.categories]keys records those accesses classified instead ofunclassified(EHDS Annex II 3.2(c)). A deployment that declares any template or archetype replaces it whole.[audit.categories] shipped_map = falsewith nothing declared leaves no map, whichdeployment_profile = "production"refuses as the newno_category_mapgap unlessdeployment_acceptsnames it (#4298). -
Retention periods and access rules can take the origin and the category of the data into account (EHDS Annex II 3.4). The new top-level
[origins]register declares the origins a deployment recognises, each by the id its data carry and the clients whose direct commits come from it; a body without aFEEDER_AUDITcommitted by a registered client is stamped with that client’s origin instead of the server’ssystem_id.PUT /admin/retention/policytakes an optionaloriginnaming a registered origin, the register andGET /admin/retention/duereport it, and the due list lists an origin-keyed period over the objects of that origin (clinical migration0020_retention_by_origin.sql). The ABAC request carriescategory(the access record’s category tokens) andoriginresource attributes on composition, contribution and query operations, the Cedar schema declares both, and a remote PDP binding may name them as parameters (#4299). -
The operations page gains a storage sizing section, measured on 5.6.0-rc5: about 21.6 KB of clinical storage per version of a vital signs composition (2.0 times its canonical JSON, 85 % of it node rows) and 155 KB for an International Patient Summary, about 1.2 KB per audit record of a read, the effect of
[audit.store]retention on growth,pg_walup tomax_wal_size, theREINDEX INDEX CONCURRENTLY clinical.node_hot_pkeystep (20 % of that index after heavy concurrent writing) and a query for the size per relation, with the method to reproduce the figures (#4304). -
EHDS Art. 5: what a person inserts in their own EHR is marked as theirs, and they cannot alter what a professional committed. A write under a token whose SMART resource scopes are all
patient/scopes recordsPARTY_SELFas itsAUDIT_DETAILS.committer, itsexternal_refnaming the login, whatever committer the request names; a COMPOSITION it commits must namePARTY_SELForPARTY_RELATEDas composer; and its update or deletion of a version whose committer is notPARTY_SELF, directly or inside a CONTRIBUTION, is refused with403. A professional’s writes are unchanged. The contribution list extension gainsinserted_by_personper row, and the viewer names aPARTY_SELFcommitter “The person or their representative”. A serviceauth_failurestatus now answers403where it answered500(#4350). -
The EHDS Art. 3(3) delay of the person’s own access to newly registered data, a Member State option and off by default. The new
[access_delay]section (enabled,categories,hours) holds every new COMPOSITION of a listed[audit.categories]category from requests that may be the person’s own (a bearer token with a SMARTpatient/grant or the ABAC patient claim, also besideuser/orsystem/grants, asferrohealth-smart0.8.7 decides it) for at mosthours: a read answers404as for an unknown composition, and a query, an export and a CONTRIBUTION leave it out, while a professional reads it as before. The treating professional releases a held composition from the clinical routePOST {ext}/ehr/{ehr_id}/versioned_composition/{versioned_object_uid}/access-delay/release, with the checks of a write to that EHR, and the controller withPOST /admin/access-delay/release; a professional holds one by hand within the limit withPOST /admin/access-delayand reads the register withGET /admin/access-delay; every hold ends at its limit, and placing, releasing and expiry are each an access record. The subject-scoped ITI-81 read of the person’s own trail (EHDS Art. 9) leaves out the records about a held composition until it is released or expires, then serves them with their original times (ehds-logging0.3.3) (clinical migration0027_access_delay.sql, party migration0019_access_delay_column.sql) (#4351). -
The
openehr-itsclient reads an RFC 9457 problem details refusal:ErrorBody::problem()exposes itstype,title,status,detailandinstance, ignoring a member of the wrong type (RFC 9457 §3.1), andErrorBody::message()answers the problem’sdetail, else itstitle, where it answered only the ITS-RESTError’smessage. Theopenehr-*crates move to 0.0.115 (#4355). -
The local EHR index (
[ehr_index] provider = "local") is a supported production posture beside the IHE patient identity source:EHR_STATUS.subjectnames a patient by its own namespace and identifier, whichGET /ehr?subject_id=&subject_namespace=matches, and with no[privacy] subject_namespacesdeclared the reference is stored as the client sends it. The compose quickstart selects it withFERROEHR_EHR_INDEX=local docker compose up, which runs itsferroehr-config-localblock (#4379). -
CI checks every inline configuration of the compose quickstart with the
config checkof the image the file pins, FerroEHR’s and FerroPIX’s, so the quickstart can no longer carry a configuration its pinned server refuses (#4380). -
The Conformance workflow runs the Veredictum 0.3.0 catalogue in CI through the Veredictum GitHub Action, pinned by commit SHA and running the release image by digest. It builds FerroEHR from the commit, composes it with FerroTERM beside it on fresh volumes, reviews the party statement with
veredictum validate, fails on a failed or errored row, writes the Markdown summary to the job summary and uploads the results, JUnit and CTRF views. It runs on pull requests that touch the server, the party set, the conformance compose files or the workflow, onmain, on a release tag and twice a week.scripts/conformance.shtakes a stage (run,review,up,down), so CI and a local run compose the same deployment, andscripts/checks/veredictum-action.shfails while the Action SHA, its version comment, the image digest andVEREDICTUM_VERSIONdisagree (#4449). -
The Conformance workflow runs the Veredictum
smartdocuments (smart_discovery,smart_scopes) against the same FerroEHR build after the Veredictum Action, which forwards no SMART Platform base URL and no scoped tokens. The same pinned image runsveredictum testwith--platform-urlanddocs/conformance/party/ferroehr/ixit-smart.json, minting each access token in memory from the committed test issuer the SMART overlay trusts, and the job uploads its results, JUnit and CTRF views beside the catalogue’s and adds its summary under a heading of its own.scripts/conformance.shgains thesmartstage, andrundrives it after the catalogue, so a local run covers SMART too (#4450). -
GET /ehr/{ehr_id}andGET /ehr?subject_id=…now sendLast-Modified: the commit that created the EHR, or the later commit that added or deleted one of its folder hierarchies (#4462). -
The EHDS Art. 10 opt-out from access through the access services of Arts. 4 and 12, a Member State option and off by default. The new
[authz.rbac] access_service_roleskey declares the roles of the access-service callers; while an EHR carries the opt-out, a caller holding one reads it as absent: a route naming the EHR or an object in it answers404as for an unknown EHR, a population query leaves its data out, a scoped query, an export and the lookup by subject find no such EHR, and a write to it is refused as absent. Every other caller, the provider’s own care included, reads it as before. The controller records the opt-out on the person’s instruction withPOST /admin/access-opt-out, reverses it withPOST /admin/access-opt-out/reverse(the register keeps the reversal) and reads the register withGET /admin/access-opt-out; recording is refused with400while no access-service role is declared. An access-service caller that declares one of[audit] emergency_purpose_codesand does not act for the person reads the EHR under the Art. 10(2) vital-interest override, with the emergency mark on its access record and anaccess-opt-out-overriderecord against the EHR. Recording, reversing and reading the register are access records (clinical migration0029_access_opt_out.sql) (#4516). -
Two read-only extension routes convert stored ADL 1.4 definitions to ADL 2:
GET /ferroehr/rest/extensions/v1/definition/archetype/adl1.4/{archetype_id}/adl2for a stored archetype andGET /ferroehr/rest/extensions/v1/definition/template/adl1.4/{template_id}/adl2for a stored operational template, which converts to one ADL 2 archetype per embedded archetype root. Each answers 200 withapplication/json: (#4655)- the ADL 2 source of every root;
- each root’s conversion log and its
conversion_details, which name what the ADL 2 form drops or changes; - the slot fills that joined the roots. An unknown id answers 404. A stored source that no longer converts answers 422. No openEHR specification defines the conversion, so both routes are FerroEHR’s own design.
Changed
-
Breaking for clients that relied on the old leniencies:
POST /ehr/{ehr_id}/contributionandPOST /demographic/contributionnow read the body through the releasedNewContributionschema, and refuse every shape it does not define. Each refused shape answers 400: (#3595)- a
lifecycle_statein the CODE_PHRASE shape{"terminology_id": …, "code_string": …}, as a plain string, or as a bare{"value": …}. Send aDV_CODED_TEXT:{"value": "complete", "defining_code": {"terminology_id": {"value": "openehr"}, "code_string": "532"}}; - a
descriptionsent as a plain string, on the contributionaudit, on acommit_auditor on an attestation. Send aDV_TEXTorDV_CODED_TEXTobject:{"_type": "DV_TEXT", "value": "…"}; - a
commit_auditor contributionauditwithoutchange_type. The server no longer infers creation or modification frompreceding_version_uid; send the code of the change, for example249(creation),251(modification),523(deleted) or666(attestation); - a
commit_auditor contributionauditwhose_typeisATTESTATIONorUPDATE_ATTESTATION, or any value other thanUPDATE_AUDITorAUDIT_DETAILS. Send the audit asUPDATE_AUDIT(or with no_type) and put each attestation in the version’sattestationslist as anUPDATE_ATTESTATION. A666(attestation) version carries its attestations there too, and one with no attestation is refused; - a missing
audit, which answered 422 before. A missingversionslist, an attestation withoutreasonoris_pending, asystem_idthat is not a string, and apreceding_version_uidsent as a plain string instead of{"value": "…"}are refused the same way.
- a
-
An attestation’s own
system_idis kept, and one that states none takes thesystem_idof the version audit it belongs to instead of the server’s. An attestation committer is now checked against itsPARTY_PROXYrules like every other committer, so an invalid one answers 422 (#3595). -
The served OpenAPI document describes each extension route by what it does and by the ITS-REST text that governs it, and no longer names openEHR Service Model operations, interfaces or status codes. Routes, request and response fields and status codes are unchanged (#4213).
-
A population AQL query that only counts its root objects, such as
SELECT COUNT(c) FROM EHR e CONTAINS COMPOSITION cor the same withCOUNT(*), reads the current version rows and no longer probes the root node of every composition. At 545 000 compositions the count fell from about 9 s to 0.2 s (#4286). -
A REST request checks a connection out of each database pool once and keeps it until it answers, where it took one for each statement: two to four checkouts for a read of an EHR, an EHR_STATUS or a COMPOSITION, each waiting in the pool’s queue under load and each paying the pool’s release round trip. At 48 concurrent clients and a pool of 10, throughput rose by about 18 % and the median latency fell by about 13 % (#4289).
-
The Helm chart, at a new major version (21), has no default deployment profile: it refuses to render until
config.deployment_profilenamessandboxorproduction, so an installation that follows a quickstart instead of the instructions for use no longer runs the sandbox posture by omission (EHDS Annex II 1.2). A values file that relied on the oldsandboxdefault must now set it, for example--set config.deployment_profile=sandbox;values-production.yamlsetsproductionas before. The server binary’s own default and the Compose files, which declaresandboxexplicitly, are unchanged (#4294). -
The audit store keeps each record’s facts in columns and renders its FHIR R4
AuditEventfrom them when the record is read over ITI-81 or delivered by the FHIR feed, instead of storing the rendered document in every record. A record takes about a quarter of the space it took before. The configuration the rendering depends on (the audit source, the store horizon, the category map and the emergency purposes) is kept once per distinct configuration inaudit.audit_render_policy, and every record names the policy it was written under, so it renders the same document after the configuration changes. The tamper chain hashes every column of the record in one digest and checks each render policy against its digest; the earlier digest versions are retired. Audit migration 0017 needs an empty audit store and refuses one that holds records written by an earlier release, naming the remedy. ITI-81 parameters on an element of the document (address, the.identifierparameters,entity-type,entity-role,type,subtype) are matched against the rendered document (#4300). -
The three audit indexes on
recorded_atascend, so their pages fill instead of splitting half full on every insert; the newest-first ITI-81 search scans them backward (#4302). -
A clinical or party node row now stores only the part of its canonical JSON fragment that its own columns do not hold:
_type, a lowercasearchetype_node_id, a plain or simply coded name, and an ELEMENT value in one of the common basic shapes (a quantity, count, ordinal, coded or plain text, date, time, duration, identifier, boolean or URI) move into columns, the value into the new typed value columns. Every reader rebuilds the omitted keys, so the canonical JSON and every AQL result are unchanged, and a filter on a quantity’s magnitude or a code reads its column directly. The node heap shrinks by about a third (storage generation 3); a row written before keeps its whole fragment and reads the same. Migrationsext/0005,clinical/0019andparty/0012add the columns and the readers; no data is migrated (#4306). -
Every ITI-81 search parameter answers through an index again. The store takes the search tokens of a record’s rendered
AuditEventwhen it writes the record: each distinct token once inaudit.audit_search_token, the code-system tokens (type,subtype,entity-type,entity-role,source.identifier) as one shared set inaudit.audit_search_set, and their ids on the record insearch_tokensunder a GIN index;entityreads a hash index onresource_id. A search onaddressor a token parameter no longer renders every record in itsdatewindow. The tamper chain coverssearch_tokens, and the verifier reports a changed token or set (#4313). -
The storage-bench lane measures the baseline and the candidate on one runner in eight interleaved rounds each and gives two verdicts. The plan verdict fails an operation whose median pages per call rose more than 10 % and one page above the baseline’s highest round, whatever its time. The time verdict divides each round by its machine factor, so a slow spell of the runner no longer reads as the code, and fails an operation whose median p50 or p99 rose more than 15 % with every candidate round slower than every baseline round, or a candidate build that ran more than 15 % slower across the board in every round. A latency is no longer compared with a record measured on another runner (#4318).
-
The viewer takes FerroUI 0.5.8: a menu item draws a visible bar under the pointer and the keyboard focus, and the top bar’s search no longer opens its panel again over the page the router draws after a search is submitted or one of its options followed (#4319).
-
Nothing ITS-REST 1.1.0 does not define is served under the openEHR base path any more. FerroEHR serves three namespaces beside each other under
/ferroehr/rest/:/openehr/v1/holds only the ITS-REST routes,/fhir/r4/the FHIR and IHE interfaces, and/extensions/v1/FerroEHR’s own extensions. The ITI-81 retrieval moved from/ferroehr/rest/openehr/v1/fhir/r4/AuditEventto/ferroehr/rest/fhir/r4/AuditEvent. These routes moved from/ferroehr/rest/openehr/v1/...to/ferroehr/rest/extensions/v1/...with the same relative path:/terminology/...,/admin/event_subscription...,/demographic/party_relationship...,/demographic/versioned_party_relationship/...,/definition/archetype/...,/definition/artefact/...,/message/export...,/message/import...,/query/cohort, and the admin extensions/admin/config,/admin/template/{template_id},/admin/query/{qualified_query_name}/{version},/admin/party/...,/admin/archive/...,/admin/report/...,/admin/dump,/admin/load,/admin/integrity/...,/admin/restriction...,/admin/access-restriction...,/admin/research-objectionand/admin/retention/.... The old paths answer 404, with no redirect. The served OpenAPI document and its family documents name the new paths; the admin extensions, the archetype library and the cohort query have family documents of their own (admin-extensions,archetypes,cohort,contributions). The paged CONTRIBUTION list moved too, to/ferroehr/rest/extensions/v1/ehr/{ehr_id}/contribution(#4330). -
The server and viewer images build on the current
gcr.io/distroless/cc-debian13:nonrootdigest, so they carry the base image’s latest Debian package updates (#4335). -
Canonical JSON validation against the openEHR ITS-JSON schemas runs on
jsonschema0.59.0, which refuses a value whose regex match the engine cannot finish where 0.58 accepted it undernotorpatternProperties. Theopenehr-*crates move to 0.0.113 (#4336). -
A statement the database cancels, by its
statement_timeoutor a cancel request (SQLSTATE57014), answers503withRetry-Afterinstead of500: the statement rolled back, so the request can be repeated. By default the request timeout answers before the 60 s statement timeout fires, so on a request path it is raised by an operator’s cancel or by a forward step of the database host’s clock, which fires every running statement’s timeout at once (#4338). -
Every error on the openEHR routes (
/ferroehr/rest/openehr/v1/), the extension routes (/ferroehr/rest/extensions/v1/) and the management routes answers RFC 9457 problem details,application/problem+json, in place of the{ message, validationErrors, error }body shaped after the ITS-REST example. The status codes are unchanged. A problem carriestype,title,status,detailand the request id as aurn:uuid:instance; the refusals a client acts on have FerroEHR types documented on the book’s Problem types page (aql-invalid,query-timeout,validation-failed,content-invalid,conflict,version-conflict,unauthenticated,forbidden,processing-restricted,unavailable,rate-limited), every other error isabout:blank. A request withPrefer: return=representationreceives the additional details ITS-REST allows: the violations of a validation refusal aserrors({path, detail}, wherevalidationErrorsheld"<path>: <message>"strings), the bytepositionof an AQL parse refusal, and thecurrent_versionof a412. The stack’s own408,413,429,503and panic500are problems too, and anOperationOutcomeunder the FHIR base, where an authentication refusal is now anOperationOutcomeas well. The served OpenAPI document declares theProblemschema for every4xxand5xx, and the viewer reads problem details. A client that readmessagereadsdetail; one that readvalidationErrorssendsPrefer: return=representationand readserrors(#4342). -
The FHIR
AuditEventof an EHDS access record names the object it reads, creates, updates or deletes by its openEHR object id asentity.what.identifierwith the systemurn:openehr:object-id, where it wrote awhat.referencethat no FHIR server resolves and HAPI FHIR refused (FHIR R4 references.html §2.3.0.3). ITI-81 finds the record byentity.identifier. FerroEHR takes FerroAUDIT 0.3.2 (ihe-atnaandehds-logging) (#4366). -
The access log costs the request path less under load. The audit store writes a drained batch, its search tokens and its token sets in one transaction on one connection (one commit where it took up to three), stores only the tokens it does not hold yet, and the GIN index on
search_tokenstakes new entries through a pending list of 512 kB. On the release load test the store wrote 1.5 KB of WAL per record where it wrote 5.2 KB (#4375). -
The LANG specification text is re-vendored at
f80763ab(#4377). SPECLANG-18 states how a P_BMM schema’s JSON form encodes a cardinality interval, which the JSON schema reader already followed; its documentation now cites the rule, and a test pins it. SPECLANG-16 types the P_BMM class lists as keyed collections; the generated P_BMM model takes that change with #4497. The nineopenehr-*crates step to 0.0.122. -
[ehr_index] provider = "local"besidepixm_url,assigning_authority,[ehr_index.oauth]or[ehr_index.tls]is accepted, where it was refused: the IHE keys are kept, not used and named at boot, soprovideralone switches the index, in the file or asFERROEHR__EHR_INDEX__PROVIDER. Declared pseudonym namespaces stay in force under either index (#4379). -
A build no release lane marked reports its commit beside the package version, as SemVer build metadata (
5.6.0-rc2+dev.1a2b3c4d5e6f), onferroehr --versionandserver_versionofGET /ferroehr/rest/status(the boot banner and/management/infoalready name the commit beside the version), so a report from a build ofmainno longer reads as the release it follows; a release build reports the bare version (#4380). -
The compose quickstart runs FerroPIX 0.0.12, pinned by digest, with its configuration moved to that release’s keys (
public_base_urlat the top level, the Patient Identity Source’s client under[[trust.issuer]]), and Dependabot proposes each FerroPIX release (#4380). -
The Helm chart runs FerroPIX 0.0.12 by digest, with the FerroPIX chart 0.3.4 built for it, and the hosted sandbox runs FerroPIX 0.0.12 too; both had stayed at 0.0.7 and 0.0.10 when the quickstart moved. A values file for the chart’s FerroPIX moves
ferropix.config.server.public_base_urltoferropix.config.public_base_urland each issuer’sclientstoferropix.config.trust.issuer, the keys FerroPIX reads since 0.0.8; the chart’s examples and the production overlay do. FerroPIX’s chart now also runs its pods withenableServiceLinks: falseand in a user namespace (ferropix.hostUsers: false, the default). A CI guard holds the quickstart, chart and sandbox to one FerroPIX release and checks the sandbox’s and the chart’s FerroPIX configuration under it, so the Dependabot proposal for the quickstart pin moves all three (#4392). -
openehr-query, the AQL 1.1.0 lexer, parser, typed AST and printer, is published under Apache-2.0 from 0.0.116, like the generated model crates andopenehr-its, so any Rust project can parse AQL with it. Versions 0.0.60 to 0.0.115 keep the Business Source License 1.1 they were published under (#4405). -
FerroEHR takes
ferrohealth-server0.4.0 in place of 0.3.9. The new[server] idle_timeout_ms(120000 by default) closes a kept-alive HTTP/1.1 connection that waits that long for its next request, with a clean end of stream, and[server] header_read_timeout_mscounts from the first byte of each request head on a kept-alive connection (from accept for the first one, as before). The head bound 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, which a client such as Go’snet/httpsaw asEOFon aPOSTit does not retry (#4381). A deployment that setheader_read_timeout_msto bound idle connections setsidle_timeout_msinstead. The refusals the listener writes itself (408,413,429,503) and a panic’s500keep naming the server’s request id as theirinstancewhen the client sends its ownX-Request-Id, as every other FerroEHR refusal does (#4417). -
FerroEHR runs on
ferrohealth-server0.4.1, which keeps a product’s own fallback and the layers around it when the stack merges its routes (FerroHEALTH/FerroSYS#199). FerroEHR, v5.6.0-rc3 included, was not exposed to the regression 0.4.1 fixes: the REST API and the viewer declare their own fallback inside their layers, and the management endpoints guard each route they serve, so a path no route matches answers as it did before (#4427). -
The viewer draws every page on its server with FerroUI 0.6, with no Leptos and no WebAssembly: a link and a form load a new page, and FerroUI’s own small script modules add behaviour on top of what the server drew, so every page works with JavaScript off. The image ships the one
ferroehr-viewerbinary, with no/sitetree beside it and nohash.txt; FerroUI’s stylesheet, theme and scripts are served from inside it under/ferrohealth-ui/0.6.0/, and/pkg/no longer answers. The Content-Security-Policy is nowscript-src 'self'; style-src 'self'with no per-response nonce and no'wasm-unsafe-eval'. The image no longer readsLEPTOS_SITE_ROOT,LEPTOS_OUTPUT_NAMEorLEPTOS_HASH_FILES, so a deployment that sets them can drop them;LEPTOS_SITE_ADDRnaming another address thanserver.listenstill refuses the start. A proxy rule written for/pkg/(the hosted deployment’sCache-Controlfor it is removed) has nothing left to match (#4433). -
The viewer runs on
ferrohealth-server0.4.2 and takes its Content-Security-Policy from the family’s server-rendered console headers (FerroHEALTH/FerroSYS#202) in place of a layer of its own. The policy a deployment sees is unchanged:default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; connect-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none', with no nonce. FerroUI’s assets under/ferrohealth-ui/keep theCache-ControlFerroUI sets, and a refusal under that path isno-storewhatever FerroUI’s router sets, so a cache in front of the viewer keeps no error answer for an asset. The REST server takes the sameferrohealth-serverrelease with no change in what it serves (#4439). -
scripts/conformance.shruns the Veredictum 0.3.0 catalogue against one FerroEHR deployment: it reviews the party statement withveredictum validate, drivesveredictum testin the release image pinned by digest with Basic login, and writesresults.json, the HAR recording and the JUnit, CTRF and Markdown views todocs/conformance/ferroehr/. Docker or Podman runs it (CONTAINER_ENGINE). The FerroEHR statement now claims the 15 capability folders and answers every option of the 0.3.0 catalogue, and the IXIT keeps only what 0.3.0 reads (#4448). -
The published conformance record is a Veredictum 0.3.3 released-profile run, committed as
docs/conformance/ferroehr/results.jsonwith itssummary.md. The landing page and the book’s conformance page show the Veredictum badges of the released and development runs onmainand the record’s counts per part (BASE and OPTIONS), in place of the Veredictum 0.1.6 heat grid, chapter bars and tier pills. The docs and landing pages admit images fromraw.githubusercontent.com/FerroHEALTH/FerroEHR/for the badges (#4451). -
The measured performance lane runs Veredictum 0.3.3’s
perf.scripts/conformance.sh perfcomposes the conformance deployment with the measurement overlay, runs the pinnedclinical-mixworkload, checks the record withperf-judgeand redraws the book’s charts fromdocs/conformance/ferroehr/perf-result.json.scripts/conformance.sh perf-aameasures the deployment against itself, so the record carries its between-run noise floor. The measurement overlay also switches response compression off, and the IXIT names the deployment’s containers for the run’s server-side readings. The Performance and Benchmarks pages describe the new instrument. They keep the earlier figures until a record measured on the reference host replaces them (#4452). -
The serving roles may now analyze their store’s partitioned tables: new migrations (clinical 0026, party 0018) grant
MAINTAINonnode,versionandvo_attestation, and onclinical.ehr, toferroehr_clinicalandferroehr_party, so the hourly statistics refresh works under the role split.MAINTAINalso allowsVACUUM,CLUSTER,REINDEXandLOCK TABLEon exactly those tables. A role that still lacks it gets the warning naming the tables, as before (#4453). -
With the role gate on (
[authz.rbac] enabled), a bearer token whose SMART on openEHR resource scopes are allsystem/scopes, such assystem/template-*.r, now reaches a clinical operation without a role: it is a backend client, and its scopes decide what it reaches. Auser/orpatient/token belongs to a person and still needs at least one role, as does a token with no SMART on openEHR scope and a Basic user; an admin operation still needs the admin role (#4467). -
A tag update (
PUT …/tagson EHR_STATUS, COMPOSITION and the five party kinds) sent withPrefer: return=identifiernow answers200with the stored tag list andPreference-Applied: return=identifier. It answered204(#4475). -
The conformance deployment runs FerroTERM beside FerroEHR, pinned by digest, with
[terminology.server]pointed at it, locally inscripts/conformance.shand in the Conformance workflow, so theaql-terminology-supportedarm of the party statement runs against a real terminology server (#4476). -
The P_BMM model follows SPECLANG-16. The LANG 1.1.0 BMM that
openehr-codegenreads is now thespecifications-LANGfile atf80763ab, soP_BMM_SCHEMA.primitive_typesandclass_definitionsare maps keyed by class name,P_BMM_CLASS.ancestor_defsis a map ofP_BMM_BASE_TYPEkeyed by type signature (a simple ancestor included), andP_BMM_GENERIC_TYPE.generic_parameter_defsis an optional map keyed by formal parameter name. The formal and actual generic parameters (P_BMM_CLASS.generic_parameter_defs,P_BMM_GENERIC_TYPE.generic_parameter_defs,BMM_GENERIC_CLASS.generic_parameters) are insertion-orderedIndexMaps, because the specification fixes their declaration order, and the model builders bind each actual parameter to its formal by name. In the releasedv1_0generation,P_BMM_GENERIC_TYPE.generic_parameter_defsnow carries the1..*bound its BMM states. The nineopenehr-*crates step to 0.0.123 (#4497). -
The conformance pipeline runs Veredictum 0.3.1. The Conformance workflow drives the catalogue through the Veredictum Action twice, each run on fresh volumes: under the
releasedprofile, the frozen openEHR release, which is the record and decides the job, and under thedevelopmentprofile, the pinnedmasterof each openEHR repository, which is published beside it under its own job summary heading and artifact and never counted toward it. Both runs include the SMART documents: the Action now takes the SMART Platform base URL and the committed test issuer’s key. The workflow reads the result paths and the exit status from the Action’s outputs.scripts/conformance.shtakes the profile asCONF_PROFILE(releasedby default; adevelopmentrun writes todocs/conformance/ferroehr-development/) and drives the SMART documents in the same run, and the IXIT carries the test issuer’sscoped_tokensdeclaration (#4503). -
The viewer groups a template’s releases. The template list draws one group per template, the newest release first with the number of releases and the earlier releases under it, in both the ADL 1.4 and the ADL 2 tab. A template’s page names its release beside its title, where every other release is a link with the newest marked, also with FerroUI’s scripts refused; the release select and its Open button above the tabs are gone. The Overview lists the releases with the compositions committed against each, and a new Compare tab lists the paths one release adds, removes and changes against another (#4506).
-
Every write checks the committer against the login that authenticated the request where the server can compare them: a committer naming another login of the caller’s token issuer or of this server, or a
PARTY_SELFcommitter from a caller who is not the record’s person, is refused with a 403. A name only, or an identifier of another authority, is stored as sent. The direct writes (composition, EHR status, directory, EHR, demographic) now also refuse a committer that breaks its own rules with a 422, as the contribution path already did (#4520). -
An audit record no longer adds a row to
audit.audit_search_tokenfor its request id or for the version uid a create wrote. ITI-81entity.identifierfinds both from the record’s ownrequest_idandresource_idcolumns, through a new hash index onrequest_id(audit migration 0020), so the token table stays flat as requests are audited. Retention now deletes the search tokens that no remaining record names, among them the request id tokens of records written by 5.6.0-rc5 and earlier, and the database still refuses to delete a token a kept record names (#4524). -
A clinical or party node row below the root no longer repeats its archetype header, language and encoding: an archetype root’s
archetype_detailsandarchetype_node_idare rebuilt from thearchetypecolumn and a newrm_versioncolumn, and alanguageinISO_639-1and anencodinginIANA_character-setskeep only their code, in the newlanguageandencodingcolumns. Every reader puts the keys back where they stood, so the canonical JSON, every AQL result and the served key order are unchanged; a header of any other shape stays in the fragment. A vital signs version takes 17.1 KB instead of 21.6 KB and an International Patient Summary 131 KB instead of 159 KB. Migrationsext/0007,clinical/0028andparty/0020add the columns and the readers; no data is migrated, and a row written before keeps its whole fragment and reads the same (#4525). -
ext.storage_generation()reportsgeneration-4, the storage generation with the node header columns, and the storage benchmark records for it are committed underdocs/benchmarks/storage/generation-4/. Migrationext/0008changes only the label; nothing in the serving path reads it (#4525). -
Five response messages no longer name the openEHR Service Model. The admin dump route’s
400for a missingfile_sys_locnow reads “request body must carry a non-emptyfile_sys_locstring, a location on the server’s file system (FerroEHR’s own dump/load extension)”, and its400for anencodingmember reads “encodingis not accepted: FerroEHR’s own dump/load extension defines no encoding, so no value names one”. The admin activity-report400s fora_servicenow list the accepted service names (“query parametera_serviceis required: one of Admin, Definitions, …” and “query parametera_servicenames no platform service: … (expected one of …)”). The not-implemented answer ofstore_query_setreads “store_query_set is not implemented: no openEHR specification defines a query set”. Theopenehr-rmvalidation docs for the threePARTYandPARTY_RELATIONSHIPrelationship invariants now name the separate relationship container as FerroEHR’s own design against RM demographic §Party Relationships (#4531). -
Breaking for clients that relied on the remaining commit-audit leniencies: the audit rules of the CONTRIBUTION commit now hold on every write path (#4543).
- A
descriptionobject without_type, such as{"value": "…"}, is refused with 400 on a contributionaudit, acommit_auditand an attestation, and so is an attestationreasonwithout_type. Send{"_type": "DV_TEXT", "value": "…"}or aDV_CODED_TEXTwith its_type. - A stated empty
system_idis refused with 422 on the direct writes too (openehr-audit-details: system_id=""on a create, update or delete), where the server used to replace it with its own. Leavesystem_idout to get the server’s, or send a non-empty one. Asystem_idthat is not a string stays a 400 on both CONTRIBUTION routes. - A commit audit of type
UPDATE_ATTESTATIONhanded to the library’s direct write calls (create_composition,update_composition, the EHR_STATUS, DIRECTORY and party writes) is refused with 400, as on the CONTRIBUTION routes. Send the audit asUPDATE_AUDITand put each attestation in the version’sattestationslist.
- A
-
Members that
NewContributionorUPDATE_AUDITdo not declare, such as areasonoris_pendingon a plain audit or an extra top-level member of a contribution, are accepted and ignored: the released schemas leave both objects open (#4543). -
The
openehr-*crates take their version when they are published. A pull request that changes the crates no longer bumps their lockstep0.0.xversion: the crates publish reads crates.io, takes the next version when packaged content changed since the newest published one, and refuses to publish changed content under a version crates.io already holds. The version in the manifests onmaincan therefore trail the newest version on crates.io (#4555). -
The served Web Template of an ADL 2 operational template writes the
aqlPathof an ELEMENT’s value and of a data value’s parts without an[idN]predicate, since a data value carries noarchetype_node_id(ADL2master05-paths§“Relationship with W3C Xpath”). ADV_INTERVALand its parts read…/value,…/value/lowerand…/value/upper, the form the ADL 1.4 Web Template writes, where they read…/value[id6]/lower[id7]before, and the parts’ ids arelowerandupper(#4559). -
The served Web Template gives every
DV_INTERVAL<T>node itslowerandupperchildren, each of typeT, also when the operational template leaves them unconstrained (RMdata_types§DV_INTERVAL). Such a node had no children before. An unconstrained part carries the open inputs of its type, and itsaqlPathis…/value/loweror…/value/upper. This holds for ADL 1.4 and ADL 2 templates (#4559). -
The template example fills such an interval: an unconstrained part takes the example value of its constrained sibling, so the limits stay consistent (#4559).
-
The served Web Template of an ADL 2 operational template writes a coded input whose at-codes the template binds to a terminology as the bound terms: its
codelist carries each binding’s code and label and itsterminologynames the bound terminology (ADL2master08-terminology_integration§“From Constraints to Concrete Codes in Data”).COMPOSITION.categoryboundat1toopenehr::433reads{"value": "433", "label": "event"}withterminology: "openehr", where it read the localat1before, and an[acN@ttttt]constraint takes the bound terms of the terminology it names. A FLAT or STRUCTURED composition without a category, and the example composition, now carryopenehr::433. TheaqlPathof every data value drops its[idN]predicate, so a constrainedcategoryandcontext/settingread/categoryand/context/setting(#4574). -
A CONTRIBUTION’s
versions[]entry records its merge inputs: theother_input_version_uidsit states are stored on the committedORIGINAL_VERSIONand served on every read, where the server used to refuse the member with 400. The uids may name versions the server does not hold; an empty list or an entry that is not anOBJECT_VERSION_IDis a 422 (#4577). -
Other members
UPDATE_VERSIONdoes not declare, such asitemor an extension member, are accepted and ignored, where the server used to refuse them with 400: the released schema leaves the object open, as it doesNewContributionandUPDATE_AUDIT. Auidorcontributionon a version entry is still refused with 400, because the server assigns both, and so is a_typeother thanUPDATE_VERSIONorORIGINAL_VERSION(#4577). -
The admin dump route’s refusals name its parameters by their wire names and list the accepted values, not the Service Model class names. A bad
logical_formatorcompression_formatnow reads “<field>must be a string, one of …” or “<field>names no accepted value: … (expected one of …)”, and a non-integersegment_split_sizereads “segment_split_sizemust be an integer size in kb”. The served OpenAPI text for the route no longer namesEXPORT_SPECorEXPORT_FORMAT(#4634). -
Five archive dump and load failures still answer
500, and their bodies are now fixed text that echoes no value from the archive: (#4657)- an unreadable data segment no longer names the segment, though
manifest.jsonanddemographic-commons.jsonare still named; - an unknown logical format in the manifest no longer echoes the declared value;
- a version whose id carries a path separator, and a version whose commit audit the export lacks, no longer name the version.
- an unreadable data segment no longer names the segment, though
-
A failed expansion of a party’s protected national identifiers still answers
500, and its body now reads “expanding the protected identifiers of a party version failed” without echoing the requested version uid: a500body carries curated text only (#4657). -
Two query failures still answer
500, and their bodies now carry curated text only. A stored query whose record holds no query text reads “the stored query has no query text” without echoing its name, and a terminology server failure while aTERMINOLOGY('expand', …)operand is resolved reads “the terminology service failed while the query was being planned” instead of the upstream message (#4657). -
The
db_transactionscounter (outcome="commit") now counts every committed single-object write. It used to leave outEHR_STATUSand DIRECTORY writes (#4659). -
OPTIONSon the API base path sendsconformance_profileasBASE+OPTIONSwhere it sentSTANDARD. The build derives the value from the committed Veredictum record,docs/conformance/ferroehr/summary.md:BASE+OPTIONSwhen the BASE rows and the run OPTIONS rows have none failed and none errored,BASEwhen only the BASE rows do, and the member left out otherwise. ITS-REST 1.1.0 types the member as a free string and CNF names no profiles, so the values are FerroEHR’s own. The[rest.identity] conformance_profileconfiguration key is removed: a configuration that still sets it is refused at boot as an unknown key (#4672). -
The viewer answers every request other than
GETandHEADthat arrives without a session, to any path but the sign-in page, the OIDC routes, sign-out and the search answer, with the sign-in page that says the session ended, before any handler runs. A post to a page returns there after signing in; a post to the export, preference, sidebar or paging route returns to the dashboard. The export post used to answer303to/login, and the preference, sidebar and paging posts ran without a session (#4724). -
The conformance instrument is Veredictum 0.4.0, and the published conformance record (
docs/conformance/ferroehr/results.jsonwith itssummary.md) is a 0.4.0 released-profile run. The party statement answers the 0.4.0 catalogue: it keeps thexml-namespace-v2arm, which now asks only whether the TRIALhttp://schemas.openehr.org/v2namespace is also accepted, and selects the new development-profile option armadl2-id-coded-supported(#4771).
Removed
-
The conformance pipeline no longer runs EHRbase or the extra FerroEHR deployments.
docker/sut-ehrbase.yml, the EHRbase record and party set,docs/conformance/COMPARISON.md, the book’s Comparison with EHRbase page, and the openPGP-signing, fail-open and stable-spec compose overlays (docker/sut-signing-pgp.yml,sut-pgp-parallel.yml,sut-terminology-failclosed.yml,sut-terminology-failopen.yml,sut-spec-stable.yml) with the test signing keys undercorpus/keys/are gone.scripts/conformance.shno longer takesCONF_SUT,CONF_IXITorCONF_STATEMENT, and refusesCONF_PERF_CLASSandCONF_STRESSuntil the measured lanes move to the Veredictumperf/tree (#4448). -
The Veredictum pin watcher workflow,
scripts/checks/veredictum-pin.shwith itsveredictum-pin-guardjob, and theno-conformance-runlabel are gone: a pin bump now runs the new catalogue against its own build in the Conformance workflow (#4449). -
The Veredictum 0.1.6 conformance documents:
CONFORMANCE_REPORT.md,CONFORMANCE_STATEMENT.md,CONFORMANCE_CERTIFICATE.md,verdicts.json,run-exceptions.json, the CORE, STANDARD, OPTIONS, SEC-BASIC and performance badge files, and the heat grid and chapter bars the book and the landing page drew from them (#4451). -
The
CONF_PERF_CLASS,CONF_PERF_HOURSandCONF_STRESSsettings of the measured lanes are gone, along with the class runs, the step-load stress ladder and the AQL probe, which Veredictum 0.3.1 removed (#4452). -
The separate SMART step of the Conformance workflow, the
smartstage ofscripts/conformance.shwith itsCONF_SMART_OUT, anddocs/conformance/party/ferroehr/ixit-smart.jsonare gone: the one catalogue run covers the SMART documents. The party statement no longer carries theperformanceblock, which the Veredictum 0.3.1 statement schema refuses (#4503). -
The empty linkage storage domain is gone: its schema, its
ferroehr_linkagerole, the[storage.linkage]and[storage.migrate.linkage]configuration tables, its pool, thedatabase.linkageandbackup.linkagechart values, theferroehr-backup-linkagecompose job and thebtree_gistextension only its table needed. A configuration that still sets[storage.linkage]or[storage.migrate.linkage]is refused at boot as an unknown key. Cohort and AQL demographic join crossings still write theirlinkage-domain access records. Upgrade note: remove those keys and values before you upgrade. On a co-located database, migrationaudit/0021_drop_linkage_domain.sqldrops the schema, the role and the extension at the first boot, and raises aNOTICEfor any of them it cannot drop. When the linkage domain lived in a database of its own,[storage.audit]names another database, or the cluster holds more than one FerroEHR database, run in each such database, as a superuser or a member offerroehr_linkage:DROP SCHEMA IF EXISTS linkage CASCADE; REVOKE ALL ON SCHEMA ext FROM ferroehr_linkage; REVOKE ALL ON ALL FUNCTIONS IN SCHEMA ext FROM ferroehr_linkage; ALTER DEFAULT PRIVILEGES IN SCHEMA ext REVOKE EXECUTE ON FUNCTIONS FROM ferroehr_linkage; DROP OWNED BY ferroehr_linkage; DROP EXTENSION IF EXISTS btree_gist;thenDROP ROLE ferroehr_linkage;once per cluster. The released grant files still nameferroehr_linkage, so a first install whose migrator holds noCREATEROLEstill provisions that role and drops it after the first boot (#4684). -
A party migration drops the database function
party.resolve_national_identifier. No server path has called it since the linkage domain was removed (#4697). -
The viewer no longer reads
LEPTOS_SITE_ADDR: a value naming another address thanserver.listenno longer refuses the start.server.listen(FERROEHR_VIEWER__SERVER__LISTEN) sets the listen address (#4725). -
Migration
audit/0022drops the SQL functionsaudit.reap_audit_events(integer),audit.reap_audit_events_years(integer)andaudit.reap_audit_events_before(timestamptz), along with theirEXECUTEgrants. The server reaps the audit trail throughaudit.reap_audit_events_due, which honours each record’s own retention end, and nothing called the three any longer. Thespec_profiledocumentation no longer names a LANG generation, since the profile selects the RM and BASE generations only (#4770).
Fixed
-
The hosted sandbox seeds its full demo dataset again. The v5.5.0 reseed stopped at the ADL 2 archetype library (233 stored / 89 refused against the pinned 231 / 91) because the box’s
.envstill forced FerroTERM 0.1.6, which reads none of the FerroTERM 0.3 settings the sandbox posture passes, so it served no LOINC and VETDF could only warn onbraden_scale’s mistyped LA9605-4. The corpus, the pin and the CDR were right. The seed now asks the CDR for a LOINC code before the library step and names a posture without LOINC (SANDBOX_TERMINOLOGY=without-loincopts a local run into 233 / 89), checks that the two files it names move together, and a corpus test holds the manifest’s pin to the adjudicated split with and without LOINC. The FerroPIX rollout script retires a staleFERROTERM_IMAGEoverride, checks that FerroTERM runs the pinned version and serves LOINC, and wipes before it seeds over an unfinished seed (#4278). -
The measurement overlay
docker/sut-measurement.ymlswitches the caller rate limiter off by removing the[server.caller_rate]keys, so the server logscaller rate limiting configuredwithenabled=falseat boot, instead of setting a rate of 4294967295 per second thatferrohealth-server0.3.5 truncated to a zero interval and that answered stray429s under concurrency.scripts/conformance.shrefuses to start a measurement stack whoseferroehrservice still sets a caller rate (#4281). -
A response to a request whose body FerroEHR left unread, such as a
404to aPOSTof a path it does not serve or a declared-length413, now carriesConnection: close. The connection closed after such a response without saying so, and a client that sent its next request on it met a closed socket, which a non-idempotent request cannot safely retry (RFC 9112 §9.6) (#4283). -
A
[server.caller_rate]above 1 000 000 000 requests per second no longer answers429to concurrent requests: such a rate now limits nothing, as its operator meant (#4283). -
Every request leaves one request line, a timeout
408, a declared-length413and the500of a panicked handler included, and a413for a body with no declared length that passes[server] body_limit_bytesis answered with the openEHR error body, as the declared-length413is (#4283). -
An AQL query whose
WHEREclause chains thousands ofNOT,ANDorORterms no longer overflows the stack and aborts the server. The parser refuses a query that nests brackets andCONTAINSdeeper than 64 levels or builds an expression deeper than 512 levels with400 Bad Request, before any recursive pass runs, on the ad-hoc, stored-query store and execution paths alike. A longORover one path is written asMATCHES {…}, which the bound does not count. A statement PostgreSQL refuses for its own complexity limit (SQLSTATE class 54) also answers400instead of500.openehr-querygainsParseError::TooDeep(#4284). -
An AQL query (ad hoc or stored) whose client disconnects, or that the server’s own
query.timeout_msor HTTP request timeout gives up on, no longer keeps its statement running and its pooled connection busy until the statement ends. The connection is closed instead of returned to the pool, so the slot frees at once, and every pooled session now sets PostgreSQL’sclient_connection_check_intervalto one second, so the backend stops the abandoned statement within about a second. The composition-count statistics behave the same way (#4285). -
The server’s resident memory no longer climbs under sustained load until the container’s memory limit kills it. The
ferroehrbinary now allocates through mimalloc instead of glibcmalloc, whose per-thread arenas kept freed memory and never gave it back. On a load test of 10 000 mixed jobs at 48 workers the peak resident set fell from 2.3 to 3.2 GB (growing run after run) to about 600 MB, and throughput rose by about a third (#4288). -
A request whose database connection a PostgreSQL restart, a crash or the network cuts now answers
503 Service UnavailablewithRetry-After, as a request that cannot get a connection already did, instead of500. SQLSTATE class08(except08P01),57P01,57P02,57P03and57P05, and a reset, aborted or closed socket on an open session count as such a cut (#4290). -
While PostgreSQL is down, requests that need the database answer
503withRetry-Afterabout a second after the first one starts waiting, and at once after that, instead of each queueing up todb.acquire_timeout_secs(30 seconds by default). An acquire that has waited a second tries one connection of its own; when that cannot reach the database, the outage is known until a fresh attempt connects, and requests are served again as soon as one does. A pool that is only busy keeps queueing as before (#4323). -
Superseding a composition or a party no longer slows down as its history grows. The foreign-key check that every new node and attestation row makes against its version could scan all versions of the object instead of probing one, depending on the planner statistics at the time: on the storage bench, superseding an object with a few hundred versions took about 14 ms instead of 9 ms when the plan flipped. Migrations
clinical/0022andparty/0013re-key the version-tree uniqueness constraintuq_version_treewith the object id last, so the check always probes the primary key. The constraint enforces the same uniqueness as before (#4340). -
The FHIR rendering of an access record
ehds-loggingdoes not classify (a template upload, a stored-query write, a template read) now carries the IHE BALP 1.1.4entity:dataslice its Create, Read, Update or Delete profile requires: type2, role4andwhat.identifier, naming the operation when the record names no object. HAPI FHIR’s validator refused the template upload record without it (#4353). -
A
+in a query string is a literal plus, as RFC 3986 §2.1 and §3.4 decode a URI query, on every ITS-REST operation and every extension route: a date-time offset such as2026-10-28T10:00:00+01:00or an AQL parameter sent with an unencoded+reaches the server unchanged, where it was read as a space. A space in a query value is sent as%20. This reverses the form-decoding of #3891: a client that writes a space as+now sends a plus. Theopenehr-*crates move to 0.0.114 (#4356). -
An AQL
EHR e[ehr_id/value='…']predicate whose value is not a UUID ('1234', the AQL 1.1.0 example) answers an empty result, as itsWHERE e/ehr_id/value = '…'spelling does, onPOSTandGET /query/aql; it was refused with400. Both spellings lower the EHR id comparison through one path, and a value the database cannot cast is refused with a message that no longer claims it came from a query parameter (#4378). -
A request sent on a kept-alive connection that sat idle longer than
[server] header_read_timeout_ms(30 s by default) is answered. The server used to close such a connection, sometimes while the request was arriving, so a client that reused it gotEOFwith no answer and no server log line, and a client that never retries aPOSTon a reused connection, such as Go’snet/http, reported a composition commit as failed. An idle connection now stays open until[server] idle_timeout_ms(120 s by default) and then ends cleanly before any new request byte; keep that limit longer than the idle timeout of your clients (90 s for Go) and of any load balancer in front (#4381). -
An AQL query with an archetype predicate no longer builds the archetype index bitmap of the whole store once per version. The planner multiplied the selectivities of the archetype columns, which each archetype fixes together, and expected about 15 000 of 545 067 blood-pressure OBSERVATIONs; a query over one EHR then took 38.8 s and answered
408. Clinical migration0021_archetype_statistics.sqlgives the columns a statistics object, and the same query takes 0.3 s (#4399). -
FROM PERSON p CONTAINS EHR e(and theORGANISATIONandROLEroots) joins a party to the EHR whoseEHR_STATUS.subject.external_refnames it, so a party created withPOST /demographic/personand an EHR created withPOST /ehranswer their row with no other call. Before, the join read only the party-to-EHR map, which no REST route writes, and answered no rows on a deployed server. The reference matches when itsid.valueis the party’s uid without::<system>::<version>and itstypeis the root class or its RM ancestor (ACTOR,PARTY), in any namespace; an EHR linked both ways answers once (#4411). -
An AQL projection whose path ends on a list attribute inside a node’s data (
c/feeder_audit/originating_system_item_ids,c/links,c/context/participations,c/composer/identifiers,.../mappings) answers the list itself,[{…}, {…}], andnullwhen the list is absent. It answered the list wrapped in a second list,[[{…}, {…}]]; a client that unwrapped that outer array reads the column directly now. A path that continues below a list (.../originating_system_item_ids/id) still answers the array of its matches,["…", "…"].COUNTover a path ending on a list counts its elements (#4413). -
Reading one version of a composition, EHR_STATUS, folder or party by its version id no longer slows down as the object’s history grows. Once a connection reused its prepared read, the plan scanned every version of the object and kept the one asked for: on the storage bench’s history of 500 versions such a read touched about 520 buffers instead of 12 to 24. Migrations
clinical/0023andparty/0014add an index on the version tree id columns of both storage tiers, so the read probes the one version it returns (#4420). -
An audit store that 5.6.0-rc2 migrated starts again. Audit migration 0017 changed after 5.6.0-rc2 shipped it, so the server refused such a store on the migration’s checksum at boot. 0017 is back to its 5.6.0-rc2 text, and the new audit migration
0019_search_tokens_pending_list.sqlgives the search token index its pending list of 512 kB, so a store that 5.6.0-rc2 migrated upgrades in place (#4424). -
An AQL query ordered by
c/uid/valuewith aLIMITno longer starts a parallel worker on every call, and no longer switches between that plan and a sort of the whole join depending on the planner statistics. The version uid it sorts on had no index, so the planner sorted the version rows through a parallelGather Merge, which costs a worker’s start-up per query on a server of any size: about 19 ms on the storage bench’s CI runner, where the two flat-shape path reads measured 23 ms in some rounds and 42 ms in others. Migrationsclinical/0024andparty/0015add an index on the uid expression of the hot version partition, so the query reads versions in uid order from it in one backend and stops at the limit (#4429). -
An AQL query that reads values along a path no longer spends up to a second compiling itself before it runs. Each path step was bound through a set-returning function that PostgreSQL estimates at ten rows, so a chain of steps multiplied the row estimate tenfold per step: the planner chose join orders for a statement millions of times larger than the real one and switched on JIT compilation for it. On the storage bench, a wide projection of 9 values over one EHR read in 1 s instead of 15 to 20 ms, and an ordered WHERE on a magnitude in about 0.5 s instead of 50 ms (#4430). Each step is now a
LATERALsubquery that the planner estimates from its own plan; results do not change (#4431). -
An AQL lookup by an ELEMENT value, such as a person by an identifier (
WHERE id/items[at0001]/value/id = $v) or a composition by a text value, read every node of the archetype in both stores and tested the value last: about 350 ms at 50 000 persons. The engine now anchors such an equality on the ELEMENT rows of the same version by their search text (ext.node_search_text, ext migration0006), which the new partial expression indexidx_node_hot_value_searchand its statistics object serve (clinical migration0025, party migration0016), so the lookup reads the one object: 26 buffers and under a millisecond at 50 000 persons. The party store also gets the archetype dependency statistics the clinical store has had since 5.6.0-rc2 (party migration0017). The storage bench measures the lookup asperson_identifier_lookup(#4437). -
The revision history and every point read of a version now reach the version’s commit audit through a lateral subquery that probes
pk_commit_auditby key once per version row, so stale statistics on the partitionedversiontable can no longer turn the read into a walk of the whole commit audit index (1 318 buffers against 21 for a four-version object beside 1 300 others) (#4438). -
A revision history or a current-version read of a COMPOSITION committed after the partitioned
versiontable last had statistics could walk the whole commit audit index: the planner held the highest commit audit id of the seed for the highest there is and rated a merge join overpk_commit_auditas cheap. On a store of 1 300 compositions the history of a four-version object read 1 318 buffers instead of 21, and the storage bench readrevision_historyat about 440 buffers per call in 3 of 8 rounds. The server now keeps the partitioned parents’ statistics (#4453), and each read probes the commit audit by key (#4438). -
An AQL lookup of an EHR by the subject of its EHR_STATUS (
WHERE e/ehr_status/subject/external_ref/id/value = $u AND e/ehr_status/subject/external_ref/namespace = $n) joined every EHR_STATUS version and read the subject out of its stored fragment: about 150 ms on a store of a few thousand EHRs. The two leaves now read the EHR row’ssubject_idandsubject_namespace, the copy the commit keeps of the current EHR_STATUS subject, so the lookup enters throughuq_ehr_subjectand reads one row. The storage bench measures it asehr_by_subject(#4442). -
The partitioned tables
node,versionandvo_attestationof the clinical and party stores never had planner statistics of their own, since autovacuum does not analyze a partitioned table, so the planner estimated joins over them without any (PostgreSQL 18 §24.1.3). The server now runsANALYZE ONLYon them, and onehrwhile autovacuum has never analyzed it, after applying the migrations, afterload_ehrs, at boot and every hour. The role it runs as needs theMAINTAINprivilege on those tables; without it the server logs the tables it could not analyze. The populationCONTAINSof an archetype now enters throughidx_node_hot_arch_subsume(3 703 buffers to 1 745 on the storage bench’s seed) (#4453). -
A party delete (
DELETE /demographic/{agent,group,organisation,person,role}/{uid_based_id}) and the party relationship delete now answer400when the path names the versioned object instead of its latestOBJECT_VERSION_ID, and delete nothing. They answered204and deleted the current version. The release requires thepreceding_version_uidin that path (ITS-RESTagent_delete.yamland its four siblings) (#4478) (#4458). -
A CONTRIBUTION member outside the operation’s member set, a party in an EHR CONTRIBUTION or a FOLDER in a demographic CONTRIBUTION, now answers
400as a body that fails the request schema. It answered422(#4459). -
A party update whose body carries no
uidnow checks each relationshipsourceagainst the party the path names and refuses a foreign source with422, as RMRelationships_validityrequires. The check ran only when the body carried auid, so such an update committed a relationship sourced at another party (#4460). -
An ADL 1.4 template upload whose XML ends with an element still open now answers
400, as for any document that is not well-formed XML. The well-formedness gate stopped at the end of input without checking that every element was closed, so a truncated upload answered422(#4461). -
A canonical JSON body that the published ITS-JSON schema admits and the RM refuses, such as a
DV_URIorDV_EHR_URIwithoutvalueor aDV_INTERVALlimitDV_ORDINALwithoutsymbol, now answers422naming the member, on the direct commit routes, the CONTRIBUTION members and the party commits. A body the schema refuses still answers400. All of them answered400(#4463). -
A directory create or update whose root FOLDER names an archetype in
archetype_node_idand carries noarchetype_detailsnow answers422and commits nothing: an archetype root carriesarchetype_details(RM common §The LOCATABLE Class). FerroEHR created such a directory. A553|incomplete|commit and a nested FOLDER keep it optional. The viewer’s empty directory root now carriesarchetype_details(#4464). -
AQL
EHR e NOT CONTAINS <class expression>now runs and returns the EHRs that hold no matching object. It was refused as unsupported with400(#4465). -
An AQL comparison between a
DV_DATE_TIMEpath that ends on the data value itself, such asc/context/start_time, and a date-time literal now compares the instants both name, so values with different offsets compare correctly. The comparison read the whole data value and matched nothing (#4466). -
A container member whose node id names an object constraint of the template but whose RM type conforms to none of them, such as an ELEMENT where the template allows only a CLUSTER, is now refused with
422. Only the opposite direction was refused (#4468). -
An ADL 1.4 template upload with
Prefer: return=representationnow answers the representationAcceptnames: the OPT XML, or the Web Template underapplication/openehr.wt+jsonorapplication/json. AnAcceptoutside those answers406and stores nothing. The upload always answered XML (#4469). -
A Simplified Format COMPOSITION commit without the
openehr-template-idheader, and a flat|rawvalue without_type, now answer400. Both answered422(#4470). -
A Simplified Flat or Structured
…/action_archetype_idnow sets the StringACTIVITY.action_archetype_id, and the flat output writes it back. The converter built an object from the template’s string constraint, so the commit answered422(#4471). -
ctx/action_ism_transition_current_state, as a rubric or a code, now setsACTION.ism_transition.current_stateof every ACTION the document gives no state. The converter wrote524|initial|first and the context value never applied (#4472). -
ctx/instruction_narrativenow becomesINSTRUCTION.narrativeof every INSTRUCTION the document gives no narrative. A placeholder<narrative>was stored instead (#4473). -
The Simplified Flat
DV_INTERVALsuffixes|lower_unbounded,|upper_unbounded,|lower_includedand|upper_includedare now read on an interval whose bounds are template nodes, and the flat output writes an unbounded flag when true and an included flag when false. The suffixes were refused as unknown with422(#4474). -
An AQL query aimed at named EHRs (the ITS-REST
ehr_idparameter) reads those EHRs’ objects first and each object’s own content after them, whatever the planner statistics say. When an archetype’s rows fell out of the most-common-value list of the archetype statistics, the planner estimated them at one row and could start from that archetype over the whole population, evaluating every projected path for every EHR’s rows before the EHR filter: the storage bench’s wide projection over one EHR read about 10 000 pages per call in some rounds and 1 200 in others. A node contained in a versioned object is now read inside its parent on such a query; results do not change (#4487). -
AQL
TERMINOLOGY('expand', …)against a FHIR terminology server takes the value set from theurlargument whenparams_uriis the$expandquery form (url=http://…), as the openEHR AQL examples write it, and still takes a bare value-set URL as it is. A query form withouturlis a 400 that names the missing argument. Before, the wholeparams_uriwent to the server as the URL, and the query was answered 400 because the value set was not found (#4488). -
AQL
TERMINOLOGY('validate', …)andTERMINOLOGY('subsumes', …)keep aparams_uriargument whole when its value carries a?, as the QUERY master03 exampleurl=http://snomed.info/sct?fhir_vsdoes. Before, the arguments were read from after the first?anywhere inparams_uri, so the value-set URL reached the terminology server truncated and the arguments before it were lost. Aparams_urithat starts with a path still has its arguments read from after the path’s?(#4490). -
An ADL 2 template whose constituent archetype the CDR does not hold is refused at upload, with a
422whoseerrorscarry oneVARXRentry per missing archetype (AOM2C_ARCHETYPE_ROOTvalidity rule VARXR); the 2013 CKMt_encounter_opt_test, built on the refusedapgar, no longer loads, so the sandbox library pin is 231 accepted / 91 refused. A stored template whose constituent was deleted later answers its JSON form and example with the sameVARXRlist, and the viewer says so on every tab of the template, names each missing archetype and links to uploading it, instead of a raw422(#4505). -
ADL 2 validation admits a constraint on an RM computed attribute. VCARM accepts an attribute “stored or computed” (AOM2
master04.5§Validity Rules:C_ATTRIBUTE), and a function with no arguments is a computed attribute (master04.2§Attribute Nodes), so an archetype that constrainsDV_PROPORTION.is_integral,DV_QUANTITY.is_integralorEVENT.offsetis no longer refused with422. The generated RM model (openehr_rm::v1_2::model) now carries each class’s computed attributes from the BMM functions (RmClass::computed_attributes,computed_attribute).openEHR-EHR-CLUSTER.microscopy_prostate_carcinoma.v1.0.0from the 2013 CKM ADL 2 export now uploads, and the sandbox archetype-library pin moves to 232 accepted and 90 refused.DV_QUANTITY.property, which no RM release defines, stays refused. The nineopenehr-*crates step to 0.0.124 (#4513). -
DELETE /ferroehr/rest/extensions/v1/definition/artefact/adl2/{artefact_id}refuses with409 Conflictwhile another stored ADL 2 artefact does not compile without the one deleted (a slot filler, ause_archetypereference or a specialisation parent, directly or through another artefact), and the message names every one of them. Before, the delete succeeded and left each template built on the archetype unable to compile (#4522). -
The viewer’s ADL 2 template upload names each violation the CDR found when it refuses the source: every AOM2 rule code with the CDR’s words for it, so a template whose constituent archetype the CDR does not hold names that archetype (
VARXR). The upload now asks forPrefer: return=representation, the preference under which ITS-REST lets a4xxcarry its error details, and reads the stored template’s id from theETagof the201(#4523). -
An ADL 2 operational template whose included archetype reuses the template’s node ids uploads again, where it was refused with
422under VCOSU. Node-id uniqueness now holds per archetype and restarts at eachC_ARCHETYPE_ROOT(AOM 2 VCOSU, “unique within the archetype”), and on an operational template the codes and interior node ids below a root are judged against that constituent’s entry incomponent_terminologies(OPT 2master03-opt_raw). A duplicate node id inside one archetype is still refused. The nineopenehr-*crates step to 0.0.125 (#4529). -
The viewer’s dashboard draws the EHR or composition count as unavailable, with the reason in plain words, when the CDR answers its count query with a result set of another shape (no row, several rows, an empty row, several values, or a value that is no whole number), where it drew 0 before. The template Releases table draws such a count the same way. A real zero still draws 0 (#4533).
-
An ADL 2 operational template upload runs the terminology integrity rules (VTLC, VATCV, VTVSID, VTVSUQ, VTVSMD, VTTBK, VTCBK, and VTSD where the level is carried) on each
component_terminologiesentry, and each violation names the component’s archetype id (#4536). -
A COMPOSITION committed against an ADL 2 operational template is validated against the template’s leaf constraints, where it was stored with
201whatever it held. An inlined archetype recorded by its complete identifier (openEHR-EHR-OBSERVATION.x.v1.0.0, BASEmaster07-referencing§Reconstitutability) now matches its template node, so theC_INTEGER,C_REAL,C_STRING,C_BOOLEAN, tuple, value-set and cardinality constraints below it answer422(AOM 2master04.5). An archetype root the template does not inline is refused as a node the template does not define, and aC_INTEGERorC_REALlist ({10, 15, 20}) admits each of its values where only the first was read. Canonical, FLAT and STRUCTURED commits take the same check. The nineopenehr-*crates step to 0.0.127 (#4540). -
A versioned read whose
versionpath segment is no SEMVER version and no{major}or{major}.{minor}prefix, such asv1.x,1.xor01, now answers400before any lookup, where it answered404(parameters/path/version.yaml,responses/400.yaml). This covers the ADL 2 template readGET /definition/template/adl2/{template_id}/{version}, the stored-query readGET /definition/query/{qualified_query_name}/{version}and both stored-query executions at a version,GETandPOST /query/{qualified_query_name}/{version}. A well-formed version the server does not hold still answers404(#4541). -
A FLAT or STRUCTURED read of a COMPOSITION committed against an ADL 2 operational template returns the content below an inlined archetype that the composition records by its complete identifier (
openEHR-EHR-OBSERVATION.x.v1.0.0, BASEmaster07-referencing§Reconstitutability). The read left out everything below such a root with no error; it now matches the root to its template node the way the commit does. The nineopenehr-*crates step to 0.0.128 (#4551). -
A COMPOSITION committed against an ADL 2 operational template whose
C_INTEGERorC_REALconstraint is a union of ranges (for examplemagnitude matches {|0..5|, |10..15|}) is refused with 422 when the value lies outside every range. Such a value was stored. The served Web Template does not change: its inputvalidation.rangeholds one range, so a union leaves it out, as before, and the check runs on the commit (#4552). -
A FLAT or STRUCTURED read of a COMPOSITION committed against an ADL 2 operational template returns the value of an ELEMENT that holds a
DV_INTERVALwhoselowerandupperthe template constrains. The read left the value out with no error (#4559). -
A FLAT or STRUCTURED read of a COMPOSITION returns the value of an ELEMENT that holds a
DV_INTERVALwhose template leaves the interval’slowerandupperunconstrained, for ADL 1.4 and ADL 2 templates. The read left the value out with no error, and a FLAT or STRUCTURED commit could not name the parts (#4559). -
A COMPOSITION written from FLAT or STRUCTURED against an ADL 2 operational template carries what a canonical body built to that template carries. A node the template gives no term text, such as the HISTORY and ITEM_TREE of an OBSERVATION, is named for its RM type (
History,Tree) instead of its bare id-code (id2). Every inlined archetype root records the complete identifier the template names (…cnf_minimal.v1.0.0, BASEmaster07-referencing§Reconstitutability) in itsarchetype_node_idandarchetype_details.archetype_id, andarchetype_details.rm_versionis the template’srm_release. Before this change the root recorded the interface form (…v1) and the server’s RM 1.2.0. Compositions built against an ADL 1.4 template keep their major-version archetype ids and RM 1.2.0 (#4560). -
ferroehr reportin a release build names theopenehr-*crate versions that release published to crates.io: the release lanes stamp the published version into the checkout before they build the server, where the report used to name the floor the source tree holds. A newopenehr_crates_originfield sayspublishedfor a release build andsource_treefor any other, a pre-release included (#4565). -
An ADL 2 archetype reference resolves to one defined stored release: an interface reference (
….v1) takes the newest release of its major version, a reference with a minor or patch version narrows the match to it, and an alpha or beta version matches only its full identifier (BASE Artefact Identification, Referencing). With several releases of one archetype stored, a template upload, an operational template and the delete’s dependents check used whichever release PostgreSQL returned last, and a reference to a major version no stored release carries resolved to another major version (#4567). -
An ADL 2 upload and an ADL 2 delete no longer race. An upload validated before a concurrent delete of an archetype it uses committed could store a template whose constituent was gone. Both now hold one transaction-scoped advisory lock from the repository read to the commit, so the second write decides on what the first committed: an upload after the delete is refused with
VARXR, and a delete after the upload is refused with a409naming the template (#4568). -
The syslog form (DICOM PS3.15, IHE ITI-20) of an EHR-level audit record names its object beside the patient, as a URI participant object with the id its FHIR
AuditEventnames. The record of placing, releasing or expiring an EHDS Art. 3(3) access delay names the held composition asaccess-delay:<vo>, so an Audit Record Repository fed by syslog can tell which composition a hold covers (#4569). -
An ADL 2 template or archetype that references two major versions of one archetype (
….v1and….v2), or one archetype under two namespaces, now compiles against both: theopenehr-adlrepository holds an artefact under its namespace, archetype and major version, and resolves each reference within that key (BASE Artefact Identification, Referencing). A reference without a namespace now resolves in the namespace of the artefact that makes it, and never in another namespace (#4579). -
A read of a stored ADL 2 template by a partial id or a
version(GET /definition/template/adl2/{template_id}) now resolves the way template compilation does: withv1.0.0stored besidev1.0.0-rc.1,….v1,….v1.0andversion=1.0.0answer the release in either upload order, and the release candidate is read only by its full version (BASE Artefact Identification, Referencing) (#4580). -
A write that sends no committer, on a route that takes a bare RM body (the
EHR_STATUS, COMPOSITION and DIRECTORY writes, and the demographic party and relationship writes), now records a Bearer caller’s login as issued by the token issuer, as EHR creation and every other default committer already did. It recorded the issuerferroehrfor every caller before; a Basic caller’s login is still issued byferroehr(#4585). -
The viewer’s ADL 1.4 template upload opens the stored template’s page, read from the
ETag(else theLocation) of the CDR’s201, where it went to an address with no template id. A refused upload names each violation the CDR found, its rule code or path and the CDR’s words for it, as the ADL 2 upload does: the upload asks forPrefer: return=representation, the preference under which ITS-REST lets a4xxcarry its error details (#4596). -
A
422validation refusal tells the client to sendPrefer: return=representationonly when the request did not send it; a request that sent it receives the violations inerrorsand adetailwithout the advice (#4597). -
An EHR Extract import refusal for a received version now names that version’s position in the extract (
chapters[i]/items[j]/item/versions[k]), so an importer can find the defectiveORIGINAL_VERSIONin a large extract (#4602). -
The import reads a version’s
other_input_version_uidswith the parser the CONTRIBUTION path uses and refuses an entry that is not anOBJECT_VERSION_ID, where it used to drop the entry. On the wire the extract decode already refuses such an entry with 422, so the import stays all or nothing (#4602). -
An AQL archetype predicate matches the namespace exactly and reads the version it names as the oldest release it accepts within the major:
org.a::…no longer finds data recorded inorg.b, an id without a namespace finds only data recorded without one, and.v1.4.2no longer finds data recorded underv1.0.0(BASE Artefact Identification §Referencing and §Supporting Archetype-based Querying; #4629, #4630). -
A query naming a parent archetype finds the data of a specialised child release only when that release declares a parent release at or after the queried one. Before, once one stored release of the child qualified, the data of every release of it was returned (BASE Artefact Identification, Referencing §Supporting Archetype-based Querying; #4637).
-
POST /definition/template/adl1.4andPOST /definition/template/adl2answer400for every invalid template, the only refusal ITS-REST 1.1.0 declares for both uploads besides the409duplicate. An OPT that breaks the OPT 1.4 schema, an ADL 2 source that breaks an AOM2 rule such as VCORM or VCARM, and an ADL 2 template whose constituent archetype is not held were refused with422. The problem keeps itsdetailand, withPrefer: return=representation, itserrors. Upgrade note: a client that read a422from a template upload reads a400, with the samedetailanderrors, under theabout:blankproblem type (#4643). -
A directory create or update whose FOLDER carries an empty
foldersarray, at the root or in a sub-folder, is refused with400and commits nothing. The ITS-JSON FOLDER schema givesfoldersminItems: 1, and the canonical JSON reader now refuses the empty array the same way in every document that carries a FOLDER, a CONTRIBUTION included. The viewer leavesfoldersout of a folder with no sub-folders (#4644). -
A canonical XML FOLDER, EHR_STATUS, PERSON, AGENT, GROUP, ORGANISATION, ROLE or PARTY_RELATIONSHIP document now has the root element
itemswithxsi:typenaming its class, the element the ITS-XML schemas publish for a LOCATABLE (Structure.xsd). The directory reads (latest, by version and at a time), the EHR_STATUS reads, the demographic reads and the demographic template examples served<folder>,<ehr_status>,<person>and the like, which no ITS-XML schema declares. XML input accepts the same form (#4645). -
POST /definition/template/adl1.4builds the template’s Web Template before it stores the template, so a template it cannot build is refused with400and nothing is stored. Once the template is stored, the upload answers201with itsLocation; withPrefer: return=representationand a Web TemplateAcceptit serves the Web Template built before the store, and the OPT if that cannot be served. It no longer answers422for a template it has already stored (#4647). -
A composition whose HISTORY carries
events: [], and an AGENT, GROUP, ORGANISATION or PERSON carryinglanguages: [], are refused with400and commit nothing. The ITS-JSON schemas give both arraysminItems: 1, and the canonical JSON reader now refuses the empty array as it does an empty FOLDERfolders. The FLAT builder no longer writes an emptyeventsfor a HISTORY that has no event (#4648). -
A write to a restricted COMPOSITION (
POST,PUTorDELETEon/ehr/{ehr_id}/composition) refused under a GDPR Art. 18 restriction now answers with theprocessing-restrictedproblem type, as the reads of a restricted record already did, in place of the genericforbiddentype. The status stays403(#4657). -
When an
EXTRACT_SPECcriterion’s AQL runs past the query time budget, the400body now states the timeout as plain text. It used to start with a control-character marker that was only ever meant for the server itself (#4657). -
Under a separated clinical credential,
POST /ehr,PUT /ehr/{ehr_id}and anEHR_STATUSupdate that name a subject no longer fail with a database error: the subject pseudonym guard reads the deployment posture, and the clinical role now holdsSELECTonext.posturethrough theextmigration0009(#4675). -
A cohort that names its subjects now finds, under
[ehr_index] provider = "local", the EHR created overPOST /ehrwith that subject in itsEHR_STATUS; it read a cross-reference table no route wrote, so it matched nothing. A cohort predicate and the AQL demographic join resolve a party to the EHRs whoseEHR_STATUS.subjectnames it. TheEHR_STATUSsubject is now the one source of which EHR belongs to which subject. Upgrade note:linkage.subject_ehrand thelinkage.erase_ehrfunction go with thelinkageschema, which audit migration0021drops with the linkage domain. Rows written there through the service API are dropped with the table; the EHRs they named keep their subject in their ownEHR_STATUS(#4675). -
The identifier scan (
[privacy.identifier_scan]) no longer refuses aDV_IDENTIFIERwhosetypedeclares an item rather than a person, such as a laboratoryfiller_order_numberthat passes the NHS Number check by chance. ADV_IDENTIFIERinFEEDER_AUDIT.originating_system_item_idsorfeeder_system_item_idsis scanned only when itstypenames a person identifier. Atypenaming a person (patient,NHS,BSN,social securityand similar) keeps the value scanned in every slot, and free text and untyped identifiers in clinical content are scanned as before. The default rule set is unchanged; a deployment that knows its jurisdictions still narrowsrules, so a Dutch one withrules = ["nl-bsn"]never claims an NHS Number (#4702). -
An inline primitive constraint in a parsed archetype or template now carries the node id AOM2
ADL_CODE_DEFINITIONS.Primitive_node_iddefines,at9999in an at-coded archetype andid9999in an id-coded one, where it carried the constant’s namePrimitive_node_id. An ADL 1.4 archetype converted to ADL2 gets the id-coded form (#4739). -
The ABAC policy-enforcement point checks every item-tag operation as it checks its target: a COMPOSITION tag read after the call like the COMPOSITION read, a COMPOSITION tag write before the call with the tagged version’s template, category and origin, and the EHR tag read before the call like the EHR read. These operations were unchecked before, so a patient-scoped or template-scoped rule now refuses a tag read or write wherever it refuses the target’s read or write. A COMPOSITION tag read also falls under the
EHR_ACCESSprivacy ceiling and its audit record names the tagged COMPOSITION (#4768). -
A primitive constraint inside a rule or a slot assertion of an id-coded ADL 2 archetype carries
id9999as its node id, asorg.openehr.am.aom2.adl_code_definitions§Constants definesPrimitive_node_idfor id-coded archetypes, where it carriedat9999before. An ADL 1.4 archetype converted to ADL 2 recodes its slot assertions the same way.openehr_adl::rules::parse_rules_bodyandparse_slot_assertionstake the archetype’sNodeCoding, whichopenehr_adl::codesnow exports (#4770). -
Under
spec_profile = "stable", a canonical-JSON party read lists inreverse_relationshipseveryPARTY_RELATIONSHIPanother party’s current version carries with this party as its target, oneLOCATABLE_REFeach naming the source party’s version container and the relationship’s path, as RM 1.1.0 §Party Relationships requires. The development profile, whose RM 1.2.0 makes the attribute a function, is unchanged. The released-profile conformance run now judges the server on the stable profile (#4775).
Security
Shipped with functional changes because: both fixes exist only in ferrohealth-server releases that carry functional changes in the same serving path beside them (0.3.7 two fixes, 0.3.8 and 0.3.9 the problem details module, the kept listener TLS and the unmasked remedy), so there is no security-only release of the crate for FerroEHR to take, and the client CA refusal ships in the release candidate the advisory names.
-
FerroEHR takes
ferrohealth-server0.3.7 in place of 0.3.5 (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 about 8400 silent connections from a client with no credentials exhausted the quickstart’s file descriptors and the CDR stopped answering, health checks included; the listener then retried a failedacceptat once and logged every failure. Such a connection now closes once[server] header_read_timeout_mspasses (30 s by default), counted from accept, and after anEMFILEorENFILEthe listener pauses up to 1 s before it accepts again and logs one warning every 10 seconds (#4283). -
A
[server.tls]table that setsclient_ca_filewithclient_authatnone, written or by default, is refused at load, naming the setting (GHSA-52mf-qg39-4q4j). Before 5.5.0 a client CA alone meant that every client presents a certificate; 5.5.0 moved the listener ontoferrohealth-server, whereclient_authdefaults tononeand the CA was read and ignored, so a configuration carried over passedconfig checkand served without asking a client certificate. FerroEHR takesferrohealth-server0.3.9, which refuses it and names the remedy in full. A 5.5.0 deployer who setsclient_ca_filesetsclient_auth = "required"beside it. The default template no longer pairs a client CA withnone, and says what eachclient_authvalue does (#4349). -
CVE-2026-84243, the glibc gettext
LANGUAGEdirectory traversal (GLIBC-SA-2026-0025), has no Debian fix for trixie yet and is judgednot_affectedin every image. Theferroehrandferroehr-viewerprograms never leave the C locale, so glibc ignoresLANGUAGEand opens no message catalog (security/vex/ferroehr-os.openvex.json). Inferroehr-postgresonly the container environment the operator writes can setLANGUAGE; no database connection can (security/vex/postgres-os.openvex.json) (#4500). -
CVE-2026-114690, CVE-2026-114691 and CVE-2026-115455, three libstdc++ defects in the gcc-14 packages of every image, have no Debian fix for trixie and are judged
not_affected. Each fix changes only a header template (the parallel-mode search, thestd::vector<bool>constructors, wide-stream extraction intostd::bitset), solibstdc++.so.6holds no copy; theferroehrandferroehr-viewerprograms contain no C++ code (security/vex/ferroehr-os.openvex.json), and inferroehr-postgresnothing is built in parallel mode and PostgreSQL does not link libstdc++ (security/vex/postgres-os.openvex.json) (#4789). -
CVE-2026-119371 to CVE-2026-119379 and CVE-2026-119591, ten SQLite defects without a Debian fix, are judged
not_affectedinferroehr-postgres: onlylsloginsreaches SQLite there, through liblastlog2, and nothing in the image runs it (security/vex/postgres-os.openvex.json) (#4789).
5.6.0-rc8 - 2026-11-02
5.6.0-rc8 is the eighth release candidate of 5.6.0, published for testing. It carries the CONTRIBUTION break of 5.6.0-rc6: POST /ehr/{ehr_id}/contribution and POST /demographic/contribution read the body through the released NewContribution schema and answer 400 for a lifecycle_state that is no DV_CODED_TEXT, a description that is a plain string or an object without _type, an audit without change_type, an audit typed ATTESTATION or UPDATE_ATTESTATION, a missing audit or versions, and a preceding_version_uid sent as a plain string, and a stated empty system_id is refused with 422 on every write path (#3595, #4543). These notes carry every change since 5.5.0, those of the 5.6.0-rc7, 5.6.0-rc6, 5.6.0-rc5, 5.6.0-rc4 and 5.6.0-rc3 sections below included. New since 5.6.0-rc7: two read-only extension routes that convert a stored ADL 1.4 archetype or operational template to ADL 2 (#4655); template uploads that answer 400 for every invalid template and never refuse a template already stored (#4643, #4647); the ITS-JSON minItems of FOLDER.folders, HISTORY.events and ACTOR.languages enforced (#4644, #4648), and a canonical XML LOCATABLE rooted at the items element the ITS-XML schemas publish (#4645); an AQL query naming a parent archetype that finds a specialised child’s data only from a child release whose own parent release qualifies (#4637); conformance_profile derived from the committed conformance record (#4672); a subject resolved through the EHR_STATUS of its EHR, and the empty linkage domain removed with its configuration (#4675, #4684, #4697); a write refused under a GDPR Art. 18 restriction answering with the processing-restricted problem type, and 500 bodies that carry curated text only (#4657); an identifier scan that reads a DV_IDENTIFIER’s declared type (#4702); a validation refusal that advises Prefer: return=representation only to a request that did not send it (#4597); the AOM2 node id of an inline primitive constraint (#4739); a viewer that answers a request other than GET or HEAD without a session with the sign-in page and no longer reads LEPTOS_SITE_ADDR (#4724, #4725); every item-tag operation checked by ABAC in its target’s mode (#4768); and, under spec_profile = "stable", a canonical-JSON party read that lists the relationships naming it as their target in reverse_relationships (#4775). The published conformance record is a Veredictum 0.4.0 released-profile run against FerroEHR on spec_profile = "stable": 2872 of 3071 rows passed, none failed and none errored, and 199 were skipped, 116 for an option the statement does not select and 83 that rest on development text alone; it replaces the Veredictum 0.1.6 documents (#4451, #4771). The released-profile verdict is now required: a failed or errored row fails the merge queue, the image run on main and the release (#4455). The development-profile run, which is never a verdict, has 2946 rows passed, 3 failed (#4776, #4777) and 2 errored by Veredictum itself. 5.5.0 stays the stable release: this pre-release moves neither the latest image tags, the book under /docs/latest/ nor the hosted sandbox, it publishes no crates, and it receives no fixes; the next release candidate or 5.6.0 itself replaces it. Before you try it: an invalid template on POST /definition/template/adl1.4 or POST /definition/template/adl2, an ADL 2 template whose constituent archetype is not held among them, answers 400 where it answered 422, with the same detail and errors under the about:blank problem type; a FOLDER with an empty folders, a HISTORY with an empty events and an AGENT, GROUP, ORGANISATION or PERSON with an empty languages answer 400; a canonical XML FOLDER, EHR_STATUS, PERSON, AGENT, GROUP, ORGANISATION, ROLE or PARTY_RELATIONSHIP document has the root element items with xsi:type naming its class, where it had <folder>, <ehr_status>, <person> and the like; OPTIONS on the API base path sends conformance_profile as BASE+OPTIONS where it sent STANDARD, and a configuration that sets [rest.identity] conformance_profile is refused at boot as an unknown key; an AQL archetype predicate matches the namespace exactly and reads the version it names as the oldest release it accepts, and a query naming a parent archetype finds a specialised child’s data only from a child release whose own parent release qualifies, so a query may find less than before; a cohort that names its subjects and the AQL demographic join resolve a party to the EHRs whose EHR_STATUS.subject names it, and a configuration that sets [storage.linkage] or [storage.migrate.linkage] is refused at boot and Helm chart 21.0.0-rc8 refuses a values file that sets database.linkage or backup.linkage, so remove those keys and values before you upgrade and, where the linkage domain lived in a database of its own, run the SQL the Removed entry gives; a POST, PUT or DELETE on a COMPOSITION under a GDPR Art. 18 restriction still answers 403, now with the processing-restricted problem type in place of forbidden; the 500 bodies of the archive dump and load, a failed expansion of a party’s protected identifiers and two query failures carry fixed text that echoes no value from the request, the archive or the terminology server; the identifier scan no longer refuses a DV_IDENTIFIER whose type declares an item rather than a person, and scans one in a FEEDER_AUDIT only when its type names a person identifier; the Veredictum 0.1.6 conformance documents (CONFORMANCE_STATEMENT.md and the rest) and the CONF_PERF_CLASS, CONF_PERF_HOURS and CONF_STRESS settings of the measured lanes are gone; with ABAC on, a patient-scoped or template-scoped rule refuses an item-tag read or write wherever it refuses the read or write of the tag’s target, and a COMPOSITION tag read falls under the EHR_ACCESS privacy ceiling; under spec_profile = "stable" a canonical-JSON party read carries reverse_relationships, while the canonical-XML read does not yet (#4778) and the development profile is unchanged; a write whose committer names another login of the caller’s token issuer or of this server, or a PARTY_SELF committer from a caller who is not the record’s person, answers 403, and a direct write whose committer breaks its own rules answers 422; a write that sends no committer on a bare RM body route records a Bearer caller’s login as issued by the token issuer, where it recorded ferroehr; a FLAT or STRUCTURED composition under an ADL 2 template records the complete archetype identifier and the template’s rm_release, and the served Web Template writes a bound coded input, COMPOSITION.category among them, as the bound terms (openehr::433) where it wrote the local at-code; a CONTRIBUTION commit must take the shapes above; a write under a token whose SMART resource scopes are all patient/ scopes records PARTY_SELF as committer and may change only what the person committed, and a service auth_failure answers 403 where it answered 500; a versioned read whose version is no SEMVER version or prefix answers 400 where it answered 404; the served Web Template of an ADL 2 template writes a data value’s aqlPath without an [idN] predicate; a composition that breaks an ADL 2 template’s leaf constraint answers 422; every route ITS-REST 1.1.0 does not define moves from /ferroehr/rest/openehr/v1/ to /ferroehr/rest/extensions/v1/, and the ITI-81 retrieval to /ferroehr/rest/fhir/r4/AuditEvent, with no redirect from the old paths; an error body is application/problem+json, so a client that read message reads detail, and one that read validationErrors sends Prefer: return=representation and reads errors; audit migration 0017 refuses an audit store that holds records written by 5.5.0 or earlier, while an audit store that 5.6.0-rc2 migrated upgrades in place; a [server.tls] table with client_ca_file must set client_auth = "required" (or "optional") beside it, or the configuration is refused at load; [server] header_read_timeout_ms no longer bounds an idle kept-alive connection, which the new [server] idle_timeout_ms (120000 by default) closes, so keep it longer than the idle timeout of your clients and load balancers; a client that wrote a space as + in a query string sends %20; a party delete names the latest OBJECT_VERSION_ID in its path and answers 400 for a versioned object id; a body the RM refuses after the ITS-JSON schema admits it answers 422, and a misplaced CONTRIBUTION member, a Simplified Format commit without openehr-template-id and a flat |raw value without _type answer 400; a tag update under Prefer: return=identifier answers 200 with the tag list; with [authz.rbac] enabled a token holding only system/ SMART on openEHR scopes reaches clinical operations without a role; the viewer image serves no /pkg/ and reads no LEPTOS_SITE_ROOT, LEPTOS_OUTPUT_NAME or LEPTOS_HASH_FILES, and its Content-Security-Policy is script-src 'self'; style-src 'self'; Helm chart 21.0.0-rc8 refuses to render until config.deployment_profile names sandbox or production, and a values file for its FerroPIX moves ferropix.config.server.public_base_url to ferropix.config.public_base_url and each issuer’s clients to ferropix.config.trust.issuer. Storage generation 3 adds node columns and migrates no data, and ext migration 0008 names generation 4, the generation with the node header columns, and changes only the label; clinical migration 0020 adds the origin to retention policies and 0021 statistics on the archetype columns, and clinical 0022 and 0023 and party 0013 and 0014 rebuild the version tree’s uniqueness constraint and index its version id columns, which reads every version row of an existing store once; clinical 0024 and party 0015 index the version uid, ext 0006, clinical 0025 and party 0016 add the ELEMENT value search index, built over every hot node row of an existing store, party 0017 adds the archetype statistics, and clinical 0026 and party 0018 grant MAINTAIN on the partitioned tables to the serving roles; clinical 0027 and party 0019 add the access delay, and ext 0007, clinical 0028 and party 0020 add the node header columns with no data migrated; audit migration 0019 gives the search token index a pending list of 512 kB, and audit 0020 adds the hash index on request_id; clinical 0029 adds the access opt-out; ext migration 0009 grants the clinical role SELECT on ext.posture, party 0021 drops the database function party.resolve_national_identifier, audit 0021 drops the linkage schema, the ferroehr_linkage role and the btree_gist extension, raising a NOTICE for any of them it cannot drop, and party 0022 restates the comment on party_relationship_target.source_vo_id with no change to data; the linkage migration set is gone. Helm chart 21.0.0-rc8 carries appVersion 5.6.0-rc8. Security carries two advisories, GHSA-2mc2-h3jq-c5wg and GHSA-52mf-qg39-4q4j, and the OpenVEX judgement of CVE-2026-84243.
Added
-
The logging component’s intended performance is stated as checkable claims (EHDS Annex II 1.1): every composition create and read recorded exactly once and every AQL execution at least once, no access succeeding without its record, at most 125 % of the latency and at least 80 % of the throughput with the access log off, and a 50-record ITI-81 page within 250 ms at p95.
scripts/perf/audit.shmeasures them with the access log off and on (the load test’s new--auditmode counts the records through ITI-81 and times retrievals),scripts/perf/audit-verdict.shgives the verdict, the release refuses a claim not met and attaches the summary asferroehr-<tag>-logging-performance.md(Annex III point 2), and the weekly performance guard runs it on main. The book’s compliance section gains the page that states the claims and the method (#4293). -
scripts/interop/atna.shexercises the logging component’s ATNA transactions against independent implementations run from published images (EHDS Annex II 1.4): the ITI-20 FHIR feed into HAPI FHIR as the Audit Record Repository, judged by its validator with IHE BALP 1.1.4; the ITI-20 syslog feed into syslog-ng over RFC 5425 TLS, each payload read as a DICOM PS3.15AuditMessage; and the same ITI-81 searches put to FerroEHR and to HAPI. The audit trail page documents it (#4296). -
FerroEHR ships an EHDS category map for the published CKM templates and COMPOSITION archetypes whose data sit in one Art. 14(1) priority category (the International Patient Summary, ePrescription, the generic laboratory result and CCTA report templates; the
health_summary,prescriptionandtransfer_summaryarchetypes), so an installation that declares no[audit.categories]keys records those accesses classified instead ofunclassified(EHDS Annex II 3.2(c)). A deployment that declares any template or archetype replaces it whole.[audit.categories] shipped_map = falsewith nothing declared leaves no map, whichdeployment_profile = "production"refuses as the newno_category_mapgap unlessdeployment_acceptsnames it (#4298). -
Retention periods and access rules can take the origin and the category of the data into account (EHDS Annex II 3.4). The new top-level
[origins]register declares the origins a deployment recognises, each by the id its data carry and the clients whose direct commits come from it; a body without aFEEDER_AUDITcommitted by a registered client is stamped with that client’s origin instead of the server’ssystem_id.PUT /admin/retention/policytakes an optionaloriginnaming a registered origin, the register andGET /admin/retention/duereport it, and the due list lists an origin-keyed period over the objects of that origin (clinical migration0020_retention_by_origin.sql). The ABAC request carriescategory(the access record’s category tokens) andoriginresource attributes on composition, contribution and query operations, the Cedar schema declares both, and a remote PDP binding may name them as parameters (#4299). -
The operations page gains a storage sizing section, measured on 5.6.0-rc5: about 21.6 KB of clinical storage per version of a vital signs composition (2.0 times its canonical JSON, 85 % of it node rows) and 155 KB for an International Patient Summary, about 1.2 KB per audit record of a read, the effect of
[audit.store]retention on growth,pg_walup tomax_wal_size, theREINDEX INDEX CONCURRENTLY clinical.node_hot_pkeystep (20 % of that index after heavy concurrent writing) and a query for the size per relation, with the method to reproduce the figures (#4304). -
EHDS Art. 5: what a person inserts in their own EHR is marked as theirs, and they cannot alter what a professional committed. A write under a token whose SMART resource scopes are all
patient/scopes recordsPARTY_SELFas itsAUDIT_DETAILS.committer, itsexternal_refnaming the login, whatever committer the request names; a COMPOSITION it commits must namePARTY_SELForPARTY_RELATEDas composer; and its update or deletion of a version whose committer is notPARTY_SELF, directly or inside a CONTRIBUTION, is refused with403. A professional’s writes are unchanged. The contribution list extension gainsinserted_by_personper row, and the viewer names aPARTY_SELFcommitter “The person or their representative”. A serviceauth_failurestatus now answers403where it answered500(#4350). -
The EHDS Art. 3(3) delay of the person’s own access to newly registered data, a Member State option and off by default. The new
[access_delay]section (enabled,categories,hours) holds every new COMPOSITION of a listed[audit.categories]category from requests that may be the person’s own (a bearer token with a SMARTpatient/grant or the ABAC patient claim, also besideuser/orsystem/grants, asferrohealth-smart0.8.7 decides it) for at mosthours: a read answers404as for an unknown composition, and a query, an export and a CONTRIBUTION leave it out, while a professional reads it as before. The treating professional releases a held composition from the clinical routePOST {ext}/ehr/{ehr_id}/versioned_composition/{versioned_object_uid}/access-delay/release, with the checks of a write to that EHR, and the controller withPOST /admin/access-delay/release; a professional holds one by hand within the limit withPOST /admin/access-delayand reads the register withGET /admin/access-delay; every hold ends at its limit, and placing, releasing and expiry are each an access record. The subject-scoped ITI-81 read of the person’s own trail (EHDS Art. 9) leaves out the records about a held composition until it is released or expires, then serves them with their original times (ehds-logging0.3.3) (clinical migration0027_access_delay.sql, party migration0019_access_delay_column.sql) (#4351). -
The
openehr-itsclient reads an RFC 9457 problem details refusal:ErrorBody::problem()exposes itstype,title,status,detailandinstance, ignoring a member of the wrong type (RFC 9457 §3.1), andErrorBody::message()answers the problem’sdetail, else itstitle, where it answered only the ITS-RESTError’smessage. Theopenehr-*crates move to 0.0.115 (#4355). -
The local EHR index (
[ehr_index] provider = "local") is a supported production posture beside the IHE patient identity source:EHR_STATUS.subjectnames a patient by its own namespace and identifier, whichGET /ehr?subject_id=&subject_namespace=matches, and with no[privacy] subject_namespacesdeclared the reference is stored as the client sends it. The compose quickstart selects it withFERROEHR_EHR_INDEX=local docker compose up, which runs itsferroehr-config-localblock (#4379). -
CI checks every inline configuration of the compose quickstart with the
config checkof the image the file pins, FerroEHR’s and FerroPIX’s, so the quickstart can no longer carry a configuration its pinned server refuses (#4380). -
The Conformance workflow runs the Veredictum 0.3.0 catalogue in CI through the Veredictum GitHub Action, pinned by commit SHA and running the release image by digest. It builds FerroEHR from the commit, composes it with FerroTERM beside it on fresh volumes, reviews the party statement with
veredictum validate, fails on a failed or errored row, writes the Markdown summary to the job summary and uploads the results, JUnit and CTRF views. It runs on pull requests that touch the server, the party set, the conformance compose files or the workflow, onmain, on a release tag and twice a week.scripts/conformance.shtakes a stage (run,review,up,down), so CI and a local run compose the same deployment, andscripts/checks/veredictum-action.shfails while the Action SHA, its version comment, the image digest andVEREDICTUM_VERSIONdisagree (#4449). -
The Conformance workflow runs the Veredictum
smartdocuments (smart_discovery,smart_scopes) against the same FerroEHR build after the Veredictum Action, which forwards no SMART Platform base URL and no scoped tokens. The same pinned image runsveredictum testwith--platform-urlanddocs/conformance/party/ferroehr/ixit-smart.json, minting each access token in memory from the committed test issuer the SMART overlay trusts, and the job uploads its results, JUnit and CTRF views beside the catalogue’s and adds its summary under a heading of its own.scripts/conformance.shgains thesmartstage, andrundrives it after the catalogue, so a local run covers SMART too (#4450). -
GET /ehr/{ehr_id}andGET /ehr?subject_id=…now sendLast-Modified: the commit that created the EHR, or the later commit that added or deleted one of its folder hierarchies (#4462). -
The EHDS Art. 10 opt-out from access through the access services of Arts. 4 and 12, a Member State option and off by default. The new
[authz.rbac] access_service_roleskey declares the roles of the access-service callers; while an EHR carries the opt-out, a caller holding one reads it as absent: a route naming the EHR or an object in it answers404as for an unknown EHR, a population query leaves its data out, a scoped query, an export and the lookup by subject find no such EHR, and a write to it is refused as absent. Every other caller, the provider’s own care included, reads it as before. The controller records the opt-out on the person’s instruction withPOST /admin/access-opt-out, reverses it withPOST /admin/access-opt-out/reverse(the register keeps the reversal) and reads the register withGET /admin/access-opt-out; recording is refused with400while no access-service role is declared. An access-service caller that declares one of[audit] emergency_purpose_codesand does not act for the person reads the EHR under the Art. 10(2) vital-interest override, with the emergency mark on its access record and anaccess-opt-out-overriderecord against the EHR. Recording, reversing and reading the register are access records (clinical migration0029_access_opt_out.sql) (#4516). -
Two read-only extension routes convert stored ADL 1.4 definitions to ADL 2:
GET /ferroehr/rest/extensions/v1/definition/archetype/adl1.4/{archetype_id}/adl2for a stored archetype andGET /ferroehr/rest/extensions/v1/definition/template/adl1.4/{template_id}/adl2for a stored operational template, which converts to one ADL 2 archetype per embedded archetype root. Each answers 200 withapplication/json: (#4655)- the ADL 2 source of every root;
- each root’s conversion log and its
conversion_details, which name what the ADL 2 form drops or changes; - the slot fills that joined the roots. An unknown id answers 404. A stored source that no longer converts answers 422. No openEHR specification defines the conversion, so both routes are FerroEHR’s own design.
Changed
-
Breaking for clients that relied on the old leniencies:
POST /ehr/{ehr_id}/contributionandPOST /demographic/contributionnow read the body through the releasedNewContributionschema, and refuse every shape it does not define. Each refused shape answers 400: (#3595)- a
lifecycle_statein the CODE_PHRASE shape{"terminology_id": …, "code_string": …}, as a plain string, or as a bare{"value": …}. Send aDV_CODED_TEXT:{"value": "complete", "defining_code": {"terminology_id": {"value": "openehr"}, "code_string": "532"}}; - a
descriptionsent as a plain string, on the contributionaudit, on acommit_auditor on an attestation. Send aDV_TEXTorDV_CODED_TEXTobject:{"_type": "DV_TEXT", "value": "…"}; - a
commit_auditor contributionauditwithoutchange_type. The server no longer infers creation or modification frompreceding_version_uid; send the code of the change, for example249(creation),251(modification),523(deleted) or666(attestation); - a
commit_auditor contributionauditwhose_typeisATTESTATIONorUPDATE_ATTESTATION, or any value other thanUPDATE_AUDITorAUDIT_DETAILS. Send the audit asUPDATE_AUDIT(or with no_type) and put each attestation in the version’sattestationslist as anUPDATE_ATTESTATION. A666(attestation) version carries its attestations there too, and one with no attestation is refused; - a missing
audit, which answered 422 before. A missingversionslist, an attestation withoutreasonoris_pending, asystem_idthat is not a string, and apreceding_version_uidsent as a plain string instead of{"value": "…"}are refused the same way.
- a
-
An attestation’s own
system_idis kept, and one that states none takes thesystem_idof the version audit it belongs to instead of the server’s. An attestation committer is now checked against itsPARTY_PROXYrules like every other committer, so an invalid one answers 422 (#3595). -
The served OpenAPI document describes each extension route by what it does and by the ITS-REST text that governs it, and no longer names openEHR Service Model operations, interfaces or status codes. Routes, request and response fields and status codes are unchanged (#4213).
-
A population AQL query that only counts its root objects, such as
SELECT COUNT(c) FROM EHR e CONTAINS COMPOSITION cor the same withCOUNT(*), reads the current version rows and no longer probes the root node of every composition. At 545 000 compositions the count fell from about 9 s to 0.2 s (#4286). -
A REST request checks a connection out of each database pool once and keeps it until it answers, where it took one for each statement: two to four checkouts for a read of an EHR, an EHR_STATUS or a COMPOSITION, each waiting in the pool’s queue under load and each paying the pool’s release round trip. At 48 concurrent clients and a pool of 10, throughput rose by about 18 % and the median latency fell by about 13 % (#4289).
-
The Helm chart, at a new major version (21), has no default deployment profile: it refuses to render until
config.deployment_profilenamessandboxorproduction, so an installation that follows a quickstart instead of the instructions for use no longer runs the sandbox posture by omission (EHDS Annex II 1.2). A values file that relied on the oldsandboxdefault must now set it, for example--set config.deployment_profile=sandbox;values-production.yamlsetsproductionas before. The server binary’s own default and the Compose files, which declaresandboxexplicitly, are unchanged (#4294). -
The audit store keeps each record’s facts in columns and renders its FHIR R4
AuditEventfrom them when the record is read over ITI-81 or delivered by the FHIR feed, instead of storing the rendered document in every record. A record takes about a quarter of the space it took before. The configuration the rendering depends on (the audit source, the store horizon, the category map and the emergency purposes) is kept once per distinct configuration inaudit.audit_render_policy, and every record names the policy it was written under, so it renders the same document after the configuration changes. The tamper chain hashes every column of the record in one digest and checks each render policy against its digest; the earlier digest versions are retired. Audit migration 0017 needs an empty audit store and refuses one that holds records written by an earlier release, naming the remedy. ITI-81 parameters on an element of the document (address, the.identifierparameters,entity-type,entity-role,type,subtype) are matched against the rendered document (#4300). -
The three audit indexes on
recorded_atascend, so their pages fill instead of splitting half full on every insert; the newest-first ITI-81 search scans them backward (#4302). -
A clinical or party node row now stores only the part of its canonical JSON fragment that its own columns do not hold:
_type, a lowercasearchetype_node_id, a plain or simply coded name, and an ELEMENT value in one of the common basic shapes (a quantity, count, ordinal, coded or plain text, date, time, duration, identifier, boolean or URI) move into columns, the value into the new typed value columns. Every reader rebuilds the omitted keys, so the canonical JSON and every AQL result are unchanged, and a filter on a quantity’s magnitude or a code reads its column directly. The node heap shrinks by about a third (storage generation 3); a row written before keeps its whole fragment and reads the same. Migrationsext/0005,clinical/0019andparty/0012add the columns and the readers; no data is migrated (#4306). -
Every ITI-81 search parameter answers through an index again. The store takes the search tokens of a record’s rendered
AuditEventwhen it writes the record: each distinct token once inaudit.audit_search_token, the code-system tokens (type,subtype,entity-type,entity-role,source.identifier) as one shared set inaudit.audit_search_set, and their ids on the record insearch_tokensunder a GIN index;entityreads a hash index onresource_id. A search onaddressor a token parameter no longer renders every record in itsdatewindow. The tamper chain coverssearch_tokens, and the verifier reports a changed token or set (#4313). -
The storage-bench lane measures the baseline and the candidate on one runner in eight interleaved rounds each and gives two verdicts. The plan verdict fails an operation whose median pages per call rose more than 10 % and one page above the baseline’s highest round, whatever its time. The time verdict divides each round by its machine factor, so a slow spell of the runner no longer reads as the code, and fails an operation whose median p50 or p99 rose more than 15 % with every candidate round slower than every baseline round, or a candidate build that ran more than 15 % slower across the board in every round. A latency is no longer compared with a record measured on another runner (#4318).
-
The viewer takes FerroUI 0.5.8: a menu item draws a visible bar under the pointer and the keyboard focus, and the top bar’s search no longer opens its panel again over the page the router draws after a search is submitted or one of its options followed (#4319).
-
Nothing ITS-REST 1.1.0 does not define is served under the openEHR base path any more. FerroEHR serves three namespaces beside each other under
/ferroehr/rest/:/openehr/v1/holds only the ITS-REST routes,/fhir/r4/the FHIR and IHE interfaces, and/extensions/v1/FerroEHR’s own extensions. The ITI-81 retrieval moved from/ferroehr/rest/openehr/v1/fhir/r4/AuditEventto/ferroehr/rest/fhir/r4/AuditEvent. These routes moved from/ferroehr/rest/openehr/v1/...to/ferroehr/rest/extensions/v1/...with the same relative path:/terminology/...,/admin/event_subscription...,/demographic/party_relationship...,/demographic/versioned_party_relationship/...,/definition/archetype/...,/definition/artefact/...,/message/export...,/message/import...,/query/cohort, and the admin extensions/admin/config,/admin/template/{template_id},/admin/query/{qualified_query_name}/{version},/admin/party/...,/admin/archive/...,/admin/report/...,/admin/dump,/admin/load,/admin/integrity/...,/admin/restriction...,/admin/access-restriction...,/admin/research-objectionand/admin/retention/.... The old paths answer 404, with no redirect. The served OpenAPI document and its family documents name the new paths; the admin extensions, the archetype library and the cohort query have family documents of their own (admin-extensions,archetypes,cohort,contributions). The paged CONTRIBUTION list moved too, to/ferroehr/rest/extensions/v1/ehr/{ehr_id}/contribution(#4330). -
The server and viewer images build on the current
gcr.io/distroless/cc-debian13:nonrootdigest, so they carry the base image’s latest Debian package updates (#4335). -
Canonical JSON validation against the openEHR ITS-JSON schemas runs on
jsonschema0.59.0, which refuses a value whose regex match the engine cannot finish where 0.58 accepted it undernotorpatternProperties. Theopenehr-*crates move to 0.0.113 (#4336). -
A statement the database cancels, by its
statement_timeoutor a cancel request (SQLSTATE57014), answers503withRetry-Afterinstead of500: the statement rolled back, so the request can be repeated. By default the request timeout answers before the 60 s statement timeout fires, so on a request path it is raised by an operator’s cancel or by a forward step of the database host’s clock, which fires every running statement’s timeout at once (#4338). -
Every error on the openEHR routes (
/ferroehr/rest/openehr/v1/), the extension routes (/ferroehr/rest/extensions/v1/) and the management routes answers RFC 9457 problem details,application/problem+json, in place of the{ message, validationErrors, error }body shaped after the ITS-REST example. The status codes are unchanged. A problem carriestype,title,status,detailand the request id as aurn:uuid:instance; the refusals a client acts on have FerroEHR types documented on the book’s Problem types page (aql-invalid,query-timeout,validation-failed,content-invalid,conflict,version-conflict,unauthenticated,forbidden,processing-restricted,unavailable,rate-limited), every other error isabout:blank. A request withPrefer: return=representationreceives the additional details ITS-REST allows: the violations of a validation refusal aserrors({path, detail}, wherevalidationErrorsheld"<path>: <message>"strings), the bytepositionof an AQL parse refusal, and thecurrent_versionof a412. The stack’s own408,413,429,503and panic500are problems too, and anOperationOutcomeunder the FHIR base, where an authentication refusal is now anOperationOutcomeas well. The served OpenAPI document declares theProblemschema for every4xxand5xx, and the viewer reads problem details. A client that readmessagereadsdetail; one that readvalidationErrorssendsPrefer: return=representationand readserrors(#4342). -
The FHIR
AuditEventof an EHDS access record names the object it reads, creates, updates or deletes by its openEHR object id asentity.what.identifierwith the systemurn:openehr:object-id, where it wrote awhat.referencethat no FHIR server resolves and HAPI FHIR refused (FHIR R4 references.html §2.3.0.3). ITI-81 finds the record byentity.identifier. FerroEHR takes FerroAUDIT 0.3.2 (ihe-atnaandehds-logging) (#4366). -
The access log costs the request path less under load. The audit store writes a drained batch, its search tokens and its token sets in one transaction on one connection (one commit where it took up to three), stores only the tokens it does not hold yet, and the GIN index on
search_tokenstakes new entries through a pending list of 512 kB. On the release load test the store wrote 1.5 KB of WAL per record where it wrote 5.2 KB (#4375). -
The LANG specification text is re-vendored at
f80763ab(#4377). SPECLANG-18 states how a P_BMM schema’s JSON form encodes a cardinality interval, which the JSON schema reader already followed; its documentation now cites the rule, and a test pins it. SPECLANG-16 types the P_BMM class lists as keyed collections; the generated P_BMM model takes that change with #4497. The nineopenehr-*crates step to 0.0.122. -
[ehr_index] provider = "local"besidepixm_url,assigning_authority,[ehr_index.oauth]or[ehr_index.tls]is accepted, where it was refused: the IHE keys are kept, not used and named at boot, soprovideralone switches the index, in the file or asFERROEHR__EHR_INDEX__PROVIDER. Declared pseudonym namespaces stay in force under either index (#4379). -
A build no release lane marked reports its commit beside the package version, as SemVer build metadata (
5.6.0-rc2+dev.1a2b3c4d5e6f), onferroehr --versionandserver_versionofGET /ferroehr/rest/status(the boot banner and/management/infoalready name the commit beside the version), so a report from a build ofmainno longer reads as the release it follows; a release build reports the bare version (#4380). -
The compose quickstart runs FerroPIX 0.0.12, pinned by digest, with its configuration moved to that release’s keys (
public_base_urlat the top level, the Patient Identity Source’s client under[[trust.issuer]]), and Dependabot proposes each FerroPIX release (#4380). -
The Helm chart runs FerroPIX 0.0.12 by digest, with the FerroPIX chart 0.3.4 built for it, and the hosted sandbox runs FerroPIX 0.0.12 too; both had stayed at 0.0.7 and 0.0.10 when the quickstart moved. A values file for the chart’s FerroPIX moves
ferropix.config.server.public_base_urltoferropix.config.public_base_urland each issuer’sclientstoferropix.config.trust.issuer, the keys FerroPIX reads since 0.0.8; the chart’s examples and the production overlay do. FerroPIX’s chart now also runs its pods withenableServiceLinks: falseand in a user namespace (ferropix.hostUsers: false, the default). A CI guard holds the quickstart, chart and sandbox to one FerroPIX release and checks the sandbox’s and the chart’s FerroPIX configuration under it, so the Dependabot proposal for the quickstart pin moves all three (#4392). -
openehr-query, the AQL 1.1.0 lexer, parser, typed AST and printer, is published under Apache-2.0 from 0.0.116, like the generated model crates andopenehr-its, so any Rust project can parse AQL with it. Versions 0.0.60 to 0.0.115 keep the Business Source License 1.1 they were published under (#4405). -
FerroEHR takes
ferrohealth-server0.4.0 in place of 0.3.9. The new[server] idle_timeout_ms(120000 by default) closes a kept-alive HTTP/1.1 connection that waits that long for its next request, with a clean end of stream, and[server] header_read_timeout_mscounts from the first byte of each request head on a kept-alive connection (from accept for the first one, as before). The head bound 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, which a client such as Go’snet/httpsaw asEOFon aPOSTit does not retry (#4381). A deployment that setheader_read_timeout_msto bound idle connections setsidle_timeout_msinstead. The refusals the listener writes itself (408,413,429,503) and a panic’s500keep naming the server’s request id as theirinstancewhen the client sends its ownX-Request-Id, as every other FerroEHR refusal does (#4417). -
FerroEHR runs on
ferrohealth-server0.4.1, which keeps a product’s own fallback and the layers around it when the stack merges its routes (FerroHEALTH/FerroSYS#199). FerroEHR, v5.6.0-rc3 included, was not exposed to the regression 0.4.1 fixes: the REST API and the viewer declare their own fallback inside their layers, and the management endpoints guard each route they serve, so a path no route matches answers as it did before (#4427). -
The viewer draws every page on its server with FerroUI 0.6, with no Leptos and no WebAssembly: a link and a form load a new page, and FerroUI’s own small script modules add behaviour on top of what the server drew, so every page works with JavaScript off. The image ships the one
ferroehr-viewerbinary, with no/sitetree beside it and nohash.txt; FerroUI’s stylesheet, theme and scripts are served from inside it under/ferrohealth-ui/0.6.0/, and/pkg/no longer answers. The Content-Security-Policy is nowscript-src 'self'; style-src 'self'with no per-response nonce and no'wasm-unsafe-eval'. The image no longer readsLEPTOS_SITE_ROOT,LEPTOS_OUTPUT_NAMEorLEPTOS_HASH_FILES, so a deployment that sets them can drop them;LEPTOS_SITE_ADDRnaming another address thanserver.listenstill refuses the start. A proxy rule written for/pkg/(the hosted deployment’sCache-Controlfor it is removed) has nothing left to match (#4433). -
The viewer runs on
ferrohealth-server0.4.2 and takes its Content-Security-Policy from the family’s server-rendered console headers (FerroHEALTH/FerroSYS#202) in place of a layer of its own. The policy a deployment sees is unchanged:default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; connect-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none', with no nonce. FerroUI’s assets under/ferrohealth-ui/keep theCache-ControlFerroUI sets, and a refusal under that path isno-storewhatever FerroUI’s router sets, so a cache in front of the viewer keeps no error answer for an asset. The REST server takes the sameferrohealth-serverrelease with no change in what it serves (#4439). -
scripts/conformance.shruns the Veredictum 0.3.0 catalogue against one FerroEHR deployment: it reviews the party statement withveredictum validate, drivesveredictum testin the release image pinned by digest with Basic login, and writesresults.json, the HAR recording and the JUnit, CTRF and Markdown views todocs/conformance/ferroehr/. Docker or Podman runs it (CONTAINER_ENGINE). The FerroEHR statement now claims the 15 capability folders and answers every option of the 0.3.0 catalogue, and the IXIT keeps only what 0.3.0 reads (#4448). -
The published conformance record is a Veredictum 0.3.3 released-profile run, committed as
docs/conformance/ferroehr/results.jsonwith itssummary.md. The landing page and the book’s conformance page show the Veredictum badges of the released and development runs onmainand the record’s counts per part (BASE and OPTIONS), in place of the Veredictum 0.1.6 heat grid, chapter bars and tier pills. The docs and landing pages admit images fromraw.githubusercontent.com/FerroHEALTH/FerroEHR/for the badges (#4451). -
The measured performance lane runs Veredictum 0.3.3’s
perf.scripts/conformance.sh perfcomposes the conformance deployment with the measurement overlay, runs the pinnedclinical-mixworkload, checks the record withperf-judgeand redraws the book’s charts fromdocs/conformance/ferroehr/perf-result.json.scripts/conformance.sh perf-aameasures the deployment against itself, so the record carries its between-run noise floor. The measurement overlay also switches response compression off, and the IXIT names the deployment’s containers for the run’s server-side readings. The Performance and Benchmarks pages describe the new instrument. They keep the earlier figures until a record measured on the reference host replaces them (#4452). -
The serving roles may now analyze their store’s partitioned tables: new migrations (clinical 0026, party 0018) grant
MAINTAINonnode,versionandvo_attestation, and onclinical.ehr, toferroehr_clinicalandferroehr_party, so the hourly statistics refresh works under the role split.MAINTAINalso allowsVACUUM,CLUSTER,REINDEXandLOCK TABLEon exactly those tables. A role that still lacks it gets the warning naming the tables, as before (#4453). -
With the role gate on (
[authz.rbac] enabled), a bearer token whose SMART on openEHR resource scopes are allsystem/scopes, such assystem/template-*.r, now reaches a clinical operation without a role: it is a backend client, and its scopes decide what it reaches. Auser/orpatient/token belongs to a person and still needs at least one role, as does a token with no SMART on openEHR scope and a Basic user; an admin operation still needs the admin role (#4467). -
A tag update (
PUT …/tagson EHR_STATUS, COMPOSITION and the five party kinds) sent withPrefer: return=identifiernow answers200with the stored tag list andPreference-Applied: return=identifier. It answered204(#4475). -
The conformance deployment runs FerroTERM beside FerroEHR, pinned by digest, with
[terminology.server]pointed at it, locally inscripts/conformance.shand in the Conformance workflow, so theaql-terminology-supportedarm of the party statement runs against a real terminology server (#4476). -
The P_BMM model follows SPECLANG-16. The LANG 1.1.0 BMM that
openehr-codegenreads is now thespecifications-LANGfile atf80763ab, soP_BMM_SCHEMA.primitive_typesandclass_definitionsare maps keyed by class name,P_BMM_CLASS.ancestor_defsis a map ofP_BMM_BASE_TYPEkeyed by type signature (a simple ancestor included), andP_BMM_GENERIC_TYPE.generic_parameter_defsis an optional map keyed by formal parameter name. The formal and actual generic parameters (P_BMM_CLASS.generic_parameter_defs,P_BMM_GENERIC_TYPE.generic_parameter_defs,BMM_GENERIC_CLASS.generic_parameters) are insertion-orderedIndexMaps, because the specification fixes their declaration order, and the model builders bind each actual parameter to its formal by name. In the releasedv1_0generation,P_BMM_GENERIC_TYPE.generic_parameter_defsnow carries the1..*bound its BMM states. The nineopenehr-*crates step to 0.0.123 (#4497). -
The conformance pipeline runs Veredictum 0.3.1. The Conformance workflow drives the catalogue through the Veredictum Action twice, each run on fresh volumes: under the
releasedprofile, the frozen openEHR release, which is the record and decides the job, and under thedevelopmentprofile, the pinnedmasterof each openEHR repository, which is published beside it under its own job summary heading and artifact and never counted toward it. Both runs include the SMART documents: the Action now takes the SMART Platform base URL and the committed test issuer’s key. The workflow reads the result paths and the exit status from the Action’s outputs.scripts/conformance.shtakes the profile asCONF_PROFILE(releasedby default; adevelopmentrun writes todocs/conformance/ferroehr-development/) and drives the SMART documents in the same run, and the IXIT carries the test issuer’sscoped_tokensdeclaration (#4503). -
The viewer groups a template’s releases. The template list draws one group per template, the newest release first with the number of releases and the earlier releases under it, in both the ADL 1.4 and the ADL 2 tab. A template’s page names its release beside its title, where every other release is a link with the newest marked, also with FerroUI’s scripts refused; the release select and its Open button above the tabs are gone. The Overview lists the releases with the compositions committed against each, and a new Compare tab lists the paths one release adds, removes and changes against another (#4506).
-
Every write checks the committer against the login that authenticated the request where the server can compare them: a committer naming another login of the caller’s token issuer or of this server, or a
PARTY_SELFcommitter from a caller who is not the record’s person, is refused with a 403. A name only, or an identifier of another authority, is stored as sent. The direct writes (composition, EHR status, directory, EHR, demographic) now also refuse a committer that breaks its own rules with a 422, as the contribution path already did (#4520). -
An audit record no longer adds a row to
audit.audit_search_tokenfor its request id or for the version uid a create wrote. ITI-81entity.identifierfinds both from the record’s ownrequest_idandresource_idcolumns, through a new hash index onrequest_id(audit migration 0020), so the token table stays flat as requests are audited. Retention now deletes the search tokens that no remaining record names, among them the request id tokens of records written by 5.6.0-rc5 and earlier, and the database still refuses to delete a token a kept record names (#4524). -
A clinical or party node row below the root no longer repeats its archetype header, language and encoding: an archetype root’s
archetype_detailsandarchetype_node_idare rebuilt from thearchetypecolumn and a newrm_versioncolumn, and alanguageinISO_639-1and anencodinginIANA_character-setskeep only their code, in the newlanguageandencodingcolumns. Every reader puts the keys back where they stood, so the canonical JSON, every AQL result and the served key order are unchanged; a header of any other shape stays in the fragment. A vital signs version takes 17.1 KB instead of 21.6 KB and an International Patient Summary 131 KB instead of 159 KB. Migrationsext/0007,clinical/0028andparty/0020add the columns and the readers; no data is migrated, and a row written before keeps its whole fragment and reads the same (#4525). -
ext.storage_generation()reportsgeneration-4, the storage generation with the node header columns, and the storage benchmark records for it are committed underdocs/benchmarks/storage/generation-4/. Migrationext/0008changes only the label; nothing in the serving path reads it (#4525). -
Five response messages no longer name the openEHR Service Model. The admin dump route’s
400for a missingfile_sys_locnow reads “request body must carry a non-emptyfile_sys_locstring, a location on the server’s file system (FerroEHR’s own dump/load extension)”, and its400for anencodingmember reads “encodingis not accepted: FerroEHR’s own dump/load extension defines no encoding, so no value names one”. The admin activity-report400s fora_servicenow list the accepted service names (“query parametera_serviceis required: one of Admin, Definitions, …” and “query parametera_servicenames no platform service: … (expected one of …)”). The not-implemented answer ofstore_query_setreads “store_query_set is not implemented: no openEHR specification defines a query set”. Theopenehr-rmvalidation docs for the threePARTYandPARTY_RELATIONSHIPrelationship invariants now name the separate relationship container as FerroEHR’s own design against RM demographic §Party Relationships (#4531). -
Breaking for clients that relied on the remaining commit-audit leniencies: the audit rules of the CONTRIBUTION commit now hold on every write path (#4543).
- A
descriptionobject without_type, such as{"value": "…"}, is refused with 400 on a contributionaudit, acommit_auditand an attestation, and so is an attestationreasonwithout_type. Send{"_type": "DV_TEXT", "value": "…"}or aDV_CODED_TEXTwith its_type. - A stated empty
system_idis refused with 422 on the direct writes too (openehr-audit-details: system_id=""on a create, update or delete), where the server used to replace it with its own. Leavesystem_idout to get the server’s, or send a non-empty one. Asystem_idthat is not a string stays a 400 on both CONTRIBUTION routes. - A commit audit of type
UPDATE_ATTESTATIONhanded to the library’s direct write calls (create_composition,update_composition, the EHR_STATUS, DIRECTORY and party writes) is refused with 400, as on the CONTRIBUTION routes. Send the audit asUPDATE_AUDITand put each attestation in the version’sattestationslist.
- A
-
Members that
NewContributionorUPDATE_AUDITdo not declare, such as areasonoris_pendingon a plain audit or an extra top-level member of a contribution, are accepted and ignored: the released schemas leave both objects open (#4543). -
The
openehr-*crates take their version when they are published. A pull request that changes the crates no longer bumps their lockstep0.0.xversion: the crates publish reads crates.io, takes the next version when packaged content changed since the newest published one, and refuses to publish changed content under a version crates.io already holds. The version in the manifests onmaincan therefore trail the newest version on crates.io (#4555). -
The served Web Template of an ADL 2 operational template writes the
aqlPathof an ELEMENT’s value and of a data value’s parts without an[idN]predicate, since a data value carries noarchetype_node_id(ADL2master05-paths§“Relationship with W3C Xpath”). ADV_INTERVALand its parts read…/value,…/value/lowerand…/value/upper, the form the ADL 1.4 Web Template writes, where they read…/value[id6]/lower[id7]before, and the parts’ ids arelowerandupper(#4559). -
The served Web Template gives every
DV_INTERVAL<T>node itslowerandupperchildren, each of typeT, also when the operational template leaves them unconstrained (RMdata_types§DV_INTERVAL). Such a node had no children before. An unconstrained part carries the open inputs of its type, and itsaqlPathis…/value/loweror…/value/upper. This holds for ADL 1.4 and ADL 2 templates (#4559). -
The template example fills such an interval: an unconstrained part takes the example value of its constrained sibling, so the limits stay consistent (#4559).
-
The served Web Template of an ADL 2 operational template writes a coded input whose at-codes the template binds to a terminology as the bound terms: its
codelist carries each binding’s code and label and itsterminologynames the bound terminology (ADL2master08-terminology_integration§“From Constraints to Concrete Codes in Data”).COMPOSITION.categoryboundat1toopenehr::433reads{"value": "433", "label": "event"}withterminology: "openehr", where it read the localat1before, and an[acN@ttttt]constraint takes the bound terms of the terminology it names. A FLAT or STRUCTURED composition without a category, and the example composition, now carryopenehr::433. TheaqlPathof every data value drops its[idN]predicate, so a constrainedcategoryandcontext/settingread/categoryand/context/setting(#4574). -
A CONTRIBUTION’s
versions[]entry records its merge inputs: theother_input_version_uidsit states are stored on the committedORIGINAL_VERSIONand served on every read, where the server used to refuse the member with 400. The uids may name versions the server does not hold; an empty list or an entry that is not anOBJECT_VERSION_IDis a 422 (#4577). -
Other members
UPDATE_VERSIONdoes not declare, such asitemor an extension member, are accepted and ignored, where the server used to refuse them with 400: the released schema leaves the object open, as it doesNewContributionandUPDATE_AUDIT. Auidorcontributionon a version entry is still refused with 400, because the server assigns both, and so is a_typeother thanUPDATE_VERSIONorORIGINAL_VERSION(#4577). -
The admin dump route’s refusals name its parameters by their wire names and list the accepted values, not the Service Model class names. A bad
logical_formatorcompression_formatnow reads “<field>must be a string, one of …” or “<field>names no accepted value: … (expected one of …)”, and a non-integersegment_split_sizereads “segment_split_sizemust be an integer size in kb”. The served OpenAPI text for the route no longer namesEXPORT_SPECorEXPORT_FORMAT(#4634). -
Five archive dump and load failures still answer
500, and their bodies are now fixed text that echoes no value from the archive: (#4657)- an unreadable data segment no longer names the segment, though
manifest.jsonanddemographic-commons.jsonare still named; - an unknown logical format in the manifest no longer echoes the declared value;
- a version whose id carries a path separator, and a version whose commit audit the export lacks, no longer name the version.
- an unreadable data segment no longer names the segment, though
-
A failed expansion of a party’s protected national identifiers still answers
500, and its body now reads “expanding the protected identifiers of a party version failed” without echoing the requested version uid: a500body carries curated text only (#4657). -
Two query failures still answer
500, and their bodies now carry curated text only. A stored query whose record holds no query text reads “the stored query has no query text” without echoing its name, and a terminology server failure while aTERMINOLOGY('expand', …)operand is resolved reads “the terminology service failed while the query was being planned” instead of the upstream message (#4657). -
The
db_transactionscounter (outcome="commit") now counts every committed single-object write. It used to leave outEHR_STATUSand DIRECTORY writes (#4659). -
OPTIONSon the API base path sendsconformance_profileasBASE+OPTIONSwhere it sentSTANDARD. The build derives the value from the committed Veredictum record,docs/conformance/ferroehr/summary.md:BASE+OPTIONSwhen the BASE rows and the run OPTIONS rows have none failed and none errored,BASEwhen only the BASE rows do, and the member left out otherwise. ITS-REST 1.1.0 types the member as a free string and CNF names no profiles, so the values are FerroEHR’s own. The[rest.identity] conformance_profileconfiguration key is removed: a configuration that still sets it is refused at boot as an unknown key (#4672). -
The viewer answers every request other than
GETandHEADthat arrives without a session, to any path but the sign-in page, the OIDC routes, sign-out and the search answer, with the sign-in page that says the session ended, before any handler runs. A post to a page returns there after signing in; a post to the export, preference, sidebar or paging route returns to the dashboard. The export post used to answer303to/login, and the preference, sidebar and paging posts ran without a session (#4724). -
The conformance instrument is Veredictum 0.4.0, and the published conformance record (
docs/conformance/ferroehr/results.jsonwith itssummary.md) is a 0.4.0 released-profile run. The party statement answers the 0.4.0 catalogue: it keeps thexml-namespace-v2arm, which now asks only whether the TRIALhttp://schemas.openehr.org/v2namespace is also accepted, and selects the new development-profile option armadl2-id-coded-supported(#4771).
Removed
-
The conformance pipeline no longer runs EHRbase or the extra FerroEHR deployments.
docker/sut-ehrbase.yml, the EHRbase record and party set,docs/conformance/COMPARISON.md, the book’s Comparison with EHRbase page, and the openPGP-signing, fail-open and stable-spec compose overlays (docker/sut-signing-pgp.yml,sut-pgp-parallel.yml,sut-terminology-failclosed.yml,sut-terminology-failopen.yml,sut-spec-stable.yml) with the test signing keys undercorpus/keys/are gone.scripts/conformance.shno longer takesCONF_SUT,CONF_IXITorCONF_STATEMENT, and refusesCONF_PERF_CLASSandCONF_STRESSuntil the measured lanes move to the Veredictumperf/tree (#4448). -
The Veredictum pin watcher workflow,
scripts/checks/veredictum-pin.shwith itsveredictum-pin-guardjob, and theno-conformance-runlabel are gone: a pin bump now runs the new catalogue against its own build in the Conformance workflow (#4449). -
The Veredictum 0.1.6 conformance documents:
CONFORMANCE_REPORT.md,CONFORMANCE_STATEMENT.md,CONFORMANCE_CERTIFICATE.md,verdicts.json,run-exceptions.json, the CORE, STANDARD, OPTIONS, SEC-BASIC and performance badge files, and the heat grid and chapter bars the book and the landing page drew from them (#4451). -
The
CONF_PERF_CLASS,CONF_PERF_HOURSandCONF_STRESSsettings of the measured lanes are gone, along with the class runs, the step-load stress ladder and the AQL probe, which Veredictum 0.3.1 removed (#4452). -
The separate SMART step of the Conformance workflow, the
smartstage ofscripts/conformance.shwith itsCONF_SMART_OUT, anddocs/conformance/party/ferroehr/ixit-smart.jsonare gone: the one catalogue run covers the SMART documents. The party statement no longer carries theperformanceblock, which the Veredictum 0.3.1 statement schema refuses (#4503). -
The empty linkage storage domain is gone: its schema, its
ferroehr_linkagerole, the[storage.linkage]and[storage.migrate.linkage]configuration tables, its pool, thedatabase.linkageandbackup.linkagechart values, theferroehr-backup-linkagecompose job and thebtree_gistextension only its table needed. A configuration that still sets[storage.linkage]or[storage.migrate.linkage]is refused at boot as an unknown key. Cohort and AQL demographic join crossings still write theirlinkage-domain access records. Upgrade note: remove those keys and values before you upgrade. On a co-located database, migrationaudit/0021_drop_linkage_domain.sqldrops the schema, the role and the extension at the first boot, and raises aNOTICEfor any of them it cannot drop. When the linkage domain lived in a database of its own,[storage.audit]names another database, or the cluster holds more than one FerroEHR database, run in each such database, as a superuser or a member offerroehr_linkage:DROP SCHEMA IF EXISTS linkage CASCADE; REVOKE ALL ON SCHEMA ext FROM ferroehr_linkage; REVOKE ALL ON ALL FUNCTIONS IN SCHEMA ext FROM ferroehr_linkage; ALTER DEFAULT PRIVILEGES IN SCHEMA ext REVOKE EXECUTE ON FUNCTIONS FROM ferroehr_linkage; DROP OWNED BY ferroehr_linkage; DROP EXTENSION IF EXISTS btree_gist;thenDROP ROLE ferroehr_linkage;once per cluster. The released grant files still nameferroehr_linkage, so a first install whose migrator holds noCREATEROLEstill provisions that role and drops it after the first boot (#4684). -
A party migration drops the database function
party.resolve_national_identifier. No server path has called it since the linkage domain was removed (#4697). -
The viewer no longer reads
LEPTOS_SITE_ADDR: a value naming another address thanserver.listenno longer refuses the start.server.listen(FERROEHR_VIEWER__SERVER__LISTEN) sets the listen address (#4725).
Fixed
-
The hosted sandbox seeds its full demo dataset again. The v5.5.0 reseed stopped at the ADL 2 archetype library (233 stored / 89 refused against the pinned 231 / 91) because the box’s
.envstill forced FerroTERM 0.1.6, which reads none of the FerroTERM 0.3 settings the sandbox posture passes, so it served no LOINC and VETDF could only warn onbraden_scale’s mistyped LA9605-4. The corpus, the pin and the CDR were right. The seed now asks the CDR for a LOINC code before the library step and names a posture without LOINC (SANDBOX_TERMINOLOGY=without-loincopts a local run into 233 / 89), checks that the two files it names move together, and a corpus test holds the manifest’s pin to the adjudicated split with and without LOINC. The FerroPIX rollout script retires a staleFERROTERM_IMAGEoverride, checks that FerroTERM runs the pinned version and serves LOINC, and wipes before it seeds over an unfinished seed (#4278). -
The measurement overlay
docker/sut-measurement.ymlswitches the caller rate limiter off by removing the[server.caller_rate]keys, so the server logscaller rate limiting configuredwithenabled=falseat boot, instead of setting a rate of 4294967295 per second thatferrohealth-server0.3.5 truncated to a zero interval and that answered stray429s under concurrency.scripts/conformance.shrefuses to start a measurement stack whoseferroehrservice still sets a caller rate (#4281). -
A response to a request whose body FerroEHR left unread, such as a
404to aPOSTof a path it does not serve or a declared-length413, now carriesConnection: close. The connection closed after such a response without saying so, and a client that sent its next request on it met a closed socket, which a non-idempotent request cannot safely retry (RFC 9112 §9.6) (#4283). -
A
[server.caller_rate]above 1 000 000 000 requests per second no longer answers429to concurrent requests: such a rate now limits nothing, as its operator meant (#4283). -
Every request leaves one request line, a timeout
408, a declared-length413and the500of a panicked handler included, and a413for a body with no declared length that passes[server] body_limit_bytesis answered with the openEHR error body, as the declared-length413is (#4283). -
An AQL query whose
WHEREclause chains thousands ofNOT,ANDorORterms no longer overflows the stack and aborts the server. The parser refuses a query that nests brackets andCONTAINSdeeper than 64 levels or builds an expression deeper than 512 levels with400 Bad Request, before any recursive pass runs, on the ad-hoc, stored-query store and execution paths alike. A longORover one path is written asMATCHES {…}, which the bound does not count. A statement PostgreSQL refuses for its own complexity limit (SQLSTATE class 54) also answers400instead of500.openehr-querygainsParseError::TooDeep(#4284). -
An AQL query (ad hoc or stored) whose client disconnects, or that the server’s own
query.timeout_msor HTTP request timeout gives up on, no longer keeps its statement running and its pooled connection busy until the statement ends. The connection is closed instead of returned to the pool, so the slot frees at once, and every pooled session now sets PostgreSQL’sclient_connection_check_intervalto one second, so the backend stops the abandoned statement within about a second. The composition-count statistics behave the same way (#4285). -
The server’s resident memory no longer climbs under sustained load until the container’s memory limit kills it. The
ferroehrbinary now allocates through mimalloc instead of glibcmalloc, whose per-thread arenas kept freed memory and never gave it back. On a load test of 10 000 mixed jobs at 48 workers the peak resident set fell from 2.3 to 3.2 GB (growing run after run) to about 600 MB, and throughput rose by about a third (#4288). -
A request whose database connection a PostgreSQL restart, a crash or the network cuts now answers
503 Service UnavailablewithRetry-After, as a request that cannot get a connection already did, instead of500. SQLSTATE class08(except08P01),57P01,57P02,57P03and57P05, and a reset, aborted or closed socket on an open session count as such a cut (#4290). -
While PostgreSQL is down, requests that need the database answer
503withRetry-Afterabout a second after the first one starts waiting, and at once after that, instead of each queueing up todb.acquire_timeout_secs(30 seconds by default). An acquire that has waited a second tries one connection of its own; when that cannot reach the database, the outage is known until a fresh attempt connects, and requests are served again as soon as one does. A pool that is only busy keeps queueing as before (#4323). -
Superseding a composition or a party no longer slows down as its history grows. The foreign-key check that every new node and attestation row makes against its version could scan all versions of the object instead of probing one, depending on the planner statistics at the time: on the storage bench, superseding an object with a few hundred versions took about 14 ms instead of 9 ms when the plan flipped. Migrations
clinical/0022andparty/0013re-key the version-tree uniqueness constraintuq_version_treewith the object id last, so the check always probes the primary key. The constraint enforces the same uniqueness as before (#4340). -
The FHIR rendering of an access record
ehds-loggingdoes not classify (a template upload, a stored-query write, a template read) now carries the IHE BALP 1.1.4entity:dataslice its Create, Read, Update or Delete profile requires: type2, role4andwhat.identifier, naming the operation when the record names no object. HAPI FHIR’s validator refused the template upload record without it (#4353). -
A
+in a query string is a literal plus, as RFC 3986 §2.1 and §3.4 decode a URI query, on every ITS-REST operation and every extension route: a date-time offset such as2026-10-28T10:00:00+01:00or an AQL parameter sent with an unencoded+reaches the server unchanged, where it was read as a space. A space in a query value is sent as%20. This reverses the form-decoding of #3891: a client that writes a space as+now sends a plus. Theopenehr-*crates move to 0.0.114 (#4356). -
An AQL
EHR e[ehr_id/value='…']predicate whose value is not a UUID ('1234', the AQL 1.1.0 example) answers an empty result, as itsWHERE e/ehr_id/value = '…'spelling does, onPOSTandGET /query/aql; it was refused with400. Both spellings lower the EHR id comparison through one path, and a value the database cannot cast is refused with a message that no longer claims it came from a query parameter (#4378). -
A request sent on a kept-alive connection that sat idle longer than
[server] header_read_timeout_ms(30 s by default) is answered. The server used to close such a connection, sometimes while the request was arriving, so a client that reused it gotEOFwith no answer and no server log line, and a client that never retries aPOSTon a reused connection, such as Go’snet/http, reported a composition commit as failed. An idle connection now stays open until[server] idle_timeout_ms(120 s by default) and then ends cleanly before any new request byte; keep that limit longer than the idle timeout of your clients (90 s for Go) and of any load balancer in front (#4381). -
An AQL query with an archetype predicate no longer builds the archetype index bitmap of the whole store once per version. The planner multiplied the selectivities of the archetype columns, which each archetype fixes together, and expected about 15 000 of 545 067 blood-pressure OBSERVATIONs; a query over one EHR then took 38.8 s and answered
408. Clinical migration0021_archetype_statistics.sqlgives the columns a statistics object, and the same query takes 0.3 s (#4399). -
FROM PERSON p CONTAINS EHR e(and theORGANISATIONandROLEroots) joins a party to the EHR whoseEHR_STATUS.subject.external_refnames it, so a party created withPOST /demographic/personand an EHR created withPOST /ehranswer their row with no other call. Before, the join read only the party-to-EHR map, which no REST route writes, and answered no rows on a deployed server. The reference matches when itsid.valueis the party’s uid without::<system>::<version>and itstypeis the root class or its RM ancestor (ACTOR,PARTY), in any namespace; an EHR linked both ways answers once (#4411). -
An AQL projection whose path ends on a list attribute inside a node’s data (
c/feeder_audit/originating_system_item_ids,c/links,c/context/participations,c/composer/identifiers,.../mappings) answers the list itself,[{…}, {…}], andnullwhen the list is absent. It answered the list wrapped in a second list,[[{…}, {…}]]; a client that unwrapped that outer array reads the column directly now. A path that continues below a list (.../originating_system_item_ids/id) still answers the array of its matches,["…", "…"].COUNTover a path ending on a list counts its elements (#4413). -
Reading one version of a composition, EHR_STATUS, folder or party by its version id no longer slows down as the object’s history grows. Once a connection reused its prepared read, the plan scanned every version of the object and kept the one asked for: on the storage bench’s history of 500 versions such a read touched about 520 buffers instead of 12 to 24. Migrations
clinical/0023andparty/0014add an index on the version tree id columns of both storage tiers, so the read probes the one version it returns (#4420). -
An audit store that 5.6.0-rc2 migrated starts again. Audit migration 0017 changed after 5.6.0-rc2 shipped it, so the server refused such a store on the migration’s checksum at boot. 0017 is back to its 5.6.0-rc2 text, and the new audit migration
0019_search_tokens_pending_list.sqlgives the search token index its pending list of 512 kB, so a store that 5.6.0-rc2 migrated upgrades in place (#4424). -
An AQL query ordered by
c/uid/valuewith aLIMITno longer starts a parallel worker on every call, and no longer switches between that plan and a sort of the whole join depending on the planner statistics. The version uid it sorts on had no index, so the planner sorted the version rows through a parallelGather Merge, which costs a worker’s start-up per query on a server of any size: about 19 ms on the storage bench’s CI runner, where the two flat-shape path reads measured 23 ms in some rounds and 42 ms in others. Migrationsclinical/0024andparty/0015add an index on the uid expression of the hot version partition, so the query reads versions in uid order from it in one backend and stops at the limit (#4429). -
An AQL query that reads values along a path no longer spends up to a second compiling itself before it runs. Each path step was bound through a set-returning function that PostgreSQL estimates at ten rows, so a chain of steps multiplied the row estimate tenfold per step: the planner chose join orders for a statement millions of times larger than the real one and switched on JIT compilation for it. On the storage bench, a wide projection of 9 values over one EHR read in 1 s instead of 15 to 20 ms, and an ordered WHERE on a magnitude in about 0.5 s instead of 50 ms (#4430). Each step is now a
LATERALsubquery that the planner estimates from its own plan; results do not change (#4431). -
An AQL lookup by an ELEMENT value, such as a person by an identifier (
WHERE id/items[at0001]/value/id = $v) or a composition by a text value, read every node of the archetype in both stores and tested the value last: about 350 ms at 50 000 persons. The engine now anchors such an equality on the ELEMENT rows of the same version by their search text (ext.node_search_text, ext migration0006), which the new partial expression indexidx_node_hot_value_searchand its statistics object serve (clinical migration0025, party migration0016), so the lookup reads the one object: 26 buffers and under a millisecond at 50 000 persons. The party store also gets the archetype dependency statistics the clinical store has had since 5.6.0-rc2 (party migration0017). The storage bench measures the lookup asperson_identifier_lookup(#4437). -
The revision history and every point read of a version now reach the version’s commit audit through a lateral subquery that probes
pk_commit_auditby key once per version row, so stale statistics on the partitionedversiontable can no longer turn the read into a walk of the whole commit audit index (1 318 buffers against 21 for a four-version object beside 1 300 others) (#4438). -
A revision history or a current-version read of a COMPOSITION committed after the partitioned
versiontable last had statistics could walk the whole commit audit index: the planner held the highest commit audit id of the seed for the highest there is and rated a merge join overpk_commit_auditas cheap. On a store of 1 300 compositions the history of a four-version object read 1 318 buffers instead of 21, and the storage bench readrevision_historyat about 440 buffers per call in 3 of 8 rounds. The server now keeps the partitioned parents’ statistics (#4453), and each read probes the commit audit by key (#4438). -
An AQL lookup of an EHR by the subject of its EHR_STATUS (
WHERE e/ehr_status/subject/external_ref/id/value = $u AND e/ehr_status/subject/external_ref/namespace = $n) joined every EHR_STATUS version and read the subject out of its stored fragment: about 150 ms on a store of a few thousand EHRs. The two leaves now read the EHR row’ssubject_idandsubject_namespace, the copy the commit keeps of the current EHR_STATUS subject, so the lookup enters throughuq_ehr_subjectand reads one row. The storage bench measures it asehr_by_subject(#4442). -
The partitioned tables
node,versionandvo_attestationof the clinical and party stores never had planner statistics of their own, since autovacuum does not analyze a partitioned table, so the planner estimated joins over them without any (PostgreSQL 18 §24.1.3). The server now runsANALYZE ONLYon them, and onehrwhile autovacuum has never analyzed it, after applying the migrations, afterload_ehrs, at boot and every hour. The role it runs as needs theMAINTAINprivilege on those tables; without it the server logs the tables it could not analyze. The populationCONTAINSof an archetype now enters throughidx_node_hot_arch_subsume(3 703 buffers to 1 745 on the storage bench’s seed) (#4453). -
A party delete (
DELETE /demographic/{agent,group,organisation,person,role}/{uid_based_id}) and the party relationship delete now answer400when the path names the versioned object instead of its latestOBJECT_VERSION_ID, and delete nothing. They answered204and deleted the current version. The release requires thepreceding_version_uidin that path (ITS-RESTagent_delete.yamland its four siblings) (#4478) (#4458). -
A CONTRIBUTION member outside the operation’s member set, a party in an EHR CONTRIBUTION or a FOLDER in a demographic CONTRIBUTION, now answers
400as a body that fails the request schema. It answered422(#4459). -
A party update whose body carries no
uidnow checks each relationshipsourceagainst the party the path names and refuses a foreign source with422, as RMRelationships_validityrequires. The check ran only when the body carried auid, so such an update committed a relationship sourced at another party (#4460). -
An ADL 1.4 template upload whose XML ends with an element still open now answers
400, as for any document that is not well-formed XML. The well-formedness gate stopped at the end of input without checking that every element was closed, so a truncated upload answered422(#4461). -
A canonical JSON body that the published ITS-JSON schema admits and the RM refuses, such as a
DV_URIorDV_EHR_URIwithoutvalueor aDV_INTERVALlimitDV_ORDINALwithoutsymbol, now answers422naming the member, on the direct commit routes, the CONTRIBUTION members and the party commits. A body the schema refuses still answers400. All of them answered400(#4463). -
A directory create or update whose root FOLDER names an archetype in
archetype_node_idand carries noarchetype_detailsnow answers422and commits nothing: an archetype root carriesarchetype_details(RM common §The LOCATABLE Class). FerroEHR created such a directory. A553|incomplete|commit and a nested FOLDER keep it optional. The viewer’s empty directory root now carriesarchetype_details(#4464). -
AQL
EHR e NOT CONTAINS <class expression>now runs and returns the EHRs that hold no matching object. It was refused as unsupported with400(#4465). -
An AQL comparison between a
DV_DATE_TIMEpath that ends on the data value itself, such asc/context/start_time, and a date-time literal now compares the instants both name, so values with different offsets compare correctly. The comparison read the whole data value and matched nothing (#4466). -
A container member whose node id names an object constraint of the template but whose RM type conforms to none of them, such as an ELEMENT where the template allows only a CLUSTER, is now refused with
422. Only the opposite direction was refused (#4468). -
An ADL 1.4 template upload with
Prefer: return=representationnow answers the representationAcceptnames: the OPT XML, or the Web Template underapplication/openehr.wt+jsonorapplication/json. AnAcceptoutside those answers406and stores nothing. The upload always answered XML (#4469). -
A Simplified Format COMPOSITION commit without the
openehr-template-idheader, and a flat|rawvalue without_type, now answer400. Both answered422(#4470). -
A Simplified Flat or Structured
…/action_archetype_idnow sets the StringACTIVITY.action_archetype_id, and the flat output writes it back. The converter built an object from the template’s string constraint, so the commit answered422(#4471). -
ctx/action_ism_transition_current_state, as a rubric or a code, now setsACTION.ism_transition.current_stateof every ACTION the document gives no state. The converter wrote524|initial|first and the context value never applied (#4472). -
ctx/instruction_narrativenow becomesINSTRUCTION.narrativeof every INSTRUCTION the document gives no narrative. A placeholder<narrative>was stored instead (#4473). -
The Simplified Flat
DV_INTERVALsuffixes|lower_unbounded,|upper_unbounded,|lower_includedand|upper_includedare now read on an interval whose bounds are template nodes, and the flat output writes an unbounded flag when true and an included flag when false. The suffixes were refused as unknown with422(#4474). -
An AQL query aimed at named EHRs (the ITS-REST
ehr_idparameter) reads those EHRs’ objects first and each object’s own content after them, whatever the planner statistics say. When an archetype’s rows fell out of the most-common-value list of the archetype statistics, the planner estimated them at one row and could start from that archetype over the whole population, evaluating every projected path for every EHR’s rows before the EHR filter: the storage bench’s wide projection over one EHR read about 10 000 pages per call in some rounds and 1 200 in others. A node contained in a versioned object is now read inside its parent on such a query; results do not change (#4487). -
AQL
TERMINOLOGY('expand', …)against a FHIR terminology server takes the value set from theurlargument whenparams_uriis the$expandquery form (url=http://…), as the openEHR AQL examples write it, and still takes a bare value-set URL as it is. A query form withouturlis a 400 that names the missing argument. Before, the wholeparams_uriwent to the server as the URL, and the query was answered 400 because the value set was not found (#4488). -
AQL
TERMINOLOGY('validate', …)andTERMINOLOGY('subsumes', …)keep aparams_uriargument whole when its value carries a?, as the QUERY master03 exampleurl=http://snomed.info/sct?fhir_vsdoes. Before, the arguments were read from after the first?anywhere inparams_uri, so the value-set URL reached the terminology server truncated and the arguments before it were lost. Aparams_urithat starts with a path still has its arguments read from after the path’s?(#4490). -
An ADL 2 template whose constituent archetype the CDR does not hold is refused at upload, with a
422whoseerrorscarry oneVARXRentry per missing archetype (AOM2C_ARCHETYPE_ROOTvalidity rule VARXR); the 2013 CKMt_encounter_opt_test, built on the refusedapgar, no longer loads, so the sandbox library pin is 231 accepted / 91 refused. A stored template whose constituent was deleted later answers its JSON form and example with the sameVARXRlist, and the viewer says so on every tab of the template, names each missing archetype and links to uploading it, instead of a raw422(#4505). -
ADL 2 validation admits a constraint on an RM computed attribute. VCARM accepts an attribute “stored or computed” (AOM2
master04.5§Validity Rules:C_ATTRIBUTE), and a function with no arguments is a computed attribute (master04.2§Attribute Nodes), so an archetype that constrainsDV_PROPORTION.is_integral,DV_QUANTITY.is_integralorEVENT.offsetis no longer refused with422. The generated RM model (openehr_rm::v1_2::model) now carries each class’s computed attributes from the BMM functions (RmClass::computed_attributes,computed_attribute).openEHR-EHR-CLUSTER.microscopy_prostate_carcinoma.v1.0.0from the 2013 CKM ADL 2 export now uploads, and the sandbox archetype-library pin moves to 232 accepted and 90 refused.DV_QUANTITY.property, which no RM release defines, stays refused. The nineopenehr-*crates step to 0.0.124 (#4513). -
DELETE /ferroehr/rest/extensions/v1/definition/artefact/adl2/{artefact_id}refuses with409 Conflictwhile another stored ADL 2 artefact does not compile without the one deleted (a slot filler, ause_archetypereference or a specialisation parent, directly or through another artefact), and the message names every one of them. Before, the delete succeeded and left each template built on the archetype unable to compile (#4522). -
The viewer’s ADL 2 template upload names each violation the CDR found when it refuses the source: every AOM2 rule code with the CDR’s words for it, so a template whose constituent archetype the CDR does not hold names that archetype (
VARXR). The upload now asks forPrefer: return=representation, the preference under which ITS-REST lets a4xxcarry its error details, and reads the stored template’s id from theETagof the201(#4523). -
An ADL 2 operational template whose included archetype reuses the template’s node ids uploads again, where it was refused with
422under VCOSU. Node-id uniqueness now holds per archetype and restarts at eachC_ARCHETYPE_ROOT(AOM 2 VCOSU, “unique within the archetype”), and on an operational template the codes and interior node ids below a root are judged against that constituent’s entry incomponent_terminologies(OPT 2master03-opt_raw). A duplicate node id inside one archetype is still refused. The nineopenehr-*crates step to 0.0.125 (#4529). -
The viewer’s dashboard draws the EHR or composition count as unavailable, with the reason in plain words, when the CDR answers its count query with a result set of another shape (no row, several rows, an empty row, several values, or a value that is no whole number), where it drew 0 before. The template Releases table draws such a count the same way. A real zero still draws 0 (#4533).
-
An ADL 2 operational template upload runs the terminology integrity rules (VTLC, VATCV, VTVSID, VTVSUQ, VTVSMD, VTTBK, VTCBK, and VTSD where the level is carried) on each
component_terminologiesentry, and each violation names the component’s archetype id (#4536). -
A COMPOSITION committed against an ADL 2 operational template is validated against the template’s leaf constraints, where it was stored with
201whatever it held. An inlined archetype recorded by its complete identifier (openEHR-EHR-OBSERVATION.x.v1.0.0, BASEmaster07-referencing§Reconstitutability) now matches its template node, so theC_INTEGER,C_REAL,C_STRING,C_BOOLEAN, tuple, value-set and cardinality constraints below it answer422(AOM 2master04.5). An archetype root the template does not inline is refused as a node the template does not define, and aC_INTEGERorC_REALlist ({10, 15, 20}) admits each of its values where only the first was read. Canonical, FLAT and STRUCTURED commits take the same check. The nineopenehr-*crates step to 0.0.127 (#4540). -
A versioned read whose
versionpath segment is no SEMVER version and no{major}or{major}.{minor}prefix, such asv1.x,1.xor01, now answers400before any lookup, where it answered404(parameters/path/version.yaml,responses/400.yaml). This covers the ADL 2 template readGET /definition/template/adl2/{template_id}/{version}, the stored-query readGET /definition/query/{qualified_query_name}/{version}and both stored-query executions at a version,GETandPOST /query/{qualified_query_name}/{version}. A well-formed version the server does not hold still answers404(#4541). -
A FLAT or STRUCTURED read of a COMPOSITION committed against an ADL 2 operational template returns the content below an inlined archetype that the composition records by its complete identifier (
openEHR-EHR-OBSERVATION.x.v1.0.0, BASEmaster07-referencing§Reconstitutability). The read left out everything below such a root with no error; it now matches the root to its template node the way the commit does. The nineopenehr-*crates step to 0.0.128 (#4551). -
A COMPOSITION committed against an ADL 2 operational template whose
C_INTEGERorC_REALconstraint is a union of ranges (for examplemagnitude matches {|0..5|, |10..15|}) is refused with 422 when the value lies outside every range. Such a value was stored. The served Web Template does not change: its inputvalidation.rangeholds one range, so a union leaves it out, as before, and the check runs on the commit (#4552). -
A FLAT or STRUCTURED read of a COMPOSITION committed against an ADL 2 operational template returns the value of an ELEMENT that holds a
DV_INTERVALwhoselowerandupperthe template constrains. The read left the value out with no error (#4559). -
A FLAT or STRUCTURED read of a COMPOSITION returns the value of an ELEMENT that holds a
DV_INTERVALwhose template leaves the interval’slowerandupperunconstrained, for ADL 1.4 and ADL 2 templates. The read left the value out with no error, and a FLAT or STRUCTURED commit could not name the parts (#4559). -
A COMPOSITION written from FLAT or STRUCTURED against an ADL 2 operational template carries what a canonical body built to that template carries. A node the template gives no term text, such as the HISTORY and ITEM_TREE of an OBSERVATION, is named for its RM type (
History,Tree) instead of its bare id-code (id2). Every inlined archetype root records the complete identifier the template names (…cnf_minimal.v1.0.0, BASEmaster07-referencing§Reconstitutability) in itsarchetype_node_idandarchetype_details.archetype_id, andarchetype_details.rm_versionis the template’srm_release. Before this change the root recorded the interface form (…v1) and the server’s RM 1.2.0. Compositions built against an ADL 1.4 template keep their major-version archetype ids and RM 1.2.0 (#4560). -
ferroehr reportin a release build names theopenehr-*crate versions that release published to crates.io: the release lanes stamp the published version into the checkout before they build the server, where the report used to name the floor the source tree holds. A newopenehr_crates_originfield sayspublishedfor a release build andsource_treefor any other, a pre-release included (#4565). -
An ADL 2 archetype reference resolves to one defined stored release: an interface reference (
….v1) takes the newest release of its major version, a reference with a minor or patch version narrows the match to it, and an alpha or beta version matches only its full identifier (BASE Artefact Identification, Referencing). With several releases of one archetype stored, a template upload, an operational template and the delete’s dependents check used whichever release PostgreSQL returned last, and a reference to a major version no stored release carries resolved to another major version (#4567). -
An ADL 2 upload and an ADL 2 delete no longer race. An upload validated before a concurrent delete of an archetype it uses committed could store a template whose constituent was gone. Both now hold one transaction-scoped advisory lock from the repository read to the commit, so the second write decides on what the first committed: an upload after the delete is refused with
VARXR, and a delete after the upload is refused with a409naming the template (#4568). -
The syslog form (DICOM PS3.15, IHE ITI-20) of an EHR-level audit record names its object beside the patient, as a URI participant object with the id its FHIR
AuditEventnames. The record of placing, releasing or expiring an EHDS Art. 3(3) access delay names the held composition asaccess-delay:<vo>, so an Audit Record Repository fed by syslog can tell which composition a hold covers (#4569). -
An ADL 2 template or archetype that references two major versions of one archetype (
….v1and….v2), or one archetype under two namespaces, now compiles against both: theopenehr-adlrepository holds an artefact under its namespace, archetype and major version, and resolves each reference within that key (BASE Artefact Identification, Referencing). A reference without a namespace now resolves in the namespace of the artefact that makes it, and never in another namespace (#4579). -
A read of a stored ADL 2 template by a partial id or a
version(GET /definition/template/adl2/{template_id}) now resolves the way template compilation does: withv1.0.0stored besidev1.0.0-rc.1,….v1,….v1.0andversion=1.0.0answer the release in either upload order, and the release candidate is read only by its full version (BASE Artefact Identification, Referencing) (#4580). -
A write that sends no committer, on a route that takes a bare RM body (the
EHR_STATUS, COMPOSITION and DIRECTORY writes, and the demographic party and relationship writes), now records a Bearer caller’s login as issued by the token issuer, as EHR creation and every other default committer already did. It recorded the issuerferroehrfor every caller before; a Basic caller’s login is still issued byferroehr(#4585). -
The viewer’s ADL 1.4 template upload opens the stored template’s page, read from the
ETag(else theLocation) of the CDR’s201, where it went to an address with no template id. A refused upload names each violation the CDR found, its rule code or path and the CDR’s words for it, as the ADL 2 upload does: the upload asks forPrefer: return=representation, the preference under which ITS-REST lets a4xxcarry its error details (#4596). -
A
422validation refusal tells the client to sendPrefer: return=representationonly when the request did not send it; a request that sent it receives the violations inerrorsand adetailwithout the advice (#4597). -
An EHR Extract import refusal for a received version now names that version’s position in the extract (
chapters[i]/items[j]/item/versions[k]), so an importer can find the defectiveORIGINAL_VERSIONin a large extract (#4602). -
The import reads a version’s
other_input_version_uidswith the parser the CONTRIBUTION path uses and refuses an entry that is not anOBJECT_VERSION_ID, where it used to drop the entry. On the wire the extract decode already refuses such an entry with 422, so the import stays all or nothing (#4602). -
An AQL archetype predicate matches the namespace exactly and reads the version it names as the oldest release it accepts within the major:
org.a::…no longer finds data recorded inorg.b, an id without a namespace finds only data recorded without one, and.v1.4.2no longer finds data recorded underv1.0.0(BASE Artefact Identification §Referencing and §Supporting Archetype-based Querying; #4629, #4630). -
A query naming a parent archetype finds the data of a specialised child release only when that release declares a parent release at or after the queried one. Before, once one stored release of the child qualified, the data of every release of it was returned (BASE Artefact Identification, Referencing §Supporting Archetype-based Querying; #4637).
-
POST /definition/template/adl1.4andPOST /definition/template/adl2answer400for every invalid template, the only refusal ITS-REST 1.1.0 declares for both uploads besides the409duplicate. An OPT that breaks the OPT 1.4 schema, an ADL 2 source that breaks an AOM2 rule such as VCORM or VCARM, and an ADL 2 template whose constituent archetype is not held were refused with422. The problem keeps itsdetailand, withPrefer: return=representation, itserrors. Upgrade note: a client that read a422from a template upload reads a400, with the samedetailanderrors, under theabout:blankproblem type (#4643). -
A directory create or update whose FOLDER carries an empty
foldersarray, at the root or in a sub-folder, is refused with400and commits nothing. The ITS-JSON FOLDER schema givesfoldersminItems: 1, and the canonical JSON reader now refuses the empty array the same way in every document that carries a FOLDER, a CONTRIBUTION included. The viewer leavesfoldersout of a folder with no sub-folders (#4644). -
A canonical XML FOLDER, EHR_STATUS, PERSON, AGENT, GROUP, ORGANISATION, ROLE or PARTY_RELATIONSHIP document now has the root element
itemswithxsi:typenaming its class, the element the ITS-XML schemas publish for a LOCATABLE (Structure.xsd). The directory reads (latest, by version and at a time), the EHR_STATUS reads, the demographic reads and the demographic template examples served<folder>,<ehr_status>,<person>and the like, which no ITS-XML schema declares. XML input accepts the same form (#4645). -
POST /definition/template/adl1.4builds the template’s Web Template before it stores the template, so a template it cannot build is refused with400and nothing is stored. Once the template is stored, the upload answers201with itsLocation; withPrefer: return=representationand a Web TemplateAcceptit serves the Web Template built before the store, and the OPT if that cannot be served. It no longer answers422for a template it has already stored (#4647). -
A composition whose HISTORY carries
events: [], and an AGENT, GROUP, ORGANISATION or PERSON carryinglanguages: [], are refused with400and commit nothing. The ITS-JSON schemas give both arraysminItems: 1, and the canonical JSON reader now refuses the empty array as it does an empty FOLDERfolders. The FLAT builder no longer writes an emptyeventsfor a HISTORY that has no event (#4648). -
A write to a restricted COMPOSITION (
POST,PUTorDELETEon/ehr/{ehr_id}/composition) refused under a GDPR Art. 18 restriction now answers with theprocessing-restrictedproblem type, as the reads of a restricted record already did, in place of the genericforbiddentype. The status stays403(#4657). -
When an
EXTRACT_SPECcriterion’s AQL runs past the query time budget, the400body now states the timeout as plain text. It used to start with a control-character marker that was only ever meant for the server itself (#4657). -
Under a separated clinical credential,
POST /ehr,PUT /ehr/{ehr_id}and anEHR_STATUSupdate that name a subject no longer fail with a database error: the subject pseudonym guard reads the deployment posture, and the clinical role now holdsSELECTonext.posturethrough theextmigration0009(#4675). -
A cohort that names its subjects now finds, under
[ehr_index] provider = "local", the EHR created overPOST /ehrwith that subject in itsEHR_STATUS; it read a cross-reference table no route wrote, so it matched nothing. A cohort predicate and the AQL demographic join resolve a party to the EHRs whoseEHR_STATUS.subjectnames it. TheEHR_STATUSsubject is now the one source of which EHR belongs to which subject. Upgrade note:linkage.subject_ehrand thelinkage.erase_ehrfunction go with thelinkageschema, which audit migration0021drops with the linkage domain. Rows written there through the service API are dropped with the table; the EHRs they named keep their subject in their ownEHR_STATUS(#4675). -
The identifier scan (
[privacy.identifier_scan]) no longer refuses aDV_IDENTIFIERwhosetypedeclares an item rather than a person, such as a laboratoryfiller_order_numberthat passes the NHS Number check by chance. ADV_IDENTIFIERinFEEDER_AUDIT.originating_system_item_idsorfeeder_system_item_idsis scanned only when itstypenames a person identifier. Atypenaming a person (patient,NHS,BSN,social securityand similar) keeps the value scanned in every slot, and free text and untyped identifiers in clinical content are scanned as before. The default rule set is unchanged; a deployment that knows its jurisdictions still narrowsrules, so a Dutch one withrules = ["nl-bsn"]never claims an NHS Number (#4702). -
An inline primitive constraint in a parsed archetype or template now carries the node id AOM2
ADL_CODE_DEFINITIONS.Primitive_node_iddefines,at9999in an at-coded archetype andid9999in an id-coded one, where it carried the constant’s namePrimitive_node_id. An ADL 1.4 archetype converted to ADL2 gets the id-coded form (#4739). -
The ABAC policy-enforcement point checks every item-tag operation as it checks its target: a COMPOSITION tag read after the call like the COMPOSITION read, a COMPOSITION tag write before the call with the tagged version’s template, category and origin, and the EHR tag read before the call like the EHR read. These operations were unchecked before, so a patient-scoped or template-scoped rule now refuses a tag read or write wherever it refuses the target’s read or write. A COMPOSITION tag read also falls under the
EHR_ACCESSprivacy ceiling and its audit record names the tagged COMPOSITION (#4768). -
Under
spec_profile = "stable", a canonical-JSON party read lists inreverse_relationshipseveryPARTY_RELATIONSHIPanother party’s current version carries with this party as its target, oneLOCATABLE_REFeach naming the source party’s version container and the relationship’s path, as RM 1.1.0 §Party Relationships requires. The development profile, whose RM 1.2.0 makes the attribute a function, is unchanged. The released-profile conformance run now judges the server on the stable profile (#4775).
Security
Shipped with functional changes because: both fixes exist only in ferrohealth-server releases that carry functional changes in the same serving path beside them (0.3.7 two fixes, 0.3.8 and 0.3.9 the problem details module, the kept listener TLS and the unmasked remedy), so there is no security-only release of the crate for FerroEHR to take, and the client CA refusal ships in the release candidate the advisory names.
-
FerroEHR takes
ferrohealth-server0.3.7 in place of 0.3.5 (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 about 8400 silent connections from a client with no credentials exhausted the quickstart’s file descriptors and the CDR stopped answering, health checks included; the listener then retried a failedacceptat once and logged every failure. Such a connection now closes once[server] header_read_timeout_mspasses (30 s by default), counted from accept, and after anEMFILEorENFILEthe listener pauses up to 1 s before it accepts again and logs one warning every 10 seconds (#4283). -
A
[server.tls]table that setsclient_ca_filewithclient_authatnone, written or by default, is refused at load, naming the setting (GHSA-52mf-qg39-4q4j). Before 5.5.0 a client CA alone meant that every client presents a certificate; 5.5.0 moved the listener ontoferrohealth-server, whereclient_authdefaults tononeand the CA was read and ignored, so a configuration carried over passedconfig checkand served without asking a client certificate. FerroEHR takesferrohealth-server0.3.9, which refuses it and names the remedy in full. A 5.5.0 deployer who setsclient_ca_filesetsclient_auth = "required"beside it. The default template no longer pairs a client CA withnone, and says what eachclient_authvalue does (#4349). -
CVE-2026-84243, the glibc gettext
LANGUAGEdirectory traversal (GLIBC-SA-2026-0025), has no Debian fix for trixie yet and is judgednot_affectedin every image. Theferroehrandferroehr-viewerprograms never leave the C locale, so glibc ignoresLANGUAGEand opens no message catalog (security/vex/ferroehr-os.openvex.json). Inferroehr-postgresonly the container environment the operator writes can setLANGUAGE; no database connection can (security/vex/postgres-os.openvex.json) (#4500).
5.6.0-rc7 - 2026-11-01
5.6.0-rc7 is the seventh release candidate of 5.6.0, published for testing. It carries the CONTRIBUTION break of 5.6.0-rc6: POST /ehr/{ehr_id}/contribution and POST /demographic/contribution read the body through the released NewContribution schema and answer 400 for a lifecycle_state that is no DV_CODED_TEXT, a description that is a plain string or an object without _type, an audit without change_type, an audit typed ATTESTATION or UPDATE_ATTESTATION, a missing audit or versions, and a preceding_version_uid sent as a plain string, and a stated empty system_id is refused with 422 on every write path (#3595, #4543). These notes carry every change since 5.5.0, those of the 5.6.0-rc6, 5.6.0-rc5, 5.6.0-rc4 and 5.6.0-rc3 sections below included. New since 5.6.0-rc6: the EHDS Art. 10 opt-out from access through the access services, off by default until [authz.rbac] access_service_roles declares the access-service roles, with the Art. 10(2) vital-interest override marked as an emergency (#4516); every write’s committer checked against the authenticated caller (#4520) and a Bearer caller’s default committer issued by the token issuer (#4585); ADL 2 FLAT and STRUCTURED writes that carry the names, archetype references and RM release the template gives (#4560), a served Web Template that writes a bound coded input as the bound terms (#4574) and gives every DV_INTERVAL its lower and upper parts (#4559); ADL 2 validation that checks a C_INTEGER or C_REAL union of ranges (#4552), a repository keyed by namespace, archetype and major version (#4579), a read that resolves a release before its pre-releases (#4580) and an upload and a delete ordered by one lock (#4568); an AQL archetype predicate that matches the namespace exactly and the version as the oldest release (#4629, #4630); a CONTRIBUTION that records its merge inputs and accepts the UPDATE_VERSION members the schema leaves open (#4577), and an EHR Extract import that refuses a malformed merge input and names the version’s position (#4602); the syslog form of an access-delay record naming the held composition (#4569); the viewer’s ADL 2 and ADL 1.4 uploads naming each violation the CDR found (#4523, #4596); storage generation 4 and its benchmark records (#4525); ferroehr report naming the published openehr-* crate versions in a release build (#4565); and response texts without the Service Model vocabulary (#4531, #4634). The conformance run on main under the released profile fails no row against the server and still has one errored row, Veredictum’s own (Vernum-Projecten/Veredictum#964, closed upstream after the pinned 0.3.2, which still errors on it), and the triage on #4455 stays open, so this candidate does not claim a green Veredictum record. 5.5.0 stays the stable release: this pre-release moves neither the latest image tags, the book under /docs/latest/ nor the hosted sandbox, it publishes no crates, and it receives no fixes; the next release candidate or 5.6.0 itself replaces it. Before you try it: a write whose committer names another login of the caller’s token issuer or of this server, or a PARTY_SELF committer from a caller who is not the record’s person, answers 403, and a direct write whose committer breaks its own rules answers 422; a write that sends no committer on a bare RM body route records a Bearer caller’s login as issued by the token issuer, where it recorded ferroehr; an AQL archetype predicate matches the namespace exactly and reads the version it names as the oldest release it accepts, so a query may find less than before; a FLAT or STRUCTURED composition under an ADL 2 template records the complete archetype identifier and the template’s rm_release, and the served Web Template writes a bound coded input, COMPOSITION.category among them, as the bound terms (openehr::433) where it wrote the local at-code; a CONTRIBUTION commit must take the shapes above; a write under a token whose SMART resource scopes are all patient/ scopes records PARTY_SELF as committer and may change only what the person committed, and a service auth_failure answers 403 where it answered 500; a versioned read whose version is no SEMVER version or prefix answers 400 where it answered 404; the served Web Template of an ADL 2 template writes a data value’s aqlPath without an [idN] predicate; a composition that breaks an ADL 2 template’s leaf constraint, and an ADL 2 template whose constituent archetype is not held, answer 422; every route ITS-REST 1.1.0 does not define moves from /ferroehr/rest/openehr/v1/ to /ferroehr/rest/extensions/v1/, and the ITI-81 retrieval to /ferroehr/rest/fhir/r4/AuditEvent, with no redirect from the old paths; an error body is application/problem+json, so a client that read message reads detail, and one that read validationErrors sends Prefer: return=representation and reads errors; audit migration 0017 refuses an audit store that holds records written by 5.5.0 or earlier, while an audit store that 5.6.0-rc2 migrated upgrades in place; a [server.tls] table with client_ca_file must set client_auth = "required" (or "optional") beside it, or the configuration is refused at load; [server] header_read_timeout_ms no longer bounds an idle kept-alive connection, which the new [server] idle_timeout_ms (120000 by default) closes, so keep it longer than the idle timeout of your clients and load balancers; a client that wrote a space as + in a query string sends %20; a party delete names the latest OBJECT_VERSION_ID in its path and answers 400 for a versioned object id; a body the RM refuses after the ITS-JSON schema admits it answers 422, and a misplaced CONTRIBUTION member, a Simplified Format commit without openehr-template-id and a flat |raw value without _type answer 400; a tag update under Prefer: return=identifier answers 200 with the tag list; with [authz.rbac] enabled a token holding only system/ SMART on openEHR scopes reaches clinical operations without a role; the viewer image serves no /pkg/ and reads no LEPTOS_SITE_ROOT, LEPTOS_OUTPUT_NAME or LEPTOS_HASH_FILES, and its Content-Security-Policy is script-src 'self'; style-src 'self'; Helm chart 21.0.0-rc7 refuses to render until config.deployment_profile names sandbox or production, and a values file for its FerroPIX moves ferropix.config.server.public_base_url to ferropix.config.public_base_url and each issuer’s clients to ferropix.config.trust.issuer. Storage generation 3 adds node columns and migrates no data, and ext migration 0008 names generation 4, the generation with the node header columns, and changes only the label; clinical migration 0020 adds the origin to retention policies and 0021 statistics on the archetype columns, and clinical 0022 and 0023 and party 0013 and 0014 rebuild the version tree’s uniqueness constraint and index its version id columns, which reads every version row of an existing store once; clinical 0024 and party 0015 index the version uid, ext 0006, clinical 0025 and party 0016 add the ELEMENT value search index, built over every hot node row of an existing store, party 0017 adds the archetype statistics, and clinical 0026 and party 0018 grant MAINTAIN on the partitioned tables to the serving roles; clinical 0027 and party 0019 add the access delay, and ext 0007, clinical 0028 and party 0020 add the node header columns with no data migrated; audit migration 0019 gives the search token index a pending list of 512 kB, and audit 0020 adds the hash index on request_id; clinical 0029 adds the access opt-out. Helm chart 21.0.0-rc7 carries appVersion 5.6.0-rc7. Security carries two advisories, GHSA-2mc2-h3jq-c5wg and GHSA-52mf-qg39-4q4j, and the OpenVEX judgement of CVE-2026-84243.
Added
-
The logging component’s intended performance is stated as checkable claims (EHDS Annex II 1.1): every composition create and read recorded exactly once and every AQL execution at least once, no access succeeding without its record, at most 125 % of the latency and at least 80 % of the throughput with the access log off, and a 50-record ITI-81 page within 250 ms at p95.
scripts/perf/audit.shmeasures them with the access log off and on (the load test’s new--auditmode counts the records through ITI-81 and times retrievals),scripts/perf/audit-verdict.shgives the verdict, the release refuses a claim not met and attaches the summary asferroehr-<tag>-logging-performance.md(Annex III point 2), and the weekly performance guard runs it on main. The book’s compliance section gains the page that states the claims and the method (#4293). -
scripts/interop/atna.shexercises the logging component’s ATNA transactions against independent implementations run from published images (EHDS Annex II 1.4): the ITI-20 FHIR feed into HAPI FHIR as the Audit Record Repository, judged by its validator with IHE BALP 1.1.4; the ITI-20 syslog feed into syslog-ng over RFC 5425 TLS, each payload read as a DICOM PS3.15AuditMessage; and the same ITI-81 searches put to FerroEHR and to HAPI. The audit trail page documents it (#4296). -
FerroEHR ships an EHDS category map for the published CKM templates and COMPOSITION archetypes whose data sit in one Art. 14(1) priority category (the International Patient Summary, ePrescription, the generic laboratory result and CCTA report templates; the
health_summary,prescriptionandtransfer_summaryarchetypes), so an installation that declares no[audit.categories]keys records those accesses classified instead ofunclassified(EHDS Annex II 3.2(c)). A deployment that declares any template or archetype replaces it whole.[audit.categories] shipped_map = falsewith nothing declared leaves no map, whichdeployment_profile = "production"refuses as the newno_category_mapgap unlessdeployment_acceptsnames it (#4298). -
Retention periods and access rules can take the origin and the category of the data into account (EHDS Annex II 3.4). The new top-level
[origins]register declares the origins a deployment recognises, each by the id its data carry and the clients whose direct commits come from it; a body without aFEEDER_AUDITcommitted by a registered client is stamped with that client’s origin instead of the server’ssystem_id.PUT /admin/retention/policytakes an optionaloriginnaming a registered origin, the register andGET /admin/retention/duereport it, and the due list lists an origin-keyed period over the objects of that origin (clinical migration0020_retention_by_origin.sql). The ABAC request carriescategory(the access record’s category tokens) andoriginresource attributes on composition, contribution and query operations, the Cedar schema declares both, and a remote PDP binding may name them as parameters (#4299). -
The operations page gains a storage sizing section, measured on 5.6.0-rc5: about 21.6 KB of clinical storage per version of a vital signs composition (2.0 times its canonical JSON, 85 % of it node rows) and 155 KB for an International Patient Summary, about 1.2 KB per audit record of a read, the effect of
[audit.store]retention on growth,pg_walup tomax_wal_size, theREINDEX INDEX CONCURRENTLY clinical.node_hot_pkeystep (20 % of that index after heavy concurrent writing) and a query for the size per relation, with the method to reproduce the figures (#4304). -
EHDS Art. 5: what a person inserts in their own EHR is marked as theirs, and they cannot alter what a professional committed. A write under a token whose SMART resource scopes are all
patient/scopes recordsPARTY_SELFas itsAUDIT_DETAILS.committer, itsexternal_refnaming the login, whatever committer the request names; a COMPOSITION it commits must namePARTY_SELForPARTY_RELATEDas composer; and its update or deletion of a version whose committer is notPARTY_SELF, directly or inside a CONTRIBUTION, is refused with403. A professional’s writes are unchanged. The contribution list extension gainsinserted_by_personper row, and the viewer names aPARTY_SELFcommitter “The person or their representative”. A serviceauth_failurestatus now answers403where it answered500(#4350). -
The EHDS Art. 3(3) delay of the person’s own access to newly registered data, a Member State option and off by default. The new
[access_delay]section (enabled,categories,hours) holds every new COMPOSITION of a listed[audit.categories]category from requests that may be the person’s own (a bearer token with a SMARTpatient/grant or the ABAC patient claim, also besideuser/orsystem/grants, asferrohealth-smart0.8.7 decides it) for at mosthours: a read answers404as for an unknown composition, and a query, an export and a CONTRIBUTION leave it out, while a professional reads it as before. The treating professional releases a held composition from the clinical routePOST {ext}/ehr/{ehr_id}/versioned_composition/{versioned_object_uid}/access-delay/release, with the checks of a write to that EHR, and the controller withPOST /admin/access-delay/release; a professional holds one by hand within the limit withPOST /admin/access-delayand reads the register withGET /admin/access-delay; every hold ends at its limit, and placing, releasing and expiry are each an access record. The subject-scoped ITI-81 read of the person’s own trail (EHDS Art. 9) leaves out the records about a held composition until it is released or expires, then serves them with their original times (ehds-logging0.3.3) (clinical migration0027_access_delay.sql, party migration0019_access_delay_column.sql) (#4351). -
The
openehr-itsclient reads an RFC 9457 problem details refusal:ErrorBody::problem()exposes itstype,title,status,detailandinstance, ignoring a member of the wrong type (RFC 9457 §3.1), andErrorBody::message()answers the problem’sdetail, else itstitle, where it answered only the ITS-RESTError’smessage. Theopenehr-*crates move to 0.0.115 (#4355). -
The local EHR index (
[ehr_index] provider = "local") is a supported production posture beside the IHE patient identity source:EHR_STATUS.subjectnames a patient by its own namespace and identifier, whichGET /ehr?subject_id=&subject_namespace=matches, and with no[privacy] subject_namespacesdeclared the reference is stored as the client sends it. The compose quickstart selects it withFERROEHR_EHR_INDEX=local docker compose up, which runs itsferroehr-config-localblock (#4379). -
CI checks every inline configuration of the compose quickstart with the
config checkof the image the file pins, FerroEHR’s and FerroPIX’s, so the quickstart can no longer carry a configuration its pinned server refuses (#4380). -
The Conformance workflow runs the Veredictum 0.3.0 catalogue in CI through the Veredictum GitHub Action, pinned by commit SHA and running the release image by digest. It builds FerroEHR from the commit, composes it with FerroTERM beside it on fresh volumes, reviews the party statement with
veredictum validate, fails on a failed or errored row, writes the Markdown summary to the job summary and uploads the results, JUnit and CTRF views. It runs on pull requests that touch the server, the party set, the conformance compose files or the workflow, onmain, on a release tag and twice a week.scripts/conformance.shtakes a stage (run,review,up,down), so CI and a local run compose the same deployment, andscripts/checks/veredictum-action.shfails while the Action SHA, its version comment, the image digest andVEREDICTUM_VERSIONdisagree (#4449). -
The Conformance workflow runs the Veredictum
smartdocuments (smart_discovery,smart_scopes) against the same FerroEHR build after the Veredictum Action, which forwards no SMART Platform base URL and no scoped tokens. The same pinned image runsveredictum testwith--platform-urlanddocs/conformance/party/ferroehr/ixit-smart.json, minting each access token in memory from the committed test issuer the SMART overlay trusts, and the job uploads its results, JUnit and CTRF views beside the catalogue’s and adds its summary under a heading of its own.scripts/conformance.shgains thesmartstage, andrundrives it after the catalogue, so a local run covers SMART too (#4450). -
GET /ehr/{ehr_id}andGET /ehr?subject_id=…now sendLast-Modified: the commit that created the EHR, or the later commit that added or deleted one of its folder hierarchies (#4462). -
The EHDS Art. 10 opt-out from access through the access services of Arts. 4 and 12, a Member State option and off by default. The new
[authz.rbac] access_service_roleskey declares the roles of the access-service callers; while an EHR carries the opt-out, a caller holding one reads it as absent: a route naming the EHR or an object in it answers404as for an unknown EHR, a population query leaves its data out, a scoped query, an export and the lookup by subject find no such EHR, and a write to it is refused as absent. Every other caller, the provider’s own care included, reads it as before. The controller records the opt-out on the person’s instruction withPOST /admin/access-opt-out, reverses it withPOST /admin/access-opt-out/reverse(the register keeps the reversal) and reads the register withGET /admin/access-opt-out; recording is refused with400while no access-service role is declared. An access-service caller that declares one of[audit] emergency_purpose_codesand does not act for the person reads the EHR under the Art. 10(2) vital-interest override, with the emergency mark on its access record and anaccess-opt-out-overriderecord against the EHR. Recording, reversing and reading the register are access records (clinical migration0029_access_opt_out.sql) (#4516).
Changed
-
Breaking for clients that relied on the old leniencies:
POST /ehr/{ehr_id}/contributionandPOST /demographic/contributionnow read the body through the releasedNewContributionschema, and refuse every shape it does not define. Each refused shape answers 400: (#3595)- a
lifecycle_statein the CODE_PHRASE shape{"terminology_id": …, "code_string": …}, as a plain string, or as a bare{"value": …}. Send aDV_CODED_TEXT:{"value": "complete", "defining_code": {"terminology_id": {"value": "openehr"}, "code_string": "532"}}; - a
descriptionsent as a plain string, on the contributionaudit, on acommit_auditor on an attestation. Send aDV_TEXTorDV_CODED_TEXTobject:{"_type": "DV_TEXT", "value": "…"}; - a
commit_auditor contributionauditwithoutchange_type. The server no longer infers creation or modification frompreceding_version_uid; send the code of the change, for example249(creation),251(modification),523(deleted) or666(attestation); - a
commit_auditor contributionauditwhose_typeisATTESTATIONorUPDATE_ATTESTATION, or any value other thanUPDATE_AUDITorAUDIT_DETAILS. Send the audit asUPDATE_AUDIT(or with no_type) and put each attestation in the version’sattestationslist as anUPDATE_ATTESTATION. A666(attestation) version carries its attestations there too, and one with no attestation is refused; - a missing
audit, which answered 422 before. A missingversionslist, an attestation withoutreasonoris_pending, asystem_idthat is not a string, and apreceding_version_uidsent as a plain string instead of{"value": "…"}are refused the same way.
- a
-
An attestation’s own
system_idis kept, and one that states none takes thesystem_idof the version audit it belongs to instead of the server’s. An attestation committer is now checked against itsPARTY_PROXYrules like every other committer, so an invalid one answers 422 (#3595). -
The served OpenAPI document describes each extension route by what it does and by the ITS-REST text that governs it, and no longer names openEHR Service Model operations, interfaces or status codes. Routes, request and response fields and status codes are unchanged (#4213).
-
A population AQL query that only counts its root objects, such as
SELECT COUNT(c) FROM EHR e CONTAINS COMPOSITION cor the same withCOUNT(*), reads the current version rows and no longer probes the root node of every composition. At 545 000 compositions the count fell from about 9 s to 0.2 s (#4286). -
A REST request checks a connection out of each database pool once and keeps it until it answers, where it took one for each statement: two to four checkouts for a read of an EHR, an EHR_STATUS or a COMPOSITION, each waiting in the pool’s queue under load and each paying the pool’s release round trip. At 48 concurrent clients and a pool of 10, throughput rose by about 18 % and the median latency fell by about 13 % (#4289).
-
The Helm chart, at a new major version (21), has no default deployment profile: it refuses to render until
config.deployment_profilenamessandboxorproduction, so an installation that follows a quickstart instead of the instructions for use no longer runs the sandbox posture by omission (EHDS Annex II 1.2). A values file that relied on the oldsandboxdefault must now set it, for example--set config.deployment_profile=sandbox;values-production.yamlsetsproductionas before. The server binary’s own default and the Compose files, which declaresandboxexplicitly, are unchanged (#4294). -
The audit store keeps each record’s facts in columns and renders its FHIR R4
AuditEventfrom them when the record is read over ITI-81 or delivered by the FHIR feed, instead of storing the rendered document in every record. A record takes about a quarter of the space it took before. The configuration the rendering depends on (the audit source, the store horizon, the category map and the emergency purposes) is kept once per distinct configuration inaudit.audit_render_policy, and every record names the policy it was written under, so it renders the same document after the configuration changes. The tamper chain hashes every column of the record in one digest and checks each render policy against its digest; the earlier digest versions are retired. Audit migration 0017 needs an empty audit store and refuses one that holds records written by an earlier release, naming the remedy. ITI-81 parameters on an element of the document (address, the.identifierparameters,entity-type,entity-role,type,subtype) are matched against the rendered document (#4300). -
The three audit indexes on
recorded_atascend, so their pages fill instead of splitting half full on every insert; the newest-first ITI-81 search scans them backward (#4302). -
A clinical or party node row now stores only the part of its canonical JSON fragment that its own columns do not hold:
_type, a lowercasearchetype_node_id, a plain or simply coded name, and an ELEMENT value in one of the common basic shapes (a quantity, count, ordinal, coded or plain text, date, time, duration, identifier, boolean or URI) move into columns, the value into the new typed value columns. Every reader rebuilds the omitted keys, so the canonical JSON and every AQL result are unchanged, and a filter on a quantity’s magnitude or a code reads its column directly. The node heap shrinks by about a third (storage generation 3); a row written before keeps its whole fragment and reads the same. Migrationsext/0005,clinical/0019andparty/0012add the columns and the readers; no data is migrated (#4306). -
Every ITI-81 search parameter answers through an index again. The store takes the search tokens of a record’s rendered
AuditEventwhen it writes the record: each distinct token once inaudit.audit_search_token, the code-system tokens (type,subtype,entity-type,entity-role,source.identifier) as one shared set inaudit.audit_search_set, and their ids on the record insearch_tokensunder a GIN index;entityreads a hash index onresource_id. A search onaddressor a token parameter no longer renders every record in itsdatewindow. The tamper chain coverssearch_tokens, and the verifier reports a changed token or set (#4313). -
The storage-bench lane measures the baseline and the candidate on one runner in eight interleaved rounds each and gives two verdicts. The plan verdict fails an operation whose median pages per call rose more than 10 % and one page above the baseline’s highest round, whatever its time. The time verdict divides each round by its machine factor, so a slow spell of the runner no longer reads as the code, and fails an operation whose median p50 or p99 rose more than 15 % with every candidate round slower than every baseline round, or a candidate build that ran more than 15 % slower across the board in every round. A latency is no longer compared with a record measured on another runner (#4318).
-
The viewer takes FerroUI 0.5.8: a menu item draws a visible bar under the pointer and the keyboard focus, and the top bar’s search no longer opens its panel again over the page the router draws after a search is submitted or one of its options followed (#4319).
-
Nothing ITS-REST 1.1.0 does not define is served under the openEHR base path any more. FerroEHR serves three namespaces beside each other under
/ferroehr/rest/:/openehr/v1/holds only the ITS-REST routes,/fhir/r4/the FHIR and IHE interfaces, and/extensions/v1/FerroEHR’s own extensions. The ITI-81 retrieval moved from/ferroehr/rest/openehr/v1/fhir/r4/AuditEventto/ferroehr/rest/fhir/r4/AuditEvent. These routes moved from/ferroehr/rest/openehr/v1/...to/ferroehr/rest/extensions/v1/...with the same relative path:/terminology/...,/admin/event_subscription...,/demographic/party_relationship...,/demographic/versioned_party_relationship/...,/definition/archetype/...,/definition/artefact/...,/message/export...,/message/import...,/query/cohort, and the admin extensions/admin/config,/admin/template/{template_id},/admin/query/{qualified_query_name}/{version},/admin/party/...,/admin/archive/...,/admin/report/...,/admin/dump,/admin/load,/admin/integrity/...,/admin/restriction...,/admin/access-restriction...,/admin/research-objectionand/admin/retention/.... The old paths answer 404, with no redirect. The served OpenAPI document and its family documents name the new paths; the admin extensions, the archetype library and the cohort query have family documents of their own (admin-extensions,archetypes,cohort,contributions). The paged CONTRIBUTION list moved too, to/ferroehr/rest/extensions/v1/ehr/{ehr_id}/contribution(#4330). -
The server and viewer images build on the current
gcr.io/distroless/cc-debian13:nonrootdigest, so they carry the base image’s latest Debian package updates (#4335). -
Canonical JSON validation against the openEHR ITS-JSON schemas runs on
jsonschema0.59.0, which refuses a value whose regex match the engine cannot finish where 0.58 accepted it undernotorpatternProperties. Theopenehr-*crates move to 0.0.113 (#4336). -
A statement the database cancels, by its
statement_timeoutor a cancel request (SQLSTATE57014), answers503withRetry-Afterinstead of500: the statement rolled back, so the request can be repeated. By default the request timeout answers before the 60 s statement timeout fires, so on a request path it is raised by an operator’s cancel or by a forward step of the database host’s clock, which fires every running statement’s timeout at once (#4338). -
Every error on the openEHR routes (
/ferroehr/rest/openehr/v1/), the extension routes (/ferroehr/rest/extensions/v1/) and the management routes answers RFC 9457 problem details,application/problem+json, in place of the{ message, validationErrors, error }body shaped after the ITS-REST example. The status codes are unchanged. A problem carriestype,title,status,detailand the request id as aurn:uuid:instance; the refusals a client acts on have FerroEHR types documented on the book’s Problem types page (aql-invalid,query-timeout,validation-failed,content-invalid,conflict,version-conflict,unauthenticated,forbidden,processing-restricted,unavailable,rate-limited), every other error isabout:blank. A request withPrefer: return=representationreceives the additional details ITS-REST allows: the violations of a validation refusal aserrors({path, detail}, wherevalidationErrorsheld"<path>: <message>"strings), the bytepositionof an AQL parse refusal, and thecurrent_versionof a412. The stack’s own408,413,429,503and panic500are problems too, and anOperationOutcomeunder the FHIR base, where an authentication refusal is now anOperationOutcomeas well. The served OpenAPI document declares theProblemschema for every4xxand5xx, and the viewer reads problem details. A client that readmessagereadsdetail; one that readvalidationErrorssendsPrefer: return=representationand readserrors(#4342). -
The FHIR
AuditEventof an EHDS access record names the object it reads, creates, updates or deletes by its openEHR object id asentity.what.identifierwith the systemurn:openehr:object-id, where it wrote awhat.referencethat no FHIR server resolves and HAPI FHIR refused (FHIR R4 references.html §2.3.0.3). ITI-81 finds the record byentity.identifier. FerroEHR takes FerroAUDIT 0.3.2 (ihe-atnaandehds-logging) (#4366). -
The access log costs the request path less under load. The audit store writes a drained batch, its search tokens and its token sets in one transaction on one connection (one commit where it took up to three), stores only the tokens it does not hold yet, and the GIN index on
search_tokenstakes new entries through a pending list of 512 kB. On the release load test the store wrote 1.5 KB of WAL per record where it wrote 5.2 KB (#4375). -
The LANG specification text is re-vendored at
f80763ab(#4377). SPECLANG-18 states how a P_BMM schema’s JSON form encodes a cardinality interval, which the JSON schema reader already followed; its documentation now cites the rule, and a test pins it. SPECLANG-16 types the P_BMM class lists as keyed collections; the generated P_BMM model takes that change with #4497. The nineopenehr-*crates step to 0.0.122. -
[ehr_index] provider = "local"besidepixm_url,assigning_authority,[ehr_index.oauth]or[ehr_index.tls]is accepted, where it was refused: the IHE keys are kept, not used and named at boot, soprovideralone switches the index, in the file or asFERROEHR__EHR_INDEX__PROVIDER. Declared pseudonym namespaces stay in force under either index (#4379). -
A build no release lane marked reports its commit beside the package version, as SemVer build metadata (
5.6.0-rc2+dev.1a2b3c4d5e6f), onferroehr --versionandserver_versionofGET /ferroehr/rest/status(the boot banner and/management/infoalready name the commit beside the version), so a report from a build ofmainno longer reads as the release it follows; a release build reports the bare version (#4380). -
The compose quickstart runs FerroPIX 0.0.12, pinned by digest, with its configuration moved to that release’s keys (
public_base_urlat the top level, the Patient Identity Source’s client under[[trust.issuer]]), and Dependabot proposes each FerroPIX release (#4380). -
The Helm chart runs FerroPIX 0.0.12 by digest, with the FerroPIX chart 0.3.4 built for it, and the hosted sandbox runs FerroPIX 0.0.12 too; both had stayed at 0.0.7 and 0.0.10 when the quickstart moved. A values file for the chart’s FerroPIX moves
ferropix.config.server.public_base_urltoferropix.config.public_base_urland each issuer’sclientstoferropix.config.trust.issuer, the keys FerroPIX reads since 0.0.8; the chart’s examples and the production overlay do. FerroPIX’s chart now also runs its pods withenableServiceLinks: falseand in a user namespace (ferropix.hostUsers: false, the default). A CI guard holds the quickstart, chart and sandbox to one FerroPIX release and checks the sandbox’s and the chart’s FerroPIX configuration under it, so the Dependabot proposal for the quickstart pin moves all three (#4392). -
openehr-query, the AQL 1.1.0 lexer, parser, typed AST and printer, is published under Apache-2.0 from 0.0.116, like the generated model crates andopenehr-its, so any Rust project can parse AQL with it. Versions 0.0.60 to 0.0.115 keep the Business Source License 1.1 they were published under (#4405). -
FerroEHR takes
ferrohealth-server0.4.0 in place of 0.3.9. The new[server] idle_timeout_ms(120000 by default) closes a kept-alive HTTP/1.1 connection that waits that long for its next request, with a clean end of stream, and[server] header_read_timeout_mscounts from the first byte of each request head on a kept-alive connection (from accept for the first one, as before). The head bound 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, which a client such as Go’snet/httpsaw asEOFon aPOSTit does not retry (#4381). A deployment that setheader_read_timeout_msto bound idle connections setsidle_timeout_msinstead. The refusals the listener writes itself (408,413,429,503) and a panic’s500keep naming the server’s request id as theirinstancewhen the client sends its ownX-Request-Id, as every other FerroEHR refusal does (#4417). -
FerroEHR runs on
ferrohealth-server0.4.1, which keeps a product’s own fallback and the layers around it when the stack merges its routes (FerroHEALTH/FerroSYS#199). FerroEHR, v5.6.0-rc3 included, was not exposed to the regression 0.4.1 fixes: the REST API and the viewer declare their own fallback inside their layers, and the management endpoints guard each route they serve, so a path no route matches answers as it did before (#4427). -
The viewer draws every page on its server with FerroUI 0.6, with no Leptos and no WebAssembly: a link and a form load a new page, and FerroUI’s own small script modules add behaviour on top of what the server drew, so every page works with JavaScript off. The image ships the one
ferroehr-viewerbinary, with no/sitetree beside it and nohash.txt; FerroUI’s stylesheet, theme and scripts are served from inside it under/ferrohealth-ui/0.6.0/, and/pkg/no longer answers. The Content-Security-Policy is nowscript-src 'self'; style-src 'self'with no per-response nonce and no'wasm-unsafe-eval'. The image no longer readsLEPTOS_SITE_ROOT,LEPTOS_OUTPUT_NAMEorLEPTOS_HASH_FILES, so a deployment that sets them can drop them;LEPTOS_SITE_ADDRnaming another address thanserver.listenstill refuses the start. A proxy rule written for/pkg/(the hosted deployment’sCache-Controlfor it is removed) has nothing left to match (#4433). -
The viewer runs on
ferrohealth-server0.4.2 and takes its Content-Security-Policy from the family’s server-rendered console headers (FerroHEALTH/FerroSYS#202) in place of a layer of its own. The policy a deployment sees is unchanged:default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; connect-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none', with no nonce. FerroUI’s assets under/ferrohealth-ui/keep theCache-ControlFerroUI sets, and a refusal under that path isno-storewhatever FerroUI’s router sets, so a cache in front of the viewer keeps no error answer for an asset. The REST server takes the sameferrohealth-serverrelease with no change in what it serves (#4439). -
scripts/conformance.shruns the Veredictum 0.3.0 catalogue against one FerroEHR deployment: it reviews the party statement withveredictum validate, drivesveredictum testin the release image pinned by digest with Basic login, and writesresults.json, the HAR recording and the JUnit, CTRF and Markdown views todocs/conformance/ferroehr/. Docker or Podman runs it (CONTAINER_ENGINE). The FerroEHR statement now claims the 15 capability folders and answers every option of the 0.3.0 catalogue, and the IXIT keeps only what 0.3.0 reads (#4448). -
The serving roles may now analyze their store’s partitioned tables: new migrations (clinical 0026, party 0018) grant
MAINTAINonnode,versionandvo_attestation, and onclinical.ehr, toferroehr_clinicalandferroehr_party, so the hourly statistics refresh works under the role split.MAINTAINalso allowsVACUUM,CLUSTER,REINDEXandLOCK TABLEon exactly those tables. A role that still lacks it gets the warning naming the tables, as before (#4453). -
With the role gate on (
[authz.rbac] enabled), a bearer token whose SMART on openEHR resource scopes are allsystem/scopes, such assystem/template-*.r, now reaches a clinical operation without a role: it is a backend client, and its scopes decide what it reaches. Auser/orpatient/token belongs to a person and still needs at least one role, as does a token with no SMART on openEHR scope and a Basic user; an admin operation still needs the admin role (#4467). -
A tag update (
PUT …/tagson EHR_STATUS, COMPOSITION and the five party kinds) sent withPrefer: return=identifiernow answers200with the stored tag list andPreference-Applied: return=identifier. It answered204(#4475). -
The conformance deployment runs FerroTERM beside FerroEHR, pinned by digest, with
[terminology.server]pointed at it, locally inscripts/conformance.shand in the Conformance workflow, so theaql-terminology-supportedarm of the party statement runs against a real terminology server (#4476). -
The P_BMM model follows SPECLANG-16. The LANG 1.1.0 BMM that
openehr-codegenreads is now thespecifications-LANGfile atf80763ab, soP_BMM_SCHEMA.primitive_typesandclass_definitionsare maps keyed by class name,P_BMM_CLASS.ancestor_defsis a map ofP_BMM_BASE_TYPEkeyed by type signature (a simple ancestor included), andP_BMM_GENERIC_TYPE.generic_parameter_defsis an optional map keyed by formal parameter name. The formal and actual generic parameters (P_BMM_CLASS.generic_parameter_defs,P_BMM_GENERIC_TYPE.generic_parameter_defs,BMM_GENERIC_CLASS.generic_parameters) are insertion-orderedIndexMaps, because the specification fixes their declaration order, and the model builders bind each actual parameter to its formal by name. In the releasedv1_0generation,P_BMM_GENERIC_TYPE.generic_parameter_defsnow carries the1..*bound its BMM states. The nineopenehr-*crates step to 0.0.123 (#4497). -
The conformance pipeline runs Veredictum 0.3.1. The Conformance workflow drives the catalogue through the Veredictum Action twice, each run on fresh volumes: under the
releasedprofile, the frozen openEHR release, which is the record and decides the job, and under thedevelopmentprofile, the pinnedmasterof each openEHR repository, which is published beside it under its own job summary heading and artifact and never counted toward it. Both runs include the SMART documents: the Action now takes the SMART Platform base URL and the committed test issuer’s key. The workflow reads the result paths and the exit status from the Action’s outputs.scripts/conformance.shtakes the profile asCONF_PROFILE(releasedby default; adevelopmentrun writes todocs/conformance/ferroehr-development/) and drives the SMART documents in the same run, and the IXIT carries the test issuer’sscoped_tokensdeclaration (#4503). -
The viewer groups a template’s releases. The template list draws one group per template, the newest release first with the number of releases and the earlier releases under it, in both the ADL 1.4 and the ADL 2 tab. A template’s page names its release beside its title, where every other release is a link with the newest marked, also with FerroUI’s scripts refused; the release select and its Open button above the tabs are gone. The Overview lists the releases with the compositions committed against each, and a new Compare tab lists the paths one release adds, removes and changes against another (#4506).
-
Every write checks the committer against the login that authenticated the request where the server can compare them: a committer naming another login of the caller’s token issuer or of this server, or a
PARTY_SELFcommitter from a caller who is not the record’s person, is refused with a 403. A name only, or an identifier of another authority, is stored as sent. The direct writes (composition, EHR status, directory, EHR, demographic) now also refuse a committer that breaks its own rules with a 422, as the contribution path already did (#4520). -
An audit record no longer adds a row to
audit.audit_search_tokenfor its request id or for the version uid a create wrote. ITI-81entity.identifierfinds both from the record’s ownrequest_idandresource_idcolumns, through a new hash index onrequest_id(audit migration 0020), so the token table stays flat as requests are audited. Retention now deletes the search tokens that no remaining record names, among them the request id tokens of records written by 5.6.0-rc5 and earlier, and the database still refuses to delete a token a kept record names (#4524). -
A clinical or party node row below the root no longer repeats its archetype header, language and encoding: an archetype root’s
archetype_detailsandarchetype_node_idare rebuilt from thearchetypecolumn and a newrm_versioncolumn, and alanguageinISO_639-1and anencodinginIANA_character-setskeep only their code, in the newlanguageandencodingcolumns. Every reader puts the keys back where they stood, so the canonical JSON, every AQL result and the served key order are unchanged; a header of any other shape stays in the fragment. A vital signs version takes 17.1 KB instead of 21.6 KB and an International Patient Summary 131 KB instead of 159 KB. Migrationsext/0007,clinical/0028andparty/0020add the columns and the readers; no data is migrated, and a row written before keeps its whole fragment and reads the same (#4525). -
ext.storage_generation()reportsgeneration-4, the storage generation with the node header columns, and the storage benchmark records for it are committed underdocs/benchmarks/storage/generation-4/. Migrationext/0008changes only the label; nothing in the serving path reads it (#4525). -
Five response messages no longer name the openEHR Service Model. The admin dump route’s
400for a missingfile_sys_locnow reads “request body must carry a non-emptyfile_sys_locstring, a location on the server’s file system (FerroEHR’s own dump/load extension)”, and its400for anencodingmember reads “encodingis not accepted: FerroEHR’s own dump/load extension defines no encoding, so no value names one”. The admin activity-report400s fora_servicenow list the accepted service names (“query parametera_serviceis required: one of Admin, Definitions, …” and “query parametera_servicenames no platform service: … (expected one of …)”). The not-implemented answer ofstore_query_setreads “store_query_set is not implemented: no openEHR specification defines a query set”. Theopenehr-rmvalidation docs for the threePARTYandPARTY_RELATIONSHIPrelationship invariants now name the separate relationship container as FerroEHR’s own design against RM demographic §Party Relationships (#4531). -
Breaking for clients that relied on the remaining commit-audit leniencies: the audit rules of the CONTRIBUTION commit now hold on every write path (#4543).
- A
descriptionobject without_type, such as{"value": "…"}, is refused with 400 on a contributionaudit, acommit_auditand an attestation, and so is an attestationreasonwithout_type. Send{"_type": "DV_TEXT", "value": "…"}or aDV_CODED_TEXTwith its_type. - A stated empty
system_idis refused with 422 on the direct writes too (openehr-audit-details: system_id=""on a create, update or delete), where the server used to replace it with its own. Leavesystem_idout to get the server’s, or send a non-empty one. Asystem_idthat is not a string stays a 400 on both CONTRIBUTION routes. - A commit audit of type
UPDATE_ATTESTATIONhanded to the library’s direct write calls (create_composition,update_composition, the EHR_STATUS, DIRECTORY and party writes) is refused with 400, as on the CONTRIBUTION routes. Send the audit asUPDATE_AUDITand put each attestation in the version’sattestationslist.
- A
-
Members that
NewContributionorUPDATE_AUDITdo not declare, such as areasonoris_pendingon a plain audit or an extra top-level member of a contribution, are accepted and ignored: the released schemas leave both objects open (#4543). -
The
openehr-*crates take their version when they are published. A pull request that changes the crates no longer bumps their lockstep0.0.xversion: the crates publish reads crates.io, takes the next version when packaged content changed since the newest published one, and refuses to publish changed content under a version crates.io already holds. The version in the manifests onmaincan therefore trail the newest version on crates.io (#4555). -
The served Web Template of an ADL 2 operational template writes the
aqlPathof an ELEMENT’s value and of a data value’s parts without an[idN]predicate, since a data value carries noarchetype_node_id(ADL2master05-paths§“Relationship with W3C Xpath”). ADV_INTERVALand its parts read…/value,…/value/lowerand…/value/upper, the form the ADL 1.4 Web Template writes, where they read…/value[id6]/lower[id7]before, and the parts’ ids arelowerandupper(#4559). -
The served Web Template gives every
DV_INTERVAL<T>node itslowerandupperchildren, each of typeT, also when the operational template leaves them unconstrained (RMdata_types§DV_INTERVAL). Such a node had no children before. An unconstrained part carries the open inputs of its type, and itsaqlPathis…/value/loweror…/value/upper. This holds for ADL 1.4 and ADL 2 templates (#4559). -
The template example fills such an interval: an unconstrained part takes the example value of its constrained sibling, so the limits stay consistent (#4559).
-
The served Web Template of an ADL 2 operational template writes a coded input whose at-codes the template binds to a terminology as the bound terms: its
codelist carries each binding’s code and label and itsterminologynames the bound terminology (ADL2master08-terminology_integration§“From Constraints to Concrete Codes in Data”).COMPOSITION.categoryboundat1toopenehr::433reads{"value": "433", "label": "event"}withterminology: "openehr", where it read the localat1before, and an[acN@ttttt]constraint takes the bound terms of the terminology it names. A FLAT or STRUCTURED composition without a category, and the example composition, now carryopenehr::433. TheaqlPathof every data value drops its[idN]predicate, so a constrainedcategoryandcontext/settingread/categoryand/context/setting(#4574). -
A CONTRIBUTION’s
versions[]entry records its merge inputs: theother_input_version_uidsit states are stored on the committedORIGINAL_VERSIONand served on every read, where the server used to refuse the member with 400. The uids may name versions the server does not hold; an empty list or an entry that is not anOBJECT_VERSION_IDis a 422 (#4577). -
Other members
UPDATE_VERSIONdoes not declare, such asitemor an extension member, are accepted and ignored, where the server used to refuse them with 400: the released schema leaves the object open, as it doesNewContributionandUPDATE_AUDIT. Auidorcontributionon a version entry is still refused with 400, because the server assigns both, and so is a_typeother thanUPDATE_VERSIONorORIGINAL_VERSION(#4577). -
The admin dump route’s refusals name its parameters by their wire names and list the accepted values, not the Service Model class names. A bad
logical_formatorcompression_formatnow reads “<field>must be a string, one of …” or “<field>names no accepted value: … (expected one of …)”, and a non-integersegment_split_sizereads “segment_split_sizemust be an integer size in kb”. The served OpenAPI text for the route no longer namesEXPORT_SPECorEXPORT_FORMAT(#4634).
Removed
-
The conformance pipeline no longer runs EHRbase or the extra FerroEHR deployments.
docker/sut-ehrbase.yml, the EHRbase record and party set,docs/conformance/COMPARISON.md, the book’s Comparison with EHRbase page, and the openPGP-signing, fail-open and stable-spec compose overlays (docker/sut-signing-pgp.yml,sut-pgp-parallel.yml,sut-terminology-failclosed.yml,sut-terminology-failopen.yml,sut-spec-stable.yml) with the test signing keys undercorpus/keys/are gone.scripts/conformance.shno longer takesCONF_SUT,CONF_IXITorCONF_STATEMENT, and refusesCONF_PERF_CLASSandCONF_STRESSuntil the measured lanes move to the Veredictumperf/tree (#4448). -
The Veredictum pin watcher workflow,
scripts/checks/veredictum-pin.shwith itsveredictum-pin-guardjob, and theno-conformance-runlabel are gone: a pin bump now runs the new catalogue against its own build in the Conformance workflow (#4449). -
The separate SMART step of the Conformance workflow, the
smartstage ofscripts/conformance.shwith itsCONF_SMART_OUT, anddocs/conformance/party/ferroehr/ixit-smart.jsonare gone: the one catalogue run covers the SMART documents. The party statement no longer carries theperformanceblock, which the Veredictum 0.3.1 statement schema refuses (#4503).
Fixed
-
The hosted sandbox seeds its full demo dataset again. The v5.5.0 reseed stopped at the ADL 2 archetype library (233 stored / 89 refused against the pinned 231 / 91) because the box’s
.envstill forced FerroTERM 0.1.6, which reads none of the FerroTERM 0.3 settings the sandbox posture passes, so it served no LOINC and VETDF could only warn onbraden_scale’s mistyped LA9605-4. The corpus, the pin and the CDR were right. The seed now asks the CDR for a LOINC code before the library step and names a posture without LOINC (SANDBOX_TERMINOLOGY=without-loincopts a local run into 233 / 89), checks that the two files it names move together, and a corpus test holds the manifest’s pin to the adjudicated split with and without LOINC. The FerroPIX rollout script retires a staleFERROTERM_IMAGEoverride, checks that FerroTERM runs the pinned version and serves LOINC, and wipes before it seeds over an unfinished seed (#4278). -
The measurement overlay
docker/sut-measurement.ymlswitches the caller rate limiter off by removing the[server.caller_rate]keys, so the server logscaller rate limiting configuredwithenabled=falseat boot, instead of setting a rate of 4294967295 per second thatferrohealth-server0.3.5 truncated to a zero interval and that answered stray429s under concurrency.scripts/conformance.shrefuses to start a measurement stack whoseferroehrservice still sets a caller rate (#4281). -
A response to a request whose body FerroEHR left unread, such as a
404to aPOSTof a path it does not serve or a declared-length413, now carriesConnection: close. The connection closed after such a response without saying so, and a client that sent its next request on it met a closed socket, which a non-idempotent request cannot safely retry (RFC 9112 §9.6) (#4283). -
A
[server.caller_rate]above 1 000 000 000 requests per second no longer answers429to concurrent requests: such a rate now limits nothing, as its operator meant (#4283). -
Every request leaves one request line, a timeout
408, a declared-length413and the500of a panicked handler included, and a413for a body with no declared length that passes[server] body_limit_bytesis answered with the openEHR error body, as the declared-length413is (#4283). -
An AQL query whose
WHEREclause chains thousands ofNOT,ANDorORterms no longer overflows the stack and aborts the server. The parser refuses a query that nests brackets andCONTAINSdeeper than 64 levels or builds an expression deeper than 512 levels with400 Bad Request, before any recursive pass runs, on the ad-hoc, stored-query store and execution paths alike. A longORover one path is written asMATCHES {…}, which the bound does not count. A statement PostgreSQL refuses for its own complexity limit (SQLSTATE class 54) also answers400instead of500.openehr-querygainsParseError::TooDeep(#4284). -
An AQL query (ad hoc or stored) whose client disconnects, or that the server’s own
query.timeout_msor HTTP request timeout gives up on, no longer keeps its statement running and its pooled connection busy until the statement ends. The connection is closed instead of returned to the pool, so the slot frees at once, and every pooled session now sets PostgreSQL’sclient_connection_check_intervalto one second, so the backend stops the abandoned statement within about a second. The composition-count statistics behave the same way (#4285). -
The server’s resident memory no longer climbs under sustained load until the container’s memory limit kills it. The
ferroehrbinary now allocates through mimalloc instead of glibcmalloc, whose per-thread arenas kept freed memory and never gave it back. On a load test of 10 000 mixed jobs at 48 workers the peak resident set fell from 2.3 to 3.2 GB (growing run after run) to about 600 MB, and throughput rose by about a third (#4288). -
A request whose database connection a PostgreSQL restart, a crash or the network cuts now answers
503 Service UnavailablewithRetry-After, as a request that cannot get a connection already did, instead of500. SQLSTATE class08(except08P01),57P01,57P02,57P03and57P05, and a reset, aborted or closed socket on an open session count as such a cut (#4290). -
While PostgreSQL is down, requests that need the database answer
503withRetry-Afterabout a second after the first one starts waiting, and at once after that, instead of each queueing up todb.acquire_timeout_secs(30 seconds by default). An acquire that has waited a second tries one connection of its own; when that cannot reach the database, the outage is known until a fresh attempt connects, and requests are served again as soon as one does. A pool that is only busy keeps queueing as before (#4323). -
Superseding a composition or a party no longer slows down as its history grows. The foreign-key check that every new node and attestation row makes against its version could scan all versions of the object instead of probing one, depending on the planner statistics at the time: on the storage bench, superseding an object with a few hundred versions took about 14 ms instead of 9 ms when the plan flipped. Migrations
clinical/0022andparty/0013re-key the version-tree uniqueness constraintuq_version_treewith the object id last, so the check always probes the primary key. The constraint enforces the same uniqueness as before (#4340). -
The FHIR rendering of an access record
ehds-loggingdoes not classify (a template upload, a stored-query write, a template read) now carries the IHE BALP 1.1.4entity:dataslice its Create, Read, Update or Delete profile requires: type2, role4andwhat.identifier, naming the operation when the record names no object. HAPI FHIR’s validator refused the template upload record without it (#4353). -
A
+in a query string is a literal plus, as RFC 3986 §2.1 and §3.4 decode a URI query, on every ITS-REST operation and every extension route: a date-time offset such as2026-10-28T10:00:00+01:00or an AQL parameter sent with an unencoded+reaches the server unchanged, where it was read as a space. A space in a query value is sent as%20. This reverses the form-decoding of #3891: a client that writes a space as+now sends a plus. Theopenehr-*crates move to 0.0.114 (#4356). -
An AQL
EHR e[ehr_id/value='…']predicate whose value is not a UUID ('1234', the AQL 1.1.0 example) answers an empty result, as itsWHERE e/ehr_id/value = '…'spelling does, onPOSTandGET /query/aql; it was refused with400. Both spellings lower the EHR id comparison through one path, and a value the database cannot cast is refused with a message that no longer claims it came from a query parameter (#4378). -
A request sent on a kept-alive connection that sat idle longer than
[server] header_read_timeout_ms(30 s by default) is answered. The server used to close such a connection, sometimes while the request was arriving, so a client that reused it gotEOFwith no answer and no server log line, and a client that never retries aPOSTon a reused connection, such as Go’snet/http, reported a composition commit as failed. An idle connection now stays open until[server] idle_timeout_ms(120 s by default) and then ends cleanly before any new request byte; keep that limit longer than the idle timeout of your clients (90 s for Go) and of any load balancer in front (#4381). -
An AQL query with an archetype predicate no longer builds the archetype index bitmap of the whole store once per version. The planner multiplied the selectivities of the archetype columns, which each archetype fixes together, and expected about 15 000 of 545 067 blood-pressure OBSERVATIONs; a query over one EHR then took 38.8 s and answered
408. Clinical migration0021_archetype_statistics.sqlgives the columns a statistics object, and the same query takes 0.3 s (#4399). -
FROM PERSON p CONTAINS EHR e(and theORGANISATIONandROLEroots) joins a party to the EHR whoseEHR_STATUS.subject.external_refnames it, so a party created withPOST /demographic/personand an EHR created withPOST /ehranswer their row with no other call. Before, the join read only the party-to-EHR map, which no REST route writes, and answered no rows on a deployed server. The reference matches when itsid.valueis the party’s uid without::<system>::<version>and itstypeis the root class or its RM ancestor (ACTOR,PARTY), in any namespace; an EHR linked both ways answers once (#4411). -
An AQL projection whose path ends on a list attribute inside a node’s data (
c/feeder_audit/originating_system_item_ids,c/links,c/context/participations,c/composer/identifiers,.../mappings) answers the list itself,[{…}, {…}], andnullwhen the list is absent. It answered the list wrapped in a second list,[[{…}, {…}]]; a client that unwrapped that outer array reads the column directly now. A path that continues below a list (.../originating_system_item_ids/id) still answers the array of its matches,["…", "…"].COUNTover a path ending on a list counts its elements (#4413). -
Reading one version of a composition, EHR_STATUS, folder or party by its version id no longer slows down as the object’s history grows. Once a connection reused its prepared read, the plan scanned every version of the object and kept the one asked for: on the storage bench’s history of 500 versions such a read touched about 520 buffers instead of 12 to 24. Migrations
clinical/0023andparty/0014add an index on the version tree id columns of both storage tiers, so the read probes the one version it returns (#4420). -
An audit store that 5.6.0-rc2 migrated starts again. Audit migration 0017 changed after 5.6.0-rc2 shipped it, so the server refused such a store on the migration’s checksum at boot. 0017 is back to its 5.6.0-rc2 text, and the new audit migration
0019_search_tokens_pending_list.sqlgives the search token index its pending list of 512 kB, so a store that 5.6.0-rc2 migrated upgrades in place (#4424). -
An AQL query ordered by
c/uid/valuewith aLIMITno longer starts a parallel worker on every call, and no longer switches between that plan and a sort of the whole join depending on the planner statistics. The version uid it sorts on had no index, so the planner sorted the version rows through a parallelGather Merge, which costs a worker’s start-up per query on a server of any size: about 19 ms on the storage bench’s CI runner, where the two flat-shape path reads measured 23 ms in some rounds and 42 ms in others. Migrationsclinical/0024andparty/0015add an index on the uid expression of the hot version partition, so the query reads versions in uid order from it in one backend and stops at the limit (#4429). -
An AQL query that reads values along a path no longer spends up to a second compiling itself before it runs. Each path step was bound through a set-returning function that PostgreSQL estimates at ten rows, so a chain of steps multiplied the row estimate tenfold per step: the planner chose join orders for a statement millions of times larger than the real one and switched on JIT compilation for it. On the storage bench, a wide projection of 9 values over one EHR read in 1 s instead of 15 to 20 ms, and an ordered WHERE on a magnitude in about 0.5 s instead of 50 ms (#4430). Each step is now a
LATERALsubquery that the planner estimates from its own plan; results do not change (#4431). -
An AQL lookup by an ELEMENT value, such as a person by an identifier (
WHERE id/items[at0001]/value/id = $v) or a composition by a text value, read every node of the archetype in both stores and tested the value last: about 350 ms at 50 000 persons. The engine now anchors such an equality on the ELEMENT rows of the same version by their search text (ext.node_search_text, ext migration0006), which the new partial expression indexidx_node_hot_value_searchand its statistics object serve (clinical migration0025, party migration0016), so the lookup reads the one object: 26 buffers and under a millisecond at 50 000 persons. The party store also gets the archetype dependency statistics the clinical store has had since 5.6.0-rc2 (party migration0017). The storage bench measures the lookup asperson_identifier_lookup(#4437). -
The revision history and every point read of a version now reach the version’s commit audit through a lateral subquery that probes
pk_commit_auditby key once per version row, so stale statistics on the partitionedversiontable can no longer turn the read into a walk of the whole commit audit index (1 318 buffers against 21 for a four-version object beside 1 300 others) (#4438). -
A revision history or a current-version read of a COMPOSITION committed after the partitioned
versiontable last had statistics could walk the whole commit audit index: the planner held the highest commit audit id of the seed for the highest there is and rated a merge join overpk_commit_auditas cheap. On a store of 1 300 compositions the history of a four-version object read 1 318 buffers instead of 21, and the storage bench readrevision_historyat about 440 buffers per call in 3 of 8 rounds. The server now keeps the partitioned parents’ statistics (#4453), and each read probes the commit audit by key (#4438). -
An AQL lookup of an EHR by the subject of its EHR_STATUS (
WHERE e/ehr_status/subject/external_ref/id/value = $u AND e/ehr_status/subject/external_ref/namespace = $n) joined every EHR_STATUS version and read the subject out of its stored fragment: about 150 ms on a store of a few thousand EHRs. The two leaves now read the EHR row’ssubject_idandsubject_namespace, the copy the commit keeps of the current EHR_STATUS subject, so the lookup enters throughuq_ehr_subjectand reads one row. The storage bench measures it asehr_by_subject(#4442). -
The partitioned tables
node,versionandvo_attestationof the clinical and party stores never had planner statistics of their own, since autovacuum does not analyze a partitioned table, so the planner estimated joins over them without any (PostgreSQL 18 §24.1.3). The server now runsANALYZE ONLYon them, and onehrwhile autovacuum has never analyzed it, after applying the migrations, afterload_ehrs, at boot and every hour. The role it runs as needs theMAINTAINprivilege on those tables; without it the server logs the tables it could not analyze. The populationCONTAINSof an archetype now enters throughidx_node_hot_arch_subsume(3 703 buffers to 1 745 on the storage bench’s seed) (#4453). -
A party delete (
DELETE /demographic/{agent,group,organisation,person,role}/{uid_based_id}) and the party relationship delete now answer400when the path names the versioned object instead of its latestOBJECT_VERSION_ID, and delete nothing. They answered204and deleted the current version. The release requires thepreceding_version_uidin that path (ITS-RESTagent_delete.yamland its four siblings) (#4478) (#4458). -
A CONTRIBUTION member outside the operation’s member set, a party in an EHR CONTRIBUTION or a FOLDER in a demographic CONTRIBUTION, now answers
400as a body that fails the request schema. It answered422(#4459). -
A party update whose body carries no
uidnow checks each relationshipsourceagainst the party the path names and refuses a foreign source with422, as RMRelationships_validityrequires. The check ran only when the body carried auid, so such an update committed a relationship sourced at another party (#4460). -
An ADL 1.4 template upload whose XML ends with an element still open now answers
400, as for any document that is not well-formed XML. The well-formedness gate stopped at the end of input without checking that every element was closed, so a truncated upload answered422(#4461). -
A canonical JSON body that the published ITS-JSON schema admits and the RM refuses, such as a
DV_URIorDV_EHR_URIwithoutvalueor aDV_INTERVALlimitDV_ORDINALwithoutsymbol, now answers422naming the member, on the direct commit routes, the CONTRIBUTION members and the party commits. A body the schema refuses still answers400. All of them answered400(#4463). -
A directory create or update whose root FOLDER names an archetype in
archetype_node_idand carries noarchetype_detailsnow answers422and commits nothing: an archetype root carriesarchetype_details(RM common §The LOCATABLE Class). FerroEHR created such a directory. A553|incomplete|commit and a nested FOLDER keep it optional. The viewer’s empty directory root now carriesarchetype_details(#4464). -
AQL
EHR e NOT CONTAINS <class expression>now runs and returns the EHRs that hold no matching object. It was refused as unsupported with400(#4465). -
An AQL comparison between a
DV_DATE_TIMEpath that ends on the data value itself, such asc/context/start_time, and a date-time literal now compares the instants both name, so values with different offsets compare correctly. The comparison read the whole data value and matched nothing (#4466). -
A container member whose node id names an object constraint of the template but whose RM type conforms to none of them, such as an ELEMENT where the template allows only a CLUSTER, is now refused with
422. Only the opposite direction was refused (#4468). -
An ADL 1.4 template upload with
Prefer: return=representationnow answers the representationAcceptnames: the OPT XML, or the Web Template underapplication/openehr.wt+jsonorapplication/json. AnAcceptoutside those answers406and stores nothing. The upload always answered XML (#4469). -
A Simplified Format COMPOSITION commit without the
openehr-template-idheader, and a flat|rawvalue without_type, now answer400. Both answered422(#4470). -
A Simplified Flat or Structured
…/action_archetype_idnow sets the StringACTIVITY.action_archetype_id, and the flat output writes it back. The converter built an object from the template’s string constraint, so the commit answered422(#4471). -
ctx/action_ism_transition_current_state, as a rubric or a code, now setsACTION.ism_transition.current_stateof every ACTION the document gives no state. The converter wrote524|initial|first and the context value never applied (#4472). -
ctx/instruction_narrativenow becomesINSTRUCTION.narrativeof every INSTRUCTION the document gives no narrative. A placeholder<narrative>was stored instead (#4473). -
The Simplified Flat
DV_INTERVALsuffixes|lower_unbounded,|upper_unbounded,|lower_includedand|upper_includedare now read on an interval whose bounds are template nodes, and the flat output writes an unbounded flag when true and an included flag when false. The suffixes were refused as unknown with422(#4474). -
An AQL query aimed at named EHRs (the ITS-REST
ehr_idparameter) reads those EHRs’ objects first and each object’s own content after them, whatever the planner statistics say. When an archetype’s rows fell out of the most-common-value list of the archetype statistics, the planner estimated them at one row and could start from that archetype over the whole population, evaluating every projected path for every EHR’s rows before the EHR filter: the storage bench’s wide projection over one EHR read about 10 000 pages per call in some rounds and 1 200 in others. A node contained in a versioned object is now read inside its parent on such a query; results do not change (#4487). -
AQL
TERMINOLOGY('expand', …)against a FHIR terminology server takes the value set from theurlargument whenparams_uriis the$expandquery form (url=http://…), as the openEHR AQL examples write it, and still takes a bare value-set URL as it is. A query form withouturlis a 400 that names the missing argument. Before, the wholeparams_uriwent to the server as the URL, and the query was answered 400 because the value set was not found (#4488). -
AQL
TERMINOLOGY('validate', …)andTERMINOLOGY('subsumes', …)keep aparams_uriargument whole when its value carries a?, as the QUERY master03 exampleurl=http://snomed.info/sct?fhir_vsdoes. Before, the arguments were read from after the first?anywhere inparams_uri, so the value-set URL reached the terminology server truncated and the arguments before it were lost. Aparams_urithat starts with a path still has its arguments read from after the path’s?(#4490). -
An ADL 2 template whose constituent archetype the CDR does not hold is refused at upload, with a
422whoseerrorscarry oneVARXRentry per missing archetype (AOM2C_ARCHETYPE_ROOTvalidity rule VARXR); the 2013 CKMt_encounter_opt_test, built on the refusedapgar, no longer loads, so the sandbox library pin is 231 accepted / 91 refused. A stored template whose constituent was deleted later answers its JSON form and example with the sameVARXRlist, and the viewer says so on every tab of the template, names each missing archetype and links to uploading it, instead of a raw422(#4505). -
ADL 2 validation admits a constraint on an RM computed attribute. VCARM accepts an attribute “stored or computed” (AOM2
master04.5§Validity Rules:C_ATTRIBUTE), and a function with no arguments is a computed attribute (master04.2§Attribute Nodes), so an archetype that constrainsDV_PROPORTION.is_integral,DV_QUANTITY.is_integralorEVENT.offsetis no longer refused with422. The generated RM model (openehr_rm::v1_2::model) now carries each class’s computed attributes from the BMM functions (RmClass::computed_attributes,computed_attribute).openEHR-EHR-CLUSTER.microscopy_prostate_carcinoma.v1.0.0from the 2013 CKM ADL 2 export now uploads, and the sandbox archetype-library pin moves to 232 accepted and 90 refused.DV_QUANTITY.property, which no RM release defines, stays refused. The nineopenehr-*crates step to 0.0.124 (#4513). -
DELETE /ferroehr/rest/extensions/v1/definition/artefact/adl2/{artefact_id}refuses with409 Conflictwhile another stored ADL 2 artefact does not compile without the one deleted (a slot filler, ause_archetypereference or a specialisation parent, directly or through another artefact), and the message names every one of them. Before, the delete succeeded and left each template built on the archetype unable to compile (#4522). -
The viewer’s ADL 2 template upload names each violation the CDR found when it refuses the source: every AOM2 rule code with the CDR’s words for it, so a template whose constituent archetype the CDR does not hold names that archetype (
VARXR). The upload now asks forPrefer: return=representation, the preference under which ITS-REST lets a4xxcarry its error details, and reads the stored template’s id from theETagof the201(#4523). -
An ADL 2 operational template whose included archetype reuses the template’s node ids uploads again, where it was refused with
422under VCOSU. Node-id uniqueness now holds per archetype and restarts at eachC_ARCHETYPE_ROOT(AOM 2 VCOSU, “unique within the archetype”), and on an operational template the codes and interior node ids below a root are judged against that constituent’s entry incomponent_terminologies(OPT 2master03-opt_raw). A duplicate node id inside one archetype is still refused. The nineopenehr-*crates step to 0.0.125 (#4529). -
The viewer’s dashboard draws the EHR or composition count as unavailable, with the reason in plain words, when the CDR answers its count query with a result set of another shape (no row, several rows, an empty row, several values, or a value that is no whole number), where it drew 0 before. The template Releases table draws such a count the same way. A real zero still draws 0 (#4533).
-
An ADL 2 operational template upload runs the terminology integrity rules (VTLC, VATCV, VTVSID, VTVSUQ, VTVSMD, VTTBK, VTCBK, and VTSD where the level is carried) on each
component_terminologiesentry, and each violation names the component’s archetype id (#4536). -
A COMPOSITION committed against an ADL 2 operational template is validated against the template’s leaf constraints, where it was stored with
201whatever it held. An inlined archetype recorded by its complete identifier (openEHR-EHR-OBSERVATION.x.v1.0.0, BASEmaster07-referencing§Reconstitutability) now matches its template node, so theC_INTEGER,C_REAL,C_STRING,C_BOOLEAN, tuple, value-set and cardinality constraints below it answer422(AOM 2master04.5). An archetype root the template does not inline is refused as a node the template does not define, and aC_INTEGERorC_REALlist ({10, 15, 20}) admits each of its values where only the first was read. Canonical, FLAT and STRUCTURED commits take the same check. The nineopenehr-*crates step to 0.0.127 (#4540). -
A versioned read whose
versionpath segment is no SEMVER version and no{major}or{major}.{minor}prefix, such asv1.x,1.xor01, now answers400before any lookup, where it answered404(parameters/path/version.yaml,responses/400.yaml). This covers the ADL 2 template readGET /definition/template/adl2/{template_id}/{version}, the stored-query readGET /definition/query/{qualified_query_name}/{version}and both stored-query executions at a version,GETandPOST /query/{qualified_query_name}/{version}. A well-formed version the server does not hold still answers404(#4541). -
A FLAT or STRUCTURED read of a COMPOSITION committed against an ADL 2 operational template returns the content below an inlined archetype that the composition records by its complete identifier (
openEHR-EHR-OBSERVATION.x.v1.0.0, BASEmaster07-referencing§Reconstitutability). The read left out everything below such a root with no error; it now matches the root to its template node the way the commit does. The nineopenehr-*crates step to 0.0.128 (#4551). -
A COMPOSITION committed against an ADL 2 operational template whose
C_INTEGERorC_REALconstraint is a union of ranges (for examplemagnitude matches {|0..5|, |10..15|}) is refused with 422 when the value lies outside every range. Such a value was stored. The served Web Template does not change: its inputvalidation.rangeholds one range, so a union leaves it out, as before, and the check runs on the commit (#4552). -
A FLAT or STRUCTURED read of a COMPOSITION committed against an ADL 2 operational template returns the value of an ELEMENT that holds a
DV_INTERVALwhoselowerandupperthe template constrains. The read left the value out with no error (#4559). -
A FLAT or STRUCTURED read of a COMPOSITION returns the value of an ELEMENT that holds a
DV_INTERVALwhose template leaves the interval’slowerandupperunconstrained, for ADL 1.4 and ADL 2 templates. The read left the value out with no error, and a FLAT or STRUCTURED commit could not name the parts (#4559). -
A COMPOSITION written from FLAT or STRUCTURED against an ADL 2 operational template carries what a canonical body built to that template carries. A node the template gives no term text, such as the HISTORY and ITEM_TREE of an OBSERVATION, is named for its RM type (
History,Tree) instead of its bare id-code (id2). Every inlined archetype root records the complete identifier the template names (…cnf_minimal.v1.0.0, BASEmaster07-referencing§Reconstitutability) in itsarchetype_node_idandarchetype_details.archetype_id, andarchetype_details.rm_versionis the template’srm_release. Before this change the root recorded the interface form (…v1) and the server’s RM 1.2.0. Compositions built against an ADL 1.4 template keep their major-version archetype ids and RM 1.2.0 (#4560). -
ferroehr reportin a release build names theopenehr-*crate versions that release published to crates.io: the release lanes stamp the published version into the checkout before they build the server, where the report used to name the floor the source tree holds. A newopenehr_crates_originfield sayspublishedfor a release build andsource_treefor any other, a pre-release included (#4565). -
An ADL 2 archetype reference resolves to one defined stored release: an interface reference (
….v1) takes the newest release of its major version, a reference with a minor or patch version narrows the match to it, and an alpha or beta version matches only its full identifier (BASE Artefact Identification, Referencing). With several releases of one archetype stored, a template upload, an operational template and the delete’s dependents check used whichever release PostgreSQL returned last, and a reference to a major version no stored release carries resolved to another major version (#4567). -
An ADL 2 upload and an ADL 2 delete no longer race. An upload validated before a concurrent delete of an archetype it uses committed could store a template whose constituent was gone. Both now hold one transaction-scoped advisory lock from the repository read to the commit, so the second write decides on what the first committed: an upload after the delete is refused with
VARXR, and a delete after the upload is refused with a409naming the template (#4568). -
The syslog form (DICOM PS3.15, IHE ITI-20) of an EHR-level audit record names its object beside the patient, as a URI participant object with the id its FHIR
AuditEventnames. The record of placing, releasing or expiring an EHDS Art. 3(3) access delay names the held composition asaccess-delay:<vo>, so an Audit Record Repository fed by syslog can tell which composition a hold covers (#4569). -
An ADL 2 template or archetype that references two major versions of one archetype (
….v1and….v2), or one archetype under two namespaces, now compiles against both: theopenehr-adlrepository holds an artefact under its namespace, archetype and major version, and resolves each reference within that key (BASE Artefact Identification, Referencing). A reference without a namespace now resolves in the namespace of the artefact that makes it, and never in another namespace (#4579). -
A read of a stored ADL 2 template by a partial id or a
version(GET /definition/template/adl2/{template_id}) now resolves the way template compilation does: withv1.0.0stored besidev1.0.0-rc.1,….v1,….v1.0andversion=1.0.0answer the release in either upload order, and the release candidate is read only by its full version (BASE Artefact Identification, Referencing) (#4580). -
A write that sends no committer, on a route that takes a bare RM body (the
EHR_STATUS, COMPOSITION and DIRECTORY writes, and the demographic party and relationship writes), now records a Bearer caller’s login as issued by the token issuer, as EHR creation and every other default committer already did. It recorded the issuerferroehrfor every caller before; a Basic caller’s login is still issued byferroehr(#4585). -
The viewer’s ADL 1.4 template upload opens the stored template’s page, read from the
ETag(else theLocation) of the CDR’s201, where it went to an address with no template id. A refused upload names each violation the CDR found, its rule code or path and the CDR’s words for it, as the ADL 2 upload does: the upload asks forPrefer: return=representation, the preference under which ITS-REST lets a4xxcarry its error details (#4596). -
An EHR Extract import refusal for a received version now names that version’s position in the extract (
chapters[i]/items[j]/item/versions[k]), so an importer can find the defectiveORIGINAL_VERSIONin a large extract (#4602). -
The import reads a version’s
other_input_version_uidswith the parser the CONTRIBUTION path uses and refuses an entry that is not anOBJECT_VERSION_ID, where it used to drop the entry. On the wire the extract decode already refuses such an entry with 422, so the import stays all or nothing (#4602). -
An AQL archetype predicate matches the namespace exactly and reads the version it names as the oldest release it accepts within the major:
org.a::…no longer finds data recorded inorg.b, an id without a namespace finds only data recorded without one, and.v1.4.2no longer finds data recorded underv1.0.0(BASE Artefact Identification §Referencing and §Supporting Archetype-based Querying; #4629, #4630).
Security
Shipped with functional changes because: both fixes exist only in ferrohealth-server releases that carry functional changes in the same serving path beside them (0.3.7 two fixes, 0.3.8 and 0.3.9 the problem details module, the kept listener TLS and the unmasked remedy), so there is no security-only release of the crate for FerroEHR to take, and the client CA refusal ships in the release candidate the advisory names.
-
FerroEHR takes
ferrohealth-server0.3.7 in place of 0.3.5 (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 about 8400 silent connections from a client with no credentials exhausted the quickstart’s file descriptors and the CDR stopped answering, health checks included; the listener then retried a failedacceptat once and logged every failure. Such a connection now closes once[server] header_read_timeout_mspasses (30 s by default), counted from accept, and after anEMFILEorENFILEthe listener pauses up to 1 s before it accepts again and logs one warning every 10 seconds (#4283). -
A
[server.tls]table that setsclient_ca_filewithclient_authatnone, written or by default, is refused at load, naming the setting (GHSA-52mf-qg39-4q4j). Before 5.5.0 a client CA alone meant that every client presents a certificate; 5.5.0 moved the listener ontoferrohealth-server, whereclient_authdefaults tononeand the CA was read and ignored, so a configuration carried over passedconfig checkand served without asking a client certificate. FerroEHR takesferrohealth-server0.3.9, which refuses it and names the remedy in full. A 5.5.0 deployer who setsclient_ca_filesetsclient_auth = "required"beside it. The default template no longer pairs a client CA withnone, and says what eachclient_authvalue does (#4349). -
CVE-2026-84243, the glibc gettext
LANGUAGEdirectory traversal (GLIBC-SA-2026-0025), has no Debian fix for trixie yet and is judgednot_affectedin every image. Theferroehrandferroehr-viewerprograms never leave the C locale, so glibc ignoresLANGUAGEand opens no message catalog (security/vex/ferroehr-os.openvex.json). Inferroehr-postgresonly the container environment the operator writes can setLANGUAGE; no database connection can (security/vex/postgres-os.openvex.json) (#4500).
5.6.0-rc6 - 2026-11-01
5.6.0-rc6 is the sixth release candidate of 5.6.0, published for testing. It breaks clients that relied on the lenient CONTRIBUTION commit: POST /ehr/{ehr_id}/contribution and POST /demographic/contribution read the body through the released NewContribution schema and answer 400 for a lifecycle_state that is no DV_CODED_TEXT, a description that is a plain string or an object without _type, an audit without change_type, an audit typed ATTESTATION or UPDATE_ATTESTATION, a missing audit or versions, and a preceding_version_uid sent as a plain string, and a stated empty system_id is refused with 422 on every write path (#3595, #4543). These notes carry every change since 5.5.0, those of the 5.6.0-rc5, 5.6.0-rc4 and 5.6.0-rc3 sections below included. New since 5.6.0-rc5: the EHDS Art. 3(3) delay of the person’s own access to newly registered data, off by default under the new [access_delay] section, with release by the treating professional or the controller (#4351); the EHDS Art. 5 mark of what a person inserts in their own EHR, with their update or deletion of a professional’s version refused with 403 (#4350); ADL 2 validation that admits a constraint on an RM computed attribute (#4513), holds VCOSU and the code checks per constituent archetype (#4529), refuses a template whose constituent archetype is not held (#4505) and the delete of an artefact another stored artefact needs (#4522), runs the terminology integrity rules on each component terminology (#4536), enforces a template’s leaf constraints at the commit (#4540) and resolves a reference to the newest stored release of its major version (#4567); FLAT and STRUCTURED reads under an ADL 2 template that return the content below a root recorded by its full archetype reference (#4551) and a DV_INTERVAL value (#4559); a node row below the root that keeps its archetype header, language and encoding in columns (#4525); an audit record whose request id and version uid ITI-81 finds from the record’s own columns, with retention reaping the search tokens no record names (#4524); a versioned read with a malformed version segment answered 400 (#4541); the viewer’s release groups and Compare tab (#4506) and its malformed AQL count drawn as unavailable (#4533); the conformance pipeline on Veredictum 0.3.2 with the released and development profiles and their badges (#4503); and the openehr-* crates versioned at publish (#4555). The conformance run on main still has known red rows, tracked on #4455, two of them Veredictum’s (Vernum-Projecten/Veredictum#964 and Vernum-Projecten/Veredictum#965), so this candidate does not claim a green Veredictum record. 5.5.0 stays the stable release: this pre-release moves neither the latest image tags, the book under /docs/latest/ nor the hosted sandbox, it publishes no crates, and it receives no fixes; the next release candidate or 5.6.0 itself replaces it. Before you try it: a CONTRIBUTION commit must take the shapes above; a write under a token whose SMART resource scopes are all patient/ scopes records PARTY_SELF as committer and may change only what the person committed, and a service auth_failure answers 403 where it answered 500; a versioned read whose version is no SEMVER version or prefix answers 400 where it answered 404; the served Web Template of an ADL 2 template writes a data value’s aqlPath without an [idN] predicate; a composition that breaks an ADL 2 template’s leaf constraint, and an ADL 2 template whose constituent archetype is not held, answer 422; every route ITS-REST 1.1.0 does not define moves from /ferroehr/rest/openehr/v1/ to /ferroehr/rest/extensions/v1/, and the ITI-81 retrieval to /ferroehr/rest/fhir/r4/AuditEvent, with no redirect from the old paths; an error body is application/problem+json, so a client that read message reads detail, and one that read validationErrors sends Prefer: return=representation and reads errors; audit migration 0017 refuses an audit store that holds records written by 5.5.0 or earlier, while an audit store that 5.6.0-rc2 migrated upgrades in place; a [server.tls] table with client_ca_file must set client_auth = "required" (or "optional") beside it, or the configuration is refused at load; [server] header_read_timeout_ms no longer bounds an idle kept-alive connection, which the new [server] idle_timeout_ms (120000 by default) closes, so keep it longer than the idle timeout of your clients and load balancers; a client that wrote a space as + in a query string sends %20; a party delete names the latest OBJECT_VERSION_ID in its path and answers 400 for a versioned object id; a body the RM refuses after the ITS-JSON schema admits it answers 422, and a misplaced CONTRIBUTION member, a Simplified Format commit without openehr-template-id and a flat |raw value without _type answer 400; a tag update under Prefer: return=identifier answers 200 with the tag list; with [authz.rbac] enabled a token holding only system/ SMART on openEHR scopes reaches clinical operations without a role; the viewer image serves no /pkg/ and reads no LEPTOS_SITE_ROOT, LEPTOS_OUTPUT_NAME or LEPTOS_HASH_FILES, and its Content-Security-Policy is script-src 'self'; style-src 'self'; Helm chart 21.0.0-rc6 refuses to render until config.deployment_profile names sandbox or production, and a values file for its FerroPIX moves ferropix.config.server.public_base_url to ferropix.config.public_base_url and each issuer’s clients to ferropix.config.trust.issuer. Storage generation 3 adds node columns and migrates no data; clinical migration 0020 adds the origin to retention policies and 0021 statistics on the archetype columns, and clinical 0022 and 0023 and party 0013 and 0014 rebuild the version tree’s uniqueness constraint and index its version id columns, which reads every version row of an existing store once; clinical 0024 and party 0015 index the version uid, ext 0006, clinical 0025 and party 0016 add the ELEMENT value search index, built over every hot node row of an existing store, party 0017 adds the archetype statistics, and clinical 0026 and party 0018 grant MAINTAIN on the partitioned tables to the serving roles; clinical 0027 and party 0019 add the access delay, and ext 0007, clinical 0028 and party 0020 add the node header columns with no data migrated; audit migration 0019 gives the search token index a pending list of 512 kB, and audit 0020 adds the hash index on request_id. Helm chart 21.0.0-rc6 carries appVersion 5.6.0-rc6. Security carries two advisories, GHSA-2mc2-h3jq-c5wg and GHSA-52mf-qg39-4q4j, and the OpenVEX judgement of CVE-2026-84243.
Added
-
The logging component’s intended performance is stated as checkable claims (EHDS Annex II 1.1): every composition create and read recorded exactly once and every AQL execution at least once, no access succeeding without its record, at most 125 % of the latency and at least 80 % of the throughput with the access log off, and a 50-record ITI-81 page within 250 ms at p95.
scripts/perf/audit.shmeasures them with the access log off and on (the load test’s new--auditmode counts the records through ITI-81 and times retrievals),scripts/perf/audit-verdict.shgives the verdict, the release refuses a claim not met and attaches the summary asferroehr-<tag>-logging-performance.md(Annex III point 2), and the weekly performance guard runs it on main. The book’s compliance section gains the page that states the claims and the method (#4293). -
scripts/interop/atna.shexercises the logging component’s ATNA transactions against independent implementations run from published images (EHDS Annex II 1.4): the ITI-20 FHIR feed into HAPI FHIR as the Audit Record Repository, judged by its validator with IHE BALP 1.1.4; the ITI-20 syslog feed into syslog-ng over RFC 5425 TLS, each payload read as a DICOM PS3.15AuditMessage; and the same ITI-81 searches put to FerroEHR and to HAPI. The audit trail page documents it (#4296). -
FerroEHR ships an EHDS category map for the published CKM templates and COMPOSITION archetypes whose data sit in one Art. 14(1) priority category (the International Patient Summary, ePrescription, the generic laboratory result and CCTA report templates; the
health_summary,prescriptionandtransfer_summaryarchetypes), so an installation that declares no[audit.categories]keys records those accesses classified instead ofunclassified(EHDS Annex II 3.2(c)). A deployment that declares any template or archetype replaces it whole.[audit.categories] shipped_map = falsewith nothing declared leaves no map, whichdeployment_profile = "production"refuses as the newno_category_mapgap unlessdeployment_acceptsnames it (#4298). -
Retention periods and access rules can take the origin and the category of the data into account (EHDS Annex II 3.4). The new top-level
[origins]register declares the origins a deployment recognises, each by the id its data carry and the clients whose direct commits come from it; a body without aFEEDER_AUDITcommitted by a registered client is stamped with that client’s origin instead of the server’ssystem_id.PUT /admin/retention/policytakes an optionaloriginnaming a registered origin, the register andGET /admin/retention/duereport it, and the due list lists an origin-keyed period over the objects of that origin (clinical migration0020_retention_by_origin.sql). The ABAC request carriescategory(the access record’s category tokens) andoriginresource attributes on composition, contribution and query operations, the Cedar schema declares both, and a remote PDP binding may name them as parameters (#4299). -
The operations page gains a storage sizing section, measured on 5.6.0-rc5: about 21.6 KB of clinical storage per version of a vital signs composition (2.0 times its canonical JSON, 85 % of it node rows) and 155 KB for an International Patient Summary, about 1.2 KB per audit record of a read, the effect of
[audit.store]retention on growth,pg_walup tomax_wal_size, theREINDEX INDEX CONCURRENTLY clinical.node_hot_pkeystep (20 % of that index after heavy concurrent writing) and a query for the size per relation, with the method to reproduce the figures (#4304). -
EHDS Art. 5: what a person inserts in their own EHR is marked as theirs, and they cannot alter what a professional committed. A write under a token whose SMART resource scopes are all
patient/scopes recordsPARTY_SELFas itsAUDIT_DETAILS.committer, itsexternal_refnaming the login, whatever committer the request names; a COMPOSITION it commits must namePARTY_SELForPARTY_RELATEDas composer; and its update or deletion of a version whose committer is notPARTY_SELF, directly or inside a CONTRIBUTION, is refused with403. A professional’s writes are unchanged. The contribution list extension gainsinserted_by_personper row, and the viewer names aPARTY_SELFcommitter “The person or their representative”. A serviceauth_failurestatus now answers403where it answered500(#4350). -
The EHDS Art. 3(3) delay of the person’s own access to newly registered data, a Member State option and off by default. The new
[access_delay]section (enabled,categories,hours) holds every new COMPOSITION of a listed[audit.categories]category from requests that may be the person’s own (a bearer token with a SMARTpatient/grant or the ABAC patient claim, also besideuser/orsystem/grants, asferrohealth-smart0.8.7 decides it) for at mosthours: a read answers404as for an unknown composition, and a query, an export and a CONTRIBUTION leave it out, while a professional reads it as before. The treating professional releases a held composition from the clinical routePOST {ext}/ehr/{ehr_id}/versioned_composition/{versioned_object_uid}/access-delay/release, with the checks of a write to that EHR, and the controller withPOST /admin/access-delay/release; a professional holds one by hand within the limit withPOST /admin/access-delayand reads the register withGET /admin/access-delay; every hold ends at its limit, and placing, releasing and expiry are each an access record. The subject-scoped ITI-81 read of the person’s own trail (EHDS Art. 9) leaves out the records about a held composition until it is released or expires, then serves them with their original times (ehds-logging0.3.3) (clinical migration0027_access_delay.sql, party migration0019_access_delay_column.sql) (#4351). -
The
openehr-itsclient reads an RFC 9457 problem details refusal:ErrorBody::problem()exposes itstype,title,status,detailandinstance, ignoring a member of the wrong type (RFC 9457 §3.1), andErrorBody::message()answers the problem’sdetail, else itstitle, where it answered only the ITS-RESTError’smessage. Theopenehr-*crates move to 0.0.115 (#4355). -
The local EHR index (
[ehr_index] provider = "local") is a supported production posture beside the IHE patient identity source:EHR_STATUS.subjectnames a patient by its own namespace and identifier, whichGET /ehr?subject_id=&subject_namespace=matches, and with no[privacy] subject_namespacesdeclared the reference is stored as the client sends it. The compose quickstart selects it withFERROEHR_EHR_INDEX=local docker compose up, which runs itsferroehr-config-localblock (#4379). -
CI checks every inline configuration of the compose quickstart with the
config checkof the image the file pins, FerroEHR’s and FerroPIX’s, so the quickstart can no longer carry a configuration its pinned server refuses (#4380). -
The Conformance workflow runs the Veredictum 0.3.0 catalogue in CI through the Veredictum GitHub Action, pinned by commit SHA and running the release image by digest. It builds FerroEHR from the commit, composes it with FerroTERM beside it on fresh volumes, reviews the party statement with
veredictum validate, fails on a failed or errored row, writes the Markdown summary to the job summary and uploads the results, JUnit and CTRF views. It runs on pull requests that touch the server, the party set, the conformance compose files or the workflow, onmain, on a release tag and twice a week.scripts/conformance.shtakes a stage (run,review,up,down), so CI and a local run compose the same deployment, andscripts/checks/veredictum-action.shfails while the Action SHA, its version comment, the image digest andVEREDICTUM_VERSIONdisagree (#4449). -
The Conformance workflow runs the Veredictum
smartdocuments (smart_discovery,smart_scopes) against the same FerroEHR build after the Veredictum Action, which forwards no SMART Platform base URL and no scoped tokens. The same pinned image runsveredictum testwith--platform-urlanddocs/conformance/party/ferroehr/ixit-smart.json, minting each access token in memory from the committed test issuer the SMART overlay trusts, and the job uploads its results, JUnit and CTRF views beside the catalogue’s and adds its summary under a heading of its own.scripts/conformance.shgains thesmartstage, andrundrives it after the catalogue, so a local run covers SMART too (#4450). -
GET /ehr/{ehr_id}andGET /ehr?subject_id=…now sendLast-Modified: the commit that created the EHR, or the later commit that added or deleted one of its folder hierarchies (#4462).
Changed
-
Breaking for clients that relied on the old leniencies:
POST /ehr/{ehr_id}/contributionandPOST /demographic/contributionnow read the body through the releasedNewContributionschema, and refuse every shape it does not define. Each refused shape answers 400: (#3595)- a
lifecycle_statein the CODE_PHRASE shape{"terminology_id": …, "code_string": …}, as a plain string, or as a bare{"value": …}. Send aDV_CODED_TEXT:{"value": "complete", "defining_code": {"terminology_id": {"value": "openehr"}, "code_string": "532"}}; - a
descriptionsent as a plain string, on the contributionaudit, on acommit_auditor on an attestation. Send aDV_TEXTorDV_CODED_TEXTobject:{"_type": "DV_TEXT", "value": "…"}; - a
commit_auditor contributionauditwithoutchange_type. The server no longer infers creation or modification frompreceding_version_uid; send the code of the change, for example249(creation),251(modification),523(deleted) or666(attestation); - a
commit_auditor contributionauditwhose_typeisATTESTATIONorUPDATE_ATTESTATION, or any value other thanUPDATE_AUDITorAUDIT_DETAILS. Send the audit asUPDATE_AUDIT(or with no_type) and put each attestation in the version’sattestationslist as anUPDATE_ATTESTATION. A666(attestation) version carries its attestations there too, and one with no attestation is refused; - a missing
audit, which answered 422 before. A missingversionslist, an attestation withoutreasonoris_pending, asystem_idthat is not a string, and apreceding_version_uidsent as a plain string instead of{"value": "…"}are refused the same way.
- a
-
An attestation’s own
system_idis kept, and one that states none takes thesystem_idof the version audit it belongs to instead of the server’s. An attestation committer is now checked against itsPARTY_PROXYrules like every other committer, so an invalid one answers 422 (#3595). -
The served OpenAPI document describes each extension route by what it does and by the ITS-REST text that governs it, and no longer names openEHR Service Model operations, interfaces or status codes. Routes, request and response fields and status codes are unchanged (#4213).
-
A population AQL query that only counts its root objects, such as
SELECT COUNT(c) FROM EHR e CONTAINS COMPOSITION cor the same withCOUNT(*), reads the current version rows and no longer probes the root node of every composition. At 545 000 compositions the count fell from about 9 s to 0.2 s (#4286). -
A REST request checks a connection out of each database pool once and keeps it until it answers, where it took one for each statement: two to four checkouts for a read of an EHR, an EHR_STATUS or a COMPOSITION, each waiting in the pool’s queue under load and each paying the pool’s release round trip. At 48 concurrent clients and a pool of 10, throughput rose by about 18 % and the median latency fell by about 13 % (#4289).
-
The Helm chart, at a new major version (21), has no default deployment profile: it refuses to render until
config.deployment_profilenamessandboxorproduction, so an installation that follows a quickstart instead of the instructions for use no longer runs the sandbox posture by omission (EHDS Annex II 1.2). A values file that relied on the oldsandboxdefault must now set it, for example--set config.deployment_profile=sandbox;values-production.yamlsetsproductionas before. The server binary’s own default and the Compose files, which declaresandboxexplicitly, are unchanged (#4294). -
The audit store keeps each record’s facts in columns and renders its FHIR R4
AuditEventfrom them when the record is read over ITI-81 or delivered by the FHIR feed, instead of storing the rendered document in every record. A record takes about a quarter of the space it took before. The configuration the rendering depends on (the audit source, the store horizon, the category map and the emergency purposes) is kept once per distinct configuration inaudit.audit_render_policy, and every record names the policy it was written under, so it renders the same document after the configuration changes. The tamper chain hashes every column of the record in one digest and checks each render policy against its digest; the earlier digest versions are retired. Audit migration 0017 needs an empty audit store and refuses one that holds records written by an earlier release, naming the remedy. ITI-81 parameters on an element of the document (address, the.identifierparameters,entity-type,entity-role,type,subtype) are matched against the rendered document (#4300). -
The three audit indexes on
recorded_atascend, so their pages fill instead of splitting half full on every insert; the newest-first ITI-81 search scans them backward (#4302). -
A clinical or party node row now stores only the part of its canonical JSON fragment that its own columns do not hold:
_type, a lowercasearchetype_node_id, a plain or simply coded name, and an ELEMENT value in one of the common basic shapes (a quantity, count, ordinal, coded or plain text, date, time, duration, identifier, boolean or URI) move into columns, the value into the new typed value columns. Every reader rebuilds the omitted keys, so the canonical JSON and every AQL result are unchanged, and a filter on a quantity’s magnitude or a code reads its column directly. The node heap shrinks by about a third (storage generation 3); a row written before keeps its whole fragment and reads the same. Migrationsext/0005,clinical/0019andparty/0012add the columns and the readers; no data is migrated (#4306). -
Every ITI-81 search parameter answers through an index again. The store takes the search tokens of a record’s rendered
AuditEventwhen it writes the record: each distinct token once inaudit.audit_search_token, the code-system tokens (type,subtype,entity-type,entity-role,source.identifier) as one shared set inaudit.audit_search_set, and their ids on the record insearch_tokensunder a GIN index;entityreads a hash index onresource_id. A search onaddressor a token parameter no longer renders every record in itsdatewindow. The tamper chain coverssearch_tokens, and the verifier reports a changed token or set (#4313). -
The storage-bench lane measures the baseline and the candidate on one runner in eight interleaved rounds each and gives two verdicts. The plan verdict fails an operation whose median pages per call rose more than 10 % and one page above the baseline’s highest round, whatever its time. The time verdict divides each round by its machine factor, so a slow spell of the runner no longer reads as the code, and fails an operation whose median p50 or p99 rose more than 15 % with every candidate round slower than every baseline round, or a candidate build that ran more than 15 % slower across the board in every round. A latency is no longer compared with a record measured on another runner (#4318).
-
The viewer takes FerroUI 0.5.8: a menu item draws a visible bar under the pointer and the keyboard focus, and the top bar’s search no longer opens its panel again over the page the router draws after a search is submitted or one of its options followed (#4319).
-
Nothing ITS-REST 1.1.0 does not define is served under the openEHR base path any more. FerroEHR serves three namespaces beside each other under
/ferroehr/rest/:/openehr/v1/holds only the ITS-REST routes,/fhir/r4/the FHIR and IHE interfaces, and/extensions/v1/FerroEHR’s own extensions. The ITI-81 retrieval moved from/ferroehr/rest/openehr/v1/fhir/r4/AuditEventto/ferroehr/rest/fhir/r4/AuditEvent. These routes moved from/ferroehr/rest/openehr/v1/...to/ferroehr/rest/extensions/v1/...with the same relative path:/terminology/...,/admin/event_subscription...,/demographic/party_relationship...,/demographic/versioned_party_relationship/...,/definition/archetype/...,/definition/artefact/...,/message/export...,/message/import...,/query/cohort, and the admin extensions/admin/config,/admin/template/{template_id},/admin/query/{qualified_query_name}/{version},/admin/party/...,/admin/archive/...,/admin/report/...,/admin/dump,/admin/load,/admin/integrity/...,/admin/restriction...,/admin/access-restriction...,/admin/research-objectionand/admin/retention/.... The old paths answer 404, with no redirect. The served OpenAPI document and its family documents name the new paths; the admin extensions, the archetype library and the cohort query have family documents of their own (admin-extensions,archetypes,cohort,contributions). The paged CONTRIBUTION list moved too, to/ferroehr/rest/extensions/v1/ehr/{ehr_id}/contribution(#4330). -
The server and viewer images build on the current
gcr.io/distroless/cc-debian13:nonrootdigest, so they carry the base image’s latest Debian package updates (#4335). -
Canonical JSON validation against the openEHR ITS-JSON schemas runs on
jsonschema0.59.0, which refuses a value whose regex match the engine cannot finish where 0.58 accepted it undernotorpatternProperties. Theopenehr-*crates move to 0.0.113 (#4336). -
A statement the database cancels, by its
statement_timeoutor a cancel request (SQLSTATE57014), answers503withRetry-Afterinstead of500: the statement rolled back, so the request can be repeated. By default the request timeout answers before the 60 s statement timeout fires, so on a request path it is raised by an operator’s cancel or by a forward step of the database host’s clock, which fires every running statement’s timeout at once (#4338). -
Every error on the openEHR routes (
/ferroehr/rest/openehr/v1/), the extension routes (/ferroehr/rest/extensions/v1/) and the management routes answers RFC 9457 problem details,application/problem+json, in place of the{ message, validationErrors, error }body shaped after the ITS-REST example. The status codes are unchanged. A problem carriestype,title,status,detailand the request id as aurn:uuid:instance; the refusals a client acts on have FerroEHR types documented on the book’s Problem types page (aql-invalid,query-timeout,validation-failed,content-invalid,conflict,version-conflict,unauthenticated,forbidden,processing-restricted,unavailable,rate-limited), every other error isabout:blank. A request withPrefer: return=representationreceives the additional details ITS-REST allows: the violations of a validation refusal aserrors({path, detail}, wherevalidationErrorsheld"<path>: <message>"strings), the bytepositionof an AQL parse refusal, and thecurrent_versionof a412. The stack’s own408,413,429,503and panic500are problems too, and anOperationOutcomeunder the FHIR base, where an authentication refusal is now anOperationOutcomeas well. The served OpenAPI document declares theProblemschema for every4xxand5xx, and the viewer reads problem details. A client that readmessagereadsdetail; one that readvalidationErrorssendsPrefer: return=representationand readserrors(#4342). -
The FHIR
AuditEventof an EHDS access record names the object it reads, creates, updates or deletes by its openEHR object id asentity.what.identifierwith the systemurn:openehr:object-id, where it wrote awhat.referencethat no FHIR server resolves and HAPI FHIR refused (FHIR R4 references.html §2.3.0.3). ITI-81 finds the record byentity.identifier. FerroEHR takes FerroAUDIT 0.3.2 (ihe-atnaandehds-logging) (#4366). -
The access log costs the request path less under load. The audit store writes a drained batch, its search tokens and its token sets in one transaction on one connection (one commit where it took up to three), stores only the tokens it does not hold yet, and the GIN index on
search_tokenstakes new entries through a pending list of 512 kB. On the release load test the store wrote 1.5 KB of WAL per record where it wrote 5.2 KB (#4375). -
The LANG specification text is re-vendored at
f80763ab(#4377). SPECLANG-18 states how a P_BMM schema’s JSON form encodes a cardinality interval, which the JSON schema reader already followed; its documentation now cites the rule, and a test pins it. SPECLANG-16 types the P_BMM class lists as keyed collections; the generated P_BMM model takes that change with #4497. The nineopenehr-*crates step to 0.0.122. -
[ehr_index] provider = "local"besidepixm_url,assigning_authority,[ehr_index.oauth]or[ehr_index.tls]is accepted, where it was refused: the IHE keys are kept, not used and named at boot, soprovideralone switches the index, in the file or asFERROEHR__EHR_INDEX__PROVIDER. Declared pseudonym namespaces stay in force under either index (#4379). -
A build no release lane marked reports its commit beside the package version, as SemVer build metadata (
5.6.0-rc2+dev.1a2b3c4d5e6f), onferroehr --versionandserver_versionofGET /ferroehr/rest/status(the boot banner and/management/infoalready name the commit beside the version), so a report from a build ofmainno longer reads as the release it follows; a release build reports the bare version (#4380). -
The compose quickstart runs FerroPIX 0.0.12, pinned by digest, with its configuration moved to that release’s keys (
public_base_urlat the top level, the Patient Identity Source’s client under[[trust.issuer]]), and Dependabot proposes each FerroPIX release (#4380). -
The Helm chart runs FerroPIX 0.0.12 by digest, with the FerroPIX chart 0.3.4 built for it, and the hosted sandbox runs FerroPIX 0.0.12 too; both had stayed at 0.0.7 and 0.0.10 when the quickstart moved. A values file for the chart’s FerroPIX moves
ferropix.config.server.public_base_urltoferropix.config.public_base_urland each issuer’sclientstoferropix.config.trust.issuer, the keys FerroPIX reads since 0.0.8; the chart’s examples and the production overlay do. FerroPIX’s chart now also runs its pods withenableServiceLinks: falseand in a user namespace (ferropix.hostUsers: false, the default). A CI guard holds the quickstart, chart and sandbox to one FerroPIX release and checks the sandbox’s and the chart’s FerroPIX configuration under it, so the Dependabot proposal for the quickstart pin moves all three (#4392). -
openehr-query, the AQL 1.1.0 lexer, parser, typed AST and printer, is published under Apache-2.0 from 0.0.116, like the generated model crates andopenehr-its, so any Rust project can parse AQL with it. Versions 0.0.60 to 0.0.115 keep the Business Source License 1.1 they were published under (#4405). -
FerroEHR takes
ferrohealth-server0.4.0 in place of 0.3.9. The new[server] idle_timeout_ms(120000 by default) closes a kept-alive HTTP/1.1 connection that waits that long for its next request, with a clean end of stream, and[server] header_read_timeout_mscounts from the first byte of each request head on a kept-alive connection (from accept for the first one, as before). The head bound 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, which a client such as Go’snet/httpsaw asEOFon aPOSTit does not retry (#4381). A deployment that setheader_read_timeout_msto bound idle connections setsidle_timeout_msinstead. The refusals the listener writes itself (408,413,429,503) and a panic’s500keep naming the server’s request id as theirinstancewhen the client sends its ownX-Request-Id, as every other FerroEHR refusal does (#4417). -
FerroEHR runs on
ferrohealth-server0.4.1, which keeps a product’s own fallback and the layers around it when the stack merges its routes (FerroHEALTH/FerroSYS#199). FerroEHR, v5.6.0-rc3 included, was not exposed to the regression 0.4.1 fixes: the REST API and the viewer declare their own fallback inside their layers, and the management endpoints guard each route they serve, so a path no route matches answers as it did before (#4427). -
The viewer draws every page on its server with FerroUI 0.6, with no Leptos and no WebAssembly: a link and a form load a new page, and FerroUI’s own small script modules add behaviour on top of what the server drew, so every page works with JavaScript off. The image ships the one
ferroehr-viewerbinary, with no/sitetree beside it and nohash.txt; FerroUI’s stylesheet, theme and scripts are served from inside it under/ferrohealth-ui/0.6.0/, and/pkg/no longer answers. The Content-Security-Policy is nowscript-src 'self'; style-src 'self'with no per-response nonce and no'wasm-unsafe-eval'. The image no longer readsLEPTOS_SITE_ROOT,LEPTOS_OUTPUT_NAMEorLEPTOS_HASH_FILES, so a deployment that sets them can drop them;LEPTOS_SITE_ADDRnaming another address thanserver.listenstill refuses the start. A proxy rule written for/pkg/(the hosted deployment’sCache-Controlfor it is removed) has nothing left to match (#4433). -
The viewer runs on
ferrohealth-server0.4.2 and takes its Content-Security-Policy from the family’s server-rendered console headers (FerroHEALTH/FerroSYS#202) in place of a layer of its own. The policy a deployment sees is unchanged:default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; connect-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none', with no nonce. FerroUI’s assets under/ferrohealth-ui/keep theCache-ControlFerroUI sets, and a refusal under that path isno-storewhatever FerroUI’s router sets, so a cache in front of the viewer keeps no error answer for an asset. The REST server takes the sameferrohealth-serverrelease with no change in what it serves (#4439). -
scripts/conformance.shruns the Veredictum 0.3.0 catalogue against one FerroEHR deployment: it reviews the party statement withveredictum validate, drivesveredictum testin the release image pinned by digest with Basic login, and writesresults.json, the HAR recording and the JUnit, CTRF and Markdown views todocs/conformance/ferroehr/. Docker or Podman runs it (CONTAINER_ENGINE). The FerroEHR statement now claims the 15 capability folders and answers every option of the 0.3.0 catalogue, and the IXIT keeps only what 0.3.0 reads (#4448). -
The serving roles may now analyze their store’s partitioned tables: new migrations (clinical 0026, party 0018) grant
MAINTAINonnode,versionandvo_attestation, and onclinical.ehr, toferroehr_clinicalandferroehr_party, so the hourly statistics refresh works under the role split.MAINTAINalso allowsVACUUM,CLUSTER,REINDEXandLOCK TABLEon exactly those tables. A role that still lacks it gets the warning naming the tables, as before (#4453). -
With the role gate on (
[authz.rbac] enabled), a bearer token whose SMART on openEHR resource scopes are allsystem/scopes, such assystem/template-*.r, now reaches a clinical operation without a role: it is a backend client, and its scopes decide what it reaches. Auser/orpatient/token belongs to a person and still needs at least one role, as does a token with no SMART on openEHR scope and a Basic user; an admin operation still needs the admin role (#4467). -
A tag update (
PUT …/tagson EHR_STATUS, COMPOSITION and the five party kinds) sent withPrefer: return=identifiernow answers200with the stored tag list andPreference-Applied: return=identifier. It answered204(#4475). -
The conformance deployment runs FerroTERM beside FerroEHR, pinned by digest, with
[terminology.server]pointed at it, locally inscripts/conformance.shand in the Conformance workflow, so theaql-terminology-supportedarm of the party statement runs against a real terminology server (#4476). -
The P_BMM model follows SPECLANG-16. The LANG 1.1.0 BMM that
openehr-codegenreads is now thespecifications-LANGfile atf80763ab, soP_BMM_SCHEMA.primitive_typesandclass_definitionsare maps keyed by class name,P_BMM_CLASS.ancestor_defsis a map ofP_BMM_BASE_TYPEkeyed by type signature (a simple ancestor included), andP_BMM_GENERIC_TYPE.generic_parameter_defsis an optional map keyed by formal parameter name. The formal and actual generic parameters (P_BMM_CLASS.generic_parameter_defs,P_BMM_GENERIC_TYPE.generic_parameter_defs,BMM_GENERIC_CLASS.generic_parameters) are insertion-orderedIndexMaps, because the specification fixes their declaration order, and the model builders bind each actual parameter to its formal by name. In the releasedv1_0generation,P_BMM_GENERIC_TYPE.generic_parameter_defsnow carries the1..*bound its BMM states. The nineopenehr-*crates step to 0.0.123 (#4497). -
The conformance pipeline runs Veredictum 0.3.1. The Conformance workflow drives the catalogue through the Veredictum Action twice, each run on fresh volumes: under the
releasedprofile, the frozen openEHR release, which is the record and decides the job, and under thedevelopmentprofile, the pinnedmasterof each openEHR repository, which is published beside it under its own job summary heading and artifact and never counted toward it. Both runs include the SMART documents: the Action now takes the SMART Platform base URL and the committed test issuer’s key. The workflow reads the result paths and the exit status from the Action’s outputs.scripts/conformance.shtakes the profile asCONF_PROFILE(releasedby default; adevelopmentrun writes todocs/conformance/ferroehr-development/) and drives the SMART documents in the same run, and the IXIT carries the test issuer’sscoped_tokensdeclaration (#4503). -
The viewer groups a template’s releases. The template list draws one group per template, the newest release first with the number of releases and the earlier releases under it, in both the ADL 1.4 and the ADL 2 tab. A template’s page names its release beside its title, where every other release is a link with the newest marked, also with FerroUI’s scripts refused; the release select and its Open button above the tabs are gone. The Overview lists the releases with the compositions committed against each, and a new Compare tab lists the paths one release adds, removes and changes against another (#4506).
-
An audit record no longer adds a row to
audit.audit_search_tokenfor its request id or for the version uid a create wrote. ITI-81entity.identifierfinds both from the record’s ownrequest_idandresource_idcolumns, through a new hash index onrequest_id(audit migration 0020), so the token table stays flat as requests are audited. Retention now deletes the search tokens that no remaining record names, among them the request id tokens of records written by 5.6.0-rc5 and earlier, and the database still refuses to delete a token a kept record names (#4524). -
A clinical or party node row below the root no longer repeats its archetype header, language and encoding: an archetype root’s
archetype_detailsandarchetype_node_idare rebuilt from thearchetypecolumn and a newrm_versioncolumn, and alanguageinISO_639-1and anencodinginIANA_character-setskeep only their code, in the newlanguageandencodingcolumns. Every reader puts the keys back where they stood, so the canonical JSON, every AQL result and the served key order are unchanged; a header of any other shape stays in the fragment. A vital signs version takes 17.1 KB instead of 21.6 KB and an International Patient Summary 131 KB instead of 159 KB. Migrationsext/0007,clinical/0028andparty/0020add the columns and the readers; no data is migrated, and a row written before keeps its whole fragment and reads the same (#4525). -
Breaking for clients that relied on the remaining commit-audit leniencies: the audit rules of the CONTRIBUTION commit now hold on every write path (#4543).
- A
descriptionobject without_type, such as{"value": "…"}, is refused with 400 on a contributionaudit, acommit_auditand an attestation, and so is an attestationreasonwithout_type. Send{"_type": "DV_TEXT", "value": "…"}or aDV_CODED_TEXTwith its_type. - A stated empty
system_idis refused with 422 on the direct writes too (openehr-audit-details: system_id=""on a create, update or delete), where the server used to replace it with its own. Leavesystem_idout to get the server’s, or send a non-empty one. Asystem_idthat is not a string stays a 400 on both CONTRIBUTION routes. - A commit audit of type
UPDATE_ATTESTATIONhanded to the library’s direct write calls (create_composition,update_composition, the EHR_STATUS, DIRECTORY and party writes) is refused with 400, as on the CONTRIBUTION routes. Send the audit asUPDATE_AUDITand put each attestation in the version’sattestationslist.
- A
-
Members that
NewContributionorUPDATE_AUDITdo not declare, such as areasonoris_pendingon a plain audit or an extra top-level member of a contribution, are accepted and ignored: the released schemas leave both objects open (#4543). -
The
openehr-*crates take their version when they are published. A pull request that changes the crates no longer bumps their lockstep0.0.xversion: the crates publish reads crates.io, takes the next version when packaged content changed since the newest published one, and refuses to publish changed content under a version crates.io already holds. The version in the manifests onmaincan therefore trail the newest version on crates.io (#4555). -
The served Web Template of an ADL 2 operational template writes the
aqlPathof an ELEMENT’s value and of a data value’s parts without an[idN]predicate, since a data value carries noarchetype_node_id(ADL2master05-paths§“Relationship with W3C Xpath”). ADV_INTERVALand its parts read…/value,…/value/lowerand…/value/upper, the form the ADL 1.4 Web Template writes, where they read…/value[id6]/lower[id7]before, and the parts’ ids arelowerandupper(#4559).
Removed
-
The conformance pipeline no longer runs EHRbase or the extra FerroEHR deployments.
docker/sut-ehrbase.yml, the EHRbase record and party set,docs/conformance/COMPARISON.md, the book’s Comparison with EHRbase page, and the openPGP-signing, fail-open and stable-spec compose overlays (docker/sut-signing-pgp.yml,sut-pgp-parallel.yml,sut-terminology-failclosed.yml,sut-terminology-failopen.yml,sut-spec-stable.yml) with the test signing keys undercorpus/keys/are gone.scripts/conformance.shno longer takesCONF_SUT,CONF_IXITorCONF_STATEMENT, and refusesCONF_PERF_CLASSandCONF_STRESSuntil the measured lanes move to the Veredictumperf/tree (#4448). -
The Veredictum pin watcher workflow,
scripts/checks/veredictum-pin.shwith itsveredictum-pin-guardjob, and theno-conformance-runlabel are gone: a pin bump now runs the new catalogue against its own build in the Conformance workflow (#4449). -
The separate SMART step of the Conformance workflow, the
smartstage ofscripts/conformance.shwith itsCONF_SMART_OUT, anddocs/conformance/party/ferroehr/ixit-smart.jsonare gone: the one catalogue run covers the SMART documents. The party statement no longer carries theperformanceblock, which the Veredictum 0.3.1 statement schema refuses (#4503).
Fixed
-
The hosted sandbox seeds its full demo dataset again. The v5.5.0 reseed stopped at the ADL 2 archetype library (233 stored / 89 refused against the pinned 231 / 91) because the box’s
.envstill forced FerroTERM 0.1.6, which reads none of the FerroTERM 0.3 settings the sandbox posture passes, so it served no LOINC and VETDF could only warn onbraden_scale’s mistyped LA9605-4. The corpus, the pin and the CDR were right. The seed now asks the CDR for a LOINC code before the library step and names a posture without LOINC (SANDBOX_TERMINOLOGY=without-loincopts a local run into 233 / 89), checks that the two files it names move together, and a corpus test holds the manifest’s pin to the adjudicated split with and without LOINC. The FerroPIX rollout script retires a staleFERROTERM_IMAGEoverride, checks that FerroTERM runs the pinned version and serves LOINC, and wipes before it seeds over an unfinished seed (#4278). -
The measurement overlay
docker/sut-measurement.ymlswitches the caller rate limiter off by removing the[server.caller_rate]keys, so the server logscaller rate limiting configuredwithenabled=falseat boot, instead of setting a rate of 4294967295 per second thatferrohealth-server0.3.5 truncated to a zero interval and that answered stray429s under concurrency.scripts/conformance.shrefuses to start a measurement stack whoseferroehrservice still sets a caller rate (#4281). -
A response to a request whose body FerroEHR left unread, such as a
404to aPOSTof a path it does not serve or a declared-length413, now carriesConnection: close. The connection closed after such a response without saying so, and a client that sent its next request on it met a closed socket, which a non-idempotent request cannot safely retry (RFC 9112 §9.6) (#4283). -
A
[server.caller_rate]above 1 000 000 000 requests per second no longer answers429to concurrent requests: such a rate now limits nothing, as its operator meant (#4283). -
Every request leaves one request line, a timeout
408, a declared-length413and the500of a panicked handler included, and a413for a body with no declared length that passes[server] body_limit_bytesis answered with the openEHR error body, as the declared-length413is (#4283). -
An AQL query whose
WHEREclause chains thousands ofNOT,ANDorORterms no longer overflows the stack and aborts the server. The parser refuses a query that nests brackets andCONTAINSdeeper than 64 levels or builds an expression deeper than 512 levels with400 Bad Request, before any recursive pass runs, on the ad-hoc, stored-query store and execution paths alike. A longORover one path is written asMATCHES {…}, which the bound does not count. A statement PostgreSQL refuses for its own complexity limit (SQLSTATE class 54) also answers400instead of500.openehr-querygainsParseError::TooDeep(#4284). -
An AQL query (ad hoc or stored) whose client disconnects, or that the server’s own
query.timeout_msor HTTP request timeout gives up on, no longer keeps its statement running and its pooled connection busy until the statement ends. The connection is closed instead of returned to the pool, so the slot frees at once, and every pooled session now sets PostgreSQL’sclient_connection_check_intervalto one second, so the backend stops the abandoned statement within about a second. The composition-count statistics behave the same way (#4285). -
The server’s resident memory no longer climbs under sustained load until the container’s memory limit kills it. The
ferroehrbinary now allocates through mimalloc instead of glibcmalloc, whose per-thread arenas kept freed memory and never gave it back. On a load test of 10 000 mixed jobs at 48 workers the peak resident set fell from 2.3 to 3.2 GB (growing run after run) to about 600 MB, and throughput rose by about a third (#4288). -
A request whose database connection a PostgreSQL restart, a crash or the network cuts now answers
503 Service UnavailablewithRetry-After, as a request that cannot get a connection already did, instead of500. SQLSTATE class08(except08P01),57P01,57P02,57P03and57P05, and a reset, aborted or closed socket on an open session count as such a cut (#4290). -
While PostgreSQL is down, requests that need the database answer
503withRetry-Afterabout a second after the first one starts waiting, and at once after that, instead of each queueing up todb.acquire_timeout_secs(30 seconds by default). An acquire that has waited a second tries one connection of its own; when that cannot reach the database, the outage is known until a fresh attempt connects, and requests are served again as soon as one does. A pool that is only busy keeps queueing as before (#4323). -
Superseding a composition or a party no longer slows down as its history grows. The foreign-key check that every new node and attestation row makes against its version could scan all versions of the object instead of probing one, depending on the planner statistics at the time: on the storage bench, superseding an object with a few hundred versions took about 14 ms instead of 9 ms when the plan flipped. Migrations
clinical/0022andparty/0013re-key the version-tree uniqueness constraintuq_version_treewith the object id last, so the check always probes the primary key. The constraint enforces the same uniqueness as before (#4340). -
The FHIR rendering of an access record
ehds-loggingdoes not classify (a template upload, a stored-query write, a template read) now carries the IHE BALP 1.1.4entity:dataslice its Create, Read, Update or Delete profile requires: type2, role4andwhat.identifier, naming the operation when the record names no object. HAPI FHIR’s validator refused the template upload record without it (#4353). -
A
+in a query string is a literal plus, as RFC 3986 §2.1 and §3.4 decode a URI query, on every ITS-REST operation and every extension route: a date-time offset such as2026-10-28T10:00:00+01:00or an AQL parameter sent with an unencoded+reaches the server unchanged, where it was read as a space. A space in a query value is sent as%20. This reverses the form-decoding of #3891: a client that writes a space as+now sends a plus. Theopenehr-*crates move to 0.0.114 (#4356). -
An AQL
EHR e[ehr_id/value='…']predicate whose value is not a UUID ('1234', the AQL 1.1.0 example) answers an empty result, as itsWHERE e/ehr_id/value = '…'spelling does, onPOSTandGET /query/aql; it was refused with400. Both spellings lower the EHR id comparison through one path, and a value the database cannot cast is refused with a message that no longer claims it came from a query parameter (#4378). -
A request sent on a kept-alive connection that sat idle longer than
[server] header_read_timeout_ms(30 s by default) is answered. The server used to close such a connection, sometimes while the request was arriving, so a client that reused it gotEOFwith no answer and no server log line, and a client that never retries aPOSTon a reused connection, such as Go’snet/http, reported a composition commit as failed. An idle connection now stays open until[server] idle_timeout_ms(120 s by default) and then ends cleanly before any new request byte; keep that limit longer than the idle timeout of your clients (90 s for Go) and of any load balancer in front (#4381). -
An AQL query with an archetype predicate no longer builds the archetype index bitmap of the whole store once per version. The planner multiplied the selectivities of the archetype columns, which each archetype fixes together, and expected about 15 000 of 545 067 blood-pressure OBSERVATIONs; a query over one EHR then took 38.8 s and answered
408. Clinical migration0021_archetype_statistics.sqlgives the columns a statistics object, and the same query takes 0.3 s (#4399). -
FROM PERSON p CONTAINS EHR e(and theORGANISATIONandROLEroots) joins a party to the EHR whoseEHR_STATUS.subject.external_refnames it, so a party created withPOST /demographic/personand an EHR created withPOST /ehranswer their row with no other call. Before, the join read only the party-to-EHR map, which no REST route writes, and answered no rows on a deployed server. The reference matches when itsid.valueis the party’s uid without::<system>::<version>and itstypeis the root class or its RM ancestor (ACTOR,PARTY), in any namespace; an EHR linked both ways answers once (#4411). -
An AQL projection whose path ends on a list attribute inside a node’s data (
c/feeder_audit/originating_system_item_ids,c/links,c/context/participations,c/composer/identifiers,.../mappings) answers the list itself,[{…}, {…}], andnullwhen the list is absent. It answered the list wrapped in a second list,[[{…}, {…}]]; a client that unwrapped that outer array reads the column directly now. A path that continues below a list (.../originating_system_item_ids/id) still answers the array of its matches,["…", "…"].COUNTover a path ending on a list counts its elements (#4413). -
Reading one version of a composition, EHR_STATUS, folder or party by its version id no longer slows down as the object’s history grows. Once a connection reused its prepared read, the plan scanned every version of the object and kept the one asked for: on the storage bench’s history of 500 versions such a read touched about 520 buffers instead of 12 to 24. Migrations
clinical/0023andparty/0014add an index on the version tree id columns of both storage tiers, so the read probes the one version it returns (#4420). -
An audit store that 5.6.0-rc2 migrated starts again. Audit migration 0017 changed after 5.6.0-rc2 shipped it, so the server refused such a store on the migration’s checksum at boot. 0017 is back to its 5.6.0-rc2 text, and the new audit migration
0019_search_tokens_pending_list.sqlgives the search token index its pending list of 512 kB, so a store that 5.6.0-rc2 migrated upgrades in place (#4424). -
An AQL query ordered by
c/uid/valuewith aLIMITno longer starts a parallel worker on every call, and no longer switches between that plan and a sort of the whole join depending on the planner statistics. The version uid it sorts on had no index, so the planner sorted the version rows through a parallelGather Merge, which costs a worker’s start-up per query on a server of any size: about 19 ms on the storage bench’s CI runner, where the two flat-shape path reads measured 23 ms in some rounds and 42 ms in others. Migrationsclinical/0024andparty/0015add an index on the uid expression of the hot version partition, so the query reads versions in uid order from it in one backend and stops at the limit (#4429). -
An AQL query that reads values along a path no longer spends up to a second compiling itself before it runs. Each path step was bound through a set-returning function that PostgreSQL estimates at ten rows, so a chain of steps multiplied the row estimate tenfold per step: the planner chose join orders for a statement millions of times larger than the real one and switched on JIT compilation for it. On the storage bench, a wide projection of 9 values over one EHR read in 1 s instead of 15 to 20 ms, and an ordered WHERE on a magnitude in about 0.5 s instead of 50 ms (#4430). Each step is now a
LATERALsubquery that the planner estimates from its own plan; results do not change (#4431). -
An AQL lookup by an ELEMENT value, such as a person by an identifier (
WHERE id/items[at0001]/value/id = $v) or a composition by a text value, read every node of the archetype in both stores and tested the value last: about 350 ms at 50 000 persons. The engine now anchors such an equality on the ELEMENT rows of the same version by their search text (ext.node_search_text, ext migration0006), which the new partial expression indexidx_node_hot_value_searchand its statistics object serve (clinical migration0025, party migration0016), so the lookup reads the one object: 26 buffers and under a millisecond at 50 000 persons. The party store also gets the archetype dependency statistics the clinical store has had since 5.6.0-rc2 (party migration0017). The storage bench measures the lookup asperson_identifier_lookup(#4437). -
The revision history and every point read of a version now reach the version’s commit audit through a lateral subquery that probes
pk_commit_auditby key once per version row, so stale statistics on the partitionedversiontable can no longer turn the read into a walk of the whole commit audit index (1 318 buffers against 21 for a four-version object beside 1 300 others) (#4438). -
A revision history or a current-version read of a COMPOSITION committed after the partitioned
versiontable last had statistics could walk the whole commit audit index: the planner held the highest commit audit id of the seed for the highest there is and rated a merge join overpk_commit_auditas cheap. On a store of 1 300 compositions the history of a four-version object read 1 318 buffers instead of 21, and the storage bench readrevision_historyat about 440 buffers per call in 3 of 8 rounds. The server now keeps the partitioned parents’ statistics (#4453), and each read probes the commit audit by key (#4438). -
An AQL lookup of an EHR by the subject of its EHR_STATUS (
WHERE e/ehr_status/subject/external_ref/id/value = $u AND e/ehr_status/subject/external_ref/namespace = $n) joined every EHR_STATUS version and read the subject out of its stored fragment: about 150 ms on a store of a few thousand EHRs. The two leaves now read the EHR row’ssubject_idandsubject_namespace, the copy the commit keeps of the current EHR_STATUS subject, so the lookup enters throughuq_ehr_subjectand reads one row. The storage bench measures it asehr_by_subject(#4442). -
The partitioned tables
node,versionandvo_attestationof the clinical and party stores never had planner statistics of their own, since autovacuum does not analyze a partitioned table, so the planner estimated joins over them without any (PostgreSQL 18 §24.1.3). The server now runsANALYZE ONLYon them, and onehrwhile autovacuum has never analyzed it, after applying the migrations, afterload_ehrs, at boot and every hour. The role it runs as needs theMAINTAINprivilege on those tables; without it the server logs the tables it could not analyze. The populationCONTAINSof an archetype now enters throughidx_node_hot_arch_subsume(3 703 buffers to 1 745 on the storage bench’s seed) (#4453). -
A party delete (
DELETE /demographic/{agent,group,organisation,person,role}/{uid_based_id}) and the party relationship delete now answer400when the path names the versioned object instead of its latestOBJECT_VERSION_ID, and delete nothing. They answered204and deleted the current version. The release requires thepreceding_version_uidin that path (ITS-RESTagent_delete.yamland its four siblings) (#4478) (#4458). -
A CONTRIBUTION member outside the operation’s member set, a party in an EHR CONTRIBUTION or a FOLDER in a demographic CONTRIBUTION, now answers
400as a body that fails the request schema. It answered422(#4459). -
A party update whose body carries no
uidnow checks each relationshipsourceagainst the party the path names and refuses a foreign source with422, as RMRelationships_validityrequires. The check ran only when the body carried auid, so such an update committed a relationship sourced at another party (#4460). -
An ADL 1.4 template upload whose XML ends with an element still open now answers
400, as for any document that is not well-formed XML. The well-formedness gate stopped at the end of input without checking that every element was closed, so a truncated upload answered422(#4461). -
A canonical JSON body that the published ITS-JSON schema admits and the RM refuses, such as a
DV_URIorDV_EHR_URIwithoutvalueor aDV_INTERVALlimitDV_ORDINALwithoutsymbol, now answers422naming the member, on the direct commit routes, the CONTRIBUTION members and the party commits. A body the schema refuses still answers400. All of them answered400(#4463). -
A directory create or update whose root FOLDER names an archetype in
archetype_node_idand carries noarchetype_detailsnow answers422and commits nothing: an archetype root carriesarchetype_details(RM common §The LOCATABLE Class). FerroEHR created such a directory. A553|incomplete|commit and a nested FOLDER keep it optional. The viewer’s empty directory root now carriesarchetype_details(#4464). -
AQL
EHR e NOT CONTAINS <class expression>now runs and returns the EHRs that hold no matching object. It was refused as unsupported with400(#4465). -
An AQL comparison between a
DV_DATE_TIMEpath that ends on the data value itself, such asc/context/start_time, and a date-time literal now compares the instants both name, so values with different offsets compare correctly. The comparison read the whole data value and matched nothing (#4466). -
A container member whose node id names an object constraint of the template but whose RM type conforms to none of them, such as an ELEMENT where the template allows only a CLUSTER, is now refused with
422. Only the opposite direction was refused (#4468). -
An ADL 1.4 template upload with
Prefer: return=representationnow answers the representationAcceptnames: the OPT XML, or the Web Template underapplication/openehr.wt+jsonorapplication/json. AnAcceptoutside those answers406and stores nothing. The upload always answered XML (#4469). -
A Simplified Format COMPOSITION commit without the
openehr-template-idheader, and a flat|rawvalue without_type, now answer400. Both answered422(#4470). -
A Simplified Flat or Structured
…/action_archetype_idnow sets the StringACTIVITY.action_archetype_id, and the flat output writes it back. The converter built an object from the template’s string constraint, so the commit answered422(#4471). -
ctx/action_ism_transition_current_state, as a rubric or a code, now setsACTION.ism_transition.current_stateof every ACTION the document gives no state. The converter wrote524|initial|first and the context value never applied (#4472). -
ctx/instruction_narrativenow becomesINSTRUCTION.narrativeof every INSTRUCTION the document gives no narrative. A placeholder<narrative>was stored instead (#4473). -
The Simplified Flat
DV_INTERVALsuffixes|lower_unbounded,|upper_unbounded,|lower_includedand|upper_includedare now read on an interval whose bounds are template nodes, and the flat output writes an unbounded flag when true and an included flag when false. The suffixes were refused as unknown with422(#4474). -
An AQL query aimed at named EHRs (the ITS-REST
ehr_idparameter) reads those EHRs’ objects first and each object’s own content after them, whatever the planner statistics say. When an archetype’s rows fell out of the most-common-value list of the archetype statistics, the planner estimated them at one row and could start from that archetype over the whole population, evaluating every projected path for every EHR’s rows before the EHR filter: the storage bench’s wide projection over one EHR read about 10 000 pages per call in some rounds and 1 200 in others. A node contained in a versioned object is now read inside its parent on such a query; results do not change (#4487). -
AQL
TERMINOLOGY('expand', …)against a FHIR terminology server takes the value set from theurlargument whenparams_uriis the$expandquery form (url=http://…), as the openEHR AQL examples write it, and still takes a bare value-set URL as it is. A query form withouturlis a 400 that names the missing argument. Before, the wholeparams_uriwent to the server as the URL, and the query was answered 400 because the value set was not found (#4488). -
AQL
TERMINOLOGY('validate', …)andTERMINOLOGY('subsumes', …)keep aparams_uriargument whole when its value carries a?, as the QUERY master03 exampleurl=http://snomed.info/sct?fhir_vsdoes. Before, the arguments were read from after the first?anywhere inparams_uri, so the value-set URL reached the terminology server truncated and the arguments before it were lost. Aparams_urithat starts with a path still has its arguments read from after the path’s?(#4490). -
An ADL 2 template whose constituent archetype the CDR does not hold is refused at upload, with a
422whoseerrorscarry oneVARXRentry per missing archetype (AOM2C_ARCHETYPE_ROOTvalidity rule VARXR); the 2013 CKMt_encounter_opt_test, built on the refusedapgar, no longer loads, so the sandbox library pin is 231 accepted / 91 refused. A stored template whose constituent was deleted later answers its JSON form and example with the sameVARXRlist, and the viewer says so on every tab of the template, names each missing archetype and links to uploading it, instead of a raw422(#4505). -
ADL 2 validation admits a constraint on an RM computed attribute. VCARM accepts an attribute “stored or computed” (AOM2
master04.5§Validity Rules:C_ATTRIBUTE), and a function with no arguments is a computed attribute (master04.2§Attribute Nodes), so an archetype that constrainsDV_PROPORTION.is_integral,DV_QUANTITY.is_integralorEVENT.offsetis no longer refused with422. The generated RM model (openehr_rm::v1_2::model) now carries each class’s computed attributes from the BMM functions (RmClass::computed_attributes,computed_attribute).openEHR-EHR-CLUSTER.microscopy_prostate_carcinoma.v1.0.0from the 2013 CKM ADL 2 export now uploads, and the sandbox archetype-library pin moves to 232 accepted and 90 refused.DV_QUANTITY.property, which no RM release defines, stays refused. The nineopenehr-*crates step to 0.0.124 (#4513). -
DELETE /ferroehr/rest/extensions/v1/definition/artefact/adl2/{artefact_id}refuses with409 Conflictwhile another stored ADL 2 artefact does not compile without the one deleted (a slot filler, ause_archetypereference or a specialisation parent, directly or through another artefact), and the message names every one of them. Before, the delete succeeded and left each template built on the archetype unable to compile (#4522). -
An ADL 2 operational template whose included archetype reuses the template’s node ids uploads again, where it was refused with
422under VCOSU. Node-id uniqueness now holds per archetype and restarts at eachC_ARCHETYPE_ROOT(AOM 2 VCOSU, “unique within the archetype”), and on an operational template the codes and interior node ids below a root are judged against that constituent’s entry incomponent_terminologies(OPT 2master03-opt_raw). A duplicate node id inside one archetype is still refused. The nineopenehr-*crates step to 0.0.125 (#4529). -
The viewer’s dashboard draws the EHR or composition count as unavailable, with the reason in plain words, when the CDR answers its count query with a result set of another shape (no row, several rows, an empty row, several values, or a value that is no whole number), where it drew 0 before. The template Releases table draws such a count the same way. A real zero still draws 0 (#4533).
-
An ADL 2 operational template upload runs the terminology integrity rules (VTLC, VATCV, VTVSID, VTVSUQ, VTVSMD, VTTBK, VTCBK, and VTSD where the level is carried) on each
component_terminologiesentry, and each violation names the component’s archetype id (#4536). -
A COMPOSITION committed against an ADL 2 operational template is validated against the template’s leaf constraints, where it was stored with
201whatever it held. An inlined archetype recorded by its complete identifier (openEHR-EHR-OBSERVATION.x.v1.0.0, BASEmaster07-referencing§Reconstitutability) now matches its template node, so theC_INTEGER,C_REAL,C_STRING,C_BOOLEAN, tuple, value-set and cardinality constraints below it answer422(AOM 2master04.5). An archetype root the template does not inline is refused as a node the template does not define, and aC_INTEGERorC_REALlist ({10, 15, 20}) admits each of its values where only the first was read. Canonical, FLAT and STRUCTURED commits take the same check. The nineopenehr-*crates step to 0.0.127 (#4540). -
A versioned read whose
versionpath segment is no SEMVER version and no{major}or{major}.{minor}prefix, such asv1.x,1.xor01, now answers400before any lookup, where it answered404(parameters/path/version.yaml,responses/400.yaml). This covers the ADL 2 template readGET /definition/template/adl2/{template_id}/{version}, the stored-query readGET /definition/query/{qualified_query_name}/{version}and both stored-query executions at a version,GETandPOST /query/{qualified_query_name}/{version}. A well-formed version the server does not hold still answers404(#4541). -
A FLAT or STRUCTURED read of a COMPOSITION committed against an ADL 2 operational template returns the content below an inlined archetype that the composition records by its complete identifier (
openEHR-EHR-OBSERVATION.x.v1.0.0, BASEmaster07-referencing§Reconstitutability). The read left out everything below such a root with no error; it now matches the root to its template node the way the commit does. The nineopenehr-*crates step to 0.0.128 (#4551). -
A FLAT or STRUCTURED read of a COMPOSITION committed against an ADL 2 operational template returns the value of an ELEMENT that holds a
DV_INTERVALwhoselowerandupperthe template constrains. The read left the value out with no error (#4559). -
An ADL 2 archetype reference resolves to one defined stored release: an interface reference (
….v1) takes the newest release of its major version, a reference with a minor or patch version narrows the match to it, and an alpha or beta version matches only its full identifier (BASE Artefact Identification, Referencing). With several releases of one archetype stored, a template upload, an operational template and the delete’s dependents check used whichever release PostgreSQL returned last, and a reference to a major version no stored release carries resolved to another major version (#4567).
Security
Shipped with functional changes because: both fixes exist only in ferrohealth-server releases that carry functional changes in the same serving path beside them (0.3.7 two fixes, 0.3.8 and 0.3.9 the problem details module, the kept listener TLS and the unmasked remedy), so there is no security-only release of the crate for FerroEHR to take, and the client CA refusal ships in the release candidate the advisory names.
-
FerroEHR takes
ferrohealth-server0.3.7 in place of 0.3.5 (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 about 8400 silent connections from a client with no credentials exhausted the quickstart’s file descriptors and the CDR stopped answering, health checks included; the listener then retried a failedacceptat once and logged every failure. Such a connection now closes once[server] header_read_timeout_mspasses (30 s by default), counted from accept, and after anEMFILEorENFILEthe listener pauses up to 1 s before it accepts again and logs one warning every 10 seconds (#4283). -
A
[server.tls]table that setsclient_ca_filewithclient_authatnone, written or by default, is refused at load, naming the setting (GHSA-52mf-qg39-4q4j). Before 5.5.0 a client CA alone meant that every client presents a certificate; 5.5.0 moved the listener ontoferrohealth-server, whereclient_authdefaults tononeand the CA was read and ignored, so a configuration carried over passedconfig checkand served without asking a client certificate. FerroEHR takesferrohealth-server0.3.9, which refuses it and names the remedy in full. A 5.5.0 deployer who setsclient_ca_filesetsclient_auth = "required"beside it. The default template no longer pairs a client CA withnone, and says what eachclient_authvalue does (#4349). -
CVE-2026-84243, the glibc gettext
LANGUAGEdirectory traversal (GLIBC-SA-2026-0025), has no Debian fix for trixie yet and is judgednot_affectedin every image. Theferroehrandferroehr-viewerprograms never leave the C locale, so glibc ignoresLANGUAGEand opens no message catalog (security/vex/ferroehr-os.openvex.json). Inferroehr-postgresonly the container environment the operator writes can setLANGUAGE; no database connection can (security/vex/postgres-os.openvex.json) (#4500).
5.6.0-rc5 - 2026-10-31
5.6.0-rc5 is the fifth release candidate of 5.6.0, published for testing. 5.6.0-rc4 was tagged and not published: its vulnerability record found CVE-2026-84243 in glibc with no judgement, so the release stopped as a draft, and 5.6.0-rc5 carries its section below. These notes carry every change since 5.5.0, those of the 5.6.0-rc4 and 5.6.0-rc3 sections below included. New since 5.6.0-rc4: CVE-2026-84243 is judged not_affected in every image (#4500); AQL TERMINOLOGY('validate', …) and TERMINOLOGY('subsumes', …) keep a params_uri value that carries a ? whole (#4490); an AQL query aimed at named EHRs reads those EHRs’ objects first whatever the archetype statistics say (#4487); the viewer takes its Content-Security-Policy from ferrohealth-server 0.4.2, with the same policy (#4439); the Conformance workflow runs the Veredictum SMART documents beside the catalogue (#4450); the storage bench measures baseline and candidate on one runner (#4318); and the LANG specification is re-vendored, with the openehr-* crates at 0.0.122 (#4377). New in 5.6.0-rc4 over 5.6.0-rc3: an AQL lookup by an ELEMENT value, such as a person by an identifier, reads the one object through a value index in both stores (#4437), and a lookup of an EHR by its EHR_STATUS.subject reads the EHR row (#4442); a request on a kept-alive connection idle past the head bound is answered, so a client that reuses the connection for a commit no longer sees EOF (#4381); the server keeps planner statistics on the partitioned tables, the serving roles hold MAINTAIN on them, and a version read probes its commit audit by key (#4438, #4453); an AQL path read is estimated at the rows it reads and a page ordered by the version uid reads an index with no parallel worker (#4429, #4431); EHR e NOT CONTAINS runs (#4465), a DV_DATE_TIME comparison compares instants (#4466), and the REST, party, template and Simplified Format fixes the Veredictum 0.3.0 catalogue found (#4458 to #4464, #4467 to #4475); the viewer draws every page on its server with FerroUI 0.6 (#4433); AQL TERMINOLOGY('expand', …) takes the value set from the url argument of a $expand query form (#4488); and the conformance pipeline runs the Veredictum 0.3.0 catalogue against one FerroEHR deployment with FerroTERM beside it, in CI through the Veredictum GitHub Action (#4448, #4449, #4476). 5.5.0 stays the stable release: this pre-release moves neither the latest image tags, the book under /docs/latest/ nor the hosted sandbox, it publishes no crates, and it receives no fixes; the next release candidate or 5.6.0 itself replaces it. Before you try it: every route ITS-REST 1.1.0 does not define moves from /ferroehr/rest/openehr/v1/ to /ferroehr/rest/extensions/v1/, and the ITI-81 retrieval to /ferroehr/rest/fhir/r4/AuditEvent, with no redirect from the old paths; an error body is application/problem+json, so a client that read message reads detail, and one that read validationErrors sends Prefer: return=representation and reads errors; audit migration 0017 refuses an audit store that holds records written by 5.5.0 or earlier, while an audit store that 5.6.0-rc2 migrated upgrades in place; a [server.tls] table with client_ca_file must set client_auth = "required" (or "optional") beside it, or the configuration is refused at load; [server] header_read_timeout_ms no longer bounds an idle kept-alive connection, which the new [server] idle_timeout_ms (120000 by default) closes, so keep it longer than the idle timeout of your clients and load balancers; a client that wrote a space as + in a query string sends %20; a party delete names the latest OBJECT_VERSION_ID in its path and answers 400 for a versioned object id; a body the RM refuses after the ITS-JSON schema admits it answers 422, and a misplaced CONTRIBUTION member, a Simplified Format commit without openehr-template-id and a flat |raw value without _type answer 400; a tag update under Prefer: return=identifier answers 200 with the tag list; with [authz.rbac] enabled a token holding only system/ SMART on openEHR scopes reaches clinical operations without a role; the viewer image serves no /pkg/ and reads no LEPTOS_SITE_ROOT, LEPTOS_OUTPUT_NAME or LEPTOS_HASH_FILES, and its Content-Security-Policy is script-src 'self'; style-src 'self'; Helm chart 21.0.0-rc5 refuses to render until config.deployment_profile names sandbox or production, and a values file for its FerroPIX moves ferropix.config.server.public_base_url to ferropix.config.public_base_url and each issuer’s clients to ferropix.config.trust.issuer. Storage generation 3 adds node columns and migrates no data; clinical migration 0020 adds the origin to retention policies and 0021 statistics on the archetype columns, and clinical 0022 and 0023 and party 0013 and 0014 rebuild the version tree’s uniqueness constraint and index its version id columns, which reads every version row of an existing store once; clinical 0024 and party 0015 index the version uid, ext 0006, clinical 0025 and party 0016 add the ELEMENT value search index, built over every hot node row of an existing store, party 0017 adds the archetype statistics, and clinical 0026 and party 0018 grant MAINTAIN on the partitioned tables to the serving roles; audit migration 0019 gives the search token index a pending list of 512 kB. Helm chart 21.0.0-rc5 carries appVersion 5.6.0-rc5. Security carries two advisories, GHSA-2mc2-h3jq-c5wg and GHSA-52mf-qg39-4q4j, and the OpenVEX judgement of CVE-2026-84243.
Added
-
The logging component’s intended performance is stated as checkable claims (EHDS Annex II 1.1): every composition create and read recorded exactly once and every AQL execution at least once, no access succeeding without its record, at most 125 % of the latency and at least 80 % of the throughput with the access log off, and a 50-record ITI-81 page within 250 ms at p95.
scripts/perf/audit.shmeasures them with the access log off and on (the load test’s new--auditmode counts the records through ITI-81 and times retrievals),scripts/perf/audit-verdict.shgives the verdict, the release refuses a claim not met and attaches the summary asferroehr-<tag>-logging-performance.md(Annex III point 2), and the weekly performance guard runs it on main. The book’s compliance section gains the page that states the claims and the method (#4293). -
scripts/interop/atna.shexercises the logging component’s ATNA transactions against independent implementations run from published images (EHDS Annex II 1.4): the ITI-20 FHIR feed into HAPI FHIR as the Audit Record Repository, judged by its validator with IHE BALP 1.1.4; the ITI-20 syslog feed into syslog-ng over RFC 5425 TLS, each payload read as a DICOM PS3.15AuditMessage; and the same ITI-81 searches put to FerroEHR and to HAPI. The audit trail page documents it (#4296). -
FerroEHR ships an EHDS category map for the published CKM templates and COMPOSITION archetypes whose data sit in one Art. 14(1) priority category (the International Patient Summary, ePrescription, the generic laboratory result and CCTA report templates; the
health_summary,prescriptionandtransfer_summaryarchetypes), so an installation that declares no[audit.categories]keys records those accesses classified instead ofunclassified(EHDS Annex II 3.2(c)). A deployment that declares any template or archetype replaces it whole.[audit.categories] shipped_map = falsewith nothing declared leaves no map, whichdeployment_profile = "production"refuses as the newno_category_mapgap unlessdeployment_acceptsnames it (#4298). -
Retention periods and access rules can take the origin and the category of the data into account (EHDS Annex II 3.4). The new top-level
[origins]register declares the origins a deployment recognises, each by the id its data carry and the clients whose direct commits come from it; a body without aFEEDER_AUDITcommitted by a registered client is stamped with that client’s origin instead of the server’ssystem_id.PUT /admin/retention/policytakes an optionaloriginnaming a registered origin, the register andGET /admin/retention/duereport it, and the due list lists an origin-keyed period over the objects of that origin (clinical migration0020_retention_by_origin.sql). The ABAC request carriescategory(the access record’s category tokens) andoriginresource attributes on composition, contribution and query operations, the Cedar schema declares both, and a remote PDP binding may name them as parameters (#4299). -
The
openehr-itsclient reads an RFC 9457 problem details refusal:ErrorBody::problem()exposes itstype,title,status,detailandinstance, ignoring a member of the wrong type (RFC 9457 §3.1), andErrorBody::message()answers the problem’sdetail, else itstitle, where it answered only the ITS-RESTError’smessage. Theopenehr-*crates move to 0.0.115 (#4355). -
The local EHR index (
[ehr_index] provider = "local") is a supported production posture beside the IHE patient identity source:EHR_STATUS.subjectnames a patient by its own namespace and identifier, whichGET /ehr?subject_id=&subject_namespace=matches, and with no[privacy] subject_namespacesdeclared the reference is stored as the client sends it. The compose quickstart selects it withFERROEHR_EHR_INDEX=local docker compose up, which runs itsferroehr-config-localblock (#4379). -
CI checks every inline configuration of the compose quickstart with the
config checkof the image the file pins, FerroEHR’s and FerroPIX’s, so the quickstart can no longer carry a configuration its pinned server refuses (#4380). -
The Conformance workflow runs the Veredictum 0.3.0 catalogue in CI through the Veredictum GitHub Action, pinned by commit SHA and running the release image by digest. It builds FerroEHR from the commit, composes it with FerroTERM beside it on fresh volumes, reviews the party statement with
veredictum validate, fails on a failed or errored row, writes the Markdown summary to the job summary and uploads the results, JUnit and CTRF views. It runs on pull requests that touch the server, the party set, the conformance compose files or the workflow, onmain, on a release tag and twice a week.scripts/conformance.shtakes a stage (run,review,up,down), so CI and a local run compose the same deployment, andscripts/checks/veredictum-action.shfails while the Action SHA, its version comment, the image digest andVEREDICTUM_VERSIONdisagree (#4449). -
The Conformance workflow runs the Veredictum
smartdocuments (smart_discovery,smart_scopes) against the same FerroEHR build after the Veredictum Action, which forwards no SMART Platform base URL and no scoped tokens. The same pinned image runsveredictum testwith--platform-urlanddocs/conformance/party/ferroehr/ixit-smart.json, minting each access token in memory from the committed test issuer the SMART overlay trusts, and the job uploads its results, JUnit and CTRF views beside the catalogue’s and adds its summary under a heading of its own.scripts/conformance.shgains thesmartstage, andrundrives it after the catalogue, so a local run covers SMART too (#4450). -
GET /ehr/{ehr_id}andGET /ehr?subject_id=…now sendLast-Modified: the commit that created the EHR, or the later commit that added or deleted one of its folder hierarchies (#4462).
Changed
-
A population AQL query that only counts its root objects, such as
SELECT COUNT(c) FROM EHR e CONTAINS COMPOSITION cor the same withCOUNT(*), reads the current version rows and no longer probes the root node of every composition. At 545 000 compositions the count fell from about 9 s to 0.2 s (#4286). -
A REST request checks a connection out of each database pool once and keeps it until it answers, where it took one for each statement: two to four checkouts for a read of an EHR, an EHR_STATUS or a COMPOSITION, each waiting in the pool’s queue under load and each paying the pool’s release round trip. At 48 concurrent clients and a pool of 10, throughput rose by about 18 % and the median latency fell by about 13 % (#4289).
-
The Helm chart, at a new major version (21), has no default deployment profile: it refuses to render until
config.deployment_profilenamessandboxorproduction, so an installation that follows a quickstart instead of the instructions for use no longer runs the sandbox posture by omission (EHDS Annex II 1.2). A values file that relied on the oldsandboxdefault must now set it, for example--set config.deployment_profile=sandbox;values-production.yamlsetsproductionas before. The server binary’s own default and the Compose files, which declaresandboxexplicitly, are unchanged (#4294). -
The audit store keeps each record’s facts in columns and renders its FHIR R4
AuditEventfrom them when the record is read over ITI-81 or delivered by the FHIR feed, instead of storing the rendered document in every record. A record takes about a quarter of the space it took before. The configuration the rendering depends on (the audit source, the store horizon, the category map and the emergency purposes) is kept once per distinct configuration inaudit.audit_render_policy, and every record names the policy it was written under, so it renders the same document after the configuration changes. The tamper chain hashes every column of the record in one digest and checks each render policy against its digest; the earlier digest versions are retired. Audit migration 0017 needs an empty audit store and refuses one that holds records written by an earlier release, naming the remedy. ITI-81 parameters on an element of the document (address, the.identifierparameters,entity-type,entity-role,type,subtype) are matched against the rendered document (#4300). -
The three audit indexes on
recorded_atascend, so their pages fill instead of splitting half full on every insert; the newest-first ITI-81 search scans them backward (#4302). -
A clinical or party node row now stores only the part of its canonical JSON fragment that its own columns do not hold:
_type, a lowercasearchetype_node_id, a plain or simply coded name, and an ELEMENT value in one of the common basic shapes (a quantity, count, ordinal, coded or plain text, date, time, duration, identifier, boolean or URI) move into columns, the value into the new typed value columns. Every reader rebuilds the omitted keys, so the canonical JSON and every AQL result are unchanged, and a filter on a quantity’s magnitude or a code reads its column directly. The node heap shrinks by about a third (storage generation 3); a row written before keeps its whole fragment and reads the same. Migrationsext/0005,clinical/0019andparty/0012add the columns and the readers; no data is migrated (#4306). -
Every ITI-81 search parameter answers through an index again. The store takes the search tokens of a record’s rendered
AuditEventwhen it writes the record: each distinct token once inaudit.audit_search_token, the code-system tokens (type,subtype,entity-type,entity-role,source.identifier) as one shared set inaudit.audit_search_set, and their ids on the record insearch_tokensunder a GIN index;entityreads a hash index onresource_id. A search onaddressor a token parameter no longer renders every record in itsdatewindow. The tamper chain coverssearch_tokens, and the verifier reports a changed token or set (#4313). -
The storage-bench lane measures the baseline and the candidate on one runner in eight interleaved rounds each and gives two verdicts. The plan verdict fails an operation whose median pages per call rose more than 10 % and one page above the baseline’s highest round, whatever its time. The time verdict divides each round by its machine factor, so a slow spell of the runner no longer reads as the code, and fails an operation whose median p50 or p99 rose more than 15 % with every candidate round slower than every baseline round, or a candidate build that ran more than 15 % slower across the board in every round. A latency is no longer compared with a record measured on another runner (#4318).
-
The viewer takes FerroUI 0.5.8: a menu item draws a visible bar under the pointer and the keyboard focus, and the top bar’s search no longer opens its panel again over the page the router draws after a search is submitted or one of its options followed (#4319).
-
Nothing ITS-REST 1.1.0 does not define is served under the openEHR base path any more. FerroEHR serves three namespaces beside each other under
/ferroehr/rest/:/openehr/v1/holds only the ITS-REST routes,/fhir/r4/the FHIR and IHE interfaces, and/extensions/v1/FerroEHR’s own extensions. The ITI-81 retrieval moved from/ferroehr/rest/openehr/v1/fhir/r4/AuditEventto/ferroehr/rest/fhir/r4/AuditEvent. These routes moved from/ferroehr/rest/openehr/v1/...to/ferroehr/rest/extensions/v1/...with the same relative path:/terminology/...,/admin/event_subscription...,/demographic/party_relationship...,/demographic/versioned_party_relationship/...,/definition/archetype/...,/definition/artefact/...,/message/export...,/message/import...,/query/cohort, and the admin extensions/admin/config,/admin/template/{template_id},/admin/query/{qualified_query_name}/{version},/admin/party/...,/admin/archive/...,/admin/report/...,/admin/dump,/admin/load,/admin/integrity/...,/admin/restriction...,/admin/access-restriction...,/admin/research-objectionand/admin/retention/.... The old paths answer 404, with no redirect. The served OpenAPI document and its family documents name the new paths; the admin extensions, the archetype library and the cohort query have family documents of their own (admin-extensions,archetypes,cohort,contributions). The paged CONTRIBUTION list moved too, to/ferroehr/rest/extensions/v1/ehr/{ehr_id}/contribution(#4330). -
The server and viewer images build on the current
gcr.io/distroless/cc-debian13:nonrootdigest, so they carry the base image’s latest Debian package updates (#4335). -
Canonical JSON validation against the openEHR ITS-JSON schemas runs on
jsonschema0.59.0, which refuses a value whose regex match the engine cannot finish where 0.58 accepted it undernotorpatternProperties. Theopenehr-*crates move to 0.0.113 (#4336). -
A statement the database cancels, by its
statement_timeoutor a cancel request (SQLSTATE57014), answers503withRetry-Afterinstead of500: the statement rolled back, so the request can be repeated. By default the request timeout answers before the 60 s statement timeout fires, so on a request path it is raised by an operator’s cancel or by a forward step of the database host’s clock, which fires every running statement’s timeout at once (#4338). -
Every error on the openEHR routes (
/ferroehr/rest/openehr/v1/), the extension routes (/ferroehr/rest/extensions/v1/) and the management routes answers RFC 9457 problem details,application/problem+json, in place of the{ message, validationErrors, error }body shaped after the ITS-REST example. The status codes are unchanged. A problem carriestype,title,status,detailand the request id as aurn:uuid:instance; the refusals a client acts on have FerroEHR types documented on the book’s Problem types page (aql-invalid,query-timeout,validation-failed,content-invalid,conflict,version-conflict,unauthenticated,forbidden,processing-restricted,unavailable,rate-limited), every other error isabout:blank. A request withPrefer: return=representationreceives the additional details ITS-REST allows: the violations of a validation refusal aserrors({path, detail}, wherevalidationErrorsheld"<path>: <message>"strings), the bytepositionof an AQL parse refusal, and thecurrent_versionof a412. The stack’s own408,413,429,503and panic500are problems too, and anOperationOutcomeunder the FHIR base, where an authentication refusal is now anOperationOutcomeas well. The served OpenAPI document declares theProblemschema for every4xxand5xx, and the viewer reads problem details. A client that readmessagereadsdetail; one that readvalidationErrorssendsPrefer: return=representationand readserrors(#4342). -
The FHIR
AuditEventof an EHDS access record names the object it reads, creates, updates or deletes by its openEHR object id asentity.what.identifierwith the systemurn:openehr:object-id, where it wrote awhat.referencethat no FHIR server resolves and HAPI FHIR refused (FHIR R4 references.html §2.3.0.3). ITI-81 finds the record byentity.identifier. FerroEHR takes FerroAUDIT 0.3.2 (ihe-atnaandehds-logging) (#4366). -
The access log costs the request path less under load. The audit store writes a drained batch, its search tokens and its token sets in one transaction on one connection (one commit where it took up to three), stores only the tokens it does not hold yet, and the GIN index on
search_tokenstakes new entries through a pending list of 512 kB. On the release load test the store wrote 1.5 KB of WAL per record where it wrote 5.2 KB (#4375). -
The LANG specification text is re-vendored at
f80763ab(#4377). SPECLANG-18 states how a P_BMM schema’s JSON form encodes a cardinality interval, which the JSON schema reader already followed; its documentation now cites the rule, and a test pins it. SPECLANG-16 types the P_BMM class lists as keyed collections; the generated P_BMM model takes that change with #4497. The nineopenehr-*crates step to 0.0.122. -
[ehr_index] provider = "local"besidepixm_url,assigning_authority,[ehr_index.oauth]or[ehr_index.tls]is accepted, where it was refused: the IHE keys are kept, not used and named at boot, soprovideralone switches the index, in the file or asFERROEHR__EHR_INDEX__PROVIDER. Declared pseudonym namespaces stay in force under either index (#4379). -
A build no release lane marked reports its commit beside the package version, as SemVer build metadata (
5.6.0-rc2+dev.1a2b3c4d5e6f), onferroehr --versionandserver_versionofGET /ferroehr/rest/status(the boot banner and/management/infoalready name the commit beside the version), so a report from a build ofmainno longer reads as the release it follows; a release build reports the bare version (#4380). -
The compose quickstart runs FerroPIX 0.0.12, pinned by digest, with its configuration moved to that release’s keys (
public_base_urlat the top level, the Patient Identity Source’s client under[[trust.issuer]]), and Dependabot proposes each FerroPIX release (#4380). -
The Helm chart runs FerroPIX 0.0.12 by digest, with the FerroPIX chart 0.3.4 built for it, and the hosted sandbox runs FerroPIX 0.0.12 too; both had stayed at 0.0.7 and 0.0.10 when the quickstart moved. A values file for the chart’s FerroPIX moves
ferropix.config.server.public_base_urltoferropix.config.public_base_urland each issuer’sclientstoferropix.config.trust.issuer, the keys FerroPIX reads since 0.0.8; the chart’s examples and the production overlay do. FerroPIX’s chart now also runs its pods withenableServiceLinks: falseand in a user namespace (ferropix.hostUsers: false, the default). A CI guard holds the quickstart, chart and sandbox to one FerroPIX release and checks the sandbox’s and the chart’s FerroPIX configuration under it, so the Dependabot proposal for the quickstart pin moves all three (#4392). -
openehr-query, the AQL 1.1.0 lexer, parser, typed AST and printer, is published under Apache-2.0 from 0.0.116, like the generated model crates andopenehr-its, so any Rust project can parse AQL with it. Versions 0.0.60 to 0.0.115 keep the Business Source License 1.1 they were published under (#4405). -
FerroEHR takes
ferrohealth-server0.4.0 in place of 0.3.9. The new[server] idle_timeout_ms(120000 by default) closes a kept-alive HTTP/1.1 connection that waits that long for its next request, with a clean end of stream, and[server] header_read_timeout_mscounts from the first byte of each request head on a kept-alive connection (from accept for the first one, as before). The head bound 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, which a client such as Go’snet/httpsaw asEOFon aPOSTit does not retry (#4381). A deployment that setheader_read_timeout_msto bound idle connections setsidle_timeout_msinstead. The refusals the listener writes itself (408,413,429,503) and a panic’s500keep naming the server’s request id as theirinstancewhen the client sends its ownX-Request-Id, as every other FerroEHR refusal does (#4417). -
FerroEHR runs on
ferrohealth-server0.4.1, which keeps a product’s own fallback and the layers around it when the stack merges its routes (FerroHEALTH/FerroSYS#199). FerroEHR, v5.6.0-rc3 included, was not exposed to the regression 0.4.1 fixes: the REST API and the viewer declare their own fallback inside their layers, and the management endpoints guard each route they serve, so a path no route matches answers as it did before (#4427). -
The viewer draws every page on its server with FerroUI 0.6, with no Leptos and no WebAssembly: a link and a form load a new page, and FerroUI’s own small script modules add behaviour on top of what the server drew, so every page works with JavaScript off. The image ships the one
ferroehr-viewerbinary, with no/sitetree beside it and nohash.txt; FerroUI’s stylesheet, theme and scripts are served from inside it under/ferrohealth-ui/0.6.0/, and/pkg/no longer answers. The Content-Security-Policy is nowscript-src 'self'; style-src 'self'with no per-response nonce and no'wasm-unsafe-eval'. The image no longer readsLEPTOS_SITE_ROOT,LEPTOS_OUTPUT_NAMEorLEPTOS_HASH_FILES, so a deployment that sets them can drop them;LEPTOS_SITE_ADDRnaming another address thanserver.listenstill refuses the start. A proxy rule written for/pkg/(the hosted deployment’sCache-Controlfor it is removed) has nothing left to match (#4433). -
The viewer runs on
ferrohealth-server0.4.2 and takes its Content-Security-Policy from the family’s server-rendered console headers (FerroHEALTH/FerroSYS#202) in place of a layer of its own. The policy a deployment sees is unchanged:default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; connect-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none', with no nonce. FerroUI’s assets under/ferrohealth-ui/keep theCache-ControlFerroUI sets, and a refusal under that path isno-storewhatever FerroUI’s router sets, so a cache in front of the viewer keeps no error answer for an asset. The REST server takes the sameferrohealth-serverrelease with no change in what it serves (#4439). -
scripts/conformance.shruns the Veredictum 0.3.0 catalogue against one FerroEHR deployment: it reviews the party statement withveredictum validate, drivesveredictum testin the release image pinned by digest with Basic login, and writesresults.json, the HAR recording and the JUnit, CTRF and Markdown views todocs/conformance/ferroehr/. Docker or Podman runs it (CONTAINER_ENGINE). The FerroEHR statement now claims the 15 capability folders and answers every option of the 0.3.0 catalogue, and the IXIT keeps only what 0.3.0 reads (#4448). -
The serving roles may now analyze their store’s partitioned tables: new migrations (clinical 0026, party 0018) grant
MAINTAINonnode,versionandvo_attestation, and onclinical.ehr, toferroehr_clinicalandferroehr_party, so the hourly statistics refresh works under the role split.MAINTAINalso allowsVACUUM,CLUSTER,REINDEXandLOCK TABLEon exactly those tables. A role that still lacks it gets the warning naming the tables, as before (#4453). -
With the role gate on (
[authz.rbac] enabled), a bearer token whose SMART on openEHR resource scopes are allsystem/scopes, such assystem/template-*.r, now reaches a clinical operation without a role: it is a backend client, and its scopes decide what it reaches. Auser/orpatient/token belongs to a person and still needs at least one role, as does a token with no SMART on openEHR scope and a Basic user; an admin operation still needs the admin role (#4467). -
A tag update (
PUT …/tagson EHR_STATUS, COMPOSITION and the five party kinds) sent withPrefer: return=identifiernow answers200with the stored tag list andPreference-Applied: return=identifier. It answered204(#4475). -
The conformance deployment runs FerroTERM beside FerroEHR, pinned by digest, with
[terminology.server]pointed at it, locally inscripts/conformance.shand in the Conformance workflow, so theaql-terminology-supportedarm of the party statement runs against a real terminology server (#4476).
Removed
-
The conformance pipeline no longer runs EHRbase or the extra FerroEHR deployments.
docker/sut-ehrbase.yml, the EHRbase record and party set,docs/conformance/COMPARISON.md, the book’s Comparison with EHRbase page, and the openPGP-signing, fail-open and stable-spec compose overlays (docker/sut-signing-pgp.yml,sut-pgp-parallel.yml,sut-terminology-failclosed.yml,sut-terminology-failopen.yml,sut-spec-stable.yml) with the test signing keys undercorpus/keys/are gone.scripts/conformance.shno longer takesCONF_SUT,CONF_IXITorCONF_STATEMENT, and refusesCONF_PERF_CLASSandCONF_STRESSuntil the measured lanes move to the Veredictumperf/tree (#4448). -
The Veredictum pin watcher workflow,
scripts/checks/veredictum-pin.shwith itsveredictum-pin-guardjob, and theno-conformance-runlabel are gone: a pin bump now runs the new catalogue against its own build in the Conformance workflow (#4449).
Fixed
-
The hosted sandbox seeds its full demo dataset again. The v5.5.0 reseed stopped at the ADL 2 archetype library (233 stored / 89 refused against the pinned 231 / 91) because the box’s
.envstill forced FerroTERM 0.1.6, which reads none of the FerroTERM 0.3 settings the sandbox posture passes, so it served no LOINC and VETDF could only warn onbraden_scale’s mistyped LA9605-4. The corpus, the pin and the CDR were right. The seed now asks the CDR for a LOINC code before the library step and names a posture without LOINC (SANDBOX_TERMINOLOGY=without-loincopts a local run into 233 / 89), checks that the two files it names move together, and a corpus test holds the manifest’s pin to the adjudicated split with and without LOINC. The FerroPIX rollout script retires a staleFERROTERM_IMAGEoverride, checks that FerroTERM runs the pinned version and serves LOINC, and wipes before it seeds over an unfinished seed (#4278). -
The measurement overlay
docker/sut-measurement.ymlswitches the caller rate limiter off by removing the[server.caller_rate]keys, so the server logscaller rate limiting configuredwithenabled=falseat boot, instead of setting a rate of 4294967295 per second thatferrohealth-server0.3.5 truncated to a zero interval and that answered stray429s under concurrency.scripts/conformance.shrefuses to start a measurement stack whoseferroehrservice still sets a caller rate (#4281). -
A response to a request whose body FerroEHR left unread, such as a
404to aPOSTof a path it does not serve or a declared-length413, now carriesConnection: close. The connection closed after such a response without saying so, and a client that sent its next request on it met a closed socket, which a non-idempotent request cannot safely retry (RFC 9112 §9.6) (#4283). -
A
[server.caller_rate]above 1 000 000 000 requests per second no longer answers429to concurrent requests: such a rate now limits nothing, as its operator meant (#4283). -
Every request leaves one request line, a timeout
408, a declared-length413and the500of a panicked handler included, and a413for a body with no declared length that passes[server] body_limit_bytesis answered with the openEHR error body, as the declared-length413is (#4283). -
An AQL query whose
WHEREclause chains thousands ofNOT,ANDorORterms no longer overflows the stack and aborts the server. The parser refuses a query that nests brackets andCONTAINSdeeper than 64 levels or builds an expression deeper than 512 levels with400 Bad Request, before any recursive pass runs, on the ad-hoc, stored-query store and execution paths alike. A longORover one path is written asMATCHES {…}, which the bound does not count. A statement PostgreSQL refuses for its own complexity limit (SQLSTATE class 54) also answers400instead of500.openehr-querygainsParseError::TooDeep(#4284). -
An AQL query (ad hoc or stored) whose client disconnects, or that the server’s own
query.timeout_msor HTTP request timeout gives up on, no longer keeps its statement running and its pooled connection busy until the statement ends. The connection is closed instead of returned to the pool, so the slot frees at once, and every pooled session now sets PostgreSQL’sclient_connection_check_intervalto one second, so the backend stops the abandoned statement within about a second. The composition-count statistics behave the same way (#4285). -
The server’s resident memory no longer climbs under sustained load until the container’s memory limit kills it. The
ferroehrbinary now allocates through mimalloc instead of glibcmalloc, whose per-thread arenas kept freed memory and never gave it back. On a load test of 10 000 mixed jobs at 48 workers the peak resident set fell from 2.3 to 3.2 GB (growing run after run) to about 600 MB, and throughput rose by about a third (#4288). -
A request whose database connection a PostgreSQL restart, a crash or the network cuts now answers
503 Service UnavailablewithRetry-After, as a request that cannot get a connection already did, instead of500. SQLSTATE class08(except08P01),57P01,57P02,57P03and57P05, and a reset, aborted or closed socket on an open session count as such a cut (#4290). -
While PostgreSQL is down, requests that need the database answer
503withRetry-Afterabout a second after the first one starts waiting, and at once after that, instead of each queueing up todb.acquire_timeout_secs(30 seconds by default). An acquire that has waited a second tries one connection of its own; when that cannot reach the database, the outage is known until a fresh attempt connects, and requests are served again as soon as one does. A pool that is only busy keeps queueing as before (#4323). -
Superseding a composition or a party no longer slows down as its history grows. The foreign-key check that every new node and attestation row makes against its version could scan all versions of the object instead of probing one, depending on the planner statistics at the time: on the storage bench, superseding an object with a few hundred versions took about 14 ms instead of 9 ms when the plan flipped. Migrations
clinical/0022andparty/0013re-key the version-tree uniqueness constraintuq_version_treewith the object id last, so the check always probes the primary key. The constraint enforces the same uniqueness as before (#4340). -
The FHIR rendering of an access record
ehds-loggingdoes not classify (a template upload, a stored-query write, a template read) now carries the IHE BALP 1.1.4entity:dataslice its Create, Read, Update or Delete profile requires: type2, role4andwhat.identifier, naming the operation when the record names no object. HAPI FHIR’s validator refused the template upload record without it (#4353). -
A
+in a query string is a literal plus, as RFC 3986 §2.1 and §3.4 decode a URI query, on every ITS-REST operation and every extension route: a date-time offset such as2026-10-28T10:00:00+01:00or an AQL parameter sent with an unencoded+reaches the server unchanged, where it was read as a space. A space in a query value is sent as%20. This reverses the form-decoding of #3891: a client that writes a space as+now sends a plus. Theopenehr-*crates move to 0.0.114 (#4356). -
An AQL
EHR e[ehr_id/value='…']predicate whose value is not a UUID ('1234', the AQL 1.1.0 example) answers an empty result, as itsWHERE e/ehr_id/value = '…'spelling does, onPOSTandGET /query/aql; it was refused with400. Both spellings lower the EHR id comparison through one path, and a value the database cannot cast is refused with a message that no longer claims it came from a query parameter (#4378). -
A request sent on a kept-alive connection that sat idle longer than
[server] header_read_timeout_ms(30 s by default) is answered. The server used to close such a connection, sometimes while the request was arriving, so a client that reused it gotEOFwith no answer and no server log line, and a client that never retries aPOSTon a reused connection, such as Go’snet/http, reported a composition commit as failed. An idle connection now stays open until[server] idle_timeout_ms(120 s by default) and then ends cleanly before any new request byte; keep that limit longer than the idle timeout of your clients (90 s for Go) and of any load balancer in front (#4381). -
An AQL query with an archetype predicate no longer builds the archetype index bitmap of the whole store once per version. The planner multiplied the selectivities of the archetype columns, which each archetype fixes together, and expected about 15 000 of 545 067 blood-pressure OBSERVATIONs; a query over one EHR then took 38.8 s and answered
408. Clinical migration0021_archetype_statistics.sqlgives the columns a statistics object, and the same query takes 0.3 s (#4399). -
FROM PERSON p CONTAINS EHR e(and theORGANISATIONandROLEroots) joins a party to the EHR whoseEHR_STATUS.subject.external_refnames it, so a party created withPOST /demographic/personand an EHR created withPOST /ehranswer their row with no other call. Before, the join read only the party-to-EHR map, which no REST route writes, and answered no rows on a deployed server. The reference matches when itsid.valueis the party’s uid without::<system>::<version>and itstypeis the root class or its RM ancestor (ACTOR,PARTY), in any namespace; an EHR linked both ways answers once (#4411). -
An AQL projection whose path ends on a list attribute inside a node’s data (
c/feeder_audit/originating_system_item_ids,c/links,c/context/participations,c/composer/identifiers,.../mappings) answers the list itself,[{…}, {…}], andnullwhen the list is absent. It answered the list wrapped in a second list,[[{…}, {…}]]; a client that unwrapped that outer array reads the column directly now. A path that continues below a list (.../originating_system_item_ids/id) still answers the array of its matches,["…", "…"].COUNTover a path ending on a list counts its elements (#4413). -
Reading one version of a composition, EHR_STATUS, folder or party by its version id no longer slows down as the object’s history grows. Once a connection reused its prepared read, the plan scanned every version of the object and kept the one asked for: on the storage bench’s history of 500 versions such a read touched about 520 buffers instead of 12 to 24. Migrations
clinical/0023andparty/0014add an index on the version tree id columns of both storage tiers, so the read probes the one version it returns (#4420). -
An audit store that 5.6.0-rc2 migrated starts again. Audit migration 0017 changed after 5.6.0-rc2 shipped it, so the server refused such a store on the migration’s checksum at boot. 0017 is back to its 5.6.0-rc2 text, and the new audit migration
0019_search_tokens_pending_list.sqlgives the search token index its pending list of 512 kB, so a store that 5.6.0-rc2 migrated upgrades in place (#4424). -
An AQL query ordered by
c/uid/valuewith aLIMITno longer starts a parallel worker on every call, and no longer switches between that plan and a sort of the whole join depending on the planner statistics. The version uid it sorts on had no index, so the planner sorted the version rows through a parallelGather Merge, which costs a worker’s start-up per query on a server of any size: about 19 ms on the storage bench’s CI runner, where the two flat-shape path reads measured 23 ms in some rounds and 42 ms in others. Migrationsclinical/0024andparty/0015add an index on the uid expression of the hot version partition, so the query reads versions in uid order from it in one backend and stops at the limit (#4429). -
An AQL query that reads values along a path no longer spends up to a second compiling itself before it runs. Each path step was bound through a set-returning function that PostgreSQL estimates at ten rows, so a chain of steps multiplied the row estimate tenfold per step: the planner chose join orders for a statement millions of times larger than the real one and switched on JIT compilation for it. On the storage bench, a wide projection of 9 values over one EHR read in 1 s instead of 15 to 20 ms, and an ordered WHERE on a magnitude in about 0.5 s instead of 50 ms (#4430). Each step is now a
LATERALsubquery that the planner estimates from its own plan; results do not change (#4431). -
An AQL lookup by an ELEMENT value, such as a person by an identifier (
WHERE id/items[at0001]/value/id = $v) or a composition by a text value, read every node of the archetype in both stores and tested the value last: about 350 ms at 50 000 persons. The engine now anchors such an equality on the ELEMENT rows of the same version by their search text (ext.node_search_text, ext migration0006), which the new partial expression indexidx_node_hot_value_searchand its statistics object serve (clinical migration0025, party migration0016), so the lookup reads the one object: 26 buffers and under a millisecond at 50 000 persons. The party store also gets the archetype dependency statistics the clinical store has had since 5.6.0-rc2 (party migration0017). The storage bench measures the lookup asperson_identifier_lookup(#4437). -
The revision history and every point read of a version now reach the version’s commit audit through a lateral subquery that probes
pk_commit_auditby key once per version row, so stale statistics on the partitionedversiontable can no longer turn the read into a walk of the whole commit audit index (1 318 buffers against 21 for a four-version object beside 1 300 others) (#4438). -
A revision history or a current-version read of a COMPOSITION committed after the partitioned
versiontable last had statistics could walk the whole commit audit index: the planner held the highest commit audit id of the seed for the highest there is and rated a merge join overpk_commit_auditas cheap. On a store of 1 300 compositions the history of a four-version object read 1 318 buffers instead of 21, and the storage bench readrevision_historyat about 440 buffers per call in 3 of 8 rounds. The server now keeps the partitioned parents’ statistics (#4453), and each read probes the commit audit by key (#4438). -
An AQL lookup of an EHR by the subject of its EHR_STATUS (
WHERE e/ehr_status/subject/external_ref/id/value = $u AND e/ehr_status/subject/external_ref/namespace = $n) joined every EHR_STATUS version and read the subject out of its stored fragment: about 150 ms on a store of a few thousand EHRs. The two leaves now read the EHR row’ssubject_idandsubject_namespace, the copy the commit keeps of the current EHR_STATUS subject, so the lookup enters throughuq_ehr_subjectand reads one row. The storage bench measures it asehr_by_subject(#4442). -
The partitioned tables
node,versionandvo_attestationof the clinical and party stores never had planner statistics of their own, since autovacuum does not analyze a partitioned table, so the planner estimated joins over them without any (PostgreSQL 18 §24.1.3). The server now runsANALYZE ONLYon them, and onehrwhile autovacuum has never analyzed it, after applying the migrations, afterload_ehrs, at boot and every hour. The role it runs as needs theMAINTAINprivilege on those tables; without it the server logs the tables it could not analyze. The populationCONTAINSof an archetype now enters throughidx_node_hot_arch_subsume(3 703 buffers to 1 745 on the storage bench’s seed) (#4453). -
A party delete (
DELETE /demographic/{agent,group,organisation,person,role}/{uid_based_id}) and the party relationship delete now answer400when the path names the versioned object instead of its latestOBJECT_VERSION_ID, and delete nothing. They answered204and deleted the current version. The release requires thepreceding_version_uidin that path (ITS-RESTagent_delete.yamland its four siblings) (#4478) (#4458). -
A CONTRIBUTION member outside the operation’s member set, a party in an EHR CONTRIBUTION or a FOLDER in a demographic CONTRIBUTION, now answers
400as a body that fails the request schema. It answered422(#4459). -
A party update whose body carries no
uidnow checks each relationshipsourceagainst the party the path names and refuses a foreign source with422, as RMRelationships_validityrequires. The check ran only when the body carried auid, so such an update committed a relationship sourced at another party (#4460). -
An ADL 1.4 template upload whose XML ends with an element still open now answers
400, as for any document that is not well-formed XML. The well-formedness gate stopped at the end of input without checking that every element was closed, so a truncated upload answered422(#4461). -
A canonical JSON body that the published ITS-JSON schema admits and the RM refuses, such as a
DV_URIorDV_EHR_URIwithoutvalueor aDV_INTERVALlimitDV_ORDINALwithoutsymbol, now answers422naming the member, on the direct commit routes, the CONTRIBUTION members and the party commits. A body the schema refuses still answers400. All of them answered400(#4463). -
A directory create or update whose root FOLDER names an archetype in
archetype_node_idand carries noarchetype_detailsnow answers422and commits nothing: an archetype root carriesarchetype_details(RM common §The LOCATABLE Class). FerroEHR created such a directory. A553|incomplete|commit and a nested FOLDER keep it optional. The viewer’s empty directory root now carriesarchetype_details(#4464). -
AQL
EHR e NOT CONTAINS <class expression>now runs and returns the EHRs that hold no matching object. It was refused as unsupported with400(#4465). -
An AQL comparison between a
DV_DATE_TIMEpath that ends on the data value itself, such asc/context/start_time, and a date-time literal now compares the instants both name, so values with different offsets compare correctly. The comparison read the whole data value and matched nothing (#4466). -
A container member whose node id names an object constraint of the template but whose RM type conforms to none of them, such as an ELEMENT where the template allows only a CLUSTER, is now refused with
422. Only the opposite direction was refused (#4468). -
An ADL 1.4 template upload with
Prefer: return=representationnow answers the representationAcceptnames: the OPT XML, or the Web Template underapplication/openehr.wt+jsonorapplication/json. AnAcceptoutside those answers406and stores nothing. The upload always answered XML (#4469). -
A Simplified Format COMPOSITION commit without the
openehr-template-idheader, and a flat|rawvalue without_type, now answer400. Both answered422(#4470). -
A Simplified Flat or Structured
…/action_archetype_idnow sets the StringACTIVITY.action_archetype_id, and the flat output writes it back. The converter built an object from the template’s string constraint, so the commit answered422(#4471). -
ctx/action_ism_transition_current_state, as a rubric or a code, now setsACTION.ism_transition.current_stateof every ACTION the document gives no state. The converter wrote524|initial|first and the context value never applied (#4472). -
ctx/instruction_narrativenow becomesINSTRUCTION.narrativeof every INSTRUCTION the document gives no narrative. A placeholder<narrative>was stored instead (#4473). -
The Simplified Flat
DV_INTERVALsuffixes|lower_unbounded,|upper_unbounded,|lower_includedand|upper_includedare now read on an interval whose bounds are template nodes, and the flat output writes an unbounded flag when true and an included flag when false. The suffixes were refused as unknown with422(#4474). -
An AQL query aimed at named EHRs (the ITS-REST
ehr_idparameter) reads those EHRs’ objects first and each object’s own content after them, whatever the planner statistics say. When an archetype’s rows fell out of the most-common-value list of the archetype statistics, the planner estimated them at one row and could start from that archetype over the whole population, evaluating every projected path for every EHR’s rows before the EHR filter: the storage bench’s wide projection over one EHR read about 10 000 pages per call in some rounds and 1 200 in others. A node contained in a versioned object is now read inside its parent on such a query; results do not change (#4487). -
AQL
TERMINOLOGY('expand', …)against a FHIR terminology server takes the value set from theurlargument whenparams_uriis the$expandquery form (url=http://…), as the openEHR AQL examples write it, and still takes a bare value-set URL as it is. A query form withouturlis a 400 that names the missing argument. Before, the wholeparams_uriwent to the server as the URL, and the query was answered 400 because the value set was not found (#4488). -
AQL
TERMINOLOGY('validate', …)andTERMINOLOGY('subsumes', …)keep aparams_uriargument whole when its value carries a?, as the QUERY master03 exampleurl=http://snomed.info/sct?fhir_vsdoes. Before, the arguments were read from after the first?anywhere inparams_uri, so the value-set URL reached the terminology server truncated and the arguments before it were lost. Aparams_urithat starts with a path still has its arguments read from after the path’s?(#4490).
Security
Shipped with functional changes because: both fixes exist only in ferrohealth-server releases that carry functional changes in the same serving path beside them (0.3.7 two fixes, 0.3.8 and 0.3.9 the problem details module, the kept listener TLS and the unmasked remedy), so there is no security-only release of the crate for FerroEHR to take, and the client CA refusal ships in the release candidate the advisory names.
-
FerroEHR takes
ferrohealth-server0.3.7 in place of 0.3.5 (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 about 8400 silent connections from a client with no credentials exhausted the quickstart’s file descriptors and the CDR stopped answering, health checks included; the listener then retried a failedacceptat once and logged every failure. Such a connection now closes once[server] header_read_timeout_mspasses (30 s by default), counted from accept, and after anEMFILEorENFILEthe listener pauses up to 1 s before it accepts again and logs one warning every 10 seconds (#4283). -
A
[server.tls]table that setsclient_ca_filewithclient_authatnone, written or by default, is refused at load, naming the setting (GHSA-52mf-qg39-4q4j). Before 5.5.0 a client CA alone meant that every client presents a certificate; 5.5.0 moved the listener ontoferrohealth-server, whereclient_authdefaults tononeand the CA was read and ignored, so a configuration carried over passedconfig checkand served without asking a client certificate. FerroEHR takesferrohealth-server0.3.9, which refuses it and names the remedy in full. A 5.5.0 deployer who setsclient_ca_filesetsclient_auth = "required"beside it. The default template no longer pairs a client CA withnone, and says what eachclient_authvalue does (#4349). -
CVE-2026-84243, the glibc gettext
LANGUAGEdirectory traversal (GLIBC-SA-2026-0025), has no Debian fix for trixie yet and is judgednot_affectedin every image. Theferroehrandferroehr-viewerprograms never leave the C locale, so glibc ignoresLANGUAGEand opens no message catalog (security/vex/ferroehr-os.openvex.json). Inferroehr-postgresonly the container environment the operator writes can setLANGUAGE; no database connection can (security/vex/postgres-os.openvex.json) (#4500).
5.6.0-rc4 - 2026-10-31
5.6.0-rc4 is the fourth release candidate of 5.6.0, published for testing. These notes carry every change since 5.5.0, those of the 5.6.0-rc3 section below included. New since 5.6.0-rc3: an AQL lookup by an ELEMENT value, such as a person by an identifier, reads the one object through a value index in both stores (#4437), and a lookup of an EHR by its EHR_STATUS.subject reads the EHR row (#4442); a request on a kept-alive connection idle past the head bound is answered, so a client that reuses the connection for a commit no longer sees EOF (#4381); the server keeps planner statistics on the partitioned tables, the serving roles hold MAINTAIN on them, and a version read probes its commit audit by key (#4438, #4453); an AQL path read is estimated at the rows it reads and a page ordered by the version uid reads an index with no parallel worker (#4429, #4431); EHR e NOT CONTAINS runs (#4465), a DV_DATE_TIME comparison compares instants (#4466), and the REST, party, template and Simplified Format fixes the Veredictum 0.3.0 catalogue found (#4458 to #4464, #4467 to #4475); the viewer draws every page on its server with FerroUI 0.6 (#4433); AQL TERMINOLOGY('expand', …) takes the value set from the url argument of a $expand query form (#4488); and the conformance pipeline runs the Veredictum 0.3.0 catalogue against one FerroEHR deployment with FerroTERM beside it, in CI through the Veredictum GitHub Action (#4448, #4449, #4476). 5.5.0 stays the stable release: this pre-release moves neither the latest image tags, the book under /docs/latest/ nor the hosted sandbox, it publishes no crates, and it receives no fixes; the next release candidate or 5.6.0 itself replaces it. Before you try it: every route ITS-REST 1.1.0 does not define moves from /ferroehr/rest/openehr/v1/ to /ferroehr/rest/extensions/v1/, and the ITI-81 retrieval to /ferroehr/rest/fhir/r4/AuditEvent, with no redirect from the old paths; an error body is application/problem+json, so a client that read message reads detail, and one that read validationErrors sends Prefer: return=representation and reads errors; audit migration 0017 refuses an audit store that holds records written by 5.5.0 or earlier, while an audit store that 5.6.0-rc2 migrated upgrades in place; a [server.tls] table with client_ca_file must set client_auth = "required" (or "optional") beside it, or the configuration is refused at load; [server] header_read_timeout_ms no longer bounds an idle kept-alive connection, which the new [server] idle_timeout_ms (120000 by default) closes, so keep it longer than the idle timeout of your clients and load balancers; a client that wrote a space as + in a query string sends %20; a party delete names the latest OBJECT_VERSION_ID in its path and answers 400 for a versioned object id; a body the RM refuses after the ITS-JSON schema admits it answers 422, and a misplaced CONTRIBUTION member, a Simplified Format commit without openehr-template-id and a flat |raw value without _type answer 400; a tag update under Prefer: return=identifier answers 200 with the tag list; with [authz.rbac] enabled a token holding only system/ SMART on openEHR scopes reaches clinical operations without a role; the viewer image serves no /pkg/ and reads no LEPTOS_SITE_ROOT, LEPTOS_OUTPUT_NAME or LEPTOS_HASH_FILES, and its Content-Security-Policy is script-src 'self'; style-src 'self'; Helm chart 21.0.0-rc4 refuses to render until config.deployment_profile names sandbox or production, and a values file for its FerroPIX moves ferropix.config.server.public_base_url to ferropix.config.public_base_url and each issuer’s clients to ferropix.config.trust.issuer. Storage generation 3 adds node columns and migrates no data; clinical migration 0020 adds the origin to retention policies and 0021 statistics on the archetype columns, and clinical 0022 and 0023 and party 0013 and 0014 rebuild the version tree’s uniqueness constraint and index its version id columns, which reads every version row of an existing store once; clinical 0024 and party 0015 index the version uid, ext 0006, clinical 0025 and party 0016 add the ELEMENT value search index, built over every hot node row of an existing store, party 0017 adds the archetype statistics, and clinical 0026 and party 0018 grant MAINTAIN on the partitioned tables to the serving roles; audit migration 0019 gives the search token index a pending list of 512 kB. Helm chart 21.0.0-rc4 carries appVersion 5.6.0-rc4. Security carries two advisories, GHSA-2mc2-h3jq-c5wg and GHSA-52mf-qg39-4q4j.
Added
-
The logging component’s intended performance is stated as checkable claims (EHDS Annex II 1.1): every composition create and read recorded exactly once and every AQL execution at least once, no access succeeding without its record, at most 125 % of the latency and at least 80 % of the throughput with the access log off, and a 50-record ITI-81 page within 250 ms at p95.
scripts/perf/audit.shmeasures them with the access log off and on (the load test’s new--auditmode counts the records through ITI-81 and times retrievals),scripts/perf/audit-verdict.shgives the verdict, the release refuses a claim not met and attaches the summary asferroehr-<tag>-logging-performance.md(Annex III point 2), and the weekly performance guard runs it on main. The book’s compliance section gains the page that states the claims and the method (#4293). -
scripts/interop/atna.shexercises the logging component’s ATNA transactions against independent implementations run from published images (EHDS Annex II 1.4): the ITI-20 FHIR feed into HAPI FHIR as the Audit Record Repository, judged by its validator with IHE BALP 1.1.4; the ITI-20 syslog feed into syslog-ng over RFC 5425 TLS, each payload read as a DICOM PS3.15AuditMessage; and the same ITI-81 searches put to FerroEHR and to HAPI. The audit trail page documents it (#4296). -
FerroEHR ships an EHDS category map for the published CKM templates and COMPOSITION archetypes whose data sit in one Art. 14(1) priority category (the International Patient Summary, ePrescription, the generic laboratory result and CCTA report templates; the
health_summary,prescriptionandtransfer_summaryarchetypes), so an installation that declares no[audit.categories]keys records those accesses classified instead ofunclassified(EHDS Annex II 3.2(c)). A deployment that declares any template or archetype replaces it whole.[audit.categories] shipped_map = falsewith nothing declared leaves no map, whichdeployment_profile = "production"refuses as the newno_category_mapgap unlessdeployment_acceptsnames it (#4298). -
Retention periods and access rules can take the origin and the category of the data into account (EHDS Annex II 3.4). The new top-level
[origins]register declares the origins a deployment recognises, each by the id its data carry and the clients whose direct commits come from it; a body without aFEEDER_AUDITcommitted by a registered client is stamped with that client’s origin instead of the server’ssystem_id.PUT /admin/retention/policytakes an optionaloriginnaming a registered origin, the register andGET /admin/retention/duereport it, and the due list lists an origin-keyed period over the objects of that origin (clinical migration0020_retention_by_origin.sql). The ABAC request carriescategory(the access record’s category tokens) andoriginresource attributes on composition, contribution and query operations, the Cedar schema declares both, and a remote PDP binding may name them as parameters (#4299). -
The
openehr-itsclient reads an RFC 9457 problem details refusal:ErrorBody::problem()exposes itstype,title,status,detailandinstance, ignoring a member of the wrong type (RFC 9457 §3.1), andErrorBody::message()answers the problem’sdetail, else itstitle, where it answered only the ITS-RESTError’smessage. Theopenehr-*crates move to 0.0.115 (#4355). -
The local EHR index (
[ehr_index] provider = "local") is a supported production posture beside the IHE patient identity source:EHR_STATUS.subjectnames a patient by its own namespace and identifier, whichGET /ehr?subject_id=&subject_namespace=matches, and with no[privacy] subject_namespacesdeclared the reference is stored as the client sends it. The compose quickstart selects it withFERROEHR_EHR_INDEX=local docker compose up, which runs itsferroehr-config-localblock (#4379). -
CI checks every inline configuration of the compose quickstart with the
config checkof the image the file pins, FerroEHR’s and FerroPIX’s, so the quickstart can no longer carry a configuration its pinned server refuses (#4380). -
The Conformance workflow runs the Veredictum 0.3.0 catalogue in CI through the Veredictum GitHub Action, pinned by commit SHA and running the release image by digest. It builds FerroEHR from the commit, composes it with FerroTERM beside it on fresh volumes, reviews the party statement with
veredictum validate, fails on a failed or errored row, writes the Markdown summary to the job summary and uploads the results, JUnit and CTRF views. It runs on pull requests that touch the server, the party set, the conformance compose files or the workflow, onmain, on a release tag and twice a week.scripts/conformance.shtakes a stage (run,review,up,down), so CI and a local run compose the same deployment, andscripts/checks/veredictum-action.shfails while the Action SHA, its version comment, the image digest andVEREDICTUM_VERSIONdisagree (#4449). -
GET /ehr/{ehr_id}andGET /ehr?subject_id=…now sendLast-Modified: the commit that created the EHR, or the later commit that added or deleted one of its folder hierarchies (#4462).
Changed
-
A population AQL query that only counts its root objects, such as
SELECT COUNT(c) FROM EHR e CONTAINS COMPOSITION cor the same withCOUNT(*), reads the current version rows and no longer probes the root node of every composition. At 545 000 compositions the count fell from about 9 s to 0.2 s (#4286). -
A REST request checks a connection out of each database pool once and keeps it until it answers, where it took one for each statement: two to four checkouts for a read of an EHR, an EHR_STATUS or a COMPOSITION, each waiting in the pool’s queue under load and each paying the pool’s release round trip. At 48 concurrent clients and a pool of 10, throughput rose by about 18 % and the median latency fell by about 13 % (#4289).
-
The Helm chart, at a new major version (21), has no default deployment profile: it refuses to render until
config.deployment_profilenamessandboxorproduction, so an installation that follows a quickstart instead of the instructions for use no longer runs the sandbox posture by omission (EHDS Annex II 1.2). A values file that relied on the oldsandboxdefault must now set it, for example--set config.deployment_profile=sandbox;values-production.yamlsetsproductionas before. The server binary’s own default and the Compose files, which declaresandboxexplicitly, are unchanged (#4294). -
The audit store keeps each record’s facts in columns and renders its FHIR R4
AuditEventfrom them when the record is read over ITI-81 or delivered by the FHIR feed, instead of storing the rendered document in every record. A record takes about a quarter of the space it took before. The configuration the rendering depends on (the audit source, the store horizon, the category map and the emergency purposes) is kept once per distinct configuration inaudit.audit_render_policy, and every record names the policy it was written under, so it renders the same document after the configuration changes. The tamper chain hashes every column of the record in one digest and checks each render policy against its digest; the earlier digest versions are retired. Audit migration 0017 needs an empty audit store and refuses one that holds records written by an earlier release, naming the remedy. ITI-81 parameters on an element of the document (address, the.identifierparameters,entity-type,entity-role,type,subtype) are matched against the rendered document (#4300). -
The three audit indexes on
recorded_atascend, so their pages fill instead of splitting half full on every insert; the newest-first ITI-81 search scans them backward (#4302). -
A clinical or party node row now stores only the part of its canonical JSON fragment that its own columns do not hold:
_type, a lowercasearchetype_node_id, a plain or simply coded name, and an ELEMENT value in one of the common basic shapes (a quantity, count, ordinal, coded or plain text, date, time, duration, identifier, boolean or URI) move into columns, the value into the new typed value columns. Every reader rebuilds the omitted keys, so the canonical JSON and every AQL result are unchanged, and a filter on a quantity’s magnitude or a code reads its column directly. The node heap shrinks by about a third (storage generation 3); a row written before keeps its whole fragment and reads the same. Migrationsext/0005,clinical/0019andparty/0012add the columns and the readers; no data is migrated (#4306). -
Every ITI-81 search parameter answers through an index again. The store takes the search tokens of a record’s rendered
AuditEventwhen it writes the record: each distinct token once inaudit.audit_search_token, the code-system tokens (type,subtype,entity-type,entity-role,source.identifier) as one shared set inaudit.audit_search_set, and their ids on the record insearch_tokensunder a GIN index;entityreads a hash index onresource_id. A search onaddressor a token parameter no longer renders every record in itsdatewindow. The tamper chain coverssearch_tokens, and the verifier reports a changed token or set (#4313). -
The viewer takes FerroUI 0.5.8: a menu item draws a visible bar under the pointer and the keyboard focus, and the top bar’s search no longer opens its panel again over the page the router draws after a search is submitted or one of its options followed (#4319).
-
Nothing ITS-REST 1.1.0 does not define is served under the openEHR base path any more. FerroEHR serves three namespaces beside each other under
/ferroehr/rest/:/openehr/v1/holds only the ITS-REST routes,/fhir/r4/the FHIR and IHE interfaces, and/extensions/v1/FerroEHR’s own extensions. The ITI-81 retrieval moved from/ferroehr/rest/openehr/v1/fhir/r4/AuditEventto/ferroehr/rest/fhir/r4/AuditEvent. These routes moved from/ferroehr/rest/openehr/v1/...to/ferroehr/rest/extensions/v1/...with the same relative path:/terminology/...,/admin/event_subscription...,/demographic/party_relationship...,/demographic/versioned_party_relationship/...,/definition/archetype/...,/definition/artefact/...,/message/export...,/message/import...,/query/cohort, and the admin extensions/admin/config,/admin/template/{template_id},/admin/query/{qualified_query_name}/{version},/admin/party/...,/admin/archive/...,/admin/report/...,/admin/dump,/admin/load,/admin/integrity/...,/admin/restriction...,/admin/access-restriction...,/admin/research-objectionand/admin/retention/.... The old paths answer 404, with no redirect. The served OpenAPI document and its family documents name the new paths; the admin extensions, the archetype library and the cohort query have family documents of their own (admin-extensions,archetypes,cohort,contributions). The paged CONTRIBUTION list moved too, to/ferroehr/rest/extensions/v1/ehr/{ehr_id}/contribution(#4330). -
The server and viewer images build on the current
gcr.io/distroless/cc-debian13:nonrootdigest, so they carry the base image’s latest Debian package updates (#4335). -
Canonical JSON validation against the openEHR ITS-JSON schemas runs on
jsonschema0.59.0, which refuses a value whose regex match the engine cannot finish where 0.58 accepted it undernotorpatternProperties. Theopenehr-*crates move to 0.0.113 (#4336). -
A statement the database cancels, by its
statement_timeoutor a cancel request (SQLSTATE57014), answers503withRetry-Afterinstead of500: the statement rolled back, so the request can be repeated. By default the request timeout answers before the 60 s statement timeout fires, so on a request path it is raised by an operator’s cancel or by a forward step of the database host’s clock, which fires every running statement’s timeout at once (#4338). -
Every error on the openEHR routes (
/ferroehr/rest/openehr/v1/), the extension routes (/ferroehr/rest/extensions/v1/) and the management routes answers RFC 9457 problem details,application/problem+json, in place of the{ message, validationErrors, error }body shaped after the ITS-REST example. The status codes are unchanged. A problem carriestype,title,status,detailand the request id as aurn:uuid:instance; the refusals a client acts on have FerroEHR types documented on the book’s Problem types page (aql-invalid,query-timeout,validation-failed,content-invalid,conflict,version-conflict,unauthenticated,forbidden,processing-restricted,unavailable,rate-limited), every other error isabout:blank. A request withPrefer: return=representationreceives the additional details ITS-REST allows: the violations of a validation refusal aserrors({path, detail}, wherevalidationErrorsheld"<path>: <message>"strings), the bytepositionof an AQL parse refusal, and thecurrent_versionof a412. The stack’s own408,413,429,503and panic500are problems too, and anOperationOutcomeunder the FHIR base, where an authentication refusal is now anOperationOutcomeas well. The served OpenAPI document declares theProblemschema for every4xxand5xx, and the viewer reads problem details. A client that readmessagereadsdetail; one that readvalidationErrorssendsPrefer: return=representationand readserrors(#4342). -
The FHIR
AuditEventof an EHDS access record names the object it reads, creates, updates or deletes by its openEHR object id asentity.what.identifierwith the systemurn:openehr:object-id, where it wrote awhat.referencethat no FHIR server resolves and HAPI FHIR refused (FHIR R4 references.html §2.3.0.3). ITI-81 finds the record byentity.identifier. FerroEHR takes FerroAUDIT 0.3.2 (ihe-atnaandehds-logging) (#4366). -
The access log costs the request path less under load. The audit store writes a drained batch, its search tokens and its token sets in one transaction on one connection (one commit where it took up to three), stores only the tokens it does not hold yet, and the GIN index on
search_tokenstakes new entries through a pending list of 512 kB. On the release load test the store wrote 1.5 KB of WAL per record where it wrote 5.2 KB (#4375). -
[ehr_index] provider = "local"besidepixm_url,assigning_authority,[ehr_index.oauth]or[ehr_index.tls]is accepted, where it was refused: the IHE keys are kept, not used and named at boot, soprovideralone switches the index, in the file or asFERROEHR__EHR_INDEX__PROVIDER. Declared pseudonym namespaces stay in force under either index (#4379). -
A build no release lane marked reports its commit beside the package version, as SemVer build metadata (
5.6.0-rc2+dev.1a2b3c4d5e6f), onferroehr --versionandserver_versionofGET /ferroehr/rest/status(the boot banner and/management/infoalready name the commit beside the version), so a report from a build ofmainno longer reads as the release it follows; a release build reports the bare version (#4380). -
The compose quickstart runs FerroPIX 0.0.12, pinned by digest, with its configuration moved to that release’s keys (
public_base_urlat the top level, the Patient Identity Source’s client under[[trust.issuer]]), and Dependabot proposes each FerroPIX release (#4380). -
The Helm chart runs FerroPIX 0.0.12 by digest, with the FerroPIX chart 0.3.4 built for it, and the hosted sandbox runs FerroPIX 0.0.12 too; both had stayed at 0.0.7 and 0.0.10 when the quickstart moved. A values file for the chart’s FerroPIX moves
ferropix.config.server.public_base_urltoferropix.config.public_base_urland each issuer’sclientstoferropix.config.trust.issuer, the keys FerroPIX reads since 0.0.8; the chart’s examples and the production overlay do. FerroPIX’s chart now also runs its pods withenableServiceLinks: falseand in a user namespace (ferropix.hostUsers: false, the default). A CI guard holds the quickstart, chart and sandbox to one FerroPIX release and checks the sandbox’s and the chart’s FerroPIX configuration under it, so the Dependabot proposal for the quickstart pin moves all three (#4392). -
openehr-query, the AQL 1.1.0 lexer, parser, typed AST and printer, is published under Apache-2.0 from 0.0.116, like the generated model crates andopenehr-its, so any Rust project can parse AQL with it. Versions 0.0.60 to 0.0.115 keep the Business Source License 1.1 they were published under (#4405). -
FerroEHR takes
ferrohealth-server0.4.0 in place of 0.3.9. The new[server] idle_timeout_ms(120000 by default) closes a kept-alive HTTP/1.1 connection that waits that long for its next request, with a clean end of stream, and[server] header_read_timeout_mscounts from the first byte of each request head on a kept-alive connection (from accept for the first one, as before). The head bound 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, which a client such as Go’snet/httpsaw asEOFon aPOSTit does not retry (#4381). A deployment that setheader_read_timeout_msto bound idle connections setsidle_timeout_msinstead. The refusals the listener writes itself (408,413,429,503) and a panic’s500keep naming the server’s request id as theirinstancewhen the client sends its ownX-Request-Id, as every other FerroEHR refusal does (#4417). -
FerroEHR runs on
ferrohealth-server0.4.1, which keeps a product’s own fallback and the layers around it when the stack merges its routes (FerroHEALTH/FerroSYS#199). FerroEHR, v5.6.0-rc3 included, was not exposed to the regression 0.4.1 fixes: the REST API and the viewer declare their own fallback inside their layers, and the management endpoints guard each route they serve, so a path no route matches answers as it did before (#4427). -
The viewer draws every page on its server with FerroUI 0.6, with no Leptos and no WebAssembly: a link and a form load a new page, and FerroUI’s own small script modules add behaviour on top of what the server drew, so every page works with JavaScript off. The image ships the one
ferroehr-viewerbinary, with no/sitetree beside it and nohash.txt; FerroUI’s stylesheet, theme and scripts are served from inside it under/ferrohealth-ui/0.6.0/, and/pkg/no longer answers. The Content-Security-Policy is nowscript-src 'self'; style-src 'self'with no per-response nonce and no'wasm-unsafe-eval'. The image no longer readsLEPTOS_SITE_ROOT,LEPTOS_OUTPUT_NAMEorLEPTOS_HASH_FILES, so a deployment that sets them can drop them;LEPTOS_SITE_ADDRnaming another address thanserver.listenstill refuses the start. A proxy rule written for/pkg/(the hosted deployment’sCache-Controlfor it is removed) has nothing left to match (#4433). -
scripts/conformance.shruns the Veredictum 0.3.0 catalogue against one FerroEHR deployment: it reviews the party statement withveredictum validate, drivesveredictum testin the release image pinned by digest with Basic login, and writesresults.json, the HAR recording and the JUnit, CTRF and Markdown views todocs/conformance/ferroehr/. Docker or Podman runs it (CONTAINER_ENGINE). The FerroEHR statement now claims the 15 capability folders and answers every option of the 0.3.0 catalogue, and the IXIT keeps only what 0.3.0 reads (#4448). -
The serving roles may now analyze their store’s partitioned tables: new migrations (clinical 0026, party 0018) grant
MAINTAINonnode,versionandvo_attestation, and onclinical.ehr, toferroehr_clinicalandferroehr_party, so the hourly statistics refresh works under the role split.MAINTAINalso allowsVACUUM,CLUSTER,REINDEXandLOCK TABLEon exactly those tables. A role that still lacks it gets the warning naming the tables, as before (#4453). -
With the role gate on (
[authz.rbac] enabled), a bearer token whose SMART on openEHR resource scopes are allsystem/scopes, such assystem/template-*.r, now reaches a clinical operation without a role: it is a backend client, and its scopes decide what it reaches. Auser/orpatient/token belongs to a person and still needs at least one role, as does a token with no SMART on openEHR scope and a Basic user; an admin operation still needs the admin role (#4467). -
A tag update (
PUT …/tagson EHR_STATUS, COMPOSITION and the five party kinds) sent withPrefer: return=identifiernow answers200with the stored tag list andPreference-Applied: return=identifier. It answered204(#4475). -
The conformance deployment runs FerroTERM beside FerroEHR, pinned by digest, with
[terminology.server]pointed at it, locally inscripts/conformance.shand in the Conformance workflow, so theaql-terminology-supportedarm of the party statement runs against a real terminology server (#4476).
Removed
-
The conformance pipeline no longer runs EHRbase or the extra FerroEHR deployments.
docker/sut-ehrbase.yml, the EHRbase record and party set,docs/conformance/COMPARISON.md, the book’s Comparison with EHRbase page, and the openPGP-signing, fail-open and stable-spec compose overlays (docker/sut-signing-pgp.yml,sut-pgp-parallel.yml,sut-terminology-failclosed.yml,sut-terminology-failopen.yml,sut-spec-stable.yml) with the test signing keys undercorpus/keys/are gone.scripts/conformance.shno longer takesCONF_SUT,CONF_IXITorCONF_STATEMENT, and refusesCONF_PERF_CLASSandCONF_STRESSuntil the measured lanes move to the Veredictumperf/tree (#4448). -
The Veredictum pin watcher workflow,
scripts/checks/veredictum-pin.shwith itsveredictum-pin-guardjob, and theno-conformance-runlabel are gone: a pin bump now runs the new catalogue against its own build in the Conformance workflow (#4449).
Fixed
-
The hosted sandbox seeds its full demo dataset again. The v5.5.0 reseed stopped at the ADL 2 archetype library (233 stored / 89 refused against the pinned 231 / 91) because the box’s
.envstill forced FerroTERM 0.1.6, which reads none of the FerroTERM 0.3 settings the sandbox posture passes, so it served no LOINC and VETDF could only warn onbraden_scale’s mistyped LA9605-4. The corpus, the pin and the CDR were right. The seed now asks the CDR for a LOINC code before the library step and names a posture without LOINC (SANDBOX_TERMINOLOGY=without-loincopts a local run into 233 / 89), checks that the two files it names move together, and a corpus test holds the manifest’s pin to the adjudicated split with and without LOINC. The FerroPIX rollout script retires a staleFERROTERM_IMAGEoverride, checks that FerroTERM runs the pinned version and serves LOINC, and wipes before it seeds over an unfinished seed (#4278). -
The measurement overlay
docker/sut-measurement.ymlswitches the caller rate limiter off by removing the[server.caller_rate]keys, so the server logscaller rate limiting configuredwithenabled=falseat boot, instead of setting a rate of 4294967295 per second thatferrohealth-server0.3.5 truncated to a zero interval and that answered stray429s under concurrency.scripts/conformance.shrefuses to start a measurement stack whoseferroehrservice still sets a caller rate (#4281). -
A response to a request whose body FerroEHR left unread, such as a
404to aPOSTof a path it does not serve or a declared-length413, now carriesConnection: close. The connection closed after such a response without saying so, and a client that sent its next request on it met a closed socket, which a non-idempotent request cannot safely retry (RFC 9112 §9.6) (#4283). -
A
[server.caller_rate]above 1 000 000 000 requests per second no longer answers429to concurrent requests: such a rate now limits nothing, as its operator meant (#4283). -
Every request leaves one request line, a timeout
408, a declared-length413and the500of a panicked handler included, and a413for a body with no declared length that passes[server] body_limit_bytesis answered with the openEHR error body, as the declared-length413is (#4283). -
An AQL query whose
WHEREclause chains thousands ofNOT,ANDorORterms no longer overflows the stack and aborts the server. The parser refuses a query that nests brackets andCONTAINSdeeper than 64 levels or builds an expression deeper than 512 levels with400 Bad Request, before any recursive pass runs, on the ad-hoc, stored-query store and execution paths alike. A longORover one path is written asMATCHES {…}, which the bound does not count. A statement PostgreSQL refuses for its own complexity limit (SQLSTATE class 54) also answers400instead of500.openehr-querygainsParseError::TooDeep(#4284). -
An AQL query (ad hoc or stored) whose client disconnects, or that the server’s own
query.timeout_msor HTTP request timeout gives up on, no longer keeps its statement running and its pooled connection busy until the statement ends. The connection is closed instead of returned to the pool, so the slot frees at once, and every pooled session now sets PostgreSQL’sclient_connection_check_intervalto one second, so the backend stops the abandoned statement within about a second. The composition-count statistics behave the same way (#4285). -
The server’s resident memory no longer climbs under sustained load until the container’s memory limit kills it. The
ferroehrbinary now allocates through mimalloc instead of glibcmalloc, whose per-thread arenas kept freed memory and never gave it back. On a load test of 10 000 mixed jobs at 48 workers the peak resident set fell from 2.3 to 3.2 GB (growing run after run) to about 600 MB, and throughput rose by about a third (#4288). -
A request whose database connection a PostgreSQL restart, a crash or the network cuts now answers
503 Service UnavailablewithRetry-After, as a request that cannot get a connection already did, instead of500. SQLSTATE class08(except08P01),57P01,57P02,57P03and57P05, and a reset, aborted or closed socket on an open session count as such a cut (#4290). -
While PostgreSQL is down, requests that need the database answer
503withRetry-Afterabout a second after the first one starts waiting, and at once after that, instead of each queueing up todb.acquire_timeout_secs(30 seconds by default). An acquire that has waited a second tries one connection of its own; when that cannot reach the database, the outage is known until a fresh attempt connects, and requests are served again as soon as one does. A pool that is only busy keeps queueing as before (#4323). -
Superseding a composition or a party no longer slows down as its history grows. The foreign-key check that every new node and attestation row makes against its version could scan all versions of the object instead of probing one, depending on the planner statistics at the time: on the storage bench, superseding an object with a few hundred versions took about 14 ms instead of 9 ms when the plan flipped. Migrations
clinical/0022andparty/0013re-key the version-tree uniqueness constraintuq_version_treewith the object id last, so the check always probes the primary key. The constraint enforces the same uniqueness as before (#4340). -
The FHIR rendering of an access record
ehds-loggingdoes not classify (a template upload, a stored-query write, a template read) now carries the IHE BALP 1.1.4entity:dataslice its Create, Read, Update or Delete profile requires: type2, role4andwhat.identifier, naming the operation when the record names no object. HAPI FHIR’s validator refused the template upload record without it (#4353). -
A
+in a query string is a literal plus, as RFC 3986 §2.1 and §3.4 decode a URI query, on every ITS-REST operation and every extension route: a date-time offset such as2026-10-28T10:00:00+01:00or an AQL parameter sent with an unencoded+reaches the server unchanged, where it was read as a space. A space in a query value is sent as%20. This reverses the form-decoding of #3891: a client that writes a space as+now sends a plus. Theopenehr-*crates move to 0.0.114 (#4356). -
An AQL
EHR e[ehr_id/value='…']predicate whose value is not a UUID ('1234', the AQL 1.1.0 example) answers an empty result, as itsWHERE e/ehr_id/value = '…'spelling does, onPOSTandGET /query/aql; it was refused with400. Both spellings lower the EHR id comparison through one path, and a value the database cannot cast is refused with a message that no longer claims it came from a query parameter (#4378). -
A request sent on a kept-alive connection that sat idle longer than
[server] header_read_timeout_ms(30 s by default) is answered. The server used to close such a connection, sometimes while the request was arriving, so a client that reused it gotEOFwith no answer and no server log line, and a client that never retries aPOSTon a reused connection, such as Go’snet/http, reported a composition commit as failed. An idle connection now stays open until[server] idle_timeout_ms(120 s by default) and then ends cleanly before any new request byte; keep that limit longer than the idle timeout of your clients (90 s for Go) and of any load balancer in front (#4381). -
An AQL query with an archetype predicate no longer builds the archetype index bitmap of the whole store once per version. The planner multiplied the selectivities of the archetype columns, which each archetype fixes together, and expected about 15 000 of 545 067 blood-pressure OBSERVATIONs; a query over one EHR then took 38.8 s and answered
408. Clinical migration0021_archetype_statistics.sqlgives the columns a statistics object, and the same query takes 0.3 s (#4399). -
FROM PERSON p CONTAINS EHR e(and theORGANISATIONandROLEroots) joins a party to the EHR whoseEHR_STATUS.subject.external_refnames it, so a party created withPOST /demographic/personand an EHR created withPOST /ehranswer their row with no other call. Before, the join read only the party-to-EHR map, which no REST route writes, and answered no rows on a deployed server. The reference matches when itsid.valueis the party’s uid without::<system>::<version>and itstypeis the root class or its RM ancestor (ACTOR,PARTY), in any namespace; an EHR linked both ways answers once (#4411). -
An AQL projection whose path ends on a list attribute inside a node’s data (
c/feeder_audit/originating_system_item_ids,c/links,c/context/participations,c/composer/identifiers,.../mappings) answers the list itself,[{…}, {…}], andnullwhen the list is absent. It answered the list wrapped in a second list,[[{…}, {…}]]; a client that unwrapped that outer array reads the column directly now. A path that continues below a list (.../originating_system_item_ids/id) still answers the array of its matches,["…", "…"].COUNTover a path ending on a list counts its elements (#4413). -
Reading one version of a composition, EHR_STATUS, folder or party by its version id no longer slows down as the object’s history grows. Once a connection reused its prepared read, the plan scanned every version of the object and kept the one asked for: on the storage bench’s history of 500 versions such a read touched about 520 buffers instead of 12 to 24. Migrations
clinical/0023andparty/0014add an index on the version tree id columns of both storage tiers, so the read probes the one version it returns (#4420). -
An audit store that 5.6.0-rc2 migrated starts again. Audit migration 0017 changed after 5.6.0-rc2 shipped it, so the server refused such a store on the migration’s checksum at boot. 0017 is back to its 5.6.0-rc2 text, and the new audit migration
0019_search_tokens_pending_list.sqlgives the search token index its pending list of 512 kB, so a store that 5.6.0-rc2 migrated upgrades in place (#4424). -
An AQL query ordered by
c/uid/valuewith aLIMITno longer starts a parallel worker on every call, and no longer switches between that plan and a sort of the whole join depending on the planner statistics. The version uid it sorts on had no index, so the planner sorted the version rows through a parallelGather Merge, which costs a worker’s start-up per query on a server of any size: about 19 ms on the storage bench’s CI runner, where the two flat-shape path reads measured 23 ms in some rounds and 42 ms in others. Migrationsclinical/0024andparty/0015add an index on the uid expression of the hot version partition, so the query reads versions in uid order from it in one backend and stops at the limit (#4429). -
An AQL query that reads values along a path no longer spends up to a second compiling itself before it runs. Each path step was bound through a set-returning function that PostgreSQL estimates at ten rows, so a chain of steps multiplied the row estimate tenfold per step: the planner chose join orders for a statement millions of times larger than the real one and switched on JIT compilation for it. On the storage bench, a wide projection of 9 values over one EHR read in 1 s instead of 15 to 20 ms, and an ordered WHERE on a magnitude in about 0.5 s instead of 50 ms (#4430). Each step is now a
LATERALsubquery that the planner estimates from its own plan; results do not change (#4431). -
An AQL lookup by an ELEMENT value, such as a person by an identifier (
WHERE id/items[at0001]/value/id = $v) or a composition by a text value, read every node of the archetype in both stores and tested the value last: about 350 ms at 50 000 persons. The engine now anchors such an equality on the ELEMENT rows of the same version by their search text (ext.node_search_text, ext migration0006), which the new partial expression indexidx_node_hot_value_searchand its statistics object serve (clinical migration0025, party migration0016), so the lookup reads the one object: 26 buffers and under a millisecond at 50 000 persons. The party store also gets the archetype dependency statistics the clinical store has had since 5.6.0-rc2 (party migration0017). The storage bench measures the lookup asperson_identifier_lookup(#4437). -
The revision history and every point read of a version now reach the version’s commit audit through a lateral subquery that probes
pk_commit_auditby key once per version row, so stale statistics on the partitionedversiontable can no longer turn the read into a walk of the whole commit audit index (1 318 buffers against 21 for a four-version object beside 1 300 others) (#4438). -
A revision history or a current-version read of a COMPOSITION committed after the partitioned
versiontable last had statistics could walk the whole commit audit index: the planner held the highest commit audit id of the seed for the highest there is and rated a merge join overpk_commit_auditas cheap. On a store of 1 300 compositions the history of a four-version object read 1 318 buffers instead of 21, and the storage bench readrevision_historyat about 440 buffers per call in 3 of 8 rounds. The server now keeps the partitioned parents’ statistics (#4453), and each read probes the commit audit by key (#4438). -
An AQL lookup of an EHR by the subject of its EHR_STATUS (
WHERE e/ehr_status/subject/external_ref/id/value = $u AND e/ehr_status/subject/external_ref/namespace = $n) joined every EHR_STATUS version and read the subject out of its stored fragment: about 150 ms on a store of a few thousand EHRs. The two leaves now read the EHR row’ssubject_idandsubject_namespace, the copy the commit keeps of the current EHR_STATUS subject, so the lookup enters throughuq_ehr_subjectand reads one row. The storage bench measures it asehr_by_subject(#4442). -
The partitioned tables
node,versionandvo_attestationof the clinical and party stores never had planner statistics of their own, since autovacuum does not analyze a partitioned table, so the planner estimated joins over them without any (PostgreSQL 18 §24.1.3). The server now runsANALYZE ONLYon them, and onehrwhile autovacuum has never analyzed it, after applying the migrations, afterload_ehrs, at boot and every hour. The role it runs as needs theMAINTAINprivilege on those tables; without it the server logs the tables it could not analyze. The populationCONTAINSof an archetype now enters throughidx_node_hot_arch_subsume(3 703 buffers to 1 745 on the storage bench’s seed) (#4453). -
A party delete (
DELETE /demographic/{agent,group,organisation,person,role}/{uid_based_id}) and the party relationship delete now answer400when the path names the versioned object instead of its latestOBJECT_VERSION_ID, and delete nothing. They answered204and deleted the current version. The release requires thepreceding_version_uidin that path (ITS-RESTagent_delete.yamland its four siblings) (#4478) (#4458). -
A CONTRIBUTION member outside the operation’s member set, a party in an EHR CONTRIBUTION or a FOLDER in a demographic CONTRIBUTION, now answers
400as a body that fails the request schema. It answered422(#4459). -
A party update whose body carries no
uidnow checks each relationshipsourceagainst the party the path names and refuses a foreign source with422, as RMRelationships_validityrequires. The check ran only when the body carried auid, so such an update committed a relationship sourced at another party (#4460). -
An ADL 1.4 template upload whose XML ends with an element still open now answers
400, as for any document that is not well-formed XML. The well-formedness gate stopped at the end of input without checking that every element was closed, so a truncated upload answered422(#4461). -
A canonical JSON body that the published ITS-JSON schema admits and the RM refuses, such as a
DV_URIorDV_EHR_URIwithoutvalueor aDV_INTERVALlimitDV_ORDINALwithoutsymbol, now answers422naming the member, on the direct commit routes, the CONTRIBUTION members and the party commits. A body the schema refuses still answers400. All of them answered400(#4463). -
A directory create or update whose root FOLDER names an archetype in
archetype_node_idand carries noarchetype_detailsnow answers422and commits nothing: an archetype root carriesarchetype_details(RM common §The LOCATABLE Class). FerroEHR created such a directory. A553|incomplete|commit and a nested FOLDER keep it optional. The viewer’s empty directory root now carriesarchetype_details(#4464). -
AQL
EHR e NOT CONTAINS <class expression>now runs and returns the EHRs that hold no matching object. It was refused as unsupported with400(#4465). -
An AQL comparison between a
DV_DATE_TIMEpath that ends on the data value itself, such asc/context/start_time, and a date-time literal now compares the instants both name, so values with different offsets compare correctly. The comparison read the whole data value and matched nothing (#4466). -
A container member whose node id names an object constraint of the template but whose RM type conforms to none of them, such as an ELEMENT where the template allows only a CLUSTER, is now refused with
422. Only the opposite direction was refused (#4468). -
An ADL 1.4 template upload with
Prefer: return=representationnow answers the representationAcceptnames: the OPT XML, or the Web Template underapplication/openehr.wt+jsonorapplication/json. AnAcceptoutside those answers406and stores nothing. The upload always answered XML (#4469). -
A Simplified Format COMPOSITION commit without the
openehr-template-idheader, and a flat|rawvalue without_type, now answer400. Both answered422(#4470). -
A Simplified Flat or Structured
…/action_archetype_idnow sets the StringACTIVITY.action_archetype_id, and the flat output writes it back. The converter built an object from the template’s string constraint, so the commit answered422(#4471). -
ctx/action_ism_transition_current_state, as a rubric or a code, now setsACTION.ism_transition.current_stateof every ACTION the document gives no state. The converter wrote524|initial|first and the context value never applied (#4472). -
ctx/instruction_narrativenow becomesINSTRUCTION.narrativeof every INSTRUCTION the document gives no narrative. A placeholder<narrative>was stored instead (#4473). -
The Simplified Flat
DV_INTERVALsuffixes|lower_unbounded,|upper_unbounded,|lower_includedand|upper_includedare now read on an interval whose bounds are template nodes, and the flat output writes an unbounded flag when true and an included flag when false. The suffixes were refused as unknown with422(#4474). -
AQL
TERMINOLOGY('expand', …)against a FHIR terminology server takes the value set from theurlargument whenparams_uriis the$expandquery form (url=http://…), as the openEHR AQL examples write it, and still takes a bare value-set URL as it is. A query form withouturlis a 400 that names the missing argument. Before, the wholeparams_uriwent to the server as the URL, and the query was answered 400 because the value set was not found (#4488).
Security
Shipped with functional changes because: both fixes exist only in ferrohealth-server releases that carry functional changes in the same serving path beside them (0.3.7 two fixes, 0.3.8 and 0.3.9 the problem details module, the kept listener TLS and the unmasked remedy), so there is no security-only release of the crate for FerroEHR to take, and the client CA refusal ships in the release candidate the advisory names.
-
FerroEHR takes
ferrohealth-server0.3.7 in place of 0.3.5 (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 about 8400 silent connections from a client with no credentials exhausted the quickstart’s file descriptors and the CDR stopped answering, health checks included; the listener then retried a failedacceptat once and logged every failure. Such a connection now closes once[server] header_read_timeout_mspasses (30 s by default), counted from accept, and after anEMFILEorENFILEthe listener pauses up to 1 s before it accepts again and logs one warning every 10 seconds (#4283). -
A
[server.tls]table that setsclient_ca_filewithclient_authatnone, written or by default, is refused at load, naming the setting (GHSA-52mf-qg39-4q4j). Before 5.5.0 a client CA alone meant that every client presents a certificate; 5.5.0 moved the listener ontoferrohealth-server, whereclient_authdefaults tononeand the CA was read and ignored, so a configuration carried over passedconfig checkand served without asking a client certificate. FerroEHR takesferrohealth-server0.3.9, which refuses it and names the remedy in full. A 5.5.0 deployer who setsclient_ca_filesetsclient_auth = "required"beside it. The default template no longer pairs a client CA withnone, and says what eachclient_authvalue does (#4349).
5.6.0-rc3 - 2026-10-30
5.6.0-rc3 is the third release candidate of 5.6.0, published for testing. These notes carry every change since 5.5.0, those of the 5.6.0-rc2 section below included. New since 5.6.0-rc2: FROM PERSON p CONTAINS EHR e finds the EHR whose EHR_STATUS.subject.external_ref names the party (#4411); a projection ending on a list attribute answers the list, where it answered it wrapped in a second list, and COUNT over such a path counts its elements (#4413); every error on the openEHR, extension and management routes answers RFC 9457 problem details (#4342); a + in a query string is a literal plus (#4356); the local EHR index is a supported posture (#4379); an audit store that 5.6.0-rc2 migrated starts and upgrades in place (#4424); FerroEHR takes ferrohealth-server 0.4.0 (#4417) and FerroAUDIT 0.3.2 (#4366); and storage and AQL changes keep counts, reads and supersedes fast as a store grows (#4286, #4289, #4340, #4375, #4399, #4420). 5.5.0 stays the stable release: this pre-release moves neither the latest image tags, the book under /docs/latest/ nor the hosted sandbox, it publishes no crates, and it receives no fixes; the next release candidate or 5.6.0 itself replaces it. Before you try it: every route ITS-REST 1.1.0 does not define moves from /ferroehr/rest/openehr/v1/ to /ferroehr/rest/extensions/v1/, and the ITI-81 retrieval to /ferroehr/rest/fhir/r4/AuditEvent, with no redirect from the old paths; an error body is application/problem+json, so a client that read message reads detail, and one that read validationErrors sends Prefer: return=representation and reads errors; audit migration 0017 refuses an audit store that holds records written by 5.5.0 or earlier, while an audit store that 5.6.0-rc2 migrated upgrades in place; a [server.tls] table with client_ca_file must set client_auth = "required" (or "optional") beside it, or the configuration is refused at load; [server] header_read_timeout_ms no longer bounds an idle kept-alive connection, which the new [server] idle_timeout_ms (120000 by default) closes; a client that wrote a space as + in a query string sends %20; Helm chart 21.0.0-rc3 refuses to render until config.deployment_profile names sandbox or production, and a values file for its FerroPIX moves ferropix.config.server.public_base_url to ferropix.config.public_base_url and each issuer’s clients to ferropix.config.trust.issuer. Storage generation 3 adds node columns and migrates no data; clinical migration 0020 adds the origin to retention policies and 0021 statistics on the archetype columns, and clinical 0022 and 0023 and party 0013 and 0014 rebuild the version tree’s uniqueness constraint and index its version id columns, which reads every version row of an existing store once; audit migration 0019 gives the search token index a pending list of 512 kB. Helm chart 21.0.0-rc3 carries appVersion 5.6.0-rc3. Security carries two advisories, GHSA-2mc2-h3jq-c5wg and GHSA-52mf-qg39-4q4j.
Added
-
The logging component’s intended performance is stated as checkable claims (EHDS Annex II 1.1): every composition create and read recorded exactly once and every AQL execution at least once, no access succeeding without its record, at most 125 % of the latency and at least 80 % of the throughput with the access log off, and a 50-record ITI-81 page within 250 ms at p95.
scripts/perf/audit.shmeasures them with the access log off and on (the load test’s new--auditmode counts the records through ITI-81 and times retrievals),scripts/perf/audit-verdict.shgives the verdict, the release refuses a claim not met and attaches the summary asferroehr-<tag>-logging-performance.md(Annex III point 2), and the weekly performance guard runs it on main. The book’s compliance section gains the page that states the claims and the method (#4293). -
scripts/interop/atna.shexercises the logging component’s ATNA transactions against independent implementations run from published images (EHDS Annex II 1.4): the ITI-20 FHIR feed into HAPI FHIR as the Audit Record Repository, judged by its validator with IHE BALP 1.1.4; the ITI-20 syslog feed into syslog-ng over RFC 5425 TLS, each payload read as a DICOM PS3.15AuditMessage; and the same ITI-81 searches put to FerroEHR and to HAPI. The audit trail page documents it (#4296). -
FerroEHR ships an EHDS category map for the published CKM templates and COMPOSITION archetypes whose data sit in one Art. 14(1) priority category (the International Patient Summary, ePrescription, the generic laboratory result and CCTA report templates; the
health_summary,prescriptionandtransfer_summaryarchetypes), so an installation that declares no[audit.categories]keys records those accesses classified instead ofunclassified(EHDS Annex II 3.2(c)). A deployment that declares any template or archetype replaces it whole.[audit.categories] shipped_map = falsewith nothing declared leaves no map, whichdeployment_profile = "production"refuses as the newno_category_mapgap unlessdeployment_acceptsnames it (#4298). -
Retention periods and access rules can take the origin and the category of the data into account (EHDS Annex II 3.4). The new top-level
[origins]register declares the origins a deployment recognises, each by the id its data carry and the clients whose direct commits come from it; a body without aFEEDER_AUDITcommitted by a registered client is stamped with that client’s origin instead of the server’ssystem_id.PUT /admin/retention/policytakes an optionaloriginnaming a registered origin, the register andGET /admin/retention/duereport it, and the due list lists an origin-keyed period over the objects of that origin (clinical migration0020_retention_by_origin.sql). The ABAC request carriescategory(the access record’s category tokens) andoriginresource attributes on composition, contribution and query operations, the Cedar schema declares both, and a remote PDP binding may name them as parameters (#4299). -
The
openehr-itsclient reads an RFC 9457 problem details refusal:ErrorBody::problem()exposes itstype,title,status,detailandinstance, ignoring a member of the wrong type (RFC 9457 §3.1), andErrorBody::message()answers the problem’sdetail, else itstitle, where it answered only the ITS-RESTError’smessage. Theopenehr-*crates move to 0.0.115 (#4355). -
The local EHR index (
[ehr_index] provider = "local") is a supported production posture beside the IHE patient identity source:EHR_STATUS.subjectnames a patient by its own namespace and identifier, whichGET /ehr?subject_id=&subject_namespace=matches, and with no[privacy] subject_namespacesdeclared the reference is stored as the client sends it. The compose quickstart selects it withFERROEHR_EHR_INDEX=local docker compose up, which runs itsferroehr-config-localblock (#4379). -
CI checks every inline configuration of the compose quickstart with the
config checkof the image the file pins, FerroEHR’s and FerroPIX’s, so the quickstart can no longer carry a configuration its pinned server refuses (#4380).
Changed
-
A population AQL query that only counts its root objects, such as
SELECT COUNT(c) FROM EHR e CONTAINS COMPOSITION cor the same withCOUNT(*), reads the current version rows and no longer probes the root node of every composition. At 545 000 compositions the count fell from about 9 s to 0.2 s (#4286). -
A REST request checks a connection out of each database pool once and keeps it until it answers, where it took one for each statement: two to four checkouts for a read of an EHR, an EHR_STATUS or a COMPOSITION, each waiting in the pool’s queue under load and each paying the pool’s release round trip. At 48 concurrent clients and a pool of 10, throughput rose by about 18 % and the median latency fell by about 13 % (#4289).
-
The Helm chart, at a new major version (21), has no default deployment profile: it refuses to render until
config.deployment_profilenamessandboxorproduction, so an installation that follows a quickstart instead of the instructions for use no longer runs the sandbox posture by omission (EHDS Annex II 1.2). A values file that relied on the oldsandboxdefault must now set it, for example--set config.deployment_profile=sandbox;values-production.yamlsetsproductionas before. The server binary’s own default and the Compose files, which declaresandboxexplicitly, are unchanged (#4294). -
The audit store keeps each record’s facts in columns and renders its FHIR R4
AuditEventfrom them when the record is read over ITI-81 or delivered by the FHIR feed, instead of storing the rendered document in every record. A record takes about a quarter of the space it took before. The configuration the rendering depends on (the audit source, the store horizon, the category map and the emergency purposes) is kept once per distinct configuration inaudit.audit_render_policy, and every record names the policy it was written under, so it renders the same document after the configuration changes. The tamper chain hashes every column of the record in one digest and checks each render policy against its digest; the earlier digest versions are retired. Audit migration 0017 needs an empty audit store and refuses one that holds records written by an earlier release, naming the remedy. ITI-81 parameters on an element of the document (address, the.identifierparameters,entity-type,entity-role,type,subtype) are matched against the rendered document (#4300). -
The three audit indexes on
recorded_atascend, so their pages fill instead of splitting half full on every insert; the newest-first ITI-81 search scans them backward (#4302). -
A clinical or party node row now stores only the part of its canonical JSON fragment that its own columns do not hold:
_type, a lowercasearchetype_node_id, a plain or simply coded name, and an ELEMENT value in one of the common basic shapes (a quantity, count, ordinal, coded or plain text, date, time, duration, identifier, boolean or URI) move into columns, the value into the new typed value columns. Every reader rebuilds the omitted keys, so the canonical JSON and every AQL result are unchanged, and a filter on a quantity’s magnitude or a code reads its column directly. The node heap shrinks by about a third (storage generation 3); a row written before keeps its whole fragment and reads the same. Migrationsext/0005,clinical/0019andparty/0012add the columns and the readers; no data is migrated (#4306). -
Every ITI-81 search parameter answers through an index again. The store takes the search tokens of a record’s rendered
AuditEventwhen it writes the record: each distinct token once inaudit.audit_search_token, the code-system tokens (type,subtype,entity-type,entity-role,source.identifier) as one shared set inaudit.audit_search_set, and their ids on the record insearch_tokensunder a GIN index;entityreads a hash index onresource_id. A search onaddressor a token parameter no longer renders every record in itsdatewindow. The tamper chain coverssearch_tokens, and the verifier reports a changed token or set (#4313). -
The viewer takes FerroUI 0.5.8: a menu item draws a visible bar under the pointer and the keyboard focus, and the top bar’s search no longer opens its panel again over the page the router draws after a search is submitted or one of its options followed (#4319).
-
Nothing ITS-REST 1.1.0 does not define is served under the openEHR base path any more. FerroEHR serves three namespaces beside each other under
/ferroehr/rest/:/openehr/v1/holds only the ITS-REST routes,/fhir/r4/the FHIR and IHE interfaces, and/extensions/v1/FerroEHR’s own extensions. The ITI-81 retrieval moved from/ferroehr/rest/openehr/v1/fhir/r4/AuditEventto/ferroehr/rest/fhir/r4/AuditEvent. These routes moved from/ferroehr/rest/openehr/v1/...to/ferroehr/rest/extensions/v1/...with the same relative path:/terminology/...,/admin/event_subscription...,/demographic/party_relationship...,/demographic/versioned_party_relationship/...,/definition/archetype/...,/definition/artefact/...,/message/export...,/message/import...,/query/cohort, and the admin extensions/admin/config,/admin/template/{template_id},/admin/query/{qualified_query_name}/{version},/admin/party/...,/admin/archive/...,/admin/report/...,/admin/dump,/admin/load,/admin/integrity/...,/admin/restriction...,/admin/access-restriction...,/admin/research-objectionand/admin/retention/.... The old paths answer 404, with no redirect. The served OpenAPI document and its family documents name the new paths; the admin extensions, the archetype library and the cohort query have family documents of their own (admin-extensions,archetypes,cohort,contributions). The paged CONTRIBUTION list moved too, to/ferroehr/rest/extensions/v1/ehr/{ehr_id}/contribution(#4330). -
The server and viewer images build on the current
gcr.io/distroless/cc-debian13:nonrootdigest, so they carry the base image’s latest Debian package updates (#4335). -
Canonical JSON validation against the openEHR ITS-JSON schemas runs on
jsonschema0.59.0, which refuses a value whose regex match the engine cannot finish where 0.58 accepted it undernotorpatternProperties. Theopenehr-*crates move to 0.0.113 (#4336). -
A statement the database cancels, by its
statement_timeoutor a cancel request (SQLSTATE57014), answers503withRetry-Afterinstead of500: the statement rolled back, so the request can be repeated. By default the request timeout answers before the 60 s statement timeout fires, so on a request path it is raised by an operator’s cancel or by a forward step of the database host’s clock, which fires every running statement’s timeout at once (#4338). -
Every error on the openEHR routes (
/ferroehr/rest/openehr/v1/), the extension routes (/ferroehr/rest/extensions/v1/) and the management routes answers RFC 9457 problem details,application/problem+json, in place of the{ message, validationErrors, error }body shaped after the ITS-REST example. The status codes are unchanged. A problem carriestype,title,status,detailand the request id as aurn:uuid:instance; the refusals a client acts on have FerroEHR types documented on the book’s Problem types page (aql-invalid,query-timeout,validation-failed,content-invalid,conflict,version-conflict,unauthenticated,forbidden,processing-restricted,unavailable,rate-limited), every other error isabout:blank. A request withPrefer: return=representationreceives the additional details ITS-REST allows: the violations of a validation refusal aserrors({path, detail}, wherevalidationErrorsheld"<path>: <message>"strings), the bytepositionof an AQL parse refusal, and thecurrent_versionof a412. The stack’s own408,413,429,503and panic500are problems too, and anOperationOutcomeunder the FHIR base, where an authentication refusal is now anOperationOutcomeas well. The served OpenAPI document declares theProblemschema for every4xxand5xx, and the viewer reads problem details. A client that readmessagereadsdetail; one that readvalidationErrorssendsPrefer: return=representationand readserrors(#4342). -
The FHIR
AuditEventof an EHDS access record names the object it reads, creates, updates or deletes by its openEHR object id asentity.what.identifierwith the systemurn:openehr:object-id, where it wrote awhat.referencethat no FHIR server resolves and HAPI FHIR refused (FHIR R4 references.html §2.3.0.3). ITI-81 finds the record byentity.identifier. FerroEHR takes FerroAUDIT 0.3.2 (ihe-atnaandehds-logging) (#4366). -
The access log costs the request path less under load. The audit store writes a drained batch, its search tokens and its token sets in one transaction on one connection (one commit where it took up to three), stores only the tokens it does not hold yet, and the GIN index on
search_tokenstakes new entries through a pending list of 512 kB. On the release load test the store wrote 1.5 KB of WAL per record where it wrote 5.2 KB (#4375). -
[ehr_index] provider = "local"besidepixm_url,assigning_authority,[ehr_index.oauth]or[ehr_index.tls]is accepted, where it was refused: the IHE keys are kept, not used and named at boot, soprovideralone switches the index, in the file or asFERROEHR__EHR_INDEX__PROVIDER. Declared pseudonym namespaces stay in force under either index (#4379). -
A build no release lane marked reports its commit beside the package version, as SemVer build metadata (
5.6.0-rc2+dev.1a2b3c4d5e6f), onferroehr --versionandserver_versionofGET /ferroehr/rest/status(the boot banner and/management/infoalready name the commit beside the version), so a report from a build ofmainno longer reads as the release it follows; a release build reports the bare version (#4380). -
The compose quickstart runs FerroPIX 0.0.12, pinned by digest, with its configuration moved to that release’s keys (
public_base_urlat the top level, the Patient Identity Source’s client under[[trust.issuer]]), and Dependabot proposes each FerroPIX release (#4380). -
The Helm chart runs FerroPIX 0.0.12 by digest, with the FerroPIX chart 0.3.4 built for it, and the hosted sandbox runs FerroPIX 0.0.12 too; both had stayed at 0.0.7 and 0.0.10 when the quickstart moved. A values file for the chart’s FerroPIX moves
ferropix.config.server.public_base_urltoferropix.config.public_base_urland each issuer’sclientstoferropix.config.trust.issuer, the keys FerroPIX reads since 0.0.8; the chart’s examples and the production overlay do. FerroPIX’s chart now also runs its pods withenableServiceLinks: falseand in a user namespace (ferropix.hostUsers: false, the default). A CI guard holds the quickstart, chart and sandbox to one FerroPIX release and checks the sandbox’s and the chart’s FerroPIX configuration under it, so the Dependabot proposal for the quickstart pin moves all three (#4392). -
openehr-query, the AQL 1.1.0 lexer, parser, typed AST and printer, is published under Apache-2.0 from 0.0.116, like the generated model crates andopenehr-its, so any Rust project can parse AQL with it. Versions 0.0.60 to 0.0.115 keep the Business Source License 1.1 they were published under (#4405). -
FerroEHR takes
ferrohealth-server0.4.0 in place of 0.3.9. The new[server] idle_timeout_ms(120000 by default) closes a kept-alive HTTP/1.1 connection that waits that long for its next request, with a clean end of stream, and[server] header_read_timeout_mscounts from the first byte of each request head on a kept-alive connection (from accept for the first one, as before). The head bound 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, which a client such as Go’snet/httpsaw asEOFon aPOSTit does not retry (#4381). A deployment that setheader_read_timeout_msto bound idle connections setsidle_timeout_msinstead. The refusals the listener writes itself (408,413,429,503) and a panic’s500keep naming the server’s request id as theirinstancewhen the client sends its ownX-Request-Id, as every other FerroEHR refusal does (#4417).
Fixed
-
The hosted sandbox seeds its full demo dataset again. The v5.5.0 reseed stopped at the ADL 2 archetype library (233 stored / 89 refused against the pinned 231 / 91) because the box’s
.envstill forced FerroTERM 0.1.6, which reads none of the FerroTERM 0.3 settings the sandbox posture passes, so it served no LOINC and VETDF could only warn onbraden_scale’s mistyped LA9605-4. The corpus, the pin and the CDR were right. The seed now asks the CDR for a LOINC code before the library step and names a posture without LOINC (SANDBOX_TERMINOLOGY=without-loincopts a local run into 233 / 89), checks that the two files it names move together, and a corpus test holds the manifest’s pin to the adjudicated split with and without LOINC. The FerroPIX rollout script retires a staleFERROTERM_IMAGEoverride, checks that FerroTERM runs the pinned version and serves LOINC, and wipes before it seeds over an unfinished seed (#4278). -
The measurement overlay
docker/sut-measurement.ymlswitches the caller rate limiter off by removing the[server.caller_rate]keys, so the server logscaller rate limiting configuredwithenabled=falseat boot, instead of setting a rate of 4294967295 per second thatferrohealth-server0.3.5 truncated to a zero interval and that answered stray429s under concurrency.scripts/conformance.shrefuses to start a measurement stack whoseferroehrservice still sets a caller rate (#4281). -
A response to a request whose body FerroEHR left unread, such as a
404to aPOSTof a path it does not serve or a declared-length413, now carriesConnection: close. The connection closed after such a response without saying so, and a client that sent its next request on it met a closed socket, which a non-idempotent request cannot safely retry (RFC 9112 §9.6) (#4283). -
A
[server.caller_rate]above 1 000 000 000 requests per second no longer answers429to concurrent requests: such a rate now limits nothing, as its operator meant (#4283). -
Every request leaves one request line, a timeout
408, a declared-length413and the500of a panicked handler included, and a413for a body with no declared length that passes[server] body_limit_bytesis answered with the openEHR error body, as the declared-length413is (#4283). -
An AQL query whose
WHEREclause chains thousands ofNOT,ANDorORterms no longer overflows the stack and aborts the server. The parser refuses a query that nests brackets andCONTAINSdeeper than 64 levels or builds an expression deeper than 512 levels with400 Bad Request, before any recursive pass runs, on the ad-hoc, stored-query store and execution paths alike. A longORover one path is written asMATCHES {…}, which the bound does not count. A statement PostgreSQL refuses for its own complexity limit (SQLSTATE class 54) also answers400instead of500.openehr-querygainsParseError::TooDeep(#4284). -
An AQL query (ad hoc or stored) whose client disconnects, or that the server’s own
query.timeout_msor HTTP request timeout gives up on, no longer keeps its statement running and its pooled connection busy until the statement ends. The connection is closed instead of returned to the pool, so the slot frees at once, and every pooled session now sets PostgreSQL’sclient_connection_check_intervalto one second, so the backend stops the abandoned statement within about a second. The composition-count statistics behave the same way (#4285). -
The server’s resident memory no longer climbs under sustained load until the container’s memory limit kills it. The
ferroehrbinary now allocates through mimalloc instead of glibcmalloc, whose per-thread arenas kept freed memory and never gave it back. On a load test of 10 000 mixed jobs at 48 workers the peak resident set fell from 2.3 to 3.2 GB (growing run after run) to about 600 MB, and throughput rose by about a third (#4288). -
A request whose database connection a PostgreSQL restart, a crash or the network cuts now answers
503 Service UnavailablewithRetry-After, as a request that cannot get a connection already did, instead of500. SQLSTATE class08(except08P01),57P01,57P02,57P03and57P05, and a reset, aborted or closed socket on an open session count as such a cut (#4290). -
While PostgreSQL is down, requests that need the database answer
503withRetry-Afterabout a second after the first one starts waiting, and at once after that, instead of each queueing up todb.acquire_timeout_secs(30 seconds by default). An acquire that has waited a second tries one connection of its own; when that cannot reach the database, the outage is known until a fresh attempt connects, and requests are served again as soon as one does. A pool that is only busy keeps queueing as before (#4323). -
Superseding a composition or a party no longer slows down as its history grows. The foreign-key check that every new node and attestation row makes against its version could scan all versions of the object instead of probing one, depending on the planner statistics at the time: on the storage bench, superseding an object with a few hundred versions took about 14 ms instead of 9 ms when the plan flipped. Migrations
clinical/0022andparty/0013re-key the version-tree uniqueness constraintuq_version_treewith the object id last, so the check always probes the primary key. The constraint enforces the same uniqueness as before (#4340). -
The FHIR rendering of an access record
ehds-loggingdoes not classify (a template upload, a stored-query write, a template read) now carries the IHE BALP 1.1.4entity:dataslice its Create, Read, Update or Delete profile requires: type2, role4andwhat.identifier, naming the operation when the record names no object. HAPI FHIR’s validator refused the template upload record without it (#4353). -
A
+in a query string is a literal plus, as RFC 3986 §2.1 and §3.4 decode a URI query, on every ITS-REST operation and every extension route: a date-time offset such as2026-10-28T10:00:00+01:00or an AQL parameter sent with an unencoded+reaches the server unchanged, where it was read as a space. A space in a query value is sent as%20. This reverses the form-decoding of #3891: a client that writes a space as+now sends a plus. Theopenehr-*crates move to 0.0.114 (#4356). -
An AQL
EHR e[ehr_id/value='…']predicate whose value is not a UUID ('1234', the AQL 1.1.0 example) answers an empty result, as itsWHERE e/ehr_id/value = '…'spelling does, onPOSTandGET /query/aql; it was refused with400. Both spellings lower the EHR id comparison through one path, and a value the database cannot cast is refused with a message that no longer claims it came from a query parameter (#4378). -
An AQL query with an archetype predicate no longer builds the archetype index bitmap of the whole store once per version. The planner multiplied the selectivities of the archetype columns, which each archetype fixes together, and expected about 15 000 of 545 067 blood-pressure OBSERVATIONs; a query over one EHR then took 38.8 s and answered
408. Clinical migration0021_archetype_statistics.sqlgives the columns a statistics object, and the same query takes 0.3 s (#4399). -
FROM PERSON p CONTAINS EHR e(and theORGANISATIONandROLEroots) joins a party to the EHR whoseEHR_STATUS.subject.external_refnames it, so a party created withPOST /demographic/personand an EHR created withPOST /ehranswer their row with no other call. Before, the join read only the party-to-EHR map, which no REST route writes, and answered no rows on a deployed server. The reference matches when itsid.valueis the party’s uid without::<system>::<version>and itstypeis the root class or its RM ancestor (ACTOR,PARTY), in any namespace; an EHR linked both ways answers once (#4411). -
An AQL projection whose path ends on a list attribute inside a node’s data (
c/feeder_audit/originating_system_item_ids,c/links,c/context/participations,c/composer/identifiers,.../mappings) answers the list itself,[{…}, {…}], andnullwhen the list is absent. It answered the list wrapped in a second list,[[{…}, {…}]]; a client that unwrapped that outer array reads the column directly now. A path that continues below a list (.../originating_system_item_ids/id) still answers the array of its matches,["…", "…"].COUNTover a path ending on a list counts its elements (#4413). -
Reading one version of a composition, EHR_STATUS, folder or party by its version id no longer slows down as the object’s history grows. Once a connection reused its prepared read, the plan scanned every version of the object and kept the one asked for: on the storage bench’s history of 500 versions such a read touched about 520 buffers instead of 12 to 24. Migrations
clinical/0023andparty/0014add an index on the version tree id columns of both storage tiers, so the read probes the one version it returns (#4420). -
An audit store that 5.6.0-rc2 migrated starts again. Audit migration 0017 changed after 5.6.0-rc2 shipped it, so the server refused such a store on the migration’s checksum at boot. 0017 is back to its 5.6.0-rc2 text, and the new audit migration
0019_search_tokens_pending_list.sqlgives the search token index its pending list of 512 kB, so a store that 5.6.0-rc2 migrated upgrades in place (#4424).
Security
Shipped with functional changes because: both fixes exist only in ferrohealth-server releases that carry functional changes in the same serving path beside them (0.3.7 two fixes, 0.3.8 and 0.3.9 the problem details module, the kept listener TLS and the unmasked remedy), so there is no security-only release of the crate for FerroEHR to take, and the client CA refusal ships in the release candidate the advisory names.
-
FerroEHR takes
ferrohealth-server0.3.7 in place of 0.3.5 (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 about 8400 silent connections from a client with no credentials exhausted the quickstart’s file descriptors and the CDR stopped answering, health checks included; the listener then retried a failedacceptat once and logged every failure. Such a connection now closes once[server] header_read_timeout_mspasses (30 s by default), counted from accept, and after anEMFILEorENFILEthe listener pauses up to 1 s before it accepts again and logs one warning every 10 seconds (#4283). -
A
[server.tls]table that setsclient_ca_filewithclient_authatnone, written or by default, is refused at load, naming the setting (GHSA-52mf-qg39-4q4j). Before 5.5.0 a client CA alone meant that every client presents a certificate; 5.5.0 moved the listener ontoferrohealth-server, whereclient_authdefaults tononeand the CA was read and ignored, so a configuration carried over passedconfig checkand served without asking a client certificate. FerroEHR takesferrohealth-server0.3.9, which refuses it and names the remedy in full. A 5.5.0 deployer who setsclient_ca_filesetsclient_auth = "required"beside it. The default template no longer pairs a client CA withnone, and says what eachclient_authvalue does (#4349).
5.6.0-rc2 - 2026-10-29
5.6.0-rc2 is the second release candidate of 5.6.0, published for testing. 5.6.0-rc1 was tagged but not published: the release plan refused it because its section missed a change merged just before the cut (#4361), so these notes carry every change since 5.5.0, those of the 5.6.0-rc1 section below included. 5.5.0 stays the stable release: this pre-release moves neither the latest image tags, the book under /docs/latest/ nor the hosted sandbox, it publishes no crates, and it receives no fixes; the next release candidate or 5.6.0 itself replaces it. Before you try it: every route ITS-REST 1.1.0 does not define moves from /ferroehr/rest/openehr/v1/ to /ferroehr/rest/extensions/v1/, and the ITI-81 retrieval to /ferroehr/rest/fhir/r4/AuditEvent, with no redirect from the old paths; audit migration 0017 refuses an audit store that holds records written by an earlier release, so point the release candidate at an empty audit store; a [server.tls] table with client_ca_file must set client_auth = "required" (or "optional") beside it, or the configuration is refused at load; and Helm chart 21.0.0-rc2 refuses to render until config.deployment_profile names sandbox or production. Storage generation 3 adds node columns and migrates no data, and clinical migration 0020 adds the origin to retention policies. Helm chart 21.0.0-rc2 carries appVersion 5.6.0-rc2. Security carries two advisories, GHSA-2mc2-h3jq-c5wg and GHSA-52mf-qg39-4q4j.
Added
-
The logging component’s intended performance is stated as checkable claims (EHDS Annex II 1.1): every composition create and read recorded exactly once and every AQL execution at least once, no access succeeding without its record, at most 125 % of the latency and at least 80 % of the throughput with the access log off, and a 50-record ITI-81 page within 250 ms at p95.
scripts/perf/audit.shmeasures them with the access log off and on (the load test’s new--auditmode counts the records through ITI-81 and times retrievals),scripts/perf/audit-verdict.shgives the verdict, the release refuses a claim not met and attaches the summary asferroehr-<tag>-logging-performance.md(Annex III point 2), and the weekly performance guard runs it on main. The book’s compliance section gains the page that states the claims and the method (#4293). -
scripts/interop/atna.shexercises the logging component’s ATNA transactions against independent implementations run from published images (EHDS Annex II 1.4): the ITI-20 FHIR feed into HAPI FHIR as the Audit Record Repository, judged by its validator with IHE BALP 1.1.4; the ITI-20 syslog feed into syslog-ng over RFC 5425 TLS, each payload read as a DICOM PS3.15AuditMessage; and the same ITI-81 searches put to FerroEHR and to HAPI. The audit trail page documents it (#4296). -
FerroEHR ships an EHDS category map for the published CKM templates and COMPOSITION archetypes whose data sit in one Art. 14(1) priority category (the International Patient Summary, ePrescription, the generic laboratory result and CCTA report templates; the
health_summary,prescriptionandtransfer_summaryarchetypes), so an installation that declares no[audit.categories]keys records those accesses classified instead ofunclassified(EHDS Annex II 3.2(c)). A deployment that declares any template or archetype replaces it whole.[audit.categories] shipped_map = falsewith nothing declared leaves no map, whichdeployment_profile = "production"refuses as the newno_category_mapgap unlessdeployment_acceptsnames it (#4298). -
Retention periods and access rules can take the origin and the category of the data into account (EHDS Annex II 3.4). The new top-level
[origins]register declares the origins a deployment recognises, each by the id its data carry and the clients whose direct commits come from it; a body without aFEEDER_AUDITcommitted by a registered client is stamped with that client’s origin instead of the server’ssystem_id.PUT /admin/retention/policytakes an optionaloriginnaming a registered origin, the register andGET /admin/retention/duereport it, and the due list lists an origin-keyed period over the objects of that origin (clinical migration0020_retention_by_origin.sql). The ABAC request carriescategory(the access record’s category tokens) andoriginresource attributes on composition, contribution and query operations, the Cedar schema declares both, and a remote PDP binding may name them as parameters (#4299).
Changed
-
The Helm chart, at a new major version (21), has no default deployment profile: it refuses to render until
config.deployment_profilenamessandboxorproduction, so an installation that follows a quickstart instead of the instructions for use no longer runs the sandbox posture by omission (EHDS Annex II 1.2). A values file that relied on the oldsandboxdefault must now set it, for example--set config.deployment_profile=sandbox;values-production.yamlsetsproductionas before. The server binary’s own default and the Compose files, which declaresandboxexplicitly, are unchanged (#4294). -
The audit store keeps each record’s facts in columns and renders its FHIR R4
AuditEventfrom them when the record is read over ITI-81 or delivered by the FHIR feed, instead of storing the rendered document in every record. A record takes about a quarter of the space it took before. The configuration the rendering depends on (the audit source, the store horizon, the category map and the emergency purposes) is kept once per distinct configuration inaudit.audit_render_policy, and every record names the policy it was written under, so it renders the same document after the configuration changes. The tamper chain hashes every column of the record in one digest and checks each render policy against its digest; the earlier digest versions are retired. Audit migration 0017 needs an empty audit store and refuses one that holds records written by an earlier release, naming the remedy. ITI-81 parameters on an element of the document (address, the.identifierparameters,entity-type,entity-role,type,subtype) are matched against the rendered document (#4300). -
The three audit indexes on
recorded_atascend, so their pages fill instead of splitting half full on every insert; the newest-first ITI-81 search scans them backward (#4302). -
A clinical or party node row now stores only the part of its canonical JSON fragment that its own columns do not hold:
_type, a lowercasearchetype_node_id, a plain or simply coded name, and an ELEMENT value in one of the common basic shapes (a quantity, count, ordinal, coded or plain text, date, time, duration, identifier, boolean or URI) move into columns, the value into the new typed value columns. Every reader rebuilds the omitted keys, so the canonical JSON and every AQL result are unchanged, and a filter on a quantity’s magnitude or a code reads its column directly. The node heap shrinks by about a third (storage generation 3); a row written before keeps its whole fragment and reads the same. Migrationsext/0005,clinical/0019andparty/0012add the columns and the readers; no data is migrated (#4306). -
Every ITI-81 search parameter answers through an index again. The store takes the search tokens of a record’s rendered
AuditEventwhen it writes the record: each distinct token once inaudit.audit_search_token, the code-system tokens (type,subtype,entity-type,entity-role,source.identifier) as one shared set inaudit.audit_search_set, and their ids on the record insearch_tokensunder a GIN index;entityreads a hash index onresource_id. A search onaddressor a token parameter no longer renders every record in itsdatewindow. The tamper chain coverssearch_tokens, and the verifier reports a changed token or set (#4313). -
Nothing ITS-REST 1.1.0 does not define is served under the openEHR base path any more. FerroEHR serves three namespaces beside each other under
/ferroehr/rest/:/openehr/v1/holds only the ITS-REST routes,/fhir/r4/the FHIR and IHE interfaces, and/extensions/v1/FerroEHR’s own extensions. The ITI-81 retrieval moved from/ferroehr/rest/openehr/v1/fhir/r4/AuditEventto/ferroehr/rest/fhir/r4/AuditEvent. These routes moved from/ferroehr/rest/openehr/v1/...to/ferroehr/rest/extensions/v1/...with the same relative path:/terminology/...,/admin/event_subscription...,/demographic/party_relationship...,/demographic/versioned_party_relationship/...,/definition/archetype/...,/definition/artefact/...,/message/export...,/message/import...,/query/cohort, and the admin extensions/admin/config,/admin/template/{template_id},/admin/query/{qualified_query_name}/{version},/admin/party/...,/admin/archive/...,/admin/report/...,/admin/dump,/admin/load,/admin/integrity/...,/admin/restriction...,/admin/access-restriction...,/admin/research-objectionand/admin/retention/.... The old paths answer 404, with no redirect. The served OpenAPI document and its family documents name the new paths; the admin extensions, the archetype library and the cohort query have family documents of their own (admin-extensions,archetypes,cohort,contributions). The paged CONTRIBUTION list moved too, to/ferroehr/rest/extensions/v1/ehr/{ehr_id}/contribution(#4330). -
The server and viewer images build on the current
gcr.io/distroless/cc-debian13:nonrootdigest, so they carry the base image’s latest Debian package updates (#4335). -
Canonical JSON validation against the openEHR ITS-JSON schemas runs on
jsonschema0.59.0, which refuses a value whose regex match the engine cannot finish where 0.58 accepted it undernotorpatternProperties. Theopenehr-*crates move to 0.0.113 (#4336).
Fixed
-
The hosted sandbox seeds its full demo dataset again. The v5.5.0 reseed stopped at the ADL 2 archetype library (233 stored / 89 refused against the pinned 231 / 91) because the box’s
.envstill forced FerroTERM 0.1.6, which reads none of the FerroTERM 0.3 settings the sandbox posture passes, so it served no LOINC and VETDF could only warn onbraden_scale’s mistyped LA9605-4. The corpus, the pin and the CDR were right. The seed now asks the CDR for a LOINC code before the library step and names a posture without LOINC (SANDBOX_TERMINOLOGY=without-loincopts a local run into 233 / 89), checks that the two files it names move together, and a corpus test holds the manifest’s pin to the adjudicated split with and without LOINC. The FerroPIX rollout script retires a staleFERROTERM_IMAGEoverride, checks that FerroTERM runs the pinned version and serves LOINC, and wipes before it seeds over an unfinished seed (#4278). -
A response to a request whose body FerroEHR left unread, such as a
404to aPOSTof a path it does not serve or a declared-length413, now carriesConnection: close. The connection closed after such a response without saying so, and a client that sent its next request on it met a closed socket, which a non-idempotent request cannot safely retry (RFC 9112 §9.6) (#4283). -
A
[server.caller_rate]above 1 000 000 000 requests per second no longer answers429to concurrent requests: such a rate now limits nothing, as its operator meant (#4283). -
Every request leaves one request line, a timeout
408, a declared-length413and the500of a panicked handler included, and a413for a body with no declared length that passes[server] body_limit_bytesis answered with the openEHR error body, as the declared-length413is (#4283). -
An AQL query whose
WHEREclause chains thousands ofNOT,ANDorORterms no longer overflows the stack and aborts the server. The parser refuses a query that nests brackets andCONTAINSdeeper than 64 levels or builds an expression deeper than 512 levels with400 Bad Request, before any recursive pass runs, on the ad-hoc, stored-query store and execution paths alike. A longORover one path is written asMATCHES {…}, which the bound does not count. A statement PostgreSQL refuses for its own complexity limit (SQLSTATE class 54) also answers400instead of500.openehr-querygainsParseError::TooDeep(#4284). -
An AQL query (ad hoc or stored) whose client disconnects, or that the server’s own
query.timeout_msor HTTP request timeout gives up on, no longer keeps its statement running and its pooled connection busy until the statement ends. The connection is closed instead of returned to the pool, so the slot frees at once, and every pooled session now sets PostgreSQL’sclient_connection_check_intervalto one second, so the backend stops the abandoned statement within about a second. The composition-count statistics behave the same way (#4285). -
The server’s resident memory no longer climbs under sustained load until the container’s memory limit kills it. The
ferroehrbinary now allocates through mimalloc instead of glibcmalloc, whose per-thread arenas kept freed memory and never gave it back. On a load test of 10 000 mixed jobs at 48 workers the peak resident set fell from 2.3 to 3.2 GB (growing run after run) to about 600 MB, and throughput rose by about a third (#4288). -
A request whose database connection a PostgreSQL restart, a crash or the network cuts now answers
503 Service UnavailablewithRetry-After, as a request that cannot get a connection already did, instead of500. SQLSTATE class08(except08P01),57P01,57P02,57P03and57P05, and a reset, aborted or closed socket on an open session count as such a cut (#4290). -
While PostgreSQL is down, requests that need the database answer
503withRetry-Afterabout a second after the first one starts waiting, and at once after that, instead of each queueing up todb.acquire_timeout_secs(30 seconds by default). An acquire that has waited a second tries one connection of its own; when that cannot reach the database, the outage is known until a fresh attempt connects, and requests are served again as soon as one does. A pool that is only busy keeps queueing as before (#4323). -
The FHIR rendering of an access record
ehds-loggingdoes not classify (a template upload, a stored-query write, a template read) now carries the IHE BALP 1.1.4entity:dataslice its Create, Read, Update or Delete profile requires: type2, role4andwhat.identifier, naming the operation when the record names no object. HAPI FHIR’s validator refused the template upload record without it (#4353).
Security
Shipped with functional changes because: both fixes exist only in ferrohealth-server releases that carry functional changes in the same serving path beside them (0.3.7 two fixes, 0.3.8 and 0.3.9 the problem details module, the kept listener TLS and the unmasked remedy), so there is no security-only release of the crate for FerroEHR to take, and the client CA refusal ships in the release candidate the advisory names.
-
FerroEHR takes
ferrohealth-server0.3.7 in place of 0.3.5 (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 about 8400 silent connections from a client with no credentials exhausted the quickstart’s file descriptors and the CDR stopped answering, health checks included; the listener then retried a failedacceptat once and logged every failure. Such a connection now closes once[server] header_read_timeout_mspasses (30 s by default), counted from accept, and after anEMFILEorENFILEthe listener pauses up to 1 s before it accepts again and logs one warning every 10 seconds (#4283). -
A
[server.tls]table that setsclient_ca_filewithclient_authatnone, written or by default, is refused at load, naming the setting (GHSA-52mf-qg39-4q4j). Before 5.5.0 a client CA alone meant that every client presents a certificate; 5.5.0 moved the listener ontoferrohealth-server, whereclient_authdefaults tononeand the CA was read and ignored, so a configuration carried over passedconfig checkand served without asking a client certificate. FerroEHR takesferrohealth-server0.3.9, which refuses it and names the remedy in full. A 5.5.0 deployer who setsclient_ca_filesetsclient_auth = "required"beside it. The default template no longer pairs a client CA withnone, and says what eachclient_authvalue does (#4349).
5.6.0-rc1 - 2026-10-28
5.6.0-rc1 is the first release candidate of 5.6.0, published for testing. 5.5.0 stays the stable release: this pre-release moves neither the latest image tags, the book under /docs/latest/ nor the hosted sandbox, it publishes no crates, and it receives no fixes; the next release candidate or 5.6.0 itself replaces it. Before you try it: every route ITS-REST 1.1.0 does not define moves from /ferroehr/rest/openehr/v1/ to /ferroehr/rest/extensions/v1/, and the ITI-81 retrieval to /ferroehr/rest/fhir/r4/AuditEvent, with no redirect from the old paths; and audit migration 0017 refuses an audit store that holds records written by an earlier release, so point the release candidate at an empty audit store. Storage generation 3 adds node columns and migrates no data. Helm chart 20.0.1-rc1 carries appVersion 5.6.0-rc1. Security carries one advisory, GHSA-2mc2-h3jq-c5wg.
Added
- FerroEHR ships an EHDS category map for the published CKM templates and COMPOSITION archetypes whose data sit in one Art. 14(1) priority category (the International Patient Summary, ePrescription, the generic laboratory result and CCTA report templates; the
health_summary,prescriptionandtransfer_summaryarchetypes), so an installation that declares no[audit.categories]keys records those accesses classified instead ofunclassified(EHDS Annex II 3.2(c)). A deployment that declares any template or archetype replaces it whole.[audit.categories] shipped_map = falsewith nothing declared leaves no map, whichdeployment_profile = "production"refuses as the newno_category_mapgap unlessdeployment_acceptsnames it (#4298).
Changed
-
The audit store keeps each record’s facts in columns and renders its FHIR R4
AuditEventfrom them when the record is read over ITI-81 or delivered by the FHIR feed, instead of storing the rendered document in every record. A record takes about a quarter of the space it took before. The configuration the rendering depends on (the audit source, the store horizon, the category map and the emergency purposes) is kept once per distinct configuration inaudit.audit_render_policy, and every record names the policy it was written under, so it renders the same document after the configuration changes. The tamper chain hashes every column of the record in one digest and checks each render policy against its digest; the earlier digest versions are retired. Audit migration 0017 needs an empty audit store and refuses one that holds records written by an earlier release, naming the remedy. ITI-81 parameters on an element of the document (address, the.identifierparameters,entity-type,entity-role,type,subtype) are matched against the rendered document (#4300). -
The three audit indexes on
recorded_atascend, so their pages fill instead of splitting half full on every insert; the newest-first ITI-81 search scans them backward (#4302). -
A clinical or party node row now stores only the part of its canonical JSON fragment that its own columns do not hold:
_type, a lowercasearchetype_node_id, a plain or simply coded name, and an ELEMENT value in one of the common basic shapes (a quantity, count, ordinal, coded or plain text, date, time, duration, identifier, boolean or URI) move into columns, the value into the new typed value columns. Every reader rebuilds the omitted keys, so the canonical JSON and every AQL result are unchanged, and a filter on a quantity’s magnitude or a code reads its column directly. The node heap shrinks by about a third (storage generation 3); a row written before keeps its whole fragment and reads the same. Migrationsext/0005,clinical/0019andparty/0012add the columns and the readers; no data is migrated (#4306). -
Every ITI-81 search parameter answers through an index again. The store takes the search tokens of a record’s rendered
AuditEventwhen it writes the record: each distinct token once inaudit.audit_search_token, the code-system tokens (type,subtype,entity-type,entity-role,source.identifier) as one shared set inaudit.audit_search_set, and their ids on the record insearch_tokensunder a GIN index;entityreads a hash index onresource_id. A search onaddressor a token parameter no longer renders every record in itsdatewindow. The tamper chain coverssearch_tokens, and the verifier reports a changed token or set (#4313). -
Nothing ITS-REST 1.1.0 does not define is served under the openEHR base path any more. FerroEHR serves three namespaces beside each other under
/ferroehr/rest/:/openehr/v1/holds only the ITS-REST routes,/fhir/r4/the FHIR and IHE interfaces, and/extensions/v1/FerroEHR’s own extensions. The ITI-81 retrieval moved from/ferroehr/rest/openehr/v1/fhir/r4/AuditEventto/ferroehr/rest/fhir/r4/AuditEvent. These routes moved from/ferroehr/rest/openehr/v1/...to/ferroehr/rest/extensions/v1/...with the same relative path:/terminology/...,/admin/event_subscription...,/demographic/party_relationship...,/demographic/versioned_party_relationship/...,/definition/archetype/...,/definition/artefact/...,/message/export...,/message/import...,/query/cohort, and the admin extensions/admin/config,/admin/template/{template_id},/admin/query/{qualified_query_name}/{version},/admin/party/...,/admin/archive/...,/admin/report/...,/admin/dump,/admin/load,/admin/integrity/...,/admin/restriction...,/admin/access-restriction...,/admin/research-objectionand/admin/retention/.... The old paths answer 404, with no redirect. The served OpenAPI document and its family documents name the new paths; the admin extensions, the archetype library and the cohort query have family documents of their own (admin-extensions,archetypes,cohort,contributions). The paged CONTRIBUTION list moved too, to/ferroehr/rest/extensions/v1/ehr/{ehr_id}/contribution(#4330). -
The server and viewer images build on the current
gcr.io/distroless/cc-debian13:nonrootdigest, so they carry the base image’s latest Debian package updates (#4335). -
Canonical JSON validation against the openEHR ITS-JSON schemas runs on
jsonschema0.59.0, which refuses a value whose regex match the engine cannot finish where 0.58 accepted it undernotorpatternProperties. Theopenehr-*crates move to 0.0.113 (#4336).
Fixed
-
The hosted sandbox seeds its full demo dataset again. The v5.5.0 reseed stopped at the ADL 2 archetype library (233 stored / 89 refused against the pinned 231 / 91) because the box’s
.envstill forced FerroTERM 0.1.6, which reads none of the FerroTERM 0.3 settings the sandbox posture passes, so it served no LOINC and VETDF could only warn onbraden_scale’s mistyped LA9605-4. The corpus, the pin and the CDR were right. The seed now asks the CDR for a LOINC code before the library step and names a posture without LOINC (SANDBOX_TERMINOLOGY=without-loincopts a local run into 233 / 89), checks that the two files it names move together, and a corpus test holds the manifest’s pin to the adjudicated split with and without LOINC. The FerroPIX rollout script retires a staleFERROTERM_IMAGEoverride, checks that FerroTERM runs the pinned version and serves LOINC, and wipes before it seeds over an unfinished seed (#4278). -
A response to a request whose body FerroEHR left unread, such as a
404to aPOSTof a path it does not serve or a declared-length413, now carriesConnection: close. The connection closed after such a response without saying so, and a client that sent its next request on it met a closed socket, which a non-idempotent request cannot safely retry (RFC 9112 §9.6) (#4283). -
A
[server.caller_rate]above 1 000 000 000 requests per second no longer answers429to concurrent requests: such a rate now limits nothing, as its operator meant (#4283). -
Every request leaves one request line, a timeout
408, a declared-length413and the500of a panicked handler included, and a413for a body with no declared length that passes[server] body_limit_bytesis answered with the openEHR error body, as the declared-length413is (#4283). -
An AQL query whose
WHEREclause chains thousands ofNOT,ANDorORterms no longer overflows the stack and aborts the server. The parser refuses a query that nests brackets andCONTAINSdeeper than 64 levels or builds an expression deeper than 512 levels with400 Bad Request, before any recursive pass runs, on the ad-hoc, stored-query store and execution paths alike. A longORover one path is written asMATCHES {…}, which the bound does not count. A statement PostgreSQL refuses for its own complexity limit (SQLSTATE class 54) also answers400instead of500.openehr-querygainsParseError::TooDeep(#4284). -
An AQL query (ad hoc or stored) whose client disconnects, or that the server’s own
query.timeout_msor HTTP request timeout gives up on, no longer keeps its statement running and its pooled connection busy until the statement ends. The connection is closed instead of returned to the pool, so the slot frees at once, and every pooled session now sets PostgreSQL’sclient_connection_check_intervalto one second, so the backend stops the abandoned statement within about a second. The composition-count statistics behave the same way (#4285). -
The server’s resident memory no longer climbs under sustained load until the container’s memory limit kills it. The
ferroehrbinary now allocates through mimalloc instead of glibcmalloc, whose per-thread arenas kept freed memory and never gave it back. On a load test of 10 000 mixed jobs at 48 workers the peak resident set fell from 2.3 to 3.2 GB (growing run after run) to about 600 MB, and throughput rose by about a third (#4288). -
A request whose database connection a PostgreSQL restart, a crash or the network cuts now answers
503 Service UnavailablewithRetry-After, as a request that cannot get a connection already did, instead of500. SQLSTATE class08(except08P01),57P01,57P02,57P03and57P05, and a reset, aborted or closed socket on an open session count as such a cut (#4290). -
While PostgreSQL is down, requests that need the database answer
503withRetry-Afterabout a second after the first one starts waiting, and at once after that, instead of each queueing up todb.acquire_timeout_secs(30 seconds by default). An acquire that has waited a second tries one connection of its own; when that cannot reach the database, the outage is known until a fresh attempt connects, and requests are served again as soon as one does. A pool that is only busy keeps queueing as before (#4323).
Security
Shipped with functional changes because: the fix exists only in ferrohealth-server 0.3.7, which carries two functional fixes in the same serving path beside it, so there is no security-only release of the crate for FerroEHR to take.
- FerroEHR takes
ferrohealth-server0.3.7 in place of 0.3.5 (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 about 8400 silent connections from a client with no credentials exhausted the quickstart’s file descriptors and the CDR stopped answering, health checks included; the listener then retried a failedacceptat once and logged every failure. Such a connection now closes once[server] header_read_timeout_mspasses (30 s by default), counted from accept, and after anEMFILEorENFILEthe listener pauses up to 1 s before it accepts again and logs one warning every 10 seconds (#4283).
5.5.0 - 2026-10-27
5.5.0 moves the server and the viewer onto the FerroHEALTH family’s shared configuration, HTTP, telemetry, authorization and audit crates, and it carries breaking changes for every deployment, each with its upgrade step under Changed or Removed. Before you upgrade: name the configuration file with FERROEHR_CONFIG (or --config), since ./ferroehr.toml and /etc/ferroehr/ferroehr.toml are no longer searched; move the REST keys from [server] to [rest] and rename server.bind to server.listen; move [authz.rbac] role_claims and [authz.rbac.basic_roles] to [auth] role_claims and each [[auth.basic.users]] roles, and remove user_role; rename token_url to token_endpoint in the outbound OAuth tables; remove [audit.fhir_feed] batch_size, max_retries and [usage_report] slow_aql_ms; list a reverse proxy in [server] trusted_proxies; and give the viewer server.listen in place of LEPTOS_SITE_ADDR. The server refuses to start without a patient identity source for its EHR index unless [ehr_index] provider = "local" is set, ITI-81 audit retrieval requires a date parameter, and Template Data Document import is gone. Helm chart 20.0.0 carries appVersion 5.5.0. Security carries two advisories, GHSA-vphj-3f8c-5hpx and GHSA-cwhv-87pq-3c3c.
Added
-
The access record names the data permit a secondary-use caller acts under (#3379). A caller declares the permit’s identifier in the header
[audit] permit_headernames (defaultx-data-permit) beside its purpose of use; every access record keeps it aspermit, so the trail says under which permit a population query, an export or a cohort query ran (EHDS Art. 68). A value that is not 1 to 128 characters of letters, digits and._:/#-is recorded as absent. The column joins the tamper chain as digest version 4 (audit migration 0016). The FHIR rendering carries it too (#4120). -
AQL takes
VERSIONED_OBJECTas a FROM class (#3379), the shape of FerroBRIDGE’s OMOP batch query (EHR e CONTAINS VERSIONED_OBJECT vo CONTAINS VERSION v CONTAINS COMPOSITION c). The QUERY specification letsFROMname any RM class (master03 §FROM), and FerroEHR refused this one. The variable answersuid/valueandowner_id/id/value(RM common master06 §VERSIONED_OBJECT) and refuses any other path. The operand sets no version scope of its own. -
The book records the secondary-use contract with FerroBRIDGE (#3379). The new Secondary use page states the batch query FerroBRIDGE loads the OMOP CDM from (
time_committed > $since, ordered by the commit instant and the version uid, paged byoffsetandfetch), the marks that take an EHR out of a batch, the reconciliation that removes erased compositions, and where pseudonymisation for research happens. An integration test holds the batch to it. The compliance overview no longer names the withdrawn secondary-use read model (#3160) as planned. -
The EHR index asks an IHE patient identity source over PIXm (ITI-83) by default (#3380).
[ehr_index] provider = "ihe"names a PIX Manager by its FHIR base (pixm_url) and the clinical domain (assigning_authority, one ofprivacy.subject_namespaces), with the client credentials grant of[ehr_index.oauth](renewed once on a401) and the TLS material of[ehr_index.tls](trust_roots_file,client_identity_file,min_version). The client isihe-iti0.0.62’s PIXm Consumer and sends only what ITI-83 specifies, byPOSTunlessinvocation = "get", so any conformant PIX Manager serves.has_ehr_for_subjectandcreate_ehr_for_subjectask the source for the subject’s pseudonym, and the subjects of an EHR are the pseudonym itsEHR_STATUScarries; the source is never asked to resolve a pseudonym back. The server reads the source’sCapabilityStatementat boot, and a source that fails a request is an error: nothing falls back to the in-instance map. PDQm is not used (GDPR Art. 5(1)(c)). -
The book states FerroEHR’s contract as a federation node (#3383). The new page “FerroEHR as a federation node” reads the openEHR Federation Tier with AQL 1.0.0 from the node’s side. It lists the endpoints a gateway uses and resolution by the local
ehr_idalone. It gives the four admission conditions of N42a and the configuration that meets them: a uniquesystem_id, and an import under anehr_idthe node chose. It also covers authentication by the deployment’s own authorization server and the refusals the node applies whatever the gateway did. It names FerroFED 0.0.13 as the release whose harness runs FerroEHR as its node. An integration test moves an EHR between two nodes under a node-chosen id and finds every version uid and itscreating_system_idunchanged. -
The FLAT builder builds an
INTERVAL_EVENTat an abstractEVENTnode when the input names its width (#3898), on the 0.0.102 crate line. RM data_structures §EVENT makesEVENTabstract overPOINT_EVENTandINTERVAL_EVENT, and a/width,/math_functionor|sample_countunder such a node (master05 §INTERVAL_EVENT) now chooses the interval; without them the node still builds as aPOINT_EVENT. The flattener writes those rows back for an interval event held at an abstract node. -
The audit store deletes each record at its own retention end (#3899). Every record stores the first date it may be deleted on: an access record the end
ehds-loggingstates for its categories and origins (Regulation (EU) 2025/327 Annex II 3.4), any other record the day after its date of access plus the[audit.store]horizon, and none for a record kept without end. The reaper deletes a record on or after that date and never before it, where it deleted by one store-wide horizon. Records written before this release keep the horizon. The end joins the chain digest (version 3), so moving one shows in the chain check. -
The viewer trusts a private CA for the CDR and the OIDC issuer on every platform:
[cdr.tls]and[auth.oidc.tls]taketrust_roots_file, a PEM bundle trusted beside the platform’s roots, withclient_identity(_file) for mutual TLS andmin_version, read throughferrohealth_server::tls_client. A file that cannot be read or holds no certificate refuses the start. The Helm chart names the CDR’s CA throughcdr.tls.trust_roots_filein place ofSSL_CERT_DIR, andviewer.auth.oidc.caExistingSecretmounts an issuer CA; the UI journeys pass the development Keycloak CA the same way (#3909). -
Opaque access tokens are checked by token introspection under
[auth] mode = "introspection"(#4033).ferrohealth-smart’s introspection check (RFC 7662) posts each bearer token to the issuer’s introspection endpoint, named by its metadata or by[auth.introspection] endpoint, and authenticates as the client of[auth.introspection.client]or with the token of[auth.introspection.bearer]. An active response admits the caller with its scopes and roles and is reused until itsexp, an inactive token is a401, and an endpoint that cannot answer is a503. The mode and the table were refused at boot. Helm chart 15.1.0 names the mode. -
The ITI-81 audit retrieval applies every search parameter RESTful ATNA §3.81.4.1.2.2 says the repository shall support (#4040):
address,agent.identifier,patient.identifier,entity.identifier,entity-type,entity-role,source.identifier,type,subtypeandoutcome, besidepatient,agent,entityandaction. Several comma-separated values match any of them, and a repeated parameter must match too. Tokens take thecode,|codeandsystem|codeforms of FHIR R4 Search §3.1.1.4.10. These parameters were a400not-supported. The subject-scoped audit role still names exactly one subject, bypatientorpatient.identifier. -
The
openehr-*crates carry the APIs FerroBRIDGE kept local copies of (#4047, #4048), on the 0.0.99 crate line. The FLAT builder takes a value whole under|raw(Simplified Formats master04 §Raw canonical JSON) onROLE.performer(<root>/performer|raw, aPARTY_REF), on the COMPOSITIONlanguage,territoryandcomposer, and on the_feeder_audit,_link:i,_participation:i,_other_participation:i,_providerand_health_care_facilityfamilies. Actx/key still wins over a path spelling of the same attribute, and a raw value of the wrong class, or one beside another suffix, is refused asInvalidRaw.openehr-amimplementsFromStrforArchetypeHrid(openehr_adl::hrid::parse_hridnow reads through it),openehr-baseaddsTerminologyId::new(name, version_id), andopenehr-termnames theaudit_change_typeandversion_lifecycle_stateconcepts (codes::AuditChangeType,codes::VersionLifecycleState), held equal to the embedded terminology. Until aferrohealth-smartrelease requires 0.0.99, the build holds a registry copy ofopenehr-sdt0.0.98 for it beside the workspace 0.0.99. -
An ADL 2 Web Template names a node under a template overlay by its parent archetype.
openehr_adl::opt::create_optrecords each overlay’s specialisation parent in the OPT’sother_meta_data(template_overlay_parents), and the ADL 2 builder uses the parent’s id for the node, its paths and its slot admissions, so data and mappings written against the published archetype match. An ADL 2 header now quotes a free metadata value that is not a bare token and reads a quoted one back (#4048). -
TEMPLATE_IDanswers its BASE 1.3.0 HRID functions (#4068), on the 0.0.104 crate line. SPECBASE-42 givesTEMPLATE_IDis_hrid,namespace,qualified_rm_class_name,concept_id,version_idand the major, minor and patch versions (BASE base_types master05 §Template Identifiers). An identifier in the namespaced HRID form of the Artefact Identification reference expression (master03 §Formal Model) yields its parts; a legacy free-text template name stays valid and answersfalseand empty parts. -
openehr-itswrites an OPT 1.4, on the 0.0.105 crate line:opt14_writer::buildandwriteassemble an operational template from a template definition (the root archetype, the archetypes placed in its slots or open attributes, and the occurrences, existences and attribute constraints it narrows) and the AM 1.4 archetypes it names. Internal references are inlined and deleted nodes removed (OPT2 raw flattening), a slot filler is checked against the slot’s assertions and type, a widening is refused, and the output is byte-deterministic, valid against ITS-XMLTemplate.xsdand accepted by the template upload (#4083). -
The server runs the FerroHEALTH HTTP stack of
ferrohealth-server0.3.4, and[server]is its section, the same keys in every FerroHEALTH product:listen,base_path(a path every route is served under, the health routes included; empty by default),request_timeout_ms(a request still running is answered408),header_read_timeout_ms,body_limit_bytes,drain_delay_msandshutdown_timeout_ms(onSIGTERMreadiness turns503at once, the listener closes after the delay, and the requests in flight get the bound to finish),max_concurrent_requestswithretry_after_s,trusted_proxieswithforwarded_header, andcompressionwithcompression_min_bytes.[server.caller_rate](requests_per_second,burst) limits each authenticated caller.[server.tls](certificate_file,key_file,client_auth,client_ca_file,min_version,reload_interval_s,healthcheck_identity_file) reads the files again onSIGHUPtoo, and the management listener on its own port drains with the main one under the same bound (#4087). -
[rest]holds the openEHR REST surface:base_path,swagger_ui,cors_permissive,system_id,[rest.identity]andbody_limit_bytes, the clinical body tier belowserver.body_limit_bytes, which the template-upload and/messageroutes keep (#4087). -
ferroehr servenames the default command besideconfig checkandhealthcheck(#4087). -
The viewer serves the family’s health routes and commands:
/health/liveness,/health/readinessand/health,ferroehr-viewer config check(reads the configuration and builds the CDR and issuer clients without reaching either),--configand--set key=value, the[server]table with listener TLS, and the bounded drain onSIGTERM(server.drain_delay_ms,server.shutdown_timeout_ms).ferroehr-viewerwith no subcommand still serves (#4139). -
The OPT 1.4 writer clones nodes and narrows types, on the 0.0.106 crate line:
opt14_writer::Narrowing::Clonecopies an archetype node that may occur more than once under its own node id, told apart by anameconstraint and carrying its own narrowings and slot fills, and refuses a clone of a node that occurs at most once, a name another copy carries, or copies the attribute’s cardinality cannot hold (AOM2 VSONCO, VACMCU, VACMCO).Narrowing::Redefinenarrows an attribute’s children to conforming subtypes (aDV_TEXTvalue to aDV_CODED_TEXT) or drops alternatives, keeping the archetype’s other constraints, and refuses a type that does not conform (AOM2 VSONCT). An attribute the template constrains can also hold archetypes placed by a slot fill. The writer now rebuilds 143 of the 305 CKM operational templates to their upstream node tree, up from 67 (#4150). -
The OPT 1.4 writer refuses a redefined leaf constraint that admits a value the archetype’s does not, as AOM2 Phase 2 validation (VPOV) requires: a string list or pattern, an integer or real list or range, a boolean, a date, time, date/time or duration range, pattern or timezone validity, a code phrase’s terminology or code list, a quantity’s property, units, magnitude or precision, and an ordinal list. Each refusal is a
WriteError::Wideningnaming the archetype, the path and the constraint. The openehr crates move to 0.0.107 (#4163). -
The Helm chart mounts a private issuer CA for the server:
auth.caExistingSecret(withauth.caExistingSecretKey,ca.crtby default) mounts the Secret’s PEM bundle and points the server’s[auth] ca_fileat it, asviewer.auth.oidc.caExistingSecretdoes for the viewer. Chart 19.3.0 (#4235). -
The quickstart viewer signs in through the Keycloak overlay: with
--profile viewer, the viewer athttp://localhost:3000takes the authorization-code flow with PKCE through the demo realm’sferroehr-viewerclient and calls the server with the user’s token. The issuer moves tohttps://keycloak.localhost:8443, a name the containers resolve through a network alias and a browser resolves to the loopback address with no hosts entry, and the development certificate names it (#4243).
Changed
-
A server with no patient identity source refuses to start (#3380). The binary’s default
[ehr_index]provider is the IHE one, and withoutpixm_urlandassigning_authoritythe refusal names both choices: configure the identity source, or opt in to the in-instance map with[ehr_index] provider = "local", which serves theGET /ehr?subject_id=…lookup overEHR_STATUScontent and nothing more. Upgrade step: a deployment without an identity source adds[ehr_index] provider = "local"(FERROEHR__EHR_INDEX__PROVIDER=local). -
The compose quickstart runs FerroPIX beside FerroEHR (#3380), pinned by tag and digest, with its own PostgreSQL and a development OpenID Provider, and points
[ehr_index]at it; FerroPIX mints the pseudonym inurn:oid:2.999.7.1on FerroEHR’s first ask. The server now runs in the issuer’s network namespace, which publishes ports 8080, 8090 (FERROEHR_PIX_PORT) and 8180 (FERROEHR_ISSUER_PORT). -
Helm chart 19.0.0 takes FerroPIX as the chart dependency
ferropix(#3380), on by default: the chart pointsconfig.ehr_indexat its Service, adds the egress rule to its pods, and routes the grant’s client secret throughsecrets.ehrIndexClientSecret. A values file that names no identity source is refused at render. Upgrade step: supply FerroPIX’sferropix.database.existingSecret,ferropix.dataKey.existingSecret, its issuer and pseudonymisation domain, andconfig.ehr_index, or setferropix.enabled: falsewithconfig.ehr_index.provider: local. -
The EHDS system documents live in the FerroHEALTH book, and each release attaches them at a pinned revision (#3705). The EHR system Cadasto B.V. declares is FerroEHR with FerroBRIDGE, so its information sheet (EHDS Art. 38), instructions for use (Art. 30(1)(d)), readiness record and technical documentation (Art. 37, Annex III) move to https://ferrohealth.eu/docs/ehds/, and the old addresses in this book redirect there.
docs/ehds/system-documents.envpins the FerroHEALTH commit and the revision of each page. The release lane fetches the two attached pages at that commit, refuses a page whoseRevisedline differs from the pin, and appends this release’s facts under “This copy”: the system version (this FerroEHR release with the FerroBRIDGE release its chart runs beside), the release date and the versions of the standards, read fromdocs/VERSIONS.md(Art. 38(2)(b) and (e)). The release notes name the pinned revisions, andrelease-notes.shrefuses notes that do not. -
Breaking: the XML readers of
openehr-itsrefuse a document outside the schema (#3893), on the 0.0.103 crate line. A child element a type’s closedxs:sequencedoes not declare, or a child element inside a text element, is refused withXmlError::UndeclaredChild(XML Schema 1.1 Part 1 §3.4.4.2) where it was skipped as if absent, andopt14::from_xmland the AOM2 readers refuse a root other than the one the schema publishes (<template>, ITS-XMLcomponents/AM/Release-1.4/Template.xsd) withXmlError::UnexpectedRoot. One tool-written element no schema declares,match_negatedon aC_ATTRIBUTE, is read whenfalseand refused whentrue(XmlError::UnsupportedExtension): a negated match changes the constraint, and no schema says how. A CDR upload of a template outside the schema is now refused; the CNF Robotvalid_templates/validation/clinical_content_validation.optand two epSOS CKM templates are such documents (#4077, #4078). -
[auth] ca_fileis trusted under introspection mode too: withferrohealth-smart0.8.6 the server reads an introspecting issuer’s metadata, and calls its introspection and token endpoints, trusting the bundle beside the platform roots and the grant’s ownca_file. The e2e compose overlay names the development Keycloak CA throughFERROEHR__AUTH__CA_FILEin place ofSSL_CERT_FILEandSSL_CERT_DIR(#3909). -
The shared crates move to their newest lockstep releases:
ferrohealth-smart0.7.3,ferrohealth-authz0.1.3,ihe-atnaandehds-logging0.2.12 andferrobridge-term0.1.138. Every secret in the[auth]section now renders as***, the family mask, and[auth] ca_filenames a PEM bundle of extra certificate authorities for the issuer’s metadata and key set, for an issuer behind a private PKI (#3909). -
Breaking: the audit trail believes a forwarded client address only from a trusted proxy (#4025). The source network address of an audit record (
client_ip, the DICOMNetworkAccessPointID, the FHIRAuditEventnetwork) is the address the family server stack names: the connection’s peer, or the client a peer listed in[server] trusted_proxiesnames in the[server] forwarded_header(RFC 7239 §8.1). FerroEHR read the firstX-Forwarded-Forhop from any caller, so a client could write any address into the trail. A deployment behind a reverse proxy lists the proxy intrusted_proxiesand setsforwarded_header = "x-forwarded-for"when the proxy does not sendForwarded; until then its records name the proxy. -
FerroEHR moves to
ferrohealth-usage-report0.2.0 (#4025). The report FerroEHR sends is unchanged. -
The CDR takes up
ferrohealth-smart0.6.0 andferrobridge-term0.1.134 (#4026, #4027). Token checking, Basic users, the discovery document and every outbound client credentials token behave as before. The terminology client now refuses, before sending, a code with no system on an STU3 server; the CDR’s server is R4B, so its binding checks are unchanged. The new[auth] mode = "introspection"key of the shared section, and an[auth.introspection]table, are refused at boot: this server checks bearer tokens as JWTs only, and a setting it would ignore stops the start. -
Every secret and every masked URL renders through
ferrohealth-secret, the family’s one mask (en-route finding of #4028). EHR’s ownconfig::secretmodule gives way toferrohealth-secret’sSecret,SecretUrlandRedactedUrl. A secret still renders as***and a URL’s userinfo as***@, and a URL’s query is now masked as?***too, inferroehr config check,GET /admin/config,/management/envandferroehr report.ferrohealth-smartmoves to 0.7.1 andferrohealth-authzto 0.1.1,ihe-atnaandehds-loggingto 0.2.11, andferrobridge-termto 0.1.137. -
Breaking: the outbound client credentials tables take the
ferrohealth-smartclient table, sotoken_urlis nowtoken_endpoint(#4028).[terminology.server.oauth],[audit.fhir_feed.oauth]and[authz.abac.remote.oauth]are the family’s shared grant: the old keytoken_urlstops startup by name, and each table gainsprivate_key_jwt(RFC 7523), mutual TLS (tls_client_authandself_signed_tls_client_auth, RFC 8705),ca_file,refresh_margin_msandtimeout_ms.issuer,client_id, the client secret,scope,audienceandresourcekeep their names. Upgrade: renametoken_urltotoken_endpointin each table (in the Helm chart, underconfig.terminology.server.oauthand the other two), or..._OAUTH__TOKEN_URLto..._OAUTH__TOKEN_ENDPOINTin the environment.ferrohealth-smartmoves to 0.7.0 andihe-atnaandehds-loggingto 0.2.10, the FHIR Feed sends its bearer token throughihe-atna, and every BALP AuditEvent’ssource.observercarries anidentifierbeside itsdisplay. -
Breaking:
ihe-atna’s forwarder delivers the audit trail, and[audit.fhir_feed] batch_sizeandmax_retriesare gone (#4029). Syslog frames are stored inihe-atna’s spool and delivered from it with backoff, retried until the repository takes them, so a failed send is no longer lost. The local audit store keeps only the FHIR document, so the spool, not the store, is syslog’s outbox, anddelivered_syslog_atis no longer written. New[audit.syslog]keys:spool_dir(a spool that survives a restart; unset, it is held in memory),spool_max_messages,spool_max_bytesandretry_max_ms. The FHIR Feed delivers from the store through anihe-atnaoutbox, or with the store off from an in-memory spool. A record the repository refuses is set aside until the next start, and the records behind it flow on.retry_max_mstakes the place ofbatch_sizeandmax_retries, which stop startup by name. A newaudit_deliveryhealth indicator reports each forwarder. Upgrade: removebatch_sizeandmax_retriesfrom[audit.fhir_feed], and set[audit.syslog] spool_dirto a directory only the server can read. -
Breaking: the ITI-81 audit retrieval (
GET /fhir/r4/AuditEvent) requires adateparameter (#4030). The query is now read byihe-atna’sretrieve, the family’s audit crate, and the answer written by it: RESTful ATNA §3.81.4.1.2.1 has at least onedatepresent, so a query without one is a400OperationOutcome. Adatevalue takes every FHIR prefix (eqwhen none, sodate=2026-07-12is that whole day, read in UTC),patient,agentandentityalso answer to their.identifierforms,_count=0returns the total alone, and the Bundle carriesselfandnextlinks. A parameter the local store cannot apply yet is a400not-supportedwhere it was silently ignored. Upgrade: an API client, a patient portal on the subject-scoped audit role included, adds a date window to every retrieval (for exampledate=ge2026-07-01); the viewer’s audit page sends the last 30 days when no window is set.ihe-atnaandehds-loggingmove to 0.2.8. -
Breaking:
[authz.rbac] user_roleis retired (#4038 follow-up). It named a role nothing required once a Basic user’s roles became its[[auth.basic.users]] roleslist. The key now stops startup by name and points at that list. Upgrade: removeuser_role(on Helm chart 16.0.0,config.authz.rbac.user_role), and give each Basic user the roles it needs, for exampleroles = ["USER"]. -
Breaking: the caller’s roles come from
ferrohealth-smart, so the two role keys move to[auth], and the policy decision isferrohealth-authz0.1.0 (#4038).[authz.rbac] role_claimsis now[auth] role_claims(same default,realm_access.rolesincluded), and[authz.rbac.basic_roles]is now theroleslist of each[[auth.basic.users]]entry; both old places stop startup by name. Roles stay upper-cased, and a Basic user whose entry lists no role holds none, where a user absent frombasic_rolesused to holduser_role.[authz.assurance]and[authz.professional]keep their keys and are read by the shared sections; the RFC 9470 step-up challenge on patient data no longer carries anerror_description. The Cedar engine and the remote decision point are the family’s: the Cedar schema and the remote wire body are unchanged, a remote resource kind with no policy is a500instead of a403(boot validation already refuses that configuration), andauthz_cedar_decisionsandauthz_remote_pdp_callscount one per decision where they counted one per attribute combination. Upgrade: moverole_claimsfrom[authz.rbac]to[auth](FERROEHR__AUTH__ROLE_CLAIMSin the environment), and each user’s entry of[authz.rbac.basic_roles]torolesunder its[[auth.basic.users]]table (in the Helm chart, underconfig.auth.basic.users), and give a user that had no entryroles = ["USER"]. Helm chart 15.0.0 takes the same keys (config.auth.role_claims,rolesunderconfig.auth.basic.users, andtoken_endpointin each grant).ferrobridge-termmoves to 0.1.136, whoseSmartTokenreplaces the terminology client’s own token adapter (#4031). -
The
openehr-rmtests take the change-type and lifecycle-state codes fromopenehr_term::codes(#4053), in the codegen templates of both generations, so no literal code or rubric can drift from the embedded terminology. -
SECURITY.mdrecords themainruleset as it stands (#4067): no approving review, theconclusioncheck, the merge queue, and the organization-admin bypass, with what a bypass merge skips (any lane still running,ui-e2eincluded) and when it is used. The weekly external link check leaves out gesetze-im-internet.de and dicom.nema.org, which refuse the GitHub runner every week while answering by hand (#4074). -
The BASE, AM, TERM and LANG specifications are re-vendored (#4068, #4069, #4070, #4071) at BASE
93abaf9f, AM51aa07b2, TERMb2dd077dand LANGe61a7192. The TERMlanguagescode set restorespt-pt, addsro-mdandru-md, and names the replacement of each deprecated code (SPECTERM-36), so theopenehr-termcode-set lookup accepts the two new codes. The BASEInterval.haspost-condition gains its brackets, which the implementation already followed. AM’s Archetype Identification document is superseded by BASE Artefact Identification (SPECAM-103), and the citations move with it. The nineopenehr-*crates step to 0.0.104. -
The bundled PostgreSQL image is rebuilt on the 2026-10-21 respin of
postgres:18.6(#4084,sha256:edb0c08d…), a same-version respin with rebuilt base packages. The respin ships the fixed xz packages, so theTEMP-1147318-639065statement leavessecurity/vex/postgres-os.openvex.json. -
Breaking: the server reads only the configuration file it is told to read (#4087). The loader is
ferrohealth-config0.2.5, the FerroHEALTH products’ shared one, and it reads the file--configorFERROEHR_CONFIGnames../ferroehr.tomland/etc/ferroehr/ferroehr.tomlare no longer searched: a deployment that mounts a file there without naming it starts on the environment and the defaults alone. SetFERROEHR_CONFIG=/etc/ferroehr/ferroehr.toml; the Compose files, the conformance stacks and Helm chart 16.0.2 set it. The fallbacks keep their order (the libpq variables,DATABASE_URL,DATABASE_URL_UNPOOLED,RUST_LOG,PORT), andferroehr config checkprints each key beside the source that set it. -
Breaking: the viewer reads only the configuration file
FERROEHR_VIEWER_CONFIGnames (#4087), through the sameferrohealth-configloader as the CDR../ferroehr-viewer.tomland/etc/ferroehr/viewer.tomlare no longer searched. A variable underFERROEHR_VIEWER_that is neither an override nor the Compose port or image parameter refuses the start, and a*_filesecret loses only its trailing line ending, where all surrounding whitespace was trimmed; an empty file is refused. -
Breaking:
[auth] role_claimsdefaults to["roles", "groups", "entitlements"](#4087), the RFC 9068 §2.2.3.1 carriers every FerroHEALTH product reads.realm_access.rolesis no longer in the default: a Keycloak issuer setsFERROEHR__AUTH__ROLE_CLAIMS=roles,groups,entitlements,realm_access.roles, as the Keycloak Compose overlay and the viewer’s journey stack now do. -
Breaking: the server no longer refuses a
FERROEHR_variable outside the override form, and a file refusal says less (#4087). Only aFERROEHR__<SECTION>__<KEY>override that names no key refuses the start. A single-_spelling such asFERROEHR_DB_MAX_CONNECTIONS, or a per-subsystem pointer such asFERROEHR_SIGNING_CONFIG, sets nothing and is left alone, because the viewer’sFERROEHR_VIEWER_variables share the prefix (ferrohealth-config0.2.5). A refusal of an unknown key in the file names the key and the closest valid one, without its line number; a syntax error still names its line and column. -
Breaking:
/health/readinessand/management/healthserve the FerroHEALTH readiness document offerrohealth-health0.1.1 (#4087). The body is{"state", "phase", "indicators": [{"name", "state", "detail"?}]}with lowercase states (up,degraded,down), replacing{"status", "components"}; the public probe leaves out everydetail. Readiness also answers503while the process boots and from the moment it receivesSIGTERMorSIGINT, before the listener stops. The optional indicators (audit_sender,audit_delivery,audit_chain,events) read at worstdegraded, so a damaged audit chain now readsdegradedwhere it readDOWN, and an indicator that is up carries no detail. The viewer’s health tab reads the same document. Probes that test only the status code are unaffected. -
Breaking: logging, the request log and the OpenTelemetry export move to the
[telemetry]section offerrohealth-telemetry0.2.1 (#4087), the FerroHEALTH products’ shared one, with no aliases for the old keys.[log]is gone:log.formatandlog.filterbecometelemetry.formatandtelemetry.filter(FERROEHR__TELEMETRY__FORMAT,FERROEHR__TELEMETRY__FILTER,RUST_LOGstill a fallback), and the filter now defaults toinfo,hyper=warn,tower=warn,h2=warnand refuses the start when it does not parse. The export moves to a[telemetry.otlp]table:otlp_endpointbecomesotlp.endpoint,traces_sample_ratiobecomesotlp.sample_ratio, andmetrics_pushbecomesotlp.metrics, which defaults totrue, so a configured endpoint now receives the metrics as well as the spans.telemetry.flame_filemoves tomanagement.flame_file.telemetry.service_nameis removed: theservice.nameis alwaysferroehr.telemetry.environmentno longer defaults todevand is left off every span and metric unless set. A file or variable that still spells an old key refuses the start, naming it. Helm chart 17.0.0 renamesconfig.logtoconfig.telemetry. -
Breaking: the HTTP metrics are the
ferrohealth-telemetryrequest log’s (#4087).http_server_request_duration_secondsis labelledhttp_request_method,http_route,http_response_status_codeandurl_scheme(OpenTelemetry HTTP semantic conventions); thestatus_classlabel is gone, so a query onstatus_class="5xx"becomeshttp_response_status_code=~"5..", as the bundled alert rules and Grafana dashboard now read. Thehttp_server_active_requests,http_server_request_body_sizeandhttp_server_response_body_sizeseries are removed, and no series on/management/prometheuscarries theotel_scope_namelabel any more. The viewer’s management page loses its in-flight requests tile, and the dashboard’s in-flight panel shows the request rate. -
Breaking: responses no longer carry
x-trace-id, and a client’straceparentis no longer read (#4087). Every request starts a trace of the server’s own, so a caller cannot join or steer the server’s traces; correlate a request through itsx-request-id, which the request log writes on every line. -
Breaking: the REST-surface keys move from
[server]to[rest]:server.base_path,server.swagger_ui,server.cors_permissive,server.system_idand[server.identity]arerest.base_path,rest.swagger_ui,rest.cors_permissive,rest.system_idand[rest.identity](FERROEHR__REST__…), with no alias; the old names are refused at startup. Upgrade: rename the keys, and move a[server.identity]table to[rest.identity](#4087). -
Breaking:
server.bindisserver.listen, an IP address and a port; a host name such aslocalhost:8080refuses the start. It listens on0.0.0.0:8080by default, as before. Upgrade: rename the key (#4087). -
Breaking: the request-body limit is
server.body_limit_bytes, 64 MiB by default, the ceiling of every route and the limit of the template-upload and/messageroutes, andrest.body_limit_bytes(unset by default) narrows the other routes below it, where it was 16 MiB. The chart sets 16 MiB. Upgrade: setrest.body_limit_bytes = 16777216to keep the old clinical limit (#4087). -
Breaking:
server.max_in_flightisserver.max_concurrent_requests, unset (no bound) by default where it was 256, and the bound now covers every FerroEHR route (the status document, SMART discovery and the management surface included); only the health routes are never refused. Upgrade: setmax_concurrent_requests = 256to keep the old bound (#4087). -
Breaking:
[server.rate_limit]is[server.caller_rate](requests_per_second,burst) keyed on the authenticated subject, and limits nobody until the table is set, where the principal tier was on by default; the per-address tier is gone. The chart and the Compose quickstart set 1024 per second with a burst of 2048. A429carriesRetry-Afterand nox-ratelimit-*headers (#4087). -
Breaking:
[server.tls]takes the family keys: the table’s presence turns TLS on (enabledis gone),cert_fileiscertificate_file,reload_interval_secsisreload_interval_s(unset by default, where the files were read every 60 seconds;SIGHUPalways reads them), andclient_auth = "off"is"none". The chart’sconfig.server.tlsfollows, and an empty table means TLS off (#4087). -
Breaking:
[server.connection]is[server] header_read_timeout_ms(30000 by default, where the bound was 10 seconds, and0is refused);max_concurrent_streamsand the HTTP/2 keep-alive keys are gone (#4087). -
Breaking:
ferroehr healthcheckasksGET /health/readinesson theserver.listenport (over TLS with[server.tls]set) and exits 1 while the server drains, where it asked{rest root}/status; the reason on stderr readshealthcheck: unhealthy: ….GET /healthanswers the readiness status with{"state": …}andGET /health/livenessanswers{"state":"up"}, where both answered a plain-textOK(#4087). -
The request id is the server’s own, minted for every request and carried by the request log and the access record; a client’s
X-Request-Idis returned to it unchanged and no longer recorded. A request pastserver.request_timeout_msor over the body limit, a refused caller and a panicked handler answer the openEHR{ error, message }body, and the panic message reaches neither the body nor the log. Responses are compressed at the default gzip and Brotli quality, from 1 KiB up (#4087). -
The boot banner is the FerroHEALTH banner: the wordmark, the build line
ferroehr <version> (<commit>), and the facts (manufacturer, profile, pins, support period, deployment) as one list, with the sandbox notice below (#4087). -
Chart 19.0.0:
config.servercarriesmax_concurrent_requestsandcaller_rate, andconfig.restthe REST surface; the renderedferroehr.tomlchanges accordingly (#4087). -
Breaking: the usage report is sent by
ferrohealth-usage-report0.1.2 (#4087), the FerroHEALTH products’ shared reporter, on the same envelope v2. Thestatusobject losesspec_profile, andpostgres_majoris left out when the database does not answer. The daily metrics lose theaqlgroup and theaql_executionsandaql_slowcounters, and gain theresponses_4xxcounter. Routes outside the API families (the health family, the management surface, the status and discovery documents) are counted in no group. A replica adds its counts to the shared window at its own daily attempt instead of every five minutes, and a daily report that does not reach the collector keeps its counts for the retry an hour later where it dropped them. A failed or refused send is logged at WARN where it was DEBUG, and the boot line takes the family’s wording. The clinical migration0018_usage_report_envelopedrops theslowcolumn and theaqlrows and addsusage_report_counter. -
HTTP Basic credentials are cached for 300 seconds by default (#4088).
[auth.basic] cache_ttl_secondsdefaulted to0, so every Basic request ran the Argon2id derivation, 10 to 15 ms of CPU, which capped the mixed ITS-REST and AQL workload against a release build on one host at 408 op/s; with the cache it reached 1559 op/s.ferrohealth-smart0.7.5 makes 300 the default. Only a credential that verified is kept, under a keyed hash drawn at boot, and the cache empties at a restart. Set0to check every request. FerroEHR takesferrohealth-smart0.7.5,ferrohealth-authz0.1.5,ihe-atnaandehds-logging0.2.13 andferrobridge-term0.1.139. Helm chart 16.0.1 states the new default. -
Three AQL shapes no longer read every composition (#4089, #4090), measured against a release build on one host holding about 51 000 compositions. A population query ordered by
c/context/start_time/valuewith a smallfetchreads the compositions in start-time order from a new index and stops at the limit: 169 ms became 7 ms at p50. Ac/archetype_details/template_id/valuepredicate on aCOMPOSITIONreads the indexed template id of the version: 142 ms became 2 ms for a template nothing matches, and 29 ms became 11 ms for one of thirteen templates. ACOMPOSITION,EHR_STATUSorEHR_ACCESSroot is bound at its root row, so a containment withORprobes one row per version where it read every node of it. Clinical migration 0017 adds the index and the planner statistics, and analyzes the node table once. -
The scheduled audit chain check verifies the records written since the last intact link (#4100).
audit.verify_audit_chain_incremental()recomputes only the records after the checkpoint it keeps inaudit.audit_chain_checkpoint, checks the chain head, and moves the checkpoint when it finds nothing: on 428,000 records a full pass took about 35 s, a run over the last 1,000 records 76 ms and one with nothing new 2 ms. A full pass runs every[audit.store] full_verify_interval_seconds(new, default one week,0for on demand only) and after any run that found damage, andSELECT * FROM audit.verify_audit_chain()stays the full pass on demand. With the cheaper run,verify_interval_secondsdefaults to one hour, where it was one day. The chain digest is unchanged. -
The FHIR Feed owes only the records written while it is configured (#4102). A record waiting for delivery is a row in
audit.fhir_feed_outbox, which the store writes with the record while[audit.fhir_feed]is on and delivery removes. The two partial indexes over the unset delivery stamps, which held every record of a deployment without a sink (about 4.8 MB each at 428,000 records), are dropped; the syslog one served no query, since syslog delivers from its own spool. Records stored before this release and never delivered ship once a feed first runs. -
The FHIR
AuditEventcarries the data permit (#4120). The stored record, the ITI-81 retrieval and the ATX: FHIR Feed write the permit a caller declared in[audit] permit_headeratagent.policyof the user agent, after the token’sjti(FHIR R4AuditEvent.agent.policy), on an access record and on every other record. The DICOM audit message over syslog has no element for a policy (DICOM PS3.15 A.5.1.1), so it carries none. -
The per-EHR access record of an Extract export or import carries the declared purpose and data permit (#4120), taken from the request as the other service-layer access records take them, so the subject-scoped ITI-81 retrieval answers an export of
GET /message/export/{ehr_id}with its permit. -
FerroEHR’s own
[server]defaults again (#4120): with nolistenand nobody_limit_bytesin the file or the environment, the server listens on0.0.0.0:8080and reads bodies up to 64 MiB, and a partial[server]table keeps both for the keys it does not name (ferrohealth-config0.2.6Loader::defaults). The container image no longer setsPORT=8080, and the quickstart Compose file, the dev configuration and chart 19.0.1 no longer write the two keys. Upgrade: a bare binary that must stay on the loopback setslisten = "127.0.0.1:8080". -
The shared crates move to their newest releases (#4120):
ferrohealth-smart0.8.3,ferrohealth-authz0.2.2,ihe-atnaandehds-logging0.3.1,ihe-iti0.0.65,ferrobridge-term0.1.140,ferrohealth-server0.3.5 andferrohealth-config0.2.6. -
A pull request records its changelog entry as a fragment under
changelog.d/and no longer editsCHANGELOG.md(#4123). The fragment ischangelog.d/<issue>-<kebab-slug>.<section>.md, in the formatchangelog.d/README.mdgives, and the release cut assembles the fragments into the new version’s section withscripts/release/changelog.sh --assemble. Thechangelog-guardjob refuses a malformed fragment and a pull request that writes under[Unreleased], so two open pull requests no longer conflict on the changelog. -
The chart pins the FerroPIX release beside its digest.
ferropix.image.tag(0.0.7) states the release whose imageferropix.image.digestpins, andscripts/checks/chart-appversion.shnow holds the tag in the chart’s Artifact Hub images entry to it, as it holds the digest. The dependency chart still deploys the digest, so the rendered manifests do not change (#4131). -
Breaking: the viewer listens on
server.listen, notLEPTOS_SITE_ADDR. The viewer reads the family’s[server]table fromferrohealth-server0.3.5, defaulting to127.0.0.1:3000(the image sets0.0.0.0:3000throughFERROEHR_VIEWER__SERVER__LISTEN). ALEPTOS_SITE_ADDRthat names another address refuses the start and names the key that replaced it; unset it.server.base_pathandserver.caller_rateare refused, since the viewer’s pages are served at/and it mounts no per-caller limit (#4139). -
Breaking:
ferroehr-viewer healthcheckasks/health/readinessover the loopback (over TLS whenserver.tlsis set) and exits0only on200, where it asked/loginatLEPTOS_SITE_ADDRand took any2xxor3xx. A draining viewer is now unhealthy. The Helm chart’s viewer probes ask/health/livenessand/health/readiness, where all three asked/(#4139). -
Breaking: the viewer’s browser security headers are the family console’s.
Referrer-Policyisno-referrer(wasstrict-origin-when-cross-origin),Cross-Origin-Opener-Policy: same-originis new, and the content-hashed bundle under/pkg/isCache-Control: no-cache, revalidated on each load, where it waspublic, max-age=31536000, immutable. Every document staysno-storeunder the nonce Content-Security-Policy (#4139). -
Breaking: every request to the viewer that is not a safe method passes the family same-origin check, server function calls and the result export included, where only page form posts compared
OriginwithHost. The browser’sSec-Fetch-Site: same-originpasses; without itOriginorReferermust nameauth.oidc.public_base_url, and a request that shows neither is refused403. A post without a session now returns to the page it was posted to after the sign-in, rather than to the page itsReferernamed (#4139). -
Breaking: the viewer’s CDR and OIDC clients speak TLS 1.3 at least by default, as every family client does;
cdr.tls.min_versionandauth.oidc.tls.min_versionset to"1.2"lower it. A request now runs under the stack’sserver.request_timeout_ms(60 s) andserver.body_limit_bytes(16 MiB), and a form post’s ceiling is that limit (#4139). -
The viewer hydrates the whole page on FerroUI 0.5: the server draws the first page and the browser draws every page after it, so a link or a filter no longer reloads the document, and the browser’s back and forward walk the pages it drew. The pages load their code in six groups as they are first opened. Every page still works with no WebAssembly, and a post still answers with the page it was posted to (#4147).
-
The book and the architecture no longer claim the openEHR Service Model as the design of the service layer (#4211). The service layer is FerroEHR’s own design, judged by what goes in and comes out (BASE, RM, AM, TERM, QUERY/AQL, ITS-REST, ITS-JSON, ITS-XML and the serialisation formats); the vendored SM text stays as reference only. No behaviour changes.
-
Breaking: the viewer logs through the family’s
[telemetry]section offerrohealth-telemetry0.2.2, as the CDR does (#4214). The console writes to stdout where it wrote to stderr, andtelemetry.formatdefaults toauto, which rendersjsonwhen stdout is not a terminal, so a container’s log is now JSON lines; setFERROEHR_VIEWER__TELEMETRY__FORMAT=prettyfor the old human lines.RUST_LOGis now the lower-priority fallback oftelemetry.filter(FERROEHR_VIEWER__TELEMETRY__FILTERwins over it), the filter defaults toinfo,hyper=warn,tower=warn,h2=warnwhere it wasinfo, and a filter that does not parse refuses the start where it fell back toinfo. Each request writes the CDR’s request line (method, matched route, status, latency, request id), and a panic writes the CDR’s one fixed line without the panic message.[telemetry.otlp]exports the viewer’s spans and itshttp.server.request.durationmetric asservice.nameferroehr-viewer. Helm chart 19.2.0 sets the viewer’s format and filter fromviewer.telemetry, and the Compose viewer services setFERROEHR_VIEWER__TELEMETRY__FORMAT. -
The viewer takes FerroUI 0.5.4: its skip link keeps the browser’s own fragment navigation under hydration, so the viewer no longer patches the link after the page hydrates, and a code editor’s key costs the edit, not the length of the text (#4227).
-
The quickstart Keycloak overlay names its development CA through
[auth] ca_file:docker-compose.keycloak.ymlsetsFERROEHR__AUTH__CA_FILEin place ofSSL_CERT_FILEandSSL_CERT_DIR, which only the Linux platform verifier reads (#4236). -
The development and quickstart Keycloak moves to 26.8.1, and its realms form a complete OIDC example: both compose files pin
quay.io/keycloak/keycloak:26.8.1by digest, held together byscripts/checks/compose-image-tags.shand watched weekly by the base-image watcher. In both realms the authorization-code flow requires PKCE (S256) and accepts only the viewer origins on port 3000 as redirect targets (the quickstart realm accepted any), and a service account holdingUSERlets a client-credentials token reach the clinical API (#4240). -
The hosted sandbox (sandbox.ferroehr.eu) resolves patients through FerroPIX 0.0.10, the FerroHEALTH patient identity source, as the compose quickstart does: FerroPIX runs beside the CDR on loopback with its database on the database box, each
EHR_STATUSnames its patient by the pseudonym FerroPIX minted in the clinical domainurn:oid:2.999.7.1, andPOST /query/cohorttakessubjectsin the synthetic hospital domainurn:oid:2.999.1.1. The nightly reseed registers the demo patients with FerroPIX through the deploy script’s newidentitiesverb before it seeds, so after a reset the CDR’s EHRs and FerroPIX’s identities agree. FerroTERM moves from 0.1.6 to 0.3.1 on the same index layout, the viewer’s memory limit from 1536m to 1024m, anddeploy/hosted/sandbox-ferropix-rollout.shcarries the operator steps on both boxes (#4242). -
Breaking: the quickstart Keycloak realm gives the viewer and a backend service their own clients:
ferroehr-viewer(ferroehr-viewer-quickstart-secret) takes the authorization-code flow with PKCE and the password grant, andferroehr-service(ferroehr-service-quickstart-secret) takes only the client-credentials grant, with thesystem/SMART on openEHR scopes and aclient_idclaim. Both putferroehrinaud. The singleferroehrclient and itsferroehr-quickstart-secretare gone, so a script that fetched a token with them moves toferroehr-viewer. The overlay namesferroehr-servicein[smart] backend_clients, so itssystem/aql-*grant runs AQL. The dev realm makes the same split and drops the unused Keycloak Authorization Services, andscripts/ui-e2e.shkeeps its scratch files undertarget/ui-e2e/(#4245). -
The Helm chart’s
usageReport.enabledreaches the other products it runs: FerroTERM (FERROTERM__USAGE_REPORT__ENABLED) and a FerroBRIDGE release from 0.0.7 on ([usage_report]) follow it, each overridable withterminology.usageReport.enabledorbridge.usageReport.enabled. The FerroPIX dependency chart reads onlyferropix.usageReport.enabled, so the chart now refuses to renderusageReport.enabled=falsewhile that stays true: a release you switched off sent FerroPIX’s report regardless. Upgrading a release that setsusageReport.enabled=falsewith FerroPIX on takes--set ferropix.usageReport.enabled=falseas well. Chart 20.0.0 (#4270).
Removed
-
FerroEHR holds no identity logic (#3380):
link_as_subject, the server-side subject pseudonym (mint_subject_pseudonym), the party merge and split, andresolve_ehr_for_identity, the national-identifier-to-EHR crossing, are gone. Matching, cross-referencing identifier domains and minting pseudonyms belong to the identity source. -
Breaking:
ferroehr config defaultis gone with no alias; the annotated template isapp/ferroehr/assets/ferroehr.default.tomlin the repository.ferroehr healthcheck --urlandFERROEHR_HEALTHCHECK_URLare gone too: the probe followsserver.listenandserver.base_path. Upgrade: copy the template from the repository, and probe another URL with an HTTP client of your own (#4087). -
Breaking:
[usage_report] slow_aql_msis removed (#4087), with the AQL series it set the threshold of. A file or variable that still sets it refuses the start; remove the key.state_dir, the shared section’s directory for the instance id, is refused: FerroEHR keeps the instance id and the counts in the clinical database. The endpoint is now refused when the configuration is read, with the same rule (https, orhttpto a loopback host, never with credentials). -
Breaking: Template Data Document (TDD) import is removed (#4199).
POST /message/tdd/{ehr_id}andPOST /message/tdd/{ehr_id}/batchare gone and answer404, with the service behind them, themessage-tddextension and theTdscapability in the conformance statement. TDD and the Template Data Schema (TDS) come from the template tooling of the ADL 1.4 era and are no current openEHR format; send the composition as canonical JSON or XML, or as FLAT or STRUCTURED against its Web Template. The/messagegroup keeps the four EHR Extract routes, andserver.body_limit_bytesnow covers template upload and/message/importalone. -
Breaking:
openehr-sdtdrops theflat::tddmodule (#4199):from_tdd,from_tdd_withandTDD_TEMPLATE_NSare removed, with theFlatError::TddXml,FlatError::TddAttributeandFlatError::TddElementvariants and the crate’squick-xmldependency. The openEHR crates move to 0.0.109 together. -
Breaking:
openehr-sdt0.0.111 no longer carriessmart_scopes. The SMART on openEHR scope grammar moved, with its API and tests, toferrohealth-smart0.8.5 asferrohealth_smart::openehr::smart_scopes, so a consumer ofopenehr_sdt::smart_scopesnames that path. FerroEHR pinsferrohealth-smart0.8.5, its scope gate and the viewer’s scope previewer (both halves) parse with it, and the build resolves oneopenehr-sdt. Token checking and the scopes a token grants behave as before (#4206).
Fixed
-
A Cedar policy’s
principal.patientis the caller’s patient claim ([authz.abac] patient_claim) (#4038). It was the patient of the object in play, so a rule such asprincipal.patient == resource.patientin the shippedconsent.cedarheld for every object a query touched. -
The agent guard refuses wrapped and re-ordered spellings of a force push or a recursive delete (#4046).
.claude/hooks/block_dangerous.shlet throughgit -C . push --force … main,/usr/bin/git push,\rm -rf,rm --recursive --force,bash -c "rm -rf …",find … -deleteand similar. It now normalises the command first (a path or backslash before the binary, a launcher such asenvorsudo, ash -corevalwrapper, git’s global options before the verb), judges everyrmtarget and every deletingfindstarting point against/tmp, and refuses a push that deletesmainormaster.block_dangerous_test.shruns each spelling. -
An archetype HRID’s version status reads as the
VERSION_STATUSit names (#4051), on the 0.0.102 crate line. AOM2ARCHETYPE_HRID.version_statusmaps-rc,-alpha,-betaand no modifier torelease_candidate,alpha,betaandreleased, wherercand the empty modifier read asVersionStatus::Other.openehr-adlwrites the HRID back with the modifier (-rc, never-release_candidate), so parse and write are inverse. -
A party reference whose type is not the builder’s default survives a FLAT or STRUCTURED round trip (#4052). master05 gives
PARTY_REF.typeno row, so a_health_care_facilitythat is not anORGANISATION, or a_provider, performer, composer, feeder-audit party orPARTY_PROXYdatum that is not aPERSON, is now written as|raw(master04 §Raw canonical JSON) and read back whole; it came back with the default type. -
An ADL 2 Web Template reads the ADL 1.4 term constraints of an archetype read in the ADL 1.4 dialect (#4056).
openehr-adlkeeps such a constraint verbatim (openehr::433,local::at0003,at0004;at0003) for its 1.4 to 2 converter, and an at-coded ADL 2 template over unconverted archetypes carried it into the ADL 2 builder, which took the whole string for one local code. The builder now reads it as the OPT 1.4 builder reads aC_CODE_PHRASE: anopenehrcode carries its terminology and rubric, local codes their archetype rubrics, and the assumed code becomes the default. The nineopenehr-*crates move to 0.0.100. -
An ordinal of an archetype read in the ADL 1.4 dialect lists its at-codes (#4059). The
symbolof each[value, symbol]row kept the verbatimlocal::at0006spelling, which the ADL 2 builder took for the code and its label; it now reads the at-code with its archetype rubric, as #4056 does for coded text. The nineopenehr-*crates move to 0.0.101. -
A BASE 1.3
TERMINOLOGY_CODEkeeps itsterminology_idin XML (#4076). ITS-XML 1.0.2 typesTRANSLATION_DETAILS.languageand the other slots that hold one asCODE_PHRASE, whoseterminology_idcarries a<value>child; the codec wrote and read bare text instead, so an XSD-valid document read with an emptyterminology_id. It now writes and reads theTERMINOLOGY_IDshape. -
A configuration load or check that fails keeps its cause (#4104). Fifteen sites in the server’s commands turned the failure into a string, so the error chain ended at the message; they now carry the source error.
-
Cohort queries work under the IHE patient identity source. That provider keeps no party-to-EHR map, so a cohort selected by a demographic predicate found no EHR.
POST /query/cohortnow takessubjects, identifiers in any domain, each resolved through the[ehr_index]provider: under the IHE provider by a PIXm (ITI-83) translation forward into the server’s clinical domain, never back. The new[cohort] subjects = trueturns the surface on without a predicate. Under the IHE provider a predicate is refused400, and a failing identity source fails the query instead of shrinking the cohort. The cohort digest takes each subject by namespace only (#4114). -
The chart guard holds the FerroPIX Artifact Hub image to its pinned digest (#4115).
scripts/checks/chart-appversion.shchecked the FerroTERM and FerroBRIDGEartifacthub.io/imagesentries against their pins, but not the FerroPIX entry theferropixdependency added, so its digest could drift fromferropix.image.digestinvalues.yamland Artifact Hub would scan an image the chart does not run. The guard now compares the two, and--self-testmoves the digest on either side. -
ui-screenshot-guardjudges only the pull request’s own commits (#4117). It diffed the base and head commits directly, so a branch behind main failed on main’s viewer changes and passed on main’s screenshot refresh.scripts/checks/ui-screenshot.shnow reads the paths from the merge base (base...head), and its--self-testruns both cases on a branch behind main before every verdict. -
The usage report groups a request by the route below the openEHR API mount (
server.base_pathfollowed byrest.base_path). A REST root that contains an API family word, such as/ferroehr/ehr/v1, no longer places a query or definition route underehr, and a route outside the mount counts in no group, as before #4128 (#4132). -
The local EHR index holds an EHR created for a subject. Under
[ehr_index] provider = "local",create_ehr_for_subjectnow enters the subject in the local map with the EHR’s creation, as aPrimaryassociation with no location, sosubject_ehrsand a subject cohort find the EHR. Before, onlyEHR_STATUSnamed the subject and the map stayed empty untiladd_ehr_subjectran (#4138). -
[smart] issuer_metadata_fileis read by the same parse as metadata fetched from an issuer (#4165), so a file that repeats a member name is a boot error. It used to be read as it stood, keeping whichever value the parser took. -
The viewer draws the CDR’s refusal where it used to draw nothing: on an EHR’s Status tab when the version’s envelope read is refused, in place of the contribution, signed and lifecycle facts, and in Edit the directory’s reference picker when the composition list is refused, in place of an empty select (#4170).
-
The access record of every route that addresses one EHR names that EHR, read from the matched route’s
{ehr_id}parameter:GET /message/export/{ehr_id}andPOST /message/import/{ehr_id}recorded none, so a patient’s ITI-81 search missed them, andDELETE /admin/ehr/allno longer names an EHRall. The Extract record of an export or import names the requesting user where it namedUNKNOWN, and a read ofGET /admin/restrictionis recorded against its EHR (GDPR Art. 15(1)(c), EHDS Art. 9(2)) (#4192). -
The compose-built viewer image builds its WebAssembly bindings again: its wasm-bindgen CLI now follows the wasm-bindgen version
Cargo.lockresolves instead of a separate pin that had fallen behind it. A CI guard holds every other wasm-bindgen and cargo-leptos pin to the lock and to one another, and CI builds the viewer image from source whenever its Dockerfile changes (#4222). -
The viewer takes FerroUI 0.5.3: the top bar’s search no longer panics when a navigation leaves the page while its answer panel is being placed, and a search that finds the session over now sends every other open viewer tab to sign-in too (#4224).
-
A composition commits when an element’s value matches any one of the alternatives its template allows (#4226), on the 0.0.110 crate line. ADL 1.4 §“Single-valued Attributes” makes the object constraints under a single-valued attribute alternatives, only one of which the data needs to match. The free text of an open coded value-set (FLAT or STRUCTURED
|other, a canonicalDV_TEXT) was refused asexpected RM type conforming to DV_CODED_TEXT but found DV_TEXTwhere the template allowsDV_TEXTbesideDV_CODED_TEXT, and a value that matched only a later alternative of the same type, such as a secondDV_QUANTITYwith other units, was checked against the first alone. When no alternative matches, the refusal names every alternative with what each one found, and FLAT writes a value under one of several same-type alternatives, not under each. -
POST /query/cohortand an AQL query rooted at a demographic class now leave out every EHR the population gate leaves out: an EHR whose currentEHR_STATUS.is_queryableisfalseand an EHR under a research objection no longer answer rows in a cohort or a demographic join, as they already did not in an ad-hoc population query (RMEHR_STATUS.is_queryable: “True if this EHR should be included in population queries”). The research objection leak was a privacy defect. A query scoped to one EHR byehr_idand an EXTRACT’s criteria still answer the EHR they name (#4247). -
The hosted sandbox’s database box runs a pinned image (#4252).
deploy/hosted/cloud-init-postgres.yamldefaultsFERROEHR_POSTGRES_IMAGEtoghcr.io/ferrohealth/ferroehr-postgres:5.4.2by its index digest, where the box ran the movinglatesttag of the image’s pre-FerroHEALTH namespace, andcompose-image-tags.shholds the default and the hosted README to one release reference. Step 6 ofsandbox-ferropix-rollout.shmoves the box onto the pin: it refuses a change of PostgreSQL major, recreates the container on its data volume and checks the CDR’s readiness and aferropixlogin afterwards. Step 1 of the script no longer prints an empty line for each container that is absent.
Security
Shipped with functional changes because: the patched ferrohealth-smart arrives in the same dependency move as the family mask and the lockstep releases built on it. The zstd move is a lock-only update that a security-only 5.4.3 could have carried; the maintainer chose to ship it in 5.5.0, released the day after the fix landed, instead of cutting a separate patch.
-
ferrohealth-smart0.7.1 masks the userinfo of every URL in its grant tables, a URL no parser accepts included. With 0.7.0 a configuredtoken_endpointorissuerthat did not parse could reach the configuration renderings and the log in full (CWE-532, GHSA-vphj-3f8c-5hpx) (#4050). -
The zstd bindings move to zstd 0.14.3, zstd-safe 8.2.0 and zstd-sys 2.1.2, past RUSTSEC-2026-0391, RUSTSEC-2026-0398, RUSTSEC-2026-0403 and RUSTSEC-2026-0410. Response compression and the outbound clients’ response decompression reach these crates, and the affected functions were not shown unreachable (GHSA-cwhv-87pq-3c3c) (#4095).
5.4.2 - 2026-10-25
5.4.2 is a patch release with no breaking change: a deployment upgrades in place. Helm chart 14.0.1 carries appVersion 5.4.2 and changes nothing else.
Changed
-
The viewer’s search answers under the field as you type (#4024), on FerroUI 0.4.0. From the second character the panel under the top bar’s search shows the EHRs, compositions, parties, templates and stored queries that match, five of a kind, from the server function
/api/find_answer, which posts the words so they stay out of the address and the log. Arrow keys move through the hits, Enter opens one, Escape closes the panel. The find page lists every hit in the page. -
The CDR takes up
ferrohealth-smart0.5.0 (#4002), and the build holds one copy ofopenehr-sdtwhere it held two (0.0.90 for the SMART crate beside the workspace’s 0.0.98). Reading a trusted issuer’s authorization-server metadata at boot, the server now refuses a document that repeats a member name (RFC 8259 §4), naming the location that answered it. -
SECURITY.mdstates the family’s response times, with fix-time targets by severity. An acknowledgement within about 5 business days and an initial assessment within about 10, both best effort as before, and now a fixed release published within 7 days of the confirmed assessment for a Critical vulnerability, 30 days for High, 90 days for Medium and with the next release for Low. The CRA risk assessment says business days where it said working days.
Fixed
-
The audit drain sends a held syslog connection’s records without a millisecond wait per record (#3954). FerroEHR moves to
ihe-atnaandehds-logging0.2.7 (FerroAUDIT). The liveness probe the syslog sink runs before each record waited for a timer tick of about a millisecond, which held one connection to roughly 880 records per second. It now answers at once, about 47 000 records per second in FerroAUDIT’s measurement. -
A revoked Direct Key signature no longer lets the primary key sign (#3972). The PGP signer now applies a valid Certification Revocation of a Direct Key signature, created at or after it: the revoked signature is cancelled (RFC 9580 §5.2.3.10), so neither its signing flag nor its key expiration counts any more, and a version 6 primary key left with no Direct Key signature in force is not used.
-
The viewer’s Paths tab offers Build a query only on a COMPOSITION template (#4001). A node of a demographic template (a PERSON, ORGANISATION, GROUP, AGENT or ROLE root) no longer links to the query builder, whose one query shape,
FROM EHR e CONTAINS COMPOSITION c, can never match a party. The viewer moves to FerroUI 0.3.7, which makes the node’s query link optional and keeps a long URL or word in a banner, a notice or a setting row inside the screen at 320 px. -
An access record says when the patient lookup failed (#3900). When the audit drain cannot read the subject behind an EHR (the database refused or did not answer), the EHDS access record now writes the patient lookup as
unavailableinstead ofnot-found, so a reviewer can tell a record that names no patient because the lookup failed from one whose EHR has no subject (Regulation (EU) 2025/327 Art 9(1)). A failed lookup is asked again for the next record instead of being remembered.
Security
Shipped with functional changes because: no shipped artefact is affected (zip 8.6.0 ran only in a build script, as the withdrawn VEX statements recorded), so there is no security update to separate from the other changes this release carries.
- zip 8.6.0 leaves the build (#3799; GHSA-vv5m-jxxh-4627,
GHSA-4v9h-p7m9-rh26, GHSA-4684-h2q9-2vcp).
utoipa-swagger-ui10.0.2 unpacks its vendored Swagger UI archive with zip 9, so the yanked zip 8.6.0 and its three extraction advisories (RUSTSEC-2026-0367, RUSTSEC-2026-0368, RUSTSEC-2026-0369) no longer reach the dependency graph, anddeny.tomlandsecurity/vex/rust-advisories.openvex.jsondrop their exceptions for them.
5.4.1 - 2026-10-24
5.4.1 carries breaking changes for operators who use a terminology server, each with its upgrade step under Changed. Before you upgrade: move [terminology.external] to the one [terminology.server] (its url, fail_on_error, request_timeout_ms and optional oauth grant) and rename FERROEHR__TERMINOLOGY__EXTERNAL__ variables to FERROEHR__TERMINOLOGY__SERVER__; on Helm, chart 14.0.0 takes config.terminology.server and secrets.terminologyClientSecret. A deployment without an external terminology server upgrades unchanged.
Changed
-
The CDR reaches its terminology server through
ferrobridge-term(#3085), FerroBRIDGE’s published FHIR terminology client, in place of its own HTTP client and the third-partyfhir-modeldecoding, which leaves the build. The configuration is unchanged. On the wire,$lookup,$validate-code,$expandand$subsumesare now aPOSTof a FHIR R4BParametersbody instead of aGETwith the inputs in the query string, so a code no longer travels in a URL; theCodeSystem?url=&_summary=countprobe stays aGET. The SMat_dateis sent as thedateinput of$lookupand$validate-code. Each call is made once, sorequest_timeout_msstill bounds it. The answers are read strictly against the R4B operation definitions: a$lookupanswer without itsnameordisplay, an$expandanswer without anexpansion, or a$subsumesoutcome outside its four codes is now an upstream fault (500, or the unresolvable branch offail_on_errorat commit) where the CDR used to fall back to the code as the term text, an empty value set, or “not subsumed”. A server that answers by the operation definitions sees no difference. Thefhirfeature of the internalferroehr-extcrate is gone with the decoder it gated; thefhirfeatures offerroehr,ferroehr-restandferroehr-serverkeep their meaning. -
The conformance statement declares
unmatched-member-refused(#3988, register AMB-229). The server refuses a container member whose RM type the template does not allow, such as aCLUSTERcommitted whereitems[at0004]is constrained toELEMENT(422, AM AOM 1.4C_OBJECT.rm_type_name, ADL 1.4 cADL §Occurrences). The statement claimed the lenientunmatched-member-acceptedarm, so the served and declared postures disagreed. The posture is the strict one by owner rule: FerroEHR holds to the specification and makes no allowance for other implementations’ mistakes. Catalogue caseCONT-ITEM-unmatched_member_refusednow applies andCONT-ITEM-unmatched_member_acceptedis not applicable. A client that commits a mismatched member gets the same422as before. -
Breaking: the CDR asks one terminology server, configured under
[terminology.server](#3085). All terminology beyond the openEHR support terminology is FerroTERM’s job: the CDR keeps the in-process openEHR terminology the RM validates against and one client to one FHIR R4B terminology server (BASEarchitecture_overview/master12-terminology.adoc§Binding Terminology Value-sets to Archetypes puts the resolver of a constraint binding in that server).[terminology.server]carriesenabled,url,fail_on_errorandrequest_timeout_ms, and the optional[terminology.server.oauth]grant takes the keys[audit.fhir_feed.oauth]already uses. Every key is a scalar, so the whole section is reachable throughFERROEHR__TERMINOLOGY__SERVER__*. The fail-open default and the422for a resolved non-member are unchanged (register AMB-172). A configuration that still names[terminology.external]is refused at boot, naming the key. Upgrade: move[terminology.external] enabledandfail_on_errorto[terminology.server]; put the one server’s base URL in[terminology.server] url(the URL of the provider you used asdefault, for FerroTERMhttp://ferroterm:8080/r4b) and itsrequest_timeout_msbeside it; move an[terminology.external.oauth2_clients.<name>]table to[terminology.server.oauth], wherescopes = [...]becomes one space-separatedscope = "..."string,auth_methodbecomesclient_auth, andrefresh_leeway_secsgoes; rename everyFERROEHR__TERMINOLOGY__EXTERNAL__environment variable toFERROEHR__TERMINOLOGY__SERVER__. A deployment that spread code systems over several servers loads them into FerroTERM, which serves SNOMED CT, LOINC, ICD and any FHIRCodeSystemorValueSetfrom one index. -
Breaking: Helm chart 14.0.0 wires the terminology server through
config.terminology.serverand takes its client secret assecrets.terminologyClientSecret(#3085).terminology.enabledwithterminology.wireCdrinjectsenabled,urlandfail_on_errorunderconfig.terminology.server, and refuses a values file that sets the URL itself.secrets.terminologyClientSecretis one string, mounted at/etc/ferroehr-secrets/terminology.server.oauth.client_secret, and needs the grant declared underconfig.terminology.server.oauth. Upgrade: moveconfig.terminology.externaltoconfig.terminology.serveras above, andsecrets.terminologyOauth2ClientSecrets.<name>tosecrets.terminologyClientSecret. -
A token endpoint URL is masked in every rendering of an outbound grant (#3085).
token_urlunder[audit.fhir_feed.oauth],[authz.abac.remote.oauth]and[terminology.server.oauth]now keeps its host and path and masks its userinfo inferroehr config check,/management/env,GET /admin/configandferroehr report, as the terminology client’s own token URL already did. -
The conformance lane and the real-release terminology probe run FerroTERM (#3085, #2236). The
terminologyprofile ofdocker/sut-ferroehr.ymlcomposes FerroTERM 0.1.6, pinned by digest, with the shaped seed ofdocker/terminology/seed/mounted read-only as its code-system directory, in place of HAPI FHIR and thePUTseederdocker/terminology/seed.sh, which is gone. The opt-inPROBE_ONLY=terminologyfamily ofscripts/deploy-probe.shbuilds a local SNOMED CT release into an index with the quickstart overlay’s ownferroterm-buildand drives FerroTERM over it, in place of Snowstorm and Elasticsearch. -
The conformance run composes a fourth deployment for the fail-open unresolvable-binding branch (#3985).
docker/sut-terminology-failopen.ymlruns the same image as its own compose project on ports 8083 and 5434, with[terminology.server] fail_on_error = falseand a server URL nothing answers on, and the ixit declares it as thesut_fail_openinstance. The stable-profile deployment now uses the primary’s FerroTERM, which the ixit already declared for it.
Removed
- The terminology route map, per-server credentials and caches are gone
(#3085); FerroTERM is where the capability lives. Removed keys:
[terminology.external.providers.<name>]withtype,operation,connect_timeout_ms,cache_ttl_secs,cache_capacity,oauth2_client,client_cert_path,client_key_pathandca_bundle_path;[terminology.external.routes];[terminology.external.oauth2_clients]. The CDR no longer selects a server per terminology, no longer presents a per-server mutual-TLS client certificate or pins a per-server trust bundle (the server is verified against the platform’s trust store), no longer caches terminology answers, and no longer validates membership through$expand($validate-codeanswers it). AQLTERMINOLOGY(), the/terminology/*routes, commit-time binding resolution and the ADL 2 VETDF check all ask the one server.
Fixed
-
A method a resource does not serve is
405withAllowunder SMART (#3987). With bearer authentication on,DELETE /ehrand every other method a route does not serve was refused403by the SMART on openEHR scope check before the router could answer. The gate now answers405with theAllowfield naming the served methods once the caller has authenticated, whatever the token grants, and runs the RBAC and scope checks only on a served method (ITS-RESToverview/Requests_and_responses§HTTP Methods, RFC 9110 §15.5.6). A request without a credential is still401. -
A ROLE operational template whose single attributes state
0..*uploads (#3994).POST /definition/template/adl1.4refused deployedROLEtemplates (Role.v2, rootopenEHR-DEMOGRAPHIC-ROLE.Role.v1) with422 Members_valid, because they constrainROLE.capabilitiesandCAPABILITY.credentialswithout a cardinality while the children state occurrences0..*. ADL 1.4master05-cadl.adoc§Occurrences calls that “not illegal” and reads it as at most one value, so the CDR now accepts the template and applies that cap: the Web Template gives such a nodemax1, and the ADL2 conversion states the cap and records it inconversion_details, next to the template’s undefinedac0001reference. A ROLE party built against the template, and a PERSON that holds it throughPERSON.relationships, commit and read back as before. The disagreement with the stricter AOM 1.4Members_validinvariant is reported upstream (#3996). -
The template example of a demographic template is a party (#3995).
GET /definition/template/adl1.4/{template_id}/example(and the ADL 2 twin) answered400 the template root PERSON is not a COMPOSITIONfor every PERSON, ORGANISATION, GROUP, AGENT or ROLE template. It now answers an example party of the root class at everydetail_level, in canonical JSON or XML, with auidfortype=output; an example ROLE carries a placeholderperformer, which the RM makes mandatory. FLAT and STRUCTURED stay406for a party example, since the Simplified Formats map no party class. The viewer’s Example tab offers JSON and XML only for a demographic template, and for a template rooted at an ENTRY or a SECTION it says that no example exists instead of showing the CDR’s refusal.
5.4.0 - 2026-10-24
5.4.0 carries breaking changes for operators, each with its upgrade step under Changed. Before you upgrade: replace an ECDSA or Ed448 OpenPGP signing key in [signing] mode = "pgp" with an Ed25519 key, and check that the certificate’s primary key or a subkey may still sign; tell viewer users that the viewer’s addresses change, so bookmarks and links into it need updating, and that the theme falls back to the system’s until it is chosen again; and serve the viewer’s whole pkg/ directory if you serve its site from your own web server. No configuration key, database migration or image name changes.
Changed
- Breaking: an ECDSA or Ed448 OpenPGP signing key is refused at boot
(#3965). In
[signing] mode = "pgp"the server no longer starts when the key’s signing component is ECDSA (P-256, P-384, P-521, secp256k1, Brainpool) or Ed448, and the error names RUSTSEC-2026-0387; see Security below. P-384, P-521 and Ed448 keys already failed the boot signature, because the server signs with SHA-256 and RFC 9580 requires a longer digest for them, so the keys that change behaviour are P-256 and secp256k1. Ed25519 and RSA keys load as before, and the RSA boot warning now recommends Ed25519 alone. Such a certificate keeps verifying the versions it signed when it is listed insigning.retired_key_paths. Upgrade: before upgrading a deployment that signs with such a key, generate an Ed25519 signing key (gpg --quick-generate-key "…" ed25519 sign), export its armored secret key tosigning.key_path, and add the old certificate’s public half tosigning.retired_key_paths(the book’s PGP signing page and the signing section of the configuration reference). The digest mode, the default, is unaffected. - The viewer is rebuilt on FerroUI 0.3.6 (#3932, #3942, #3946, #3957, FerroHEALTH/FerroUI#161).
Every screen follows the FerroEHR mockups of FerroUI’s
design/consoles/ferroehr/at 1440 and 390 px, light and dark, with FerroUI’s components and none of the viewer’s own copies. The viewer now runs in islands mode: the server draws every page whole, every link is a link and every action a form that posts to its page, so the whole viewer works with JavaScript off, and the browser hydrates only the parts that add behaviour (the code editor, path trees, the chart legend, date pickers, the user menu’s keyboard pattern, the subject reveal and Copy). Editors end in a docked decision bar; a refused save keeps what you typed beside the CDR’s words. The navigation is Dashboard, EHRs, Parties, Templates, Terminology, Stored queries, Query, Server, Audit log, Subscriptions, Configuration and About, with search in the top bar. The activity charts of the dashboard and of an EHR’s contributions label their first day and every tenth day back from today, and a staged change’s Apply sits beside its What changes select. - Breaking: the viewer’s addresses change.
/demographics/…is/parties(/parties/{kind}/{uid},/parties/relationships/{uid},/parties/contributions/{uid}); an EHR’s tabs are paths (/ehrs/{id}/status,/directory,/contributions,/tags) instead of?tab=;/queries/builderand/queries/aqlare/queryand/query/aql;/queries/stored?load=…is/queries/{name}/{version}/run;/systemand/operationsare/serverwith its tabs, the conformance manifest moves to/about, the runtime configuration to/configuration; an ADL 2 release is/templates/adl2/{stem}/{release}. Upgrade: update bookmarks and links into the viewer; an old address answers404. - Breaking: display preferences are cookies of their own. The theme is set
in the user menu and on Your preferences (
/preferences), and each preference is its ownferroehr-viewer-*cookie; theferroehr-themecookie and the/themeroute are gone, so a theme chosen before the upgrade falls back to the system’s until it is chosen again. - Breaking: a listing that can show patient data keeps its page out of the
address (FerroUI
leptos-ui.md§0): the EHRs, an EHR’s compositions and contributions and the audit log page through a session cookie (/paging);?offset=and?page=on them are ignored. Filters stay in the address. - An open tab now idles out (#3057). The viewer polls nothing in the
background, so
session.idle_minutesmeasures the requests the browser makes, and a tab left untouched signs out like a closed one; the next page asked for is the sign-in page saying the session ended, and signing in returns to it. A revoked session is noticed on the next request. - The viewer’s site is built with
cargo leptos build --split(scripts/cargo-leptos.shadds it) and FerroUI’ssplitfeature, so FerroUI’s lazy islands (the date pickers and the tree) load from chunks of their own on a page that draws them (FerroUI #331). A deployment that serves the site from its own web server serves the wholepkg/directory, chunks included; the image already does. - The dashboard’s compositions per day count commits, read from each
version’s
commit_audit/time_committed, as its note says; it counted context start times before. - A query’s results are FerroUI’s results pane (#3942). Table and Chart
sit in the Results heading and run the query again in the view chosen, which
the next Run keeps; the separate Show as choice is gone. Export in the
heading opens a menu of CSV and JSON (#3946), whose items post to
/export/aql/csvand/export/aql/json, and/export/aqlwith aformatfield no longer answers.
Added
- Your preferences: the theme, density, reduced motion, the language, the first day of the week, how long a revealed subject id stays shown, and the keyboard shortcut hints, each kept in its own cookie.
- Older versions on an EHR’s directory reads further back than the newest ten versions, and a version reached that way restores.
- The viewer’s journeys run at a phone’s 390 px in CI beside 1440 px, and
the screenshot pass captures every route in both widths and both themes as
the
ui-route-shotsartifact (#3910). Keyboard journeys cover where the focus lands after a route change, the query builder by keyboard, and the user menu’s keyboard pattern (#2793). - The parts the FerroEHR mockups draw and FerroUI 0.3.4 now carries (#3942): Your access in the user menu; Details on the sandbox band, leading to Server’s Overview; Copy the id (or the name) in the More menus of an EHR, a directory, a composition, a party, a relationship, a template and a stored query; Save to the CDR beside Run in Query’s header; relative times in FerroUI’s words; one editor per staged change of a new contribution, with no cap of twelve; the contribution glyph; Discard that leaves a form with an empty required field, so the relationship and subscription editors mark their required fields again; the time of each point in a chart’s figures table; Your access’s grants built from the CDR’s own reading of each scope; and the How configuration works dialog on Configuration.
- The parts the FerroEHR mockups draw and FerroUI 0.3.5 now carries
(#3946): Your access reads the OpenID Connect
profilescope as the request for your profile, where it drew it refused although the CDR accepts it; a query’s exports are one Export menu; and Stored queries takes its scroll glyph in the navigation, on the dashboard and in the search’s answers. The activity charts of the dashboard and of an EHR’s contributions label their first and last day as the mockups do (22 Sep). - A template’s Download in its More menu (#3942): the stored ADL 1.4
operational template (
.opt) or ADL2 template (.adlt) as a file, read with your session from/download/template/{family}/{id}. - New contribution follows its mockup more closely (#3942): the audit section is headed Contribution audit, the committer’s placeholder names who commits when it is left empty, and Terminology takes its book glyph.
Removed
- The viewer’s Tailwind build and its own stylesheet. The viewer serves FerroUI’s stylesheet and its FerroEHR theme only; the image build no longer runs the Tailwind standalone binary.
- The EHR status’s own tag panel. A tag on the EHR status is still listed on the EHR’s Tags tab and opens the Status tab; setting one is done over the API, as the mockup has no panel for it.
- The stored-query listing’s pager: every stored query is listed, grouped by namespace.
Fixed
- The OpenPGP signing subkey is the newest one that may sign (#3967). In
[signing] mode = "pgp"the server took the first subkey in the file that any binding signature had ever flagged for signing, so a subkey added for rotation never signed, and a revoked or expired subkey kept signing. It now signs with the subkey created last among those whose newest valid binding grants signing, that have not expired, and that carry no valid revocation (RFC 9580 §5.2.1.12, §5.2.3.10, §5.2.3.13), and with the primary key when none qualifies. A certificate with one signing subkey signs as before. Upgrade: a deployment whose certificate holds several signing subkeys signs with a different one after the upgrade; every version signed before keeps verifying, since the certificate still carries the old subkey. - The OpenPGP primary key signs only when the certificate lets it
(#3969). In
[signing] mode = "pgp", when no subkey qualified to sign, the server signed with the primary key without checking it. It now signs with the primary key only when the primary key’s governing self-signature (the newest valid Direct Key signature when it carries key flags, else the newest valid self-signature on the primary User ID) carries the signing flag 0x02, neither that self-signature nor the key has expired, and no valid Key Revocation covers it (RFC 9580 §5.2.1.11, §5.2.3.10, §5.2.3.13, §5.2.3.29). A self-signature with no key flags grants no signing. When neither a subkey nor the primary key may sign, the server refuses to start and says what to change. Upgrade: a certificate whose primary key lacks the signing flag, or has expired or been revoked, and which has no usable signing subkey, no longer boots; add an Ed25519 signing subkey (gpg --quick-add-key <FINGERPRINT> ed25519 sign) and export the armored secret key tosigning.key_pathagain. Every version signed before keeps verifying, since the certificate still carries the primary key. A certificate generated with signing on its primary key, or with a valid signing subkey, loads as before. - A signing subkey stops signing when its primary key is revoked or
expires (#3971). In
[signing] mode = "pgp"the server checked a signing subkey’s own binding, expiry and revocation but not the primary key’s, so the subkey of a certificate whose primary key carried a valid Key Revocation, or had passed its Key Expiration Time, kept signing. Now no subkey signs while the primary key is revoked or expired (RFC 9580 §5.2.1.11, §5.2.3.13), and with nothing left that may sign the server refuses to start. Upgrade: a deployment whose certificate’s primary key is revoked or expired no longer boots; generate a new Ed25519 certificate (gpg --quick-generate-key "…" ed25519 sign), export its armored secret key tosigning.key_path, and list the old certificate’s public half insigning.retired_key_pathsso the versions it signed keep verifying. To keep an expired certificate, extend its primary key’s expiry (gpg --quick-set-expire <FINGERPRINT> 1y) and export it again. - The audit drain no longer loses the records it sent last when it exits
(#3959). It dropped its syslog connection without a TLS
close_notify. With the repository’s session tickets still unread, the kernel answered with a reset, which could discard the last records, with no warning. The drain now closes the connection as RFC 5425 §4.4 asks, through FerroAUDIT 0.2.5’sConnection::close(ihe-atnaandehds-logging=0.2.5), and logs and counts a close that fails. The syslog connection also sends each record at once (TCP_NODELAY).
Security
Shipped with functional changes because: only the newest release is supported (SECURITY.md), so a security-only patch cut from 5.3.3 beside the next release would be out of support the moment that release lands and give no one a release to stay on; the fix is itself a behaviour change, refusing ECDSA and Ed448 signing keys, so there is no dependency bump to ship alone.
- RUSTSEC-2026-0387 in
crypto-bigint0.5.5 (#3965,security/vex/rust-advisories.openvex.json). Its operations meant to be constant-time can branch on their operands, and the 0.5 line, whichpgpandopenidconnectstill use, has no fixed release. With ECDSA and Ed448 signing keys refused, the server runs those operations only over public keys and signatures, in verification.
5.3.3 - 2026-10-23
Fixed
- An element whose value the template leaves open keeps its FLAT path
(#3933). The web template dropped an
ELEMENTthat carries novalueconstraint, or avalueconstrained to{*}, so thevcf_reporttemplate’s “Test method” was missing from the FLAT example and a FLAT write to…/laboratory_test_result:0/test_method/text_valuewas refused as an unknown simplified path. Such an element admits any data value (AOM 1.4C_COMPLEX_OBJECT.any_allowed, ADL 1.4 “Any” constraints), so it now keeps its node with one alternative per concrete data value type, keyed by type as in the Simplified Formats CLUSTER example (…/test_method/text_value,…/test_method/quantity_value|magnitude);DV_STATEis not among them, since it has no simplified form (#3934). Web templates, FLAT and STRUCTURED examples and FLAT paths change for templates with such elements. Theopenehr-*crates move to 0.0.96. - A
DV_STATEis no longer built as a coded text from FLAT or STRUCTURED (#3934). The converter read and wrote aDV_STATEwith theDV_CODED_TEXTsuffixes, so a write built a value the RM refuses (RMdata_types§DV_STATE:value: DV_CODED_TEXT,is_terminal: Boolean) and a read emitted keys no table defines. The Simplified Formats RM mapping chapter has noDV_STATEtable, so a write that decomposes aDV_STATEnode is now refused with a422naming the node and the missing table; the node is written and read as|rawcanonical JSON, and the FLAT and STRUCTURED examples leave it out. A canonical commit’sDV_STATEis now checked against the template’s code list on itsvalue. The gap is reported upstream in #3936. Theopenehr-*crates move to 0.0.97.
Security
Shipped with functional changes because: only the newest release is supported (SECURITY.md), so a separate 5.3.2 patch published beside 5.3.3 would be out of support the moment 5.3.3 lands and give no one a release to stay on; the fix is a dependency bump with no behaviour change of its own.
ctutils0.4.5 (RUSTSEC-2026-0385, GHSA-h46f-99p9-gwvf). ItsChoicemask generation and itsu128comparisons could compile to branches on secret values; the crate sits under theaes-gcm,hmacanddigestimplementations the server uses.
5.3.2 - 2026-10-22
The v5.3.0 and v5.3.1 tags were pushed but neither release published: the v5.3.0 scan refused the container base’s ca-certificates (DSA-6572-1), and the v5.3.1 plan refused a CRA risk assessment with no revision for that base change. 5.3.2 is the same release on the rebuilt base, and no 5.3.0 or 5.3.1 artifacts exist.
Changed
-
The Rust toolchain moves to 1.99.1. The pinned channel, both container base images (digest re-resolved to the
rust:1.99.1-slim-trixieindex) and the CI job containers move together; the MSRV stays at 1.98, the toolchain minus one, the ruledocs/VERSIONS.mdnow states for the whole FerroHEALTH family. Clippy 1.99’s newassert_is_emptylint is answered at every site with anassert_eq!orassert_ne!that prints the value on failure, twofloat_cmpexpectations it no longer needs are removed, and the unit tests under the published crates’src/(and the codegen templates they are emitted from) change with it, so theopenehr-*crates move to 0.0.94 with no API change. -
The access log moves to FerroAUDIT 0.2.4 (
ihe-atnaandehds-logging=0.2.4), and the record writes again what #3897 had to drop: the token’sjtiatagent[user].policy, the ITS-REST operation id as a secondsubtype,outcomeDesc,source.type, and in the DICOM message the optionalEventOutcomeDescription,AuditSourceTypeCodeandParticipantObjectDataLifeCycle. A Basic user is recorded with no issuer and no client instead of FerroEHR’s own URN andUNKNOWN, an acting mode the deployment did not establish adds nopersonrole, the caller’s roles are written by the crate, an origin names its originating system with no invented endpoint or status, and FerroEHR’s own agent is addressed by itsserver_host. A record kept without end (retention_days = 0) says so and names no end date, a day-counted horizon is stated in days, and a horizon under three years, which only a deployment under no Union jurisdiction passes, names that horizon as the ground of its floor instead of claiming Art. 9(2). The category map takes every archetype id openEHR BASE 1.3.0 admits, a CKM draft’s.v0and the namespaced ADL 2 form among them, and compares ids as openEHR BASE asks, so the evidence keeps each id as the access named it: a template id keeps its case (records written before keep the folded form), and a stored composition’s root archetype stays in the node table’s comparison form, and the map’s digest moves once with the upgrade: records keep the digest of the map that classified them (#3902). -
The minimum supported Rust version is 1.98 (was 1.97), the version
fhir-types, pulled byihe-atna’s FHIR writer, declares. The nineopenehr-*crates move to 0.0.93 with it. -
ferrohealth-smart0.4.0 (#3895), the version every FerroHEALTH product pins. The refusal statuses and challenges do not change. -
The access log is written through the FerroHEALTH products’ shared audit crates (#3887). The EHDS access record, the Art. 14(1) categories and their classification, the Art. 9(2) retention floor and the Art. 11(5) emergency mark come from
ehds-logging0.1.1, and the BALPAuditEvent, the DICOM audit message, the syslog sender and the ATX: FHIR Feed client fromihe-atna0.1.1 (FerroAUDIT). FerroEHR still decides which accesses are logged, what each record says and where it is stored. -
[audit.categories]names categories by their HL7 Europe codes. A priority category isPatient-Summaries,Electronic-Prescriptions,Electronic-Dispensations,Medical-Imaging,Laboratory-ReportsorDischarge-Reports, or<system>|<code>; a national category is declared in the newnationallist as<system>|<code>; a key of no category maps to the word"none"instead of["none"]. The old spellings (patient-summary,test-results,national:<code>and the others) refuse boot. The Helm chart’sconfig.audit.categoriestakes the same values (chart 13.0.0). -
A stored access record names each category by its
<system>|<code>token, andcategory_basissays what the classification was read from:returned,written,queriedorresource-kind(audit migration 0012). Records written before keep their spellings. Evidence ids are stored in the case-folded form the map is read in. A query whose constraints name an id the map does not hold, or bind no id to a content operand, is now recordedunclassifiedbeside the categories that did map. -
The retention register keys a period on the category token (clinical migration 0016).
PUT {base}/admin/retention/policytakes a category as[audit.categories]names it and stores the token; periods keyed on a priority spelling move to its token, and a period keyed on anational:<code>spelling refuses the migration until it is declared again. -
The FHIR
AuditEventfollows the BALP 1.1.4 patternsehds-loggingandihe-atnawrite. The person is theagent:userslice (the token’s issuer and subject, the professional’s identifier asihe-otherId, the assurance level asihe-assuranceLevel), the client application an agent of its own, the organisation a logicalOrganizationreference; the categories, the retention, the security labels and the origins ride inehds-categoriesandoriginentities; the emergency mark is theehds-emergency-accessentity; a query’s subtype issearch. The token’sjtiagent, the ITS-REST operation-id subtype, theoutcomeDescand the audit source type are no longer written. -
The DICOM audit message is written without a byte order mark,
EventOutcomeDescription,AuditSourceTypeCodeorParticipantObjectDataLifeCycle(ITI TF-2 §3.20.4.1.2).
Removed
- The UDP syslog transport (
[audit.syslog] transport). The syslog feed sends RFC 5424 over RFC 5425 TLS only, on port 6514 by default, and atransportkey refuses boot. Theaudit_syslog_udpdeployment gap is gone with it.
Fixed
-
A
+in a query-string parameter is read as a space (#3891). Every query parameter the REST API reads,qofGET /query/aqlincluded, is decoded asapplication/x-www-form-urlencoded(WHATWG URL Standard §5.1):+and%20are a space and%2Bis a literal plus. A form-encoded AQL query that wrote its spaces as+was refused with a 400 before. A client that sends an unencoded+meaning a plus, such as a time-zone offset, encodes it as%2B, as RFC 6570 form expansion and form encoders already do. -
An
xsi:typethe XML schemas do not define is refused with an error that names them (#3892). An OPT 1.4 upload whose constraint node carries a type outside the ITS-XML OPT 1.4 schemas (Template.xsd,OpenehrProfile.xsd,Archetype.xsd), such asT_ARCHETYPE_ROOTin place ofC_ARCHETYPE_ROOT, answers 422 with a message saying that those schemas define no such subtype. The RM and AOM2 XML readers name their schemas the same way. The refusal itself is unchanged. -
A Basic request the verified-credential cache admits writes no ATNA login record (#3895). Since the move to
ferrohealth-smart0.3.1 every Basic request was marked a fresh authentication, so withsuppress_login_events = falseeach one wrote a login record (DICOM PS3.15 §A.5.1,EventID110114). The crate’sCaller::cachednow tells the cache hit apart: one login record per credential verification, as[auth.basic] cache_ttl_secondsdocuments. -
A lookup by subject no longer echoes the subject id (#3906). The
404ofGET /ehr?subject_id=…&subject_namespace=…for a subject with no EHR, and the message extension’s refusal for an unknownsubject_id, named the identifier, a national patient number in many deployments. Both now name only the namespace or the parameter. A test drives the lookup under a subscriber that records every log line and span attribute and asserts the identifier reaches none of them; the request log and traces already recorded the path and route without the query string. The book’s Security page says that the identifier travels in the URL and that a proxy in front of FerroEHR must not log query strings. -
An archetype that fills two slots under different names gets the right path id in each (#3920). The web template took a slot fill’s name from whichever fill of the same archetype came first, so in a template that fills
openEHR-EHR-CLUSTER.reference_sequence.v1once as “Genome assembly” and once as “Reference sequence”, both fills were namedgenome_assemblyand a FLAT path through the second, such as…/genomic_substitution_variant/reference_sequence/source_name, was refused as an unknown simplified path. Each fill now takes its node id from its own root term (ITS-REST Simplified Formats, Node ID Generation Rules). Web templates, FLAT and STRUCTURED examples, and FLAT paths change for templates that fill one archetype under two names. Theopenehr-*crates move to 0.0.95. -
<root>/context/start_timesets the history origin and event times (#3919). A FLAT composition that gave its start time by path, withoutctx/time, stored that start time but timed every untimed observation history and event with the commit time. The path spellings…/context/start_time,…/context/_end_time,…/context/_locationand…/context/settingnow feed the same defaults asctx/time,ctx/end_time,ctx/locationandctx/setting(Simplified Formats,ctx/vocabulary and RM mappings, EVENT_CONTEXT). An explicitctx/key still wins for the defaults. -
A date or time pattern refusal says which parts are required, optional or not allowed (#3918). A value that breaks its template’s date, time or date-time pattern used to be refused with only the pattern, such as
yyyy-mm-ddTXX:XX:XX, which reads as a match to anyone who takesXXfor two digits. The refusal now names the parts in words (“the template allows a date only; a time is not allowed here”, “the template requires the second, which the value lacks”) and ends with a key to the pattern symbols. The book’s Templates & validation page explains them. -
A stored composition’s archetype id keeps its case in the access log (#3908). The access record named a stored composition’s root archetype in lowercase, so a read of an
openEHR-EHR-COMPOSITION.report.v1composition recordedopenehr-ehr-composition.report.v1as its evidence, while template ids and ids taken from AQL text kept theirs. openEHR BASE asks identifiers to be case-preserving through persistence and case-insensitive in comparison (Composite Identifiers and Case). The node table keeps the lowercase id only as its comparison key beside the stored fragment, which has always held the id as written; the access log now reads the id from the fragment, so the evidence names the archetype as the composition wrote it, and AQL predicates and the category map still match in any case. Records written before keep the lowercase form.
Security
Shipped with functional changes because: only the newest release is supported (SECURITY.md), so a separate 5.2.1 published beside 5.3.2 would be out of support the moment 5.3.2 lands and give no one a release to stay on; the fix is a dependency and base-image bump with no behaviour change of its own.
rustls-webpki0.103.16 andwebpki-roots/webpki-root-certs1.0.10 (RUSTSEC-2026-0381, RUSTSEC-2026-0382, RUSTSEC-2026-0383, GHSA-pmpg-vfwr-99qv). The outbound TLS client no longer accepts certificate paths through the distrusted emSign intermediates.- The
ferroehrandferroehr-viewerimages move to the distroless base withca-certificates20250419+deb13u1 (DSA-6572-1, GHSA-pmpg-vfwr-99qv, #3926). The system trust store no longer holds the compromised eMudhra (emSign) intermediates; it is the only package that differs from the previous base.
5.2.0 - 2026-10-20
Added
-
[smart] issuer_metadata_filesupplies the metadata of ajwks_fileissuer (#3875). It names a JSON file with the RFC 8414 §2 metadata of the first[auth]issuer, read at boot, so a server whose key set is a file can serve the SMART discovery document with atoken_endpoint. The metadata must name that issuer and every endpoint in it must behttps(a loopback host excepted); a file set for an issuer whose metadata the server fetches refuses the start. -
An authorised, audited read of a party’s protected national identifiers (#3776).
GET {base}/admin/party/identifiers?version_uid=…serves a party version with the identifiers[demographic.identifier_protection]seals put back to their values, a historical version included. It needs the admin role and the new[authz.rbac] identifier_reader_role; unset, nobody may call it. Every read writes one access record per scheme expanded, naming the reader, the party and the scheme, never the value. -
The EHDS Art. 8 restriction of access by health professionals (#3682). On the person’s instruction the controller records a restriction with
POST {base}/admin/access-restriction, for a whole EHR or one versioned object (GETreads the register,POST …/liftlifts it). Restricted data then reads as absent to every professional route, query and export: a restricted composition or EHR answers404as an unknown one does, queries and exports leave it out, a CONTRIBUTION lists none of its versions, the event stream withholds it, and a write to it is refused as a write to an unknown target. A whole-EHR restriction covers data recorded after it. The admin routes still see everything, and nothing is deleted. A caller holding the new[authz.rbac] emergency_access_rolethat declares one of[audit] emergency_purpose_codesreads restricted data (EHDS Art. 11(5)), and its access record carries the emergency mark. Two migrations add the register and the marks (clinical/0015_access_restriction.sql,party/0011_access_restriction_column.sql).
Changed
-
Authentication runs on
ferrohealth-smart0.3.1 (#3875). The crate now holds what FerroEHR kept around it: the cache of verified Basic credentials, the RFC 6750 §2.1b64tokencheck, the refusal of a blanksuband the redacted rendering of[auth]. What changes for you:[authz] basic_cache_ttl_secondsis now[auth.basic] cache_ttl_seconds(FERROEHR__AUTH__BASIC__CACHE_TTL_SECONDS), and its default is0, which checks every request. Set60to keep the former behaviour. The old key is an unknown key and refuses the start.[auth] scopeless_subjectsis accepted: a listed subject whose token carries no resource scope meets every SMART on openEHR requirement, and a token that carries scopes gets only its scopes. It refused the start before.- A bearer token outside the
b64tokenalphabet answers401witherror="invalid_token"(RFC 6750 §3.1: a malformed token). It answered400 invalid_requestbefore. A header that is no scheme and credential, and twoAuthorizationheaders, still answer400. - A rendered configuration (
ferroehr config check,/management/env,ferroehr report) writes a Basic password hash as[redacted]. - With
[audit] suppress_login_events = false, every request a Basic credential authenticates writes a login record, since the credential is checked on each request. Before, only a request that missed the cache did. - The Helm chart is 12.1.2; its values document the two keys.
-
An EHR extract never carries a protected national identifier between deployments, and the refusal says what to do instead (#3777). Importing a party whose identifier another deployment sealed answers
422naming the remedy: import the extract without the party and register the person through the receiving deployment’s party API, which seals the identifier under its own key. The book’s EHR Extract page records the decision and the steps.
Fixed
- A FLAT OBSERVATION without a history origin takes the earliest event’s
time (#3888,
openehr-sdt0.0.91). Simplified Formats master05 §OBSERVATION says/history_origin“will be set to the time of the earliest event if not explicitly set”; the builder used the composition’s context time. Times are compared as instants across offsets,ctx/history_originstill wins, and with no event time the context time stands.
5.1.0 - 2026-10-20
Added
-
The Helm chart mounts a database CA for
sslmode=verify-full(#3788, chart 12.1.0).database.caConfigMapnames a ConfigMap holding the CA the database certificates chain to (keydatabase.caConfigMapKey,ca.crtby default); the server, the migration Job and the backup CronJobs mount it at/etc/ferroehr-db-ca, where a DSN’ssslrootcertnames it.values-production.yamlsets it toferroehr-db-caand tells you to end every DSN in?sslmode=verify-full&sslrootcert=/etc/ferroehr-db-ca/ca.crt. -
A demographic query joins a party to the content of its EHR (#3831).
FROM PERSON p CONTAINS EHR e CONTAINS COMPOSITION c(withORGANISATIONorROLEas the root too, and party classes beside theEHRin anAND) answers a row per party and clinical row of an EHR that party is the subject of, through the party-to-EHR map. It runs as one statement per database credential, joined, ordered and paged by the server; a column,WHEREcondition orORDER BYkey reading both sides, an aggregate,DISTINCT, and a half abovequery.max_result_rowseach answer400. The party read and the map read each leave an access record in their own domain. -
The audit feed and the remote policy service authenticate with OAuth 2.0 client credentials (#3829).
[audit.fhir_feed.oauth]and[authz.abac.remote.oauth]take a client-credentials grant (token_urlorissuer,client_id,client_secretorclient_secret_file,client_auth,scope,audience,resource). The server sends the token as a bearer credential, renews it before it expires, and fetches a new one once when the upstream refuses it with401. A policy service that cannot be reached with a token fails the request closed. HTTP Basic through the URL stays, and setting both is a startup error. -
AQL rooted at
PERSON,ORGANISATIONorROLE(#3818), the subset of the experimental AQL demographic extension a client needs to find a party by what it holds.POST /query/aqlanswers rows over the latest version of each party, leaving out logically deleted ones, with paths inside the party inSELECT,WHEREandORDER BY(itsdetailstree, itsidentities,contactsandcapabilities,p/uid/value),CONTAINS CLUSTERand the other content classes inside a party, named parameters, and theoffsetandfetchpaging. It runs under the authorisation of a Demographic API read, on the demographic database credential.GROUP,AGENT,PARTY_RELATIONSHIP, a demographic class below the root,EHRor clinical content anywhere but directly under the root, and anehr_idscope each answer400naming the construct. -
openehr-sdtvalidates a party against its template (#3832).rm_instance::validate_partyruns the RM-invariant and terminology passes with the template’s party class (PERSON,ORGANISATION,GROUP,AGENTorROLE) as the root type, then the archetype-conformance pass over the template, so a party missing a mandatory element is refused at that element’s path. A template rooted at another class is refused at/. The nineopenehr-*crates move to0.0.90.
Changed
-
Authentication and SMART on openEHR run on
ferrohealth-smart0.2.0 (#3872). This is a breaking change to the configuration with no deprecation period.[auth.oidc]is gone: the token issuer is configured in[auth]itself (issueror[[auth.issuer]],audience,algorithms,token_profile,clock_skew_seconds,jwks_max_age_seconds,jwks_refresh_interval_seconds,jwks_file,timeout_ms,realm). The server reads each issuer’s metadata and key set at boot, accepts only asymmetric algorithms, requirestyp: at+jwtunder the defaulttoken_profile(RFC 9068 §4), and answers every invalid token with one401that names no reason. An issuer on plainhttpis accepted only on a loopback address. A Basic user isuser,password_hashorpassword_hash_file, andscopes; its roles move to[authz.rbac.basic_roles], and the verified-credential cache to[authz] basic_cache_ttl_seconds.[auth.oidc.assurance]and[auth.oidc.professional]become[authz.assurance]and[authz.professional]. -
Every route enforces its SMART on openEHR scope whenever
[auth]is on (#3872). There is no switch any more: an EHR, composition, directory or contribution route needs acomposition-scope, a template route atemplate-scope, a query anaql-scope, the ADMIN API the[auth] product_scope(default__ferroehr.platform), and the DEMOGRAPHIC API a client listed in[smart] demographic_clientsor the product scope. A credential without the scope gets403with theinsufficient_scopechallenge. Apatient/grant counts only for an issuer in[smart] patient_issuersand is bound to the EHR the token’sehrIdclaim names; asystem/aql-*grant counts only for a client in[smart] backend_clients. -
The SMART configuration document is built from the issuer’s metadata (#3872).
[smart] enabledserves it, needs an issuer whose metadata names atoken_endpoint, and lists only theauthorization_codeandclient_credentialsgrants and theS256challenge method. Itscapabilitiesandscopes_supportedcome from[auth] capabilitiesand[auth] scopes_supportedbeside what the server enforces. -
The terminology client fetches its client-credentials token through
ferrohealth-smart(#3872). The[terminology.external.oauth2_clients]keys are unchanged. -
The Helm chart and the compose files follow the new keys (#3872, chart 12.0.0). The chart’s Basic users are keyed by
user, and the CDR credential FerroBRIDGE uses is HTTP Basic only. -
The Keycloak overlay and the development stack serve Keycloak’s issuer over TLS (#3873). A one-shot
keycloak-tlsservice generates a development CA and Keycloak’s certificate on the firstup, Keycloak serves the issuer athttps://keycloak:8443/auth/realms/ferroehr, and the CDR trusts that CA throughSSL_CERT_DIRwithtoken_profile = "jwt", so a Keycloak token is accepted again. Both realms put the SMART on openEHR scopes and the product scope into every token. The token call on port 8081 is unchanged. -
The viewer takes FerroUI 0.2.0 and reads every word it draws from its catalog (#300, #3860). The labels it hands FerroUI (table captions, column headers, pager nouns with their plurals, navigation, tabs, fields, dialogs, toasts) are looked up in
locales/en/ferroehr-viewer.ftlat run time, and the stray-literal baseline drops from 1918 to 505 literals. English remains the only locale.
Removed
- The HMAC token key and the static bearer token (#3872).
hmac_secretandhmac_secret_fileare unknown keys, as are the inlinejwks_jsonkey set andallow_insecure_issuer; the Helm chart dropssecrets.authOidcHmacSecretandbridge.cdr.auth. Machine-to-machine callers authenticate with HTTP Basic or an OAuth 2.0 client-credentials token from the issuer. Only the asymmetric algorithms RFC 9068 §4 names verify a bearer token, so a token signed with a shared secret is refused. [smart] ehr_id_claim,patient_claim,require_smart_scopesand[smart.endpoints](#3872). The launch context is the token’sehrIdclaim, enforcement is always on, and the discovery document’s endpoints come from the issuer’s metadata.[auth] scopeless_subjectsis refused at boot (#3872), because a SMART on openEHR requirement admits no caller without scopes.
Fixed
-
A TDD keeps two same-archetype siblings told apart by name apart (#3833). Converting a TDD of a template whose events (or other compacted nodes) share an archetype node id and differ by name, such as a
Baselineand aFollow upevent, now builds two nodes, each with the content the TDD spells out under its own element, where it used to merge them into one. -
A rotated mTLS client CA takes effect without a restart (#3769).
[server.tls] client_ca_fileis re-read everyreload_interval_secs, as the certificate and key already were, and a changed CA verifies every new handshake; a file that fails to load is logged and the previous CA stays in force. -
An unmounted path outside the API answers
404(#3834). Withserver.swagger_uiatprivateoradmin_only, the documentation guard wrapped every unmatched path, so/.well-known/smart-configurationon a server with SMART off answered401, and the viewer’s System screen said the CDR refused the session. The guard now covers the documentation routes only, and the viewer shows SMART as not enabled. -
Four viewer layout defects (#3841). The Create EHR id field’s placeholder reads “UUID, or blank” and fits; the audit log’s From and To filters take a wider share of the row so an instant shows whole, its Event column keeps “REST · E” on one line, and an opened record scrolls inside a narrow box instead of widening the page. The book captures are taken with reduced motion, so the results Table/Chart toggle no longer shows mid-fade.
-
The OpenAPI family titles carry no em dash (#3865). The served documents and the viewer’s family selector read “FerroEHR: Messaging”, “openEHR: EHR” and so on.
-
No viewer string carries an em dash (#3860). The query builder’s template choice reads “Any template”, an absent value reads “(no value)”, and the hints, notes and form errors that used a dash use a colon or a full stop.
5.0.0 - 2026-10-19
Added
openehr-sdtbuilds a canonical PARTY from a party Web Template (#3810).flat::build::build_party(andflat::convert::party_from_flat/party_from_structured) turns a FLAT or STRUCTURED document of aPERSON,ORGANISATION,GROUP,AGENTorROLEtemplate into the party, with every list attribute of the demographic package (identities,contacts,addresses,capabilities,roles,languages,relationships) built as an array, no composition attribute, and a refusal for actx/key. A ROLE takes itsperformerfrom<root>/performer|id,|namespace,|typeand an optional|id_scheme. The result is decoded as the root class before it is returned, so a party the RM refuses is reported as an error. Simplified Formats define FLAT for compositions only, so this is FerroEHR’s own extension over the same template walk.flat::build::build_rootis the same walk for any non-COMPOSITION root, andflat::example::example_root_instancegenerates an example instance of such a root class for validation and tests.- The openEHR terminology serves
interoperability(672) as a term mapping purpose (#3838, SPECTERM-31):TERM_MAPPING.purposevalidation accepts it, and the terminology endpoints list it in all five languages. - The
openehr-sdtbuilders stamp theARCHETYPED.rm_versionthe caller chooses (#3809).flat::build::BuildOptionscarries it intobuild_composition_with,build_partyandflat::tdd::from_tdd_with;build_compositionandfrom_tddkeep stamping1.2.0.
Changed
- The viewer draws with FerroUI 0.1.7 and is ready for more languages,
English the one that ships (#300). FerroUI’s words and the viewer’s come
from Fluent catalogs, the viewer’s under
app/ferroehr-viewer/locales/, so a language joins as a catalog file with no code change. The locale is chosen once per request, the best language ofAccept-Languagethe viewer’s catalog holds or else the new[ui] locale(defaulten), and the page writes it as<html lang>.scripts/checks/stray-literals.shfails CI on a viewer string outside the catalog beyond the per-file baseline the remaining strings hold while they move. - A structure the Web Template compacts away (an
ITEM_TREEunder a party identity or an ENTRY, for example) is rebuilt with the name its term definition gives instead of its at-code (#3810). - The nine
openehr-*crates move to0.0.89. - Only the newest release is supported (#3853). 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. If you are
not on the newest release, upgrade; upgrading is free. Under the Cyber
Resilience Act, Cadasto B.V. commits to keep publishing security fixes for at
least five years after each release (Art 13(8)) and ships them only in the
newest release (Art 13(10)).
SECURITY.md, the release notes and the compliance pages say so in place of a five-year support period per release. The end month of that commitment stays on the boot banner, inferroehr --versionand in the management documents; the banner line now readsnewest release only; fixes published until the end of <month>. - Archetype identifiers follow the BASE 1.3.0 grammar under the
developmentprofile (#3835, #3845). The namespaced ADL 2 form (org.openehr::openEHR-EHR-OBSERVATION.blood_pressure.v2.1.4, with an optional-rc,-alphaor-betamodifier and build count) is accepted wherever anARCHETYPE_IDis read, andopenehr_base::v1_3::ArchetypeIdgainsnamespace(),minor_version()andpatch_version(). A namespaceless identifier with a full version stays accepted, because AM 2.4.0 artefacts carry it (the conflict is reported upstream, #3844); every other identifier the grammar refuses, such as a malformed namespace or version modifier, is refused naming it. Thestableprofile keeps BASE 1.2.0’s grammar.
Fixed
- The viewer serves its hydration bundle on a route of its own (#3849).
A
/pkg/file the bundle lacks answers404and a read failure500, each logged with its path and status; neither reaches the rendered app or the sign-in redirect any more, which had answered a browser302for its own WebAssembly and failed theui-e2ejourneys. - The template example endpoints answer
400 Bad Requestnaming the root for a template whose root is not a COMPOSITION (an OBSERVATION or a SECTION), instead of an object carrying COMPOSITION members its class does not have (#3780). The200body the specification defines is an instance of a versioned-object class, which such a template does not describe. - Same-archetype siblings told apart only by name (two EVENTs
BaselineandFollow upof one archetype node, for example) stay two nodes when a FLAT or STRUCTURED document builds, so the example of such a template passes the server’s own validation (#3779).
4.3.11 - 2026-10-19
Changed
- The viewer draws in FerroUI, the shared FerroHEALTH component library
(#3802). The shell, the navigation, the theme toggle, the tables and their
pager, the dialogs, the access side panel, the upload field, the charts, the
document panes with their copy button, the tabs, the tree, the toasts, the
alerts, the loading skeletons, the buttons, fields, cards and empty states,
the icons and the document highlighter come from
ferrohealth-ui, the library FerroBRIDGE, FerroFED and FerroTERM share;thaw,leptos-useandleptos-chartistryare gone. The viewer keeps its teal and slate. The moon and sun button in the top bar switches between dark and light, the viewer follows the operating system until you press it, and the choice is a server cookie the server writes on the page, so the first paint is already in your theme and nothing is kept in browser storage. The Content Security Policy drops'unsafe-inline'fromstyle-src: the stylesheets are the viewer’s own files. A listing that can show patient data (the demographic tags, the EHR tags) keeps its page in the screen and out of the URL; the other listings keep?page=(now counted from 1) and?size=in the URL. Fields in a row share its width, every key and value list is one definition grid, a page’s delete action sits on its title row, the query builder’s controls, labels and output choice are FerroUI’s, an EHR’s subject shows once in its header, a tag table drops an empty target-path column, and a refusal no longer repeats “forbidden”. Every JSON or AQL input (the party documents, the EHR statusother_details, the composition editor, the directory JSON, the staged change, the relationship details, the AQL editor and its parameters, and the template upload) is a highlighted, numbered editor that opens on an indented document, and on a phone every listing shows each row as a card with every column named. Every timestamp reads as “2026-10-18 23:18:37 UTC” on one line, with the exact value the CDR sent in its tooltip. - The viewer moves to FerroUI 0.1.4 (#3811). Every timestamp, the build date on the Operations screen included, is drawn by FerroUI’s shared timestamp, the same in every FerroHEALTH console. On a phone the dashboard and Operations figures are compact tiles with the glyph, the number and the label on one line, a field and its button stack with the button on its own line, and a disabled field keeps its edge in the dark theme.
- The viewer moves to FerroUI 0.1.5 (#3815), in step with the other FerroHEALTH consoles. The screens look the same: 0.1.5 adds a per-row form field and a header title the viewer does not use yet, and its browser half no longer asks for a wasm-bindgen of its own.
- The viewer moves to FerroUI 0.1.6 (#3820), in step with the other FerroHEALTH consoles. The screens look the same: 0.1.6 adds the shared field shapes the other consoles needed, and every viewer field already draws through the library since #3819.
Fixed
- On a phone the CDR status pill no longer covers the FerroEHR mark in the top bar (#3812). The pill shows from a 64rem window up, where the top bar has room for its full words.
- The viewer shows the FerroEHR mark as its tab icon and answers
/favicon.icowith it, instead of a404on every page load (#3808).
Security
Shipped with functional changes because: no shipped artefact is affected (the VEX statements below record why), so there is no security update to separate from the viewer changes this release carries.
cargo denypasses again: the viewer’s WebDriver test client no longer reaches zip 8.6.0, and the three zip extraction advisories (RUSTSEC-2026-0367, RUSTSEC-2026-0368, RUSTSEC-2026-0369) are recorded as not affecting FerroEHR in the Rust-dependency VEX document, since the one remaining carrier, utoipa-swagger-ui’s build script, never calls the extraction APIs they concern (#3806;security/vex/rust-advisories.openvex.json).
4.3.10 - 2026-10-16
Changed
-
The usage report moves to FerroPULSE report format 2 (#3795).
schemais2;spec_profile,db_ok,migrations_okandpostgres_majormove into astatusobject on both reports; the dailymetrics.window_24hholdsgroups(the eight endpoint groups andaql, each with p50/p95/p99, 5xx count and histogram) andcounters(aql_executions,aql_slow). The report carries no new information.ferroehr usage-report --printprints the new body, and the book’s usage report page lists every field. -
The admin dump and load archive is written and read with zip 9.0.4 (#3798). The zip maintainers yanked every 8.x release, including the 8.6.0 that
POST {base}/admin/dumpandPOST {base}/admin/loadused. Nothing changes for you: the routes, the archive layout and the compression are as before. The build still unpacks the vendored Swagger UI with zip 8.6.0, because noutoipa-swagger-uirelease accepts zip 9 yet; that copy runs only at build time and is not part of the server binary.
Fixed
- The usage report is off in CI (#3794). A server started inside a CI job
reported itself to FerroPULSE like a deployment. When
GITHUB_ACTIONSorCIistrueor1in the server’s environment, the server now sends no usage report and stores no instance id, whateverusage_report.enabledsays, and the boot line readsusage report OFF: CI detected (<variable>). Outside CI nothing changes: the report stays on by default and the switch turns it off.ferroehr usage-report --printstill prints in CI and says on stderr why the instance sends nothing.
4.3.9 - 2026-10-15
Added
-
openehr-queryrenders a column path with its variable (#3782).IdentifiedPath::column_path_with_variablegivesc1/uid/valuewherecolumn_path_textgives/uid/value, so a federation gateway can keep two variables of one class apart inRESULT_SET.columns[].path. FerroEHR’s own result sets are unchanged. -
The Helm chart deploys FerroBRIDGE beside the CDR (#3713, chart 11.1.0).
bridge.enabled=trueinstalls FerroBRIDGE 0.0.5 (pinned by digest) as its own workload under the same Restricted security context, with itsconfig.tomlpointed at the release’s CDR Service, its CDR credential read from the Secret named inbridge.cdr.existingSecret, its mapping files frombridge.mappings.existingConfigMap, and its terminology server set to the chart’s FerroTERM whenterminology.enabledis on. FerroBRIDGE authenticates no caller yet (FerroHEALTH/FerroBRIDGE#400), so the chart keeps it cluster-internal: a ClusterIP Service, no Ingress, and a NetworkPolicy that admits only the peers inbridge.networkPolicy.ingressFrom; an empty list or an admit-everything peer is refused. The image is listed inartifacthub.io/images, so Artifact Hub scans it. -
AQL reads variables declared inside an
ORcontainment branch (#3736).CONTAINS (OBSERVATION o[...] OR EVALUATION ev[...])with paths throughoandevinSELECT,WHEREorORDER BYanswers one row per match, with null for the branch that did not match, and both branches matching pair up; it was refused with “not supported yet”. A branch that is its own versioned object (EHR e CONTAINS (COMPOSITION c1 OR COMPOSITION c2), or a composition a FOLDER references) reads the current, unrestricted, undeleted version with itsuid(#3745). Reading a variable declared underNOT CONTAINSis refused with a named400. -
An admin route physically deletes one demographic party (#3683).
DELETE {base}/admin/party/{party_id}removes the party and its relationships (SMphysical_party_delete), admin-gated and recorded like the EHR physical delete. It is our own extension; no ITS-REST operation governs it. -
A live probe of
values-production.yaml(#3692).scripts/deploy-probe-k8s.sh --production-onlyinstalls the production overlay against four PostgreSQL clusters, one per storage domain, and checks that the server boots and that it refuses when domains share a cluster;--render-checkruns without a cluster. The probe runs on kind with podman as well as Docker. -
openehr-its: a bound on the bytes the REST client reads of one answer (#3600).ReqwestTransport::with_max_body(limit)refuses a body whose declared length is past the limit without reading it and cuts a chunked body off at the limit; the call fails with the newClientError::AnswerTooLarge, which carries the answer’s status and is never retried. -
[authz.abac] patient_namespace(FERROEHR__AUTHZ__ABAC__PATIENT_NAMESPACE, #3771): the subject namespace patient-claim ids are issued in. When set, a claim names the EHR subject with that id in that namespace; when unset, an id held under two namespaces matches no EHR.
Changed
-
The release pipeline checks the linkage the OS VEX statements rest on (#3694). Each statement that argues from what the binary loads now carries that linkage as data (the needed libraries, the loader, the imports it rules out), and the release lane refuses a
ferroehrorferroehr-viewerbinary, on either architecture, that needs another library or imports a function a statement rules out. -
openehr-its: the template-example response body is typed (#3549).definition_template_adl1.4_example_getanddefinition_template_adl2_example_getanswer a_type-dispatchedTemplateExampleRetrievedBodyover their eight RM classes instead of untyped JSON. The duplicate XSD treeschemas/xml/components/, which no code read, is removed (#3753). -
The vendored openEHR specifications move to current upstream (#3716, #3717, #3718, #3719, #3720, #3721, #3723). BASE, RM, AM, TERM, LANG, CNF and the ITS-JSON docs follow upstream master, as the development generations are pinned; upstream agent files (
CLAUDE.md) and build tooling (development/) are no longer vendored. ITS-XML stays on its release tags, and the spec-update watcher now reads a tag pin as one (#3722). The generator’s inputs (BMM, ITS-JSON schemas, ITS-XML XSDs, ITS-REST OAS) are fetched byscripts/vendor/codegen-inputs.sh, which CI runs with--check. -
TERM 3.1.0 amendment 3.1.4 (SPECPR-450) (#3717, #3727). Template upload accepts a
DV_QUANTITYconstrained to the properties 761–765 (flow rate per area, volume per area, mitotic count, length per area, concentration per volume), and FLAT/STRUCTURED quantity validation knows their units (mg/m²,mm/m²,ng/mL/cm³,μg/L/cm³); a unit filed under a different property is refused under 764 and 765. -
AQL result row counts change for paths through repeated nodes (#3733, #3734). A
SELECTpath through a repeated step returns one row per node where it returned one row with an arbitrary node’s value; a whole-object projection of an absent path keeps its row with a null cell; a path step no longer reaches past its direct child, soc/content[...]does not find an entry inside a SECTION. Clients that counted rows per composition need to group them. The rules are under Fixed. -
An AQL text that does not tokenise names the pass in its
400(#3684). The body readsinvalid AQL: the query could not be tokenised: <lexer diagnostic>, and a stored query the same after its own prefix; the diagnostic is unchanged. Bearer-token refusals log which check refused the token and its cause, each once; the401body is unchanged. -
The conformance pipeline fetches Veredictum from its new home (#3594),
https://github.com/Vernum-Projecten/Veredictum.
Security
Shipped with functional changes because: the patient-scope fix (#3771) is built on this release’s rewritten AQL row bindings, the per-version identifier rows (#3772) and the audit digest version 2 (#3686) need this release’s party and audit migrations, and the runtime-role grants need its new bookkeeping migrations, so a security-only patch from the v4.3.6 tag cannot carry them.
-
Protected national identifiers stay protected on every path (#3772, GHSA-4w9c-h7v6-xmh2). A party create or update response no longer echoes the plaintext identifier: with protection on it is the stored version, carrying the reference a later read serves (relationship write responses also serve the stored form under multimedia offload). An EHR extract or an admin load whose party carries a protected identifier in plaintext is refused (
422, or a per-container failure for a load), because an importedORIGINAL_VERSIONstays a faithful copy (RM common §Copying). Admin dump archives carry the sealed rows as ciphertext only, and a load restores them under the same deployment key. Physically deleting a party removes every sealed row of the party and its deleted relationships. A scheme in[demographic.identifier_protection].schemesthat the database registry does not hold is refused at boot. The served OpenAPI declares the409and the identifier422cases on the party create and update operations. -
The runtime roles can no longer write their migration bookkeeping (GHSA-jf68-mmp7-grjf). The shipped grants on every table of a domain schema covered its
_sqlx_migrations; new migrations (clinical 0014, party 0009, linkage 0005) leave the runtime roles SELECT only, and the server refuses to start while a runtime role can write a bookkeeping table. The boot check of database grants now runs in every database a domain pool reaches, so a domain in its own database is no longer left unchecked. -
ABAC patient scoping covers queries that read only the EHR row (#3771, GHSA-xqc2-gwmg-jhmg). With
[authz.abac]on,SELECT e/ehr_id/value FROM EHR e,COUNT(*) FROM EHR e,e/ehr_status/...paths,EHR e CONTAINS (A OR B)and anehr_id-scoped query naming another patient’s EHR returned EHRs of other patients. The patient scope now applies to the EHR row and to every versioned object, on every query plan; the policy-decision post-check runs for those queries too, and a subject id held under two namespaces admits neither EHR, since the patient claim carries no namespace. A touched EHR or template id that cannot be read fails the query instead of being left out. The direct EHR, composition and status routes apply the same rule: an EHR that records no subject, or whose subject id another namespace also holds, answers403to a caller with a patient claim. The query policy check now receives the subjects of the touched EHRs as its patient attribute, so a patient-keyed rule applies even without a configured claim, and it sees the EHR_STATUS template one/ehr_status/...paths. -
The viewer’s Basic sign-in follows only a same-origin
next(GHSA-23g2-35q8-43rq). After a successful or refused sign-in, an absolute, scheme-relative or backslash destination lands on the dashboard instead (an open redirect). -
rustls 0.23.46 (GHSA-wjr5-jv48-6hf2) closes RUSTSEC-2026-0346, -0347, -0348 and -0349. Of the four, RUSTSEC-2026-0349 reached FerroEHR’s TLS clients; the other three need a custom session store, Encrypted Client Hello or the
brotlifeature, none of which FerroEHR uses. -
An unresolvable signing key set no longer discloses the identity provider’s URLs (#3666, GHSA-rch2-2r9h-cjwv). The
503names only the failed step (issuer URL, OIDC discovery, key-set fetch or read); it quoted the transport error, which named the provider’s discovery and JWKS URLs. The cause is still logged. -
ehr_access_default = "restricted"holds with RBAC off (#3742, GHSA-rhf2-6x3j-6qrh).[authz.rbac] ehr_access_default = "restricted"was ignored when[authz.rbac] enabled = false, leaving every EHR withoutACCESS_CONTROL_SETTINGSopen on its path and in AQL, while the deployment posture check stopped reporting the open default. The default is now enforced with RBAC on or off. With[auth] enabled = falsethe combination is refused at boot, since no caller carries a role. A new deployment gap,rbac_off, is reported when authentication is on and the RBAC gate is off;productionrefuses it unless it is accepted by name.[authz.rbac] role_claimsnow applies to role extraction with RBAC off as well. -
The audit hash chain covers every column of an access record (#3686, GHSA-29xh-548g-g2mq). Digest version 2 hashes every column (purpose, legal basis, categories, assurance level and value, professional, the emergency mark and the rest), so a change to any of them shows in
audit.verify_audit_chain(). Records written before the upgrade keep verifying under version 1, and the verifier reports a record moved back to an older digest version. A test fails when a migration adds a column the digest does not cover.
Fixed
-
The release pipeline accepts an arm64 program as built. The VEX linkage check required the dynamic loader in
DT_NEEDED, where glibc lists it on amd64 and not on arm64, so it refused both arm64 binaries. It now matches the declared loader against the program interpreter (PT_INTERP) and accepts it inDT_NEEDEDwithout requiring it. Thev4.3.7tag carries this content without the fix, and thev4.3.8tag without the OS VEX statements below; neither release was published, and a tag cannot move, so the release ships as 4.3.9. -
Three OS findings in the database image carry a VEX judgement. Debian has no fix yet for CVE-2026-107161 (Cyrus SASL DIGEST-MD5 client), CVE-2026-107708 (the krb5 KDC) or CVE-2026-107778 (libkrb5
rd_cred.c) inferroehr-postgres. The first two are not reached: PostgreSQL never starts a SASL bind and the image ships no KDC. CVE-2026-107778 is reached only through a GSSAPI configuration FerroEHR does not ship; it isaffectedwith an action statement insecurity/vex/postgres-os.openvex.jsonand joins #3708. -
The chart’s SBOM is attested (#3710). The CycloneDX SBOM the chart lane writes carried no
serialNumber, whichactions/attestrequires of a CycloneDX document, so chart 11.0.1 was published without its SBOM attestation. The generator now writes aurn:uuid:serial number and refuses to hand on a document withoutbomFormat,serialNumberandspecVersion. Chart 11.0.2 carries the attestation. -
The
POST /query/aqlexample in the served OpenAPI runs (#3737). Its request and response examples sorted on theSELECTalias (ORDER BY temperature DESC), which the server refuses with400: AQL 1.1.0 §ORDER BY sorts on an identified path. The examples now sort ono/data[at0002]/events[at0003]/data[at0001]/items[at0004]/value/magnitude. -
Stale statements corrected (#3743).
CITATION.cffand the Zenodo record no longer say a built-in runner verifies conformance at every release; they name Veredictum, the separate CNF 2.0 runner, and the committed run records. The Helm chart description drops “hardened-by-default” and states that the default NetworkPolicy admits every source untilnetworkPolicy.ingressFromis set and that the default-deny egress policy is off.SECURITY.mdnamesGET /management/statusas the endpoint that reportssupport.status, and the README calls Veredictum separate rather than independent. -
More stale statements corrected (#3743). The operations guide and the CRA user information and risk assessment pages name
GET /management/statusas the endpoint that reportssupport.status; the publicGET /ferroehr/rest/statuscarries onlystatus,server_version,openehr_rest_api_version,timestampanddeployment.profile. The Conformance and Benchmarks pages call Veredictum a separate runner instead of an independent or built-in one.MAINTAINERS.mdstates the support period asSECURITY.mddoes: five years per release, with every fix in the newest release. The conformance statement no longer declares thetenancyextension, which was removed in 4.3.1. The Zenodo record’s references and related identifiers cite the pinned specification releases (RM 1.2.0 development, BASE 1.3.0, TERM 3.1.0, AM 1.4 and 2.4.0, QUERY 1.1.0, ITS-REST 1.1.0), and its notes name Veredictum. The provenance record of Delegated Regulation (EU) 2026/881 names the FerroHEALTH post-market page as the page that cites it (#3706). -
AQL no longer pairs values from different nodes in one row (#3733). Two paths in
SELECTunder one repeated node (the systolic and diastolic of an EVENT) read the same node: each structure step aSELECTpath descends is bound once per row, one row per node, and paths through different repeated steps give every combination of their nodes. A path that reaches nothing reads null and keeps its row; a whole-object projection used to drop that row. InWHERE, every step a path descends thatSELECThas not bound is bound once for the whole clause, and a row is kept when some assignment of those bindings makes the clause true under SQL three-valued logic, sosys >= 140 AND dia >= 90needs both readings on one event, De Morgan’s laws hold, andNOT (x > 140)over readings 120 and 150 holds. Aggregates read the items of their path that a projection under the sameWHEREwould keep, without adding rows, soCOUNT(*)next toMAX,SUMorAVGis unchanged;COUNTover a list attribute counts its elements and ignores a stored JSONnull.EXISTSis path-level (AQL 1.1.0 §EXISTS): it holds when data at the path exists, read per node only whereSELECTbinds the path’s prefix. A test of a list attribute inside one node’s data (links,participations) holds when any element satisfies it and is unknown when the list is empty, soNOT (c/links/target/value = 'x')drops a composition without links. AQL 1.1.0 does not define the grain over a repeated attribute; the book states the rules. -
AQL
CONTAINSand path steps no longer match the node itself (#3734).CLUSTER c1 CONTAINS CLUSTER c2returned each cluster as its own child,NOT CONTAINSof the node’s own class never held, and a path step could bind the node it started from. A path step now follows exactly one attribute to a direct child (BASE paths §Basic Syntax), soc/content[openEHR-EHR-OBSERVATION.x.v1]no longer finds an observation nested inside a SECTION anditems[at0004]no longer finds an element in a sub-cluster;CONTAINSstill finds both. -
A deleted composition stays out of unscoped AQL queries (#3735). A query with no EHR scope that read nothing from the composition’s content (
SELECT c/uid/value,SELECT e/ehr_id/value,SELECT 1) returned a row for the deleting version. -
A CONTRIBUTION cannot delete an already deleted version (#3738). It was accepted with
201and added another deleted version, while theDELETEroute answered400. Both now answer400with the same message (ITS-REST400_already_deleted), and nothing is committed. A secondDELETEof an already deleted directory answers400as well. -
Example compositions pass the server’s own validation (#3739, #3740).
GET /definition/template/adl1.4/{template_id}/examplenow carries every attribute the template makes mandatory, an EVENTstateor ENTRYprotocolwithout data points included, every SECTION the template requires but names only, a container’s minimum number of children, and the archetypedother_contextcontent a template makes mandatory, and never setsvalueandnull_flavouron one ELEMENT (RMInv_null_flavour_indicated). The cases it still cannot cover are #3779 and #3780. -
A quoted query parameter on a GET query binds the string it names (#3781). On
GET /query/aql?q=…andGET /query/{qualified_query_name},uid="123"now binds the string123, as{"uid": "123"}does in a POST body; the quotes were kept as part of the value. An unquoted value reads as before. -
The web template keeps an ELEMENT’s
valuebeside itsnull_flavour. An ELEMENT constraining a textvalueand a codednull_flavourwas folded into one coded node with anotherinput, which dropped thevalue. That fold now applies only to two alternatives of one attribute (Simplified Formats master04 §“Open Value-Sets and the|otherSuffix”). -
XML without the required
idof a key/value element is refused (#3741). An OPT 1.4, archetype or RM XML document whoseoriginal_author,other_detailsor otherStringDictionaryItemelement has noidattribute is refused with400, as the ITS-XML schema requires, instead of being stored under an empty key.id=""is still accepted. -
[events] tls = trueupgrades a broker URL in any case (#3690).AMQP://andAmqp://now becomeamqps://, asamqp://did; the URL scheme is case-insensitive (RFC 3986 §3.1). -
A database the server cannot connect to answers
503(#3659). A refused connection, a TLS setup failure, an authentication or unknown-database refusal, too many connections and a database still starting answer503withRetry-Afterinstead of500. A failure on an established connection stays500. -
Concurrent imports into one container are serialised (#3658). The second EHR Extract import waits for the first and lands after it, or is refused as a re-import with the specific
409, instead of failing on a unique-index collision. -
Errors print their cause once (#3684). A chained error report repeated the cause in the wrapper’s own message for database, storage, service, AQL, terminology, multimedia, eventing, XML, Simplified Format and BMM errors; each now carries the cause as its source only, and response bodies are unchanged. A version-signing failure and a RESULT_SET assembly failure now log their cause, and a failed terminology OAuth2 token grant logs its transport cause.
scripts/checks/error-source-chain.shrefuses the shape. -
A CONTRIBUTION and an import can no longer deadlock (#3658). A CONTRIBUTION that changes several objects locks them in object-id order, the order an import uses, and an import takes the EHR row lock first. The check that an EHR has no second EHR_STATUS or EHR_ACCESS now runs inside the import’s transaction, so two concurrent imports cannot both add one.
-
ferroehr reportseparates an unreachable database from a failed read (#3659). It says “unreachable” only when no connection could be opened, and “unreadable” when a connected read failed. -
The operations guide no longer calls a partial schema drop a supported reset (#3685). Dropping
clinical,extandauditalso drops thebtree_gistextension thelinkageconstraint depends on, and the next boot does not recreate it; the guide now says to drop the database. -
ferroehr-extcompiles cleanly in every feature combination (#3703), and CI runs clippy over each one, and over the server’smultimedialane. -
The viewer’s
/systempage links the Messaging OpenAPI family (#3704). The viewer and the server now read one shared family list, and a test on each side fails when they disagree; the deployment gap codes the sandbox notice names,rbac_offincluded, follow the same shared list. -
The operations panel shows every object of
/management/info(#3632). The build card listed only top-level values, so the manufacturer, the support period and the audit posture never appeared; each now has its own heading. -
A JWK Set that fails to parse is reported without its content (#3666). The error carries the parser’s error class, line and column only, for an inline
jwks_jsonand for a set fetched from the issuer, so a503body can no longer quote key material. -
The DICOM audit message and the FHIR AuditEvent agree on the data flow (#3687). On a read the server is the source and the client the destination; on a write or a query the client is the source (DICOM PS3.15 §A.5.2.7 and §A.5.3.10, IHE BALP).
-
The served OpenAPI document repeats no operationId (#3691). The demographic CONTRIBUTION operations are served as
demographic_contribution_createanddemographic_contribution_get, the names of the released operation files; the access record keeps the released idscontribution_createandcontribution_get. -
[authz.rbac] role_claimsapplies with every gate off (#3742). Bearer role extraction read the default claims when RBAC, ABAC and a restricted per-EHR default were all off; the boot log now also says when only a restricted per-EHR default switches authorization on. -
The Helm chart’s in-chart clients follow the server’s own TLS (#3714, chart 11.1.4). With
config.server.tls.enabled, the viewer, FerroBRIDGE, the ServiceMonitor scrape and the kubelet probes use https, and the viewer and FerroBRIDGE trust the CA named by the newservice.tls.caExistingSecret; the chart refuses to render a TLS listener beside an in-chart client without one. The migration Job runs under its own hook ServiceAccount, so a first install no longer waits on an account Helm creates only after the hooks. -
Storing a query runs the analysis an execution runs (#3748).
PUT /definition/query/{name}[/{version}]parses, lowers and generates the SQL of the query without executing it, so a query the engine would refuse answers400instead of being stored and failing on every execution. Terminology resolution still happens at execution (AQL 1.1.0 §TERMINOLOGY). -
FHIR AuditEvents for deletes carry the agent types BALP Delete fixes (#3750): client DCM
110150Application, servercustodian. -
OPT 1.4 conversion keeps the type of a primitive node without an inner constraint (#3752). An Integer, Date or Boolean node no longer becomes a String constraint.
-
A composition built from FLAT, STRUCTURED or TDD input without a category takes it from the template (#3652): its single admitted code,
433when the template leaves the category open, and a refusal naming…/category|codewhen several codes are admitted and none is assumed (an assumed category value is taken). It was always433, even where the template admits only431. -
The Web Template carries
defaultValuefrom archetype assumed values. Coded text, quantity, ordinal, count, boolean, text, date/time and duration inputs take the assumed value of their constraint, as a string (ITS-RESTInput.yaml), and only when the constraint admits it (AOMAssumed_value_valid), for OPT 1.4 and ADL2/OPT2 templates alike. -
OPT 1.4 conversion keeps enumerated integer and real lists (#3752); only the range was carried.
-
The server serves a renewed TLS certificate without a restart (#3765). It re-reads
[server.tls]cert_fileandkey_fileeveryreload_interval_secs(new key, default 60; 0 reads them once at boot); a pair that fails to load is logged with its cause and the previous pair stays in service. Pods stayed Ready on an expired certificate because the kubelet’s HTTPS probes do not verify it. -
An EC private key loads for
[server.tls]in SEC1 or PKCS#8 (#3761), and a certificate whose EC key carries explicit curve parameters (RFC 5480 §2.1.1) is refused with the cause and the named-curve remedy instead of a bare key mismatch. -
The viewer trusts an identity provider behind a private CA (#3767). Its OIDC client verifies against the platform trust store (
SSL_CERT_DIR,SSL_CERT_FILE) instead of the bundled web roots only. -
A wrong password at the viewer’s Basic sign-in returns to the sign-in card with the refusal (#3759) instead of answering
500. -
The CRA provenance record lists the eighth corrigendum (#3732).
32024R2847R(08)corrects the Slovenian version only (Art. 3(17), Art. 14(7) and the titles of Articles 21 and 22); it has no English version and changes no text FerroEHR cites. -
The four-cluster production layout prepares and boots (#3755, #3756, #3757, #3762). A database that holds the linkage domain without the party domain also receives the party migration set (schema and grants only), and a relocated domain’s database is prepared and verified on its own migration credential, the new
[storage.migrate.<domain>] url/url_file(chart:database.<domain>.migrateExistingSecret). The chart’s migration Job prepares every cluster, andscripts/deploy-probe-k8s.sh --production-onlyproves the boot and the shared-cluster refusal live. -
Chart: TLS and migration-hook corrections (#3760, #3766). The hook ServiceAccount survives a failed hook and is created only when the chart creates the release’s account;
client_auth: requiredwith server TLS is refused at render, since kubelet probes present no client certificate; an Ingress in front of a TLS listener needsingress.backendTlsAnnotations;prometheus.io/schemefollows the listener. -
The CDR trusts an identity provider behind a private CA (#3767). OIDC discovery and JWKS fetches verify against the platform trust store (
SSL_CERT_DIR,SSL_CERT_FILE), as the viewer now does;reqwest0.12 and its bundled roots leave the dependency graph. -
openehr-langreads BMM packages withoutpackages(#3768). The generated BMM JSON reader (and its AM 2.4 re-emission) reads a package or schema withoutpackagesas an empty package map and leaves an empty map out on write, as the LANG BMM persistence syntax chapter’s example and every published openEHR BMM do; the class table’s1..1is reported upstream (#3770).openehr-langalso reads P_BMM schemas from their JSON serialisation (json_reader::read_schema_json), producing the sameP_BMM_SCHEMAas the ODIN reader,uidandsource_schema_idstamping included; its BMM tests now read the JSON files the generator reads, and the stale ITS-BMM ODIN copies of BASE 1.3.0, RM 1.2.0 and TERM 3.1.0 are no longer vendored. -
A database that holds some of the storage domains gets only their schemas (plus
ext); schemas only a shipped grant file names are created for the run and dropped afterwards, andferroehr db eraseremoves empty schemas of other domains that earlier releases left in such a database. -
PostgreSQL healthchecks check over TCP in the compose files, the hosted sandbox and CI, so a container is no longer reported healthy while the image’s initialisation server still runs.
-
Every connect-time database failure answers
503(#3749). Each pool checkout goes through one typed acquire, so an unresolvable or unreachable host and a protocol failure while connecting answer503withRetry-After; a failure on an established session stays500. Thedb_pool_acquire_durationmetric is now recorded for every checkout. -
Chart: the viewer reaches a management surface on its own port (#3758). It is given
FERROEHR_VIEWER__CDR__MANAGEMENT_BASE_URL, and its NetworkPolicy admits the management port whenconfig.management.portis set. -
AQL SQL generation is deterministic with several EHR sources, and an AQL execution that cannot obtain a database connection answers
503withRetry-After(#3749). -
Protected national identifiers are sealed inside the party commit (#3772). A failed demographic commit no longer leaves a sealed identifier behind, and a failed update no longer replaces the party’s stored one. Each version of a party keeps the identifier it was committed with: a changed identifier is sealed into a new row instead of overwriting the old one, so an earlier version shows the value it held, and lookup by identifier answers the latest version only (party migration
0010_identifier_versions). A party whose identifier another party already holds answers409; two values in one scheme, or a reference to an identifier the party does not hold, answer422. -
A patient-scope check that cannot reach the database answers
503withRetry-Afterinstead of500(#3749). -
Error texts without stray space runs. The
400for an AQL parameter that cannot be coerced, the event-subscription update400, the served OpenAPI description of the demographicparty_idparameter and an ADL parser refusal had lost their line continuations. -
The compose image-tag guard covers the terminology overlay (#3605).
scripts/checks/compose-image-tags.shchecks every FerroEHR image tag in every root anddocker/compose file,docker-compose.terminology.ymlincluded, and proves it with a--self-test.
4.3.6 - 2026-10-08
Added
-
The server verifies the audit hash chain on a schedule (#3640, CRA Annex I Part I(2)(f)):
[audit.store] verify_interval_seconds(default one day,0turns it off). A finding is logged at ERROR, counted inatna_audit_chain_findingsand reported as theaudit_chainindicator. -
The running server states its support period (#3639): five years from the release month (CRA Art. 13(8)) on the boot banner, in
ferroehr --version, onGET /management/infoand on the REST status document (support.statusissupported,endedorunreleased). Once the period has ended it logs a WARN at boot and daily (CRA Art. 13(19)). -
More access records carry EHDS priority categories (#3653): logical composition deletes,
CONTRIBUTIONreads with or withoutresolve_refs,VERSIONED_COMPOSITIONreads, and EHR Extract export and import records;EHR_ACCESSis classifiednone. -
FerroEHR’s intended purpose is stated (#3641). The new book page Intended purpose is Cadasto B.V.’s statement of who FerroEHR is for, the data it is designed to process (with the EHDS Art. 14(1) priority categories), the environment it runs in, the security environment it assumes (TLS termination, an identity provider, database protection) and the misuse it foresees (CRA Art. 3(23), Annex II point 4; EHDS Annex III 1(a)).
-
A CRA cybersecurity risk assessment (#3635). The new book page CRA risk assessment rates FerroEHR’s cybersecurity risks, states for each point of CRA Annex I Part I(2) whether it applies, how it is implemented, the evidence and the open issue, justifies the limbs that do not apply (automatic updates, application-level encryption at rest, configuration integrity), and lists every outbound data flow, the usage report included (CRA Art. 13(2) to (4)).
-
A hazard log for the access log (#3618). The new book page Hazard log lists nine patient-safety hazards of the European logging software component, each with its control, the tests that show it holds and what remains (EHDS Annex II 1.1).
-
A claims review (#3619). The new book page Claims review records the reading of every public text against EHDS Art. 28, release by release, and re-assesses EHDS Annex II 2.5 against the authorisation defaults.
-
An information sheet and instructions for use accompany every release (#3617). The new book pages Information sheet (every point of EHDS Art. 38(2): the manufacturer, the name, version and release date, the intended purpose, the Art. 14(1) data categories, and the standards and their versions) and Instructions for use (what FerroEHR runs on, an EU deployment’s configuration with
deployment_profile = "production",[audit.categories]andretention_years, the maintenance it needs and how often, and the known limitations EHDS Art. 28(b) asks to be stated, with the CRA Annex II user information mapped point by point). The release lane attaches both, cut from the tag, to each GitHub release (scripts/release/accompanying-documents.sh). -
The CRA information and instructions to the user, linked from every release’s notes (#3650). The new book page CRA information and instructions to the user carries each point of CRA Annex II in order (the manufacturer, the vulnerability contact, identification, intended purpose and security properties, the risks, the declaration of conformity, the support period, the instructions of point 8(a) to (f) and the SBOMs), each with its source. The release notes link the copy frozen for the tag, and the release lane refuses notes without that link or the support period (
scripts/checks/release-notes.sh, CRA Art. 13(18)). Rust crates gains the information for integrators of theopenehr-*crates that point 8(f) asks for. -
The technical documentation of EHDS Art. 37 and CRA Annex VII (#3616) is kept in
docs/technical-documentation/, one file per Annex III element and per CRA Annex VII point that adds one, each citing its evidence. A release that changes the logging component updates it (scripts/checks/technical-documentation.sh --since <previous tag>, EHDS Art. 30(2)), and the tree states how each release’s documentation is kept for ten years, where the declaration of conformity will be published, and how a translation is requested. -
SECURITY.mdnames how to hear of new releases (#3639): subscribe to the release feed (https://github.com/FerroHEALTH/FerroEHR/releases.atom) and poll the published advisories (GET https://api.github.com/repos/FerroHEALTH/FerroEHR/security-advisories), since the server does not look for newer releases itself. -
A Cyber Resilience Act page (#3626) states FerroEHR’s position under the CRA: Cadasto B.V. as manufacturer, why BUSL-1.1 is not free and open-source software under CRA Art. 3(48), the reporting duty in force since 11 September 2026, the five-year support period, the conformity route through the EHDS (CRA Art. 32(5a)), the default-product reading beside the competing Annex III class I reading, the hosted-service case, and the questions for counsel.
-
Vulnerabilities can be reported by email (#3646):
SECURITY.md,security.txt(a secondContact: mailto:info@cadasto.com) and the Complaints, incidents and vulnerabilities page name info@cadasto.com beside GitHub private vulnerability reporting, so a report needs no GitHub account (CRA Art. 13(17)). An emailed report runs through the same procedure and starts the same CRA Art. 14 clock. -
Component vulnerabilities are reported upstream (#3648). Cadasto B.V. reports a vulnerability it finds in an integrated component to that component’s maintainer and offers its fix (CRA Art. 13(6)), and records each report in the new public register
docs/registers/upstream-reports.tsv. -
What happens if Cadasto B.V. ceases operations (#3651):
SECURITY.mdand the Complaints, incidents and vulnerabilities page say whom the manufacturer tells, in which order, that the support periods end on the cessation date and that every published release stays published (CRA Art. 13(23)). -
Every access record carries the EHDS priority categories of the data it served or wrote (#3621, Annex II 3.2(c)). A new
[audit.categories]map classifies an access from the template id, then the root archetype id, aspatient-summary,eprescription,edispensation,imaging,test-results,discharge-report,national:<code>ornone. An access the map cannot classify is recordedunclassifiedwith its ids and is never refused. The map’s digest is on the boot line, onGET /management/infoand on every record, and the FHIRAuditEventcarries the classification as entity details. -
The retention register can key a period on an EHDS priority category (#3621, Annex II 3.4):
categoryonPUT /admin/retention/policy, echoed by the policy and due lists. The category map is mirrored into the register at boot, and an unclassified object takes the longest period configured for its kind. -
[audit.store] retention_years(#3625) states the access-log horizon in calendar years as an alternative toretention_days. It is compared exactly against the retention floors and ceilings, which are now registered in years, and reaped with calendar arithmetic; setting both keys is a boot error. -
The regulation corpus gains the EHDS implementing acts and the market-surveillance acts (#3607).
docs/law/eu/now carries Commission Implementing Regulations (EU) 2026/2083 (MyHealth@EU) and 2026/2099 (cross-border identification and authentication), both applying from 26 March 2027; Commission Recommendation (EU) 2019/243 on the European electronic health record exchange format, which EHDS recital 26 names; Regulation (EU) 2019/1020 on market surveillance, whose Article 3 definitions EHDS Article 2(1)(d) takes over, at its consolidation of 12 August 2026; Regulation (EC) No 765/2008, whose Article 30 sets the general principles of the CE marking, at its consolidation of 16 July 2021; and CRA Implementing Regulation (EU) 2025/2392 on the important and critical product categories. Each is fetched byscripts/vendor/law-eu.shwith its own provenance record and digests. -
The CRA record carries the Regulation’s three English corrigenda (#3607). They correct the title, Article 64(10) (“paragraphs 2 to 9”, where the published text says “3 to 9”) and the point number Article 67 adds to Directive (EU) 2020/1828. The vendored OJ text includes none of them, and
docs/law/eu/cra/PROVENANCE.mdsays which file to cite for which provision. -
Complaints, serious incidents and exploited vulnerabilities have a written procedure (#3613). The new book page Complaints, incidents and vulnerabilities names FerroEHR’s manufacturer, Cadasto B.V., and its single point of contact, the channels (GitHub private vulnerability reporting; info@cadasto.com with “FerroEHR incident” or “FerroEHR complaint” in the subject; a public issue), the public registers of complaints and of non-conforming versions under
docs/registers/, and what happens on a non-conformity, an EHDS serious incident (reported within three days of awareness, EHDS Art. 44(7)) and an actively exploited vulnerability or severe incident (the CRA Art. 14 early warning within 24 hours, notification within 72 hours and final report), with NIS2 kept separate.docs/post-market.mdis the maintainers’ checklist;SUPPORT.mdand the issue chooser point to the page. -
A non-conforming release can be withdrawn (#3615).
scripts/release/withdraw.sh <version> --to <version>refuses a version the register of non-conforming versions does not name, moves the<major>.<minor>andlatesttags of the server, viewer and PostgreSQL images that still point at it to the correcting release, and prints the advisory, theSECURITY.mdline, the notices to authorities and users, and the register columns to fill. The version’s own tag, its digests and its chart version stay published, so a deployment pinned to them keeps running it until it is moved; an OCI chart registry cannot mark one chart version deprecated, and the notice says so.--dry-runprints every command and changes nothing. -
The regulation corpus gains the CRA delegated acts and the NIS2 corrigendum (#3627).
docs/law/eu/now carries Commission Delegated Regulation (EU) 2026/881 (when a CSIRT may delay passing on a CRA Art. 14 notification, CRA Art. 14(9) and 16(2)) and (EU) 2025/1535 (the CRA Art. 2(5) exclusion of products within Regulation (EU) No 168/2013), and the English corrigendum to NIS2 Art. 19(1) beside the NIS2 text, whose record now says which file to cite.docs/law/README.mdrecords Implementing Regulations (EU) 2026/771 (the EHDS Board) and 2026/2098 (dataset metadata for secondary use) as adopted and not vendored, with the reason. -
Every release states its support period (#3610). Cadasto B.V. is the manufacturer of each tagged release under the Cyber Resilience Act, and
SECURITY.mdnow gives each release a support period of five years from the month it is published (CRA Art. 13(8)), with the end date printed in a new “Support period” section of the release notes (Art. 13(19), Annex II point 7). The security update for a release in its support period ships in the newest release (Art. 13(10)). -
SECURITY.mddescribes the CRA Art. 14 notifications (#3609): the early warning within 24 hours, the notification within 72 hours and the final report Cadasto B.V. sends through ENISA’s single reporting platform to the Dutch CSIRT for an actively exploited vulnerability or a severe incident, and how users are told through the security advisory. -
A weekly EUR-Lex watcher (#3608) files one issue per new act adopted under, amending or correcting the EHDS (Regulation (EU) 2025/327) or the CRA (Regulation (EU) 2024/2847), naming the article it implements, against a committed baseline of the 18 acts known on 2026-10-06.
-
The control matrix knows the CRA (#3606) as a legal source, so a control can declare a CRA article.
-
The running system names its manufacturer (#3612), as EHDS Art. 30(1)(g) asks: Cadasto B.V., Comeniusstraat 2d, 1817 MS Alkmaar, The Netherlands, info@cadasto.com, https://www.cadasto.com/contact/. It appears on the startup banner, in
ferroehr --version, as amanufacturerobject onGET /management/info, in the viewer’s footer and a Manufacturer card on/system, and in aneu.ferroehr.image.manufacturerlabel on the three container images, all read from one source file. -
ferroehr report(#3614) writes one redacted JSON document naming what a deployment runs: version, commit, build date, enabled features, specification pins,openehr-*crate versions, the migration level of each schema set, the deployment posture, the licence summary, the manufacturer and the effective configuration. A manifest names any part it could not read and why. No credential, URL userinfo or patient data reaches it: its configuration passes the same userinfo masker asferroehr config check(#3629). Attach it to a complaint or a serious-incident report. -
The Helm chart carries the access-log category map and the calendar-year horizon (#3655):
config.audit.categories(emptytemplatesandarchetypes, as in the binary) andconfig.audit.store.retention_years(unset) invalues.yaml, typed by shape invalues.schema.json. Chart 11.0.1. -
The Helm chart and the Compose files declare the deployment profile (#3637):
config.deployment_profile: sandbox, with a comment listing whatproductionrefuses under the chart defaults, anddeployment_profile = "sandbox"in the quickstart, dev and hosted-sandbox configurations. The new book page Returning to the original state resets an instance’s configuration and database, and the deploy-probe harness runs the Compose procedure. -
Every published artefact has an SBOM (#3643): each release attaches a CycloneDX SBOM per
openehr-*crate, attested against the.cratearchive crates.io serves, and each chart version attests a CycloneDX SBOM naming every image it deploys by digest. -
Every release publishes an exploitability record (#3636): every image and server binary is scanned with no severity floor and with unfixed findings included, each finding is joined with its OpenVEX statement in
ferroehr-<tag>-vulnerability-record.json, and the release is refused, before any image is tagged, while a finding has none. -
The CRA risk assessment declares its security-relevant paths (#3649). A release that changes one of them since the previous release is refused until the assessment gains a revision row.
-
ferroehr db erasepermanently removes all data and settings of an instance (#3642; CRA Annex I Part I(2)(m), Annex II point 8(d)). It deletes every multimedia blob FerroEHR wrote, then drops theext,clinical,party,linkageandauditschemas, one transaction per database. Without--confirmit is a dry run that prints what it would remove and the value that confirms it (the stored instance id, or the clinical database’s name). A wrong value or an unreachable blob store refuses before anything is touched, and a rerun after success is a no-op. The new Decommissioning page covers the retention duties before erasing and what the command cannot reach: backups, WAL archives, replicas, the chart’s Secrets and claims, database roles, configuration files and media remanence. -
Patient-data requests can require an authentication assurance level and a natural person (#3622; EHDS Annex II 3.1 and 3.2).
[auth.oidc.assurance]maps the token’sacr(or another claim) to the eIDAS levels low, substantial and high; withminimumset, a patient-data request below it is refused with401and an RFC 9470insufficient_user_authenticationchallenge naming the acceptedacr_values.[auth.oidc.professional]names the claim identifying the natural person; a client token is then refused on patient data with403unlessacting_for_claimnames the professional it acts for. Basic credentials are refused on patient data when either block is set. The access record gains the acting mode, the assurance level and its raw value, and the professional’s identifier (audit migration 0009); the FHIR AuditEvent and the DICOM message render the professional as the requesting participant and the client application as a second one, and neither format can carry the assurance level. Both blocks are off by default. -
An emergency access is marked in the access record (#3624; EHDS Art. 11(5)).
[audit] emergency_purpose_codesnames the agreed purpose-of-use codes that declare an access necessary to protect the vital interests of the patient; an access declaring one carriesemergency_accessin its record (audit migration 0010) and, on the FHIR AuditEvent, apurposeOfEventwith HL7 v3ETREATand a plain-words text, so the patient’s subject-scoped ITI-81 retrieval shows it. Each code must also be onpurpose_codes, or the server refuses to start. The mark lifts no restriction: a GDPR Art. 18 restricted object is refused with an emergency purpose exactly as without one. The DICOM syslog message has no purpose element and does not carry it. -
productionrefuses three more plaintext paths (#3676, #3689; CRA Annex I Part I(2)(e)). An enabled change-event outbox on a plainamqp://broker (noamqps://, notls = true) opensplaintext_broker; an enabled audit FHIR feed on anhttp://URL opensplaintext_audit_feed; an enabled multimedia store withallow_http = trueopensplaintext_object_store. Each refuses boot unless accepted by name indeployment_accepts, and the viewer’s deployment notice names each in plain words. -
The Helm chart ships
values-production.yaml(#3678), an overlay that boots underdeployment_profile = "production": one database Secret per storage domain, a migration Job undermigrate = verify, the audit trail failing closed, a restrictedEHR_ACCESSdefault, declared subject namespaces, OIDC, and a TLS Ingress with a NetworkPolicy admitting only the ingress controller. It acceptsplaintext_listenerby name, because TLS ends at the Ingress. Chart validation and the boot check cover it. -
Every binary in the published images lists its Rust dependencies (#3675): the server and viewer binaries inside the images, and the viewer image built from source, are built with
cargo auditable, so an image scan and the release’s exploitability record see the Rust graph. The OpenVEX statement for RUSTSEC-2023-0071 now covers the viewer image. -
Every operating-system finding in the three images carries an OpenVEX judgement (#3673):
ferroehr-os.openvex.json(25 statements for the distrolessferroehrandferroehr-viewerimages) andpostgres-os.openvex.json(101 forferroehr-postgres), each argued from what the shipped programs load and import. Seven areaffected, with an action statement: CVE-2026-8674 (a long resolver search domain) in all three images, and three libxml2 and two glibc JISX0213 findings any database login reaches through PostgreSQL’s XML functions, which FerroEHR itself never calls. The release’s exploitability record now has a judgement for every finding.
Changed
-
The family-level documentation moved to the FerroHEALTH book (#3701), at https://ferrohealth.eu/docs/: the manufacturer, the security policy shared by every FerroHEALTH product (response times, disclosure, advisories, security-only patches, CRA Art. 14 reporting, cessation of operations), the post-market procedure, the manufacturer side of the CRA, the intended purpose and the shared responsibility of the EHR system FerroEHR forms with FerroBRIDGE, licensing and trademarks, and how the products fit together. The book pages Complaints, incidents and vulnerabilities, Cyber Resilience Act, Intended purpose, Shared responsibility and Licensing & legal keep their addresses and now carry only FerroEHR’s own facts, with a link to the family page.
SECURITY.mdkeeps FerroEHR’s supported versions, its reporting routes and scope, and the repository’s security settings. The information sheet, the instructions for use, the EHDS readiness and technical documentation pages, the CRA risk assessment and the Annex II user information stay in this book. -
deployment_profile = "production"refuses two more plaintext paths unless each is accepted by name. A syslog audit feed withtransport = "udp"opens the newaudit_syslog_udpgap (#3669, EHDS Annex II 1.4): set[audit.syslog] transport = "tls", or accept the gap where the UDP path stays on a trusted segment. A separate management listener ([management] port) now opensplaintext_listener(#3668), because it binds every interface in plain HTTP: unset the port so the surface shares the main listener, or accept the gap where the port is unreachable off the host. -
What FerroEHR answers without a credential says only what a client or probe needs (#3671).
/health/readinesskeeps its200/503semantics but its body carries the aggregate status and each indicator’s name and status only; the detail moves toGET /management/health. The public{rest root}/statuskeeps status, versions, timestamp and the deployment profile; the licence, the deployment gaps and the support period move toGET /management/status. Both new endpoints areoffuntil[management.endpoints]names a level for them. The Security page lists every route reachable without a credential and why, and a test drives every mounted route to keep that list closed. -
Licence tokens are verified against the licensor’s two master keys. A
[licence] filetoken is accepted when it carries exactly one text signature, made directly by one of the two embedded Cadasto B.V. keys (F2D214FC30698BA65A846B2BF2EA48D4C316406D,0BCE848225EFAECA912175292DBFB014CA506311); whether a key may sign is read from the embedded certificate, never from the copy the token carries. The previous licensing key is no longer trusted, and the embeddednon-commercialgrant is re-signed (licence id01a1175c-cd67-777d-bdc0-c95bf1c900d3). A token signed under the previous key is reported asrefusedon/management/status, and the embedded grant stays in force; the server behaves identically either way. -
deployment_profile = "production"refuses two more postures (#3638):auth.enabled = false(auth_off) and a plaintext listener on a routable address (plaintext_listener), unless the gap is named indeployment_accepts. A loopback bind is exempt; a deployment behind a TLS-terminating ingress acceptsplaintext_listenerby name. -
A security fix ships in a security-only patch release (#3644), unless the release notes record why that was technically infeasible (CRA Annex I Part II(2));
SECURITY.mdno longer leaves it open. -
Every fixed vulnerability gets a GitHub security advisory (#3645), for FerroEHR’s own code and for a dependency or base-image fix that changes a shipped artefact, with a CVSS severity, the affected and fixed versions and the remediation; the changelog’s
### Securityentry carries theGHSA-identifier.SECURITY.mdstates when the technical details of a fixed vulnerability may be published later (CRA Annex I Part II(4)). -
The README, the landing page and the book no longer claim multi-tenancy, “spec-compliant” or “hardened by default” (#3619). FerroEHR is single-tenant; the openEHR conformance record is described as measured, with the version it measured; the README states that TLS is off by default, that the shipped profile is
sandbox, and that FHIR R4 mapping is FerroBRIDGE’s. -
The EHDS readiness and technical-documentation pages follow the manufacturer decision (#3626). Every Annex II row was re-read on 2026-10-06; the open questions are replaced by the decisions of #3606 (Cadasto B.V. is the manufacturer, FerroEHR with FerroBRIDGE is the EHR system, FerroBRIDGE ships the interoperability component) and the questions for counsel; rows 3.1 and 1.3 now say what is missing (the assurance level, the emergency-override mark), row 3.4 reflects the category-keyed retention and
retention_years, and each partial row links its open issue. The shared-responsibility page and the compliance overview state both cases: Cadasto B.V. is not the processor of a self-hosted deployment, and is the customer’s processor where it hosts FerroEHR. Verifying releases counts nine publishedopenehr-*crates, not eight. -
Every EU Member State carries an access-log retention floor of three years (#3625, EHDS Art. 9(2), applying from 26 March 2029 and 2031 under Art. 105). A longer national floor still wins (the Netherlands, five years), Switzerland keeps one year, and the boot refusal names the provision the floor rests on. A declared SGB V § 309 controller in Germany sets
retention_years = 3, because no day count meets both the three-year floor and the three-year § 309 ceiling. -
auth.oidc.issuerand everysmartURL are refused at boot when they carry a user name or password (#3629; OpenID Connect Core 1.0 §1.2). The SMART check applies even with SMART disabled, because the discovery document publishes those URLs. -
The system-options
vendordefaults toCadasto B.V.(#3612), read from the manufacturer constant (it wasFerroEHR project);[server.identity] vendorstill overrides it. The OCIvendorandauthorslabels of the three images, and the author of the two OpenVEX documents, name Cadasto B.V. too. -
The quickstart
docker-compose.ymlforwardsFERROEHR__USAGE_REPORT__ENABLEDfrom your shell (#3623). The report stays on by default; exporting the variable asfalsebeforedocker compose upnow switches it off, which it did not before. -
The
ferroehr-viewerimage is scanned before it is tagged (#3674): the release and main image lanes scan it by its pushed digest on both platforms, so a fixable high or critical finding stops the viewer’s tags as it stops the server’s. -
The
ferroehr-postgresimage drops GnuPG and the Gogosu(#3673). GnuPG and the libraries only it uses (gnupg, gpg, gpg-agent, gpgsm, gpgconf, dirmngr, pinentry-curses, libgnutls30t64, libp11-kit0, libtasn1-6, libksba8, libassuan9, libnpth0t64) served upstream’s build-time key import alone.gosuis now a shell wrapper over util-linuxsetprivunder the same name, so the upstream entrypoint runs unchanged and the image carries no Go binary and no Go standard-library findings; the 22 gosu exceptions in.trivyignore.yamlandpostgres-gosu.openvex.jsonare gone. The base is re-pinned to the 2026-10-06 respin ofpostgres:18.6.
Removed
-
The in-tree FHIR connector is removed; FHIR R4 mapping is FerroBRIDGE’s (#3080). This is a breaking change with no deprecation period. Mapping between FHIR and openEHR is served by FerroBRIDGE (BUSL-1.1), a separate server that keeps its mappings as FHIRconnect documents and reaches FerroEHR over ITS-REST. A stored
fhir_mappingrow does not carry over to it. What is gone:- the routes
POST /fhir/r4/{resource_type},POST /fhir/r4/{resource_type}/$validate,GET /fhir/r4/{resource_type}and the/admin/fhir_mappingCRUD, with theirfhirtag and theferroehr-fhir.openapi.jsondocument of the served OpenAPI (the ITI-81 route now has its ownferroehr-audit.openapi.jsondocument); - the outbound FHIR emitter on the
ferroehr.fhirAMQP exchange and itsfhir_outboundhealth indicator; - the configuration sections
[fhir](api_enabled) and[fhir.outbound](enabled,url,url_file,exchange,tls,batch_size,poll_interval_ms,publish_max_retries) and theirFERROEHR__FHIR__…environment forms, which now fail at boot as unknown keys; - the
fhir_mappingtable, dropped by the new clinical migration0013_retire_fhir_connector.sql, which also deletes the emitter’sfhir-outboundcursor row so it no longer holds the outbox prune floor; - the
org.fhir.restservice of the SMART discovery document; - the viewer’s FHIR screen and its sidebar entry;
- the Helm values
config.fhir.*andsecrets.fhirOutboundUrl(chart version 11.0.1), thefhirdeploy-probe family, thefhir-r4-connectorandfhir-mapping-storerows of the conformance statement, and the book pages FHIR connectors and FHIR connector (the EHDS priority-category table moves to EHDS readiness).
The
plaintext_brokerdeployment gap now concerns[events]alone. Not affected: the FHIRAuditEventrendering and the ITI-81GET /fhir/r4/AuditEventretrieval ([audit.store],[audit.fhir_feed]), the FHIR terminology client ([terminology.external]), the change-event outbox and its AMQP publisher ([events]), and the Simplified Formats. Thefhircargo feature stays and now covers the audit rendering and the terminology client only; it no longer pulls inevents. - the routes
Fixed
- An AQL query over
EHR_ACCESSand aCONTRIBUTIONthat deletes a version are classified like the object path (#3667). The query records the categorynone, as anEHR_ACCESSread does, and the contribution records the categories of the newest version with content before the delete, as a single logical delete does. - The viewer names every deployment gap in plain words (#3670), including
audit_fails_open,open_ehr_access_default,auth_off,plaintext_listenerandaudit_syslog_udp, instead of showing the raw code. - The FHIR
AuditEventof an AQL query carries the origins of the data it served (#3654), one entity per origin with the capped-count marker, as a document read does. - The test harness no longer connects a database socket to itself
(#3630). On macOS
localhostresolves to::1first while the test container publishes its port on IPv4 only, and a port in the ephemeral range could occasionally connect to itself (a TCP simultaneous open), which surfaced as an internal database error in a test. testkit now uses the host’s IPv4 address. - CI and the test harnesses no longer send usage reports (#3623). The compose smoke test, the viewer login smoke, the deploy probes, the Helm probe, the browser end-to-end runs and the conformance runs switch the report off, so throwaway instances on GitHub-hosted runners stop appearing in FerroPULSE. A CI check fails any new test launcher that leaves it on.
- Every access record carries its request id (#3665). The audit
trail’s
request_idcolumn was empty on every record, because the id was read from the response before the request-id layer copied it there; it is now read from the request and equals thex-request-idthe client received. FERROEHR__AUDIT__PURPOSE_CODESis read as a comma-separated list (#3624). The environment form was refused as a string, so the purpose codes could only be set in the TOML file.- The served OpenAPI document uses the released
operationIds with a dot (#3679): the ADL 1.4 template operations (definition_template_adl1.4_*) and the stored-query store operations (definition_query_store.yaml,definition_query_version_store.yaml) were served in an underscore form that did not match the id in the access record.
4.3.5 - 2026-10-08
Security
auth.oidc.jwks_jsonrefuses a symmetric key or private key material at boot (#3664, GHSA-r86f-f3vw-j4jr; RFC 7517 §4.1, RFC 7518 §6.4). The inline key set is shown in clear byferroehr config checkandGET {base}/admin/config, so a set carrying akty: "oct"key or a private member (d,p,q,dp,dq,qi,oth,k) is now a boot error that names the key’s position andkid, never its value. A set that does not parse as a JWK Set is refused with the line and column only. Public key sets boot as before; a symmetric key belongs inauth.oidc.hmac_secret.- The S3 store’s endpoint refusals no longer print URL userinfo (#3656,
GHSA-h2gv-2qpx-4fg8). With
[multimedia]configured, an endpoint such ashttps://user:password@s3.examplethat failed validation was quoted in full in the boot error and the log. The endpoint is now validated once, by the configuration, and every refusal quotes it with the userinfo masked. - The configuration views no longer print URL userinfo (#3629,
GHSA-4jp3-xxj8-vv86). A URL written with credentials
(
https://user:password@host/…) inauth.oidc.issuer, a terminology providerurlor OAuth2token_url,authz.abac.remote.server,telemetry.otlp_endpointormultimedia.endpointwas shown in clear byGET {base}/admin/configandferroehr config check. Every string value in those views and inGET /management/envnow passes one masker, so each URL keeps its host and path with the userinfo shown as***. hickory-resolver0.26.3 (#3700, GHSA-rjpj-g667-cmvm): the DNS resolver the server binary links through the AMQP client is updated from 0.26.1. It resolves the broker’s host name when[events]or[fhir.outbound]is enabled (both off by default), where GHSA-6w6g-hm98-mhgm and GHSA-6f2x-v7q7-m7m5 reached it for an attacker who controls that name’s DNS answers.
4.3.4 - 2026-10-06
Added
- A usage report to FerroPULSE, on by default (#3578). At each process
start and once a day, an instance sends one small JSON report to
https://report.ferropulse.eu/v1/report, the collector Cadasto B.V. runs in the EU. It carries a random instance id (created once and stored in the database, so every replica shares it), the version and commit, the specification profile, the licence grant type (non-commercialorcommercial, never the licence id), the deployment kind (helm,compose,binaryorunknown), uptime, whether the database answers and carries its migrations, the PostgreSQL major version, coarse CPU and memory buckets, and in the daily report a bucketed request count with latency histograms, percentiles and 5xx counts per route-template group and for AQL execution. It never carries patient data, request paths, AQL text, licence ids or host names. FerroPULSE stores the source IP address of each report and the country derived from it. Several replicas send one daily report between them, and a restart loop sends at most one start report per ten minutes. A slow or unreachable collector affects neither boot nor readiness; a failed send is logged once at DEBUG and not retried. Every boot logs one INFO line saying whether the report is on. Switch it off with[usage_report] enabled = false,FERROEHR__USAGE_REPORT__ENABLED=false, or the chart valueusageReport.enabled=false. The new[usage_report]section also takesendpointandslow_aql_ms(default 1000), andferroehr usage-report --print [--event start|daily]prints the exact JSON the instance would send without sending it. The Helm chart (10.2.1) and the compose files set the deployment kind; the conformance compose files switch the report off. A new clinical migration adds theusage_report_instanceandusage_report_windowtables.
Changed
- Commercial licensing goes to Cadasto B.V. (#3572). Cadasto B.V., the
Licensor, handles the commercial licence and every other business or
licensing question, at info@cadasto.com or
https://www.cadasto.com/contact/. The BUSL
LICENSEcopies name that contact for alternative licensing arrangements in place of the maintainer, and the README, the book, the landing page, the BUSL crate READMEs,MAINTAINERS.md,GOVERNANCE.mdandSUPPORT.mdsay the same. The maintainer keeps the technical side. The licence terms do not change. Theopenehr-*crates step to 0.0.86 in lockstep, because three packagedLICENSEfiles change. - The Licensor and copyright holder is Cadasto B.V. (#3567). Every
holder statement moves from Vernum Projecten B.V. to Cadasto B.V.:
LICENSEand the crate licence files,REUSE.toml, everySPDX-FileCopyrightTextheader, the licensing chapter of the book, the landing page footer and the conformance statement, whose signatory is now “Ruben Talstra, for Cadasto B.V.” with the date of the change. The licence terms do not change. ClientError::DpopProofsays whether a send went out (#3565). Its newsentfield isfalsewhen the first proof failed and nothing was sent, andtruewhen the proof for a retry or for the re-send answering a DPoPuse_dpop_noncechallenge failed, after the service had received the first request.- A CONTRIBUTION version no longer borrows the change set’s committer
(#3550). A
versions[i].commit_audit, or an attestation, that names nocommitterused to be committed under the CONTRIBUTIONaudit.committer. ITS-RESTUpdateAudit.yamlrequirescommitteron every commit audit, so such a version is now refused with400. A CONTRIBUTION without anaudit, or whoseaudithas nocommitteror nochange_type, is a400too (it was a422), and so is a committer that is not aPARTY_PROXYobject at all; aPARTY_PROXYthat breaks its own invariants stays a422. A version that names its own committer keeps it. The server still fills onetime_committedfor every audit in the set, and copies the CONTRIBUTION audit’ssystem_idinto a version that omits one. This applies to the EHR and the demographic CONTRIBUTION alike. Migration: sendcommitteron every audit and attestation, andchange_typeon the CONTRIBUTIONaudit. - An attestation member of a CONTRIBUTION must state its
lifecycle_state(#3590). A666|attestation|member without one was accepted, although SM master03 §Version Update Semantics says the lifecycle state “must be supplied in all cases”. It is now refused with400like every other member, and a stated code outside the openEHRversion_lifecycle_stategroup is a422. Migration: sendlifecycle_stateon every666|attestation|member.
Fixed
- The terminology overlay switches on the
/terminology/*API it describes (#3476).docker-compose.terminology.ymlsaid the CDR’s/terminology/*routes answer from FerroTERM, but it left[terminology] api_enabledat itsfalsedefault, so every route answered404. The overlay now setsFERROEHR__TERMINOLOGY__API_ENABLED=true; a term, subsumption or value-set call for a terminology the bundled openEHR terminology does not carry is answered by FerroTERM. deploy/helm/validate.sh --updateregenerates the chart README (#3476). It used to restore the stale README and then fail on it, so the drift it reported could only be fixed by runninghelm-docsby hand.
4.3.3 - 2026-10-05
Added
- The
openehr-itsclient sends DPoP-bound tokens (#3558).Credentials::DpopwritesAuthorization: DPoP <token>(RFC 9449 §7.1), and aDpopProvergiven withClient::with_dpop_proversigns theDPoPproof over each request’s final method, URL and access token. Ause_dpop_noncechallenge (RFC 9449 §8 and §9) is answered with one re-send carrying the supplied nonce. openehr-sdtprints a SMART scope back in the grammar (#3557).SmartScopeandResourceScopeimplementDisplay, writing the canonical form (permissions inc/r/u/d/sorder), andSmartScope::format_allprints a scope list as the space-delimited stringSmartScope::parse_allreads.
Changed
ClientError::DeadlineElapsedsays whether a send went out (#3560). Its newsentfield isfalsewhen the deadline passed before anything was sent, andtruewhen it passed before a retry or the re-send answering a DPoPuse_dpop_noncechallenge, after the service had received the request.- The container images name FerroHEALTH as vendor and author (#3561).
org.opencontainers.image.vendorisFerroHEALTHandorg.opencontainers.image.authorsisFerroHEALTH <https://github.com/FerroHEALTH>on every image. openehr-itstypes thePrefer-dependent response bodies (#3548). A response the OAS declares asoneOfa resource andIdentifier(the201and200answers of every create and update: EHR,EHR_STATUS, COMPOSITION, DIRECTORY, CONTRIBUTION and the demographic parties) is nowrest::runtime::Representation<T>, eitherFull(T)orIdentifier(Identifier), in place ofserde_json::Value. A generator test pins the bodies that remain untyped, with their reason.- The generated CONTRIBUTION envelope reads a deleted version and an
AUDIT_DETAILSaudit (#3547).UpdateVersion.datais optional, because a logical deletion commits a version with no data (RM common master06 §Logical Deletion;ORIGINAL_VERSION.datais0..1), andUpdateAuditreads_type: "AUDIT_DETAILS"as its base, as thecontribution_createdocs text tells servers to. ferroehr-restdecodes every ITS-REST request through the generated contract (#3545). Each handler reads its parameters with the generated*Params::from_request, the CDR’s own parameter decoder is gone, and the Simplified Formats CONTRIBUTION path reads the typedNewContributionenvelope.- Every ITS-REST request body has a public decoder (#3551). Each operation
with a body gets
{operation}_request_body(content_type, bytes)in its API group, which returns the type the server trait receives (forcontribution_create, aPayloadof the canonical or the Simplified Formats envelope) and is the decoding the generated router itself runs. The body decoding moved torest::decode, so it needs only therestfeature. ROUTE_REQUEST_MEDIAadmits every media type theContent-Typeparameter declares (#3552). The released OAS lists onlyapplication/jsonunderrequestBody.contentwhere the operation’sContent-Typeparameter and the docs text also admit XML and both Simplified Formats;request_medianow carries the union, and a test holds it equal to the parameter.- The
openehr-*crates step to 0.0.81. openehr-itsnames the openEHR identifier class of every path parameter (#3539).rest::routes::Paramgainsidentifier, anIdentifierClasswhoseas_str()is the BASE class name: the class the ITS-REST OAS states only in the parameter’s description, as the BMM type of the RM attribute the value is “taken from”.ehr_id,versioned_object_uidandcontribution_uidcarryHIER_OBJECT_ID,version_uidcarriesOBJECT_VERSION_ID, anduid_based_idkeeps its per-operation class:UID_BASED_IDon a read,HIER_OBJECT_IDon an update,OBJECT_VERSION_IDon a delete (IdentifierClass::UidBased,HierObject,ObjectVersion). The table is generated from a decision map that a codegen test holds to the vendored OAS descriptions.- Every generated
*Paramsstruct decodes a matched request (#3540).from_request(matched, query, headers)takes theRouteMatchfromroutes::lookup, the query string and the headers, and runs the decoding the generated router runs: the declared keys into their fields, the members of a form-exploded object such as the AQLquery_parametersread as JSON where they parse,+as a literal plus, and a400naming the parameter for a missing, repeated or invalid one. The generated handlers call the same decoding, so an intermediary and the router cannot read a request differently. The decoding moved fromrest::serverto the newrest::decode, which needs only therestfeature, not the axum server half. - The ITS-REST route table names each operation’s request-body media
types (#3543). Each API group carries
ROUTE_REQUEST_MEDIA, aligned withROUTES, holding the OASrequestBody.contentkeys, andRouteMatchcarries them asrequest_media.definition_query_version_store, which declares noContent-Typeparameter, now namestext/plain, so a forwarding intermediary can set the header. - A Simplified Formats CONTRIBUTION has a typed envelope (#3541). The
generated
NewContributionis generic over its version content,NewContribution<T = Versionable>, so the bare name stays the canonical body andNewContribution<serde_json::Value>reads the envelope of a FLAT or STRUCTURED CONTRIBUTION, whose envelope stays canonical while eachversions[i].datais simplified (ITS-RESTcontribution_create§Simplified Formats). The generated server admitsapplication/openehr.wt.flat+jsonandapplication/openehr.wt.structured+jsonon every operation whoseContent-Typeparameter declares them, and hands the implementation arest::runtime::Payload(Canonical,Flat,Structured); XML and any other type stay415. - The
openehr-*crates step to 0.0.80. - The
openehr-rmattribute model covers the BASE foundation types and names reference targets (#3537). The model (v1_1::model,v1_2::model) now holds every class of the BASE + RM BMM, including the primitives (Boolean,Character,Integer,Integer64,Octet,Real,Double,String,Uri), theOrderedandNumericmarkers and the containers. Each class carries its BMMpackage, whether the generated crates carry a type for it (generated_type), and its full BMM ancestry asancestors, soDV_ORDEREDcarriesOrdered. The newis_primitive,is_foundation_typeandconforms_to_orderedlookups answer the AQL ORDER BY question (“primitives andOrderedtypes”, QUERY master03 §ORDER BY). The AQL engine expands a declared type to its descendants for RM classes only; a foundation type stays a value type. A reference-typed attribute (OBJECT_REF,PARTY_REF,LOCATABLE_REF) carriesref_target, the class the RM text says it points to (EHR.ehr_status→EHR_STATUS,PARTY_RELATIONSHIP.target→VERSIONED_PARTY), orNonewhere the text names no single class. A consumer that read “not in the model” as “primitive” now asksis_primitive. - The
openehr-*crates step to 0.0.79. openehr-itsexposes theAuthorizationvalue it sends (#3535).Credentials::header_valueis public, so a consumer can validate a credential at configuration load with exactly the value the client sends. Basic credentials are checked against RFC 7617 §2 (no colon in the user-id, no control character in either part) and bearer tokens against theb64tokensyntax of RFC 6750 §2.1. A refusal is a typedInvalidCredentials, which never carries the secret; a request whose credentials break these rules fails withClientError::InvalidCredentialsbefore anything is sent.- The
openehr-*crates step to 0.0.78. openehr-queryclassifies AQL function calls (#3529). A call naming one of the built-in functions in QUERY master03 §Functions parses toFunctionCall::Builtinwith a typedBuiltinFunction(StringFunction,NumericFunction,DateTimeFunction); any other name parses toFunctionCall::Other. Both keep the name as written, soprinter::to_aqlreturns it unchanged,CONTAINSincluded.FunctionCall::Namedis gone, and theToken::Containslexer token now carries its spelling. The CDR’s AQL engine uses this classification instead of a function list of its own.openehr-itsnames every operation’s declared parameters (#3530). Each generated*Paramsstruct carries aPARAMStable of the path, query and header parameters it holds (name as the OAS spells it, location, required, explode, and the value kind its schema states), written in the same pass as the struct. Each API group carriesROUTE_PARAMS, aligned withROUTES, androutes::lookupreturns the matched operation’s parameters withquery_param,query_keyandheader_paramlookups, so an intermediary can pass on exactly what an operation declares.openehr-itsReqwestTransportconstructors take areqwest::ClientBuilder(#3531).ReqwestTransport::newand the newwith_builder_timeout(replacingwith_client_timeout) build the client themselves, with redirects switched off.- The
openehr-*crates step to 0.0.77. - FerroTERM moves to 0.1.6 at
ghcr.io/ferrohealth/ferroterm(#3521). FerroTERM moved to the FerroHEALTH organization, and its releases from 0.1.6 on publish there. The terminology compose overlay, the hosted sandbox, the Helm chart (terminology.image, chart 10.1.6) and the FerroTERM integration test pin0.1.6@sha256:7ec4c962…, and the book links https://github.com/FerroHEALTH/FerroTERM.
Fixed
- AQL honours the per-EHR
EHR_ACCESSdecision (#3562). A query could return rows from an EHR whose path routes refused the caller: the gate ran only on routes carrying anehr_idin the path. Ad-hoc, stored and cohort queries now withhold every EHR the caller may not read, whether the query scopes it by theWHEREclause, anEHRpredicate, theehr_idparameter, or not at all. - A
+in a query string is a literal plus (#3545). The CDR decoded query strings as HTML forms do, where+means a space, so an unencoded offset such asversion_at_time=2024-01-01T00:00:00+01:00lost its sign. Query strings now decode per RFC 3986, as the OASstyle: formparameters (RFC 6570) define; a space is sent as%20. Client::forwardreturns a redirect as received (#3531). The client built byReqwestTransport::with_timeoutused reqwest’s default redirect policy and followed up to ten redirects, re-sending the request and its credentials to whatever host aLocationnamed. EveryReqwestTransportconstructor now switches redirects off, so a3xxreaches the caller and nothing is sent further. No ITS-REST 1.1.0 operation declares a3xx, so a generated client call that receives one refuses it as an undocumented status.- A FerroTERM pin the sandbox’s index cannot serve is refused on the pull
request (#3520). FerroTERM 0.1.5 moved its artifact layout to 7, and the
v4.3.2 sandbox leg failed on the layout-6 index the box carried. A
ferroterm-index-layoutCI job reads the layout at the pinned FerroTERM tag and refuses a pin that differs fromdeploy/hosted/ferroterm-index.env, the record of the box’s index. The box now runs FerroTERM 0.1.6 on a rebuilt layout-7 index, anddeploy/hosted/README.mddocuments the rebuild. - The generated ITS-REST types keep the members an open schema allows
(#3526). OpenAPI 3.0.3 makes
additionalPropertiesdefault totrue, so every ITS-REST object schema that does not set it tofalseadmits members beyond its declared properties. Theopenehr-itsREST types for those schemas now carry them in anadditional_propertiesmap, written back at the object’s own level, where they used to be dropped on decode.Erroris one of them, and the server now builds its error body from the generated type with theerrormember in that map. The body carries the same three members, witherrornow written aftermessageandvalidationErrors.
4.3.2 - 2026-10-01
Added
-
openehr-querycan rewrite, locate and bind a query (#3505, #3506, #3507, #3508).visit::Visitandvisit::VisitMutwalk every node of the AST, so a consumer finds, replaces or removes aWHEREcondition without its own recursive walk. EveryIdentifiedPathand everyWHEREcondition carries anast::Span, the byte range it was written at, so a diagnostic can point at a predicate without repeating its literal; spans take no part in equality.bind::bindsubstitutes ITS-RESTquery_parametersinto the AST as typed literals the printer escapes, at every position the grammar admits a parameter, and reports an unbound, unknown, duplicate or unbindable parameter by name, never by value. The opt-infederationfeature addsfederation::parse_federated, which lifts aFROM ENDPOINT p [ … ]orORGANISATION [ … ]directive out of a query and parses the rest as strict AQL. Breaking:WhereExpr::IdentifiedandIdentifiedPathgained the span (WhereExpr::identifiedandIdentifiedPath::newbuild them without one). -
openehr-itspublishes the server router and the intermediary seams (#3509, #3510, #3511, #3512, #3514). Underrest-server, each API group’sservermodule carries the trait, one success enum per operation (the documented2xxanswers with theirLocation,ETagand other headers) androuter(api), an axum router binding everyROUTESentry to its trait method. A method refuses withrest::runtime::Refusal, anApiErrorplus the headers its answer needs: the currentETagon a412, or the OpenAPI-declared headers of a demographic409/412through the generated headers structs (Refusal::with_headers). Either renders as the ITS-RESTErrorJSON body.rest::server::router(api)mounts all six groups at once, andrest::server::with_fallbacksmakes an unknown path answer404and an undeclared method405withAllow, both with theErrorbody.rest::routes::lookupmatches a method and path to its operation and path parameters without reading the body, andClient::forwardsends a request once and returns every answer as received, so an intermediary passes bodies,LocationandETagthrough byte for byte.CredentialsProviderresolves the credential before every attempt and hears about a401, for tokens that refresh.CallOptionsgives a generated client a deadline and extra headers per call (with_options); the remaining budget reaches the engine asRequestTimeout, and an elapsed deadline isClientError::DeadlineElapsed. Breaking: the server traits moved into<group>::serverand returnResult<success enum, Refusal>, and the response headers structs moved fromclientto the group module. The nineopenehr-*crates step to 0.0.74. -
The
openehr-itsITS-REST client carries what a consumer meets on first adoption (#3487). The commit operations (COMPOSITION, EHR_STATUS, the directory, EHR creation, the demographic parties and relationships) take the committal-metadata headers the ITS-REST overview defines and the OpenAPI declares no parameter for:openehr-version,openehr-audit-details(one field line per value) and, on the COMPOSITION and CONTRIBUTION commits,openehr-template-id. Every documented4xxoutcome carries the answer body as anErrorBody: the bytes as received, decoded as the ITS-RESTErrorwhen they are one, so a422’svalidationErrorsreach the caller;ClientError::Unauthorized,Forbidden,ServiceFailureandUndocumentedStatuscarry the same body. A400whose body carriesmessagealone decodes as theErrorwith an emptyvalidationErrors. A path parameter keeps:literal, so a version uid is sent as the specification writes it.Credentialshold their secret in asecrecy::SecretString(redactedDebug, zeroed on drop), withCredentials::basicandCredentials::bearerconstructors. The nineopenehr-*crates step to 0.0.72. -
openehr-itsships an ITS-REST client (#3485). The newrest-clientfeature adds a generated client per ITS-REST 1.1.0 API group (rest::generated::<group>::client) over a hand-written runtime (rest::client: theTransportengine trait, the shippedreqwestengine, Basic and Bearer credentials, the retry budget andClientError). Each operation takes its parameter struct, withPrefer,If-MatchandAcceptas fields, and answers an outcome with one variant per status the OpenAPI documents for it; declared response headers such asETagandLocationcome back in a typed struct. Any other status isClientError::UndocumentedStatus, and401,403and5xxare their own errors. Idempotent requests are retried after a transport failure or a5xx; aPOSTis sent once. A create operation also answersNoContent, the204the ITS-REST overview prescribes underPrefer: return=minimalalthough the OpenAPI lists201alone. FerroBRIDGE keeps its hand-written client until it moves to this one (its issue #276). The DTOs, parameter structs and route tables move to a newrestfeature over serde andhttpalone, which bothrest-serverandrest-clientbuild on, so a client never compilesaxum.fullnow includesrest-client. The nineopenehr-*crates step to 0.0.71. -
A CI guard keeps the Apache-2.0 crates free of BUSL-1.1 code:
scripts/checks/licence-boundary.shrefuses a normal or build dependency, or a feature, fromopenehr-base,openehr-lang,openehr-term,openehr-rm,openehr-amoropenehr-itsonopenehr-query,openehr-adloropenehr-sdt, and alicensefield that changes side.
Changed
-
The repository moved to the FerroHEALTH organization (https://github.com/FerroHEALTH/FerroEHR, #3516); the old
rubentalstra/FerroEHRURLs redirect. Images and the Helm chart now publish toghcr.io/ferrohealth/ferroehr,ghcr.io/ferrohealth/ferroehr-viewer,ghcr.io/ferrohealth/ferroehr-postgresandoci://ghcr.io/ferrohealth/charts/ferroehr, and the compose files, the chart and the book name those references. The v4.3.1 images and chart are copied there by digest. Everything published up to v4.3.1 stays available underghcr.io/rubentalstra, and its signatures namerubentalstra/FerroEHRas the repository that built it. The roadmap board is now https://github.com/orgs/FerroHEALTH/projects/2. The nineopenehr-*crates step to 0.0.75 for their newrepositoryfield. -
The dependency set moves forward in one step. OpenTelemetry goes to 0.33 (
opentelemetry,opentelemetry_sdk,opentelemetry-otlp,opentelemetry-prometheus) withtracing-opentelemetry0.34; the OpenAPI stack toutoipa6,utoipa-axum0.3 andutoipa-swagger-ui10;jsonschemato 0.58,sevenz-rust2to 0.23,lapinto 4.12 andconfigto 0.15.27. The bundled PostgreSQL image is rebuilt on the currentpostgres:18.6upstream digest (sha256:5a5a84b1…), a same-version respin with rebuilt base packages. The nineopenehr-*crates step to 0.0.73. -
FerroTERM moves to 0.1.5 everywhere the product pins it. The quickstart overlay
docker-compose.terminology.yml, the hosted sandbox compose file, the Helm chart (terminology.image.digestand the pinned version its tag default and Artifact Hub annotation read) and the integration test that starts the real server all nameghcr.io/rubentalstra/ferroterm:0.1.5@sha256:61a2d4aefc4a48e9e90b9a698a64bdfeb7ef6443744a1fe50972099456891fe9, the index digest read from GHCR. That release adds the history interaction,_summaryand_elementson read, a 406 on an unacceptableAccept, refuses a write that would duplicate a canonical, and states the position of a refused expression constraint on theOperationOutcome. The chart version becomes 10.1.3; an install that pins the chart keeps running the image it pinned. -
openehr-itsis split in two, and the wire layer is Apache-2.0 again (#3482). The new crateopenehr-sdt(BUSL-1.1) holds the hand-written Simplified Formats (FLAT, STRUCTURED, Web Template, TDD import), the template-independent RM-instance validation and the SMART on openEHR scope grammar.openehr-itskeeps the ITS wire layer: the generated canonical JSON dispatch, the canonical XML codecs, the ITS-REST contract, the OPT 1.4 and AOM2 archetype XML codecs, and the hand-written runtimes, canonical JSON entry points and wire-validation dispatcher they need. From 0.0.69 it is published under Apache-2.0, so a consumer of canonical JSON takes on no BUSL-1.1 code. Rust callers importopenehr_sdt::flat,openehr_sdt::rm_instanceandopenehr_sdt::smart_scopesin place ofopenehr_its::flat,openehr_its::rm_instanceandopenehr_its::rest::smart_scopes. Theflatandcachefeatures leftopenehr-itsforopenehr-sdt; awasm32-unknown-unknownconsumer ofopenehr-itsnow selectsdefault-features = false, features = ["opt14"], andopenehr-sdtwithdefault-features = falsecompiles to the scope grammar alone, with no dependency. Published versions keep their licence:openehr-its0.0.60 to 0.0.67 stayBUSL-1.1 AND Apache-2.0. -
The published
openehr-*crates are nine, and all step to 0.0.69 (#3482).openehr-sdtwas first published alone at 0.0.68, built against the 0.0.67 siblings; it joins the lockstep line at 0.0.69 and publishes afteropenehr-itsand beforeopenehr-adl. -
FerroTERM moves to 0.1.4 everywhere the product pins it (#3474). The quickstart overlay
docker-compose.terminology.yml, the hosted sandbox compose file, the Helm chart (terminology.image.digestand the pinned version its tag default and Artifact Hub annotation read) and the integration test that starts the real server all nameghcr.io/rubentalstra/ferroterm:0.1.4@sha256:f3b5f35a60d99d5c837125e5f8cf39d8eeecf9f69dbc79b9a526cc45aa706470, the index digest read from GHCR. That release reloads its served set without a restart, treats an index root’s child directories as releases, ships theferroterm-syncservice, and carries the standard concept status properties on locally authored code systems. The chart version becomes 10.1.2; an install that pins the chart keeps running the image it pinned.
Fixed
-
Two
500answers from theopenehr-itsREST server runtime carry a fixed message (#3518). An illegal response header and an answer body that does not serialize put the header name or the serde error into the body the client received; both now answer with a fixed text. -
The app and viewer images rebase onto a distroless base with the fixed OpenSSL (#3504).
gcr.io/distroless/cc-debian13:nonrootmoves tosha256:e792ab3d…, which carries thelibssl3t64update from DSA-6531-1 (CVE-2026-75804, CVE-2026-84782). The image scan refused the previous base with both findings at HIGH, so themainimages went untagged until this change. -
An AQL path predicate whose node boolean opens with a parameter or an archetype id parses (#3513):
CLUSTER k[$node and name/value='x']and[openEHR-EHR-CLUSTER.device.v1 or at0001]were refused, though the grammar inQUERY/docs/AQL/master07-grammar.adocadmits both. -
The
no attribution in commitsCI job no longer refuses theCo-authored-by: dependabot[bot]trailer GitHub writes when it squash-merges a Dependabot pull request, which had failed the last three pushes tomain. The commit-msg hook keeps that line too.
4.3.1 - 2026-09-16
Added
- A fourth backup CronJob for the audit domain (#3399). The Helm chart
renders
backup.auditas soon asdatabase.audit.existingSecretgives the audit trail a database of its own, with its own claim, credential and schedule, and drops--schema=auditfrom the clinical dump in the same render. Until then nothing changes: the trail shares the clinical database and travels with that dump. Before this, an audit database placed elsewhere was backed up by nothing and the operations page told the operator to dump it by hand. - An erasure tombstone on the party change-event stream (#3417). A
physically deleted party now leaves one contribution-less row on the party
domain’s own outbox before the delete commits, naming the party and every
PARTY_RELATIONSHIPerased with it, so a consumer of the party stream is told to delete what it derived. GDPR Art. 19 makes the controller communicate an erasure to each recipient the data reached, and the clinical outbox has carried the same row since #3416. - A dispatch-only storage benchmark lane (#3370). It runs the storage benchmark against a PostgreSQL 18 service with durability on, compares every operation with the record committed for the same schema generation, and fails the run when a p50 or p99 rose further above it than the dispatched tolerance. The summary lists each operation’s baseline, measurement, delta and verdict and names both machines; the fresh record leaves as a run artifact and the committed baseline changes only in a pull request. Exploration, never a conformance record: it earns no performance class.
- Restriction of processing, at whole-EHR or single-object grain (#3324).
A restriction register records who asked, on what ground and when, and the
mark it drives stops every path that would process the object: a point read,
a versioned read and a revision history answer
403with a body naming the restriction, AQL omits it at every scope, an EHR Extract skips it and refuses outright for a restricted EHR, the change-event stream neither emits nor delivers an event about it, and a write to it is refused. The stored rows are untouched — storage is the only processing GDPR Art. 18(2) leaves. Lifting stamps the register rather than erasing it, so the sequence Art. 18(3) turns on survives, and a whole-record lift leaves an object-scoped restriction standing.POST/GET {base}/admin/restrictionandPOST {base}/admin/restriction/liftdrive it, each act an access record of its own. - A per-EHR objection to research processing (#3325). While it stands, the
record leaves every full-population AQL query, every export and the event
stream, and a query naming the
ehr_idor a read for care is untouched: GDPR Art. 21(6) reaches research processing, not the care record. The public-interest override the article admits is recorded beside the objection and says on whose authority.POST {base}/admin/research-objection. - A retention register, and a list of what has fallen due (#3346). The
period per content category and jurisdiction with the legal citation it rests
on, a per-EHR anchor, a whole-record hold and a per-object hold, and a view
that lists the EHRs whose period has run with the counts of objects due and
objects exempted. Nothing is deleted on a timer: an openEHR record is
indelible, so acting on the list is the controller’s decision, taken through
the physical delete. Five routes under
{base}/admin/retention/, and a new book page, Retention, restriction and objection. - An access-log retention ceiling beside the floor (#3346). Set
[audit.store] sgb_v_309_controller = truewhere the deploying organisation is, or acts for, one of the controllers SGB V § 307 names for a German telematics-infrastructure application, and boot refuses anyretention_daysabove the three-year period § 309 Abs. 1 sets — including0, keep forever. A floor and a ceiling that contradict each other are refused outright rather than silently resolved in favour of one.
Fixed
- A date with text after it compares as no date (#3436).
openehr_date_daysread the leading four, six or eight characters of a value and ignored the rest, so20210102XYZ,2021-01-02 BC,2021-01-02 Europe/Amsterdamand2021acompared and ordered as dates in AQL. BASEfoundation_typesmaster06-time_types.adoc §Iso8601_date admits none of them, and each now reads as NULL, which is a comparison miss rather than an error.2021-01-02T10:30:45and its space-separated and lowercase-tvariants are unchanged.
Changed
-
The release profile links with thin LTO (#3098).
[profile.release]gainslto = "thin", the whole-binary optimisation the Cargo book describes for a CPU-bound path; the overflow-checks,panic = "unwind"and line-table posture is unchanged.codegen-units = 1was tried in the same cycle and withdrawn: the arm64 release build exhausted its runner twice. A release build takes longer; the throughput before/after is measured under #3452 once the box can be idle. -
LATEST_VERSIONunderCONTAINSis one key probe per object (#3453). The AQL emitter used to express “this row is the current trunk version” as two correlatedEXISTSsubqueries over the head table, which let the planner reach the version row byvo_idalone through the commit-time index and walk every trunk version of the object for every node row: 75 601 of the 93 255 buffers a class-spopulationCONTAINSread. The head row is now joined on its primary key and the version row reached through its own,sys_versionbound; the plan-shape tests pin the index and a ceiling of eight buffers per probe. Results are unchanged. -
The server needs only
btree_gist, which it installs itself (#3433). The second-generation schema calls nothing fromuuid-ossp,pgcryptoorpg_trgm, so the PostgreSQL image no longer installs them and the CI step no longer creates them.btree_gistbacks the temporal key onlinkage.subject_ehrand the server creates it at boot, so a plain PostgreSQL 18 database with a migration credential that may create it serves with nothing preinstalled. -
The conformance statement is signed by a named person for the company (#3438). A company signs through someone: the party statement’s signatory is now “Ruben Talstra, for Vernum Projecten B.V.” with the date of the change, and the rendered statement follows.
AI_STATEMENT.mdnames Ruben Talstra as author and maintainer, since the owner of the work is the company. -
The Licensor and copyright holder is Vernum Projecten B.V. (#3435). Every statement of the holder names the company:
LICENSEand the per-crate licence texts,REUSE.toml, the SPDX header of every first-party file (emitted for the generated crates, so they were regenerated), the licensing page, the landing footer and the conformance party statement, whose rendered statement and certificate were regenerated with it. The licences themselves are unchanged — the application and the three hand-written engines stay Business Source License 1.1 with the same Additional Use Grant, Change Date and Change License, the five generated model crates stay Apache-2.0, and releases up to v4.0.17 and crate versions up to 0.0.56 stay MIT as published, under the holder they were published with. Ruben Talstra remains the maintainer credit the banner,MAINTAINERS.md, the OCIauthorslabel and the chart maintainers carry, and theurn:rubentalstra:ferroehrconformance identifier is an identifier rather than a holder statement and stays. -
The
productiondeployment profile refuses the two compatibility defaults (#3323). The per-EHREHR_ACCESSdefault isopenand the audit trail fails open, both chosen so the conformance instrument and the development stacks work out of the box. Neither default changes; what changes is thatdeployment_profile = "production"now refuses to start while either stands, naming the key, the value and the remedy, unless the deployment accepts it by name indeployment_accepts— the mechanism the profile already uses. The two new gap tokens areopen_ehr_access_defaultandaudit_fails_open. GDPR Art. 25(2) asks that by default personal data not be made accessible without the individual’s intervention to an indefinite number of natural persons; the obligation binds the controller’s production posture, which is what the profile expresses. -
The deployment posture reads the audit pool and every domain database (#3398).
shared_clusternow includes the audit pool’s own cluster identity, so an audit database co-located with a pseudonymisation domain is reported instead of being invisible (Swiss DSV Art. 4 Abs. 5 keeps the log on a system separate from the one processing the data).migrate_on_runtime_credentialis evaluated per domain database rather than only from[db] migrate_url: a domain relocated to a database of its own is prepared on that domain’s runtime DSN, which is the same gap under a different key. -
ext.openehr_timestamprefuses a zone name and aBCera (#3427). PostgreSQL’s own date/time input reads2021-01-02T10:30:45 Europe/Amsterdamand2021-01-02T10:30:45 BC, and the separator-position gate in front of it let both through. BASEfoundation_typesmaster06-time_types.adoc §Iso8601_date_time ends the value at the offset, so both now read as NULL: an AQL comparison against such a stored value misses rather than matching a date the record does not carry. The check costs the helper 93 ms per 50 000 readings against 65 ms without it, measured on the same corpus where the first generation took 117 ms. -
The archive export lists multimedia blobs from the reference index (#3420). It used to walk every exported body in process to find the blob keys; it now reads
blob_ref, the index the node write path maintains in the same transaction as the nodes it describes, once per domain. The archive it writes is unchanged. -
The
extvalue helpers are each in the form that measured fastest, and read fewer things than PostgreSQL’s own date parser did (#3351). Five of the seven no longer open a subtransaction per row: they guard their casts ahead of them instead of trapping an error. The two whose whole body is parsing a date or a time keep the trap, because measurement makes it the cheapest validator available — over 50 000 readings they cost 58 ms and 70 ms, where the same bodies validating by hand so the cast can run untrapped cost 65 ms and 235 ms — and each carries that measurement in its function comment. Every helper reads faster than the one it replaces, and a value any of them refuses reads as NULL. Three readings tighten as a result, all of them values openEHR does not define: a date whose year carried leading whitespace or a sign is now unreadable, a date handed to the time parser no longer yields a number, andext.openehr_timestamprefuses a date that is not zero-padded (2021-1-2), an ordinal date (2021-002), and the words PostgreSQL accepts (now,today,yesterday,epoch,infinity). The first two made a stored value read as the current time. In the other direction it now reads the lowercasetand space separators on a reduced-precision date, which it used to read only at full precision. -
A physical EHR delete reaches everything the erasure has to reach (#3347, #3403).
DELETE {base}/admin/ehr/{ehr_id}runs one clinical transaction that removes the EHR and, through the foreign-key graph, its versions over both storage tiers with their nodes, attestations, contributions, commit audits, item tags, folder memberships, restriction and retention marks, multimedia blob references and pending change events; the subject proxies of a subject whose only record this was go with it, and an erasure tombstone is appended to the change-event stream, which each registered reader receives and applies by deleting what it derived (GDPR Art. 19). The cross-reference row naming the subject is then erased in the linkage domain, on the bulk route as well as the single one, and the externalized blobs no surviving version references leave the object store. The audit records naming theehr_idstay, because Art. 17(3)(b) withholds erasure where a legal obligation requires the processing and the access-logging periods are that obligation. -
Multimedia blob collection is an index lookup rather than a scan (#3347).
clinical.blob_refand its party twin record which stored version references which externalized blob, written by the node write path, carried across the archival tier move by their foreign key and removed with the version. The collector reads that index instead of pulling every node body of the deleted record into the process and substring-matching it against every node of both domains. -
An OPT 1.4 template whose ordinal symbol has no
<value>element is refused with the fix in the message (#3395). The ITS-XML profile schema typesC_DV_ORDINAL.listas the RMDV_ORDINAL, whosesymbolis aDV_CODED_TEXTcarrying a mandatoryvalue, so such a template is not a document the format admits and the refusal stands. Beside the element and line it already reported, the422now says to add<value/>, that an empty element is valid, and that the rubric is resolved fromterm_definitions. CKM’s exporter writes the element; Archetype Designer’s omits it. -
The migration-immutability rule binds SHIPPED files only (owner ruling 2026-09-15). A migration is immutable once it is in a release (present at the latest
vX.Y.Ztag); a file onmainthat no release carries has been applied by no installation and is fixed in place. The guard (scripts/checks/migration-immutability.sh) judges the pull request’s diff against the release tag’s tree and re-arms at every cut; nothing changes for an installation on a released version. -
BREAKING — the storage schema is rewritten, and a database created by an earlier release must be recreated (#3342, #3344). The rewrite is greenfield (owner ruling 2026-09-14): the new migration sets replace the old ones outright, nothing is upgraded in place, and the server refuses at boot a database whose migration record predates the rewrite. Take a dump of anything worth keeping before upgrading, recreate the database, and let the server migrate it. What changed, and why:
- The
ehrschema becomesclinicalanddemographicbecomesparty, each laid out as a sequence of natural migration files with one concern apiece rather than one squashed baseline. versionis append-only: it carries no validity interval, so a supersession writes no close-out statement, and the validity of a version is derived from itscommitted_at. One mutablevo_headrow per versioned object answers “what is current”, and none of the columns a commit updates appears in an index, so that update is heap-only.version,nodeandvo_attestationare partitioned by storage tier, so archiving an EHR is row movement inside one relation set rather than a copy into mirror relations: thecoldandcold_demographicschemas, every*_allunion view and thevo_archivemarker table are gone, the archive marker is two columns ofvo_head, and a foreign key holds across the tier.nodegains the promotedname_codeandname_terminologythe AQL node predicate needs, and drops the unreadcitem_num.- The clinical and party change-control and node relations are rendered from one shared DDL template, so the two domains cannot drift.
- The party domain gains
party_relationship_target, the target-side index behindPARTY.reverse_relationships. - The archive file format carries a version’s
committed_atinstead of a validity interval. An archive written by an earlier release does not load.
- The
-
BREAKING — the EHR id / subject cross-reference moves to the linkage domain, and erasure reaches it (#3345).
linkage.party_ehrbecomeslinkage.subject_ehrand absorbsehr.ehr_index: one temporal relation holding both the party-to-EHR map and the openEHR Service Model’s EHR Index associations (I_EHR_INDEX), which is what that service is for — an EHR persisted with only an EHR id, and a separate index to obtain the subject identifier. TheEHR_INDEXoperations and the subject-proxy subject resolution now run on the linkage pool; the clinical schema keeps only the promotedehr.subject_id/subject_namespacepair, under the pseudonym guard, because the wire bindsehr_get_by_subjectand the one-EHR-per-subject409to EHR_STATUS content. The subject-proxy relations (sp_subject,sp_variable,sp_data_set,sp_sample) key on a derived opaquesubject_keyinstead of the caller’s own subject identifier, so no unguarded subject identifier remains in the clinical domain (GDPR Art. 4(5)), and a catalog test asserts it. Deleting an EHR now removes the cross-reference rows naming it, throughlinkage.erase_ehr— aSECURITY DEFINERfunction theferroehr_linkagerole may execute while still holding noDELETEon the table — so an erased record leaves no row behind saying whose it was (Art. 17(1)). Subject-proxy registrations and index associations made under an earlier release do not carry over; the storage rewrite above requires a fresh database in any case. -
BREAKING — one pool and one DSN per storage domain, and the runtime roles are named after them (#3343). Each of the four storage domains —
clinical,party,linkage,audit— now has its own configuration table,[storage.<domain>]withurl/url_file, and its own connection pool carrying only that domain’s schema on itssearch_path. Every domain defaults to the shared[db].url, so a configuration file that names no[storage]table at all, and the compose quickstart, behave exactly as before. What changed for a deployment that had already separated its credentials:[db].demographic_url,[db].demographic_url_file,[db].linkage_urland[db].linkage_url_fileare gone. Move them to[storage.party]and[storage.linkage]; the old keys are refused at boot by name rather than ignored.- The chart’s
database.demographicExistingSecret,database.linkageExistingSecretand their*Key/*Urlsiblings becomedatabase.<domain>.{existingSecret,existingSecretKey,url}forclinical,party,linkageandaudit. The mounted files arestorage.<domain>.urland the environment names areFERROEHR__STORAGE__<DOMAIN>__URL_FILE. - The runtime roles are the domain roles and nothing else:
ferroehr_clinical,ferroehr_clinical_reader,ferroehr_party,ferroehr_party_readerandferroehr_linkage, beside the DDL-onlyferroehr_migrator. The first generation’sferroehr_ehr,ferroehr_ehr_reader,ferroehr_demographic,ferroehr_demographic_readerand the genericferroehr_app/ferroehr_readerpair are gone: no migration creates or grants to them, the compose database image no longer provisions them, and a DSN that authenticates as one of them holds nothing. A login role is granted the domain role of the pool it serves (GRANT ferroehr_clinical TO <login>); the clinical role also writes the local Audit Record Repository. - The compose backup service
ferroehr-backup-demographicisferroehr-backup-party, its directory variableFERROEHR_BACKUP_DEMOGRAPHIC_DIRisFERROEHR_BACKUP_PARTY_DIR, and the chart’sbackup.demographic.*values arebackup.party.*.
A DSN naming another host moves that domain to a database or cluster of its own, which is the separation a schema inside one database cannot make: a base backup, WAL archiving and physical replication carry every schema of a database together (PostgreSQL 18, Backup and Restore). Schema preparation follows: the
extset is applied per database by whichever domain reaches it first, so two co-located domains share one copy and a relocated domain carries its own. One layout is refused rather than half-applied — thelinkagemigration set revokes a function thepartyset creates, so those two are prepared in the same database.The boot gate grew two refusals. Two domains configured on DIFFERENT DSNs that authenticate as the SAME database role are refused, because a separation that exists only in the configuration reads as one that holds. And a domain role that does not exist is a warning under
deployment_profile = "sandbox"and a refusal underproduction, where absent roles mean absent grants and the check would otherwise pass by having nothing to measure.ferroehr config checkprints the resolved domain layout, naming no DSN. -
The Helm chart is 10.1.1, a major bump (#3342, #3343, #3344, #3378). The values contract changed in three ways a values file can notice: the per-domain
database.<domain>blocks above replace the flatdemographicExistingSecretandlinkageExistingSecretkeys,config.tenancyno longer exists and is refused at render with the reason, and the per-domain backup CronJobs dump the generation-2 schemas (clinical, ext, auditandparty) instead of the retired mirror schemas. The docker-compose backup services dump the same sets, and all six jobs now pass--strict-names, so a--schemapattern matching nothing fails the dump instead of writing an artefact that silently lacks that half (PostgreSQL 18, pg_dump §Options). -
A newer runtime base image (#3439). The server and the viewer image build on
gcr.io/distroless/cc-debian13:nonrootat digestsha256:54df941e, the digest that tag resolves to today. Theorg.opencontainers.image.base.digestlabel moves with it in both Dockerfiles and in the two publishing lanes, which is what the image-labels guard checks. -
Four runtime dependencies move to their current patch (#3442).
lapin4.11.0 retries the initial AMQP connection properly when recovery is on, which is the mode the events transport runs in;reqwest0.13.5 fixes proxy authentication picking the wrong credentials when several proxies match a request, and a blocking-client timeout panic;tokio-rustls0.26.5 returns more data perpoll_readon a TLS stream;fancy-regex0.19.2 cuts pattern build time. No API a caller here uses changed. -
jsonschema0.55.1 (#3443). It compiles the vendored ITS-JSON schema behindopenehr-its’sschema-validationfeature. The releases since 0.53.0 correct the keyword location an error names and several schema canonicalisation defects; the 626-testopenehr-itssuite, the ITS-JSON corpus gate among it, passes unchanged. The eight publishedopenehr-*crates step to 0.0.67 with it, since the requirement is part of their packaged manifest.
Removed
- The Subject Proxy service (#3431). It realised SM
I_SUBJECT_PROXY_SERVICEandI_DATA_BINDINGover thesp_*tables, had no REST route and no consumer outside its own configuration. Gone with it: the[subject_proxy]configuration section and its FHIR-frame executor, thesp_*tables, the erasure reach into them, the Helmconfig.subject_proxyvalues and the Subject Proxy book page. No openEHR specification obliges a CDR to realise every SM component; SMmaster02presents the platform as a set of services a deployment composes.docs/architecture.mdlists the component as not realised. - Multi-tenancy (#3378). Multi-tenancy is achieved by running separate
instances: one instance, one database, one set of domain roles per
organisation. That is where openEHR puts it. An openEHR system is “a
distinct logical repository corresponding to an organisational entity that is
legally responsible” for the data, and it is “distinct from any underlying
virtualisation infrastructure or cloud computing facility, which may house
multiple logical EHR systems in a multi-tenant fashion” (BASE
architecture_overview/master06-design_of_the_ehr.adoc§The EHR System) — so tenancy belongs to the layer that hosts several systems, not inside one. The same chapter’s §System Identity is why housing several organisations in one system was wrong rather than merely unnecessary:system_idnames that one legally responsible system, it “becomes embedded in the version identifiers of committed – and possibly signed – content”, and it “cannot easily be changed afterwards”. No relation carries a tenant column, no row policy or session GUC scopes a read, and the[tenancy]configuration, the tenant middleware, the/admin/tenantroutes and the Helm and compose tenancy keys are gone. The pseudonymisation domains and their role barriers are unrelated to tenancy and stay.
Security
- rustls 0.23.45 (RUSTSEC-2026-0285): the TLS stack no longer accepts TLS 1.3 handshake messages sent at the wrong encryption level after a key change (RFC 8446 §5.1). Lockfile bump only; no configuration changes.
4.3.0 - 2026-09-14
Added
- The pre-rewrite storage baseline is committed (#3368). The storage
benchmark’s class-
srecord for the first-generation schema lives atdocs/benchmarks/storage/generation-1/record.jsonand renders on the performance page, so the storage rewrite (#3337) is compared against a committed record rather than a claim. The harness’s end-of-run relation table gainsdead_tuple_percent, the exact heap figurepgstattuplereads (null where the extension cannot be created), beside the planner’s estimates. - A storage benchmark harness (#3367).
cargo bench -p ferroehr --bench storageseeds a corpus through the ordinary write path, then times the storage layer’s hot paths one at a time: a composition commit, a supersession, theIf-Matchsupersession, point reads by version uid and by versioned-object uid, the version at an instant, the revision history, an AQL CONTAINS chain over one EHR and over the population, archive and restore of an EHR, and one retention prune. Beside each operation’s wall-clock it records what the database did for it: the per-relation tuple counters and relation sizes frompg_stat_user_tables, buffer hits and misses frompg_stat_database, the write-ahead-log bytes either side of the measurement, one representative commit probed on its own, andEXPLAIN (ANALYZE, BUFFERS, WAL)of the population statement inside a rolled-back transaction. Everything runs through the service and the public storage API, and the relations are discovered from the catalogue, so the same harness measures a rewritten schema. The JSON record lands underdocs/benchmarks/storage/<schema-generation>/and reaches the performance page throughscripts/render/storage-bench.sh. It is a benchmark, never a conformance record: conformance is the CNF suite Veredictum runs. - The Kubernetes deployment probe observes the FerroTERM workload (#3328).
scripts/deploy-probe-k8s.shgains a terminology stage (P-K8S-TERM-*) that reads the chart’sterminology.enabledclaims off a running cluster: the absence of every terminology object while the gate is off, the rollout, the applied runtime posture from the container runtime’s own spec, the shaped seed reaching the process through the ConfigMap volume, the NetworkPolicy refusing a pod the CDR’s selector does not name in this namespace and in another while the CDR itself is admitted, and a value-set binding resolved through the Service. A mounted index is probed whenK8S_TERM_INDEX_CLAIMnames an existing claim, and is declared not exercised by probe id when it does not. - Identifier-scanner rules for Germany and Switzerland, and the Swiss access-log
retention floor (#3318, #3319).
de-kvnrrefuses the unchangeable part of a Krankenversichertennummer (a letter, eight digits and the GKV-Spitzenverband’s check digit),ch-ahvn13the AHV number in its plain and dotted display forms (AHVV Art. 133; the BSV’s Wegleitung check digit) andch-epd-pidthe EPD patient identification number (EPDV-EDI Anhang 1, the fixed76133761prefix and its check digit), each transcribed from the issuing authority’s own publication and tested against its worked examples. With a Swiss rule active, the server refuses to boot with an auditretention_daysunder the one year DSV Art. 4 Abs. 5 requires. The AHVV joins the vendored corpus atdocs/law/ch/ahvv/. - The regulation corpus gains the German and Swiss layers (#3293,
#3294).
docs/law/de/carries the BDSG, SGB V (the ePA and telematics provisions, §§ 341–355 and 360–363), the GDNG and the StGB (§ 203) as the XML gesetze-im-internet.de publishes, pinned by the publisher’s build stamp, plus the Digital-Gesetz as its Bundesgesetzblatt issue;docs/law/ch/carries the DSG/FADP and DSV/DPO in German and the non-binding English, and the EPDG, EPDV and EPDV-EDI in German, each at its current Fedlex consolidation. Two vendor scripts, provenance and digests per act, the publishers’ no-copyright articles quoted inLICENSES/, and the compliance overview gains a Germany and a Switzerland section stating, provision by provision, what the software ships and what the deploying organisation must do. - The Helm chart runs FerroTERM beside the CDR (#3305, chart 8.3.0).
terminology.enabledrenders the terminology server as its own workload — Deployment, ClusterIP Service, ServiceAccount, NetworkPolicy — under the same Restricted profile as the CDR, and points the CDR’sconfig.terminology.externalat its Service, so archetype bindings resolve at commit and AQLTERMINOLOGY()expands through it (the CDR’s own/terminology/*extension routes stay a separate switch,config.terminology.api_enabled, and are off by default). Every values file that contradicts that injection is refused at render rather than silently overwritten: adefaultprovider of your own, anexternal.enabled: false, afail_on_errordisagreeing withterminology.failOnError, and a provider with noexternal.routesentry naming it. The licence-free shaped seed ships with the chart and is mounted as a ConfigMap, so an install from the registry serves terminology with no checkout; a release you hold a licence for is an index built off-cluster and mounted from an existing claim named interminology.index.persistentVolumeClaim— which also switches the workload tostrategy: Recreate, because a rolling update’s surge pod cannot attach a ReadWriteOnce volume the outgoing pod still holds. No Ingress is rendered for it and no value renders one: the CDR is its only caller, and its NetworkPolicy admits the CDR’s pods alone. No boolean opens that port;terminology.networkPolicy.extraIngressFromadmits a peer you write, and the values schema refuses an empty one (a barenamespaceSelector: {}selects every namespace). Above one replica, the pods spread one per node andterminology.podDisruptionBudgetguards them through a drain.
Fixed
- Under multi-tenancy an unset
ferroehr.tenant_idno longer resolves to the reserved default tenant: the server stamps the tenancy posture at boot, every connection it opens declares its tenant explicitly, and the tenant reader refuses a connection that declares none. Single-tenant deployments are unchanged (#3341). - Under multi-tenancy the AMQP outbox drainer and the FHIR outbound emitter drain every registered tenant’s rows in turn, with a delivery cursor per tenant, instead of the default tenant’s alone (#3355).
- The event-outbox retention prune stops at the lowest cursor of every active
reader instead of deleting on age alone: the FHIR outbound emitter (and any
future cursor reader) now owns a row in the new
event_outbox_readerregistry, reconciled from the configuration at boot, and a published row it has not reached survives the retention window. The singletonfhir_outbound_cursortable moves into the registry with its watermark (#3330).
4.2.5 - 2026-09-12
Changed
-
The compliance overview’s GDPR section covers the data-subject rights, the processor terms, breach notification and research (#3326). From the audit recorded on #3322: rows for Art. 12(3), 15, 16, 17, 18, 19, 20, 21, 28(3)(e) to (h), 33(3)(a) with 34(3)(a), and 89(1), each naming what the product ships, the tracker status and what the deploying organisation must still do, with the same split mirrored on the shared-responsibility page. Where the text is silent, on encryption at rest and on audit-log retention, the rows say so instead of implying a requirement.
-
The sandbox dataset pins 231 accepted / 91 refused ADL 2 archetypes (#3315). Beside a terminology server that serves LOINC, two archetypes of the 2013 CKM corpus are refused by the VETDF check for LOINC answer codes that do not exist:
apgarbinds fifteen codes without their check digit (LA6713…LA6727) andbraden_scalebinds the mistypedLA9605-4. The sources stay verbatim, the manifest records the adjudication, and the getting-started page counts 233 archetypes.
4.2.4 - 2026-09-12
Fixed
- ADL 2 archetypes with SNOMED CT or LOINC term bindings upload against a
terminology server that does not serve those code systems (#3311). The
VETDF check asked the server about
system=SNOMED-CT&code=<the binding URI>and read every miss as “the term does not exist”, so with FerroTERM beside the CDR six archetypes of the sandbox dataset were refused and the seed failed. A binding target in the IHTSDO URI model (http://snomed.info/id/…,http://loinc.org/id/…) is now taken apart into the FHIR system and code the server is asked about, and the server’sOperationOutcomedecides the outcome: a code system it does not serve leaves the binding unverified and the archetype accepted with a warning, as AOM2’s VETDF prescribes; a code absent from a served system is still refused with422. Verified against a real FerroTERM in the test suite.
4.2.3 - 2026-09-12
Added
- FerroTERM ships with the quickstart and runs beside the sandbox CDR
(#3304).
docker-compose.terminology.ymlstarts the Ferro family’s FHIR terminology server next to the CDR and switches[terminology.external]on, serving the licence-free shaped seed out of theferroehrimage by default and any edition you build into its index volume (ferroterm-build, theterminology-buildprofile). The hosted sandbox runs the same pair on one machine with the terminology server reachable only from inside the stack, which is the posture the SNOMED CT Affiliate Licence asks of a public system, and its dataset gains a composition whose coded text resolves through it. The deployment probe observes the overlay off, on and resolving, and the server down under both fail postures. FerroTERM is pinned at 0.1.3, whose image carries its ownHEALTHCHECK(ferroterm healthcheck), so both compose files start the CDR only once the terminology server reports healthy (#3307).
4.2.2 - 2026-09-12
Fixed
- A wiped clinical schema comes back with its cold-tier alias views
(#3298). The three
ehr.cold_*views the storage layer reads through were created by the demographic migration set, so a database whoseehrschema was dropped and rebuilt (the hosted sandbox after every nightly reset since 4.2.0) came back without them, and every composition orEHR_STATUSupdate answered500while creates and reads worked. A new clinical migration recreates the views whenever the demographic set has run, and widens a view created beforevo_version.originsexisted. The sandbox reset now drops all seven schemas, so a reset is a fresh start rather than a partial one. - The compose quickstart role can reach the linkage domain. The database
init script granted the application login the clinical and demographic
domain roles but not
ferroehr_linkage; it worked only because that login owns the database.
4.2.1 - 2026-09-12
Fixed
- Identifiers carry the licence stamp the design specifies (#3282). The stamp keyed its HMAC with a hash of the key material and used a fail-safe constant of its own, so no identifier a 4.2.0 server minted could be attributed to its licence by the attestation tooling; the key is now the raw material and the unlicensed constant is the design’s. Identifiers minted by 4.2.0 stay valid and simply carry no recognisable stamp.
4.2.0 - 2026-09-12
Added
-
The storage-parity sweep reports rows an older release decomposed (#3273). A fifth
defectvalue,stale_decomposition, onPOST {base}/admin/integrity/verifyand its NDJSON stream: the rows reassemble into exactly the stored document, so nothing is damaged, but they are not the rows this version writes for it. The sweep now decomposes each version’s document a second time and compares, which is the only way that case is visible;POST {base}/admin/integrity/rebuild-nodesrepairs it like any other finding. A release that changes how content is decomposed is therefore an upgrade step an operator runs and verifies, instead of a shape that waits for each object’s next commit. -
Cohort queries across the pseudonymisation boundary (#3159). A new
POST /query/cohortruns an AQL query over a population selected in the demographic domain: a predicate from a deployment-declared allow-list ([cohort.predicates]—city,postcode_area,sex,age_band,organisation, each naming an archetype, an at-code and how a value is matched) selects parties, the linkage domain resolves those parties to the EHRs they are the subject of, and the caller’s AQL runs scoped to exactly those EHRs. The three steps run on three separated database credentials and carry identifiers only — no name, address or party id reaches the caller. A result set serving fewer distinct EHRs thancohort.small_cell_threshold(default5) has its rows withheld and is marked suppressed rather than looking empty; a predicate matching more thancohort.max_cohort_sizeparties (default100000) is refused422rather than truncated. Every execution, suppressed and failed ones included, records onelinkage-domain access event naming the cohort by a digest of its predicate list and never by its values. The surface is off until a predicate is bound, and the route answers404until then. -
AQL EHR scoping binds one array instead of one parameter per id. A query scoped to a set of EHRs now emits
ehr_id = ANY($n)with a single uuid-array bind, lifting the PostgreSQL 65535-parameter wire ceiling that previously bounded how many EHRs one query could name. Behaviour is otherwise identical. The per-EHR served-row count behind the access records and the existence check of a scoped id list are now keyed rather than probed, so a population page of a hundred thousand rows from as many EHRs is served in linear time (the 100 000-EHR cohort measured at fifty seconds before, under a second in the database itself). -
The viewer shows the connected CDR’s deployment profile (#3264). The header’s status chip carries the declared profile (
· productionor· sandbox), and a sandbox deployment raises a persistent notice under the header on every authenticated screen stating that it has not made the production separations and must not hold real patient data, naming the open separations the server reported. Production renders quietly; a server that declares no profile changes nothing. -
Deployer-facing privacy documentation (#3161). Three pages under Security: a data protection impact assessment (processing description, data categories per schema, roles, retention including the Dutch five-year access-log floor, a risk register, and the shipped controls mapped to GDPR, EHDS, EDPB 01/2025 and NEN by closed issue), an Article 30 records-of-processing template pre-filled with the activities FerroEHR performs by design, and a go-live checklist linked from the production checklist.
-
The threat model, architecture and storage pages describe the pseudonymisation boundary as shipped (#3166): what each database credential and each backup artefact can reach, the re-identification paths and the control against each, which service module runs on which pool and role, and all seven schemas including
linkage. -
The FHIR page records the priority-category mapping decision (#3206): profile mappings are not authored here and belong to FerroBRIDGE once the EHDS Article 36 implementing acts fix the exchange format; the trigger that reopens the question is stated, and the two priority categories with no committed template are recorded as an adjudicated corpus boundary.
-
The access log records the origin of the data it served (#3212, EHDS Annex II 3.2(e)). Every committed version now carries the distinct set of
FEEDER_AUDIT.originating_system_audit.system_idvalues found in its body, or this server’s own system id when it carries none (vo_version.origins, derived at commit; an unstamped row is assessed at read). A composition, status or folder read records the origins of the version it served, an AQL execution the union over the version rows its result page came from, each with the true distinct count beside a set capped at 32; the FHIRAuditEventcarries one named entity per origin and ITI-81 serves it. -
The server mints the subject pseudonym (#3232). Where FerroEHR itself makes a party the subject of an EHR,
service::linkage::link_as_subjectderives the pseudonym (a keyed, tenant-bound derivation over the party under the linkage key, an RFC 9562 custom UUID), writes it as the EHR’sEHR_STATUS.subject.external_refin the first declared namespace, and opens the mapping; no caller-supplied value enters that path. Minting refuses, typed, when no namespace is declared or no identifier-protection key is configured. -
The access log has a retention floor per jurisdiction (#3242). A non-zero
audit.store.retention_daysbelow the floor a jurisdiction the active identifier rules name publishes is a boot error naming both numbers. Registered: NL, five years (1830days) under the Besluit vaststelling bewaartermijn logging.0keeps forever and always passes; the effective retention is on the boot line and on/management/info. -
A declared deployment profile (#3226). The new top-level
deployment_profilekey (sandbox, the default, orproduction) says what a deployment may hold.productionrefuses to start while a separation it asserts is missing and not accepted by name indeployment_accepts: separated database credentials, separated clusters (read frompg_control_system().system_identifieron each pool, never from the DSN text), a declared subject pseudonym namespace, an audit trail with a durable sink, schema preparation on its own credential.sandboxnames every missing separation on the banner, atwarnwith a structuredposture = "deployment"field, and onGET /rest/statusunderdeployment. Our own posture, not a legal requirement; the documentation says so and why. -
The database guards the subject pseudonym (#3241). Once
privacy.subject_namespacesis declared, a trigger onehrrefuses a subject reference that is not a UUID whichever code path or session writes it; the server stamps the posture on every boot and reports how many stored EHRs a newly declared namespace finds already carrying a non-pseudonym subject. -
A subject-scoped read of the access log (#3240).
GET /fhir/r4/AuditEventwas admin-only, so a portal serving a person’s right to know who accessed their record (GDPR Art. 15, EHDS Art. 9) had to hold an admin credential over every patient’s log. A newauthz.rbac.subject_audit_rolereads the log for one subject at a time,patientrequired and refused with a403without it; the admin keeps the unscoped retrieval, and reading a subject’s log is itself recorded as an access naming that subject. Unset, nothing changes. -
The access record carries the caller’s roles (#3239). NEN 7513 asks under which role or authority a person accessed a record; the RBAC layer held the caller’s roles and the record dropped them. Every access event, the request-level ones and the domain-level linkage, subject, identifier and EHR-Extract records alike, now stores the roles as a JSON array (
audit.audit_event.roles,NULLfor an unauthenticated refusal), renders them as FHIRagent.roleon the requestor and as aRoleIDCodeper role on the DICOM source participant, and serves them through ITI-81. -
Auditing off and
fail_mode = "open"are said where an operator looks (#3238). Auditing disabled used to be one info-level line; the fail-open default was silent. Both are now awarnat boot with a structuredposture = "audit"field, theaudit_senderreadiness indicator is registered whether or not auditing is on (DEGRADEDwith the consequence stated when it is off,UPwithfail_mode, the local store and retention otherwise), andGET /management/infocarries theauditposture. The audit page states at its top what each posture means. -
The licence in force is explicit, verified and reported. Every build embeds the licensor’s
non-commercialgrant (what BUSL-1.1 gives everyone); acommerciallicence is installed with the new[licence] filekey (FERROEHR__LICENCE__FILE), an OpenPGP-signed token verified at boot against the licensor’s embedded public certificate. The server behaves identically under either grant: the outcome is logged once at boot and served onGET /rest/statusaslicence: {state, use, licensee, not_after, configured_token}. Every identifier the server mints (EHR ids, versioned object ids, contribution ids) carries sixteen keyed bits derived from the licence id in the trailing bytes of its UUIDv7, so a record says which grant it was written under; the bits replace random bits only, never the timestamp or counter, and carry no patient data. A configured token that does not verify leaves the embedded grant in force and is reported asrefused. -
The linkage resolution service: one path from a person to a record, over two credentials, under audit (#3158).
ferroehr::service::linkageopens, resolves, merges and splits the party-to-EHR mappings the previous increment created the schema for.resolve_ehr_for_identityis the only path that crosses from an external identity to an EHR, and it crosses in the APPLICATION: the sealed identifier map answers with a party on the demographic pool, the linkage map answers with an EHR on the linkage pool, and no statement on either could perform the join, because no credential holds both schemas. Merge and split are period-closing writes in one transaction — the mapping in force gets an end date and its successor opens at the same instant — so no mapping is ever deleted and which party was the subject of an EHR when a composition was written stays answerable. Every operation records alinkage-domain access event naming the actor, the purpose of use the caller declared and whether anything matched; the resolved EHR is deliberately counted and not named, because the audit trail lives outside this domain’s role and a party/EHR pair there would be a second copy of the map.GET /ehr?subject_id&subject_namespaceis unchanged on the wire and still resolves through the clinical columns — it matches an opaque pseudonym, not an identity — but now records a linkage-domain access event of its own, because who resolved a subject to a record is worth knowing wherever it happened. -
[db] linkage_url, the third runtime credential (#3158). Alongsideurlanddemographic_url(andmigrate_urlfor schema preparation), a deployment can now point the linkage pool at its own DSN, with thelinkage_url_filemounted-secret sibling every other credential has; setting both is a boot error, and leaving it unset shares the clinical DSN exactly as before. The Helm chart carries it asdatabase.linkageExistingSecret/linkageExistingSecretKey/linkageUrl, mounted as a file so only its path reaches the pod’s environment (chart 8.2.0). With all three set, no credential the server uses can re-identify a record in SQL. -
A third pseudonymisation domain: the
linkageschema holds the party-to-EHR map (#3158). A migration adds thelinkageschema, thelinkage.party_ehrtable and theferroehr_linkagerole. The table records which demographic party is the subject of which EHR, temporally: a PostgreSQL 18WITHOUT OVERLAPSprimary key admits one open mapping per party per tenant at any instant, so a merge or a split closes a row and opens another instead of deleting history. It carries identifiers only — no name, no address, no plaintext identifier — because a row is already the additional information that re-joins a pseudonymised record to a person (GDPR Art. 4(5)). The grants run in both directions: the clinical and demographic roles are revoked fromlinkage, andferroehr_linkageis revoked fromehr,cold,demographicandcold_demographic, so no one credential holds the map and either side of it. The boot gate (verify_domain_isolation) now covers all five runtime roles and refuses to serve when any of them can read across. Nothing reads the new schema yet; the resolution service is still to come. Upgrading installations get an empty schema and no data movement. -
A third backup: the
linkagedomain is dumped on its own, and the deployment probes cover its boundary (#3220). The Composebackupprofile gainsferroehr-backup-linkage(FERROEHR_BACKUP_LINKAGE_DIR, defaulting to./backups/linkage) and the chart gains a third CronJob underbackup.linkage, with its own schedule, claim and BYPASSRLS credential. It is deliberately a separate artefact rather than a place in the demographic dump:linkage.party_ehris the map that re-identifies a pseudonymised record, so a file carrying it beside either side of that map rebuilds the join the split exists to withhold (GDPR Art. 4(5)). The chart’s render guards are now pairwise — any two domains naming the same claim is refused, not just the original pair — and the operations page documents three dumps and a restore that supplies all three. The linkage dump carries--extension=btree_gist, because a--schemadump carries no extension andlinkage.party_ehr’s temporal primary key is a GiST index over that extension’s operator classes: without it the table restores with its rows and without the key, andpg_restorereports that as an ignored error. Enablingbackuptherefore now requires a claim and a Secret for the linkage domain too; a values file that sets only the first two is refused at render, naming what is missing — a values contract change, so the chart goes to 8.0.0. -
The audit trail records the accessing organisation, and the declared purpose reaches the FHIR export (#3204). An access record now carries an
organisationcolumn: the organisation the caller acted for, read from the access token’s[authz.abac] organization_claim— the same claim the ABAC layer decides on, so no second setting can name a different one, and recorded whether or not that layer is switched on. It answers EHDS Annex II 3.2(a) beside the natural person of 3.2(b), and where no claim is configured or the caller used Basic authentication it stays empty rather than being guessed. The FHIRAuditEventexport renders it as a secondagentreferencing anOrganization, and the purpose of use asagent.purposeOfUseon the requesting person’s agent, coded with the deployment’s own vocabulary and no code system. The DICOM syslog form carries neither: PS3.15 §A.5 defines no organisation attribute and no purpose element. Existing records keep a NULL organisation — the column is added by a migration and nothing is backfilled. -
Which EHDS priority categories the FHIR façade carries, measured rather than asserted (#3171). The FHIR chapter now carries a generated matrix of the six Annex I priority categories: which has a committed CKM template, which FHIR resource a profile mapping would target, and whether the transform is proven end to end. Four of the six — patient summaries, electronic prescriptions, imaging reports and laboratory results — have a real committed template whose example composition flattens and reverse-maps into a FHIR resource carrying its own values, asserted per category with the mapped leaf derived from the flat map rather than written into the test. Electronic dispensations and discharge reports have no committed template, and the table says so. It also says the three things it does not establish: no profile mapping ships for any category, the test exercises the transform rather than the endpoint, and none of it is conformance to an exchange format that has not been adopted. Those gaps are #3206.
-
The EHDS logging elements are mapped onto the audit trail, gaps included (#3170). Annex II 3.2 of Regulation (EU) 2025/327 lists five things the European logging software component must record on every access event. The audit page now maps each of them onto an access-event field and onto both renderings the trail leaves the server in, and says plainly where there is nothing: the accessing organisation (a) and the origin of the data (e) have no field, the category (c) is an openEHR resource class rather than an Annex I priority category, and the declared purpose of use is stored but reaches neither export. Every row is asserted by a test — including the gaps, which fail the day the field arrives, so the table and the code cannot drift apart in either direction. The retention default and the two export routes are documented beside it, with the reason
retention_days = 0keeps records forever rather than choosing a horizon for an operator. Closing the gaps is #3204. -
Two EHDS readiness pages, generated from one source (#3169). Chapter III of Regulation (EU) 2025/327 requires an EHR system to include two harmonised software components, meet the essential requirements of Annex II, and carry technical documentation and an EU declaration of conformity. The documentation site now states, requirement by requirement, what FerroEHR provides today: an EHDS readiness page with a status and evidence for each of the 14 Annex II requirements, and a technical-documentation page mapping each Annex III element to material that exists. Both are rendered from a committed YAML by
scripts/render/ehds-pages.sh, and a CI job re-renders and diffs, so a status typed into a page fails the build. Both pages say plainly that no conformity assessment has been carried out, no technical documentation has been drawn up and no declaration of conformity exists — a “shipped” row is a statement about the software, never a claim of conformity. -
openehr-itscompiles towasm32-unknown-unknownwith the flat and OPT code in it (#3149). The crate’s onefullfeature dragged axum, moka and jsonschema in with the parsers, so a browser consumer that wantedflat::build_web_templateor the OPT 1.4 reader had to take an HTTP server and a cache too — anddefault-features = falseleft only the SMART scope grammar. The features are layered now:json→xml→opt14→flatis the parsing spine, andcache(moka),schema-validation(jsonschema) andrest-server(axum, http, async-trait) are the layers a browser declines.fullis still the default and still means all of them, so no existing consumer sees a change. A CI lane builds the wasm selection, and a second one builds the dependency-freerest::smart_scopesisland, so both are checked rather than claimed. -
Backups are taken per pseudonymisation domain (#3157). A single
pg_dumpof the whole database produces one file holding both the pseudonymised clinical record and the identities of its subjects, and whoever can read that file can re-identify every record in it. The Compose stack gained an opt-inbackupprofile with one job per domain, writing to two separate directories (FERROEHR_BACKUP_CLINICAL_DIR,FERROEHR_BACKUP_DEMOGRAPHIC_DIR), and the operations page carries thepg_dump --schemarecipe, the restore procedure, and the two properties no configuration can enforce for you: different access control on the two targets, and a credential per job that reaches one domain. Point-in-time recovery stays instance-wide and the page says so. A backup credential needsBYPASSRLS: every tenant-scoped table carriesFORCE ROW LEVEL SECURITY, sopg_dumprefuses a table it would read through a policy and the application role cannot take a backup at all — and--enable-row-security, which makes the dump succeed, quietly writes a single tenant’s rows. The chart therefore requires a backup Secret per domain and refuses to render without one.ferroehr db verifyis the restore gate — it issues no DDL and refuses a database whose grants let a runtime role read across the boundary, which is the same check the server runs at boot. -
The deployment artifacts can reach the demographic role split (#3179). The chart gained
database.demographicExistingSecret(and itsdemographicExistingSecretKey/ inlinedemographicUrlsiblings), mounted as a file exactly like the clinical DSN so neither credential enters the pod’s environment. Set it and the schema separation becomes a credential separation: one leaked connection string then reaches one domain rather than both. Leave it unset and both pools share the clinical DSN, which is the schema-only posture the boot self-check still verifies. The compose stacks now provision all fourNOINHERITdomain roles — previously the migrations skipped them with aNOTICE, because the compose migrator holds noCREATEROLE, so those stacks ran with no domain grants at all — while deliberately keeping one login credential, which the init script says in place.scripts/deploy-probe.shgained a family that reads the posture out of the database catalogue rather than the compose file: the roles exist, each isNOINHERIT, no clinical role can read a demographic relation, and the stack is single-credential on purpose. What it cannot show — a two-DSN deployment, and role provisioning on a managed database — it declares as not exercised. -
National identifiers in the demographic domain can be held sealed (#3155). With the new
[demographic.identifier_protection]section on, an identifier of a configured scheme never sits in the versioned body: the value moves todemographic.national_identifier, sealed with AES-256-GCM under a key derived per tenant from one configured root key, and the body keeps a reference in its place. Beside the ciphertext sits an HMAC-SHA-256 digest, so “which party holds this identifier” is answerable without decrypting anything — and, being keyed, it cannot be reversed by enumerating a nine-digit space the way an unkeyed hash could. Sealing runs before the body is decomposed and signed, so the stored, signed and served body stay one form. Only the demographic writer reaches the sealed value; the read-only twin is refused the ciphertext and the digest by column-level grant and the clinical roles are refused the table outright. Resolution goes through aSECURITY DEFINERfunction that takes the digest rather than the value, and every call is recorded as alinkage-domain access naming the scheme and whether it matched, never the value. Off by default, and enabling it without a key — or with a scheme list that would protect nothing — is a boot error. See Privacy & data minimisation and the key-rotation runbook in Operations. -
Reads are logged per record, not just per operation (#3156). Every retrieval in the EHR, Query and Demographic APIs already produced an audit record; each one now also says which pseudonymisation domain it read (
ehr,demographic,linkage, orsystemfor an operation that touches no domain), the purpose of use the caller declared, the legal basis the deployment processes under, how many records were served, and thex-request-idof the request it belonged to. An AQL statement additionally produces one access record per EHR it served, each with that EHR’s served-row count, because one execute record over a population query cannot answer whose record was read. The served set is read off the rows the caller actually received rather than the rows the statement matched: a legal record of access must not name an EHR whose content was never disclosed.SELECT DISTINCTand aggregate projections carry no per-EHR breakdown — the shape makes it underivable — and record the statement and its row count. Two new keys configure the declaration surface:[audit] purpose_header(defaultx-purpose-of-use) andpurpose_codes, an allow-list that keeps unagreed free text out of the trail, plus[audit] legal_basis. A test walks the generated route tables so a newly generatedGETthat emits nothing fails the build, and the trail’s append-only property — no rewrite, no delete outside the retention reaper, no truncation — is now asserted rather than assumed. See Audit trail, which maps the NEN 7513 event content onto the recorded fields. -
The clinical side refuses identifying data, and the subject reference is bound to a pseudonym. A new
[privacy]configuration section carries three write-path rules, all reported as422with one entry per finding naming the RM path and never the offending value.privacy.subject_namespacesnames the pseudonymisation domains this deployment issues subject pseudonyms in; once one is declared,EHR_STATUS.subject.external_refmust name a listed namespace and carry a UUID.privacy.allow_identified_parties_in_ehr(falseby default, announced at boot when on) decides whether aPARTY_IDENTIFIEDorPARTY_RELATEDin clinical content may carrynameoridentifiers— with it off they carryexternal_refonly, which still satisfies the RM’s own validity rule.[privacy.identifier_scan]checks every string leaf of every clinical write against a jurisdiction-keyed ruleset, refusing instrict(the default) and recording inwarn. The shipped rules arefi-hetu,gb-nhs-number,nl-bsn,no-fodselsnummerandse-personnummer, each transcribing the checksum its own issuing register publishes, and all are active by default; a deployment narrows the list to its own jurisdictions and addspatternsfor local medical-record numbers and address forms. Every rule publishes how often it claims a value that is not one of its identifiers, and those figures are measured rather than estimated: one in 11 fornl-bsnandgb-nhs-number, one in 31 forfi-hetu, one in 120 forno-fodselsnummer, one in 139 forse-personnummer, and zero findings across the 258 clinical documents in this repository’s vendored corpora. See Privacy & data minimisation. -
Demographic parties live in their own schema, behind their own database role (#3153). Parties (PERSON, ORGANISATION, GROUP, AGENT, ROLE, PARTY_RELATIONSHIP) and their change control leave the clinical
ehrschema for a newdemographicschema with its owncold_demographicarchival tier, and the database refuses the mix in both directions: a version with no owning EHR cannot enterehr, and one that has an owner cannot enterdemographic. Four runtime roles replace the singleferroehr_apppair:ferroehr_ehr,ferroehr_demographic, and a read-only twin of each. Each holds explicit grants on its own domain and carries an explicit revoke on the other, all four areNOINHERIT, and none is a member of another. The schema separation is unconditional. The new[db] demographic_url(ordemographic_url_file) turns it into a credential separation as well, by pointing the demographic pool at its own DSN. The server now refuses to boot when the grants are wrong: a self-check enumerates every table, view, sequence and function in each domain and fails, naming the role and the object it can reach.ferroehr db verifyruns the same check, and it passes when the roles do not exist, which is the development, compose and test-harness case. The ITS-REST Demographic API, the RM change-control semantics and every version identifier are unchanged. GDPR Art. 4(5) and Art. 32(1)(a), EDPB Guidelines 01/2025; no openEHR spec governs storage layout or database roles. Existing installations migrate in place: the upgrade moves the parties by kind, and refuses before moving anything if it finds an EHR-less row of a kind it does not classify. -
The documentation site carries a compliance control matrix, generated from the tracker (#3164). A hand-kept compliance table is wrong the first time a control ships, so this one is not kept by hand: an issue declares the control it delivers as a
Control: <legal source> <article or clause>line in its body, andscripts/render/control-matrix.shrenderswebsite/book/src/compliance/control-matrix.mdfrom the tracker. Each row shows the legal source as a link to its official publisher, the article or clause, the issue, whether the control is shipped, in progress or planned, and the pull request that closed it. Short names resolve through a registry inside the generator, so a citation on the page can never be free text: an undeclared source stops the render and names the issue. A CI job re-renders and diffs, so a control that shipped since the last render fails the build instead of sitting on the public site as “planned”. -
The documentation site has a compliance section (#3163, #3165). Two pages join the generated control matrix. The compliance overview states the pseudonymisation boundary, then walks GDPR, the EDPB Guidelines 01/2025 on pseudonymisation, the EHDS, the Dutch UAVG and Wabvpz, and NEN 7510, 7512 and 7513, saying per requirement what the product ships, what is planned and under which issue, and what the deploying organisation still has to do. The shared-responsibility page draws the same line obligation by obligation, because most duties in these texts rest on the controller and the processor and cannot be met by software. Both pages carry the wording policy of the compliance programme: FerroEHR aims to be the first openly developed, source-available openEHR CDR with a published, tracker-backed EU compliance posture and an EHDS conformity self-assessment on its roadmap, and it claims no certification, no conformity and no compliant deployment. The schema and role split is described as shipped; the resolve map, the identifier constraints and the per-domain logging are described as planned, with their issue numbers. Every legal source is linked to its official publisher, and every openEHR statement to the published specification section it comes from.
-
The storage-parity sweep has a repair to go with it (#3143).
POST /admin/integrity/verifyreported that a version’s decomposed rows and its stored document disagree, and then there was nothing to run: dump and load was the only re-decomposition path, and its dump side reads each version through the node rows themselves, so it reproduced the damage it was asked to fix.POST /admin/integrity/rebuild-nodesre-derives the rows of every damaged version from that version’s stored document, one transaction per version. It runs the same sweep first and writes only what the sweep reports damaged, so a run over healthy data writes nothing. Repair goes in one direction only: the stored document is the canonical serialized form a point read serves and a digest was taken over, the rows are an index derived from it, so a version whose document is the damaged copy is refused rather than having the damage copied into the index. Each version is read under a row lock, decomposed, its rows replaced, and the version re-derived from the new rows and compared with the document before the commit; anything that fails rolls that version back untouched and the run continues. An archived object is thawed and re-archived in the same transaction, marker included. A logically deleted version rebuilds to no rows. -
Contributor rules for personal data, and a guard that holds them (#3167).
CONTRIBUTING.mdand the contributing page of the book gained a “Personal data” section: synthetic data only in tests and fixtures, no identifiers in logs, traces orDebugoutput, no database grant spanning the clinical and demographic domains, and a review step for any change at the privacy boundary. The pull request template carries the matching “Privacy boundary” checklist, and the newprivacy-boundary-guardCI job fails a pull request that touches the boundary paths without a ticked checklist. The same job reads the added lines of every diff and refuses a nine-digit value passing the BSN eleven-test or a Dutch postcode followed by a house number, proving both detectors against passing and failing fixtures before it judges anything..claude/rules/personal-data.mdcarries the rules for agents.
Changed
-
The control matrix states the control, not the defect (#3249). An issue titled as the defect it fixed may carry a
Control-text:line beside itsControl:declaration, and the generator renders that text in the Control column; seven shipped rows that read as defects beside “Shipped” now read as controls. The Helm chart’s linkage backup comment and the deployment probe’s coverage note describe the three server pools as shipped (#3268). -
The library’s default privacy policy is the shipped one (#3243).
PrivacyPolicy::default()used to permit identified parties and scan nothing, so a service built without an explicit policy ran a more permissive posture than the binary; it now compiles to the same refusing posture the default configuration does. Embedding hosts and tests that mean to accept more install the policy that says so. -
The control matrix lists a control’s closing pull request only once it has merged (#3253). An open pull request that says
Closes #Nno longer moves a row, and the pull request that closes a control regenerates the page as it will read after the merge (--closing <pr>), so the published matrix never lags a shipped control and unrelated pull requests stop failing its check. -
The two-DSN posture is exercised, and the deployment probe says exactly what still is not (#3222). Pointing
[db] demographic_urlat a role of its own turns the schema separation between the clinical and demographic pseudonymisation domains into a credential separation, and nothing ran it: every test drove both domains through one login role. A new integration suite assembles the server the way the binary does — two DSNs, two pools — on one login role per domain against a real PostgreSQL, serves an EHR and a party through the wire, and asserts that each of the running server’s own pools is refused the other domain’s relations for want of privilege. The single-DSN fallback is covered beside it, so the split stays a deployment choice. The Compose deployment probe keeps its honest “not exercised” entry for credential separation, now narrowed to what genuinely remains: a real deployment booting on two mounted DSNs. No behaviour changes. -
A default deployment accepts a named composer again (#3190). With
[privacy] allow_identified_parties_in_ehroff, the clinical side refused bothnameandidentifierson both party proxy classes, so a server running the shipped configuration rejected the very composition its own/definition/template/adl1.4/{id}/exampleendpoint hands out — anything built fromctx/composer_nameincluded. The default now follows what the two Reference Model classes actually mean. APARTY_IDENTIFIEDname is accepted: that class is the proxy for a party “other than the subject of the record”, “Typically for health care providers”, so a composer or performer name is provider identity. Still refused:identifierson either class, which is the national-identifier slot, andnameon aPARTY_RELATED, which is defined by its relationship to the subject and may be the subject itself. The configuration key is unchanged and means what it always did when set totrue, so a deployment that opted in keeps working, and nothing that committed before this change is refused now. -
The published model crates no longer carry a random-number generator. The workspace pinned
uuidwithv4/v7/fast-rngfor everyone, but only the server and the test harness ever mint an identifier;openehr-base,openehr-rmand their siblings parse and serialize them. The unused generator is what made those crates refuse to compile forwasm32-unknown-unknown, which has no randomness source unless one is configured — so a browser consumer had to supply a backend for a capability none of the crates uses. The generator features now sit on the two crates that generate. -
A key derived for one pseudonymisation domain opens nothing in another (#3157). The per-tenant subkeys protecting national identifiers now take the domain as part of their derivation context, so the clinical domain’s key material cannot decrypt a demographic record or reproduce its lookup digest even when both derive from the same configured root key. That is what makes a per-schema backup a separate artefact under a separate key rather than two files under one.
[demographic.identifier_protection]has not shipped in a release yet, so no stored data is affected; a deployment that enabled it on an unreleased build re-seals its identifiers. -
The Rust toolchain moves to 1.98.1 and the MSRV to 1.97. 1.98.1 is a point release for a vtable-generation miscompilation, which is reason enough on its own; the toolchain step also brings the 1.98 lint set, and the declared minimum supported version moves with it, one minor behind as before. Container builds follow: the builder base is the digest-pinned
rust:1.98.1-slim-trixie, resolved fresh rather than copied. Nothing here uses a 1.98 language feature, and themsrvjob verifies the declared minimum independently. -
Dependencies bumped, and one advisory left the tree with them. argon2 0.6, jsonschema 0.53, tower-http 0.7.1, rust_decimal 1.43, futures 0.3.34, toml 1.1.5, indexmap 2.14.2, leptos-use 0.19.2, wasm-bindgen 0.2.128.
rust_decimal1.43 dropped its optionalrkyv ^0.7requirement, so RUSTSEC-2026-0235 — an out-of-bounds read no feature of ours ever compiled, but which lock-file scanners reported — is gone fromCargo.lockand its VEX statement is deleted rather than renewed. The three remaining advisory exceptions were re-checked against their upstreams on 2026-09-10 and all three still have no fixed release. -
Database migrations are append-only, so an existing installation upgrades in place. A released migration is never edited again. sqlx records a checksum of every applied migration and refuses a database whose recorded checksum no longer matches the file, so editing one would not revise history: it would stop every server that had already run it from starting, reporting a checksum rather than the change that caused it. A correction now arrives as a new migration that carries the schema forward, and a CI guard fails any pull request that modifies, renames or deletes a migration its base branch already carries. This replaces the earlier greenfield policy, under which baselines were edited in place and deployments were expected to recreate their volume.
-
Both storage-integrity routes can be pointed at a single version (#3143).
vo_idandsys_versionjoinehr_idandcommitted_sinceas scope parameters onPOST /admin/integrity/verifyand the new rebuild, so checking or repairing one record after a support incident no longer means reading the repository. The ordinal is per-object, sosys_versionwithoutvo_idis a400rather than a filter that would match one version of every object.
Security
-
Three tenant-scoped tables enforce tenant isolation that they carried a column for but no policy (#3219).
demographic.national_identifierholds sealed national identifiers and the keyed digests that resolve them;demographic.contributionanddemographic.audithold the change-control trail over the demographic domain. All three carried atenant_id, and the equality lookups on them were tenant-scoped, so no resolve could ever cross a tenant. What was exposed is the unscoped read: a plainSELECTby the demographic role returned every tenant’s rows. Each now enables and forces row-level security with the sametenant_isolationpolicy its sibling relations have carried since the baseline. Deployments that run a single tenant are unaffected, because an unset session resolves to the reserved default tenant exactly as before.The cause is worth stating, because it will recur otherwise: a baseline migration applies row-level security by looping over a list of relation names, and a table added by a later migration joins nothing. The omission is invisible in the table’s own definition. A test now asks the catalog instead of a reviewer — any relation carrying a
tenant_idmust enable and force row-level security — so the next table added after a baseline is caught by the build rather than by an audit.audit.audit_eventis the one named exception: its drain batches many tenants’ records in a single insert from a task outside any request’s tenant session, so a policy there would reject audit rows rather than isolate them.
Fixed
-
A party’s contacts, addresses, identities and capabilities are decomposed into node rows (#3273).
CONTACT,ADDRESS,PARTY_IDENTITYandCAPABILITYwere stored inline on the party root, so nothing under them carried a row and no row-level predicate could reach it — a cohort predicate could only be bound to an archetype under the party’s owndetails, never to the address a party actually lives at. Each container now gets its own row, along with theITEM_STRUCTUREandELEMENTs beneath it, and an archetyped container scopes its own leaves.openEHR-DEMOGRAPHIC-ADDRESS.address.v1is bindable in[cohort.predicates]; the served body is unchanged.Upgrade step. After deploying this version, run the storage-parity sweep (
POST {base}/admin/integrity/verify). Every party version stored before it reports the newstale_decompositiondefect: the rows hold the right content, in the shape the previous release wrote. Run the node rebuild once, unscoped (POST {base}/admin/integrity/rebuild-nodes), and the next sweep is clean. Until then a predicate bound to a container archetype matches a party only from its next commit onward. -
Every documented least-privilege posture names a credential that can do what the page asks (#3228).
db.migrate = "verify"reads all five_sqlx_migrationsbookkeeping tables, which no least-privilege runtime role can do,ferroehr_appincluded; the Compose, Kubernetes, CLI, server configuration and installation pages now name[db] migrate_url, and the operations page says which postures a test exercises and which none does. -
The split clinical role can write the audit trail (#3267). The local Audit Record Repository was granted to
ferroehr_appandferroehr_readeronly, so a deployment whose clinical credential is a member offerroehr_ehralone wrote no access record at all (dropped underfail_mode = "open", every auditable operation refused under"closed");ferroehr_ehrandferroehr_ehr_readernow hold inauditwhat the single-domain pair holds. -
A CONTRIBUTION into a deactivated EHR reports the state conflict first (#3257). The privacy and content validation ran before the
EHR_STATUS.is_modifiablegate, so a body defect on a record that cannot be written was reported as422where the409was the answer; the state is now checked before any member’s content, and the locked in-transaction gate stays authoritative. -
Documented: under
[smart] require_smart_scopes = truea Basic caller cannot reach the template family (#3255). The conformance stack runs that posture, which is why its Basic dev users answer403on template upload; the configuration reference and the templates page say so, and a test pins that fail-closed refuses a Basic principal while advisory defers. -
The management surface is inside the audit trail (#3244).
/management/*was mounted outside the audit layer, so a runtime filter change through/management/loggersleft no record. Every management request is now recorded as a system-domain access under its own operation id (management_info,management_env,management_loggers_set,management_loggers_reset, …). -
Formal identifiers on a provider proxy are accepted (#3254). The identified-party rule refused
identifierson every party proxy, which turned away a clinician’s registration number on the composer and the simplified-formatctx/participation_identifiersforms, the Reference Model’s own paradigm case forPARTY_IDENTIFIED. The slot is now refused only on aPARTY_RELATEDwhose relationship isself; a national-identifier value is still refused by the identifier scanner wherever it sits. -
A named
PARTY_RELATEDis accepted unless it is the subject (#3252). The identified-party rule refused everyPARTY_RELATEDcarrying anamein clinical content, which turned away a composition whose consenting mother or guardian is named, content the Reference Model models on purpose and the openEHR REST API obliges a server to accept; the conformance suite went from 1104/1104 to 917/1104 on it. The rule now refuses the name only where the relationship codesself, the party being the patient;identifiersstay refused on both classes, andallow_identified_parties_in_ehrstill opens everything. -
The identifier scan covers the verbatim-replay writes (#3237). EHR-Extract import and the admin archive load stored clinical content exactly as received and skipped the data-minimisation pass every other clinical write takes, while the configuration reference said every clinical write was scanned. Both paths now refuse a record whose body carries a national identifier, a non-pseudonym subject reference or an identified party, with the same
422and RM path the commit path reports; nothing is rewritten. -
The control matrix is populated (#3236). The generated compliance page rendered an empty table because no issue declared a
Control:line, and the staleness check passed on the empty set. Every shipped and planned control in the pseudonymisation and EHDS programme now declares the article or clause it supports, the page lists all of them with their status, and the generator refuses an empty matrix while the compliance pages link to it. -
fail_mode = "closed"now covers the domain-level access records too (#3235). The linkage resolutions and merges, the subject-to-EHR lookup behindGET /ehr?subject_id, the national-identifier resolution and the EHR-Extract export and import each record their own access event, and each used to discard the sender’s answer, so a record the audit trail could not take underfail_mode = "closed"left the operation completing unrecorded. A rejected record now withholds the result with the same503andRetry-Afterthe request-level record already produces. Underfail_mode = "open"nothing changes. -
The documented two-DSN posture boots: schema preparation has its own credential (#3224). The server prepared the schema on the CLINICAL runtime pool, and preparation spans every schema — the DDL of all five migration sets under
db.migrate = "apply", all five_sqlx_migrationsbookkeeping tables under"verify". A role that is a member offerroehr_ehrand nothing else — what the book recommends and the chart configures — holds neither, so it was refused on the first set and the deployment could not start;ferroehr_appcould not runverifyeither. The new[db] migrate_url(ormigrate_url_file, anddatabase.migrateExistingSecreton the chart) names the credential that prepares the schema, used for that one boot step on a connection that is opened and closed again — no pool is held on it and no request is served through it. Unset, it falls back to[db] url, so a single-credential deployment is unchanged. The pseudonymisation boot gate deliberately stays on the RUNTIME pool: it measures what the serving credential can reach, and asking the migration credential — which holds every domain by design — would stop measuring anything. A credential that cannot read a set is now refused with the schema and the role it authenticates as, and the remedy, instead of a bare42501about a table no operator has heard of.ferroehr db verifysplits the same way. Chart values contract grows three optional keys, so the chart goes to 8.1.0. -
The template upload dialog opens empty (#3200). It cleared the source it was holding only when the CDR accepted it, so after an upload that was refused — or one whose click never reached the handler — re-opening the dialog showed the previous attempt’s source with the send button already live, offering to send something the reader had not just chosen. Opening the dialog is now a fresh attempt: the editor starts empty, and the button stays inert until a file has actually been read into it.
-
The migration hook’s pod is no longer selected by the server’s Service and PodDisruptionBudget (#3197). A selector is a subset match, and the hook pod carried the server’s selector pair plus a
componentlabel, so for as long as it existed it satisfied both — during exactly the install and upgrade when a rollout or a drain reads them. It exposed no port namedhttp, so the Service had no endpoint to route to it, but the PodDisruptionBudget match was real and the port was a property of that pod rather than a promise about the next one. The hook now carries its ownapp.kubernetes.io/name, as the viewer and the backup jobs already do. The chart’s selector gate was looking only at Deployments and could not have seen this; it now judges every workload that carries a pod template, and the migration Job renders in a committed value set so the gate has something to judge. -
A physically deleted party takes its multimedia with it (#3180).
physical_delete_partyremoved the party’s rows without collecting the externalized blob keys they referenced, so a blob held only by that party stayed in the object store forever — a storage leak, and on a party also a deletion that did not delete, since a blob is content and an operator who ran a physical delete has reason to believe it is gone. It now collects the keys inside the same transaction and hands them to the same garbage collectiondelete_ehruses, which scans both pseudonymisation domains, so a blob a clinical record still references survives. -
The ADL 2 corpus provenance claimed a licence the files do not state (#3150).
corpus/archetypes/adl2/PROVENANCE.mdsaid the archetypes were “predominantly CC-BY-SA 3.0 where stated” and pointed at the root CC-BY-SA 3.0 reference copy. Measured over the vendored tree: of 652 archetypes exactly one states a licence, and it states CC-BY 4.0. The other 651 carry an openEHR Foundation copyright and no grant, and upstream carries noLICENSEfile at the pinned commit either. The record now says that, the subtree is declaredLicenseRef-openEHR-unstatedinREUSE.tomlwith its own text inLICENSES/, and the licensing chapter carries the same statement. The vendor script that generates the provenance file was repeating the claim and is corrected too, so re-running it cannot restore the old wording. Theopenehr-adlregression library from the same upstream measured differently and is declared separately: 111 of 302 state a licence, predominantly CC-BY-SA 3.0, with CC-BY 4.0 and CC-BY 3.0 present and CC-BY-SA 4.0 absent — which the previous glob had asserted over it. Whether material whose terms are unstated may stay committed is a decision, tracked separately. -
The storage-integrity sweep and its repair cover both pseudonymisation domains (#3178). Moving the parties into their own schema left the sweep reading only the clinical one, so damage to the copy no read-path check recomputes went undetected on the domain that holds the identifying data. A sweep with no scope now walks both in one pass, and every mismatch, every streamed line and every rebuild record names the
domainit came from, so a report cannot describe half the store while looking like it described all of it. The repair reaches the damaged version through that same domain. -
The compliance control matrix says which jurisdiction each legal source belongs to, and its links work (#3177). The NEN 7510 entry pointed at a page that returns 404, and NEN 7513 pointed at the publisher’s homepage rather than the standard. Both are corrected, NEN 7512 and the EDPB pseudonymisation guidelines are added, and every URL in the registry was checked by hand on the day it landed, which is the only way it can be checked: the site’s link gate runs offline on purpose, so an external URL that rots is invisible to it. The table now carries an “Applies to” column.
EUandINTapply to every deployment; a two-letter code is national law and applies to a deployment in that country. openEHR is not a Dutch standard, and a page listing Dutch law beside EU law without saying which is which reads as though every deployment answers to both. -
A FLAT or STRUCTURED read no longer drops the content of a template-named event (#3142). An operational template can fix the name of a node the simplified formats collapse away, such as the single event of a
HISTORY. The constrained name then survives only inside the leaf’saqlPath, and a composition written through the FLAT surface came back short: the reporter’s body weight and comment were present in the canonical JSON and absent fromapplication/openehr.wt.flat+json, with no error to say so. Two halves are fixed. Building a composition named that collapsed node after its archetype node id rather than the name its own template path constrains, so the node did not satisfy the path it had just been created for, and every datum beneath it became unaddressable. Reading now tolerates it either way: a node whose runtime name differs from the template’s is still reached by archetype node id, exactly as the archetype-conformance validator already did. That applies only where the name identifies nothing the node id does not. A template that distinguishes same-node-id siblings by name keeps matching strictly, so one sibling can never claim another’s content. Compositions already stored with the wrong name read correctly without being rewritten.
4.1.1 - 2026-09-05
Added
- A whole large repository can now be checked for storage damage in one pass
(#3122).
POST /admin/integrity/verifycomputed its whole report before answering, so it had to finish inside the server’s 30-second request timeout and a large enough repository lost the report to a408. SendingAccept: application/x-ndjsonstreams the same sweep instead: one JSON object per line, amismatchas each is found, aprogresstick per page read, and a closingsummarywith the counts. Nothing bounds that response, and the stream carries every mismatch rather than the first thousand. The status code is committed before the work is, so a sweep that fails part-way ends with anerrorline instead of asummary— read to the end to tell the two apart. A request that does not name the media type,*/*included, keeps the aggregated document exactly as before.
Changed
- A refused operational template lists every violation, not the first one
(#3129). Repairing a template meant one upload per defect: a reporter with a
1.7 MB template uploaded it to learn
usewas empty, fixed it, uploaded again to learnmisusewas too, and a code list with seventeen duplicated codes named one of them at a time.validationErrorsnow carries an entry per violation, the way a refused composition already did. A violation that makes the tree below it meaningless, a constrained type the reference model does not have or an attribute its parent does not declare, says that its subtree went unchecked, so a short list is never mistaken for a clean one; past 200 violations the response says it stopped counting.
4.1.0 - 2026-09-05
Added
-
A terminology server that answers with the wrong FHIR resource is refused by name (#3099). The R4B
Parametersresource has no mandatory member, so any JSON object decoded as an empty view: a$validate-codeanswered with aValueSetor anOperationOutcomeread as “no result” instead of the wrong answer it was. The decoders now check theresourceTypefirst and reportunexpected FHIR resource: expected Parameters, got OperationOutcome, whichterminology.external.fail_on_errorthen decides on like any other upstream fault. -
A refused OPT or canonical-XML document says where the defect is (#3067). A mandatory element or attribute that is absent used to be reported as
xml parse error: missing element id, with no position and a token that matches hundreds of unrelated attributes. The refusal now names the element that should hold it with itsxsi:type, its line and column, its path from the root with sibling ordinals, and the class attribute the child realises:element <default_value xsi:type="DV_IDENTIFIER"> at line 4270, column 13 (/template/definition[1]/…/children[1]/default_value[1]) is missing mandatory child <id> (DV_IDENTIFIER.id). A value a class constructor rejects, and an empty1..*container, carry the same location. The wording no longer calls a cardinality refusal a parse error. -
tenancy.headeris refused at boot when authentication is enabled (#3093). The header override lets a request name its own tenant and wins over the JWT claim, so on a deployment with real users any authenticated caller could read and write any tenant. The server now refuses to start on that pair, naming the key and the remedy, unless the newtenancy.insecure_header_override = trueaccepts it explicitly for a development deployment. With authentication off, or tenancy off, nothing changes.
Changed
-
The storage-parity sweep reads a page of versions per round trip instead of one, and can be scoped (#3110).
POST /admin/integrity/verifycompared each stored version’s node rows with its materialized body using two sequential statements per version, so a store of 60 000 versions cost about 120 000 round trips and the request died at the 30 s timeout with the report lost. Content is now read 32 versions at a time, two statements per chunk: the same store costs under 4 000 round trips. Two optional query parameters narrow what a sweep covers,ehr_idandcommitted_since, so verifying one record or everything committed since an incident no longer means reading the whole repository. The report, its defect vocabulary and its status codes are unchanged. -
A tenant key that names no registered tenant is refused instead of running unscoped (#3111). It used to fall through to the reserved default tenant, on the argument that a cross-tenant access should look like an empty result set rather than a
403confirming another tenant exists. That argument holds only while the default tenant is empty, and the default tenant owns every row written while tenancy was off: on a deployment that enabled tenancy after going live, a misspelled claim read and wrote the entire pre-tenancy store. Such a request now gets a403. SetFERROEHR__TENANCY__UNKNOWN_TENANT=default_tenantto restore the old behaviour where the existence-hiding is worth more. A request carrying no tenant key at all is unchanged. With tenancy enabled, boot now counts the default tenant’s stored versions and warns when it holds any, because both paths lead there. -
A composition commit checks out one pooled connection instead of three (#3097). The EHR-writability gate, the persistent-duplicate gate and the commit each took their own connection from the pool. With multi-tenancy on every checkout costs a
set_configround trip that stamps the tenant GUC, so the acquire count was the cost: measured over 100 commits, the path went from 9.3 to 6.3 connection checkouts each. Behaviour is unchanged — the gates run in the same order, answer the same statuses, and the commit is still one folded statement (or one transaction when attestations or the outbox are in play). -
A large composition no longer holds a request worker through its whole validation (#3097). The RM, terminology and archetype-conformance passes are CPU work that ran inline on the async worker, costing about 260 ns per JSON node: the largest form the CKM publishes takes 2.5 ms, and at the default 16 MiB body limit a single commit could hold one worker for tens of milliseconds while every other request on it waited. Above 400 nodes the passes now tell the runtime to relieve the worker first. Validation itself is unchanged: the same passes run in the same order and refuse the same content.
-
openehr-query,openehr-adlandopenehr-itsmove to the Business Source License 1.1 (owner decision 2026-09-04). The three hand-written engines (the AQL parser, the ADL 2 engine, and the canonical codecs, REST contract and Simplified Formats) now carry the same licence as the application, each with its ownLICENSEnaming the crate as the Licensed Work;openehr-itsdeclaresBUSL-1.1 AND Apache-2.0and keeps the Apache-2.0 text for the openEHR-derived codecs, contract and ITS-JSON schema it embeds. The five generated model crates (openehr-base,openehr-rm,openehr-am,openehr-lang,openehr-term) stay Apache-2.0. Published versions keep the licence they were published with: the three engines are Apache-2.0 up to 0.0.59 and BUSL-1.1 from 0.0.60. -
server.swagger_uiis an access level, and the Swagger UI needs a credential by default (#3094). The key used to be a boolean that mounted the UI and the OpenAPI documents outside the authentication layer, on by default, so an unauthenticated client received the complete operation surface, admin and message groups included. It now takes the management vocabularyoff,admin_only,private(any authenticated principal; the new default) orpublic, and the non-public levels sit behind the same access guard the management endpoints use: unauthenticated is401with theWWW-Authenticatechallenge, so a browser prompts for the Basic credential. An existingswagger_ui = trueorfalseis a boot error naming the new spellings; the hosted sandbox keeps the UIpublicexplicitly. The Helm chart default follows (config.server.swagger_ui: private).
Fixed
-
Signing in again no longer lands back on the login card (#3066). After the viewer signed a user out, an answer to a request issued under the old session could still arrive while they were signing back in. The transport reads every such answer, and the shell treated one as proof the session was over, so a freshly signed-in user was sent straight back to the login screen and only a full page reload got them past it. The shell now re-reads the session instead of trusting the detection, because a detection names no session, so a late answer to a dead one is ignored and a real expiry still signs out. The visible behaviour on a genuine expiry is unchanged.
-
A large operational template uploads in milliseconds again (#3114). The XML reader resolved every closing element’s line and column by scanning the document from byte zero, which made a parse quadratic in document size: the International Patient Summary template, 1.9 MB, took 10.08 s, and the largest form the CKM publishes was on track for about 59 s. A template upload holds that CPU on the request, and large uploads were answering
408 Request Timeout. The position and the element path are now resolved when a refusal is raised rather than on every close, so a refused document names exactly what it named before. The same two templates parse in 10.2 ms and 25.1 ms. -
An explicit
fetchor AQLLIMITcan no longer ask for a page larger thanquery.max_result_rows(#3092). The ceiling used to apply only to a query that carried neither bound, sofetch=10000000materialised the whole matched set into oneRESULT_SET. A page above the ceiling is now refused with400naming the requested size and the ceiling; the effective page (the smaller ofLIMITandfetch) is what is checked, and a page at or below the ceiling is served as written. The page is refused rather than shortened because a client paging with its ownfetchas the stride would silently skip rows. -
An ADL 2 upload can no longer take the server down through unbounded recursion (#3062). The ADL engine now carries one nesting bound of 512 levels: the cADL, ODIN and rule-expression readers refuse an artefact nested past it with a
400that names the bound (theSUNKsyntax bucket), the flattener refuses a specialisation lineage longer than the bound or a flat form that composes deeper than it, and the operational-template transform refuses fillers that reference each other in a cycle (naming the cycle) or inline past the bound, as a422. Every remaining engine call, including compiling a stored template to its operational form and loading the stored repository, runs on the dedicated engine thread. Published archetypes and templates stay far below the bound.
4.0.18 - 2026-09-03
Changed
- The licence of the project’s own code is the Business Source License 1.1
(
LICENSE, SPDXBUSL-1.1; owner decision 2026-09-03). All non-production use is free, and production use is free for Non-Commercial Purposes only (personal use, academic or scientific research, teaching, and non-profit or public bodies outside the course of a business); any other production use, including the delivery of health care or another service for payment, and in every case offering FerroEHR or a derived work to third parties as a hosted, managed or embedded service or distributing it for a fee, needs a commercial licence from the Licensor. Each version becomes Apache License 2.0 four years after its publication. The copyright holder named everywhere is Ruben Talstra. Every SPDX header, manifest, badge, OCI image label, the Helm chart’s Artifact Hub licence, the citation metadata and every page that named MIT follow, and a CI guard now fails on a stale MIT claim in a first-party file. Releases v3.0.0 through v4.0.17 stay under the MIT terms they were published with. The eightopenehr-*spec crates on crates.io are NOT under the BUSL: they areApache-2.0(openehr-termalsoCC-BY-SA-3.0for the terminology XML it carries) from 0.0.58, the licence of the openEHR inputs they are generated from, so any Rust project can consume them; 0.0.56 and earlier stayMIT AND Apache-2.0as published. - Contributions now carry an inbound relicensing grant (
CONTRIBUTING.md§ Licensing of contributions): contributors keep their copyright and license their work under the project licence, and additionally grant the Licensor the right to sublicense and relicense it, so the work stays one work under one licensor. - Every migration file carries a licence header, which changes its recorded
checksum: a database created by 4.0.17 or earlier refuses to start this
version with
migration 1 was previously applied but has been modified. The schema is greenfield (see the operations chapter, “Upgrades”), so the remedy is to recreate the database, or drop theehr,ext,auditandcoldschemas, and reload; the hosted sandbox was reset the same way.
4.0.17 - 2026-09-02
Added
server.base_path(FERROEHR__SERVER__BASE_PATH) is a supported, validated knob: a deployment behind a path-prefixed reverse proxy can shorten the REST base path to as little as/ferroehr/v1instead of stacking the proxy prefix on top of the full default. The API nest,Locationheaders, the System Options manifest, the served OpenAPI documents, the Swagger UI, the status document and SMART discovery all follow the configured value; the health family stays at the process root. The default is unchanged.- The FerroEHR Viewer gained the mirror key
cdr.base_path(FERROEHR_VIEWER__CDR__BASE_PATH, default/ferroehr/rest/openehr/v1), so a viewer can drive a CDR that shortened its base path.
Changed
server.base_pathis now checked at boot, and a value that breaks a rule stops the server with an error naming the key and every rule it broke. The first segment must beferroehr, the last must be the openEHR API version segmentv1, and the value must carry no trailing slash, no empty segment, and only unreserved URL characters. Values that previously booted and served a broken surface are now refused: a trailing slash, a missing/ferroehrsegment, a path not ending inv1. The default value is unaffected.ferroehr healthcheckno longer hard-codes the default REST root: with no--url/FERROEHR_HEALTHCHECK_URLit loads the same configuration as the server and probeshttp://127.0.0.1:<server.bind port><REST root>/status, so the container health check keeps working whenserver.base_pathis shortened. The URL it probes under the defaults is unchanged.- The hosted sandbox (sandbox.ferroehr.eu) now holds a complete demo dataset
instead of four templates in three EHRs. Each nightly reset loads 16 ADL 1.4
operational templates from the openEHR CKM pack, 235 ADL 2 archetypes and 5
ADL 2 templates (two of them source templates the server flattens against
that archetype library), 8 EHRs carrying 182 compositions with mixed
records, 6 compositions with more than one version and 2 EHRs with a second
EHR_STATUSversion (one not queryable, one not modifiable), 11 demographic parties, a FOLDER directory per EHR referencing real compositions, and 5 stored AQL queries undereu.ferroehr.sandboxthat all return rows. The seeder (scripts/sandbox/reseed.sh) still drives only the public REST API and is now a walker overscripts/sandbox/seed/manifest.json, so adding demo content is editing data. The ADL 2 corpus is uploaded parents before children, and the split it pins (233 stored, 89 refused by AOM2 validation) is the one the corpus gate inopenehr-adladjudicates file by file. A run takes 39–45 s against a local stack and leaves a 24 MB database; a repeat run detects the marker EHR it wrote and exits without changing anything.
Fixed
-
An ADL 2 upload can no longer take the server down. The AOM engine’s validation now runs on a dedicated thread with a stack sized for its recursive walks over the stored repository, and every runtime thread starts with a larger stack; previously a deep enough artefact overflowed a worker’s 2 MiB stack and the process aborted with every in-flight request.
-
ADL 2 validation no longer reports VCATU (duplicate sibling attribute) for a specialised archetype whose root-level differential paths end in the same attribute name (
/itemsbeside/items[id9]/items): the two address different nodes of the flat parent. Twenty-nine archetypes of the vendored 2013 CKM export were refused on that false positive. -
An ADL 2 upload whose
specialiseclause names a parent that is not in the repository is refused with422carrying VASID and the missing parent’s id, on both validation paths. Previously the parent-conformance checks were skipped and the archetype was stored as valid, so a child uploaded before its parent was never checked against it. -
An AQL
SELECTthat mixes an aggregate function with a non-aggregated column (SELECT e/ehr_id/value, COUNT(c/uid/value) …) is refused with a typed400naming the rule. AQL 1.1 defines the aggregate functions over the selected rows and no grouping construct, so the shape has no defined result; previously the ungrouped SQL reached the database and its error surfaced as a500. -
The FerroEHR Viewer no longer leaves an interactive shell over a session that has ended. When a session expires or is revoked, the viewer moves the whole UI to the signed-out state on its own — no manual refresh — and lands on the sign-in screen with “Your session ended. Sign in again to continue.” plus the screen the user was on, so signing back in returns them to it. Two things drive it: any request the CDR or the viewer refuses with a
401/no-session answer signs the UI out immediately (this covers a revocation the browser could not have predicted), and the browser also re-checks the session on the session’s own deadline and on the connection indicator’s poll, so an expiry nobody clicks through is caught as well. The indicator itself now reads “Session ended” rather than blaming the CDR for a refusal that is not its. The OIDC sign-in path carries the destination too:/auth/oidc/loginaccepts anextparameter and the callback lands on it, so an OIDC user is returned to the screen they were on instead of the dashboard. Only a same-origin relative path is honoured — an absolute URL or a protocol-relative value falls back to the dashboard, so the login route cannot be used as an open redirect. -
The hosted-sandbox CDR no longer crashloops when the box’s
.envcarries aFERROEHR_-prefixed Compose image variable the server does not recognise. The CDR service indeploy/hosted/docker-compose.ymlstops loading the whole.envinto the container and now receives onlyDATABASE_URL(interpolated, and a boot error if unset) plus its config-file path. Compose image variables stay substitution-only and never reach the server’s strict configuration check, so a renamed or stale image variable in the operator’s.envcannot stop the server from starting.
4.0.16 - 2026-09-02
Changed
- The canonical-XML reader and the TDD/OPT XML readers refuse a non-UTF-8 document at the first read (quick-xml 0.42 validates encoding while constructing events) instead of tolerating invalid bytes into text values. Well-formed UTF-8 documents — the entire wire corpus — are unaffected; the full serialization fidelity battery passes unchanged.
- The generic noun “console” is retired from everything a human reads: the
Helm chart’s
viewer.*value descriptions (which Artifact Hub publishes), the viewer’s own on-screen copy, the book, and the doc comments all say “viewer” now. The hosted sandbox’s Compose service is renamedconsoletoviewerand its containerferroehr-sandbox-consoletoferroehr-sandbox-viewer, which the box picks up at the next release deploy. The Helm chart is version 7.0.2. The name of the entry the viewer keeps inside its encrypted session cookie changes too, so open sessions need one fresh sign-in after the upgrade. - The hosted sandbox (sandbox.ferroehr.eu) runs on a Hetzner CX33 (4 shared vCPU, 8 GB RAM, 80 GB NVMe), resized in place from the CPX22. The hosted compose memory limits that ship inside the server image move with it: the CDR container to 4096m and the FerroEHR Viewer container to 1536m, so the services actually use the larger box.
- The sandbox database moved from Neon to a second, dedicated CX33 running
the published
ferroehr-postgresimage (PostgreSQL 18), reachable only over a Hetzner private network — no public database port exists. The committed posture gainsdeploy/hosted/cloud-init-postgres.yaml; the nightly reseed’s schema wipe now runs on the app box through the deploy script’s newwipeverb instead of apsqlfrom the CI runner, so CI no longer holds any database credential (theSANDBOX_DATABASE_URLsecret is retired). - The admin console is now FerroEHR Viewer, and every name it carries
changes with it. Deployments must switch their references: the OCI image is
ghcr.io/rubentalstra/ferroehr-viewer(wasferroehr-admin-ui), the Compose service and profile are bothviewer(docker compose --profile viewer up, was--profile admin-ui), the Compose image and port overrides areFERROEHR_VIEWER_IMAGEandFERROEHR_VIEWER_PORT, the Helm values key isviewer(wasadminUi) and its OIDC client secret mounts at/etc/ferroehr-viewer-secrets, the config file the viewer looks for is./ferroehr-viewer.tomlthen/etc/ferroehr/viewer.toml(wasferroehr-admin-ui.toml//etc/ferroehr/admin-ui.toml), the binary and crate areferroehr-viewer, and the session cookie isferroehr_viewer_session, so open sessions need one fresh sign-in. Documentation moved from/docs/*/admin-ui/to/docs/*/viewer/, with redirects from the old pages. This rename is the chart’s 7.0.0 major bump. - The viewer’s own configuration environment grammar is renamed with it:
every
FERROEHR_ADMIN__<SECTION>__<KEY>variable becomesFERROEHR_VIEWER__<SECTION>__<KEY>(soFERROEHR_ADMIN__CDR__BASE_URLis nowFERROEHR_VIEWER__CDR__BASE_URL), and the config-file pointerFERROEHR_ADMIN_CONFIGbecomesFERROEHR_VIEWER_CONFIG. The chart’s defaultviewer.existingSecretKeymoves fromFERROEHR_ADMIN__AUTH__OIDC__CLIENT_SECRETtoFERROEHR_VIEWER__AUTH__OIDC__CLIENT_SECRET, so an existing Secret needs its key renamed orviewer.existingSecretKeyset to the old spelling. A variable left under the old prefix is not read and not reported: the viewer’s strict deserialization only sees what arrives under its own prefix. - The Helm chart renames the viewer’s Kubernetes objects from
<release>-admin-uito<release>-viewerand itsapp.kubernetes.io/namelabel from<name>-admin-uito<name>-viewer. A Deployment’s selector is immutable, so a release that already runs the viewer withadminUi.enabled: truemust have that Deployment, Service, ServiceAccount and NetworkPolicy deleted before the upgrade, or be reinstalled. The CDR’s own objects are untouched.
Security
- The
ferroehrandferroehr-viewerimages build from the rebuiltgcr.io/distroless/cc-debian13:nonrootbase carrying openssl3.5.7-1~deb13u2, which fixes CVE-2026-14456 (QUIC denial of service) and nine sibling advisories inlibssl3t64. The library was never linked by the shipped binaries (the TLS stack is rustls/aws-lc throughout); the bounded scanner exception and its VEX statement are removed now that the fixed base exists.
Fixed
- Composition validation now enforces a template’s decimal-precision
constraint on
DV_QUANTITYandDV_PROPORTIONleaves: an instance whose optionalprecisionattribute falls outside the constrained interval is refused (422) instead of silently accepted. Temporal-range constraints were already enforced; the module documentation claiming otherwise was stale and now states the real contract. - The FerroEHR Viewer’s session cookie sets
Secureby default (session.cookie_securenow defaults totrue, fail closed): a TLS-fronted deployment needs nothing, and plain-HTTP contexts (the compose quickstart on localhost, local development, the e2e harness) opt out explicitly. If you serve the viewer over plain HTTP without one of those postures, setFERROEHR_VIEWER__SESSION__COOKIE_SECURE=falseor logins will not stick. - TDD import no longer discards instance data a TDD spells out on wrappers
the WebTemplate compacted:
HISTORY.origin, an event’stimeandname, and the other LOCATABLE metadata (uid,links,feeder_audit) now land on the re-materialised nodes instead of RM-mandatory defaults, each value parsed as its model-declared type. Spelled-out wrapper data that cannot legally sit on the corresponding node is refused with a named error rather than silently dropped. - The platform validity checker (
definitions_valid) now checks archetype identifiers, not just template identifiers, per the SM clause it realizes: everyarchetype_detailsdeclaration in the checked content contributes its archetype id and template id, archetype ids resolve through a declared template’s inlined nodes or against the stored ADL 1.4 and ADL 2 repositories, and an unknown identifier at any depth now answersfalse. - The
ETagserved with a queryRESULT_SETnow derives from SHA-256, a pinned published algorithm, instead of the standard library’s default hasher, whose algorithm may change between Rust releases. Query ETags are now stable across server builds; every served query ETag changes value once at this upgrade.
4.0.15 - 2026-09-01
This release carries everything prepared for 4.0.14, which was tagged but
never published: its release pipeline failed before any artifact was built,
and the v4.0.14 tag is immutable, so the content ships here under the next
patch number. No 4.0.14 artifacts (release, images, chart, crates) exist.
Added
- The admin console’s template Example tab lets you pick how the example is generated. Beside the format selector, both template families (ADL 1.4 and ADL 2) now offer a detail level (Required, Medium, Complete) and the form the example is shaped for (Input as submitted, Output as retrieved). The pane opens on Required/Input, as before, and changing either control asks the CDR for a fresh example.
Security
- The
ferroehr-postgresimage builds from the respun upstreampostgres:18.6base (the tag was re-pointed upstream with rebuilt base packages and bundled binaries); the digest pin follows it everywhere it appears. The rebuilt candidate scans clean at the published-image gate.
Changed
- The hosted sandbox (sandbox.ferroehr.eu) moved off Vercel onto a dedicated
Hetzner server (
deploy/hosted/is the whole committed posture: cloud-init, compose, Caddy TLS, a key-restricted deploy script). No more scale-to-zero cold starts or free-compute slowdowns; the same URL, credentials, nightly reset and released images. The database is a standalone Neon project on its direct endpoint, no longer a platform integration. - The hosted sandbox (sandbox.ferroehr.eu) now serves the Admin API: the nightly-reset demo is a development/testing deployment in the released spec’s own terms, and the conformance statement’s AdminApi claims become exercisable against it. The public demo credential reaches the whole admin group, bulk delete included — it wipes what the nightly reset wipes anyway.
- The repository’s commit history on
mainnow starts at a single labelled import commit holding the tree FerroEHR was forked from, followed only by this project’s own commits. The 4864 inherited upstream commits and their authors are no longer part ofmain. Nothing published changed: all release tags still point at the commits they were cut from, release assets, Sigstore bundles, image attestations and archived deposits verify exactly as before, and the pre-rewrite lineage stays reachable in this repository through those tags. Existing clones must be re-cloned rather than pulled, and comparisons spanning the rewrite (for examplegit describeagainstmain, or a tag range that crosses it) no longer share ancestry. - The admin console’s Template Manager uploads both template families the same way: one button in the page header (Upload OPT / Upload ADL2) opens a dialog offering a file picker and a paste area for either family, so ADL 1.4 gains the paste path and ADL 2 no longer carries a permanent card above its listing. A refusal keeps the dialog open with the server’s diagnostic beside the source, and a successful upload closes it and refreshes the list.
Fixed
- The admin console’s two template Example panes report a failed example read the same way: an inline error in the pane, in both template families. The ADL 1.4 pane used to render the whole-screen error with a back link even though the template itself had loaded.
- The hosted sandbox serves the console’s content-hashed script and wasm bundle with immutable caching, so a repeat visit stops re-downloading it.
- A template example request with a present but empty
detail_levelortypequery value is refused with400. The declared defaults apply only to an absent parameter; an empty or whitespace-padded value is outside the closed enums and was silently read as the default. - The admin console’s System screen reports SMART correctly. It probed the
discovery document at the origin instead of under the platform base path
the CDR serves it from, and rendered whatever came back as a raw status
echo (
CDR answered 302: HTTP 302on the hosted sandbox, where the origin path belongs to the console itself). It now probes/ferroehr/rest/.well-known/smart-configuration, states plainly that SMART is not enabled when the CDR serves no document, and gives an unexpected answer actionable copy that never claims SMART is disabled when the probe could not tell.
4.0.13 - 2026-08-30
Fixed
- AQL
LIKEhonors the escaped single-character wildcard:\?in a pattern now matches a literal?(QUERY master03 §Operators/LIKE), symmetrically with the already-correct\*. The string reader was consuming\?as a string escape before the pattern layer could see it, so the escaped form still matched as the wildcard. - Console sessions survive multi-instance deployments. The session moved
from an in-process store to a sealed cookie (AES-256-GCM): any replica
holding the configured
session.secret(base64, at least 64 bytes; new, withsession.secret_file) can serve any signed-in visitor — on serverless platforms the in-process store made every request that landed on another instance fail as 500 and the console report the CDR as down. With no secret configured the console behaves as before (one replica, ephemeral key) and says so at startup. The cookie is encrypted and authenticated, HttpOnly, SameSite=Lax,Secureper configuration; idle expiry is unchanged and rides inside the sealed payload.
4.0.12 - 2026-08-30
Added
- The admin console’s sign-in card takes a deployment-configured notice and
links:
login.notice(informational text, line breaks preserved — a demo states its public credentials and usage expectations there) andlogin.links(label + href pairs, e.g. an API reference). Both default empty and render nothing when unset.
Changed
- The hosted sandbox (sandbox.ferroehr.eu) leads with the admin console: the
deployment now runs both published container images, the console is the
landing surface (a visitor gets its sign-in screen, demo credentials
ferroehr/ferroehr), and the CDR keeps its path families —/ferroehr/*(including the Swagger UI, which stays the API reference),/health*, and/management*. The console drives the sandbox CDR over the public REST base as the same demo user; the CDR’s admin and management surfaces stay off.
4.0.11 - 2026-08-29
Added
- Validation enforces the one testable rule of
DV_TEXT.formatting: a value formatted"plain_no_newlines"is refused when the text contains a newline (RM: “newlines are not allowed”). Every other formatting value stays unvalidated — markdown,"plain", the deprecated CSS form, and unknown names all remain legal, with or without newlines.
Fixed
- The
is_modifiablecontent-write gate is evaluated inside the commit transaction, under a row lock, instead of a separate read before it — a deactivation committed concurrently with a content write is now always observed (one or the other strictly wins; previously the content commit could land on a just-deactivated EHR). The gate’s semantics are unchanged: the atomic change set is judged as a whole — a deactivating set may carry its final content, a reactivating set enables its own content, andEHR_STATUSitself is always writable. - AQL date/time comparisons work on reduced-precision values. openEHR admits
partial date/times (
2019,1985-06), but one stored anywhere in the scanned data made every temporal comparison on that path fail as a 400 (“your request is malformed” — for a data property). Both sides of a temporal comparison now floor a partial value to the first instant it contains (first month/day, zero time), the same completion the promoted timestamp column uses, so stored partials compare, order, and matchNOW()instead of erroring. A comparison value that is not an ISO 8601 date/time at all is still the caller’s 400, now named at plan time; non-ISO forms PostgreSQL happened to parse (e.g.June 15, 2020) are refused — AQL temporal literals are ISO 8601. - AQL predicates and projections now see every element of a list-valued
attribute (
links,context/participations, composeridentifiers,mappings, …). Previously the extraction took only the first match, soWHERE c/links/target/value = ...missed a match on the second link andSELECTover such a path served one value where the data held several — silently. Comparisons,LIKE,MATCHESandEXISTSare any-match; projection returns every match as one JSON array cell (nullwhen nothing matches). - An AQL node predicate written on the ROOT of an identified path
(
c[openEHR-EHR-COMPOSITION.report.v1]/name/value) now constrains the query — it was silently discarded, so the path answered as if the predicate were not written. A predicate on a non-structure path step (links[meaning/value = ...]) lowers as a SQL/JSON path filter selecting the matching elements, and a root predicate on a whole-object projection serves the object where the source matches and anullcell where it does not. - Reads serve the exact canonical bytes the commit accepted:
_typefirst and every field at its spec-declared position — including the server-stampeduid, which now lands at its place in the document instead of the end. Previously the stored body passed through ajsonbcolumn and PostgreSQL’s own key ordering leaked onto the wire (reported by the community). Dump archives carry the same faithful bytes, so an export/load round-trip is byte-equal again.
4.0.10 - 2026-08-29
Added
- The metrics surface gains
process_resident_memory_bytes(the standard Prometheus name), sampled from procfs every five seconds beside the pool and runtime gauges — so “is the server’s memory growing?” is a dashboard read instead of a shell into the host. Absent on platforms without procfs.
Changed
- AQL
FOLDER f1 CONTAINS FOLDER f2now also matches the folders of aVERSIONED_FOLDERthat a folder’sitemsreference — the same reference-resolution ground asFOLDER CONTAINS COMPOSITION, one reference hop (chainCONTAINSto follow further hops). Strict sub-folder matching is unchanged. - The Helm chart’s committed
appVersionnow always equals the product version, bumped in every release PR beside the compose image tags (chart 6.0.27). Published charts are unchanged — the release pipeline keeps injecting the released version at package time — but a from-treehelm installnow defaults to the current version instead of a release that could lag by one. - The repository’s default branch is now
main(renamed fromdevelop; full history preserved, old GitHub URLs redirect). The moving development image tag follows the branch: pullghcr.io/rubentalstra/ferroehr:main(and the admin-ui/postgres siblings) instead of:develop, which is frozen tags are deleted.:latestkeeps its meaning — the newest stable release — and release tags are unchanged.
Fixed
- The v4.0.9 Helm chart publishes as 6.0.26 (appVersion 4.0.9). The release’s own chart leg failed on a CI guard defect before publishing, so chart 6.0.25 never existed on the registry; 6.0.26 is the same chart with the committed appVersion default refreshed to the released 4.0.9.
4.0.9 - 2026-08-28
Fixed
-
FOLDER f CONTAINS COMPOSITION cnow resolves the folder’sitemsreferences (transitively over its sub-folders) instead of returning every composition in the EHR — the containment edge was silently dropped for any versioned object under a non-EHR parent, and the same defect madeNOT CONTAINSvacuously false under a folder and letORDER BYchange the row count ofEHR e CONTAINS FOLDER f.FOLDER CONTAINS FOLDERis now a strict sub-folder match (no self-pairs), and aCONTAINSpair the RM defines no containment relationship for (such asCOMPOSITION CONTAINS COMPOSITION) is a typed refusal instead of a cartesian product (#2880). -
The quickstart no longer publishes PostgreSQL to a host port, so a natively installed PostgreSQL (the classic Windows collision: the installer’s auto-started
postgresql-x64-*service holding 5432) can no longer faildocker compose up. Host access for psql/GUI clients is the newdocker-compose.db-publish.ymloverlay, attached to releases beside the base file; in-stack access needs no port (docker compose exec ferroehr-postgres psql) (#2879). -
The admin console stops re-downloading its whole WebAssembly bundle on every page load. Its
/pkg/filenames now carry a content hash and are servedpublic, max-age=31536000, immutable, so a browser reuses them until the console is rebuilt — measured on the shipped image, a second page load transfers 0 bytes of/pkginstead of 7.6 MB. Documents keepno-storeunchanged: they carry patient data and a per-request CSP nonce (#2875). -
A bare
docker compose upin a repository checkout now runs the same published-images quickstart as the downloaded standalone file. The development overlay no longer carries Compose’s auto-mergedoverridename (it isdocker-compose.dev.yml, applied only by an explicit-f), so a checkout can no longer fail on unpublished:localtags or missing build contexts (#2868). -
A port conflict never requires editing the compose file: every published port was already a variable (
FERROEHR_PORT,FERROEHR_DB_PORT,FERROEHR_ADMIN_UI_PORT,FERROEHR_S3_PORT), and the quickstart and the book now say so at the point of failure (#2869).
Changed
- Console builds no longer touch
Cargo.lock.cargo leptosresolves the workspace through an unlockedcargo metadatacall of its own, which had silently re-resolved a transitive dependency during a build; every invocation now runs through a wrapper that refuses a stale lockfile up front and passes--lockedto both compile legs, matching every other build in the repository (#2877). - The full browser e2e battery now runs against the PUBLISHED console image, in a weekly lane that drives the latest release’s three images at that release’s own tag. The battery’s shipped-artifact mode had no caller at all; the release pipeline keeps gating the login journey through the image it pushes (#2876).
- The
openehr-*spec crates step to0.0.43. The change is internal structure only: over-complex functions in the ADL engine, the Simplified Formats web-template builder and the ISO 8601 duration parser were split into named, documented helpers. The wire behaviour, the generated output and every gate are unchanged, and nothing an API consumer calls moved.
4.0.8 - 2026-08-27
Changed
- The container images’ distroless base (
gcr.io/distroless/cc-debian13:nonroot) moves to the current upstream digest, picking up Debian package updates for the runtime layer of the server and admin-console images.
4.0.7 - 2026-08-27
Added
- The release pipeline publishes the
openehr-*spec crates itself, as an approval-gated leg: the run pauses at thecrates-ioenvironment for an explicit human approval, then publishes any unpublished crate versions in dependency order with registry read-back (a release with no crate changes passes the leg as a no-op). A cut can no longer forget the crates; the dispatch lane remains as the dry-run/recovery path.
Fixed
- The chart packaging lane installs the pinned
helm-docs, so the chart README drift check runs where the chart is actually packaged. The v4.0.6 chart publish initially failed on exactly this and was recovered by dispatch; from this release the leg carries the tool.
4.0.6 - 2026-08-27
The first stable cut of the 4.0.6 line. The bulk of the line’s changes landed in the two release candidates below: the CI/release-pipeline redesign (4.0.6-rc2) and the conformance-instrument split to the standalone Veredictum project (4.0.6-rc3).
Changed
- The
openehr-*spec crates step to0.0.42. The change is internal structure only: long functions across the spec crates, the code generator and the test harnesses were split into named, documented helpers, with the wire behaviour, the generated output and every gate unchanged. Nothing an API consumer calls moved.
4.0.6-rc3 - 2026-08-26
Changed
- The conformance instrument is no longer built from this repository. It is
Veredictum, an independent
Apache-2.0 project with its own release line, and the pipeline consumes it at
a version pinned in one place (
scripts/lib/veredictum.sh): the runner comes from crates.io (cargo install veredictum --version <pin> --locked) and the catalogue with its vendored specification oracle comes from a cached checkout of the matching tag.scripts/conformance.shand the render scripts take the same arguments as before and produce the same artifacts, so the committed conformance record and every published chart, badge and document derived from it are unchanged. An instrument built separately from the system it judges can no longer be adjusted to suit that system. - The party set — each SUT’s
ixit.jsonand its party statement, plus the static test issuer the SMART conformance posture trusts — moved todocs/conformance/party/<sut>/, beside the record it belongs to. A vendor running the pipeline against their own deployment pointsCONF_IXITandCONF_STATEMENTat their own files exactly as before. - The vendored clinical-model and fixture corpus this repository’s own test
suites read moved to
corpus/at the repository root. It carries what FerroEHR’s gates exercise — the CKM ADL 1.4 and AM XML archetype packs, the CKM operational template library, the fixture bodies and the version-signing test key. The catalogue-side records (the per-file corpus manifest, the generated-set recipe contracts and the synthesized-template generator) stayed with the instrument.
Removed
docs/conformance/coverage-report.mdand the CI step that regenerated it. The report describes the catalogue’s coverage of the openEHR wire surface, so it is a claim about the instrument and is now published by Veredictum, which is the only repository that can regenerate it.- The CNF 2.0 design record left with the instrument; it is
ARCHITECTURE.mdat the root of the Veredictum repository.
4.0.6-rc2 - 2026-08-26
Added
- A weekly report of container manifests in the registry that nothing can reach any more, the residue of a publish that pushed an image by digest and then failed before its tags were applied. It files one tracking issue listing the digests and the command that removes each. Deletion stays manual: a miscomputed reachability would destroy published signatures and attestations.
Changed
- A published Helm chart now takes its
appVersionand itsartifacthub.io/imagestags from the release being cut, injected when the chart is packaged, instead of from values edited intoChart.yamlbeforehand. What the published chart says does not change; it can no longer say the previous release. The committed values are the default for a chart packaged between releases and forhelm templateagainst a checkout, and they may lag. - The conformance instrument (
tools/cnf-runner— the CNF 2.0 runner, its machine-readable catalogue, schemas, and party artifacts) is now licensed under Apache-2.0 instead of MIT: attribution travels with every copy and derivative (license + NOTICE retention), and the license carries an explicit patent grant. The rest of the project stays MIT; the vendored test corpora keep their upstream terms unchanged.
Fixed
- The chart’s generated
README.md, the page Artifact Hub renders, was a release behind: it advertised chart 6.0.19 and image tag 4.0.4 while the chart was 6.0.20 with an appVersion of 4.0.5. It is regenerated, and a guard now refuses a README that disagrees with the chart it ships in. - Two
gh attestation verifyexamples in Verifying releases still pinned image tag 4.0.4 at the v4.0.5 cut, and that page was then frozen into the 4.0.5 documentation. The docs guard now checks release-asset filenames and the substitute-this-tag note on that page, and it reads the workspace version rather than the chart’sappVersion. - Three checks in the documentation-claims guard could never fire: they tested membership of a newline-separated file list against a space-delimited pattern, so the quoted-wire-evidence check and the Rust-version check on the from-source page had never run once.
- The documentation-claims guard now recognises an
image.tag=X.Y.Zpin on a chart page. That spelling is the defect the check was written for, and it was the one spelling the pattern did not match.
4.0.5 - 2026-08-26
Changed
- Refusing a supplied
EHR_STATUSwithoutarchetype_details(a 422 the Reference Model requires —EHR_STATUSis always an archetype root) now names the remedy in the error message, and the API book documents both create-EHR branches: the content of the server-minted default, and the RM-completeness a supplied status must have.
Fixed
- AQL parsing no longer leaks memory. The parser’s internal recursive combinators formed reference cycles that outlived every parse, so each parsed query grew the process permanently. Found by the fuzzing lane, which now runs the AQL target under LeakSanitizer without findings.
- Printing a parsed AQL query re-escapes its string literals (backslashes, quotes, and the decoded control escapes). The parser decodes escape sequences into the AST, and four printer sites emitted the decoded value verbatim, so a printed query re-decoded them on the next parse and drifted. A stored query now round-trips to the identical AST.
- Refusing an invalid AQL query with nested
[predicate openers took exponential time (a 222-byte input parsed for seconds to minutes, doubling per nesting level). The node-predicate grammar now parses its shared path prefix once, so refusal time stays near-linear in input length.
Security
- Container image tags (
:latestand the version tags) now move only after the vulnerability scan passes. The images are pushed by digest, scanned, and tagged last, so a failing scan leaves every previously published tag untouched (the v4.0.4 lane moved:latestbefore its scan verdict). - CVE-2026-14456 (libssl in the distroless base image) is adjudicated not affected: no FerroEHR binary links OpenSSL (rustls only). The finding is suppressed by an id-scoped, expiring ignore plus a published OpenVEX statement, pending a rebuilt upstream base.
4.0.4 - 2026-08-26
Fixed
- An unauthenticated request to a guarded admin-console URL now answers its
302 → /loginwith an empty body. Previously the redirect carried a fully rendered console document — chrome, screen markup, and the serialized failure diagnostics of every server function the screen runs — visible to any client that does not follow redirects, and each anonymous hit paid a full server render. A pre-render session guard now refuses the request before any rendering happens; the sign-in screen, OIDC handshake, assets, and server-function endpoints are unaffected, and the in-view guard stays as the client-side navigation gate.
Changed
- Composition updates got faster: the whole write pre-check (ownership,
If-Match, lifecycle,is_modifiable, template stability, the cross-version invariants) now rides the write transaction’s own placement statement under the per-object lock, instead of a separate pre-read round trip. The refusal outcomes and their order are unchanged. GET …/composition/{uid}with a JSONAcceptnow serves the stored canonical body verbatim instead of parsing and re-serializing it. The JSON is semantically identical; insignificant whitespace now follows PostgreSQL’s jsonb rendering (a space after:and,), so byte-exact comparisons against previous responses will differ while every JSON parser sees the same document. XML, FLAT and STRUCTURED representations, andexpand_multimedia=truereads, are parsed exactly as before.- The performance page documents the durability floor: why a single durable
commit cannot beat the WAL flush, how group commit scales concurrent
writers past it, and the
synchronous_committrade-off as an explicit operator choice (never a FerroEHR default). - The Helm chart’s default container resources now bound ephemeral storage (requests 128Mi, limits 1Gi) alongside CPU and memory: the root filesystem is read-only and the container writes only logs and tmp, so an unbounded local-write default could evict a node’s neighbouring pods. Chart 6.0.18.
- The landing page’s Content-Security-Policy drops
'unsafe-inline'fromscript-src: the page’s only script element is a JSON-LD data block, which browsers never execute, so the allowance permitted inline script injection for nothing in return. - The hosted sandbox’s delivery pipeline is redesigned end to end
(
deploy/vercel/README.md): one trigger owner (the Sandbox deploy workflow, firing after a release image publishes, on sandbox-posture changes, or manually),Dockerfile.verceltracking the:latestrelease pointer instead of a hand-bumped version pin, an automatic wipe-and-reseed after every successful redeploy, and no ignore script — the ordering race it guarded cannot occur when the only trigger fires after the image exists. Sandbox failures now surface only in the sandbox-named workflows. The published:latestcontainer tag no longer moves on prerelease tags.
4.0.3 - 2026-08-25
Added
-
The hosted sandbox resets every night around midnight UTC: a scheduled job wipes the database (fenced so it can only ever run against a Neon endpoint), the next boot re-runs the migrations, and
scripts/sandbox/reseed.shseeds demo EHRs with example compositions from published CKM templates through the public API. Visiting the sandbox root or its favicon now lands on the Swagger UI instead of a 404. -
The server understands two more deployment-platform conventions.
PORT(Vercel, Cloud Run, Heroku inject it) binds0.0.0.0:<PORT>, belowFERROEHR__SERVER__BIND. The libpq environment set (PGHOST,PGUSER,PGPASSWORD,PGDATABASE,PGPORT,PGSSLMODE— what managed-Postgres integrations such as Neon inject) assembles the database DSN when no URL form is set;DATABASE_URLbeats the assembled form andFERROEHR__DB__URLbeats both. Direct endpoints beat pooled ones inside that layer (DATABASE_URL_UNPOOLEDoverDATABASE_URL,PGHOST_UNPOOLEDoverPGHOST): a transaction-pooled endpoint hands statements to backend connections without the sessionsearch_path, which surfaced as intermittent “relation does not exist” errors on the hosted sandbox. ADockerfile.vercelplusvercel.jsonship for Vercel’s Container preset (the hosted sandbox); the Dockerfile references the published release image, so Vercel’s build step is a pull measured in seconds instead of a half-hour Rust compile, and the sandbox runs the exact bytes CI built, signed and tested. The release-cut guard now holds itsFROMtag to the workspace version alongside the compose defaults. Vercel deploys only from the develop branch (no per-PR previews), and because the Dockerfile pins the release tag, a develop push is a seconds-long re-pull of the same release image: the sandbox always runs the latest release, and its content changes only at a release cut. -
A one-click tester sandbox: opening the repository in a GitHub Codespace boots the published quickstart stack (server, PostgreSQL 18, admin console) automatically and forwards the API and console ports. The committed
.devcontainer/pins every compose command to the standalonedocker-compose.yml, so the sandbox runs release images rather than building the checkout. Documented at Installation → Try it in Codespaces and linked from the README quick start. -
POST {base}/admin/integrity/verifysweeps the stored data for content-copy disagreement. Every version’s content is stored twice — as the materialized document a point read serves and as the decomposed rows the AQL engine queries — and read-time signature verification only ever recomputed the first, so a row edited behind the server’s back could reach a client through an AQL scalar result with no integrity signal. The sweep re-derives every stored version from its decomposed rows, compares, and reports every mismatch by identifier with a defect ofcontent_differs,nodes_missing,nodes_unreadable, orunexpected_nodes. It reads the archived tier too, takes no lock, runs off the request path, and never logs or returns content. A finding is reported in the 200 body, not as a failed request. Behind the existing admin switch and admin role.
Changed
-
The documentation site no longer carries its own OpenAPI reference at
/api/. Every “API reference” link now opens the live sandbox’s Swagger UI at https://sandbox.ferroehr.eu/ferroehr/rest/swagger-ui, served by the running server from its own handlers with the public demo credentialsferroehr/ferroehr. The reader gets the current release rather than a copy assembled at site-build time, and “Try it out” issues real requests against real data. Every deployment still serves the same UI at/ferroehr/rest/swagger-uiwhenswagger_uiis on. -
A composition CREATE skips the explicit transaction when the commit is the one folded statement (no accompanying attestations, event outbox off — the common case): a single SQL statement is atomic on its own, so the
BEGIN/COMMITround trips are gone and a create is two database statements end to end (the merged pre-check read and the folded commit). -
A version UPDATE gets three round trips faster. Closing the superseded lineage tip now rides the one folded commit statement (its leading CTE, at the same bound instant, so the close boundary and the new version’s open bound are one value by construction); the archived-object thaw rides the version-tree placement read instead of its own statement; and the first-version invariant read (archetype and category stability across versions) rides the update’s merged pre-read instead of a transaction-time statement. Measured on a 14k-version store: composition update p50 drops from 10.6 ms to 5.6 ms, within ~1 ms of create.
-
The first-version invariant read now consults both storage tiers, so updating an archived composition enforces the cross-version archetype and category invariants instead of silently skipping them (the read used to run before the thaw and saw only the primary tier).
-
The write path sheds most of another btree: the node CONTAINS-anchor index narrows from
(rm_type, archetype)to(rm_type)alone — 83% of node rows carry at-code archetype text whose key bytes dominated the index’s maintenance, while every measured anchor plan either used the subsumption index (full-HRID anchors) or filtered archetype after the rm_type probe at identical latency. Measured: the one-statement commit drops a further ~0.3 ms; the read probes (EHR-scoped, archetype-anchored, rm_type-only, and the no-match worst case) are unchanged. -
A versioned-object commit is ONE SQL statement: the decomposed node rows ride the folded commit CTE (ordered after the version row, which also satisfies their foreign key in-statement), removing the separate node insert round trip from every local write — composition, EHR_STATUS, directory, demographic, and the CONTRIBUTION route alike. A logical delete folds through with empty arrays.
-
Every versioned-object write sheds one btree: EHR-scoped AQL routes its scoping through the version spine (where the engine already mirrored the predicate), so the per-node-row
ehr_idindex — maintained for every row of every commit and, measured over the generated plans, serving no read the spine route does not — is gone from the baseline. Measured at a 100k-composition seed: the node insert drops ~0.5 ms per commit (~13%); EHR-scoped reads are unchanged. Deployments recreate to pick the baseline up (greenfield policy). -
Commit latency’s tail shrinks: the large stored JSON columns (
vo_version.body,vo_version.wrapped_original; the node fragments and audit columns already had it) compress with lz4 instead of PostgreSQL’s default pglz, and the bundled compose database enableswal_compression=lz4— measured together, per-commit WAL volume roughly halves (~52 KB → ~24 KB) and the post-checkpoint p99 drops from ~180 ms to ~19 ms on the reference workload, with the median commit ~0.5–1 ms faster. Greenfield deployments pick the column compression up by recreating the database; the WAL setting is the compose default and an operator knob (BENCH_PG_WAL_COMPRESSION) elsewhere.
4.0.2 - 2026-08-24
Added
-
A mixed CONTRIBUTION now honours its own EHR_STATUS member when the content-write gate runs: content members beside an
EHR_STATUSmember settingis_modifiable = trueare accepted against a deactivated EHR (reactivate-and-write in one atomic commit), and a deactivating CONTRIBUTION may carry its final content updates. Content against a deactivated EHR without a reactivating member stays a 409. The rule is order-independent over the change set (community report; adjudication with citations on the tracker). -
The book gained a Version signing chapter: a digest-signing page and a PGP-signing page, each with a flow diagram (commit-time signing and read-time verification), covering what is signed, the client-supplied signature rules, key configuration and rotation, and the
IMPORTED_VERSIONwrapper signature. -
Admin console: the ADL 2 template detail shows the path catalog — the same expandable tree and node inspector the ADL 1.4 detail has — built by the console from the served AOM2 JSON. The CDR’s REST surface is unchanged (the released API defines no Web Template representation on the ADL 2 resource).
-
Helm chart 6.0.16:
metrics.grafanaDashboard.enabledships the default “FerroEHR — service overview” Grafana dashboard as a ConfigMap the Grafana dashboard sidecar (kube-prometheus-stack) auto-imports; the compose observability overlay provisions the same dashboard, now extended to AQL rate and phase latency, plan-cache hit ratio, database pool, Tokio runtime, and audit throughput — every panel query written against the served metric names. -
Docs: the compose installation page states the supported container engines — the quickstart, both profiles and both overlays are verified on Docker and Podman.
Changed
-
Current-version lookups gained dedicated partial indexes: EHR-scoped current-row reads (EHR_STATUS/FOLDER resolution, EHR summaries, the directory join) and the persistent-COMPOSITION duplicate probe now hit an index that holds exactly one entry per live object instead of walking an EHR’s version history. Deployments recreate their database to pick the baseline change up (greenfield migration policy).
-
The composition-create write transaction no longer spends a round trip reading the clock: the commit instant rides the EHR writability gate’s own statement, and the folded commit statements now BIND that instant as the audit time and version validity open bound — the stored commit time and the signed one are a single value by construction.
-
A signed commit stopped copying the composition body twice: the signature’s canonical form is produced over a shallow reference view (the
datasubtree and thesignaturedrop are joined/filtered by reference, never a deep copy of the version body). -
The admin archive load batches per relation — one
unneststatement each for version rows, node rows, audits, contributions, attestations, item tags, folder ranks and archive markers — instead of a statement per row (a 1,000-version EHR record previously cost ~2,000+ round trips); the EHR-Extract export’s demographics chapter batches its party reads and version counts the same way. -
ABAC-checked AQL queries run the scope collection concurrently with the main query under the one execution budget (wall-clock is the maximum of the two, not their sum).
-
Template existence checks on the TDD prepare and template-example surfaces probe with
EXISTSinstead of moving the stored OPT XML; commit decomposition and content negotiation shed their per-node and per-request allocations. -
Version point reads (composition, EHR_STATUS, directory, party — every
.../{uid}andversion_at_timeread) execute as ONE SQL statement, and the served canonical body is now MATERIALIZED at commit (vo_version.body, written from the same value the node rows are decomposed from) instead of being reassembled from the node subtree on every read. Measured: point-read latency drops under 1 ms (mean ~0.7 ms at c=1 on reference hardware) with the database-side read cost down ~8×; the node rows remain the AQL source of truth. Storage grows by roughly the size of each stored version’s canonical JSON. -
The EHR_STATUS reads (current and
version_at_time) and the current directory read resolve their container and read the version in ONE statement each (previously a container-resolution query followed by the version read); a revision history folds its attestations into the one metadata statement; the versioned-object container reads carry their ownership check inside the bounds statement; and a tag-collection replace returns the stored collection from its own insert instead of re-reading it after commit. -
Two per-item read loops became single statements: a resolved CONTRIBUTION read (
Prefer: resolve_refs) loads all its member versions in one batched query instead of one read per member, and the persistent-COMPOSITION uniqueness pre-check is oneEXISTSprobe instead of reading every live composition body in the EHR. -
Response compression now runs at the fastest level for every negotiated encoding (it previously used the libraries’ default levels — real clients negotiating brotli paid visible per-response compression CPU for a marginal ratio gain), and a bare object read no longer re-stamps a
uidthe stored body already carries. -
Every object-addressed read (full version reads and the metadata/existence lookups behind
ETags, revision histories, and 404 checks) queries the two-tier union view in ONE statement instead of retrying the cold archival tier in its own transaction on a primary miss — a miss (an unknown id, a not-yet-created resource, a probing client) no longer costs four extra database round trips, and archived objects stay retrievable exactly as before. -
AQL whole-object projections got cheaper end to end: a root-anchored projection (
SELECT c FROM … CONTAINS COMPOSITION c) serves the materialized version body directly instead of re-aggregating and reassembling the node subtree, and theRESULT_SETassembly moves each document into its cell and into the response envelope instead of deep-copying the page three times on the way out. -
Commit and update paths do less per-request work: the version body is assembled once per commit (it previously reassembled twice — once for the signature, once for storage), the composition-update pre-read and the cross-version invariant checks read two text scalars off the materialized body instead of fetching and parsing JSON fragments, and the per-request EHR_ACCESS gate shares the cached settings instead of cloning the access list.
Fixed
-
A composition decomposing to more than 4,095 node rows now commits: the node insert previously bound 16 parameters per row against PostgreSQL’s 65,535-parameter statement cap, so a sufficiently large document failed the write outright. The insert is now one fixed-text
unneststatement with one array bind per column at any row count (which also ends the per-commit statement-text churn in the prepared-statement cache). -
Multi-tenant deployments carry
db.statement_timeout_msagain: the tenant-scoped pool’s connection hook replaced the base hook and silently dropped the timeout, leaving those deployments without the database-side runaway-query guard. -
Compose:
docker compose --profile s3 up -d --waitno longer fails after everything succeeded. Current Compose (v5.4, Docker and Podman alike) treats any exited container as a--waitfailure, including the bucket initializer’s successful exit; the server now declares aservice_completed_successfullydependency on the initializer (inert without thes3profile), which both orders startup after bucket creation and marks the initializer as a one-shot. The documented invocation drops the initializer from the service list. -
Compose: the observability overlay boots under Podman. Every component of the LGTM container creates its state under
/data, which the image cannot create under Podman (its root directory ships mode 555 and the overlay drops all capabilities); atmpfsmount at/datafixes it on both engines. -
Helm chart 6.0.15: the chart-signing step retries transient Sigstore failures instead of stranding a published version unsigned. Chart 6.0.14 was pushed but lost its signature and provenance attestation to a single Fulcio connection reset; it stays published as-is (an OCI push is immutable under this repository’s lanes) and 6.0.15 is the signed, attested build of the same content. Kubernetes users should install 6.0.15.
4.0.1 - 2026-08-24
Added
- Every published artifact class now builds at SLSA Build Level 3: the
container images and the Helm chart moved into reusable build workflows
(
build-image.yml,build-chart.yml) alongside the release binaries’ existing lane, so the attestation-signing material is out of reach of any caller-defined step and a consumer can pin the exact signer workflow. The README carries the SLSA Build L3 badge, linked to the verification guide. - Release binaries and the server container image are built with
cargo auditable: the shipped binary carries its own compressed dependency list in a.dep-v0section (it survives stripping — verified first-hand), so binary-reading scanners such as syft, trivy, grype and osv-scanner recover the crate graph from the artifact itself. - The verifying-releases guide now covers the SBOM-attestation verify command (with its required predicate type), digest-form image verification, the registry-only and fully-offline verification paths, and a plain statement of what crates.io Trusted Publishing does and does not provide.
Fixed
-
The container lane’s change detection no longer degrades with a warning on tag pushes and manual dispatches: building everything in those cases is now declared instead of falling out of a missing event field.
-
The Helm chart publishes again as 6.0.13, carrying the v4.0.0 server as its
appVersion: the v4.0.0 cut changed packaged chart content (appVersion, the generated README, the image annotations) without bumping the chart’s own version, so the tag-triggered publish was correctly refused by the immutability guard and no chart for v4.0.0 existed until this one.
4.0.0 - 2026-08-24
Added
-
Admin console: a Subscriptions screen (shown only when the CDR’s event-subscription admin API is enabled) — list, create, edit, and two-step delete of change-event subscriptions.
-
Admin console: the EHR detail’s Compositions tab gains filters — template, date range, and composer, all AQL-backed and kept in the URL so a filtered view can be shared — and its rows open the composition’s rendered clinical view directly. The EHR header now shows the subject’s identity and the queryable/modifiable badges.
-
Admin console: a Commit tab on the EHR detail — stage several changes (create a composition, amend one, modify the EHR status), set the contribution’s audit, and commit them as ONE contribution, all-or-nothing: the openEHR-native way to make correlated changes. A refused commit keeps the staging intact and shows the per-version diagnostics verbatim; staged changes live only in the open session.
-
Admin console: a FHIR screen (shown only when the CDR’s FHIR API is enabled) — the mapping-store editor (list, create, edit, and two-step delete of the connector’s mapping definitions, edited as JSON documents with the CDR’s validation diagnostics verbatim), a read-path viewer showing what a mapping produces on
GET /fhir/r4/{type}, and a validate-only dry-run panel over$validatethat commits nothing. The console deliberately has no path to the committing FHIR ingest door. -
The tenancy extension gains
GET /admin/tenant/current— the tenant the calling credential resolves to ({"default": bool, "tenant": record|null}; the reserved default tenant when the request runs unscoped). Multi-tenancy stays credential-derived: the read reports the middleware’s own resolution, and nothing selects a tenant. -
Admin console: a Tenants screen (shown only when the CDR serves the tenancy extension) — the tenant registry with create, edit, and two-step delete, plus a read-only card naming the tenant this session’s credential resolves to. There is deliberately no tenant switcher.
-
Admin console: the ADL2 template rows gain the same two-step delete the ADL 1.4 rows have, driving the CDR’s existing ADL2 artefact delete (with its never-orphan refusal surfaced verbatim).
-
Admin console: the ADL2 template family — the Templates screen gains a family switch (ADL 1.4 | ADL 2, kept in the URL): list and upload ADL2 operational-template sources (validation diagnostics surface verbatim, like the OPT upload), and a per-template detail screen serving the stored source, the AOM2 canonical JSON, an example composition (JSON or XML), and version navigation across a template’s stored versions. ADL2 templates carry no Web Template, so the detail states that instead of a path catalog.
-
Admin console: a Terminology section — browse the terminologies the CDR serves, define a code, test subsumption, and expand or validate a value set — plus a terminology-aware code picker on the query builder’s coded criterion: the terminology field offers the served ids, a code can be looked up (rendered
code — term) or pulled from a value-set expansion, and free-text entry keeps working for terminologies the server does not host. The read-only terminology extension API is now enabled in the dev compose stack’s configuration so these screens work out of the box. -
Admin console: the openEHR item-tag surfaces — a tag panel on the composition viewer (following the version the viewer shows) and on the EHR detail’s Status tab (the versioned container, so tags survive new versions), plus a Tags tab listing every tag in an EHR grouped by the object it sits on, filterable by key, value and target path in the URL. One shared tag kit serves these and the demographic tag editor.
-
Admin console: a full Demographics section — a per-kind party browser and editor for all five party kinds (people, organisations, groups, agents, roles) with create, view, verbatim-merge update and logical delete; versioned-party history with time-travel; a relationships index and detail (both linked ends, edit, history, delete) plus a relationships tab on every party; demographic tag editing per party and a repository-wide tag index; and a demographic contribution viewer. The openEHR demographic API is published in the development state within the implemented REST release, and the section’s book page says so.
-
FHIR mapping dry run:
POST /fhir/r4/{resource_type}/$validate(the HL7 FHIR R4 validation-operation convention) runs the whole ingest pipeline — mapping resolution, the FLAT build, the provenance stamp, and the same validation the real commit runs — and commits nothing. TheOperationOutcomecarries the verdict: the validator’s rejections verbatim, or the valid verdict plus the EHR disposition (the target EHR is resolved and reported, never created). Same starter-set scope, config gate and access class as the ingest door; the mapping-definition contract and a worked blood-pressure example are now documented in the book’s FHIR chapter.
Changed
-
Every JSON error body now has ONE uniform shape:
{"error", "message", "validationErrors"}. Semantic-validation failures populatevalidationErrorswith their"<path>: <message>"entries (as before); every other error now carries the member as an empty list, and validation refusals additionally gain the machine-readableerrorreason phrase. This makes the400bodies satisfy the releasedError.yamlschema’s required member list; clients matching on the previous two-shape split keep working (the change is additive on both shapes). -
The FHIR connector’s release identity is recorded as FHIR R4: every resource and element it touches is unchanged in R4B (HL7’s own R4B scope statement), so the wire’s
/fhir/r4is truthful and connector-side text and citations now say R4 consistently. The terminology integration keeps its deliberate R4B identity — the two vocabularies are intentionally different, and the documentation says which is which. -
An event-subscription update is an explicit full replace:
enabledis now required on the body — omitting it previously defaulted totrueand silently re-enabled a deliberately disabled subscription — and any unknown body key is refused instead of silently dropped (echoed read-only members from a prior read stay tolerated).
Fixed
-
Admin console: the directory history panel loads a bounded window of the newest versions (with a “Load older versions” affordance) instead of one request per version back to v1, and opening the history of a logically deleted directory shows the empty state instead of a bogus row; the template detail screen fetches and parses its OPT once instead of three times; the
/systemrepository-usage card runs its per-template counts concurrently and says when it is showing a truncated list. -
Admin console: a CDR-refused session (
401) and a wrong-role refusal (403) now read as two different situations with two different next actions — previously both collapsed into the same “forbidden” copy. The update flows send back the veryETagthe CDR served instead of re-deriving the precondition from the body, and an already-zoned date-time entered in a time-travel picker (e.g.…+02:00) is no longer double-stamped withZ. -
A composition
DELETEthat volunteers anIf-Matchprecondition now honours it: a stale condition is refused with412 Precondition Failedcarrying the latest version’sETag, evaluated only when the delete would otherwise have proceeded (RFC 9110 precondition precedence). Previously the received header was silently ignored and the delete performed. -
Admin console, from the close-out wire audit: a refused commit’s per-path validation details (
validationErrors) now render line by line instead of collapsing to one generic message; opening a deleted composition version shows a first-class “deleted at this instant” state instead of a blank pane; the/systemrepository-usage card sends the template id as a query-parameter binding (an apostrophe-bearing template id previously broke the card’s AQL — and could escape the string literal); every time-travel picker states that the entered instant is interpreted as UTC; the conformance-manifest reader tolerates a peer CDR omitting optional members instead of hiding the admin affordances; the composition delete no longer sends a self-satisfyingIf-Match; tag updates statePrefer: return=minimalexplicitly; and a FHIR connector answer now counts any success status as completed, not only200. -
An AQL query parameter whose value cannot be coerced to the type its predicate compares against (an invalid date/time or text representation) is now the caller’s
400, naming the defect class — previously the database’s coercion failure surfaced as an opaque internal500. -
Every member-scoped refusal on the contribution commit now names the offending member (
versions[i]) — the data-parse, template-resolution, change-type and audit refusals previously carried no index, so a client staging several changes could not tell which one was rejected. -
Admin console: a FHIR-shaped refusal (an
OperationOutcome) now renders its human diagnostics wherever an error surfaces — the shared diagnostic reader speaks both error vocabularies, so no screen can hand raw JSON to a toast. -
The FHIR read facade serves one Bundle entry per stored composition — with several enabled mappings over one template it previously served the same composition once per mapping, duplicating
fullUrls within a Bundle (HL7 FHIR R4bdl-7) and over-countingtotal. The mapping that wins a composition follows the same precedence ingest uses. -
The published conformance statement’s product version had sat at 3.6.0 since that release while the record beside it moved on — it now matches the workspace version, and the release-cut guard fails whenever the two diverge again.
-
The product is spelled FerroEHR everywhere a human reads it as a name: the admin console’s sidebar wordmark and every browser-tab title (both previously
ferroehr-admin), the three published container images’ display titles, and the conformance report’s opening line (which now leads with the product name and keeps the machinesutkey beside it). Technical identifiers — package names, URLs, paths, environment variables, registry references — deliberately stay lowercase. -
Admin console: the sidebar is grouped — the domain sections (Dashboard through Terminology, plus FHIR and Tenants when served) sit above a divider, and the platform group (Operations, Audit log, System) sits below it, with System last.
-
Admin console: the query-results chart draws with linear interpolation — the smoothing default emitted invalid SVG (a
NaNcontrol point) whenever two result rows shared a timestamp on a time axis, and it drew smoothed values between samples that were never measured. -
The unknown-configuration-key diagnostic now names the key’s full section path (
auth.oidc.enabled) and attributes a file line only when the key is really defined under that section — a key arriving from the environment is named by itsFERROEHR__…variable instead of pointing at an unrelated, valid line of the configuration file. -
The template lists’
versionquery filter now matches the template id’s version axis, as the API documents (“taken fromtemplate_id”) — an exact version or a prefix pattern like1.2.*previously matched nothing on either the ADL 1.4 or the ADL2 list, leaving*as the only working filter. -
Admin console: the EHR_STATUS editor and the demographics party editor are now inert (fields and save disabled) until the served document has seeded the form, so a keystroke can no longer race the seed, be silently overwritten, and then be committed as the overwritten text.
-
Admin console: the composition links on the EHR detail’s Compositions tab now percent-encode the EHR id and the versioned-object id, like every other link the console builds.
-
The COMPOSITION and EHR_STATUS resource reads now refuse a
uid_based_idof another RM kind with404, as the REST specification requires — an EHR_STATUS id addressed on the composition route (or vice versa) previously answered200with the other kind’s body. Every kind-scoped read (latest, at-version, at-time, revision history, and the directory family) now discriminates the stored kind beside the owning EHR. -
Importing an EHR Extract that advances an already-held BRANCH lineage (a later branch version arriving while the stored branch head is still open) now lands as an append: the stored tip is superseded and the new version becomes the lineage’s head, mirroring the trunk behaviour — RM common master06 §Copying / §Semantics in Distributed Systems. Previously the import was refused with a bare
409 Conflict. A stale receipt (a branch version at or below the stored tip) is now refused with a message naming the stored tip, exactly like a stale trunk re-import.
Removed
- The event subscription’s
archetypepredicate: it was stored and served but consulted by nothing — the AMQP routing key carries no archetype segment, so the predicate never filtered anything in any combination. Filter by template instead (an operational template names its root archetype).
3.20.0 - 2026-08-21
Fixed
- Committing a CONTRIBUTION whose EHR_STATUS member carries
lifecycle_state = incompleteis now accepted, with the incomplete relaxation (existence and cardinality lower bounds lifted) applied to the status body exactly as for every other content type — RM common master06 defines the incomplete state generically and no released text excludes EHR_STATUS. The direct EHR_STATUS update route likewise honours an incomplete lifecycle it previously ignored. Previously such commits were refused with a 422. - The version lifecycle transition table now follows the formal state
machine the RM designates (the
RM-version_lifecyclediagram), in both directions:complete → incomplete(the drawnupdateedge) is accepted, while same-state re-commits ofinactiveorabandonedcontent — permissions the machine does not draw — are now refused with a 422 (resume editing viareactivate/retrievefirst).
Changed
- The from-source server image build (
docker compose --build, the conformance stack, the repo-dev posture) now keeps the whole cargo target directory in a persistent BuildKit cache mount — the official Docker Rust pattern — instead of the cargo-chef dependency layer. Cargo’s own freshness now decides what recompiles, so an app-only edit no longer recompiles the eight generatedopenehr-*spec crates (previously every edit paid the full 20+ minute workspace compile; cargo-chef documents that local workspace crates cannot ride its layer). The first build on a machine seeds the cache; every later build compiles only what changed. - The entire outbound upstream-report corpus — all 215 reports of defects, contradictions, and silences in the released openEHR specifications — was re-verified first-hand against the vendored spec text in one adversarial pass. Three reports were refuted and withdrawn, one rewritten to its provable narrow claim, and every correction the pass surfaced travels on the closed reports for the future submission to openEHR. Verification is now terminal: a verified report closes as the standing record, so the open tracker stays near zero by design.
- The conformance catalogue follows the pass’s refutations: committing a
CONTRIBUTION whose EHR_STATUS member carries
lifecycle_state = incompleteis now a gating acceptance case (RM common master06 defines the incomplete state generically; the reject lean existed only in the stalled CNF guide), and the empty-directory 404 cases gate unconditionally (the released OAS defines the branch — the former empty-vs-error option selection is gone).
3.19.0 - 2026-08-21
Fixed
- Error responses name the SM call status the service model actually
declares. Several refusals previously reported a neighbouring generic
status: a duplicate EHR id now reports
ehr_create_fail_duplicate_id, a subject another EHR already holds reportsehr_for_subject_already_exists(on create, status update, EHR-Extract import and archive load alike), an invalid uploaded template reportsinvalid_template, an invalid uploaded archetype reportsinvalid_archetype, and conflicts the service model names nothing more precise for (duplicate templates or stored queries, referenced-artefact deletes, directory and modifiability conflicts) report the honest genericconflictinstead ofcomposition_already_exists. No HTTP status moves — only theerrortoken in the body becomes accurate.
3.18.0 - 2026-08-20
Added
-
FHIR mapping definitions gained
where()/first()paths and cross-terminology code translation. The connector’s FHIRPath subset now supports single-conditionwhere(path = literal)filters andfirst()(picking, say, a component by its code instead of its position), and acodedentry can declaretranslateto convert codes between terminologies at ingest time via a configured FHIR terminology server’sConceptMap/$translate. Only strictly equivalent matches are taken; an untranslatable required entry refuses the ingest, an optional one writes nothing, and a translate mapping without a configured terminology server is a configuration error — the untranslated code is never passed through under the target terminology. -
The whole-repository dump archives standalone demographic containers.
POST {base}/admin/dumpnow writes a demographic wave beside the EHR wave: parties and party relationships that live outside any EHR land indemographic-commons.json(their shared audits and contributions) plusdemographic-NNNN.jsonsegments, in every logical format and container (loose, zip, 7z; canonical-XML exports externalize their versions asversions/*.xmllike the EHR wave).POST {base}/admin/loadrestores them verbatim, reports an already-present container under its own kind (PERSON,ORGANISATION,GROUP,AGENT,ROLE,PARTY_RELATIONSHIP) instead of failing, and still reads archives written before the wave existed. -
Template and archetype uploads now validate the artefact’s own meta-data against the RM resource-package rules. An OPT 1.4 whose header violates the RM class invariants — a language outside the openEHR
languagescode set,is_controlledwithout a revision history, a description without an author or details, duplicate detail languages, an emptylifecycle_stateorpurpose— is refused with a422naming the violated invariant, andvalidateanswers with the same catalogue as upload, so the two can no longer disagree. ADL 1.4 source uploads refuse the structural and language-code rows the same way; the empty-prose rows (purpose/use/misuseas<"">) are reported as named warnings there, because the empty string is how real-world 1.4 authoring spells absence (adjudicated against the full vendored CKM library, which uploads unchanged).
Fixed
-
DV_URIaccepts scheme-less and plain-text values. The validator previously refused anyDV_URI.valuewithout an RFC 3986 scheme — a floor the class does not declare: its only invariant isValue_valid: not value.is_empty, and the RM’s URI chapter explicitly allows “plain-text URIs” (encoding is the consumer’s duty at the point of use). Relative references and plain text now commit;DV_EHR_URIis unchanged (its ownScheme_validinvariant still requires theehrscheme). The conformance catalogue’s URI cases carry the re-derived expectations. -
ITEM_TABLE.as_hierarchyproduces the specified row encoding. Theopenehr-rmfunction previously emitted a column transpose (following a contradictory one-line summary in the class table); it now encodes oneCLUSTERper row renamed to the stringified row number, as the RM’s own ISO 13606 encoding rules, class description and instance figure define (the contradiction is reported upstream). -
validateanduploadcan no longer disagree about a template. The ADL 1.4 OPT validation endpoint now answers with the same artefact-validity catalogue the upload enforces, so a template that would be refused on upload is reported invalid by validation too. -
A CONTRIBUTION delete member with a contradictory
lifecycle_stateis refused. Declaringdeletedas the change type while stating a non-deleted lifecycle previously committed with the instruction silently dropped; it is now a400naming the contradiction, matching the header-seam behaviour. -
The
openehr-itscrate’s default XML lineage is v2. The convenience serializer previously emitted the v1 namespace, whose published schema bundle cannot describe every RM 1.2.0 class this model emits; the v1 lineage stays available by explicit selection.
3.17.8 - 2026-08-19
Fixed
- The quickstart’s S3 bucket initializer no longer races the gateway.
seaweedfs-initretried nothing: the gateway’s healthcheck only proves the S3 port answers, and a single-shot CreateBucket against a still-warming filer could fail once and never run again, leaving every multimedia commit against a missing bucket. The initializer now retries until the bucket is verifiably listable (the same read the deployment probe makes) and exits loudly after 30 attempts — verified over repeated fresh-volume compose cycles.
Added
- Directory folder references that claim this system must now resolve.
A
FOLDER.itemsOBJECT_REFwhosenamespaceislocal(or the server’s configured system id) and whose target is not a versioned object of that EHR refuses the commit with422, naming each unresolvable reference at its tree path — on the/directoryroutes and on folder hierarchies committed through a CONTRIBUTION alike. References into foreign namespaces (andunknown) are stored verbatim, unchecked: openEHR object references are explicitly distributed, so only a reference that claims this system and cannot resolve here is a client defect. No released openEHR text assigns this behaviour in either direction (register AMB-211, reported upstream); reported by an external user as a missing safety net for mistyped composition references.
Changed
- PostgreSQL 18.6 everywhere — the
ferroehr-postgresimage base, the CI service containers, and every documented pin move from 18.4 to 18.6, the latest PG 18 patch (2026-08-13; 18.5 was never released). 18.6 is itself a security release fixing 28 CVEs, several in surface this CDR uses (pgcrypto,pg_trgm,to_char()/regexp buffer overruns, plan-cache invalidation). Operators upgrading an existing cluster in place should note the upstream release notes advise checking (and possibly reindexing)btree_gistindexes — the temporalvo_versionkeys usebtree_gist. - Helm chart
6.0.9— no template changes:appVersionmoves to 3.17.8 and the chart README states the PostgreSQL floor as 18.6 (6.0.8 was cut mid-cycle and never published; the publish lane ships 6.0.9).
Security
-
h2 0.4.16 — RUSTSEC-2026-0258: the HTTP/2 implementation under hyper accepted and queued empty DATA frames without limit (low severity, unbounded-memory class). In-range lock upgrade; no code change.
-
The published
ferroehr-postgresimage is rebuilt clean of its 15 fixable HIGH findings. Nine were Debianutil-linuxpackages (CVE-2026-53615) whose fix sits in trixie-security while the pinned upstream base rebuilds on its own cadence — the image now applies Debian security updates at build time, so a published fix reaches the image at the next rebuild instead of waiting for upstream. The other six are new Go-standard-library advisories ingosu, the privilege-dropping helper the upstreampostgresimage bundles (CVE-2026-33818, CVE-2026-56853, CVE-2026-56858, CVE-2026-56859, CVE-2026-56860, CVE-2026-56862 —encoding/asn1,net/http,html/template,encoding/xml,net/url,crypto/tls): gosu sets uid/gid and execs, opening no socket and parsing no untrusted input, so none of that code is reachable; they join the per-CVE, path-scoped adjudication with published OpenVEX statements insecurity/vex/postgres-gosu.openvex.json, which upstream’s next gosu rebuild deletes. -
The vulnerable quick-xml 0.26 is eliminated from the build, not ignored. pprof’s
flamegraphfeature pinnedinferno ^0.11, whose quick-xml 0.26 carried two DoS advisories (RUSTSEC-2026-0194/0195, fixed upstream in 0.41). The feature is now off and the flamegraph SVG (the/management/flamegraphendpoint and the bench profiler) renders through a directinferno0.12 dependency on quick-xml 0.41 — the two advisory ignores and their VEX statements are deleted, and the only quick-xml in the dependency graph is the fixed line. Every remaining advisory exception now names the upstream event that deletes it; none of the remaining four has a fixed release anywhere to upgrade to (rsa’s Marvin advisory has no patched release, two are unmaintained-crate notices on compile-time proc-macros via latest-release carriers, and the rkyv pin exists only in the lock file with zero resolved nodes).
3.17.7 - 2026-08-15
Added
- Releases archive to Zenodo with a citable DOI. Every release tag now
deposits a snapshot under the concept DOI
10.5281/zenodo.21940279 (the
README badge; it always resolves to the latest archived version — v3.17.6
is 10.5281/zenodo.21940280). The deposit metadata is generated from
CITATION.cffin the flat legacy shape Zenodo’s GitHub integration documents, after the first deposit demonstrably ignored the InvenioRDM-record-shape file and archived raw repository metadata instead; the concept DOI is recorded inCITATION.cfffor citation managers.
Changed
- Helm chart
6.0.7— no template changes: the chart re-releases becauseappVersionmoves to3.17.7and the published6.0.6is immutable by the publish lane’s own refusal-to-overwrite.
Security
- The postgres image’s scan gate is green again. The new Go-stdlib
advisory CVE-2026-39821 (
golang.org/x/net/idnaPunycode via net/http) matchesgosu, the privilege-dropping helper the upstreamdocker-library/postgresbase ships unchanged; it joins the fifteen already-adjudicated gosu entries as a per-CVE, path-scoped exception with an OpenVEXnot_affectedstatement (gosu resolves no hostnames and issues no HTTP requests, so the IDNA path is never entered). The entries go when upstream rebuilds gosu on a fixed Go line.
3.17.6 - 2026-08-15
Security
- The rsa advisory’s published VEX statement was false, and is re-grounded.
It claimed RSA is “reached only through openidconnect” with “no RSA
private-key operation” — the OpenPGP signing path (
pgp → rsa) was missing. The corrected statement rests on the true ground (the defaultsigning.mode = "digest"performs no asymmetric operation; OIDC is public-key verification) and explicitly places an RSA-keyedpgpdeployment outside its scope. The quick-xml statements now describe the current graph (the advisories fire oninferno’s 0.26, writer-only, not the upgradedobject_storepath), and a new CI gate fails any advisory exception whose advisory cargo-deny no longer raises — a resolved advisory cannot keep its exception silently.
Added
- The documented development→stable read-time refusal now exists. Every
accepted commit records whether the released generation’s own reader can
express the body (
vo_version.stable_compatible; the extra in-memory parse runs only under the development profile), and the one seam every stored version body leaves storage through refuses a stamped-incompatible version underspec_profile = "stable"with a409naming the profile, the version and the remedy — never a silent down-conversion. Rows from before the column existed are assessed on the fly at read. AQL takes the same stamp wherever it serves a version body: a whole-object projection is gated at result assembly, so a page reaching a version the released generations cannot express refuses the whole query with that same409— never a row silently elided from aRESULT_SET, which has no per-row diagnostic channel. Leaf projections over the identical rows stay ungated (they serve data values over paths the planning gate already bounded), and under the defaultdevelopmentprofile the assembly gate costs nothing. Our own extension; no openEHR spec governs runtime generation selection. - The conformance pipeline exercises both generation sets in the one
record. The
ferroehrlane composes a third server of the same image over the primary’s database underspec_profile = "stable"(host port 8082), declared as the ixit’ssut_stableinstance, and the catalogue drives the profile boundary end to end: the development server commits and serves the development-only body, the stable server refuses it at the version read and at whole-object AQL (409, register AMB-210), and a released-surface body serves identically under both. The generation set a deployment runs is a new ixit/case declaration (spec_profile/requires.spec_profile), selected on at ISO/IEC 9646 selection time like the signing and terminology postures. - Archive restore is on the wire.
POST /admin/archive/ehrs/restoreandPOST /admin/archive/parties/restore(admin-gated, our own extension — the SM declares no un-archive call) bring archived records back from the cold tier: all-or-nothing over the same existence checks as archiving, idempotent,204with no body. Archiving is no longer one-way for an operator. - The chart’s NetworkPolicies say what they admit, and can refuse the
accident (chart
6.0.6). An emptyingressFromrenders an ingress rule with nofrom— every source admitted — while reading as default-deny. The open posture is now an explicit value (networkPolicy.ingressAllowAllandadminUi.networkPolicy.ingressAllowAll, both shippedtrue): the rendered object’s description, the install notes and the chart README all state it, and setting itfalsewith noingressFromrefuses at render — so “no open ingress” becomes a machine-checked fact where it matters. - A
fhir_outboundreadiness indicator. When the FHIR outbound emitter is enabled,/health/readinessnow carries its broker-delivery liveness — non-required, so a broker outage reportsDEGRADED(the outbox retains messages) and never fails readiness. Previously a PHI-bearing outbound stream could be down with nothing on the health surface saying so. - A boot advisory for RSA OpenPGP signing keys. With
signing.mode = "pgp"and an RSA key, every signature is an RSA private-key operation — the operation the Marvin timing sidechannel (RUSTSEC-2023-0071) concerns, with no fixedrsarelease. Boot now emits a prominent warning naming the advisory and the Ed25519/ECC rotation path (signing.retired_key_pathskeeps history verifying); deliberately not a refusal, because signatures are immutable committed facts an operator must stay able to verify. The signing configuration page carries the guidance.
Changed
- The ad-hoc-query scope cases are split per carrier, and every zero-row
scope assertion now has something to exclude. The bundled bare-EHR case
becomes three one-behaviour cases (grammar acceptance with the released
#0column-naming rule; scope via theehr_idquery parameter; scope via theopenehr-ehr-idrequest header — the only released carriers), and the scoped zero-row cases each first commit a composition into a SECOND EHR, so a green row evidences the scope rather than an empty store. The conformance records regenerate on the new case ids; the EHRbase record is honestly redder where that server ignores the scope. - The
openehr-*crates move to0.0.30, and the published packages are self-consistent.openehr-termships openEHR’s verbatim terminology XML (CC-BY-SA 3.0) but declared onlyMIT AND Apache-2.0— the expression now names all three licenses and the text travels in the package. The publishedopenehr-itspackage carries attribution for the openEHR JSON Schema it ships (pinned commit, upstream path, license). Packaged test code no longer embeds fixture paths the package does not carry, socargo testinside a published.cratecompiles again. Two new guards keep all of it true: a pinned attribution that stops travelling fails, and a packaged source embedding an unpackaged path fails. All eight bump in lockstep. - The documentation site was read end-to-end against the tree and
rewritten. Every page’s substantive claims were verified against the
code, the chart, the workflows and the committed conformance artifacts;
drifted claims were corrected rather than catalogued (among them: the
binary is self-contained but not statically linked, the FHIR surfaces are
R4B, the TLS floor defaults to 1.3-only, rate limiting ships enabled, the
query execution budget ships at 30 s, and a removed
probes.execchart option is gone from the docs too). Long chapters split into sub-pages: cluster hardening (five), the configuration reference (five), release verification, and the admin/messaging API walkthroughs.
Fixed
- The FHIR read façade and outbound emitter respect the spec-profile read
gate. Both read stored bodies around the gated versioning seam, so a
development-only body was mapped to FHIR under the
stableprofile with no refusal; both now go through the gated read, mutation-proven. - The boot banner follows the resolved log format. With the default
log.format = "auto"in a container (stdout not a terminal), logs render as JSON but the multi-line ASCII banner still printed first, handing every log collector unparseable lines on each boot. The banner now keys on the same TTY-aware resolution the log layers use:json, andautooff a terminal, are parseable JSON from the first byte. - Partial feature builds of the server compile again. The FHIR outbound
emitter’s wiring was gated on the
eventscargo feature while its module exists only underfhir: a--features eventsbuild (nofhir) failed to compile, and a--features fhirbuild never started the emitter. Both gates now sit onfhir, which implieseventsat every level. - The Helm chart is
6.0.5. Reading the site against the tree corrected chart comments and operator-facing messages (the stale distroless base name, the secret-routing key list, the config-in-Secret cause in NOTES.txt, two book citations that moved in the hardening split, and the egress refusal’s pointer); the packaged bytes changed, so the version moves. - Wire and OpenAPI text corrected while verifying the site. The
406answer for an unrecognized XMLversionparameter now namesversion=2as the default (it saidversion=1); theexpand_multimediaparameter description no longer claims the served body is byte-identical to the committed one (expansion restoresdatawhile keeping the offload-addeduri/integrity fields); andDELETE /definition/artefact/adl2/{id}documents its real409still-referenced refusal. - The Helm chart is
6.0.4. The v3.17.5 cut moved the chart’sappVersionto 3.17.5 without moving the chart’s own version, and 6.0.3 was already published — a published chart version is immutable, so the publish lane refused rather than replacing it. Install with--version 6.0.4to get the 3.17.5 application image by default.
3.17.5 - 2026-08-13
Security
- The
ferroehr-postgresimage moves to a rebuilt PostgreSQL 18.4 base. The upstreampostgres:18.4image was rebuilt with current Debian packages, and this pulls that rebuild in. Nothing about FerroEHR changes: the schema, the extensions and the entrypoint are untouched.
3.17.4 - 2026-08-13
Added
-
A published threat model. A new Threat model chapter names the actors, the protected assets and eight trust boundaries, and for each boundary states the control that holds and the residual risk that survives it — plus an explicit list of what FerroEHR does not defend against, so silence is never read as coverage. It exists because the parts of this system that protect patient data are precisely the parts no openEHR specification governs: the five-stage authorization order, multi-tenancy isolation, the audit trail and the archive tier are all this project’s own design, and until now every deployer had to reconstruct them from configuration prose.
-
Governance, maintainer and support documents.
GOVERNANCE.md(how decisions are made and how to become a maintainer),MAINTAINERS.md(the roster, every publishing identity, and what happens if the holder is unavailable),SUPPORT.md(question versus defect versus vulnerability), and aCODEOWNERSfile routing review per area. All four state the current single-maintainer reality plainly rather than describing a process that does not exist. -
A published support and end-of-life policy.
SECURITY.mdnow states which versions receive security fixes (only the newest), when a version stops receiving them (the moment a newer release exists), and how a fix reaches you — covering the server, the Helm chart and the published crates, which follow separate version lines. The same policy is reachable from the Operations chapter’s upgrade guidance, where an operator planning change control actually looks. -
Machine-readable licensing (REUSE 3.3). A
LICENSES/directory carries the full text of every licence any file in this tree is offered under, named by SPDX identifier, and a rootREUSE.tomldeclares by glob which files are offered under which — so licensing now survives a file being copied out of the repository, which per-tree provenance files could not do. No vendored file was modified. Two positions are represented rather than flattened: the MPL 1.1 election under a tri-licensed corpus, and one upstream file whose own header contradicts its repository’s licence.reuse lintand a declarations-versus-documentation check both gate the merge. -
A published VEX document for the Rust dependency advisories. Every advisory the
cargo denygate accepts now carries an OpenVEX statement with a controlled-vocabulary justification and a checkable impact statement, atsecurity/vex/rust-advisories.openvex.json, so a downstream scanner ingests the argument instead of reporting unexplained findings. It also covers the advisory that only aCargo.lock-reading scanner reports for a crate this project’s feature set never compiles. The document is generated fromdeny.tomljoined with the published reasoning, and CI fails if the two disagree in either direction — an advisory cannot be accepted without its justification reaching you. -
About 190 openEHR spec functions are now callable on the generated types. The Reference Model, Archetype Model, BASE and LANG classes declare functions the specifications define —
ITEM_LIST.ith_item,DV_QUANTIFIED.magnitude,ARCHETYPE_HRIDdecomposition,Iso8601_timezone’s eight accessors, the AOM2 primitive-constraint validity checks, and many more. They existed only as declarations; each one now has an implementation written from the governing spec section, with that citation in its documentation and a test asserting the published post-condition. Functions the released text leaves undefined, or that need state the class does not carry, are deliberately still absent and recorded as such rather than guessed at. -
Time_Definitions’s eleven validity functions are now public onopenehr-base—valid_year,valid_month,valid_day,valid_hour,valid_minute,valid_second,valid_fractional_second,days_in_month, and the fourvalid_iso8601_*string predicates. They had no realization anywhere despite being declared by the spec.
Changed
-
Every first-party Rust source file now states its licensing inside itself. All 2469 tracked
.rsfiles carry anSPDX-FileCopyrightTextand anSPDX-License-Identifierheader: the six published spec crates stateMIT AND Apache-2.0— the position their manifests already declared — and everything else statesMIT. Licensing was previously declared only by glob inREUSE.toml, which is complete but does not travel with a file that is copied out, and file-level redistribution is the expected case for a project whose premise is that people build on it and ship it. The 1471 generated files receive their header from the code generator, not from a hand edit, and a new CI check fails the build if any first-party Rust file loses its header or states a licence other than the one declared for its path. Vendored trees are untouched and stay glob-declared, as they must be. The eight publishedopenehr-*crates are bumped to0.0.26in lockstep, since their packaged sources changed. -
BREAKING — enumeration-constrained OPT and AOM2 fields are now typed enums, not strings.
EXPR_OPERATOR.operatorbecomesOperatorKind, andC_DATE/C_DATE_TIME/C_TIME.timezone_validitybecomeOption<ValidityKind>. The XML schemas constrain these fields to a fixed set of values, and carrying them as free text meant an out-of-range value was indistinguishable from a valid one until something downstream misread it; they are now refused when read. The wire form is unchanged — the same characters go out, and every operational template in the corpus still round-trips byte-for-byte — so only code that reads these fields as strings is affected. -
A Web Template’s
tz_validityno longer silently disappears when the template is malformed. It was parsed with a fallback that turned any unreadable value into “no timezone constraint at all”, which is a different and weaker statement than the template made. -
An
ehr:URI must name theEHRattribute it addresses. The server accepted a short form that put the versioned-object id straight after the EHR id (ehr:/<ehr_id>/<uid>::SYSTEM::1); no released spec defines it. BASEmaster11-pathsenumerates the locator’s values — they “come from attribute names of the classEHR… namelycompositions,directoryetc.” — and every example carries one. The short form is now refused; writeehr:/<ehr_id>/compositions/<uid>::SYSTEM::1instead. This affects anyDV_EHR_URIvalue stored in aLINKor elsewhere that used the short form. -
A refused log-filter swap now answers
400or503, not always400.POST/DELETE /management/loggerscarried one flattened error string, so a reload layer that had gone away was reported as if the caller had written bad directives. The two faults are now distinct types: unparseable directives stay400, a subscriber whose reload handle is gone is503. -
Errors carry their cause across the remaining request-path seams. Six sites in the platform library — Web Template building, FHIR terminology decoding, the log-filter seam, and admin dump/load payload reading — flattened their cause into a message, so nothing downstream could match on it. Each now carries a typed source (RFC 0201). The sites that remain are structural and say so at the site:
prometheus::Errorhas no source-bearing variant, and the console’s error types must be serializable (server-fn boundary) orClone + Eq(reactive-signal storage), which no underlying error is. -
The Rust toolchain moves to 1.97.1. It carries an LLVM miscompilation fix whose underlying bug has been present since at least 1.87 — the pinned 1.96.1 sat inside that window. The MSRV stays 1.96: nothing here uses a 1.97 feature, and the published crates are the only artifacts whose consumers would feel a bump.
-
One ISO-8601 grammar, not two.
openehr-rmvalidated dates, times, date-times and durations with its own hand-written reader while depending on theopenehr-baseone that owns them. The two drifted twice and both drifts shipped, each letting a value pass validation and then behave as invalid. The RM side now calls the spec functions; 341 lines of duplicate grammar are gone. -
ITEM_TABLE’s twelve accessors on the published spec crates —row_count,column_count,row_names,column_names,ith_row,named_row,has_row_with_name,has_column_with_name,has_row_with_key,row_with_key,element_at_cell_ijandas_hierarchy, which transposes the stored row-per-CLUSTER form into the column CLUSTERs the spec asks for. -
Every
DV_*arithmetic and accessor function the openEHR RM defines is now implemented on the published spec crates — the whole quantity and date/time family, not a subset:DV_QUANTITY,DV_COUNT,DV_PROPORTIONandDV_DURATIONarithmetic;DV_DATE,DV_TIMEandDV_DATE_TIMEdisplacement and difference; theDV_AMOUNTandDV_ABSOLUTE_QUANTITYdispatchers over their subtypes; andDV_PERIODIC_TIME_SPECIFICATION’speriod,calendar_alignment,event_alignmentandinstitution_specified, parsed from the HL7 PIVL/EIVL syntax the spec publishes. -
Accuracy now propagates through arithmetic as the RM specifies it.
DV_AMOUNTdefines the rule — accuracies sum for both addition and subtraction, an unrecorded accuracy on either side makes the result’s unknown, and a mixed percent/absolute pair is expressed in the form of the larger operand — and every descendant follows it.DV_ABSOLUTE_QUANTITY’s duration-valued variant is applied to the date/time types. A combination no valid value can carry (a percentage past 100) refuses the operation rather than returning a value that fails its own class invariant. -
A decimal factor now means the decimal its author wrote.
DV_COUNTandDV_PROPORTIONarithmetic reads aRealfactor as the number it denotes rather than as the binary approximation carrying it, socount * 0.1is a whole count and1/3equals0.1/0.3. The previous reading refused both. -
DV_COUNTarithmetic andDV_MULTIMEDIA/COMPOSITIONpredicates on the published spec crates:add,subtract,multiply,is_inline,is_external,is_compressed,has_integrity_check,is_persistent. Overflow and non-whole products are refused rather than wrapped or rounded — openEHR defines neither, and a wrapped count is a silently wrong clinical value. -
Releases are archived on Zenodo with a citable DOI.
.zenodo.jsonis generated fromCITATION.cffso the two cannot disagree — necessary because Zenodo ignoresCITATION.cffentirely whenever a.zenodo.jsonis present, and a deposit’s metadata is immutable once its DOI exists. It adds what the citation file cannot express: which openEHR specifications a release is derived from, and where the published crates live. -
A fuzz target for the identifier readers.
OBJECT_VERSION_IDand its siblings are parsed straight from the{version_uid}URL path parameter — before any body is read, any content type negotiated, or any authorization runs — and were previously unfuzzed. The harness also checks the composite’s own contract: an identifier recomposed from the three parts its reader just produced must equal itself, which catches a mis-sliced separator that still returnsOk. -
Every optional integration now documents how to enable it on Kubernetes. Nine chapters — change events, FHIR connectors, terminology servers, Subject Proxy, S3 multimedia, the admin console, observability, version signing and multi-tenancy — described only the environment-variable and Compose paths, so an operator deploying with the chart had no documented way to switch any of them on, even though the chart’s
configpassthrough has always reached every key. Each now carries a values snippet, the prerequisites stated before the reader hits a boot failure (a bucket that must exist, a claim the identity provider must issue, an egress rule an exporter needs), and how to turn it off again. -
authz.rbac.ehr_access_default— object-level default-deny, as one setting. An EHR that carries noACCESS_CONTROL_SETTINGSwas reachable by any caller the coarse layers admitted, and the only way to change that was to author a settings object per EHR, through a CONTRIBUTION commit per record — so the safer posture was reachable only by the most laborious path. Setting this torestrictedmakes a setting-less EHR reachable only byauthz.rbac.admin_role. The default staysopen, because changing it changes who can read existing records; explicit per-EHR settings win over it in both directions. The admin carve-out is deliberate — a plain deny would leave such a record unreachable by the operator who would author the settings that fix it. -
Every pod the Helm chart deploys now runs in its own user namespace (
hostUsers: false, chart6.0.0). Container UIDs are mapped onto an unprivileged host range, so a container escape arrives as a host user that owns nothing — verified on a live v1.36.1 node, where the pod’s/proc/self/uid_mapreads0 838860800 65536while the process still sees uid 65532. This is the reason the chart’s Kubernetes floor moves to 1.36 (see Changed). SethostUsers: trueto opt out on nodes whose runtime cannot map UIDs; there, the pod refuses to start rather than downgrading silently. -
The chart spreads replicas across nodes by default. A soft
maxSkew: 1constraint overkubernetes.io/hostnamemeans two replicas prefer two nodes, so one node failure is no longer a total outage. It isScheduleAnyway, so a single-node cluster still schedules. SupplyingtopologySpreadConstraintsreplaces it wholesale. -
supplementalGroupsPolicy: Stricton every pod: the process gets only the groups the manifest names, so a group baked into an image cannot widen file access. -
The migration Job no longer counts a drain as a migration failure. A
podFailurePolicyignores pod failures caused by disruption, so ordinary cluster maintenance during a release cannot exhaustbackoffLimitand fail the upgrade with no migration error in any log. -
New chart values:
service.trafficDistribution(zone-local routing, off by default),autoscaling.behavior(scaling policies passed through),adminUi.terminationGracePeriodSecondsandadminUi.preStopSleepSeconds. The console also gains a startup probe, apreStoppause and the server’s full security posture. -
The Helm chart can deploy the admin console.
adminUi.enabledrenders the console as its own Deployment/Service/ServiceAccount, with an optional Ingress and a NetworkPolicy that confines its egress to the CDR and DNS — the console is a REST client of the CDR by mandate, so that is now enforced rather than documented. Off by default, and off renders nothing. -
The Helm chart validates your values file (
values.schema.json, chart5.0.0, unchanged in5.0.1).helm install,upgrade,lintandtemplatenow refuse a values file that misspells one of the chart’s own keys, gets a type wrong, or names a value outside the permitted set, instead of rendering and ignoring it — a breaking chart change, which is why the chart’s major version moves. Theconfig:tree stays deliberately open: that vocabulary belongs to the server and is validated by the binary at boot, so copying it into the chart would fork it. Artifact Hub renders the schema on the chart’s listing. (#2184) -
The published Helm chart is signed with a keyless cosign signature, from chart
5.0.1onward, alongside the SLSA build provenance attestation it already carried — the attestation says what the chart was built from, the signature says who signed the artifact you pulled. No key material exists anywhere; verification requires an identity and an issuer, and both are in the installation guide.helm install --verifystill does not apply: the chart ships no PGP.prov. Chart5.0.0is published but carries neither signature nor attestation — its publishing run pushed the chart and then failed at the signing step, and a published chart version is never replaced. It installs and runs normally; pin5.0.1or newer if you verify what you deploy. (#2183, #2184) -
The PGP signing key can be rotated without losing history. Signing now uses a signing-capable subkey selected by its OpenPGP key flags, which is the rotation mechanism the standard provides: issue a new subkey, the certificate retains the old one, and every previously-signed version keeps verifying with no configuration change. For a certificate that is genuinely replaced — a compromised key, an organisational change —
signing.retired_key_pathsholds the retired public keys, verify-only, so a retired key can never sign again. Verification also no longer ignores subkeys, which it did before. -
deploy/helm/ci/boot-check.sh— runs a real ferroehr image against every values overlay the chart ships, replaying the complete delivery surface: the renderedferroehr.toml, everyconfig.filesentry, every file-borne secret at its real value, and the environment the Deployment declares (includingvalueFrom.secretKeyRef). PointFERROEHR_IMAGEat the tag you intend to deploy and pass your own values file to check it before installing. (#2159) -
CI lane
chart-boot— boots every committed values overlay against an image packaged from the branch under test, on every pull request that touches the chart or the configuration vocabulary the overlays are written against. Previously the equivalent check ran only on a release tag, which is after the cut has already failed. (#2159) -
The server can run with no DDL rights at all.
db.migrate = "verify"makes it issue no schema statements: at boot it checks that the database already carries exactly this build’s migrations and refuses to start otherwise, naming the schema and what is wrong with it (never migrated, behind this build, ahead of it, a failed migration, or a migration applied from different source text). The runtime DSN can then authenticate asferroehr_appalone, so an application-level SQL flaw reaches rows and never the schema.applyremains the default, so an empty configuration still boots against an empty database. (#2049) -
ferroehr db migrateandferroehr db verify— the out-of-band schema step and its read-only check, for running migrations under aferroehr_migratorDSN separately from the serving process. (#2049) -
A migration Job in the Helm chart (
migrations.job.enabled): apre-install,pre-upgradehook Job that Helm waits on, so a failed migration fails the release instead of rolling pods against a schema that was never applied. It authenticates from its own Secret — deliberately a different credential fromdatabase.existingSecret— and rendering is refused if that Secret is not named. The install NOTES report the resulting posture, including the case where the Job is enabled butconfig.db.migrateis stillapply. (#2049) -
Tamper evidence on the audit trail. Every record in the local Audit Record Repository is linked into a SHA-256 hash chain maintained inside PostgreSQL, committing to its predecessor and to its own content, so the protection covers every writer rather than only the server’s own code. The table now refuses every rewrite path but the per-sink forwarding stamp — a content
UPDATE, aDELETEand aTRUNCATEare all rejected — and retention pruning goes through the one sanctioned deletion path, which records which positions it removed so reaping is distinguishable from tampering.SELECT * FROM audit.verify_audit_chain()reports one row per damaged record naming what is wrong with it, and nothing at all when the trail is intact; it is also reachable in-process asAuditStore::verify_chain. Detection, not prevention: the chain is unkeyed, so the controls for a party with unrestricted write access remain the least-privilege role and the off-box syslog/ATX:FHIR sinks. (#2059) -
openehr-query: a spanned lexing entry point,lexer::lex_spanned, returning each token together with the byte range of the source it was lexed from (lexer::SpannedTokens, with abyte_spanmapping from token indices to a source range), plusparser::parse_spannedover that stream.lexer::lexandparser::parseare unchanged (#2145). -
Six more OCI annotation keys on every image:
authors,vendor,documentation(the docs site, which no image pointed at),url, andbase.name/base.digestnaming the exact pinned base image each one is built on — so “what is this built from” is answerable from the image rather than from the Dockerfile. Every image also reports its own title and description now, where all three previously inherited the repository’s. -
The Helm chart can deploy by digest.
image.digestrenders the pod’s image asrepository@sha256:…and takes precedence overimage.tag. The hardening chapter had been telling operators to deploy by digest “so what you verified is what runs” — and the chart had no such key and no template that read one, so the instruction silently did nothing. A digest is what a build provenance attestation is made over, so this is what makes verification bind to the image actually running. The value is accepted with or without thesha256:prefix. -
The OpenSSF Best Practices badge at the passing level, alongside the Scorecard badge in the README. Every criterion is answered from something a reader can check — the vulnerability process in
SECURITY.md, the release signing and provenance in the security chapter, the test and analysis gates in CI — rather than self-asserted. -
Fuzzing for every parser that reads attacker-controlled bytes off the wire:
cargo-fuzz(libFuzzer) harnesses for the canonical-JSON reader, the canonical-XML reader, the AQL lexer/parser, the FLAT/STRUCTURED simplified formats, the ADL source parser and the OPT 1.4 template reader, each a pure parse of a byte slice, seeded from the openEHR corpora already committed in the repository. A bounded campaign per target runs on a nightly schedule with its corpus persisted between runs; long campaigns are a documented local command (fuzz/README.md). The harnesses live in their own workspace, so no ordinary build, clippy or test run is affected. -
The cluster-hardening chapter now covers breach containment, logging, managed control planes and the supply chain. What scaling to zero does and does not stop (it halts clinical access immediately — a clinical-safety decision to make before an incident, not during one — but does not undo an append-only commit, does not stop an attacker holding the DSN, and does not truncate the audit trail). A rotation procedure for every credential, with the restart requirement stated, because configuration is read at boot and Kubernetes propagating a Secret into a volume does not make a running process re-read it. A checkable supply-chain map: each control against the artifact that satisfies it and the command you can run to verify it yourself, including the two gaps that remain. And an honest account of what becomes your cloud provider’s on a managed control plane, with the instruction to test NetworkPolicy enforcement rather than read the provider’s documentation and conclude.
-
The application log and the ATNA audit trail are documented as two streams that must not be treated alike. The application log is diagnostics on stdout and may be sampled or dropped; the audit trail is the accountability record — who accessed which patient’s data — travelling by a different path, with its own store, its own ITI-81 retrieval endpoint and its own retention. A collector configured to drop a noisy stream under volume is a reasonable policy for the first and a compliance failure for the second, and the two are separated precisely so that one can be lossy.
-
Rotating a PGP version-signing key is documented as the operation it actually is. In the default
digestmode there is no key and nothing to rotate. Inpgpmode, replacing the key makes every previously-signed version fail verification: the stored signature carries no key identifier, verification checks against the single currently-configured key, and with the defaultverify_on_read: strictthat is served as a 5xx on reading historical data. The signatures cannot be re-issued, because a version’s signature is an immutable committed fact. The three real options — treat the key as long-lived, move toverify_on_read: warnacross a rotation as a recorded reduction in guarantee, or usedigestmode — are documented with their trade-offs, along with the fact that no keyring or multi-key verification exists today. -
A default-deny egress policy you can actually write correctly.
networkPolicy.egress.enabledrefuses all outbound traffic except what you list; DNS is always included, and the database is now a first-classnetworkPolicy.egress.databasekey rather than something to remember. Enabling egress with no database destination is refused at render time, because that mistake presents as a database fault — readiness reports the DB down, the log shows a connect timeout, and nothing mentions the network policy. The cluster-hardening chapter carries the full destination table derived from the configuration tree: every outbound destination the server can make, which config key turns it on, and the port it needs, so a policy can be assembled from what you have enabled rather than guessed from what a default install happens to use.Two failure modes are documented beside it because neither announces itself. A blocked OTLP collector drops spans without failing any request, so an over-tight policy produces a server that is healthy by every check and has silently stopped being observable. And tightening egress under a running pod appears to work when it has not: a NetworkPolicy is enforced on new connections, so a pod whose connection pool is already established keeps serving after you remove its database rule and fails at the next restart — measured, along with the recovery, on a live cluster.
-
The published container images are re-scanned every week, not only when they are built. CI scanned an image at the moment it was built, which catches what was known then and nothing after — so a CVE published the week after a release applied to the image you were running and nothing looked again. A scheduled lane now scans all three published images at the tag you pull, with the same severity floor and the same adjudicated exceptions, and with the project’s OpenVEX documents applied so an accepted finding keeps its argument attached. A finding both opens a tracking issue and fails the run, because a red scheduled run nobody watches is not a control. At the time of writing all three published images carry zero fixable HIGH/CRITICAL findings.
-
A copyable admission policy for verifying image provenance, for Kyverno and for sigstore-policy-controller, with the exact certificate identity and OIDC issuer our publishing lanes use — the deployment-time half of the signing work. It is documented rather than shipped in the chart, because an admission policy is cluster-scoped and governs workloads the chart knows nothing about, so
helm uninstallmust not be able to remove it. The chapter is explicit that the policies are written from the workflow definitions and not yet verified against a live attestation, and gives the command to reconcile them once the first attested release exists. -
A cluster-hardening chapter, split by who can actually apply each control. The OWASP Kubernetes Security Cheat Sheet mixes controls a workload chart owns (pod security context, resource bounds, NetworkPolicy, ServiceAccount, secret consumption) with controls only a cluster operator can reach (node patching, etcd encryption, kubelet authentication, admission control, the API server’s own access model). The new chapter carries an ownership map naming, per control, who applies it and what happens if nobody does — including the ones no application-level hardening can compensate for, since an anonymous-auth kubelet or a readable etcd bypasses every control this server ships. Claims about the running deployment come from
kubectl,crictland/procon a live cluster, not from readingvalues.yaml.Two facts the chart had been conflating are now stated separately:
kubeVersion: ">=1.25.0-0"is a compatibility floor (the newest API the chart uses is HPAautoscaling/v2, GA in 1.23, so it genuinely runs there), while the supported platform is upstream’s three most recent minor releases — a window that moves three times a year, which is why it lives in the book rather than in a constraint that would refuse to install on a cluster the chart works on. The chapter also records a decision: this project does not watch Kubernetes platform advisories, because we run no cluster and could only ever close such an issue as the operator’s —kubernetes-announceand the official CVE feed are named as the operator’s duty instead, beside what we do watch. -
The chart’s rollout strategy is explicit (
strategyin values), rather than inherited from the API server’s25%/25%defaults.maxUnavailable: 0guarantees served capacity never drops during an upgrade: a new pod must pass readiness before an old one is removed. At the default two replicas this is exactly what Kubernetes already computed, so nothing changes for a default install — it only bites above two replicas, in the safer direction. The trade-off is documented rather than hidden: with no spare scheduling capacity the rollout stalls visibly instead of proceeding at reduced capacity. -
The Helm chart is published, to GHCR as an OCI artifact. Installing no longer means cloning the repository:
helm install ferroehr oci://ghcr.io/rubentalstra/charts/ferroehr --version 4.0.0 \ --set database.existingSecret=ferroehr-db --set image.tag=3.17.3OCI only — there is no HTTP chart repository, no
index.yamland no chart branch, so a chart version exists in exactly one place and the chart inherits the authentication, retention and access control of the images it deploys. The cost is stated rather than hidden:helm repo adddoes not apply to this chart, so a client older than Helm 3.8 cannot install it. The chart version and the image tag are separate SemVer lines —--versionpins the templates and values schema,--set image.tag=pins the server binary — and the documentation now explains pinning both, which is the thing that is easy to get wrong.The chart carries signed keyless Sigstore provenance, verified the same way as the images:
gh attestation verify oci://ghcr.io/rubentalstra/charts/ferroehr:4.0.0 -R rubentalstra/FerroEHR. It deliberately ships no PGP.prov, sohelm install --verifydoes not apply: a.provneeds a long-lived private key in CI, which is exactly what this project’s publishing lanes are built to avoid.Two properties of the lane are worth knowing because a registry does not provide them. A published chart version is never overwritten — an OCI tag is mutable and
helm pushreplaces one silently, so the lane refuses to push a version that already exists. And a chart that cannot deploy its own default image is not published: the lane renders the chart’s default configuration and runs theappVersionimage’s ownconfig checkagainst it, becausehelm installwith noimage.tagpinsappVersionand a configuration key that image does not know is a crash-loop, not a warning.The chart is listed on Artifact Hub with category, links, maintainers, screenshots, and all three published images with their platforms so the hub’s security report covers what the project ships. Its per-release changelog is derived from
CHANGELOG.mdat package time rather than maintained a second time, since Artifact Hub’s change kinds are Keep a Changelog’s subsections. -
Bounds on the resources a single request can consume.
query.max_result_rowscaps an AQL query that neither the query text nor the request bounds (previously such a query returned every matching row, making one request an unbounded allocation);query.timeout_msis now on by default anddb.statement_timeout_msbacks it at the database, because the HTTP request timeout answers the client without cancelling the statement; and[server.connection]bounds the connection itself — an HTTP/1 header-read timeout for slow-header attacks, plus HTTP/2 stream-concurrency and keep-alive bounds, since every other limit engages only after a request head is parsed. -
[server.tls].min_version— the TLS protocol floor, defaulting to 1.3 only, with"1.2"available as a named compatibility widening. Previously both were enabled unconditionally. TLS 1.1 and 1.0 are not selectable at all. -
Per-caller request-rate limiting (
[server.rate_limit], on by default): a caller past its rate is refused429 Too Many RequestswithRetry-After. Two tiers — an address tier outside authentication, so a flood is refused before the server verifies a signature per request, and a principal tier inside it keyed on the authenticated subject, because a hospital behind one NAT is a single address and address-keying a clinical API would throttle a whole site for one busy client. The defaults sit above this implementation’s own measured whole-server ceiling, so the limiter cannot refuse a caller the server could still have served — that boundary belongs to the existingmax_in_flightshed, which answers503. Three statuses, three meanings:503the server is full,429you are asking too fast,413your payload is too big. Turn it off before benchmarking, or the benchmark measures the limiter. -
Configurable request-body limits (
[server.limits]), replacing a fixed internal 16 MiB ceiling: a clinical tier plus a bulk tier for the routes that accept bulk by design (operational-template upload,/message/import,/message/tdd). Over-limit is413. The defaults are sized against measured payloads — the largest operational template in the vendored CKM corpus is 5.4 MB — and a deployment whose compositions embed largeDV_MULTIMEDIAdata raisesbody_bytesdeliberately. -
Response security headers on every response, transport-layer ones included (
Cache-Control: no-store,X-Content-Type-Options,Referrer-Policy,Cross-Origin-Resource-Policy,X-Frame-Options, and a minimalContent-Security-Policy).Strict-Transport-Securityis deliberately not sent: RFC 6797 §7.2 requires a browser to ignore it over plain HTTP, which is how this server is commonly reached behind a terminating proxy, so the TLS edge owns it. The documentation site carries its policy as a<meta>element, since GitHub Pages sets no headers. -
Signed build provenance and SBOM attestations on every artifact published from this release onward. The images already carried BuildKit’s SLSA provenance and an SPDX SBOM but unsigned — readable, not verifiable; they are now signed through Sigstore, and the release binaries gained both from nothing. Verify with
gh attestation verify oci://ghcr.io/rubentalstra/ferroehr:TAG -R rubentalstra/FerroEHR. Signing landed in this cycle, so3.17.3and earlier tags carry no attestation and that command reports none for them — nothing to verify rather than a verification failure. Each release also attaches a CycloneDX SBOM of the Rust dependency graph withpkg:cargo/…purls, licences, checksums and the direct-versus-transitive dependency edges. The isolation-based SLSA build levels are deliberately not claimed, since the provenance is generated in the job that builds. -
Container scanning in CI: image vulnerability scanning, Dockerfile lint, and secret plus misconfiguration scanning over the tree. Adjudicated exceptions carry their reasoning — for an unreachable finding in an inherited upstream layer, as a published OpenVEX document under
security/vex/. -
Boot warnings for two deliberate weakenings that are easy to leave switched on:
cors_permissive, and authentication enabled on a plaintext listener bound to a routable address. -
Every import from
openehr-itsnow names the module that defines it. The crate’s nine convenience re-exports are gone, so consumers writeopt14::types::CObjectandxml::runtime::ToXmlrather than borrowing those names from a parent module. Longer at the use site, and it says where a type comes from. Affects anyone depending on the publishedopenehr-itscrate; no behaviour, wire format or serialization changes with it. -
The Keycloak quickstart now demonstrates the authorization it documents. It shipped one user holding every role with RBAC switched off, so every authenticated caller could use every surface and no refusal was possible. The demo realm now carries four identities — an admin, a clinician, a read-only auditor and a user with no roles at all — and the overlay enables RBAC, so a reader can watch a valid credential be refused
403instead of taking it on trust. The existingferroehr/ferroehrlogin is unchanged. -
probes.execis removed (breaking, for anyone who set it). It ranferroehr healthcheckfor liveness, readiness and startup, passed no--url, and that flag defaults to the openEHR status document rather than a health endpoint — so readiness never touched the database and a pod with a dead database reported Ready and took clinical traffic. The httpGet probes that were already the default are correct and are now the only path:/health/livenessfor liveness and startup,/health/readinessfor readiness. -
The chart now requires Kubernetes 1.36 or newer (
kubeVersion: ">=1.36.0-0", breaking; chart6.0.0). It is a compatibility floor: 1.36 is the release where the newest field the chart renders (hostUsers) became stable, which is what lets every field render unconditionally with no version gates left.Chart.yamlcarries the field-to-KEP table that is its evidence. -
The PodDisruptionBudget sets
unhealthyPodEvictionPolicy: AlwaysAllow, the documented recommendation. With the previous default a node drain waited for pods to become healthy that were unhealthy because of the drain, so it never completed. It and thepreStopsleep action are now rendered unconditionally rather than version-gated, since both are stable below the new floor. -
The chart’s render gate covers the admin console, as a fourth overlay with its own golden render — the per-container restricted-profile check exists precisely because a second workload is where a posture gets lost, so it has to see one. Two assertions ride along: pod isolation must be identical across every workload of a release, and a multi-replica Deployment must carry a spread or affinity rule.
-
The chart’s pinned Helm version moves to 4.2.3 (current release), with the golden renders regenerated on it.
-
Metric names change:
/management/prometheusnow derives its suffixes. The server had two metrics systems and now has one — OpenTelemetry, feeding both the Prometheus pull surface and the OTLP push from a single meter provider, so a metric can no longer exist on one surface and not the other. Counters are unaffected on the wire (compositions_committed_totaland friends render exactly as before). Histograms and gauges lose their hand-written_seconds/_bytessuffix from the instrument name and gain it from the declared unit instead — the rendered name is the same in almost every case, but check any dashboard that pinned a name literally. Bucket boundaries are unchanged, deliberately and test-pinned: a re-bucketed latency histogram would silently invalidate every alert built on it. -
telemetry.metrics_pushnow exports every family the Prometheus surface exposes. It previously carried four of ten, missing the build identity, the request-duration histogram and the ATNA audit counters, and the boot warning added earlier in this cycle to disclose that is removed as no longer true. -
deploy/helm/validate.shnow ends every run by stating the properties it does not check — that the server accepts the render, that the selected image understands its keys, that a pod starts and serves — each with the command that does check it. A green render was being read as a working deployment. (#2159) -
The Kubernetes, Compose, Operations, Audit, Security, From-source and configuration-reference pages now state both migration postures plainly — what the quickstart does and why, and what a least-privilege deployment does instead — and document the audit trail’s tamper evidence and its verification query. The
[db]reference table gainedmigrateand the previously undocumentedstatement_timeout_ms. -
Bearer-token refusals are now classified: the authentication layer records why a token was rejected — expired, not yet valid, bad signature, wrong issuer, wrong audience, missing claim, malformed, unusable key material and twelve more — instead of collapsing every one into a single opaque string. Each refusal reaches the log as a stable
reasonfield alongside the authentication mechanism, so a burst of expired tokens (clock skew, or a token lifetime that is too short) is countable and no longer hides a burst of bad signatures (someone presenting tokens this server was never meant to accept). The underlyingjsonwebtokenerror is carried as the error’s source, so the cause chain can be walked instead of grepped.No wire change: RFC 6750 §3.1 assigns one
invalid_tokencode to a token that “is expired, revoked, malformed, or invalid for other reasons”, so every refusal keeps answering401with the identicalWWW-Authenticatechallenge it did before — now asserted for every refusal kind. -
openehr-query: a syntax failure now locates itself in the source.parser::SyntaxFaultcarriesbytes: Option<Range<usize>>— the byte range of the offending text — alongside the existing token indices, so a caller can underline the offending characters or derive a line and column instead of mapping a token index back through the stream itself.parser::parse_strfills it in on every failure;parser::parseover a bare token slice reportsNone, because a bare slice carries no source positions. The renderedDisplay— and therefore the body of an AQL400— is unchanged (#2145). -
The AQL parser reports a typed error instead of a string.
openehr_query::parser::parse_strandparsenow returnParseError, which separates a lexing refusal — carrying the lexer’s own error as a realsource(), so the cause chain is walkable — from a grammar refusal, which carries every position the parser reported along with the token found there. A caller can finally branch on which pass refused without matching a substring. The message text is unchanged, so the400body for an invalid query reads exactly as before and no wire behaviour moves. The published crate also no longer exposeschumsky’s error type in its public API. -
The Kubernetes hardening chapter’s image-provenance admission policies now carry the certificate identity the publishing lanes actually issue — read off a published image rather than inferred from the workflow files — and both are corrected to the form that can read a GitHub Artifact Attestation at all. Kyverno needs
type: SigstoreBundlewith anattestations:block (the field defaults toCosign, which looks for a detached signature these images do not carry and so refuses every one of them), andsigstore-policy-controllerneedssignatureFormat: bundlewith anattestations:entry. Minimum versions are stated,failureActionmoves off the deprecated spec-level field, and each policy names the ref set it admits: as published they accept released images only and deliberately refuse thedeveloptag, with the one-word change a staging cluster needs spelled out. -
Provenance verification commands across the security and Kubernetes chapters now point at artifacts that actually answer.
gh attestation verifyon the three:developimages succeeds today, and--signer-workflowis shown as the way to require the specific publishing lane rather than any workflow in the repository. The release-tag, release-binary and chart forms are marked as starting at the3.17.4cut instead of being demonstrated against a tag that returnsHTTP 404. -
Release binaries reach SLSA v1.0 Build Level 3, and carry provenance a scanner and an offline verifier can both read. Build L3’s distinguishing requirement is that signing material must be out of reach of the build steps — and every step of a GitHub Actions job shares one runner VM, so attesting inside the building job cannot satisfy it. The release build now happens inside a reusable workflow: it runs on its own VM, a caller passes declared inputs and cannot add steps, and the caller job has no steps at all. You can now require that signer rather than trusting any workflow in the repository:
gh attestation verify <tarball> -R rubentalstra/FerroEHR --signer-workflow rubentalstra/FerroEHR/.github/workflows/release-build.yml. Each release also carries its provenance as<tarball>.intoto.jsonlbeside the Sigstore bundles. The container images and the Helm chart remain Build L2 and now say so where they are built, rather than leaving the level to be assumed. -
A direct push to
developis refused. The branch ruleset already blocked deletion and force-pushes and required signed commits, but not a pull request — so the discipline every change has followed was convention rather than enforcement, and themainruleset had the rule all along. Requiring zero approvals, so it changes nothing about how a maintainer merges their own work. -
The conformance baseline moves to 1014 of 1014, and three new cases pin behaviour that had none. The run that produced it went red first, with five cases failing because the two shared-definition deletes now require the admin role. Every red row was attributed before anything was touched, and the attribution landed on the catalogue: those five pin the semantics of a delete — none of them declares a
forbiddenoutcome — so they were calling an operation their principal is not authorized for and never reaching it. They now drive the delete as admin, with their204/404expectations untouched. The refusal the authorization change introduced gets its own two cases, so the behaviour is tested rather than merely described, and a read-only case that had quietly stopped isolating anything — its subject route became admin-gated, and it was the only write on that surface — is joined by one on a route where the restriction is still observable. The comparison record for the upstream EHRbase server is regenerated from the same run of the same catalogue. -
Server-fault log records now carry the underlying failure that caused them. A
500-class fault writes acausefield holding the full error chain — the PostgreSQL driver error, codec refusal or HTTP transport failure, and whatever caused that — instead of a single flattened sentence. Response bodies are unchanged: every status code and every message a client receives is byte-identical, and the cause never appears in one. ABAC attribute resolution and policy-engine failures additionally name which step failed (resolve the EHR subject attribute,resolve the template attribute,reach an authorization decision) rather than one generic authorization label. -
The published conformance badges are derived by the conformance runner, from the same rule as the verdicts they sit beside. They were re-derived downstream by a separate ~90-line implementation of the tier semantics, which is how a badge once read
FAIL 5/5 capabilities: the count was tier-local while the verdict was cumulative, and both were individually right. A count now quantifies over the very capability set its verdict was judged on, so that contradiction is no longer expressible and the self-check that used to catch it is gone rather than ported. Every committed badge regenerates byte-identically, apart frombadge.json, where a middot is now a literal UTF-8 character instead of a·escape — the same string, differently spelled. -
Deleting a shared definition artefact now requires the admin role, whichever route you use.
DELETE /definition/archetype/adl1.4/{archetype_id}andDELETE /definition/artefact/adl2/{artefact_id}were clinical-class, so any authenticated principal could remove an archetype every EHR in the deployment validates against — while the neighbouringDELETE /admin/template/{template_id}, with exactly the same blast radius, required admin. The difference came from which path prefix a route happened to be given, not from a decision. This tightens the wire: a client deleting archetypes with a clinical role now gets403. Uploads are unchanged and stay clinical, as they always were. The specification decides that the three must match rather than which class they take — the SM puts removal of archetypes and templates in one clause and one pair of interfaces, and its Admin component names no definition artefact at all — so the choice of admin is ours, following the one privilege recommendation in the conformance text for irreversible deletion. -
The database DSN, the two AMQP broker URLs and a Basic user’s password hash are now delivered as mounted files instead of environment values. An environment variable is readable through
/proc/<pid>/environand is inherited by every child process, which is why the OWASP Kubernetes Security Cheat Sheet asks for a read-only volume instead — and the DSN is the credential that reaches patient data. All four now arrive at/etc/ferroehr-secrets/…(mode0440, ownedroot:65532, not asubPathmount so a rotated Secret still propagates) with only the path passed as environment. A DSN supplied throughdatabase.existingSecretis projected from your own Secret, so nothing about how you create it changes.audit.fhir_feed.urlandmultimedia.access_key_idare the only credential-bearing keys still passed as values, because they are the only ones without a*_filesibling.What an upgrader must change: a Basic user’s hash moves from
config.auth.basic.users[].password_hashtosecrets.basicUserPasswordHashes.<username>, leaving onlyusernameandrolesunderconfig:. Setting the hash underconfig:is now refused, and the error names the key that carries it. Nothing else in your values file changes.A consequence worth knowing: configuring a Basic user no longer moves the whole rendered configuration into a Secret. That behaviour existed only because the hash had nowhere else to go; the ConfigMap is now used in every supported configuration, and the “no route” fallback has no reachable input — it is kept for the next secret key that arrives without a file sibling.
-
The chart requires a server build that understands the
*_filekeys above. A chart from this cycle deployed against3.17.3or earlier refuses to boot withunknown configuration key url_file.appVersionmoves with the release, so a published chart and its default image always agree; a chart taken from a development checkout and pinned to an older image does not. -
The Helm chart is version
4.0.0, and the major bump is a real break in its values contract. The chart version is SemVer over the chart’s own contract and is independent of the application version (appVersionstill names the release)..Values.configis no longer rendered verbatim: a secret-bearing key underconfig:either fails the render naming thesecrets:key that carries it, or moves the whole configuration into the Secret. What an upgrader must change: moveconfig.audit.fhir_feed.urltosecrets.auditFhirFeedUrl, move anyconfig.terminology.external.oauth2_clients.<name>.client_secrettosecrets.terminologyOauth2ClientSecrets.<name>(declaring the client’stoken_url/client_idunderconfig:as before), and move a DSN, AMQP URL, OIDC HMAC secret, signing passphrase or S3 secret key set underconfig:to its existingsecrets:key.helm templatenames every offending key at once, so a dry run is the migration checklist. Values files that set none of these render byte-identically apart from the chart version label. Aconfig.auth.basic.usersentry keeps working and needs no change, but the release now carries its configuration in a Secret rather than a ConfigMap — automation that readskubectl get configmap <release>must read the Secret instead. -
The chart’s golden-render gate runs in CI.
deploy/helm/validate.sh— the only check in the repository that pins the pod security context, the resource limits, the probes and the NetworkPolicy — ran in no workflow, so the golden renders went stale ondevelopand nothing failed. Ahelm-goldenjob now runs it (plushelm lint) on every pull request touchingdeploy/helm/**, inside the aggregate gate rather than beside it. The helm version is pinned indeploy/helm/.tool-versionsand asserted by the validator, becausehelm templateoutput is not byte-stable across helm releases. -
A missing mandatory key in a terminology-provider, terminology-
OAuth2-client or subject-proxy-system table is now reported by the boot-validation pass instead of by the file parser. Those sections read every default from one place, so a[terminology.external.providers.<name>]table with nourl, an[terminology.external.oauth2_clients.<name>]with notoken_url/client_id, or a[subject_proxy.systems.<name>]with nobase_urlstill refuses to boot and still names the key — but it arrives with the rest of the configuration errors at once, with did-you-mean, rather than as a bare “missing field” that stops at the first one. -
Chart secrets are mounted as read-only files instead of environment values wherever the configuration tree allows it. An environment variable is readable through
/proc/<pid>/environand is inherited by every child process, which the OWASP Kubernetes Security Cheat Sheet asks deployments to avoid. The OIDC HMAC secret, the signing passphrase and the S3 secret access key are now mounted at/etc/ferroehr-secrets/…(mode0440, ownedroot:65532, not asubPathmount, so a rotated Secret still propagates) and only the path is passed as environment through the existing*_fileconfiguration keys. The database DSN, the two AMQP URLs and the S3 access key id continue to travel as environment values, because those keys have no*_filesibling to point at a file; the chart says which is which at each value. -
The chart renders a Prometheus Operator
ServiceMonitorundermetrics.serviceMonitor.enabled. The existingprometheus.io/*pod annotations are honoured only by a Prometheus that does its own Kubernetes service discovery; an operator-managed Prometheus ignores them entirely, so on a kube-prometheus-stack cluster the chart previously published no discoverable target at all. -
The Compose deployment path is hardened to match the Helm chart. The Kubernetes path already ran non-root with a read-only root filesystem, no privilege escalation, a
RuntimeDefaultseccomp profile and every capability dropped; the quickstart Compose file — the one an evaluator downloads and runs — set none of the equivalents. It now does: every service drops all capabilities and adds back only what its entrypoint provably needs (five for PostgreSQL, two for the S3 gateway, none at all for the two distroless images), refuses privilege escalation, bounds its file descriptors, restarts unless stopped, and PostgreSQL and the admin console run read-only roots. -
Every published port binds
127.0.0.1by default. A published container port is DNAT’d ahead of the host firewall’s own chains, soufw deny 5432does not stop it — the quickstart previously exposed PostgreSQL, with the dev credentials that ship in the same file, on every interface. SetFERROEHR_BIND_HOST=0.0.0.0(or a specific address) when a deployment genuinely needs to be reachable from another machine. -
The SMART App Launch discovery document is now boot-validated, not relayed.
/.well-known/smart-configurationis published to third-party applications, so an empty or plaintext value is a claim they act on. Withsmart.enabled = true: every advertised endpoint must be an absolutehttpsURL (newsmart.endpoints.allow_insecure_endpointsopts out for development, mirroringauth.oidc.allow_insecure_issuer); the advertisedissuermust carry no query or fragment (RFC 8414 §2 — the same ruleauth.oidc.issuerfollows, since it is the same identity);response_types_supportedmust be non-empty (RFC 8414 §2 marks it REQUIRED);token_endpoint_auth_methods_supportedmust name at least one method; andcode_challenge_methods_supportedmust includeS256, because SMART App Launch requires PKCE (RFC 7636) and publishing a list without it tells every app the authorization server cannot do it. A deployment relying on any of those being empty now fails to boot with the key named. -
smart.endpoints.issuerandauth.oidc.issuermust agree. One tells applications where to obtain a token; the other is what this server accepts. Configured independently and never compared, a mismatch was silently broken in the most confusing way available — every app obtained a valid token and every request was refused as invalid. Both are known at boot, so a mismatch (andsmart.enabledwith no[auth.oidc]at all) is now a boot error naming both keys. A trailing slash is not a mismatch. -
Authentication and authorization rewritten against the OAuth2/JOSE RFCs (the wire-visible half; the boot-validation half is under Added/Fixed). What an integrator sees change:
- A malformed
Authorizationheader — unparsable, an unknown scheme, or a bearer credential outside the RFC 6750 §2.1b64tokengrammar — now answers 400 instead of 401. The old answer said “your credential was rejected” about a request the server never read a credential from. - The
WWW-Authenticatechallenge now names the outcome:error="invalid_token"for a rejected credential,error="insufficient_scope"on a bearer 403,error="invalid_request"for a malformed header, and no error code at all when the request carried no credentials (RFC 6750 §3.1 asks for exactly that). The Basic challenge advertisescharset="UTF-8", and a bearer 403 now carries a challenge too. - An unreachable token issuer (the JWKS cannot be fetched) answers 503 with
Retry-Afterinstead of 401. A client holding a valid token was previously told its credential was bad, which a well-behaved client responds to by not retrying. - A Basic credential must be padded base64 (RFC 7617 §2 → RFC 4648 §3.2). The unpadded form was accepted by a decoder setting no specification requires.
- An external policy server answering 5xx is now a fail-closed 500, not a deny. A broken PDP could previously refuse clinical access indefinitely while looking like policy.
- Bearer tokens are validated more strictly:
nbfis honoured,iss/aud/subare required alongsideexp, an unexpectedtypis refused, and a token claiming the RFC 9068at+jwtprofile must carryiat,jtiandclient_id. An audience-less configuration is no longer possible, so a token minted for another resource server — or an OIDC ID token — can no longer authenticate.
- A malformed
-
scopeno longer grants roles — read this if you use OIDC. Roles were mined fromrealm_access.rolesAND the OAuth2scopeclaim. A scope is a grant of delegated authority to a client (RFC 6749 §3.3), not an assertion about the subject, and treating it as one made the “at least one role” check pass for every OIDC token, becauseopenidcounted as a role. Roles now come from the RFC 9068 §2.2.3.1 carriers —roles,groups,entitlements, thenrealm_access.roles— configurable as before viaauthz.rbac.role_claims. A deployment whose callers relied on a scope naming a role must move that role into a role claim; scopes remain on the principal for SMART enforcement. -
New
auth.oidc.require_at_jwt(defaultfalse): refuse a token that does not claim the RFC 9068 access-token profile. Off by default because §2.1 makes the type a SHOULD for the authorization server, so requiring it would reject conforming issuers. -
Authentication and authorization configuration is now validated at startup, and six previously-accepted configurations refuse to boot. Each one could only have produced a silently weaker deployment than it appeared to describe, so the server names the offending key and stops instead. What fails, and the fix:
auth.enabled = truewith no mechanism configured (no[[auth.basic.users]], no[auth.oidc]). Such a server can only refuse every request while advertising an authentication scheme it does not implement, which RFC 9110 §11.6.1 forbids. Fix: configure a mechanism, or setauth.enabled = falsefor a development server. (This was a boot warning during the current development cycle and never shipped as one.)[auth.oidc]with emptyaudiences. This disabled audience checking altogether, so the server accepted access tokens minted for a different resource server, and could not tell an OpenID Connect ID token (whoseaudis a client id) from an access token — RFC 7519 §4.1.3, RFC 9068 §4 step 4, RFC 8725 §3.9/§3.12. Fix: setaudiencesto theaudvalue your identity provider issues for this CDR. There is no opt-out.[auth.oidc] issuerthat is blank, not a URL, nothttps, or carries a query or fragment. RFC 8414 §2 defines the issuer identifier as anhttpsURL with no query or fragment, and §6.2 requires TLS — over plain HTTP an attacker can serve their own signing keys. Fix: correct the issuer; for a development identity provider on plain HTTP, setallow_insecure_issuer = true(the no-query/no-fragment rules still apply).[auth.oidc] hmac_secretshorter than 32 bytes. RFC 8725 §3.5: a human-memorizable password must not be used directly as the key to a keyed-MAC algorithm such asHS256. Fix: supply at least 32 bytes of high-entropy material, or move to a JWKS/discovery key source. Configuring any symmetric secret now also logs a boot warning that it is a development posture: the key is shared with the authorization server, so the CDR can mint the tokens it accepts.[auth.oidc] clock_skew_leeway_secondsabove 300.- any
[[auth.basic.users]]password_hashbelow the OWASP Argon2id floor (m>=19456,t>=2,p>=1, algorithmargon2id), or one that is unparsable, or an entry with a blankusername. The password verifier takes its cost parameters from the stored hash, so a deliberately cheap hash verified happily and silently weakened that account. Fix: re-hash the affected passwords at the floor or above. The bundled development and quickstart hashes were regenerated accordingly (same passwords). - With
abac.engine = remote, a missing policy entry for any resource kind the enforcement point consults (ehr,ehr_status,composition,contribution,query, plusdirectorywhencheck_directory = true). Previously an unconfigured kind was silently permitted, i.e. a whole class of requests bypassed the decision point. Fix: add the missing[authz.abac.policy.<kind>]entries. At runtime an unconfigured kind is now denied and logged, never permitted.
-
The conformance comparison lane is named for the system it composes:
CONF_SUT=ehrbase(wasehrbase-java), with its Compose file, party set and committed artifacts under the same name, and the two environment knobsFERROEHR_EHRBASE_IMAGE/FERROEHR_EHRBASE_PORT(wasFERROEHR_JAVA_*). Committed measurement records keep the container names and topology they observed — a rename never restamps a measured run. -
The
openehr-itsWeb Template builder for ADL2 sources is renamed to match the generation modules:build_web_template_am24becomesbuild_web_template_v2_4(theam14/am24module names becamev1_4/v2_4in the multi-generation refactor, and the retired spelling survived in this API, two file names and their prose). A crate-API change with no behaviour change. -
Snapshot tests now resolve their workspace root from a pinned
INSTA_WORKSPACE_ROOTrather than a runtime lookup, so cargo-lock contention can no longer make stored snapshots appear missing or write pending snapshots to a doubled path. -
Dependency updates:
base640.23,fancy-regex0.19,jsonschema0.49 andjsonwebtoken11. No behaviour change — each was checked against its upstream changelog and then against this workspace’s own call sites, including thatjsonschema’s new single-errorvalidatesignature does not reduce our error reporting (both call sites already collect every error). -
The documentation site’s search metadata is produced by a small Rust tool (
tools/docs-meta) rather than a Python script — the docs workflow is Rust-only by design, and this repository ships no Python. -
The bearer-token command in the documentation uses
jqinstead ofpython3. The quickstart told you to pipe a Keycloak token response through a Python one-liner, which is an interpreter you may not have on a machine running a pure-Rust server. The site-build and corpus-vendoring scripts lost their embedded Python for the same reason — a vendoring script must still run years from now, and a hiddenpython3requirement is exactly what stops it. Their output is unchanged: both regenerated corpus provenance files were checked byte-for-byte against the committed ones, including two archetype display names that genuinely end in a space. -
Search-result presentation on the documentation site. Every documentation page now carries a canonical URL (so the dev, latest and frozen-release copies of a page no longer compete in the index), its own meta description taken from the page’s opening prose (they previously all shared one generic sentence, which is why search snippets repeated), Open Graph and Twitter card tags with the brand social card,
noindexon non-canonical versions, andBreadcrumbListstructured data mirroring the URL hierarchy. The landing page gainsWebSite,OrganizationandSoftwareSourceCodestructured data naming the site’s top-level sections. -
The documentation version picker works again. It hardcoded the site base path
/ferroehr, left over from before the move to theferroehr.euapex domain, so it requested/ferroehr/versions.json, got a 404, and could never populate the selector — the docs appeared to have no other versions at all. The base is now derived from the page’s own location, so it is correct at a domain root and under a project path alike, and cannot go stale on the next move. The published version set is also pruned to the current release: the manifest had 28 entries, 22 of them unreachable because their paths carried the base in use when they were cut (and their frozen books still carry the pre-rename product name). -
The configuration guide now documents
spec_profilein full — what it selects, why it is one coupled key rather than three, where to see the active profile, what changes on the wire in both directions, and the asymmetric change contract — and the “Migrating from 3.x environment variables” section is gone: it mapped spellings from a layout that was never released, so it documented a migration nobody can need. The variables that genuinely are not configuration keys (the config-file pointer, the healthcheck URL, build stamps, Compose parameterization) are documented as such instead. -
The eight published
openehr-*crates’ crates.io front pages (theirREADME.mdand one-line descriptions) now describe the crates as they actually are: the generation modules they expose and which is current, theGenerationenum as the way to ask which openEHR version a generation implements, and — for the five generated crates — that noSPEC_VERSIONconstant exists (every one they advertised was removed by the multi-generation refactor). Also corrected: the retiredam14/am24module names,openehr-lang’s conflation of specification units with generations, and three capability claims that were simply untrue (a feature that gates nothing, a parser library the crate does not depend on, and sibling behaviour files that do not exist). -
The project README now documents the two selectable openEHR specification generations (the
spec_profilekey, with the change contract in both directions) and the eightopenehr-*specification crates published on crates.io — neither was mentioned before, and the architecture diagram, CI-gate list and roadmap link are corrected to current reality. -
The vendored openEHR specification tree no longer carries upstream’s own dependency manifests (the CNF Robot harness’s
requirements.txt, the ITS-REST and TERM PHP tooling’scomposer.json). They are upstream build tooling, not specification text, and their presence made this repository’s dependency graph claim Python and PHP ecosystems it does not use — raising advisories against pinned third-party versions nothing here installs. The vendoring script now excludes dependency manifests across the common ecosystems, so a future re-vendor cannot reintroduce them; the vendored spec text itself is unchanged. -
Hand-written spec-behaviour files that were byte-identical across the
openehr-rm/openehr-basegeneration modules (89 twin families, ~29k lines of duplicated source) are now generation-twin TEMPLATES: one hand-written source under the code generator’stemplates/tree, with the per-generation copies stamped byemitunder an@generated-from-templateheader — generation divergence becomes impossible instead of policed, and an emitter invariant refuses any new unconverted twin. The one genuinely generation-specific file (ITEM_TAG’s construction under RM 1.1.0’s field order) is an explicit per-generation override carrying its adjudication. Crate behaviour is unchanged; the packaged sources now say which file is stamped from which template. -
The Docker Compose quickstart is now a standalone, zero-configuration file.
docker-compose.ymlpulls the published images (pinned to the release it shipped with) instead of building, and carries the server configuration inline, sodocker compose upworks in any empty directory — no repository checkout, no bind mounts, no environment variables. It needs Docker Compose 2.23.1 or newer. -
The admin console moved behind the
admin-uiCompose profile: it is opt-in (docker compose --profile admin-ui up, then http://localhost:3000) rather than started by everydocker compose up. As a side effect, the observability overlay’s Grafana no longer collides with it on port 3000. -
The quickstart’s authentication posture is now Basic auth with a single user (
ferroehr/ferroehr, holding theADMINandUSERroles) and role-based access control disabled, so every enabled surface works out of the box; the admin API, the management endpoints, and permissive CORS stay on. The previous three-user, RBAC-enabled development posture moved to the repository development override. Both are development defaults — see the security chapter for turning RBAC on. -
The conformance stack composes its own self-contained
docker/sut-ferroehr.ymlinstead of overlaying the root Compose file, so the end-user quickstart and the conformance instrument evolve independently. Starting the development FHIR terminology server is nowdocker compose -p ferroehr-cnf --project-directory . --profile terminology -f docker/sut-ferroehr.yml -f docker/sut-terminology.yml up -d --wait ferroehrfrom a repository checkout. -
openehr-langnow models generations by COMPONENT VERSION like every other spec crate: oneopenehr_lang::v1_1generation holding the version’s published specifications side by side — the STABLE, tool-implemented BMM v2.x model (bmm/bmm_persistence/beom, on the prelude) beside the PAUSED BMM3 model (bmm3, full-path only) — together with the hand-written ODIN/BEL/EL readers and the shared lexer for that version’s notations (all previously crate-root modules). The released LANG 1.0.0 machine-readable BMM is recorded as unusable for code generation (noincludes, unnamedBMM_CLASS/BMM_PACKAGE, an explicitly obsolete package; BMM is TRIAL in that release), so no 1.0.0 generation exists until upstream republishes usable artifacts. -
The published
openehr-*spec crates now expose every BMM generation under a version-named top module —openehr_base::v1_3,openehr_rm::v1_2,openehr_lang::v2/v3(replacingbmm/bmm_persistence/beomandbmm3at the crate root),openehr_am::v1_4/v2_4(replacingam14/am24),openehr_term::v3_1— with a new per-crateGenerationenum (derivedDefaultmarking the current generation,spec_version()/as_str(),FromStr/Display) and the crate prelude re-exporting the current generation only. Import paths into these crates change accordingly; the served wire formats are unchanged.
Removed
-
authz.rbac.management_accessandmanagement.access_defaultare gone (breaking, for a configuration that set either). Both were inert: the management surface is gated per endpoint, and neither key was ever consulted by the code that gates it. That was the dangerous kind of dead setting — someone settingmanagement_access = "admin_only"to lock the surface down had not locked anything down, and the security chapter presented it as the gate.[management.endpoints]is now the single authority, one level per endpoint, with no global default beside it: an endpoint you do not name isoffand is not mounted. A test pins that the levels are independent, so no endpoint’s level can leak onto its neighbour.If you set either key, delete it — the server refuses unknown configuration keys at boot, so this fails loudly rather than silently. The behaviour you had is unchanged, because neither key did anything.
-
openehr-rm’sehr-extractcargo feature, which gated nothing (the EHR Extract modules were always compiled), andopenehr-its’s emptybmmplaceholder module — a published module that promised future surface nobody could use. -
The generated
openehr-*spec crates no longer carry a crate-levelSPEC_VERSIONconstant: a multi-generation crate has no single implemented spec version, and a fixed crate-root pin would contradict a configured non-current generation. The ONLY pin authority is the emittedGenerationenum (per-variantconst fn spec_version(); the derivedDefaultvariant is the current generation) — the generation modules carry no version constant either; the hand-written single-spec crates (openehr-its,openehr-query,openehr-adl) keep their literal constant.
Fixed
-
A
TERMINOLOGY_IDis no longer refused for its lexical form. The CDR rejected composition values such assnomed_ct(3.1)andSNOMED CTwithInvariant Value_valid failed on type TERMINOLOGY_ID— an invariant the released BASE model does not declare anywhere: the class table carries no Invariants row and the machine-readable model noinvariantskey. Released QUERY 1.1.0 settles it from the other side by publishingterminology_id/value='snomed_ct(3.1)'in its own normative example, which the enforced production forbade. Values that were being rejected at commit are now accepted. -
Five CI gates ran without gating anything. Branch protection routes through a single aggregate check, which is what lets jobs be added or renamed without editing repository settings — but a job missing from that check’s dependency list still runs, still goes red, and still merges. The compose hardening guard, the error cause-chain ratchet, the no-Python rule, the spec-citation check and the chart boot check were all in that state. All are wired in, and a new guard fails the build when a job is missing from the list in either direction, so the next one cannot slip through silently. The compose guard is the one worth calling out:
docker-compose.ymland the operations chapter both told readers it enforced on every compose artifact, and it had never run. -
The forbidden-licence check now actually runs. It was configured as a FOSSA
customLicenseSearch, which could not upload on this organization’s plan and did not honour the configured path exclusions — every one of its findings came from vendored third-party trees rather than from this project’s own code. It is now a local check that shares the same exclusion list and fails the build. -
An uploaded operational template no longer silently loses its slot constraints. A slot assertion was rendered into ADL by writing the raw numeric operator code the OPT XML encodes — text the assertion parser cannot read — so any slot whose template did not also carry a pre-rendered string expression ended up with no constraint at all, and would admit archetypes it was written to exclude. The operator is now rendered as its ADL symbol, and a test reads the result back through the parser.
-
Temporal constraint conformance answers where it used to give up. A child archetype narrowing a date, time or duration to a range under a parent that constrains it by pattern reported “cannot tell” instead of judging it, on the stated grounds that the generated date/time types offered no ordering. They have offered ordering for some time, so the check now reaches a verdict.
-
An operational template whose archetype id carries an ADL 2 version is accepted again. Uploading an OPT whose root id is
openEHR-EHR-COMPOSITION.minimal.v1.0.0was refused as a malformed archetype identifier (VARID), even though deployed OPT 1.4 exports carry exactly that form and the validator documented the tolerance. The check had been routed through a grammar whose version production is single-part by definition, so the tolerance it described could never fire. -
AQL archetype subsumption works again for ADL 2 identifiers. A query naming a parent archetype is supposed to match data created with its specialisations. For an AOM2-era identifier —
openEHR-EHR-OBSERVATION .lipid_panel.v1.0.0, the form an ADL 2 archetype actually carries — it did not: the predicate read the identifier through a decomposition that accepts only the single-part.v1version, silently fell back to matching the whole identifier string, and left the index built for the subsumption query unused. The answer was narrower than the spec requires, with no error. Both eras’ forms are now read through the same decomposition the lineage index is built from. -
TERMINOLOGY_IDnow enforces its grammar. A value was accepted if it was merely non-empty and printable, so"SNOMED CT"and"http://snomed.info/sct"passed. The identifier is now the production BASEbase_typesmaster05 §Syntaxes states. The version part in parentheses admits a leading digit, because every example the same chapter gives (ICD9(1999),ICD10AM(3rd_ed)) starts with one — reported upstream, since the grammar as written refuses openEHR’s own identifiers. -
A Web Template no longer reports a query string as a terminology. A
C_CODE_REFERENCEwhose reference-set URI carries parameters —terminology:NSI?subset=doctor_category&language=en-GB— had the entire remainder copied into the input’sterminologyfield, which is a terminology identifier. Only the identifying part is taken now, for both the bare form the conformance templates use and the addressed form AQL documents. -
The release lane would have shipped a release with no binaries. GitHub release immutability is now enabled, which freezes a release’s assets the moment it is published — and the binaries, SBOMs and Sigstore bundles are attached by a job that runs after the release is created. The release is now created as a draft, its assets are attached, the expected set is verified, and only then is it published, so nothing can be locked out.
-
Three list-typed configuration settings could not be set from the environment at all.
signing.retired_key_paths,smart.endpoints.capabilitiesand everyauthz.abac.policy.<kind>.parametersare list-typed but were missing from the loader’s list registry, so an env value was not merely mis-split — it was refused at boot:invalid type: string "…", expected a sequence. All are now registered, and tests assert that every env-settable list key parses from one value, splits on several, and that a list nested under a map key works too.signing.retired_key_pathsis the key that carries PGP key rotation: it holds the retired PUBLIC keys that keep versions signed before a rotation verifiable. Until now it was reachable only from a TOML file, so any environment-driven deployment — Compose, plain Docker, a chart’sextraEnv— could not configure key rotation at all, and found out only when the server refused to start. -
The fuzzing lane had not run at all. Every one of the six libFuzzer harnesses failed to build on every scheduled run:
cargo-fuzzdefaults the build target to the triple it was itself built for, CI installs its musl asset, and musl’s static libc cannot carry a sanitizer — so the campaign died before executing a single input. The target triple is now named explicitly, and the harnesses are compiled on the pull-request path whenever they or a fuzzed crate change, so a scheduled-only lane can no longer rot unnoticed. -
Multimedia committed inside an
EHR_STATUSor aFOLDERcan now be read back. Externalization is applied by the versioning path every versioned object commits through, but re-inlining was wired to the COMPOSITION read alone — so a largeDV_MULTIMEDIAcommitted in an EHR status left the database, sat in the object store, and no API call returned it;?expand_multimedia=trueon that read was an undeclared parameter and was ignored. All nine reads that can serve externalized content now honour it (the bare COMPOSITION / EHR_STATUS / FOLDER reads and the VERSION envelopes that wrap them), and the OpenAPI document declares it on exactly those operations — pinned by a test, so the declarations and the handlers cannot drift apart again. -
Turning multimedia externalization off no longer strands the blobs already offloaded.
?expand_multimedia=trueagainst an already-externalized record was silently ignored oncemultimedia.enabledwent back tofalse: the read answered200with the compacts3://reference and no indication that the expansion had not happened.enablednow governs new offloads only — the fetch-and-verify path stays available as long as anendpointis configured, so content this server externalized stays readable. With no store reachable at all, an expansion request now fails instead of quietly answering with the reference. -
FERROEHR__MULTIMEDIA__*set in your shell now reaches the compose stack. Every other tunable the quickstart documents is a pass-through; the multimedia keys were not, so the documented S3 recipe brought the stack up healthy with multimedia silently off. The wholeFERROEHR__MULTIMEDIA__*set is now declared on theferroehrservice with no value, which is the Compose form that forwards a variable when it is set and removes it entirely when it is not — so an unset key stays absent rather than arriving as an empty string, which forendpointis the difference between “use the default” and a boot refusal. -
The development Keycloak realm now mints tokens the server accepts. The realm declared no audience mapper, so Keycloak emitted no
ferroehraudience, while the same development configuration requires that audience — every bearer token it issued was refused401 InvalidAudience, and no user of that realm could ever produce an accepted one. The server was right in both halves (RFC 7519 §4.1.3); the realm was wrong. Anoidc-audience-mapperon theferroehrclient fixes it, verified live: the access token now carriesaud: ferroehr. The realm also carried identifiers from the deployment it was exported from — a hardcoded tenant claim naming a foreign UUID, a foreign client scope, and a default role named after another product — all removed. -
migrations.runByMigratorRolenow does what its documentation says. The key was described as “rendered into NOTES for the operator” and no template read it, so the chart, its generated README and the book all described a marker that did nothing. It now surfaces at install time when set to false, stating plainly that the chart cannot verify the claim. -
A stock
helm installno longer appears to succeed and then crash-loops.config.auth.enableddefaults to true and the server requires a mechanism with it (RFC 9110 §11.6.1 — a 401 challenge must name a scheme the server implements), so the default values produced a pod that exited at boot with the reason visible only in its log. The chart now refuses to render that combination, naming both ways to configure authentication and the explicit development-only opt-out. The default was deliberately not changed to disable authentication: that would hand a fresh install an unauthenticated CDR serving patient data, which is a worse outcome than a loud failure. -
The CDR Service no longer load-balances openEHR traffic into the admin console. A Service selector is a subset match, and the console’s pods carried the server’s
app.kubernetes.io/nameplus acomponentlabel — so they matched the server’s own Service, whosetargetPort: httpthen resolved to the console’s port 3000. With the console enabled, a share of API requests were answered by a web UI. The same overlap inflated the PodDisruptionBudget’sdisruptionsAllowedfrom 1 to 2, enough for a node drain to evict both server replicas at once. The console now carries its ownapp.kubernetes.io/name. Verified on a live cluster: the CDR Service’s endpoints are exactly the two server pods and the PDB reportsexpectedPods=2. -
An Ingress with a path but no
pathTypeis no longer rejected by the API server.pathTypeis required onnetworking.k8s.io/v1but optional in the chart’s schema; it now defaults toPrefix. -
A Service with custom
annotationsno longer loses its description. The template emitted twoannotationsmappings under onemetadata, so the later one won andkubernetes.io/descriptionsilently disappeared. -
An autoscaler with every metric disabled is refused instead of installed inert. Setting both HPA targets to 0 rendered an HPA with no metrics, which the API accepts and the controller can never act on — while the Deployment omits
replicasunder autoscaling, so a fresh install silently ran a single replica. -
The install notes no longer advertise a Prometheus endpoint that is off. The endpoint was reported as public whenever metrics were enabled, ignoring
config.management.endpoints.prometheus, which defaults tooff. -
The chart no longer promises drain-safety it cannot deliver on older clusters.
PodDisruptionBudget.unhealthyPodEvictionPolicywas rendered unconditionally under akubeVersionfloor of>=1.25.0-0, but the field is alpha in 1.26, beta in 1.27 and stable only in 1.31 (KEP-3017). Below 1.27 the API server prunes it or leaves it behind a disabled gate, so the install succeeded while the policy silently did not apply. It is now version-gated and rendered only where it takes effect; clusters below 1.27 get the documented API default (IfHealthyBudget) visibly rather than an ignored setting. -
The chart-publish gate now judges every values overlay, at real secret values. The tag lane carried its own copy of the boot replay, which wrote a placeholder into every file-borne secret (so the 32-byte HMAC floor and the Argon2id password-hash parse were checked against the placeholder, not the configured secret), rendered only
default-values.yaml, and skippedvalueFrom.secretKeyRefenvironment entirely. It now callsdeploy/helm/ci/boot-check.sh, which mounts each secret at its rendered value, resolvessecretKeyRef, and boots every committed overlay — and the replay logic exists in exactly one place. -
boot-check.shno longer hands one workload’s environment to another image. With the admin console added, the script collectedenv:from every rendered Deployment, so the console’sFERROEHR_ADMIN__*variables (a separate binary with its own config root) reached the CDR image, whose strict sweep correctly refused them and reported a crash-loop for a deployment that runs fine. Environment collection is scoped to the CDR Deployment. -
The Helm chart’s shipped values overlays now produce configurations the server accepts. All three rendered, linted and matched their goldens while none of them would boot:
default-values.yamlenabled authentication with no mechanism,basic-auth-values.yamlcarried a placeholder that is not an Argon2id PHC string, andall-features-values.yamlcarried a 15-byte HMAC secret under the RFC 8725 §3.5 32-byte floor and enabled SMART without its required public base URL and endpoint metadata. The tag lane boots theappVersionimage against the rendered default, so the next release cut would have failed. (#2159) -
The
auditschema was unreachable under the least-privilege role model. It carried no grants at all, so only the database owner could write audit records — a deployment connecting asferroehr_appcould not record one. The runtime role now holds exactlySELECT,INSERT, a column-scopedUPDATEon the two delivery stamps, andEXECUTEon the reaping and verification functions. The compose PostgreSQL image also pre-creates theauditschema alongsideehrandext. (#2049, #2059) -
Publishing a chart-only fix between releases works again. The chart lane’s pre-flight check — that a plain
helm installof the chart will not crash-loop — now compares the chart against the image it is actually judged with: the released image on avX.Y.Ztag, whereappVersionis that release, and an image built from the current tree on a manual chart-only run, whereappVersionstill names the previous release and therefore rejects every configuration key added since it. The check itself is unchanged in strength; only the image it compares against is now the right one, and the run log and job summary name that image and why it was chosen. -
A
vX.Y.Ztag starts the image build and the chart publish at the same moment, and the chart lane’s pre-flight pulls the image the other lane is still pushing. The chart lane now waits for that specific build rather than retrying a registry pull in the dark: if the image build fails, the chart lane fails immediately with a link to it instead of presenting the race as a broken chart. -
The published images carry OCI annotations, so registries can read their description. GHCR showed “No description provided” for all three packages even though each carried a description label: a label lives in the image config blob, while a registry reads the description from the image index annotation, and no annotation was being written at all. All three lanes now emit annotations at both index and manifest level.
-
The container images no longer claim the wrong licence. All three Dockerfiles declared
org.opencontainers.image.licenses="Apache-2.0"for an MIT-licensed project. Images published by CI were unaffected — the workflow’s label overrode the Dockerfile’s — so this was only ever visible to someone building the Dockerfiles directly, which is the documented compose path. The app and console images now declareMIT, and the postgres image the SPDX expressionMIT AND PostgreSQL, which is what it actually contains. -
Service-layer refusals now report the precise openEHR Service Model call status they were raised with, instead of a generic stand-in. An unusable archetype-id regex pattern answers
invalid_id_pattern(notprecondition_violation) and an invalid stored queryinvalid_query(notcontent_invalid), and every conflict, bad request and semantic refusal keeps its own status through the service boundary. The HTTP status and response body of every affected request are unchanged — only the status a Service Model caller reads back becomes accurate. -
An unusable id pattern, an unparseable stored query and an unparseable ad-hoc AQL query now carry the underlying parser failure as an error cause, so an operator can read the full diagnosis from the server log.
-
auth.oidc.hmac_secret_fileandauth.oidc.jwks_json_filenow appear as their own reference lines in the shippedferroehr.tomltemplate, soferroehr config defaultteaches them. Both were real configuration keys mentioned only inside a trailing comment on another key’s line, in a file whose header calls itself the complete server configuration. -
Documented
gh attestation verifyinvocations no longer promise a result on the Helm chart or on3.17.3: no chart version has been published, and signing landed after that tag was built. Both chapters now say so, and the stale “no published artifact carries an attestation” warning on the admission policies is replaced by a narrower note about the one thing still unproven — that no admission controller has yet run these policies against a live image. -
The AQL printer emitted queries that meant something different when read back. Found by the new fuzzer, and it is a correctness defect rather than a formatting one:
to_aqldropped parentheses that the grammar needs, so re-parsing the printed text produced a different query. Two causes. TheAND/ORoperators are stated in the grammar as binary alternatives of one recursive rule, which resolves left-associatively — so a same-precedence operand survives a re-parse on the left and silently re-associates on the right, and the printer treated both sides alike. And aCONTAINSchain used as a boolean operand absorbs whatever operator follows it, moving that operator inside the CONTAINS scope. The printer’s own documented invariant — parse(print(q)) == q — now holds across every boolean shape, asserted rather than assumed. -
The container images declare their user numerically, so Kubernetes can actually verify it. Both images stated
USER nonroot:nonroot, which reads well and defeats the check it was meant to support: the kubelet cannot resolve a username against an image it does not read, sorunAsNonRoot: truewithout an explicitrunAsUserrefuses the pod with “cannot verify user is non-root”. The distroless base already declared the numeric65532, and that line was overriding it with a name. Both now declareUSER 65532:65532— the same identity, stated the way every consumer can check. The Helm chart was unaffected because it pinsrunAsUser: 65532itself; a plainkubectl runof these images was not. -
Release artifacts carry their signature with them, so verification no longer needs GitHub. Each release now attaches the Sigstore bundles as assets beside the binary and its SBOM, which means a consumer can verify an artifact on an air-gapped host with nothing but the download in hand:
gh attestation verify <tarball> --bundle <tarball>.sigstore.json --repo rubentalstra/FerroEHR. The attestations were already being produced and stored in GitHub’s attestations API; what was missing was the form in which a signature travels with the file. -
The Helm golden-render gate was inert in CI, and the chart publish lane could not run at all. Both jobs passed
version-file:toazure/setup-helm, which has no such input — its inputs areversion,tokenanddownloadBaseURL. An unrecognised input is only a warning, so the action quietly installed the newest Helm instead of the pinned one; the golden comparison then skipped itself (“running helm 4.2.3, goldens are pinned to 4.1.3”) and the job went red without ever comparing a render. The workflows now read the version out ofdeploy/helm/.tool-versionsand pass it as the input that exists, so the pin means what the file says it means. -
The conformance lane could not boot its own server. Two configuration rules added by the SMART hardening this cycle — a plaintext
smart.public_base_urlis refused without the named development flag (RFC 6749 §3.1.2.1, RFC 8414 §6.2), and an emptytoken_endpoint_auth_methods_supportedis refused because a document advertising a token endpoint and no client-authentication method describes an authorization server that authenticates no client at all — are both correct, and the lane’s compose overlay satisfied neither. The system under test exited during compose, so not one conformance case ran. Fixed in the overlay, with the reason for each key stated where it is set. -
The chart’s publish lane checked only half of what it hands the server. It validated the rendered
ferroehr.tomlagainst theappVersionimage but not theFERROEHR__*environment the Deployment declares — and the strict boot-time sweep refuses an unknown variable just as firmly as an unknown TOML key. The lane now replays the declared environment, with a real file behind every*_FILEpath, so a chart whose environment grammar outruns its image is refused before publication rather than discovered as a crash-loop. -
Two scripts on the chart’s build and publish paths required Python. The Artifact Hub changelog derivation and the chart validator’s manifest check are now
awk, matching the repository-wide rule that there is no Python here. The rewritten changelog derivation was verified byte-identical to the previous implementation across both a released section and the unreleased one (21 and 88 entries). The validator’s structural check kept the coverage it uniquely provided — every rendered document must carry a top-levelapiVersionandkind— after confirming that YAML well-formedness is already enforced twice, byhelm templateandhelm lint. -
The Swagger UI showed a blank page at the URL the documentation gives you.
/ferroehr/rest/swagger-uianswered200with the right HTML, and nothing on it loaded: the bundledindex.htmlreferences its stylesheet and scripts relatively (./swagger-ui.css), so without a trailing slash the browser resolved every one of them against the parent directory and got a404. You had to know to type/ferroehr/rest/swagger-ui/index.html. The mount path now redirects there, so the documented URL works. The target isindex.htmlrather than the trailing-slash form deliberately — the path-normalizing middleware strips a trailing slash, which is what made the previous attempt at this an infinite redirect loop. -
The four credential keys that had no file route now have one, the database DSN among them. The configuration rule is that every secret gets a
*_filesibling so it can arrive as a mounted read-only file instead of an environment value — an environment value is readable through/proc/<pid>/environand is inherited by every child process. Four keys were missing theirs, and they included the most valuable secret in the deployment:db.url(the DSN),events.urlandfhir.outbound.url(AMQP URLs carrying credentials), andauth.basic.users[].password_hash, whose only route was inline in a configuration file. So the three secrets that already had a file route arrived as mounted files while the DSN travelled as environment. Nowdb.url_file,events.url_file,fhir.outbound.url_fileandpassword_hash_fileall work, through the config file or the environment grammar (FERROEHR__DB__URL_FILE, …), with redaction and boot validation identical on both paths — a file-delivered DSN redacts its credentials exactly like an inline one, and a file-delivered password hash faces the same Argon2id parameter floor. The inline and environment forms are unchanged: this adds a route rather than removing one, so a Compose deployment needs no changes. Setting a key both ways is a boot error, and the built-in development default does not count as “set”, so a*_filealone works without blanking anything first. -
The image scanners were ignoring a setting their own configuration claimed to carry.
trivy.yamldocumentedignore-unfixedas one of its two deliberate choices, but the key lived only as an input in the container workflow — so any other lane reading that config got a different gate. Measured on the published PostgreSQL image, the same scan reports 55 HIGH/CRITICAL findings without the setting and 0 with it, all 55 being CVEs with no fix available. The setting now lives intrivy.yamlundervulnerability:, where every lane inherits it. (The nesting matters: a top-levelignore-unfixedkey is silently ignored by Trivy.) -
A partial database wipe bricked the deployment permanently, and now it explains itself instead. Almost every object the server creates lives in the
ehrschema, but the cold archival tier lives in its owncoldschema — so aDROP SCHEMA ehr CASCADE(a restore gone wrong, a recreated volume, a wiped test database) took the primary tier and the migration bookkeeping and left the archived clinical rows standing. The next boot then failed with a barerelation "vo_version" already existsand every restart retried the same failure: permanentCrashLoopBackOff, with no message naming the cause and no path out short of hand-written SQL. Observed on a live cluster, not reasoned about.The server now detects the state before migrating and refuses with the cause and both remedies in the message — restore the whole database from backup, or, if the wipe was intended,
DROP SCHEMA cold CASCADE. Making the migration silently re-runnable was considered and rejected: those mirror tables were created from the primary tables as they stood at the time, so adopting a survivor could leave the archive tier a different shape from the tier it mirrors, and its rows are clinical content belonging to a repository that no longer exists. A crash with a remedy beats a database that quietly re-adopts another repository’s data. The operations page documents both directions of a partial wipe, including the reverse one the boot check cannot see, and says what to do instead: drop the database, which has no partial-state failure mode. -
A Helm-configured Basic user’s Argon2id hash was written into a ConfigMap. The chart rendered
.Values.configverbatim, so any secret in the configuration tree landed in an object nothing treats as sensitive: readable with namespace read, pasted wholesale into support tickets, collected by backup tooling that skips Secrets, and not covered by Secret encryption at rest. An Argon2id hash is not a plaintext password, but it is an offline cracking target — which is the whole reason this server enforces the OWASP parameter floor at boot. Two more live instances of the same defect came out with it:audit.fhir_feed.urland a terminologyOAuth2client secret, both of which the chart had no secure route for at all.The chart now classifies every key it renders, by name shape rather than against a list of today’s keys, so a secret key added to the configuration tree in a future release cannot leak by default. A secret with a
secrets:route (authOidcHmacSecret,signingKeyPassphrase,multimediaSecretAccessKey, the newauditFhirFeedUrlandterminologyOauth2ClientSecrets, the DSN and the two AMQP URLs) is refused underconfig:with the key that carries it named in the error. A secret with no route — today onlyauth.basic.users[].password_hash, whose configuration key has nopassword_hash_filesibling to point at a mounted file — moves the whole renderedferroehr.tomlinto the chart’s Secret, and no ConfigMap is created at all; the install notes say which object your release used. Verified on a live cluster: the Deployment serves authenticated openEHR requests with its configuration mounted from the Secret, and no ConfigMap in the namespace contains the hash. -
A rotated secret or an edited ABAC policy did not roll the pods. The
checksum/configannotation hashed the ConfigMap template only, so a change undersecrets:orconfig.filesreached the mounted volume while every running pod kept serving with the value it read at boot. The annotation now covers the rendered configuration, the mounted files and the secret values together. -
The Helm chart could not start a pod at all, and only a real cluster could show it. Everything about the chart had been verified by rendering its YAML; deployed for the first time, every pod crash-looped. Kubernetes injects a set of Service link environment variables for each Service in the namespace, and for a Service named
ferroehr*those (FERROEHR_SERVICE_HOST,FERROEHR_PORT_8080_TCP_ADDR, …) land inside the server’s reservedFERROEHR_configuration namespace, where the strict boot-time sweep rejected them and refused to start — the install command from the documentation could not work. The chart now pinsenableServiceLinks: false, which this workload never needed, and the chart’s own validation gate asserts the line so it cannot be dropped again. -
The chart’s default-deny ingress NetworkPolicy was documented as narrower than it is. With
networkPolicy.ingressFromempty the rendered rule carries nofromselector, and a rule withoutfromadmits every source — other namespaces included, not “any pod in this namespace” as the values file claimed. Only the port list is narrowed in that state. The values file, the template and the documentation now say so, and point at settingingressFromfor a PHI workload. -
The XML reader had no nesting bound, so a deeply nested document recursed the generated readers off the stack — and a Rust stack overflow aborts the process rather than unwinding, which means the catch-panic layer that renders this server’s clean
500could not intercept it: one request would have taken the process down for every caller. Nesting is now bounded (256 levels, released as elements close, so wide documents are unaffected) and refused with a typed error. ADOCTYPEdeclaration is also refused outright now: entity attacks were already impossible because the XML library parses no DTDs, but that is a property of a dependency’s current behaviour, and canonical openEHR XML has no use for aDOCTYPE. -
The API’s
Content-Security-Policywas applied as an overriding outermost layer over a tree that includes Swagger UI, sodefault-src 'none'would have left the documentation page blank in a CSP-enforcing browser — in the default configuration, since Swagger UI is on by default. Swagger UI now carries its own policy, which needs no inline allowance at all (measured, not assumed, and pinned by a test). -
An over-limit chunked request body (no
Content-Length) was answered400as a malformed body instead of413: the body-collection step turned the limit error into an empty body. Chunked and declared-length bodies now both refuse413. -
The unauthenticated
/healthfamily could disclose database connection detail: two indicators interpolated the raw driver error into the componentdetail, whose text can name the DSN host, the database and the connecting role, and a third served a failed check’s panic payload. All three now serve the fact and log the cause. -
Request paths reached the log with their query string at debug level, and
subject_id— an external patient identifier — is a query parameter by the specification’s own design. The request span now records the path only. -
New top-level configuration key
spec_profile(development|stable, defaultdevelopment; envFERROEHR__SPEC_PROFILE): selects the openEHR specification generation set the server runs as ONE coupled choice —development= RM 1.2.0 + BASE 1.3.0 + LANG 1.1.0 (today’s behaviour),stable= the latest RELEASED generations, RM 1.1.0 + BASE 1.2.0 + LANG 1.0.0. The active profile and its generation versions appear on the boot banner andGET /management/info. Understable, AQL that addresses specification surface the released generation does not define is refused with an error naming the active profile. Profile-change contract:stable→developmentis always safe (openEHR minor releases are additive);development→stableis supported only for data that never used development-only constructs — such stored objects are refused loudly at read, never silently down-converted. -
docker-compose.keycloak.yml— a standalone OIDC quickstart overlay. Download it beside the quickstart file and rundocker compose -f docker-compose.yml -f docker-compose.keycloak.yml upto get a Keycloak identity provider on port 8081 with a ready-made demo realm (a confidentialferroehrclient with the password grant enabled, and the userferroehr/ferroehrcarrying theADMINandUSERrealm roles) and the server’s bearer-token validation pointed at it. Basic auth keeps working, so the server advertisesBasic, Bearer. The realm travels inside the file — no repository checkout needed. -
docker-compose.override.yml— the from-source development stack for anyone working on FerroEHR itself. In a checkout it is merged automatically onto a baredocker compose up, sodocker compose up --buildbuilds the server, database, and admin-console images from the current sources and runs them with the fuller development configuration (docker/ferroehr.dev.toml: the three usersferroehr/ferroehr-admin/ferroehr-readonly, role-based access control enabled, and akeycloakprofile with the full development realm). -
The quickstart Compose files are attached to every GitHub release, so a fresh evaluation is downloading
docker-compose.ymlfrom the release page and runningdocker compose up. -
Two new
[auth.oidc]keys.clock_skew_leeway_seconds(default60, envFERROEHR__AUTH__OIDC__CLOCK_SKEW_LEEWAY_SECONDS) sets the leeway applied to the time-based token claims; values above300are refused at boot, because expiry leeway may be “no more than a few minutes” (RFC 9068 §4 step 6) and a large one silently extends every token’s life.allow_insecure_issuer(defaultfalse) accepts a non-httpsissuer for development and test deployments only — it exposes token verification material to anyone on the network (RFC 8414 §6.2). -
A new
[authz.abac]keycheck_directory(defaultfalse): submits DIRECTORY (FOLDER) operations to the policy decision point. It replaces the old rule that inferred the opt-in from adirectoryentry in the remote-PDP policy map, so the check now works under the embedded Cedar engine too — previously a Cedar deployment could only enable it by inventing a policy name Cedar never reads. If you enabled DIRECTORY checks that way, setcheck_directory = true. -
A CI guard that keeps the Compose files’ default image tags pinned to the workspace version, so a downloaded quickstart file can never reference images from a different release.
-
The
openehr-langcrate’sv1_0generation is now the TRUE LANG Release-1.0.0 surface, not a copy of the development line: it is generated faithfully from the release’s own machine-readable BMM, its vendored grammar set is the release’s actual syntax-appendix files (vendor/grammar/v1_0/, incl. that era’sbase_lexer.g4), its lexer carries the ODIN reading alone (1.0.0 publishes no EL grammar and BEL first appears in 1.1.0), and its ODIN reader enforces the release’s own syntax: lowercase-only attribute keys, ANY primitive comparable value as a container key (real/boolean/character/term-code/duration keys, signed numerics), whole-document plug-in fragments, comma-only fractional seconds on times and dot-only on durations. Under thestablespec profile these are the rules ODIN text is read by. The ADL/cADL grammar set is likewise version-scoped by AM generation (crates/openehr-adl/vendor/grammar/{v1_4,v2_4}/, vendored by the newscripts/vendor/adl-grammars.sh). -
The
openehr-rmandopenehr-basecrates now ALSO emit the latest RELEASED specification generations beside the development pins —openehr_rm::v1_1(RM 1.1.0, resolving against BASE 1.2.0 per its own BMMincludes) andopenehr_base::v1_2(BASE 1.2.0) — each a complete peer: full type model, canonical-JSON codecs, RM attribute model, invariant cores, and validation behaviour. The served wire is unchanged (the current generations stayv1_2/v1_3); runtime selection between generations arrives with thespec_profileconfiguration key. -
The
s3profile’s SeaweedFS healthcheck could never pass: it probedhttp://localhost:8333/, andlocalhostresolves to::1first while the S3 gateway listens on IPv4 only, sodocker compose --profile s3 up --waitwaited forever. It now probes127.0.0.1. -
An unknown Basic username now performs the same key-derivation work as a known one, against a fixed decoy hash, so response time no longer reveals whether an account exists.
-
The embedded Cedar policy engine now receives the caller: the principal was a constant with an empty role and scope set, so no role-aware or scope-aware policy could ever match, and every decision log named the same anonymous entity. The authenticated subject, its roles, its scopes and the operation id are now all available to a policy.
-
A Cedar policy that errors during evaluation no longer changes the outcome silently. Cedar skips an erroring policy and reports it in its diagnostics, which were discarded — so an erroring
forbidstopped forbidding. A policy set that cannot be evaluated is now a fail-closed 500. -
An external policy server with no configured rule for a resource kind now denies (and logs) instead of permitting, and the missing rule is refused at boot.
-
Three authorization gates reached for the authenticated caller and, finding none, invented one named
UNKNOWN— writing a false subject into the audit trail. They now refuse, as the fourth gate already did. -
A CONTRIBUTION’s template ids are read from the typed COMPOSITION value rather than a JSON pointer that a shape change could silently stop matching.
-
auth.oidc.algorithmsis now bound to the configured key source:HS*with a JWKS (orRS*with only a symmetric secret) is a boot error, closing the algorithm-confusion setup where a public key is accepted as an HMAC secret (RFC 8725 §3.1).noneis refused outright. -
JWK selection honours the
use,key_opsandalgfacets and refuses an ambiguous key set when the token carries nokid, instead of taking the first key in the document. -
The upstream-EHRbase comparison lane could not boot. A product-wide rename had swept the upstream image’s OWN contract along with our own names: the database container’s
EHRBASE_USER*/EHRBASE_PASSWORD*init variables, the database name baked into that image’s init script, and EHRbase’s/ehrbase/rest/...base path (in both the party ixit and the readiness probe). The lane composes, becomes ready and drives cases again; only the strings upstream owns were restored, and the credentials we choose are unchanged. -
Under
spec_profile = stable, a demographic party body carrying the RM 1.1.0PARTY.reverse_relationshipsattribute is now accepted: the payload is validated by the released generation’s own strict reader and the attribute — derived data the development line removed as redundant (upstream SPECRM-124) — is dropped on ingress rather than stored. Previously the stable server refused a valid instance of its own advertised generation with400. Thedevelopmentprofile still refuses the attribute as undeclared, and the generation delta ledger now pins the REMOVED direction too, so a future spec re-vendor changing either direction fails the build until adjudicated. -
An ODIN integer container key whose lexeme cannot be evaluated (an out-of-
i64-range magnitude, an inexact negative exponent) is now a parse refusal; previously it silently became the key0, so two such keys collided as duplicates and stored data could be mis-keyed. Signed integer keys ([-1],[+2]) and exponent forms ([29e2]) now parse per the grammar’sinteger_value : ('+'|'-')? INTEGER. ODIN parse errors also now report the position of the real defect instead of the first backtracked branch failure. -
A bearer token whose
subclaim is missing or blank is now refused with401. Previously a validated token without a subject authenticated as a principal literally namedunknown, and that fabricated identity was stamped into the audit trail; an unattributable caller is now rejected instead of silently mis-attributed. -
Configuring both a symmetric secret (
auth.oidc.hmac_secret/_file) and a static JWKS (auth.oidc.jwks_json/_file) is now a boot-time configuration error naming both keys. Previously the server silently used the symmetric secret and ignored the JWKS. -
An unreachable or unresponsive OAuth2/OIDC issuer no longer stalls bearer-token requests or hammers the issuer with outbound connections. The client that fetches the issuer’s discovery document and JWKS now carries explicit timeouts, and a failed fetch is remembered briefly, so bearer requests during an issuer outage are refused fast instead of each one opening a fresh connection and waiting for the operating system’s TCP timeout. Three new
[auth.oidc]keys tune this (they apply only when signing keys come from discovery — that is, when neitherhmac_secretnorjwks_jsonis set):connect_timeout_ms(default3000),request_timeout_ms(default5000), andnegative_cache_ttl_seconds(default10,0disables). Successfully fetched keys keep their existing five-minute lifetime, and recovery is automatic once the negative entry expires.
Security
-
Release tags are now protected by a ruleset. Three lanes publish off a raw tag push — the release, the Helm chart, and the documentation version cut — and until now the tags driving them could be created, moved or deleted freely. A
release-tagsruleset onrefs/tags/v*blocks tag deletion and non-fast-forward tag updates and requires signatures, codifying the signed-tag practice the project already followed. Release immutability protects the window after a release is published; this protects the window in which a tag drives a build, an image push and a chart publish.SECURITY.mdnow records the full expected repository security posture, with the two read-back commands that detect a settings reset. -
Every release tarball now ships a
.sha256sum. It is the only verification available to an operator with neitherghnorcosigninstalled, which is what a locked-down clinical environment tends to be. The documentation is explicit that a checksum detects a corrupt download and not a substituted release — only the Sigstore bundle answers “who built this”. -
A release now carries an SPDX SBOM of the repository, generated from the release commit, alongside the per-binary CycloneDX SBOM and the per-image SPDX SBOM. The three answer different questions — what is inside the binary I am about to run, what am I redistributing and under what terms, and what is in the image’s OS layer — and the security chapter now says which is which, so a reader picks the right one instead of assuming they are redundant. The CycloneDX specification version (1.5, the highest the generator emits) is recorded with its reason.
-
The release asset-completeness guard now matches asset names exactly. It compared by substring, so the check for the
.tar.gzwas satisfied by.tar.gz.sigstore.jsonalone and a release missing its actual tarball would have been published — unfixably, since publishing freezes a release. It now requires a whole-line match, and additionally checks the checksum, the repository SBOM and the quickstart compose files. -
Dependabot now covers the fuzz workspace and the container base images. The fuzz harnesses are a separate Cargo workspace with their own lock file that a
cargoentry at the repository root could never reach, so they were receiving no security bumps. The three base images are digest-pinned, which is correct for reproducibility and means they never receive a patch unless something proposes one — so the weekly image scan kept finding CVEs in the clinical images while nothing offered the fix. -
The admin console’s
Content-Security-Policyno longer allows inline scripts.script-srcis now'self' 'wasm-unsafe-eval' 'nonce-…', where the nonce is freshly generated for every response and stamped on the only inline script the console emits — Leptos’s hydration bootstrap and its resource-serialization chunks. An injected inline script no longer runs.style-srckeeps'unsafe-inline', because the console’s component library creates its stylesheets in the browser through the DOM without a nonce attribute; adding a nonce there would suppress the inline allowance under CSP Level 3 and leave the console unstyled, so the allowance stays with its reason recorded rather than being traded for a policy that looks stricter and works worse. -
The error-body hygiene check now also covers Service Model faults (
SmError::exceptionandexception-coded call statuses), which are a second route to a500response body it previously did not inspect. Three boot-time terminology and subject-proxy failures were rewritten to keep the underlying diagnostic out of the message and carry it as an error cause instead, so it reaches the server log and never a client. -
Every one of the 20 GitHub Actions referenced by the build, test, release and publish pipelines is now pinned to a full commit SHA instead of a mutable tag, so a retagged or compromised upstream release can no longer change what runs against the tokens that publish this project’s releases, container images and crates. Each pin carries its human-readable version in a trailing comment and was verified to belong to the named repository.
-
38 of the 40 repository checkouts in CI no longer leave the job’s API token in
.git/configfor the rest of the job (persist-credentials: false), so a later step — a third-party action, a build script, an uploaded artifact — can no longer pick it up and push with it. The two exceptions are the documentation jobs that genuinely use git against the remote, and both are now annotated with the reason. -
All nine workflows now start from
permissions: {}and grant each job only what that job actually uses, so write access to releases, packages, issues or Pages exists in the four jobs that publish and nowhere else. Previously a single workflow-level grant applied to every job in the file —contents: writeto all ofrelease.yml,packages: writeto all ofcontainers.yml— andcodeql.ymldeclared nothing at all and inherited the repository default. -
The release tarballs and the crates.io uploads are now built with no compile cache at all, so a published artifact can only contain bytes produced from the tag being released. Both lanes were silently restoring one: the toolchain action they use enables caching by default, which the release job’s own comment already assumed it did not.
-
The per-architecture release tarballs are now built from the exact commit the release notes were read from, resolved once and passed on as a SHA, instead of each job resolving the release tag separately. A tag that moved between the two jobs could previously publish assets that did not match the release they were attached to.
-
The build pipeline is now itself statically analysed on every pull request: a new
zizmorgate audits the workflow definitions, and CodeQL analyses them as source alongside the Rust code. The properties above therefore cannot silently regress — an unpinned action, a checkout keeping its credential without a recorded reason, or a context value spliced into a shell command each fail the build. -
The PGP signing private key is no longer world-readable inside the pod. The
secretsvolume was projected at0440, but the siblingconfigvolume carried no mode and so defaulted to0644— and that volume holds everyconfig.filesentry, whose documented use includes the PGP signing private key (signing.key_path), mutual-TLS PEMs and a JWKS blob, plusferroehr.tomlitself when the configuration holds a secret the chart cannot route out. Now0440, matching the secrets volume. Verified on a live cluster: the applieddefaultModeis 288 (0440) and both server pods read their configuration and became Ready.
3.17.3 - 2026-08-05
Added
- Archiving an EHR or a party (
POST /admin/archive/ehrs,POST /admin/archive/parties) now physically moves the archived objects’ rows out of the primary storage tables into a cold storage tier held in the same database (a newcoldschema, added by migration0007_cold_archive_tier), instead of only flagging them. The primary tables — and their indexes — shrink by exactly what was archived, while the wire is unchanged: an archived EHR, composition, folder or party is still retrievable, still carries its full revision history, and is served from the cold tier; unarchived reads are untouched and never consult it. Writing to an archived object brings it back automatically, a physical delete clears both tiers, and an admin export still dumps archived content. Multi-tenant isolation is enforced on the new tier by the same row-level-security policy as the primary tables. ferroehr-ext— the optional-integration crate. The FHIR conversion core (mapping model + FLAT builder, outbound reverse-map, feeder-audit probe), the events transport (theEventPublisherseam, the AMQP publisher, the routing-key grammar), and the multimedia engine (content-addressed S3-compatible blob store + offload/expand transforms) now live in their own crate behind one additive cargo feature each (fhir,events,multimedia). Default builds are unchanged (all features on, wire-identical); a--no-default-featuresbuild produces a slim CDR that compiles the integrations out entirely and refuses an enabled-but-unbuilt integration loudly at boot. Configuration sections are unchanged and stay in the one config tree.- The typed FHIR R4B surface. The ATNA
AuditEventthe audit trail stores and forwards, and theParameters/ValueSetresponses an external terminology server answers with, are now built and read through a typed FHIR R4B resource model (fhir-model, contained entirely in the optional-integration crate behind itsfhirfeature) instead of hand-written partial structs. The audit wire bytes are unchanged. The terminology client is correspondingly stricter: a server response that is not a valid R4B resource — for example a$expandresult missing the requiredValueSet.statusorexpansion.timestamp— is now reported as an upstream fault instead of being partially read, and its response cache holds decoded results rather than raw JSON. A binary built with--no-default-featuresrefuses at startup whenaudit.store,audit.fhir_feed, or an external terminology provider is configured; the DICOM/syslog audit feed and the in-process terminology bundle stay available. - The OPT 1.4 constraints that target computed RM functions (
EVENT.offset,DV_PROPORTION.is_integral, the US-spellednull_flavor) are now visible as a typed per-template report of unenforceable constraints instead of a silent skip; nothing new is rejected. - The BMM v3 model gains MODEL-level navigation (
type_conforms_to, ancestor walks, flattened property lookup) and generic-substituted property synthesis per the LANG generic-inheritance semantics; a new P_BMM schema-validity pass reports duplicate package listings, case-folded class-name collisions, and non-conformant property redefinitions with spec citations. - The Expression Language has a native parser (hand-written over the vendored normative EL grammars): BMM_ASSERTION class invariants and routine pre/post-conditions in the BMM v3 model now parse into the published EL expression classes, with unparseable published-schema invariant strings collected as typed findings (319 of 400 pinned-schema strings parse; the remainder are Eiffel-flavoured forms the normative grammar does not admit, reported upstream).
- ADL rules and slot assertions are now modeled as full expression trees
(the BEL expression object model), with the string form derived from the
tree. Printed ADL 2 output changes minimally where the old form was
wrong: each assertion in a multi-assertion block carries its own string
form (previously the whole block repeated),
include/excludeemit their keyword once per list per the grammar, a symbolic∈prints asmatches(one operator in the model), and an archetype-id constraint’s; "assumed"value is no longer dropped.
Changed
- The
openehr-adlserializer seam is fallible.openehr_adl::print::printandopenehr_adl::print::assertion_textnow returnResult<String, openehr_adl::print::PrintError>. An in-memory archetype whoserulesassign anEXTERNAL_QUERYis refused instead of serialized with the assignment’s right-hand side silently empty: no released grammar spellsEXTERNAL_QUERY, so no rendering of it could be valid ADL. The same refusal now covers a function-call expression node carrying no string name and a value-reference node carrying no string path — the two remaining shapes the printer used to render as empty text. Printed text for every other artefact is byte-identical. - Served OpenAPI descriptions no longer reference the internal conformance register (“register-documented …”); each affected description states its adjudicated handling with the released citation it already carried. Wire behaviour is unchanged.
- The documentation site’s comparison chapter (and every page that echoed it) no longer frames EHRbase as “upstream”: FerroEHR and EHRbase are presented as two independent open-source openEHR CDRs measured by the same neutral instrument. The rendered comparison charts and generated tables carry the new labeling; provenance and licensing statements are unchanged.
Removed
- BREAKING: the deprecated
auth.admin_scopeconfiguration key is retired. The management surface’sAdminOnlyaccess level now gates on the RBAC admin role (authz.rbac.admin_role, defaultADMIN) — the same gate every Admin-class API operation already uses. Deployments that disabled RBAC keep the previous behaviour (any authenticated caller passesAdminOnly); deployments that setadmin_scopeshould grant the admin role instead (a JWTscopeentry naming the role continues to surface as that role via scope→role extraction).
Fixed
- A CONTRIBUTION commit whose version
datacannot be converted to its RM resource — an empty mandatory1..*container, a missing mandatory attribute — is now refused as400 Bad Request, exactly as the same bytes are refused on every direct commit route, instead of422. The commit seam runs the same strict canonical-JSON door the direct routes run (the releasedresponses/422.yamlscopes 422 to content that “could be converted to a resource”); demographic party and party-relationship bodies take the same correction. Incomplete (553) commits keep their master06 relaxation. EHR_ACCESS.settingsnow constructs typed: the spec leavesACCESS_CONTROL_SETTINGSopen for scheme-defined subtypes, and the generated model carries such an instance verbatim through a validated open-subtype carrier instead of refusing every legal scheme instance. Canonical JSON round-trips a scheme instance byte-identically; canonical XML — which defines no mapping for scheme members — refuses one honestly instead of dropping content.- Commits into an OPT 1.4 archetype slot are now checked against the slot’s
allowed archetypes. The slot’s
include/excludearchetype-id patterns were read only from each assertion’s optionalstring_expressionstring, which most operational templates do not emit — so for those templates the slot admitted any archetype of the right RM type, and a composition carrying a filler the template never allowed was accepted. The patterns are now read from the assertion’s expression tree (the constraint itself), with the string form used only as a fallback, so slot fillers are validated against what the template actually constrains. Templates whose assertions did carry the string form behave exactly as before, and a slot whose assertion constrains something other than the archetype id stays open as before rather than being narrowed by a pattern that does not apply to it. - Uploaded OPT 1.4 templates no longer lose their archetype-slot
constraints. The XML codec discarded the content of every element the
schemas declare as
xs:anyType, which on an operational template is theEXPR_LEAF.itemcarrying each slot assertion’s archetype-id regex and its left-hand attribute path — so every OPT 1.4 slot constraint read back empty. Such an element is now kept verbatim (attributes, text and child elements) and re-serialized unchanged, so slot patterns survive a template round-trip and the OPT-to-ADL2 conversion and template-validation paths that read them now see the real payload. Canonical RM XML is unaffected. - A served Web Template (
application/openehr.wt+json) no longer reports a field as mandatory when the template leaves it optional. A node’sminwas taken from the constraint’soccurrencesalone, ignoring the owning single-valued attribute’sexistence; the two are orthogonal, and for a single-valued attribute existence is what governs presence. So an optional attribute carrying a1..1-occurrences constraint — for exampleISM_TRANSITION/careflow_step, which openEHR declares optional — was published asmin: 1.minis now the lower of the two. Container attributes, nodemax, and commit-time validation are unchanged. - ADL2 slot-narrowing validation (VDSSM) no longer stops at the first
include it cannot read. A specialised
ARCHETYPE_SLOTwhoseincludelist mixes archetype-id regexes with constraint-based assertions was skipped entirely, so a genuinely widening literal after such an assertion went unreported. Eachincludeis now judged on its own — an unreadable one is skipped, the rest are still checked. Symmetrically, no widening is claimed when the PARENT slot’s admitted set is itself unreadable, and a restatement is now judged over all assertions rather than the regex ones alone, so neither case invents a prohibition. - Flattening a specialised archetype no longer drops an inherited tuple
constraint. A child node’s
[a, b]attribute-tuple wholly replaced the flat parent’s tuple set, so a parent tuple over a disjoint attribute group silently vanished from the flat form (and from every operational template and Web Template built from it). Tuple overlay now merges by member-attribute group: a child tuple redefines the parent tuple over the same group, tuples over other groups are inherited, and a group the parent does not carry is added. - A ROLE carrying an empty
capabilitieslist (and a party carrying an emptyrelationshipslist) is now refused at parse (400) — the RM invariantsCapabilities_valid/Relationships_validityforbid present-but-empty; the generated model now emits these optional lists asOption<NonEmptyVec<…>>(the emitter’s invariant matcher learned the BMM’s.emptyspelling and conjunction form), so a lenient acceptance is unrepresentable. - Template-mediated Simplified-Format commit failures now answer
422instead of400: a missing mandatory ctx field (language/territory), a|codeoutside a closed value set with no|value, a datatype mismatch, or any other post-conversion validation failure of a body that was readable as FLAT/STRUCTURED (register entries AMB-207/AMB-208). Refusal messages now name the actual defect. Template-independent FLAT syntax violations (|otherconflicts, malformed keys) keep answering400. - The six missing-mandatory conformance expectations, the
create_ehrandupdate_directorybinding outcomes, theinvalid-other-detailsfixture, and the shared EHR-Extract import identity were corrected on the catalogue side after spec-adjudicated triage; the CNF runner’s ETag matcher gained released-grammar structural tokens for the object-id and template-id segments plus a validate gate that refuses un-resolvable matcher placeholders.
3.17.2 - 2026-08-04
Added
-
The eight
openehr-*spec crates are published on crates.io —openehr-base,openehr-rm,openehr-am,openehr-adl,openehr-term,openehr-lang,openehr-query,openehr-its— each with its own README, packaged license texts (MIT, plus Apache-2.0 where openEHR-derived material is embedded), and docs.rs documentation. Packages version on their own independent SemVer line (starting at0.0.x, permanently decoupled from the openEHR spec versions); the implemented spec version is carried by each crate’sSPEC_VERSIONconstant. Releases after the first go through an OIDC trusted-publishing workflow (publish-crates.yml) — no long-lived registry token (#1886). -
RM validation now realizes every remaining register-visible class invariant: RESOURCE_DESCRIPTION(_ITEM), AUTHORED_RESOURCE, EXTRACT and EXTRACT_UPDATE_SPEC gained generated invariant cores wired into the typed dispatch — the machine-classified Unrealized register is at ZERO rows (#1623); EXTRACT_SPEC criteria and OPT-carried REVISION_HISTORY refusals are pinned by twins (#1648, #1737).
-
EHR-Extract export now evaluates
EXTRACT_SPEC.criteria: AQL criteria queries select each entity’s primary set$ehr-bound (the entity’s EHR scopes the query and a literal$ehrparameter binds to its id); a non-AQL formalism or an unparseable criterion is refused with400. The former blanket criteria refusal is gone (#1736). -
On-demand CPU flamegraph of the running server:
GET /management/flamegraph— a new opt-in management endpoint (default off, like the whole surface) that samples the process with an in-processpprofprofiler for a bounded window and answers with the rendered flamegraph SVG.seconds/frequencyquery parameters are capped by the new[management.profiling]config keys (max_seconds,max_frequency); a request beyond a cap is refused with400, a concurrent sample window with409. No openEHR spec governs the management surface — our own operational extension (#1861). -
Span-timing flamegraph capture: the new
telemetry.flame_fileconfig key installs atracing-flamelayer that writes folded stack samples of every span to the given file for offline rendering with inferno (inferno-flamegraph < file > flame.svg) — the async-attribution complement to the sampled-stack endpoint. Unset (the default) the layer is not installed at all. Our own telemetry extension (#1862). -
EHR Extract import now enforces the copy closure (RM common master06 §Copying): a received branch version is refused with
400unless its fork-point trunk version and same-branch predecessor travel in the same extract or are already stored (#1770). -
FOLDER (DIRECTORY) resources can now carry ITEM_TAGs. ITS-REST overview
Requests_and_responses.md§openehr-item-tag and openehr-version-item-tag names FOLDER among the change-controlled resources the wrapper headers associate tags with, and the DIRECTORY write routes have always carried those headers — but the tag store rejected the FOLDER target type, so a tagged directory commit answered409with a raw PostgreSQL constraint string AFTER the directory version had already been created. FOLDER tags now store, echo and appear in the EHR-wide tag listing (GET /ehr/{ehr_id}/tags). No dedicated/directory/…/tagsroutes appear: the release defines none, and a FOLDER tag is reached through the wrapper headers and that listing. -
Tag mutations emit IHE ATNA audit records. Creating, replacing or deleting ITEM_TAGs now leaves an audit trail under the tagged resource’s own DICOM class. openEHR is silent here — tags are outside change control, so they correctly produce no CONTRIBUTION and no AUDIT_DETAILS, and no released text substitutes anything — so this is our own design for a clinical repository.
-
A
553|incomplete|commit may now omit mandatory data for every committable kind. RM commonmaster06§Incomplete Content states that in theincompletestate “mandatory attributes may be absent … single-valued attributes may have null values and container attributes may be empty, even though they may have minimum existence and cardinality respectively of one”, and that such data “respects the same template and archetype(s), but with all existence and cardinality lower limits set to zero”. Until now only the template/archetype layer relaxed, and only for COMPOSITION: a553commit whose content left a mandatory attribute absent or a1..*container empty was still refused422by the reference-model layer. It is now accepted — for COMPOSITION, FOLDER,EHR_ACCESSand the demographic party / relationship kinds, on the CONTRIBUTION route and on the direct COMPOSITION/DIRECTORY routes (viaopenehr-version: lifecycle_state.code_string="553").EHR_STATUSis unchanged: the CNF schedule holds that the incomplete state does not apply to it, pending SPECPR-368. Only the presence and lower-bound checks relax — types,_typeslots, terminology bindings, patterns, coded values and every other class invariant are enforced exactly as before, so anincompletecommit carrying data that is WRONG rather than merely missing is still refused (“data may be missing, but it may not be wrong”). -
The conformance catalogue can now state a CONTRIBUTION’s commit audit. A case’s
audit:block states only its delta against the derived envelope audit, and the reservedabsentsentinel omits a member outright — the seam the mandatory-member refusals need (RM commonUML/classes/org.openehr.rm.common.audit_details.adoc§Attributes makeschange_typeandcommitter1..1; the released OASspecifications/schemas/common/UpdateAudit.yaml§required lists both on the commit DTO). Three cases land on it: an omittedchange_type, an out-of-groupchange_typecode, and the conformant twin that states both members and proves the client-suppliedtime_committedis not the recorded one. Cases that already authored anaudit:block now actually put it on the wire. -
A case pins which lineage head a default EHR-Extract exports. With a trunk head and a branch head both open in one container, RM ehr_extract
master04-common_package.adoc§Version Specification never says which is the “latest available version”. The choice — the trunk head — is now adjudicated in the ambiguity register (AMB-206) and pinned byI_EHR_EXTRACT_SERVICE.export_ehr_extracts-latest_across_lineages. -
Canonical-XML responses are now checked against the published openEHR XSDs. A new gate serializes documents through the shipped codec and validates them with an XSD processor against both vendored ITS-XML bundles, and it records exactly where a served document and the schema its namespace declares disagree. The finding it makes visible: the
v1bundle openEHR still publishes as the STABLE one is frozen at an older Reference Model generation, so a document that is a correct RM 1.2.0 instance can carry attributes that bundle never declared —FOLDER.detailson a directory is the case you are most likely to meet, and 50 RM classes (EHR, EHR_STATUS, CONTRIBUTION, the demographic party types, …) have nov1schema at all. Nothing served changes: the default namespace is stillv1,Accept: application/xml; version=2still selectsv2, and the codec still writes the complete Reference Model rather than dropping clinical content to fit an older schema. Deployments that validate responses against the published XSDs should be aware that thev2lineage is the one that models RM 1.2.0 — and that it currently cannot be compiled by a standards-conformant XSD processor because of an invalid pattern in the upstream schemas. The full per-attribute breakdown ships in the conformance ambiguity register asAMB-185. -
A conformance case for a party’s inline, by-value relationships. A
PARTY_RELATIONSHIPis modelled twice and openEHR reconciles the two nowhere: the Reference Model stores it inside its source party (“the relationships attribute is by value”), versioned with that party and with no version container of its own, while the Service Model gives every relationship its own independently-addressed container. This server serves both, and they are disjoint — committing a party that carries an inlinerelationshipslist does not create a relationship container, and creating a relationship container does not append to any party’s list. The catalogue now pins the inline half: aPERSONcommitted with a by-valuePARTY_RELATIONSHIPis accepted and reads back with that relationship unchanged, unexpanded and un-repointed. Behaviour is unchanged; the adjudication ships in the conformance ambiguity register asAMB-187. -
New conformance cases for the LOCATABLE root rules and the feeder-system audit. The catalogue now pins the two refusals above from the wire side (a COMPOSITION root whose
archetype_node_idcontradicts its ARCHETYPED block; a COMPOSITION carrying an emptylinkslist; a COMPOSITION whose innerITEM_TREEcarries an emptyarchetype_node_id), and four cases coverFEEDER_AUDITend to end: a commit carrying audits at the COMPOSITION root and on an interior data node round-trips every modelled attribute (identifiers, inlineoriginal_content, both system audits, and the originating audit’sother_details), an update that retains the feeder audit keeps it on the new version, an update that drops it is accepted and does not carry it forward, and an update whose content is identical to the preceding version still creates version 2. -
Conformance cases for populated LINKs on a COMPOSITION. A commit carrying a complete
LINKat the COMPOSITION root and on an interior ENTRY now round-trips with both links intact (the accepting twin of the empty-linksrefusal), and aLINKwhosetargetis not anehr://URI is refused (422) — placed on the interior ENTRY so the case also proves the rule is applied below the resource root. -
Conformance cases for
FOLDER.items— the directory’s reference slot. The catalogue exercised directory folders, names, links anddetails, but never the attribute the whole abstraction rests on: a folder’sitemslist holds references to other objects, never the objects themselves, and the same object may be referenced from more than one folder (that is what lets one directory classify a composition as both an episode and a problem). A directory whose two sibling folders both reference the same target — beside a second, distinct target — is now committed and read back with both references intact, so a server that collapsed the duplicate would fail; and a folder that carries a composition by value initemsinstead of a reference to it is refused with422, leaving the EHR without a directory. Two further cases pin how wide an identifier that reference slot accepts. A folder reference may be version-pinned — its id a three-partOBJECT_VERSION_IDnaming one particular version of a composition — and it now round-trips with all three parts intact, so a server that truncated it to the leading UUID would fail. And a reference identified in a foreign scheme (aGENERIC_ID) is accepted and served back unchanged: the Reference Model types the slot atOBJECT_ID, whose family has six concrete members, while the published OpenAPI schema for the same slot enumerates only two — the adjudication ships in the conformance ambiguity register asAMB-186. -
Conformance cases for the ATTESTATION wire family. The catalogue now drives the
666|attestation|CONTRIBUTION member end to end: attesting an existing COMPOSITION version is accepted, adds no new version, reports the attestation-only aggregate change type, and surfaces the completedATTESTATIONon both the version envelope and the revision history; the pending-then-signed pattern leaves both attestation objects on the one version; and three refusal twins pin theATTESTATIONinvariants on the wire (a missingreason, a codedreasonwhose code sits outside the openEHR attestation reason group, and a present-but-emptyitemslist). AnORIGINAL_VERSIONcarrying attestations is also pinned as a canonical-JSON/XML serialization vector. An attestation carrying an inlineDV_MULTIMEDIAattested_view— the screen image of what was signed — now round-trips with its media type, size, inline data and alternate text intact on both the version envelope and the revision history. -
Conformance cases for the generic-package party and participation rules. A COMPOSITION whose context participation carries a bounded
DV_INTERVAL<DV_DATE_TIME>timeand whose ENTRY-level other participation carries an open-ended one now round-trips with every interval boundary intact, and four refusals pin the terminology and identity rules those classes carry: a codedPARTICIPATION.functionoutside the openEHR participation function group, aPARTY_RELATEDparticipation performer whose relationship code is outside the subject relationship group, and — on the commit audit’scommitter, which sits beside the committed content and is therefore missed by a content-only validation walk — the same out-of-group relationship, aPARTY_IDENTIFIEDcarrying none of name, identifiers or external reference, and one whose name is the empty string. APARTY_RELATEDcommitter with an in-group relationship is pinned as the accepting twin, so refusing that party type wholesale no longer passes. -
A conformance case for the third
PARTY_SELFreferral scheme. The RM names three ways to refer to the record subject from inside an EHR, and the catalogue only exercised two of them. A COMPOSITION whose interior ENTRY carries aPARTY_SELFsubject with a completeexternal_refPARTY_REF(id, namespace and type) now round-trips with that reference intact, so a server that dropped or refused a per-instance subject reference — a spec-supported deployment style — no longer passes the catalogue. -
A canonical-JSON output mode for the corpus fixture generator. The
openehr-itscanonical_convertexample now emits canonical JSON when the output path ends in.json(and handlesORIGINAL_VERSIONdocuments under the published<version>root), so a committed JSON fixture can be the codec’s own output rather than a hand-typed approximation of it. -
Every figure the vendored specs reference is now vendored too.
scripts/vendor/spec-docs.shadditionally fetches, from the same pinned commits, exactly the figures the vendored chapters reference: the 129 UML class-diagram SVGs ({uml_diagrams_uri}, underdocs/specs/openehr/<COMPONENT>/docs/UML/diagrams/) plus the 200 per-document diagrams and images ({diagrams_uri}/{images_uri}, under<COMPONENT>/docs/<doc_name>/diagrams/and.../images/). Spec chapters are now readable offline with their figures intact instead of carrying dangling links. Only referenced files are taken, byte-for-byte; a referenced figure missing at the pin fails the vendoring run.
Changed
-
The declared FHIR integration surface is now stated as R4B (4.3.0) everywhere — the served OpenAPI descriptions, configuration docs, and website pages previously said “R4”. Wire behaviour is unchanged: the resources FerroEHR touches (AuditEvent/BALP, terminology
Parameters/ValueSet, the inbound connector starter set) are byte-identical between R4 (4.0.1) and R4B (4.3.0); the/fhir/r4/…connector paths are unchanged (#1885). -
The
openehr-*spec crates are republished as0.0.3(lockstep): the generated sources are re-emitted in rustfmt-normalized form after the emitter changes that shipped with the typed-DTO campaign — no semantic change to any generated type or impl. -
The tenant admin API (
/admin/tenant) and the event-subscription admin API decode their request bodies into typed definitions: a field of the wrong JSON type ("enabled"as a string, a non-string predicate or name) is now refused with400naming the offending member, where it was previously coerced to a default or treated as absent. Well-typed requests are unaffected; the response record shapes are byte-identical (#1694). -
BREAKING (error class): the spec model is now complete-by-construction across every crate: the cross-schema re-emission closure applies uniformly (openehr-rm re-emits BASE’s
Interval/Iso8601family, am14 re-emitsAUTHORED_RESOURCE/RESOURCE_DESCRIPTION), and every0..1list carrying a present-implies-non-empty invariant is emittedOption<NonEmptyVec<T>>— a present-but-empty list ("links": [],"contacts": [],"mappings": [], …) now refuses with400at parse instead of422, on every strict write surface; the553|incomplete|relaxation is unchanged (#1699, #1730). -
BREAKING (v1-pinned XML consumers): the default canonical-XML lineage served for
application/xmlis now the ITS-XML v2 namespace (http://schemas.openehr.org/v2) — the only published schema bundle that models the RM 1.2.0 this server emits. The v1 lineage stays selectable per request withAccept: application/xml; version=1(a non-default v1 response is labelledContent-Type: application/xml; version=1). Request payloads are unaffected — both namespaces are read regardless (#1666). -
An
ITEM_TAGwhose key or value violates its own RM invariants is now refused when the payload is read, not after it is built. RMUML/classes/org.openehr.rm.common.item_tag.adoc§Invariants statesInv_key_valid(not key.is_empty and key.is_justified— no leading or trailing whitespace) andInv_value_valid(a present value must be non-empty) overITEM_TAG’s own fields. Both now run at the type’s construction door, which the canonical-JSON and canonical-XML readers build through, so an empty or whitespace-padded tag key is rejected at parse — in any document position, named by its path — instead of producing a value that existed in violation of its own class definition until something validated it. Tag requests that already conformed are unaffected. -
The canonical-JSON reader honours the default values the vendored meta-model states. A
Point_intervalpayload that omitslower_included/upper_included/lower_unbounded/upper_unboundednow reads back with the schema’s own declared defaults (included, bounded), matching whatProper_intervalandMultiplicity_intervalalready did — the meta-model states those four values onPoint_intervaland only there, and the reader had been ignoring them. -
BREAKING: a structurally invalid RM request body now answers
400, not422, and the commit audit’s coded members carry their released wire shape. The commit routes (COMPOSITION,EHR_STATUS, DIRECTORY, EHR creation, the demographic party and relationship routes, and the EHR-Extract import) decode the request body into the concrete openEHR type before anything else runs, so the strict canonical reader is what judges its shape. A body that is not an instance of the addressed class at all — a wrong or missing_type, an undeclared member, a repeated member, an absent mandatory attribute, an empty1..*container, a malformed identifier, a PERSON posted to/demographic/agent— is refused there, and the ITS-REST overview (Requests_and_responses.md§HTTP status codes) assigns that class400(“could not be parsed or is invalid”), reserving422for a body that is “well-formed but was unable to be followed due to semantic errors”. Bodies that ARE valid instances but break a semantic rule — a terminology binding, a template mismatch, a bodyuidnaming a different versioned object — keep their422exactly as before. In the same change the commit envelope adopts the releasedUpdateVersion.yaml/UpdateAudit.yamlshapes end to end:lifecycle_stateandcommit_audit.change_typeareDV_CODED_TEXT({"value": …, "defining_code": {"terminology_id": {"value": "openehr"}, "code_string": "532"}}) rather than the flatTERMINOLOGY_CODEspelling,commit_audit.descriptionis aDV_TEXTobject rather than a bare string (so a description may now be CODED when it travels in the body — theopenehr-audit-detailsheader still carries only the plaindescription.value), andcommit_auditaccepts itsUPDATE_ATTESTATIONsubtype, which the released schema’s discriminator has always allowed and which RM commonmaster06§Committal and Audits names (“AUDIT_DETAILS… or its subtypeATTESTATION”). The committal request headers, the CONTRIBUTION route and every response body are unchanged. Simplified-Format (FLAT/STRUCTURED) input failures split along the same line: a TEMPLATE-INDEPENDENT format violation — a key breaking the FLAT field-identifier grammar, actx/key outside the master06 vocabulary, the forbidden|other+|code/|value/|terminologycombination — is400(the document is not readable as FLAT), while template- or RM-mediated conversion failures (an unknown path, an undefined suffix, a missing mandatoryctxfield, a closed value set) keep the composition endpoints’ own422. -
BREAKING (canonical XML): a version read now serves the
<version>document element the published XSDs declare, instead of<original_version>/<imported_version>. ITS-REST overviewResources.md§“XML Format” requires that “both request payloads and responses MUST conform to the [published XSDs]”, and the ITS-XML schemas declare exactly one document element for a VERSION —<xs:element name="version" type="VERSION"/>— over an ABSTRACTVERSIONtype; neither published lineage declares an element named after a concrete subtype. The concrete class therefore rides on the root’sxsi:type(ORIGINAL_VERSIONorIMPORTED_VERSION), as XML Schema requires of an instance of an abstract type. EveryGET .../versioned_composition/{uid}/ version[/{version_uid}]and.../versioned_ehr_status/...read requested withAccept: application/xmlis affected, in both the v1 and v2 lineages. A schema-validating client rejected the old roots; a client that pattern-matched on them must now read<version>plusxsi:type. Canonical JSON is unchanged (the envelope keeps its_typeself-tag), and no other resource’s root changes. -
lifecycle_stateis now required on every CONTRIBUTION version (400). SMmaster03§Version Update Semantics says “Thelifecycle_statemust be supplied in all cases”, and the releasedUpdateVersionschema lists it underrequired; a member that omitted it was previously accepted and silently defaulted to532|complete|. A666|attestation|member is exempt — it commits no new version, so it has no version lifecycle state to supply. -
A
DELETEon a change-controlled resource now refuses a committal header that names a lifecycle other than523|deleted|(400). The header was previously parsed and discarded, leaving a client believing an instruction had been merged that was not; aDELETEcommits the logical-deletion procedure, which fixes the state. ADELETEwith no lifecycle attribute is unaffected. -
other_input_version_uidsis refused on the CONTRIBUTION write wire (400). The releasedUPDATE_VERSIONschema declares no such property (andNewContribution.versionsitems areUpdateVersion), so the merge commit has no released shape — the same absence the import commit has. Merge provenance stays produce-only: it is still served onORIGINAL_VERSIONreads, and it is still preserved verbatim by the EHR-Extract import and the archive load, which reproduce a foreign version unchanged. -
422 Unprocessable Contentmessages now follow one uniform shape —<RM attribute path> <what is wrong> (<invariant name>), for exampleATTESTATION.items must be a non-empty list when present (ATTESTATION.Items_valid). Internally the service layer carries every such refusal as structured data (the attribute path, the named openEHR invariant, and the nested class-invariant violations a validation pass produced) instead of a pre-formatted sentence, and renders it into the response body exactly once, at the REST edge. Most messages are byte-identical to before; the remainder were reworded into the uniform shape (chiefly the CONTRIBUTION version rules, item-tag rules, operational-template rules,PARTY_REFrefusals, and theVERSIONED_COMPOSITIONcross-version invariants, where an attribute is now writtenCOMPOSITION.categoryrather thanCOMPOSITION category). APARTY_RELATIONSHIPwith an absentsource/target, and a party with an emptyidentitieslist, are now reported by the RM decoder that already refuses them rather than by a second hand-written check — same422, different wording. Response body SHAPE, status codes and allvalidationErrors[]contents are unchanged, and the422body is spec-silent (responses/422_COMPOSITION.yamldeclares no schema), so no declared contract changes. -
A canonical-JSON object that repeats a member name is now REFUSED with
400, naming the repeated member. The reader previously let the last occurrence win. RFC 8259 §4 says object member names “SHOULD be unique” and that “when the names within an object are not unique, the behavior of software that receives such an object is unpredictable”, and no conformant openEHR writer emits a repeated member — every attribute is written once, in model declaration order — so a repeated member is refused rather than silently resolved to one of its values. This applies to the_typediscriminator as well as to modelled attributes. -
Canonical-JSON refusal messages now carry the full JSON path to the offending node (for example
(at $.content[0].data.items[2].value)), so a client can locate the defect in a large document without bisecting it. The refusal wording itself is unchanged in kind: the offending member, the class that does not declare it, and the members that class does declare. -
The canonical-JSON lexeme for a REAL in exponent form now writes a signed exponent (
1e+21rather than1e21). No openEHR specification governs the rendering of a REAL — both forms denote the same value and RFC 8259 §6 admits both — and the new form is what the reference JSON encoder produces. Only magnitudes outside the plain-decimal window (roughly1e-5to1e16) are affected; no clinical quantity in the conformance corpus changes by a single byte. -
A canonical-JSON payload carrying an attribute the openEHR RM does not declare is now REFUSED with
400, naming the path and the offending member. The reader previously ignored an undeclared key. It is refused because that is the only reading under which the JSON and XML encodings of a resource share one data model:ITS-REST/specifications/docs/overview/ Resources.mdrequires an XML payload to validate against the ITS-XML schemas, which declare no wildcards — an undeclared element cannot validate — and states the same for the JSON encoding atSHOULDstrength, while openEHR’s own published ITS-JSON schemas close 128 of their 134 object definitions withadditionalProperties: false. The status is400rather than422because a document the reader cannot read never converts (the released status table:400is content that “could not be parsed or is invalid”;422is content that is “well-formed but was unable to be followed due to semantic errors”). The set of accepted attributes is the RM at this server’s pinned version, so a payload that is valid openEHR is unaffected; a client sending a private extension member must move it into a modelled slot (for exampleITEM_TREEother_details, or aFEEDER_AUDIT). -
A malformed identifier is now refused wherever it appears in a document, not only in a request path.
HIER_OBJECT_ID,OBJECT_VERSION_ID,VERSION_TREE_IDand theUIDfamily are built through a constructor that runs the released identifier grammar (BASE/docs/base_types/master05-identification_package.adoc§Syntaxes), and the canonical JSON and XML readers construct through it — so an identifier such asPractitionerRole/12345-mockin aPARTY_REF, or a one-part value taggedOBJECT_VERSION_ID, is rejected at parse with400instead of being stored and served back. -
UpdateItemTagrequest bodies reject undeclared members. The released OAS declares the schemaadditionalProperties: false, so an unexpected member is now a400rather than being silently dropped. -
A committer
external_ref.idsupplied through theopenehr-audit-detailsheader must be a well-formedHIER_OBJECT_ID. A malformed value is refused with400instead of being written into the commit audit. -
OBJECT_VERSION_IDvalues on the wire are now checked against the full openEHR identifier grammar. A version identifier in a request path, anIf-Matchheader or aVERSION.uidpreviously only had to have three::-delimited parts with a well-formed version-tree id; itsobject_idandcreating_system_idparts are now also required to be legaluidvalues — an ISO OID, a UUID, or an internet id (BASE/docs/base_types/master05-identification_package.adoc§Syntaxes). Values such asbad id::sys::1or1234-5678::sys::1, which no conformant client sends, are refused with400instead of being accepted; every identifier the spec admits is unaffected. The same grammar now backs the validating constructors ofHIER_OBJECT_ID,OBJECT_VERSION_IDand theUIDfamily, so a malformed identifier cannot be built through them. -
AQL now rejects an
[archetype_node_id='…']predicate whose value is neither an archetype identifier nor a node code.CONTAINS COMPOSITION c[archetype_node_id='openEHR-garbage']used to be planned as an archetype constraint that could never match (a200with an empty result set); such a value is now a400naming it. The QUERY spec defines that bracket predicate as equivalent to the archetype ([openEHR-EHR-…]) and node ([at0002]) shortcut predicates (QUERY/docs/AQL/master03-syntax.adoc§“Archetype predicate” / §“Node predicate”), so those two forms are its whole admissible operand set — matching what the RM letsLOCATABLE.archetype_node_idhold. Well-formed archetype ids and at/id codes are unaffected. -
Operational-template upload now enforces AOM2 VCACA’s numeric arm. A template that states a container cardinality wider than the reference model’s — for example
CLUSTER.items cardinality {0..3}against the RM’sList<ITEM> [1..*]— is refused with422naming the rule (AM/docs/AOM2/master04.5-constraint_model-class_definitions.adoc§VCACA;master08-validation.adoc§Validate Definition). The fully-open{0..*}that published templates commonly carry is not affected: ADL 1.4 makesC_MULTIPLE_ATTRIBUTE.cardinalitymandatory where AOM2 makes it optional and set “only if it overrides the underlying reference model”, and cADL’s open constraint means “any value permitted by the underlying information model” (AM/docs/ADL1.4/master05-cadl.adoc§“‘Any’ Constraints”), so an open interval states no override and defers to the RM. Every template that uploaded before still uploads. -
Commit-audit and EHR-resource validation failures now report through the structured error body. The
AUDIT_DETAILS.committerand theEHR_STATUS/EHR_ACCESS/ FOLDER / demographic-party commit checks are now produced by the shared Reference Model validator instead of duplicated by hand, so the same defects are refused with the same422status but render as the openEHRErrorobject ({ message, validationErrors[] }) rather than a flat message — the shape every other validation failure already used. The one message-detail change: aPARTY_RELATEDcommitter whoserelationshipcode is outside the openEHRsubject_relationshipgroup is still refused namingRelationship_valid, but no longer echoes the rejected code. -
System-generated commits are now attributed to the product’s own identity. A write with no authenticated principal (auth disabled, or an internal write such as an import or a synthesized composition) records an
AUDIT_DETAILS.committerofPARTY_IDENTIFIEDnameFerroEHR. It previously readEHRbaseon the service paths andferroehr.localon the REST adapter path; all layers now emit the one value. The deployment’s configuredsystem_id([server] system_id, the value stamped intoAUDIT_DETAILS.system_id,EHR.system_idand everyOBJECT_VERSION_ID.creating_system_id) is unchanged and stays separately configurable. Audits already committed keep the committer they were written with. -
Audit, attestation and revision-history wire bodies now follow canonical BMM field order.
AUDIT_DETAILS,ATTESTATION,REVISION_HISTORYandREVISION_HISTORY_ITEMare built as their RM types and serialized through the canonical codec instead of being assembled by hand, so every such body — the versioncommit_audit, the CONTRIBUTION audit, and both the EHR and demographic revision histories — now carries_typefirst followed by the Reference Model’s own attribute order. Only key order changes; the same attributes with the same values are emitted, and JSON key order is not semantic, so parsing clients are unaffected. -
Malformed attestation fields are now refused instead of stored.
ATTESTATION.attested_view,proofanditemsused to be copied into the stored attestation without being read; a submission whoseattested_viewis not aDV_MULTIMEDIA, whoseproofis not a string, or whoseitemscarry a member that is not aDV_EHR_URIis now rejected with422naming the offending attribute (and, foritems, its index). -
Outbound openEHR spec-defect reports moved to the issue tracker. The
docs/conformance/upstream-reports.mdledger is deleted; every report is now a GitHub issue labeledupstream-report(what the released spec says, what this implementation does, the resolution sought). The ambiguity register’supstream_reffield is renamed toupstream_issueand carries the GitHub issue number — the publishedambiguity-register.schema.jsonchanged accordingly.
Removed
- The AQL
RESULT_SETno longer carries a top-levelid. Responses fromPOST/GET /query/aqland the stored-query execute routes previously added anidfield holding a freshly minted UUID. The released ITS-RESTResultSetschema declares exactlymeta,name,q,columnsandrowswith noadditionalProperties, so the wire has no slot for it and the field was an undeclared property on a closed object schema. Clients that readidshould use the response’sETagheader instead — the released ITS-REST text names it “a unique identifier of the resultSet” (query/Request.md§“Common Headers and Query Parameters”), and it is unchanged by this removal.
Fixed
-
Licensing coverage corrected (#1883): the vendored openEHR specification text and the CKM-derived clinical models are CC-BY-SA 3.0 (per-file
licencemetadata for clinical models), not Apache-2.0 as the README previously implied. The repo now ships the CC-BY-SA 3.0 text (LICENSE-CC-BY-SA-3.0), vendors each upstreamLICENSEalongside its tree, records the license in every vendored tree’sPROVENANCE.md, and the documentation site gained a Licensing & legal page with the full reckoning. FerroEHR’s own code stays MIT; the openEHR machine-readable artifacts and test corpora stay Apache-2.0. -
EHR-Extract import: the copy-closure check now matches the fork-point trunk version with ANY creating system (RM common master06 §Distributed Versioning — a branch legitimately forks off a foreign trunk);
/management/flamegraphanswers a well-formed SVG instead of a zero-byte body when the sample window catches an idle process. -
CNF runner: an unresolvable
<name>placeholder in an outcome header matcher is now a loud case failure instead of silently wildcarding to.*; the structural tokens<n>/<system_id>resolve to their real grammars, and outcome matchers see the same merged variable scope as request building (#1852). -
AQL
LIKEandmatchespredicates on multi-valued paths now use the existential (any-match) lowering the comparison operators already use — a row is matched when ANY node on the path satisfies the predicate, instead of an order-undefined single-node pick (#1448). -
The admin EHR dump/load archive now carries every
vo_attestationrow (with itsat_committalflag), and load re-persists them verbatim — a restored version keeps its attestations and its stored signature verifies underverify_on_read = strict(#1685). -
A node id carrying the at/id code leader but failing the code grammar is refused (
at0abc). AOM2’s own code predicate is leader-based, so such a string claims code-hood and must satisfy the code syntax — previously it fell between the code family (whose grammar it fails) and the free-text family (whose leader-freedom it lacks) and no rule caught it. -
The
OPTIONS /conformance manifest serves the generated contract DTO, and the System API group joins the authorization and audit classifiers. The manifest body is now the emittedOptionsDTO (byte-identical wire; a lockstep test pins the served OpenAPI’s documentation shape to it), the System route table joins the RBAC route map explicitly, and the operation carries explicit authorization (any authenticated principal) and audit (application-activity) classifications instead of the fail-closed defaults. -
A malformed ITEM_TAG refuses at construction, not after the fact. The generated
ItemTagtype gains a validated constructor running its RM invariants (Inv_key_valid/Inv_value_valid), so a violating tag cannot exist as a typed value anywhere in the application — the JSON and XML readers refuse it at parse, path-named. Wire statuses are unchanged (the tag routes’ 422 mapping stays); a stored tag row that no longer constructs is reported as the server fault it is instead of being served. -
An undeclared key on a CONTRIBUTION version member is refused (
400, named at its member path) instead of silently ignored. The released commit wire declares exactly six member properties (UpdateVersion.yaml) plus the adjudicated_typeself-tag; the member seam was the last non-strict reader, accepting arbitrary extra keys without a diagnostic while every other read surface refuses them. -
A CONTRIBUTION whose audit omits
committeris now refused (422) instead of being attributed to the server’s default identity. The same released commit schema that requireschange_typerequirescommitter(NewContribution.yamloverUpdateAudit.yaml), and a server-invented committer would put an identity the client never named into the audit trail. The direct COMPOSITION/DIRECTORY routes are unchanged — there the committal headers stay optional and the authenticated default applies, exactly as the ITS-REST overview requires. -
An emptied ITEM_TAG collection is echoed as no header, never an empty one. The EHR-side write routes echoed an EMPTY
openehr-item-tagheader when the stored collection was empty — but the empty header value is the release’s “remove all ITEM_TAGs” request instruction, so a mirroring client would read the confirmation of its own wipe as an instruction to wipe again (harmless) or, worse, treat state responses as carrying the destructive form. Both echo paths now share one rule: an empty collection emits no wrapper header. -
Terminology failure bodies no longer disclose deployment configuration on the remaining two surfaces. A terminology 404 named WHICH configured provider answered, and a commit whose archetype constraint binding had no configured terminology route answered a 500 revealing that routing gap; both bodies now carry only what the client can act on, with the operator detail on the trace record — completing the operator-detail adjudication for the terminology surface.
-
The generated ITS-REST contract is typed end to end. The
emit-restgenerator resolved$refs before emitting, so every request/response body and parameter lost its schema name and the trait/DTO surface degraded to untyped JSON values; RM/BASE payload references likewise degraded on a rationale that expired with the foundation rewrite (the spec types carry emitted strict serde impls). Body and parameter references now keep their names, RM/BASE references resolve to the typed spec structs — making every DTO field strict by construction — and adiscriminator.mappingschema (Versionable) emits a real_type-dispatched enum instead of an untyped alias. Remaining untyped spots are honest: anonymousoneOfresponses, query result rows, and schema-less OPT objects. -
A node claiming a
_typeforeign to its slot is now refused everywhere, from the RM model. The whole-instance validation pass dispatched each node on its own wire_type, so a tagged object sitting in a slot declared as something else was validated as the type it claimed to be — aDV_TEXTinsideCOMPOSITION.content(declaredList<CONTENT_ITEM>) validated cleanly as a DV_TEXT. One model-driven rule now asserts every tagged node (root, single slots, and list members alike) conforms to its slot’s declared RM type, read from the generated BMM attribute model; a scalar member of a class-typed list slot is refused the same way. The rule never relaxes on a553|incomplete|commit (“data may be missing, but it may not be wrong”). The hand-written FOLDER member checks this replaces are removed; their refusals now come from the general rule. -
The conformance suite’s spec-citation gate now resolves the cited document and section. It previously took only the second whitespace token of a citation and asked whether ANY path under the component directory contained it as a substring, so a citation naming a real component plus any common word passed even when the document and §section did not exist. The gate now resolves the whole path hint to a real vendored document (or chapter directory) and verifies every
§sectionnames a real section of it — following theinclude::directives that pull the UML class and interface tables into a chapter, and reading the class tables’ own labels, the markdown chapters’ titles, the AM validity-rule anchors and the OAS files’ keys. It also covers the citations of fixture-set rows and of the corpus manifest, not just case cores. The 104 citations the strengthened gate found unresolvable — phantom chapters, sections that never existed, class tables cited under the wrong directory, and one citation of an internal proposal instead of a released spec — were re-derived first-hand and corrected. -
A vendored corpus that had no vendor script has one. The real-world canonical-JSON corpus under
crates/openehr-its/tests/vendor/was hand-downloaded; it is now reproduced byte-identically from its pinned upstream commit byscripts/vendor/openehr-sdk-json.sh(with--checkto report drift and write nothing). Its provenance record also named the wrong upstream repository — a product-rename sweep had rewrittenehrbase/toferroehr/in the pin — which is corrected. -
authz.abac.enabled = truenow actually enables ABAC. The server binary built an RBAC-only authorization handle unconditionally — the ABAC policy engine and its attribute resolvers were never constructed on the shipped run path, so a deployment that configured attribute-based rules ran without them, silently. The binary now boots the configured engine (Cedar or remote PDP) with database-backed attribute resolvers, logs the active authorization layers at startup, and refuses to start when an enabled ABAC block cannot be built (missing/invalid policy directory, unbuildable PDP client) — configuration that promises fine-grained authorization never degrades to authorization-off. -
A one-group ISO OID now classifies as
ISO_OID, notINTERNET_ID. BASEbase_typesmaster05-identification_package.adoc§Syntaxes givesiso_oid = number, { '.', number }— one or more groups — while the UID subtype dispatch required two, so a bare numeric root such as12345was taggedINTERNET_ID, whose own production it violates (a multi-characterinternet_idlabel must begin with a letter). This picks the_typeon the wire, so the value now round-trips under the subtype the grammar assigns. -
Non-finite
Realvalues now serialize to canonical XML in thexs:doublelexical form. The vendored XSDs type everyRealelementxs:double, whose lexical space spells the special valuesINF,-INFandNaN(XML Schema Part 2 §3.2.5); the serializer emitted Rust’sinf/-infspellings, producing a schema-invalid document. Finite values are unchanged (a wholeRealstill writes120.0). -
The generated ITS-REST contract no longer drops single-
$refallOfcomposition. Seven DTOs the released OAS defines as a named alias of another schema —ItemTagOfComposition,ItemTagOfEhrStatus, the five demographicItemTagOf*— degraded to an untyped string map instead of resolving to their referent. -
The generated ITS-REST contract now includes the SYSTEM API group. The STABLE System API declares one operation,
OPTIONS /(Options and Conformance), which the contract generator skipped: its group list omittedsystemand its HTTP-method table omittedOPTIONSentirely. -
A composition committed against an ADL2-registered template is no longer refused with a
409, and an in-use ADL2 template now refuses physical deletion. The stored template identity on a version row was foreign-key-checked against the OPT 1.4 store only, so a commit whose template was provisioned through the ADL2 DEFINITION surface failed the constraint; the key now targets a registry spanning both template dialects. With that, the ADL2 template delete gains the same never-orphan guard the OPT 1.4 delete always had — deleting a template still referenced by committed versions answers409with the reference count (previously the row was deleted silently) — and it now also evicts the template’s compiled WebTemplate, so a re-uploaded template is never served from the deleted artefact’s cached form. -
Template-scoped authorization rules now bind to compositions committed through the direct routes. A COMPOSITION committed with
POST/PUT /ehr/{ehr_id}/compositionstored no template identity alongside its version, while the same composition committed inside a CONTRIBUTION did — so an ABAC policy scoped to a template silently failed to match direct-route compositions (the attribute resolved to “no template” rather than to the template the composition declares). Both direct routes now record the template the version was committed against, exactly as the CONTRIBUTION route always has. Compositions committed before this release carry no template identity on their existing version rows; re-committing a new version records it. -
A CONTRIBUTION whose audit omits
change_typeis now refused (422) instead of being given a server-invented one. The released commit schema makes the change set’s audit mandatory and itschange_typea required member (NewContribution.yamloverUpdateAudit.yaml, for both the EHR and the demographic contribution routes), and RM commonmaster06§Contributions calls the contribution-level value approximate and “not expected to be used as a computable value” — it is the client’s account of its own change set. The server previously derived an aggregate from the member versions when the attribute was absent, putting an approximation into the audit trail under the client’s name; it now answers422namingCONTRIBUTION.audit.change_type. A conformant client is unaffected. (The direct COMPOSITION/DIRECTORY routes are unchanged: there the committal headers stay optional and the server default still applies, exactly as the ITS-REST overview requires.) -
An undecodable request-header value is refused instead of silently ignored. A header whose bytes are not decodable as text — including the committal (
openehr-version,openehr-audit-details) and item-tag wrapper headers — was dropped from the request as if it had never been sent, so a commit could carry different audit attributes or tags than the client supplied, with nothing on the wire saying so. Such a request now answers400naming the header. -
An AQL query that cannot get a database connection now sheds with
503+Retry-Afterinstead of reporting500. The query path’s database leg is classified like every other one, so a pool-acquire timeout is reported as a temporary overload (retryable) rather than as a server fault. A corrupt stored FHIR mapping definition is likewise reported as a server fault (500) rather than as a client error (422) — it is not something the caller supplied. -
A round-tripped demographic party carrying inline relationships is no longer refused.
PARTY.Relationships_validityrequires every inlinerelationships[i].sourceto reference the party itself, and RM demographicmaster02§Party Relationships requires that reference to be aHIER_OBJECT_IDdenoting the party’s VERSION CONTAINER “rather thanOBJECT_VERSION_IDs, which would denote particular versions” — but the check compared it against the body’suid, which on a served party is the three-partOBJECT_VERSION_ID. The two could never be equal, so a client that read a party, added a relationship and wrote it back got422. The comparison now uses the container id (theobject_idof the version uid); a relationship sourced at another party is still refused. -
The demographic create/update routes now honour the
openehr-versionlifecycle state. ITS-REST overviewRequests_and_responses.md§“openehr-version and openehr-audit-details” requires that “whatever is provided it MUST be merged with the default VERSION andVERSION.audit_detailsattributes on commit runtime”; the direct party and party-relationship routes threaded only the audit half, so a553|incomplete|demographic commit was reachable through a CONTRIBUTION alone. Both halves now merge on those routes (and on the SM-envelope entry points, which carry the same two attributes). -
A read-only principal can export EXTRACTs again.
POST /message/exportrealizes SMI_EHR_EXTRACT_SERVICE.export_ehr_extracts— a query over held versions whose selector is a wholeEXTRACT_SPEC— but the read-only gate classified the extension route by its HTTP verb and refused it403. It is now classified as the read it is (as the released ad-hoc AQLPOSTalready was); the import routes stay writes. -
A query result-set
ETagis now stable across executions. The tag is documented as identifying theRESULT_SET(“it changes as soon as the resource changes”, overviewRequests_and_responses.md§ETagand Last-Modified), but the digest coveredmeta._created, which is stamped per response — so every execution minted a fresh tag and conditional-request caching never hit. The digest now covers the result-determining content (q, the executed AQL,columns,rows) only. -
A malformed
server.system_idis now refused at boot. The value occupies thecreating_system_idposition of everyOBJECT_VERSION_IDthis CDR mints (BASEmaster05-identification_package.adoc§Syntaxes:creating_system_id = uid), but the boot check only rejected an empty value and one containing::— so a configuration legal at startup could mint version identifiers this server’s own reader refuses. The configured value is now validated against the openEHRuidgrammar itself (iso_oid | uuid | internet_id). -
500-class responses no longer echo internal diagnostics. A server-side fault previously rendered whatever produced it straight into the response body: serde’s parser message (naming Rust fields and byte offsets), the AQL executor’s PostgreSQL driver string (naming generated SQL and schema objects), the node codec’s RM attribute names and internal row shape, the authorization engine’s failure reason, and the XML/Simplified-Format serializers’ diagnostics. Every500-class body now carries a curated, opaque message and the full detail goes to the server’s own log instead.4xxrefusals are unchanged and still name the client-caused defect — a malformed request payload is still refused400with the parse error that explains it, which is the only thing a caller can act on. -
A tag PUT body is now validated against the released write schema.
schemas/common/UpdateItemTag.yamldeclares exactlykey(required),valueandtarget_path, withadditionalProperties: false. Previously the body was read untyped: an undeclared member (target,owner_id,_type, anything) was silently dropped, and — worse — avalueortarget_pathof the wrong JSON type was silently stored as ABSENT, losing a clinical annotation outright or changing the tag’s identity so a later delete addressed nothing. All three are now refused400, naming the offending member by its JSON path, on the COMPOSITION, EHR_STATUS and all five demographic tag PUTs alike. An emptytarget_pathstill normalizes to absent, identically on both families. -
A defective tag on a write no longer leaves the content committed. The
openehr-item-tag/openehr-version-item-tagheaders are now parsed and invariant-checked BEFORE the content commit, so a request carrying an invalid tag is refused with nothing created. Previously the refusal arrived after the COMPOSITION / EHR_STATUS / DIRECTORY / party version was already durable, on a response with noETagand noLocation— leaving the client no way to learn what it had just created, and no recovery but a re-POST that duplicated the content. The tag write itself still happens after the commit, so tagging continues to cause no re-versioning of content. -
The tag response header can no longer instruct a client to wipe its tags. A valueless tag echoed as
value=""(a shape the reference model forbids), and a tag list that could not be rendered as an HTTP header value — a control character in a tag key, which nothing in the reference model bars — fell back to an EMPTY header, which is exactly the byte sequence the spec defines as “remove all ITEM_TAGs”. A client mirroring that echo back on its next write would have cleared the collection. A valueless tag now echoes without avalue, and an unrenderable list omits the header entirely. -
The tag wrapper-header parser is quote-aware and no longer silently drops entries. A
target_pathcontaining a;inside quotes (an AQL predicate, say) shattered into fragments that then parsed as garbage; quoted runs are now opaque at the entry separator. An entry carrying nokeywas skipped past, silently discarding a tag the client believed it had set; it is now refused400. -
Database integrity errors no longer leak schema names into client responses, and are no longer all reported as conflicts. Every SQLSTATE class-23 violation mapped to
409 Conflictcarrying the raw PostgreSQL error text, so constraint, table and column names reached client bodies — and a CHECK or NOT NULL violation, which is a server-side invariant failure rather than anything a client can resolve, was presented as an optimistic-lock conflict to retry. Unique, foreign-key, restrict and exclusion violations keep their409; CHECK and NOT NULL now answer500. No branch returns a driver string: every client message is a fixed, actionable sentence, with the SQLSTATE, constraint and table recorded on the server’s own trace record. -
A tag that survives a whole-list replace keeps its creation instant. The
PUTis a full-collection replace, but re-asserting an existing tag identity is not the same as creating a new tag; previously every surviving tag’s stored creation time was reset on any edit to a sibling, which the admin export then reported. Visible throughPOST /rest/admin/…EHR export. -
A CONTRIBUTION version that declares a foreign version identity is now refused (
400, naming the offending key). The released commit wire declares six member properties (preceding_version_uid,signature,lifecycle_state,attestations,data,commit_audit) and no import shape at all —master06§Copying puts the import behindcommit_imported_version, whose “details of version id etc come from theORIGINAL_VERSION”. Previously a member shaped like anIMPORTED_VERSION(_type: IMPORTED_VERSION, anitemwrapping a foreignORIGINAL_VERSION, or its ownuid) was accepted and committed as a locally createdORIGINAL_VERSIONunder a freshly minted local identifier, silently discarding the identity and provenance the client had declared. All three keys are now refused. A member self-tagged_type: ORIGINAL_VERSIONor_type: UPDATE_VERSIONis unaffected — those name the class this wire commits — and importing versions that keep their foreign identity remains available through the EHR-Extract import route. -
A version-container trunk position is now unique across creating systems.
master06§Copying has a second system BRANCH rather than extend the trunk of a copied container, and §Moving Version Containers continues the trunk increment under the new system’s id, so a trunk line is one global sequence however many systems contributed to it. The schema previously admitted two versions of one container both claiming trunk position 2, one per creating system; the archive-load path could write such a pair. It is now refused with a message naming the container, the position and the system already holding it. Branch identifiers still legitimately repeat across systems, which is what the three-part version identifier disambiguates. -
A version that carries data can no longer claim the
523|deleted|lifecycle state (422).master06§Logical Deletion states deletion as one procedure — create a new version, delete its data, set the state todeleted, commit — so a data-carrying deleted version is not producible by the spec’s own steps. Previously such a commit was accepted through a CONTRIBUTION member pairing a content change type with the deleted state, or throughopenehr-version: lifecycle_state.code_string="523"on aPUT; the resource then read back as deleted (204) while its content stayed stored and AQL-queryable. Both routes now refuse it. Deleting throughDELETE, or through a data-less523CONTRIBUTION member, is unaffected. -
The demographic endpoints accept
PARTY_REF.typeANY. APARTY_REFinside a party orPARTY_RELATIONSHIPbody —ACTOR.roles,ROLE.performer,PARTY_RELATIONSHIP.source/target— was refused with422when itstypewasANY, even though the composition endpoints accepted the same value. The demographic write boundary kept a second copy of the legalPARTY_REF.typeset that had drifted from the single spec-cited one; it now judges every reference through that one definition, so the two surfaces give the same answer. Unknown type strings are still refused. -
A
PARTY_REFmissing a mandatory attribute is refused. A reference in a demographic body without anid,namespaceortype(all1..1onOBJECT_REF) passed the write boundary and was only caught, if at all, further in. It is now a422naming the missing attribute. -
The authorization gate refuses an unaddressable resource id instead of guessing. A malformed
{uid_based_id}— not a UUID, and not a well-formed three-partOBJECT_VERSION_ID— was previously read as if the whole string were the versioned-object id, so the template attribute the ABAC/SMART policy binds on silently came back empty and the request could pass a template-scoped rule. Such a request is now denied with403, in line with the gate’s existing fail-closed handling of every other attribute-resolution failure. Well-formed ids (bareHIER_OBJECT_IDand fullOBJECT_VERSION_ID, trunk or branch) are unaffected. -
A version’s digital signature now covers the attestations it was committed with. openEHR signs “the entire Version object”, excluding only the
signatureattribute itself, so an attestation supplied on the commit (attestationson the committed VERSION) belongs inside the signed form. It previously did not: such an attestation could be altered in the database without any signature check noticing. It is now part of the signed canonical form at commit and at read, in both the local-commit and the EHR-Extract-import paths, so tampering with it is caught by strict read-time verification and the served version verifies for an external reader that recomputes the digest itself. Attestations added after committal (a666|attestation|contribution) keep their existing behaviour: they post-date the signature by definition, and are served outside it. Versions committed before this change are unaffected — nothing is re-signed — unless they carried commit-time attestations, in which case their stored signature no longer matches and astrictverify_on_readdeployment will report them; re-commit or setverify_on_read = warnwhile auditing. -
An attestation whose optional
itemsis sent as JSONnullis no longer rejected. A null optional means absent, and the sibling optional attributes (proof,attested_view,description) were already read that way;itemsalone treated it as a malformed list and returned422. That made commit-time attestations unusable through the typed API, which emitsnullfor an omitted list. A present-but-empty list ([]) is still refused, which is what the RM invariant actually forbids. -
A contribution mixing amendments and deletions now reports the amendment aggregate. When a client sends no contribution-level change type, the server derives one; openEHR names
250|amendment|for “a mixture of amendments and deletions that logically constitute a correction”, which previously fell through to the general251|modification|. Uniform change sets and every other mixture are unchanged. -
Versions received from another system are now served as
IMPORTED_VERSIONs, and imported records report their local chronology. openEHR wraps a copied version: an EHR Extract import commits the receivedORIGINAL_VERSIONinside anIMPORTED_VERSIONwhose own contribution and commit audit record this server’s act of importing, while the wrapped original keeps the source system’s contribution reference, commit audit and signature. This server had never materialised the wrapper — it wrote the foreign commit audit as the version’s own and discarded the received contribution reference entirely. Four visible changes: -
A
VERSIONread of an imported version (…/versioned_composition/{uid}/version/{version_uid},…/versioned_ehr_status/version[/{version_uid}], and aresolve_refscontribution read) now returns"_type": "IMPORTED_VERSION"with the received original underitem. AnIMPORTED_VERSIONcarries nouidof its own — it shares the wrapped version’s identity — so read the version id fromitem.uid.value; theETagis unchanged, soIf-Matchround trips are unaffected. Locally created versions are stillORIGINAL_VERSIONs. -
An imported version container’s
VERSIONED_OBJECT.time_created, itsLast-Modifiedheader, its revision history and every as-of-instant read now report the local import instant instead of the source system’s earlier clock, so a query for the record’s past state returns what this repository actually held at that time. -
Re-exporting imported content now reproduces the received
ORIGINAL_VERSIONverbatim, including its source contribution reference; it previously carried this server’s local contribution id under the source version’s identity. -
With version signing enabled, the import act signs the
IMPORTED_VERSIONwrapper it creates; the wrapped original’s own signature is stored and served untouched, and is never re-verified.An
ORIGINAL_VERSIONarriving in an extract without the mandatorycontribution(or with a commit audit that is not a canonicalAUDIT_DETAILS) is now refused with400, instead of being imported with the provenance silently dropped. Content imported before this release keeps the provenance it was stored with. -
A demographic version container’s
owner_idnow names the serving system, consistently, everywhere it is emitted.VERSIONED_OBJECT.owner_idis a mandatory reference to “the containing EHR or other relevant owning entity”, but a demographic party has no containing EHR — and this server had drifted into three different answers for it.GET /demographic/versioned_party/{uid}(and the party-relationship container read) served anOBJECT_REFin namespacedemographicwhose id was the container’s own uid, a self-reference that merely duplicated the siblinguidfield; theX_VERSIONED_PARTYwrapper of an EHR-Extract export served namespacedemographicover the system identifier; and the demographicITEM_TAGsurface already served the shape the published openEHRVersionedPartyexample shows. All three now emit that one shape — anOBJECT_REFwithnamespace: local,type: SYSTEM, and aHIER_OBJECT_IDcarrying the deployment’s configuredsystem_id. Clients that readowner_idoff a demographic container will see the namespace, type and id all change; nothing else about those responses moves. The served OpenAPI example for the container read is corrected to match (it advertised aPARTY_REF, a type the published schema does not name there), the conformance catalogue now asserts the two tokens on the container read, and the adjudication is restated in the ambiguity register asAMB-69— whose previous text incorrectly claimed this server already emitted the published shape. -
A path predicate carrying a parenthesised uniqueness modifier is now refused instead of silently matching nothing. The Reference Model’s directory chapter shows folder paths written with a name and a bracketed uniqueness modifier (
/folders[hospital episodes(car accident Aug 1998)]), a form the formal openEHR path grammar this server implements does not define. Such a predicate used to be accepted and bound whole as an archetype node id, so the path quietly resolved to nothing; it is now a loud unsupported-predicate error. Plain node-id and archetype-id predicates ([at0003],[openEHR-EHR-COMPOSITION.x.v1]) and bare name tokens are unaffected. -
An OAuth2/OIDC committer’s identifier now names the token issuer. Every authenticated write stamps the committing principal into
AUDIT_DETAILS.committeras aPARTY_IDENTIFIEDcarrying aDV_IDENTIFIER, whoseissuerused to readferroehrfor every mechanism — including federated principals, whose subject the identity provider minted rather than this server. A Bearer principal’s identifier now carries the validated token issuer (iss) as itsissuer; a Basic principal, whose credential this deployment holds, keepsferroehr. Audits already committed keep the issuer they were written with. -
ATTESTATIONcommit audits and rich audit descriptions now round-trip instead of being silently flattened. A CONTRIBUTION version whosecommit_auditis anATTESTATION— the openEHR way of committing content that is already signed, or that is marked as awaiting signature (is_pending: true) — used to be stored as a plainAUDIT_DETAILS: the concrete type and every attestation attribute (reason,is_pending,proof,items,attested_view) were dropped without an error, on the REST commit and on EHR-Extract import alike. They are now decoded, validated against the RM invariants, stored, and served back as anATTESTATIONon the version envelope, in the revision history, in the CONTRIBUTION rendering, and in exports/archives. Acommit_auditwhose_typenames neitherAUDIT_DETAILS(UPDATE_AUDIT) norATTESTATION(UPDATE_ATTESTATION) is now refused with 422 instead of being read as a plain audit.AUDIT_DETAILS.descriptionis likewise kept whole: aDV_CODED_TEXTdescription keeps itsdefining_codeinstead of being reduced to its display string, and AQL can now addresscommit_audit/description/value,commit_audit/description/defining_code/code_stringand.../defining_code/terminology_id/valueas distinct fields (a coded description could previously never match). Theaudittable’s baseline schema changes with this:descriptionbecomesjsonb(the wholeDV_TEXT) and a nullableattestationcolumn is added. -
A coded description on an attestation keeps its code. The
666|attestation|commit path completed a submittedUPDATE_ATTESTATIONby reducing itsdescriptionto the plain text of aDV_TEXT, so aDV_CODED_TEXTdescription lost itsdefining_codepermanently at committal — while the same attribute on a version’s owncommit_auditwas already kept whole. An attestation’s description is now stored and served back exactly as submitted (_type, displayvalueanddefining_code), and adescriptionthat is neither a string nor a validDV_TEXTis refused with 422 instead of being dropped. -
A simplified-format
ctxparticipation without a function is now refused.ctx/participation_*keys buildEVENT_CONTEXT.participations, whosefunctionthe Reference Model requires; a FLAT/STRUCTURED commit that began a participation at some index (a name, an id, a mode or identifiers) but supplied noctx/participation_function:<i>used to be completed with an empty function, committing a participation whose mandatory attribute carried no information. It is now rejected with an error naming the exact missing key (e.g.ctx/participation_function:0 is required). -
The FLAT
_link:ibuilder now reports a missing mandatory suffix instead of inventing an empty value.|meaning,|typeand|targetare all required on a simplified-format_link:idatum; a submission omitting one used to be silently completed with an emptyDV_TEXT/DV_EHR_URI, storing data the client never sent. The conversion is now refused with an error naming the exact key (e.g..../_link:0|meaning is required). -
Compositions and directories that contradict the RM’s archetype-root rule are now refused (422) instead of stored. At an archetype root the
archetype_node_idis the archetype identifier in string form, so a node carryingarchetype_detailswhosearchetype_idnames a different archetype declares two conflicting identities and can no longer be committed. Payloads that were accepted before and are affected by this must correct the mismatched root before they will commit. -
An empty
archetype_node_idis now refused (422) on every node type. The RM requires a non-emptyarchetype_node_idon every archetypable node, but the check only ran on the node types with a hand-written invariant (ENTRY subtypes, CLUSTER, ELEMENT, SECTION, FOLDER, HISTORY and events). It is now applied to every RM type that inherits it — notablyITEM_TREE,ITEM_LIST,ITEM_SINGLE,EHR_STATUS, and the demographic and EHR-extract locatables — so a payload carrying"archetype_node_id": ""anywhere is rejected rather than stored. An absentarchetype_node_idis unchanged: it is still reported as a missing mandatory attribute. -
A present-but-empty
linkslist is now refused (422).linksis optional, but the RM forbids it from being present and empty, so"links": []on any node of a committed COMPOSITION — or on any FOLDER of a committed directory — is now rejected rather than stored. Omit the attribute instead of sending an empty array. -
RM class invariants are now enforced on every commit kind, not only on COMPOSITIONs. The whole-instance RM + terminology pass previously ran only for compositions, so anything below the root of an
EHR_STATUS,EHR_ACCESS, directory FOLDER, party or party-relationship body went unchecked. Payloads that were accepted before and are now refused with a422include: an emptyarchetype_details.rm_version; alinksmember that is missingmeaning,typeortarget, or whosetargetis not anehr://URI; a present-but-emptylinkslist on a node nested insideEHR_STATUS.other_detailsor a party body; and an emptyfeeder_auditsystem_id. The same defects were already422inside a COMPOSITION.EHR_ACCESS.settingsis deliberately unaffected — the RM leaves that slot’s type to the implementation, so it carries no RM rules to enforce.
Security
-
Admin dump/load failures no longer expose server filesystem paths. The
file_not_writableand container-fault bodies of the EHR export/import operations carried the configured archive path (server deployment layout) and the raw archive-parse diagnostics. The bodies now carry a curated message — a defect in the CALLER’s archive still names the offending archive ENTRY, which is the actionable fact — and the path plus the underlying diagnostic go to the server’s trace record only. -
Terminology-server failures no longer expose the deployment’s terminology configuration. A
500raised by an upstream FHIR terminology server (or by its OAuth2 client-credentials grant) named the configured provider, its operation and the upstream error in the response body. The body is now the curated internal-error message; the operator detail (provider name, operation, upstream diagnostic) is emitted on the trace record. Boot-time configuration errors are unchanged — they never reach a response body.
3.17.1 - 2026-08-01
Added
-
Deprecated ADL 1.4 spellings are warned at ingest. The paren-less domain-block spelling (
C_DV_QUANTITY <…>) is marked deprecated by the ADL 1.4 text while its normative grammar defines only that form; it stays accepted (refusing it would reject the whole published CKM library), and every occurrence now raises the advisoryW14DEPvalidation warning naming the preferred parenthesised spelling — the deprecation is enforced at exactly the strength the spec gives it, never silently absorbed. -
The largest OPT the official CKM publishes is now a conformance scale probe. The Congenital syphilis case investigation form (~5.2 MB of OPT 1.4 XML, the biggest template openEHR publishes) joins the curated CKM journey pack, and two new asserted CNF cases pin size-independence of the released contracts — the template upload and a COMPOSITION commit of its ~526 KB example must succeed and read back content-equal, because the released ITS-REST text defines no payload-size condition, so an implementation cap that refuses, truncates, or corrupts a large valid payload is a conformance defect. The template also rides the measured hospital simulation’s case-investigation journey, so every future performance record exercises the large-payload path.
-
ADL 2 (AOM2) archetypes can arrive as XML, in both serializations openEHR publishes. Only the AM 1.4 archetype XML was readable before; the generated canonical-XML codec now also covers the AOM2 persistent form (
P_Archetype.xsd, root<archetype>=P_AUTHORED_ARCHETYPE— the shape the 8 example documents in the openEHR ITS-XML bundle carry) and the AOM2 model form (Archetype.xsd, root<archetype>=AUTHORED_ARCHETYPE). The two are separate codecs because the two schemas declare the same top-level element with different root types.
Fixed
-
openehr-itsbuilds again for minimal consumers. Theopt14module (OPT 1.4 model + XML codec) was declared without thefullfeature gate its codec dependency carries, so anydefault-features = falseconsumer of the crate — whose documented minimal surface is only the dependency-free SMART scope grammar — failed to compile with 1,191 errors (first visible on the admin console’s WebAssembly lane). The module is now gated like its siblings; default builds are unchanged. -
Empty inline dADL domain blocks parse (
C_DV_QUANTITY <>). The ADL 1.4 reader refused an empty domain block outright; the dADL chapter’s own grammar admits the empty block and §Empty Sections allows it anywhere, so it now lowers to the open constraint (DV_QUANTITY matches {*}) in both the deprecated paren-less and the parenthesised spelling. 9 live CKM archetypes use the form. (The upstream regression fixture claiming the opposite is reported as a spec contradiction.) -
The ADL 1.4 → 2 converter no longer emits unparseable tuples for heterogeneous
C_DV_QUANTITYlist rows. Rows constraining different member sets (aunits+magnituderow besideunits-only rows, as in the publishedrange_of_motionarchetype) used to convert into one tuple with EMPTY members ([{"mm"}, {}]) that no conformant ADL 2 reader accepts — 28 of the 1,142 published real-world archetypes were affected. Such rows now partition into oneDV_QUANTITYalternative per member set, each tuple row constraining every member; co-constrained pairings and assumed values are preserved, and the whole real-world corpus now converts and re-parses. -
ADL 1.4 archetypes that openEHR CKM actually publishes are no longer rejected over two spec-silent shapes. Uploading a real-world ADL 1.4 archetype failed to parse when it used either (a) a qualified term constraint with an empty code list —
defining_code matches {[local::]},media_type matches {[openEHR::]}, which names the terminology and constrains the code no further — or (b) the openEHR-profiled ordinal shorthand alongside another alternative in the same block, in either order (DV_TEXT matches {*}beside0|[local::at0008], 1|[…]). Both forms are read by the reference grammar and are used throughout CKM’s own library, so the reader now accepts them; every other refusal is unchanged. -
Mandatory
1..*container attributes are enforced. The canonical-JSON reader deliberately treats an absent list and an empty list as the same value (wire tolerance), so a committedCLUSTERwith noitems, a demographicPERSONwith noidentities, or aREVISION_HISTORYwith noitemswas accepted although the RM declares those containers1..*. The validation walk now checks every model-declared mandatory container — absent, or empty where the lower bound is 1 — uniformly from the generated RM model, and such commits are refused 422. -
Structurally defective RM nodes are now refused for EVERY openEHR class, not only the ones carrying a class invariant. The per-node validation step deserialized a wire node into its concrete RM type — the check that surfaces a missing mandatory attribute or a wrong nested type — only for the classes with an RM invariant to run, so a defective node of any other type passed unnoticed: a
PARTICIPATIONwith noperformer, anISM_TRANSITIONwith nocurrent_state, aLINKwith notarget, aDV_BOOLEANwith novalue, the demographicADDRESS/CONTACT/PARTY_IDENTITYshapes, and more. The class-to-type dispatch is now generated from the openEHR meta-model and covers every emitted class, so such a commit is rejected with422naming the offending path and field. Wires that were already valid are unaffected. -
A generated example COMPOSITION for a template that constrains
other_participationsis committable again. The example carried aPARTICIPATIONwithout its RM-mandatoryperformer(plus a strayname, whichPARTICIPATIONdoes not have), so posting the generated example back was rejected. The participation is now completed with an identity-freePARTY_SELFperformer — no fabricated person — and carries noname.
3.17.0 - 2026-08-01
Changed
- The documentation website moved to its own domain,
https://ferroehr.eu/. It was published at
rubentalstra.github.io/ferroehr/, a GitHub Pages project sub-path; it is now served at the root of theferroehr.euapex over HTTPS, withwww.ferroehr.euredirecting to it. Every published URL loses the/ferroehrprefix — the user guide is at/docs/latest/, the OpenAPI endpoint reference at/api/. The old GitHub Pages URLs keep working through GitHub’s own redirect, so existing links and bookmarks do not break. This affects the website only; the CDR’s REST base path (/ferroehr/rest/openehr/v1) is unchanged.
Fixed
-
RM validation reaches legally untagged canonical-JSON nodes. Canonical JSON requires
_typeonly on polymorphic slots, so a node under a concretely-declared attribute (COMPOSITION.context,EVENT_CONTEXT.participations, …) may omit its tag — and the validation walk, dispatching on the wire tag alone, silently skipped every RM class invariant and terminology binding on such nodes (the same content was refused over canonical XML but committed over JSON). The walk now resolves an untagged node’s effective RM type from the parent’s declared attribute type (the BMM-generated static RM model), so commits like an out-of-groupEVENT_CONTEXT.settingare refused 422 regardless of tag presence or format. -
The documentation version switcher pointed at dead URLs. Entries in the published version manifest kept whichever site base path was current when they were archived (
/ehrbase-rs/…before the rename,/ferroehr/…before the domain move), so selecting an older release led to a 404. Each entry is now re-anchored to the live base at build time, which repairs every archived version without rebuilding the frozen documentation trees. -
EXTRACT_SPEC.extract_typeaccepts the TERMextract_content_typevocabulary. The EHR-Extract export refused the codes TERM 3.1.0 binds to the attribute (803 “openEHR EHR” … 808 “other”, openEHR terminology —SupportTerminology§Vocabularies) and accepted only the RM-named string tokens (openehr-ehr, …). Both value spaces are now accepted; anything outside their union is still refused with a 400-family precondition error.
3.16.0 - 2026-08-01
Added
-
ODIN plug-in syntax blocks parse.
attr = (syntax) <# … #>(master09-plug_in_syntaxes) is accepted, with the tag and the verbatim foreign-text body exposed asOdinValue::PlugIn; the body is handed to consumers uninterpreted, and a plug-in block is refused as an archetypedefault_value(it denotes no RM instance). -
ODIN document artefacts parse in all three
master04forms. The ODIN reader now accepts Identified Object Documents (top-level["id"] = <…>keyed objects) and the optional leading@schema = <uri>schema identifier, exposed via the newodin::parse_document; the anonymous and implicit forms were already supported. -
ODIN cross-object references parse. Reference paths rooted at an object identifier (
<["tourism_db_13"]/hotels["sofitel"]>,master06-references§Across Objects) are accepted alongside the existing within-object reference forms. -
ODIN path extraction.
OdinValue::paths()extracts themaster05-contenttree-path set (attribute paths,attr[key]container paths, nested bare-key segments) from any parsed ODIN structure. -
The BMM v3 behavioural surface: type lattice, class/feature functions and a v3 materialisation.
openehr-langnow answers themaster06-core-typesmeta-type lattice (is_abstract,is_primitive,type_base_name,unitary_type,effective_type,effective_base_class,is_open/is_closed/is_partially_closed), themaster07/master08class and feature functions (BMM_SIMPLE_CLASS.type,BMM_GENERIC_CLASS.type+generic_parameter_conformance_type,has_ancestor_class,all_ancestors,flat_features,BMM_ENUMERATION.name_map,signature,arity,is_boolean), and materialises a v3BMM_MODELfrom a P_BMM schema (create_bmm3_model) — which lands three things the v2.x transform cannot: a generic ancestor’s parameter substitution, a class’s routines and constants, and avalue_constrainton the type it constrains.
Fixed
-
A malformed enumeration is refused instead of loaded silently. A P_BMM enumeration with more than one ancestor, or with
item_valuesthat are not 1:1 withitem_names, now fails model materialisation with a typed error (EnumerationAncestorCount,EnumerationItemListsNotOneToOne) — the two rulesmaster07-core-classes§Range-Constrained Classes and theBMM_ENUMERATIONclass definition state. Stating names without values stays valid (the assumed values 0, 1, 2, … apply). -
Container literal values are typed on the wire.
BMM_CONTAINER_VALUEandBMM_INDEXED_CONTAINER_VALUEbound their inheritedtypeslot to free-form JSON; they now carryBMM_CONTAINER_TYPE/BMM_INDEXED_CONTAINER_TYPE, so a container literal’stypemember is a_type-tagged container type in canonical JSON instead of an arbitrary value. The two slots openEHR genuinely leaves untyped (BMM_INTERVAL_VALUE.type,EL_CASE.value_constraint) now carry their adjudication as a generatedNOTEat the field. -
The generated LANG model carries both extant BMM generations in full.
openehr-langwas generated from the two vendored LANG schemas name-merged into one class map, so 18 class names both declare emitted the stable v2.x shape at the v3 (bmm3) module paths and the v3 attribute sets were discarded — aBMM_CONTAINER_TYPEhad nois_ordered/is_unique, aBMM_CLASSnone of its feature/invariant maps, andBMM_MODEL_TYPE+BMM_MODULEwere never emitted at all (185 of 187 declared classes). Both generations are now emitted completely, each at its own source-package path (v2.x underbmm/,bmm_persistence/,beom/; v3 underbmm3/), and the canonical-JSON codec covers both. -
ODIN leaf lists are type-homogeneous and admit interval lists. Mixed-kind lists (
<1, "x">) are refused per the per-type list productions of the ODIN syntax specification, and interval lists (<|0..5|, |8..9|>, including the open, ...form) now parse. -
Duplicate ODIN container keys are refused (rule VDOBU). Sibling keyed objects sharing a key (
[1] = <…> [1] = <…>) were silently accepted; they now fail with a typed error perLANG/docs/odin/master05-content§Container Objects — archetype uploads whose terminology sections duplicate a term code are refused at the ODIN layer. -
ODIN sections accept
true/false/infinityas attribute names and semicolons between keyed objects. ODIN reserves no keywords (LANG/docs/odin/master03-basics§Keywords), so archetype/template uploads whose ODIN sections use those three words as attribute names — previously refused because they lex as ODIN value words — now parse; and the §Semi-colons separator is accepted between keyed-object entries, not only attribute pairs.
3.15.3 - 2026-07-31
Fixed
- The quickstart dev credentials authenticate again. The v3.15.2 rename
updated the dev usernames and documented passwords to
ferroehrbut left the committed Argon2id hashes (and the dev Keycloak realm’s stored password hashes) verifying the old secret, so every Basic-auth request against the compose stack returned 401. The dev user store now carries hashes of the documented password, and the Keycloak realm import sets the dev passwords at import time. Development stacks only; no production surface stores these credentials.
3.15.2 - 2026-07-31
Changed
- The project’s own code is now MIT-licensed (owner decision
2026-07-31). Vendored third-party material keeps its upstream terms: the
openEHR machine-readable specification artifacts and CKM-derived clinical
models remain under Apache-2.0 (
LICENSE-APACHE-2.0). The upstreamNOTICEfile was removed together with the relicense — no upstream code is present in this tree. - The product is named FerroEHR (owner decision 2026-07-31, tracked on
#1353 — from ferrum, iron, the element Rust is named for). Every
product-branded surface changes with it; deployments upgrading across this
release must update:
- Configuration: the environment prefix
EHRBASE_*→FERROEHR_*; the config file search path./ehrbase.toml//etc/ehrbase/ehrbase.toml→./ferroehr.toml//etc/ferroehr/ferroehr.toml. - REST base path:
/ehrbase/rest/openehr/v1→/ferroehr/rest/openehr/v1(likewise the admin/management extension routes under/ehrbase/…). - Binary and crates: the server binary
ehrbase→ferroehr; the application cratesehrbase/ehrbase-rest/ehrbase-server/ehrbase-admin-ui→ferroehr/ferroehr-rest/ferroehr-server/ferroehr-admin-ui. The generatedopenehr-*specification crates are unaffected (they are versioned by the openEHR spec they implement). - Containers and Helm: the OCI images and the Helm chart are published
under
ferroehr/ferroehr-admin-ui; compose service names and the dev-stack database/realm names follow. - Repository: the GitHub repository is now
github.com/rubentalstra/FerroEHR(old URLs redirect). - Conformance artifacts: the SUT identifier
ehrbase-rs→ferroehr(docs/conformance/ferroehr/); measured numbers are unchanged. - The startup banner, served OpenAPI title, telemetry
service.name, and the documentation website carry the new name and logo. The openEHR wire behaviour itself (canonical JSON/XML, AQL, status codes/headers) is unchanged.
- Configuration: the environment prefix
3.15.1 - 2026-07-31
Added
- An archetype or template may now give an interval as a node’s default
value. ADL 2 lets a
_defaultblock hold any ODIN value, and ODIN counts intervals of the ordered types (|0..5|,|>=1939-02-01|,|<10.5|,|5.0 +/-0.5|, the single-value|5|) among those values. Such a default used to be rejected outright; it is now read, stored as a proper interval with its own bounds and open/closed flags, and written back out in the same interval syntax. Acentre +/- deltainterval over dates, times or durations is still refused — reducing it to bounds would need calendar arithmetic the source does not state — with a message that says so.
Fixed
- Querying a parent archetype now also finds data recorded under its ADL 2 specialisations. An AQL archetype predicate naming a parent used to recognise a specialisation child only when the child’s concept extended the parent’s with a hyphen — the ADL 1.4 naming convention, which ADL 2 dropped. The server now reads the specialisation lineage from the ADL 2 archetypes and templates you have uploaded, so a query for the parent returns data committed under any of its stored specialisation children (and their children in turn), whatever their concept names are. Hyphenated ADL 1.4 identifiers keep their existing behaviour; a hyphenated ADL 2 identifier is no longer treated as a specialisation, because in ADL 2 the hyphen carries no such meaning. A parent with no uploaded family still matches only itself.
- A CONTRIBUTION commit response now tells the client when the change set
was committed.
POST /ehr/{ehr_id}/contribution(and its demographic sibling) returned only theETag/Locationidentity; it now also sendsLast-Modified, carrying the commit audit’s recorded time. The header is present under bothPrefer: return=representationandPrefer: return=minimal— on the minimal branch, where the response has no body, it is the only place the commit instant appears at all. - A backslash sequence the ADL/ODIN escape rules do not define is now
refused with a clear message instead of read as literal text. The escape
set is closed —
\r,\n,\t,\\,\",\'and the two\uunicode forms — and anything else in a quoted string (a stray\q, a regex class such as\dwritten outside a regex, a string ending in a lone backslash, a\uwith the wrong number of hex digits) is an authoring defect. Such a string used to be carried through as-is, so the defect reached the stored archetype as text; it is now reported at the offending literal. Regular expressions are unaffected: the backslash patterns inside amatches {/…/}constraint are still passed to the regex engine untouched. - A type cast written with its package path now parses. ODIN and ADL 1.4
dADL allow a type identifier to be qualified with dot-separated package
names —
(org.openehr.rm.ehr.content.ENTRY),(Core.Abstractions.Relationships.Relationship), and the same inside a generic such as(List<org.openehr.rm.ehr.content.ENTRY>)— which is how authors disambiguate same-named types from different models. Such a cast used to fail the parse and reject the whole archetype. The qualified name is kept exactly as authored; where the cast becomes a JSON_typetag, the class name is used. - Archetype text that carries a non-BMP character now reads correctly.
ADL and ODIN allow a unicode character above the base multilingual plane to
be written as an eight-hex-digit
\uHHHHHHHHescape (emoji, historic scripts, rare CJK). Those escapes were accepted but decoded wrong — the cADL reader kept the escape as literal text and the ODIN reader produced nothing usable — so the character was silently lost. Both forms now decode, in archetype definitions, ODIN sections and rule expressions alike, and an escape that names no character (a value outside the range the eight-digit form covers, a broken surrogate pair) is reported as a syntax error at the offending literal instead of being silently substituted. - Uploading an ADL 2 archetype now runs the complete validation schedule.
The parse-and-validate path skipped the final, flat-form phase, so two
defects could pass: an internal
use_nodereference whose target path does not exist, and a container whose cardinality cannot hold the child nodes it declares as mandatory. Both are now reported. Archetypes that were valid remain valid — including specialised archetypes that redefine one parent node into several children, whose node identifiers are no longer mis-reported as duplicates. - A fixed numeric value written as a closed range now behaves like the
point value it is.
{5..5}and{5}are the same constraint, and an ADL 1.4 assumed value spelled either way is read identically; conversely, a “point” whose bound is open or unbounded is no longer treated as a fixed value.
3.15.0 - 2026-07-30
Changed
-
Release binaries are hardened for diagnosability: production panics now carry file:line backtraces (
debug = "line-tables-only"), and the unwind panic strategy the clean-500 error contract depends on is pinned explicitly in the release profile so it can never silently regress toabort. Runtime behaviour is otherwise unchanged. -
The workspace now enforces the official Rust best-practice baseline as compile-time policy (Rust API Guidelines, Clippy/rustdoc/Cargo books): every public item is documented (including the generated openEHR spec crates, whose docs now come from the BMM meta-model), panicking indexing and string slicing are compile errors outside tests, wall-clock/env/UUIDv4 API bans are machine-enforced, lint suppressions must carry a machine-read
reason, and doc links are verified by a new rustdoc CI gate. No wire or storage behaviour changes. -
An ADL 1.4 upload is now validated as ADL 1.4, not as a permissive superset of ADL 2. ADL 1.4’s cADL keyword set is closed (master05 §Keywords), so constructs that only ADL 2 defines are refused in a 1.4 text with a syntax error naming the construct:
use_archetype, the archetype-slotclosedmarker, the_defaultpseudo-attribute, second-order attribute tuples, term-constraint strengths (required/extensible/preferred/example), and@terminologyoperational bindings.before/aftersibling order stays accepted — master05 lists both as ADL 1.4 cADL keywords. ADL 2 uploads are unaffected.
Fixed
-
A malformed deprecated
conceptsection in an ADL 2 archetype is now rejected with theSACOsyntax code (“must consist of the ‘concept’ keyword and a single local term”) instead of being ignored silently; well-formed deprecated concept sections stay accepted and ignored. -
A
use_nodeinternal reference targeting its own ancestor, or another internal reference, is now rejected at validation (VUNPfor ADL 2,VDFPTfor ADL 1.4): an ancestor target defines an infinitely recursive expansion and previously validated clean; sibling and cross-branch targets are unaffected. -
Illegal backslash escapes in ADL character values and rules-section strings are now rejected at parse (only
\r,\n,\t,\\,\",\'are legal quoted forms, plus\uHHHHunicode escapes in strings): previously a form like'\q'was accepted silently across the ODIN, assertion and ADL lexers. Unicode content and the legal forms parse as before. -
Converting an ADL 1.4 archetype to ADL 2 now carries its extended meta-data across. The standardised
description/other_detailsitems of ADL 1.4 App.B (Extended Meta-data Guide) — items “intended to be implemented by any ADL 1.4 => ADL 2 conversion tool” — previously survived conversion only as opaqueother_detailsstrings (onlyrevisionwas converted). They now land in their ADL 2 homes:build_uidbecomes the archetype’s build identifier;original_namespace,original_publisher,custodian_namespace,custodian_organisationandlicencebecome the matching description attributes; andreferences/ip_acknowledgementsbecome keyed lists, one entry per line with surrounding whitespace stripped. Each converted item is removed fromother_details; a value that does not match its documented syntax (e.g. abuild_uidthat is not a GUID) is left inother_detailsuntouched rather than guessed at, and the guide’s “other items” (MD5-CAM-1.0.1,current_contact,review_date,responsible_organisation) pass through unchanged as before. -
ADL 1.4 archetypes using the chapter’s custom constraint forms now upload. Two constructs of ADL 1.4 §Customising ADL (master09) were rejected outright:
- the inline dADL
C_CODE_PHRASE <…>section — the chapter’s own worked example — is now read and lowered to exactly the constraint its compact[local:: at0039, at0040]twin produces (the chapter presents them as two spellings of the same constraint), including anassumed_valueCODE_PHRASE; a block that is not aC_CODE_PHRASEinstance (no terminology, no or empty code list, an attribute the type does not define) is refused with a syntax error naming the defect instead of being guessed at; - the openEHR-profiled ordinal shorthand
0|[local::at0005], 1|[local::at0006]— ubiquitous in real 1.4 scores and scales, and optionally carrying a; assumedvalue — now parses in ADL 1.4 and is lowered to the genericDV_ORDINAL[value, symbol]tuple that ADL 2 names as its replacement. ADL 2, which removed the form, still refuses it.
Both forms’ codes take part in validation exactly as the equivalent standard spellings do (an undefined at-code still raises
VATDF).C_DV_STATE, the remaining custom constrainer, has no shape in any openEHR specification and stays a loud refusal naming the type. - the inline dADL
-
ADL 1.4 archetypes whose section keywords are not all-lowercase now upload. The ADL 1.4 lexical specification (master08 §Symbols) spells every section keyword case-insensitively, so
ARCHETYPE (adl_version=1.4),Specialise,CONCEPT,DEFINITIONandONTOLOGYare valid headers; they were previously rejected with “expected an artefact keyword” / “expected a section header”. ADL 2 keeps the exact lowercase spelling its own grammar defines. -
Old-form ADL 1.4 archetypes with no
languagesection now upload. Where the archetype carriesprimary_language/languages_availablein itsontologysection instead — the form master08 §Language Section and §Ontology Header Statements tell tools to accept and upgrade — the language is now lifted intooriginal_languageplus one translation entry per other available language, instead of the upload failing with “no language section found”. An archetype with neither alanguagesection nor aprimary_languageis still rejected. -
A missing or undefined ADL 1.4
conceptsection is now reported instead of passing silently. The 1.4 grammar makes theconceptsection mandatory and master08 §Validity Rules VARCN requires its term to exist in the archetype ontology: an archetype with no concept section (or a concept clause that is not a term-code reference) is refused with aSACOsyntax error, and a concept term missing fromterm_definitionsnow raisesVARCNon the 1.4 validation path. -
ADL 1.4 assertion expressions now accept the chapter’s full operator set: the ADL 1.4 inequality spelling
<>and the symbolic existential quantifier∃applied to a path (equivalent to theexistskeyword per the assertion-language symbol table) both parse ininvariant/rulessections instead of being rejected. -
ADL 1.4 assertions now accept every path form the ADL paths grammar defines: movable path patterns (leading
//) and single-segment relative paths with a node predicate (items[at0001]) parse instead of being rejected; absolute/relative multi-segment paths and the position/meaning/at-code predicate forms were already accepted. -
ADL 1.4
use_nodeinternal references with a target path that does not resolve within the definition are now reported as aVDFPTvalidation error (path validity in definition) instead of passing silently; a resolving target stays clean. -
A server-side failure of the password-verification task no longer masquerades as
401 Invalid credentials: if the blocking Argon2 verification task itself fails (panic/cancellation), the API now returns500 Internal Server Error. A wrong password still returns 401. -
Basic-authentication credentials are now decoded by the pinned RFC 4648
base64crate instead of a hand-rolled decoder. Canonical (padded) and unpadded credentials are accepted as before; malformed base64 with excess or interior padding is now rejected outright (it previously decoded to garbage and failed the user lookup — the response stays 401 either way). -
ADL 1.4 archetypes carrying a
revision_historysection now parse and upload. The section is defined by the ADL 1.4 specification (master08 §Revision History Section) but was not recognised, so an entire spec-valid archetype was rejected with a “expected a section header” syntax error. It is now read and preserved on the 1.4 source model. (ADL 2 removed the section, so it has no ADL 2 counterpart; a 1.4 upload stores the source verbatim, so nothing is lost.) -
The dADL/ODIN reader accepts the leaf and structure forms the ADL 1.4 specification defines (master04 §dADL), which were previously rejected: the
<...>empty-section marker at any level; the whole partial date/time family (yyyy-MM-ddT??:??:??,yyyy-MM-??T??:??:??,yyyy-??-??T??:??:??); integers written with an exponent (29e6); booleans in any case (TRUE,fAlSe);infinity/-infinity/*as unbounded interval endpoints; and local term codes ([at0200]) as leaf values. -
Values that were silently mis-read are now read correctly or rejected loudly. A
(TYPE)-cast section value is read through instead of being dropped; an|N +/- M|domain constraint becomes the interval[N-M, N+M]instead of collapsing to the centre; a duplicate sibling attribute is a typed error naming the attribute instead of the last one silently winning (rule VDATU); duplicate keys in thelanguagesection are now reported (VOKU); and an interval used as a_defaultvalue is rejected instead of silently becoming a null default. -
Multi-line string values drop their continuation-line indentation, as the specification requires (master04 §String Data), instead of carrying the source file’s leading whitespace into the value.
-
An inline ADL 1.4 domain constraint is no longer lowered to the wrong data type.
(TYPE) <…>domain blocks (ADL 1.4 master09 §Customising ADL) other thanC_DV_ORDINALwere all turned into aDV_QUANTITY, so e.g. aC_CODE_PHRASEcoded-term constraint silently became a quantity constraint.C_DV_QUANTITYandC_DV_ORDINALare lowered as before; any other domain type is now a syntax error naming the type instead of a wrong answer. -
An inline ADL 1.4 domain constraint’s
assumed_valueis no longer dropped. It is now carried onto the constrained leaves (and an assumed value that satisfies none of the block’s ownlistrows is rejected instead of silently ignored). -
ADL 1.4 coded-term constraints are checked for definedness. The dominant ADL 1.4 spelling of a value set (
[local:: at0004, at0005; at0004], master09 §Custom Syntax) bypassed the term-definedness rules entirely, so an archetype referring to codes its own ontology never defines uploaded cleanly. Every listed code — and the assumed-value code — is now checked (VATDF/VACDF, ADL 1.4 master08 §Validity Rules); codes of an external terminology are correctly exempt. -
The ADL 1.4 cardinality/occurrences rule VCOC is enforced (master05 §Occurrences): a container whose children’s occurrences cannot fit inside its cardinality is now rejected. The ADL 1.4 default
occurrences {1..1}andexistence {1..1}(master05 §Occurrences / §Existence) are applied when evaluating it, and the default occurrences is now written out explicitly by the ADL 1.4 → 2 conversion, where an unstated occurrences means something different. -
use_nodetype conformance is enforced (VUNT). An internal reference whose declared type is neither the referenced node’s type nor an ancestor of it is now a validation error instead of passing silently. It is also reached by an ADL 1.4 upload: VUNT is a rule of the ADL 1.4 specification itself (master05 §Internal References), so the 1.4 validity check now runs the reference-model pass for that rule instead of stopping before it. -
cADL keywords are recognised in any case.
MATCHES,Occurrences,CARDINALITY,Is_In,TRUEand every other keyword are now lexed as keywords, as both the ADL 1.4 specification’s own lexical rules (master05 §Symbols) and the normative ANTLR grammars require; previously only the lower-case spelling worked, so an upper-case archetype failed to parse. -
infinityis accepted as an interval bound in cADL constraints.rate matches {|0..infinity|}— the ADL 1.4 specification’s own worked example (master05 §Interval of Integer) — parsed in a dADL section but was rejected in a cADL constraint.-infinityand*are accepted likewise, and each yields a genuinely unbounded endpoint. -
The
^…^regular-expression delimiter survives a re-print. A constraint written{^km/h|mi/h^}(master05 §Regular Expression) was normalised to{/km/h|mi/h/}, which no longer re-parsed; the inner delimiters are now escaped, so parse → print → parse is lossless. -
More date/time constraint-pattern forms are accepted: patterns with literal date/time numbers substituted for the placeholder fields (
1995-??-XX, master05 §Patterns), the ASCII timezone modifiers+hh:mm/+hhmm/-hh(previously only the literal±character worked), and the space-separated date/time pattern (yyyy-mm-dd hh:mm:XX), which the specification’s own assumed-value example uses. -
Character constraints are accepted (
color_name matches {'r','g','b'}, master05 §Constraints on Character), as are the, ...list-continuation marker on every primitive list and the exclusive-lower interval spelling the ADL 1.4 chapters write (|0>..<1000|). -
An inline ADL 1.4 domain block containing a one-sided interval now parses. A
C_DV_QUANTITY <… magnitude = <|>0.0|> …>block was cut short at the interval’s own>, so the archetype was rejected as invalid dADL. -
Defects inside an ADL 1.4 listed term constraint are now reported: a repeated code (STCDC) and an assumed-value code that is not a member of the list (STCAC).
-
A date/time interval must use a timezone on both endpoints or on neither (master05 §Intervals), so two endpoints that cannot be compared are rejected instead of silently accepted.
-
Operators the ADL 1.4 chapter names but no grammar defines are refused with a message that says so — the negated
~matches/~is_in/∉family and the=~/!~regex-match operators — instead of being read as their affirmative counterparts, which would invert the constraint.
3.14.0 - 2026-07-30
Fixed
- AQL VERSION coded-field predicates respect their sub-paths. Predicates
on
commit_audit/change_typeandlifecycle_statecompared every sub-path against the stored numeric code, so the rubric form (…/value='creation') silently never matched. The three defined sub-paths now compare correctly (defining_code/code_stringagainst the code,valueagainst the terminology rubric,terminology_id/valueagainstopenehr); other suffixes are clean invalid-query rejections. - AQL
SELECT DISTINCTwithORDER BYexecutes correctly. Sorting a DISTINCT projection by one of its selected columns previously failed with a database error surfaced as HTTP 500; it now orders by the output column. Sorting a DISTINCT projection by an expression that is not selected is a clean invalid-query rejection (the AQL specification defines no semantics for it) instead of a 500. - AQL date/time functions work in temporal comparisons. Comparing a
temporal path against
NOW()/CURRENT_DATE_TIMEetc. previously failed with a database type error surfaced as HTTP 500; function operands now join the comparison in the same coercion space as literals. - Comma-fraction ISO 8601 timestamps compare correctly in AQL. Canonical
DV_DATE_TIMEvalues using the ISO-permitted comma decimal sign (21:22:19,501+00:00) were silently excluded from temporal comparisons (and their promoted index column stored NULL). Both the write-time promotion and the query-time casts now normalize the comma form. - AQL coded-name node predicates match correctly. The name term-code
shortcut (
[at0002, snomed_ct(3.1)::313267000], and theterminology::code|informational text|form) was compared as one raw token againstcode_stringand could never match. It now decomposes per the AQL specification’s canonical expansion:code_stringandterminology_id/valueare compared separately, the informational|…|tail is ignored, and a bare at-code name operand asserts the archetype’slocalterminology.
Changed
TOP n BACKWARDis now rejected with rewrite guidance. The deprecated direction variant previously returned the first n rows silently. The server now refuses it as an invalid query whose message shows the recommended rewrite (ORDER BY <path> DESC LIMIT n). PlainTOP nandTOP n FORWARDare unchanged.
3.13.0 - 2026-07-30
Added
-
The ISO 8601 date/time/duration types implement their computational functions (BASE
foundation_types/master06-time_types.adoc§Computational Functions + the fourIso8601_*class definitions): the DEFINITEadd/subtract/diffon dates, times and date/times — a duration reduced to exact seconds with theTime_definitionsAverage_days_in_year/Average_days_in_monthlengths — and the NOMINALadd_nominal/subtract_nominal, which advance the calendar to the same day-of-month and clamp it down where the target month is shorter (29 Feb++ P1Y→ 28 Feb, 31 Jan++ P1M→ 28/29 Feb). Durations gainadd/subtract/multiply/divide/negative. Also added across the four types:as_string(the value in extended format),is_extended,is_decimal_sign_commaandhas_fractional_second. Arithmetic on a partial value, or a result outside the representable 0000–9999 year range, is reported as no result rather than an invented one. -
openEHR path expressions support general comparison predicates (BASE architecture overview §Paths and Locators, “Other Predicates”): path predicates of the form
[at0007 and time >= '2005-06-24T09:30:00']or[value/defining_code/code_string = 'A04']— a relative attribute path, an operator (=,!=,<,<=,>,>=), and a quoted-string or numeric literal — now parse and evaluate everywhere RM paths are resolved, includingehr:URI resolution. Strings compare lexically (ISO 8601 date/times order temporally), numbers numerically, with XPath existential node-set semantics; predicate text outside the grammar is still rejected loudly. Previously these spec-defined forms were refused as unsupported.
3.12.0 - 2026-07-29
Changed
-
The conformance verdict model no longer has excused capability states. The published reports and certificates previously carried two non-verdict evidence tokens —
unrealized(every case excused by a register citation) andno_cases(a claim the catalogue named no case for). Both are deleted: the catalogue gates now refuse those shapes before any server is assessed, and every capability a party claims is reported as exactly one of passed / failed / inconclusive / not-evidenced. A required capability without passing evidence now fails its tier with no excuse arm, for every assessed party alike; both committed records and the published comparison were re-derived under the stricter model (no tier verdict changed for either party). -
An empty TDD batch answers
200with[]instead of201.POST /message/tdd/{ehr_id}/batchwith an empty array creates nothing, and201 Createdreported a creation that did not happen. Batches with members are unaffected. -
EXTRACT_SPEC.extract_typenow accepts every code the openEHR Reference Model names.POST /message/exportpreviously refusedopenehr-synchronisationandopenehr-generic— two of the five extract types the RM’s EHR Extract chapter lists by example — as out of group. Both are accepted now, alongsideopenehr-ehr,openehr-demographic,generic-emrand the catch-allother. -
Conformance: a product is no longer excused from 186 test cases for declaring an older REST release (#635). Every conformance case may declare the openEHR release its behaviour needs, and systems declaring an earlier release are skipped for it. That declaration had been copied onto 343 cases as authoring boilerplate, which quietly wrote off most of the EHR, COMPOSITION, DIRECTORY, CONTRIBUTION, QUERY and template surface for any product declaring ITS-REST 1.0.3 — behaviour those products do implement and should be judged on. Each case was re-derived against the released amendment record, and the requirement is kept only where the released text actually dates it: ITEM_TAGs, the Demographic API, admin EHR deletion, the Simplified Formats media types,
Prefer: return=identifier, the audit-detailssystem_id, the reservedaqlquery name, the template/examplesub-resource, and SMART on openEHR. Everything else is now judged for every product, with the two genuinely release-dated header rules (the weakW/ETag form and the read/deleteLocationrestriction) still applied only to the release that introduced them. No test was removed or weakened; the comparison against other openEHR products now covers what they really implement. -
The conformance statement no longer claims nine capabilities it cannot demonstrate (#623). ADL 1.4 and ADL 2 archetype provisioning, the admin Activity Report, EHR dump/load, EHR and demographic archiving, EHR Extract, TDS, and the MESSAGE API were all being claimed while every one of their test cases was excused: openEHR’s released REST API publishes no endpoints for them, and EHRbase-rs exposes none of its own either — the underlying service methods exist, but nothing reaches them over HTTP, so a conformance runner has nothing to drive. Claiming a capability is the obligation to prove it, so those claims are withdrawn until the routes exist. Nothing was removed from the product; what changed is that the published statement now only claims what can be demonstrated.
-
Helm chart and operator-facing comments cite durable references (#322). The chart’s
values.yaml,Chart.yamland post-install NOTES pointed at internal design documents that no longer exist (the deleted design and enterprise doc trees) and at retired decision-record numbers. Each is now either the official upstream documentation it was standing in for (the PostgreSQL docs for the unprivileged app role and thelock_timeoutmigration wrapper, the Kubernetes Pod Security Standards for the container security posture), an explicit “our own extension, no openEHR spec governs it” flag on the optional integrations, or the rationale written out inline — so an operator reading the chart is never sent to a dead path. No default value, template, or rendered manifest changed. -
The published per-chapter outcome bars are now a two-level chart with no
Otherbucket (#613). The single bar per schedule chapter hid the EHR chapter’s hundreds of cases behind one rectangle and swept the System API and anything unrecognised into anOtherrow. The chart now renders a chapter header carrying the chapter’s total above one scaled bar per band — the surface a case actually exercises (EHR resource / EHR_STATUS / COMPOSITION / DIRECTORY / CONTRIBUTION / item tags / revision history, ADL 1.4 vs ADL 2 vs stored queries, ad-hoc vs stored query execution, parties vs relationships vs versioned party, and so on) — with the exact passed / FAILED / errored / cited-N-A counts printed beside every row, so a small band never loses its numbers to a short bar. Cited-N/A segments carry a hatch texture so “not executed, with a citation” can read as neither a pass nor a failure. The taxonomy is total: every case id maps to a named band and an unmapped id fails the render naming the id, rather than landing in a silent bucket. Both published SUTs render the same bands — a band with no case shows as an explicitno casesrow — so the comparison page reads band-for-band. -
The conformance pipeline now exercises BOTH claimed version-signing modes in every run, in the one committed record (#609). openEHR defines a version signature at two depths of one mechanism — a plain digest (an integrity check) and an openPGP RFC 4880 signature (which additionally authenticates the author) — and a running server does one or the other. The product claims both, so
scripts/conformance.shnow brings up a second deployment of the same built image in the openPGP posture alongside the standard stack (its own compose project, host port 8081), and the party’sixit.jsondeclares it as an extra instance carrying its own signing block. The openPGP signature cases address that instance; one run, oneresults.json, and the Signing capability’s evidence covers both modes. Consequently theCONF_SIGNING_MODE=pgpenvironment switch and the separateixit.pgp.jsonparty file are removed — there is nothing left to select, both modes always run. A conformance target that declares no such instance (upstream EHRbase) has the openPGP cases recorded not-applicable with that citation instead of failed, which is also now true for any case addressing an instance a party does not declare: it is excused at selection time rather than surfacing as an inconclusive row. -
The conformance suite proves EHR-scoped querying against two EHRs, not one (#604). The four cases that check a query is confined to the EHR named in the
openehr-ehr-idrequest header used to run against a server holding a single EHR, so a server that ignored the header returned the same rows and passed. Each now creates a second EHR with its own content first: an unscoped answer carries the extra row and fails the case. The behaviour being checked is unchanged; the check can no longer be satisfied by accident. -
The conformance suite now names a malformed request and invalid content differently everywhere (#605). Fifteen more conformance cases used to report a rejected request as a content-validation failure when what the request actually broke was its own syntax — an unparseable template upload, a path segment that is not an identifier, a
version_at_timeoutside the ISO 8601 form the specification mandates, or a tag list sent as something other than a list. Those now report as malformed requests. Nothing changes on the wire (all fifteen answered400 Bad Requestbefore and after) and no server passes or fails differently; the published conformance report and case records simply name one rejection law one way, so a reader can tell the two families apart. -
Two behaviours the conformance suite used to treat as optional are now required of every server (#556). openEHR publishes its REST specification as normative prose and as OpenAPI files, and the prose is silent on more than it looks. Where the prose says nothing, those OpenAPI files are now read as part of the specification rather than set aside — so behaviours previously recorded as “the specification does not say” turn out to be specified after all, and the suite stops excusing them. Two change how a server is judged. Uploading an operational template under a
template_idthat already exists must answer409 Conflict; it was previously a declared choice between refusing and silently replacing the stored template, and a server could opt out of the refusal. Updating a COMPOSITION whose request body carries auidnaming a different version container than the URL must be rejected; the mismatch was previously reported without affecting the verdict. Both are now gating conformance cases. The published conformance artifacts and the ambiguity register record the specification sentence behind each. -
The published Conformance Statement now declares the non-openEHR surface this server serves (#527). A new “Additional non-openEHR surface” section lists every extension route family — health, status, the OpenAPI/Swagger meta routes, management, terminology, event subscriptions, multi-tenancy, the FHIR R4 connector and its mapping store, the ITI-81 audit read,
PARTY_RELATIONSHIP, the bare stored-query list, the admin template/query/config routes and SMART discovery — with the routes it serves and the configuration that enables it. The section states plainly that none of it is part of any conformance claim: no openEHR specification governs these routes, no conformance case exercises them, and no verdict depends on them. A reader of the statement no longer has to discover the extension surface on the wire. -
Canonical-XML support is now declared per resource family in the Conformance Statement, instead of being assumed for every resource (#572). The openEHR release publishes an XML document element for only eight names —
composition,version,items,template,extract,extract_request,versioned_object,archetype— while its REST API addressesapplication/xmlto the whole resource surface. For a resource with no published document (EHR, EHR_STATUS, the directory FOLDER, the demographic party types, CONTRIBUTION) the specification therefore neither requires a server to serve XML nor forbids it, so the suite no longer asserts either answer: the statement declares, per family, whether this server offers canonical XML there, and the conformance run judges the matching branch — the XML read, or the406 Not Acceptablerefusal the specification designates for anAccepta service cannot fulfil. This server declares XML support for EHR, EHR_STATUS, directory and the party families and declares it unsupported for CONTRIBUTION reads, exactly as it behaves. The full per-resource classification, its citations and the upstream report asking openEHR to reconcile the two inventories are recorded in the conformance ambiguity register asAMB-167/UPR-127. -
Stored top-level objects now carry their copied
uidat commit time (#439). The full three-partOBJECT_VERSION_IDis stamped into the canonical body before it is decomposed, signed, and stored, so the contained object served inside an ORIGINAL_VERSION envelope, the bare resource reads, AQL projections, and EHR Extract exports all carry the identical uid value (ITS-REST overview Resources §Identifier types). Previously the uid was injected only on some read paths; clients now see one consistent shape everywhere. Imported (EHR Extract) content is exempt — its bodies are preserved verbatim. -
EHR.ehr_statusreferences the version container by itsHIER_OBJECT_ID(#426). The served EHR body’sehr_statusOBJECT_REF (typedVERSIONED_EHR_STATUSper the RM invariant) previously carried anOBJECT_VERSION_IDnaming one version — inconsistent with the siblingehr_accessref and with the RM’s container semantics (OBJECT_REF.idis the id of the referenced object; the referenced object is the VERSIONED_EHR_STATUS, whose uid is aHIER_OBJECT_ID). Both refs now carry the container id. Clients that read the current EHR_STATUS version uid from the EHR body must fetchGET /ehr/{ehr_id}/ehr_statusand use its ownuidinstead.
Fixed
-
ADL 1.4 archetypes with anonymous archetype slots are accepted. The ADL 1.4 specification writes archetype slots without a node id in its own examples (
allow_archetype OBSERVATION occurrences matches {0..1} …), and published CKM archetypes use that form — but the parser demanded[atNNNN]and refused such sources with a syntax error, soPOST /definition/archetype/adl1.4answered422for spec-valid archetypes. Both the anonymous and the identified slot forms now parse; ADL 2 sources still require the node id, as ADL 2 defines. -
An empty TDD batch aimed at a non-existent EHR is now refused.
POST /message/tdd/{ehr_id}/batchverified the target EHR once per document, so a batch with no documents answered success without checking the EHR at all. The target is now verified for every batch, empty ones included, and an unknown EHR answers404. -
An activity-report request whose time interval runs backwards is now refused instead of answered.
GET /admin/report/*accepts an optionaltime_interval=<lower>/<upper>; a pair bounded on both sides with the lower bound after the upper one is not an interval at all (the openEHR BASEIntervalinvariant requireslower <= upper), and the server used to run it anyway and hand back the empty count such a range selects — a truthful-looking answer for a window nobody asked for. It is now400. Equal bounds remain a legitimate single-instant interval. -
A corrupt dump archive no longer reports as an internal server fault.
POST /admin/loadagainst a location whose manifest or segment is mangled or truncated used to surface as an unexpected-exception500, while a location holding no archive at all reported the openEHR service model’sfile_not_writable. Both are the same fact — the location does not hold a readable archive — and both now reportfile_not_writable, with nothing loaded either way. -
An export requesting a format this server does not implement now answers
501 Not Implementedinstead of400.openehr_canonical_xmland the7zcompression format are valid values in the openEHR service model that this server does not build; reporting them as malformed requests was wrong, and the response now says the functionality is unsupported. -
The template list collapses to the latest version of each template when the
versionparameter is absent (#614).GET /definition/template/adl1.4(and the ADL2 twin) used to return every stored version regardless; the released openEHR REST API says an absentversionreturns “only the latest version”. Passversion=*to list every stored version — the admin console’s template inventory does exactly that, so its view is unchanged. -
Conformance runner: a requirement the openEHR specification dates to a release is now judged only against the servers that claim that release (#627, #628). Two rules the ITS-REST overview introduces at Release 1.1.0 — that an
ETagcarrying a resource identifier must be weak (W/"…"), and thatLocationis no longer returned on reads and deletes — used to be enforced or waived by accident, depending on whether a case happened to carry a version floor for some unrelated reason. Each rule now carries the floor itself, so a target declaring an earlier ITS-REST release is still driven for the operation and still judged on everything else, while a target declaring 1.1.0 or later faces the rule everywhere it applies; a test derives the affected set from the committed catalogue so no future binding can escape it. Separately, the query resultSet’sETagis no longer required to be PRESENT: the specification names the header without any requirement keyword and its only strength anywhere is a SHOULD, so a server that omits it is not failed — while a server that emits it must still emit it in the weak form. Conformance verdicts for this product are unchanged (it declares ITS-REST 1.1.0 and returns the header). -
Conformance runner: one operation is now sent one way (#629). The runner built request headers in two places — once for a case’s own steps and once for the preconditions a case needs — and the two disagreed, so the same operation went on the wire differently depending on which path reached it (a template upload was refused as a case and accepted as a precondition). There is now a single header-construction path; a binding declares the
Acceptit intends; and a refusal of thatAcceptis recorded as a named outcome instead of vanishing into an unmapped status. The published conformance report also gains a per-capability table showing how many cases passed, failed, and came back inconclusive, so a divergence can no longer hide behind an inconclusive exchange. A binding may now also declare the release its wire first appeared in, and cases driving it are recorded not-applicable — with that citation — for targets that declare an earlier one. -
Conformance runner: a create asked for a minimal response may answer either
201 Createdwith an empty body or204 No Content(#630). The specification says an empty-bodied response SHOULD use204, and its machine-readable artifacts declare201for creates; both are therefore conformant, and the suite now judges both instead of leaving one of them an inconclusive result. Updates are unchanged (204only, where both sources agree). -
Web Template: a template that narrows a party to
PARTY_RELATEDnow describes its party fields (#600). When an operational template pins a party slot — a subject, a composer, a participation performer — toPARTY_RELATED, the generated Web Template used to describe that node as an empty container: none of the|name,|id,|id_schemeand|id_namespacefields the Simplified Formats specification gives every party appeared, so a form builder reading the Web Template could not offer them even though the server has always accepted and returned them. The four fields are now described, alongside therelationshipsub-path the narrowing adds. The same held wherever a party node also constrained an attribute; the fields survive that too. Nothing changes for stored data or for the FLAT and STRUCTURED wire. -
FLAT/STRUCTURED: the specification’s other spelling of a related party’s relationship is accepted on input (#589). The Simplified Formats mapping table for a
PARTY_RELATEDwrites the relationship sub-path…/_relationship, while every example block in the same section — and the participation-performer table — writes…/relationship|code. Only the example form was accepted, so a producer that followed the table row had its composition rejected with an unknown-path error. Both spellings are now read, and either one makes the party aPARTY_RELATED. What the server emits is unchanged: always the example spelling, so stored data and round-trips look exactly as before. -
Three FLAT/STRUCTURED mapping gaps: an entry’s subject, null-flavoured elements, and the event-context paths (#532, #533, #534). An entry’s
subjectnow travels over the wire in both directions: a composition whose OBSERVATION, EVALUATION, INSTRUCTION, ACTION or ADMIN_ENTRY names someone other than the record subject emits…/subject|name,…|id,…|id_scheme,…|id_namespaceplus the/_identifier:iand/relationshipsub-paths, and the same keys are accepted on input — previously the subject was dropped on the way out and rejected as an unknown suffix on the way in, so the information was lost in both directions. A “self” subject carrying an external reference is marked|_type: PARTY_SELFso it comes back as itself rather than as an identified party. Second, an element that records why a value is missing (a null flavour, which the reference model makes mutually exclusive with the value) now keeps/_null_flavourand/_null_reasonthrough a full round trip; the flattener reached elements only through their value, so a null-flavoured element vanished entirely. Third, the event-context fields the specification also spells as paths —…/context/start_timeand…/context/setting— are honoured on input instead of being silently discarded in favour of thectx/defaults, as are an entry’s…/languageand…/encoding; a bare…/context/setting|coderesolves against the openEHR setting value set exactly asctx/settingdoes. Paths the specification does not define are still rejected with a clear error rather than ignored. -
The SMART discovery endpoint is fully described in the published API reference (#535): the
application/jsonrequirement, the requiredorg.openehr.restservice with its absolutebaseUrl, the capability-honesty rules, the public pre-auth posture, and a worked document example — previously a one-line declaration. -
The FLAT/STRUCTURED mapping of
INSTRUCTION_DETAILSandINTERVAL_EVENT.sample_count(#521). An ACTION’s instruction details now travel over the wire exactly as the Simplified Formats specification maps them — three suffixes on the_instruction_detailsfield itself:|path,|composition_uidand|activity_id. Previously the server emitted a nested_instruction_details/instruction_idfield with generic object-reference suffixes, so|composition_uidwas never produced, the instruction path sat one level too deep, and two suffixes the specification does not define were emitted; clients that sent the specified form had the details silently dropped. Both directions are now symmetric, so a composition round-trips through FLAT and STRUCTURED without losing the reference. Separately, an interval event’s|sample_count(the count of samples the interval summarises) is now both emitted and accepted; it was previously ignored in both directions. -
The template documentation no longer advertises a build flag that does not exist (#521). The templates-and-validation page described an
ehrbase-quirksbuild that renumbers duplicate node names and accepts two vendor-onlyDV_QUANTITYsuffixes; that feature was removed long ago. There is one behaviour — the one the specification prescribes. -
The published API reference is now honest about the non-openEHR surface, and follows a non-default base path (#526). Every operation this server serves outside the standardised openEHR ITS-REST resource set — the management, terminology, event-subscription, multi-tenancy and FHIR R4 groups, plus the IHE ITI-81 audit retrieval — now states in its own published description that no openEHR specification governs it (the flag previously lived only in source-module comments the document never carried), and each disabled-group
404now says that an unauthenticated caller is answered401first, which is what the server actually does. The/status,openapi.json, Swagger-UI and System-OPTIONSdeclarations now follow a configuredserver.base_pathinstead of always printing the default deployment’s paths. The twelve per-familyehrbase-{family}.openapi.jsondocuments are documented, the ITI-81 and admin-extension operations now appear in a family document (previously in none), and the document itself declares aserversblock, a link to the implemented ITS-REST release, descriptions for every tag it uses, and the implemented ITS-REST contract version asx-openehr-its-rest(distinct frominfo.version, which is the product version). -
SMART App Launch conformance (#519). The discovery document’s
services.*.baseUrlvalues are now absolute URLs built from the new requiredsmart.public_base_urlorigin (the specification requires absolute URLs); theopenehr-permission-v1capability is advertised only in fail-closed mode (require_smart_scopes = true) so advisory deployments no longer over-claim fine-grained enforcement; operators can advertise the HL7 base capabilities viasmart.endpoints.capabilities; enabling SMART now boot-validates the origin plus the authorization/token endpoints; the published OpenAPI’s discovery path follows a configuredplatform_base_url; and — the substantive gap — the template and AQL scope families now enforce: in fail-closed mode a token without a matchingtemplate-…/aql-…scope is denied403on the template and query routes (previously only the composition family was gated). -
The published API reference now describes the admin endpoints in full, and the disabled-admin answer is documented correctly (#513). The five admin operations — the released
DELETE /admin/ehr/{ehr_id}andDELETE /admin/ehr/all, plus the template-delete, stored-query-version- delete and effective-config extensions — gained the branches they actually answer (400for a malformed EHR id,401/403from the admin role gate,404, the template409), the mandatory emptyAllowheader on every disabled-group405, and worked request/response examples. They now carry the released operation text verbatim, including the permanent-physical- delete cascade and its data-protection (GDPR) sentence, the development/testing note on the bulk route, and the fact that this server deletes synchronously (204only — the specification’s optional asynchronous202is never returned). The bulk route documents both accepted query forms (?ehr_id=a&ehr_id=band?ehr_id=a,b) and that an absent or empty list deletes every EHR; the three extension routes are flagged plainly as our own, governed by no openEHR operation. Reference documentation and configuration docs that claimed a disabled admin API answers404were corrected: it answers405 Method Not Allowedwith an emptyAllowheader. -
Demographic ITEM_TAG collections honour the released dual-form addressing (#509). A version-addressed
uid_based_idon the demographic tag routes now reads, replaces, and deletes that VERSION’s own distinct tag collection (previously every form reached the container’s set); the tags GET and DELETE now answer404for a nonexistent, wrong-kind, or cross-space target (previously an empty200list); bothopenehr-item-tagandopenehr-version-item-tagrequest headers are accepted on party create AND update, each landing on its own target’s collection with its own response-header echo; a tag’stargetis now the bare RMUID_BASED_ID(anOBJECT_VERSION_IDfor version targets) and itsowner_idfollows the released examples’local/SYSTEMshape; and the PARTY_RELATIONSHIP extension’s stale-delete409now echoes the latestversion_uidinETaglike the party delete it mirrors. -
The published API reference now describes the demographic item-tag endpoints in full (#510). The sixteen
ITEM_TAGoperations — the person / agent / group / organisation / roletagsread, replace and delete-by-key, plus the space-wideGET /demographic/tags— gained the status branches they actually answer (400,404,406,415,422), thePrefer/Content-Type/Acceptrequest headers, thePreference-Appliedecho on both replace branches, and worked ITEM_TAG examples. They now state plainly that a version-addresseduid_based_idand a container-addressed one name two DISTINCT tag collections, that an empty list on the replace clears every tag, that deleting by key alone removes every tag under that key whatever itstarget_path, and that a tag collection is never change-controlled — so noETag,Last-ModifiedorLocationis offered anywhere on the family. The space-wide list is documented for what it is: the one tag route with no scoping parameter at all, no paging, and200(an empty array when nothing matches) or400as its only outcomes. -
Demographic header echoes (#388). The stale-version party DELETE’s
409 Conflictnow returns the latestversion_uidinETag(the released response requires it); and the demographic CONTRIBUTION read now carries the weakETag(the contribution uid) andLast-Modifiedfrom the committal instant, matching its EHR sibling. -
The published API reference now describes the demographic endpoints in full (#505). The 26 person / agent / group / organisation / role, versioned-party and demographic-contribution operations in the served OpenAPI document gained the response headers they actually send (
ETag,Location,Last-Modified,Preference-Appliedand the twoopenehr-*-item-tagheaders), the status branches they actually answer (204,400,406,409,412,415,422), the committal (openehr-version/openehr-audit-details),Prefer,If-Match,AcceptandContent-Typerequest headers, worked PERSON / VERSIONED_PARTY / CONTRIBUTION examples, and a spec citation on every branch. Reads and deletes no longer suggest aLocationheader they never send, and the party routes now state plainly that Simplified (FLAT / STRUCTURED) media types are refused because a demographic party is not templated. The eightPARTY_RELATIONSHIPoperations are labelled for what they are — an extension of this server, with no openEHR REST operation behind them — and the group carries a note that the openEHR Demographic API is itself aDEVELOPMENT-state specification. -
Stored-query stores answer honest
Locations and validate the version segment (#498). The version-lessPUT /definition/query/{name}now always names the version it actually wrote (…/1.0.0) inLocation— previously, when a higher version already existed, the header pointed at that untouched neighbour. The versionedPUT /definition/query/{name}/{version}now requires an exact numericmajor.minor.patchand rejects prefix, pre-release, or malformed version segments with400 Bad Request— previously any string was stored verbatim, and a single non-numeric version (e.g.1.0.0-rc.1) broke every later stored-query list and retrieval on the server. Both store forms also now refuse a payload declaring a media type other than their singletext/plainbody type with415 Unsupported Media Type(an absentContent-Typeremains accepted). -
The published API reference now describes the stored-query endpoints in full (#499). The four stored-query operations in the served OpenAPI document gained the
Locationresponse header both stores actually send, the bodyless shape of their200, the status branches they actually answer (400everywhere,406on the reads,409on the versioned store,404on the version read), the qualified-name andversiongrammars (including the reservedaqlname and the read-side prefix-resolution rule), request and response examples, and a spec citation on every branch. The bare “list every stored query” route is now labelled for what it is — an extension of this server, not a released openEHR operation. -
Template rejection statuses are coherent across both upload routes (#493). An ADL2 source with grammar-level syntax errors now answers
400 Bad Request(the released “syntactically invalid … content” branch) instead of422; AOM2 validation-phase failures on a parsed source keep answering422with the rule codes invalidationErrors. On the ADL 1.4 side, an AOM2 artefact-validity violation on a successfully parsed OPT now answers422with the rule code invalidationErrors(previously400) — syntax gates400, semantics gate422, on both routes. -
Template-upload rejection statuses follow the released split (#489). An ADL 1.4 OPT upload whose body is not well-formed XML now answers
400 Bad Request(the released “syntactically invalid … content” branch) instead of422; well-formed XML that is not a valid OPT stays422. The ADL2 template upload now refuses a payload declaring a media type other than its singletext/plainbody type with415 Unsupported Media Type(an absentContent-Typeremains accepted), mirroring the ADL 1.4 guard. -
The published API reference now describes the template endpoints in full (#490). The nine ADL 1.4 / ADL 2 template operations in the served OpenAPI document gained the response headers they actually send (
ETag,Location,Preference-Applied), the status branches they actually answer (400,406,415,422), request/response examples, and a spec citation on every branch; “Get template at version” is now marked deprecated, as the openEHR REST specification marks it. -
Stored-query POST bodies accept
{}; the query POSTs accept the URL parameter forms (#481). The three body members of the stored-execute body are optional (the docs text givesoffseta default and makesfetchimplementation-default — the stalled required-list loses), so a parameterless stored query executes with an empty body; and all three POSTs now acceptoffset/fetch/named$parametersfrom the URL (the docs-text SHOULD-list draws no GET/POST distinction), with a body-vs-URL disagreement rejected 400. -
Tag GET/DELETE verify the addressed target; empty
target_pathnormalizes to absent (#474).GET/DELETEon the per-target tag routes now answer 404 for a nonexistent, foreign-EHR, or wrong-kinduid_based_id(the released trigger: “when theuid_based_iddoes not exist”; previously the GET answered200 []and the DELETE was not kind-checked), and atarget_path: ""on the tag PUT is normalized to the absent path so""and absent are one(key, target_path)identity. The EHR-wide tag listing likewise answers 404 for an unknownehr_id(previously200 []). -
Contribution change-type mismatch statuses follow the released assignment (#467). A non-creation
change_typecommitted as the FIRST version of a versioned object (the released400_CONTRIBUTIONtrigger: “the modification type does not match the operation - i.e. first version of a MODIFICATION”) now answers 400; a249|creation|member carrying apreceding_version_uid— the unassigned mirror case — moves to 422. Previously the two were inverted. -
The CONTRIBUTION GET serves
ETag+Last-Modified(#463).GET …/contribution/{contribution_uid}now carries the contribution-uid weakETag(the same identity the 201 already carries) and aLast-Modifiedderived from the contribution audit’s commit instant (ITS-REST overview Requests and responses §“ETag and Last-Modified”). -
Directory by-version reads verify the full addressed identity; the directory DELETE 204 carries the deleted version’s identity (#456).
GET …/directory/{version_uid}now answers 404 when the addressedcreating_system_iddoes not match the stored identity (ITS-REST overview Resources §Identifier types), andDELETE …/directoryanswers 204 with the NEW523|deleted|version’s weakETag+Last-Modified(previously header-less), matching the composition DELETE. -
COMPOSITION update body-uid mismatch is 422, not 400 (#451). A PUT whose body
COMPOSITION.uidnames a different versioned object than the request path is now rejected 422 Unprocessable Entity — the body is well-formed and the contradiction is semantic (ITS-REST Requests and responses §HTTP status codes, the 422 row; no released sentence assigns the rejection — register-documented). -
Versioned-composition version-by-id reads are container-scoped (#449).
GET …/versioned_composition/{versioned_object_uid}/version/{version_uid}previously ignored the container segment and served any version theversion_uidnamed; aversion_uidwhoseobject_iddoes not match the path’s container now answers 404 (ITS-REST overview Resources §Identifier types; RMOwner_id_valid). -
EHR creation mints RM-valid EHR_STATUS and EHR_ACCESS objects; the RM archetype-root invariants are enforced on client bodies (#423). The bootstrap defaults carried an archetype-HRID
archetype_node_idwith noarchetype_details— violating RMIs_archetype_root(unconditional on both classes) withArchetyped_valid(“is_archetype_root xor archetype_details = Void”). Both defaults now carry theARCHETYPEDblock (archetype_id = the node id, rm_version 1.2.0), and a client-supplied EHR_STATUS/EHR_ACCESS violatingArchetyped_valid(a root withoutarchetype_details, or a mismatchingarchetype_id) orLinks_valid(an explicit emptylinkslist) is rejected with422. Clients that previously committed root objects withoutarchetype_detailsmust now supply it. -
Imported and archive-loaded EHRs are now complete, first-class EHRs (#425). An EHR-Extract clone (
import_ehr) created no EHR_ACCESS, so a source extract that carried none produced an EHR permanently violating the RM invariantEhr_access_valid(EHR.ehr_accessis 1..1) whose servedGET /ehr/{ehr_id}body simply omitted the mandatory reference; the clone now commits the same default EHR_ACCESS the create path uses (RM ehr master04 §EHR Creation — a root EHR object, an EHR Status object and an EHR Access object), in the import’s own transaction. Neither the import nor the admin archive load promoted the EHR’s subject, so imported/loaded EHRs were invisible toGET /ehr?subject_id=…&subject_namespace=…and exempt from the one-EHR-per-subject409; both paths now derive the subject from the landed EHR_STATUS. Consequences: importing or loading an EHR whose subject this repository already holds is now refused —409for an import (naming the subject and the EHR that holds it), and, for the archive load, a per-recordDUMP_LOAD_FAIL_REPORTentry that skips just that EHR exactly like a duplicate EHR id, leaving the rest of the archive to load. -
Both EHR creates now accept and merge the committal request headers (#422). ITS-REST
docs/overview/Requests_and_responses.md§“openehr-version and openehr-audit-details” makes it a MUST that a service acceptopenehr-version/openehr-audit-detailson the directPUT/POST/DELETEcommits of change-controlled resources and merge “whatever is provided … with the default VERSION and VERSION.audit_details attributes on commit runtime”. Creating an EHR commits its EHR_STATUS and EHR_ACCESS in a contribution (RM ehr master04 §EHR Creation), butPOST /ehrandPUT /ehr/{ehr_id}ignored both headers — while the served OpenAPI already claimed they were merged. They now are: the supplieddescription,committer, andsystem_idland on the creating contribution and on both committed versions’commit_audit, andopenehr-version: lifecycle_state.code_stringsets the new EHR_STATUS version’s lifecycle state.change_typeis constrained to249|creation|(a create commits a first version): restating249is accepted, another group code is400, and a token outside theaudit_change_typegroup is422. The OpenAPI document now also lists both headers as documented parameters on the two create operations. -
Served OpenAPI: the four EHR-resource operations now document the whole wire (#427).
GET /ehr,POST /ehr,GET /ehr/{ehr_id}andPUT /ehr/{ehr_id}under-described what the server actually does. The two creates now declare their415(an unprocessable requestContent-Type, including a Simplified Format, which is defined only for templated COMPOSITION content) and406(anAcceptthat canonical JSON/XML cannot satisfy) branches, both a MUST in the REST spec’s format sections; the two reads declare406as well, andGET /ehr/{ehr_id}declares the400it returns for a malformed (non-UUID)ehr_id. Every success response now carries a header block:ETag/Location/Last-Modified/Preference-Appliedon the201s,ETagon the reads — where the absence ofLocationandLast-Modifiedon a read is now stated explicitly rather than left unsaid. ThePrefer-conditional201body is documented as a named example pair (representation— the full RMEHR;identifier— the single-uidobject), thePreferheader enumerates its three tokens and its default, and the request body, the read bodies, and the subject query parameters carry real served-shape examples. Corrected false claim:PUT /ehr/{ehr_id}describedehr_idas anyHIER_OBJECT_IDwith “a UUID strongly recommended”, while the server accepts UUIDs only — which is what the abstract service model types the argument as, and every UUID is a validHIER_OBJECT_IDroot. -
Served OpenAPI: the System API’s
OPTIONSoperation is now documented (#418). The Options-and-Conformance endpoint (OPTIONSon the API base path) was served but absent from the generated OpenAPI document and Swagger UI, because its route mounts outside the documenting router (above the CORS layer, deliberately). A documented twin now carries the full operation description — theOptionsmanifest schema with field documentation and example, theAllow/Content-Typeresponse headers, and the406negotiation branch. -
version_at_timenow accepts a datetime without a timezone, interpreting it in the server’s local timezone (#401). ITS-RESTdocs/overview/Resources.md§“Datetime format” requires the extended ISO 8601 form for datetime query parameters and states that “Timezone SHOULD be only supplied when needed, otherwise the local timezone is assumed” — so?version_at_time=2016-06-23T13:42:16is a valid request. It was answered400 Bad Request, because both at-time parsers (the EHR group’s and the DEMOGRAPHIC group’s duplicate) required an offset. A single shared decoder now backs every at-time read — EHR_STATUS, COMPOSITION, DIRECTORY, theversioned_*version reads, the demographic party/relationship reads, and the contributiontime_range— and resolves an offset-less value against the server’s system timezone (TZ, else the platform’s local-time configuration); a value falling inside a daylight-saving fold or gap resolves to the earlier and the later instant respectively. Genuinely malformed input is unchanged: the basic ISO 8601 format (20160623T134216Z), a date without a time (2016-06-23— the parameter is specified as “a given time”, and reading it as midnight would silently serve a version the caller never asked for), a timezone-less value carrying an[Area/Location]annotation, and anything unparseable are all still400. -
Every
405 Method Not Allowednow carries anAllowheader, and the408/413transport refusals use the openEHR error body (#400). ITS-RESTdocs/overview/Requests_and_responses.md§“HTTP Methods” answers a method a resource does not serve with405, over RFC 9110 — the authority that section names — whose §15.5.6 requires that “the origin server MUST generate an Allow header field in a 405 response containing a list of the target resource’s currently supported methods”. The router’s405already carried it; the405returned when the admin API is disabled did not, because it comes from a matched handler and so never reached the router’s allow-header machinery. It now sends the empty field value RFC 9110 §10.2.1 defines for exactly this case (“An empty Allow field value indicates that the resource allows no methods, which might occur in a 405 response if the resource has been temporarily disabled by configuration”). Separately, a request that times out (408) or declares a body over the 16 MiB limit (413) was answered by the middleware with an empty ortext/plainbody; both now render the same{ "error", "message" }JSON every other error path emits. Finally, the deviation behind all of this is now recorded rather than silent: the same spec section also SHOULDs501 Not Implementedfor an unrecognized method, and we answer405there too — the two SHOULDs overlap for any method outside the tabulated subset,405is a predefined non-conflicting code in the spec’s own status table, and a blanket501fallback would misreport unknown paths that are owed404.501is still returned for a recognized but unimplemented operation. Adjudicated in the conformance ambiguity register asAMB-60, with the wire-surface boundary registered alongside it. -
The
openehr-ehr-idrequest header now scopesGETquery execution too, and a scope named twice must agree (#399). ITS-RESTdocs/query/Request.md§“About theehr_idparameter” lets clients supply the single-EHR scope “as a query parameterehr_idor alternatively as a request header namedopenehr-ehr-id”, and §“Common Headers and Query Parameters” applies that to “all query execution requests”. Only thePOSTforms honoured the header:GET /query/aql,GET /query/{name}andGET /query/{name}/{version}read the scope from the query string alone, so a header-scopedGETsilently ran as a population query across every EHR. All six execution operations now resolve the scope through one seam. The released text never says what a request carrying both forms means, so the handling is adjudicated and registered (ambiguity registerAMB-59): both forms naming the same EHR execute normally, and both forms naming different EHRs are rejected400 Bad Requestrather than silently picking one — a request that names two EHRs cannot be answered correctly (docs/overview/Requests_and_responses.md§“HTTP status codes”, row400). An empty header value carries no identifier and neither scopes nor conflicts. The deprecatedopenEHR-EHR-idspelling keeps working (HTTP field names are case-insensitive). The header is now also declared on every query operation in the served OpenAPI. -
Prefer/ representation polish:return=identifieris structurally never204, item-tag echoes are per-target, andPreference-Appliedis emitted from one seam (#398). Three divergences from ITS-REST overviewRequests_and_responses.md:Prefer: return=identifiercould fall through to the empty (possibly204 No Content) minimal response while still claimingPreference-Applied: return=identifier. The identifier branch now carries the identifier it renders, so it is unreachable without one — §“Prefer only identifier”: “the status will be201 Createdor200 OK, never204 No Content”. A write that genuinely produces no identifier applies, and declares, the defaultreturn=minimalinstead of claiming an unapplied preference.- The
openehr-item-tagandopenehr-version-item-tagresponse echoes on a change-controlled write merged both targets’ tags into one list and repeated it under both header names. Each header now confirms only its own target’s stored list — §“openehr-item-tag and openehr-version-item-tag”: “openehr-item-tagapplies to VERSIONED_OBJECT targets” while “openehr-version-item-tagapplies to a specific target VERSION”, each confirming “the actual list ofITEM_TAGsstored”. A header the request did not send is not echoed. (The demographic surface still emits both headers from one set, because its tags are stored against theVERSIONED_OBJECTonly, so the two targets coincide there.) Preference-Appliedwas emitted only by the canonical RM / JSON write helpers. It is now declared by every write path through the same seam — the demographic party, relationship and CONTRIBUTION writes, both ADL 1.4 and ADL 2 template uploads, theITEM_TAGcollection writes, and the Simplified-Formats (FLAT/STRUCTURED) COMPOSITION commit — always naming the preference the response actually applied, including the applied defaultreturn=minimalwhen noPreferwas sent. Demographic party writes additionally honourPrefer: return=identifier({uid}body), which they previously ignored.
-
ADL 1.4 template negotiation: the response type mirrors
Accept, and a non-XML OPT upload is415(#397). Two divergences from ITS-REST overviewResources.md:GET /definition/template/adl1.4/{template_id}withAccept: application/jsonwas answeredContent-Type: application/openehr.wt+json— a type the client never accepted. It now returns the same Web Template document underContent-Type: application/json(§JSON Format: “Proper headerContent-Type: application/jsonMUST be present in the response of the service unless the response has no content body”).Accept: application/openehr.wt+jsonkeeps the Web Template media type andAccept: application/xmlthe canonical OPT, both unchanged. (The released source is internally inconsistent here — the operation description names only XML +wt+jsonwhile itsAccept/Content-Typeenumerations includeapplication/jsonwith no schema — so serving the Web Template body is the recorded fixed handling, not a406.)POST /definition/template/adl1.4accepted anyContent-Typeand failed a JSON payload with400from the OPT parser. A request declaring a non-XML payload type is now refused415 Unsupported Media Typebefore parsing (§XML Format: “If the service cannot process the request payload as XML format, it MUST respond with HTTP status code415 Unsupported Media Type”).application/xmlandtext/xmlupload as before, and an absentContent-Typestill reads as the operation’s single body type (the header is a client MAY).
-
Last-ModifiedandETagcompletion on the EHR and DEFINITION surfaces (#396). ITS-REST overviewRequests_and_responses.md§“ETagand Last-Modified” requires both headers on “VERSION, VERSIONED_OBJECT, or other resources that have versioning or unique state identifiers”, withLast-Modified“derived fromVERSION.commit_audit.time_committed.value”. Only theETaghalf shipped previously:Last-Modified(IMF-fixdate) is now emitted on every VERSION read (…/versioned_composition/{uid}/version[/{version_uid}],…/versioned_ehr_status/version[/{version_uid}]), on all COMPOSITION andEHR_STATUSreads and writes (including the delete204and the FLAT/STRUCTURED representations, whose version identity is serialization-independent), and on the EHR create201. The value is the served version’s commit instant — read off the VERSION envelope where the body carries one, and off the version row / commit result for the bare COMPOSITION andEHR_STATUSrepresentations, which have nocommit_auditof their own.GET /ehr/{ehr_id}andGET /ehr?subject_id=…now carry the weakETagbuilt fromEHR.ehr_id.value— the source the spec section itself names. (NoLast-Modified: the RMEHRroot is not a VERSION, andtime_createdis not a last-modification instant.)- The ADL2 template responses (
POST /definition/template/adl2,GET …/adl2/{template_id},GET …/adl2/{template_id}/{version}) now carry the weakETagtheir ADL 1.4 siblings already emitted. The value is the resolvedARCHETYPE_HRID, so addressing a template by a partial id or major-version prefix still yields anETagthat changes when the served artefact does.CONTRIBUTIONcreation still omitsLast-Modified(the commit instant is not carried out of the version-set commit yet) and is markedTODOin the service layer.
-
Committal request headers: client
change_typehonoured, DELETE accepts the headers, deprecatedopenEHR-AUDIT_DETAILSspelling restored (#395). Three divergences from ITS-REST overviewRequests_and_responses.md§“openehr-version and openehr-audit-details” + §“Deprecated headers”:- A client-supplied
AUDIT_DETAILS.change_type(e.g.change_type.code_string="250"for an amendment) is now merged into the commit instead of being silently replaced by the operation default — the spec listschange_typefirst among the client-suppliable attributes and requires “whatever is provided it MUST be merged”. The value is validated against the openEHRaudit_change_typegroup (out-of-group →422,AUDIT_DETAILS.Change_type_valid) and against the operation (a contradicting code such as249|creation|on an update is rejected; the exact status is spec-unassigned — see ambiguity AMB-54 — and returns400). Applies to the direct COMPOSITION/EHR_STATUS/DIRECTORY commits and the demographic party/relationship commits alike. DELETE /composition/{id}andDELETE /directorynow acceptopenehr-version/openehr-audit-detailsand merge the supplied description/committer/system_id into the523|deleted|commit audit — the spec requires the headers accepted on PUT, POST and DELETE.- The bare deprecated header name
openEHR-AUDIT_DETAILS(the exact spelling in the spec’s deprecation table, which is a different HTTP header name thanopenehr-audit-details) is accepted again alongside the 1.0.3 dotted forms and the current name; the current name still wins on conflict. Theaudit_change_typeconstant set now mirrors the complete TERM group (all nine codes), locked by a test against the terminology bundle. Five new CNF catalogue cases pin the merge family end-to-end.
- A client-supplied
-
Demographic API: response-header discipline and
If-Matchhandling (#394). Three MUST/SHOULD-level divergences from the ITS-REST overview (Requests_and_responses.md) are corrected on the/demographicsurface:Locationis no longer emitted on reads, deletes, or409/412error responses. The header now rides create/update writes only, per §Location (“MUST NOT be used to indicate an alternate representation of an existing resource”; “MUST ONLY be used for resource creation … or redirect responses”) and §“Deprecated headers”, which deprecates it onGETandDELETE. Those responses keep the weakETag(andLast-Modifiedwhere known), so a client reading the version identity is unaffected; a client that was following theLocationof aGET/DELETEmust use the request URL it already has.If-Matchnow accepts the weakW/"…"form the server itself emits as theETag, alongside the bare-quoted and unquoted forms — previously echoing the server’s ownETagback was rejected as a malformed precondition (400). The fullOBJECT_VERSION_IDis compared case-insensitively (BASE composite-identifier semantics), so a case-variantcreating_system_idno longer raises a spurious412. A syntactically invalidIf-Matchremains a400and is never silently ignored.- The
versioned_party/versioned_party_relationshipreads (the container, its revision history, and the version reads) now carry the weakETagand, where the served body exposes the commit instant,Last-Modified— both SHOULD-present onVERSION/VERSIONED_OBJECTresponses.
Added
-
Several terminology servers can now serve one instance at the same time. Every entry under
[terminology.external.providers]is started up, not justdefault, and a new[terminology.external.routes]map sends each terminology to the server that serves it — the key is a terminology id (SNOMED-CT) or a system URI (http://snomed.info/sct), matched case-insensitively, and the value names a provider. A terminology with no route goes to the provider nameddefault(or to the sole configured one). Routing applies to the whole terminology surface: the/terminology/*extension API, AQLTERMINOLOGY(…), and composition validation. So SNOMED CT can live on one server while LOINC or ICD live on others — the deployment reality openEHR’s terminology chapter describes. Configuring a route to a provider that does not exist is now a startup error instead of a silent fallback. -
Terminology servers can require OAuth2. A provider’s
oauth2_clientkey now does something: it names an entry under[terminology.external.oauth2_clients](token endpoint, client id, client secret orclient_secret_file, optional scopes,refresh_leeway_secs, andclient_secret_basic/client_secret_post), and the CDR obtains a client-credentials access token and sends it as a bearer credential on every request to that server. The token is cached and renewed shortly before it expires, so a validation burst costs one token request per token lifetime. A refused grant fails the call with a clear error — a request is never sent unauthenticated as a fallback. -
Terminology servers can require a client certificate (mutual TLS). A provider takes three new keys —
client_cert_path,client_key_pathandca_bundle_path— so the CDR presents a client certificate to that terminology server and verifies the server against that server’s own trust anchors. The identity is per provider because a client certificate is issued by the peer’s PKI: a deployment enrolled with a national SNOMED CT service, a commercial value-set server and an in-house server holds three different certificates, and repeating the same paths covers the case where one identity really does serve them all.ca_bundle_pathreplaces the default trust anchors for that provider, so a privately-issued terminology server is pinned to its own CA instead of also accepting the whole public web PKI. There is no option to skip verification — server-certificate and hostname verification stay on for every provider; the bundle changes which anchors are trusted, never whether the server is checked. Anything broken (one half of an identity, an unreadable PEM, a key file holding no key, a CA bundle holding no certificate) fails at startup, never at the first validated code. -
Composition commits can now check archetype value-set bindings against a live terminology server. When a template binds an
accode to an external terminology query, and[terminology.external]is enabled, committing a COMPOSITION resolves that query and requires the coded value to be a member of the value set it returns. A non-member is a422naming the path, the code and the bound query. If the value set cannot be resolved at all (server down, error response, no server configured for that terminology), the existingfail_on_errorswitch decides:false(the default) accepts the commit and logs a warning,truerejects it. With[terminology.external]disabled — the shipped default — nothing is resolved, no request is made, and commit behaviour is exactly as before. -
An opt-in
terminologyCompose profile runs a real FHIR R4 terminology server beside the CDR.docker compose --profile terminology -f docker-compose.yml -f docker/sut-terminology.yml upstarts a digest-pinned HAPI FHIR JPA server (host port 8090,EHRBASE_TERMINOLOGY_PORT) plus a one-shot container that seeds it — over the server’s own FHIR API — with two synthetic test code systems and their value sets, one SNOMED-CT-shaped and one LOINC-shaped, and verifies$validate-codeand$expandbefore exiting. The overlay switches on the[terminology.external]providers now shipped (disabled) indocker/ehrbase.dev.toml, so the plain quickstart is unchanged. No licensed terminology content is distributed: the fixtures live under the reservedexample.testdomain, and the SNOMED-CT-shaped and LOINC-shaped codes are invented for the test corpus. -
The conformance record now covers the terminology-routed surface.
scripts/conformance.shcomposes the terminology profile for everyehrbase-rsrun, and the catalogue gained eight cases: AQLTERMINOLOGY()resolved through the routed server (the Booleanvalidateform answering true and false, and theexpandfilter over committed data), the two-simultaneous-servers routing proof, and commit-time archetype constraint-binding validation (a member code accepted, a non-member refused, and the unresolvable value set under each declared posture). A party’sixit.jsongains aterminologyblock declaring its terminology servers, the namespaces each answers for, and its fail-open/fail-closed posture; a party that declares none has those cases recorded not-applicable with that citation instead of failed. -
POST /admin/dumpnow serves theopenehr_canonical_xmllogical format, which used to answer501. Both openEHR export formats are available: the defaultopenehr_canonical_jsonkeeps each version’s content inline in the archive’s segment files, whileopenehr_canonical_xmlwrites each version to its ownversions/<version_uid>.xmlentry — a completeORIGINAL_VERSIONdocument under the openEHR-published<version>root, readable by any tool that speaks canonical openEHR XML. The archive’s own bookkeeping (manifest.json, the segment files) stays JSON in both formats, because openEHR publishes no XML document form for it.POST /admin/loadis unchanged for callers: it still takes only a location and now reads the logical format out of the archive’s manifest, exactly as it already detected the container. Both formats round-trip in all three containers (loose,archive.zip,archive.7z) and reproduce every record byte-for-byte. A single unreadableversions/*.xmlentry is reported against the one EHR it belongs to and skipped, while the rest of the archive loads. -
The definition and messaging extension routes now document their refusal branches. Every ADL 1.4 / ADL 2 archetype route, every
/messageroute and everyPARTY_RELATIONSHIProute declares401(no valid principal) and — on the writes —403(a principal holding the configured read-only role) in the served OpenAPI, so a client can see the whole answer set of an endpoint before it calls it. The TDD batch additionally documents its413boundary: the batch has no cardinality limit of its own, only the server-wide request-body limit. -
Conformance: the admin extension batteries now test what must be REFUSED, not only what must work. A server that accepts what the contract forbids is as non-conformant as one that refuses what it must accept, and the activity-report, EHR/demographic archive and dump/load batteries proved only their happy paths. They now also drive the unauthenticated (
401) and non-administrative (403) probes on every route of each family, every argument-type refusal (a service outside the enumeration, the three ways a time interval can be malformed, a malformed id in an archive list, an unknown export format, a non-positive segment size), the empty-selection and repeat-archive boundaries, and the zip / 7z / loose container-detection round trips on load — with the duplicate-report body now asserted rather than assumed. The branches that cannot be driven from a client (the admin-disabled405, which needs a differently configured deployment, and the corrupt-archive5xx, which needs bytes placed on the server’s own file system) are recorded as explicit boundaries and covered by in-process tests instead of being silently absent. -
The documentation site renders mathematics. Formulas on the performance pages (the open-loop arrival schedule, the population-anchored write-rate derivation) are now typeset with KaTeX, pre-rendered to static HTML at build time — pages stay self-contained with no client-side script and no CDN request; the KaTeX stylesheet and fonts are served by the site itself.
-
Conformance: ADL 1.4 archetype provisioning is now tested rather than excused. openEHR’s released REST API defines no ADL 1.4 archetype resource, so the capability used to be reported as “excused — unrealized on this technology profile” even though this server serves archetype routes of its own design. Six conformance cases now execute against
/definition/archetype/adl1.4— upload with source read-back, an unparseable-source refusal, listing, and the get/delete branches including their not-found halves. Because openEHR gives the capability no wire, the published certificate marks the rowextensionand it no longer gates the CORE profile — a conscious, register-recorded departure from the conformance profiles book, which requires a capability the release gives no wire for. -
The admin dump/load archive now supports 7z compression.
POST /admin/dumpacceptscompression_format: "7z"alongsidezipand the uncompressed form, packing the same archive entries into onearchive.7z;POST /admin/loaddetects and reads all three container forms without being told which one it was given. (Theopenehr_canonical_xmllogical format remains a declared501boundary — the archive’s XML form is a design of its own, tracked separately.) -
Repository dump/load and the whole messaging surface are now HTTP routes — the last service capabilities that had no wire. Under the existing
EHRBASE__ADMIN__ENABLEDgate andADMINrole,POST /admin/dumpwrites an archive of every EHR to a location on the server’s file system andPOST /admin/loadpopulates the repository from one; both answer200with the per-entity report the openEHR service model defines (empty when everything succeeded), and a load into a non-empty repository reports each already-present EHR rather than failing. Under the ordinary clinical authentication — these are not admin routes — the new/messagegroup serves EHR Extract export (GET /message/export/{ehr_id},POST /message/exportby specification) and import (POST /message/importfor a whole-EHR clone,POST /message/import/{ehr_id}to add content to an existing one), plus Template Data Document import (POST /message/tdd/{ehr_id}and its all-or-nothing/batchsibling). Like the admin extensions, all of these are ehrbase-rs extensions: the openEHR service model defines the operations, the released REST API surfaces no endpoint for them, and no openEHR conformance claim rests on the URLs — see the book’s Operations page and the served OpenAPI document, which flags every one of them. -
The dump archive can be written as a ZIP.
POST /admin/dumpaccepts the service model’szipcompression format, packing the manifest, segments and multimedia blobs into a singlearchive.zipinstead of loose files. Load takes no format argument and detects the container, so an archive always reads back the way it was written. -
The admin API gained an activity report and archiving, and the definition API gained archetype provisioning — service capabilities that had no HTTP route until now. Under the existing
EHRBASE__ADMIN__ENABLEDgate andADMINrole:GET /admin/report/contribution[/count],GET /admin/report/versioned_composition/countandGET /admin/report/composition_version/countreport CONTRIBUTION and COMPOSITION-version activity per service over an optional ISO 8601 time interval, andPOST /admin/archive/ehrs/POST /admin/archive/partiesmark a named set of EHRs or demographic parties archived (a read-neutral, idempotent, all-or-nothing marker — never a delete). Alongside the released template routes, the definition API now serves the ADL 1.4 archetype store (POST/GET /definition/archetype/adl1.4,GET/DELETE /definition/archetype/adl1.4/{archetype_id}) and the ADL 2 archetype/artefact views (GET /definition/archetype/adl2[/count],GET /definition/artefact/adl2[/count],DELETE /definition/artefact/adl2/{artefact_id}). All of these are ehrbase-rs extensions: the openEHR service model defines the operations, the released REST API surfaces no endpoint for them, and no openEHR conformance claim rests on the URLs — see the book’s Operations page and the served OpenAPI document, which flags every one of them. -
The measured hospital-simulation workload now exercises every claimed capability (#625). The performance run used to touch about a third of the capabilities the conformance statement claims, and the rest were listed as “not yet exercised” catalogue gaps. Sixteen new operations joined the measured workload — demographic registration (person create/read/amend plus relationship churn), template example and ADL 2 definition polls, advanced and terminology-backed AQL reads, Simplified-FLAT commit and read-back, version-provenance (signature) reads, the System API options probe, the SMART service-discovery fetch, and the two access-control refusals — so the published Workload Coverage table now answers “yes” for every claimed capability except eleven that carry a per-capability, register-linked reason: either the operation would destroy the measured population mid-run (physical deletion and the released admin delete API), or openEHR defines no wire and this product serves no route for it, leaving the load instrument nothing to send. No row is left undecided, and a future journey that lands one of those capabilities is forced to delete its exclusion.
-
Measured runs can now drive a SMART-secured deployment: the load client mints the scope-limited access token its ixit principal declares (once per token lifetime, never per request), so a deployment running the SMART resource-server posture — the standard EHRbase-rs conformance posture — is measurable at all. Boundary probes address the read-only and unauthenticated principals a deployment declares; a deployment that declares none simply runs the workload without those journeys.
-
Conformance: the last two untested capabilities now carry real executed batteries (#624). “Demographic archetype validation” and “Bulk EHR load” were the two capabilities the conformance report listed with no cases — named in openEHR’s conformance profiles book, but never actually exercised. Both are now tested against the released REST wire. Demographic archetype validation gets eight isolated cases over the party-commit endpoints: a committed PERSON/ROLE is refused when it is not archetype-rooted, when its root archetype identifier contradicts its own archetype details, when an optional list (contacts, roles, capabilities) is present but empty, and when an identity’s value is missing or carries the wrong openEHR type — plus an accept case proving a fully archetyped party, contacts, addresses and languages included, is stored and read back intact. Bulk EHR load is verified as what it actually is on released wire — a population loaded through the ordinary EHR and composition endpoints — with one case covering breadth (eight EHRs, one composition each, all identities distinct and every document read back unchanged) and one covering depth (four commits into a single EHR, each independently addressable, with an AQL query over that EHR returning exactly the loaded set). Both capabilities are now claimed in the published conformance statement, and their case-count floors are recorded so the coverage can only grow.
-
Conformance: the PARTY_RELATIONSHIP capability is now tested rather than excused (#623). openEHR’s released REST API defines no PARTY_RELATIONSHIP resource, so the six relationship operations used to be reported as “excused — unrealized on this technology profile” even though EHRbase-rs serves them. They are now driven for real: fifteen conformance cases execute against the
/demographic/party_relationshiproutes this product serves of its own design, covering create, read, read-at-time, read-at-version, update and delete plus their refusal branches. The certificate marks the rowextension, which is a promise as much as a label — no openEHR profile result may rest on a route openEHR does not specify, and the runner now fails validation if that line is ever crossed (a newrealization-scopegate, with the binding’s route required to appear in the published extension-surface declaration). Such cases are also skipped, with a cited reason, for any system under test whose conformance statement does not claim the capability — a route openEHR does not specify is an offer only the party making it answers for, so the published comparison against other products never charges them for routes they never offered. -
Conformance runner: a certification claim can no longer be hollow (#622).
cnf-runner validatenow reads the committed party statements beside the artifact root and relates every claim to the catalogue, so three new gates fail before any system under test is even composed.claim-completenessrejects a claimed capability with no verdict-bearing case at all, and requires a capability whose every case is excused (because the openEHR release publishes no wire for it) to name the register entry that adjudicated that — an excuse that outlives the missing wire is a finding too.capability-depthgives every capability amin_casesfloor so one token case can never certify it; floors only ever ratchet up.workload-coveragerequires every claimed capability the measured hospital-simulation workload does not exercise to carry an adjudicated exclusion, which the conformance certificate now prints with its reason in place of the previous bare “NO — catalogue gap” cell. The certificate’s Profile Report also gains a Realization column saying whether a capability was verified over released ITS-REST wire or over routes this product serves of its own design (the latter can never gate an openEHR profile tier). -
Conformance runner: the SMART on openEHR boundary is now executed, not declared (#538). Three behaviours that were previously carried as statement-level claims are real conformance cases: the
/.well-known/smart-configurationdiscovery document (served from the Platform base URL asapplication/json, advertising the requiredorg.openehr.restservice at an absolute base URL), the resource-scope grammar that lets a granted scope reach exactly the operation it names, and the 403 refusal of a request the granted scopes do not permit. Because SMART is off by default, they run in their own lane:CONF_SMART_MODE=1 bash scripts/conformance.shboots the server with the SMART resource-server posture enabled (docker/sut-smart.yml), drives the SMART group, and writes todocs/conformance/<sut>-smart/; the default lane is untouched and remains the published baseline. To exercise scopes at all the runner now mints its own short-lived access tokens against a committed test issuer (tools/cnf-runner/party/smart/— public test key material for the harness, never usable for anything else), because a CDR validates tokens and never issues them and the conformance stack runs no Authorization Server. A conformance target that does not run the SMART role simply does not declare the lane in itsixit.json, and these cases are recorded not-applicable with that citation rather than failed. -
Conformance runner: two more wire behaviours are now measured, not excused (#539, #569). The bulk admin delete’s subset selector is exercised in the repeated
?ehr_id=a&ehr_id=bform the openEHR path template asks for, proving every named EHR is deleted rather than only the first; and the rule that a server stamps its OWN configured system identifier into a commit audit when the client supplies none is now checked against that identifier, not merely against “some non-blank value”. The identifier is a deployment fact no openEHR operation exposes, so a conformance target declares it in itsixit.json("system_id": "…"); a target that declares none has those cases recorded not-applicable with that citation instead of being checked against a guess. Both behaviours were previously carried as cited coverage gaps. -
Conformance coverage: calling a resource with the wrong HTTP method is now measured (#596). The openEHR REST specification says a method the specification recognizes but the addressed resource does not serve should be answered
405 Method Not Allowed, and the HTTP standard it defers to requires that answer to carry anAllowfield listing the methods the resource does support. The conformance suite now proves both on a real resource — aDELETEto the EHR collection, which the specification serves only underPOSTandGET— instead of recording the behaviour as an untestable gap. TheAllowcheck asserts that both specified methods are listed while tolerating any order and any additional methods a server chooses to support. -
Canonical XML: choose the openEHR schema namespace per request (#196). openEHR publishes its XML schemas in two lineages that differ only by the namespace a document declares —
http://schemas.openehr.org/v1(the stable release) andhttp://schemas.openehr.org/v2(the newer, trial release). You can now pick one with aversionparameter on the XML media type:Accept: application/xml; version=2returns the v2 namespace, andContent-Type: application/xml; version=2declares a v2 request payload. A v2 response is labelledContent-Type: application/xml; version=2. Nothing changes for existing clients: omitting the parameter (or sendingversion=1) serves the v1 namespace under a plainContent-Type: application/xml, exactly as before, and request payloads in either namespace have always been accepted. Asking for a namespace the server does not serve is406 Not AcceptableonAcceptand415 Unsupported Media TypeonContent-Type. Operational-template XML (…/definition/template/adl1.4/{template_id}) is always v1 and ignores the parameter. The parameter is an EHRbase-rs extension — the openEHR REST specification predates the two lineages and defines no way to select one. -
Conformance coverage: the ITEM_TAG routes are now measured (#288). All twenty-three released tag operations — the EHR-wide and demographic-wide listings, the COMPOSITION and EHR_STATUS families, and the five demographic party families — are enumerated by the conformance instrument for the first time; they have no openEHR service-model interface, so they were previously invisible to its coverage derivation. Thirty-two new cases turn the five tag laws into executed wire assertions: tag identity is the (key, target_path) pair, a container’s tag collection and a version’s tag collection are disjoint on read, write and delete alike,
ITEM_TAG.targetis served as the bare openEHR identifier, every typed tag route answers 404 for a uid of another kind (within the EHR space, within the demographic space and across the two), and theopenehr-item-tag/openehr-version-item-tagrequest headers on a commit land in their own separate collections. Tag support is reported under a new ItemTags capability at the OPTIONS tier, matching the specification’s own statement that a server need not support ITEM_TAGs. -
Conformance coverage: the COMPOSITION, CONTRIBUTION and PARTY resources are now exercised in canonical XML and in the Simplified Formats, not only in canonical JSON (#288). Eighteen new CNF cases drive
Accept: application/xmlreads andContent-Type: application/xmlcommits across composition create/update/latest/at-time/at-version, the VERSIONED_COMPOSITION container, the composition and contribution existence probes, and the whole PERSON create/update/read family, plus FLAT and STRUCTURED reads of a composition at latest and at time and FLAT/STRUCTURED composition updates. Each row asserts the negotiated response media type the specification makes a MUST, and the XML commits are compared against the canonical-JSON twin of the same resource, so a format-specific data loss shows up as a failure rather than a silent difference. One branch stays deliberately unexercised and is now recorded with its full derivation: the openEHR release declaresapplication/xmlfor the CONTRIBUTION commit but publishes no XML form of the commit envelope, which is reported upstream rather than invented locally. -
Served OpenAPI: complete documentation for the six Query operations (#482). The two ad-hoc and four stored AQL executions now document what the wire actually does. Every
200declares the weak RESULT_SETETag(an identifier of the result set — ours is a deterministic content digest, since the releasedResultSetschema carries no id field) and carries a canonical RESULT_SET example:columns[]with the#Nunaliased-column convention, rows whose cells are JSON primitives and canonical_type-tagged RM objects, and the optionalmeta(_type,_schema_version,_createdin extended ISO 8601, and_executed_aql= the parameter-SUBSTITUTED text, withqkeeping the query as submitted). The parameters now carry the released semantics: the named-$parameterbinding law and its un-prefixed rule, theehr_idduality (query parameter oropenehr-ehr-idheader, deprecated MixedCase spelling accepted, a conflict 400),offset’s default of 0 andfetch’s implementation-defined default with the one released prohibition (fetchcannot be combined with AQLTOP), the qualified-query-name grammar including the reservedaql, and the version exact/prefix matching law. Also declared:415on the three POSTs, request-body examples, and thePrefer-scope reason no query response carriesLocationorPreference-Applied. Where the released text is silent the declarations say so explicitly — the reserved protocol keys that never bind as AQL parameters, REST paging composing over AQLLIMIT/OFFSET, the URL-vs-body precedence on the POSTs, and theehr_id-scope 404. Document only — no wire change. -
Served OpenAPI: complete documentation for the seven EHR ITEM_TAG operations (#475). The EHR-wide read, the two per-target reads, the two collection replaces and the two key-scoped deletes now document what the wire actually does. The dual-form
uid_based_idis spelled out with the released version/container sentence and the disjointness it implies (a tag has exactly onetarget, so container tags and version tags are separate collections and neither read sees the other). ThePUTbodies are described as what they are — a bare JSON array of UPDATE_ITEM_TAG (keyrequired,value/target_pathoptional,target/owner_idserver-assigned from the route and ignored if sent), with[]quoted as the clear-all form, (key,target_path) as the identity, last-wins on a duplicate pair, an emptytarget_pathnormalizing to absent, and the 200/204Prefersplit (204 by default, 200 carrying the full RESULTING list,return=identifierresolving to minimal because an ITEM_TAG has no uid). The deletes document their SET semantics (every tag under the key on the addressed collection) and the released third 404 trigger that makes them deliberately non-idempotent. Every operation now declares the target guard’s 404s (unknown, foreign-EHR, wrong-kind or missing-version target), the JSON-only reality (406 for an XMLAccept, 415 for an XMLContent-Type— no ITEM_TAG type exists in the canonical XML ITS), the RM-invariant 422 family on the writes, theehr_tags_getfilter semantics (AND-combined, exact, case-sensitive, scalar, unbounded), and real ITEM_TAG examples including a VERSION-targeted tag. Also recorded: no tag route servesETag/Last-Modifiedor acceptsIf-Match— a tag has neither a version nor a uid — and the released-text defects met on the way (the aggregate read’s COMPOSITION-typed response schema, the_updatedresponses’ copy-pasted “retrieved” wording,tag_keyvs thekeypath parameter, and the “(logically) deleted” wording on a non-versioned resource). Document only — no wire change. -
Served OpenAPI: complete documentation for the three CONTRIBUTION operations (#464). The native change-set commit now declares the whole
NewContributionenvelope —versions[]of UPDATE_VERSION (preceding_version_uid,signature,lifecycle_state,attestations,data,commit_audit) plus the change-setaudit, the accepted_typespellings (UPDATE_AUDIT/AUDIT_DETAILS/ omitted), the server-settime_committed, the honoured-if-unused clientuid, and the committer/system_idcopy-down — with a canonical two-member example (a COMPOSITION creation plus an EHR_STATUS modification) and the SPECITS-84 rule quoted: the envelope stays canonical JSON, only eachversions[i].datatakes the FLAT/STRUCTURED form. Every branch is documented:201with the weakETagcarrying the contribution uid (not a version uid),Location,Preference-Appliedand thePrefer-conditional bodies (the representation lists the minted version OBJECT_REFs, the identifier body the contribution uid, minimal an empty201);400with the released first-version-of-a-MODIFICATION trigger;404;406;409(client uid in use — released — plus the non-modifiable EHR, duplicate singletons and an EHR_STATUS delete member, flagged as ours);412for a stale memberpreceding_version_uid;415; and the full422family (emptyversions, out-of-group change types, data on a delete/attestation member, missing data, template and RM-invariant failures). The by-uidGETdocuments the plain-UUIDcontribution_uid,Prefer: return=representation, resolve_refs(members resolved to full ORIGINAL_VERSIONs, which is also what makes a simplifiedAcceptmeaningful), its200headers and canonical example (members as OBJECT_REFs, full AUDIT_DETAILS with optionaldescription), and400/404/406. The contribution-list route is prominently flagged as our own extension with no openEHR spec behind it, and itsoffset/fetchclamping (0 / 20, capped at 100 — never a400) and row shape are now described accurately. Document only — no wire change. -
Served OpenAPI: complete documentation for the five DIRECTORY operations (#457). Every response now declares its headers (weak
ETag,Last-Modified,Location,Preference-Applied, item-tag echoes) and the reads and writes carry canonical FOLDER examples (nestedfolders,itemsas OBJECT_REFs); the writes document theIf-Matchprecondition — carried in the header because these routes have no version segment, so a stale value is412, never409— plusPrefer, theopenehr-version/openehr-audit-detailscommittal headers and the item-tag headers, and the canonical-JSON/XML-only request bodies (a Simplified-FormatContent-Typeis415, an unfulfillable simplifiedAccept406: a FOLDER is not templated). Theversion_at_timeandpathquery parameters are described with the released sentence plus our register-documented resolution rules (root-implicit, leading-slash tolerant, folders-only, first-match; a future time serves the latest version, a time before the first commit is404), and every branch the wire serves is documented — the deleted-directory204on both reads, theDELETE’s204carrying the new deleted version’s identity, the404s (including an EHR with no directory), the412s with the latest-uidETag,400/406/415/422, and the409s that are our own design (creating a directory when one already exists, and a non-modifiable EHR), each flagged as such. Document only — no wire change. -
Served OpenAPI: complete documentation for the eight COMPOSITION and VERSIONED_COMPOSITION operations (#450). Every response now declares its headers (weak
ETag,Last-Modified,Location,Preference-Applied, item-tag echoes) and a canonical example; the commits document theopenehr-version/openehr-audit-details/openehr-template-idrequest headers and the four negotiable media types (canonical JSON/XML plusapplication/openehr.wt.flat+jsonandapplication/openehr.wt.structured+json); and every branch the wire actually serves is described — theGET’s deleted-version204for all addressing forms, theDELETEquartet (204carrying the NEW deleted version’s identity,400already-deleted,404,409not-latest with the latest-uidETag),412/415/406/422, and the409s that are our own design (duplicate live persistent COMPOSITION per template, and a non-modifiable EHR), each flagged as such. Document only — no wire change. -
Served OpenAPI: complete documentation for the seven EHR_STATUS and VERSIONED_EHR_STATUS operations (#443). Every response now declares its headers (weak
ETag,Last-Modified,Location,Preference-Applied, item-tag echoes), canonical examples, and the 406/415 negotiation branches; the EHR_STATUS update documents theopenehr-version/openehr-audit-detailscommittal headers and thePrefer: return=identifierresponse shape. Document only — no wire change. -
Last-Modifiedon VERSIONED_OBJECT container and revision-history reads (#442).GET …/versioned_ehr_status,GET …/versioned_composition/{uid}, and both…/revision_historyreads now carryLast-Modifiedderived from the newest held version’s commit instant, alongside the existing container-uid weakETag(ITS-REST overview Requests and responses §“ETag and Last-Modified”: both headers SHOULD accompany a VERSIONED_OBJECT response). -
[server] system_id— the deployment’s own openEHR system identifier is now configurable (#424,EHRBASE__SERVER__SYSTEM_ID, default unchanged atehrbase-rs.local). The value is stamped intoEHR.system_idat EHR creation (RM EHR Information Model §EHR Identifier Allocation: the identifier “that would normally be used for locally created EHRs”), intoAUDIT_DETAILS.system_idwhenever the client supplies none throughopenehr-audit-details(the REST API requires the server to “set it to its own configured system identifier”), and into every mintedOBJECT_VERSION_ID.creating_system_id. Previously it was a hard-coded constant that no configuration could change. Choose it before the first EHR is created and keep it stable — the value is stored per EHR and per version, so a later change affects only newly authored data and never rewrites existing identifiers. It is distinct from[server.identity], which is only theOPTIONSmanifest’s display identity. An empty value, or one containing theOBJECT_VERSION_IDseparator::, is refused at boot.
Removed
- The bare-root
OPTIONS /alias of the System API endpoint (#420). The System API defines exactly one location for the Options-and-Conformance operation — the API base-path root (OPTIONS {base_path}, e.g./ehrbase/rest/openehr/v1); the extra bare-root mount was our own duplication and answered identically. Clients probingOPTIONS /must use the base path.
3.11.0 - 2026-07-26
Added
-
Admin console: EHR_STATUS editing and a status version history (#306). The EHR detail screen’s Status tab is no longer read-only: an Edit status card toggles
is_queryableandis_modifiableand editsother_details(canonical-JSONITEM_STRUCTURE; blank removes it), committing a newEHR_STATUSversion conditionally on the version the screen loaded. Every other attribute — the subject included — is sent back exactly as the CDR served it, so an edit can never drop what the form does not show; a non-objectother_detailsis refused before anything is sent, and a rejected document keeps the CDR’s own diagnostic on screen beside the form. If another client committed a new status meanwhile, the write is refused rather than overwriting it, and the console says so with what to do next. A new Status history tab adds the versioned view: theVERSIONED_EHR_STATUScontainer plus the selected version’s envelope facts, the revision history newest-first, a date-and-time lookup that resolves the version extant at that instant, and any version’s document opened by its ownOBJECT_VERSION_ID. A non-queryable EHR’s warning now points at the toggle that fixes it. -
Admin console: SMART scope previewer + effective identity (#299). The user menu’s “View scopes” drawer no longer prints a raw list of scope strings. It now states who you are and what decides what you may do — the authenticated principal and the policy source behind it (a Basic session replays its CDR account and carries no SMART scopes; an OIDC session’s roles and permissions come from the same access token whose scopes are listed) — and renders every scope as its parsed grant: the compartment it delegates to (
patient/user/system), the resource family and id pattern it reaches, the create/read/update/delete/search operations it permits, and a broad access marker on a bare*. Launch contexts and identity claims are labelled as such, and an unrecognised scope stays visible verbatim instead of vanishing. A new previewer field takes any scope string — or a whole space-separated claim — and renders the same reading, with an actionable explanation when a resource-shaped scope is malformed (a bad compartment, a missing or invalid.<permission>tail, an unknown resource). The drawer also states plainly that scopes narrow access and never grant it: the CDR remains the enforcer. The reading comes from the same scope grammar the CDR’s own SMART gate enforces with, so the console’s explanation cannot drift from the server’s behaviour. -
Admin console: grouped multi-series result charts (#296). The results pane (both the point-and-click builder and the raw AQL editor) now charts every numeric result column instead of only the first one: one line per column, named by the column’s own alias, with a legend whose entries switch a series on and off — the last visible series stays on, so the chart never empties itself. When a column holds ISO-8601 date/times it is offered as the X axis and used by default, giving a real time scale in which the points sit at their true distance apart whatever order the rows arrived in; the row order remains available as the fallback axis. A single numeric column still draws as one plain line with no legend. The Table | Chart toggle is now offered for every non-empty result set, and a result set with nothing to chart (no numeric column, or a single row) explains that in the chart pane instead of showing a blank box.
-
Admin console: EHR-detail and System-panel completions (#315). The EHR detail screen now opens with a summary header read from the EHR resource itself (id, creating system, creation time, current EHR-status reference), so an unknown or mistyped EHR id is reported once at the top of the screen instead of once per tab. The Create EHR card takes an optional EHR id: supply a UUID to create that exact EHR (a non-UUID is refused before anything is sent, and an id already in use comes back as the CDR’s own conflict with what to do next), or leave it blank as before. The composition viewer gains Delete composition — the openEHR logical delete of the latest version behind a confirmation dialog, which returns to the EHR’s composition list on success and, if the version moved on meanwhile, says so instead of deleting the wrong one — and a Versioned object card reading the versioned composition and the selected version directly (lifecycle state, preceding version, contribution, signature, whether the version still carries content). The contributions tab opens with a contribution activity timeline of writes per day. On System, a conformance manifest card shows what the CDR advertises about itself through the openEHR System API (product, vendor, claimed conformance profile, and the API groups it actually mounts), and the served-OpenAPI card gains a per-family document selector whose choice lives in the URL (
/system?openapi=query), so a family document is shareable and survives a reload. -
Admin console: run a stored query with its parameters, at the version form you choose (#295). A stored-query row now offers Run, which opens a runner screen for that query: it shows the stored AQL, prompts one field per
$parameterthe query declares, and executes it on the CDR as a real stored query (POST /query/{name}[/{version}]carryingquery_parameters) rather than re-sending the text as an ad-hoc query. The results land in the same results pane as everywhere else, with paging — except when the query sets its ownLIMIT/TOP, which the screen says instead of fighting. All three openEHR version-resolution forms are selectable and labelled with the exact request they will send: latest (no version), a version prefix like1or1.2(the CDR picks the latest match), or an exact1.2.0. A parameter value that reads as JSON is sent as that type (38.5as a number,trueas a boolean); anything else is sent as text, and quoting forces text ("0123"). A field left blank is not sent at all. -
Admin console: open a stored query in the query builder (#295). Stored queries and the raw editor now offer Open in builder beside Open in editor: a query that fits the point-and-click builder’s model is loaded back into it — template, conditions, output shape, ordering and limit — with the next version proposed for saving, so a stored query can be revised visually instead of by editing text. The load is never lossy: the builder only accepts a query it can reproduce byte for byte, and anything else (a parameterised query, a hand-written shape the builder has no controls for) opens with a notice naming exactly what it could not express and a link to work on it in the raw AQL editor.
-
Admin console: the stored-query and template tables are paged (#298). Both listings now carry the console’s shared pagination footer — which rows are on screen out of how many (
26–50 of 137 templates), previous/next, and a rows-per-page choice (25/50/100). The page and the window size live in the address bar (?page=/?size=), so a page is shareable and survives a reload, the browser’s back/forward walk the pages, and the controls work before the console’s WebAssembly bundle has loaded. The templates filter still narrows the rows client-side; the footer counts what the filter left. Deleting the last row of the last page lands on rows rather than on a blank table, and a hand-typed window size is clamped to a sane range. -
Admin console: a real document viewer (#297). Every pane that shows a wire document — the composition viewer, the EHR status tab, the directory raw mode, a contribution, a template’s OPT and example tabs, a stored query — now offers three views of it plus a Copy button. Highlighted (the default) shows the byte-exact document with JSON/XML syntax highlighting from a pure-Rust tokenizer (no JavaScript, no new dependency; a very large document is shown unstyled instead of tokenized), Raw shows the same text unstyled, and Rendered shows a template-free clinical reading of a canonical openEHR JSON document: RM section headings with their type and archetype node id, and one label/value row per
ELEMENT— quantities with their units, coded text with its terminology code, a null-flavoured leaf saying so. The rendered view needs no operational template, so a composition whose template was since removed still reads normally; it folds away the bookkeeping (language, territory, category, uid) that the raw views keep in full, and is read-only — nothing is stored anywhere. -
Admin console: stored-query versions are reachable (#336). Both save surfaces (the point-and-click builder and the raw AQL editor) now carry an optional Version field beside the namespace and name, and state under the fields exactly which store a click will perform: leaving it empty stores at the server-assigned version and replaces what is there, while a
major.minor.patchversion stores a new immutable version and is refused with the CDR’s own message if that pair already exists. Open in editor now keeps the version it loaded and proposes the next minor one, so editing a stored query publishes a new version instead of colliding with the one it came from, and a partial pattern (1,1.0) is refused in the save field with an explanation — that form selects the latest matching version when reading a query, and is not something to file a definition under. -
Admin console: an Operations panel (
/operations) over the CDR’s operational surfaces — dependency health, build and specification provenance, the metric registry, and runtime log control. The health card reads the public readiness probe (GET /health/readiness) and renders the aggregate plus one row per indicator, explaining on screen how that differs from the topbar status pill; the build card reports the CDR’s version, git commit,rustc, PostgreSQL target and openEHR specification pins; the metrics card shows four headline tiles plus a browser over the whole registry, with the selected metric in the URL so a view is shareable; and the log card changes the live log filter (and resets it to the boot value) behind a confirmation dialog that names the consequence, re-reading the CDR’s answer so the panel shows what the server confirmed. The screen appears in the sidebar only when the CDR serves its management surface (the console probesGET /management/info); a deployment with it switched off sees no Operations entry at all, and an individual endpoint left off renders as a stated absence rather than an error. The redacted effective configuration is deliberately not duplicated here — the CDR serves the same snapshot on both its management surface and its admin API, so the panel links to the one viewer on the System screen. -
Admin console setting
cdr.management_base_url(EHRBASE_ADMIN__CDR__MANAGEMENT_BASE_URL): the CDR’s management surface including its base path, for deployments that serve it on a separate internal listener (management.port) or under a renamedmanagement.base_path. Unset, the console derives{cdr.base_url}/management. -
The compose quickstart enables the CDR’s management surface (
docker/ehrbase.dev.toml):info/metricsatprivate,prometheuspublic,env/loggersadmin_only— so the console’s Operations panel works out of the box on the dev stack. The surface remains off by default on the bare binary and in the Helm chart. -
Admin console: delete templates, stored queries and EHRs when the CDR’s admin API is enabled. The Template Manager list rows and the template detail screen can delete an operational template; the stored-query rows can delete a query version from the CDR store (labelled “Delete from CDR”, clearly separate from the console-local “Remove group”); and the EHR detail screen can physically delete an EHR, returning to the EHR list on success. Every action confirms in a modal dialog naming the exact object (the query-group removal now does too), and every failure names the object and the next action — a template still referenced by a committed version, or a session without the ADMIN role, is refused by the CDR and reported as such. The console first asks the CDR which API groups it serves (the openEHR System API conformance manifest,
OPTIONSon the API base path) and renders no delete affordance at all when the admin group is not among them. -
Public health probes (
/health/liveness,/health/readiness): the server now always serves a complete health family on its main HTTP port, unauthenticated and independent of every configuration switch —GET /health(unchanged: constant200 OK, plain-textOK),GET /health/liveness(an identical alias under the orchestrator-conventional path), andGET /health/readiness(the indicator-backed probe: database ping, migrations applied and the in-memory component flags,200when the aggregate is UP/DEGRADED,503when a required component is DOWN, with the full per-indicator JSON body). They are mounted outside the API’s authentication and overload-shedding layers, so they answer without credentials and are never shed on a saturated server. This family is now the only health surface (see Removed).
Changed
-
ETag/Last-Modifiedon every versioned read (#368). The VERSIONED_COMPOSITION and VERSIONED_EHR_STATUS container reads, the VERSION-by-id reads, and both revision-history reads now carry the versioning headers (container/version uid as theETag; the commit instant asLast-Modifiedwhere the body carries one) — previously only the at-time variants did. -
Unqualified stored-query names are one identity everywhere (#366). A query stored without a namespace (
PUT /definition/query/my_bp/1.0.0) now lands under the openEHR-assumedmiscnamespace — the same identity the by-name GET, the listing, the SM calls, and the admin delete address — so a bare-named query is no longer invisible to the admin delete (and vice versa). Descriptors return the canonicalmisc::-qualified name; a bare-name listing pattern also matches itsmisc::composition. -
Query GETs bind the spec’s named parameters (#364). AQL
$parameterbinds onGET /query/aqlandGET /query/{name}[/{version}]now arrive as ordinary named query-string parameters (?temperature_from=36&…), exactly as the REST API documents them — values are typed JSON-first with string fallback, a$prefix is tolerated, and the previous JSON-objectquery_parameters=form remains accepted (a named parameter wins a collision). -
Version identity is the full three-part
version_uid, compared case-insensitively (#367). Deleting a composition (and reading a version by id) with a fabricatedcreating_system_idis now refused (409 / 404) — previously only the version number was compared, so a made-up system id could delete the latest version. Conversely, aversion_uidorIf-Matchdiffering only in case is accepted as the same identifier, per the openEHR composite-identifier case rule. -
Item tags follow the spec’s identity and target model (#365). Two tags sharing a key on different
target_paths now coexist (the ITEM_TAG identity is the key + target_path pair, per the ITS-REST item-tag prose) instead of silently collapsing; a version-addressed tag (…/composition/{version_uid}/tags) now tags THAT VERSION, disjoint from the container’s tags, instead of being folded onto the container; the tag’stargetis returned in the RM shape (a bareHIER_OBJECT_IDorOBJECT_VERSION_ID, replacing the former OBJECT_REF wrapper — the released RM wins over the stalled OAS schema); tag routes now 404 when the addressed object is of the other kind; and theopenehr-item-tag/openehr-version-item-tagcommit headers write to their own distinct collections. Deleting by key removes every path under that key in the addressed collection (the wire has no path selector). -
Admin console: accessibility and empty-state polish (#302). Table header cells are now announced as column headers by screen readers, and every icon-only control in the query builder (the catalog’s expand/collapse chevrons, the remove buttons on conditions, groups, columns and sort rules) plus the unlabelled column-alias, sort-path and sort-direction controls state what they do. Data regions that used to come back as a line of grey text — template usage, the served OpenAPI list, the commit-activity chart, an EHR’s compositions, the directory version history, a version’s audit, the query builder’s conditions and result rows, and a template filter that matches nothing — now render the console’s standard empty state: an icon, what is empty, and what to do about it. The user menu’s popover matches the rest of the console’s panels instead of the widget kit’s stock chrome, and the modal backdrop is a theme token, so it dims correctly in dark mode.
-
Contribution list shows the change type’s display rubric (#304). The EHR contribution-list extension (
GET /ehr/{ehr_id}/contribution) now carrieschange_type_rubricbeside the rawchange_typegroup code — resolved from the openEHRaudit_change_typeterminology group by the CDR itself, so clients never maintain a local code table. The admin console’s contributions tab displays the rubric (code on hover). The SM-catalogdelete_optservice path now also refuses with the same friendly 409-and-reference-count as the admin template delete while committed versions still reference the template, instead of relying on the raw foreign-key error. -
openEHR BASE spec pin refreshed (#341). The vendored BASE 1.3.0 spec text and BMM codegen input now track upstream
specifications-BASEmastere4879576(24 commits: the SPECBASE-48 RESOURCE_DESCRIPTION invariants, the SPECAM-82 CODE_PHRASE package move into base_types, SPECPR-426/386/460 corrections). No wire or validation behaviour changes: every behaviour-relevant item was verified already satisfied by the implementation; the regenerated crates differ only in documentation text and the CODE_PHRASE module location. -
Readiness moved from
/management/health/readinessto the public/health/readiness(and liveness to/health/liveness). Database-backed readiness no longer hides behindmanagement.enabled+ a probe switch — nothing has to be enabled for an orchestrator to probe the server. Point existing probes at the new paths. -
Helm probes use the public paths on the main HTTP port: the chart’s
httpGetliveness/startup probes hit/health/livenessand readiness hits/health/readinesson thehttpport, with no prerequisite — the previous render-time failure demandingconfig.management.enabled=true+config.management.probes_enabled=trueis gone. Prometheus scrape annotations still point at the management surface (and its separate port when configured), unchanged. -
Admin console: the System screen’s activity tile now links to the audit browser (#301) instead of stating that the CDR exposes no audit read surface — it does (the IHE ITI-81 retrieval the
/auditscreen has been browsing all along). The tile carries a one-line description of the trail and an Open audit browser button. -
Admin console: every write now reports its failure as prominently as its success (#301). Uploading a template, creating an EHR, committing or updating a composition, saving a stored query or query group, and creating, saving, restoring or deleting a directory all raise a failure notification naming the object, what the CDR objected to (its diagnostic verbatim), and the next action to take — a stale version to reload, a role to sign in with, an unreachable CDR to check. Where the diagnostic is worth reading line by line (template validation, a rejected composition body) it also stays on screen beside the form as before. Previously a failed write showed a quiet inline message that was easy to miss after a run of green success toasts.
-
Admin console: query groups are now derived from the stored-query namespace instead of being named sets kept in a console-local file. A stored query is identified by a qualified name —
namespace::name, the namespace optional and, per the openEHR REST specification, a reverse domain name whose purpose is separation of stored queries by team or organisation — so the console groups by exactly that: the Queries screen’s right-hand panel and the Dashboard’s cohort tiles are both derived live fromGET /definition/query, and queries saved without a namespace collect under unqualified. The grouping consequently lives in the CDR: it is visible to every openEHR client, survives a console restart, needs no backup, and is identical across console replicas. The group create/edit/remove controls are gone — a query joins a group by being saved under that namespace — and both save surfaces (the query builder and the raw AQL editor) now offer a first-class Namespace field beside the query name, showing the exact qualified name the save will write. Existing local groups are not migrated: re-save a query under the namespace you want it grouped by. -
Admin console: the EHR Directory tab creates an empty root folder, then the structured tree editor builds the hierarchy. The console no longer ships or stores named folder shapes to start from.
Removed
GET /ehrbase/rest/status/healthis removed. It was a third name for the constant liveness answer already served at/healthand/health/liveness, with no consumer anywhere in the product (no probe, no client, no documentation pointed at it). Point any caller at/health(load balancers, containerHEALTHCHECK) or/health/liveness(orchestrator probes);GET /ehrbase/rest/status— the product status document, a different contract — is unchanged./management/health,/management/health/liveness, and/management/health/readinessare removed; the management surface is now ops introspection only (info, prometheus, metrics, env, loggers). The aggregate component view is the body of the public/health/readiness.- The
management.probes_enabledandmanagement.endpoints.healthconfiguration keys are removed. Configuration is strict, so a config file orEHRBASE__MANAGEMENT__PROBES_ENABLED/…__ENDPOINTS__HEALTHenvironment variable still setting them fails at boot with an unknown-key error — delete the keys; the probes are always on. - Admin console: folder templates are removed. The named FOLDER-tree shapes
the Directory tab could start from (and their
admin-ui-folder-templates.jsonstore) are gone; create the empty root and build the hierarchy in the tree editor, which commits it as ordinary directory versions the CDR owns. - Admin console: both console-local JSON stores are removed —
admin-ui-groups.json(query groups) andadmin-ui-folder-templates.json(folder templates). The console now keeps no local domain state at all: it has no database and writes no files, so every fact it shows lives in the CDR and reads the same for every client and every replica. Delete the files; nothing reads them. - The admin console’s
groups_fileconfiguration key (EHRBASE_ADMIN__GROUPS_FILE) is removed. Console configuration is strict, so a config file or environment variable still setting it fails at boot with an unknown-key error — delete it.
Fixed
- The observability Compose overlay boots again (#321). Every server
variable in
docker-compose.observability.ymlwas written in a single-underscore form (EHRBASE_MANAGEMENT_*,EHRBASE_OTEL_*,EHRBASE_LOG_FORMAT) that the strict boot-time sweep of the reservedEHRBASE_namespace rejects, sodocker compose -f docker-compose.yml -f docker-compose.observability.yml upfailed at startup with unknown-variable errors instead of starting the server. The overlay now uses the documentedEHRBASE__…grammar (EHRBASE__TELEMETRY__OTLP_ENDPOINT,EHRBASE__LOG__FORMAT,EHRBASE__MANAGEMENT__ENABLED,EHRBASE__MANAGEMENT__PORT,EHRBASE__MANAGEMENT__ENDPOINTS__{INFO,METRICS,PROMETHEUS}), with unchanged intent: OTLP traces to the bundled collector, JSON logs, and the management surface public on internal port 9464 for the bundled Prometheus to scrape. A test now runs the real sweep over every variable the shipped Compose files set on the server service, so this class of drift fails in the test suite rather than atdocker compose up. - The
compositions_committed_totalmetric now counts (#332). The counter was declared and scraped but never incremented, so dashboards over it rendered a permanently empty series. Every commit route that lands a COMPOSITION version — create, update, delete, and a CONTRIBUTION commit — now increments it once per committed version, labelledchange_typewith the openEHRaudit_change_typecode recorded on that version’s audit (249/251/523/…). The increment happens after the transaction commits, so a rolled-back write is never counted. In the same audit of the metric registry, five metrics that were emitted but not registered (version_signature_invalid_total,authz_cedar_decisions_total,authz_remote_pdp_calls_total,atna_audit_rejected_total,atna_audit_reaped_total) now carry their# HELP/# TYPEdescriptions in the/management/prometheusexposition. - Admin console: find-an-EHR-by-id works without JavaScript (#301). The
finder is now a plain
GETform: submitting it before (or without) the browser app loading redirects to the EHR’s detail screen server-side, and/ehrs?find=<ehr_id>is a shareable shortcut to any EHR. With the app loaded the lookup is unchanged — one client-side navigation, no page reload. - Admin console: template links and query-string values are now
percent-encoded via the standard codec (#293); template ids containing
reserved characters no longer produce broken links. The console’s
hand-rolled percent encoder is gone — every internal link (the template
detail link and its tab links, the stored-query “Open in editor” link, and
the query builder’s “Open in raw editor” link) builds its path segment and
query-string values with the
urlencodingcrate. - Admin console: deleting a document reference from a directory folder no longer risks row state attaching to the wrong sibling (#292). The item rows of the directory tree editor are now identified by a stable per-item identity instead of their position in the folder, so removing one reference leaves every remaining row bound to its own reference.
3.10.0 - 2026-07-25
Added
-
CNF total wire-surface coverage gate (#271): a new
surface-coveragemachine gate in the CNF runner (cnf-runner validate) fails on any spec-defined wire behaviour with no covering case and no adjudicated exception — enforcing breadth, not just pass rate (.claude/rules/testing.md§CNF coverage). It measures three axes against the RELEASED spec sources only (the SM platform interfaces + the ITS-REST docs text, never the vendored OAS): (1) every SM operation of the platform interfaces has anits-restbinding or a cited boundary; (2) every realized binding’s declared outcome and format branch is exercised by a case or excepted; (3) the cross-cutting wire behaviours (conditional headersETag/Location/Last-Modified/Prefer/If-Match, JSON+XML negotiation, the 406/415 families, the error-body and deprecated-media families) map to covering cases or exceptions. The authored, spec-cited exception ledger is a new committed artifact (tools/cnf-runner/artifacts/vocab/wire_surface.yaml, with a published JSON Schema);cnf-runner validate --specs …refreshes a deterministic coverage report atdocs/conformance/coverage-report.md. Coverage only ratchets up. -
CNF catalogue content deepening (coded-text value dimension, deferred grounds, spec-authored corpus) (#278): the coded-text content cases (
CONT-DV_CODED_TEXT-validate_local_codes/-validate_ext_term) gain an acceptance-directionvaluedimension — value = the bound rubric, value ≠ rubric (an arbitrary label), and value = the raw code are all accepted (no RM invariant requiresvalueto equal the coded rubric — the “must be the rubric” text isdv_coded_text.adocDescription prose, registered as AMB-55), while an empty value is rejected (the sole value invariant, RMdv_text.adoc§InvariantsValid_value: not value.is_empty); the synthesized OPTs now bind component-ontology rubrics for their local constraint codes. New functional coverage: a template-example round-trip (the generated example commits back cleanly) and a deprecated-media Accept → 406 response-side case (the ICS-conditional companion to the existing request-side 415, under AMB-39). Registered as spec-silent boundaries: Accept q-value negotiation strictness (AMB-56 — ITS-REST defines only “unfulfillable Accept → 406”, nothing about q-value weighting) and a simplified-inner-data CONTRIBUTION surface (AMB-57 — ITS-REST 1.1.0 commits CONTRIBUTIONs canonical-only). All remaining corpus-manifest “structural placeholder” markers are replaced with spec-authored fixtures or cited boundaries. -
Version-signature conformance breadth (CNF): a distinct-signature-per- version case (the signature is computed over the version’s canonical form, which includes
uid— two versions can never share a signature; RM common master06 §Digital Signature), backed by a newdistinct_fromfact on the runner’s signature assertion and asignaturecapture on the version-envelope read binding. DIRECTORY (FOLDER) version-signature cases land SM-anchored as N/A-with-citation on ITS-REST 1.1.0 (noversioned_directoryresource — AMB-24), activating automatically if a later ITS release adds the endpoint. The runner’s binding-completeness gate now mirrors the interpreter’s variant-based binding selection. -
ADL2/OPT2 templates are full FLAT/STRUCTURED peers of OPT 1.4 (#269): a FLAT (
application/openehr.wt.flat+json) or STRUCTURED (application/openehr.wt.structured+json) composition commit keyed to an ADL2-registered template now resolves and is validated against that template’s archetype constraints, exactly as an ADL 1.4 commit is. Two behaviours were brought to parity: the am24 (OPT2) Web-Template builder now populates the archetype-conformance constraints (existence, cardinality, closed-attribute sibling sets, archetype slots, structural stubs) that composition validation reads — so an ADL2-template instance is archetype-constraint-checked, not only RM- and terminology-checked — and the runtime template resolver falls back to the ADL2/OPT2 store when a template id is not an ADL 1.4 template (previously a commit against an ADL2-registered template returned 422 “operational template not known”). -
Citation metadata (
CITATION.cff): the repository is now citable in research papers — GitHub renders a “Cite this repository” button (APA + BibTeX) from the new CFF 1.2.0 file (author with ORCID, Apache-2.0, abstract, keywords, release version/date). Acitation-guardCI job schema-validates the file and enforces that itsversionmatches the workspace version; the release procedure bumpsversion/date-releasedon every cut.
Changed
-
AQL engine: post-streaming optimization rungs (measured, one change per rung): the streaming shape’s dead root LATERAL is elided when the root is unreferenced (one fewer
pk_nodeprobe per version row; a bareuid/valueprojection now runs with zero node probes), and thearchetypepredicate column is case-folded at write (BASE base_types master05 §Composite Identifiers and Case) so archetype equality is plain indexed equality —LOWER()disappears from every containment hop. Measured on the seeded 10k bench: ward statement execution −11.3%, buffer reads −10.7%, planning −10.3%; stress knee re-measured at the committed 512 arrivals/s. The aql-probe instrument now attributes planner time per statement (pg_stat_statements.track_planning). -
Docker / Compose deployment rework (#282): a from-the-ground-up rebuild of the container surface for smaller images, faster builds, and a production-grade posture on every build.
- One Dockerfile per image, two targets, zero drift:
docker/Dockerfileanddocker/admin-ui/Dockerfilenow each exposeruntime-from-source(whatdocker compose builduses) andruntime-prebuilt(what CI uses), both sharing a single runtime stage — so the compose-built and published images can no longer diverge. The separate*.runtimeDockerfiles are removed. - Faster rebuilds: dependency compilation is split into its own
cargo-cheflayer, so editing application code no longer recompiles dependencies, and CI now reuses that layer across runs via an exported build cache. - Debian 13 + digest pinning: builder and runtime moved to Debian 13
(“trixie”); the runtime is
distroless/cc-debian13(non-root user 65532). Every base image is now pinned by immutable digest, and the bundled versions are refreshed — PostgreSQL 18.4, Keycloak 26.7.0, SeaweedFS 4.40, Grafana otel-lgtm 0.29.2. - Compose: the optional services are now opt-in behind profiles
(
--profile s3for SeaweedFS,--profile keycloakfor Keycloak); every service declares memory/CPU limits mirroring the Helm chart; Keycloak has a real healthcheck; and there is no hard-coded project name, so the dev, conformance, and E2E stacks no longer collide. - Build provenance no longer reads
.gitfrom the build context (which is now excluded, shrinking the context and stabilising the cache): the/management/infocommit SHA flows through the standardREVISIONbuild argument (the same value as theorg.opencontainers.image.revisionlabel) and degrades tounknownwhen unset — never a failed build.
- One Dockerfile per image, two targets, zero drift:
-
Simplified Formats folded into
openehr-its(#268): the FLAT / STRUCTURED / Web-Template implementation moved from the standaloneopenehr-flatcrate intoopenehr-itsas theopenehr_its::flatmodule, mirroring the openEHR ITS component decomposition (Simplified Formats is a STABLE ITS-REST 1.1.0 sub-specification, alongside canonical JSON, XML, and the REST contract this crate already houses). Pure packaging refactor — no change to the FLAT/STRUCTURED/Web-Template wire behaviour.
Fixed
- ADL2 filler-root naming in the projected WebTemplate: a
use_archetype-filled archetype root resolved its display rubric in the component (filled archetype) terminology first, so the template-side slot id could false-positively match an unrelated internal id of the constituent (e.g. a filled OBSERVATION surfacing as “history”). The slot rubric now resolves in the introducing template’s own terminology first (ADL2 obliges the introducing artefact to define its node ids), with the component scope as last resort — FLAT paths over filled ADL2 templates carry the template-declared names. - CNF runner:
openehr-template-idfor in-flow-provisioned templates: the simplified-format commit header now resolves from the committed data set’s own manifest-declaredtemplate_id(falling back to the case’s provisioned template list), so cases that upload their template inside the flow (the ADL2 FLAT pair) drive the commit correctly instead of omitting the header.
3.9.0 - 2026-07-24
Added
-
Content structural conformance cases from the official schedule: the master15 COMPOSITION content×context tables and the master16 ENTRY-family tables (OBSERVATION, HISTORY, EVENT, ITEM_STRUCTURE) are now encoded under their verbatim official ids, replacing the ad-hoc structural cases that had been authored on the false claim that those chapters were empty; derivable catalogue extensions beyond the official cells survive as flagged addition cases.
-
Dual POC measured records on the v3.8.0 build, both directions published: ehrbase-rs earns class POC (normative hour at 2.03/s offered, worst p99 108 ms, 0 errors / 7,320 requests); upstream EHRbase 2.34.0 on the identical instrument, corpus, and resource floor does not (ward-dashboard AQL p99 10.9 s vs the 1 s ceiling, 2.4% errors). Comparison page and all measurement visuals derive from the committed runner artifacts.
Changed
-
Version-signature read verification is now
strictby default (#273): with signing enabled andsigning.verify_on_readunset, the server now recomputes the signature of every version it served and returns a500integrity fault on a mismatch, instead of the previous silent-pass (off) default that signed every version and then never checked it. Setsigning.verify_on_readexplicitly towarn(log + meter, still serve) oroff(never check) to opt out. Client-supplied signatures (an author’s own signature, or one carried by an imported version) are tracked as such and are always stored verbatim and never re-verified, so strict-by-default never rejects a legitimately-stored foreign signature. Our-own-design integrity hardening — no openEHR spec governs server-side verify-on-read timing (RM common master06 §Digital Signature). -
CNF catalogue audited case-by-case against the official spec text (#231): every case in every chapter re-verified across grounds, expectations, citations, fixtures, captures, and register linkage, with the findings applied directly to the catalogue and register (the durable record is the register + closed issues + git history). Highlights: spec-overreaching rejection rows removed (AQL TERMINOLOGY operation strictness; the mixed-precision interval rows now report-only under the SPECPR-380 openness); the SEC-BASIC proposal citations corrected; stale stub-era template ids fixed; the delete-latest-version OPT case realigned to the official version-less ground; the wrong-template update ground rebased onto a fixture that is valid against its own template; the physical-EHR-delete binding accepts the OAS-enumerated async 202; eight new ambiguity-register entries pin previously prose-only adjudications; and every phantom REQUIREMENTS.md pointer now carries its real anchor.
Fixed
-
Conformance-runner commit provisioning fails loud: a
requires.commitkey resolving to a plain composition fixture was silently skipped, leaving the case’s committed-state precondition unestablished; a single object now commits as a one-item set and any other shape is a provisioning error. -
The measured-window driver accepts the spec-legal
204 No Contentminimal-return form on create-family writes (ITS-REST: withPrefer: return=minimala service SHOULD use 204 when no body is returned) — previously every upstream journey commit was falsely counted an error; and the upstream comparison stack’s database now gets the sameshm_sizefloor as the ehrbase-rs stack (Docker’s 64 MB default starved its PostgreSQL during maintenance settling).
3.8.0 - 2026-07-24
Added
- CNF catalogue: stored-query name-grammar cases — three new
definition_querycases pin the ITS-RESTQualified_query_namegrammar: a plain unqualified name and a namespace-less dotted name (the dot is part of the query-name character set, not a namespace separator) both store and read back, and the reserved query-nameaqlis rejected case-insensitively. cnf-runner stress-compare— the cross-SUT stress overlay: both systems’ latency-throughput curves on one canvas, rendered deterministically from the two committedstress.jsonreports (driven byscripts/render/comparison.sh); both directions on equal footing.- Measured runs record resource telemetry: each measurement in
results.jsonnow carries an optional, schema-publishedresourcesblock — per-container (server and database separately) CPU, resident memory, block-device and network I/O sampled every 10 s across the whole window (run-clock offsets, warmup/measured/drain phase stamps), plus the database volume’s on-disk size at four anchors (empty → scale seed → ward seed → after the window) with the derived bytes per committed composition. Sampling is enabled by the new optionalcontainersblock in the ixit (compose container names); without it a run records no resources and the report says so — telemetry never influences a class verdict. Two new rendered assets (the resource time-series and the disk-growth chart) join the perf-assets family and the book’s Performance chapter, drift-guarded in CI like every published number. cnf-runner aql-probe— the seeded-corpus AQL optimization probe: fires the measurement machinery’s own AQL vocabulary against a freshly seeded server, records wire-latency percentiles per probe, and attributes the database-side cost per statement (pg_stat_statementsthrough the ixitcontainerscapability, degrading honestly without it). Report schema published (aql-probe.schema.json); exploration evidence only — never a conformance record.- Stress steps carry resource telemetry — every load-ladder rung records the same per-container CPU/memory/I/O series as the measured class runs over its own warmup+hold window, so a breached rung shows where it saturated; the stress progress stream now logs each rung’s verdict live (stable/BREACHED with the sustained rate, resource peaks, and named breaches) plus a ladder recap, and measured class runs log their verdict evidence at window end.
- A diurnal day-curve arrival option for the extended 8/12-hour measured holds (ITU-T E.500 busy-hour semantics: the class floor is the busy-hour rate).
- The conformance certificate gains a Workload Coverage section: claimed capabilities vs the set the measured hospital simulation actually exercised, with untouched claimed capabilities listed explicitly as journey-catalogue gaps.
scripts/generate-ckm-examples.sh— regenerates the committed CKM example payload skeletons from a running SUT’s example endpoint;scripts/vendor/ckm-templates.shnow vendors the runner’s journey template pack.- Conformance visuals: the capability-matrix heat grid (one cell per
claimed capability, grouped by profile tier, evidence encoded as a
CVD-safe color AND a glyph) and per-chapter outcome bars, rendered
deterministically from the committed verdicts/results by the new
cnf-runner conformance-assetssubcommand (scripts/render/conformance-assets.sh, CI regenerate-and-diff guarded) and embedded on the book’s conformance and comparison pages (both SUTs) and the landing page.
Changed
--skip-seedand the sidecar corpus index are retired (CLI flags onperf/stress, theCONF_PERF_SKIP_SEEDpipeline variable): every measurement instrument now always seeds a freshly composed, empty server and the stack is torn down afterwards — seed reuse bred stale-state confusion.- Measurement instruments settle database maintenance
deterministically (
vacuumdb --analyzethrough the DB container) after seeding and before every measured window and stress rung — a stale-statistics plan after the million-row seed cost a measured ~9× on the ward-worklist query; settling moves that debt outside every measured window, identically for every SUT. - The CNF measured-performance workload is now a full hospital
simulation: the class cases (
PERF-hospital_sim-*, renamed fromPERF-mixed_load-*) schedule clinical journeys — ADT admission/discharge, vitals rounds, the medication loop, medicines reconciliation, asynchronous laboratory/imaging order-to-result pipelines, specialist/registry reporting, public-health notifications, chart review, ward dashboards with a registered stored query, versioned corrections, contribution audit review, workflow tagging, logical deletion, and template polling — expanding into 22 measured operation kinds instead of 4, each with its own HDR-V2 record. The population-anchored envelope is unchanged and now validator-enforced (the expanded write share must reconcile to the derivation’s 10:1..50:1 read:write band); journey payloads commit against 15 COMPOSITION-rooted openEHR CKM templates vendored with provenance.
Removed
- The transitional benchmark lab (
tools/benchmark,scripts/benchmark.sh,docker/benchmark/, the manual benchmark workflow, and the committeddocs/benchmarks/**artifacts): all measurement is native to the CNF runner — measured class runs, the stress ladder, the AQL probe, and the cross-SUT stress overlay — and the comparison page now derives its performance side from the committeddocs/conformance/<sut>/stress.jsonreports (upstream shown as “not measured yet” until its report lands, never a one-sided claim). - The completed ECC→CNF cutover comparison lane: the generated
docs/conformance/cnf-comparison.md, thecnf-runner compare-eccsubcommand, the drift gate, and the preserved ECC catalogue/map (all in git history; the five deferred grounds are re-registered on the catalogue-deepening tracker). Thedocs/conformance/CATALOG.mdpointer stub is gone with it, and the CNF 2.0 design record moved todocs/conformance/cnf-design.mdas a permanent reference document.
Fixed
- Storing a query under the reserved name
aqlis now rejected with 400, case-insensitively and whether or not a namespace is supplied (ITS-RESTQualified_query_name§NOTE — the name would collide with the ad-hoc/query/aqlroute). A three-partns::aql::namename keeps working: its middle segment is the formalism, not the query-name. - A coded value whose text is not the template-bound rubric is now
rejected at commit (422 naming the path, the committed value, and
the bound rubric): RM
DV_CODED_TEXT— “value must be the rubric from a controlled terminology” — enforced wherever the template itself is authoritative for the rubric (archetype-local at-codes and explicitly bound external term definitions, any bound language);openehr- terminology codes stay unchecked (the terminology ships official translations the template cannot enumerate), and a bound code with no rubric stays accepted. The once-accepted code-as-value instance is a pinned rejection. - Coded-text example values now carry the template-bound rubric: the
Web Template builder resolved display labels only for local at-codes,
so an external code’s rubric (OPT
term_definitionskeyedTERMINOLOGY::code, e.g. SNOMED-CT bindings) was lost and generated examples emitted the raw code asDV_CODED_TEXT.value— spec-invalid instance data (RM: “value must be the rubric from a controlled terminology”). The qualified key now resolves; the covid19 example regenerates with rubrics; every pack example commits clean on strict validators. - Child-assembled
DV_INTERVALvalues now carry the mandatory boundary flags: an interval built fromlower/uppersub-path children (the FLAT builder’s container path — template examples included) previously omittedlower_unbounded/upper_unbounded/lower_included/upper_included, making every half-open interval spec-invalid (BASEInterval: the flags are mandatory andLimits_consistentis unevaluable against an absent bound); the flags now derive from bound presence, an explicit datum flag wins, and the committed CCTA example is regenerated. Strict validators (upstream EHRbase) rejected the old instances with 422. - Population AQL with
LIMITnow streams instead of materializing the corpus: a LIMIT-bearing, unordered, non-DISTINCT, non-aggregate population query lowers to a streaming FROM shape (the current-version spine withLATERALnode probes), so PostgreSQL stops at the LIMIT instead of building an archetype-anchor bitmap over every matching node first — measured on a million-composition corpus, the cross-EHR ward worklist drops from ~113 ms to ~2 ms per execution (~40× fewer buffer reads); ordered/aggregate/EHR-scoped queries keep the previous plan shape, and result semantics are unchanged. A version-field projection ofuid/contribution_id/lifecycle_stateno longer joins the audit table it never reads. - AQL cross-EHR queries with
LIMITno longer collapse under corpus scale: predicates on multi-valued (anchored) paths now lower as existential semi-joins (EXISTS— the predicate holds when ANY matched node satisfies it; deterministic where the previous first-match pick was plan-dependent), the archetype anchor index leads with the RM type so the wholeCONTAINS-class + archetype boundary is one index probe, and queries that never touch audit fields no longer join the audit table. The measured ward-dashboard profile (p99 5.8 s at class-POC scale) drops to milliseconds-per-request territory. - The template example generator no longer collapses
DV_INTERVALwrappers onto a single constrained bound: interval-valued elements keep their interval identity (bounds as/lower//uppersub-paths per the Simplified Formats mapping), fixing generated examples the platform’s own validation rejected (the CKM CCTA report OPT); the CNF journey catalogue re-commits the CCTA imaging report.
3.7.0 - 2026-07-22
Added
-
The conformance pipeline assesses upstream EHRbase as a second system under test:
CONF_SUT=ehrbase scripts/conformance.shcomposes the officialehrbase/ehrbase:2.34.0+ehrbase-v2-postgresimages on fresh volumes (docker/sut-ehrbase.yml, readiness probed externally — the official image carries no in-container health tooling) and runs the same committed catalogue with upstream’s own committed party set (tools/cnf-runner/party/ehrbase/). The public comparison (docs/conformance/COMPARISON.md+ the website comparison page) is fully generated from the two committed results/verdicts sets — profile verdicts, the 39-capability evidence matrix, and failure tables in both directions. -
The conformance runner performs ISO/IEC 9646-style ICS-driven test selection:
cnf-runner run --statementexcuses option-gated cases whose register branch the party statement does not declare as N/A with citation (previously they ran and recorded spurious failures the verdict pipeline then excused). -
Conformance badges carry measured amounts: per-tier badges read e.g.
PASS 10/10 capabilities, the overall badgeCORE+STANDARD PASS · 323/323 cases— derived fromverdicts.json+ the capability matrix, never hand-typed. -
Read-only role support in RBAC: a principal carrying the configured
authz.rbac.readonly_role(defaultREADONLY) is refused with403on every write operation — creating an EHR, committing a composition, uploading a template, and any update/delete — even when it also holds granting roles such asADMIN. Reads and AQL queries stay permitted, so aREADONLYaccount is an authenticated, view-only principal. The dev compose stack ships anehrbase-readonlyaccount (passwordehrbase) for evaluation. -
CNF 2.0 reference runner, third increment — the executor and both verdict machineries: the data-driven flow interpreter under the five interpreter laws (per-row re-provisioning, step-mismatch row abort, errored-vs-failed classification, fixed temporal resolution, aggregates-after-last-row) with the live HTTP driver realized purely from the operation bindings, the reference resolver (corpus/recipes/rows/captures with normative sentinel semantics), the normative RESULT_SET equivalence comparator, content-case execution via the synthesized generate→commit→expect flow, the party artifacts (statement/results/ixit with schema validation and mandatory N/A citations), the pure verdict pipeline + deterministic report/statement/certificate renderers, the runner-verification pack (committed transcript + player: adjudicated verdicts reproduced, broken runners rejected), and the performance machinery (class cases with the published population-anchored floors, re-checkable HDR V2 measurement records, the earned/not-earned pure verdict). Nine published JSON-Schema families, drift-guarded. Live-SUT runs (the earned-class measurement and pack part 2) execute against a composed SUT via the new
run/verdictsCLI once cutover lands. -
CNF 2.0 reference runner, second increment: the complete CNF 2.0 catalogue authored from the framework — 347 cases across every schedule chapter (EHR, EHR_STATUS, COMPOSITION, CONTRIBUTION, DIRECTORY, ADL 1.4 + ADL2 definitions, stored queries, demographic, admin, messaging, AQL, content data-type and structural validation, simplified formats, Security SEC-BASIC + Signing) with 84 per-operation ITS-REST bindings (every status/header mapping cited to its OAS source; wire gaps are typed
unrealizeddeclarations, not silent absences), the ambiguity register grown to 38 adjudicated entries, and the ECC↔CNF comparison gate CLEAN: all 394 active rows of the old harness’s catalogue adjudicated (350 covered, 5 deferred to the simplified-formats deepening, 18 dropped with justification, 9 out of scope, 12 ADL2 rows covered) in the committed map with the generated report atdocs/conformance/cnf-comparison.md(drift-guarded). Old-harness retirement follows the owner’s report review with the executor/emission workstreams so an acceptance instrument runs continuously. -
CNF 2.0 reference runner (
tools/cnf-runner), first increment: the typed schedule-artifact model (case cores, per-ITS operation bindings, outcome + selector vocabularies, the capability→family→tier matrix, corpus manifest, ambiguity register — every closed vocabulary a Rust enum/newtype), a published JSON-Schema set for all seven artifact families (committed undertools/cnf-runner/schemas/, drift-guarded, vendorable by any runner), a full cross-artifact validator (id uniqueness, SM-operation and spec-ref resolution against the vendored specs, binding completeness, corpus integrity, reference/sentinel and decision-table grammars, capability-tier consistency), thecnf-runnerCLI (emit-schemas,validate), and the eight pilot case encodings as the first schedule artifacts. The existing ECC (tools/conformance) is unchanged and remains the acceptance instrument until the comparison gate. -
Performance conformance, measured end to end: a
cnf-runner perfrun plays an open-loop offered-load schedule against a composed server at a population-anchored volumetric class (proof-of-concept, small, large, regional), records re-checkable HDR histograms into the conformance results, and earns — never declares — a class verdict recomputed by the verdict pipeline.CONF_PERF_CLASS=<class> scripts/conformance.shruns it as a pipeline stage; the earned classes flow into the verdicts, report, certificate, and a performance badge. Published SVG assets (the class ladder and per-class latency charts) plus a generated summary are rendered from the committed measurement records byscripts/render/perf-assets.shand guarded against drift in CI, and a new Performance chapter on the documentation website explains the class ladder, the floors’ derivation from official activity statistics, how a coordinated-omission-free run works, and how to reproduce it. -
The sustained-window ladder:
cnf-runner perf --hours 1|2|4|6|8|12(pipeline:CONF_PERF_HOURS) extends a class run’s measured window beyond the normative hour — a longer hold of the same offered load is a stricter demonstration and persists like any measured run. There is deliberately no shortened run. -
A step-load stress instrument, distinct from conformance:
cnf-runner stressclimbs short intense load steps (geometric doubling, ~two-minute holds, bisection refinement) to the maximum sustainable throughput inside a latency budget, over the same seeded corpus and workload mix as the class runs. The report (stress.json, schema-published, environment-bound, per-step re-checkable histograms) earns no class and never touches the conformance results; the class floors appear as context only. A latency-throughput curve SVG renders from the committed report through the same drift-guarded asset pipeline, and the documentation’s Performance chapter tells the two-instrument story.
Changed
-
The conformance acceptance instrument is now the CNF 2.0 reference runner (
tools/cnf-runner) end to end:scripts/conformance.shcomposes the SUT on fresh volumes, executes the committed machine-readable catalogue, computes verdicts through the pure pipeline, and writes results/verdicts/report/statement/certificate + badges per SUT. The ECC harness (tools/conformance) is retired — its final inventory is preserved attools/cnf-runner/comparison/ecc-catalog.tsvand the reviewed cutover record isdocs/conformance/cnf-comparison.md; the previous ehrbase comparison artifacts are frozen as historical data. Committed per-SUT party sets (ixit + statement) live undertools/cnf-runner/party/. -
Verdict semantics: a REQUIRED capability whose every selected case is excluded by a schedule-registered ambiguity (an unrealized wire on the technology profile, e.g. ADL 1.4 archetype provisioning under ITS-REST 1.1.0 — AMB-41) is now recorded as an explicit
unrealizedscope exclusion on the certificate instead of silently failing the tier; the API-presence capabilities (EHR/DEFINITION/QUERY API) are evidenced by chapter exemplar cases. -
The benchmark harness converged onto the conformance runner’s corpus, recipes, and ixit topology, so both instruments seed identical clinical documents through the public write path. The performance numbers in the README and on the website are no longer hand-typed: they derive from committed run artifacts (the benchmark comparison charts and the CNF measurement records), and the site stale-numbers guard now also rejects a hand-typed rate, latency, or footprint in the sources.
-
OPT-1.4 → ADL2 conversion fidelity:
DV_ORDINAL/DV_QUANTITYconstraints now convert to real AOM2 attribute tuples ([value, symbol],[units, magnitude(, precision)]) instead of loose unconstrained nodes; slot include/exclude assertions are carried (both retained 1.4 slots and the filled-slotincludenaming the embedded archetype); OPTdefault_values are carried and serialized as the ADL2_defaultpseudo-attribute; temporal constraints keep both the ISO8601 pattern and the range plus assumed values;referenceSetUribecomes an ac-code term binding;CONSTRAINT_REFresolves against the merged 1.4constraint_definitions/constraint_bindings; and everything a decomposed root cannot express (out-of-scope bindings, tuple assumed values,DV_STATEmachines, unconvertible assertions) is reported in the converted archetype’sRESOURCE_DESCRIPTION.conversion_details. The whole vendored OPT corpus now converts, validates and re-parses as the standing test gate.
Fixed
-
OPT 1.4→2 decomposition now emits phase-1-clean ADL2 sources for every template in the corpus: a
--specialised embedded root (whose differential lineage a flattened OPT cannot resolve) is emitted as an unspecialised depth-0 archetype with every dotted code renumbered into the flat code space, and 1.4 node codes legitimately reused across sibling subtrees re-mint archetype-wide-unique ADL2 ids — terminology definitions and bindings follow in both cases, and every remap is recorded in the converted archetype’sconversion_detailsprovenance. -
The ATNA Audit Record Repository no longer loses records under a sustained write load: the audit drain now takes queued events in batches and persists each batch in one multi-row
INSERT(the previous per-event round trips saturated far below write-path rates, filling the bounded queue and fail-open dropping the tail). Drop warnings are rate-limited to one per interval carrying the count since the previous warning instead of one log line per dropped record (the exact count stays on theatna_audit_dropped_totalmetric), and the defaultaudit.queue_capacityrises from1024to8192for burst headroom. -
Composition validation closes eight archetype-constraint enforcement gaps the CNF content chapter exposed:
C_STRINGlist/pattern constraints onDV_IDENTIFIER.issuer/assigner/type(onlyidwas checked);DV_MULTIMEDIA.sizeagainstC_INTEGERlist and range constraints (previously unvalidated);C_ATTRIBUTEexistence1..1onOBSERVATION.state/protocol,HISTORY.summary, andEVENT.statenow rejects the absent attribute;DV_SCALEvalue/symbol value-set constraints (genericC_REALlist +C_CODE_PHRASEcode list — AOM 1.4 has noC_DV_SCALE) are enforced, including onDV_INTERVALbounds;timezone_validityonC_TIME/C_DATE_TIME(mandatory and prohibited) is honoured; half-open (one-side-unbounded) temporal range constraints reject out-of-range values; aDV_PROPORTIONof kind fraction or integer-fraction with a non-zeroprecisionis rejected (Fraction_validity); and a partialDV_TIMEsuch as10is no longer over-rejected againstHH:??:??/HH:XX:XXpatterns (optional and not-allowed fields both admit an absent field). -
A
DV_TIME/DV_DATE_TIMEliteral carrying a fraction on the hours or minutes component (e.g.10.5,10:05.5) is now rejected: openEHR supports fractional seconds only (BASE time types §ISO 8601 semantics not included). -
A
DV_URIwhose value has no URI scheme (e.g.xyz,www.example.org) is now rejected on commit per the CNF content schedule’s RFC-3986 rule; plain-text URI content after the scheme remains accepted per the RM’s plain-text allowance. -
A COMPOSITION create (
201) or update (200) whose response is negotiated as a Simplified Format (Accept: application/openehr.wt.flat+jsonor…wt.structured+json) now returns theETagandLocationheaders, matching the canonical (application/json/application/xml) response. Previously a FLAT/STRUCTURED commit body omitted both version-id headers, so clients could not read the new version uid or resource URL from a simplified-format commit. -
Composition validation now rejects a
DV_DURATIONwhose value carries a decimal fraction on any component other than seconds (e.g.P1Y3M4DT2.5HorPT2H14.5M). openEHR permits a fraction only on the seconds component (BASE time types: “in openEHR, only fractional seconds are supported”), so such a value now fails its RMValue_validinvariant with422instead of being accepted. -
Composition validation now enforces a
DV_QUANTITYconstraint that fixes a measurementproperty(with no enumerated unit list): the committedunitsmust be a unit of that physical property (per the openEHR measurement property↔unit table). A quantity constrained tolengthcommitted with a mass unit such asmgis now rejected with422instead of being accepted. -
Composition validation now rejects a coded value whose terminology is foreign to a
C_CODE_PHRASEconstraint that explicitly binds the archetype-localterminology with a closed code list. Committing aDV_CODED_TEXTwhosedefining_codeuses, e.g., SNOMED-CT against alocal-scoped closed list now yields422instead of being accepted. -
The AQL
ehr_idexecution scope now also binds bareFROM EHR esources: a scoped query without a CONTAINS chain previously ran over the whole population instead of the single EHR context theehr_idparameter selects (ITS-REST queryRequest.md§Common Headers and Query Parameters). -
A CONTRIBUTION delete member targeting the EHR_STATUS is now refused with
409 Conflict:EHR.ehr_statusis mandatory (RM ehr, EHR class, 1..1), so deleting the only status would leave the EHR violating its own invariant. -
FLAT/STRUCTURED commits: spec-listed direct RM-attribute paths that an operational template leaves unconstrained are no longer rejected as unknown paths.
ACTION/ism_transition(current_state/transition/careflow_step_reason:i) andACTION/time, plusINSTRUCTION/narrative,OBSERVATION/history_origin,ACTIVITY/timing+action_archetype_id, andINTERVAL_EVENT/width+math_f