Instructions for use
These are FerroFED’s instructions for use under Regulation (EU) 2025/327 on the European Health Data Space (the EHDS Regulation). Art 30(1)(d) has every EHR system accompanied, free of charge, by “clear and complete instructions for use”; Art 32(2)(d) has them cover “its maintenance, in accessible formats”; and Annex III, point 1(j), puts “the instructions for use for the user and, where applicable, installation instructions” in the technical documentation. Annex II, point 1.2, asks that the system “can be supplied and installed, taking into account the instructions and information provided by the manufacturer, without adversely affecting its characteristics and performance during its intended use”.
This page is the entry point. It says what to do in order and links the
reference page that holds each detail. The
information sheet names the
manufacturer, the version, the intended purpose, the data categories and the
standards. Every quotation is from the Official Journal text, vendored at
docs/specs/eu-ehds/reg-eu-2025-327-en.xhtml.
Who reads which part
| You are | Read |
|---|---|
| The operator who installs and runs a deployment | every section below |
| The developer of a client application clinicians use | Intended use, Reading an answer safely, Limitations, and The client contract |
| A deployment’s data protection officer or counsel | Configuration for a deployment in the EU, Limitations, Data protection and Regulatory status |
Intended use
FerroFED is used by healthcare providers, through the client applications their health professionals use in patient care, to read and write a patient’s openEHR records across the clinical data repositories (CDRs) of a federation. It answers an ordinary AQL query with one result set that names the CDR each row came from, and routes follow-up reads and writes to the CDR that holds the record (Intended purpose).
Use it only for that. FerroFED computes no score, flags no finding and recommends nothing. A client application, a stored query an operator publishes, or a change to FerroFED’s code can bring a purpose of its own, which is outside the manufacturer’s intended purpose and is assessed on its own (The medical device question).
Before you install
- Check the platform. FerroFED runs on Linux,
x86_64oraarch64, as a container image or a static binary; nothing is built for Windows (Supported platforms). The gateway holds little in memory: about 2 MiB at rest in the measurement on Memory footprint. Each concurrent query holds its members’ answers, up tofederation.max_node_answer_sizeeach (The answer bound), so size memory from the sizing below. - Gather the services it consumes: two or more openEHR CDRs that serve ITS-REST 1.1.0, an identity provider for your callers, a PIX Manager, and an Audit Record Repository with the FHIR Feed of ITI-20 (What you need).
- Agree the conditions of membership with each CDR’s operator: a unique
system_id, version-4 UUIDehr_ids never reused or adopted, eachehr_idfed to the PIX Manager, and consent enforced at the CDR (Preparing each CDR).
Installation
Follow A production deployment in order. Its steps are the installation instructions:
- Verify the image or binary against its attestation and pin it by digest (Install).
- Write the registry with every endpoint suspended (The registry).
- Trust your callers’ issuer (Client authentication).
- Give each member its onward credential and make the signing key (Onward credentials).
- Configure identity resolution (Identity resolution).
- Send the access records to your Audit Record Repository (The access log).
- Put TLS in front of the gateway, or on its listener (TLS and the public address).
- Run
config check, start the gateway, and admit each member withferrofed admission checkbefore you take its endpoint out of suspension (Check, start and admit). - Send a first query and read its
meta.federation(The first federated query).
ferrofed config check reads the configuration exactly as serve does and
exits 78, naming the key, on anything it refuses. Run it before every
start and every upgrade. Work through the hardening checklist
before the gateway reaches real patient data.
Configuration for a deployment in the EU
The settings below decide whether a deployment meets the EHDS Regulation where the gateway can meet it. Add the ones the example shows to the configuration of the production guide, and work through each item of the list after it:
# ferrofed.toml
[federation.consent]
disclose = false # Art 8: a restriction is never shown to a provider
[auth.issuer.idp] # the issuer of the production guide's step 4
issuer = "https://idp.example.org/realms/ferrofed"
kind = "persons"
[auth.issuer.idp.assurance]
claim = "acr"
minimum = "substantial" # Annex II 3.1; "high" for cross-border from 26 March 2032
levels = { "urn:example:loa:substantial" = "substantial", "urn:example:loa:high" = "high" }
[audit]
destination = "repository" # the access records of Annex II 3.2
[access_log.templates]
"Example Lab Report.v1" = ["Laboratory-Reports"]
"Example Discharge.v1" = ["Discharge-Reports"]
[access_log.retention]
years = 3 # Art 9(2): at least three years from each access
-
[federation.consent] disclose = false. Art 8 reads: “The fact that a natural person has restricted access … shall not be visible to healthcare providers.” The default,true, reports a member a consent pre-filter excludes asconsent-denied, which the Federation Tier requires (N27a). In the EU setfalse(Withholding consent exclusions). -
The assurance level, per issuer. Annex II, point 3.1, asks for “reliable mechanisms for the identification and authentication of health professionals”. Set
[auth.issuer.<name>.assurance]for every issuer whose tokens reach patient data, withminimum = "substantial"; Implementing Regulation (EU) 2026/2099 Art 6(3) raises a cross-border exchange to"high"from 26 March 2032. List the values your issuer writes; no specification says whichacrvalues stand for which level (The assurance level). -
The access records to a repository. Every access to patient data is recorded with the verified caller, the patient, the categories and the origins, and an access whose record cannot be stored is refused
503 access-unrecorded(The access log). -
A category map. FerroFED ships none. Author one in
[access_log]from the templates your members hold, or every access is recordedehds-unclassified([access_log]). -
The retention periods. Art 9(2) keeps the information on each access “for at least three years from each date of access”. Declare in
[access_log.retention]any longer period your national law sets for a category or an origin, and keep each record at your repository until itsehds-retention-ends(How long a record is kept). -
The patient namespaces. Art 9(1) gives the person information on “any access”. Name in
[access_log] patient_namespacesthe namespaces your Member State’s access service searches the log by, so the record of a request addressed byehr_idnames the patient (The patient behind anehr_id), and setmax_named_ehrsto the mostehr_ids the record of a query over many patients’ data names (A query over many patients’ data). -
The emergency purposes. Art 11(5) asks that an access to restricted data in the vital interests of the patient be logged “in a clear and understandable format”. FerroFED names no emergency purpose of use. Declare in
[[access_log.emergency_purpose]]the codes your issuers put in the token for it, such as the HL7 v3ActReasoncodeBTG, or no access is marked (Emergency access). -
The receiving members. Annex II, points 2.2 and 2.3, ask that an EHR system “be able to receive” data in the European exchange format. Declare in
[[fhir.receive]]the member that stores each category you receive; a document of a category with no member declared is refused (Configuring the face). This release receives patient summaries and laboratory reports as documents (A laboratory report), and a dispensation is written to the member that owns its prescription (Receiving a dispensation).GET {fhir-base}/metadatanames the categories your deployment receives and those it has no receiving member for, and declares noBundlecreate when it receives none (The categories received). -
The prescription and dispensation members. Declare in
[[fhir.serve]]only members that meet the contract FerroFED relies on, because the gateway computes no dispensability, counts no remaining dispensations and holds no lock (The member contract). Each such member states each prescription’s dispensing status and the dispensations it has left, holds the prescriber’s signature, and is the member that created the prescription, never one holding a copy. It refuses a dispensation its own state no longer allows, and it refuses a second dispensation carrying a dispense identifier (MedicationDispense.identifier) it already holds, so a pharmacy that sends a dispensation again after a time-out cannot have it written twice. Ask each member’s operator to confirm this at admission. Setreceive_namespacesunder[fhir]once dispensations are served: it names the identifier systems a dispensation’s patient is resolved in. A search follows at most 64 pages of each member’s answer.
Keep two defaults, which the claims review assessed against Annex II, point 2.5:
- Keep
[federation] best_effortat its default,true. Withfalse, a client can no longer ask for a partial answer, so one silent member blocks every answer (Completeness). - List each member’s consent refusal codes. A member’s consent refusal
fails the whole query
424until its codes are in the registry’sconsent_refusal_codesfor that endpoint (Consent). Ask each member’s operator for them at admission.
Sizing
The budgets and limits bound how long one request or one slow member can hold the gateway. Set too low, they delay access; set too high, one slow member holds the clinician’s answer. Size them from what you measure:
| Setting | Default | How to size it |
|---|---|---|
federation.per_node_timeout | 10s | above the slowest member’s 99th percentile on ferrofed_node_request_duration_seconds, measured under your load (Metrics) |
federation.overall_timeout | 25s | above per_node_timeout plus the resolver’s and the localizer’s time on their duration histograms (Timeouts) |
server.request_timeout | 30s | more than one second above overall_timeout; config check refuses less |
server.max_concurrent_requests | 512 | the queries your members can take at once divided by the number of members each query asks (The concurrency limit) |
federation.max_in_flight_per_node | 64 | the requests the smallest member can serve at once; past it a member is reported time-out (The per-member cap) |
[server.caller_rate] | off | set only where one caller can crowd out others (The per-caller rate) |
After a change, watch ferrofed_overload_refusals_total and the
FerroFEDOverloaded, FerroFEDMemberCapSaturated and FerroFEDSlowAnswers
alerts (Dashboard and alert rules).
Reading an answer safely
These are the instructions a client application passes on to the clinicians who use it. Each one is a control of the clinical safety risk file.
- Read
meta.federation.completebefore the rows.falsemeans a member that may hold the patient’s data contributed nothing: it was not resolved, it was excluded on consent, or, under a partial answer, it did not answer. Show that the answer is incomplete, and name the members that did not contribute;meta.federation.endpointslists each with its status (What a client gets back). - Ask for a partial answer only where an incomplete record is safe to
show. By default a member that does not answer fails the query with no
rows.
openEHR-federation-completeness: partialreturns the other members’ rows withcomplete: false(Completeness). - Expect the same fact from two members. Two CDRs can hold the same entry, for example a medication both recorded. The gateway returns both rows, each with its endpoint, unless the client asks for de-duplication by version identity, which removes only copies of one version. Show the origin of each row, and never add up quantities across members without checking for duplicates.
- Show the origin. The
openEHR-federation-endpointresponse header names the members that contributed rows, and a query that selects theENDPOINTattributes gets each row’s origin in the row (Provenance columns). A follow-up read or write goes to the CDR that holds the record. - Treat
not-resolvedas unknown. In a deployment withdisclose = false, a member the patient restricted reads exactly as a member that does not know the patient. Neither means the patient has no data there. - Read a
503 access-unrecordedafter a write as an unknown outcome. The node may have stored the write before the gateway failed to record the access. Read the resource before writing it again (Failing closed). - Read a
504to a dispensation as an unknown outcome, and a502that says the owner could not be reached. The owner of the prescription did not answer, and the gateway never sends a dispensation again. Ask the member, or read the prescription’s status, before you send the dispensation once more, and send it with the same dispense identifier, which the member refuses when it already holds it (Every answer).
Maintenance and its frequency
Art 30(1)(k) has the manufacturer inform users “of any mandatory preventive maintenance of the EHR systems and its frequency”. This release sets no maintenance on a fixed calendar. The maintenance it needs is triggered by an event, and its frequency is the event’s:
| Maintenance | When | Reference |
|---|---|---|
| Upgrade to the newest release | at each release, and as soon as you can after a security advisory: only the newest release is supported, and a security fix ships only in a new release | Upgrading, SECURITY.md |
Run config check | before every start, reload and upgrade | Running it |
Re-run ferrofed admission check for a member | when the member changes its CDR product, its version, its system_id or how it creates ehr_ids | Admitting a node |
| Update the category map | when a member adds or changes a template | [access_log] |
| Watch the alerts | continuously, on the shipped alert rules | Dashboard and alert rules |
| Clear a quarantined audit record | when ferrofed_audit_quarantined rises, after reading why the repository refused it | The audit spool |
| Rotate the signing key | on your key policy’s schedule, and at once when it may have leaked | Rotating the signing key |
| Rotate a machine client’s secret | on your credential policy’s schedule, and at once when it may have leaked: rotate the client secret of the Prometheus scraper or the PMIR Registry at its issuer and give it the new one | metrics.scrape_clients, pmir.feed_clients |
| Renew TLS certificates and onward credentials | before each expires; send SIGHUP after replacing a listener’s certificate files, or set the listener’s reload_interval so the gateway reads them again on that period | Hardening, TLS on the listeners |
Clear a held ehr_id collision | once the member at fault has fixed it, on each replica that holds it | Clearing a held collision |
| Move to the newest release | when a new release is published, because an earlier release receives no fix; once the end date of your release in SECURITY.md has passed, the startup banner and config check say so as well | SECURITY.md, The startup banner |
| Confirm an applied change to an onward credential or a binding section | under config.ui = "managed", within config.confirm (120000 ms by default) of the apply, once the gateway works with it; unconfirmed, it is rolled back | Commit-confirm |
| Bring a replica back in step | when FerroFEDConfigurationDrift fires: fix what the replica refused, then send it SIGHUP or apply a newer revision | Several replicas |
| Back up the configuration revisions | under config.ui = "managed", with the stored-query store and before every upgrade: the redb file or the PostgreSQL database, and the files of config.secrets_dir | Turning it on |
| Confirm a prescription member’s contract | at admission, and when a member declared in [[fhir.serve]] changes its CDR product or version | The member contract |
| Settle a prescription identifier collision | when the PrescriptionIdentifierCollision integrity incident is raised: two members hold one prescription identifier, and every dispensation for it is refused 409, so agree with both members’ operators which one owns it | Every answer, Integrity incidents |
| Export the identity state | before a system that replaces FerroFED takes over, on each replica | Exporting the identity state, Decommissioning |
| Keep each receiving category’s packages complete | when you move a [[fhir.receive]] package or one of its dependencies to a new version: name every package of its dependency closure in dependencies, which config check holds to the manifests | Receiving a document |
| Keep the PIX Manager fed | continuously: the gateway keeps no patient index of its own, so a patient whose records a member has not fed to the PIX Manager over ITI-104, or whose binding the PIX Manager has dropped, resolves at no member and answers as not found | Identity resolution |
Move the gateway’s keys out of [server] | before you upgrade to 0.0.16: this release refuses server.public_url, server.replica, server.bindings_drain_timeout and server.overload_retry_after_s as unknown keys, so write them as gateway.public_url, gateway.replica, gateway.bindings_drain_timeout and server.retry_after | Upgrading |
| Keep the console’s identity provider reachable at its start | when the console’s [oidc] names issuer alone: the console reads the provider’s endpoints from its discovery document when it starts and refuses to start without it; name authorization_endpoint, token_endpoint and jwks_uri to start without asking the provider | Upgrading |
| Move the keys 0.0.20 removed, and declare each issuer’s attributes | before you upgrade to 0.0.20: an [auth.issuer.<name>.attributes] table for every issuer whose callers declare a purpose of use, without which each such caller is refused purpose-of-use-required, and [[trust.issuer]] professional_issuing_authority moved into that table; an imaging receiver’s template at FerroBRIDGE v0.0.24 with CLUSTER.organisation.v1; the keys 0.0.19 refused by name are now refused as unknown keys, and config check names each one | Upgrading |
| Move the keys 0.0.19 renamed or moved | before you upgrade to 0.0.19: every span of time and amount of data under a key that names no unit, the outbound tables’ address, TLS and credential under each endpoint table, and the node credentials nested under credentials; the keys 0.0.18 refused by name are now refused as unknown keys, and config check names each one | Upgrading |
| Move the keys 0.0.18 renamed or removed | before you upgrade to 0.0.18: this release refuses each one at start-up and in config check, naming its replacement, among them [auth] issuer keys moved onto each [auth.issuer.<name>], [[auth.basic.users]], [stored_queries] url, [trust.issuer.national_contact_point], a node’s oauth2 and fapi2 tables and every outbound table’s TLS keys outside its tls sub-table | Upgrading |
| Back up FerroFED’s own store | when [store] is set, before every upgrade: dump the ferrofed schema of its PostgreSQL database, which holds the stored queries, the emergency access counts, the DPoP proofs and a contact point’s dispensations; an older release refuses a store a newer one migrated | FerroFED’s own store |
| Rotate a node grant’s private key | on your key policy’s schedule, and at once when it may have leaked: name the next key in the grant’s next_private_key_file, register its kid at the node’s authorization server, then move it to private_key_file and keep the old one as previous_private_key_file until the node no longer holds an assertion signed with it | Signing keys and the JWK Set |
| Re-read this page and the information sheet | at each release | the changelog |
When a release makes maintenance mandatory, the manufacturer says so in its upgrade notes and through the channels of Complaints and incidents.
Limitations
Art 28(b) forbids “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”. The full list is Limitations; the ones a deployment in the EU must plan for are:
- The European exchange format covers four of the six categories, and
receives three. The gateway serves the patient summary on its FHIR R4
face and receives patient summaries there (Annex II, points 2.1 to 2.3).
It receives laboratory reports at the member you declare for them and
lists each member’s, with a member that serves its own reports listed as
it holds them and read through the gateway
(Laboratory reports over FHIR).
The record that member keeps holds a received result’s normal and typed
reference ranges and the order filler’s identifier, but a range text,
Observation.basedOnand an order named by reference alone only in the original document (hazard I-16); the report the gateway writes carries each range the member records and the order (hazard I-18). It serves prescriptions, and receives dispensations, through members that serve both in the HL7 Europe MPD profiles themselves or, in the map mode, from their openEHR medication orders, and computes no dispensability, remaining dispensations or lock of its own (Prescriptions and dispensations over FHIR; hazard I-17). The patient summary takes a member’s current medication from its medication orders and its vaccinations from medication actions under a vaccination list section; record current medication as orders, since a medication action under another section reaches no section (hazard I-03). It writes discharge and imaging reports from a member’s composition and lists them, with a member’s own listed as it holds them; a report it writes carries what the mapping reads, and names by its openEHR path each element the mapping does not read, such as a medicine’s timing or an imaging finding (hazards I-19 and I-20; Discharge reports over FHIR, Imaging reports over FHIR). It receives discharge reports; the record the member keeps holds a received report’s diagnoses, procedures and discharge medicines, but its hospital course and every section the template holds no place for only in the original document. The answer declares each of them to the sender as not carried, and a reader of the member’s record is told of none (hazard I-21). It receives an imaging report the same way, keeping its study, its impression and its performing organization in the member’s composition but its report identifier, a performer that is no organization and each section’s narrative only in the original document, declared to the sender and told to no reader of the member’s record (hazard I-22; The categories received). The open hazards of the interoperability component are in the clinical safety risk file. - The logging component is read at your Audit Record Repository. The
gateway has no review route of its own: the records are read there with
ITI-81, and the repository sets who may read them and keeps each for the
period it states (Annex II, points 3.3 and 3.4;
Reading the log). A query over many
patients’ data names the patients behind the
ehr_ids its delivered rows project, up to[access_log] max_named_ehrs; a query that projects noehr_idrecords only its scope, so a search by the person’s identifier does not find it (A query over many patients’ data). The gateway offers the person no log access interface of its own: the access service finds a person’s records at the repository with ITI-81 by their identifier. Each record carries a security label per category and per origin, and the access rights by origin and category hold only once you configure your repository to apply them (Labelling the access records). - The access record names the professional only as the token does. It
records the professional’s identifier and the assurance level when your
issuer’s tokens state them, and an assurance level only for an issuer
with
[auth.issuer.<name>.assurance](The person behind an access). - A received document is checked only as far as the validator can
evaluate it. Every invariant, binding and entry profile is evaluated,
and a constraint the validator cannot evaluate (an invariant whose
expression calls a function it cannot answer, a value set no package
carries, a reference outside the document) is listed in the outcome of the
write as a
warning, not refused. Arequiredbinding the packages cannot decide is asked of your terminology server; with no server configured it is listed as not evaluated (The check against the profiles). - A code in no preferred code system is translated only through your
terminology server. With
[eehrxf.terminology]set, the patient summary the gateway writes adds eachequivalentorequaltranslation after the original coding, and a translation the server refuses or does not answer fails the summary. With no server configured, the summary keeps the code as recorded, as the eHealth Network Guidelines on Patient Summary, Release 3.4, Art 10(7) allow as an interim solution (The terminology server). - Each replica holds its own resolution bindings. Behind several
replicas, a follow-up write that names no node is refused
400target-requiredby a replica that did not resolve the patient. SendopenEHR-federation-endpointon every write, or keep each client on one replica (Writes through a gateway with several replicas). - The console changes only what the file leaves to it. Under
config.ui = "managed", the bootstrap core (profile,[server],[metrics],[auth],[trust]and[config]) and client authentication stay in the file, and a member, credential or binding section the file provides is read-only in the console. The console reads one replica at a time, and each replica keeps its own incidents and routing table (Configuration revisions, The operator console). - No EU declaration of conformity has been drawn up, and no release carries the CE marking (Regulatory status).
- The Federation Tier specification is release 1.0.1, the erratum of 2026-11-01 to the 1.0.0 release the openEHR SEC approved on 2026-10-12. Builds up to v0.0.15 implement 1.0.0, and builds up to v0.0.9 the 0.9.0 release candidate.
Accessible formats
Recital 37 asks for instructions “in accessible formats for persons with
disabilities”. These instructions are HTML text with headings, lists and
tables with header rows; no step is carried by an image or by colour
alone. The source is plain Markdown,
website/book/src/operate/instructions-for-use.md,
and the book’s print page renders every page as one document. Ask the
single point of contact for
another format.
Problems and complaints
When the gateway refuses to start, answers with an error code, or logs a failure, look the symptom up on Troubleshooting: it leads from the status, the code or the log line to the cause and the setting that fixes it.
Report a problem, a complaint or a possible serious incident through the channels on Complaints and incidents. Never send patient data.