Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Introduction

FerroPIX is the Master Patient Index of the FerroHEALTH family, in pure Rust. Every organisation issues its own identifiers for the same person. FerroPIX holds the cross-reference between those identifiers in PostgreSQL and answers the question every other system starts with: who is this patient, and which identifier does each system know them by. It also mints the pseudonyms a clinical store names a patient by, so identifying data stays outside the clinical record.

It answers over the IHE profiles integrators already use, all on one cross-reference:

A data steward resolves the pairs the matcher is unsure of in the operator console. FerroPIX ships as a server image, a console image and a Helm chart, and publishes the libraries of the identity specifications it owns, ihe-iti and nl-generic-functions, on crates.io.

This book documents main, which is FerroPIX 0.0.58 when the book is built. The changelog says what each release changed.

Where to start

The book has four kinds of page. A tutorial walks you through a first run. A how-to guide does one task, to integrate a system or to deploy and operate the server. A reference page lists every key, route or type. An explanation page says why FerroPIX works the way it does.

This book covers FerroPIX alone. What every FerroHEALTH product shares is in the family book: how the products fit together, the manufacturer, Cadasto B.V., with its security policy, post-market procedure and the Cyber Resilience Act from the manufacturer’s side, and licensing and trademarks.

Quickstart

This page runs FerroPIX on your machine with the compose quickstart, feeds one synthetic patient as a hospital’s Patient Identity Source would, and asks for it through PIXm and PDQm. It takes a few minutes and needs Docker Compose 2.23.1 or newer (or Podman with a compose provider), curl, jq and openssl, and no checkout of the repository.

Note

Every command on this page is a step of scripts/quickstart/tour.sh, which CI runs over the repository’s compose.yaml, the file each release attaches, against the images each change builds, so the commands and the answers below are the ones the current code gives. Run the script to do every step at once; it switches the usage report off, since a tour is no installation.

Start the server

Every release attaches the quickstart as one file, compose.yaml, with the server’s configuration and the database role inlined in it. Download the latest release’s into an empty directory:

curl -fsSLO https://github.com/FerroHEALTH/FerroPIX/releases/latest/download/compose.yaml

The quickstart reads every secret from a file under ./secrets, never from the environment. Beside compose.yaml, make the five files:

mkdir -p secrets && umask 077
openssl rand -base64 32 > secrets/ferropix-data-key
openssl rand -hex 16 > secrets/postgres-password
openssl rand -hex 16 > secrets/ferropix-db-password
printf 'postgresql://ferropix:%s@postgres:5432/ferropix' \
  "$(cat secrets/ferropix-db-password)" > secrets/ferropix-db-url
openssl rand -hex 16 > secrets/console-oidc-client-secret

Then start the stack and ask for readiness:

docker compose up --wait
curl --fail-with-body -s http://localhost:8080/health/readiness

compose.yaml runs the published server image beside PostgreSQL 19 and a development OpenID Provider, with the configuration it inlines (a copy of app/ferropix-server/quickstart.toml): three identifier domains (a synthetic hospital, urn:oid:2.999.1.1, the BSN and the pseudonymised BSN), one Source client for all three, quickstart-source, and the operator API. Readiness answers {"state":"up",…} once the store, the audit spool and the outbox are up. Every port binds 127.0.0.1 (Deployment).

Warning

The development issuer signs a token for any client that asks and signs in any user name as a data steward. It is for synthetic data on your own machine. A deployment names its own https issuer (Configuration).

Get a token

A Source is a machine, so it asks the issuer for a client credentials token (RFC 6749 §4.4). This one carries the scope to feed (system/Patient.cud) and the scope to query (system/Patient.rs):

token="$(curl --fail-with-body -s http://localhost:8180/ferropix/token \
  -d grant_type=client_credentials -d client_id=quickstart-source \
  -d client_secret=any -d 'scope=system/Patient.cud system/Patient.rs' \
  | jq -er .access_token)"

Feed a patient (ITI-104)

The Source of the hospital domain adds patient H-100001, whose Patient also carries a BSN from the synthetic range no person holds. The conditional update names the identifier the record is fed under (PIXm 3.1.0 §2:3.104.4.1):

curl --fail-with-body -s -X PUT \
  'http://localhost:8080/fhir/Patient?identifier=urn:oid:2.999.1.1|H-100001' \
  -H "Authorization: Bearer $token" \
  -H 'Content-Type: application/fhir+json' \
  --data-binary @- <<'EOF' | jq -e '.issue[0].severity == "information"'
{
  "resourceType": "Patient",
  "identifier": [
    { "system": "urn:oid:2.999.1.1", "value": "H-100001" },
    { "system": "http://fhir.nl/fhir/NamingSystem/bsn", "value": "999990007" }
  ],
  "name": [{ "family": "Proefsma", "given": ["Ada"] }],
  "gender": "female",
  "birthDate": "1961-04-12"
}
EOF

The server answers 201 Created with a Location naming the new person and an OperationOutcome whose one information issue says the identifier was added. The BSN is in an authoritative domain, so a record of another hospital that carries the same BSN links to this person without a steward. Both identifiers are sealed at rest (The Dutch identifiers).

Ask for the patient’s other identifiers (ITI-83)

A PIXm Consumer that knows the hospital’s identifier asks which BSN the person holds. It posts the parameters in a Parameters body, so the identifier is in no URL:

curl --fail-with-body -s -X POST 'http://localhost:8080/fhir/Patient/$ihe-pix' \
  -H "Authorization: Bearer $token" \
  -H 'Content-Type: application/fhir+json' \
  --data-binary @- <<'EOF' | jq -e '.parameter[] | select(.name == "targetIdentifier") | .valueIdentifier'
{
  "resourceType": "Parameters",
  "parameter": [
    { "name": "sourceIdentifier", "valueString": "urn:oid:2.999.1.1|H-100001" },
    { "name": "targetSystem", "valueString": "http://fhir.nl/fhir/NamingSystem/bsn" }
  ]
}
EOF

The answer is a Parameters with one targetIdentifier per identifier in the domains asked for and a targetId naming Patient/{id} (PIXm 3.1.0 §2:3.83.4.2.2.1); the command prints the BSN:

{
  "system": "http://fhir.nl/fhir/NamingSystem/bsn",
  "value": "999990007"
}

Find the patient by demographics (ITI-78)

A PDQm Consumer that knows the family name and the birth date searches for the patient, posting the criteria as a form so they stay out of the URL (PDQm 3.2.0 §2:3.78.4.1.2):

curl --fail-with-body -s -X POST 'http://localhost:8080/fhir/Patient/_search' \
  -H "Authorization: Bearer $token" \
  -H 'Accept: application/fhir+json' \
  -d family=proefsma -d birthdate=1961-04-12 \
  | jq -e '.total == 1 and .entry[0].resource.name[0].family == "Proefsma"'

The answer is a searchset Bundle with a total of 1. proefsma finds Proefsma, because a string parameter matches the start of a name in any case. The PDQm Supplier lists every parameter, and $match (ITI-119) scores a patient you describe.

Open the console

The console profile adds the operator console on http://localhost:3000/:

docker compose --profile console up --wait

Sign in with any user name at the development issuer’s form. The dashboard counts what you fed, and Search finds the patient by its identifier or demographics (The operator console).

Stop it

docker compose --profile console down --volumes

--volumes removes the database and the server’s state with the containers.

Next

Your first integration

Audience: integrators who connect a hospital system to FerroPIX for the first time, as its Patient Identity Source and as a consumer of the cross-reference.

In this tutorial you act as a hospital that registers the same patient twice by mistake. You feed both records, watch FerroPIX link them through the patient’s BSN, resolve the duplicate as the hospital, and ask for the patient by identifier and by demographics. Along the way you see the answer to a BSN that fails its check.

A test runs every request on this page against the server and PostgreSQL in CI, so what you read here is what the server answers.

Before you start

Run the quickstart up to “Get a token”: its stack is the server you talk to here, with three identifier domains:

  • urn:oid:2.999.1.1, the synthetic hospital, a local domain;
  • http://fhir.nl/fhir/NamingSystem/bsn, the BSN, an authoritative domain;
  • http://fhir.nl/fhir/NamingSystem/pseudo-bsn, the pseudonymised BSN.

One client, quickstart-source, is the Patient Identity Source of all three. Every value on this page is synthetic: the BSNs come from a range no person holds.

1. Get a token as the hospital’s Source

A Source is a machine, so it asks the issuer for a client credentials token (RFC 6749 §4.4). The scopes let it feed (system/Patient.cud) and query (system/Patient.rs):

token="$(curl --fail-with-body -s http://localhost:8180/ferropix/token \
  -d grant_type=client_credentials -d client_id=quickstart-source \
  -d client_secret=any -d 'scope=system/Patient.cud system/Patient.rs' \
  | jq -er .access_token)"

Each request below is written as the HTTP message you send. With curl, send one like this, the body saved in body.json:

curl -s -X PUT 'http://localhost:8080/fhir/Patient?identifier=urn:oid:2.999.1.1|H-200001' \
  -H "Authorization: Bearer $token" \
  -H 'Content-Type: application/fhir+json' \
  --data-binary @body.json

2. Register the patient

The hospital registers Mila de Vries as H-200001, with her BSN. A conditional update on the hospital’s identifier is the ITI-104 Add or Revise Patient (PIXm 3.1.0 §2:3.104.4.1):

PUT /fhir/Patient?identifier=urn:oid:2.999.1.1|H-200001 HTTP/1.1
Host: localhost:8080
Authorization: Bearer $token
Content-Type: application/fhir+json

{
  "resourceType": "Patient",
  "identifier": [
    { "system": "urn:oid:2.999.1.1", "value": "H-200001" },
    { "system": "http://fhir.nl/fhir/NamingSystem/bsn", "value": "999990019" }
  ],
  "name": [{ "family": "de Vries", "given": ["Mila"] }],
  "gender": "female",
  "birthDate": "1987-09-23"
}

FerroPIX answers 201 Created: the identifier is new, and the record is a new person. Its Location names that person.

3. Register her again by mistake

At another desk, the hospital registers her a second time as H-200002, with the same BSN:

PUT /fhir/Patient?identifier=urn:oid:2.999.1.1|H-200002 HTTP/1.1
Host: localhost:8080
Authorization: Bearer $token
Content-Type: application/fhir+json

{
  "resourceType": "Patient",
  "identifier": [
    { "system": "urn:oid:2.999.1.1", "value": "H-200002" },
    { "system": "http://fhir.nl/fhir/NamingSystem/bsn", "value": "999990019" }
  ],
  "name": [{ "family": "de Vries", "given": ["Mila", "Johanna"] }],
  "gender": "female",
  "birthDate": "1987-09-23"
}

The identifier H-200002 is new, so this is 201 too. The BSN is in an authoritative domain, so FerroPIX links the two records to one person in the same transaction, with no steward involved (Matching).

4. Ask which hospital numbers the BSN has

A consumer that knows only the BSN asks the PIXm Manager for the hospital’s identifiers (ITI-83). It posts the parameters, so the BSN sits in no URL:

POST /fhir/Patient/$ihe-pix HTTP/1.1
Host: localhost:8080
Authorization: Bearer $token
Content-Type: application/fhir+json

{
  "resourceType": "Parameters",
  "parameter": [
    { "name": "sourceIdentifier", "valueString": "http://fhir.nl/fhir/NamingSystem/bsn|999990019" },
    { "name": "targetSystem", "valueString": "urn:oid:2.999.1.1" }
  ]
}

The answer holds one targetIdentifier for each hospital number, H-200001 and H-200002, and one targetId naming the person (PIXm 3.1.0 §2:3.83.4.2.2.1). The BSN was never fed as a record of its own: FerroPIX answers by it because the hospital’s records carry it.

5. Resolve the duplicate

The hospital finds the double registration and keeps H-200001. It tells FerroPIX with the same conditional update on H-200002, now inactive and with a replaced-by link to the survivor, the ITI-104 Resolve Duplicate Patient (PIXm 3.1.0 §2:3.104.4.2):

PUT /fhir/Patient?identifier=urn:oid:2.999.1.1|H-200002 HTTP/1.1
Host: localhost:8080
Authorization: Bearer $token
Content-Type: application/fhir+json

{
  "resourceType": "Patient",
  "identifier": [
    { "system": "urn:oid:2.999.1.1", "value": "H-200002" }
  ],
  "active": false,
  "name": [{ "family": "de Vries", "given": ["Mila", "Johanna"] }],
  "gender": "female",
  "birthDate": "1987-09-23",
  "link": [
    {
      "other": { "identifier": { "system": "urn:oid:2.999.1.1", "value": "H-200001" } },
      "type": "replaced-by"
    }
  ]
}

FerroPIX answers 200: H-200002 is known, and from now on it stands for the survivor.

6. Ask by the subsumed number

A system that still holds the old number H-200002 asks for the patient’s identifiers in every domain, naming no targetSystem:

POST /fhir/Patient/$ihe-pix HTTP/1.1
Host: localhost:8080
Authorization: Bearer $token
Content-Type: application/fhir+json

{
  "resourceType": "Parameters",
  "parameter": [
    { "name": "sourceIdentifier", "valueString": "urn:oid:2.999.1.1|H-200002" }
  ]
}

The answer is the survivor’s identifiers, H-200001 and the BSN (PIXm 3.1.0 §2:3.104.4.2.3), so the old number keeps working while the hospital’s other systems catch up.

7. Find her by demographics

A consumer that has no identifier at all describes the patient and asks the PDQm Supplier to score her against everyone FerroPIX holds, the ITI-119 $match (PDQm 3.2.0 §2:3.119):

POST /fhir/Patient/$match HTTP/1.1
Host: localhost:8080
Authorization: Bearer $token
Content-Type: application/fhir+json

{
  "resourceType": "Parameters",
  "parameter": [
    {
      "name": "resource",
      "resource": {
        "resourceType": "Patient",
        "name": [{ "family": "de Vries", "given": ["Mila"] }],
        "gender": "female",
        "birthDate": "1987-09-23"
      }
    }
  ]
}

The answer is a searchset Bundle with one entry per person, most likely first. Her entry carries a search.score and the match-grade extension certain: the family name, the given name, the birth date and the gender all agree. Each grade is explained on the Matching page.

8. Send a BSN that fails its check

A BSN passes the eleven-proof. The hospital mistypes one digit for a new patient:

PUT /fhir/Patient?identifier=urn:oid:2.999.1.1|H-200003 HTTP/1.1
Host: localhost:8080
Authorization: Bearer $token
Content-Type: application/fhir+json

{
  "resourceType": "Patient",
  "identifier": [
    { "system": "urn:oid:2.999.1.1", "value": "H-200003" },
    { "system": "http://fhir.nl/fhir/NamingSystem/bsn", "value": "999990018" }
  ],
  "name": [{ "family": "Bakker", "given": ["Sem"] }],
  "gender": "male",
  "birthDate": "2001-02-14"
}

FerroPIX refuses the whole feed with 422 and a business-rule issue, and stores nothing: a wrong BSN would link the record to a stranger. The issue names the rule and never the value you sent.

What you did

  • You fed two records as a domain’s one Patient Identity Source, and FerroPIX linked them through an authoritative identifier.
  • You resolved a duplicate the way the Source does, and saw the old number answer for the survivor.
  • You found the patient by an identifier she was never fed under, and by her demographics alone.

How FerroPIX manages patient identity explains the model behind each step. The pages under Integrate list every case of each transaction, and Security and audit says which scopes each caller needs.

The PIXm Manager

FerroPIX serves the IHE PIXm 3.1.0 Patient Identifier Cross-reference Manager under {base}/fhir, in FHIR R4 JSON and XML: ITI-83 answers which identifiers the cross-reference holds for a patient, and ITI-104 lets each domain’s Patient Identity Source feed it. [pixm] enabled switches both on (the default) and [pixm] remove_patient adds the Remove Patient Option (Configuration).

Every request needs an access token or, on a development surface, a Basic user (Security). A Consumer holds system/Patient.rs or the IUA scope ITI-83; a Source holds system/Patient.cud or ITI-104, is a machine with a client credentials token, and must be its domain’s source_client_id.

Ask for a patient’s identifiers (ITI-83)

The Manager accepts $ihe-pix in two forms that answer the same:

  • POST {base}/fhir/Patient/$ihe-pix with a Parameters body carrying sourceIdentifier (one system|value) and any number of targetSystem, each a valueString (FHIR R4 Operations, “Executing an Operation”). The identifier stays out of the URL, so no browser history, proxy log or trace holds it. Use this form: it is what ihe_iti::pixm::Invocation::Post sends, and every FerroHEALTH client calls the Manager this way (The published crates).
  • GET {base}/fhir/Patient/$ihe-pix?sourceIdentifier=system|value{&targetSystem=…}, the form PIXm prescribes (§2:3.83.4.1.2), for a Consumer built strictly to IHE. The identifier then sits in the query string; FerroPIX’s request log never records a query, but a proxy in front of it might.

The answer is a Parameters resource with one targetIdentifier per identifier the person holds in the domains asked for (every domain when no targetSystem is given), leaving out the identifier asked about, and one targetId naming Patient/{id}, the person (§2:3.83.4.2.2.1). The identifiers are the records each Source fed and every identifier in an authoritative domain that those records carry and no Source feeds, such as the BSN on a hospital’s Patient; you can ask by that BSN too. A pseudonymisation domain is a targetSystem too: the answer carries the person’s pseudonym in it, minted on the first ask of the domain’s consumer and answered to that consumer alone (Pseudonyms).

CaseAnswer
found200, the Parameters
the identifier was subsumed by a resolved duplicate, or its person merged200, the survivor’s identifiers (§2:3.104.4.2.3)
the domain is known, the identifier is not, or was removed404, not-found, “sourceIdentifier Patient Identifier not found” (§2:3.83.4.2.2.2)
the source domain is unknown or retired400, code-invalid, “sourceIdentifier Assigning Authority not found” (§2:3.83.4.2.2.3)
a target domain is unknown or retired403, code-invalid, “targetSystem not found” (§2:3.83.4.2.2.4)
a carried identifier sits in two persons the steward has not resolved409, multiple-matches
a malformed request: no sourceIdentifier, two, no system, an unknown parameter400, with the issue naming the fault

The merged-identifier and 409 rows are FerroPIX’s own policy: PIXm leaves the merged case to the Manager (§2:3.83.4.2.2.5) and names no conflict case.

Feed the cross-reference (ITI-104)

  • PUT {base}/fhir/Patient?identifier=system|value with a Patient body is Add or Revise Patient (§2:3.104.4.1): 201 when the identifier is new, 200 when it is known, with a Location naming the person. The body must carry the identifier of the condition and is read up to the PDQm Patient profile.
  • The same PUT whose Patient has a link of type replaced-by to another identifier of the domain is Resolve Duplicate Patient (§2:3.104.4.2): 200, and from then on a query of the subsumed identifier answers the survivor’s set.
  • DELETE {base}/fhir/Patient?identifier=system|value is Remove Patient, served only with [pixm] remove_patient = true (§2:3.104.4.3): 200, and the identifier is not found afterwards. Removing an identifier the cross-reference does not hold also answers 200 (FHIR R4 RESTful API, delete).

A new cross-reference is visible to the next query once the feed commits. Each answer is an OperationOutcome with one information issue on success, or one error issue:

CaseAnswer
the caller is not the domain’s Source403, forbidden (§2:3.104.5)
the condition is missing, names two identifiers or no domain400
the body is no Patient, breaks the PDQm Patient profile or lacks the condition’s identifier400
the condition’s domain is unknown or retired400, code-invalid, “identifier Assigning Authority not found”
a value the domain’s rule refuses (a BSN failing the eleven-proof)422, business-rule
a revision of an identifier the Source subsumed422, business-rule
a survivor that names no active record of the domain422, business-rule

Every route

  • _format (json, xml or a FHIR media type) chooses the answer’s encoding over Accept; a request that accepts neither answers 406 with a not-supported issue, and a body in another media type 415.
  • A store that cannot be reached answers 503 with a transient issue, and so does a query whose audit record has no room in the spool, before anything is read, or a feed whose record cannot be kept, in which case nothing is changed: a feed and its record commit together.
  • Every query and every feed writes its PIXm BALP record (The audit trail). The request log records the matched route and never the query, the body or the identifier (Operations).

GET {base}/fhir/metadata serves the CapabilityStatement, in JSON or XML, that instantiates the PIXm Manager actor statement: the Patient entry with the PIXm Patient profile, the update interaction with conditionalUpdate, the delete interaction with conditionalDelete only while the Remove Patient Option is on, and the ihe-pix operation, next to the security service and the scopes the permission table enforces.

The PDQm Supplier

FerroPIX serves the IHE PDQm 3.2.0 Patient Demographics Supplier, with the Match Operation Option, under {base}/fhir in FHIR R4 JSON and XML: ITI-78 finds patients by their demographics and identifiers and reads one by its id, and ITI-119 $match scores a patient you describe against every patient the cross-reference holds. [pdqm] enabled switches both on (the default) and [pdqm] deprecated chooses how a merged patient is answered (Configuration).

Every request needs an access token or, on a development surface, a Basic user (Security). A Consumer holds system/Patient.rs, or the IUA scope ITI-78 for the search and the read and ITI-119 for $match. A read of one patient needs the r permission, a search the s permission.

The Patient you get back

Each Patient is a person of the cross-reference, the same resource the PIXm Manager names in targetId:

  • id is the person’s id, and the first identifier is that id in the Master Patient Identification Domain, whose system is public_base_url.
  • The other identifiers are the identifier of every record a Source fed for the person, each in its domain’s system, opened from its sealed form for the answer alone.
  • The demographics are the current version of one of the person’s records: a record of an authoritative domain first, then the most recently received.
  • A merged person reads active = false, carries no demographics and has a link of type replaced-by to the person it was merged into (FHIR R4 Patient, “Patient records that have been merged”).
  • The mother’s maiden name, when a Source sent it, stays in the patient-mothersMaidenName extension (PDQm 3.2.0 §2:3.78.4.2.2.2).

Every Patient claims the PDQm Patient profile in meta.profile.

Search (ITI-78)

GET {base}/fhir/Patient?… and POST {base}/fhir/Patient/_search answer alike (§2:3.78.4.1.2). A POST sends the parameters as an application/x-www-form-urlencoded body, which keeps them out of the URL; parameters in its URL join those of the body.

ParameterMatches
_idthe person’s id, exactly
activetrue for an active person, false for a merged one
family, givena name part that starts with the value
identifiersystem|value in that domain, or value in any domain, found by the value’s HMAC; the master domain’s value is the person’s id
telecoma contact point’s value, in the ContactPoint.system the token names
birthdatethe birth date, with the FHIR prefixes eq, ne, gt, lt, ge, le, sa, eb and ap, each value at its own precision: a year, a month or a day of the calendar
addressany part of an address that starts with the value: a line, the city, the district, the state, the postal code, the country or the text
address-city, address-country, address-postalcode, address-statethat part of an address
genderone administrative gender code
mothersMaidenNamethe mother’s maiden name extension

A string parameter matches a value that starts with yours once both are folded to their base letters and lowercased, so proef finds Próefsma; :exact matches the value as written (§2:3.78.4.1.2.2). Repeating a parameter asks for both values (AND) and a comma between values for either (OR). Every combination of parameters is supported, the two PDQm requires included (§2:3.78.4.1.2.1.1). A parameter FerroPIX does not read, or another modifier, is ignored and left out of the self link, which names exactly what the search respected.

A search reads the demographics each Patient shows. FerroPIX keeps each person’s searchable values in an index, written in the same transaction as every feed, merge, removal or domain change, so a search costs the same whether the store holds a thousand persons or a million. A merged person holds no records, since a merge moves them to the survivor, so only _id and active find it.

Identifier types

Every identifier of a returned Patient carries identifier.type, the type its domain names (identifier_type). An HL7 Identifier Type code is a coding of http://terminology.hl7.org/CodeSystem/v2-0203. The EHDS codes HI, HIN, REGPID and REGION of the draft EEHRxF Annexes, Table 26, are written as type.text, because no published code system holds them yet. The persons’ own identifier in the Master Patient Identification Domain is PI.

The domain filter

identifier=system| with no value names a domain whose identifiers you want back, and repeats or takes a comma for several (§2:3.78.4.1.2.3). Every returned Patient then holds only the identifiers of those domains.

Paging

_count sets the page size: 20 when you name none, at most 100 whatever you ask, and 0 answers only the total. The searchset Bundle carries the total of every match, a self and a first link, and a next link while matches follow. Pages run in the order of the persons’ ids and the next link names the last person of the page, so a person created or merged while you page does not move another person onto two pages or off all of them. Follow the links as the server writes them; the paging parameter is FerroPIX’s own.

The answers

CaseAnswer
matches found200, a searchset Bundle with its total and one match entry per person (§2:3.78.4.1.3, Case 1)
a domain filter of known domains200, each Patient holding only those domains’ identifiers (Case 2)
no match200, total 0 and no entry (Case 3)
a domain filter naming a domain FerroPIX does not hold404, warning, not-found, “targetSystem not found” (Case 4, the preferred response)
a _format or Accept that names neither JSON nor XML406, not-supported (Case 5)
a merged person matched[pdqm] deprecated = "inactive" (the default): the person with active = false and its replaced-by link, the survivor included as an include entry; "omit": the person left out (Case 6)
a malformed value: an empty one, a gender that is no code, a date that is no FHIR date400, with the issue naming the fault

Read one patient (ITI-78)

GET {base}/fhir/Patient/{id} answers 200 with the Patient, or 404 with an error not-found issue when no person has the id (§2:3.78.4.3.3). A merged person answers 200 with active = false under "inactive" and 404 under "omit" (Case 3). A format the read cannot write answers 400 (§2:3.78.4.4.2).

Match (ITI-119)

POST {base}/fhir/Patient/$match takes the PDQm Match Input Parameters, with the Patient in resource and the optional onlyCertainMatches and count, or, when you use neither, the bare Patient (§2:3.119.4.1.2). The mother’s maiden name goes in its extension on that Patient (§2:3.119.4.1.2.1).

FerroPIX reads your Patient as if a Source had fed it, finds the records that share a blocking key with it, scores each with the scorer of the Matching page, and grades each person by the best score of its records. Your Patient’s identifiers in local domains are compared by their HMAC. The answer is the PDQm Match Output Bundle:

  • one entry per person, ordered from the most to the least likely, each with search.score in [0, 1] and the match-grade extension, certain, probable or possible, from the [matching] thresholds (§2:3.119.4.2.2.4); a person graded certainly-not is no match and is left out;
  • with onlyCertainMatches, only certain entries, and none at all when more than one person is certain (Cases 3 to 5);
  • with count, at most that many entries (Case 6);
  • a warning OperationOutcome entry when your Patient states fewer than three of the scorer’s fields, so the match rests on little (Case 10).
CaseAnswer
one or more matches200, the entries as above (Cases 1, 2, 3 and 6)
one match that is not certain, with onlyCertainMatches200, no entry (Case 4)
several certain persons, with onlyCertainMatches200, no entry (Case 5)
no match200, no Patient entry (Case 7)
a merged personnever returned: it holds no records, so its survivor is matched (Case 8)
a body that is no Match Input: no Patient, an unknown parameter, a bare Patient with count in the query400, with the issue naming the fault (Case 9)
a body that is neither FHIR JSON nor FHIR XML415, not-supported
a _format or Accept that names neither JSON nor XML406, not-supported

Every route

  • _format (json, xml or a FHIR media type) chooses the answer’s encoding over Accept.
  • A store that cannot be reached answers 503 with a transient issue, and so does a request whose audit record has no room in the spool.
  • Every search, read and match writes the PDQm Supplier BALP record, one per person in the answer, or one naming no patient when the answer names none, before the answer is sent (The audit trail). The request log records the matched route and never the query, the body, a name or an identifier (Operations).

GET {base}/fhir/metadata declares the Supplier on the one Patient entry of its CapabilityStatement: it instantiates the PDQm Supplier statement and the statement of the Match Operation Option, and names the PDQm Patient profile, the read and search-type interactions, every search parameter above with its :exact form, and the match operation. _lastUpdated, which the PDQm Supplier statement lists, is not read: the person has no version of its own to date.

The PMIR Registry

FerroPIX is the Patient Identity Registry of IHE PMIR 1.6.0. It receives ITI-93, the Mobile Patient Identity Feed, from the Source of the master domain, answers ITI-94, Subscribe to Patient Updates, and sends ITI-93 to each subscriber.

Turn PMIR on with [pmir] enabled = true (Configuration).

The feed a Source sends (ITI-93)

The master domain is the [[domain]] of kind master, whose system is the server’s public_base_url. Only its Source may send the feed: its client id is the domain’s source_client_id, and it holds system/Patient.cud. Any other client is answered 403 with a forbidden issue, and with no master domain every client is.

The Source sends POST {base}/fhir with a PMIR message Bundle in FHIR JSON or XML. FerroPIX applies the changes of the history Bundle in order, all in one transaction with the message’s audit record. A message of more than 100 changes is refused with 413 and a too-costly issue before any change runs:

  • Create: the Patient’s id must be a UUID, written in lowercase with hyphens. FerroPIX creates the patient with that id, so the id the Source chose is the id every face serves. A create of a patient FerroPIX holds already updates it.
  • Update: the patient’s demographics and identifiers are revised.
  • Merge: a Patient sent with active false and a replaced-by link is merged into the patient the link names, as a merge by the Source. The merged patient then reads inactive with its replaced-by link, and its identifiers resolve to the survivor’s in PIXm.
  • Delete: the patient’s master identifier is removed and answers as unknown from then on.

The response is a message Bundle with one MessageHeader. When every change applied its code is ok. Otherwise it is fatal-error, and its details point to an OperationOutcome with one issue per refused change, naming the change’s history entry and its status:

  • 400 invalid for a Patient id that is not a UUID;
  • 404 not-found for an update, merge or delete of a patient FerroPIX does not hold;
  • 405 not-supported for an update of a merged patient, which would undo the merge. Unmerge goes through the operator console, not the feed.

A refused change is rolled back on its own and the other changes apply. When the store fails, or concurrent feeds keep moving the same patients, the whole message is rolled back and answered 503, and the Source sends it again; nothing of it was applied. Each message writes one BALP record, following PMIR’s Feed audit profile, committed with its changes.

The feed FerroPIX sends (ITI-93)

Every committed change to a patient is an ITI-93 message to each active subscription whose criteria match. A message is written in the same transaction as the change, so a change is never left unannounced, and it is written in the format the subscription’s channel.payload names. Every Patient in a message states active and carries its current links, so a subscriber reads the patient’s state from the message alone. A merged patient is sent as the deprecated Patient, active false with its replaced-by link, carrying beside its master identifier the identifiers its records held before the merge, each in its domain’s system. A deleted patient’s entry carries the deleted Patient with the identifiers it held. A subscriber that keys its state by source identifier reads from the message which identifiers now resolve elsewhere. A steward’s revert of a merge is one message that sends both patients as they now stand: each active true, with no replaced-by link.

The sender posts a subscription’s messages to its channel endpoint one at a time and in order, with the headers the subscription’s channel.header lists. It follows no redirect. A subscription carries no credential (PMIR 1.6.0 §2:3.94.5), so you name each Patient Identity Consumer the sender authenticates to in [[pmir.feed.consumers]]: a message to an endpoint under its url carries its IUA token, renewed once when it answers 401, in place of any Authorization header the subscription names, and presents its client certificate for ATNA mutual TLS (§2:3.93.5, Configuration). An endpoint under no entry gets no credential. A 401 or 403 after the renewal is a failed attempt, and the subscription’s error names the refusal. A failed post is tried again with a doubling wait, within [pmir.feed]. Once the attempts are spent, the subscription’s status becomes error and its error says why. Its later messages wait, and an enable (PUT with status requested) resumes from the next one. The operator API’s dependency report names each subscriber with the outcome of its latest message (Operations).

Subscriptions (ITI-94)

A subscriber holds the system/Subscription.cruds scope.

  • Create: POST {base}/fhir/Subscription with a Subscription in FHIR JSON or XML. It must hold to the Subscription Profile for PMIR (IHE.PMIR.Subscription.Request, PMIR 1.6.0 §2:3.94.4.1.2.1, the profile the CapabilityStatement declares): a message channel, a payload media type, every contact with its system and value, and one of the four criteria listed below. FerroPIX activates the subscription at once. It answers 201 with the Location and the stored Subscription, now active.
  • Read: GET {base}/fhir/Subscription/{id} answers the subscription as it stands, with status error and the error text once a delivery has failed for good.
  • Enable and disable: PUT {base}/fhir/Subscription/{id} with status off disables it, and with requested enables it again. A disabled subscription is sent nothing. Any other status is refused.
  • Delete: DELETE {base}/fhir/Subscription/{id} answers 204. The subscription is gone for every later request, and FerroPIX sends it nothing.

The four criteria are:

  • Patient: every patient;
  • Patient?_id=X: one person;
  • Patient?organization=X: the patients of one Organization;
  • Patient?identifier=X: a FHIR token, by system, value or both.

The channel endpoint must be https. Plain http on a loopback host is accepted only under the development profile’s [dev] table. A criteria outside the four, a missing channel and any other endpoint are refused with 400 and an OperationOutcome.

Every request writes its BALP record, following PMIR’s subscription audit profiles, before its answer leaves. The operator dashboard counts the subscriptions in error.

The HL7 v2 face

FerroPIX answers the HL7 v2 PIX and PDQ transactions on one MLLP listener, beside the FHIR face and on the same cross-reference: ITI-8 Patient Identity Feed, ITI-9 PIX Query and ITI-21 Patient Demographics Query, as the IHE ITI Technical Framework Volume 2 texts prescribe them. A v2 feed and a FHIR feed of the same patient land in one person, and a v2 query and a FHIR query answer the same cross-reference. The face reads messages with FerroBRIDGE’s HL7 v2 parser and MLLP codec, so the family has one parser.

Turn it on with [hl7v2] enabled = true and list every sender (Configuration):

[hl7v2]
enabled = true
listen = "0.0.0.0:2575"

[[hl7v2.senders]]
application = "ADT"
facility = "EAST"
domain = "urn:oid:2.999.1.1"

[[hl7v2.senders]]
application = "PORTAL"
facility = "NORTH"

[hl7v2.namespaces]
"urn:oid:2.999.1.1" = "HOSP"

The listener

  • Framing: MLLP Release 1, one message per frame. A frame that does not open with the start block, holds a start block inside it, runs past frame_limit or does not complete within frame_timeout is answered AR when its header can be read, and the connection closes. A connection idle past idle_timeout closes.
  • Connections: at most max_connections (256 by default) are open at once; a connection accepted past it is closed and logged before any byte is read. A failed accept is logged and the listener goes on accepting.
  • Character sets: MSH-18 names the set a message is read in; a message with an empty MSH-18 is read in default_charset. The answer is written in the set the message came in, by ferrobridge-hl7v2’s writer, and an RSP^K23 is checked against its structure before it leaves, so a response that does not conform is answered AE instead.
  • Senders: each [[hl7v2.senders]] entry names a sending application (MSH-3) and facility (MSH-4), matched by namespace id or universal id. A message from a sender not listed is answered AR and not applied. A sender with a domain is that domain’s one Patient Identity Source and may feed it; a sender without one may only query.
  • Assigning authorities: a domain is the system of a FHIR identifier. An assigning authority with a universal id of type ISO names the domain urn:oid:<oid>, one of type URI names the domain by that URI, and a namespace id names the domain [hl7v2.namespaces] gives it. Every identifier in an answer carries all three subcomponents; the namespace id is empty for a domain the configuration names none for. The map follows IHE ITI TF-2 Appendix Z.9.1, where an actor maps an HL7 v2 assigning authority to the URI of a FHIR Identifier.system by configuration and writes an OID as urn:oid:.
  • The drain: on SIGTERM the listener stops accepting, finishes the messages it is answering within [server] shutdown_timeout, and closes. Readiness carries the hl7v2_listener indicator, down once the listener stops accepting.

No byte of a message reaches a log line: the server logs each message by MSH-10, its type and the acknowledgment code.

ITI-8, the identity feed

ADT^A01, A04, A05 and A08 add or revise a patient, and ADT^A40 merges the MRG-1 identifier into the PID-3 identifier. The identifier fed is the PID-3 repetition in the sender’s domain; a repetition with no assigning authority takes the sender’s domain. The other repetitions in domains FerroPIX holds, a BSN among them, are carried as a FHIR feed carries them.

The face reads PID as the Patient a FHIR Source would send for the same patient (name, birth date, gender, address, telecom and the mother’s maiden name, through the HL7 v2-to-FHIR structure maps that FerroBRIDGE’s ferrobridge-hl7v2 is built with, every table value translated on the terminology server) and applies it through the same feed transaction as ITI-104, so the version written, the deterministic match and the merge are the same. An A40 is the Resolve Duplicate message: the subsumed record is replaced by the survivor, its person merged into the survivor’s.

The acknowledgment is in original mode:

AnswerWhen
AAThe message is applied.
AE, ERR PID^1^3^1^4 code 204PID-3 carries no identifier in the sender’s domain.
AE, ERR code 101PID-3 or MRG-1 is missing.
AE, ERR MRG^1^1^1^4 code 204MRG-1 is not in the sender’s domain.
AE, ERR PID^1^7 code 102PID-7 is no date.
AE, ERR code 204An A40 names a survivor FerroPIX does not hold.
AR, ERR code 200Any other message type or trigger event.
AR, ERR code 207The store, the audit spool or the terminology server cannot take the message; send it again.

A message sent again with the same MSH-10 from the same sender is acknowledged with the code it got the first time and is not applied again.

The terminology server

The face maps PID to a Patient, and a Patient back into the PID of an ITI-21 answer, through the structure maps of the HL7 v2-to-FHIR 1.0.0 guide (hl7.fhir.uv.v2mappings) with FerroBRIDGE’s corrections, which ferrobridge-hl7v2 is built with. A table value (PID-8 by table 0001, the name type by 0200, the address type by 0190, the telecommunication use and equipment type by 0201 and 0202) is a code of a terminology, so the face translates each one by ConceptMap/$translate on the FHIR R4 terminology server [terminology] names, and holds no copy of a table. A message’s translations go in one FHIR batch request, so the server must accept a batch Bundle at its base. FerroTERM is the family’s terminology server.

Load three FHIR packages into it, as FerroBRIDGE’s book says for its own HL7 v2 face: HL7 Terminology (hl7.terminology, which holds the v2 tables’ code systems and the value sets the table maps name), the guide’s package hl7.fhir.uv.v2mappings 1.0.0 (both from the FHIR package registry), and FerroBRIDGE’s value package, terminology/hl7v2-values/ of the FerroBRIDGE release whose ferrobridge-hl7v2 FerroPIX runs. For FerroTERM, name the three directories in its terminology.code_systems:

[terminology]
code_systems = [
  "/srv/hl7.terminology/package",
  "/srv/hl7.fhir.uv.v2mappings/package",
  "/srv/ferrobridge-hl7v2-values",
]

Then point FerroPIX’s [terminology.endpoint] url at the server’s R4 base. The server refuses to start with the HL7 v2 face on and no terminology server. A call the terminology server refuses or does not answer is answered AR, never mapped without the value, so the sender sends the message again; a code its map translates to nothing is left out of the Patient.

The guide writes the system of a PID-3 identifier from its assigning authority (CX-4). An authority whose universal id is an ISO OID or a UUID names the system itself. Any other authority is searched on the same server as an identifier NamingSystem, NamingSystem?kind=identifier&value=<authority>, and the uri unique id of the one NamingSystem that holds the authority as a unique id becomes the system. Register one such NamingSystem for each assigning authority your senders use. An authority the server registers none for, or more than one for, leaves that identifier’s system unwritten; a search the server refuses is answered AR. The answer for an authority is held for 10 minutes across messages, so a steady feed searches once per authority in that period and a registration changed on the server is in force within it; a refused search is never held.

ITI-9, the PIX query

QBP^Q23 names one identifier in QPD-3 and, in QPD-4, the domains whose identifiers it wants. The answer, RSP^K23, holds what ITI-83 answers for the same identifier: one PID whose PID-3 lists every identifier of the person except the one asked, filtered to the QPD-4 domains, with a pseudo-name in PID-5. A merged identifier answers the survivor’s identifiers and a removed one is not found, as on the FHIR face.

MSA-1, QAK-2When
AA, OKIdentifiers are found.
AA, NFThe person holds no identifier in the requested domains.
AE, AE, ERR QPD^1^3^1^1 code 204The identifier is not known.
AE, AE, ERR QPD^1^3^1^4 code 204The identifier’s domain is not known.
AE, AE, ERR QPD^1^4^n code 204The domain of QPD-4 repetition n is not known.

ITI-21, the demographics query

QBP^Q22 names its criteria as QPD-3 parameters and the domains whose identifiers it wants in QPD-8. Each parameter is searched as its ITI-78 parameter, so the persons found are the ones a PDQm search finds:

QPD-3 fieldITI-78 parameter
@PID.3.1 with @PID.3.4identifier
@PID.5.1.1family
@PID.5.2given
@PID.6.1.1mothersMaidenName
@PID.7birthdate
@PID.8gender
@PID.11.1 to @PID.11.6address, address-city, address-state, address-postalcode, address-country
@PID.13.1telecom
@PID.18.1 with @PID.18.4identifier

The answer, RSP^K22, holds one PID per person with its identifiers and demographics, written back through the same maps and checked against RSP_K21 as IHE ITI TF-2 Table 3.21-6 constrains it (QRI optional): an answer that does not conform, such as a PID with no name, is answered AE. A QPD-8 domain FerroPIX does not know answers AE with an ERR at QPD^1^8^n, and a field FerroPIX does not search on answers AE. When the terminology server does not translate, the query is answered AR.

RCP-2 (2^RD) asks for increments of that many records. An answer that holds fewer than match ends with a DSC whose pointer you send back in a DSC segment for the next increment. A pointer lives ten minutes, is used once, and is given up by QCN^J01; a pointer unknown or past its lifetime answers AE with an ERR at DSC^1^1.

ITI-22, the demographics and visit query

FerroPIX keeps no visit data, so it does not answer ITI-22 (QBP^ZV1): the transaction returns a PV1 segment for every patient and searches visit fields. A QBP^ZV1 is acknowledged AR with ERR code 200. Query with ITI-21, which searches the same demographics.

Audit

Every message writes its audit record before the answer leaves: the Patient Record event of ITI-8 (C, U, and for an A40 U for the survivor and D for the subsumed identifier) and the Query event of ITI-9 and ITI-21 with the whole query message, each with the sender as its source at the connection’s own network address (Security). An audit spool without room refuses the message with AR.

ITI-10, the PIX update notification

After every change to the cross-reference (a feed that creates or links a record, a merge, a revert, a removal), FerroPIX notifies each consumer [[hl7v2.consumers]] names whose domains of interest the changed patient holds an identifier in; a consumer with no domains is interested in every domain. Each notification is an ADT^A31 in HL7 v2.5: MSH-9 ADT^A31^ADT_A05, an EVN, one PID whose PID-3 lists the patient’s identifiers in the consumer’s domains with all three subcomponents of each assigning authority and whose PID-5 is a single space, and a PV1 with PV1-2 N (ITI TF-2 3.10.4.1.2), checked against the 2.5 ADT_A05 structure when it is written. A merge sends the survivor’s identifiers; a patient whose last record was removed holds none, so it sends nothing.

The notification is written to the outbox in the transaction that made the change, and the outbox sender delivers each consumer’s notifications in order, one at a time, over MLLP. An acknowledgment AA whose MSA-2 names the notification is a delivery; another code, a reply to another message, a refused connection or a timeout is retried within [hl7v2.notification], after which the notification is abandoned and the next one goes. Each notification that reaches the consumer writes the Manager’s audit record of ITI TF-2 3.10.5.1.1: a Patient Record read with the consumer as the destination, a patient per identifier of PID-3 and MSH-10 as a detail. The dependency report shows each consumer’s latest outcome (Operations).

The XCPD Responding Gateway

FerroPIX answers ITI-55 Cross Gateway Patient Discovery as an XCPD Responding Gateway, on the same cross-reference as the FHIR and HL7 v2 faces. An Initiating Gateway of another community asks whether your community knows a patient, by a shared identifier or by demographics, and the answer names the patient’s identifiers in your domains. The messages are HL7 V3 PRPA_IN201305UV02 and PRPA_IN201306UV02 in SOAP 1.2 with WS-Addressing, as the IHE ITI Technical Framework Volume 2, §3.55, prescribes them. The gateway answers on the same exchange, or asynchronously when the request names a reply endpoint.

Turn it on with [xcpd] enabled = true (Configuration):

[xcpd]
enabled = true
home_community_id = "urn:oid:2.999.60.1"
device = "2.999.60.2"
domains = ["urn:oid:2.999.1.1", "urn:oid:2.999.1.2"]
initiating_communities = ["urn:oid:2.999.70.1"]
reply_endpoints = ["https://ig.example.org/xcpd/"]

The gateway listens at POST {base}/xcpd on the HTTP server. The SOAP endpoint carries no bearer token: the mutual TLS that ITI-55 asks of an ATNA Secure Node is the deployment’s, at a sidecar or ingress in front of FerroPIX, as it is for the MLLP listener.

How a query is answered

  • A shared identifier: an identifier of the query in a domain the store holds is looked up in the cross-reference. The person found is Case 1, and identifiers that find more than one person are Case 2. An identifier carried by the records of two persons is Case 5 with AnswerNotAvailable, since a data steward has to resolve it first.
  • Demographics: when no identifier finds a person, the name, birth time, gender, address, telecom and mother’s maiden name are scored by the matcher, as an ITI-119 $match input is (Matching). One certain or probable person is Case 1 and more are Case 2. When only possible persons are found, the answer is Case 3: it asks for the scored attributes the query left out (gender, address, telecom, mother’s maiden name). No person is Case 4. A MinimumDegreeMatch drops a person whose score, as a percentage, is below it.
  • The answer: each person is answered with its identifiers in the [xcpd] domains, in their order. The first one the person holds is the Patient.id an XCA Cross Gateway Query uses, and the others are OtherIDs. A person who holds none of them is left out. Every RegistrationEvent names home_community_id as its custodian.
  • Refusals: a query from an initiating community not listed in initiating_communities is Case 5 with AnswerNotAvailable. A query targeted at another community is Case 5. FerroPIX does not offer the Deferred Response Option: a Deferred request (responsePriorityCode D) is answered with the NS250 “Unsupported processing mode” acknowledgement. A store that cannot be read is Case 5 with InternalError. A request that is no ITI-55 query is answered with a SOAP 1.2 fault, 400 for a Sender fault.

The asynchronous exchange

ITI-55 requires a Responding Gateway to support the asynchronous web services exchange of ITI TF-2 Appendix V.5. A request whose WS-Addressing ReplyTo names an endpoint other than the anonymous one is answered with 202 Accepted and no envelope. The answer follows on a new connection: a POST of the PRPA_IN201306UV02 to that endpoint, with RelatesTo naming the request’s MessageID and To naming the endpoint.

  • Which endpoints: the ReplyTo must start with one of reply_endpoints, each https or http on a loopback host. Any other ReplyTo is refused with a Sender fault and nothing is posted, so a request cannot make FerroPIX post to an address you did not name.
  • Delivery: a 2xx answer from the endpoint ends the delivery. Any other status, a timeout (delivery_timeout) or a refused connection is tried again after delivery_initial_backoff, doubling up to delivery_max_backoff, at most delivery_attempts times in all; an answer whose attempts are spent is abandoned and the log says so.
  • Durability: the answer is written to the outbox in PostgreSQL, its payload sealed under the store’s key, before the request is accepted with 202. A restart delivers what the outbox still holds, and on SIGTERM the sender finishes the answer in flight within [server] shutdown_timeout.
  • Mutual TLS: with [xcpd.tls] client_identity_file set, one PEM holding the certificate chain and its private key, the delivery presents that certificate to the reply endpoint, as the mutual TLS of an ATNA Secure Node asks. [xcpd.tls] trust_roots_file adds the PEM certificates of a community’s own authority to the platform roots the delivery trusts for the endpoint’s server certificate, and the server keeps every reply endpoint under it cleared for revocation; an authority that publishes no revocation service goes in [xcpd.tls] trust_roots_without_revocation_file instead. The delivery speaks TLS 1.3 unless [xcpd.tls] min_version = "1.2".

Audit

Every query writes the Responding Gateway audit record of §3.55.5.1.2 before its answer leaves, as a BALP AuditEvent in the spool: the DICOM Query event with the ITI-55 subtype, the initiating gateway as the source, the QueryByParameter as the query entity with the initiating community as its ihe:homeCommunityID detail, and one patient entity per patient answered. An answer whose record cannot be stored is replaced by Case 5. The log lines name the case and the refusal, never an identifier or a name.

Pseudonyms

A clinical store such as FerroEHR names a patient by a value that identifies no one on its own: a UUID per patient and pseudonymisation domain. FerroPIX mints that pseudonym and keeps it, so identifying data stays outside the clinical record.

Pseudonymisation domains

A pseudonymisation domain is a namespace: an absolute URI, the system the pseudonyms carry. It names the one client its pseudonyms are minted for, the domain’s consumer. Declare one in the configuration:

[[pseudonym_domain]]
namespace = "urn:oid:2.999.7.1"
name = "Clinical domain"
consumer_client_id = "ferroehr"

The server adds a domain the store lacks at every start and leaves one it holds as it is (Configuration). An administrator adds, renames, gives another consumer or retires a domain through the operator API (The operator API). A namespace that an identifier domain holds is refused. A retired domain mints nothing and answers as unknown.

Minting on the first ask

The consumer asks for a person’s pseudonym through PIXm ITI-83, naming the namespace as targetSystem:

GET {base}/fhir/Patient/$ihe-pix?sourceIdentifier=urn:oid:2.999.1.1|H-1&targetSystem=urn:oid:2.999.7.1

When the person has no pseudonym in the domain yet, FerroPIX mints one in that request and answers it as a targetIdentifier whose system is the namespace. Every later ask answers the same value, by GET and by POST. Two first asks at once answer one value. Each mint writes its own BALP Create record, which names the patient and the domain and never the value.

Who reads a pseudonym

Only the domain’s consumer reads its pseudonyms, so no other client can link two domains:

  • Another client that names the namespace as targetSystem gets no pseudonym for it and never causes a mint. The answer is 200 with the other identifiers it asked for.
  • A query that names no targetSystem mints nothing. It answers the pseudonyms the person already has in the caller’s own domains, and none of any other domain.

Both hold by GET and by POST.

A steward can also mint through POST {base}/operator/pseudonyms.

Merges

A pseudonym never changes and stays attached to the person it was minted for. While a person is merged, its identifiers answer the survivor’s pseudonym, and its own pseudonym resolves to the survivor. After the merge is reverted, each person answers its own pseudonym again.

The reverse resolution

From a pseudonym back to a person is a steward’s action: POST {base}/operator/pseudonyms/resolve with the namespace, the pseudonym and a reason. It answers the person the pseudonym resolves to and is recorded as a steward action and a BALP Privacy Disclosure. PIXm does not resolve a pseudonym: a sourceIdentifier in a pseudonymisation domain answers 400, “sourceIdentifier Assigning Authority not found”.

Why the clinical domain never resolves back

A clinical store translates a real identifier forward through ITI-83 and has no call that translates a pseudonym back; the steward’s reverse resolution, with a reason and a disclosure record, is the one way back. How FerroPIX manages patient identity explains why, on the GDPR’s terms.

The console

The console’s Pseudonymisation domains page lists the domains with their counts and is the one place a steward resolves a pseudonym: the domain, the pseudonym and a reason, answered with the patient it belongs to. An administrator adds, renames or retires a domain there. A patient’s Pseudonyms tab shows each domain and whether the patient has a pseudonym in it, masked, with its audited reveal (The operator console).

The Dutch identifiers

The pseudonymised BSN of the Dutch Generic Functions is an identifier domain of its own, not a pseudonymisation domain (The Dutch identifiers).

The Dutch identifiers

Patients in the Netherlands are identified by their BSN, and the Dutch Generic Functions name a patient toward the national index by a pseudonymised BSN. FerroPIX holds both as identifier domains.

The BSN

The BSN is an authoritative and sensitive identifier domain, under one of the naming systems the Generic Functions list (http://fhir.nl/fhir/NamingSystem/bsn, or the BSN’s OID). Being authoritative, a BSN that two records carry links them to one patient. Being sensitive, it is sealed at rest. A value must be nine digits that pass the eleven-proof: the feed drops spaces, dots and dashes, and restores a leading zero dropped from the nine. A BSN that fails the proof is refused at the feed with 422 and a business-rule issue.

The pseudonymised BSN

The pseudonymised BSN (http://fhir.nl/fhir/NamingSystem/pseudo-bsn) is an identifier domain of its own, also authoritative and sensitive. The system that obtained a pseudonymised BSN feeds it like any identifier, and FerroPIX holds it beside the patient’s local identifiers. A data holder can then derive, from the patient it knows, the key the national index wants. FerroPIX keeps the value as it was fed, sealed, and never writes it to a log.

BSNk

FerroPIX calls no BSNk pseudonymisation service. The Generic Functions leave BSNk outside their current version, so FerroPIX neither derives nor transforms a pseudonymised BSN. Once the guide specifies BSNk, the work is filed on the tracker.

In the quickstart

The quickstart configuration seeds both domains beside its synthetic hospital (Configuration):

[[domain]]
system = "http://fhir.nl/fhir/NamingSystem/bsn"
name = "BSN"
kind = "authoritative"
identifier_type = "NI"
source_client_id = "quickstart-source"
sensitive = true

[[domain]]
system = "http://fhir.nl/fhir/NamingSystem/pseudo-bsn"
name = "Pseudonymised BSN"
kind = "authoritative"
identifier_type = "NI"
source_client_id = "quickstart-source"
sensitive = true

The published crates

FerroPIX publishes the libraries of the identity specifications it owns, so every FerroHEALTH product, and anyone else, can call an IHE actor or a Dutch Generic Function from Rust. Each crate carries the name of the specification it implements and holds one feature per profile or function, with no feature on by default. The FerroPIX server is built on both.

CrateWhat it implementsVersion on mainAPI reference
ihe-itiThe IHE ITI identity profiles: the PIXm, PDQm, PMIR, mCSD and XCPD clients, the server sides of PIXm, PDQm and PMIR, and each profile’s audit record0.38.0docs.rs/ihe-iti
nl-generic-functionsThe Netherlands Generic Functions: NVI localization, Mitz consent, LRZa addressing and Nuts authentication0.38.0docs.rs/nl-generic-functions

Neither crate depends on an application: they are the specifications’ transactions as Rust, for any caller.

Add a crate

Name the features you call. The FerroHEALTH products pin family crates by exact version:

[dependencies]
ihe-iti = { version = "=0.38.0", default-features = false, features = ["pixm"] }
ihe-atna = { version = "=0.43.0", default-features = false }
ferrohealth-smart = { version = "=0.41.0", default-features = false }

ihe-atna is the family’s audit crate: a client names whom an exchange is made for with its ihe_atna::user::OnBehalfOf, so you depend on the version ihe-iti does. ihe-iti 0.38.0 and nl-generic-functions 0.38.0 build on ihe-atna =0.43.0 and fhir-types 0.9.0, so a product that hands them FHIR R4 resources or audit types builds those on the same lines. Every HTTP client is built from the OutboundClient of ferrohealth-smart, which an endpoint table you configure builds: its URL, TLS, timeouts, retries and credential (Configuration). The versions above are the ones on main when this book was built; crates.io lists the published releases.

A first call

The documentation of each module opens with a complete example that CI compiles with every change. The one of ihe_iti::pixm (its source) builds a PixmClient from an endpoint table and asks a PIX Manager which identifier another domain holds for a patient (ITI-83). Three things in it hold for every client of both crates:

  • Identifiers travel as secrecy::SecretString. The types that carry them redact their value in Debug and have no Display, and no error carries a value, a URL or the other server’s free text, so a log line cannot leak one by accident. You read a value with expose_secret() where you mean to.
  • An unknown patient is an answer, an outage is an error. CrossReference::SourceNotFound is the profile’s “patient unknown” (PIXm 3.1.0 §2:3.83.4.2.2.2); a timeout, a refusal or a 404 without a not-found issue is a typed PixmError.
  • No redirect is followed. The request carries the patient identifier, and a redirect would send it to a host you did not choose.

Call a Manager by POST (.invoked_by(Invocation::Post)), as every FerroHEALTH client does, so the identifier stays out of the URL (Lookups use POST).

Versions

Each crate keeps its own version line, apart from the FerroPIX product version (0.0.58 on main). A change to what a crate ships moves that crate’s version in the same pull request, and a version is never reused. Not every version is published, so the published sequence has gaps; crates.io lists what is published: ihe-iti, nl-generic-functions. The changes of each version are in the changelog.

The crates are published from this repository through crates.io Trusted Publishing, so a release carries no long-lived token, and each release attaches every .crate file with its checksum and Sigstore bundle.

ihe-iti

The IHE IT Infrastructure (ITI) identity profiles in Rust: one crate for the technical framework, with a feature per profile. The API reference is on docs.rs/ihe-iti; this page says what each feature does and what it checks. The version on main is 0.38.0.

Features

FeatureProfileTransactionsActor
pixmPatient Identifier Cross-reference for Mobile, PIXmITI-83Patient Identifier Cross-reference Consumer
pdqmPatient Demographics Query for Mobile, PDQmITI-78, ITI-119Patient Demographics Consumer
pmirPatient Master Identity Registry, PMIRITI-93, ITI-94Patient Identity Subscriber and Consumer
mcsdMobile Care Services Discovery, mCSDITI-90, ITI-91Query Client and Update Client
xcpdCross-Community Patient Discovery, XCPDITI-55Initiating Gateway, and the Responding Gateway’s messages with no HTTP server
soapThe SOAP 1.2 envelope of ITI TF-2 Appendix V, with no profile: its reader, which hands every element to a visitor the transaction supplies, its writer, its fault codes, and the HTTP post it travels on with the answer read to a boundAppendix Vwhat xcpd and the Mitz question of nl-generic-functions send, read and write through
balpThe BALP AuditEvent of each FHIR profile aboveITI-83, ITI-104, ITI-78, ITI-119, ITI-90, ITI-91, ITI-93, ITI-94the audit record of the client side, the PIXm Patient Identity Source included, and of the PIXm Manager and the PDQm Supplier
atnaThe DICOM audit message of xcpd, with no FHIR modelITI-55the audit record of either gateway
restThe JSON media types of an answer, with no FHIR model, and the family’s FHIR R4 search value grammar, fhir-searchFHIR R4 search, HTTPwhat the FHIR clients and the NVI client of nl-generic-functions read their answers’ media types with; every search value and token is escaped and read through fhir-search, the one grammar the FerroHEALTH FHIR servers share
outboundThe send every client goes through, over the OutboundClient of ferrohealth-smart that an endpoint table builds, with no FHIR modelITI-72what the clients here and the NVI and Mitz clients of nl-generic-functions send through, with the table’s TLS, retry and credential
pixm-sourceThe feed client of PIXmITI-104Patient Identity Source
pixm-serverThe server side of PIXm, with no store and no HTTP serverITI-83, ITI-104Patient Identifier Cross-reference Manager
pdqm-serverThe server side of PDQm, with no store and no HTTP serverITI-78, ITI-119Patient Demographics Supplier
pmir-serverThe server side of PMIR, with no store and no HTTP serverITI-93, ITI-94Patient Identity Registry

Only soap and xcpd carry the SOAP 1.2 stack, and only xcpd HL7 v3 and SAML XUA; a build without them compiles none of it. The FHIR features decode FHIR R4 through fhir-types 0.9.0, the model FerroBRIDGE generates from the HL7 packages, and turn on only its R4 features (r4 with terminology, or r4-resources), so a product that enables another FHIR release for itself compiles no other release’s resources through this crate.

PIXm (pixm)

ihe_iti::pixm::PixmClient asks a PIX Manager for the identifiers other domains hold for a patient (ITI-83, PIXm 3.1.0): GET [base]/Patient/$ihe-pix with one sourceIdentifier and any number of targetSystem domains. Built with .invoked_by(Invocation::Post), it posts the same parameters in a Parameters body to [base]/Patient/$ihe-pix instead (FHIR R4 Operations §3.2.0.1), so the source identifier is in no request URL.

Lookups by a patient identifier use POST

ITI-83 prescribes the GET, which puts the patient identifier, a BSN for a Dutch patient, in the query string. FerroHEALTH therefore settles it this way:

  • The FerroPIX PIXm Manager accepts $ihe-pix by GET (ITI-83) and by POST with a Parameters body (FHIR R4 Operations §3.2.0.1), with the same answers, and its request log records no URL query (The PIXm Manager).
  • FerroHEALTH clients call it by POST (ihe_iti::pixm::Invocation::Post), so a BSN never appears in a URL. Against another Manager, post only when it accepts the POST form.
  • A proxy in front of a Manager must not log query strings, since a client that uses the GET puts the identifier there.

Every answer is held to the $ihe-pix OperationDefinition: the two out parameters, an assigning authority on each identifier, identifiers only from the domains asked about, and never the source identifier itself. A 404 is “patient unknown” only when its OperationOutcome carries a not-found issue.

PixmClient::capabilities reads the Manager’s CapabilityStatement with GET [base]/metadata (FHIR R4 http.html §capabilities), through the same transport and credential as ITI-83. A consumer calls it at boot to learn that the configured base is a FHIR server that answers. Every other outcome is a typed error: Refused with the status, NotAFhirServer for a 200 that is no FHIR R4 CapabilityStatement, and Timeout, Transport or Unauthenticated when no answer was had.

PIXm Patient Identity Source (pixm-source)

ihe_iti::pixm::source::PixmSourceClient feeds a PIX Manager the patient identities of its own domain (ITI-104, PIXm 3.1.0), so the Manager can cross-reference them before a consumer asks ITI-83:

  • feed adds or revises a patient: PUT [base]/Patient?identifier=system|value with the Patient as it now stands.
  • resolve_duplicate tells the Manager the Source merged two patients: the same update on the subsumed identifier, the Patient carrying a replaced-by link to the survivor.
  • remove removes a patient: the conditional DELETE on the identifier.

A 201 is Fed::Created and a 200 Fed::Updated, each with the Location the Manager named; a delete answered 200 or 204 is Removed::Deleted and 202 Removed::Accepted. A 412 (the identifier matched more than one resource) and every other answer are typed errors with the status and the issue types of the OperationOutcome. A Patient that does not carry the identifier the message names is refused before anything is sent. With balp, each message is recorded as the PIXm Feed Update or Delete Source audit profile fixes it.

PDQm (pdqm)

ihe_iti::pdqm::PdqmClient is the Patient Demographics Consumer:

  • ITI-78, the demographics query: a POST [base]/Patient/_search with the criteria of a PatientQuery (every Patient search parameter ITI-78 names), read into a page of matching Patients with the total, each match’s score and grade, and the next link, which next_page follows on the Supplier’s own origin only.
  • ITI-119, the demographics match: match_patient posts a MatchInput to [base]/Patient/$match and reads the matched Patients, most likely first, each with its score between 0 and 1 and its match-grade. The input Patient carries identifiers, a name, a birth date, a gender, a place of birth (the patient-birthPlace extension) and nationalities (patient-nationality, ISO 3166-1 codes), in any combination with at least one of them; Debug shows none of them. The audit record names the patient by identifier only when the input carries exactly one.

The criteria travel in the request body, never the URL, so a PDQm search needs no choice of invocation: like a PIXm lookup from a FerroHEALTH client, it keeps every identifier and demographic out of the URL. The PDQm Supplier of FerroPIX answers the same POST (The PDQm Supplier). An answer that departs from the profile, such as a match entry without its score or grade, is refused.

PMIR (pmir)

The Patient Identity Subscriber and Consumer sides of PMIR 1.6.0:

  • ITI-94, Subscribe to Patient Updates: ihe_iti::pmir::PmirSubscriber creates a Subscription at the Patient Identity Registry, reads its status and deletes it. find searches the subscriptions on the channel endpoint, and reads a 400, 404 or 405 as a Registry that does not search them. Subscribed::at rebuilds the handle from a stored Location, refusing one off the Registry’s base.
  • ITI-93, Mobile Patient Identity Feed: ihe_iti::pmir::feed::Feed::read reads a message the Registry sends to the subscription’s channel into typed creates, updates, deletes and merges, and acknowledgement writes the response. The feed keeps the resource ids, the identifiers, active and every link (its type and the other reference) and drops every demographic as it reads. It refuses a created, updated or merged Patient that omits active, so an update that reinstates a merged patient reads as the unmerge it is.

The specification leaves the authentication of the Registry to your channel to the two parties, so your code authenticates each message before it reads it.

The server sides (pixm-server, pdqm-server, pmir-server)

A server side is the profile’s request readers and answer writers. It holds no store and no HTTP framework: your server hands a reader the query string, the media type and the body, and sends the Answer it or a writer returns, a status and a resource encoded as FHIR JSON or FHIR XML, both of which the profiles require of a server. Every refusal is an OperationOutcome whose text is fixed, so it never quotes the request. A FHIR JSON body whose XML form does not read back, such as a Patient whose narrative is no XHTML, is refused, so your server never stores a resource it could not answer with in XML.

  • pixm-server reads $ihe-pix from the GET query ITI-83 prescribes or from a posted Parameters body into one request, and refuses a second sourceIdentifier, a token without a system, a query value no FHIR string holds and a parameter the operation does not define. It writes the Parameters answer, without the source identifier and without the domains not asked for, and the three failures of ITI-83. It reads the ITI-104 conditional update on Patient?identifier=system|value, refusing a Patient that does not carry that identifier, and tells an add or revise from a duplicate resolved by a replaced-by link; it reads the conditional delete of a removal.
  • pdqm-server reads every ITI-78 search parameter, with :exact, AND, OR and the identifier=system| domain filter. A parameter or modifier it does not support is dropped, reported, and left out of the self link, as PDQm allows; following the self link reads the same search. It writes the searchset Bundle with its total and paging links, each Patient’s identifiers pruned to the domains asked for. It reads the $match input as Parameters or as a bare Patient, refusing a bare Patient posted with onlyCertainMatches or count, and writes the Match Output Bundle, most likely first, each entry with its score and match-grade.
  • pmir-server reads an ITI-93 feed message in FHIR JSON or XML into creates, updates, deletes and merges that keep their Patients, refusing a message whose first entry is no MessageHeader and a merge that departs from the merged Patient profile. It writes the response message, with a correlated refusal for each entry the Registry did not apply, such as the 405 of an unmerge. It reads an ITI-94 Subscription with one of the four criteria, refusing any other, says whether a Patient falls under the criteria, and builds the ITI-93 message a subscriber receives.

The FerroPIX server answers with them as the PIXm Manager, the PDQm Supplier and the PMIR Registry (The PIXm Manager, The PDQm Supplier, The PMIR Registry).

mCSD (mcsd)

  • ihe_iti::mcsd::directory::Directory reads the Organization and Endpoint resources of one directory Bundle and resolves the references between them as FHIR R4 does. A reference it cannot resolve is reported, never guessed.
  • ihe_iti::mcsd::client::McsdClient asks a directory over HTTP: find is ITI-90 and updates is ITI-91. Every walk over the pages draws on one budget of time, pages, bytes and entries, and running out of any of them is an error, never a shorter answer.
  • ihe_iti::mcsd::replica::Replica keeps a copy of a directory in step with ITI-90 and ITI-91.

XCPD (xcpd)

ihe_iti::xcpd::XcpdClient is the Initiating Gateway of ITI-55 (ITI TF-2 §3.55, Revision 20.1): a PRPA_IN201305UV02 in a SOAP 1.2 envelope, posted to one Responding Gateway, asking by the shared patient identifier alone. The answer reads into a Discovery for Cases 1 to 4 of the transaction, each match with the community that holds it, or a typed error. A Responding Gateway is https only; the endpoint table of the OutboundClient you build the client from carries the mutual TLS of the ATNA Secure Node, and a gateway off the origin of its url is refused before anything is sent.

The crate signs nothing. You supply a SAML 2.0 assertion your identity provider signed, and the client sends it unchanged in a WS-Security header.

Whom an exchange is made for

PixmClient::cross_reference, the PdqmClient searches and matches, and XcpdClient::discover each take an ihe_atna::user::OnBehalfOf: the User an OAuth 2.0 access token names, or System for an exchange the client’s own system makes. An audited exchange’s record names that user. The mCSD and PMIR exchanges are always the system’s own.

Access tokens and audit

Each client is built from the OutboundClient of ferrohealth-smart that its endpoint table builds, and sends the table’s credential on every request (IUA ITI-72); with balp or atna it records the audit record its profile defines. A client credentials grant puts a bearer token on each request, or a DPoP token with a proof of the request for a grant bound to a DPoP key (RFC 9449 §7.1); after a 401 that demands a DPoP nonce the token is kept and the request sent once more with a proof carrying the nonce (§9), and after any other 401 the refused token is dropped and the request sent once more with a new one. Security describes both.

nl-generic-functions

The Netherlands Generic Functions for health data exchange (the Nuts nl-generic-functions-ig, package fhir.nl.gf) in Rust: one crate for the implementation guide, with a feature per function. Identification and localization are a patient index’s own functions in the Netherlands, which is why the crate lives in FerroPIX. The API reference is on docs.rs/nl-generic-functions. The version on main is 0.38.0.

Features

FeatureGeneric FunctionServiceWhat the crate holds
nviGF-Localizationthe national index (NVI)the Localization Service search: which care providers (by URA) hold data for a patient (by pseudonymised BSN)
mitzGF-ConsentMitzthe closed authorization question: may a data holder make a patient’s data of each category available to a data user, answered Permit or Deny
lrzaGF-Addressingthe national address book (LRZa)the URA of an NL-GF Organization, its identifiers read as the mCSD directory of ihe-iti reads them
nuts-authGF-Authenticationthe Nuts profilethe access token request of Nuts RFC021, with a DPoP-bound token, and the holder’s did:web DID document

Identifiers: BSN and the pseudonymised BSN

The identification module, built with nvi, lrza or mitz, holds the identifier systems the functions share. A patient is named by a pseudonymised BSN, never by the BSN itself, and a care provider by its URA. A pseudonymised BSN is personal data like the BSN it stands for: its value is a secrecy::SecretString, its Debug is redacted and it has no Display.

The BSNk polymorphic pseudonyms are not built: the crate does not call the BSNk pseudonym service.

NVI (nvi)

The NVI client asks the Localization Service which care providers hold data for a patient. It never puts the pseudonym in an error, a Debug rendering or anything but the request to the service, follows a next link only on its own search endpoint, and a DPoP proof names the request URL without its query, so the pseudonym never reaches it. The NVI and Mitz clients are built from the OutboundClient of ferrohealth-smart their endpoint table builds, with its TLS, retry table and credential.

Mitz (mitz)

The Mitz client follows the VZVZ Implementatiehandleiding Open en gesloten autorisatievraag 3.8.2: a SOAP 1.2 request carrying one XACML 3.0 XACMLAuthzDecisionQuery, over mutual TLS. Only Permit and Deny are decisions; Indeterminate, NotApplicable, a fault, a timeout and an answer that does not hold to the question are typed errors. The implementation guide holds the question to ITI TF-2 Appendix V, so mitz writes and reads the SOAP 1.2 envelope through the soap feature of ihe-iti, whose soap::FaultCode a fault carries; the XACML 3.0 body is read here. The BSN travels only in the request to Mitz, and the client follows no redirect.

Nuts (nuts-auth)

The Nuts client requests an access token with a Verifiable Presentation of the holder’s credentials as the grant (Nuts RFC021) and a DPoP-bound token. It sends no credential before the authorization server’s Presentation Definition says they answer it, and never puts a credential, the presentation, a key, a proof or the token in an error or a Debug rendering. The authorization server’s issuer is an https URL, or plain http on a loopback host for a test, under the RFC 8414 rules of ferrohealth-smart. An answer that is not JSON, repeats a name or has another shape is refused by its line and column alone, read through that crate’s refusal type, which quotes no part of the answer.

The holder’s key is an EC private key in PKCS#8 or SEC 1 PEM: a P-256 key signs ES256 and a P-384 key ES384 (RFC 7518 §3.4), and a key of another curve or type is refused. The presentation is signed through the jws module of ferrohealth-smart, and the key’s public half is the JWK of the holder’s DID document.

Deployment

Audience: operators who run the server from its image or the compose quickstart. The Helm chart covers Kubernetes.

The server ships as a container image, ghcr.io/ferrohealth/ferropix, for linux/amd64 and linux/arm64, and as a static Linux binary per architecture attached to each GitHub release. The operator console has an image of its own, ghcr.io/ferrohealth/ferropix-console, published by the same release (Running the console), and the Helm chart, oci://ghcr.io/ferrohealth/charts/ferropix, runs both on Kubernetes (The Helm chart). Every release publishes all of them, built at SLSA Build Level 3 (Verifying an image).

The two crates deploy inside your own application: they build with the Rust toolchain your application uses, at or above the minimum supported Rust version in Conformance and specification pins, and need nothing at run time beyond the servers they call.

What the server runs beside

  • the clinical systems that feed and ask it, FerroEHR and FerroFED among them (What FerroPIX is);
  • a PostgreSQL 19 database that holds the cross-reference, reached as a role that is no superuser (the server refuses one at boot, because a superuser reads every schema);
  • an authorization server whose access tokens it reads, and whose metadata it reads once at start;
  • an ATNA audit repository that receives its BALP records; until one is configured the records wait in the spool;
  • a FHIR R4 terminology server, such as FerroTERM, when the HL7 v2 face is on: it translates every v2 table value (The HL7 v2 face);
  • the operator console, its own image, which reads the server’s operator API with a signed-in steward’s token.

The image

PropertyValue
Basegcr.io/distroless/static-debian13:nonroot, pinned by digest: no shell, no package manager
Entrypoint/usr/local/bin/ferropix, default job serve
User65532:65532
Ports8080/tcp (HTTP, FERROPIX__SERVER__LISTEN=0.0.0.0:8080), 2575/tcp (the MLLP listener of [hl7v2], when you turn it on)
State/var/lib/ferropix, owned by 65532: the audit spool under audit/ (mode 0700) and the usage report’s instance id
HealthHEALTHCHECK runs ferropix healthcheck, which asks GET /health/readiness over loopback and exits 0 on 200

Nothing is compiled inside the image: the release lane builds the binary and the image copies it. Configure the server with a mounted TOML file named by FERROPIX_CONFIG and with FERROPIX__<SECTION>__<KEY> variables (Configuration); every secret is a file its _file sibling names. Run the root filesystem read-only and mount a volume at /var/lib/ferropix. A Kubernetes Job runs db migrate by setting args: alone.

Tags: <version> for every release, and <major>.<minor> and latest for a release that is not a pre-release. A tag is applied only after the image passed the release’s vulnerability gate, and tags move, so pin the digest the release names.

Disk latency

Every audited request answers only once its BALP record is on disk. A request that changes the cross-reference keeps its record in PostgreSQL, in its own transaction, so it waits for one flush: PostgreSQL’s commit. A read keeps its record in the spool, which writes the records that arrive together to one segment file, flushes it with fsync, renames it and flushes the directory. So a write’s latency follows PostgreSQL’s disk and a read’s the volume that holds the spool (/var/lib/ferropix/audit, [audit] spool_dir). A flush that takes 100 ms holds every read whose record is queued behind it, while the median stays where it was. A read whose record is not stored within [audit] spool_write_timeout (2 seconds) is recorded as refused and answers 503.

Put the spool on a disk whose flushes are short and steady, such as a local SSD. A network disk whose flush latency spikes shows up as a long tail on every route at the same moment. Do not put the spool on tmpfs: a record must survive a restart until the repository has it (ITI TF-2 §3.20.4.1.1).

What FerroPIX stores

The server keeps its state in two places, and the console keeps none.

StoreWhat it holdsHow you keep it
PostgreSQL, schema pixThe cross-reference and its history: identifier domains, source records and their versions, the identifiers each version carries, persons, links, candidates, merges, pseudonymisation domains and pseudonyms, the steward actions, the PMIR subscriptions, the HL7 v2 receipts, the outbox of ITI-93, ITI-10 and XCPD messages, the write audit records waiting in audit_outbox and the refused ones in audit_quarantine, and the id of the sealing keyBack it up with pg_dump --schema=pix. Every sensitive identifier in it is sealed, so a dump opens only with the sealing key (The store).
The sealing key, the file db.data_key_file namesThe key the identifiers and the sealed rows are written underKeep it in your secret store, apart from the dumps. Losing it loses every sealed identifier; db reseal rotates it.
/var/lib/ferropix ([audit] spool_dir and [usage_report] state_dir)The audit records of reads waiting for the repository, and the usage report’s instance idA persistent volume on a disk with short flushes, never tmpfs (Disk latency). It carries across a restart and an upgrade.

The console keeps its sessions in its own memory, or in a sealed cookie with [session] store = "sealed", and writes no file (Running the console).

Verifying an image

Each image index and both platform manifests carry SLSA provenance, and each manifest an SPDX SBOM, as attestations signed through Sigstore by the reusable release workflow. Verify an image against that workflow:

gh attestation verify oci://ghcr.io/ferrohealth/ferropix:<version> \
  --repo FerroHEALTH/FerroPIX \
  --signer-workflow FerroHEALTH/FerroPIX/.github/workflows/release-image.yml

A release tarball verifies the same way against release-build.yml, and the .sha256sum beside it detects a damaged download. Each release also attaches its vulnerability record: every finding of a scan of the image and the binaries, at every severity, with the OpenVEX statement that judges it.

The compose quickstart

compose.yaml runs the published image beside PostgreSQL and a development OpenID Provider. It is one self-contained file: the server’s configuration and the database role are inlined as Compose configs, so it needs Docker Compose 2.23.1 or newer and no checkout, and every release attaches it with its .sha256sum. The quickstart walks through it, from the download and the secret files to a first feed and query; CI runs those steps over the repository’s compose.yaml, the file a release attaches, on every change. FERROPIX_VERSION picks the image tag, the release the file names by default.

ProfileWhat it adds
nonethe server, PostgreSQL 19 and the development issuer
consolethe operator console on http://localhost:3000/
hl7v2FerroTERM, the terminology server the HL7 v2 face needs, reading the three packages under ./terminology (FERROPIX_TERMINOLOGY_DIR), which the header of compose.yaml fetches; set FERROPIX__HL7V2__ENABLED=true and FERROPIX__TERMINOLOGY__ENDPOINT__URL=http://localhost:8280/r4 to switch the face on
  • Hardening. The server runs with a read-only root filesystem, every capability dropped, no-new-privileges, a tmpfs for /tmp, and its state on a named volume.
  • Health. compose.yaml declares the healthcheck of the server and of the console on the service, the same check their images carry, so podman compose up --wait waits for the same readiness docker compose does: Podman runs the published images without their own healthcheck.
  • Secrets. All four are files under ./secrets, mounted under /run/secrets/, never environment variables. PostgreSQL creates the ferropix role from ferropix-db-password on its first start (the ferropix-role config, a copy of docker/postgres/10-ferropix-role.sh).
  • Ports. Every port binds 127.0.0.1; set FERROPIX_BIND_HOST to publish on another interface.
  • The issuer. The server accepts a plain http issuer only on loopback, so the development provider owns the network namespace and the server joins it. The server, your shell and your browser all reach it at http://localhost:8180/ferropix. It signs any client credentials request, and its login form signs in any user name you type as a data steward: a development issuer, never for real data. For a deployment, name your own https issuer in an [auth.issuer.<name>] table.
  • The console. The console profile runs the operator console beside the server on http://localhost:3000/, in the same network namespace, signed in through the development issuer; it needs a fifth secret, secrets/console-oidc-client-secret. The quickstart mounts the operator API the console reads.
  • The usage report is on and states compose; set FERROPIX__USAGE_REPORT__ENABLED=false in your shell or a .env file to switch it off (Configuration).

Building the image locally

scripts/release/stage-dist.sh <version> downloads the musl binaries of a published release, checks each against its published checksum and stages them with the state tree under dist/. To package a build of your own, stage its binary instead:

cargo build --release --locked -p ferropix-server --target x86_64-unknown-linux-musl
mkdir -p dist/linux_amd64
install -m 0555 target/x86_64-unknown-linux-musl/release/ferropix dist/linux_amd64/
scripts/release/stage-dist.sh tree
docker buildx build -f docker/Dockerfile --platform linux/amd64 \
  -t ghcr.io/ferrohealth/ferropix:<version> --load .

The Helm chart

Audience: operators who run FerroPIX on Kubernetes.

deploy/helm/ferropix installs the server and, with console.enabled, the operator console, against a PostgreSQL 19 you run yourself. Install it from a checkout:

kubectl create secret generic ferropix-db \
  --from-literal=url='postgresql://ferropix:…@postgres:5432/ferropix'
kubectl create secret generic ferropix-data-key \
  --from-literal=data-key="$(openssl rand -base64 32)"
helm install ferropix deploy/helm/ferropix \
  --set database.existingSecret=ferropix-db \
  --set dataKey.existingSecret=ferropix-data-key \
  -f my-values.yaml

Both containers carry a memory and an ephemeral-storage limit. The server’s ephemeral storage, 256 MiB by default (resources), holds the audit spool on its default emptyDir ([audit] spool_max_size, 64 MiB), /tmp and the container log: raise it with the spool, or keep the spool on a PersistentVolumeClaim (state.existingClaim).

The release lane publishes the chart as an OCI artifact, oci://ghcr.io/ferrohealth/charts/ferropix, with the release as its app version and both images pinned by the digests it scanned, and attests its build provenance. A published chart version is never published again with other files, so each release that changes the chart, its app version included, raises the chart version, so the chart version and the app version differ. Install a published chart by its version and verify it first:

gh attestation verify oci://ghcr.io/ferrohealth/charts/ferropix:<chart version> \
  --repo FerroHEALTH/FerroPIX \
  --signer-workflow FerroHEALTH/FerroPIX/.github/workflows/build-chart.yml
helm install ferropix oci://ghcr.io/ferrohealth/charts/ferropix \
  --version <chart version> -f my-values.yaml

The server’s Service is <release>-ferropix on port 8080, and PIXm and PDQm answer under its /fhir. A chart that takes this one as a dependency reads that base from the named template ferropix.fhirBaseUrl. The chart’s README lists the addresses and shows how a domain and its Source client are declared.

The server needs at least one issuer, so the chart refuses to render without a config.auth.issuer entry. Each entry is one [auth.issuer.<name>] table ([auth]) by its name, with its issuer, and kind: federation only for another party’s authorization server:

config:
  auth:
    issuer:
      care:
        issuer: "https://idp.example.org/realms/care"

A token’s audience is the FHIR base, {public_base_url}/fhir, unless the entry sets its own audience. CI renders the chart over every value set under deploy/helm/ci, the defaults among them, and runs each image’s config check over the configuration it renders (deploy/helm/config-check.sh); the release does the same with the images it pins before it publishes the chart.

No credential is a value of the chart. The PostgreSQL URL, the sealing key and the console’s OIDC client secret are Secrets you create; the chart mounts each as a file and the configuration names it by its _file key, so a chart without them refuses to render.

ValueDefaultWhat it sets
configa production profile on https://pix.example.orgThe server’s configuration file as a map, rendered as TOML; every key of Configuration but the secret files, which the chart sets.
database.existingSecret, database.keynone, urlThe Secret and key that hold the PostgreSQL URL.
dataKey.existingSecret, dataKey.keynone, data-keyThe Secret and key that hold the sealing key.
usageReport.enabledtrueThe installation report, stating helm; false stops it.
image.tag, image.digestthe chart’s app version, noneThe server image; a digest wins over the tag.
state.existingClaimnoneA PersistentVolumeClaim for the audit spool, which is an emptyDir without one.
service.port, service.mllpPort8080, 2575The HTTP Service and, with config.hl7v2.enabled, the MLLP Service.
networkPolicy.enabled, networkPolicy.ingressFromtrue, every sourceThe NetworkPolicy of the serving ports and the sources it admits.
podDisruptionBudget.enabledtrueA PodDisruptionBudget of one pod unavailable at a time.
extraContainersnoneContainers beside the server, such as a TLS proxy.
hostUsersfalseWhether the server’s and the console’s pods share the node’s user namespace. false gives each pod its own, which needs nodes whose container runtime and kernel support user namespaces; a pod on a node without them does not start.
supplementalGroupsPolicyStrictStrict gives a container only the groups the pod spec names, never those of the image’s /etc/group; Merge is the Kubernetes default, and an empty value sets no field.
console.enabled, console.config, console.clientSecret.existingSecretfalse, an OIDC example, noneThe console, its configuration as a map (the server’s Service is its default pix.base_url), and the Secret of its client secret.

Every container runs as user 65532 with a read-only root filesystem, no privilege escalation, every capability dropped and the RuntimeDefault seccomp profile, the Restricted Pod Security Standard. Both pods set enableServiceLinks: false, so no Service of the namespace reaches a container as environment variables. Before Kubernetes 1.33 the feature gates of hostUsers and supplementalGroupsPolicy are off by default, and the API server drops both fields. The server’s startup and readiness probes ask /health/readiness and its liveness probe /health/liveness; the console’s ask /health/readiness and /health/liveness. deploy/helm/validate.sh lints and renders the chart and holds the manifests to the Kubernetes schemas with kubeconform, and deploy/helm/kind-check.sh installs it on a throwaway kind cluster with the published images and waits until its health routes answer.

Behind FerroSMART

FerroSMART is the FerroHEALTH family’s SMART App Launch 2.x authorization server. It signs people in at any OpenID Connect provider and uses that provider for login alone. It issues plain RFC 9068 access tokens carrying the launch context. FerroPIX runs behind it as a resource server: the person never signs in to FerroPIX, and FerroPIX never sees the provider’s tokens. FerroSMART’s architecture describes the whole deployment in §13.21, A product behind FerroSMART. This page is FerroPIX’s side of it.

flowchart LR
    app["SMART app"] -- "/authorize, /token" --> smart["FerroSMART"]
    smart -- "login" --> idp["OpenID Connect provider"]
    app -- "Bearer access token" --> rs["FerroPIX (resource server)<br/>reads the token from its standard claims"]
    smart -- "jwks_uri" --> rs

FerroSMART names FerroPIX’s base

FerroSMART issues a token only for a base it serves. Its [[ferrosmart.resource]] table names FerroPIX’s FHIR base as a fhir resource, so an app can ask for it as the token’s audience:

[[ferrosmart.resource]]
base = "https://pix.example.org/fhir"
kind = "fhir"

FerroPIX trusts FerroSMART

One [auth.issuer.<name>] table naming FerroSMART’s issuer trusts it. Its tokens are read from their standard claims: typ is at+jwt (RFC 9068 §2.1), and every token carries scope (SMART App Launch 2.2.0, Obtain access token, Response). A token without scope is refused with 401. The audience is FerroPIX’s FHIR base, {public_base_url}/fhir, unless the table names one.

[auth.issuer.ferrosmart]
issuer = "https://smart.example.org"
  • A person through a SMART app. FerroSMART’s client registry is the one list of apps. A person’s token through any app FerroSMART issued it for FerroPIX’s audience reads as that person, named by their fhirUser. A token for another audience is refused with 401.
  • A Backend Services client. A client credentials token’s sub is its client_id (RFC 9068 §2.2), so the same table reads it as the system. A Source still needs its [[trust.issuer]] client, naming the table (issuer = "ferrosmart"), and its domain, as with any issuer (Configuration).
  • One table per issuer. Name FerroSMART in this one table. A second [auth.issuer.<name>] table of the same issuer refuses the start, naming the issuer.

The scopes a token grants still meet FerroPIX’s permission table: the system/ scopes and the steward and administrator scopes (Security).

The discovery document describes FerroSMART

GET https://pix.example.org/fhir/.well-known/smart-configuration describes the issuer ferrohealth-smart’s shared rule picks. With FerroSMART as the one SMART issuer, that is FerroSMART: the document names its authorization_endpoint and token_endpoint, so an app that starts at FerroPIX’s base finds FerroSMART (SMART App Launch 2.2.0, Conformance, Metadata). When FerroPIX trusts another SMART issuer beside it, [auth] described_issuer = "ferrosmart" names FerroSMART’s table. The capability statement’s rest.security names the same token endpoint.

No specification governs this deployment shape: our own design, built on SMART App Launch 2.2.0 and RFC 9068.

Running the console

Audience: operators who build, deploy and configure the operator console. The operator console shows what a data steward does with it.

Build and run it

The console is one binary: its server draws every page and serves FerroUI’s stylesheet and script modules itself, so it needs no build step beside cargo. Build it and serve:

cargo build --release -p ferropix-console
target/release/ferropix-console serve --config console.toml
CommandWhat it does
ferropix-console serveServes the console until the process is asked to stop.
ferropix-console config checkReads and resolves the configuration, secrets included, prints every key as key = value # source with every secret shown as ***, and exits.
ferropix-console healthcheckAsks GET /health/readiness of the console on this host, for a container runtime, and exits 0 only on 200; a console that is draining exits 1.

The image

ghcr.io/ferrohealth/ferropix-console, for linux/amd64 and linux/arm64, carries the static binary on gcr.io/distroless/static-debian13:nonroot, pinned by digest; nothing is compiled inside it.

PropertyValue
Entrypoint/usr/local/bin/ferropix-console, default job serve
User65532:65532
Port3000/tcp (FERROPIX_CONSOLE__SERVER__LISTEN=0.0.0.0:3000)
HealthHEALTHCHECK runs ferropix-console healthcheck, which asks GET /health/readiness over loopback, over TLS when [server.tls] is set

The console keeps its sessions in memory and writes no file, so run it with a read-only root filesystem. Its tags follow the server’s: <version>, and <major>.<minor> and latest for a release that is not a pre-release, applied only after the image passed the release’s vulnerability gate. Verify an image against the workflow that built it:

gh attestation verify oci://ghcr.io/ferrohealth/ferropix-console:<version> \
  --repo FerroHEALTH/FerroPIX \
  --signer-workflow FerroHEALTH/FerroPIX/.github/workflows/release-console.yml

The compose quickstart runs it beside the server under the console profile, signed in through the development issuer (Deployment):

openssl rand -hex 16 > secrets/console-oidc-client-secret
docker compose --profile console up --wait

Configuration

The console reads its configuration through ferrohealth-config, the FerroHEALTH configuration loader. The file is a TOML file named by --config or FERROPIX_CONSOLE_CONFIG. Every key can be set from the environment as FERROPIX_CONSOLE__<SECTION>__<KEY>, so FERROPIX_CONSOLE__PIX__BASE_URL sets [pix] base_url, and with --set key=value on the command line, which wins over both. A secret can be read from a file with the _file form of its key, the shape a container runtime mounts a secret in; the file’s trailing line ending is removed. An unknown key, in the file, a variable or a --set argument, is refused, and a refusal names the key, never its value. A server variable such as FERROPIX__SERVER__LISTEN is left alone.

[server]
listen = "0.0.0.0:3000"
locale = "en"

[server.tls]
certificate_file = "/run/secrets/console.pem"
key_file = "/run/secrets/console.key"

[pix]
base_url = "https://pix.example.org/"
timeout = "30s"

[oidc]
issuer = "https://idp.example.org/realms/ferropix"
client_id = "ferropix-console"
client_secret_file = "/run/secrets/console-client-secret"
redirect_uri = "https://console.example.org/auth/callback"
SectionWhat it sets
[server]Where the console listens and the language a page falls back to.
[server.tls]The certificate and key the listener serves TLS with, the same table as the server’s [server.tls]: certificate_file, key_file, client_auth, client_ca_file, reload_interval, healthcheck_identity_file and min_version. The listener offers X25519MLKEM768 (RFC 10024) first in the TLS 1.3 key exchange and takes ML-DSA certificates (RFC 9881). Without it the console speaks plain HTTP, for a proxy on the same host that terminates TLS; the console carries access tokens and session cookies, so never expose a plain listener to a network.
[pix]The FerroPIX server’s base URL, how long one call to it may take, and admin_scope, the scope the server’s [operator] admin_scope names (default __ferropix.admin).
[session]Where the sessions are kept (store), whether the cookies are Secure, and the sign-in and session timeouts and bounds. secure_cookie = false is refused unless the console is plain HTTP on loopback: its oidc.redirect_uri, or its server.listen address with no [server.tls] when it signs in nowhere.
[oidc]The OpenID Provider stewards sign in at. Without it the console offers no sign-in.
[jose]post_quantum_only = true accepts an ID Token signed with ML-DSA-44, ML-DSA-65 or ML-DSA-87 (RFC 9964) alone. Off, the default, the console accepts those beside RS256 to PS512, ES256, ES384 and EdDSA.
[telemetry]The console log: format and filter, the section the server reads ([telemetry]). RUST_LOG sets telemetry.filter.

[oidc] and [session] are the sections of ferrohealth-session, the FerroHEALTH console sign-in crate. With issuer alone the console discovers the provider’s endpoints when it starts (RFC 8414, OpenID Connect Discovery 1.0); authorization_endpoint, token_endpoint, jwks_uri, end_session_endpoint and revocation_endpoint each take the place of the discovered one. config check calls no provider: a section that names the authorization, token and key-set endpoints is checked whole, and one that leaves them to discovery is read when the console starts. resolve reaches a provider host at a fixed address (each entry host=ip:port) for a provider whose name resolves only inside a private network. [oidc.tls] holds the provider connection’s TLS, read by ferrohealth-server as every other outbound table is: trust_roots_file adds PEM trust roots for a provider behind a private certificate authority, checked for revocation, trust_roots_without_revocation_file those of an authority that publishes no revocation service, client_identity_file (or client_identity) the client certificate chain and key the console presents (RFC 8705 §2), and min_version the lowest TLS version ("1.3", the default, or "1.2"). timeout (default "10s") bounds one call to the provider.

issuer, redirect_uri and post_logout_redirect_uri take no userinfo: the console refuses one written as https://user:password@… and does not start, and the refusal names the key, never the URL. Any rendering of the section shows such a URL as https://***@…, as it shows the endpoints, so the password never reaches a terminal or a support report (RFC 3986 §3.2.1).

[session] store is memory (the default), which keeps the sessions in the console’s process with an opaque id in the cookie, or sealed, which keeps the whole session in one AES-256-GCM sealed cookie for a console that runs as several instances. A sealed store needs key or key_file (base64 of at least 64 bytes, the same on every instance), keeps no refresh token, and refuses oidc.offline_access. Its spans of time are strings of a whole number and a unit: sign_in_timeout (default "5min"), idle_timeout (default "30min") and absolute_timeout (default "12h"), which may not be shorter than idle_timeout.

Sign-in and the session

Stewards sign in at an OpenID Provider with the authorization code grant and PKCE, through ferrohealth-session and the OpenID Connect client of ferrohealth-smart, the FerroHEALTH authorization crate. The console checks the ID Token against the provider’s keys, its issuer, its audience and the sign-in’s nonce before a session begins. The session lives on the console’s server; the browser holds one opaque HttpOnly, SameSite=Lax cookie and never a token. The console calls the FerroPIX server with the steward’s own access token, so the server records the steward as the actor of every call, and renews it before it expires. The console draws an administrator’s forms, such as adding or changing an identifier domain, only when the provider granted the token [pix] admin_scope: the scopes the token answer names, or the scopes the console asked for when the answer names none (RFC 6749 §5.1). Ask for the scope in [oidc] scopes. The server checks the scope again on every write. Sign out ends the session, revokes its token when the provider has a revocation endpoint (RFC 7009), and, when the provider publishes one, signs the steward out there too. When the provider cannot renew an access token in time, the session lives on and the next page you open goes to the sign-in page that says your access could not be renewed; signing in again, or opening the page again a moment later, brings you back to it.

A session ends after [session] idle_timeout without a request from you, and after absolute_timeout whatever you do. Two minutes before the idle timeout, every signed-in page shows a warning with the time left, Stay signed in and Sign out. Your own typing and clicks keep the session alive, at most once a minute; the page’s own checks never do. When the session ends, or you sign out in another tab, every open tab of the console loads the sign-in page that says your session ended, and signing in again brings you back to the page you were on. The tab you sign out in shows the sign-in page that says you signed out, also when you sign out right after bringing it forward. Without the page’s scripts there is no warning: the next page you open goes to the sign-in page.

The operator console

Audience: data stewards, and operators who want to know what the console shows. Running the console covers its image, configuration and sign-in.

The FerroPIX Console is the data steward’s tool: the review queue, search, the patient record, the registry of sources and identifier domains, the configuration and the audit trail. It is its own program, ferropix-console, a client of the FerroPIX server that keeps no patient data of its own. It is drawn with FerroUI, the component library every FerroHEALTH console shares, in the FerroPIX brand (=0.6.11).

The console reads the FerroPIX server’s operator API, whose documents it compiles against, once per page before it draws it, with your own access token. A page never shows a row the server did not send: when the server refused the connection, did not answer in time or refused the console, the page says so in place, with the title and the detail of the server’s problem, and one refused part never blanks a page.

The console’s server draws every page whole, so a link, a search, a filter or a reveal loads one complete page the server drew with what it read. Small script modules of FerroUI add the keyboard, the side panels and the session warning on top; every page works without them, each action being a plain link or form post.

Searching from the top bar

As you type in the top bar’s field, its panel offers the console’s pages, the identifier domains and your preferences whose names hold the words. It never offers a person: a patient search runs only when you press Enter or choose the panel’s last row, Search patients for “…”, and every patient search is a posted, audited query. The words travel in the request’s body, never in an address.

Keyboard shortcuts

? opens the list of shortcuts on every screen, and so does Keyboard shortcuts in your menu. / puts the focus in the search, j and k (or the arrow keys) walk a list and Enter opens the row, and 1 to 4 open the patient record’s Identifiers, Records, History and Pseudonyms tabs. In the review queue o or d opens the focused pair in its side panel, to look at it or defer it. On a pair, l links (or asks first when the link merges), n decides Not a match, d defers, r puts the focus in the reason, and [ and ] lead to the previous and the next pair. Shortcuts never act while you type in a field, and a phone shows none.

The pages

The steward’s guide walks the review work in the order you do it.

PageWhat it shows
Dashboard, /The open queue with the pairs waiting more than seven days, the share of records linked automatically over 24 hours, the versions fed today and the subscriptions in error; the queue’s depth and the feeds per hour by channel as charts, each with its figures table; the HTTP listener, the MLLP listener from its hl7v2_listener indicator and the feed sender from the outbox indicator (Off when the indicator is absent); the oldest pairs in the queue.
Review queue, /queueThe pairs the scorer found worth a look, the grade first, then the score, then the longest wait: both leading names, their birth dates and domains, the score with its bar, the grade and the time queued. j and k move the focused row and Enter opens the pair; At a glance opens it in a side panel, with Open to decide and Defer (a date and your reason). The filters (grade, domain system, days waiting, the deferred pairs) and the paging are posted, so none of them reaches an address.
Compare and decide, /queue/{candidate}The two records side by side, the rows that differ first; the score breakdown with each field’s weight, the total and the thresholds on one scale; the blocking key and any hard conflict; each record’s patient with its identifiers, masked. The docked bar decides with your reason: Link, Not a match or Defer with the date the pair comes back, and Previous and Next lead to the neighbouring pairs. A link that merges two patients asks first in a dialog that names the effect. The decision carries the versions the page showed, so a pair someone decided first comes back as stale, with the next pair and a reload as the ways on, and nothing is sent without a reason.
Search, /searchBy identifier (the domain chosen from the server’s domains, the value masked as you type) and by demographics, each posted, so nothing you type reaches an address. The results open each patient; a demographics search adds the grade and score. The top bar’s field reads what you typed: a date or a name searches by demographics with the field filled, anything else is an identifier searched in every domain.
Patient, /patients/{person}The leading demographics, then four tabs: the identifiers per domain, masked, each with its reveal; the source records side by side, each field marked against the leading demographics; the history on a timeline; the pseudonyms, masked, with a link to Resolve a pseudonym. A reveal asks your reason, is recorded by the server as a privacy disclosure, and shows the value for the seconds Your preferences set.
Merge, /patients/{person}/mergeMerge into… on the patient’s page: name the other patient by its id, then the preview shows both patients with the older surviving (one press swaps them), the identifiers that move, the pseudonyms that then resolve to the survivor, the subscriptions told and the candidates closed. Merge… asks in a dialog that names how many identifiers move and takes your reason; nothing is posted before it confirms. A patient that changed after the preview comes back as stale, with the preview read again.
Unmerge, /patients/{person}/unmergeUnmerge… on the patient’s page, while a merge into it stands: the merge with its reason, what the revert moves back, and Unmerge…, which asks with your reason. When a later merge of the survivor has to be reverted first, the page names it and offers no revert.
Sources, /sourcesEvery system allowed to feed, its channel, how it is admitted, the domains that name it and its last activity, and one source’s last messages. Sources are set in the server’s configuration file.
Identifier domains, /domainsEvery domain with its system, kind, Source, record count and last feed, and one domain with its last feeds. An administrator adds a domain, renames one, gives it another Source or retires it, each with a reason; the server’s refusal shows in place.
Pseudonymisation domains, /pseudonym-domainsEvery pseudonymisation domain with its namespace, its consumer, how many pseudonyms it holds and its state, and Resolve a pseudonym: the domain, the pseudonym and your reason, posted, answered with the patient it belongs to and recorded by the server as a disclosure. The pseudonym never reaches an address and the answer never shows it. An administrator adds a domain, renames one, names another consumer or retires it, each with a reason.
Configuration, /configurationThe matching thresholds, field weights, blocking keys and the built-in deterministic rules, read-only, each value marked when the environment set it or nothing did.
Audit trail, /auditThe steward actions, newest first, under posted filters (actor, kind, person, dates), each row with its reason, its references and its request id, and the export of the filtered rows as CSV, itself an audited action.

The console ships as its own container image, published by every release (Running the console).

What each page looks like

Every page below is drawn from synthetic documents, at 1440 pixels wide in the light theme, with a link to the dark one.

The sign-in page a visitor reads. Dark theme.

The sign-in page after you signed out. Dark theme.

The sign-in page after your session expired. Dark theme.

The dashboard. Dark theme.

The review queue. Dark theme.

A pair to compare and decide. Dark theme.

Search by identifier. Dark theme.

Search by demographics. Dark theme.

A patient’s record on its identifiers tab. Dark theme.

Merge, naming the other patient. Dark theme.

Unmerge, with the preview of the revert. Dark theme.

The sources. Dark theme.

One source with its last messages. Dark theme.

The identifier domains. Dark theme.

One identifier domain with its last feeds. Dark theme.

The pseudonymisation domains and Resolve a pseudonym. Dark theme.

The matching configuration. Dark theme.

The audit trail. Dark theme.

About. Dark theme. It names the server’s software and FHIR version as its CapabilityStatement declares them, and the FerroUI release the console is built on, and it offers that CapabilityStatement for download.

Your preferences. Dark theme.

The language preference. Dark theme.

The keyboard preference. Dark theme.

The page an unknown address draws. Dark theme.

What the console never does

  • It puts no identifier other than the person id FerroPIX minted in an address: a search posts what was typed, and the identifier field is masked as it is typed. The eye inside the field shows the identifier only while you hold it (pointer, touch, Space or Enter); without the page’s scripts the eye is disabled and the field stays masked.
  • It keeps nothing in browser storage, and every page is Cache-Control: no-store.
  • It runs no script but FerroUI’s modules from its own address: every response carries a Content-Security-Policy that admits scripts and stylesheets from the console’s own origin alone, with no inline script or style.

Your preferences

The theme, the density, reduced motion, the language, the first day of the week, the shortcut hints, how long a revealed identifier stays and whether leaving a page hides it are each a cookie of their own, set in Your preferences behind your name and read when each page is drawn. They are only for you, in this browser, and name no patient.

A language cookie naming qps draws the console in its pseudo-locale: every word accented and two fifths longer, in brackets. It ships no catalog, and Your preferences never offers it; it is how the console’s browser journeys find a word that skipped the catalog and a layout with no room for a longer translation.

The steward’s guide

A data steward decides what the matcher could not: whether two records describe one patient. This page walks the work in the order you do it, in the operator console (The operator console). Every decision, merge and revert is one steward action in the audit trail with your name and your reason, and one BALP record on the server’s audit trail. A decision deletes nothing: a record stays a record, and a merge can be reverted.

The review queue

The matcher links a pair it is certain of by itself, and leaves a pair below its possible threshold alone (Matching). Every pair in between waits in the review queue at /queue: the probable pairs first, then by score, then the longest wait. Each row shows both leading names, their birth dates and domains, the score and the grade.

  • j and k move the focused row, and Enter opens the pair.
  • At a glance opens the pair in a side panel, with Open to decide and Defer.
  • The filters narrow the queue by grade, domain system, days waiting, or to the pairs deferred until a later day.

Compare and decide

The pair’s page puts the two records side by side, the rows that differ first, and explains the score: each field’s weight, the total, and where the score falls between the thresholds. Below them are the two patients the records are in, with their identifiers masked.

You decide in the bar at the foot of the page, always with a reason:

  • Link: the records are one patient. When they sit in two patients, linking merges the second into the first, and the console asks first in a dialog that names what moves.
  • Not a match: the records are two patients. The pair stays out of the queue until a record’s demographics change.
  • Defer: decide later. Give the day the pair comes back.

Previous and Next lead to the neighbouring pairs. After a decision the next pair opens. If another steward decided the pair first, or a source changed a record’s demographics after you opened it, the server refuses with 409 and nothing is written: the bar says so and offers the next pair or a reload. A feed that changes only a record’s identifiers or other fields the matcher does not compare leaves your decision standing, and leaves the pair’s score, evidence and versions as they were.

Merge

A merge joins two patients when you know they are one, outside the queue. On the surviving patient’s page choose Merge into…, and name the other patient by the id FerroPIX gave it, from a search or a pair. The preview shows, before anything is written:

  • both patients, the older surviving unless you swap them;
  • the identifiers that move to the survivor;
  • the pseudonyms that then resolve to the survivor, whose values never change (Pseudonyms);
  • the PMIR subscriptions that are told (The PMIR Registry);
  • the candidates between the two patients that close as linked.

Merge… asks in a dialog with your reason. The merge carries the versions the preview read, so a patient that changed in the meantime is refused with 409 and the preview is read again.

Unmerge

A merge can be reverted while it is the survivor’s latest. On the survivor’s page choose Unmerge…: the page shows the merge with the reason it was made for and what the revert moves back. When a later merge of the survivor stands, the page names it, and that merge is reverted first, so reverts unwind in order (the local unmerge policy PMIR 1.6.0 §2:3.93.4.1.3 admits). The revert, too, asks in a dialog with your reason.

The patient’s History tab shows the merge and its revert, and the audit trail lists both with their reasons (Security).

Security

Audience: operators and security reviewers.

A patient index handles the most identifying data in a health system, so the server and both crates are built to keep it out of anywhere it was not sent. This page says who may call the server and how identifying data is kept out of logs, errors and URLs; The audit trail says what FerroPIX records.

Who may call the server

Every request to {base}/fhir and {base}/operator carries a bearer access token that one of the [auth.issuer.<name>] issuers signed. At start, serve reads each issuer’s RFC 8414 metadata and key set, and refuses to start when one cannot be read. A token is checked for its signature, issuer, audience and lifetime under RFC 9068. The scopes each caller needs:

CallerScopeRoutes
PIXm or PDQm Consumersystem/Patient.rs$ihe-pix by GET and POST (ITI-83), the Patient search and read (ITI-78), $match (ITI-119)
Patient Identity Sourcesystem/Patient.cud, and a machine’s token whose client_id equals the domain’s source_client_idthe conditional update and delete of Patient (ITI-104)
PMIR subscribersystem/Subscription.crudsSubscription (ITI-94)
Data stewardauth.product_scope (default __ferropix.steward)the operator API
Administratoroperator.admin_scope (default __ferropix.admin)the writes of identifier and pseudonymisation domains, and the reads beside them

Each IHE transaction also admits the scope its profile defines for an IUA grouping, the transaction’s name (ITI-83, ITI-104, ITI-78, ITI-119). A patient/ scope is refused: it reaches one patient’s records, and a patient index answers about every patient. A Source’s client_id counts only when the issuer that signed its token lists it in clients, so a Source of one domain cannot change another (PIXm 3.1.0 §2:3.104.5).

A Source is a machine. Its token comes from the client credentials grant (RFC 6749 §4.4), so its sub is its client_id (RFC 9068 §2.2). A person’s token through the same client is refused.

The answers:

  • No valid token: 401 with a WWW-Authenticate: Bearer challenge and an OperationOutcome with a security issue on the FHIR face, or the problem unauthenticated on the operator API.
  • A token without the scope: 403 with error="insufficient_scope" and a security issue, or the problem not-permitted.
  • A Source changing a domain it does not feed: 403 with a forbidden issue.
  • A person’s token through a Source’s client: 403 with a forbidden issue whose diagnostics say a Source sends a client credentials token.

No refusal names a claim, a scope, the token or a value of the request. GET {base}/fhir/metadata and GET {base}/fhir/.well-known/smart-configuration need no token: the capability statement names the SMART service, the token endpoint and the scopes, and the SMART discovery document lists the same scopes as scopes_supported. FerroPIX never forwards a caller’s token.

The PIXm, PDQm and PMIR routes and the operator API are served (The PIXm Manager, The PDQm Supplier, The PMIR Registry, The operator API), and the server refuses to start when a row of the guard’s table has no handler.

Two faces carry no bearer token, because their transactions define none. The HL7 v2 face admits a message by its sending application and facility (MSH-3, MSH-4), each listed in [[hl7v2.senders]], and the XCPD gateway answers only the initiating communities [xcpd] lists. The mutual TLS an ATNA Secure Node asks of both is the deployment’s, at a sidecar or ingress in front of FerroPIX (The HL7 v2 face, The XCPD Responding Gateway).

Basic users are for a run on your own machine: they need profile = "development" and the [dev] table. A Basic user is a person, a steward or an administrator, and never a Source or another machine: a [basic_grants] table granting a system/ scope refuses the start, naming the user, and a machine signs in with a client credentials token (RFC 6749 §4.4) of an [auth.issuer.<name>] issuer.

No identifying data where it was not sent

  • Every identifier, every demographic criterion, a pseudonymised BSN, a SAML assertion and a token travels as a secrecy::SecretString or in a type that redacts its content in Debug and has no Display.
  • No error carries a value, a request URL or body, or the free text the other server wrote, so an error you log cannot leak one.
  • A client’s Debug shows its URLs with the userinfo replaced by *** and whether it carries a credential, never the credential.
  • Every client is built from the OutboundClient of ferrohealth-smart, which follows no redirect: the request carries the identifier, and a redirect would send it on.
  • Use POST for every lookup by a patient identifier, so a BSN never appears in a URL, and keep query strings out of the logs of any proxy in front of a Manager, because a client that uses the GET of ITI-83 puts the identifier there (Lookups use POST).
  • The PMIR feed drops every demographic as it reads an ITI-93 message.
  • The server’s store seals every identifier of a sensitive domain at rest and finds it by a keyed HMAC, so a database dump shows no identifier (The store). Its errors keep the SQLSTATE, the constraint and the message of a refusal and drop the detail PostgreSQL fills with the row, so no identifier or name reaches a log line through them.

Access tokens

Every client of ihe-iti and the NVI and Mitz clients of nl-generic-functions send the credential of the endpoint table their OutboundClient is built from: HTTP Basic, or an OAuth 2.0 client credentials token incorporated as IUA ITI-72 §3.72.4.2 asks, with a DPoP proof of each request for a bound token. After a 401 the refused token is dropped and the request sent once more with a new one (§3.72.4.3), never more than twice in all. A DPoP proof names the request URL without its query, so no identifier or search criterion reaches it, and a request no token can be had for is not sent.

Post-quantum key exchange

The server and console listeners, every client FerroPIX builds and the PostgreSQL connection offer the hybrid group X25519MLKEM768 (RFC 10024) first in the TLS 1.3 key exchange, then X25519, P-256 and P-384 for a peer that lacks it. A session recorded today stays confidential against a later quantum computer, which a patient’s identity needs: the EU coordinated implementation roadmap asks a high-risk use to complete the move by the end of 2030.

The console listener speaks TLS when its [server.tls] is set (Console deployment).

TLS certificates may be ML-DSA-44, ML-DSA-65 or ML-DSA-87 (RFC 9881), whose TLS 1.3 signature schemes IANA has assigned (0x0904 to 0x0906, draft-ietf-tls-mldsa-06). The server and console listeners present an ML-DSA certificate from [server.tls] and, under client_auth = "required", verify an ML-DSA client certificate. An outbound client presents an ML-DSA identity and verifies an ML-DSA chain to its trust_roots_file or trust_roots_without_revocation_file, or, on Linux, to the operating system’s roots. The macOS verifier refuses ML-DSA, so an ML-DSA chain to a platform root needs Linux, which is what the release artifacts run on. Access tokens, client assertions and console sign-in tokens take ML-DSA under the settings the configuration pages name. The post-quantum inventory lists every cryptographic use with its algorithm and whether it is safe.

Reporting a vulnerability

Report a vulnerability privately through GitHub’s private vulnerability reporting, never in a public issue. The supported versions and the response times are in SECURITY.md, and the manufacturer’s vulnerability handling, disclosure and advisories are in the family book’s security page.

The audit trail

Audience: operators and auditors who need to know what FerroPIX records, where each record waits and how it reaches the audit repository.

The server’s audit trail

The server writes an AuditEvent for every transaction it answers or sends, on every face, and for every steward action:

TransactionAudit record
ITI-83 $ihe-pixPIXm Query Manager (PIXm 3.1.0 §2:3.83.5.1.2)
ITI-104 add, revise, removePIXm Feed Create, Update and Delete Manager (§2:3.104.5.1.2)
ITI-78 search and readPDQm Query Supplier (PDQm 3.2.0 §2:3.78.5.1.2)
ITI-119 $matchPDQm Match Supplier (§2:3.119.5.1.2)
ITI-93 receivedPMIR Feed audit, one patient entity per change
ITI-94 create, read, deletePMIR Subscription Create, Read and Delete audit; an enable or disable is a BALP Update
ITI-8the Patient Record event: C for an add, U for a revision, and for an A40 U for the survivor and D for the subsumed identifier (ITI TF-2 §3.8.5)
ITI-9 and ITI-21the Query event with the whole query message (ITI TF-2 §3.9.5.1.2)
ITI-10 deliveredthe Manager’s Patient Record read, the consumer as its destination (ITI TF-2 §3.10.5.1.1)
ITI-55the Responding Gateway’s Query event (ITI TF-2 §3.55.5.1.2)
A steward’s view or decisionBALP Patient Read or Patient Update
A steward’s searchBALP Patient Query per person found, or Query when none was
A steward’s reveal of an identifier or a pseudonymBALP Privacy Disclosure at the source, with the reason
A pseudonym minted, on an ITI-83 ask or by a stewardBALP Create, naming the patient and the domain, never the value
A steward’s reverse resolution of a pseudonymBALP Privacy Disclosure at the source, with the reason
An export of the steward trailan Export event (DICOM 110106)

Each record names the patient as its subject and, for a search, carries the raw request base64-encoded in entity.query (BALP 1.1.4 §1:52.4.1.4, §1:52.4.1.6): the URL of a GET, or the request line, media type and body of a POST. A search or a match that answers several people writes one record per person in the answer, and one that answers none writes one record naming no patient; an ITI-78 read writes the PDQm Query Supplier record of the one person it answers. Every face stores its records before it sends the answer: the FHIR face answers 503 with a transient issue when they cannot be stored, the HL7 v2 face AR, and the XCPD gateway Case 5. The audit record is the only place outside the store where the server writes a patient identifier.

A record of a FHIR face transaction (ITI-83 or ITI-104) carries the outcome of the answer the client got, in FHIR R4’s audit-event-outcome codes: 0 for a 2xx, 4 (minor failure) for a refusal of the request, a 4xx, and 8 (serious failure) for a 5xx. An ITI-83 ask whose pseudonym record cannot be kept answers 503 and is recorded 8; a Remove Patient of an identifier the cross-reference does not hold answers 200 and is recorded 0.

A write’s record (an ITI-104, ITI-93, ITI-8 or ITI-94 write, a pseudonym minted on an ITI-83 ask, a steward’s decision, merge, reveal or configuration change) is kept in PostgreSQL, in the table pix.audit_outbox, inserted in the same transaction as the change. The change and its record commit together or not at all: a crash before the commit leaves neither, and a committed change always has its record. The record is compressed and sealed under the store’s key, like an identifier. A write refused before it changed anything keeps the record of its refusal there too.

A read’s record waits in a spool under audit.spool_dir, in files readable by the server’s user alone in a directory only that user may enter. The records that arrive together are written as one segment file and reach the disk with one flush, and each read answers only once its record is on the disk. Before a read runs, the server takes its record’s place in the spool: when the spool is full, the request is refused with 503 and a transient issue. A record the spool does not store within audit.spool_write_timeout is withdrawn and the record of the read refused, with the outcome 8, takes its place; the read answers 503, so the trail says what the client got.

Both are sent to audit.endpoint.url over the FHIR Feed, several at once as one batch Bundle, each judged by its entry of the answer. A delivered record is removed. One the repository refuses is moved aside for you to inspect: a spooled record to the quarantine subdirectory, a write’s record to pix.audit_quarantine, logged by its id. GET {base}/health/readiness reports audit_spool down when less than a tenth of either bound is left and audit_outbox down while pix.audit_quarantine holds a record, and GET {base}/operator/dependencies shows whether the last delivery to the repository went through.

The crates’ audit trail

The audit trail is ihe-atna, the family’s audit crate from FerroAUDIT: ATNA ITI-20 with its syslog sender, spool and forwarder, and the BALP FHIR feed. ihe-iti writes the record each profile defines for its own transactions on it:

  • balp: every PIXm, PDQm, mCSD and PMIR client takes an ihe_atna::balp::AuditRecorder through .audited(…) and records the BALP AuditEvent of each transaction.
  • atna: XcpdClient::audited hands the ITI-55 Initiating Gateway audit message of every exchange to a recorder, written as the DICOM audit message in ihe-atna’s ATNA model.

The client waits for the recorder before it returns the answer, the exchange’s timeout bounds the record too, and a record the recorder refuses fails the exchange as an audit failure, so no answer is used without its audit. An audited exchange’s record names the user it was made for.

Operations

This page covers the server’s health checks and request log. The installation report the server sends is set under [usage_report], the span and metric export under [telemetry], and upgrades and the support policy are on Releases, upgrades and support.

Health checks

RouteTokenAnswers
GET {base}/health/livenessnone200 while the process serves; it checks nothing.
GET {base}/health/readinessnone200 while the server serves and no readiness indicator is down, 503 otherwise, with the family’s readiness document: the state, the phase (booting, serving or draining) and each indicator’s name and state, never why.
GET {base}/healthnoneThe status of readiness with the state alone, {"state":"up"}.
GET {base}/metricsnone200 with every metric in the Prometheus text format.
GET {base}/operator/dependenciesauth.product_scope200 with the readiness document and the last outcome of every upstream the server sends to.

The routes are those of ferrohealth-server over the registry of ferrohealth-health, the ones every FerroHEALTH product serves. Readiness answers 503 until the listener is bound and from the moment SIGTERM or SIGINT arrives, so a load balancer stops sending before the drain. The open readiness route leaves out why an indicator is down; the dependency report gives the reason behind the steward scope.

The database indicator is down while no statement reaches PostgreSQL, the audit_spool indicator is down when less than a tenth of the spool’s record or byte bound is left, and the audit_outbox indicator is down while pix.audit_quarantine holds a record the repository refused. The outbox indicator is down while a due outbound message, an XCPD answer, an ITI-93 message or an ITI-10 notification, has waited past the sender’s lease and two idle wakes, which a running sender never lets happen; a subscriber or consumer that refuses its messages leaves the server ready. The dependency report names every PMIR subscriber and every HL7 v2 consumer, the consumer as mllp:// and its host:port, with the outcome of its latest message. With the HL7 v2 face on, the hl7v2_listener indicator is down while the MLLP listener is not accepting. Each check gets two seconds; one that takes longer counts as down. The dependency report sits behind the steward scope so an anonymous reader learns no endpoint. ferropix healthcheck asks the readiness route of the server on the same host and exits 1 on anything but 200: use it as the container health check.

The request log

The request log is the one of ferrohealth-telemetry that every FerroHEALTH product writes: one line per request under the tracing target ferrohealth_telemetry::request, with these fields:

FieldWhat it holds
request_idThe UUID the server minted for the request. The steward trail of GET {base}/operator/actions carries the same id; a BALP record carries the X-Request-Id of the exchange, the client’s when it sent one.
client_namedWhether the client sent an X-Request-Id of its own. Its value is echoed on the response and never logged.
methodThe HTTP method, or _OTHER for a method outside the standard set, so a client’s own token never reaches the line.
routeThe matched route template, such as /fhir/Patient/$ihe-pix, or <unmatched>.
statusThe status answered.
latency_msThe time to the response, in milliseconds.
queryThe values of the parameters telemetry.logged_query_parameters names; empty by default.
callerThe token’s client_id, or its subject when it names none, or - when the credential names neither. A request the gate refused has no caller.
domainThe identifier domains a successful feed wrote to, comma-separated. A request that wrote none has no domain.

Every request also runs inside a server span named for its method and route template, such as GET /fhir/Patient/$ihe-pix (the method alone when no route matched), with an error status on a 5xx, which [telemetry.otlp] exports. It lands in the http_server_request_duration_seconds histogram and is counted in http_server_active_requests, the requests in flight by method and scheme, both of which GET {base}/metrics serves and [telemetry.otlp] pushes.

A panic writes one error line that names the thread and the source location and leaves the panic message out, since a message can quote a patient identifier. When the panicking thread is serving a request, the line also carries that request’s request_id, so you can find the request it broke.

The line never holds the path as sent, a query string outside telemetry.logged_query_parameters, a body or a header value. A PIXm Consumer that calls $ihe-pix by GET puts the patient’s identifier in the query, and the line still names only the route template. A proxy in front of the server must keep query strings out of its own logs for the same reason. The gate of ferrohealth-smart writes its own audit line per guarded request under the target ferrohealth_smart::audit, with the same discipline.

Reporting a defect

Open an issue when a transaction answers differently from what its specification names, or identifying data reaches a log line. Never paste patient data or a real identifier. The family’s post-market procedure says how complaints and incidents are handled.

Upgrading the server

Audience: operators who move a running FerroPIX to a newer release.

Only the newest release is supported (Releases, upgrades and support), so plan to follow each release. What FerroPIX stores lists the state an upgrade carries across.

Before the upgrade

  1. Read the changelog for every version you skip. A change that asks something of you, such as a configuration key renamed or removed, says what to change (Changelog).
  2. Check the configuration with the new binary. Run ferropix config check of the new release over your configuration (Commands). A key a release renamed or removed is refused by name in that one release, and as an unknown key from the next release on, so upgrade one release at a time when you skip several, or read each skipped section’s Removed entries.
  3. Back up the store. Dump schema pix of the PostgreSQL database (pg_dump --schema=pix), and keep the file db.data_key_file names beside the dump in your secret store: the identifiers in the dump open only with that key. The migrations only move forward, so the backup is your way back.

The rollout

  • Migrations. serve applies the pending migrations of its release when it starts, under the migrator’s advisory lock, so servers that start together apply each file once (The store). With db.migrate = false, run ferropix db migrate of the new release first, as the role that may create in the schema, then start the new servers; a server that does not migrate refuses to start while a migration of its release is missing.
  • Scoring fields. When a release changes how the matcher normalises a field, the same step rewrites the stored scoring fields and blocking keys of every record, a thousand at a time, before the server takes traffic. A large store takes longer to start on such a release.
  • The images. With the chart, helm upgrade to the chart version of the release (The Helm chart); with compose, download the release’s compose.yaml or set FERROPIX_VERSION. Upgrade the console to the same release: it reads the operator documents of its own release.
  • The audit spool keeps its records across the restart, and the new server delivers them. Stop the old server with SIGTERM, so the requests in flight finish within server.shutdown_timeout.

Rolling back

Restore the backup and start the release it was taken under. Do not start an older release against a store a newer one migrated: with db.migrate = true it refuses the migrations it does not know, and with db.migrate = false it would run against tables its code was not written for.

After the upgrade

  • GET {base}/health/readiness answers 200, and GET {base}/operator/dependencies shows each upstream’s last outcome (Operations).
  • ferropix config check prints the configuration the server runs on, with the source of each value.
  • The sealing key is untouched by an upgrade; rotating it is its own step.

Releases, upgrades and support

This page says what each release publishes, how you move a crate to a newer one, and which releases receive fixes.

What a release publishes

A FerroPIX release is cut from its milestone: the release workflow refuses a tag whose milestone still holds an open issue, and closes the milestone once every part has published. Each release publishes, from one tag:

ArtifactWhere
The server imageghcr.io/ferrohealth/ferropix:<version>, for linux/amd64 and linux/arm64
The console imageghcr.io/ferrohealth/ferropix-console:<version>, the same platforms
The Helm chartoci://ghcr.io/ferrohealth/charts/ferropix, its app version the release, both images pinned by digest
The static binariesferropix and ferropix-console for x86_64 and aarch64 Linux (musl), on the GitHub release, each with its checksum, SBOMs and Sigstore bundles
The crates whose version movedihe-iti and nl-generic-functions on crates.io, and each .crate with its checksum on the GitHub release
The quickstartcompose.yaml, with its .sha256sum: one self-contained file, every configuration it needs inlined, the quickstart downloads from the latest release
The vulnerability recordevery finding of a scan of the images and binaries, at every severity, with the OpenVEX statement that judges it

Every artifact carries SLSA Build Level 3 provenance; verify one before you run it (Verifying an image). The release notes are the version’s section of the changelog.

The product version and the crate versions are two lines. The product version is the release tag. Each crate keeps its own version, moved by the change that alters what it ships, so a crate fix reaches crates.io without waiting for a product release (The published crates).

Upgrading the server

Upgrading the server is its own page: the checks before, the migrations and the images, rolling back, and what to look at after.

Upgrading a crate

Read the crate’s entries in the changelog for the versions you skip. A change that breaks the API is marked API break with what to change. The family pins its crates by exact version, so ihe-iti moves together with the ihe-atna and ferrohealth-smart versions it names.

Support

  • Only the newest release is supported. When a release is published, every earlier one stops receiving fixes: there are no maintenance branches and no backports.
  • Security fixes keep being published for at least five years after each release, in the newest release, as SECURITY.md says with the Cyber Resilience Act articles behind it.
  • A vulnerability is reported privately through GitHub’s private vulnerability reporting, never in a public issue (Security).
  • Any other defect is an issue on the tracker (Operations).

Configuration

The FerroPIX server, the ferropix binary, reads one TOML file, the environment and its --set arguments, through ferrohealth-config, the FerroHEALTH configuration loader. This page lists every key. The second half of the page covers the crates, which you configure in your own code.

The server

The server loads and checks every section below at start, and refuses to start on the first fault, naming its key. serve then starts the store (The store) and runs the HTTP listener with its health routes and the guard in front of the FHIR face and the operator API ([auth]), each service you switch on ([pixm], [pdqm], [pmir], [hl7v2], [xcpd], [operator]), the usage report ([usage_report]) and, with a [telemetry.otlp] table, the span and metric export. Every TOML block in this book is read by the server’s own configuration loader in CI, so a key it shows is a key the server reads.

Commands

CommandWhat it does
ferropix serveStarts the store (The store), reads the metadata and key set of every [auth.issuer.<name>], then serves until SIGTERM or SIGINT. On the signal readiness answers 503 at once, the listener keeps accepting for server.drain_delay, then closes, and the requests in flight get server.shutdown_timeout to finish. An issuer that cannot be read, or issuers none of whose metadata names a token_endpoint, stop the start.
ferropix config checkReads and resolves the configuration, secret files included, prints every key as key = value # source (the file, the default, the environment variable or the --set argument that set it, with every secret shown as ***), and exits 0 when the server would start on it. Otherwise it prints the refusals on one line, each naming its key, and exits 78.
ferropix healthcheckAsks GET {base}/health/readiness of the server on this host, over TLS when [server.tls] is set, with a three-second timeout, and exits 0 only on 200; a 503 from a readiness indicator that is down, or from a server that is draining, exits 1. Use it as the container health check.
ferropix db migrateApplies the pending migrations, rewrites the stored scoring fields of every record written under an older normalisation, applies the [[domain]] and [[pseudonym_domain]] seeds, checks the sealing key, and exits 0. It does not apply the boot gate, so it can run as a role with more rights than the one serve connects as.
ferropix db reseal --old-key-file <PATH>Rewrites every identifier column under the key db.data_key_file names, reading the key the store is written under now from <PATH>, and exits 0 when no row is left under the old key.
ferropix matching estimateCounts how often each value of each field occurs over the current version of every record and prints, for each field at least 100 records state, the [matching.fields.<field>] table that would set its u, beside the m the configuration holds (Estimating u). The output holds counts and probabilities, never a value.

Every command takes --config <PATH> and any number of --set key=value arguments; the command-line reference prints each command’s help. A refused configuration exits 78 (EX_CONFIG), so an orchestrator can tell a bad configuration from a server that failed to serve.

The file and the environment

  • The file is the one --config names, or else the one FERROPIX_CONFIG names. Without either, the defaults stand, and the start is refused for the keys that have none.
  • FERROPIX__<SECTION>__<KEY> overrides any key, with two underscores between levels: FERROPIX__SERVER__LISTEN=0.0.0.0:8080 sets server.listen, FERROPIX__PMIR__FEED__MAX_ATTEMPTS=5 sets pmir.feed.max_attempts, and FERROPIX__PROFILE=development sets the top-level profile. The value is read as the type the key wants; a list takes TOML array syntax or comma-separated values.
  • RUST_LOG sets telemetry.filter, over the file and over FERROPIX__TELEMETRY__FILTER.
  • --set key=value sets the dotted key last, over the file and the environment: --set server.listen=0.0.0.0:8080.
  • Every table refuses a key it does not know, so a misspelt key, in the file, in a FERROPIX__ variable or in a --set argument, stops the start and the error names it with the closest known key. Another variable that starts with FERROPIX_ and is no override, such as FERROPIX_CONFIG, is left alone.
  • An error names the key and never the value, so no secret reaches your terminal or your log.

Profiles

profile = "production" is the default. profile = "development" is for a run on your own machine, and only it admits:

  • the [dev] table;
  • Basic users under [auth.basic], with their [basic_grants];
  • a secret set inline, such as db.url, where production takes the _file key;
  • a plain http public base URL on a host other than a loopback one;
  • a plain http audit repository.

Secrets

A secret is set under its key or read from the file its <key>_file sibling names, never both. The file’s trailing line ending is removed, and any other whitespace is part of the secret; a file with nothing left is refused. Under production, only the _file form is accepted. A secret renders as *** wherever the server prints its configuration, and a URL that may carry a password renders with its user information and its query replaced by ***.

Outbound TLS

Every outbound tls table (telemetry.otlp.tls, auth.tls, the credentials.oauth tables, pmir.feed.consumers[].tls, terminology.endpoint.tls, xcpd.tls and audit.endpoint.tls) verifies a peer by the root its chain reaches:

  • A chain to a root of trust_roots_file is verified by webpki on every operating system, ML-DSA certificates included (RFC 9881), and a connection opens only once a revocation check cleared its endpoint. The check runs at the start and every 4 minutes, and it fails closed when no CRL or OCSP source answers.
  • A chain to a root of trust_roots_without_revocation_file is verified by webpki with no revocation check. The key is for a private PKI that publishes no CRL and no OCSP responder. The start names those roots, and each connection logs them.
  • Any other chain goes to the platform’s verifier.

The quickstart

app/ferropix-server/quickstart.toml is the smallest production configuration: the loopback base, one issuer, three identifier domains (a synthetic hospital, the BSN and the pseudonymised BSN) with one Source client for all three, the HL7 v2 face’s sender switched off, and both [db] secrets read from files under /run/secrets/. Its issuer is the development OpenID Provider of the compose quickstart, a SMART issuer: it signs the Sources’ client credentials tokens and the console’s logins as RFC 9068 at+jwt access tokens, so the entry names only the issuer and its audiences. It signs a login’s access token with the claims of its ID Token, whose audience is the console’s client id alone, so the entry lists ferropix-console as a second audience. The quickstart also mounts the operator API, which the console reads. The compose quickstart mounts it beside PostgreSQL (Deployment).

The top level

KeyDefaultWhat it sets
profile"production""production" or "development"; see Profiles.
public_base_urlnone, requiredThe URL a client reaches {base} at: the base of every resource location the FHIR face names, and the identifier system of FerroPIX’s own master domain. https; plain http on a loopback host, or under development. No user information, query or fragment.

[server]

[server] is the section every FerroHEALTH server shares, read by ferrohealth-server. A span of time is a string of a whole number and its unit, "500ms", "30s", "10min", "12h" or "7d", and a size is one such as "512KiB" or "1MiB"; a bare number is refused, and a key that holds one carries no unit in its name. FerroPIX’s own sections write them the same way.

KeyDefaultWhat it sets
server.listen"127.0.0.1:8080"The socket address the HTTP listener binds; a host name is refused.
server.base_path""The path every route is mounted under: empty for the root, or / and path segments with no trailing /.
server.body_limit"1MiB"The largest request body read; a larger one is answered 413.
server.request_timeout"30s"How long one request may take; a handler past it is answered 503, and a request whose body is still arriving 408.
server.header_read_timeout"30s"How long a client may take to send a request head, counted from accept or from the first byte of the head; a client that has not sent the whole head by then is disconnected.
server.idle_timeout"2min"How long a kept-alive HTTP/1.1 connection may wait for its next request after an answer; past it the server closes the connection with a clean end of stream. HTTP/2 connections keep their own protocol’s rules.
server.drain_delay"0s"How long the listener keeps accepting after SIGTERM, with readiness already answering 503, so an orchestrator stops routing first.
server.shutdown_timeout"10s"How long the requests in flight may take to finish once the listener closed; a connection still open after it is closed.
server.max_concurrent_requests256How many requests the server serves at once, always bounded; past it a request waits for a slot in the queue below and is answered 503 with Retry-After when the queue is full or the wait expires. The health routes are never refused or queued.
server.max_waiting_requests256How many requests past max_concurrent_requests may wait for a slot at once, first come first served; 0 keeps no queue.
server.admission_wait100 millisecondsHow long a request past max_concurrent_requests waits for a slot before it is refused, written with the ms or s unit; "0s" keeps no queue.
server.request_decompressionfalseWhether a request body sent with Content-Encoding: gzip or br is decoded before it is read. On, server.body_limit holds the decoded bytes too, any other coding is refused 415, and a body that does not decode is refused 400.
server.retry_after"1s"How long a request refused for load is told to wait, a whole number of seconds.
server.trusted_proxies[]The reverse proxies whose forwarded client address is believed, each an address or a CIDR block such as 10.0.0.0/8; empty, every request is named by its peer.
server.forwarded_header"forwarded"The header a trusted proxy names the client in: "forwarded" (RFC 7239) or "x-forwarded-for".
server.compressiontrueWhether a response is compressed with gzip or Brotli when the client accepts one.
server.compression_min_size"1KiB"The smallest response body that is compressed.

[server.caller_rate] is refused: FerroPIX mounts no per-caller rate limit.

[server.tls] makes the listener speak TLS; without it the listener speaks plain HTTP behind a proxy that terminates TLS. SIGHUP reads its files again.

KeyDefaultWhat it sets
server.tls.certificate_filenone, requiredThe certificate chain in PEM, the leaf first.
server.tls.key_filenone, requiredThe private key of the leaf, in PEM.
server.tls.client_auth"none"Whether the listener asks a client certificate: "none", "optional" or "required".
server.tls.client_ca_fileunsetThe CA bundle a client certificate must chain to; required when client_auth is "optional" or "required", and refused at load beside "none", the default included.
server.tls.reload_intervalunsetHow often the files are read again; unset, only SIGHUP reads them.
server.tls.healthcheck_identity_fileunsetThe client certificate chain and key, in one PEM, that ferropix healthcheck presents to a listener that asks one.
server.tls.min_version"1.3"The oldest TLS version the listener speaks, "1.3" or "1.2".

Every refusal the stack writes itself, a 503 for a handler past its timeout, a 408 for a body that had not arrived, a 413 and a 503 for load, is a FHIR OperationOutcome (timeout, timeout, too-long, throttled) on the FHIR face and the XCPD gateway, as is the 500 of a handler that failed, which names the server’s request id. On every other route each is an about:blank problem whose instance is the server’s request id, which the request log names, even when the request sent an X-Request-Id of its own.

The server routes, under server.base_path:

RouteAnswer
GET {base}/health/liveness200 while the process serves.
GET {base}/health/readiness200 while the server serves and no readiness indicator is down, the database indicator of the store among them, and 503 otherwise (Operations).
GET {base}/healthThe status of readiness, with {"state":…} alone.
GET {base}/metricsEvery metric in the Prometheus text format, among them http_server_request_duration_seconds by method, route template and status, and http_server_active_requests, the requests in flight by method and scheme. It needs no token, so keep it off the public side of your proxy.

The server mints its own UUID for every request, which the request log and the steward trail of GET {base}/operator/actions carry. Every answer carries x-request-id: the one the request sent when it is printable ASCII of at most 128 characters, which is echoed and never logged, or else the server’s id. A handler that fails answers 500 naming the server’s id and no detail.

[telemetry]

The section is ferrohealth-telemetry’s, the one every FerroHEALTH product reads.

KeyDefaultWhat it sets
telemetry.filter"info,hyper=warn,tower=warn,h2=warn"The log filter, in the tracing-subscriber EnvFilter syntax. A filter that does not parse refuses the start.
telemetry.format"auto""json", "pretty", or "auto": pretty on a terminal, JSON otherwise.
telemetry.logged_query_parameters[]The query parameters whose values the request line carries in its query field. Name only parameters that hold no identifier or free text; the ITI-83 and ITI-78 parameters carry identifiers and demographics.
telemetry.environmentnoneThe deployment environment the exported spans and metrics name (deployment.environment.name), such as production.
telemetry.otlp.endpointnoneThe collector’s OTLP/gRPC endpoint; https:// speaks TLS. It may carry a credential, so config check shows it masked. A [telemetry.otlp] table without it refuses the start.
telemetry.otlp.tracestrueWhether the spans are exported: one server span per request, named {method} {route} such as GET /fhir/Patient/$ihe-pix, with the method, the matched route template, the status and the server’s request id, and an error status on a 5xx. No raw path, query string, body, header value, identifier or token, and no log event.
telemetry.otlp.metricstrueWhether the metrics are pushed.
telemetry.otlp.sample_ratio1.0The share of the traces that are sampled, from 0.0 to 1.0.
telemetry.otlp.tls.trust_roots_filenoneA PEM file of trust roots the collector’s certificate may chain to, beside the platform’s, checked for revocation. The server refuses to start when the endpoint is not https:// or the file holds no PEM certificate.
telemetry.otlp.tls.trust_roots_without_revocation_filenoneA PEM file of trust roots for a collector behind a private PKI that publishes no revocation service, trusted with no revocation check.
telemetry.otlp.tls.client_identity_filenoneA PEM file holding a client certificate chain and its key, for mutual TLS with the collector. The server refuses to start when the endpoint is not https:// or the file lacks a PEM certificate or a PEM private key.
telemetry.otlp.tls.min_version"1.3"The oldest TLS version spoken to the collector, "1.2" to lower it.

Without a [telemetry.otlp] table nothing is exported.

[db]

KeyDefaultWhat it sets
db.urlnoneThe PostgreSQL URL, postgres:// or postgresql://. Development only; under production use db.url_file.
db.url_filenoneThe file holding the PostgreSQL URL. One of db.url and db.url_file is required.
db.pool_size10The most connections the pool holds. A connection idle for a second or more is pinged before a request gets it; a busy one is handed out without a ping.
db.unverified_transportfalseUnder profile = "production", accept a URL to a host on the network whose sslmode does not verify the server’s certificate and host name (disable, allow, prefer, require or verify-ca); the start then warns, naming the mode. Without it production refuses such a URL. A loopback host or a Unix socket is accepted with any mode.
db.migratetrueWhether serve applies the pending migrations at start. With false, run ferropix db migrate before serve; serve refuses to start while a migration of its set is not applied, or while a record’s stored scoring fields are of an older version than its own.
db.data_key_filenone, requiredThe file holding the sealing key: the base64 of 32 random bytes, which openssl rand -base64 32 makes. Any other content is refused.

The URL’s sslmode decides how the server authenticates PostgreSQL. Under prefer, the driver’s default, and require, the connection is encrypted and no certificate is verified. Under verify-full with sslrootcert naming the root, the chain and the host name are verified, ML-DSA chains (RFC 9881) included: postgres://ferropix@db.example.org/pix?sslmode=verify-full&sslrootcert=/run/secrets/db-root.pem. verify-ca checks the chain and not the host name. Under profile = "production" the server refuses every mode short of verify-full for a host on the network (PostgreSQL 19 documentation, section 32.19.1), and names the mode in the refusal; a loopback host or a Unix socket is accepted with any mode, and db.unverified_transport = true accepts the rest with a warning at the start.

The store

The server keeps the cross-reference in schema pix of a PostgreSQL 19 database. ferropix db migrate, and serve unless db.migrate = false, run these steps in order:

  1. The migrations. The migration set is built into the binary and applied in order, each file once, under a lock, so two servers that start together apply it once. The migrator creates schema pix and keeps its record of applied files in pix._sqlx_migrations. A file changed after it was applied stops the start.
  2. The key check. The first start records which key the identifiers are written under. A later start with a different db.data_key_file, or one during an unfinished db reseal, is refused, because the server would otherwise find no record by its identifier and answer every lookup as unknown.
  3. The seed. Each [[domain]] the store lacks is inserted. A domain the store holds already is left as it is, since the store is the record; when it differs from the seed, the server logs a warning naming its system. Each [[pseudonym_domain]] the store lacks is inserted the same way.

Before these steps, serve refuses to start when the role it connects as can read anything outside pix: a superuser, a member of pg_read_all_data, or a role with SELECT on any table, view or sequence in another schema. Connect serve as a role that has CREATE on the database (the migrations create the schema and the btree_gist extension, which PostgreSQL trusts any such role to create) and nothing else. To migrate with another role, run ferropix db migrate as that role first; the last migration grants a role named ferropix the rows it needs, so serve can connect as ferropix with db.migrate = false.

Sealing. In a domain with sensitive = true, an identifier value is stored encrypted with AES-256-GCM under the sealing key, and every identifier is found by an HMAC-SHA256 under a key derived from it, so a database dump shows no identifier and a lookup is one index probe. This holds for the identifier a record is fed under and for every other identifier the fed Patient carries in a domain FerroPIX knows. Before it is sealed, a value takes its domain’s form: a BSN keeps its nine digits (spaces, dots and dashes dropped, a dropped leading zero restored) and must pass the eleven-proof; any other value is trimmed and keeps its case. The demographics are stored plain, because search and matching read them, and without any identifier: the identifier, link, contained, text, id and meta of the fed Patient are left out.

Rotating the key. Stop every server, put the new key in the file db.data_key_file names, keep the old key in another file, and run ferropix db reseal --old-key-file <old>. It rewrites the identifier columns of the records and of the identifiers each version carries in batches of 500, one transaction each, and a run that stops part way resumes when you run it again. Until it finishes, serve refuses to start. Afterwards the old key opens nothing, and you can destroy it.

[auth]

Every request to the FHIR face and the operator API carries a bearer token one of the [auth.issuer.<name>] issuers signed, or, for an issuer under mode = "introspection", a token that issuer’s introspection endpoint vouches for. [auth] is the section every FerroHEALTH server shares, read by ferrohealth-smart, the FerroHEALTH resource server: each issuer is an https URL (plain http on a loopback host, and never with a user or password in it, which refuses the start and appears in no output), its audience is the FHIR base {public_base_url}/fhir unless the table sets one, and only asymmetric algorithms are admitted. A section with no issuer and no Basic user is refused, and so is enabled = false: FerroPIX always authenticates its callers.

KeyDefaultWhat it sets
auth.enabledtrueMust stay true.
auth.realm""The protection space the WWW-Authenticate challenges name (RFC 9110 §11.5); empty for none.
auth.tls.trust_roots_fileunsetA PEM file of trust roots added to the platform’s and checked for revocation, for an issuer behind a private certificate authority: every issuer’s metadata and key set are read trusting it, and for an introspected issuer the metadata, introspection and token calls too. Read once at start; a file that holds no certificate refuses the start.
auth.tls.trust_roots_without_revocation_fileunsetA PEM file of trust roots for an issuer behind a private PKI that publishes no revocation service, trusted with no revocation check for the same calls.
auth.tls.client_identity_fileunsetA PEM file holding the client certificate chain and its key that those calls present for mutual TLS.
auth.tls.min_version"1.3"The oldest TLS version those calls speak, "1.2" to lower it.
auth.post_quantum_onlyfalseVerify access tokens with ML-DSA-44, ML-DSA-65 or ML-DSA-87 (RFC 9964) alone. Every JWT issuer’s algorithms left at the default becomes those three, an explicit list of ML-DSA parameter sets is kept, and a list naming any other algorithm refuses the start. An issuer under mode = "introspection" keeps its list, because its authorization server checks the token. ferrohealth-smart reads the switch. Set it once every issuer signs with ML-DSA.
auth.product_scope""The scope of a data steward, a full URI or a string that starts with __; empty for __ferropix.steward.
auth.scopes_supported[]The scopes the SMART discovery document lists; empty for every scope the permission table enforces. List only scopes FerroPIX honours.
auth.capabilities[]SMART capabilities the discovery document adds, each one SMART App Launch defines or a full URI.
auth.described_issuernoneThe name of the issuer the SMART discovery document and the capability statement describe, when FerroPIX trusts several. Unset, FerroPIX describes the one SMART issuer whose metadata it holds; a federation issuer is never described unnamed. Several SMART issuers without the key refuse the start, naming them, and so does a key naming an unknown issuer or an issuer without metadata.

FerroPIX refuses the start on a table it would read and never apply, naming the key: an issuer’s party table, [auth.dpop] (FerroPIX checks no DPoP proof, RFC 9449), a Basic user’s roles and an issuer’s role_claims.

Each [auth.issuer.<name>] table names one trusted issuer with every setting of its tokens: no section-level value stands in for one the table leaves out. The name is a lower-case letter, then lower-case letters, digits and _, at most 64; every other key that names an issuer (auth.described_issuer, trust.issuer[].issuer) names it by this name, and an unknown name refuses the start, listing the known ones.

An issuer is a SMART App Launch 2.2 authorization server, FerroSMART among them, unless its table declares kind = "federation" for another party’s authorization server. A SMART issuer’s tokens are read from their standard claims: typ is at+jwt or application/at+jwt (RFC 9068 §2.1), scope is required, a token whose sub is its client_id is a machine’s (RFC 9068 §2.2), and a user is named by their fhirUser and its resource type (SMART App Launch 2.2.0, Scopes and Launch Context). The authorization server’s registry is the one list of clients: a token whose aud names FerroPIX admits its client, and an RFC 8693 act names the actor beside the caller. Name each issuer URL in one table only: a second table of the same issuer refuses the start.

[auth.issuer.sso]
issuer = "https://idp.example.org/realms/pix"
audience = ["https://pix.example.org/fhir"]

[auth.issuer.partner]
issuer = "https://partner.example.net"
KeyDefaultWhat it sets
auth.issuer.<name>.issuernone, requiredThe issuer identifier every token’s iss equals.
auth.issuer.<name>.kindunset"federation" for another party’s authorization server; unset for a SMART issuer.
auth.issuer.<name>.audience[]The audiences, of which a token’s aud must contain one; empty for the FHIR base, {public_base_url}/fhir.
auth.issuer.<name>.algorithms["RS256", "RS384", "PS256", "PS384", "ES256", "ES384"], the three ML-DSA parameter sets under auth.post_quantum_onlyThe signature algorithms admitted: RS256 to PS512, ES256, ES384, EdDSA, and ML-DSA-44, ML-DSA-65 and ML-DSA-87 (RFC 9964).
auth.issuer.<name>.clock_skew"1min"The clock skew a token’s times are checked with, at most "5min".
auth.issuer.<name>.jwks_max_age"10min"How long a fetched key set is used.
auth.issuer.<name>.jwks_refresh_interval"1min"The shortest time between two fetches of the key set.
auth.issuer.<name>.jwks_file""A key set file to read in place of the issuer’s jwks_uri.
auth.issuer.<name>.timeout"10s"How long one call to the authorization server may take.
auth.issuer.<name>.mode"jwt""jwt" checks a token against the issuer’s key set; "introspection" posts it to the issuer’s RFC 7662 introspection endpoint, for a token the server cannot read itself.
auth.issuer.<name>.sender_constraint"none""required" admits only a token bound to a DPoP key or a client certificate.
auth.issuer.<name>.federationunsetThe table a "federation" issuer requires and no other kind takes: how the tokens of another party’s authorization server are read and classified.
auth.issuer.<name>.attributesunsetWhere the tokens of a SMART issuer state the professional’s attributes and the purpose of use, mapping = "iua" for the IHE IUA claims under extensions.ihe_iua (ITI TF-2 §3.71.4.2.2.1.1). A token that misstates them is refused, and the audit record writes the user’s name, role, purpose of use, provider id and organisation on its user agent, as BALP 1.1.4 §3:5.7.5.4 maps them.
auth.issuer.<name>.partyunsetRefused when set: FerroPIX binds no login to a party.
auth.issuer.<name>.role_claimsunsetRefused when set: the permission table reads scopes, so a role would never apply.
auth.issuer.<name>.profile.max_actor_chain1How deep a token’s RFC 8693 act chain may nest.
auth.issuer.<name>.profile.token_types["at+jwt", "application/at+jwt"]The typ header values admitted.
auth.issuer.<name>.profile.required_claimsthe RFC 9068 claimsThe claims every token carries.

The onward keys of ferrohealth-smart’s profile (max_onward_lifetime, onward_grant and the rest) are set in the profile table the same way.

[auth.issuer.<name>.introspection] configures the introspection check of an issuer under mode = "introspection". FerroPIX authenticates its call with exactly one of [auth.issuer.<name>.introspection.client] (the client authentication of a token request, RFC 7662 §2.1) and [auth.issuer.<name>.introspection.bearer] (a token from the client credentials grant). Each takes the keys of an OAuth 2.0 client: issuer or token_endpoint, client_id, client_auth ("client_secret_basic" by default, "client_secret_post", "private_key_jwt", "tls_client_auth", "self_signed_tls_client_auth"), client_secret or client_secret_file, private_key_file, kid, assertion_alg, scope, resource, audience, refresh_margin, timeout, security_profile and the tls table (trust_roots_file, trust_roots_without_revocation_file, client_identity_file, min_version). client stands in the issuer when it names neither issuer nor token_endpoint.

A client that authenticates with private_key_jwt signs its assertion with the algorithm of its key. An ML-DSA-65 key (RFC 9964), made with OpenSSL 3.5 or later as openssl genpkey -algorithm ML-DSA-65 -out introspection.pem, signs ML-DSA-65; register its public half at the authorization server as an AKP key:

[auth.issuer.idp.introspection.client]
client_id = "ferropix"
client_auth = "private_key_jwt"
private_key_file = "/run/secrets/introspection.pem"
KeyDefaultWhat it sets
auth.issuer.<name>.introspection.endpoint""The introspection endpoint; empty for the one the issuer’s metadata names.
auth.issuer.<name>.introspection.cache_max_age"1min"How long an active answer is used before the endpoint is asked again; "0s" keeps none.
auth.issuer.<name>.introspection.cache_capacity10000The most answers held at once.

Every other key refuses the start as an unknown key, named with its section.

[trust]

[[trust.issuer]] says, per issuer, which clients its tokens may vouch for as the Patient Identity Source of a domain (PIXm ITI-104). A [[domain]] whose source_client_id no entry lists is refused.

KeyDefaultWhat it sets
trust.issuer[].issuernone, requiredThe name of an [auth.issuer.<name>] table; each issuer at most once.
trust.issuer[].clients[]The client ids this issuer may vouch for as a Patient Identity Source.

[auth.basic] holds Basic users, for the development profile only, and only beside the [dev] table. A Basic user is a person, a steward or an administrator on your own machine, and never a Source. A Basic user holds its credential alone; what it is granted is set in [basic_grants]. A machine, a Source among them, signs in with a client credentials token of an [auth.issuer.<name>] issuer. Who needs which scope is on the Security page.

KeyDefaultWhat it sets
auth.basic.cache_ttl"5min"How long a verified credential is remembered; "0s" remembers none.
auth.basic.users[].usernoneThe user-id.
auth.basic.users[].password_hashnoneThe Argon2id PHC string of the password.
auth.basic.users[].password_hash_filenoneThe file holding that string.

A scopes or roles key in an [[auth.basic.users]] entry refuses the start as an unknown key.

[basic_grants]

What each Basic user of [[auth.basic.users]] is granted, one table per user named by its user-id, [basic_grants.<user-id>]. A user with no table is granted nothing. A table naming a user [[auth.basic.users]] does not list refuses the start, naming the user, so a misspelt user-id never grants anything.

KeyDefaultWhat it sets
basic_grants.<user-id>.scopes[]The scopes the user is granted, never a system/ scope: a system/ scope fails the configuration load, naming the user.
basic_grants.<user-id>.roles[]Refused when set: the permission table reads scopes.
profile = "development"

[[auth.basic.users]]
user = "dev-steward"
password_hash_file = "/run/secrets/dev-steward.phc"

[basic_grants.dev-steward]
scopes = ["__ferropix.steward"]

[dev]

[[domain]]

Each entry is an identifier domain written to the store at start when it is absent. An entry never updates a domain the store holds, so the database stays the record. A system named twice is refused.

KeyDefaultWhat it sets
domain[].systemnone, requiredThe identifier system: a urn:oid: OID in the FHIR oid form, or another absolute URI.
domain[].namenone, requiredThe name a steward reads.
domain[].kindnone, required"local" (a system’s own numbers), "authoritative" (a national number the deterministic match links on) or "master" (FerroPIX’s own).
domain[].identifier_typenone, requiredThe type every Patient.identifier of the domain carries: an HL7 Identifier Type code ("NI", "SS", "PI", "MR", "PPN", "NH", "JHN", "HC"), written as a coding of http://terminology.hl7.org/CodeSystem/v2-0203, or an EHDS code of the draft EEHRxF Annexes, Table 26 ("HI", "HIN", "REGPID", "REGION"), written as type.text until a code system holds it.
domain[].source_client_idnone, requiredThe client id of the domain’s one Patient Identity Source.
domain[].sensitivetrueWhether the domain’s identifier values are sealed at rest.

[[pseudonym_domain]]

Each entry is a pseudonymisation domain written to the store at start when it is absent, never updated (Pseudonyms). A namespace named twice, or one an identifier domain holds, is refused.

KeyDefaultWhat it sets
pseudonym_domain[].namespacenone, requiredThe system of the pseudonyms: a urn:oid: OID in the FHIR oid form, or another absolute URI.
pseudonym_domain[].namenone, requiredThe name a steward reads.
pseudonym_domain[].consumer_client_idnoneThe client id whose ITI-83 query mints a pseudonym in the domain; without one, only a steward mints.

[matching]

KeyDefaultWhat it sets
matching.link_at0.95The score at or above which a pair grades certain.
matching.review_at0.80The score at or above which a pair grades probable.
matching.possible_at0.60The score at or above which a pair grades possible. The three hold 0 < possible_at <= review_at <= link_at <= 1.
matching.auto_linkfalseWhether a certain pair is linked without a steward.
matching.blocking_keysall threeThe keys a pair must share one of to be scored: "birth_year_family_phonetic", "postal_code_birth_date", "shared_identifier".
matching.fields.<field>.mthe field’s default in MatchingThe probability that the field agrees for a true pair.
matching.fields.<field>.uthe field’s default in MatchingThe probability that the field agrees for a random pair; 0 < u < m < 1.

<field> is one of family_name, given_names, birth_date, gender, postal_code, address, telephone, email, mothers_maiden_name and local_identifier.

[pixm], [pdqm] and [pmir]

KeyDefaultWhat it sets
pixm.enabledtrueWhether the PIXm Manager serves ITI-83 and ITI-104.
pixm.remove_patientfalseWhether ITI-104 serves the Remove Patient Option.
pdqm.enabledtrueWhether the PDQm Supplier serves ITI-78 and ITI-119.
pdqm.deprecated"inactive"How a merged patient is answered by ITI-78: "inactive" (with active = false and its replaced-by link, the survivor included in a search) or "omit" (left out of a search, and 404 on a read).
pmir.enabledfalseWhether the PMIR Registry serves ITI-93 and ITI-94.
pmir.feed.max_attempts10The most delivery attempts of one outbound ITI-93 message.
pmir.feed.initial_backoff"1s"The wait before the first retry.
pmir.feed.max_backoff"5min"The longest wait between two retries.

Each [[pmir.feed.consumers]] entry is the endpoint table of one Patient Identity Consumer, the family’s [<lane>.endpoint] keys of ferrohealth-smart. A message to a subscription whose channel endpoint lies under an entry’s url goes through that entry’s client: its client certificate for ATNA mutual TLS and its OAuth 2.0 client credentials grant for an IUA token, renewed once when the Consumer answers 401 (PMIR 1.6.0 §2:3.93.5). The Consumer’s token replaces any Authorization header the subscription names. A subscription under no entry’s url gets no credential. No consumer is configured by default.

KeyDefaultWhat it sets
pmir.feed.consumers[].urlrequiredThe endpoint prefix the Consumer’s subscriptions name: https, or plain http under development, with no userinfo, query or fragment. An endpoint lies under it when it has the same origin and its path equals the prefix’s or continues it at a /; the longest prefix wins.
pmir.feed.consumers[].timeout"10s"How long one try may take.
pmir.feed.consumers[].connect_timeoutnoneHow long opening the connection may take.
pmir.feed.consumers[].retry.max_attempts3How many times one delivery attempt sends the message when the Consumer is unreachable or answers 5xx; the attempts and waits of [pmir.feed] come on top.
pmir.feed.consumers[].retry.initial_backoff"200ms"The wait before the second try of an attempt.
pmir.feed.consumers[].retry.max_backoff"5s"The longest wait between two tries of an attempt.
pmir.feed.consumers[].credentials.oauthnoneThe IUA client credentials grant, the keys of ferrohealth-smart’s [<lane>.credentials.oauth] table; its client_secret_file is a secret.
pmir.feed.consumers[].credentials.user""The HTTP Basic user instead, with password_file (a secret), when the Consumer agrees to it.
pmir.feed.consumers[].tls.client_identity_filenoneThe certificate chain and private key presented for ATNA mutual TLS, in one PEM.
pmir.feed.consumers[].tls.trust_roots_filenonePEM certificates trusted for the Consumer’s certificate, beside the platform roots, checked for revocation.
pmir.feed.consumers[].tls.trust_roots_without_revocation_filenonePEM certificates trusted with no revocation check, for a Consumer behind a private PKI that publishes no revocation service.
pmir.feed.consumers[].tls.min_version"1.3"The oldest TLS version spoken, "1.2" to lower it.

[hl7v2]

KeyDefaultWhat it sets
hl7v2.enabledfalseWhether the MLLP listener runs.
hl7v2.listen"0.0.0.0:2575"The socket address the listener binds.
hl7v2.default_charset"ASCII"The HL7 table 0211 character set of a message with an empty MSH-18: ASCII, UNICODE UTF-8 or an 8859/n part.
hl7v2.frame_limit"1MiB"The largest message one frame may carry.
hl7v2.idle_timeout"5min"How long a connection may sit idle between frames.
hl7v2.frame_timeout"30s"How long one frame may take to arrive.
hl7v2.max_connections256How many MLLP connections may be open at once; a connection accepted past it is closed before any byte is read. Above 0.
hl7v2.senders[].applicationnoneThe sending application, MSH-3.
hl7v2.senders[].facilitynoneThe sending facility, MSH-4.
hl7v2.senders[].domainnoneThe system of the identifier domain the sender feeds; leave it out for a sender that only queries.
hl7v2.namespacesnoneA table from a domain’s system to its HL7 namespace id, the first subcomponent of an assigning authority.
hl7v2.application"FERROPIX"The Manager’s sending application, MSH-3 of an ITI-10 notification.
hl7v2.facility"FERROPIX"The Manager’s sending facility, MSH-4 of an ITI-10 notification.
hl7v2.consumers[].namenoneThe name the outbox, the log and the dependency report know the consumer by.
hl7v2.consumers[].addressnoneThe host:port of the consumer’s MLLP listener.
hl7v2.consumers[].applicationnoneThe receiving application, MSH-5.
hl7v2.consumers[].facilitynoneThe receiving facility, MSH-6.
hl7v2.consumers[].domains[]The systems of the identifier domains of interest to the consumer; empty for every domain.
hl7v2.consumers[].connect_timeout"5s"How long opening the connection may take.
hl7v2.consumers[].reply_timeout"30s"How long the acknowledgment may take once connected.
hl7v2.notification.max_attempts10The most attempts one ITI-10 notification is given.
hl7v2.notification.initial_backoff"1s"The wait before the first retry.
hl7v2.notification.max_backoff"5min"The longest wait between two attempts.

A message from a sender not listed is answered AR. A sending application and facility listed twice, two senders of one domain, and one namespace id for two domains are refused at load. A consumer without its name, address, application or facility, two consumers of one name, and an address without a port are refused too. The consumers are notified while hl7v2.enabled is true. The listener finishes the messages in flight within server.shutdown_timeout, the HTTP server’s bound. The face needs a terminology server, [terminology] below: with hl7v2.enabled and no terminology.endpoint.url the server refuses to start.

[terminology]

The FHIR R4 terminology server the HL7 v2 face translates every v2 table value on, by ConceptMap/$translate: PID-8, the name type of PID-5, the address type of PID-11 and the telecommunication use and equipment type of PID-13 and PID-14, on the way in and on the way back into an ITI-21 answer. FerroPIX holds no copy of a table, so load the server with the value maps the HL7 v2 face page names. The server is [terminology.endpoint], the endpoint table of ferrohealth-smart every FerroHEALTH product writes each outbound integration with, reached through its outbound client.

KeyDefaultWhat it sets
terminology.endpoint.url""The R4 base of the terminology server: https, or plain http on a loopback host, with no userinfo. Empty for none, which only a server with the HL7 v2 face off may run with.
terminology.endpoint.timeout"10s"How long one call may take, connection included.
terminology.endpoint.connect_timeoutnoneHow long opening the connection may take; unset, only the timeout bounds it.
terminology.endpoint.retry.max_attempts3How many times a call is sent at most, the first try included.
terminology.endpoint.retry.initial_backoff"200ms"The wait before the second attempt.
terminology.endpoint.retry.max_backoff"2s"The longest wait between two attempts.
terminology.endpoint.credentials.user""The HTTP Basic user, with terminology.endpoint.credentials.password_file (a secret).
terminology.endpoint.credentials.oauthnoneThe OAuth 2.0 client credentials grant instead of Basic: issuer or token_endpoint, client_id, client_secret_file, scope and the other keys of ferrohealth-smart’s [<lane>.credentials.oauth] table.
terminology.endpoint.tls.client_identity_filenoneThe certificate chain and private key presented for mutual TLS, in one PEM.
terminology.endpoint.tls.trust_roots_filenonePEM certificates trusted for the server’s certificate, beside the platform roots, checked for revocation.
terminology.endpoint.tls.trust_roots_without_revocation_filenonePEM certificates trusted with no revocation check, for a server behind a private PKI that publishes no revocation service.
terminology.endpoint.tls.min_version"1.3"The oldest TLS version spoken, "1.2" to lower it.

A feed whose table values the server cannot translate, because it refuses the call or cannot be reached, is answered AR with no receipt, so the same message is applied when sent again; an ITI-21 query is answered AR the same way. A code the server’s map translates to nothing is left out of the Patient.

[xcpd]

KeyDefaultWhat it sets
xcpd.enabledfalseWhether POST {base}/xcpd answers ITI-55 as the XCPD Responding Gateway.
xcpd.home_community_idnoneThe community’s homeCommunityId, urn:oid: and an OID.
xcpd.devicenoneThe OID of the gateway’s device, the sender of every answer.
xcpd.domainsnoneThe urn:oid: systems of the domains whose identifiers an answer carries; the first a patient holds is its Patient.id.
xcpd.initiating_communities[]The homeCommunityIds of the initiating communities answered; a query from another is answered with Case 5.
xcpd.reply_endpoints[]The URL prefixes an asynchronous request’s ReplyTo may start with, each https, or http on a loopback host.
xcpd.delivery_attempts5The most attempts to post one asynchronous answer.
xcpd.delivery_initial_backoff"1s"The wait before the first retry.
xcpd.delivery_max_backoff"1min"The longest wait between two attempts.
xcpd.delivery_timeout"10s"How long one attempt may take.
xcpd.tls.client_identity_filenoneThe certificate chain and private key the delivery presents for mutual TLS, in one PEM; or xcpd.tls.client_identity, inline.
xcpd.tls.trust_roots_filenonePEM certificates trusted for a reply endpoint’s server certificate, beside the platform roots, checked for revocation.
xcpd.tls.trust_roots_without_revocation_filenonePEM certificates trusted with no revocation check, for a reply endpoint behind a private PKI that publishes no revocation service.
xcpd.tls.min_version"1.3"The oldest TLS version the delivery speaks, "1.2" to lower it.

A value that is no OID, a domain that is no urn:oid: system, a domain or community listed twice, a reply endpoint that is neither https nor http on a loopback host or that carries userinfo, a zero delivery bound, one of the two client identity files without the other, and an identity or trust file that cannot be read or is empty are refused at load; an identity or trust file that holds no PEM the delivery reads refuses the start. See The XCPD Responding Gateway.

[outbox]

KeyDefaultWhat it sets
outbox.retention"30d"How long a delivered or abandoned outbound message is kept before it is pruned; a pending one is never pruned.
outbox.prune_batch500The most messages one prune deletes in one statement.

The sender prunes once an hour. The server’s database role has no DELETE on the outbox: it calls pix.prune_outbox, which deletes only what the rule allows. A zero value is refused at load.

[audit]

The repository is [audit.endpoint], the endpoint table of ferrohealth-smart, reached through its outbound client.

KeyDefaultWhat it sets
audit.endpoint.url""The FHIR base of the audit repository the BALP records are sent to; https, or plain http under development.
audit.endpoint.timeout"5s"How long one delivery may take.
audit.endpoint.connect_timeoutnoneHow long opening the connection may take; unset, only the timeout bounds it.
audit.endpoint.retry.max_attempts3How many times one delivery round sends a record.
audit.endpoint.retry.initial_backoff"1s"The wait before the second try of a round.
audit.endpoint.retry.max_backoff"1min"The longest wait between two tries, and the wait between two rounds.
audit.endpoint.credentials.user""The HTTP Basic user, with audit.endpoint.credentials.password_file (a secret).
audit.endpoint.credentials.oauthnoneThe OAuth 2.0 client credentials grant instead of Basic, the keys of ferrohealth-smart’s [<lane>.credentials.oauth] table.
audit.endpoint.tls.client_identity_filenoneThe certificate chain and private key presented for mutual TLS, in one PEM.
audit.endpoint.tls.trust_roots_filenonePEM certificates trusted for the repository’s certificate, beside the platform roots, checked for revocation.
audit.endpoint.tls.trust_roots_without_revocation_filenonePEM certificates trusted with no revocation check, for a repository behind a private PKI that publishes no revocation service.
audit.endpoint.tls.min_version"1.3"The oldest TLS version spoken, "1.2" to lower it.
audit.spool_dir"/var/lib/ferropix/audit"The directory the records wait in until they are delivered.
audit.spool_max_size"64MiB"The most the spool holds.
audit.spool_max_events100000The most records the spool holds.
audit.spool_write_timeout"2s"The longest storing one record may take.

serve opens the spool at start and refuses to start when the directory is open to its group or to other users, cannot be written, or holds a file the server did not write. Without audit.endpoint.url the records stay in the spool until you name a repository, and the server warns at start. A request whose record has no room in the spool is refused with 503, as the The audit trail page says.

[operator]

KeyDefaultWhat it sets
operator.enabledfalseWhether the operator API is mounted under {base}/operator, behind the steward and administrator scopes.
operator.admin_scope"__ferropix.admin"The scope of an administrator: a full URI or a string that starts with __, other than the steward scope.

[usage_report]

ferropix serve sends an installation report to FerroPULSE, the FerroHEALTH collector, through ferrohealth-usage-report, the reporter every FerroHEALTH product uses: one report at each start (at most one per ten minutes) and one a day. It is on by default, and the server writes one line at every start saying whether it is on, what it carries and how to switch it off. It stays off when enabled = false (FERROPIX__USAGE_REPORT__ENABLED=false), when no state_dir is set, when that directory cannot be written, and when the environment sets GITHUB_ACTIONS or CI to true or 1.

A report carries:

  • a random instance id, kept in state_dir/instance-id so a restart is not a new installation;
  • the version, the commit, the licence type (non-commercial), the deployment you set, the uptime, and the CPUs and memory as ranges;
  • the profile, the services you switched on (hl7v2, operator, pdqm, pixm, pmir), the number of identifier domains as a range (0, 1-2, 3-5, 6-10, 11-50, 51+), and whether the store and the audit spool were ready;
  • once a day, the request count as a range, latency per route group (metadata, pix_query, pix_feed, pdq_query, pdq_match, pmir_feed, pmir_subscription, operator, hl7v2, other) with the server errors of each, and the counts of 4xx answers and of HL7 v2 messages answered AE or AR, each left out while it is zero.

It never carries an identifier, a patient’s data, a domain’s system or name, a host name, a URL or a request path: a request is counted by the route template it matched, and the health and metrics routes are not counted.

KeyDefaultWhat it sets
usage_report.enabledtrueWhether the installation report is sent.
usage_report.endpoint"https://report.ferropulse.eu/v1/report"The collector; https, or plain http to a loopback host, with no credentials.
usage_report.state_dirnoneThe writable directory the instance id lives in; without it the report stays off.
usage_report.deployment"unknown"How the server was deployed: "compose", "helm", "binary" or "unknown".

[dev]

The development profile only.

KeyDefaultWhat it sets
dev.loopbacktrueWhether every listener must bind a loopback address.

The crates

What you configure in your own code is the crates: which features you compile, and how you build each client.

Features

Every profile and function is a feature, and none is on by default.

CrateFeaturesPages
ihe-itipixm, pdqm, pmir, mcsd, xcpd, soap, rest, outbound, and the audit records balp (with a FHIR profile) and atna (with xcpd)ihe-iti
nl-generic-functionsnvi, mitz, lrza and nuts-authnl-generic-functions

Building a client

The settings below hold for every HTTP client of both crates. The API reference on docs.rs has each constructor and builder method.

SettingWhereWhat to give it
The endpoint tablethe constructor, as the OutboundClient of ferrohealth-smart built from itIts url is the FHIR base of the Manager, Supplier, Registry or directory, or the SOAP endpoint of Mitz or an XCPD gateway; its userinfo, if any, is shown as *** in Debug. It carries the TLS and the mutual TLS identity where the profile asks for one (XCPD, Mitz), the timeouts, the retry table and the credential, and follows no redirect.
A timeout per exchangeeach call, as a DurationThe bound of the whole exchange; with an audit feature it bounds the audit record as well.
Access tokensthe table’s credentialsHTTP Basic, or the client credentials grant whose token each request carries (IUA ITI-72); see Security.
The audit recorder.audited(…), with balp or atnaThe recorder that routes each record to your audit repository; see The audit trail.
The PIXm invocation.invoked_by(Invocation::Post)POST, as every FerroHEALTH client calls a Manager, so the identifier stays out of the URL; leave the GET default only for a Manager that refuses the POST form (Lookups use POST).
The mCSD budgetbudget::BudgetThe deadline and the caps on pages, bytes and entries of one walk; by default 200 pages, 64 MiB and 50,000 entries.

Command-line reference

Audience: operators. Every command and option of the ferropix and ferropix-console binaries, as <binary> <command> --help prints it. Configuration describes the configuration every command reads, and a refused configuration exits 78 (EX_CONFIG).

The server

ferropix

The FerroPIX Master Patient Index over IHE PIXm, PDQm, PMIR, XCPD and the HL7 v2 PIX and PDQ transactions

Usage: ferropix [OPTIONS] <COMMAND>

Commands:
  serve        Serves until the process is asked to stop
  config       Works on the configuration
  healthcheck  Asks the server running beside this process whether it is ready, and exits 0 only when it is
  db           Works on the database
  matching     Works on the matching
  help         Print this message or the help of the given subcommand(s)

Options:
      --config <PATH>
          The TOML configuration file; unset, the product's `_CONFIG` variable names it

      --set <KEY=VALUE>
          One configuration key set over the file and the environment, as `key=value`; repeatable

  -h, --help
          Print help

  -V, --version
          Print version

ferropix serve

Serves until the process is asked to stop

Usage: ferropix serve [OPTIONS]

Options:
      --config <PATH>
          The TOML configuration file; unset, the product's `_CONFIG` variable names it

      --set <KEY=VALUE>
          One configuration key set over the file and the environment, as `key=value`; repeatable

  -h, --help
          Print help

ferropix config

Works on the configuration

Usage: ferropix config [OPTIONS] <COMMAND>

Commands:
  check  Reads the configuration, reports every refusal with its key, and prints the running tree with every secret redacted
  help   Print this message or the help of the given subcommand(s)

Options:
      --config <PATH>
          The TOML configuration file; unset, the product's `_CONFIG` variable names it

      --set <KEY=VALUE>
          One configuration key set over the file and the environment, as `key=value`; repeatable

  -h, --help
          Print help

ferropix config check

Reads the configuration, reports every refusal with its key, and prints the running tree with every secret redacted

Usage: ferropix config check [OPTIONS]

Options:
      --config <PATH>
          The TOML configuration file; unset, the product's `_CONFIG` variable names it

      --set <KEY=VALUE>
          One configuration key set over the file and the environment, as `key=value`; repeatable

  -h, --help
          Print help

ferropix healthcheck

Asks the server running beside this process whether it is ready, and exits 0 only when it is

Usage: ferropix healthcheck [OPTIONS]

Options:
      --config <PATH>
          The TOML configuration file; unset, the product's `_CONFIG` variable names it

      --set <KEY=VALUE>
          One configuration key set over the file and the environment, as `key=value`; repeatable

  -h, --help
          Print help

ferropix db

Works on the database

Usage: ferropix db [OPTIONS] <COMMAND>

Commands:
  migrate  Applies the pending migrations and the `[[domain]]` seed, and exits
  reseal   Rewrites every sealed identifier column under the key `[db] data_key_file` names, reading the old key from its own file
  help     Print this message or the help of the given subcommand(s)

Options:
      --config <PATH>
          The TOML configuration file; unset, the product's `_CONFIG` variable names it

      --set <KEY=VALUE>
          One configuration key set over the file and the environment, as `key=value`; repeatable

  -h, --help
          Print help

ferropix db migrate

Applies the pending migrations and the `[[domain]]` seed, and exits

Usage: ferropix db migrate [OPTIONS]

Options:
      --config <PATH>
          The TOML configuration file; unset, the product's `_CONFIG` variable names it

      --set <KEY=VALUE>
          One configuration key set over the file and the environment, as `key=value`; repeatable

  -h, --help
          Print help

ferropix db reseal

Rewrites every sealed identifier column under the key `[db] data_key_file` names, reading the old key from its own file

Usage: ferropix db reseal [OPTIONS] --old-key-file <PATH>

Options:
      --config <PATH>
          The TOML configuration file; unset, the product's `_CONFIG` variable names it

      --old-key-file <PATH>
          The file holding the key the store is written under now

      --set <KEY=VALUE>
          One configuration key set over the file and the environment, as `key=value`; repeatable

  -h, --help
          Print help

ferropix matching

Works on the matching

Usage: ferropix matching [OPTIONS] <COMMAND>

Commands:
  estimate  Estimates each field's `u` from how often its values occur in the store, and prints them as `[matching.fields]` tables
  help      Print this message or the help of the given subcommand(s)

Options:
      --config <PATH>
          The TOML configuration file; unset, the product's `_CONFIG` variable names it

      --set <KEY=VALUE>
          One configuration key set over the file and the environment, as `key=value`; repeatable

  -h, --help
          Print help

ferropix matching estimate

Estimates each field's `u` from how often its values occur in the store, and prints them as `[matching.fields]` tables

Usage: ferropix matching estimate [OPTIONS]

Options:
      --config <PATH>
          The TOML configuration file; unset, the product's `_CONFIG` variable names it

      --set <KEY=VALUE>
          One configuration key set over the file and the environment, as `key=value`; repeatable

  -h, --help
          Print help

The console

ferropix-console

The FerroPIX Console

Usage: ferropix-console [OPTIONS] <COMMAND>

Commands:
  serve        Serves until the process is asked to stop
  config       Works on the configuration
  healthcheck  Asks the server running beside this process whether it is ready, and exits 0 only when it is
  help         Print this message or the help of the given subcommand(s)

Options:
      --config <PATH>
          The TOML configuration file; unset, the product's `_CONFIG` variable names it

      --set <KEY=VALUE>
          One configuration key set over the file and the environment, as `key=value`; repeatable

  -h, --help
          Print help

  -V, --version
          Print version

ferropix-console serve

Serves until the process is asked to stop

Usage: ferropix-console serve [OPTIONS]

Options:
      --config <PATH>
          The TOML configuration file; unset, the product's `_CONFIG` variable names it

      --set <KEY=VALUE>
          One configuration key set over the file and the environment, as `key=value`; repeatable

  -h, --help
          Print help

ferropix-console config

Works on the configuration

Usage: ferropix-console config [OPTIONS] <COMMAND>

Commands:
  check  Reads the configuration, reports every refusal with its key, and prints the running tree with every secret redacted
  help   Print this message or the help of the given subcommand(s)

Options:
      --config <PATH>
          The TOML configuration file; unset, the product's `_CONFIG` variable names it

      --set <KEY=VALUE>
          One configuration key set over the file and the environment, as `key=value`; repeatable

  -h, --help
          Print help

ferropix-console config check

Reads the configuration, reports every refusal with its key, and prints the running tree with every secret redacted

Usage: ferropix-console config check [OPTIONS]

Options:
      --config <PATH>
          The TOML configuration file; unset, the product's `_CONFIG` variable names it

      --set <KEY=VALUE>
          One configuration key set over the file and the environment, as `key=value`; repeatable

  -h, --help
          Print help

ferropix-console healthcheck

Asks the server running beside this process whether it is ready, and exits 0 only when it is

Usage: ferropix-console healthcheck [OPTIONS]

Options:
      --config <PATH>
          The TOML configuration file; unset, the product's `_CONFIG` variable names it

      --set <KEY=VALUE>
          One configuration key set over the file and the environment, as `key=value`; repeatable

  -h, --help
          Print help

The operator API

The operator API is what the operator console reads: the dashboard, the two searches, a person with everything the index holds about them, the identifier domains, the sources, the matching configuration and the audit trail. It is mounted under {base}/operator when [operator] enabled = true, and every route needs a bearer token with a product scope (Security). No specification governs the API; its shape is FerroPIX’s own design.

The documents are JSON, defined once in the ferropix-operator-api crate that the server writes and the console reads, so the two cannot drift apart. Every answer carries Cache-Control: no-store. A refusal is an RFC 9457 problem, application/problem+json, whose detail never quotes the request; Problem types lists every type with what to do about it.

Routes

RouteScopeAnswers
GET /operator/overviewstewardThe dashboard: the open queue, the records created and linked in the last 24 hours, the versions fed today, the subscriptions in error, the queue depth over 30 days, the feeds per hour by channel over 24 hours and the five oldest candidates.
GET /operator/dependenciesstewardThe readiness document with the last outcome of every upstream (Operations).
POST /operator/search/identifierstewardThe persons one identifier is cross-referenced to.
POST /operator/search/demographicsstewardThe persons the scorer finds for the fields you know, the most likely first, each with its score and grade.
GET /operator/persons/{id}stewardOne person: the identifiers per domain, masked; the source records with their demographics; the history; the pseudonyms, masked.
POST /operator/persons/{id}/revealstewardOne identifier or pseudonym of the person unmasked, with your reason: a privacy disclosure.
GET /operator/domainssteward or administratorA page of identifier domains by system, with their record count and last feed.
GET /operator/domains/{id}steward or administratorOne domain with its last 20 feeds: time, channel, and whether the feed created or revised a record.
POST /operator/domainsadministratorA new identifier domain.
PATCH /operator/domains/{id}administratorA domain renamed, given another Source, or retired.
GET /operator/pseudonym-domainssteward or administratorEvery pseudonymisation domain by namespace, with its consumer and the pseudonyms minted in it.
POST /operator/pseudonym-domainsadministratorA new pseudonymisation domain whose namespace no identifier domain holds.
PATCH /operator/pseudonym-domains/{id}administratorA domain renamed, given another consumer, or retired, with your reason.
POST /operator/pseudonymsstewardMints the person’s pseudonym in a domain when its survivor has none, and says whether it did; the value is shown by a reveal.
POST /operator/pseudonyms/resolvestewardThe person a pseudonym resolves to, through the merge chain, with your reason: a privacy disclosure.
GET /operator/sourcessteward or administratorEvery system allowed to feed: each FHIR client an issuer lists in its clients and each [[hl7v2.senders]] entry, with its channel, how it is admitted, the domains that name it and its last activity.
GET /operator/sources/{id}steward or administratorOne source with its last 20 messages: time, channel, what it asked and its outcome (applied, or the HL7 v2 acknowledgment code). An HL7 v2 sender’s id is its facility and application joined by ..
GET /operator/matchingsteward or administratorThe thresholds, automatic linking, the blocking keys and every field’s weights in effect, the configured ones marked.
GET /operator/configurationsteward or administratorThe matching configuration in file mode: the thresholds, the weights, the blocking keys and the built-in deterministic rules, each setting with where its value came from (file, environment, default, built_in) and the file named once.
GET /operator/candidatesstewardA page of 50 of the review queue: the open candidates and the deferred ones whose day has come, the grade first, then the score, then the age, each with the two records’ domains, leading names and birth dates. grade, domain (a system), older_than_days and deferred=true (the deferred candidates whose day has not come) filter it, offset pages it.
GET /operator/candidates/{id}stewardOne candidate: the score, the grade and the evidence of every field, the two records at the versions the score was computed on with their persons’ identifiers masked, the thresholds, whether a link merges two persons, and the candidates before and after it in the queue.
POST /operator/candidates/{id}/decidestewardYour decision with the two versions you read and your reason: link, not-a-match, or defer with an until day after today.
GET /operator/merges/previewstewardThe whole effect of merging merged into survivor, or of reverting the merge revert, written nowhere: both persons with their versions, the identifiers that move (masked), the pseudonyms that resolve to the other person, the PMIR subscriptions told and the candidates the merge closes; for a revert, the reason the merge was made and the later merge to revert first, when there is one.
POST /operator/mergesstewardMerges merged into survivor with both versions you read and your reason.
POST /operator/merges/{id}/revertstewardReverts the merge with the survivor’s version you read and your reason.
GET /operator/actionsstewardA page of the audit trail, the newest first.
POST /operator/actions/exportstewardThe same filter answered as CSV.

Every route in the table is served: the server refuses to start when a row of the guard’s table has no handler, and names the row.

Deciding a candidate

A decision names the versions of both records you read. When the candidate was decided by someone else, or a feed changed either record since, the server answers 409 and decides nothing: read the candidate again and decide on what it says now. A link of two records in two persons merges the persons, the older surviving, and every candidate between them closes as linked. A not-a-match keeps the pair out of the queue until either record’s demographics change; a feed that changes only an identifier leaves it out. A defer takes the pair out of the queue until the day you name, when it comes back in its place. Nothing a decision does deletes a row.

Merging and unmerging

Read the preview first: it names both persons with their versions, and a merge or a revert carries those versions back. When either person changed since, a link opened or closed or a record fed, the server answers 409 and changes nothing: read the preview again. A merge moves every record of the merged person onto the survivor and closes the candidates between the two as linked. Only the latest merge into a survivor can be reverted, so merges unwind in order: a revert of an earlier one is 409, and its preview names the merge to revert first. A revert moves the records back and makes the merged person active again; the merge row stays, marked reverted.

Identifiers stay off the URL and out of the answer

A search that carries an identifier is a POST with a JSON body, so the value never sits in a URL, a proxy log or a browser history; a GET on a search route answers 405. A body is read only as application/json (415 otherwise), and a body that is not the route’s document answers 400 without saying which value failed.

An identifier in an answer is masked: a • for every character but the last three, and never more than half of the value shown (••••••123). The server opens a sealed identifier only to mask it, and the unmasked value does not leave the server. The one identifier a URL carries is the person id FerroPIX minted.

Revealing an identifier

POST /operator/persons/{id}/reveal takes the handle the person document gave the identifier or pseudonym, your reason and how long the console should show the value:

{"target": {"record": "0192..."}, "reason": "the patient asked at the desk", "seconds": 15}

The target is {"record": id} for a record’s own identifier, {"carried": id} for an authoritative identifier the person’s records carry, or {"pseudonym": domain-id} for the person’s pseudonym in a pseudonymisation domain. It must belong to the person: any other answers 404. The reason is required, at most 500 characters (400 otherwise).

A reveal is a privacy disclosure. The server writes a reveal steward action, naming you, the person, the record and the domain but never the value, and a BALP Privacy Disclosure record (BALP 1.1.4 §3:5.7.7) with the person as its subject and your reason as a detail, in one transaction. Only once both are stored does it answer the value, once, with Cache-Control: no-store, beside the domain’s system and the seconds to show it: 15 by default, never more than 30. Looking again is another reveal. The value never reaches a log line.

Writing identifier domains

Behind the administrator scope, POST /operator/domains adds a domain:

{"system": "urn:oid:2.999.1.9", "name": "Clinic", "kind": "local", "identifier_type": "PI", "source_client_id": "clinic-feed", "reason": "a new clinic"}

The system is an absolute URI no other domain holds (409 otherwise), the kind is local or authoritative, identifier_type is one of the codes [[domain]] takes (see the configuration reference), sensitive defaults to true, and the Source must be a client a [[trust.issuer]] lists in its clients (422 otherwise); a Basic user is never one. The answer is 201 with the domain.

PATCH /operator/domains/{id} takes name, source_client_id and retire, any of them, and a required reason. A retired domain answers as unknown everywhere and stays retired: a change to it answers 409. Each write is a domain-create or domain-update steward action with a BALP record, and the guard takes the new Source the moment the write commits: the new Source can feed at once, and the old one is refused.

Searching

POST /operator/search/identifier takes {"system": "...", "value": "..."}. The value is normalised by its domain’s rule and found by its HMAC, as a PIX query finds it, so no sealed value is opened to search. An authoritative identifier that no Source feeds, such as a BSN the records carry, finds the persons whose current records carry it; when two persons carry it, both are listed. A domain the index does not know, or has retired, answers 422.

POST /operator/search/demographics takes any of family, given, birth_date, gender and postal_code, at least one, and runs the scorer over the blocking keys as $match does (Matching).

Both take offset and limit (20 by default, at most 50) and answer total, offset, next when more persons follow, and the persons of the page.

Paging

Every list is bounded. The domains page by system: pass the next of one page as after for the following one (limit 50 by default, at most 200). The trail pages the same way by action id (50 by default, at most 200). An export answers at most 10,000 actions and, when more follow, names the after of the rest in its x-ferropix-next header.

The audit trail

GET /operator/actions filters by actor, kind, person (a person id), from and to (RFC 3339 instants), each in the query; the actor is a steward or a Source’s client id, never a patient value. Each action names its kind, who acted, when, the person, record, candidate or merge it concerns, the reason given and the request id. The kinds the feed records are feed, link, merge, candidate, remove and resolve-duplicate; the operator API adds view, reveal, export, domain-create and domain-update. An action names the identifier domain it wrote or whose identifier it revealed, and the pseudonymisation domain whose pseudonym it revealed.

POST /operator/actions/export takes the same filter as a JSON body and answers text/csv as an attachment. A cell a spreadsheet would read as a formula starts with '.

What each route records

RouteSteward actionBALP record
GET /operator/persons/{id}viewPatient Read
either searchnoneone Patient Query record per person found, or one Query record when none was, with the raw request
POST /operator/persons/{id}/revealrevealPrivacy Disclosure at the source
POST /operator/actions/exportexportan Export event
GET /operator/candidatesnoneone Patient Query record per person the page shows, with the raw request
GET /operator/candidates/{id}nonea Patient Read of each of the two persons
POST /operator/candidates/{id}/decidelink, not-a-match or defer, with your reasona Patient Update of the person the records end in
GET /operator/merges/previewnonea Patient Read of each of the two persons
POST /operator/mergesmerge, with your reasona Patient Update of the survivor
POST /operator/merges/{id}/revertunmerge, with your reasona Patient Update of the person the revert reactivates
POST and PATCH /operator/domainsdomain-create, domain-updatea create or update of the domain, naming no patient

The server stores the BALP record before it sends the answer, and answers 503 with the problem audit-unavailable when it cannot. A search writes no steward action: its BALP record is the trail. The dashboard, the domain and source reads, the matching configuration and the trail name no patient and record nothing.

Sources and configuration are set in the file

FerroPIX keeps no configuration store. A source is admitted by the file: an issuer’s clients or an [[hl7v2.senders]] entry. The matching settings are read from [matching] at start. So the operator API shows both read-only, and you change them in the file; a change takes effect at the next start. An environment variable FERROPIX__… wins over the file, and the configuration document says which setting it set.

Problem types

FerroPIX answers every error outside its FHIR and IHE routes as problem details, the JSON document of RFC 9457, with the media type application/problem+json. That covers the operator API, the health and metrics routes, and the refusals the server’s HTTP stack writes itself on those routes: a handler past its timeout (503, RFC 9110 §15.6.4), a body that had not arrived when the timeout ran out (408, which RFC 9110 §15.5.9 keeps for a request the server did not receive in full), a body over the limit (413), a server at its request limit (429 or 503) and a handler that failed (500). The FHIR face under {base}/fhir keeps the FHIR OperationOutcome that FHIR R4 prescribes, and the XCPD gateway keeps its SOAP answers.

A problem looks like this:

{
  "type": "https://ferropix.eu/docs/operate/problems.html#stale",
  "title": "What the request was decided on changed since it was read",
  "status": 409,
  "detail": "the candidate was decided or a record changed since it was read; reload it"
}
  • type names the problem type. Each FerroPIX type is a link to its section on this page. about:blank means the status code says all there is to say, and title is then the status phrase, such as Payload Too Large.
  • title is the type’s summary, the same for every occurrence.
  • status is the HTTP status of the answer.
  • detail says what to correct, in a fixed sentence.
  • instance, on a refusal of the stack and a failed handler, is the server’s request id as a urn:uuid: URI, the id the request log names.

A problem never quotes the request: no identifier, pseudonym, name, query value, token or path segment you sent appears in it, so a problem is safe to show and to log. The X-Request-Id header of the answer names the request when you report it. Every problem answer carries Cache-Control: no-store.

The types

TypeStatusTitle
invalid-request400The request is not what this route reads
reason-required400The request states no reason, or one longer than 500 characters
unauthenticated401The request carries no valid access token
not-permitted403The access token does not permit this request
not-found404What the request names does not exist
stale409What the request was decided on changed since it was read
later-merge409A later merge of the survivor has to be reverted first
retired409The domain is retired
already-held409Another domain holds this system or namespace
unknown-domain422The identifier domain is unknown or retired
source-not-admitted422No issuer lists this Source among its clients
store-unavailable503The cross-reference store could not be read
audit-unavailable503The audit record of the request could not be stored
authorization-unavailable503The access token could not be checked

A 413 for a body larger than the server reads, a 415 for a body that is not application/json and a 500 are about:blank problems.

invalid-request

The request body is not the JSON document the route reads, the query names a parameter or a value the route does not read, or a field breaks a rule of the document: a domain without an absolute URI as its system, a merge that does not name two different persons, a demographics search with no field, a deferral without a day after today. The detail names the rule and never the value that broke it. Correct the request and send it again.

reason-required

A candidate decision, a merge or a revert, a domain change, a reveal or a pseudonym resolution states no reason, or one longer than 500 characters. State why, in at most 500 characters.

unauthenticated

The request carries no access token, or one the server does not accept: expired, signed by an issuer it does not know, or addressed to another audience. The answer carries a WWW-Authenticate challenge. Get a token from the authorization server (Security).

not-permitted

The token is valid but its scopes do not admit the route: an operator route needs the steward scope, the administrator scope, or either, as the route table says. The challenge names insufficient_scope.

not-found

The id in the path names no person, identifier domain, pseudonymisation domain, candidate, merge or source, or the handle of a reveal names nothing the person holds, or a pseudonym resolves to no person. An id that is not a UUID is answered the same way.

stale

A candidate decision, a merge or a revert names versions of the records or persons that are no longer current: someone else decided the candidate, a feed changed a record’s demographics, or a merge moved a person since you read it. Nothing was changed. Read the candidate or the preview again and decide on what it says now.

later-merge

Only the latest merge into a survivor can be reverted. The revert preview names the later merge; revert that one first.

retired

The identifier domain or the pseudonymisation domain is retired, and a retired domain stays as it was retired: it takes no change and mints no pseudonym.

already-held

Another identifier domain holds the system, or another pseudonymisation domain or an identifier domain holds the namespace. Choose another, or change the domain that holds it.

unknown-domain

An identifier search names a system that no identifier domain holds, or whose domain is retired.

source-not-admitted

A domain write names a Source that no [[trust.issuer]] lists among its clients; a Basic user is never one. Admit the client in the configuration first (Configuration).

store-unavailable

The server could not read or write the PostgreSQL cross-reference store. Nothing was changed. The readiness route names the store’s state (Operations); send the request again once it is up.

audit-unavailable

The BALP audit record of the request could not be stored, so the server did not process the request: a read is not answered and a change is not made when it cannot be audited. A write’s record is kept in its own transaction, so a change whose record could not be kept was rolled back. The readiness route names the audit spool’s state (Operations).

authorization-unavailable

The server could not check the token, because the authorization server could not be read. Send the request again later.

Conformance and specification pins

The specifications are the authority for every transaction, parameter, status and acknowledgment FerroPIX handles: the IHE ITI Technical Framework (Volumes 1 and 2), the IHE PIXm, PDQm and PMIR implementation guides, HL7 FHIR R4, and the HL7 v2 PIX and PDQ transactions. Where none of them governs a decision, the code says so and names the decision as FerroPIX’s own design.

The specification versions

These are the versions the crates implement. The table is read from the repository’s pin matrix, docs/VERSIONS.md, when the book is built, so it cannot disagree with it.

ItemVersionTransactions
IHE PIXmihe.iti.pixm 3.1.0ITI-83 Mobile Patient Identifier Cross-reference Query, ITI-104 Patient Identity Feed FHIR
IHE PDQmihe.iti.pdqm 3.2.0ITI-78 Mobile Patient Demographics Query, ITI-119 Patient Demographics Match
IHE PMIRihe.iti.pmir 1.6.0ITI-93 Mobile Patient Identity Feed, ITI-94 Subscribe to Patient Updates
IHE mCSDihe.iti.mcsd 4.0.0ITI-90, ITI-91 (a feature of ihe-iti)
IHE XCPDITI Technical Framework Vol 2 Rev 20.1 (2024-12-12), no FHIR packageITI-55 (a feature of ihe-iti)
IHE IUAITI Technical Framework Supplement Rev 2.5 (2026-06-18)ITI-71, ITI-72 (a feature of ihe-iti)
Netherlands Generic Functionsfhir.nl.gf 0.3.0the functions of nl-generic-functions
IHE ITI Technical FrameworkVolumes 1 and 2, each page pinned by sha256 in the corpus table; the ITI-8, ITI-9 and ITI-10 pages state Revision 20.0, ITI-21 Revision 20.2 and ITI-22 Revision 20.1PIX and PDQ: ITI-8, ITI-9, ITI-10, ITI-21 and ITI-22, and ITI-44 to ITI-47 as the TF-2 texts decide, with the actors and options of each
HL7 FHIRR4, 4.0.1the resources and the RESTful API PIXm and PDQm are profiled on
HL7 v2the version each PIX or PDQ transaction names in ITI TF-2the HL7 v2 PIX and PDQ transactions, where in scope

The toolchain

ItemPinRepeated in
Rust toolchain1.99.1rust-toolchain.toml
Minimum supported Rust version1.98Cargo.toml [workspace.package] rust-version
Edition2024Cargo.toml [workspace.package] edition, rustfmt.toml

The minimum supported Rust version is one minor release below the toolchain the repository builds with, the FerroHEALTH family’s rule.

How conformance is held

  • Every citation is checked against the vendored text. The specification texts the crates read are vendored under docs/specs/ at pinned versions, each with a PROVENANCE.md, and the ihe-citations check in CI holds every IHE section the tree cites to the vendored text of that profile and version. The ITI TF-2 texts of the HL7 v2 transactions (ITI-8, ITI-9, ITI-10, ITI-21 and ITI-22) reproduce HL7 tables whose rights HL7 reserves, so they are pinned by checksum and fetched into a local cache by the vendor script, never committed: a citation of one is checked when a local run has fetched it, and counted otherwise.
  • Each answer is held to its profile. The clients refuse an answer that departs from the transaction: a PIXm $ihe-pix answer is held to its OperationDefinition, a PDQm search to the Query Patient Resource Response Message profile, an ITI-93 feed message to the PMIR profiles. The crate pages say what each client checks.
  • An unknown patient is never an outage. A 404 reads as “patient unknown” only when its OperationOutcome carries a not-found issue, as PIXm and PDQm define it; every other failure is a typed error.
  • Each feature builds and tests on its own. CI lints and tests every feature of both crates alone and with its audit feature, as well as all of them together.

The conformance gate

The corpus tests of ihe-iti read and write every example the vendored implementation guides ship, and scripts/checks/conformance.sh holds each corpus to its committed pass list. A failing example stays in the list as failing, with its reason, so the count shows what is not met. Each corpus renders the shields.io badge the README shows.

CorpusWhat each example goes through
PIXm 3.1.0An ITI-83 request read by the Manager in JSON and XML, an answer read by the client and written by the Manager, the not-found answer both ways, and each Patient read as the ITI-104 conditional update its first identifier names.
PDQm 3.2.0An ITI-78 answer and each ITI-119 answer read by the client and written by the Supplier, each $match input read by the Supplier, and each Patient read from a search answer and written as a retrieve.
PMIR 1.6.0Each ITI-93 message read by the Consumer as the changes it names, the response written by the Consumer, the ITI-94 request written and a Subscription’s status read by the subscriber.
Audit recordsEach AuditEvent example against the record ihe-iti writes for that exchange, held to the example’s audit profile, the BALP pattern beneath it and the example itself. The Manager and Supplier records are written by the server, so they count as failing here.

Run scripts/checks/conformance.sh to compare, --update to rewrite the lists, the badge files and the README badge block after a change, and --check for what CI runs: a listed pass that stops passing fails every mode, and under --check so does a new pass, a moved total or a changed reason.

The server’s conformance statement

GET {base}/fhir/metadata answers the server’s CapabilityStatement, in FHIR JSON or XML, with no token. Its instantiates names the IHE actor statements of the services you switch on:

ServiceInstantiates
[pixm]https://profiles.ihe.net/ITI/PIXm/CapabilityStatement/IHE.PIXm.Manager
[pdqm]https://profiles.ihe.net/ITI/PDQm/CapabilityStatement/IHE.PDQm.PatientDemographicsSupplier and …/IHE.PDQm.PatientDemographicsSupplierMatch
[pmir]https://profiles.ihe.net/ITI/PMIR/CapabilityStatement/IHE.PMIR.PatientIdentityRegistry, when [pixm] and [pdqm] are on too, since that statement asks for $ihe-pix and the Patient read and search. With [pmir] on, the statement declares the ITI-93 message as sender (to each subscriber) and as receiver (from the Source), and the Subscription resource of ITI-94

implementation.description names the IHE actors the instance serves. Each resource entry names its profile, interactions, search parameters and operations, next to the security service and the scopes the permission table enforces, and GET {base}/fhir/.well-known/smart-configuration lists the same scopes. The pages under Integrate say what each transaction reads and answers, case by case, with the section of the profile behind each answer.

The published texts

Licensing

FerroPIX, its two published crates and this book are source-available under the Business Source License 1.1. The parameters that apply (the Licensor, the Licensed Work, the Additional Use Grant and the Change Date) are in the repository’s LICENSE:

  • free to read, build, modify and redistribute;
  • free for every non-production use and for non-commercial production use;
  • a commercial licence for any other production use;
  • Apache License 2.0 four years after each version is published.

Every FerroHEALTH product shares these terms, and the family book’s Licensing and trademarks page explains them once for all of them, with what counts as a hosted service and the trademarks.

A commercial licence is arranged with Cadasto B.V., the Licensor: info@cadasto.com or https://www.cadasto.com/contact/. Technical questions go to the maintainer named in MAINTAINERS.md.

The crates

ihe-iti and nl-generic-functions each ship the licence in their package. A product that depends on them takes them under the same terms.

The brand assets

The logos and icons under assets/brand/ are part of the Licensed Work.

Vendored material

The specification texts under docs/specs/ keep their upstream terms, each recorded in the PROVENANCE.md beside the text. A text whose licence keeps it out of a public repository is fetched at build time and never committed.

Contributions

A contribution is licensed under the same terms, and grants the Licensor the relicensing right in CONTRIBUTING.md. The pull request’s checkbox records it. There is no separate agreement to sign.

What FerroPIX is

FerroPIX is a Master Patient Index. It holds the patient identity cross-reference of a group of systems: which identifier each identifier domain (a hospital’s patient number, a national number such as the BSN, a regional index) uses for one person. A system that knows a patient by one identifier asks FerroPIX for the others, or finds a patient by their demographics, and each domain’s one Patient Identity Source keeps its own identifiers current.

Records become one person in three tiers: an identifier in an authoritative domain links two records on its own, a probabilistic scorer grades the remaining pairs, and a data steward decides the pairs the scorer is unsure of (Matching). Every merge can be reverted, and the store keeps the history of every record.

FerroPIX also mints pseudonyms: one per patient and pseudonymisation domain, so a clinical store names a patient by a value that identifies no one on its own, and only the steward resolves it back (Pseudonyms). How FerroPIX manages patient identity explains the model behind both, and which of its rules are the IHE profiles’ and which are FerroPIX’s own.

What it implements

Each row is served by the server on main. The section is the one of the pinned specification that governs the transaction (Conformance and specification pins).

CapabilityTransactionsSpecificationPage
PIXm Patient Identifier Cross-reference ManagerITI-83 by GET and by POST of a Parameters body, ITI-104 with the Remove Patient OptionPIXm 3.1.0 §2:3.83, §2:3.104The PIXm Manager
PDQm Patient Demographics Supplier, with the Match Operation OptionITI-78 search and read, ITI-119 $matchPDQm 3.2.0 §2:3.78, §2:3.119The PDQm Supplier
PMIR Patient Identity RegistryITI-93 received and sent, ITI-94PMIR 1.6.0 §2:3.93, §2:3.94The PMIR Registry
HL7 v2 Patient Identifier Cross-reference Manager and Patient Demographics SupplierITI-8, ITI-9, ITI-10 and ITI-21 over MLLPITI TF-2 §3.8, §3.9, §3.10, §3.21The HL7 v2 face
XCPD Responding GatewayITI-55, synchronous and asynchronousITI TF-2 §3.55The XCPD Responding Gateway
Pseudonym mintinga UUID per patient and pseudonymisation domain, answered through ITI-83no specification governs the pseudonym: FerroPIX’s own designPseudonyms
The BSN and the pseudonymised BSNidentifier domains under the naming systems of the Dutch Generic Functionsthe Netherlands Generic Functions guide, fhir.nl.gfThe Dutch identifiers
AuthorizationSMART and OAuth 2.0 access tokens on every request, with the IUA scope of each transactionIUA ITI-72 §3.72, RFC 9068Security
Audita BALP AuditEvent for every transaction and every steward action, sent over the FHIR feedBALP 1.1.4, each profile’s audit sectionThe audit trail
The data steward’s toolsthe review queue, search, the patient record, merge and unmerge, domains, sources and the audit trailno specification governs them: FerroPIX’s own designThe operator console, The operator API

The HL7 v2 face does not answer ITI-22, the demographics and visit query: FerroPIX keeps no visit data. The XCPD gateway does not offer the Deferred Response Option. Each page says what its transaction refuses.

FerroPIX also publishes the client sides of these profiles, and of mCSD (ITI-90, ITI-91), as the crate ihe-iti, and the Dutch Generic Functions (NVI localization, Mitz consent, LRZa addressing and Nuts authentication) as nl-generic-functions. The server is built on both.

What you run

PartWhat it is
The server, ghcr.io/ferrohealth/ferropixOne static Linux binary, ferropix, on a distroless base, for amd64 and arm64. It serves the FHIR face, the operator API and the XCPD gateway over HTTP, and the HL7 v2 face over MLLP.
The console, ghcr.io/ferrohealth/ferropix-consoleThe data steward’s web console, its own binary and image, a client of the server’s operator API that keeps no patient data.
The Helm chart, oci://ghcr.io/ferrohealth/charts/ferropixThe server and, when you switch it on, the console, on Kubernetes.
compose.yamlThe quickstart: the server beside PostgreSQL and a development issuer, with the console and a terminology server as profiles.

Beside them you run PostgreSQL 19, an OAuth 2.0 authorization server whose tokens FerroPIX reads, an audit repository that takes the BALP records, and, for the HL7 v2 face, a FHIR terminology server (Deployment). Releases are built at SLSA Build Level 3 with signed provenance and SBOMs.

Where it sits in the family

The FerroHEALTH products reach each other only over published protocols, and FerroPIX is the one that owns patient identity:

  • FerroEHR, the openEHR clinical data repository, finds a patient’s EHR through a PIXm Manager when its subject index is pixm: its EHR_STATUS names the patient by the pseudonym FerroPIX minted in the clinical domain. Its compose quickstart and its Helm chart run FerroPIX.
  • FerroFED, the federation gateway, resolves the patients of a cross-site query through a PIXm Manager, and takes ihe-iti and nl-generic-functions from crates.io. Its quickstart runs FerroPIX.
  • FerroBRIDGE provides the HL7 v2 parser, MLLP codec and v2-to-FHIR maps the HL7 v2 face reads with, and FerroTERM is the terminology server those maps translate table values on.
  • FerroSMART provides ferrohealth-smart, the resource server that checks every token, and FerroAUDIT provides ihe-atna, the audit trail the BALP records travel on.

What FerroPIX is not

  • It holds no clinical data. Compositions, observations and documents stay in the clinical repository; FerroPIX holds identifiers, the demographics a match needs, and the links between them.
  • It is no audit repository. It writes its records and sends them to the repository you run.
  • It is no authorization server. Access tokens come from the issuer you run, and FerroPIX never forwards a caller’s token.
  • It calls no BSNk pseudonymisation service. A pseudonymised BSN is fed to it like any other identifier (The Dutch identifiers).

How FerroPIX manages patient identity

Audience: integrators, operators and decision makers who want the model behind the transaction pages: what FerroPIX stores about a patient, where each part comes from, and which rules are the IHE profiles’ and which are FerroPIX’s own.

The pages under Integrate say what each transaction reads and answers. This page explains why they agree with each other: every face reads and writes one cross-reference, and one person in it is what each of them names.

The cross-reference

Every organisation numbers its patients in its own way. An identifier domain is one such numbering: the system of a FHIR identifier, the assigning authority of an HL7 v2 identifier. FerroPIX holds what each domain said about each patient and which of those statements describe one person. Four things make up that record:

  • An identifier domain, with a kind. local is a system’s own numbers, such as a hospital’s patient number. authoritative is a number issued to one person only, such as the BSN, so two records that carry it are that person. master is FerroPIX’s own, the Master Patient Identification Domain of PMIR, whose system is the server’s public_base_url.
  • A source record: one domain’s identifier for one patient, with the demographics its Source sent. A feed writes a new version of the record and never overwrites the last one.
  • A person: the records FerroPIX holds to be one patient. It is the Patient Master Identity of PMIR (PMIR 1.6.0 §1:49.1.1.1) and the Patient every FHIR transaction answers with.
  • A link: one record joined to one person for a period, with the reason it was made (a feed, an authoritative identifier, the scorer, a steward, the Source, a merge). A link is closed when it ends, never deleted, so the store holds every past state of the cross-reference.
flowchart LR
    subgraph hospital["Domain: hospital (local)"]
        r1["Record H-100001"]
    end
    subgraph clinic["Domain: clinic (local)"]
        r2["Record C-77"]
    end
    subgraph bsn["Domain: BSN (authoritative)"]
        r3["Record 999990007"]
    end
    r1 -- "link: feed" --> p(("Person"))
    r2 -- "link: deterministic" --> p
    r3 -- "link: deterministic" --> p

How the store keeps these is no specification’s: PIXm fixes what the Manager answers and what a feed does, and leaves how it holds the cross-reference to the Manager (PIXm 3.1.0 §2:3.104.4.1.3). The model above, with its write-once versions and closed links, is FerroPIX’s own design.

Where identities come from

Each domain has exactly one Patient Identity Source, the one client allowed to add, revise, merge and remove the domain’s identifiers: PIXm requires that a Manager “shall only recognize a single Patient Identity Source per domain” (PIXm 3.1.0 §2:3.104.4.1.3). FerroPIX names that client in the domain’s source_client_id, and refuses a feed from any other with 403 (§2:3.104.5). A Source reaches FerroPIX on one of three channels, and all three land in the same transaction:

ChannelTransactionWho sends it
FHIRITI-104 Patient Identity Feed FHIR (PIXm 3.1.0 §2:3.104)the Source of a local or authoritative domain, with a client credentials token
HL7 v2ITI-8 Patient Identity Feed (ITI TF-2 §3.8)the sender [[hl7v2.senders]] names for the domain
PMIRITI-93 Mobile Patient Identity Feed (PMIR 1.6.0 §2:3.93)the Source of the master domain

An identifier a fed Patient carries in another domain FerroPIX knows, such as the BSN on a hospital’s record, is kept beside the record as a carried identifier: it can link the record and be asked about, but only its own domain’s Source can feed it as a record. A system that only asks holds no Source role at all.

flowchart LR
    s1["Hospital Source"] -- "ITI-104" --> feed["One feed transaction"]
    s2["Lab system"] -- "ITI-8 over MLLP" --> feed
    s3["Master domain Source"] -- "ITI-93" --> feed
    feed --> store[("Cross-reference<br/>PostgreSQL")]
    feed --> audit["Its BALP record,<br/>in the same commit"]
    feed --> out["Its ITI-93 and ITI-10<br/>messages, in the same commit"]

How records become one person

When a feed commits, FerroPIX decides whether the record is a patient it already holds, in three tiers (Matching):

  1. An authoritative identifier links. Two records whose current versions carry the same identifier in an authoritative domain are one person, unless their birth year or stated gender disagree. A local value never links across domains: two hospitals that both number a patient 12345 say nothing.
  2. The scorer grades the rest. The demographics of the new version are scored against the records that share a blocking key with it, and each pair is graded certain, probable, possible or certainly-not.
  3. A data steward decides. A graded pair waits in the review queue, and only a steward links it, unless [matching] auto_link lets a certain pair link on its own.

No IHE profile governs this: PIXm places the cross-referencing outside its scope (§2:3.104.4.1.3), and PDQm asks only that a match carry a score and a grade (PDQm 3.2.0 §2:3.119.4.2.2.4). The three tiers are FerroPIX’s own design.

What each face answers

Every face reads the same persons, so a v2 feed and a FHIR query of the same patient agree:

  • PIXm ITI-83 answers the identifiers of the person a source identifier belongs to, in the domains asked for, and the person as targetId (PIXm 3.1.0 §2:3.83.4.2.2.1). HL7 v2 ITI-9 answers the same set (The PIXm Manager).
  • PDQm ITI-78 and ITI-119 search and score the persons by their demographics, and HL7 v2 ITI-21 searches them with the same parameters (The PDQm Supplier).
  • XCPD ITI-55 answers another community with the person’s identifiers in the domains [xcpd] domains names (The XCPD Responding Gateway).
sequenceDiagram
    participant C as PIXm Consumer
    participant P as FerroPIX
    participant S as Store
    C->>P: POST Patient/$ihe-pix, sourceIdentifier hospital|H-100001
    P->>S: the record by its identifier's HMAC
    S-->>P: its person, and the person's other records
    P-->>C: Parameters: targetIdentifier per domain, targetId Patient/{person}

The Patient all of them name is the person: its id is the person’s id, its first identifier is that id in the master domain, its other identifiers are its records’, and its demographics are one record’s current version, an authoritative domain’s first. PIXm says a Manager is “not required to maintain a Patient resource” (§2:3.104.4.1.3), so serving the person as the Patient is FerroPIX’s own design. It is what makes ITI-83’s targetId, the entries of ITI-78 and ITI-119, and PMIR’s Patient Master Identity the same resource.

Merge and unmerge

A merge joins two persons when they turn out to be one patient. The merged person keeps its id, reads active = false with a replaced-by link to the survivor, and its records move to the survivor (FHIR R4 Patient, “Patient records that have been merged”). A merge has four origins:

WhoHowSpecification
A Sourcean ITI-104 update whose Patient has a replaced-by link, an HL7 v2 ADT^A40, or an ITI-93 merge from the master domain’s SourcePIXm 3.1.0 §2:3.104.4.2, ITI TF-2 §3.8, PMIR 1.6.0 §2:3.93.4.1.2.4
An authoritative identifiera feed whose record carries an authoritative identifier a record of another person carriesFerroPIX’s own design
The scorera certain pair, with auto_link = trueFerroPIX’s own design
A data stewarda link decision in the review queue, or Merge on a patient’s pageFerroPIX’s own design

Every merge records what it moved, so it can be reverted. A steward reverts a merge through the operator API or the console, never a Source: an ITI-93 update that would reactivate a merged person is refused with 405. Only the latest merge into a survivor can be reverted, so merges unwind in the order they were made; PMIR leaves unmerge to the Registry’s local policy (PMIR 1.6.0 §2:3.93.4.1.3), and this order is FerroPIX’s.

stateDiagram-v2
    [*] --> Active: first record fed
    Active --> Merged: merge into a survivor
    Merged --> Active: the merge reverted by a steward
    Active --> Active: feed, link, steward decision

What a merged or removed identifier answers is one policy for every face. The profiles leave the answer for a deprecated patient to the Manager and list the forms it may take (PIXm 3.1.0 §2:3.83.4.2.2.5, PDQm 3.2.0 §2:3.78.4.1.3, PMIR 1.6.0 §2:3.93.4.1.3.1). FerroPIX’s choice:

  • a merged identifier answers the survivor’s identifiers in ITI-83 and ITI-9;
  • a merged person reads active = false with its replaced-by link in a search and a read, or is left out under [pdqm] deprecated = "omit";
  • a removed identifier is not found anywhere, as PIXm requires (§2:3.104.4.3.3).

PMIR: the registry and its subscribers

With [pmir] enabled, FerroPIX is the Patient Identity Registry of PMIR. It takes ITI-93 from the master domain’s Source and applies each change of the message in order. It also tells subscribers: every committed change to a person, from any channel or any steward, is an ITI-93 message to each active ITI-94 subscription whose criteria match (PMIR 1.6.0 §2:3.93, §2:3.94). The message is written to the outbox in the transaction that made the change, so a committed change is never left unannounced, and the sender delivers each subscription’s messages one at a time, in order (The PMIR Registry). The HL7 v2 face does the same for its consumers with ITI-10 (ITI TF-2 §3.10). The outbox and its ordering are FerroPIX’s own design.

Pseudonyms and the forward-only translation

A clinical store such as FerroEHR names a patient by a pseudonym: a UUID per person and pseudonymisation domain, which identifies no one on its own. FerroPIX mints and keeps it, so the clinical record holds no identifier that leads back to a person.

A pseudonymisation domain is a namespace the clinical store names as a targetSystem in ITI-83. PIXm leaves the choice of the identifiers it answers to the Manager (PIXm 3.1.0 §2:3.83.4.1.2.2, §2:3.83.4.1.3), and FerroPIX uses that room for three rules of its own design:

  • only the domain’s one consumer (consumer_client_id) reads its pseudonyms, and its first ask mints one;
  • no other client reads them or causes a mint, so two clinical domains cannot be linked through FerroPIX;
  • a pseudonym never translates back through PIXm: a sourceIdentifier in a pseudonymisation domain answers 400.
sequenceDiagram
    participant E as Clinical store (the domain's consumer)
    participant P as FerroPIX
    participant St as Data steward
    E->>P: ITI-83, sourceIdentifier hospital|H-100001, targetSystem the namespace
    P-->>E: targetIdentifier: the pseudonym, minted on the first ask
    E-xP: ITI-83 with the pseudonym as sourceIdentifier
    P-->>E: 400, sourceIdentifier Assigning Authority not found
    St->>P: POST /operator/pseudonyms/resolve, with a reason
    P-->>St: the person, recorded as a privacy disclosure

The ground is the GDPR. Pseudonymised data “can no longer be attributed to a specific data subject without the use of additional information, provided that such additional information is kept separately” (Regulation (EU) 2016/679, Art. 4(5)). FerroPIX is where that information is kept: the clinical store translates forward only, and the one way back is a steward’s resolution with a reason and a BALP Privacy Disclosure record, a measure of data protection by design (Art. 25(1)). A pseudonym never changes: after a merge both persons’ pseudonyms resolve to the survivor, and after the revert each resolves to its own person again (Pseudonyms).

The Dutch pseudonymised BSN is a different thing: an identifier another party issues, fed into an authoritative domain of its own like any other identifier (The Dutch identifiers).

Where the specifications stop

QuestionAnswered by
What ITI-83 answers, and its three failuresPIXm 3.1.0 §2:3.83.4.2.2
One Source per domain, and what a feed doesPIXm 3.1.0 §2:3.104.4.1.3, §2:3.104.4.2.3, §2:3.104.4.3.3
What a PDQm search and match answerPDQm 3.2.0 §2:3.78.4.1.3, §2:3.119.4.2.2
The Registry’s feed and subscriptionsPMIR 1.6.0 §2:3.93, §2:3.94
The HL7 v2 feed, queries and notificationITI TF-2 §3.8, §3.9, §3.10, §3.21
How the cross-reference is stored and sealedFerroPIX’s own design
When two records are one personFerroPIX’s own design (Matching)
The Patient resource being the personFerroPIX’s own design
What a merged identifier answers, and the unmerge orderFerroPIX’s own design, within the forms the profiles list
Pseudonyms, their one reader and the forward-only translationFerroPIX’s own design, on GDPR Art. 4(5) and Art. 25

Matching

FerroPIX decides that two records are one patient in three tiers. An identifier in an authoritative domain links two records on its own. The probabilistic scorer on this page compares demographics and grades a pair. A data steward decides the pairs the scorer is unsure of. No IHE profile governs how a Manager cross-references: PIXm leaves it to the Manager, and PDQm asks only that a match carry a score and a grade. The rules below are FerroPIX’s own; How FerroPIX manages patient identity places them in the whole model.

A Source’s feed runs the first two tiers in its own transaction, whether it arrives as ITI-104 (The PIXm Manager) or as ITI-8 (The HL7 v2 face). The PDQm Supplier answers ITI-119 $match with the scorer’s score and grade (The PDQm Supplier), and the pairs that wait for a steward are the review queue of the steward’s guide.

When a feed arrives

Each ITI-104 message is one database transaction:

  • Add or revise. The record of the identifier is created or gets a new version. FerroPIX then looks for every other record whose current version carries one of the same identifiers in an authoritative domain, such as the BSN. Those records are one patient with this one, so the record joins the patient that survives (a master identity first, then the one created first) and any other is merged into it, unless the two records disagree on the birth year or on a stated administrative gender. Such a hard conflict links nothing: the pair becomes a candidate for review, with the conflict in its evidence. A value in a local domain never links across domains, even when two domains share it. Two master identities are never merged by matching: they become a candidate with the master_identities conflict, and only their Source merges them.
  • Scoring. The new version is scored against every record in another patient that shares a blocking key with it. A pair graded possible or better becomes an open candidate, or refreshes the open candidate of the pair. With auto_link = true, a certain pair merges the two patients instead.
  • Resolve duplicate. When the Source says that one of its identifiers is replaced by another, the subsumed record stops answering for itself: a PIX query of it answers the survivor’s identifiers, its patient is merged into the survivor’s, and the cross-referencing runs again over the survivor. A survivor FerroPIX does not hold is refused.
  • Remove. The identifier is answered as not found from then on, and the versions it had stay for the audit trail.

Every link, merge, candidate and removal is recorded as an action in the audit trail the operator console reads. Two feeds that join the same patients at the same moment both commit and end as one patient.

How a pair is scored

The scorer follows Fellegi and Sunter. For each field you configure two probabilities: m, that the field agrees when the two records are one patient, and u, that it agrees for two records picked at random. A field that agrees adds log2(m / u) bits to the total, a field that differs adds log2((1 - m) / (1 - u)) (a negative number), a partial agreement adds half the agreement weight, and a field missing on either side adds nothing.

The total maps to a score between 0 and 1:

score = 1 / (1 + 2^(10 - total))

A total of 10 bits scores 0.5: the evidence for the pair has to outweigh odds of one in 1,024 that two records sharing a blocking key are one patient. The mapping is the same in every deployment, so a score means the same thing everywhere.

The fields and their defaults

FieldmuAgree addsDiffer addsHow it compares
family_name0.950.016.57-4.31Jaro-Winkler over the folded name: 0.92 or more agrees, 0.85 to 0.92 agrees half
given_names0.900.025.49-3.29Jaro-Winkler over the first given name, or any given name equal; agreeing initials count half
birth_date0.970.0038.34-5.05equal to the day; the day and month swapped, or one digit off, counts half; a date without a day is missing
gender0.980.50.97-4.64equal; unknown counts as missing
postal_code0.850.0019.73-2.74equal; the first four characters equal counts half
address0.800.0019.64-2.32the words of the lines and the city: agrees when the other address holds half the words of the shorter one
telephone0.600.000112.55-1.32the last nine digits, equal
email0.600.000112.55-1.32equal after trimming and lowercasing
mothers_maiden_name0.900.016.49-3.31Jaro-Winkler, 0.92 or more agrees
local_identifier0.500.0000115.61-1.00the same value in a local domain both records carry an identifier of; evidence, never proof

Names and addresses are folded before they are compared: accents removed, lowercased, punctuation read as a space. Where a field holds several values (several names, addresses or numbers), the best pair counts. Override a field under [matching.fields.<field>] in the configuration; each override must hold 0 < u < m < 1.

Grades

GradeWhenWhat happens
certainthe score is at or above link_at (0.95)a candidate at the top of the queue; linked without a steward only with auto_link = true
probableat or above review_at (0.80)a candidate in the review queue
possibleat or above possible_at (0.60)a candidate, below the probable ones
certainly-notbelow possible_atnot queued

Change a threshold in [matching] and the grade of every later score moves with it; no code changes.

ITI-119 $match answers each person with the best score of its records against the Patient you send, as search.score, and its grade as the match-grade extension, whose codes are the grades above (PDQm 3.2.0 §2:3.119.4.2.2.4). A person graded certainly-not is no match and is left out of the answer.

Automatic linking

[matching] auto_link is false by default, so a certain pair is a candidate at the top of the review queue and a steward decides it. Turn it on only once your own data shows the scorer has earned it: load your records, run ferropix matching estimate (below), set the weights it prints, and read the scores of the candidates your stewards link and hold apart against link_at.

With auto_link = true, a certain pair links in the feed that scored it: the younger patient merges into the older, and each record that moves gets a link of kind probabilistic that keeps the score and the evidence the pair was graded on. The merge is recorded as an auto-link action of the Source’s client and can be reverted like any other merge. The dashboard’s auto-link rate counts these links alone: the records created in the last 24 hours that the scorer linked, over all the records created in that time.

Blocking

A pair is scored only when the two records share a blocking key, so a feed scores the few records that could be the same patient and never the whole table:

  • birth_year_family_phonetic: the birth year and the Soundex code of the last word of the family name, so a prefix such as van der does not decide the block;
  • postal_code_birth_date: the postal code and the full birth date;
  • shared_identifier: an identifier both records carry.

The store keeps the two text keys of each record’s current version, so a blocking read touches only the current records that carry the key. A record revised many times costs a blocking read no more than a record fed once.

Beside the keys, the store keeps the fields the scorer compares for each record’s current version, already normalised, so scoring a candidate reads none of its stored demographics. When a new FerroPIX version changes the normalisation, ferropix db migrate (and serve, unless db.migrate = false) rewrites those fields and the keys for every record, a thousand at a time, before the server takes traffic.

Evidence

Every score keeps its evidence: one entry per field with the comparator, the two values as compared, masked to their last three characters (at most half the value), how the field agreed, the comparator’s reading (such as the Jaro-Winkler similarity) and the weight it added, plus the blocking key that produced the pair. The operator console draws its score breakdown from it. The store keeps the evidence in a compact binary form of its own, about 205 bytes a candidate. No log line and no error shows a compared value.

Estimating u

u depends on your population: a common family name agrees by chance more often than a rare one. Once the store holds your records, run

ferropix matching estimate

It counts how often each value of each field occurs over the current version of every record and prints, for each field that at least 100 records state, the [matching.fields.<field>] table that would set its u, beside the m your configuration holds. Paste the tables you agree with into your configuration. A field whose estimate reaches its m is named in a comment and left out, since [matching] refuses it. The output holds counts and probabilities, never a value.

Contributing

The tracker is the worklist: every change answers an issue of FerroHEALTH/FerroPIX, and each milestone is a release. Read CONTRIBUTING.md before a first change; this page is the short form.

Build and test

cargo fmt --all --check
cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
cargo nextest run --workspace --all-features --locked
cargo test --doc --workspace --all-features --locked
cargo deny check

A change to a workflow or a shell script also runs the linters CI runs (zizmor, actionlint, shellcheck --severity=style) and the --self-test of every script it touches. To build this book and the landing page as the site serves them, install the documentation toolchain in the pin matrix and run:

scripts/site/assemble.sh _site
scripts/checks/site-links.sh

What a change carries

  • The specification it follows. The IHE ITI Technical Framework, the PIXm, PDQm and PMIR guides, HL7 FHIR R4 and HL7 v2 decide every transaction. A change cites the section, and where none governs a choice it says so.
  • A changelog fragment, changelog.d/<issue>-<kebab-slug>.<section>.md, for every change a user can see, never an edit of [Unreleased] in CHANGELOG.md: the release cut assembles the fragments (changelog.d/README.md).
  • The book page it changes, in the same pull request, or the no-book label when it alters nothing the book says (Keeping this book current).
  • A crate version bump when it changes what a published crate ships.
  • Signed commits on a conventional branch (feat/, fix/, docs/ and the rest), merged through the merge queue. Commit messages describe only the change.

Licensing of contributions

A contribution is licensed under the Business Source License 1.1 with the rest of the repository, and grants the Licensor the relicensing right in CONTRIBUTING.md. Opening the pull request is your acceptance.

Keeping this book current

This book describes only what the code does, so it changes with the code.

  • A change a user can see updates its book page in the same pull request, as it adds its changelog entry: the server’s endpoints, its configuration, its deployment files, the console, a crate feature, a client’s behaviour, a specification pin.
  • Work that is not built yet links its issue or milestone on the tracker, and a page never describes it as present.
  • Versions are rendered, never typed. The crate and product versions on these pages and the specification and toolchain tables come from the manifests and the pin matrix when the site is assembled, so they cannot go stale.
  • Every internal link and anchor resolves. CI assembles the site the way GitHub Pages serves it and checks every link offline on each pull request.
  • Every sample runs. A quickstart command is a step of a script CI runs, and a configuration block is read by the loader of the program it configures.

These checks in CI hold this, each inside the required conclusion:

CheckWhat it refuses
scripts/checks/book-guard.shA pull request that changes a crate’s source or features, the server or a deployment file without touching the book. The no-book label lets through a change that alters nothing the book says, such as a refactor.
scripts/checks/docs-claims.shA published crate without its page, a feature without its row or a row without its feature, a typed crate version, and a section that names unbuilt work without linking the tracker.
scripts/checks/site-links.shA broken internal link or anchor anywhere in the assembled site or README, and an mdbook-lint warning.
scripts/checks/writing-style.shAn em dash, a word from the banned list, or AI attribution in the published prose.
scripts/quickstart/tour.sh, in the quickstart jobA quickstart command that fails, or answers other than the page says, against the images the change builds. The page includes each command from the script by its mdBook anchor, and --self-test refuses an anchor the page names and the script lacks, and a copy in README.md that differs from its anchor by a byte.
tests/it/reference_pages.rs of the serverA command-line reference (reference/cli.md) or a problem type table that differs from what the clap definitions and problem::Kind render. cargo nextest run -p ferropix-server --test it --run-ignored only reference_pages writes both again.
tests/it/e2e/book_tutorial.rs of the server, in the e2e jobA request of Your first integration whose status, JSON pointers or text differ from what its book-request marker states, run against the server and PostgreSQL.
tests/it/book.rs of the server and of the consoleA key of the configuration tree missing from the configuration page, and a toml block the server’s loader refuses (a toml,console block, the console’s loader). A block that configures another product says so in its info string, such as toml,ferroterm, and is not read.

What a check can catch is limited: a link check passes on a page whose every claim is false. The rest is review, which is why the same-pull-request rule carries the weight.

The performance gate

Every pull request that changes what the server is built from runs the perf job of CI, a required part of conclusion. It also runs on every push to main, and the release workflow runs it on the release commit before the release is drafted. The job measures the release build of ferropix with ferrohealth-perf, the performance gate every FerroHEALTH server shares. It fails when the server is busy at rest, or slower, heavier or busier under load than the build of its base, measured beside it on the same runner in the same job.

Why the head is judged against its base

GitHub’s hosted runners differ: two runners that report the same CPU model and memory can measure one commit 25 to 45 % apart in p50 latency and CPU per request. A baseline stored from one machine failed unchanged code on another, so the gate keeps none. It builds the base of the change and the change itself, the head, runs both on one runner, and judges the head over the base. The difference between machines reaches both alike and cancels.

The base is:

  • for a pull request, the merge base of the commit CI checks out with the pull request’s base branch, which is main as the pull request was merged into it;
  • for a push to main, the commit before the push;
  • for the release commit and a manual dispatch, the previous release tag.

What it runs

scripts/perf/gate.sh build builds the release server of the base, from git archive of the base commit under target/perf-base/, and of the head. scripts/perf/gate.sh run starts PostgreSQL and the stub OpenID Provider from the test image pins of docs/VERSIONS.md, then both servers, each with a database of its own: the head on port 8080 and MLLP port 2575 with perf/ferropix.toml, the base on 8081 and 2576 with the base’s own perf/ferropix.toml when it has one. The PIXm Manager, the PDQm Supplier, the PMIR Registry with its feed, the MLLP listener, the operator API and the outbox sender are all on. The script seeds the two patients of the testkit’s ITI-104 fixtures into each server and runs ferrohealth-perf ab over perf/plan.toml:

  1. Idle. No request for 60 seconds. The head’s CPU time must stay under 2 % of one core and its database under one transaction a second. These limits are absolute and compared with nothing: the outbox sender looks at the outbox at most every 30 seconds when it has nothing to send.
  2. Load, in pairs. Four pairs, each a load phase against both servers at once: 50 arrivals a second to each for 60 seconds after a 10-second warm-up, open loop, one server’s arrivals half an interval after the other’s, the server that leads alternating by pair. Run side by side, both arms see the same runner, whose speed can move by a third from one minute to the next. The arrivals go over PIXm ITI-83 by GET and by POST, the ITI-104 feed, PDQm ITI-78, the ITI-119 match, and the HL7 v2 feed, ITI-8, as an ADT^A01 over MLLP. Every request must be answered with the status the plan names, and every ITI-8 message with an AA acknowledgment of its own MSH-10.

Then the script plants an outbox poller that never waits beside the head, a sender that polls PostgreSQL while it has nothing to send, and runs the idle phase of perf/busy-loop.toml again. That run must fail on idle transactions, or the job fails: it proves the gate still catches the case it was built for.

Reading the report

Each load metric (throughput, latency p50, p95 and p99 per group, peak memory, CPU time per request and transactions per request) is the median of an arm’s four phases. Its noise floor is the worse of the two arms’ spread, how far an arm’s worst phase strayed from its median. A metric breaches when the head’s median is worse than the base’s by more than the larger of its tolerance and that floor; the tolerances are the plan’s [tolerance] table: latency and CPU 25 %, throughput 20 %, memory 20 %, transactions per request 10 %. It fails only when the head also breaches against the base in most of the pairs, so a stall in one phase clears and a regression, which repeats in every pair, fails.

The job summary holds the tool’s report: the outcome, the base commit, the head’s idle limits, and per metric the base, the head, their ratio, the tolerance, the floor, the threshold and in how many pairs the head breached. Requests the head answered other than expected are listed and fail the gate; those the base answered other than expected, such as a route the change adds, are notes, and a metric only one arm measured is noted and not judged. Each attempt uploads its reports as perf-report-attempt-<n>: the JSON reports under target/perf/, with every phase’s histograms, both servers’ logs and the base commit, so ferrohealth-perf compare --report target/perf/latest.json judges a report again without a server.

The tool exits 0 for a pass, 1 for a breach or a request answered other than expected, and 2 for a run it cannot judge: a phase whose generator could not hold its rate, whose second half differs from its first, or that stalled, and a base that fell behind the schedule.

Retries

Some runners stall every route for a whole job: the tails reach 100 to 500 ms while the p50 holds. The cause is the runner’s disk. Every audited request waits until its record is synced to disk (Deployment), and on those runners a sync takes up to hundreds of milliseconds, where a steady runner syncs in about 8 ms.

So the script samples the runner four times a second while the tool runs, into target/perf/runner.tsv, part of the attempt’s artifact. Each sample records how long a 16 KiB record takes to reach the disk the way the audit spool stores one (the file synced, renamed, its directory synced, on the spool’s file system), the CPU time stolen by the hypervisor and spent waiting on I/O, and the CPU clock. The job summary gives the percentiles.

An attempt is not judged, and exits 2, when:

  • a phase stalled: every route’s p99 is over ten times its p50 at once. The tool reports the phase and leaves it out of the judgement;
  • the head breached on a runner whose sync p99 is over 50 ms (SLOW_SYNC_MS in scripts/perf/gate.sh). That bound is six times the 8 ms of a steady runner and a fifth of the 270 ms of a stalling one.

An attempt that ends with exit 2 runs again on a fresh runner, since a run that cannot be judged says nothing about the code. At most two retries run, and the gate passes when the last attempt passed. A breach on a runner whose disk syncs in time fails at once, whatever its CPU model. The job summary names each attempt’s CPU model, its verdict, the runner’s samples and why a retry ran.

The budget of each transaction

The gate compares the head with its base under load. The budget holds each hot transaction to fixed ceilings, so a change that adds work fails in CI’s e2e job without a load run. The cases under app/ferropix-server/tests/it/e2e/budget/ send 20 requests of each of ITI-104 (a revision of a known patient), ITI-83 by GET and by POST, ITI-78, ITI-119 and ITI-8 over MLLP, over a store of about 200 persons. For each request they count:

  • the statements the server sends, BEGIN and COMMIT included, each a round trip, and the statements PostgreSQL runs nested in them, from pg_stat_statements;
  • the shared buffers those statements touch, which grows with the store when a statement reads more than it needs;
  • the bytes of write-ahead log, from pg_walinspect, with no full-page images;
  • the bytes of audit record the spool takes, and the bytes of the answer;
  • for ITI-8, the translations it asks the terminology server for.

Each ceiling is the measured value. A change that lowers a figure lowers its ceiling in the same pull request, and no ceiling is raised.

The capacity campaign

The gate compares a change with its base, and the budget holds each request’s cost; neither says how far the server goes. scripts/perf/capacity.sh measures that on a quiet host. up starts PostgreSQL, the stub OpenID Provider, the terminology server and the release server of the checkout; seed N feeds N synthetic patients over ITI-104; snapshot and restore keep the seeded store so every step starts from the same one; and run GROUP RATE runs one open-loop step of a plan under perf/capacity/ (ITI-83 by GET and POST, ITI-78, ITI-119, ITI-104, ITI-8, and a mix of nine reads to one feed) at the rate you give it, with the server’s CPU and memory sampled beside it.

Changing the plan or the tolerances

The plan is the head’s: a change to perf/plan.toml is measured on both servers in the same pull request. A tolerance is the product’s and moves only in a pull request that says why.

Changelog

All notable changes to this project are documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning. Entries wait as fragments under changelog.d/ until a release assembles them.

[Unreleased]

[0.0.58] - 2026-12-04

Changed

  • The server and the operator console move to ferrohealth-smart 0.41.0, ferrohealth-server 0.16.1 and ferrohealth-session 0.39.0, with FerroBRIDGE’s ferrobridge-term 0.32, ferrobridge-validator 0.33 and ferrobridge-hl7v2 0.49 on fhir-types 0.8.2. The server and the testkit take the workspace ihe-iti and nl-generic-functions again, so the lock holds one copy of each. Both binaries name their own refusal bodies, so the RFC 9457 default of ferrohealth-server 0.16 changes nothing they answer. ihe-iti 0.36.2 and nl-generic-functions 0.36.2 require fhir-types ^0.8.2, the workspace pin (#941).
  • The server, the operator console and the testkit build on fhir-types 0.8.1 and ihe-atna 0.40.0, with FerroBRIDGE’s ferrobridge-term 0.31, ferrobridge-validator 0.32 and ferrobridge-hl7v2 0.48 and the published ihe-iti and nl-generic-functions 0.35.0, so the lock holds one copy of each. ihe-iti 0.36.1 and nl-generic-functions 0.36.1 require fhir-types ^0.8.1, the workspace pin, where they required ^0.8.0 (#957).

[0.0.57] - 2026-12-04

Changed

  • An ITI-83 lookup builds the record of its caller for the audit trail once per request where it built it twice, which takes 4 heap allocations off every lookup (#752).
  • Breaking for a crate user: ihe-iti 0.36 and nl-generic-functions 0.36 require ferrohealth-smart ^0.41, where they required ^0.40, so a product hands them a ferrohealth-smart 0.41 OutboundClient and moves to 0.41 with them. ferrohealth-smart 0.41 changes no call; its server-tls feature builds on ferrohealth-server 0.16. The server and the operator console stay on ferrohealth-smart 0.40 and the published ihe-iti 0.34 until FerroBRIDGE releases ferrobridge-term on 0.41 (#941); nothing they answer changes (#950).

[0.0.56] - 2026-12-03

Changed

  • Breaking for a crate user: ihe-iti 0.35 and nl-generic-functions 0.35 build on fhir-types 0.8 and ihe-atna 0.40, so the FHIR R4 values they take and hand back are fhir-types 0.8 values and a product moves to fhir-types 0.8 with them. In fhir-types 0.8 the CodeSystem/$lookup property contract makes the value of the second subproperty level optional and adds designation; neither crate reads it. The server keeps ihe-iti 0.34 and nl-generic-functions 0.34 from crates.io on fhir-types 0.7 until FerroBRIDGE releases its libraries on 0.8 (#941); nothing it answers changes (#940).

[0.0.55] - 2026-12-02

Changed

  • Breaking: the server and the operator console move to ferrohealth-smart 0.40.0, ferrohealth-server 0.15.0 and ferrohealth-session 0.38.0, and the server to the workspace ihe-iti and nl-generic-functions and FerroBRIDGE’s ferrobridge-term 0.30, ferrobridge-hl7v2 0.47 and ferrobridge-validator 0.31, one copy of each. A handler that runs past [server] request_timeout answers 503 (RFC 9110 §15.6.4), a timeout OperationOutcome on the FHIR face and the XCPD gateway and an about:blank problem elsewhere, where it answered 408; 408 now answers only a request whose body had not arrived (RFC 9110 §15.5.9). An issuer with mapping = "ehdsi" reads a MyHealth@EU contact point’s attributes from the IHE IUA claims under extensions.ihe_iua (IHE IUA §3.71.4.2.2.1.1), as ferrohealth-smart 0.40 writes them. ihe-iti 0.34.1 and nl-generic-functions 0.34.1 render the same requirement from the workspace (#933).

[0.0.54] - 2026-12-02

Changed

  • The server builds on the workspace ihe-iti and nl-generic-functions, fhir-types 0.7, ihe-atna 0.38.1 and FerroBRIDGE’s libraries on 0.7 (ferrobridge-hl7v2 0.46, ferrobridge-validator 0.30 and ferrobridge-term 0.29), so one copy of each is built. The FHIR Feed to the audit repository now waits the Retry-After an answer names before it sends the batch again (RFC 9110 §10.2.3), and the BALP record of an ITI-104 message the Manager failed to apply carries the outcome of its answer: 8 (serious failure) where the server answers a 5xx, 4 (minor failure) for a refusal of the request, and 0 for a removal of an identifier the cross-reference does not hold, which answers 200 (#925).
  • Breaking: ihe-iti 0.34.0 and nl-generic-functions 0.34.0 build on ferrohealth-smart 0.40, so the OutboundClient and the endpoint tables their clients are built from are ferrohealth-smart 0.40 values, and a product moves to ferrohealth-smart 0.40 and the ferrohealth-server 0.15 its server-tls feature builds on with them. No source of either crate changes. The server keeps the published ihe-iti 0.33.0 and nl-generic-functions 0.33.0 until FerroBRIDGE’s terminology client moves to ferrohealth-smart 0.40 (#932).

Fixed

  • The BALP record of an ITI-83 query takes its outcome from the status the PIXm Manager answers, the rule the ITI-104 feed record follows: a query answered 503 because its pseudonym record could not be kept is recorded as 8 (serious failure), where it was recorded as 4 (minor failure) (#930).

[0.0.53] - 2026-12-02

Changed

  • The server and the console write their console lines on one writer thread over a bounded, lossless channel (ferrohealth-telemetry 0.6.1), so no request worker waits on the stdout lock; the drain writes every queued line before the process ends (#908).
  • The server and the console run on ferrohealth-smart 0.39.1, ferrohealth-session 0.37.1 and ferrobridge-hl7v2 0.44, and the tests of ihe-iti 0.32.2 and nl-generic-functions 0.32.3 on ferrohealth-smart 0.39.1 (#910).
  • nl-generic-functions 0.32.2 and the server’s tests check their JSON against its schemas with jsonschema 0.63 (#912).
  • ihe-iti 0.33 documents the request-id entity of its server-side audit records as the BALP 1.1.4 entity:transaction slice, and the book and the architecture page cite IHE ITI TF-2 Appendix Z.9.1 for the map from an HL7 v2 assigning authority to a FHIR Identifier.system. Behaviour is unchanged (#913).
  • The HL7 v2 face runs on ferrobridge-hl7v2 0.45, with ferrobridge-term 0.28 and ferrobridge-validator 0.29. A failed accept on the MLLP listener is logged and the listener goes on accepting, where it stopped the face. The new [hl7v2] max_connections (256 by default, above 0) bounds the MLLP connections open at once; a connection accepted past it is closed and logged before any byte is read (#917).
  • Breaking for a crate user: ihe-iti 0.33 and nl-generic-functions 0.33 build on fhir-types 0.7 and ihe-atna 0.38, so the FHIR R4 values they take and hand back are fhir-types 0.7 values and a product moves to fhir-types 0.7 with them. fhir-types 0.7 adds useSupplement to the CodeSystem/$validate-code contract and changes nothing else. The server keeps ihe-iti 0.32 and nl-generic-functions 0.32 from crates.io on fhir-types 0.6 until FerroBRIDGE releases its libraries on 0.7 (#925); nothing it answers changes (#926).

[0.0.52] - 2026-11-30

Changed

  • nl-generic-functions 0.31.2 and the server’s and console’s tests verify and sign their synthetic tokens with jsonwebtoken 12, which refuses an empty HMAC key and an unknown critical header extension (#900).
  • ihe-iti 0.32.0 builds on jiff 1.0, fhir-search 0.2, ihe-atna 0.34 and ferrohealth-smart 0.39, so the times, audit records and outbound client it takes or hands a caller come from those lines, and nl-generic-functions 0.32.0 builds on jiff 1.0, fhir-search 0.2, ferrohealth-smart 0.39 and ihe-iti 0.32. The server takes ferrohealth-server 0.14.1, which ferrohealth-smart 0.39 requires (#902).
  • The server and the console run on jiff 1.0, fhir-search 0.2, ferrohealth-smart 0.39, ferrohealth-session 0.37, ferrohealth-usage-report 0.7, ihe-atna 0.34, ferrobridge-hl7v2 0.43, ferrobridge-term 0.27 and ferrobridge-validator 0.28, on the path crates ihe-iti and nl-generic-functions 0.32.1 (#903).

[0.0.51] - 2026-11-28

Changed

  • The server and console images build on the current gcr.io/distroless/static-debian13:nonroot digest, and the compose quickstart’s development issuer is mock-oauth2-server 7.0.2 (#674).
  • The server and the console run on fhir-types 0.6, ihe-atna 0.33, ferrobridge-hl7v2 0.42, ferrobridge-term 0.26 and ferrobridge-validator 0.27, on the path crates ihe-iti and nl-generic-functions 0.31.1 (#891).
  • ihe-iti 0.31.0 builds on fhir-types 0.6 and ihe-atna 0.33, so the FHIR resources it hands a caller and its audit records come from those lines, and nl-generic-functions 0.31.0 builds on fhir-types 0.6 and ihe-iti 0.31 (#892).

[0.0.50] - 2026-11-28

Changed

  • The server and the console run on ferrohealth-server 0.14, ferrohealth-config 0.5, ferrohealth-telemetry 0.6, ferrohealth-usage-report 0.6, ferrohealth-smart 0.38.2, ferrohealth-session 0.36, ihe-atna 0.32 and fhir-types 0.5, on the path crates ihe-iti 0.30.2 and nl-generic-functions 0.30.1, which require ferrohealth-smart 0.38.2, the release that keeps an outbound client’s endpoint cleared for revocation. Every outbound tls table verifies a peer by its root: a chain to a root of trust_roots_file connects only once a revocation check cleared its endpoint, at the start and every 4 minutes, failing closed when no CRL or OCSP source answers, and the XCPD delivery keeps its reply endpoints cleared; a root of the new trust_roots_without_revocation_file is trusted with no revocation check and named at the start (#869).

[0.0.49] - 2026-11-28

Changed

  • ihe-iti and nl-generic-functions 0.30.0 build on fhir-types 0.5, ihe-atna 0.32, ferrohealth-smart 0.38 and ferrohealth-config 0.5, with ferrohealth-server 0.14 beneath, whose outbound TLS verifies a chain to a root of trust_roots_file by webpki and opens a connection only once a revocation check cleared it, and trusts one to a root of trust_roots_without_revocation_file with no revocation check. The server and the console stay on the published 0.29.0 until FerroBRIDGE publishes its crates on that set (#869).

Removed

  • The refusal by name of trust.post_quantum_only, kept for 0.0.48, is removed. A configuration that still sets it is refused at start as an unknown key in [trust]; the switch is [auth] post_quantum_only (#853).

[0.0.48] - 2026-11-28

Added

  • ihe-iti 0.29.0 matches a patient by demographics in ITI-119: MatchInput carries the input Patient’s name, birth date, gender, birth place (the core patient-birthPlace extension) and nationalities (patient-nationality) beside or without an identifier (IHE PDQm §2:3.119.4.1.2), refuses a country that is no ISO 3166-1 code, a birth date that is no FHIR date and a name or place that names nothing, and shows none of them in Debug. A match without exactly one identifier records no patient entity in its audit record. nl-generic-functions 0.29.0 builds on it (#865).

Changed

  • The server and the console move to ferrohealth-smart 0.36, ferrohealth-session 0.33, fhir-types 0.4, ihe-atna 0.31 and FerroBRIDGE’s ferrobridge-term 0.24, ferrobridge-hl7v2 0.40 and ferrobridge-validator 0.25, and build ihe-iti and nl-generic-functions from the workspace again; ihe-iti and nl-generic-functions 0.29.0 carry the manifest without the temporary pins (#853).
  • [trust] post_quantum_only is replaced by [auth] post_quantum_only, which ferrohealth-smart reads and applies when it resolves [auth]. A configuration that still sets trust.post_quantum_only is refused at start with a message naming auth.post_quantum_only; move the switch into [auth] (#853).
  • The HL7 v2 face writes the system of a PID-3 identifier whose assigning authority has no ISO or UUID universal id from the identifier NamingSystem the terminology server registers for that authority (NamingSystem?kind=identifier&value=<authority>). Register one per assigning authority your senders use; an unregistered authority leaves the identifier’s system unwritten, and a refused search is answered AR. Each authority’s answer is held for 10 minutes across messages, so a steady feed searches once per authority in that period (#853).
  • The ITI-93 message of a merge names the deprecated Patient by the identifiers its records held before the merge, in each domain’s system, beside its master identifier (PMIR 1.6.0 §2:3.93.4.1.2.4, the Merged Patient Profile leaves Patient.identifier at 0..*), and the delete entry of a deleted master identity carries the deleted Patient with the identifiers it held (the History Bundle Profile’s PMIREntryDelete.resource, 0..1). A Patient Identity Consumer that keys its state by source identifier learns from the message which identifiers the change concerns. In ihe-iti 0.29.0, pmir::server::notification::Notice::Deleted carries that Patient in place of its id (#868).

Fixed

  • ihe-iti’s PmirSubscriber::find reads a 405 answer to the Subscription?url= search as Search::Unsupported, as it reads 400 and 404, so a subscriber adopting by search goes on to create its subscription against a Registry that serves only the ITI-94 create, read, update and delete PMIR §2:3.94 defines, FerroPIX’s own among them (#870).

[0.0.47] - 2026-11-27

Changed

  • ihe-iti 0.28.0 and nl-generic-functions 0.28.0 are built on fhir-types 0.4, ihe-atna 0.31 and ferrohealth-smart 0.36, the line the FerroHEALTH family moves to in this round of releases. Their public API carries those crates’ types, so a caller moves with them. The server and the console stay on the published 0.27.0 crates and on ferrohealth-smart 0.35 until FerroBRIDGE’s terminology client moves to 0.36 (#853).

[0.0.46] - 2026-11-27

Added

  • The book explains how FerroPIX manages patient identity on one page: the identity sources, the cross-reference the PIXm, PDQm, PMIR, HL7 v2 and XCPD faces share, merge and unmerge, and pseudonyms with their forward-only translation, each rule cited to its IHE section or labelled as FerroPIX’s own design (#830).
  • The book has an upgrade page (the checks before, the migrations and images, rolling back, the checks after) and a table of what FerroPIX stores and how each store is kept (#833).
  • The book has a tutorial, Your first integration, whose requests a test sends to the server and PostgreSQL in CI, a command-line reference for ferropix and ferropix-console generated from their clap definitions, and a problem type table generated from the server’s problem types, each held to the code by a drift test (#834).
  • Post-quantum JOSE signatures (RFC 9964). [trust] post_quantum_only = true verifies access tokens with ML-DSA-44, ML-DSA-65 or ML-DSA-87 alone: every issuer algorithms list left at the default becomes the three ML-DSA parameter sets, and a list naming another algorithm stops the start. The console’s sign-in now accepts an ID Token signed with ML-DSA beside the classical algorithms, and its [jose] post_quantum_only = true accepts ML-DSA alone. A Nuts holder key may be an ML-DSA key, which signs the presentation with its parameter set where the Authorization Server lists it in vp_formats (the holder took only P-256 and P-384 keys before). The configuration page shows a private_key_jwt client with an ML-DSA-65 key. The post-quantum inventory states what ferrohealth-smart 0.35.0 accepts and signs on each JOSE row, counts those rows in the post-quantum configuration, and cites RFC 9881 and draft-ietf-tls-mldsa-06 for the TLS certificate row (#843).

Changed

  • The book is organised as tutorials, how-to guides, reference and explanation, opens on a page that sends each reader to their first page, and splits the Helm chart, running the console and the audit trail onto pages of their own; every published address stays (#831).
  • ihe-iti 0.27.0 and nl-generic-functions 0.27.0 are built on ihe-atna 0.30, the FerroAUDIT release whose user and BALP types ihe-iti takes in its public API (received::Received, the mCSD audit), and the server pins ihe-atna =0.30.0. A product that depends on ihe-iti and on ihe-atna or ehds-logging 0.30 now builds with one ihe-atna crate. The move is breaking for a caller that names ihe-atna 0.29 types, hence the minor step of both crates (#850).

Removed

  • The book no longer narrates past incidents, dated measurements or one-time upgrade steps inside its pages, says the POST rule for identifier lookups once, and types no version that moves (#832).

Fixed

  • The book’s configuration page counts the quickstart’s three identifier domains and lists ferropix matching estimate, the deployment page’s Helm example names an issuer without the kind the server refuses, and the console page’s configuration table renders whole (#829).
  • The source-not-admitted problem type’s title names only issuers, since a Basic user is never a Source, and ferropix --help names every profile the server serves (#841).
  • The server image’s description label and its GHCR package description name every profile the server serves: PIXm, PDQm, PMIR, XCPD and the HL7 v2 PIX and PDQ transactions (#845).

[0.0.45] - 2026-11-26

Changed

  • ihe-iti 0.26.0 and nl-generic-functions 0.26.0 ask fhir-types for R4’s resources only (r4-resources) where their FHIR features asked for resources, which compiles the resources of every FHIR release a build enables. A product that enables STU3, R4B, R5 or R6 for itself no longer compiles those releases’ resources through these crates. A product that took another release’s resources from them turns on fhir-types/<release>-resources itself (#823).

[0.0.44] - 2026-11-26

Changed

  • ihe-iti 0.25.0 and nl-generic-functions 0.25.0 build on fhir-types 0.3, so the FHIR resources they take and return are 0.3’s, and a product on fhir-types 0.2 moves with them. fhir-types 0.3 puts NamingSystem in its terminology root set, a new Resource variant that breaks an exhaustive match. The server moves to fhir-types 0.3.0, with ferrobridge-term 0.22, ferrobridge-hl7v2 0.36, ferrobridge-validator 0.23 and ihe-atna on it (#820).

[0.0.43] - 2026-11-25

Changed

  • ihe-iti 0.24.0 and nl-generic-functions 0.24.0 build on ferrohealth-smart 0.35, so the OutboundClient and endpoint types they take are 0.35’s, and a product on 0.34 moves with them. The server and the console move to ferrohealth-smart 0.35.0 and ferrohealth-session 0.30.0, with ferrobridge-term 0.21, ferrobridge-hl7v2 0.35 and ferrobridge-validator 0.22 on it. The Nuts holder key of nl-generic-functions signs its presentations through ferrohealth-smart’s jws module and no longer depends on jsonwebtoken: HolderKey::algorithm returns ferrohealth_smart::jws::algorithm::Algorithm, HolderKey::public and VerificationMethod::public_key_jwk return ferrohealth_smart::jws::jwk::Jwk, HolderError::Pem and HolderError::Curve carry its KeyError, NutsAuthError::Sign its JwsError, and the holder key may also be given in SEC 1 PEM (#817).

[0.0.42] - 2026-11-25

Added

  • The server and console listeners, every client FerroPIX builds and the PostgreSQL connection offer the hybrid key exchange X25519MLKEM768 (RFC 10024) first, through ferrohealth-server 0.12.4, and agree on X25519, P-256 or P-384 with a peer that lacks it. docs/post-quantum.md and conformance/post-quantum.tsv list every cryptographic use, and the README badge counts the safe ones (#810).

Changed

  • ihe-iti 0.23.0 requires ihe-atna 0.28, whose user::PurposeOfUse gains text, the purpose as the user stated it, and nl-generic-functions 0.23.0 requires ihe-iti 0.23.0. Both are breaking for a consumer that names ihe-atna types: move ihe-atna to 0.28 with them and give every PurposeOfUse literal its text (#811).

[0.0.41] - 2026-11-25

Added

  • ihe-iti adds the PIXm Patient Identity Source (ITI-104) behind the new pixm-source feature: pixm::source::PixmSourceClient sends Add or Revise Patient and Resolve Duplicate Patient as the conditional update PUT [base]/Patient?identifier=system|value and Remove Patient as the conditional delete, over the same outbound client and credentials as the ITI-83 Consumer. Each answer is a typed outcome: Fed::Created (201), Fed::Updated (200), Removed::Deleted (200, 204), Removed::Accepted (202), SourceError::NotSelective (412) and SourceError::Rejected with the status and the OperationOutcome issue types for any other answer. With balp, each message is recorded as the PIXm Feed Update or Delete Source audit profile fixes it (§2:3.104.5.1.1), and the vendored PIXm package now carries those two profiles and their examples (#799).

Changed

  • ihe-iti 0.22.0 requires ihe-atna 0.27 and builds on fhir-types 0.2, and nl-generic-functions 0.22.0 requires ihe-iti 0.22.0. Both are breaking for a consumer that names types from those crates: move ihe-atna to 0.27 and fhir-types to 0.2 together with them. The server takes FerroBRIDGE’s crates on fhir-types 0.2 (ferrobridge-hl7v2 0.28, ferrobridge-validator 0.20, ferrobridge-term 0.19) (#803).

[0.0.40] - 2026-11-25

Changed

  • The performance gate installs ferrohealth-perf 0.15.0, and CI holds each hot transaction (ITI-104, ITI-83, ITI-78, ITI-119 and ITI-8) to a budget of statements, shared buffers, write-ahead log, audit bytes and answer bytes per request (#713).
  • The connection pool pings a connection only when it sat idle for a second or more, so a request on a busy server no longer sends a ping round trip before its first statement (#714).
  • An ITI-83 or ITI-9 query reads the cross-reference, the target domains it names and the person’s pseudonyms in one statement under one snapshot, where it sent about seven, and the identifiers of a PDQm Patient are read in one statement, where they took two (#715).
  • A feed takes the advisory locks of its identifiers and persons in one statement, in the same key order, in place of one round trip per lock (#716).
  • A feed inserts the identifiers a version carries in one statement, where it sent one statement per identifier (#717).
  • The store finds a record’s open link through a partial B-tree index on pix.link (record_id) where the link is open, which every PIX query, PDQm read and feed looks up, beside the GiST index that keeps a record in one person at a time (#718).
  • An ITI-78 or ITI-21 search reads each person’s searchable values from an index FerroPIX keeps in step with every change, so its cost no longer grows with the number of persons; before, every search read every person’s demographics (#722).
  • The two text blocking keys live beside each record’s head (pix.record_block), written by the statement that moves the head version, instead of on every version. A feed’s blocking read and an ITI-119 match touch only the current records that carry the key, so their cost no longer grows with each record’s history. The migration fills the keys of every head in batches of 1,000 and drops the version columns and their indexes (#724).
  • Each feed writes less to the database log: the version and carried-identifier rows drop the primary keys nothing reads by, the identifier rotation (db reseal) walks the rows by their keys, and the steward history keeps only the indexes it reads. An ITI-104 revision writes 2,439 bytes of log in place of 2,898 (#730).
  • An ITI-8 message’s HL7 v2 table values are translated in one FHIR batch request to the terminology server, where each value took a ConceptMap/$translate call of its own, on ferrobridge-hl7v2 0.25.1 and ferrobridge-term 0.17.1. The terminology server must accept a batch Bundle at its base (#734).
  • The audit spool writes the records that arrive together as one file with one flush to the disk, and sends them to the audit repository as one batch Bundle (ihe-atna 0.24.0), so an audited transaction no longer waits for a flush of its own. ihe-iti and nl-generic-functions move to 0.19.0 on it, and ihe_atna::atna::feed::FeedClient::post returns a FeedAnswer; a dependant moves ihe-atna to 0.24 with them. A spool directory an older FerroPIX wrote holds .msg files the server refuses at start: let the older server deliver them, or move them out, before you upgrade (#735).
  • Each record head keeps its scoring features, the normalised fields the scorer compares, beside its blocking keys in pix.record_block, written by the statement that moves the head. A feed and an ITI-119 match score each candidate from them, so no candidate’s demographics are read or parsed into a Patient; a match over a block of 282 records takes 2.9 ms where it took 9.9 ms. db migrate, and serve while it migrates, fill the features of every head written under another normalisation, a thousand at a time; serve with [db] migrate = false refuses to start until db migrate has run (#747).
  • A feed writes the candidates of every pair it grades, with their steward actions and the steward’s earlier not-a-match decisions checked, in one statement, and reads whether each graded pair’s persons are master identities in one more, where it sent four statements for each pair; a revision over a block of 27 graded pairs sends 22 statements where it sent 101 (#752).
  • The feed’s and ITI-119’s blocking reads carry the identifiers each found record’s head holds in local domains, read by one index scan over all of them in the same statement, where a second statement read them and joined every record again: an ITI-104 revision and an ITI-119 match send one statement fewer, and a revision over a block of 309 records reads 2,041 shared buffers where it read 2,358 (#752).
  • The audit spool comes from ihe-atna 0.24.3: one writer thread appends each batch of BALP records to one segment with one flush, where every record of a lookup cost a file, a task and two flushes, and a large backlog opens in seconds. At 5,000 records per second a segment holds about 3,600 records where it held one (FerroHEALTH/FerroAUDIT#264, #263, #267) (#752).
  • The store keeps each candidate’s and probabilistic link’s evidence in a versioned binary layout of its own, each name a code and each masked value as the count of the bullets it opens with and the characters it shows, where it kept JSON: an open candidate’s row takes about 325 bytes where it took about 1,920, so the candidates of the million-person capacity store need about 5 GB where they took 27 GB. ferropix db migrate, and serve while it migrates, pack every stored evidence between two migrations a thousand rows at a time, and the next migration drops the JSON. The steward console shows the same evidence as before (#752).
  • serve with [db] migrate = false refuses to start while a migration of its set is not applied to the store, naming how many are missing (#752).
  • A revision that states the demographics of the record’s head before it no longer rewrites the open candidates it scores to the same score, grade and evidence, and records no steward action for them; a revision over a block of 27 graded pairs sends 101 statements where it sent 128 and writes 4,799 bytes of WAL where it wrote 34,696. A steward’s decision now stands when a record’s head states the same demographics as the version the steward read, so a decision after a feed that changed only identifiers or other fields the matcher does not compare is accepted where it was refused 409 (docs/architecture.md §5.3) (#752).
  • The cross-reference statement behind ITI-83, ITI-78 and ITI-119 reads the person’s open records once for their own and their carried identifiers, and checks for a record of an authoritative identifier from the chain it already read: an ITI-83 lookup reads 41 shared buffers where it read 76 (30 where it read 44 on a store of 1M persons), an ITI-78 search 45 where it read 76 and an ITI-119 match 57 where it read 88 (#762).
  • A read’s audit record is written once, and the record of its refusal only when a late spool write withdraws it, with each record’s bytes written straight from the typed resource (ihe-atna 0.25.0): one ITI-83 read’s records cost 5.3 µs and 112 allocations in place of 22.8 µs and 734. The JSON console no longer formats span fields that no line writes (ferrohealth-telemetry 0.5.1). ihe-iti and nl-generic-functions move to 0.20.0 on ihe-atna 0.25, and ihe_atna::atna::spool::withdraw::Withdrawable builds through Exchange::withdrawable or Withdrawable::new; a dependant moves ihe-atna to 0.25 with them. The written records are byte for byte those of 0.24 (#766).
  • The quickstart’s hl7v2 profile runs FerroTERM 0.4.7, its latest release, in place of 0.4.2 (#768).
  • Breaking: FerroPIX takes ferrohealth-smart 0.34 and ferrohealth-session 0.29, and trusts a SMART authorization server, FerroSMART among them, with an [auth.issuer.<name>] table that names only its issuer. The caller is read from the token’s standard claims: typ is at+jwt, scope is required, a token whose sub is its client_id is a machine’s, and a user is named by their fhirUser. The authorization server’s registry is the one list of clients, so a token whose aud names FerroPIX admits its client. The compose quickstart’s development issuer signs at+jwt tokens (#779).
  • Breaking: ihe-iti 0.21.0 and nl-generic-functions 0.21.0 take ferrohealth-smart 0.34, whose OutboundClient, EndpointSection and ServerTls their public API exposes: a product moves to ferrohealth-smart 0.34 with them (#779).
  • Breaking: every identifier domain names the type of its identifiers, identifier_type, which [[domain]], POST /operator/domains and the console’s domain form require. The value set is the HL7 Identifier Type (NI, SS, PI, MR, PPN, NH, JHN, HC) extended with the EHDS codes of the draft EEHRxF Annexes, Table 26 (HI, HIN, REGPID, REGION). A migration gives every stored domain PI, or NI when it is authoritative. Every Patient FerroPIX serves (PDQm ITI-78 and ITI-119, the PMIR ITI-93 feed and XCPD) carries identifier.type on each identifier: a coding of http://terminology.hl7.org/CodeSystem/v2-0203, or, for the four EHDS codes, which no published code system holds yet, the code as type.text (#785).
  • The README shows an EHDS row of self-tested conformance badges, each a count that CI measures: the PDQm answers that validate against the MyHealth@EU NCP API 9.1.1-ci Patient-minimal profile, the EHDS identifier types served, and the Xt-EHR D8.2 (2026-05-19) patient match assertions (TA-api-producer-patient-01 to -03). A badge label never says certified, compliant or conformant (#786).
  • FerroPIX takes ferrohealth-server 0.12.2 and ferrohealth-secret 0.2.2, with ihe-iti 0.21.1 and nl-generic-functions 0.21.1 on the same secret line. A request past the overload bound is refused before the request id, the request log and the body limit run, so the refusal reads no body and leaves no request line. The refusals are logged at most once a second with their count, and an admitted request costs no more than it did before (#788).

Removed

  • Breaking: the issuer keys kind (other than "federation"), preset, profile_file and scopeless_subjects, the [auth.idp] table, and the profile keys first_party_clients, delegates, audience_delegates, issuer_client_is_person, patient_context, fhir_user_patient, representation, act_represents_patient, guest, client_claims and the other vendor profile keys are removed. A configuration that sets one is refused at start as an unknown key; remove the key, and register each client at the authorization server (#779).

Fixed

  • The book’s About screenshot of the operator console draws the server’s CapabilityStatement with the server and FHIR versions it declares. The journeys’ stand-in for the server now answers GET /fhir/metadata with the statement the server serves, and a journey fails when About draws a refusal there (#679).
  • A write’s BALP record (ITI-104, ITI-93, ITI-94’s writes, ITI-8, a pseudonym minted on an ITI-83 ask, the operator writes) is inserted into the new pix.audit_outbox table in the write’s own transaction, so the change and its record commit together or not at all: a crash before the commit leaves neither, and a committed change is never answered 500 because its record was late. The record is compressed and sealed under the store’s key, sent to the repository as a batch Bundle, deleted once delivered, and moved to pix.audit_quarantine when refused; the readiness indicator audit_outbox is down while the quarantine holds one. A write refused before it changed anything keeps the record of its refusal there, and writes no longer take a place in the audit spool (#742).
  • A read whose audit record the spool does not store within [audit] spool_write_timeout is now recorded as refused (outcome 8) and answers 503; before, its record of success landed later while the client saw the refusal (#742).
  • The changes of one ITI-93 message commit together with its record. A refused change is rolled back on its own; a store failure or contention rolls back the whole message and answers 5xx, and contention tries the whole message again. A message of more than 100 changes is refused 413 too-costly before any change runs (#742).

Security

Shipped with functional changes because: the cookie fix is a lockfile move on main, where the releases are cut and the unreleased changes above already sit, so a security-only patch has no tree of its own to come from.

  • The operator console takes cookie 0.18.3 in place of 0.18.2 (RUSTSEC-2026-0594, GHSA-8wcq-xq25-7fhm, security/vex/console-cookie.openvex.json): in 0.14.0 up to 0.18.2 a private cookie added in more than one process after a fork() could reuse an AES-GCM nonce. The console does not fork, so no shipped build met the conditions; the upgrade closes the advisory (#777).

[0.0.39] - 2026-11-21

Changed

  • The console moves to FerroUI 0.6.11, and ihe-iti and nl-generic-functions 0.17.1 require fhir-types and fhir-search 0.1.131; the tests read jsonschema 0.62.0. No caller changes anything (#704).
  • FerroPIX runs on PostgreSQL 19 and every store job (serve, db migrate) refuses an older server, naming the server_version_num it found and the 190000 it needs. The quickstart, the testkit and the chart’s cluster check run postgres:19.0. PostgreSQL 18 is no longer supported and there is no upgrade path: a quickstart volume holding an 18 cluster is removed and created again (#707).
  • FerroPIX moves to ferrohealth-smart 0.33, ferrohealth-session 0.28 and ferrohealth-server 0.12, with ferrobridge-term 0.17 and ferrobridge-hl7v2 0.25. ihe-iti carries smart types in its public API, so it moves to 0.18.0 requiring ferrohealth-smart 0.33, and nl-generic-functions to 0.18.0 on it; a dependant moves smart to 0.33 with them. The server takes [server] request_decompression, off by default, which decodes a request body sent in gzip or Brotli under body_limit (#709).

[0.0.38] - 2026-11-21

Changed

  • Breaking for operators and crate users: FerroPIX moves to ferrohealth-smart 0.32 and ferrohealth-session 0.27. Issuers are named tables, [auth.issuer.<name>] in place of [[auth.issuer]]; an issuer names its preset as preset (the nl preset is gone) and sets its profile keys (first_party_clients, delegates, token_types, required_claims, client_claims and the rest) under [auth.issuer.<name>.profile]; its scopeless_subjects, federation and attributes sit under it in place of the section-level scopeless_subjects, [[auth.federation]] and [[auth.attributes]]; and [[trust.issuer]] issuer and [auth] described_issuer name an issuer by its table’s name. An issuer that sets no audience takes the FHIR base, {public_base_url}/fhir. Every 401 and 403 challenge carries the refusal’s reason code as error_description (RFC 6750 §3), scope-not-granted for a token without the route’s scope. The quickstart, compose file, Helm chart (config.auth.issuer is a map by name) and book show the new shape. ihe-iti 0.17.0 requires ferrohealth-smart 0.32, and nl-generic-functions 0.17.0 requires ferrohealth-smart 0.32 and ihe-iti 0.17: their public API carries smart’s outbound client and endpoint table, so a consumer moves to the same lines. The server takes ferrobridge-term and ferrobridge-hl7v2 on smart 0.32, so one smart links (#701).

[0.0.37] - 2026-11-20

Changed

  • Breaking for crate users: ihe-iti 0.16.0 requires ferrohealth-smart 0.31, and nl-generic-functions 0.16.0 requires ferrohealth-smart 0.31 and ihe-iti 0.16. Their public API carries smart’s outbound client and endpoint table, so a consumer moves to the same lines. The server and the console move to ferrohealth-smart 0.31, ferrohealth-session 0.26, ferrobridge-term 0.15 and ferrobridge-hl7v2 0.23, so one smart links; under the ferrosmart issuer preset a patient’s own token now reads as the patient (FerroHEALTH/FerroSMART#681) (#695).

[0.0.36] - 2026-11-17

Changed

  • A request past server.max_concurrent_requests now waits for a slot before it is refused: at most server.admission_wait (100 milliseconds by default) in a first-come queue of at most server.max_waiting_requests (256 by default; 0 keeps no queue). A full queue or an expired wait is still answered 503 with Retry-After, and the health routes are never refused or queued (FerroHEALTH/FerroSYS#403) (#689).
  • Breaking for crate users: ihe-iti 0.15.0 requires ferrohealth-smart 0.30, and nl-generic-functions 0.15.0 requires ferrohealth-smart 0.30 and ihe-iti 0.15. Their public API carries smart’s outbound client and endpoint table, so a consumer moves to the same lines. The server and the console move to ferrohealth-smart 0.30, ferrohealth-server 0.11, ferrohealth-session 0.25, ferrobridge-term 0.14 and ferrobridge-hl7v2 0.22, so one smart and one server link (#689).

[0.0.35] - 2026-11-17

Added

  • FerroPIX runs behind FerroSMART, the family’s SMART App Launch 2.x authorization server: an [[auth.issuer]] table with profile = "ferrosmart" reads FerroSMART’s RFC 9068 tokens (typ at+jwt alone, scope required), a person through a SMART app listed in delegates as delegated, and a Backend Services client as the system. The book’s new page “Behind FerroSMART” gives FerroSMART’s resource table, FerroPIX’s issuer table and its discovery document. Breaking for crate users: ihe-iti and nl-generic-functions 0.14.0 require ferrohealth-smart 0.29. The server and the console move to ferrohealth-smart 0.29.1, ferrohealth-session 0.24, ferrobridge-term 0.13 and ferrobridge-hl7v2 0.19, so one smart links (#681).

Changed

  • The FHIR Feed to the audit repository goes out through the server’s own outbound client of [audit.repository.endpoint], with its TLS, timeouts, credential and retries, behind ihe-atna 0.23’s atna::feed::FeedClient. ihe-atna and ehds-logging move to 0.23, which depend on no ferrohealth-smart, so a smart release no longer waits on an audit release. Breaking for crate users: ihe-iti 0.14.0 requires ihe-atna 0.23, whose user model its public API carries (#680).

[0.0.34] - 2026-11-16

Changed

  • Breaking for crate users: ihe-iti 0.13.0 and nl-generic-functions 0.13.0 require ferrohealth-smart 0.28 and ihe-atna 0.22, whose types their public API carries, so a consumer moves to the same lines. The server and the console move to ferrohealth-smart 0.28, ferrohealth-session 0.23, ihe-atna 0.22, ferrobridge-term 0.12 and ferrobridge-hl7v2 0.17, so one smart links, and the console to ferrohealth-ui 0.6.10 and the configuration loader to ferrohealth-config 0.4.5 (#646).
  • Breaking: the assertion_audience key of an OAuth client table ([[auth.issuer]] introspection client, and every outbound credentials.oauth table) is removed, and a configuration that still sets it refuses to load as an unknown key. A private_key_jwt client assertion now takes its aud and typ from the grant’s security profile: the token endpoint under typ JWT by default (SMART App Launch 2.2.0, Client Authentication: Asymmetric), or, with security_profile = "fapi2", the issuer identifier under client-authentication+jwt (FAPI 2.0 Security Profile §5.3.3.1). Upgrade: delete assertion_audience; a grant that set it to issuer sets security_profile = "fapi2" instead (#646).

Fixed

  • The SMART discovery document and the capability statement name the issuer ferrohealth-smart’s shared rule describes, never the first [[auth.issuer]] table whose metadata names a token endpoint, and [auth] described_issuer names it. Without the key FerroPIX describes the one issuer of kind persons, patients or federation whose metadata it holds, and a FerroPIX that trusts only machines issuers describes its one machines issuer for SMART Backend Services alone: the token endpoint, the client credentials grant, private_key_jwt and the system/ scopes, with no authorization endpoint. Breaking: a FerroPIX that trusts several such issuers and sets no described_issuer refuses the start, naming them and the key, and so does a described_issuer that names an unknown issuer, an issuer without metadata, or a machines issuer beside one that serves a user launch, and a described issuer whose metadata names no token endpoint (#646).

[0.0.33] - 2026-11-16

Changed

  • Breaking: the server keeps an overload bound always: server.max_concurrent_requests is 256 by default, where unset left the server unbounded, so past 256 requests in flight a request is answered 503 with Retry-After and the health routes are never refused. A deployment that relied on no bound sets the ceiling it wants (FerroHEALTH/FerroEHR#5743) (#669).
  • Breaking for crate users: ihe-iti 0.12.0 requires ferrohealth-smart 0.26 and ihe-atna 0.21, and nl-generic-functions 0.12.0 requires ferrohealth-smart 0.26 and ihe-iti 0.12. Their public API carries the types of those crates (the outbound client, the endpoint table and the audit user), so a consumer moves to the same lines. The server and the console move to ferrohealth-smart 0.26, ferrohealth-server 0.10, ferrohealth-session 0.21, ihe-atna 0.21, ferrobridge-term 0.11 and ferrobridge-hl7v2 0.16, so one smart, one server and one telemetry link (#669).

[0.0.32] - 2026-11-15

Changed

  • Breaking for crate users: ihe-iti 0.11.0 requires ihe-atna 0.19, and nl-generic-functions 0.11.0 requires ihe-iti 0.11. Their public API carries ihe-atna types (the audit user an exchange is made for), so a consumer moves ihe-atna, and ehds-logging with it, to 0.19 in the same change and links one copy. The server pins ihe-atna 0.19.0, which changes nothing FerroPIX records (#663).

Fixed

  • The server and the operator console move to ferrohealth-telemetry 0.5, ferrohealth-server 0.9 and ferrohealth-usage-report 0.5, whose subscriber installs its own bridge from the log crate in place of tracing-log’s LogTracer. Under a console filter that lets a target through above its default level, such as info,ferrohealth_smart=debug, a dependency’s log::log_enabled! check no longer drops the next event on its thread, which lost the request line of a request that ran such a check (FerroHEALTH/FerroSYS#388) (#662).

[0.0.31] - 2026-11-15

Added

  • The ITI-93 sender authenticates to each Patient Identity Consumer named in [[pmir.feed.consumers]], the family’s endpoint table: a message to a subscription whose channel endpoint lies under the entry’s url carries its IUA client credentials token (credentials.oauth), renewed once when the Consumer answers 401, and presents its client certificate for ATNA mutual TLS (tls.client_identity_file), as PMIR 1.6.0 §2:3.93.5 asks. The token replaces any Authorization header the subscription names, and an endpoint under no entry gets no credential. A 401 or 403 after the renewal is retried within [pmir.feed] and then sets the subscription to error naming the refusal (#655).
  • ihe-iti 0.10.1 makes pmir::subscription::Subscribed::at public: a PMIR subscriber that keeps no state between requests rebuilds the subscription handle from the Location it stored, to read its status or delete it. A Location off the Registry’s [base]/Subscription is refused as before, so the subscriber’s credential never goes elsewhere (#658).

Changed

  • FerroPIX moves to ferrohealth-smart 0.21, ferrohealth-session 0.16, ihe-atna 0.15, ferrobridge-term 0.8 and ferrobridge-hl7v2 0.12, the releases on the smart line that chooses the described SMART issuer by one shared rule and adds the optional described_issuer key to AuthSection (#647).
  • Breaking for crate users: ihe-iti 0.7.0 requires ferrohealth-smart 0.21 and ihe-atna 0.15, and nl-generic-functions 0.7.0 requires ferrohealth-smart 0.21 and ihe-iti 0.7. Their public API carries the types of those crates (the outbound client, the endpoint table and the audit user), so a consumer moves to the same lines (#647).
  • FerroPIX moves to ferrohealth-smart 0.22, ferrohealth-session 0.17, ihe-atna 0.16, ferrobridge-term 0.9 and ferrobridge-hl7v2 0.13, the releases on the smart line where DpopSection no longer carries external_url. FerroPIX sets no [auth.dpop], so no configuration key changes (#649).
  • Breaking for crate users: ihe-iti 0.8.0 requires ferrohealth-smart 0.22 and ihe-atna 0.16, and nl-generic-functions 0.8.0 requires ferrohealth-smart 0.22 and ihe-iti 0.8. Their public API carries the types of those crates (the outbound client, the endpoint table and the audit user), so a consumer moves to the same lines (#649).
  • Breaking: a Basic user’s scopes move out of [[auth.basic.users]], which holds the credential alone (user, password_hash, password_hash_file), into FerroPIX’s own [basic_grants.<user-id>] table with scopes and roles. A scopes or roles key in [[auth.basic.users]] now refuses the start as an unknown key, and so does a [basic_grants] table naming a user [[auth.basic.users]] does not list. A granted system/ scope or role is refused as before, now naming basic_grants.<user-id>. Upgrade: move each user’s scopes line into a [basic_grants.<user>] table named by its user (#651).
  • FerroPIX moves to ferrohealth-smart 0.24, ferrohealth-session 0.19, ihe-atna 0.18, ferrobridge-term 0.10 and ferrobridge-hl7v2 0.14, the releases on the smart line where the caller classification asks each issuer’s standing source. FerroPIX keeps its client lists in [auth], the default source, so no further configuration key changes (#651).
  • Breaking for crate users: ihe-iti 0.9.0 requires ferrohealth-smart 0.24 and ihe-atna 0.18, and nl-generic-functions 0.9.0 requires ferrohealth-smart 0.24 and ihe-iti 0.9. Their public API carries the types of those crates (the outbound client, the endpoint table and the audit user), so a consumer moves to the same lines (#651).
  • Breaking for crate users: ihe-iti 0.10.0 reads the state of every Patient an ITI-93 message carries. pmir::feed::PatientIdentity now has active and every Patient.link, read as pmir::feed::Link with its LinkType (FHIR R4 link-type) and the other reference, and Feed::read refuses a created, updated or merged Patient that omits active (FeedError::NoActive) or a link with an unknown type or no reference (FeedError::Link). A subscriber reads an unmerge, an update with active true and no replaced-by link, from the message alone. nl-generic-functions 0.10.0 requires ihe-iti 0.10 (#656).
  • The ITI-93 feed FerroPIX sends states active and the current links of every Patient, and a steward’s revert of a merge is one message with both patients as they now stand, each active true with no replaced-by link (PMIR 1.6.0 §2:3.93.4.1.3) (#656).

[0.0.30] - 2026-11-12

Changed

  • FerroPIX moves to ferrohealth-smart 0.20, ferrohealth-session 0.15, ihe-atna 0.14, ferrobridge-term 0.7 and ferrobridge-hl7v2 0.10. A refusal of a role issuer (ConfigError::RoleIssuer) renders the issuer with its userinfo masked (#643).
  • Breaking for crate users: ihe-iti 0.6.0 requires ferrohealth-smart 0.20 and ihe-atna 0.14, and nl-generic-functions 0.6.0 requires ferrohealth-smart 0.20 and ihe-iti 0.6. Their public API carries the types of those crates (the outbound client, the endpoint table and the audit user), so a consumer moves to the same lines (#643).

[0.0.29] - 2026-11-12

Changed

  • FerroPIX moves to ferrohealth-smart 0.19, ferrohealth-session 0.14, ihe-atna 0.13, ferrobridge-term 0.6 and ferrobridge-hl7v2 0.9. The issuer [[auth.attributes]], [[auth.federation]], [[auth.party]] and auth.scopeless_subjects name is a SecretUrl now, so a password in its userinfo appears in no config check output, no written-back configuration and no Debug rendering (#636).
  • Breaking for crate users: ihe-iti 0.5.0 requires ferrohealth-smart 0.19 and ihe-atna 0.13, and nl-generic-functions 0.5.0 requires ferrohealth-smart 0.19 and ihe-iti 0.5. Their public API carries the types of those crates (the outbound client, the endpoint table and the audit user), so a consumer moves to the same lines (#636).

Fixed

  • The Helm chart moves to 0.3.21 for FerroPIX 0.0.28. The v0.0.28 release raised the chart’s appVersion without raising the chart version, so its chart leg refused to publish over 0.3.20. A pull request that changes the packaged chart now has to raise its version (#632).
  • A private_key_jwt client assertion the server signs, for an OAuth 2.0 client of an outbound lane or of [auth.issuer.introspection], is valid for 60 seconds, down from 300, so an authorization server that caps the assertion lifetime below SMART App Launch 2.2.0’s five-minute ceiling accepts it. FerroPIX moves to ferrohealth-smart 0.19.1, ferrohealth-secret 0.2.1, ferrohealth-config 0.4.4, ferrohealth-telemetry 0.4.1, ferrohealth-server 0.8.4 and ferrohealth-usage-report 0.4.1; ihe-iti and nl-generic-functions move to 0.5.1 and take the same lines (#640).

[0.0.28] - 2026-11-11

Fixed

  • ferropix-console config check and every other rendering of the console’s configuration show an [oidc] issuer, redirect_uri or post_logout_redirect_uri written with userinfo as https://***@…, never its password. The console moves to ferrohealth-session 0.13, which holds the three URLs as SecretUrl (#627).

[0.0.27] - 2026-11-11

Added

  • Each release attaches the quickstart as one self-contained compose.yaml, with its .sha256sum. The server’s configuration and the database role are inlined as Compose configs, so the file needs Docker Compose 2.23.1 or newer and no checkout, and the README and book quick start download it from the latest release. scripts/quickstart/compose-configs.sh holds each inlined copy to its source in the repository, and CI runs the quickstart tour over that same file (#619).

Changed

  • FerroPIX moves to ferrohealth-smart 0.18, ferrohealth-session 0.12, ihe-atna 0.12 and ferrobridge-term 0.5. A configured issuer is a SecretUrl now, so a password in an issuer’s userinfo appears in no config check output, no written-back configuration and no Debug rendering. The start still refuses such an issuer, naming it masked (#624).
  • Breaking for crate users: ihe-iti 0.4.0 requires ferrohealth-smart 0.18 and ihe-atna 0.12, and nl-generic-functions 0.4.0 requires ferrohealth-smart 0.18 and ihe-iti 0.4. Their public API carries the types of those crates (the outbound client, the endpoint table and the audit user), so a consumer moves to the same lines. Where an issuer is read, use .expose(), and build one with SecretUrl::new (#624).

Removed

  • The Helm chart’s values schema, which refused config.auth.audience by name in the charts of v0.0.26. The value now reaches the server’s configuration as an unknown key under [auth], and the config check each image runs over the rendered configuration refuses it. Write each issuer’s audience under config.auth.issuer, as v0.0.26 asked (#605).

Fixed

  • [auth] refuses the start on a table FerroPIX would read and never apply, naming the key: [auth.dpop] (FerroPIX checks no DPoP proof), [[auth.party]] and [auth.idp] (FerroPIX binds no login to a party), and a Basic user’s roles (the permission table reads scopes). A configuration that sets one of them must drop it. [[auth.federation]] and [[auth.attributes]] are applied, and the book documents both. The IHE IUA attributes that an [[auth.attributes]] table reads from a token (the user’s name, role, purpose of use, provider id and organisation) now appear on the BALP record’s user agent, as BALP 1.1.4 §3:5.7.5.4 maps them (#595).
  • With [pmir] on, GET {base}/fhir/metadata declares the ITI-93 message as sender and as receiver, as the PMIR 1.6.0 Patient Identity Registry statement does: the Registry sends the feed to each subscriber. With [pixm] and [pdqm] on as well, the statement instantiates https://profiles.ihe.net/ITI/PMIR/CapabilityStatement/IHE.PMIR.PatientIdentityRegistry. implementation.description now names the IHE actors the instance serves (#597).
  • docs.rs documents every module of ihe-iti and nl-generic-functions. Both crates turn no feature on by default, and docs.rs built them with their default features, so the published API reference listed no item. Each manifest now carries [package.metadata.docs.rs] all-features = true, published with ihe-iti 0.4.0 and nl-generic-functions 0.4.0, and CI builds each crate’s docs the way docs.rs does (#598).
  • An [[auth.issuer]] that sets role_claims refuses the start, naming auth.issuer[N].role_claims: FerroPIX’s permission table reads scopes, so a role read from the token would never apply. Drop the key from the issuer’s table (#616).
  • The CapabilityStatement declares the Subscription Profile for PMIR, https://profiles.ihe.net/ITI/PMIR/StructureDefinition/IHE.PMIR.Subscription.Request, as the supportedProfile of Subscription. That is the profile PMIR 1.6.0 §2:3.94.4.1.2.1 constrains an ITI-94 create with, and the profile the PMIR Patient Identity Registry statement declares. The statement declared the base IHE.PMIR.Subscription before (#617).

[0.0.26] - 2026-11-10

Changed

  • Breaking for a crate user: ihe-iti 0.3.0 and nl-generic-functions 0.3.0 require ferrohealth-smart 0.17, whose OutboundClient and endpoint tables their clients are built from, and ihe-iti requires ihe-atna 0.11. In smart 0.17 every token and introspection endpoint a configuration table names is a SecretUrl, so a password in its userinfo reaches no rendering of the running configuration. Upgrade: take ferrohealth-smart 0.17 and ihe-atna 0.11, and build OauthSection::token_endpoint with SecretUrl::new and read it with .expose(). The server and the console move to ferrohealth-smart 0.17.0, ferrohealth-session 0.11.0, ferrohealth-config 0.4.3, ferrohealth-server 0.8.2, ihe-atna 0.11.0, ferrobridge-term 0.4.0 and ferrobridge-hl7v2 0.6.0, with no configuration key changed (#591).

Fixed

  • The Helm chart 0.3.18, published ahead of this release, and this release’s chart 0.3.19 fix the defaults. Chart 0.3.17 could not start FerroPIX 0.0.25 at its defaults: its values set config.auth.audience, which the server stopped reading when the audience moved into each [[auth.issuer]] entry, so every install, standalone or as a dependency, stopped at start with “unknown field audience”. The values carry no audience now, the values schema refuses config.auth.audience by name and points at config.auth.issuer[].audience (in the charts of this release, 0.3.18 and 0.3.19, only; the chart of the next release refuses it as any other value the server does not read), and the chart refuses to render without a config.auth.issuer entry, each with its issuer, kind and audience. Upgrade: move the audience into each issuer entry and give each its kind. CI and the release’s chart leg now render the chart over every value set under deploy/helm/ci, the defaults among them, and run the server’s and the console’s config check over the configuration it renders, so a chart whose values its images refuse is never published (#585).

[0.0.25] - 2026-11-10

Changed

  • Breaking for a crate user: every client of ihe-iti 0.2.0 (PixmClient, PdqmClient, McsdClient, PmirSubscriber, XcpdClient) and the NviClient and MitzClient of nl-generic-functions 0.2.0 is built from ferrohealth-smart 0.16’s OutboundClient, as ihe-atna’s FeedRepository::new is, so a product configures each service with its shared endpoint table: the base URL, the TLS, the timeouts, no redirect, the retry table and the credential, HTTP Basic or a client credentials token with its DPoP proof and its one renewal on a 401 (IUA ITI-72 §3.72.4.3). Upgrade: build OutboundClient::build(&endpoint, key, tls) and pass it, PixmClient::new(client) for PixmClient::new(base, http), and the same for the others; MitzClient::new and unencrypted_for_development return InvalidInput. The call’s timeout bounds every try the retry table allows. A credential that cannot be had is each client’s Unauthenticated error over the outbound client’s SendError, which XcpdError and MitzError gain, and XcpdClient::discover refuses a gateway off the origin of the table’s url with XcpdError::ForeignGateway before anything is sent (#580).

Removed

  • Breaking for a crate user: ihe-iti 0.2.0 drops the authorizer and smart features with the ihe_iti::authorizer module (Authorizer, Authorizable and with_authorizer, AuthorizerError, Retry, send, and smart::TokenAuthorizer), and nl-generic-functions 0.2.0 drops NviClient::with_authorizer and mitz::error::ClientError. The credential an authorizer made comes from the endpoint table of the client’s OutboundClient; the send every client goes through is the new outbound feature’s ihe_iti::outbound::send (#580).
  • The server and the console no longer refuse by name the configuration keys v0.0.24 renamed or moved, under the one-release rule for removal aids: the millisecond, second, day and byte keys of FerroPIX’s own sections (timeout_ms, retention_days, spool_max_bytes and the rest), the earlier [terminology] keys (base_url, timeout_ms, retry, credentials, tls) and audit.url, audit.timeout_ms and audit.retry_max_ms that moved under endpoint, the renamed keys of the shared [server], [auth], [telemetry], [session] and [oidc] sections, and the console’s pix.timeout_ms. Each now fails at start as an unknown key, named in the refusal; write the key that replaced it, as the v0.0.24 entries say (#582).

[0.0.24] - 2026-11-10

Changed

  • The ITI-21 RSP^K22 is checked against RSP_K21 as IHE ITI TF-2 constrains it before it leaves: QRI optional (Table 3.21-6) and QPD-3 repeating, one parameter a repetition (§3.21.4.1.2.3), through ferrobridge-hl7v2 0.4.0’s IHE_ITI_21. An answer that does not conform, such as a PID with no name, is answered AE, as the RSP^K23 is (#538).
  • The compose quickstart and the Helm chart’s CI values run the development OpenID Provider mock-oauth2-server 6.1.5, and the release and image scans run Trivy 0.76.2 (#557).
  • ihe-iti 0.0.84 requires ferrohealth-smart 0.15 (caret 0.15.0) and ihe-atna 0.9 (caret 0.9.0), and nl-generic-functions 0.0.51 requires ferrohealth-smart 0.15 and ihe-iti 0.0.84. Both name ferrohealth-smart and ihe-atna types in their public API, so a product on those lines needs this release; no signature of either crate moves. Upgrade: move ferrohealth-smart to 0.15.0 and ihe-atna to 0.9.0 beside them (#561).
  • Breaking for an operator: the server and the console move to ferrohealth-smart 0.15.1, ferrohealth-session 0.9.0, ihe-atna 0.9.1, ferrohealth-config 0.4.0, ferrohealth-server 0.8.0, ferrohealth-telemetry 0.4.0 and ferrohealth-usage-report 0.4.0, so the lock holds one copy of each family crate. Every span of time and size in the sections those crates own is now a string with its unit, under a key that names none, and a bare number is refused. Upgrade: in [server] write body_limit = "1MiB", request_timeout, header_read_timeout, idle_timeout, drain_delay, shutdown_timeout, retry_after and compression_min_size (each was …_ms, …_s or …_bytes) and [server.tls] reload_interval; in each [[auth.issuer]] write clock_skew, jwks_max_age, jwks_refresh_interval and timeout, with introspection.cache_max_age, [auth.basic] cache_ttl and the OAuth tables’ refresh_margin and timeout; move auth.ca_file to [auth.tls] trust_roots_file, and the OTLP collector’s trust_roots_file and client_identity_file under [telemetry.otlp.tls]. In the console write [session] sign_in_timeout, idle_timeout and absolute_timeout ("30min", not idle_timeout_s = 1800) and [oidc] timeout, and move oidc.ca_file to [oidc.tls] trust_roots_file. Each old key fails the start as an unknown key, and the loader names the new one where it can. The [auth] keys of the shapes before ferrohealth-smart 0.9 now fail as unknown keys too, without naming their replacement (#561).
  • Breaking for an operator: FerroPIX’s own sections write every span of time and size the same way, under a key that names no unit. Upgrade: [audit] spool_max_size = "64MiB" and spool_write_timeout, with the delivery’s timeout and retry.max_backoff under [audit.endpoint] (below); [outbox] retention = "30d"; [pmir.feed] initial_backoff and max_backoff; [hl7v2] frame_limit, idle_timeout and frame_timeout, each consumer’s connect_timeout and reply_timeout, and [hl7v2.notification] initial_backoff and max_backoff; [xcpd] delivery_initial_backoff, delivery_max_backoff and delivery_timeout; the terminology server’s timeout with its retry.initial_backoff and retry.max_backoff under [terminology.endpoint] (below); and the console’s [pix] timeout. In this release each old key refuses the start and names the key that replaces it, all of them in one refusal; from the next release each fails as an unknown key (#561).
  • Breaking for a crate user: ihe-iti 0.1.0 requires ferrohealth-smart 0.16 (caret 0.16.0) and ihe-atna 0.10 (caret 0.10.0), and nl-generic-functions 0.1.0 requires ferrohealth-smart 0.16 and ihe-iti 0.1.0. Both name ferrohealth-smart and ihe-atna types in their public API, so the move of those public dependencies takes each crate’s minor step, and a product on those lines needs this release; no signature of either crate moves. Upgrade: move ferrohealth-smart to 0.16.0 and ihe-atna to 0.10.0 beside them (#571).
  • Breaking for an operator: the server reaches the audit repository and the terminology server through ferrohealth-smart’s outbound client, each configured by its endpoint table, so the lock holds one copy of each family crate (ferrohealth-smart 0.16.2, ferrohealth-session 0.10.0, ihe-atna 0.10.0, ferrohealth-config 0.4.1, ferrohealth-server 0.8.1, ferrobridge-term 0.3.0, ferrobridge-hl7v2 0.5.0). Upgrade: write the audit repository as [audit.endpoint] with url, timeout and [audit.endpoint.retry] max_backoff (was audit.url, audit.timeout_ms and audit.retry_max_ms); its max_backoff is also the wait between two delivery rounds, and the table takes connect_timeout, retry.max_attempts, tls and credentials (HTTP Basic or the client credentials grant) as well. Write the terminology server as [terminology.endpoint] with url, timeout, retry, credentials and tls (was terminology.base_url, timeout_ms, [terminology.retry], [terminology.credentials] and [terminology.tls]); compose and the Helm chart (0.3.16) name it FERROPIX__TERMINOLOGY__ENDPOINT__URL and config.terminology.endpoint.url. In this release each old key refuses the start and names its place under the endpoint table; from the next release each fails as an unknown key (#571).
  • A configuration the server or the console does not start on is refused with a line that opens cannot start (exit 78), and healthcheck with one that opens not up (exit 1), through ferrohealth-server’s run path; the server’s line opened the configuration is refused before (#571).
  • ihe-iti 0.1.0 and nl-generic-functions 0.1.0 require the FerroBRIDGE crates by caret ranges, fhir-search 0.1.130 and fhir-types 0.1.130, where ihe-iti 0.0.84 required fhir-search exactly, so a product whose other family crates take another compatible patch of them builds with one copy (#543) (#571).
  • The keys of the family sections that v0.0.24 renamed are refused by name in this release, each with the key that replaces it, all of them in one refusal, read from the file, the environment and --set before the rest of the configuration. On the server: [server] request_timeout_ms, header_read_timeout_ms, idle_timeout_ms, body_limit_bytes, drain_delay_ms, shutdown_timeout_ms, retry_after_s, compression_min_bytes and tls.reload_interval_s; auth.ca_file, auth.basic.cache_ttl_seconds, auth.dpop.max_age_seconds and clock_skew_seconds; each [[auth.issuer]] entry’s clock_skew_seconds, jwks_max_age_seconds, jwks_refresh_interval_seconds, timeout_ms and introspection.cache_max_age_seconds; the OAuth tables’ refresh_margin_ms, timeout_ms, ca_file, client_certificate_file, client_key_file and previous_key_overlap_ms; and the OTLP collector’s trust_roots_file and client_identity_file. On the console: [session] sign_in_timeout_s, idle_timeout_s and absolute_timeout_s, [oidc] timeout_s and ca_file, [oidc.tls] client_certificate, client_key and client_key_file, and the OTLP collector’s files. From the next release each fails as an unknown key (#575).

Removed

  • The named refusal of [xcpd] client_certificate_file, client_key_file and reply_trust_file, which v0.0.22 retired in favour of [xcpd.tls]. Each key now fails the start as an unknown key of [xcpd] (#561).

Fixed

  • The server exports its spans and metrics over the TLS [telemetry.otlp.tls] names: it installs its telemetry through ferrohealth-server’s installer, which reads the collector’s trust roots and client identity, where before it built the exporter without them (#571).

[0.0.23] - 2026-11-09

The re-cut of v0.0.22, whose release run published nothing. Read the v0.0.22 section below for what this release changes: the HL7 v2 face needs the new [terminology] section before you upgrade. Nothing else in the server, the console or the crates differs from v0.0.22.

Fixed

  • v0.0.22 was tagged, and its release run published nothing: the performance gate handed the v0.0.21 server it measures against a [terminology] setting that release does not know, so the run could not judge it. The gate now hands each server only the settings its own source defines. v0.0.23 is the first published release with the changes of v0.0.22, and changes nothing else in the server, the console or the crates (#568).

[0.0.22] - 2026-11-09

A release that breaks the HL7 v2 face’s configuration. The face maps PID through ferrobridge-hl7v2 0.2.0 and translates every v2 table value on a FHIR R4 terminology server, so a server with [hl7v2] on needs the new [terminology] section, pointing at a server loaded with HL7 Terminology, hl7.fhir.uv.v2mappings 1.0.0 and FerroBRIDGE’s value package, before you upgrade. The XCPD gateway reads its outbound TLS from [xcpd.tls], and the three keys it replaces are refused by name in this release only. ihe-iti 0.0.83 and nl-generic-functions 0.0.50 are on ferrohealth-smart 0.13 and ihe-atna 0.8, and the workspace holds one copy of each.

Added

  • ihe-iti: PixmClient::capabilities reads the PIX Manager’s CapabilityStatement with GET [base]/metadata (FHIR R4 http.html §capabilities) through the client’s own transport and authorizer, and answers every other outcome as a typed CapabilitiesError: refused with the status, not a FHIR server, timeout, transport or unauthenticated. nl-generic-functions follows ihe-iti 0.0.79 (#522).

Changed

  • ihe-iti 0.0.78 and nl-generic-functions 0.0.45 require ferrohealth-smart 0.10 (caret 0.10.0), and nl-generic-functions 0.0.45 requires ihe-iti 0.0.78. Both name ferrohealth-smart types in their public API (ihe-iti’s authorizer::smart::TokenAuthorizer over client::cache::TokenSource, the Nuts grant’s issuer rule), so a product on ferrohealth-smart 0.10 needs this release. No signature of either crate moves: the one 0.10.0 break is the cache field of config::onward::OnwardSection, which neither builds. Upgrade: move ferrohealth-smart to 0.10.0 beside ihe-iti 0.0.78 and nl-generic-functions 0.0.45 (#518).
  • The server and the operator console run on ferrohealth-smart 0.10.1, ferrohealth-session 0.4.0 and ihe-atna 0.5.2, the releases the published ihe-iti and nl-generic-functions already build on, so the lock holds one ferrohealth-smart (#521).
  • ihe-iti reads and writes every FHIR search value through the family’s FHIR R4 search grammar, fhir-search (exact =0.1.129, with no default feature), the one copy FerroBRIDGE’s facade and ihe-atna read theirs with: the PIXm Manager, the PDQm Supplier and the PMIR Registry read their tokens, splits and escapes through it, and the PDQm birthdate its prefix and date. As FHIR R4 search.html §3.1.1.4.19 requires, a \ before any character other than \, ,, $ and | is refused (SearchError::Escape and pixm::server::query::QueryError::Escape, both new), and a token with a second unescaped | is refused where it was read into the code. A birthdate must be a calendar day, so 1923-02-30 is refused. pdqm::query::DatePrefix gives way to fhir_search::prefix::Prefix; to upgrade, pass Prefix to PatientQuery::birthdate and read it from DateValue::prefix. nl-generic-functions escapes its NVI search values with the same grammar (#523).
  • The HL7 v2 face writes every answer through ferrobridge-hl7v2 0.1.203: the acknowledgment by its ack::render, and the RSP^K23, the RSP^K22 and ITI-10’s ADT^A31 by its write::Writer. The RSP^K23 and the ADT^A31 are checked against their structure before they leave: a RSP^K23 that does not conform is answered AE, and an ADT^A31 that does not conform fails the change that would queue it (#524).
  • The HL7 v2 face maps PID to a Patient, and a Patient back into the PID of an ITI-21 answer, through the HL7 v2-to-FHIR structure maps of ferrobridge-hl7v2 0.2.0, in place of FerroPIX’s own copy of them, and translates every table value (PID-8, the name type, the address type, the telecommunication use and equipment type) by ConceptMap/$translate on a FHIR R4 terminology server. Breaking for an operator of the HL7 v2 face: name the server in the new [terminology] section (base_url, timeout_ms, [terminology.retry], [terminology.credentials] with HTTP Basic or the client credentials grant, and [terminology.tls]), loaded with HL7 Terminology, the guide’s package hl7.fhir.uv.v2mappings 1.0.0 and FerroBRIDGE’s value package; with [hl7v2] on and no terminology.base_url the server refuses to start. A feed or a query the terminology server does not translate is answered AR, so the sender sends it again. A cell phone (XTN-3 CP) is fed as a phone in mobile use, a number with no equipment type keeps a system carrying the data-absent-reason unknown where the face fed phone before, and an ITI-21 PID leaves XTN-2 empty on an email the Patient gives no use, where it wrote NET (#525).
  • The XCPD Responding Gateway reads its delivery’s outbound TLS from [xcpd.tls], the family’s TlsClientSection of ferrohealth-server 0.6.3: client_identity_file (or client_identity) holds the client certificate chain and its private key in one PEM, trust_roots_file the roots trusted beside the platform’s, and min_version the oldest TLS version, 1.3 unless lowered to 1.2. Upgrade: join the files of [xcpd] client_certificate_file and client_key_file into one PEM and name it in [xcpd.tls] client_identity_file, and move [xcpd] reply_trust_file to [xcpd.tls] trust_roots_file; the old keys refuse to load and name their replacement. A reply endpoint that speaks only TLS 1.2 now needs [xcpd.tls] min_version = "1.2" (#526).
  • ihe-iti requires ihe-atna 0.6 and the server pins ihe-atna 0.6.0. None of the APIs they use change: the syslog Repository now takes its TLS configuration from the caller and ITI-81 reads through fhir-search, and neither crate builds a syslog repository or reads ITI-81 (#528).
  • ihe-iti 0.0.81 and nl-generic-functions 0.0.48 require ferrohealth-smart 0.12 (caret 0.12.0), and nl-generic-functions 0.0.48 requires ihe-iti 0.0.81. Both name ferrohealth-smart types in their public API, so a product on ferrohealth-smart 0.12 needs this release. No signature of either crate moves. Upgrade: move ferrohealth-smart to 0.12.0 beside ihe-iti 0.0.81 and nl-generic-functions 0.0.48 (#530).
  • ihe_iti::authorizer::smart::TokenAuthorizer proves each request when its TokenSource binds tokens to a DPoP key (ClientCredentials::with_dpop): the token goes as Authorization: DPoP with a DPoP proof of the request’s method and URL and the token’s ath (RFC 9449 §4.2, §7.1). A 401 whose DPoP challenge demands a nonce keeps the token and sends the request once more with a proof carrying the nonce (§9); any other 401 still drops the token and resends once with a new one. A bearer source is sent as before (#530).
  • ihe-iti requires ihe-atna 0.7.1, the release on fhir-search 0.1.129, and the server and the operator console pin ihe-atna 0.7.1, ferrohealth-smart 0.12.0 and ferrohealth-session 0.6.0, so the workspace builds on a single ferrohealth-smart, the 0.12 line ihe-iti and nl-generic-functions take. None of the APIs they use change (#536).
  • ihe-iti 0.0.83 requires ferrohealth-smart 0.13 and ihe-atna 0.8, and nl-generic-functions 0.0.50 requires ferrohealth-smart 0.13. The server and the operator console pin ferrohealth-smart 0.13.0, ferrohealth-session 0.7.0 and ihe-atna 0.8.0, so the lock holds one ferrohealth-smart. The 0.13 line refuses a malformed JSON document without quoting it (GHSA-mhv7-3975-6xq3) and bounds the token endpoint’s answer; none of the APIs these crates use change (#540).
  • SECURITY.md names security@cadasto.com as the email route for a vulnerability report, in place of info@cadasto.com, which stays the address for licensing and other business questions (#547).
  • The named refusal of [xcpd] client_certificate_file, client_key_file and reply_trust_file, which names the [xcpd.tls] key that replaces each, holds for this release only: from v0.0.23 each key fails the start as an unknown key of [xcpd] (#558).

Removed

  • ihe_iti::rest::escape, replaced by fhir_search::escape::escape, which the rest feature now brings in (#523).

[0.0.21] - 2026-11-08

A security release that breaks a configuration with a Basic machine user. FerroPIX moves to ferrohealth-smart 0.9.2, which makes a Basic credential a person’s: a Basic user holding a system/ scope is refused when the configuration loads, so give each Basic user only user/ scopes and move each machine on Basic to a client credentials client before you upgrade. ihe-iti 0.0.77 and nl-generic-functions 0.0.44 move to ihe-atna 0.5.1, and the console moves to FerroUI 0.6.9.

Changed

  • ihe-iti 0.0.77 requires ihe-atna 0.5 (caret 0.5.1), and nl-generic-functions 0.0.44 requires ihe-iti 0.0.77. ihe-iti’s public API names ihe-atna types (the PIXm consumer’s OnBehalfOf, the xcpd audit message), so a product on ihe-atna 0.5 needs this release. ihe-atna’s API did not change between 0.4.0 and 0.5.1, so no ihe-iti signature moves. The server pins ihe-atna 0.5.1. Upgrade: move ihe-atna to 0.5.1 beside ihe-iti 0.0.77 (#512).

Fixed

  • The console moves to ferrohealth-ui 0.6.9, whose session watch no longer throws on a form with a control named target or method (#508).

Security

Shipped with functional changes because: the fix is the dependency move itself, which carries the family’s other patch releases with it.

  • A Basic user holding a system/ scope is refused when the configuration loads, naming the user and the scope: ferrohealth-smart 0.9.1 makes a Basic credential a person’s, and FerroPIX on 0.9.0 gave such a user system-wide reach (GHSA-jhg2-jwjp-hq74, CWE-269, CWE-863). Upgrade step: give each Basic user only user/ scopes, and move each machine on Basic to a client credentials client of a machines issuer (#508).

[0.0.20] - 2026-11-06

A fix release with one change to who may feed a domain. A Patient Identity Source is admitted only with a machine’s client credentials token: a person’s token through the Source’s client is refused, so move any Source that fed that way to the client credentials grant before you upgrade. The console moves to FerroUI 0.6.8, so a tab you sign out in shows the signed-out page, and the compose quickstart’s console signs a steward in.

Changed

  • A Patient Identity Source is admitted only with a machine’s token, one the issuer’s profile classifies as app-only from the client credentials grant. A person’s token through the Source’s client, a first-party client listed in [[trust.issuer]] clients, is answered 403 with a forbidden issue whose diagnostics say a Source sends a client credentials token, on ITI-104 and on the ITI-93 feed. A Source that fed with a person’s token requests a client credentials token for its source_client_id (#496).

Fixed

  • The console moves to ferrohealth-ui 0.6.8, whose session watch no longer sends a tab that is signing out to the sign-in page that says the session expired: signing out right after bringing a tab forward lands on the signed-out page (FerroHEALTH/FerroUI#654). FerroUI 0.6.7 draws several live regions as <output> and named <section> elements with the same roles and looks (#493).
  • The compose quickstart signs a steward in to the console. The development issuer signs a console login and its renewal with the console’s client id as aud and client_id and the steward scope __ferropix.steward, quickstart.toml admits that audience beside http://localhost:8080/fhir, and it mounts the operator API. Before, the server refused every console login’s token and the operator API was not mounted (#499).

[0.0.19] - 2026-11-06

A family upkeep release that breaks the configuration. FerroPIX moves to ferrohealth-smart 0.9.0, ferrohealth-session 0.3.0 and ihe-atna 0.4.0, and the published crates ihe-iti 0.0.76 and nl-generic-functions 0.0.43 move with it. [auth] takes the 0.9.0 shape: every issuer is an [[auth.issuer]] table with its kind and its profile, and a configuration in the old shape refuses the start, naming what replaces it. A Basic user is a person and never a Source: a machine signs in with a client credentials token. Rewrite [auth] by the upgrade steps below before you upgrade.

Changed

  • Breaking for an operator: [auth] takes the ferrohealth-smart 0.9.0 shape. Every issuer is an [[auth.issuer]] table with a required kind ("persons", "machines", "patients" or "federation") and a profile (profile = "rfc9068" by default, or "entra", "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 flat auth.issuer = "…" as an [[auth.issuer]] table; move audience, algorithms, clock_skew_seconds, jwks_max_age_seconds, jwks_refresh_interval_seconds, jwks_file, timeout_ms, mode, role_claims and [auth.introspection] from [auth] onto each issuer table ([auth.issuer.introspection]); add kind to each issuer, with kind = "machines" for an issuer that signs only the client credentials tokens of Sources, consumers and subscribers, or kind = "persons" with the console’s client in first_party_clients for one that also signs the stewards’ logins; replace token_profile = "jwt" with token_types = ["JWT"] and the required_claims the issuer’s tokens carry, and drop token_profile = "rfc9068"; and write each scopeless_subjects entry as { issuer = "…", sub = "…" } (#487).
  • Breaking for a development configuration: a Basic user is a person, a steward or an administrator, and never a Source or another machine. An [[auth.basic.users]] entry granting a system/ scope refuses the start, naming the user, and a Basic user-id no longer counts as a domain’s source_client_id. Upgrade: move each machine on Basic to a client credentials token (RFC 6749 §4.4) of an [[auth.issuer]], list its client under that issuer’s [[trust.issuer]] clients, and keep on Basic only the people who sign in by hand. GET /operator/sources no longer lists Basic users, and the operator API’s Admission has no basic_user kind (#487).
  • Breaking for a crate user: ihe-iti 0.0.76 requires ferrohealth-smart 0.9 (caret 0.9.0) and ihe-atna 0.4 (caret 0.4.0), and nl-generic-functions 0.0.43 requires ferrohealth-smart 0.9 and ihe-iti 0.0.76. The smart feature’s authorizer::smart::TokenAuthorizer takes a TokenSource of the 0.9 line, and the xcpd ITI-55 audit message writes the ihe-atna 0.4 message shape. Upgrade: move ferrohealth-smart to 0.9.0 and ihe-atna to 0.4.0 in the same change as these crates, or the build holds two copies of each (#487).
  • The server and the console move to ferrohealth-smart 0.9.0, ferrohealth-session 0.3.0 and ihe-atna 0.4.0, which writes every string of a BALP AuditEvent with its control and bidirectional formatting characters escaped as code points (#487).

[0.0.18] - 2026-11-06

A patch release with two fixes. The outbox sender no longer spins while nothing waits in the outbox, which kept an idle server and its PostgreSQL busy at over a CPU core. [auth] scopeless_subjects and role_claims now hold per issuer (GHSA-pfgx-xq28-2629); a deployment that trusts several issuers rewrites those entries before it upgrades. The published crates ihe-iti and nl-generic-functions keep their versions.

Fixed

  • The outbox sender sleeps again while nothing waits in the outbox. Its look at the next due row answered “due now” for an empty outbox, or one holding only delivered or abandoned rows, so an idle server ran its claim back to back: about 8,000 PostgreSQL transactions a second and over a CPU core between the server and its database. A claim that takes no row is now always followed by a wait of at least a second (#490).

Security

Shipped with functional changes because: the one other change is the fix of the outbox sender’s idle busy loop, which keeps over a CPU core busy on every running FerroPIX, and holding either fix back for a release of its own would leave a running deployment with one of the two defects for longer.

  • [auth] scopeless_subjects and role_claims hold per issuer, through ferrohealth-smart 0.8.9 (GHSA-pfgx-xq28-2629, CWE-863, CWE-639). Before it, beside several [[auth.issuer]] entries both lists applied to every trusted issuer’s tokens: a token from any of them whose sub was listed was granted system-wide access without a scope, and any of them could assert roles. 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 start. Upgrade step for a deployment with several issuers: write each scopeless_subjects entry as <issuer>#<sub>, and set role_claims = [] (the permission table reads scopes, not roles) or qualify each path, since the default role_claims is bare and refused. A deployment with one issuer changes nothing (#488).

[0.0.17] - 2026-11-05

A family upkeep release. The server, the console and the testkit move to the newest FerroHEALTH family crates, ferrohealth-server 0.5.0 among them, with no change to what FerroPIX answers or reads from its configuration. RUSTSEC-2026-0440 reaches only the test harness and does not affect any shipped artefact; its OpenVEX statement records why. The published crates ihe-iti and nl-generic-functions keep their versions.

Changed

  • The server, the console and the testkit run on the newest FerroHEALTH family releases: ferrobridge-hl7v2 0.1.182, ferrohealth-config 0.2.9, ferrohealth-server 0.5.0, ferrohealth-session 0.2.3, ferrohealth-telemetry 0.2.5 and ferrohealth-usage-report 0.2.1. None changes what FerroPIX answers or how it is configured (#484).

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-tar is unmaintained, with no patched version) does not affect FerroPIX: testcontainers reaches the crate only in the test harness, and the published ihe-iti and nl-generic-functions crates do not contain it. deny.toml accepts the advisory until a testcontainers release drops the crate (security/vex/rust-advisories.openvex.json) (#481).

[0.0.16] - 2026-11-05

Changed

  • The console journeys and the book’s console screenshots run Chrome for Testing 157.0.8103.38 (#473).

[0.0.15] - 2026-11-04

Changed

  • The server, the console and the testkit run on the newest FerroHEALTH family releases: ferrobridge-hl7v2 0.1.177, ferrohealth-config 0.2.8, which masks a refused configuration value of any type in its message and names a key inside an array of tables by its index, ferrohealth-session 0.2.2, ferrohealth-telemetry 0.2.4, whose panic line carries the request_id of the request it broke, and ihe-atna 0.3.3, whose BALP record names the data of an access by what.identifier when its id is no FHIR literal reference (#460).

[0.0.14] - 2026-11-04

Changed

  • The server and console images build on the distroless static base the nonroot tag resolves to on 2026-11-03, the compose quickstart’s development issuer and the testkit’s stub OpenID Provider run mock-oauth2-server 6.1.4, the console journeys run Chrome for Testing 156.0.8078.80, CI audits the workflows with zizmor 1.32.0 through taiki-e/install-action 2.90.0, and the release lanes write the build SBOMs with syft 1.56.0 (#400).
  • The operator console draws with FerroUI 0.6.6 and signs in through ferrohealth-session 0.2.1, whose [oidc] section takes resolve, to reach a provider host at a fixed address, and [oidc.tls], the client certificate the console presents to the provider and the lowest TLS version of that connection. The server takes ferrohealth-smart 0.8.8, which that release requires (#451).
  • ihe-iti 0.0.74 and nl-generic-functions 0.0.41 ship a Cargo.lock that resolves ferrohealth-smart 0.8.8. Their code is unchanged (#451).

Fixed

  • The release vulnerability record, the scan before the image tags and the weekly published-image scan install Trivy from its GitHub release tarball, checked against a sha256 pinned per version. aquasecurity/setup-trivy downloaded it from get.trivy.dev, which stopped resolving on 2026-11-03, so every one of those lanes failed (#449).
  • The console’s Sign out goes to the provider’s end-session endpoint only when the session it ends holds an ID Token, and otherwise to the signed-out page, through ferrohealth-session 0.2.1. A Basic sign-out on a console with a provider configured went to the provider, which held no session of the operator’s to end (#456).

[0.0.13] - 2026-11-03

Added

  • [server] idle_timeout_ms (120000 by default) closes a kept-alive HTTP/1.1 connection that sends no next request within that time, with a clean end of stream. The default outlasts the 90 s a common HTTP client keeps an idle connection, so the client normally closes first (#384).
  • The console’s single-key shortcuts are back on FerroUI’s keys module: on a pair l links (or asks first when the link merges), n decides Not a match, d defers, r puts the focus in the reason, and [ and ] lead to the neighbouring pairs; in the review queue o or d opens the focused row’s side panel. Each control announces its key in aria-keyshortcuts, and the shortcut legend and the queue’s hint list o and d again (#390).

Changed

  • The server takes ferrohealth-telemetry 0.2.3. Each exported request span is a server span named {method} {route}, such as GET /fhir/Patient/$ihe-pix (the method alone when no route matched), where it was named request, and its status is an error on a 5xx, under the OpenTelemetry HTTP semantic conventions. A method outside the standard set reads _OTHER in the request line and the span. /metrics gains http_server_active_requests, the requests in flight by method and scheme. [telemetry.otlp] refuses trust_roots_file or client_identity_file beside an endpoint that is not https://, and a file that is no PEM of its kind, where it exported in plain text with the files ignored. Migration: point the endpoint at https:// when the collector speaks TLS, or drop the two keys when it does not (#382).
  • FerroPIX runs on ferrohealth-server 0.4.1, which keeps a product’s own fallback and the layers around it when the stack merges its routes (FerroHEALTH/FerroSYS#199). FerroPIX was not exposed to the regression 0.4.1 fixes: every release ran on 0.3.8, which predates it, and the change that took 0.4.0 declared the fallback of the FHIR face and the operator API inside their guard, so an anonymous request to a path no route matches is refused with 401 before and after (#386).
  • The operator console moves to FerroUI 0.6.0 and draws every page whole on its server: a link, a search, a filter or a decision loads one complete page, and FerroUI’s small script modules add the keyboard, the side panels, the dialogs and the session warning on top, with every page working when they do not load. The console runs no WebAssembly and links no Leptos crate; its binary serves FerroUI’s stylesheet, theme and script modules under /ferrohealth-ui/0.6.0/, cached for good, so the image carries the binary alone. The Content-Security-Policy now admits scripts and styles from the console’s own origin alone, script-src 'self'; style-src 'self', with no nonce and no 'wasm-unsafe-eval'. The review queue’s At a glance button now opens its side panel on a click, where the row’s link took the press before (#388).
  • The operator console moves to FerroUI 0.6.2 and ferrohealth-server 0.4.2. A select in a dense options row and a long identifier or link in a stacked table no longer scroll the page sideways at 320 px. The console’s Content-Security-Policy is unchanged (script-src 'self'; style-src 'self', no nonce) and now comes from the family’s server-rendered console headers, FerroUI’s script modules are served under /ferrohealth-ui/0.6.2/, and About names FerroUI 0.6.2 (#394).
  • ihe-iti 0.0.67 and nl-generic-functions 0.0.34 drop the functions that only forwarded to another, so callers name the target: PatientQuery::default() and Paging::default() for the removed new(), mcsd::replica::Scope::default() for Scope::everything(), Answer::ok for pdqm::server::retrieved and pmir::server::subscription::current, and Answer::created for pmir::server::subscription::created. server::format::FormatError, with its UnsupportedMediaType and NotAcceptable variants, replaces Unacceptable as the error of Format::negotiate and Format::unsupported_media_type() as the 415 refusal. Every answer and message on the wire is unchanged (#404).
  • ihe-iti 0.0.68 reads and writes the SOAP 1.2 envelope of ITI TF-2 Appendix V once, in the new soap feature: soap::read and soap::answer read an envelope through a soap::Visitor, soap::write writes one, and soap::FaultCode, soap::Malformed and the ENVELOPE, ADDRESSING, ANONYMOUS and MEDIA_TYPE constants are its own. xcpd reads and writes through it. nl-generic-functions 0.0.35’s mitz feature now depends on ihe-iti with soap and reads the Mitz answer’s envelope through it. A product changes xcpd::error::FaultCode and mitz::error::FaultCode to ihe_iti::soap::FaultCode (Mitz now names VersionMismatch, MustUnderstand and DataEncodingUnknown, which it reported as another code), and the NotSoap, NotXml, DocumentType, TooDeep and NotAnEnvelope variants of xcpd::error::Malformation and mitz::error::Malformation to Malformation::Envelope(soap::Malformed::…). Every request, answer and fault on the wire is unchanged (#405).
  • ihe-iti 0.0.69 holds the request authorizer once, in the new authorizer feature, which pixm, pdqm, mcsd, pmir and smart turn on and which compiles no FHIR model: authorizer::send, the send that resends once when the authorizer asks, and its Unsent are public. nl-generic-functions 0.0.36 drops its authorizer module and feature: the NVI client authenticates through ihe_iti::authorizer, so a product that implements an authorizer for it changes nl_generic_functions::authorizer::{Authorizer, Authorized, AuthorizerError, Retry} to ihe_iti::authorizer::… and depends on ihe-iti with authorizer. The token renewal stays with ferrohealth-smart’s TokenSource. Every request either crate sends is unchanged (#406).
  • ihe-iti 0.0.70 and nl-generic-functions 0.0.37 write each shape the PDQm, PIXm, mCSD, PMIR, XCPD, NVI and Mitz clients share once. authorizer::send is generic over the client’s error, which implements the new exchange::Unanswered and authorizer::Unauthenticated, and authorizer::Unsent is gone; exchange::read reads an answer to a bound, and soap::post, with the new soap::Refusal, sends a SOAP 1.2 message over HTTP, so the soap feature now compiles reqwest. The PDQm and PIXm Malformation hold NotFhirJson, TooLarge, NotJson, NotAResource and Decode in the new outcome::Unreadable, matched as Malformation::Unreadable(Unreadable::NotFhirJson). mcsd::directory::DirectoryEntry<Organization> and DirectoryEntry<Endpoint>, over the sealed DirectoryResource, replace DirectoryOrganization and DirectoryEndpoint. pixm::server::feed::Revision::into_patient and server::answer::Answer::into_resource, which nothing called, are removed. Every request and answer on the wire is unchanged (#407).
  • The operator console signs in and keeps its sessions through ferrohealth-session 0.1.0, the FerroHEALTH console sign-in crate, in place of its own copy. [oidc] now needs only issuer, client_id and redirect_uri: the provider’s endpoints are discovered when the console starts, and authorization_endpoint, token_endpoint, jwks_uri, end_session_endpoint and the new revocation_endpoint each take the place of the discovered one; ca_file and timeout_s (default 10) are new. [session] gains store (memory, the default, or sealed with key or key_file), and refuses an absolute_timeout_s shorter than idle_timeout_s. config check calls no provider: a section that leaves the endpoints to discovery is read when the console starts. The routes /login, /auth/callback, /logout and /session keep their paths; a sign-out now revokes the session’s token when the provider has a revocation endpoint, and a console with no provider ends the session and lands on the signed-out page in place of answering 503. A page whose session lives on but whose access token the provider could not renew sends the steward to the new /sign-in/unrenewed, which says so and leads back to the page (#418).
  • ihe-iti 0.0.71 and nl-generic-functions 0.0.38: a client’s with_authorizer is now the one method of the ihe_iti::authorizer::Authorizable trait, which the PIXm, PDQm, mCSD and NVI clients and the PMIR subscriber implement, so a caller imports the trait to call it. The FHIR search value escaping and the FHIR JSON media type check move into the new rest feature as ihe_iti::rest::escape and ihe_iti::rest::fhir_json, which pixm, pdqm, mcsd, pmir and the nvi feature of nl-generic-functions turn on. Every message, answer and audit record is unchanged (#425).
  • ihe-iti 0.0.72 and nl-generic-functions 0.0.39: the new mcsd::directory::identifier_pairs reads the system and value of a list of FHIR identifiers, which DirectoryEntry<Organization>::identifiers and nl_generic_functions::lrza::ura share, so the lrza feature now takes ihe-iti with mcsd. The mCSD client reads its search and history pages through one pager, and the mCSD, PDQm and PMIR readers share one owner of an entry’s fullUrl, a request URL’s logical id and the next link. Every message, answer and audit record is unchanged (#430).
  • The operator console takes ferrohealth-session 0.1.1. Its [oidc] post_logout_redirect_uri, like redirect_uri, must be an http or https URL with a host and no userinfo. The session route now answers a gone session with an RFC 9457 problem whose detail is the catalog’s session-gone. The provider, redirect and scope rules of [oidc], and the refusal of a sign-in page as a return, are the crate’s now; every configuration refusal names the same key as before (#432).

Removed

  • The console’s [server] site_root key, its FERROPIX_CONSOLE__SERVER__SITE_ROOT variable and the /site directory of the console image: there is no site bundle to serve. A configuration that still sets the key is refused at start, naming it, so remove it; the Helm chart (0.3.5) no longer sets it. The console’s own single-key shortcuts (l, n, d, r, [ and ] on a pair, o and d on the review queue) are gone until FerroUI binds a control’s key (#390); every action keeps its button or link, and /, ?, j, k, Enter and the digits stay (#388).

Fixed

  • The console dashboard’s Listeners card shows the feed sender’s real state. It read a readiness indicator the server never registers, so the row read Off on every deployment; the console and the server now take the indicator names from one definition in the operator API (#383).
  • On a kept-alive HTTP/1.1 connection, [server] header_read_timeout_ms counts from the first byte of each request head. It used to count from the end of the previous answer, so it also closed an idle connection after 30 s, sometimes as a client sent its next request into it, which a POST cannot safely retry (#384).

[0.0.12] - 2026-10-29

Changed

  • The operator API, and the refusals the HTTP stack writes outside the FHIR face and the XCPD gateway, answer every error as RFC 9457 problem details, application/problem+json, where they answered a FHIR OperationOutcome. The status codes are unchanged. FerroPIX’s problem types are defined once, each type a section of the book’s Problem types page (https://ferropix.eu/docs/operate/problems.html), and a problem quotes nothing from the request. The FHIR face and the XCPD gateway keep their OperationOutcome and SOAP answers. Breaking for a client of the operator API that read the issue array: read type, status and detail instead. The console reads the new body (#379).
  • ferrohealth-server 0.3.8: a [server.tls] table that sets client_ca_file while client_auth is "none", the default included, is refused at load. Set client_auth = "required" (or "optional") beside the CA, or remove it (#379).

[0.0.11] - 2026-10-28

Fixed

  • A response to a request whose body FerroPIX left unread, such as a 404 to a POST of a path it does not serve or a declared-length 413, now carries Connection: close, so a client opens a new connection for its next request where it used to meet a closed socket (RFC 9112 §9.6) (#371).
  • Every request leaves one request line, a timeout 408, a declared-length 413 and the 500 of a panicked handler included, and a 413 for a body with no declared length that passes [server] body_limit_bytes is answered with an OperationOutcome, as the declared-length 413 is (#371).
  • Every accepted connection sets TCP_NODELAY, so a small response no longer waits on the client’s delayed acknowledgment, and an HTTP/2 request still running when the drain bound passes is cancelled before the server exits, as an HTTP/1.1 request already was (#371).
  • [auth] ca_file is trusted under mode = "introspection" too: with ferrohealth-smart 0.8.6 the server reads the issuer’s metadata, calls the introspection endpoint and requests its own token trusting it, so an issuer behind a private certificate authority is reached with the setting that reaches it under mode = "jwt" (#373).
  • The console takes ferrohealth-ui 0.5.5: the skip link moves the focus to the main area once the page has hydrated, so the next Tab reaches the page’s first control (WCAG 2.2 SC 2.4.1); a search answered with 401 sends every other tab of the console to sign-in; and the search panel no longer panics when a navigation leaves the page while it opens (#373).

Security

Shipped with functional changes because: the fix exists only in ferrohealth-server 0.3.7, which carries functional fixes in the same serving path beside it, so there is no security-only release of the crate for FerroPIX to take. The release also takes the newest shared crates (#373), so the fix ships on the family’s current line.

  • The server and the console take ferrohealth-server 0.3.7 in place of 0.3.4 (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 silent connections from a client with no credentials could exhaust the process’s file descriptors and stop it answering, health checks included; the listener then retried a failed accept at once and logged every failure. Such a connection now closes once [server] header_read_timeout_ms passes (30 s by default), counted from accept, and after an EMFILE or ENFILE the listener pauses up to 1 s before it accepts again and logs one warning every 10 seconds (#371).

[0.0.10] - 2026-10-27

Added

  • The book’s steward’s guide walks the review queue, the three decisions, the merge and the unmerge in the console, with what each records and how a stale decision is answered (#106).
  • The console’s review queue draws the open pairs in FerroUI’s work-list (#109): both leading names, their birth dates and domains, the score with its bar, the grade and the time queued. j and k move, Enter opens the pair, and o or d opens it at a glance in a side panel with Open to decide and Defer. The filters and the paging are posted, so the queue’s state stays out of the address.
  • The console’s compare-and-decide page (#110): the two records side by side with the differing rows first, the score breakdown on the thresholds’ scale, the blocking key, each record’s patient with its identifiers masked, and the docked decision bar with Link (l), Not a match (n), Defer (d), the reason (r) and the neighbouring pairs ([, ]). A link that merges two patients asks first in a danger dialog that names the effect, a decision posts the versions the page showed, a stale decision comes back in the bar with the ways on, and a decision without a reason is never sent.
  • The console’s merge and unmerge pages (#111): Merge into… previews the merge of the patient you name, the older surviving, with the identifiers that move, the pseudonyms that resolve to the survivor, the subscriptions told and the candidates closed; Unmerge… shows the latest merge into the patient with its reason and the preview of its revert, or names the merge to revert first. Both ask in a danger dialog with your reason, post the versions the preview read, and draw a stale answer in place.
  • The console’s pseudonymisation domains page draws every domain with its namespace, consumer, count of pseudonyms and state, and Resolve a pseudonym (#116): the domain, the pseudonym and a reason, posted and answered with the patient it belongs to, which the server records as a disclosure. The pseudonym never reaches an address and the answer never shows it. An administrator adds, renames, gives another consumer or retires a domain from the same page, and the patient’s Pseudonyms tab links to it.
  • ihe-iti 0.0.66 writes the audit records of the PIXm Manager and the PDQm Supplier behind balp (#350): pixm::audit::manager_query and manager_feed for ITI-83 and ITI-104, pdqm::audit::supplier_records for ITI-78 and ITI-119, from a received::Received request. The server writes its records through them, and the audit corpus checks all 13 IHE examples, both actors of each transaction.

Changed

  • Only a pseudonymisation domain’s own consumer reads its pseudonyms through PIXm ITI-83 (#339). Another Consumer that names the domain as targetSystem now gets no pseudonym for it, where it read a minted one before, and a query naming no targetSystem carries the pseudonyms of the caller’s own domains alone, by GET and by POST. A Consumer that read another domain’s pseudonyms must ask as that domain’s consumer.
  • The Helm chart is 0.3.2: the server and the console containers carry an ephemeral-storage request and limit beside their memory limit (resources, console.resources; 256 MiB for the server, which holds the audit spool on its default emptyDir), and deploy/helm/validate.sh refuses a container without both limits (#360).

Fixed

  • The console refuses session.secure_cookie = false unless it is plain HTTP on loopback: its oidc.redirect_uri, or, when it signs in nowhere, its server.listen address (#358). Before, a console with no [oidc] section took it on any listen address, and sent its cookies without Secure.

[0.0.9] - 2026-10-27

Added

  • The console hydrates the whole page on FerroUI 0.5, so a link, a search, a trail filter, a reveal or a domain’s form keeps the page and loads no new document (#214). The top bar’s search panel offers the pages, the identifier domains and the preferences whose names hold the words, never a person: a patient search runs on Enter or the panel’s last row, posted and audited. ? opens the shortcut legend on every screen, and 1 to 4 open the patient record’s tabs (#204).
  • The console leaves for sign-in the moment its session ends, on FerroUI’s session watch (#322): two minutes before the idle timeout a signed-in page warns with Stay signed in and Sign out, signing out in one tab ends every tab, and the sign-in leads back to the page you were on. The new /session route answers what the session has left (GET, which never extends it) and extends it on the steward’s own activity (POST), with 401 once the session is gone.

Changed

  • W3C DID Resolution 1.0 moves to the Candidate Recommendation Draft of 2026-10-26, re-vendored by version and digest, as the freshness check reported (#275).
  • The Helm chart is 0.3.1, the same templates and values as 0.3.0, with v0.0.9 as its appVersion.

[0.0.8] - 2026-10-27

Added

  • Both binaries take --set key=value, any number of times, which sets a key over the file and the environment (#295). RUST_LOG sets the server’s telemetry.filter. config check prints every key of the running configuration as key = value # source, naming the file, the default, the variable or the --set argument that set it, with every secret shown as ***.
  • The server serves GET {base}/metrics, every metric in the Prometheus text format, with no token, and its request log records each request in http_server_request_duration_seconds (OpenTelemetry http.server.request.duration) by method, route template and status (#296). [telemetry] gains logged_query_parameters, environment and the [telemetry.otlp] table (endpoint, traces, metrics, sample_ratio, trust_roots_file, client_identity_file), which pushes the metrics beside the spans. The operator console reads the same [telemetry] section, with RUST_LOG as the alias of its telemetry.filter.
  • The server takes the [server] keys every FerroHEALTH server shares (#299): header_read_timeout_ms, max_concurrent_requests with retry_after_s (past the bound a request is answered 503 with Retry-After, and the health routes never are), trusted_proxies with forwarded_header, compression with compression_min_bytes, and [server.tls], which makes the listener speak TLS with an optional client certificate, reads its files again on SIGHUP, and has healthcheck probe over it.
  • The server’s [auth] takes every key of ferrohealth-smart (#303): ca_file, trust roots an issuer behind a private certificate authority is read with; mode = "introspection" with [auth.introspection], which checks an opaque token at the issuer’s RFC 7662 endpoint; a flat issuer; scopes_supported and capabilities for the discovery document; role_claims and scopeless_subjects.
  • The server and the operator console serve GET {base}/health/liveness, which answers 200 while the process serves and checks nothing (#297).
  • The Helm chart 0.3.0 sets enableServiceLinks: false on the server’s and the console’s pods, and takes hostUsers (default false, each pod in its own user namespace) and supplementalGroupsPolicy (default Strict) from its values (#291). A cluster whose nodes do not support user namespaces sets hostUsers: true, or the pods do not start.

Changed

  • Breaking: the server and the operator console read their configuration through ferrohealth-config 0.2.5 and hold their secrets in ferrohealth-secret 0.2.0, both pinned exactly, and FerroPIX’s own loaders, provenance and secret types are deleted (#295). The file, FERROPIX_CONFIG, FERROPIX_CONSOLE_CONFIG and every FERROPIX__… and FERROPIX_CONSOLE__… key keep their names. What changes for an operator:
    • A secret file loses only its trailing line ending. Leading and other whitespace is now part of the secret, where it was trimmed, so a file holding only spaces is a secret of spaces and no longer refused as empty.
    • A refused configuration names every refusal (up to 16) on one line, each with its key, the variable or --set argument that set it, and the closest known key, where it named the first fault with its line and column.
    • A top-level key can be set from the environment, FERROPIX__PROFILE=development, where a variable needed a section and a key. A list key also takes comma-separated values.
    • The console reads a FERROPIX_CONSOLE__ value as the type its key wants, where it read any value that parsed as TOML as that TOML value.
  • Breaking: the server and the operator console run their console log, request log, span export and panic hook on ferrohealth-telemetry 0.2.2, pinned exactly, and the request id on ferrohealth-server, and FerroPIX’s own telemetry.rs, request_log.rs and request_id.rs are deleted (#296). What changes for an operator:
    • telemetry.otlp_endpoint is removed: set [telemetry.otlp] endpoint. An https collector is trusted through the platform’s roots and trust_roots_file, where it was the WebPKI roots compiled in.
    • telemetry.filter defaults to info,hyper=warn,tower=warn,h2=warn, where it was info.
    • The request log is written under the target ferrohealth_telemetry::request, where it was ferropix_server::request. Its request_id is the id the server minted, and the new client_named says whether the client sent one; the client’s X-Request-Id is echoed on the response and no longer logged. The line gains query, empty unless telemetry.logged_query_parameters names a parameter.
    • The request line’s caller and domain are left off a line they do not apply to, where they were -, and domain separates several domains with a comma, where it used a space.
    • The steward trail of GET /operator/actions records the server’s request id. A BALP record keeps the X-Request-Id of the exchange, the client’s when it sent a legal one.
    • The body of a 500 from a panicking handler names the server’s request id, which the log line carries, where it named the client’s.
    • The exported request span carries the server’s request id.
    • The console’s log takes [telemetry] (format, filter) where it read only RUST_LOG, and it renders as the server’s does.
  • Breaking: the server and the operator console serve the health routes of ferrohealth-server over the readiness registry and lifecycle of ferrohealth-health 0.1.1, pinned exactly, and FerroPIX’s own registry and readiness documents are deleted (#297). What changes for an operator:
    • GET {base}/health answers the status of readiness with {"state":"up"} or {"state":"down"}, where it was liveness with no body (the console’s answered {"status":"up"}). Point a liveness probe at GET {base}/health/liveness; the chart does.
    • The readiness document lists indicators as [{"name", "state"}] with a phase, where it was an object by name, and the open route no longer says why an indicator is down: GET {base}/operator/dependencies gives the detail behind the steward scope.
    • Readiness answers 503 while the server boots and from the moment SIGTERM or SIGINT arrives, so traffic stops before the drain.
    • The console probes the server’s GET {base}/health/liveness.
  • Breaking: the server sends its installation report through ferrohealth-usage-report 0.2.0, pinned exactly, and FerroPIX’s own reporter, envelope types, state directory and window are deleted (#298). The [usage_report] keys, the state directory’s files and the report’s status keep their names. What changes for an operator:
    • The daily report leaves a counter out while it is zero, where it always sent responses_4xx.
    • The boot line ends “no clinical content, identifiers, URLs or request paths”, the wording every FerroHEALTH product writes.
    • A refused usage_report.endpoint is named with the crate’s rule, at load.
  • Breaking: the server and the operator console run their HTTP stack, drain, health probe and shared subcommands on ferrohealth-server 0.3.4, pinned exactly, and FerroPIX’s own middleware, panic catch, drain, signal handling, healthcheck.rs (both binaries) and the console’s security headers and same-origin check are deleted (#299). [server] is the crate’s ServerSection. What changes for an operator:
    • server.public_base_url is the top-level key public_base_url (FERROPIX__PUBLIC_BASE_URL); the Helm chart’s config.server.public_base_url is config.public_base_url.
    • server.drain_timeout_ms is removed: set server.shutdown_timeout_ms (default 10000), the time the requests in flight get once the listener closed, and server.drain_delay_ms (default 0), the time the listener keeps accepting with readiness already 503.
    • [server.caller_rate] is refused at load, since FerroPIX mounts no per-caller limit.
    • A 408, a 413 and a load 503 written by the stack, and the 500 of a panicking handler, are FHIR OperationOutcomes (timeout, too-long, throttled, exception), where they were an empty body or {"error":"internal","request_id":…}.
    • Responses are compressed with gzip or Brotli when the client accepts one and the body is at least 1 KiB; server.compression = false turns it off.
    • ferropix-console healthcheck asks GET /health/readiness, where it asked GET /health, and both probes report healthy or unhealthy: … on one line. The console’s drain on SIGTERM is bounded at ten seconds, where it waited for every connection.
    • The console’s responses carry Cross-Origin-Opener-Policy: same-origin.
  • Breaking: the server’s [auth] is ferrohealth-smart’s AuthSection, and FerroPIX’s own copy of the section is deleted (#303). What changes for an operator:
    • [[auth.issuer]] clients moves to the new [[trust.issuer]] table (issuer, clients), whose issuer must be one [auth] names.
    • auth.steward_scope is auth.product_scope (empty for __ferropix.steward), and auth.admin_scope is operator.admin_scope.
    • auth.challenge_realm is auth.realm, and an empty value names none.
    • auth.enabled = false is refused.
    • The server pins ferrohealth-smart 0.8.2 exactly, which refuses a misspelt key inside an [[auth.issuer]] entry by its name, and ihe-iti 0.0.65 and nl-generic-functions 0.0.33 require it as a caret, 0.8.2. The Helm chart’s README declares a Source’s client under config.trust.issuer.
  • Breaking: the server pins ihe-atna 0.3.0 exactly, and ihe-iti 0.0.64 requires it as a caret, 0.3.0 (#300). A product that takes ihe-iti moves its own ihe-atna pin to the 0.3 line with it. The BALP records FerroPIX writes do not change: 0.3.0 adds User::with_policies, which FerroPIX does not call. FerroPIX does not write the EHDS access record of ehds-logging: Regulation (EU) 2025/327 puts that log on an EHR system (Annex II 3.2), one that holds a priority category of Article 14(1), and the cross-reference holds none.
  • The server pins ferrohealth-smart 0.8.1 exactly, and ihe-iti 0.0.63 and nl-generic-functions 0.0.32 require it as a caret, 0.8.1 (#294). A product that takes either crate moves its own ferrohealth-smart pin to the 0.8 line with it. Between 0.7.4 and 0.8.1 the crate renders every secret and masked URL through ferrohealth-secret.
  • The operator console signs stewards in, refreshes their access tokens and signs them out through ferrohealth_smart::oidc::RelyingParty, the family’s OpenID Connect relying-party client, and its own copy of the client is deleted (#294). The [oidc] keys, the routes, the cookies and the session store are unchanged. When a token answer names no scope, the scopes a session holds now include offline_access where [oidc] offline_access asked for it.

Fixed

  • The compose quickstart declares the healthchecks of the server and the console on their services, the same healthcheck subcommands the images’ HEALTHCHECK runs, so podman compose up --wait starts the console and returns as docker compose does (#292). Podman runs the published images with no healthcheck, so a service_healthy dependent never started.

[0.0.7] - 2026-10-26

Added

  • The server sends ITI-10, the PIX Update Notification, to the HL7 v2 consumers [[hl7v2.consumers]] names (#113). Every cross-reference change, whether a feed that creates or links a record, a merge, a revert or a removal, writes one ADT^A31 per consumer whose domains of interest the patient holds an identifier in to the outbox in the same transaction, listing the patient’s identifiers in those domains (ITI TF-2 3.10.4.1.2). The sender delivers each consumer’s notifications in order over MLLP through ferrobridge-hl7v2 0.1.158, checks the acknowledgment, retries within [hl7v2.notification], and writes the Manager’s audit record of ITI TF-2 3.10.5.1.1 for each notification the consumer answered. The dependency report names each consumer with its latest outcome (consumer, a new upstream kind), and the testkit has a stub MLLP consumer.
  • The server sends ITI-93 to its PMIR subscribers (#104). Every committed change to a patient, whether from a feed, a Source’s merge, an ITI-93 change, or a steward’s link, merge or revert, writes one message per matching active subscription to the outbox in the same transaction, in the subscription’s payload format. The sender delivers each subscription’s messages in order with its channel headers, retries within [pmir.feed], then sets the subscription to error with the reason, and an enable resumes from the next message. The dependency report names each subscriber with its latest outcome, and the new outbox readiness indicator reports a stuck sender. The unused feed_outbox table is dropped.

Changed

  • ihe-iti 0.0.62 and nl-generic-functions 0.0.31 take caret requirements on the family’s shared crates, ferrohealth-smart 0.7.4 and, for ihe-iti, ihe-atna 0.2.13, so a FerroAUTH or FerroAUDIT patch reaches a product’s lockfile without a release of these crates first (#281). The server pins both exactly, ferrohealth-smart 0.7.4 and ihe-atna 0.2.13.

Fixed

  • The release lane installs kubeconform beside helm, so the chart job validates and publishes the chart (#278). The v0.0.6 release published its images and binaries but no chart, and the chart for v0.0.6 is published through the chart fix lane.
  • The chart job logs in to the registry before it attests the chart, so the provenance attestation is pushed beside the chart (#278). Chart 0.2.0 was pushed without its attestation; chart 0.2.1, the same templates and values for v0.0.6, is published with it. Chart 0.2.2 carries v0.0.7.

[0.0.6] - 2026-10-26

Added

  • Pseudonyms (#114, #115):
    • An ITI-83 query that names a pseudonymisation domain as targetSystem answers the person’s pseudonym in it. The domain’s consumer mints it on the first ask, as one value however many first asks arrive at once. Any other caller reads only a minted pseudonym, a query that names no targetSystem mints nothing, and each mint writes its own BALP Create record.
    • The domains are seeded from [[pseudonym_domain]] with their consumer_client_id. The operator API lists, adds, changes and retires them, a steward mints through POST /operator/pseudonyms, and the reverse resolution POST /operator/pseudonyms/resolve is a steward action and a BALP disclosure.
    • A pseudonym resolves to the survivor while its person is merged, and to its own person again after the revert.
  • The quickstart seeds the BSN and the pseudonymised BSN as authoritative, sealed identifier domains (#117). A pseudonymised BSN links two records deterministically, as a BSN does, and never reaches a log. A BSN that fails the eleven-proof is refused at the feed. The book’s Dutch identifiers page states what is held, and that no BSNk service is called.
  • ihe-iti 0.0.61 has the feature smart (#268): authorizer::smart::TokenAuthorizer is the IUA authorizer over ferrohealth-smart’s client-credentials TokenSource. Each PIXm, PDQm, mCSD or PMIR request carries the current token as a bearer token marked sensitive. A 401 drops the refused token and sends the request once more with a new one, and a token that cannot be obtained is an AuthorizerError whose source is the TokenError.
  • Each release publishes the Helm chart to oci://ghcr.io/ferrohealth/charts/ferropix (#269): the reusable build-chart.yml packages it with the release as its app version and the server and console images pinned by the digests the release scanned, pushes it and attests its build provenance. publish-chart.yml publishes a chart fix between releases. The chart, now 0.2.0, documents the Service that serves PIXm and PDQm and the values that declare a domain and its Source, and adds the named template ferropix.fhirBaseUrl for a parent chart.
  • The server receives ITI-93 as the PMIR Patient Identity Registry (#103): POST {base}/fhir from the master domain’s Source, by its client id, applies each change of the feed message in JSON or XML. A create takes the Patient’s UUID id as the patient’s id, and a create of a held patient updates it; an update revises it; a merge (replaced-by) merges the patient into the survivor as the Source’s own merge; a delete removes its master identifier. A non-UUID id is refused per entry with invalid, a patient the server does not hold with 404, and an unmerge with 405. Every message writes one BALP record. A served Patient no longer lists its master identifier twice.
  • Matching never merges two master identities (#103): a master-domain record keeps its own patient, two master patients an identifier names are held apart as a candidate with the master_identities conflict, and a master identity survives any other patient. Between two patients of one kind the one created first survives, whatever the format of its id.
  • The server answers ITI-94 as the PMIR Patient Identity Registry (#105): POST {base}/fhir/Subscription creates an active subscription held to the PMIR Subscription profile with one of the four criteria, and GET, the enable and disable PUT and DELETE of Subscription/{id} read, switch and delete it; the channel endpoint is https, every request is audited, the CapabilityStatement declares the Subscription resource, and a deleted subscription leaves the dashboard’s count in error. ihe-iti 0.0.59 adds the created and current answers of a Subscription.
  • The outbox keeps a delivered or abandoned message for [outbox] retention_days (30) and then prunes it, prune_batch at a time, once an hour (#251); a pending message is never pruned. The server’s role prunes through the pix.prune_outbox function and holds no DELETE on the outbox.
  • ihe-iti 0.0.58 carries the PMIR Patient Identity Registry side behind pmir-server (#102): pmir::server::feed::FeedMessage reads an ITI-93 feed message in FHIR JSON or XML with its Patients, feed::response writes the response with a correlated refusal per entry, pmir::server::subscription::RequestedSubscription reads an ITI-94 Subscription with one of the four criteria and Criteria::matches tests a Patient against them, and pmir::server::notification::message builds the ITI-93 message a subscriber receives.
  • A durable outbox for outbound messages (#239): an XCPD asynchronous answer is written to pix.outbox, its payload sealed under the store’s key, before the request is accepted with 202, so a restart delivers it; the sender retries with a doubling wait, abandons a message whose attempts are spent, and finishes the message in flight on SIGTERM within the drain; db reseal rewrites the waiting payloads. ITI-10 will deliver through the same outbox.
  • IHE’s twelve ITI-55 example messages are vendored by scripts/vendor/ihe-xcpd-examples.sh (#228), and ihe-iti’s tests read them: the Responding Gateway reads IHE’s request, every element its answers and its NS250 refusal write is one IHE’s examples carry, and the Initiating Gateway reads IHE’s Case 2, 3 and 5 answers.
  • The W3C Web Services Addressing 1.0 SOAP Binding Recommendation is vendored by scripts/vendor/w3c-ws-addressing.sh (#241), so the XCPD Responding Gateway’s citation of its §5.2.2 is checked against the text in the repository.
  • The XCPD asynchronous delivery presents a client certificate for mutual TLS (#240): [xcpd] client_certificate_file and client_key_file name the PEM chain and key, and reply_trust_file the authorities trusted for a reply endpoint beside the system roots.

Changed

  • The pins the freshness check reported behind upstream move (#252): W3C DID Resolution 1.0 to the Candidate Recommendation Draft of 2026-10-25, re-vendored, the console journeys’ Chrome for Testing to 156.0.8078.47, and CI’s yq to 4.54.1, each by version and digest.
  • ihe-iti 0.0.57 names the receiver of a Responding Gateway answer by its device alone, as IHE’s example answers do (#228); the answer no longer repeats the initiating community as the receiver’s organization.

Fixed

  • The IHE citation guard reads a vendor cache that is a symbolic link, and in a git worktree with none of its own the main worktree’s cache (#253), so a worktree checks the cache-only citations the main checkout can.
  • The IHE citation guard reads the seventh-level headings profiles.ihe.net renders as <h7> (#237), so a citation of such a section, ITI TF-2 §3.21.4.1.2.5.2 among them, is checked instead of refused when the HL7 v2 cache is fetched.

Security

Shipped with functional changes because: the advisory fix is a dependency move, and the unreleased functional changes already on main ship in the same release.

  • The workspace takes ferrohealth-smart 0.7.1, which fixes GHSA-vphj-3f8c-5hpx, and ihe-atna 0.2.11. ihe-iti 0.0.60 and nl-generic-functions 0.0.30 are released against them.

[0.0.5] - 2026-10-25

Added

  • The XCPD Responding Gateway answers the asynchronous exchange of ITI TF-2 Appendix V.5 (#232): a request whose ReplyTo starts with one of [xcpd] reply_endpoints is accepted 202 and its answer posted to that endpoint with RelatesTo and To, retried with a doubling wait up to [xcpd] delivery_attempts; any other ReplyTo is a Sender fault. The Deferred Response Option is not offered. ihe-iti 0.0.55 writes the answer’s wsa:To for an asynchronous request, and ITI TF-2 Appendix V is vendored beside ITI-38.
  • The server answers ITI-55 as an XCPD Responding Gateway (#231) at POST {base}/xcpd, behind [xcpd]: a shared identifier is looked up in the cross-reference and demographics are scored by the matcher, settling the five cases of ITI TF-2 §3.55.4.2.3; the answer carries the patient’s identifiers in the [xcpd] domains, a Deferred request is refused with NS250, a query from an initiating community not listed is Case 5, and every query writes the Responding Gateway audit record of §3.55.5.1.2.
  • ihe-iti 0.0.54 carries the Responding Gateway side of ITI-55 in the xcpd feature (#230): xcpd::responding::query::read reads a Cross Gateway Patient Discovery request in each mode of ITI TF-2 §3.55.1, xcpd::responding::answer writes the answer of the five cases of §3.55.4.2.3, the NS250 acknowledgement of a Deferred request and a SOAP fault, and xcpd::responding::audit::RespondingAuditEvent is the Responding Gateway audit message of §3.55.5.1.2.
  • Automatic probabilistic linking keeps its ground (#112): with [matching] auto_link = true, each record a certain pair moves gets a link of kind probabilistic with the score and the evidence the pair was graded on, and the merge is an auto-link system action. The book’s Matching page explains the switch and how to earn it.
  • A steward’s merge and its revert in the operator API (#108). GET /operator/merges/preview answers the whole effect of a merge or a revert and writes nothing; POST /operator/merges merges two persons with the versions the steward read, and POST /operator/merges/{id}/revert reverts the survivor’s latest merge, replaying its moves backwards and making the merged person active again. A person that changed since the preview is 409, and a revert out of order is 409 with the merge to revert first in its preview. Each is one steward action with its reason and one BALP record.
  • The HL7 v2 face refuses ITI-22, the Patient Demographics and Visit Query, by name: a QBP^ZV1 is acknowledged AR with ERR code 200 and a text that points to ITI-21, since FerroPIX keeps no visit data and the transaction returns a PV1 per patient (ITI TF-2 §3.22.4.2.2.7) (#199).
  • The review queue and the steward’s decisions in the operator API (#107). GET /operator/candidates lists the open candidates and the deferred ones whose day has come, by grade, score and age, filtered by grade, domain, age and deferral; GET /operator/candidates/{id} answers one with its evidence, the two records at their versions and their persons’ identifiers masked; POST /operator/candidates/{id}/decide links (a merge of the two persons, the older surviving), holds the pair apart, or defers it to a day, refused with 409 when the candidate was decided or a record moved since the versions it names. Each decision is one steward action with its reason and one BALP record, and a not-a-match pair stays out of the queue until a record’s demographics change.

Changed

  • ihe-iti 0.0.53 takes ihe-atna = "=0.2.10" and nl-generic-functions 0.0.29 takes ferrohealth-smart = "=0.7.0", the family’s newest pins, and the server runs on both; a product that takes ihe-iti moves to ihe-atna = "=0.2.10" with it, and one that takes nl-generic-functions with nuts-auth to ferrohealth-smart = "=0.7.0" (#225).
  • The dashboard’s auto-link rate counts only the records the scorer linked alone in the last 24 hours, where it counted every record whose patient held another record, a deterministic link included (#112).
  • The operator console draws with FerroUI 0.4.0 (#215). The top bar’s search still submits to the search page, which lists every match in the page; whether it answers under the field as you type waits on what a search typed that way records in the audit trail (#214).
  • The HL7 v2 face takes ferrobridge-hl7v2 0.1.143 without its v2-to-FHIR mapper, so the server no longer links fhirconnect, ferrobridge-term or the openEHR crates. Its ITI-8, ITI-9 and ITI-21 audit records name the sending system’s own network address, where they named the listener’s; ITI-8’s ADT_A01 for A04, A05 and A08 is selected by the crate (structure_declared), and table 0357’s 204 is the crate’s ErrorCode (#213).
  • ihe-iti 0.0.52 takes ihe-atna = "=0.2.7" and fhir-types 0.1.128 or later, and nl-generic-functions 0.0.28 takes ferrohealth-smart = "=0.6.0", the family’s newest pins, so a product on those lines (FerroEHR) resolves both crates beside its own pins. A product that takes ihe-iti moves to ihe-atna = "=0.2.7" with it, and one that takes nl-generic-functions with nuts-auth to ferrohealth-smart = "=0.6.0" (#211).
  • The changelog structure guard refuses a blank line between two bullets of an [Unreleased] list, which would split the list in the release notes, and has a self-test that CI runs; released sections keep their form (#208).

[0.0.4] - 2026-10-25

Added

  • The HL7 v2 face (#83): one MLLP Release 1 listener on [hl7v2] listen over FerroBRIDGE’s ferrobridge-hl7v2 and hl7v2-types, pinned exactly, with the frame ceiling, the idle and frame timeouts, the MSH-18 character sets, the senders of [[hl7v2.senders]] (a message from another is answered AR), a receipt per feed message so a message sent again is acknowledged with its first code and not applied twice, the hl7v2_listener readiness indicator and the drain on SIGTERM (#85). ITI-8 ADT^A01, A04, A05 and A08 add or revise a patient and ADT^A40 merges two, through the feed transaction ITI-104 goes through, so a v2 feed and a FHIR feed of the same patient write the same version and join one person (#86). ITI-9 QBP^Q23 answers RSP^K23 from the cross-reference ITI-83 reads, with the six cases of ITI TF-2 §3.9.4.2.2.6 (#87). ITI-21 QBP^Q22 answers RSP^K22 from the search ITI-78 runs, with the continuation protocol over a pointer that lives ten minutes and QCN^J01 (#88). Every message writes the Manager’s or the Supplier’s audit record before its answer leaves. [hl7v2.namespaces] names a domain’s HL7 namespace id, and a sender with no domain may query and not feed. The usage report counts the face’s messages in the hl7v2 group with hl7v2_ae and hl7v2_ar.
  • The Helm chart, deploy/helm/ferropix (#100): the server’s Deployment with its startup, readiness and liveness probes on the health family, the HTTP Service and, with the HL7 v2 face on, the MLLP Service, the operator console’s Deployment and Service, the PostgreSQL URL, the sealing key and the console’s client secret as Secrets mounted as files, a NetworkPolicy, a PodDisruptionBudget and the usage report stating helm. Every container holds the Restricted Pod Security Standard with a read-only root. deploy/helm/validate.sh (CI’s helm-chart job) lints, renders and holds it to the Kubernetes schemas with kubeconform, and deploy/helm/kind-check.sh installs it on a kind cluster.
  • The operator API’s sources and configuration (#120, #121). GET /operator/sources lists every system allowed to feed (each FHIR client an issuer lists, each Basic user of the development profile and each [[hl7v2.senders]] entry) with its channel, its admission, the domains that name it and its last activity, and GET /operator/sources/{id} one source with its last 20 messages, never a value. GET /operator/configuration shows the matching configuration in file mode, each setting with where its value came from: the file, the environment, the default, or built in. FerroPIX keeps no configuration store, so both are read-only and changed in the file.
  • The operator console’s pages drawn from the operator API (#89): the dashboard with its stat cards, the queue depth and feed charts, the listeners and the oldest pairs (#92); search by identifier and by demographics with graded results, the top bar’s field read by the shape of what was typed (#93); the patient record with its identifiers, records side by side, history and pseudonyms, and the audited reveal (#94); the identifier domains with the administrator’s editor, drawn only when the provider granted the token [pix] admin_scope (#95); the audit trail with posted filters and the CSV export (#96); the sources and the configuration in file mode (#120, #121). A refused call shows the server’s issue in place.
  • The console’s browser journeys over the filled screens (#98): the WCAG 2.2 AA battery runs over every screen drawn from synthetic operator API documents as well as over its refused state, in both themes and at 320 px; / focuses the top bar’s search, j and k walk the results and Enter opens the person; a dialog closed with Escape gives the focus back to its button. The book’s console page shows every page in the light theme with its dark capture, taken behind FERROPIX_SCREENSHOTS at 1440 and 390 px, and a guard fails when a route has no capture or the captures name another release.

Changed

  • nl-generic-functions 0.0.27 takes ferrohealth-smart = "=0.5.0" and drops its private copies of the RFC 8414 issuer checks the Nuts grant makes: the canonical issuer text, the issuer comparison, the endpoint on the issuer’s origin and the refusal of JSON that repeats a name now come from the crate’s metadata module. The grant keeps its own refusal of an endpoint with userinfo or a fragment. A product that takes nl-generic-functions moves to ferrohealth-smart = "=0.5.0" with it (#198).
  • [hl7v2] refuses a default_charset the decoder does not read and two senders of one domain at load (ITI TF-2 §3.8.4.1.3: one Patient Identity Source per domain) (#85).
  • The operator console moves to FerroUI 0.3.7, whose setting rows mark a value the environment set or nothing set.
  • The changelog guard passes a pull request that adds a bullet to the newest ## [X.Y.Z] section while no vX.Y.Z tag exists, so a fix that lands between the release pull request and the tag records itself in the notes the tag publishes, without the no-changelog label (#193).
  • ihe-atna moves to 0.2.6, the FerroAUDIT release whose forwarder closes a syslog connection with close_notify before it reconnects and adds Forwarder::stop, so a product that pins 0.2.6 resolves ihe-iti beside it. FerroPIX’s server delivers its audit records over the FHIR Feed and opens no syslog connection, so nothing else changes (#194, ihe-iti 0.0.50).
  • SECURITY.md states the response times every product of the Ferro family states: an acknowledgement within about 5 business days in place of seven days, an initial assessment within about 10 business days, both best effort, and 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.

Fixed

  • ihe-iti’s FHIR JSON body reader refuses a body that has no FHIR XML form at all as it refuses one whose XML form reads back changed, so the narrative the fuzzer found is still refused under fhir-types 0.1.128, whose XML writer now refuses that narrative instead of writing it changed (PIXm 3.1.0 §2:3.104.4.1.2; ihe-iti 0.0.51).

[0.0.3] - 2026-10-24

Added

  • The span export of [telemetry] otlp_endpoint (#143): serve sends one request span per request over OTLP/gRPC, with the method, the matched route template and the status and nothing that names a patient, a caller or a query.

  • The operator API’s reveal and domain writes (#90). POST /operator/persons/{id}/reveal unmasks one identifier, carried identifier or pseudonym the person holds, with a required reason: a reveal steward action naming the person, the record and the domain, and a BALP Privacy Disclosure record with the person as subject and the reason as a detail, are written in one transaction before the value is answered once, no-store, shown 15 seconds by default and never more than 30. Behind the administrator scope, POST /operator/domains adds a local or authoritative domain whose Source an issuer lists, and PATCH /operator/domains/{id} renames one, gives it another Source or retires it for good, each a domain-create or domain-update steward action with its BALP record; the guard takes the new Source the moment the write commits. The migration 0014_steward_subjects adds the identifier and pseudonymisation domain a steward action names, and the grants move to 0015. The trail and its export carry both columns.

  • The operator API the console reads (#90, ferropix_server::operator), under {base}/operator behind [operator] enabled and the steward or administrator scope the permission table names, with its documents in ferropix-operator-api. GET /operator/overview answers the dashboard; POST /operator/search/identifier finds the persons one identifier is cross-referenced to by its HMAC, a carried authoritative identifier included, and POST /operator/search/demographics runs the scorer over the blocking keys, each paged (20 by default, at most 50); GET /operator/persons/{id} answers the person with its identifiers per domain masked, its source records, its history (at most 200 entries) and its pseudonyms masked; GET /operator/domains and GET /operator/domains/{id} the identifier domains with their record counts and last 20 feeds; GET /operator/matching the [matching] section in effect with every field’s weights; GET /operator/actions a page of the steward trail filtered by actor, kind, person and time, and POST /operator/actions/export the same as CSV, at most 10,000 rows. Every lookup that carries an identifier is a POST, every answer is no-store, and no refusal quotes the request. A person view writes a view steward action and a BALP Patient Read record, a search one BALP Patient Query record per person found or a Query record, and an export an export action and an Export record, each stored before the answer. The console’s client reads the dashboard typed and walks every document field by field, so a renamed field fails its build.

  • The operator console’s image and release lane (#99). docker/console/Dockerfile puts the static console binary and its site bundle on the same distroless base, compiling nothing: user 65532, port 3000, the bundle under /site, and a HEALTHCHECK on ferropix-console healthcheck. A v* tag now builds, attests and attaches the console’s musl binaries and site bundle and pushes ghcr.io/ferrohealth/ferropix-console for both platforms with SLSA provenance and SPDX SBOMs (release-console.yml), checked with gh attestation verify; the vulnerability record, the tag gate and the weekly scan cover it beside the server image. compose.yaml gains the console profile, signed in through the development issuer with the client secret as a file secret. CI builds the console image from a placeholder tree. The book’s console page documents the image, its port and its verification.

  • The PDQm Patient Demographics Supplier with the Match Operation Option (#70, #72, #73, ferropix_server::pdqm). ITI-78 answers GET /fhir/Patient and POST /fhir/Patient/_search alike with every parameter of PDQm 3.2.0 §2:3.78.4.1.2.1, AND and OR, :exact, the domain filter, and searchset paging by a cursor (_count 20 by default, at most 100), and GET /fhir/Patient/{id} reads one person. A string matches as a case- and accent-insensitive prefix, an identifier by the HMAC of its normalised value, so search opens no sealed value, and a birthdate with every FHIR prefix. Each Patient is the person, with its master identifier, the identifiers a PIX query answers for it and the demographics of an authoritative domain’s record first. The six cases of §2:3.78.4.1.3 answer as PDQm names them, a merged person by [pdqm] deprecated. ITI-119 POST /fhir/Patient/$match scores the input with the scorer over the blocking keys, one entry per person most likely first with search.score and match-grade from the [matching] thresholds, onlyCertainMatches, count, and a warning entry for an input of fewer than three fields. Every search, read and match writes its PDQm Supplier BALP record, one per person answered, before the answer. The CapabilityStatement instantiates the PDQm Supplier statements with read, search-type, the search parameters and $match. The migration 0013_search installs unaccent into pix with the functions the search reads, and the grants move to 0014.

  • The server image and the SLSA Build Level 3 release lanes (#74, #75, #76). docker/Dockerfile puts the static musl binary on distroless static pinned by digest, compiling nothing: user 65532, ports 8080 and 2575, /var/lib/ferropix with its 0700 audit spool owned by the runtime user, and a HEALTHCHECK on ferropix healthcheck. A v* tag now builds the binary per architecture with cargo auditable (release-build.yml), verifies those tarballs and pushes ghcr.io/ferrohealth/ferropix for linux/amd64 and linux/arm64 (release-image.yml), each with SLSA provenance and SPDX SBOMs a consumer checks with gh attestation verify; records every vulnerability finding of the image and the binaries joined with its OpenVEX judgement, refusing a release with an unjudged one (scripts/checks/vex-coverage.sh); and tags the image only after the HIGH and CRITICAL gate (scan-and-tag.yml). image-scan.yml scans the published image each week. compose.yaml runs the image beside PostgreSQL and a development OpenID Provider with file secrets, a read-only root, every capability dropped and ports on 127.0.0.1; the quickstart configuration’s issuer moved to that provider. CI lints the Dockerfile with hadolint and runs the quickstart to readiness on every change. scripts/release/stage-dist.sh stages a release’s binaries for a local build. The book’s Deployment page documents the image, its ports, its verification and the quickstart.

  • The PIXm Manager (#66, #68, #52, #69). $ihe-pix (ITI-83) answers by GET and by POST of a Parameters body, the two forms alike, in FHIR JSON and XML, from store::xref::lookup through ihe-iti’s pixm::server reader and writer, with the five answers of PIXm 3.1.0 §2:3.83.4.2.2. An identifier in an authoritative domain that no Source feeds, such as the BSN a hospital’s Patient carries, is found and answered too, and one carried by records of two persons answers 409 multiple-matches (#167). ITI-104 adds, revises, resolves a duplicate and, with [pixm] remove_patient, removes through the feed transaction: 201 or 200 with an information issue and a Location naming the person, 403 for a client that is not the domain’s Source, and 400 or 422 for a refused message. Each route passes the permission table and fills the audit place it took with its PIXm BALP record; an ITI-83 answer is withheld with 503 when its record cannot be stored. No query, body or identifier reaches a log line, a span or a refusal. GET /fhir/metadata serves the CapabilityStatement in JSON or XML, instantiating the PIXm Manager actor statement with conditionalUpdate, conditionalDelete only with the Remove Patient Option, and the ihe-pix operation; _format is honoured on every served route and an unsupported one answers 406. fhir::status is the one table of every outcome the face answers. The book’s new page “The PIXm Manager” says what it accepts.

  • The conformance gate (#162, scripts/checks/conformance.sh): corpus tests in ihe-iti read and write every example of the vendored PIXm 3.1.0, PDQm 3.2.0 and PMIR 1.6.0 packages, and check each audit example against the record ihe-iti writes. Each corpus ratchets against its pass list under conformance/, which names every failing example with its reason, and renders a shields.io endpoint badge under conformance/badges/. Today: PIXm 12 of 13, PDQm 10 of 11, PMIR 7 of 7, audit records 7 of 13 (the six Manager and Supplier records are the server’s). CI runs the gate under --check in conclusion.

  • The README opens on the family’s badge row: CI, CodeQL, OpenSSF Scorecard, the SonarCloud quality gate and coverage, the licence, the latest release, the documentation, the crates.io and docs.rs badges of ihe-iti and nl-generic-functions, and the four conformance badges.

  • The server’s feed transaction (#60, ferropix_server::feed): an ITI-104 add or revise, resolve duplicate or remove, as ihe-iti reads it, is one PostgreSQL transaction. The record is locked by (domain, hmac) or inserted and takes a version whose demographics hold no identifier; every identifier the Patient carries in a known domain is its own row, found by its HMAC and sealed in a sensitive domain, after its domain’s rule normalised it (a BSN to nine digits passing the eleven-proof). Records that carry one authoritative identifier are joined into the oldest of their persons unless the birth year or a stated gender differs, which records a candidate instead; a local value never links across domains. Every record sharing a blocking key is scored and a pair graded possible or better becomes an open candidate, linked alone only with auto_link = true (#61). The advisory locks on identifiers, then the records, then the persons, each in key order, let two feeds that join the same persons both commit as one person. A resolved duplicate merges the persons with kind = source and a PIX query of the subsumed identifier answers the survivor’s set (store::xref); a removal answers not found and keeps the versions. Every system action is a steward_action row, and feed::record writes the PIXm Feed Manager BALP record after the commit. The migration 0012_feed adds carried_identifier and the blocking columns, the grants move to 0013, and db reseal rewrites the carried identifiers too. ferropix matching estimate prints each field’s u from the store’s value frequencies.

  • The installation report to FerroPULSE (#153). ferropix serve sends one start report (at most one per ten minutes) and one daily report on FerroPULSE’s report envelope v2 with the product ferropix: the instance id kept under usage_report.state_dir, the version, the commit, the deployment kind usage_report.deployment states, the host size as ranges, the profile, the services switched on, the identifier domains as a range, the readiness of the store and the audit spool, and, once a day, latency per route group and the count of 4xx answers from the request log. It never carries an identifier, a domain’s system or name, a host name or a request path. It is on by default and announced at every start; usage_report.enabled = false, an unset state_dir or a CI environment (GITHUB_ACTIONS, CI) keeps it off. Every report is validated against the schema scripts/vendor/ferropulse-schemas.sh vendors from the pin in docs/VERSIONS.md, and scripts/checks/usage-report-off.sh holds every launcher of the server in a test lane to the switch.

  • The server’s probabilistic scorer (#61, ferropix_server::matching): a Fellegi-Sunter weight per field from the [matching] m and u (each field’s default documented on the book’s new Matching page), the comparators of each field (Jaro-Winkler on names, exact with half credit on birth dates, the four-character prefix on postal codes, the token overlap of addresses, telephone numbers on their last nine digits), a score in [0, 1] by the logistic of the total against a fixed midpoint of 10 bits, the grades certain, probable, possible and certainly-not against the thresholds, the blocking keys, and the evidence of every field with its values masked. The scorer reads no store; the feed records its candidates with #60.

  • The server’s BALP audit trail through ihe-atna (#63). serve opens the ITI-20 spool under audit.spool_dir and refuses to start on a directory open to other users, unwritable or holding a foreign file, and sends the records to audit.url over the FHIR Feed: a delivered record is removed, a refused one quarantined. Every audited route takes its record’s place in the spool before it runs, so a full spool refuses the request with 503 and a transient issue. The records of ITI-83 and ITI-104 (the PIXm Query and Feed Manager audit profiles), ITI-78 and ITI-119 (the PDQm Query and Match Supplier profiles) and of a steward’s view or decision are built from the token’s caller, with the patient as the subject and a search’s raw request base64 in entity.query, one record per person found. Readiness gains the audit_spool indicator, and the dependency report names the repository with its last outcome. The PIXm and PDQm packages now vendor the Manager and Supplier audit profiles and examples.

  • The server’s health family and request log (#64). GET {base}/health/readiness runs a registry of indicators, each bounded to two seconds, and answers 503 with a readiness document naming each one that is down; the indicators land with the subsystems they check (the store, the audit spool, the MLLP listener, the feed sender). ferropix healthcheck exits 1 on that 503. GET {base}/operator/dependencies answers the same report with the upstreams’ last outcomes behind the steward scope. One request log line per request under the target ferropix_server::request records the request id, the method, the matched route template, the status, the latency, the caller and the domain a feed wrote to, and never the path as sent, a query, a body or a header value, so a BSN sent by GET to $ihe-pix stays out of the log. ferropix-operator-api is the new crate of the documents the server writes and the console reads. The usage report moves to #153, which waits on FerroPULSE taking the ferropix product.

  • The operator console’s browser journeys (#98), behind FERROPIX_JOURNEYS and run by CI’s journeys job in headless Chrome for Testing 155.0.8059.79 (pinned in docs/VERSIONS.md, installed locally by scripts/release/journey-tools.sh): sign-in and sign-out through the test OpenID Provider, the preferences round-tripping through their cookies, and the WCAG 2.2 AA battery over every screen’s refused state in both themes, with a self-test that a wrong theme fails it. The console marks <html> data-hydrated once its islands run, which every wait waits for.

  • The console’s pseudo-locale (#97): a language cookie naming qps draws every console and library word accented and two fifths longer. Your preferences never offers it; the pseudo-locale journey walks every screen in it and fails on a word that skipped the catalog or a page that scrolls sideways at 1440 or 390 px.

  • Authorization of the FerroPIX server through ferrohealth-smart (#62): serve reads the RFC 8414 metadata and key set of every [[auth.issuer]] at start, and every route of {base}/fhir and {base}/operator has a row in one permission table. A Consumer needs system/Patient.rs, a Patient Identity Source system/Patient.cud with its token’s client_id equal to the domain’s source_client_id and listed by the issuer that signed it, a PMIR subscriber system/Subscription.cruds, and the operator API auth.steward_scope or, for its domain writes, auth.admin_scope; each IHE transaction also admits its IUA scope (ITI-83, ITI-104, ITI-78, ITI-119). A missing token answers 401 and a missing scope 403, each an OperationOutcome with a security issue, and a Source changing another domain 403 with a forbidden issue; no refusal names a claim, the token or a request value. GET {base}/fhir/metadata and {base}/fhir/.well-known/smart-configuration name the token endpoint and the scopes. The transaction routes answer 501 until their faces land. Basic users now need the [dev] table beside profile = "development".

  • The ITI TF-2 texts of the HL7 v2 transactions ITI-8, ITI-9, ITI-10, ITI-21 and ITI-22 (#84), pinned by checksum in docs/VERSIONS.md and fetched by scripts/vendor/ihe-iti-tf.sh into the local cache, never committed, because each page reproduces HL7 tables whose rights HL7 reserves. The IHE citation guard checks a citation of them against the cached pages, and the book’s conformance page says so.

  • ferropix-server, the FerroPIX server crate with its binary ferropix (#58): serve, config check, healthcheck and db migrate. The configuration tree of docs/architecture.md §3 loads from one TOML file named by --config or FERROPIX_CONFIG, with FERROPIX__<SECTION>__<KEY> overrides, and every table refuses an unknown key. A secret is a Secret or SecretUrl that renders *** (a URL with its user information and query replaced), read from its key or its _file sibling; profile = "production", the default, takes the _file form only and refuses the [dev] table, Basic users and plain http bases off loopback. A [[domain]] seed whose source_client_id no [[auth.issuer]] lists in its clients is refused, as is a system seeded twice. serve runs {base}/health and {base}/health/readiness behind the request id, the panic catch, the request timeout, the body ceiling and the bounded drain on SIGTERM. app/ferropix-server/quickstart.toml is the smallest production configuration, and the book’s Configuration page lists every key, held by a test.

  • The cross-reference store of ferropix-server (#59): schema pix in PostgreSQL 18, built from a migration set embedded in the binary, with every relation of docs/architecture.md §4.2 and the temporal link constraint that keeps a source record in one person at any instant. ferropix db migrate and serve (unless [db] migrate = false) apply the pending migrations, check the sealing key and insert each [[domain]] the store lacks; serve first refuses a role that can read any schema beside pix, and its guard admits as Sources the domains the store holds after the seed; the readiness route reports the store as the database indicator. An identifier in a sensitive domain is sealed with AES-256-GCM and found by its HMAC-SHA256 in one index probe, so a dump shows no identifier. db.data_key_file now holds the base64 of 32 random bytes, and a start under another key is refused. ferropix db reseal --old-key-file <PATH> moves every identifier column to the configured key in resumable batches. No identifier or name reaches a log line, a Debug rendering or an error of the store.

  • ihe-iti 0.0.45 adds the server sides of PIXm and PDQm, typed and with no store and no HTTP server, so FerroPIX and FerroFED can each put them on their own stack. pixm-server is the PIX Manager (#67): $ihe-pix read from the GET query or the posted Parameters into one request, with the OperationOutcome of a second sourceIdentifier, a token without a system and an unknown parameter, the Parameters answer and the three failures of ITI-83 written, and the ITI-104 conditional update and delete on Patient?identifier= read, held to the PDQm Patient profile, the condition’s identifier and the replaced-by link. pdqm-server is the Patient Demographics Supplier (#71): every ITI-78 search parameter read with :exact, AND, OR and the domain filter, the parameters it drops reported and left out of the self link, the searchset Bundle with its total and paging links written, the $match input read as Parameters or a bare Patient, and the Match Output Bundle written with each entry’s search.score and match-grade. Both read and write FHIR JSON and FHIR XML (ihe_iti::server::format::Format). TargetIdentifier::new and PatientReference::new of ihe_iti::pixm::identifier are public, for the Manager’s answer. The crate’s README gains its PMIR section (#54).

  • ferropix-console, FerroPIX’s first operator console (#119), built new on FerroUI 0.3.6 (ferrohealth-ui = "=0.3.6", with its split feature for the --split site build, #127, #131, #137, #139) in its FerroPIX brand as part of the family console rollout (FerroHEALTH/FerroUI#161): a Leptos islands app the server renders whole, with every island FerroUI’s and every page working without its WebAssembly. It has the OpenID Connect sign-in (authorization code with PKCE) and the server-side session behind one __Host- cookie with refresh and sign-out, the FERROPIX_CONSOLE__ configuration with _file secrets, the nonce Content-Security-Policy and the other browser security headers, Your preferences on FerroUI’s three tabs with the reveal duration and hide on leave, About with the server’s CapabilityStatement, search by an identifier masked as typed with FerroUI’s hold-to-show eye, and every page of the reviewed design (dashboard, review queue and compare, search, patient with merge and unmerge, sources, identifier domains, pseudonymisation domains, configuration, audit trail). The FerroPIX server and its operator API are not built yet (#57, #90), so each page that reads them draws the design’s refused state: the server refused the connection, did not answer, refused the console, or serves no operator API yet. The planned name ferropix-viewer is ferropix-console throughout; nothing was published under the old name. The book gains The operator console.

  • docs/architecture.md, the design of record for the server and the operator console: the process and its configuration, the PostgreSQL cross-reference store with its history and transaction boundaries, the matching in three tiers with the steward in the middle, the PIXm, PDQm and PMIR faces and the HL7 v2 listener, pseudonyms, authorization and audit, the two images released at SLSA Build Level 3, the CI lanes, and the console’s information architecture, screens, wireframes and FerroUI component inventory. CLAUDE.md and the book name the console, the PostgreSQL store and the two images as planned, by milestone.

  • The documentation site at https://ferropix.eu/: a landing page in the FerroHEALTH design with the FerroPIX brand, and the book under /docs/ (what FerroPIX is and what is built or planned, getting started, the published crates with every feature, configuration, deployment, security and audit, operations, the specification pins, contributing and this changelog), built and link-checked on every pull request and deployed from main by the Docs workflow. The brand gains a favicon set and a mark for a dark ground (#45, #46, #47, #49).

  • The guards that keep the book in step with the code, in CI’s required conclusion: book-guard.sh refuses a change to a crate’s source or features, the server or a deployment file that does not update the book (the no-book label is the escape), docs-claims.sh holds each crate’s Features table to its Cargo.toml, refuses a typed crate version and a planned item without its tracker link, and writing-style.sh refuses an em dash, a banned word or AI attribution in the published prose. Each has a --self-test (#48).

  • The release checks the family’s Security changelog rules: every ### Security entry names a GHSA advisory or an OpenVEX statement under security/vex/, and a Security section beside other changes opens with “Shipped with functional changes because:” and its reason (Regulation (EU) 2024/2847 Annex I Part II(2), (4), (8)). CI checks [Unreleased], and the release plan job the section it cuts, through scripts/release/plan.sh, which scripts/release/preflight.sh replays before the tag (docs/release.md). The release notes state the month the five years of security fixes end (Art 13(19)). The accepted paste advisory (RUSTSEC-2024-0436) is published as a generated OpenVEX statement, security/vex/rust-advisories.openvex.json, and SECURITY.md names the info@cadasto.com reporting route and the advisory each fixed vulnerability is published as (#123).

Changed

  • ferropix-console moves to FerroUI 0.3.3 (#127): the search page’s identifier is FerroUI’s masked input with the hold-to-show eye inside the field, which shows the typed identifier only while held and stays masked without WebAssembly; a refusal with no answer shows its summary alone as its title, the words “No answer:” read by assistive technology; and the site’s --split build keeps the date picker in a chunk of its own through the library’s split feature.

  • ferropix-console moves to FerroUI 0.3.4 (#131): the Search entry of the navigation draws the design’s user-round-search glyph in place of the magnifier.

  • ferropix-console moves to FerroUI 0.3.5 (#137). The console draws no part 0.3.5 changes, so its pages look and behave as before.

  • ferropix-console moves to FerroUI 0.3.6 (#139). The console draws no activity chart, the one part whose interface 0.3.6 changes, so its pages look and behave as before.

  • The repository builds with Rust 1.99.1 in place of 1.98.1, and the MSRV stays at 1.98: the FerroHEALTH family builds with the latest stable toolchain and declares the release before it as its MSRV. No published crate changes.

  • ihe-iti 0.0.40 splits the audit feature in two: balp, the BALP AuditEvent of the PIXm, PDQm, mCSD and PMIR transactions on ihe-atna/balp, and atna, the ITI-55 audit message of xcpd on ihe-atna/atna, which compiles no FHIR model. A product that enabled audit enables balp, atna or both. Published between releases (#32).

  • ihe-iti 0.0.41 takes ihe-atna = "=0.2.1" and drops its own copies of the record bound, the URL redaction and the FHIR base join: they are ihe-atna’s balp::recording, redact and fhir_base (FerroHEALTH/FerroAUDIT#8, #9, #61), taken through ihe-atna’s recording and redact features, so a profile without balp or atna takes no audit stack. API breaks: ihe_iti::recording is gone (use ihe_atna::balp::recording, whose Late is made with Late::new()); the EventKind constants of the audit modules are functions, since ihe-atna 0.2’s EventKind holds a Vec (pixm::audit::query_consumer(), pdqm::audit::query_consumer() and match_consumer(), mcsd::audit::query() and updates(), pmir::audit::feed_kind(), subscription_create(), subscription_read(), subscription_delete() and subscription_search()). A product that implements ihe_atna::balp::AuditRecorder for ihe-iti’s clients moves to ihe-atna = "=0.2.1" with it (#35).

  • nl-generic-functions 0.0.26 takes ferrohealth-smart = "=0.4.0", so a product resolves one copy of it. The three checks the Nuts grant adds to the RFC 8414 issuer rule (the exact canonical issuer text, every endpoint on the issuer’s origin, and a refusal of JSON that repeats a name) stay private in nuts_auth, as 0.4.0 does not carry them (#36).

  • ihe-iti 0.0.42 takes ihe-atna = "=0.2.2", which changes only the declared MSRV, raising it to 1.98; a product that takes ihe-iti moves to ihe-atna =0.2.2 with it (#39).

  • ihe-iti 0.0.43 takes ihe-atna = "=0.2.3", the only supported release; 0.0.42 was not published (#41).

  • ihe-iti 0.0.44 takes ihe-atna = "=0.2.4", the only supported release (#43).

Fixed

  • A PIXm feed body in FHIR JSON whose narrative is not well-formed XHTML, so that its FHIR XML form reads back changed, is refused as having no XML form; the server accepted it and would have answered with a different Patient in XML (#190, ihe-iti 0.0.49).

  • ihe-atna moves to 0.2.5, the FerroAUDIT release that fixes a syslog frame lost before a dropped connection. FerroPIX delivers its audit records to a FHIR repository over HTTP and opens no syslog connection, so no Connection::close call is missing (#191).

  • The PIXm ITI-83 reader refuses an empty _format with a 400, where it accepted one its Parameters form cannot carry (#185, ihe-iti 0.0.48).

  • The PIXm client percent-encodes a space in its ITI-83 query as %20 (RFC 3986 §2.1), where it wrote +, which a Manager reading the query as RFC 3986 takes as a literal plus (#164, ihe-iti 0.0.47).

  • ihe-iti 0.0.46 fixes three request readers the new fuzz lane caught (#79). The ITI-83 GET reader refuses with a 400 and a value issue a query value no FHIR string holds (a vertical tab or a form feed), which it accepted although the same request posted as Parameters was refused. A FHIR JSON body whose XML form does not read back, such as a Patient whose narrative div is no XHTML, is refused by every body reader with the new BodyError::NoXmlForm, so a Manager or a Supplier never stores a resource it could not answer with in XML. The self link of an ITI-78 search writes a space as %20, so following it reads the same search: it wrote the form encoding’s +, which a URL query reads as itself. QueryError::NotAString is the new variant of the first refusal. The fuzz lane (.github/workflows/fuzz.yml, the fuzz/ targets) runs cargo fuzz weekly over the ITI-83, ITI-104, ITI-78 and ITI-119 readers and the format parsers, on the nightly docs/VERSIONS.md pins.

[0.0.2] - 2026-10-20

The move from FerroFED (FerroHEALTH/FerroFED#367): ihe-iti 0.0.39 and nl-generic-functions 0.0.25 are published from FerroPIX, each copied with its history and with the corpora it reads re-vendored at FerroFED’s pins. FerroFED pins both by exact version from crates.io.

Added

  • ihe-iti 0.0.39, moved from FerroFED with its history: the IHE PIXm, PDQm, PMIR, mCSD and XCPD clients and the IUA authorizer, a feature each. The atna and balp features are gone: the audit trail is the ihe-atna crate of FerroAUDIT. The audit record each profile defines for its own transactions stays here behind the new audit feature, on ihe-atna =0.1.0. A product changes ihe_iti::user to ihe_atna::user, ihe_iti::balp and ihe_iti::atna to ihe_atna::balp and ihe_atna::atna, and the features balp and atna to audit (#25).

  • nl-generic-functions 0.0.25, moved from FerroFED with its history: NVI localization, the Mitz closed authorization question, LRZa addressing and the Nuts access token request, a feature each. nuts-auth no longer depends on oauth-server-metadata, which is retired: it takes the RFC 8414 issuer rule and metadata location from ferrohealth-smart =0.3.1. A plain http issuer is now accepted on a loopback host only (#26).

  • The IHE citation guard, scripts/checks/ihe-citations.sh, and the corpora its audit citations read at FerroFED’s pins: the BALP package and narrative pages and the ITI-20 page with the RESTful ATNA supplement (#25).

  • The corpora ihe-iti and nl-generic-functions read, vendored under docs/specs/ by FerroFED’s scripts at FerroFED’s pins and byte-identical to FerroFED’s copies: the IHE PIXm, PDQm, PMIR and mCSD packages and narrative pages, the ITI Technical Framework pages, the IUA supplement, the Swiss pins of PIXm, PDQm and IUA, the Netherlands Generic Functions IG source, the Mitz documents (cache only), the Nuts RFCs, the IETF OAuth RFCs, the W3C DID and VC texts and DIF Presentation Exchange, each with its scripts/vendor/*.sh, its PROVENANCE.md and its row in docs/VERSIONS.md (#24).

Changed

  • The minimum supported Rust version is 1.98, the version ihe-atna requires (#25).
  • Two version lines, the model FerroBRIDGE uses: the product version is the workspace version and the release tag, and each published crate keeps its own version, which never adopts the product version. The crate-version guard holds both, and refuses a change to a crate’s packaged content that does not bump it unless the pull request carries no-crate-bump. The release lane names each crate’s files by the crate’s own version (#23).

[0.0.1] - 2026-10-20

The repository setup: the working discipline, the tracker helpers and the guards, CI and the release lane, the workspace skeleton and the GitHub settings. No crate is published in this release; the first crates arrive with the move from FerroFED in 0.0.2.

Added

  • The tracker helpers under scripts/gh/ (fields.sh, rel.sh, labels.sh, watch-prs.sh, changelog-merge.sh, and project.sh, which says FerroPIX has no roadmap board) and the guards under scripts/checks/ (comment style, the pin matrix and licence headers, file length, TODO pointers, the crate version, the changelog and the contribution licence), each with a --self-test (#11).
  • CI with the single required conclusion check, CodeQL, OpenSSF Scorecard, Dependabot, the release lane that refuses a tag whose milestone is not empty and closes it after the release, the crates.io lane through Trusted Publishing, and the pull request and issue templates (#12).
  • docs/VERSIONS.md, the pin matrix the guards read (#11).
  • The working discipline: CLAUDE.md with the scope the owner settled on 2026-10-20, the rules, the spec-researcher and implementer agents, the spec-lookup, next-task, phase-done and phase-status skills, the hooks (the destructive-command hook with its self-test) and the memory (#13).
  • The specification versions of every identity profile that moves from FerroFED in docs/VERSIONS.md (#13).
  • SUPPORT.md, GOVERNANCE.md and CODE_OF_CONDUCT.md, and a README and CONTRIBUTING.md that name what FerroPIX is, how to build and test it and the specifications that govern it (#14).
  • The owner’s rule for moving the vendored corpora with the crates, in .claude/rules/vendored-inputs.md and the memory (#20).
  • The Cargo workspace skeleton: the root manifest with the family lint set and the release profile, the pinned toolchain, and the cargo-deny, clippy and rustfmt configuration. The workspace has no member until the move from FerroFED; CI reads the manifest under the pinned toolchain meanwhile (#15).

Changed

  • SECURITY.md supports only the newest release, with the Cyber Resilience Act commitment to publish security fixes for at least five years after each release (#14).