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

FerroTERM

FerroTERM is a FHIR terminology server for SNOMED CT, LOINC and other clinical code systems. It answers the HL7 FHIR terminology operations on R4, R4B, R5 and the R6 ballot from one binary, over an index it builds once per code system release and reads at startup. There is no JVM, no Elasticsearch and no database to run. You bring the code system content you are licensed for; FerroTERM ships none.

Start here

You areYou want toStart withThen
An integratorCall the terminology operations from a FHIR client, a validator or an EHRYour first requestsThe FHIR terminology API, Value sets, implicit value sets, and ECL, Writing resources
An operatorDeploy, load content, configure, secure and upgrade the serverInstall and runLoading code systems, Configuration, Behind a reverse proxy, Upgrading
A terminologistBrowse the content, compose value sets and keep them current with each releaseThe consoleSyncing from a national terminology service, Writing resources
A decision makerJudge whether FerroTERM fits: what it serves, how it conforms, what it costs to run and to licenseHow FerroTERM serves terminologyCode systems served, Conformance, Benchmarks, Licensing, CRA information for users

How this book is organised

The parts follow the Diátaxis framework (https://diataxis.fr/):

  • Tutorials take you through a first result, step by step.
  • How-to guides answer one task each, for integrators and for operators.
  • Reference lists the configuration, the command lines, the FHIR extensions, the problem types and the other facts you look up, generated from the code where it can be.
  • Explanation says how the parts fit and which specification governs each.
  • Compliance holds the Cyber Resilience Act material.
  • Contribute covers building, testing and the checks a change passes.

FerroTERM is one product of the FerroHEALTH family, and Cadasto B.V. is the manufacturer of every product. The manufacturer, the shared security policy and support period, and the licensing and trademark terms every product shares are written once, in the FerroHEALTH book.

Your first requests

Audience: integrators who are new to FerroTERM. In about fifteen minutes you load a small code system of your own, start the server, and send each of the five FHIR terminology operations: $lookup, $validate-code, $subsumes, $expand and $translate.

You need no licensed content. The code system, value set and concept map on this page are invented for it, and the units of measure come with the binary. A test in the repository writes every file on this page, starts the server from its configuration and sends every request, so what you read here is what the server answers.

1. Get the server

Download the release tarball for your platform and unpack it, as Install and run shows. It holds the ferroterm binary this page runs. Then make an empty working directory with a content directory inside it, and run every command below from the working directory:

$ mkdir -p first-requests/content && cd first-requests

2. Write a code system

A code system is a list of codes with their meaning. This one names the reasons a patient visits a clinic, in a hierarchy of two levels: a cough and a wheeze are respiratory complaints, a sprain is an injury. Save it as content/CodeSystem-visit-reason.json:

{
  "resourceType": "CodeSystem",
  "id": "visit-reason",
  "url": "https://example.org/fhir/CodeSystem/visit-reason",
  "version": "1.0.0",
  "name": "VisitReason",
  "title": "Visit reasons",
  "status": "active",
  "content": "complete",
  "hierarchyMeaning": "is-a",
  "concept": [
    {"code": "respiratory", "display": "Respiratory complaint", "concept": [
      {"code": "cough", "display": "Cough"},
      {"code": "wheeze", "display": "Wheeze"}
    ]},
    {"code": "injury", "display": "Injury", "concept": [
      {"code": "sprain", "display": "Sprain"}
    ]}
  ]
}

hierarchyMeaning says that a nested concept is a kind of its parent, which is what $subsumes and an is-a filter read (CodeSystem.hierarchyMeaning).

A second code system holds the groups a report counts visits in. Save it as content/CodeSystem-report-group.json:

{
  "resourceType": "CodeSystem",
  "id": "report-group",
  "url": "https://example.org/fhir/CodeSystem/report-group",
  "version": "1.0.0",
  "name": "ReportGroup",
  "title": "Report groups",
  "status": "active",
  "content": "complete",
  "concept": [
    {"code": "resp", "display": "Respiratory"},
    {"code": "trauma", "display": "Trauma"}
  ]
}

3. Write a value set and a concept map

A value set selects codes. This one selects the respiratory complaint and everything under it. Save it as content/ValueSet-respiratory.json:

{
  "resourceType": "ValueSet",
  "id": "respiratory",
  "url": "https://example.org/fhir/ValueSet/respiratory",
  "version": "1.0.0",
  "name": "Respiratory",
  "status": "active",
  "compose": {"include": [{
    "system": "https://example.org/fhir/CodeSystem/visit-reason",
    "filter": [{"property": "concept", "op": "is-a", "value": "respiratory"}]
  }]}
}

A concept map relates the codes of one system to another. This one puts each visit reason in its report group. Save it as content/ConceptMap-visit-to-report.json:

{
  "resourceType": "ConceptMap",
  "id": "visit-to-report",
  "url": "https://example.org/fhir/ConceptMap/visit-to-report",
  "version": "1.0.0",
  "name": "VisitToReport",
  "status": "active",
  "group": [{
    "source": "https://example.org/fhir/CodeSystem/visit-reason",
    "target": "https://example.org/fhir/CodeSystem/report-group",
    "element": [
      {"code": "cough", "target": [{"code": "resp", "equivalence": "wider"}]},
      {"code": "wheeze", "target": [{"code": "resp", "equivalence": "wider"}]},
      {"code": "sprain", "target": [{"code": "trauma", "equivalence": "wider"}]}
    ]
  }]
}

The server reads the resources of a directory in the FHIR version its package.json names. Save this as content/package.json, so the four files read as FHIR R4:

{"name": "example.first-requests", "version": "1.0.0", "fhirVersions": ["4.0.1"]}

4. Configure and start the server

Save the configuration as ferroterm.toml. code_systems names the directories of FHIR resources to serve:

[server]
listen = "127.0.0.1:8080"

[terminology]
code_systems = ["content"]

Check it, then start the server:

$ ferroterm config check --config ferroterm.toml
$ ferroterm --config ferroterm.toml

config check prints every key with its value and where it came from. The server logs one serving code system line per code system, among them visit-reason, and a listening line naming the four FHIR bases: /r4, /r4b, /r5 and /r6. Leave it running and open a second terminal.

5. Send the requests

Each request below is written as HTTP. Send it with curl against the address the server listens on, for example:

$ curl 'http://127.0.0.1:8080/r4/metadata?mode=terminology'

Every answer is FHIR JSON. The excerpts show the parts that matter; the server sends more.

See what the server serves

GET /r4/metadata?mode=terminology

The TerminologyCapabilities lists every code system the server holds, with its versions, filters and properties: your two systems, and UCUM, BCP 47, BCP 13 and ISO 3166-1, which the binary carries.

Look up a code

GET /r4/CodeSystem/$lookup?system=https://example.org/fhir/CodeSystem/visit-reason&code=cough
{"resourceType": "Parameters", "parameter": [
  {"name": "name", "valueString": "VisitReason"},
  {"name": "version", "valueString": "1.0.0"},
  {"name": "display", "valueString": "Cough"}
]}

The answer also carries the code’s designations and its properties, such as parent. Without a version, the server answers from the greatest version it holds and names it.

Check a code and its display

GET /r4/CodeSystem/$validate-code?url=https://example.org/fhir/CodeSystem/visit-reason&code=cough&display=Coughing
{"resourceType": "Parameters", "parameter": [
  {"name": "result", "valueBoolean": false},
  {"name": "message", "valueString": "Wrong Display Name 'Coughing' for https://example.org/fhir/CodeSystem/visit-reason#cough. Valid display is 'Cough' (for the language(s) '--')"},
  {"name": "display", "valueString": "Cough"}
]}

The code exists, the display does not match, and the answer names the display that does.

Ask whether one code subsumes another

GET /r4/CodeSystem/$subsumes?system=https://example.org/fhir/CodeSystem/visit-reason&codeA=respiratory&codeB=cough
{"resourceType": "Parameters", "parameter": [{"name": "outcome", "valueCode": "subsumes"}]}

A cough is a respiratory complaint, so respiratory subsumes cough.

Expand the value set

GET /r4/ValueSet/$expand?url=https://example.org/fhir/ValueSet/respiratory
{"resourceType": "ValueSet", "expansion": {
  "total": 3,
  "contains": [{"code": "respiratory", "display": "Respiratory complaint", "contains": [
    {"code": "cough", "display": "Cough"},
    {"code": "wheeze", "display": "Wheeze"}
  ]}]
}}

The value set takes one system’s own hierarchy, so the expansion keeps it: the two complaints sit under their parent, and total counts all three.

Check a code against the value set, by POST

Every operation also takes a Parameters resource by POST:

POST /r4/ValueSet/$validate-code
Content-Type: application/fhir+json

{"resourceType": "Parameters", "parameter": [
  {"name": "url", "valueUri": "https://example.org/fhir/ValueSet/respiratory"},
  {"name": "coding", "valueCoding": {"system": "https://example.org/fhir/CodeSystem/visit-reason", "code": "sprain"}}
]}

A sprain is a valid code of the system and is not in the value set, so result is false and the message says why.

Translate a code

GET /r4/ConceptMap/$translate?url=https://example.org/fhir/ConceptMap/visit-to-report&system=https://example.org/fhir/CodeSystem/visit-reason&code=sprain
{"resourceType": "Parameters", "parameter": [
  {"name": "result", "valueBoolean": true},
  {"name": "match", "part": [
    {"name": "equivalence", "valueCode": "wider"},
    {"name": "concept", "valueCoding": {"system": "https://example.org/fhir/CodeSystem/report-group", "code": "trauma"}},
    {"name": "source", "valueCanonical": "https://example.org/fhir/ConceptMap/visit-to-report|1.0.0"}
  ]}
]}

Each match names the map it came from, with its version.

Look up a unit, with nothing loaded

GET /r4/CodeSystem/$lookup?system=http://unitsofmeasure.org&code=mg/dL

UCUM is a grammar the binary carries, so any valid unit answers, with its canonical form as a property.

Read a refusal

GET /r4/CodeSystem/$lookup?system=https://example.org/fhir/CodeSystem/visit-reason&code=fever
{"resourceType": "OperationOutcome", "issue": [{
  "severity": "error",
  "code": "code-invalid",
  "details": {
    "coding": [{"system": "http://hl7.org/fhir/tools/CodeSystem/tx-issue-type", "code": "invalid-code"}],
    "text": "code `fever` is not in code system `https://example.org/fhir/CodeSystem/visit-reason` version `1.0.0`"
  }
}]}

Every refusal is an OperationOutcome. A terminology failure carries a coding from the tx-issue-type code system, which a client can branch on.

Where to go next

The FHIR terminology API

Audience: integrators who call the terminology operations from a FHIR client. Your first requests walks through them step by step.

FerroTERM speaks the HL7 FHIR terminology API. If your client already talks to a FHIR terminology server, it talks to FerroTERM. It speaks FHIR JSON and FHIR XML: _format=xml in the query or Accept: application/fhir+xml selects XML for a response, Content-Type names the format of a request body, and JSON is the default. Accept quality values count, and an Accept that names neither format gets 406 Not Acceptable. The base is /r4b for R4B, /r4 for R4, /r5 for R5, and /r6 for the R6 ballot (see FHIR versions).

Two tasks have pages of their own: Writing resources covers the resources clients store and their history, and Batch requests and closure tables covers batch Bundles and $closure. The extensions FerroTERM adds to metadata are in FerroTERM’s FHIR extensions.

The operations

OperationAnswersHow
CodeSystem/$lookupa concept’s display, designations, and propertiesa point read in the store; property narrows, displayLanguage picks the language. For SNOMED CT, sufficientlyDefined and semanticTag come back when named or for *, and the normal forms only when named
CodeSystem/$validate-codewhether the code exists and the display is rightthe store; the right display comes back when the given one is wrong; inactive codes validate with a message
CodeSystem/$subsumessubsumes, subsumed-by, equivalent, or not-subsumeda bitmap membership test in the closure; either side may be a SNOMED CT expression (Post-coordinated expressions)
ValueSet/$expandthe members of a value set, pagedthe compose layer over the providers’ filters and bitmaps
ValueSet/$validate-codewhether a code is a member, and its displaymembership without enumerating the set
ConceptMap/$translatethe targets a code maps to, with the relationshiploaded, inline, or request-scoped maps
$versionsthe FHIR version of the base (4.3)
$cache-controla cache of request-scoped resourcesbelow
metadata, metadata?mode=terminologythe CapabilityStatement and the TerminologyCapabilities listing every served code system with its filters and properties

Every operation accepts GET with query parameters and POST with a Parameters resource, at the type level (ValueSet/$expand?url=…) and at the instance level (CodeSystem/{id}/$validate-code, ValueSet/{id}/$expand, ValueSet/{id}/$validate-code, ConceptMap/{id}/$translate). The instance form runs the operation on the resource the URL names (https://hl7.org/fhir/R4B/operations.html#request), so it needs no url, and works for a resource that carries none of its own. A url, a version, or an inline resource that names another one is a 400; a canonical carrying the instance’s own version after a | is the instance. The levels a version offers are the ones its OperationDefinition declares, so CodeSystem/{id}/$lookup answers under /r5 and /r6 and is not a route under /r4 and /r4b (https://hl7.org/fhir/R5/codesystem-operation-lookup.html). $expand returns the expanded ValueSet; the others return Parameters. Every failure is an OperationOutcome whose issue carries severity, code, and details.text, never a bare 500. A terminology failure adds a details.coding from http://hl7.org/fhir/tools/CodeSystem/tx-issue-type (invalid-code, not-found, vs-invalid, too-costly, and the rest); a refusal at the wire layer, such as an unreadable id or a failed precondition, carries the status and the text without one. The parameter set of each operation is what the served version’s OperationDefinition declares, plus the parameters the HL7 terminology ecosystem requires of every server (https://hl7.org/fhir/uv/tx-ecosystem/requirements.html); a parameter outside that set is refused. Of the ecosystem’s parameters, the CapabilityStatement names in each operation’s documentation only those the server implements, with a part under a parameter the version defines itself written as its dotted path (match.originMap), and an ecosystem input or input part the server does not implement is refused with not-supported.

A $validate-code against a code system the server does not hold answers 200 with result = false and one x-caused-by-unknown-system per missing system, so a validator can tell its user which resources to load. The value is a canonical, url on its own or url|version when the request pinned a version the server does not serve. CodeSystem/$validate-code names the system the request asked for. ValueSet/$validate-code names a system the value set itself selects from; a system the request brings that the value set never selects from is reported as x-unknown-system instead, because the value set is not the cause. Neither name is declared by any OperationDefinition, so both come from the ecosystem overlay and are marked as such in the CapabilityStatement.

Value sets

A value set reaches $expand and ValueSet/$validate-code in five ways:

  • Loaded: a ValueSet JSON under FERROTERM__TERMINOLOGY__CODE_SYSTEMS, named by url (and version; without one the greatest version answers). Loaded value sets are readable at GET ValueSet/{id} and GET ValueSet?url=…&version=…, where {id} is the id the resource carries, or one the server mints when it carries none (see Configuration).
  • Persisted: a ValueSet written through the REST API (see below).
  • Inline: the valueSet parameter of a POST.
  • Request-scoped: tx-resource parameters, see below.
  • Implicit: a URL a code system defines, answered by its provider without a resource: LOINC’s http://loinc.org/vs, /vs/[answer list], and /vs/[part]; UCUM’s /vs and /vs/[unit]; RxNorm’s /vs; ICD-11’s <entity>/postcoordinationScale/<axis>; SNOMED CT’s ?fhir_vs, ?fhir_vs=isa/[sctid], ?fhir_vs=refset, and ?fhir_vs=refset/[sctid], on the system, edition, or version URI (Value sets and ECL).

A compose may include whole systems, enumerated concepts, and filters. The filters a system answers are the ones its provider declares in TerminologyCapabilities, and they differ by system, so read the declaration rather than assuming a common set. SNOMED CT declares concept with is-a, descendent-of, and in, then constraint for an expression constraint and expressions for post-coordination (Post-coordinated expressions). The others declare their own: LOINC’s parent and ancestor and its table fields, RxNorm’s STY, SAB, TTY, REL, and RELA, UCUM’s canonical and property, ICD-10’s note kinds. $expand honours count and offset (at most 1,000 members without count), filter (word-prefix text search over designations), activeOnly, excludeNested, includeDesignations, displayLanguage, system-version, check-system-version, force-system-version, and exclude-system, and echoes every effective parameter plus one used-codesystem per system version the expansion drew on.

An expansion nests where the compose is the system’s own hierarchy: one include of one system the server holds as a CodeSystem resource, taken whole or narrowed by is-a or descendent-of, with nothing enumerated and nothing excluded. A system the server enumerates from its own release (SNOMED CT, LOINC, ICD-11 and the other loaded editions) expands flat: its hierarchy gives a concept many parents, which a tree would repeat. FHIR leaves the choice to the server (excludeNested), so this rule is FerroTERM’s own. Each root then carries its children under contains (https://hl7.org/fhir/R4B/valueset-definitions.html#ValueSet.expansion.contains), total counts every member rather than the roots, and a page is the slice of the pre-order walk. excludeNested=true flattens it, and a text filter over a whole system is flat already, because its matches have no root to hang from.

Request-scoped resources

A client can bring its own CodeSystem, ValueSet, and ConceptMap resources for one request: each tx-resource parameter of a POST carries one, and the operation sees them layered over the loaded resources (a resource with the same url and version as a loaded one shadows it for that request). A supplement in a tx-resource applies to the system it names. Any other resource type is refused with not-supported. This is what the HL7 terminology ecosystem runner sends; tx-resource is a declared parameter in R6 and an ecosystem extension on R4B (https://build.fhir.org/ig/HL7/fhir-tx-ecosystem-ig/requirements.html).

To avoid resending the same resources, start a cache:

POST [base]/$cache-control?mode=start   (Parameters of tx-resource)
→ Parameters { cache-id }

Then name it with the X-Cache-Id header on later requests; their own tx-resources stack on top. POST [base]/$cache-control?mode=end with the header (or a cache-id parameter) releases it. A cache unused for 30 minutes expires, and an unknown id answers 404.

Code system identity and versions

system is the code system’s canonical URI (http://snomed.info/sct, http://loinc.org, http://hl7.org/fhir/sid/icd-10-cm, …). Each loaded version is one CodeSystem instance; without a version the server resolves its default and echoes the version it used in every response. For SNOMED CT the version is the edition and version URI of the SNOMED CT URI standard (http://snomed.info/sct/11000146104/version/20260630), never a bare date.

Each instance is readable at GET CodeSystem/{id} and findable with GET CodeSystem?url=…&version=…, on every version prefix, alongside the resources a client persisted. A system loaded as a CodeSystem resource is read at the id that resource carries; a system behind an index is read at the id Configuration describes and the server prints at startup. A system the server holds behind an index answers with its definition and content = not-present: the codes come from $lookup, $validate-code, and $expand, never from the resource (https://hl7.org/fhir/R4B/codesystem-content-mode.html). A system loaded as a CodeSystem resource under FERROTERM__TERMINOLOGY__CODE_SYSTEMS answers with the content it declared, so a complete one carries its concepts. A supplement is applied to the system it supplements and is read and searched like any other CodeSystem this server holds, with content = supplement and the supplements canonical it declares (https://hl7.org/fhir/R4B/codesystem.html#supplements).

Languages

displayLanguage and the Accept-Language header both select the display and, on $expand, the displays of the members; the parameter wins when both are given. Either carries a language range list with quality values (en, en-AU; q=0.4, de,*), and the first range the code system carries, by quality then by position, is the display language; * is the system’s own. A language the code system does not carry falls back to the system’s own (English for LOINC and ICD-11, the classification’s language for a ClaML document, the default language for SNOMED CT), and the response states what it used. Designations carry their BCP 47 language and their use.

SNOMED CT implicit concept maps

ConceptMap/$translate answers url=http://snomed.info/sct?fhir_cm=[sctid], where the SCTID names a reference set of the loaded edition. The edition or edition-version URI may take the place of the bare system URI; the map states the served edition version either way (https://hl7.org/fhir/R4B/snomedct.html, “Implicit Concept Maps”).

Two kinds of reference set answer. An association reference set maps a SNOMED concept to another SNOMED concept, and the FHIR SNOMED CT page fixes the relationship each one asserts:

Reference setSCTIDRelationship
POSSIBLY EQUIVALENT TO900000000000523009inexact
REPLACED BY900000000000526001equivalent
SAME AS900000000000527005equal
ALTERNATIVE900000000000530003inexact

R5 and R6 have no equal or inexact code, so those become equivalent and related-to on those versions, as the generated relationship vocabulary maps them.

A map reference set maps a SNOMED concept to a code of another system through mapTarget. No RF2 file records which system that code belongs to, so the reference set itself says which scheme it maps to, and the group names that system:

Reference setSCTIDTarget system
ICD-10 extended map447562003http://hl7.org/fhir/sid/icd-10
ICD-9-CM equivalence complex map447563008http://hl7.org/fhir/sid/icd-9-cm
ICD-O simple map446608001http://terminology.hl7.org/CodeSystem/icd-o-3
CTV3 simple map900000000000497000http://terminology.hl7.org/CodeSystem/read-Codes
ICD-10-CM complex map (US Edition)6011000124106http://hl7.org/fhir/sid/icd-10-cm

R4B needs the group to name a target system whenever the targets are real codes: it may be left out only when the target value set names a single system, or when every target equivalence is unmatched (https://hl7.org/fhir/R4B/conceptmap-definitions.html#ConceptMap.group.target). A map reference set outside the table, such as a national extension’s own map, is answered with not-supported rather than a target Coding that carries a code and no system. RF2 records no version of the target scheme, so the group names the system alone.

The complex and extended map columns (mapGroup, mapPriority, mapRule, mapAdvice, correlationId, mapCategoryId) travel as product parts of the match. No specification says where those columns belong in a $translate result; this placement is FerroTERM’s own design.

A $translate that names no url and finds no stored map falls back to the historical associations of an inactive concept: the SAME AS and REPLACED BY reference sets name what stands in its place, and each match names the implicit map it came from. An active concept has no successors. Two published sources cover part of this:

The rest is FerroTERM’s own choice: the fallback reads only the two association maps whose relationship is equal or equivalent, and only when the request names no url and the stored maps give no match. The inexact maps, POSSIBLY EQUIVALENT TO and ALTERNATIVE, answer only a request that names them with ?fhir_cm=.

A ?fhir_cm= naming a reference set the edition does not hold, or one that maps nothing, is a not-found; a base that is not the served edition, or an SCTID that does not parse, is a 400.

An unpublished edition, named under http://snomed.info/xsct/ (the SNOMED CT URI Standard), takes implicit URIs on its own edition and version URIs too.

Edition maps

An extension edition translates its concepts into an edition it depends on through [edition]/version/[date]?fhir_cm=edition/[module], which a $translate naming targetSystem=http://snomed.info/sct|http://snomed.info/sct/[module] finds by itself. The tx-ecosystem IG requires the conversion and leaves its form open, so the rules are FerroTERM’s own:

  • the target edition is the module and every module it depends on, by the edition’s Module Dependency reference set, whose row gives the target version;
  • a concept of the target translates to itself, and an inactive concept to what its SAME AS or REPLACED BY association names;
  • a sufficiently defined concept translates to the target concept with the same inferred definition, else to an expression: its proximal primitive supertypes in the target, refined by its inferred attributes, all of them target concepts;
  • a primitive concept translates to its nearest supertypes in the target as wider (source-is-narrower-than-target), unless they are top-level concepts, which say nothing useful.

The LOINC Extension map (provisional)

An edition that carries the SNOMED CT LOINC Extension answers [edition]/version/[date]?fhir_cm=11010000107 both ways: from a concept to the LOINC code its RF2 identifier row gives it, and from a LOINC code back to the concept, each equivalent. $lookup returns the same code as the loinc property, and $expand takes the filter mapped:30051010000102 exists true or false (one mapped:[scheme] filter per identifier scheme the edition carries). The tx-ecosystem IG’s test edition notes are the only source of these, pending review by SNOMED International, so their shape is FerroTERM’s own and may change.

A $translate that names no map finds the implicit maps of the loaded code systems between the source system and targetSystem, which may carry |version, as the ecosystem IG requires (“the server SHALL find the ConceptMaps whose sourceScope and targetScope fit the request”).

Writing resources

Audience: integrators and terminologists who write their own CodeSystem, ValueSet, ConceptMap, NamingSystem and Provenance resources to the server, and read them back with their history.

Persisted resources

A deployment that names a database in FERROTERM__TERMINOLOGY__RESOURCES accepts CodeSystem, ValueSet, ConceptMap, NamingSystem and Provenance resources over the REST API and keeps them across restarts. The interactions are the ones the FHIR RESTful API defines (https://hl7.org/fhir/R4B/http.html), under every version prefix:

RequestAnswer
POST {type}201 Created with Location, ETag, and Last-Modified; the server assigns the id; 409 Conflict when another resource carries the url and version
PUT {type}/{id}200 OK when the id existed, 201 Created when it is new, 409 Conflict when the id is one a loaded resource is read at or another resource carries the url and version
GET {type}/{id}200 OK with ETag and Last-Modified, 404 for an unknown id or one this version has no representation of, 410 Gone for a deleted one
GET {type}/{id}/_history/{versionId}200 OK with that version of the resource, 410 Gone for the version a delete made
GET {type}/{id}/_historya history Bundle of every version, newest first; empty for a loaded resource
GET {type}/_historya history Bundle of every version of every persisted resource of the type
GET {type}?url=…&version=…a searchset Bundle, entry.fullUrl absolute
DELETE {type}/{id}204 No Content, and deleting again has no effect and is not an error

meta.versionId starts at 1 and rises with every write; the ETag is its weak form (W/"2"). Send If-Match with that value on a PUT or a DELETE to make the write conditional; a value that names another version is a 412 Precondition Failed. A delete counts as a version too, so a resource written again after a delete carries on from the version after it.

A history entry carries the version in resource, the interaction that made it in request (POST, PUT or DELETE with its relative URL), and its status, etag and lastModified in response; the delete has no resource (https://hl7.org/fhir/R4B/http.html#history). _since keeps the versions written at or after an instant. _count, _at and _list answer 400 with a not-supported issue. A version written on a base whose release this base cannot read keeps its response, with the reason in response.outcome, and has no request, because an entry that names PUT or POST must carry the resource.

A url and version identify one resource (https://hl7.org/fhir/R4B/resource.html#canonical). A write whose pair another resource of the same type already carries, one written through the API or one the deployment loaded, answers 409 Conflict with an issue of code duplicate naming that resource’s id. Update the resource that holds the pair, or write the same url under a new version.

A read and a search both take _elements and _summary (https://hl7.org/fhir/R4B/search.html#summary, https://hl7.org/fhir/R4B/http.html#read). _elements=url,title returns those elements plus resourceType, id and meta. _summary=true returns id, meta and the top-level elements the version’s definition marks as summary elements (for a CodeSystem, url, version, name, status and the rest of its metadata, without concept). _summary=text returns text, id, meta and the top-level elements the version’s definition makes mandatory, _summary=data drops text, _summary=false is the whole resource, and on a search _summary=count returns total and no entries. A resource that lost an element carries the SUBSETTED tag, so do not write it back. A value outside those five is a 400.

Each entry.fullUrl is the absolute URL of the resource (https://hl7.org/fhir/R4B/bundle.html#bundle-unique): the base URL of FERROTERM__FHIR__BASE_URL plus the version’s own root, or, where a deployment declares no base URL, the authority the request names. Declare the base URL behind TLS or a path prefix, because a request carries no scheme. The bundle also carries its self link, the URL the search was made at, which R5 and the R6 ballot require of every searchset (bdl-18, https://hl7.org/fhir/R5/bundle.html).

A resource is stored as the JSON it arrived as, with the FHIR version of the endpoint that received it, and a read renders it through the reading version’s own codec. A written resource is never converted between FHIR releases. R4B states a target’s direction with concept-map-equivalence and R5 with concept-map-relationship; equal, subsumes, specializes, inexact and unmatched have no code in the R5 set (https://hl7.org/fhir/R4B/valueset-concept-map-equivalence.html, https://hl7.org/fhir/R5/valueset-concept-map-relationship.html), and HL7’s R4-to-R5 transforms live in a cross-version implementation guide that is informative and under development (https://hl7.org/fhir/extensions/conversions-ConceptMap.html), so no core specification states what a conversion should produce.

A search on a version that has no representation of a stored resource leaves that resource out of its matches and adds one entry carrying an OperationOutcome with search.mode of outcome, severity of warning, code of not-supported, and text naming the resource and the version it was written as (https://hl7.org/fhir/R4B/http.html#search); total counts the matches, and the rest of the searchset answers as usual. Reading that resource by id on that version is a 404: serving one release per base is the strategy the specification describes as one where “the same record has a different identity depending on the version of FHIR in use” (https://hl7.org/fhir/R5/versioning.html), and a read answers 200, 404 or 410 and nothing else (https://hl7.org/fhir/R4B/http.html#read). The OperationOutcome names the release the resource does read as, so read it there.

Every operation sees a persisted resource exactly as it sees one loaded from FERROTERM__TERMINOLOGY__CODE_SYSTEMS, on every served version.

A deployment that names no database refuses every write with a 422 and declares no write interaction in its capability statement.

The version and provenance of a mapping

The draft EEHRxF implementing act (Art 6) admits a national code only with a validated mapping whose versions and provenance are recorded. Every match of ConceptMap/$translate through a stored ConceptMap names the map it came from as a versioned canonical, url|version, in source (R4 and R4B) or originMap (R5 and R6) (https://hl7.org/fhir/R4/conceptmap-operation-translate.html). An implicit map, which a code system defines (the SNOMED CT and LOINC maps), is named by its bare URL, and the response names the code system version that defines it in used-system, as the tx-ecosystem IG’s $translate cases expect.

Who validated that map, and when, is a Provenance whose target.reference is the same canonical (https://hl7.org/fhir/R4B/provenance.html). The server keeps the Provenance resources of every package directory under FERROTERM__TERMINOLOGY__CODE_SYSTEMS, and ferroterm-build --fhir-package keeps them on import; with a resource database, a client writes more. Read them by the canonical:

$ curl 'https://tx.example.org/r4b/Provenance?target=http://example.org/fhir/ConceptMap/national-to-mvc%7C10.1.0'

The answer is a searchset of every Provenance whose target.reference is that string as written; Provenance/{id} reads one. A Provenance decodes in the FHIR version it was loaded or written in, and a base whose version cannot read it leaves it out, as it does for any persisted resource.

Identifier and code system namespaces

A NamingSystem names an identifier or code system namespace and lists the identifiers it goes by: a URI, an OID, or a local name such as the assigning authority an HL7 v2 CX.4 carries (https://hl7.org/fhir/R4/namingsystem.html). The server keeps the NamingSystem resources of every package directory under FERROTERM__TERMINOLOGY__CODE_SYSTEMS, and ferroterm-build --fhir-package keeps them on import; with a resource database, a client writes more. Look a namespace up by any of its identifiers:

$ curl 'https://tx.example.org/r4/NamingSystem?kind=identifier&value=NATPAT'

The search answers kind, value, type, id-type and status (https://hl7.org/fhir/R4/namingsystem.html#search), with _elements and _summary. value matches any uniqueId.value: by default a value the identifier starts with, ignoring case and accents, value:exact the identifier as written, and value:contains a value anywhere in it (https://hl7.org/fhir/R4/search.html#string). kind, status and id-type take a code, or system|code under the code system their element is bound to; type matches a coding of NamingSystem.type. Several values of one parameter, separated by commas, match any of them, and several parameters must all match. Any other parameter or modifier is a 400. NamingSystem/{id} reads one.

Primitive lexical forms on local content

A resource you write is decoded by the generated FHIR model of the version you send it to, and that decode checks every primitive against the regex its FHIR package publishes for the type (https://hl7.org/fhir/R5/datatypes.html#primitive). A date of yesterday, a valueDateTime of 2001-6, a url with a space, or a status with a leading space answers 400 with an OperationOutcome whose issue.code is invalid and whose issue.expression names the element (CodeSystem.date). The versions differ where their packages differ: R4, R4B, and the R6 ballot require a timezone offset once a dateTime carries a time, R5 leaves it optional. Nothing is stored that the version’s own codec refuses, so a later read never meets a value it cannot parse.

Concept status on local content

A code you author has a lifecycle, and FHIR keeps it in two places. The resource’s own standing is CodeSystem.status, so a system you are still drafting is a draft CodeSystem; no version defines a per-concept draft. A single concept states its standing in the standard concept properties (https://hl7.org/fhir/R5/codesystem-concept-properties.html):

PropertyTypeWhat the server reads
inactivebooleantrue makes the concept inactive
statuscoderetired makes the concept inactive; active, experimental, deprecated, and any other value leave it active
retirementDatedateTimea date the request is behind makes the concept inactive
deprecated, deprecationDatedateTimea date the request is behind marks the concept deprecated: it stays active and $validate-code adds the DEPRECATED_CONCEPT_FOUND warning, the same note the standards-status extension earns; status = deprecated does the same
deprecated, deprecationDatedateTimereturned as written, and the concept stays active

R4 and R4B define inactive and deprecated, and R5 adds the rest. A persisted resource is stored as it arrived, so the R5 properties are data on every version prefix and are read the same way on R4, R4B, R5, and R6.

Deprecated is not inactive: the specification says concepts “that are deprecated but not inactive can still be used, but their use is discouraged”. Mark a concept inactive, or give it a status of retired, when it must stop being chosen.

Three points no FHIR specification settles, which the server decides for itself. Any marker that says inactive wins, so inactive = false beside a status of retired reads as inactive. A retirementDate is compared against the time of the request, and a value that is not a readable dateTime reads as a retirement already in force, so a typo never leaves a retired code active. A retirementDate of 2026 or 2026-03 takes effect at the start of the period it names.

Retire a concept rather than delete it. An inactive concept keeps answering: $expand with activeOnly=true leaves it out, activeOnly=false lists it with contains.inactive = true, $validate-code answers result = true with inactive = true and a warning, and $lookup returns the properties as written. Removing the concept from the resource instead makes every record that already carries the code fail validation. The status output of $validate-code reports a status only where the resource stated one, so a concept retired by a date alone answers inactive with no status.

Batch requests and closure tables

Audience: integrators who send several terminology requests at once, or keep a transitive closure table in step with the codes they meet.

Batch

POST [base] with a Bundle of type batch runs every entry and answers a batch-response with one entry per request, in the order they were sent (https://hl7.org/fhir/R4B/http.html#transaction). The entries are independent: one that fails answers the OperationOutcome that the same request would have answered on its own, the rest still answer, and the batch itself answers 200.

Each entry names its request the way it would have been sent on its own:

{"resourceType": "Bundle", "type": "batch", "entry": [
  {"request": {"method": "GET", "url": "CodeSystem/$lookup?system=http://loinc.org&code=1963-8"}},
  {"request": {"method": "POST", "url": "ValueSet/$validate-code"},
   "resource": {"resourceType": "Parameters", "parameter": [
     {"name": "url", "valueUri": "http://loinc.org/vs"},
     {"name": "coding", "valueCoding": {"system": "http://loinc.org", "code": "1963-8"}}
   ]}}
]}

A GET entry carries the operation’s inputs in the query of request.url; a POST entry carries them in a Parameters resource on the entry. Every terminology operation this server answers is reachable, at the type level and at the instance level, and entry.fullUrl comes back on the response entry so a client can pair the two. response.status is the code and its reason, such as 200 OK or 404 Not Found.

A transaction Bundle is refused with not-supported: a transaction succeeds or fails as one unit across its entries, and this server does not process one.

A failed entry carries its OperationOutcome as the entry’s resource, the body the same request would have answered alone. entry.response.outcome is reserved by the specification for hints and warnings and is “not used for error responses in batch/transaction”, and no version names another slot for the error, so this placement is FerroTERM’s reading of an ambiguous rule.

Closure tables

POST [base]/$closure maintains a named transitive closure table for a client (https://hl7.org/fhir/R4B/terminology-service.html, “Maintaining a Closure Table”). The client registers concepts as it meets them and the server answers with the subsumption relationships that hold between them, as a ConceptMap delta. Any code system with subsumption maintains a closure, not only SNOMED CT.

RequestAnswer
name alonethe table, created or emptied, as an empty ConceptMap at version 0
name and one or more concepta ConceptMap of the relationships the client did not have, at a new version
name and versioneverything the server sent after that version, at the server’s latest version

A version of 0 resynchronises the whole table. Pass a concept or a version, never both. The version is the server’s own value: treat it as opaque and hand it back unchanged.

An entry’s equivalence is read from target to source, so subsumes means the target subsumes the source. R4 and R4B use equal, subsumes, and specializes; R5 states the same relationships as equivalent, source-is-narrower-than-target, and source-is-broader-than-target. A concept is never related to itself, and a client assumes that relationship. Two concepts that subsume neither way get no entry.

Naming a table the server has not been asked to create is a 404; an add never creates one. Registering a concept whose code system changed under the table answers 422 with closure "[name]" must be reinitialized, and the client’s move is to initialise and replay its codes.

The R6 ballot ships no ConceptMap-closure definition, so /r6 offers no $closure and its capability statement declares none. The tables live in the database FERROTERM__TERMINOLOGY__RESOURCES names, so they outlive a restart.

Value sets, implicit value sets, and ECL

A value set names a set of codes. FerroTERM answers value sets defined as FHIR resources, brought with the request, or implied by a URL a code system defines. This page covers the value sets a code system defines by URL, the SNOMED CT forms, the Expression Constraint Language and post-coordinated expressions.

Implicit value sets of other code systems

Several code systems define value sets by URL convention, without a stored resource, and their providers answer them:

Code systemURLMembers
LOINChttp://loinc.org/vsevery code
LOINChttp://loinc.org/vs/LL…the answers of the answer list
LOINChttp://loinc.org/vs/LP…everything under the part in the multiaxial hierarchy
UCUMhttp://unitsofmeasure.org/vsevery valid unit (validation only; it cannot be enumerated)
UCUMhttp://unitsofmeasure.org/vs/[expression]every unit comparable to the expression; the expansion lists the essence’s units, unclosed
RxNormhttp://www.nlm.nih.gov/research/umls/rxnorm/vsevery RXCUI
ICD-11<entity URI>/postcoordinationScale/<axis>the values a stem takes on that axis

Pass the URL as url to ValueSet/$expand or ValueSet/$validate-code.

The SNOMED CT implicit value sets

The FHIR SNOMED CT page defines value sets by URL over the SNOMED CT URI (https://hl7.org/fhir/R4B/snomedct.html, “Implicit Value Sets”), and the provider answers every form:

URLMembers
http://snomed.info/sct?fhir_vsevery concept of the edition
http://snomed.info/sct?fhir_vs=isa/[sctid]the concept and its descendants, from the transitive closure
http://snomed.info/sct?fhir_vs=refsetthe concepts that are reference sets with concept members
http://snomed.info/sct?fhir_vs=refset/[sctid]the active concept members of the reference set
http://snomed.info/sct?fhir_vs=ecl/[expression]the concepts the expression constraint selects; the expression is URI-encoded

The base may be the edition URI (http://snomed.info/sct/11000146104?fhir_vs=…) or the edition and version URI, which pins the expansion to that served version; another edition’s URI is refused. An unknown SCTID or a concept that is not a reference set is vs-invalid with the code named. The reference set memberships come from every RF2 reference set whose members are concepts (the simple, association, attribute value, and map reference sets); the language reference sets are read as acceptabilities instead.

The same sets are reachable through a compose, inline or loaded, with the filters the provider declares: concept is-a [sctid], concept descendent-of [sctid], and concept in [sctid,...] (each listed concept, and the members of each listed reference set, as the page defines in for SNOMED CT), plus the generic is-not-a, generalizes, not-in, and regex:

{
  "resourceType": "ValueSet",
  "status": "active",
  "compose": {
    "include": [{
      "system": "http://snomed.info/sct",
      "filter": [{ "property": "concept", "op": "in", "value": "31000147101" }]
    }]
  }
}

A display filter with regex selects the concepts with an active fully specified name or synonym whose whole term matches the pattern, case-sensitively, in one language: the first language of displayLanguage the edition has descriptions in, else the edition’s own, as the terminology ecosystem IG defines it. Text definitions and inactive descriptions do not count.

ECL

An expression constraint names a set of concepts, and the evaluator answers it as set algebra over the precomputed structures: << X is the descendant bitmap plus X, ^ X the members of the reference set, ^R X the reference sets with a member in X, a refinement such as < 404684003 : 363698007 = << 39057004 the sources of the attribute with a value in the set (from an inverted index), a grouped refinement counts the role groups that satisfy it, and AND, OR, and MINUS are bitmap operations. The parser follows the official ANTLR grammar for ECL 2.3 rule for rule and is tested against the published example corpus. Every operator evaluates, as do the concept filters, the history supplements, and alternate identifiers. Four filters are refused because the artifact does not carry what they ask for: a member filter on inactive members, an acceptability other than preferred or acceptable, and the description module and effective time filters. Each is refused by name rather than answered wrongly.

ECL reaches the wire two ways: the implicit value set http://snomed.info/sct?fhir_vs=ecl/[expression] (the expression URI-encoded, on the system, edition, or version URI) and the constraint filter of a ValueSet.compose.include:

{ "property": "constraint", "op": "=", "value": "< 404684003 |Clinical finding| : 363698007 |Finding site| = << 39057004" }

Malformed ECL is an OperationOutcome with issue code invalid naming the byte offset; an identifier the edition does not have is code-invalid; a construct the artifact cannot answer (a description module or effective time filter, a filter on inactive members) is not-supported.

Post-coordinated expressions

A SNOMED CT expression in Compositional Grammar is a valid code and is “subject to the same rules as precoordinated concepts” (https://hl7.org/fhir/R4B/snomedct.html), so you send one wherever you send a concept id:

POST [base]/CodeSystem/$validate-code
{"resourceType":"Parameters","parameter":[
  {"name":"url","valueUri":"http://snomed.info/sct"},
  {"name":"code","valueCode":"83152002 |Oophorectomy| : 405815000 |Procedure device| = 122456005 |Laser device|"}]}

Send an expression by POST. It carries spaces, pipes, and braces, so a GET query string has to percent-encode every one of them.

  • $validate-code checks the syntax and that the version defines every concept the expression names. A syntax error answers false with the byte the parser stopped at; an unknown concept answers false naming it.
  • $validate-code answers code as you sent it. When your spelling differs from the normal form by more than whitespace, terms, or a leading ===, it also answers the normal form as normalized-code, with an information issue. The normal form is written with no whitespace, and === is left out because the grammar assumes it: 39607008:272741003=24028007.
  • $validate-code and $lookup answer a display that is the normal form with terms written in, since SNOMED International publishes no terms for expressions. A term you wrote is kept when it is an active description of its concept. A missing term, or one that does not describe the concept, is replaced by the edition’s term in the requested language. normalForm and normalFormTerse answer the expression’s necessary normal form when the request names them (property=* leaves them out, as the terminology ecosystem IG requires), and the expression’s own refinement comes back as the concept-model properties keyed by attribute concept id. An expression over an inactive concept validates with inactive = true, the way an inactive concept does.
  • $subsumes takes an expression as codeA, as codeB, or as both.
  • $closure relates an expression to the concepts a table already holds.

The expressions filter decides whether a filtered include admits one: {"property": "expressions", "op": "=", "value": "false"} refuses every expression, and an include that states true, or states no expressions filter at all, admits one, as the terminology ecosystem IG requires. An admitted expression is tested against a constraint filter as ECL defines it over post-coordinated expressions: it sits below its focus concepts, with its own attributes beside theirs. So 39607008:272741003=24028007 is in < 39607008. Any other filter admits it when its focus concepts pass. An include that enumerates an expression in compose.include.concept contains it whichever way either side spells it, and carries no filter at all, since vsd-3 forbids one beside enumerated concepts. An expansion lists only the expressions a value set enumerates, and excludePostCoordinated=true drops those; a filtered selection stays the valueset-unclosed case.

$validate-code checks an expression against the concept model the edition carries in its MRCM reference sets, as the MRCM specification describes for postcoordinated content: each attribute’s domain, grouping, cardinality and range, and concrete values against their int(), dec(), str() and bool() ranges. A mandatory rule broken refuses the expression, with an information issue naming each rule; an optional rule broken is a warning beside a true result. An edition that carries no MRCM is not checked. An attribute the MRCM groups but the expression writes loose, once, is moved into a group of its own (the postcoordination guide’s “Adding a Self-grouped Attribute”), so 40468003:363698007=10200004 and 40468003:{363698007=10200004} are one expression for validation, display and subsumption. No other close-to-user transformation runs.

One boundary is deliberate. Subsumption is decided over the edition’s inferred view without a description logic classifier: what the server answers subsumes or subsumed-by holds, and what it answers not-subsumed is what that view does not state. A sufficiently defined concept is met by its definition over its proximal primitive supertypes, since a normal form references no fully defined concept, so 9551004 |Hepatic amyloidosis| and 64572001:{116676008=68790008,363698007=10200004} are equivalent. SNOMED International withdrew normal-form comparison as a subsumption test in the July 2019 International Edition and directs implementers to a classifier (https://docs.snomed.org/snomed-international-documents/snomed-ct-glossary/n/normal-form).

Paging a large expansion

A broad expansion names a large set, so $expand pages with count and offset and refuses an unpaged expansion beyond 1,000 members with too-costly. expansion.total reports the full size, expansion.offset the page, and the order is deterministic across calls.

Install and run

FerroTERM ships as a release tarball and as a container image. The image holds the server and the build tool; the tarball also holds the synchronisation service, ferroterm-sync. There is no JVM to install, no Elasticsearch to run, and no database to provision. The registry systems (UCUM, BCP 47, BCP 13, ISO 3166-1) are inside the binary; every other code system is an index you build from a release you are licensed for (Loading code systems).

The first call, with nothing to load

Every release attaches the quickstart as one self-contained compose.yaml, with its .sha256sum; it needs Docker Compose 2.23.1 or newer and no checkout. Download the latest release’s into an empty directory, make the index directory and the console’s secret beside it, and start it:

$ curl -fsSLO https://github.com/FerroHEALTH/FerroTERM/releases/latest/download/compose.yaml
$ mkdir -p index secrets && umask 077
$ openssl rand -hex 16 > secrets/console_oidc_client_secret
$ docker compose up --wait
$ curl 'http://localhost:8080/r4b/CodeSystem/$lookup?system=http://unitsofmeasure.org&code=mg/dL'

The server starts with an empty index, serves the four registry systems, and answers the lookup with the unit’s canonical form. GET /r4b/metadata?mode=terminology lists what a deployment serves.

Run with Docker Compose

Every release attaches a compose.yaml. It runs two services from the same image: build turns a release you hold a licence for into an index, once per release, and ferroterm serves every index it finds. Both see the same two host directories, at fixed paths inside the container:

Host path, beside compose.yamlContainer pathMoved withUsed by
./releases/releases, read-onlyFERROTERM_RELEASES_DIRbuild reads the release files
./index/data/indexFERROTERM_INDEX_DIRbuild writes, ferroterm reads read-only

A command you type after docker compose run --rm build runs inside the container, so every path in it is a container path: the release is under /releases, and the index goes under /data/index.

Build, serve, and look up LOINC

This walk-through uses LOINC 2.83, which needs a free account at https://loinc.org. Every other source follows the same steps (see Other code systems).

  1. Fetch the compose file and create the two directories. Compose does not create a bind-mounted directory for you, so both must exist before the first run. Put the release zip in ./releases:

    $ curl -LO https://github.com/FerroHEALTH/FerroTERM/releases/latest/download/compose.yaml
    $ mkdir -p releases index
    $ cp ~/Downloads/Loinc_2.83.zip releases/
    
  2. Build the index. The host file ./releases/Loinc_2.83.zip is /releases/Loinc_2.83.zip in the container. With no --out, the build writes /data/index/loinc, which is ./index/loinc on the host, and the last line it prints names that absolute container path:

    $ docker compose run --rm build --loinc /releases/Loinc_2.83.zip
    $ ls index/loinc/manifest.json
    

    The image runs as user 65532. On Linux a bind mount keeps the host’s ownership, so that user cannot write a directory you own; run the build as yourself with docker compose run --rm --user "$(id -u):$(id -g)" build --loinc /releases/Loinc_2.83.zip. Docker Desktop maps the ownership itself and needs no flag. A zip is unpacked to the container’s tmpfs and is gone with the container.

  3. Serve it. FERROTERM_BIND_HOST is the host interface the port is published on and FERROTERM_PORT the host port; the server listens on 8080 inside the container either way. The defaults are shown here, and --wait returns once the server answers its health check:

    $ FERROTERM_BIND_HOST=127.0.0.1 FERROTERM_PORT=8080 docker compose up -d --wait
    

    127.0.0.1 keeps the server on this machine. To serve another machine, set FERROTERM_BIND_HOST=0.0.0.0 or put the reverse proxy in front.

  4. Look up a code. Each FHIR version has its own base path, /r4, /r4b, /r5, and /r6, and $lookup is GET [base]/CodeSystem/$lookup with the system and code parameters:

    $ curl 'http://localhost:8080/r4b/CodeSystem/$lookup?system=http://loinc.org&code=2345-7'
    

    The answer is a Parameters resource carrying the code’s display (Glucose [Mass/volume] in Serum or Plasma) and the release version, 2.83. With another FERROTERM_PORT, use that port in the URL.

When the next LOINC release arrives, build it into a child of its own, such as --out /data/index/loinc-2.84, and run docker compose restart ferroterm. Both releases are then served, and a request that names no version resolves to the newest (see Index roots).

Where a build writes

The build service sets FERROTERM_INDEX_ROOT=/data/index and runs in /data/index. That gives ferroterm-build three rules:

  • With no --out, it writes a child of /data/index named for the source.
  • A relative --out is read against /data/index, so --out loinc-2.84 is ./index/loinc-2.84 on the host.
  • An --out outside /data/index, such as --out /tmp/loinc, is refused before anything is read. The container’s own filesystem is discarded by --rm, so a build written there would be lost.

Every build prints the absolute path it wrote.

Other code systems

Each row is the part after docker compose run --rm build, with the release files in ./releases. Loading code systems describes what each source needs and what the build makes of it.

SourceArgumentsWritten to, on the host
SNOMED CT--rf2 /releases/SnomedCT_Release.zip./index/snomed
SNOMED CT with a refset package--rf2 /releases/SnomedCT_Release.zip --rf2-refset /releases/<package>.zip./index/snomed
LOINC--loinc /releases/Loinc_2.83.zip./index/loinc
ICD-10, ICD-10-NL, ICPC-2 (ClaML)--claml /releases/icd10nl-2021.xml --system http://hl7.org/fhir/sid/icd-10-nl./index/icd-10-nl, the last segment of --system
ICD-10-CM--icd10cm /releases/<order>.zip --icd10cm /releases/<tables>.zip./index/icd-10-cm
ATC/DDD--atc /releases/atc-index-2026.csv --atc-version 2026./index/atc
DHD thesaurus--dhd /releases/<delivery>.zip./index/dhd, with its concept maps in conceptmaps/
G-Standaard--gstandaard /releases/202609 --gstandaard-version 202609./index/gpk, ./index/prk, ./index/hpk, ./index/artikel
Nederlandse Labcodeset--labcodeset /releases/Labcodeset_v2026-08.zip./index/labcodeset, FHIR resources
RxNorm--rxnorm /releases/RxNorm_full_prescribe_09082026.zip./index/rxnorm
ICD-11--icd11 /releases/icd11-cache./index/mms, ./index/icf, ./index/entity

Two releases of one source share a default child, so name one of them: the Dutch and the International SNOMED CT editions as --out /data/index/snomed-nl and --out /data/index/snomed-int, or the Diagnosethesaurus and the Verrichtingenthesaurus as --out /data/index/dhd-diagnoses and --out /data/index/dhd-procedures. The ClaML fallback child is claml when --system ends in no plain name (an urn:oid).

The Labcodeset resources and the DHD concept maps are FHIR resources, read through FERROTERM__TERMINOLOGY__CODE_SYSTEMS. They already sit on the index mount, so add the variable to the ferroterm service’s environment in compose.yaml, with the paths separated by commas, for example FERROTERM__TERMINOLOGY__CODE_SYSTEMS: /data/index/labcodeset,/data/index/dhd/conceptmaps. The release mount is read-only, so filling an ICD-11 cache with --icd11-api (which writes into the cache) runs with the binary; a build from a filled cache in ./releases runs here. docker compose run --rm build with no arguments prints the builder’s help. The service sits under the build profile, so docker compose up never starts it.

Serve indexes built elsewhere

To serve indexes you built elsewhere, skip the build and point the variable at an index root: a directory whose child directories are the artifacts, one per release. A root is the layout the sync service writes (one child per release, renamed into place when complete), so a deployment that starts with a root needs no re-layout when the sync is added later. A single artifact directory is accepted too (see Configuration).

$ FERROTERM_INDEX_DIR=/srv/ferroterm/index docker compose up

The file pulls the image of the release it shipped with, mounts the index read-only at /data/index, publishes port 8080 on the loopback interface, and runs the container with every capability dropped and a read-only root filesystem. FERROTERM_BIND_HOST, FERROTERM_PORT, FERROTERM__TELEMETRY__FORMAT, FERROTERM__TERMINOLOGY__DEFAULT_LANGUAGE, and RUST_LOG are variables you set on the command line.

The ferroterm service declares a health check, so docker compose up --wait returns once the server answers GET /health, and a service of your own waits for it with depends_on: ferroterm: condition: service_healthy. The shipped proxy service does exactly that. See Health, metrics, and request identifiers for what the probe does.

Run the container by hand

The image is ghcr.io/ferrohealth/ferroterm, published for linux/amd64 and linux/arm64 with every release. It holds the static ferroterm and ferroterm-build binaries on a distroless base: no shell, no package manager, a numeric non-root user (65532), and the listen address preset to 0.0.0.0:8080.

$ docker run --rm -p 8080:8080 \
    -v /srv/ferroterm/index:/data/index:ro \
    -e FERROTERM__TERMINOLOGY__INDEX=/data/index \
    ghcr.io/ferrohealth/ferroterm:0.4.9

Mount the index root read-only; each child directory under it is one artifact. The server writes nothing while serving, so the container runs with a read-only root filesystem. Tags are <version>, <major.minor>, and latest; a deployment pins the digest and verifies its provenance first (see Verifying releases):

$ gh attestation verify oci://ghcr.io/ferrohealth/ferroterm:0.4.9 \
    -R FerroHEALTH/FerroTERM \
    --signer-workflow FerroHEALTH/FerroTERM/.github/workflows/release-image.yml

The image carries a HEALTHCHECK that runs ferroterm healthcheck: the binary probes GET /health/readiness on its own listen address, since there is no shell or curl to do it, so docker inspect reports the container’s health and Compose can wait on it. Kubernetes ignores the image’s HEALTHCHECK: point the liveness probe at GET /health/liveness and the readiness probe at GET /health/readiness, set runAsNonRoot: true, readOnlyRootFilesystem: true, drop every capability, and mount the index root (not a single artifact) read-only at the path FERROTERM__TERMINOLOGY__INDEX names. The server stops cleanly on SIGTERM, within the bound server.shutdown_timeout sets.

Run the binary

Each release carries a tarball per target (x86_64 and aarch64, glibc and musl) holding ferroterm, ferroterm-build and ferroterm-sync, with a checksum, a CycloneDX SBOM per binary, and Sigstore attestations beside it. Download, verify, unpack, run:

$ gh release download v0.4.9 -R FerroHEALTH/FerroTERM -p 'ferroterm-v0.4.9-x86_64-unknown-linux-musl.tar.gz*'
$ gh attestation verify ferroterm-v0.4.9-x86_64-unknown-linux-musl.tar.gz -R FerroHEALTH/FerroTERM \
    --signer-workflow FerroHEALTH/FerroTERM/.github/workflows/release-build.yml
$ tar xzf ferroterm-v0.4.9-x86_64-unknown-linux-musl.tar.gz
$ FERROTERM__TERMINOLOGY__INDEX=/srv/ferroterm/index ./ferroterm

The server opens each index read-only, refuses to start on a missing or damaged one, and listens on 127.0.0.1:8080. The listen address, the index directories, the FHIR resource directories, and the default display language are environment variables described in Configuration.

Check that it is serving

$ curl http://localhost:8080/health
$ curl 'http://localhost:8080/r4b/metadata?mode=terminology'

The TerminologyCapabilities names every code system and version this deployment serves, with its filters and properties. See The FHIR terminology API for the operations.

Next steps

Loading code systems

FerroTERM serves the code systems you load. Each arrives as the release its owner distributes, turned once into an index by ferroterm-build, and served read-only. This page covers the licensing rule, the build step, and the command for every supported source; the sections below name each system.

You bring your own content

Warning

This repository ships no code system content, and no build of FerroTERM contains any. SNOMED CT is licensed by SNOMED International, LOINC by Regenstrief, ICD by the WHO, RxNorm by the NLM. You must hold whatever licence the release you load requires.

The split is firm: the software in this repository is under the Business Source License 1.1, and the code system content is the property of its owner and is not distributed here. A SNOMED CT licence is free within member countries, the Netherlands among them, and available under the affiliate licence elsewhere; LOINC needs a free account; ICD-10-CM and the RxNorm prescribable subset are public downloads; ICD-11 comes through the WHO’s own container under its licence.

The offline build

The running server never parses a release. ferroterm-build turns it into the index once, and the server opens the index read-only and reads it in at startup. The tool ships in every release tarball beside ferroterm and in the container image.

graph LR
    REL["A release you are licensed for"] --> BUILD["ferroterm-build (offline)"]
    BUILD --> IDX["index: store.redb + its column files + hierarchy.bin + text.bin + manifest.json"]
    IDX --> SRV["ferroterm (read-only)"]

Every source builds into the same layout, and the manifest names the system, so FERROTERM__TERMINOLOGY__INDEX takes any mix of them. When a new release arrives, build its index beside the old one and reload the server (Reloading and replacing content).

Each command below names its output directory with --out. Give --index-root DIR (or set FERROTERM_INDEX_ROOT) instead, and the build writes a child of that root named for the source (snomed, loinc, rxnorm, …) and refuses an --out outside it. The compose build service sets the root to its index mount (see Where a build writes). Every build prints the absolute path it wrote.

Loading a SNOMED CT edition

The command takes the release zip as SNOMED International or your national release centre distributes it, or the unpacked release directory, and writes the index:

$ ferroterm-build --rf2 /path/to/SnomedCT_Release.zip --out /path/to/ferroterm-index

From a zip, only the Snapshot/ tree is unpacked, to a temporary directory that is removed when the build ends; the Full and Delta trees are never read. With the container image the same build is one compose command (see Install and run). The build reads the concepts, descriptions, language reference sets, and inferred relationships, computes the transitive closure, and writes the store, the hierarchy, and the text index. The benchmarks page records how long each release takes and how large its index is.

The edition and version come from the release itself (the module and effective time), and $lookup returns them as the version URI (http://snomed.info/sct/11000146104/version/20260630).

A release may ship one file per namespace for its concepts, descriptions, relationships and module dependencies (an extension’s own beside the International ones); the build reads them all.

An unpublished edition

The SNOMED CT URI Standard names a release that is not published under http://snomed.info/xsct/ in place of http://snomed.info/sct/. A release does not say whether it is published, so you state it with --rf2-unpublished:

$ ferroterm-build --rf2 /path/to/release --rf2-unpublished --out /path/to/ferroterm-index

The version URI is then http://snomed.info/xsct/[module]/version/[date].

The terminology ecosystem’s test edition

The HL7 terminology ecosystem’s snomed test mode runs over a small SNOMED CT test subontology that the IG repository ships under tx-source/snomed, to be imported as http://snomed.info/xsct/31000003106/version/20250909. It is SNOMED CT content under SNOMED International’s licence: fetch it for your run and keep it out of anything you publish. The files sit in Terminology/ and Refset/ with no Snapshot/ folder above them, so put them under one:

$ mkdir -p test-edition/Snapshot
$ cp -R tx-source/snomed/Terminology tx-source/snomed/Refset test-edition/Snapshot/
$ ferroterm-build --rf2 test-edition --rf2-unpublished --out /path/to/test-index

scripts/checks/tx-ecosystem.sh --mode snomed --index /path/to/test-index then runs the mode against it.

Loading LOINC

The same tool builds a LOINC release into the same artifact layout. Download the release from https://loinc.org/downloads/ (a free account; the licence allows use and redistribution with the LOINC copyright notice, and the repository ships no release) and build it:

$ ferroterm-build --loinc /path/to/Loinc_2.82.zip --out /path/to/loinc-index

The zip’s term table, parts, hierarchy, answer lists, and linguistic variants are unpacked to a temporary directory; the part-link tables are not read. The version is taken from the release name (Loinc_2.82), else pass --loinc-version. Point FERROTERM__TERMINOLOGY__INDEX at the directory beside your SNOMED CT index; the server opens each by the system its manifest names.

Loading ICD-10 and ICD-10-CM

The same tool builds the ICD-10 family. A ClaML document (WHO ICD-10 from your WHO licence, the Dutch translation from the WHO-FIC Collaborating Centre at RIVM, or any other ClaML classification) is served under the system URI you name:

$ ferroterm-build --claml /path/to/icd10nl-2021.xml \
    --system http://hl7.org/fhir/sid/icd-10-nl --out /path/to/icd10nl-index

The version comes from the document’s Title; pass --claml-version when the title has none. A zip is accepted; its largest .xml entry is the document.

ICD-10-CM is a free download from CMS (https://www.cms.gov/medicare/coding-billing/icd-10-codes): the “Code Descriptions in Tabular Order” zip holds the order file and the “Code Tables, Tabular and Index” zip holds the tabular XML. Give both:

$ ferroterm-build --icd10cm 2026-code-descriptions-tabular-order.zip \
    --icd10cm 2026-code-tables-tabular-and-index.zip --out /path/to/icd10cm-index

Codes come out with the period (A00.0, S02.0XXA); chapters are named by their range (A00-B99); the order file’s header flag is the valid property. Point FERROTERM__TERMINOLOGY__INDEX at each directory as for LOINC.

Loading ATC

The WHO Collaborating Centre sells the ATC/DDD index as a spreadsheet; export it to CSV (any of comma, semicolon, or tab) with its columns ATC code, ATC level name, DDD, U, Adm.R, and Note, and build it with the index year as the version:

$ ferroterm-build --atc /path/to/atc-index-2026.csv --atc-version 2026 --out /path/to/atc-index

A G-Standaard subscriber builds the same tree from the BST801T file (the Dutch and English names, no DDDs):

$ ferroterm-build --atc /path/to/BST801T --atc-version 2026 --out /path/to/atc-index

The system is http://www.whocc.no/atc; the five levels are the kind property and filter; every DDD is a ddd property.

Loading the DHD thesauri

A DHD licensee receives the Diagnosethesaurus and the Verrichtingenthesaurus as zips of CSV tables (“Uitleverformaat 5.0”). Build a delivery as it comes; the version is read from the zip name:

$ ferroterm-build --dhd 20260901_120000_Diagnosethesaurus_2.40_uitleverformaat_5.0.zip \
    --out /path/to/dhd-diagnoses

The system is urn:oid:2.16.840.1.113883.2.4.3.120.5.1, a flat table: the preferred term is the display, synonyms and patient-friendly terms are designations, and the SNOMED CT identifier, the ICD-10, DBC, and ZA derivations, the roles, and the umbrella terms are properties. Concepts ended before the delivery date are served inactive. The build also writes two ConceptMap resources under conceptmaps/ in the output directory (the thesaurus to SNOMED CT and to ICD-10); point FERROTERM__TERMINOLOGY__CODE_SYSTEMS at that directory to serve them with $translate. Pass --dhd-version when the zip name does not carry the version.

Loading the G-Standaard product ladder

A Z-Index subscriber builds the GPK, PRK, HPK, and article code systems from the monthly release directory in one run; the release is the version:

$ ferroterm-build --gstandaard /path/to/g-standaard/202609 --gstandaard-version 202609 \
    --out /path/to/gstandaard

Four artifact directories appear under the output (gpk, prk, hpk, artikel), one urn:oid system each; list them all in FERROTERM__TERMINOLOGY__INDEX. Each is a flat table: the full name from the names file is the display, the short and label names are designations, and the rungs above a concept (gpk, prk, hpk), the ATC code, form, route, brand, and firm are properties.

Loading the Nederlandse Labcodeset

A Labcodeset licensee receives one XML publication per release. Build it as it comes; the release date is read from the document:

$ ferroterm-build --labcodeset Labcodeset_v2026-08.zip --out /path/to/labcodeset

The build writes a directory of FHIR resources under labcodeset/ in the output directory: the value set of the active concepts over LOINC (https://ferroterm.eu/fhir/ValueSet/nl-labcodeset, Dutch displays, English designations), a LOINC supplement carrying the Dutch names and the publication’s facts as properties (materials, units, outcome lists, statuses, replacements), and one value set per ordinal outcome list under its OID (urn:oid:…). Point FERROTERM__TERMINOLOGY__CODE_SYSTEMS at that directory beside a LOINC artifact in FERROTERM__TERMINOLOGY__INDEX; the SNOMED CT materials and outcome refsets resolve when a SNOMED CT edition is loaded too. Retired concepts stay in the supplement, marked labcodeset-status = retired, and leave the value set.

Loading the MyHealth@EU Master Value Sets Catalogue

The MyHealth@EU Master Value Sets Catalogue (MVC) is the value set source of every MyHealth@EU guide, distributed as a FHIR NPM package. Its value sets enumerate codes from SNOMED CT and other licensed systems, so FerroTERM ships none of it: you obtain the package and the code system releases it draws on under your own licences, and load them. Pin the package’s sha256 as the publisher states it; a file whose digest differs is refused:

$ ferroterm-build --fhir-package mvc-package.tgz \
    --fhir-package-sha256 8f42b6d0e3a5bad3517a7fe01025b1112d80b12503a66fa8495f9806a81de0e4 \
    --out /path/to/packages

The import writes the package manifest and its CodeSystem, ValueSet and ConceptMap resources, unchanged, to /path/to/packages/myhealth.eu.fhir.mvc-package-<version>/, so every value set keeps its canonical and its version. It leaves out the package’s examples and index, and refuses to import a release twice. Point FERROTERM__TERMINOLOGY__CODE_SYSTEMS at that directory beside the code system artifacts in FERROTERM__TERMINOLOGY__INDEX. Import the next release the same way and list both directories: ValueSet/$expand and ValueSet/$validate-code answer the release valueSetVersion names, and the greatest without one. A value set over a code system version you have not loaded answers an OperationOutcome naming that system and version, never an empty expansion.

Loading the NHG ICPC-1 to SNOMED CT map

Nictiz and the NHG distribute the ICPC-1 (NHG table 24) to SNOMED CT mapping as a FHIR R4 ConceptMap. Put the file in a directory with a package.json naming its FHIR version, and point FERROTERM__TERMINOLOGY__CODE_SYSTEMS at it:

{"name": "nl.nictiz.nhg-icpc-snomed", "version": "2026-03-31", "fhirVersions": ["4.0.1"]}

$translate then answers from http://hl7.org/fhir/sid/icpc-1-nl to SNOMED CT on every version endpoint. The 2026-03-31 release writes experimental as the string "false"; FHIR JSON requires a boolean there (https://hl7.org/fhir/R4/json.html), and the server refuses the file until it reads "experimental": false.

Loading RxNorm

The “Current Prescribable Content” subset needs no licence (https://www.nlm.nih.gov/research/umls/rxnorm/docs/prescribe.html); the full monthly release needs a UMLS licence. Both have the same shape:

$ ferroterm-build --rxnorm RxNorm_full_prescribe_09082026.zip --out /path/to/rxnorm-index

The version is the release date from the readme inside the zip (09082026); pass --rxnorm-version when the release has none. The build keeps the names of the unrestricted sources (RXNORM, MTHSPL). A full release carries sources the UMLS licence restricts by category; name the ones your licence covers with --rxnorm-sources MSH,VANDF to serve their names too. Point FERROTERM__TERMINOLOGY__INDEX at the directory as for LOINC.

Loading ICD-11

ICD-11 comes from the WHO ICD-API. Run the local deployment WHO publishes (https://icd.who.int/icdapi; the licence, CC BY-ND 3.0 IGO, allows the local copy but not passing it on), then let the build walk it into a cache and build the three code systems:

$ docker run -d -p 8080:80 -e acceptLicense=true -e saveAnalytics=false \
    -e include=2026-01_en whoicd/icd-api
$ ferroterm-build --icd11 /path/to/icd11-cache --icd11-api http://127.0.0.1:8080 \
    --icd11-release 2026-01 --icd11-languages en --out /path/to/icd11-index

The cache holds one JSON file per entity and language (about 110,000 files for the MMS, the ICF, and the Foundation) and is reused by later builds, so the API is only needed once per release. The build writes icd11-index/mms, icd11-index/icf, and icd11-index/entity; point FERROTERM__TERMINOLOGY__INDEX at each of the three. Languages beyond English need the deployment to include them (include=2026-01_fr); the build records every language the cache holds.

Test content

FerroTERM’s own tests use shaped, synthetic content only. They never contain real content extracted from a release, which keeps the licence line clean in the repository itself.

Derivative reference set packages

SNOMED International publishes packages that carry only a module and its reference sets, over an edition they depend on. The ICNP Nursing Practice package is one: two concepts, a reference set of about two thousand International Edition concepts, and a module dependency naming the edition it was authored against.

Layer one onto the edition it depends on with --rf2-refset, repeatable:

$ ferroterm-build --rf2 /path/to/SnomedCT_InternationalRF2.zip \
    --rf2-refset /path/to/SnomedCT_ICNPNursingPractice.zip \
    --out /path/to/ferroterm-index

The package’s concepts, descriptions, and language reference set members join the edition’s, and its reference sets serve as implicit value sets of the edition, so http://snomed.info/sct?fhir_vs=refset/1157358007 expands to the ICNP members. The manifest records what was layered.

Each package’s module dependency is checked against the edition before anything is read. An edition at or newer than the date a package was authored against meets the dependency; an older one does not and the build refuses, naming the module and both dates. A package naming a module the edition does not contain is refused the same way.

Loading the EEHRxF code systems

The European Electronic Health Record exchange Format (EEHRxF, the implementing act under Article 15 of Regulation (EU) 2025/327) binds its data elements to code systems beyond SNOMED CT, LOINC, and ICD-10. This page covers the loaders for those systems. Each takes the release file its publisher distributes, in the publisher’s own format, and builds it into an index the server reads like any other (FERROTERM__TERMINOLOGY__INDEX).

You supply every release

Warning

FerroTERM ships none of these releases. You download each from its publisher under the terms that publisher sets, and you hold any licence it requires. The tests in the repository run against small synthetic files in each format, never a real release.

Every build below writes one artifact directory. Without --out, the build writes into a child of --index-root (or FERROTERM_INDEX_ROOT) named in the section. The release’s version is recorded as the CodeSystem version, so $lookup, $validate-code, and $expand answer for the version you loaded and refuse any other with an OperationOutcome that names it.

NPU

The IFCC publishes the NPU code file, npu-codes-latest.csv, at https://npu-terminology.org/npu-database/. The file carries no release name, so give the month you downloaded it as the version:

$ ferroterm-build --npu npu-codes-latest.csv --npu-version 2026-11 --out /path/to/npu

The system is http://npu-terminology.org (HL7 Terminology, NamingSystem-NPU). NPU is a flat list: the short definition is the display, the full definition a designation, and the system, component, kind of property, unit, speciality, scale type, and replacement links are properties. A row whose active column is 0 is served inactive. The default child is npu.

ICD-O-3

WHO publishes ICD-O-3 as a topography table and a morphology table; the ICD-O-3.2 morphology workbook is distributed by the IACR for WHO (http://www.iacr.com.fr/index.php?option=com_content&view=article&id=149:icd-o-3-2&catid=80&Itemid=545). Give each table, as the workbook or its tab, comma, or semicolon export, with the revision as the version:

$ ferroterm-build --icdo Topoenglish.txt --icdo ICD-O-3.2_morphology.xlsx \
    --icdo-version 3.2 --out /path/to/icd-o-3

Each table needs a code column (Kode, Code, or ICDO3.2), a term column (Title, Term, or Label), and may carry a level column (Lvl or Level). A level of 3, 4, or Preferred names the title; incl and Synonym name synonyms; Related names related terms. The system is http://terminology.hl7.org/CodeSystem/icd-o-3 (HL7 Terminology, NamingSystem-icd-o-3). Topography codes carry their period (C50.9) and nest in their three-character category; morphology codes carry the slash before the behaviour digit (8500/3). The default child is icd-o-3.

EMDN

The European Commission publishes the European Medical Device Nomenclature as a workbook at https://webgate.ec.europa.eu/dyna2/emdn/, free of charge. The release year is read from the sheet name (EMDN_v.2026):

$ ferroterm-build --emdn "EMDN v2026_EN.xlsx" --out /path/to/emdn

Pass --emdn-version when the sheet does not name the year. HL7 Terminology registers no URI for EMDN; the system is https://smt.esante.gouv.fr/terminologie-emdn, the canonical of the one published FHIR CodeSystem for it (ans.fr.terminologies). Each code nests in the code its prefix names; the level and the terminal flag are properties. The default child is emdn.

ISCO-08

The ILO publishes the ISCO-08 structure as a workbook, ISCO-08 EN Structure and definitions.xlsx (https://ilostat.ilo.org/methods/concepts-and-definitions/classification-occupation/):

$ ferroterm-build --isco "ISCO-08 EN Structure and definitions.xlsx" --out /path/to/isco-08

The version is 2008 unless you pass --isco-version. The system is urn:oid:2.16.840.1.113883.2.9.6.2.7 (HL7 Terminology, NamingSystem-ISCO08). The four levels nest by code prefix; the definition, the tasks, and the included and excluded occupations are properties. The default child is isco-08.

ORPHAcodes

Orphanet publishes its nomenclature through Orphadata as one XML file per language, <lang>_product1.xml (https://www.orphadata.com/orphanet-nomenclature/). Give the file of the display language first and any other languages after it:

$ ferroterm-build --orpha en_product1.xml --orpha fr_product1.xml --out /path/to/orphanet

The version is the date in the file’s JDBOR element (2026-06-23) unless you pass --orpha-version. The system is https://www.orpha.net (HL7 Terminology, NamingSystem-orphanet). The nomenclature is a flat list: the preferred name is the display in each language, synonyms are designations, and the disorder type, group, and flags are properties. An entity flagged Inactive (obsolete, deprecated, or moved) is served inactive. The default child is orphanet.

DICOM

NEMA publishes the DICOM Controlled Terminology (PS3.16 Annex D, the DCM coding scheme) as OWL with each edition, dcm.owl.zip (https://dicom.nema.org/medical/dicom/resources/ontology/):

$ ferroterm-build --dicom dcm.owl.zip --out /path/to/dicom

The version is the edition the ontology names (2026e_20261121) unless you pass --dicom-version. The system is http://dicom.nema.org/resources/ontology/DCM (HL7 Terminology, NamingSystem-v3-DCM). The code meaning is the display; the definition and notes are properties; a retired code is inactive, with its replacement as replaced-by.

The PS3.16 context groups are published by NEMA as FHIR ValueSet resources, one per CID, at https://dicom.nema.org/medical/dicom/resources/valuesets/fhir/json/. Download the ones you need into a directory and point FERROTERM__TERMINOLOGY__CODE_SYSTEMS at it. Each group expands and validates over the codes it includes: the DCM codes from this build, and SNOMED CT, LOINC, or UCUM codes from those systems when you load them. The DICOM Standard is free to implement, but NEMA holds the copyright of its text and reproduction needs NEMA’s permission, so FerroTERM ships neither the terminology nor the context groups. The default child is dicom.

EDQM Standard Terms

The EDQM distributes the Standard Terms database through its API, behind a free account (https://standardterms.edqm.eu, “Help API”). Save the response of full_data_by_class for all classes, or one response per class, as JSON, and build them:

$ ferroterm-build --edqm edqm-all.json --out /path/to/edqm

The database names no release number, so the version is the newest modification date among the terms (2026-10-14) unless you pass --edqm-version. HL7 Terminology registers no URI for EDQM; the system is http://standardterms.edqm.eu, the one the HL7 Europe guides and the International Patient Summary use. The English term is the display and each translation a designation in its language; the class, domain, status, definition, and the links to terms of other classes (link-bdf, link-roa, and so on) are properties. A term whose status is not Current is served inactive. The EDQM’s terms of use apply to the data you load. The default child is edqm.

EMA SPOR

The EMA distributes its SPOR master data through the SPOR API, behind an account you register with the EMA (https://www.ema.europa.eu/en/human-regulatory-overview/research-development/data-medicines-iso-idmp-standards-overview/substance-product-organisation-referential-spor-master-data). Save the responses and build each kind on its own; each RMS list is a code system of its own, so build each list separately:

$ ferroterm-build --spor rms-200000000004-terms.xml --out /path/to/spor-dose-forms
$ ferroterm-build --spor oms-organisations.json --out /path/to/spor-organisations
$ ferroterm-build --spor sms-substances.json --out /path/to/spor-substances
$ ferroterm-build --spor pms-products.json --out /path/to/spor-products
KindResponseSystem
RMS terms of one listSPOR API v1 XML (controlled-term)https://spor.ema.europa.eu/v1/lists/<list id>
OMS organisationsSPOR API v1 JSON (organisation-id, name, status)https://spor.ema.europa.eu/v1/organisations
SMS substancesSPOR API v2 FHIR Bundle of SubstanceDefinitionhttps://spor.ema.europa.eu/v2/SubstanceDefinition
PMS medicinal productsSPOR API v2 FHIR Bundle of MedicinalProductDefinitionhttp://ema.europa.eu/fhir/MPID

HL7 Terminology registers none of these. The list URIs are those of the HL7 Europe guides, the substance URI that of the MyHealth@EU substance value set, and the product URI the MPID identifier system of the SPOR API v2 specification. A term or organisation that is not current or active is served inactive; a term’s names in each language are designations. The version is the newest modification date among the records unless you pass --spor-version. Give several files of one kind to build them as one. The default child is spor.

SNOMED CT Global Patient Set

SNOMED International publishes the Global Patient Set (GPS) freeset as a tab-separated file with the concept id, the active flag, the fully specified name, and the US English preferred term (https://docs.snomed.org/implementation-guides/gps-implementation-guide/global-patient-set-content). The build writes it as a value set over SNOMED CT:

$ ferroterm-build --gps SnomedINTL_GPSRelease_PRODUCTION_20260101T120000Z.txt --out /path/to/gps-root

The value set lands in gps/ under the output, with the canonical https://ferroterm.eu/fhir/ValueSet/snomed-gps (FerroTERM’s own; the freeset has none on the FHIR wire) and the release date in the file name as its version (--gps-version overrides it). Point FERROTERM__TERMINOLOGY__CODE_SYSTEMS at that directory beside a SNOMED CT edition in FERROTERM__TERMINOLOGY__INDEX: the value set holds the active concepts and expands and validates over whichever edition you load. If you hold the GPS RF2 refset package instead, layer it onto the edition with ferroterm-build --rf2 <edition> --rf2-refset <package>; it is then served as http://snomed.info/sct?fhir_vs=refset/<refset id>.

UDI device identifiers

A Unique Device Identifier (UDI) is assigned under the rules of an issuing entity: GS1, HIBCC, ICCBBA, or IFA. Its device identifier (UDI-DI) is what FerroTERM serves. Export the device records you need, for example the AccessGUDID delimited release (https://accessgudid.nlm.nih.gov/download/delimited, its pipe-delimited device.txt) or the UDI-DI records of EUDAMED (Regulation (EU) 2017/745, Article 28) saved as a delimited file or workbook, and build one issuing entity at a time:

$ ferroterm-build --udi device.txt --udi-issuer gs1 --udi-version 20261102 --out /path/to/udi-gs1

The table carries no release, so give the export’s date as the version. The build reads the UDI-DI column (PrimaryDI or UDI-DI); the brand or trade name is the display, the device description a designation and the display when a row has no name, and the model, the manufacturer, and the Basic UDI-DI are properties.

--udi-issuerSystem
gs1http://hl7.org/fhir/NamingSystem/gs1-di
hibcchttp://hl7.org/fhir/NamingSystem/hibcc-diI
iccbba-bloodhttp://hl7.org/fhir/NamingSystem/iccbba-blood-di
iccbba-otherhttp://hl7.org/fhir/NamingSystem/iccbba-other-di
ifahttp://hl7.org/fhir/NamingSystem/ifa-gmbh-di

HL7 Terminology registers no UDI issuer, so the systems are the issuer URIs FHIR R5 gives for Device.udiCarrier.issuer (https://hl7.org/fhir/R5/device-definitions.html#Device.udiCarrier.issuer). When the table has an issuing agency column (deviceIdIssuingAgency, Issuing agency), a row that names another entity stops the build: filter the export to one issuing entity first. The default child is udi.

EHDS identifier types

The EEHRxF act (Annex X, EHDSPatient.identifier.type) binds the identifier type to the HL7 identifier type extended with NI (national unique identifier), HI (health identifier), HIN (health insurance number), SS (social security identifier), REGPID (regional person identifier), and REGION (region identifier). FerroTERM serves this binding on every FHIR version with nothing to load:

  • the value set https://ferroterm.eu/fhir/ValueSet/ehds-identifier-type, which includes the FHIR identifier-type value set, NI and SS from http://terminology.hl7.org/CodeSystem/v2-0203, and the four codes below;
  • the code system https://ferroterm.eu/fhir/CodeSystem/ehds-identifier-type with HI, HIN, REGPID, and REGION, which the HL7 v2 table 0203 does not define.

Both are FerroTERM’s own resources. The value set expands fully when HL7 Terminology (hl7.terminology, CC0) is loaded through FERROTERM__TERMINOLOGY__CODE_SYSTEMS, since the HL7 identifier type and table 0203 come from there.

Reloading and replacing content

Audience: operators who add, replace or retire a code system release on a running server.

Reloading the served set

The server reads the directories again and swaps the whole served set on two triggers:

  • SIGHUP to the process (kill -HUP <pid>, docker kill --signal=HUP <name>).
  • POST /reload on the admin listener, when admin.listen names an address.
$ curl -sS -X POST http://127.0.0.1:8081/reload
{"outcome":"ok","systems":[{"id":"snomed.info-sct-…","system":"http://snomed.info/sct","version":"…"}]}

A reload opens every artifact in terminology.index and every resource in terminology.code_systems again, read-only, builds a new registry, and exchanges a pointer. A request already in flight finishes on the set it started on, and that set is dropped when the last request holding it ends, so the memory of the swapped system is resident twice for a few seconds. terminology.resources is live already and is carried over untouched: the resources clients wrote stay written, and the new set serves them over the new artifacts.

An artifact is replaced by building it in a new directory and renaming that directory over the configured path, which is one atomic step and leaves the old files in place for the handles still reading them. Writing into the directory the running server is reading corrupts what it reads. A directory in terminology.code_systems is different: add or remove a resource file in it, and the reload picks up the change.

Adding or removing an artifact PATH means changing terminology.index, which the process reads once at start, so that still takes a restart. Adding or removing a release inside an index root does not, because a reload lists every root again.

The admin listener carries POST /reload and nothing else and answers 404 to anything else. Every route on it requires a credential carrying the admin scope, [auth] product_scope (__ferroterm.admin when unset), unless [auth] turns authentication off. Bind it to a loopback or internal address (127.0.0.1:8081), keep it off the address your clients reach, and leave it out of the reverse proxy that publishes the FHIR surface (see Behind a reverse proxy). The FHIR listener never serves /reload: that path is the not-found OperationOutcome any unknown path answers.

Index roots

The server reads each path in terminology.index in one of two ways:

  • An artifact path holds a manifest.json of its own. The server opens that directory as one code system version.
  • An index root holds no manifest.json. The server lists it and opens every child directory that holds one, in the order their names sort. A child without a manifest is passed over, as is a file beside the children.
/srv/ferroterm/snomed-nl/        terminology.index names this root
    20260331/                    an artifact: the release in production
    20260930/                    an artifact: the release that followed it
    .incoming-20261031/          no manifest yet, so the server passes it over

Every reload lists the roots again, so a release directory that appeared since the last scan is opened and one that disappeared is dropped. That is what lets a synchronisation job publish a release beside the running one and keep the previous release for a rollback. Both are served, and a request that names no version still resolves to the greatest one, so publishing a release is what promotes it. A retired release keeps answering until you remove its directory and reload.

Write a release into a root in two steps: build or download it into a directory outside the root, then rename it in. rename is one atomic step (https://pubs.opengroup.org/onlinepubs/9699919799/functions/rename.html), so a reload sees the new directory whole or not at all. The manifest is the marker that makes the directory an artifact, and ferroterm-build writes it after everything else, so a build straight into a root is picked up only once it has finished. ferroterm-build --index-root writes straight into a root, one child per source.

A root that holds no artifact serves nothing and logs the index root holds no artifact. A path that names nothing at all still refuses the start, and a reload that meets one keeps the old set answering.

A refused artifact stops the start

An artifact the server cannot open stops the whole start. Nine good artifacts and one damaged one serve nothing, and the cannot start line names the directory and the reason.

That is deliberate. A server that dropped the damaged one and served the other nine would answer every code of the tenth system with “not found”, and a caller cannot tell that from “this code does not exist”. A terminology answer that is wrong and confident is worse for a clinical system downstream than a server that did not start, so the refusal is loud and total.

The practical consequence for an operator is that a rebuilt artifact is swapped in before a restart, not after one. The practical consequence for a benchmark or a conformance run is that it fails at once, naming the artifact, rather than reporting a figure taken over a system nothing served.

A reload holds the same bar without the downtime. One artifact that does not open refuses the whole swap: the server keeps serving the set it already had, logs the served set was not reloaded with the reason, counts ferroterm_reloads_total{outcome="failed"}, and answers the admin request with a 500 reload-failed problem naming the artifact. A half-applied release never reaches a client. A child directory under an index root is an artifact like any other here: once it holds a manifest the server cannot read, it refuses the reload rather than serving the root without it.

Upgrading

Audience: operators who move a running deployment to a new release.

Only the newest release receives fixes (SECURITY.md), so plan to take each release. The server, the build tool, the synchronisation service and the console are released together under one version; run them at the same version.

1. Read what the release changes

Read the release’s section of the changelog. Three entries change what you do:

  • A new artifact layout. The entry says “every index must be rebuilt”. A server refuses an artifact of another layout, naming the layout it found and the one it reads, so an old index never answers through a new server.
  • A removed or renamed configuration key. The entry names the key and what replaces it. The new server refuses to start on the old key, naming it.
  • A ### Security section. It names the advisory each fix closes.

A release inside the current line (0.4.x) keeps the promised surfaces (What stable means); a new line (0.5.0) may change them, and its changelog says how.

2. Verify the release

Check the provenance and the checksum of the tarball or the image before you run it, as Verifying releases shows. Pin the image by digest in production.

3. Check the configuration with the new binary

Run the new binary’s config check against the configuration you deploy, on the host or in the image, before you switch:

$ ferroterm config check --config /etc/ferroterm/ferroterm.toml
$ docker run --rm -v /etc/ferroterm:/etc/ferroterm:ro \
    ghcr.io/ferrohealth/ferroterm:<version> config check --config /etc/ferroterm/ferroterm.toml

It reads the file, the FERROTERM__ variables and --set the way the server will, prints every key with its value and where it came from, and exits 78 (EX_CONFIG) on a configuration the server would refuse. Run ferroterm-sync config check and ferroterm-console config check the same way when you run those services.

4. Rebuild the indexes when the layout moved

When the changelog announces a new layout, build every index again with the new ferroterm-build before you switch the server: build, then switch. A build writes a new directory and the running server keeps reading the old one, so the two never meet. With an index root, build each release into a directory outside the root and rename it in; with fixed paths, build beside the old directory and rename the new one over it (Reloading and replacing content).

Plan the time and the memory for it: the build of a SNOMED CT edition is the expensive step, and Benchmarks records how long each release takes and how much memory it peaks at.

When the layout did not move, the indexes you serve keep working and you skip this step.

5. Switch

  • Compose. Download the new release’s compose.yaml, which pins its image tag, and run docker compose up -d --wait. The server’s health check decides when it is up.
  • Container. Change the image reference to the new digest and roll the deployment. The readiness probe (GET /health/readiness) answers 200 only once every index is open.
  • Binary. Replace ferroterm, ferroterm-build and ferroterm-sync with the new tarball’s and restart the service.

The resource database that terminology.resources names carries over: the new server opens the same file and serves what clients wrote. Stop the old server before the new one opens it, because one redb file has one writer.

6. Check that it serves

$ curl http://localhost:8080/health/readiness
$ curl 'http://localhost:8080/r4/metadata?mode=terminology'

The CapabilityStatement names the new version as software.version, and TerminologyCapabilities lists every code system version the deployment serves. A server that refused an index did not start; its log names the artifact and the reason in a cannot start line.

Rolling back

Keep the previous release’s binaries or image digest, and its indexes when you rebuilt them, until the new release has served for a while. Rolling back is the same switch in the other direction, with the old indexes: a server refuses an index built for another layout.

Syncing from a national terminology service

A national terminology service publishes its releases in an Atom syndication feed: one entry per downloadable item, with the canonical identifier, the version, the date, and a digest. Some services keep their FHIR resources behind their FHIR API instead, and the sync lists that API as if it were a second feed. The FerroTERM sync service reads both on a schedule, takes what you subscribed to, builds or stages it, and asks the server to reload. It runs beside the server and never inside it, and it moves content in one direction only.

What one run does

  1. It reads each configured feed, and the FHIR API of a source that has one (a search per CodeSystem, ValueSet, and ConceptMap, paged to the end), and compares what they offer with what you already serve: the releases under your index root, the resources in your managed directory, and the ledger of what the service itself put there.
  2. It takes the entries you subscribed to that you do not hold yet, streams each one to the staging directory, and refuses any whose digest does not match what the feed advertised. A resource read from a FHIR API carries no advertised digest; the run records the digest of what arrived instead.
  3. An RF2 archive goes through ferroterm-build into a staging directory and is renamed into the index root as a new release beside the previous one. A FHIR resource is written as a file in the managed resource directory, corrected first when its service needs a correction.
  4. It asks the server to reload, then prunes the releases retention no longer keeps and tells the server about that too.
  5. It writes one JSON record of everything above and posts a summary to your webhook, whether the run worked or not.

A run that fails leaves the served set exactly as it was. A build that fails never reaches the index root, and a reload the server refuses is rolled back, including a resource file the run had replaced. A delivered resource is served at the id it carries, so a delivery whose id another loaded or persisted resource of the same type already answers on is one of the reloads the server refuses (see What a code system version is served as). Nothing is deleted except by retention, and the server’s own write store (FERROTERM__TERMINOLOGY__RESOURCES) is never touched.

Running it

The service runs as its own image, ghcr.io/ferrohealth/ferroterm-sync, carrying ferroterm-sync and ferroterm-build, and the Compose overlay runs it beside the server over one volume. Every release publishes the image for linux/amd64 and linux/arm64, with the same provenance and SBOM attestations as the server image (Verifying releases), and compose.sync.yaml pulls it at the release’s tag.

To run a commit no release carries, build the image from docker/Dockerfile.sync. The file copies the two binaries from a staged dist/linux/<arch>/ tree, built for the musl target of your platform (on Linux, with musl-tools installed):

cargo build --release --locked --target x86_64-unknown-linux-musl \
  -p ferroterm-sync -p ferroterm-build
mkdir -p dist/linux/amd64
cp target/x86_64-unknown-linux-musl/release/ferroterm-sync \
  target/x86_64-unknown-linux-musl/release/ferroterm-build dist/linux/amd64/
docker buildx build -f docker/Dockerfile.sync --platform linux/amd64 \
  -t ghcr.io/ferrohealth/ferroterm-sync:0.4.9 --load .

The tag is the one compose.sync.yaml names, so Compose runs the image you built. With a published release, skip the build and run the overlay:

FERROTERM_SYNC_DATA=/srv/ferroterm FERROTERM_SYNC_CONFIG=/srv/sync.toml \
  docker compose -f compose.yaml -f compose.sync.yaml up

One directory on one filesystem holds index/, codesystems/, staging/, records/, and state/. That is not a convenience: a run stages a release and then renames it into the index root, and a rename works only inside one filesystem. The server mounts index/ and codesystems/ read-only; the sync mounts the whole tree and writes to it as uid 65532.

The overlay also sets FERROTERM__ADMIN__LISTEN=127.0.0.1:8081 on the server, because POST /reload on that listener is how the sync asks for the new release to be served, and runs the sync in the server’s network namespace, so it reaches that listener and the FHIR base over loopback. Nothing outside that namespace reaches the admin listener or the sync’s own listener, the console included; the console page says what that means for Reload and the run findings. That listener is a guarded surface, so the server starts only once [auth] names an issuer in an [auth.issuer.<name>] table, with [server_admin.credentials.oauth] in the sync configuration, or turns authentication off (see Configuration).

ferroterm-sync run-once performs a single run and exits, which is what a first run and a cron-style deployment use.

Configuration

One TOML file, named by --config <path> or by FERROTERM_SYNC_CONFIG (the container image sets /etc/ferroterm/sync.toml). A variable FERROTERM_SYNC__<SECTION>__<KEY> sets one key over the file (FERROTERM_SYNC__RETENTION=4, FERROTERM_SYNC__SCHEDULE__AT=03:00), and --set key=value sets one over both. Every key is optional and falls back to the value below; a key, or a FERROTERM_SYNC__ variable, that the service does not know is refused at start-up rather than ignored. ferroterm-sync config check prints every key with where it came from, every secret as ***. A refused configuration ends serve, run-once and config check with exit code 78 (EX_CONFIG, sysexits(3)), and healthcheck with not up and 1.

KeyDefaultWhat it names
listen127.0.0.1:8181the service’s own admin listener
[server_admin]url = "http://127.0.0.1:8081", timeout = "30min", one trythe server’s admin listener, which serves POST /reload (see The outbound endpoints)
[fhir]nonethe server’s FHIR base, which the revalidation reads
index_root/data/indexthe index root the server reads
resources/data/codesystemsthe managed resource directory the server reads
staging/data/stagingwhere a run downloads and builds
records/data/recordsone JSON record per run
state/data/statewhat the service remembers between runs
retention2release directories kept per code system
activationautoauto or manual
[webhook]nonewhere one JSON summary per run is posted
timezoneUTCthe zone a daily schedule is read in
build_commandferroterm-buildthe offline build, on PATH or by path
listing_limit64MiBthe most bytes one listing answer takes, the feed or one page of a FHIR API search; a listing is read into memory to be parsed, so its bound sits far below download_limit, which bounds bytes streamed to disk
download_limit4GiBthe most bytes one download takes, a data size; a larger item is refused, its partial file removed, and the run record names it
[auth]on, no issuerthe credentials the admin listener admits (see The admin listener); [auth] post_quantum_only = true holds every issuer to ML-DSA-44, ML-DSA-65 or ML-DSA-87 (RFC 9964), as on the server
[nts]url = "https://terminologieserver.nl", timeout = "1h", the realm’s issuer, no clientthe NTS the add-on calls and the client it authenticates as (see Credentials)
[telemetry]auto format, no exportthe console log’s format and filter (RUST_LOG sets the filter too), and the OTLP export of the service’s metrics, the same section the server reads (see Telemetry)

A [[source]] entry names the add-on that reads a service and carries that add-on’s own block:

index_root = "/data/index"
resources = "/data/codesystems"
staging = "/data/staging"
records = "/data/records"
state = "/data/state"
retention = 2
activation = "auto"
timezone = "Europe/Amsterdam"

[server_admin]
url = "http://127.0.0.1:8081"

[fhir]
url = "http://127.0.0.1:8080/r4b"

[schedule]
at = "03:00"

[[source]]
kind = "nts"

[source.config]
systems = ["http://snomed.info/sct/11000146104", "http://loinc.org"]

An add-on whose service keeps resources behind its FHIR API lists that API by default; the NTS block takes fhir_api = false to keep a run to the feed and fhir_api_url to point at another endpoint.

The file needs no secret in clear. The NTS account’s secrets can each be a mounted file (password_file, client_secret_file) or a variable, and the reload call reads its own from the file [server_admin.credentials.oauth] names, so the file can stay safe to commit and safe to show.

The outbound endpoints

Every URL the service sends a credential to, or takes content from, is https, or plain http on a loopback host (localhost, 127.0.0.1 or ::1): [server_admin], [webhook], [nts], the issuer and token endpoint of each client credentials grant, and a source’s feed_url and fhir_api_url. Any other plain http URL refuses the start, naming the key, the rule the server holds for its own issuer and usage report collector. To reach a server’s admin listener on another host, give it [server.tls] (The HTTP server) and the sync [server_admin.tls].

[server_admin], [fhir], [webhook] and [nts] are the family’s outbound endpoint table, the keys every FerroHEALTH product writes for a call it makes: url, timeout, connect_timeout, retry (max_attempts, initial_backoff, max_backoff; a call that did not connect, timed out or met a 5xx is tried again), tls (the outbound TLS table of Configuration) and credentials. A key a table leaves out keeps its default: [server_admin] keeps the defaults above (timeout = "30min", one try, since a reload takes as long as a server start), [nts] keeps its own (see Credentials), and [fhir] and [webhook] take the family’s (timeout = "10s", three tries).

The credential of the reload call

The server’s admin listener requires a credential carrying its admin scope (Configuration), and [server_admin.credentials.oauth] names the one the sync presents: a token of the OAuth 2.0 client credentials grant (RFC 6749 §4.4) from an authorization server the server trusts, fetched before the call, kept until shortly before it expires, and fetched once more when the server answers 401. The reload is a machine’s call and a Basic user is a person, so the sync takes no Basic credential:

[server_admin.credentials.oauth]
issuer = "https://auth.example.org/realms/tx"   # or token_endpoint = "…"
client_id = "ferroterm-sync"
client_secret_file = "/run/secrets/sync-client-secret"
scope = "__ferroterm.admin"
KeyMeaningDefault
oauth.issuer or oauth.token_endpointwhere the token endpoint is read from, or the endpoint itself; exactly onenone
oauth.client_idthe client at the authorization servernone
oauth.client_authclient_secret_basic, client_secret_post or private_key_jwtclient_secret_basic
oauth.client_secret or oauth.client_secret_filethe client secret; exactly onenone
oauth.private_key_file, oauth.kid, oauth.assertion_algthe PEM key, kid and algorithm of a private_key_jwt assertion (RFC 7523)the RFC 7638 thumbprint, the algorithm of the key
oauth.dpop_key_filethe PEM key the tokens are bound to with DPoP (RFC 9449): a P-256 or P-384 key signs its proofs ES256 or ES384, an ML-DSA key its parameter set (RFC 9964)none (bearer tokens)
oauth.scope, oauth.resource, oauth.audiencethe token request’s scope, RFC 8707 resource and audience parametersnone
oauth.refresh_marginhow long before the token expires a new one is fetched"30s"
oauth.timeouthow long one call to the authorization server may take"10s"
[server_admin.credentials.oauth.tls]the outbound TLS table of the token calls (see Configuration)none

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 sync-assertion.pem, signs ML-DSA-65; register its public half at the authorization server as an AKP key. A DPoP key works the same way: a second ML-DSA-65 key, made as openssl genpkey -algorithm ML-DSA-65 -out sync-dpop.pem, signs every DPoP proof with ML-DSA-65, and the authorization server binds the tokens to it:

[server_admin.credentials.oauth]
issuer = "https://auth.example.org/realms/tx"
client_id = "ferroterm-sync"
client_auth = "private_key_jwt"
private_key_file = "/run/secrets/sync-assertion.pem"
dpop_key_file = "/run/secrets/sync-dpop.pem"
scope = "__ferroterm.admin"

With the table empty the call carries no credential, which only a server with [auth] turned off accepts. There is no static token, and the table takes no Basic user or password.

The schedule

Two shapes, and no cron syntax:

  • every = "24h" measures from the end of the last run. It is a duration: a whole number and a UCUM unit (ms, s, min, h, d), such as "90min" or "7d".
  • at = "03:00" is a time of day in timezone.

An interval of zero ("0s") is refused at start, naming schedule.every: each run would be due the moment the last one ends, and the service would never wait. A value that is no such duration, the ISO 8601 "PT24H" and the friendly "1h 30m" among them, refuses the start too.

With both, the earlier due time wins. With neither, the service runs only when you ask it to. The end of the last run is written to the state directory, so a restart between two runs does not replay the run that already happened: a service that ran at 03:00 and restarts at 04:00 is next due at 03:00 the following day. A window the service was down for is due at once.

A run also starts on POST /run on the admin listener, and as ferroterm-sync run-once.

Activation

In auto the run renames what it built into the index root and asks the server to reload, in the same run. In manual the run stops after staging: nothing is served, the run record says how many items wait, and POST /activate puts them in front of the server when you are ready. What is staged survives a restart, and a later run does not build it again.

An activation is not a synchronisation run: it gets its own run record, and it leaves the schedule where it was, so the next scheduled run still starts at its own time.

What a new release did to your own content

A release can retire a code your own value set enumerates, remove it, or leave it outside the value set it was included through. After a release is activated the service revalidates every locally authored ValueSet and ConceptMap against the set now being served and writes what it found into the run record.

It reports and never edits. A finding is a decision for a terminologist, and the service changes nothing in your content, ever.

Set [fhir] url to the server’s FHIR base, such as http://127.0.0.1:8080/r4b, to turn the check on. Its last segment (r4, r4b, r5 or r6) names the FHIR release the check writes its requests in; a base whose last segment names none refuses the start. Without [fhir] the run record says the check did not run. The check reads the server’s public FHIR API, ValueSet/$validate-code and ValueSet/$expand, both with activeOnly, so it sees exactly what any client sees:

  • a code that is still a member but is no longer active is inactive;
  • a code the code system no longer carries is absent;
  • a code that is still in the code system and no longer falls inside the value set is outside-value-set.

Each finding names the resource, the system, the code, and the release this run activated for that system. A run that finds nothing says so in one sentence, and that sentence and the finding count travel in the webhook summary. /metrics carries ferroterm_sync_revalidation_findings as a gauge per locally authored resource, so a resource that is clean reads zero rather than disappearing.

The check reads the first 1000 codes of a resource and expands at most 1000 members, which keeps one run bounded; a larger resource is noted in the log.

Retention

After a successful reload the service keeps the newest retention release directories per code system and removes the rest, then asks the server to reload once more so the removed release leaves the served set. A release that is still there is what you roll back to, so keep at least two. A retention of 0 removes nothing. Each run record says what was removed, how many bytes it held, and how many bytes the index root uses afterwards.

Retention judges only directories that carry a manifest.json, so a build in progress is never touched, and it groups them by the code system edition the manifest names.

The admin listener

The service binds listen and serves six routes:

RouteWhat it does
POST /runperforms one run and answers its summary when the run has finished
POST /activateputs what is staged in front of the server
GET /runsthe runs this service performed, newest first
GET /runs/{id}one whole run record
GET /metricsthe Prometheus exposition
GET /health, GET /health/liveness, GET /health/readinessthe FerroHEALTH health routes (Health)

Every route but the three health routes requires a credential carrying the product scope, __ferroterm.sync unless [auth] product_scope names another. The [auth] table is the one the server reads (Configuration): an [auth.issuer.<name>] table with its kind and audience for each issuer whose access tokens it accepts (checked as JWTs, or at the issuer’s introspection endpoint under mode = "introspection"), people under [[auth.basic.users]] with their scopes in [basic_grants], or both. A machine, such as a monitor, calls with a client credentials token, and a Basic user granted a system/ scope refuses the start. A refused request answers 401 with a challenge naming the realm ferroterm-sync (or [auth] realm), or 403 for a credential without the scope, with a JSON error body.

The service refuses to start while [auth] admits no credential, unless the file says enabled = false, which only a network that trusted callers alone reach should:

# The console signs people in at this issuer and calls with their tokens;
# a monitor calls with its own client credentials token.
[auth.issuer.tx]
issuer = "https://auth.example.org/realms/tx"
audience = ["ferroterm-sync"]

# or a person with HTTP Basic, the hash an Argon2id PHC string:
[[auth.basic.users]]
user = "operator"
password_hash_file = "/run/secrets/operator.phc"

[basic_grants.operator]
scopes = ["__ferroterm.sync"]

Keep the listener unpublished whatever [auth] says; the Compose overlay leaves both listeners reachable only inside the compose network.

The console’s history screen reads GET /runs and GET /runs/{id} to show what the last run found about the resource a terminologist has open (The console). The console’s own server makes the call, at [ferroterm.sync] url, with the signed-in reader’s access token, so a reader sees the findings when the identity provider grants them the product scope and lists the sync’s audience in the token. A visitor, a reader without the scope, or a console with no [ferroterm.sync] sees no findings.

/metrics carries ferroterm_sync_runs_total{outcome="ok"|"failed"}, ferroterm_sync_last_run_timestamp_seconds, ferroterm_sync_entries_taken_total, ferroterm_sync_bytes_staged_total, ferroterm_sync_index_bytes, and ferroterm_sync_revalidation_findings per locally authored resource.

What a run record contains

One JSON file per run under records, named by the run identifier, which sorts by time. It carries:

  • the trigger, the start and end, the duration, and the outcome;
  • per source: the feed address, how many entries it offered, the FHIR API address and how many resources it listed when the source has one, what was taken (with its origin, feed or FHIR API, the bytes, the download time, the build time, and the corrections that were applied), what was left behind with the reason for each one, such as a release you already serve, a delta rather than a snapshot, Ontoserver’s binary index, or a CodeSystem whose content is not-present, a count per origin (feed or FHIR API) of the entries left behind only because your subscription does not name their system or category, which a service’s FHIR API lists by the thousand, and the subscribed canonicals no listing carried at all, which means the account could not see them and never that the service lacks them;
  • the activation: the mode, what reached the server, what is still staged, what the server answered to each reload, and whether the run was rolled back;
  • the revalidation: how many locally authored resources were read and how many codes were checked, one sentence saying what it found, and a line per local code the release made inactive, removed, or left outside its value set;
  • what retention removed and how many bytes the index root uses;
  • every error, in the order it happened.

The summary that /runs lists and the webhook receives counts the two kinds apart: entries_skipped for the entries left behind with a reason of their own, and entries_not_subscribed for those outside the subscription. The webhook receives one POST per run end, on success and on failure. A delivery that fails is logged and never fails the run.

NTS (Nationale Terminologie Server)

The NTS is the Dutch national terminology service, run by Nictiz. It serves FHIR R4 and publishes its content at https://terminologieserver.nl/synd/syndication.xml. The feed is challenged: the listing itself answers 401 with a bearer challenge, so the add-on authenticates before it can even see what is on offer.

The account and the licences

You need a personal account on the NTS. Nictiz issues it after you accept its terms, and each licensed system is unlocked per account. Seen from the outside, that scoping looks like this:

  • The syndication feed lists Ontoserver binary indexes of the SNOMED CT Netherlands edition, each marked onto:permission snomed.read, and no RF2 archive and no FHIR resource or package, so the feed alone gives the sync nothing it can build or serve. The FHIR content lives behind the FHIR API of the same service, which the add-on lists beside the feed. The SNOMED CT CodeSystem resources there carry content not-present and are reported, never served.
  • The feed identifies SNOMED CT as http://snomed.info/sct and carries the edition in the version URI (http://snomed.info/sct/11000146104/version/20260831).
  • A system the account holds no licence for is hidden, not absent: $lookup on LOINC or the NHG tables answers 404 naming the current version (http://loinc.org|2.83, http://hl7.org/fhir/sid/icpc-1-nl|12), and a search by that URL returns zero resources. SNOMED CT, ICD-10-NL, the Labcodeset LOINC supplement and its three maps, UCUM, and the zib value sets are visible to an account that accepted the SNOMED CT terms only.

Ask Nictiz for each licence you need and check what your account sees before you subscribe to a canonical. The content stays licensed by its publisher. FerroTERM distributes none of it, and a deployment brings what it is licensed for.

Credentials

The add-on authenticates with the OAuth 2.0 client credentials grant (RFC 6749 §4.4), as a confidential client Nictiz issues to your deployment; ask Nictiz for one beside your account. The NTS realm publishes the grant, and Nictiz’s own authentication examples use it (https://github.com/terminologieserver/ontoserver_authentication_examples). The password grant the Nictiz manual describes for a personal account is not supported: RFC 9700 §2.4 says it MUST NOT be used.

[nts] is the family’s outbound endpoint table (see The outbound endpoints) for the service every nts source calls: its base url, timeout ("1h", since a download of a whole edition is one call), connect_timeout ("30s"), retry, tls, and the client under [nts.credentials.oauth]. A key the table leaves out keeps that default, so a deployment writes only its client. The secret is set inline or through its _file sibling, which names a mounted file; setting both refuses the start. Keep the secret out of the file you commit: set it as a variable or mount it.

Key (variable)What it holds
nts.credentials.oauth.client_id (FERROTERM_SYNC__NTS__CREDENTIALS__OAUTH__CLIENT_ID)The OAuth 2 client identifier Nictiz issued
nts.credentials.oauth.client_secret (FERROTERM_SYNC__NTS__CREDENTIALS__OAUTH__CLIENT_SECRET), or client_secret_fileIts client secret
[nts.credentials.oauth]
client_id = "your-client"
client_secret_file = "/run/secrets/nts-client-secret"

The add-on reads the token endpoint from the realm’s OpenID Connect Discovery document, at https://terminologieserver.nl/authorisation/auth/realms/nictiz/.well-known/openid-configuration (nts.credentials.oauth.issuer, which defaults to that realm), sends the secret in the request body (client_auth = "client_secret_post"), and fetches a new token a minute before the cached one expires (refresh_margin = "1m"), so an unattended run on any day needs no person. No run against the live NTS has used the client credentials grant: the token endpoint and the listing were checked with a personal account’s password grant, which the add-on does not offer.

The first run

Two scripts in scripts/live/ run the first hops on your own machine and never in CI, because both need your personal licensed account: scripts/live/nts-feed.sh reads the feed with your credentials and reports, per system, whether the service publishes it as an RF2 archive, as FHIR resources, or only as Ontoserver’s binary index; scripts/live/sync-e2e.sh builds the binaries from the checkout, starts the server on an empty index root, runs the sync once, and shows the run record and what the server serves afterwards. Both take the FERROTERM_SYNC__NTS__* variables and print no secret. The FerroEHR hop follows: point its quickstart overlay at the server the second script started and commit a composition whose binding names a code the run made available.

  1. Get the account, accept the terms, and confirm which systems your licences unlock. Run scripts/live/nts-feed.sh to see the feed as your account sees it.
  2. Put the client in the [nts.credentials.oauth] keys as variables or mounted files, and keep them out of the configuration file you commit.
  3. Subscribe by canonical identifier. The defaults are the SNOMED CT Netherlands edition (http://snomed.info/sct/11000146104), LOINC (http://loinc.org), UCUM (http://unitsofmeasure.org), and ICD-10 (http://hl7.org/fhir/sid/icd-10). The service’s own canonicals for the Dutch content are ICD-10-NL (http://hl7.org/fhir/sid/icd-10-nl), the Labcodeset (http://labterminologie.nl/cs/labconcepts, a LOINC supplement, with its maps under http://labterminologie.nl/cm/), NHG-Tabel 24 (http://hl7.org/fhir/sid/icpc-1-nl), the other NHG tables (https://referentiemodel.nhg.org/tabellen/nhg-tabel-NN-slug), and the zib value sets (http://decor.nictiz.nl/fhir/ValueSet/{oid}--{timestamp}).
  4. Run once and read the run record before you activate anything. It lists every entry the feed offered, what was taken, and the reason for each entry left behind: a system you did not subscribe to, a release you already serve, or a system the service offers only as Ontoserver’s binary index, which is an internal package format and is reported as not syndicable.
  5. Check the corrections. The freely published NHG ICPC-1 to SNOMED CT map file writes experimental as the string "true", and the add-on writes the boolean FHIR declares before the file is served. The service itself serves experimental as a boolean on every resource it lists , so the correction concerns files taken from elsewhere. Every correction is listed with the element it changed; a file that needs none lands byte-identical.

Behind a reverse proxy

FerroTERM speaks plain HTTP and leaves TLS and rate limits to the proxy a deployment already has. Its read surface is open; the routes that change content and the admin listener authenticate their callers. This page is the shape that gets you from that to a served endpoint, and how the server checks those credentials (Validating tokens in the server).

What the server does and does not do

The serverThe proxy
answers FHIR terminology requeststerminates TLS
reads its indexes, writes only what FERROTERM__TERMINOLOGY__RESOURCES namesauthenticates readers, if you want them authenticated; the server checks the writers and the admin callers itself
logs a line per request with no bodies and no free textrate-limits and sheds load
states its endpoint and its declared security in the capability statementforwards the client’s X-Request-Id

The read path holds no patient data: a request names a code system, a code, and sometimes a display, and the log line carries only the system, url, version, code, codeA, and codeB parameters. Free-text parameters, request bodies, and response bodies are never logged, so a proxy log is the only place a filter= term can appear. Keep proxy access logs to the same standard.

What the server connects to

By default, nothing. The server binary carries no general HTTP client, so a deployment can refuse it every outbound route and it still answers every request. The indexes are files it opens read-only, and the one socket it opens itself is the health probe: a GET /health/readiness to its own listener over loopback, because the image has no shell to run a probe with. Fetching a release from a terminology service happens outside the server, on a machine of your choosing, and the server reads the artifacts that run writes.

The one exception is the authorization server [auth] names, and only when you name one. With an issuer set the server reads that issuer’s metadata and its key set at start, again when the key set is older than jwks_max_age, and again when a token names a key it has not read (see Validating tokens in the server). That is the whole of its outbound traffic, apart from the opt-out usage report; name no issuer and it makes none. Those reads go through the FerroHEALTH resource-server crate ferrohealth-smart and the report through the FerroHEALTH crate ferrohealth-usage-report; their HTTP client is the one the server links.

scripts/checks/no-client-in-server.sh is the evidence. The no-client-in-server job in .github/workflows/ci.yml runs it on every pull request, reading the binary’s resolved dependency tree and failing when an HTTP client reaches it.

The quickstart, proxied

compose.yaml carries a proxied profile: Caddy in front, the server on the compose network only.

FERROTERM_DOMAIN=tx.example.org \
FERROTERM__FHIR__BASE_URL=https://tx.example.org \
docker compose --profile proxied up

With the default domain (localhost) Caddy issues from its own internal CA, so the profile works offline; name a real domain and it fetches and renews a certificate itself. The server publishes no host port in this profile: the proxy reaches it as ferroterm:8080 inside the network.

The base URL

A server behind a proxy answers on an address it never sees: the proxy terminates TLS and forwards a plain request, so the socket the process bound is not the URL a client used. FERROTERM__FHIR__BASE_URL is that URL, without a version prefix and without a trailing slash:

FERROTERM__FHIR__BASE_URL=https://tx.example.org

Each version’s capability statement then states its own endpoint, so a client that reads one learns where to send the next request:

"implementation": {
  "description": "FerroTERM terminology server",
  "url": "https://tx.example.org/r4b"
}

Both GET /r4b/metadata and GET /r4b/metadata?mode=terminology carry it. A deployment that sets nothing states no URL rather than a wrong one.

Forwarded headers

Terminate TLS at the proxy and forward the original scheme, host, and client address. Caddy’s reverse_proxy sets X-Forwarded-For, X-Forwarded-Proto, and X-Forwarded-Host by itself; nginx needs them spelled out:

location / {
    proxy_pass         http://ferroterm:8080;
    proxy_set_header   Host              $host;
    proxy_set_header   X-Forwarded-For   $proxy_add_x_forwarded_for;
    proxy_set_header   X-Forwarded-Proto $scheme;
    proxy_set_header   X-Forwarded-Host  $host;
    proxy_set_header   X-Request-Id      $request_id;
    proxy_read_timeout 60s;
}

The server does not read these headers: it takes its public URL from FERROTERM__FHIR__BASE_URL rather than from a header a client could forge, which is the same reason a proxy should strip an inbound X-Forwarded-* it did not set. It does read X-Request-Id and echoes it, so a proxy that generates one (as nginx does above) gets its id back on the response; the server’s log line carries the server’s own id and client_named: true, never the proxy’s value. See Metrics and request identifiers.

Authentication

The read surface asks for no credential, so a proxy authenticates readers when you want them authenticated, and the capability statement declares what it enforces. The writes and the admin listener are the server’s own to guard: authentication is on by default, and a server that names FERROTERM__TERMINOLOGY__RESOURCES or FERROTERM__ADMIN__LISTEN refuses to start until [auth] names an issuer (Validating tokens in the server). The FHIR security page puts it the same way, a server relies on the deployment’s infrastructure and states what that is (https://hl7.org/fhir/R4B/security.html). Authenticate at the proxy, and tell clients what you did:

FERROTERM__FHIR__SECURITY_SERVICES=SMART-on-FHIR

The value is codes of the FHIR restful-security-service value set (OAuth, SMART-on-FHIR, Basic, Certificates, Kerberos, NTLM), comma-separated, and they appear in CapabilityStatement.rest.security.service. A deployment that declares none says so in words: “The server requires no authentication of its own; a deployment puts its own in front of it.”

If your gateway speaks SMART on FHIR, the scopes worth granting are read-only: the terminology surface reads, and the only routes that change content are the resource endpoints and $closure, which a deployment enables by naming FERROTERM__TERMINOLOGY__RESOURCES and can leave unset.

Validating tokens in the server

Take the gateway route when one gateway already fronts every service you run and no client writes to FerroTERM. Take the server route when writes matter: FERROTERM__TERMINOLOGY__RESOURCES is set, clients or an editor persist CodeSystem, ValueSet, and ConceptMap resources, and you want the server itself to know which caller may change what. A gateway can protect a path; it cannot tell a terminologist’s token from a reporting client’s without repeating the scope rules FerroTERM already applies.

The server takes the SMART App Launch resource-server role (https://hl7.org/fhir/smart-app-launch/conformance.html) through the FerroHEALTH crate ferrohealth-smart. It issues no tokens of its own: your authorization server does that, and FerroTERM only reads its public metadata. A server that names FERROTERM__TERMINOLOGY__RESOURCES or FERROTERM__ADMIN__LISTEN refuses to start until [auth] names the issuer in an [auth.issuer.<name>] table with an audience, or turns authentication off (Configuration). The table lives in the configuration file:

[fhir]
base_url = "https://tx.example.org"

[auth.issuer.tx]
issuer = "https://auth.example.org/realms/tx"
audience = ["https://tx.example.org"]

At start the server reads the issuer’s metadata, at /.well-known/oauth-authorization-server (RFC 8414 §3) or {issuer}/.well-known/openid-configuration, and the key set it names. It refuses to start when either does not answer, so a server that cannot check a token never serves a surface it has declared protected. The issuer URL is https, and a plain-HTTP one is refused unless its host is the loopback, because those bytes decide which signatures the server trusts. Install your certificate authority in the image when the issuer runs under a private one: the server uses the platform trust store.

What changes once it is set:

  • POST, PUT, and DELETE on CodeSystem, ValueSet, ConceptMap, NamingSystem and Provenance, on every served FHIR version, require a credential. So does POST [base]/$closure, which keeps a stored closure table, and every route on the admin listener.
  • The read surface stays open. $lookup, $expand, $validate-code, $subsumes, $translate, /metadata, /health, and /metrics answer without a token, whichever HTTP method they use.
  • [base]/.well-known/smart-configuration is served per version, built from the issuer’s document, and each capability statement declares SMART-on-FHIR with the oauth-uris extension.

The scope for a route is the SMART version 2 one (https://hl7.org/fhir/smart-app-launch/scopes-and-launch-context.html):

RouteScope that grants it
POST /r4b/CodeSystemsystem/CodeSystem.c or user/CodeSystem.c
PUT /r4b/ValueSet/{id}system/ValueSet.u or user/ValueSet.u
DELETE /r4b/ConceptMap/{id}system/ConceptMap.d or user/ConceptMap.d
POST /r4b/$closuresystem/ConceptMap.u or user/ConceptMap.u
Any admin-listener route[auth] product_scope, __ferroterm.admin when unset

SMART names no scope for $closure, so that row is our own reading: the operation maintains a stored ConceptMap (https://hl7.org/fhir/R4B/conceptmap-operation-closure.html). No specification governs the admin listener, so its scope is FerroTERM’s own, in the extension form SMART App Launch 2.2.0 gives one (Scopes and Launch Context, §Extensibility): a string starting with __, or a full URI. Any other value refuses the start.

Both compartments open the same routes. system/ is a client authorized in its own right, which is what a sync service or a reporting client presents; user/ is a person acting through an interactive client, which is what the editor presents. patient/ is refused: a terminology server holds no patient record, so a patient-compartment scope selects nothing here, and the discovery document claims no permission-patient. The served scopes_supported lists [auth] scopes_supported and never the issuer’s own list, because the server SHALL support every scope it lists.

The combined forms work as the specification defines them, so user/CodeSystem.cud and user/*.cruds both grant a create, and the version 1 user/CodeSystem.write and user/CodeSystem.* are accepted for compatibility. A scope narrowed by search parameters (system/CodeSystem.cud?url=…) grants nothing: the server does not evaluate the restriction, so it refuses rather than widening it. That is why the discovery document claims permission-v1 and not permission-v2, which names the granular syntax. Grant an unnarrowed scope.

The token is an RFC 9068 JWT access token signed by the issuer with an asymmetric algorithm. The server checks the signature against the key set, iss, exp, nbf and iat within the clock skew, the audience as described below, the typ header, which must be at+jwt or application/at+jwt (RFC 9068 §4), and the claims RFC 9068 §2.2 requires (sub, client_id, jti) with scope. The caller is read from the token’s standard claims: a token whose sub is its client_id is a backend service, and any other names a user by its fhirUser.

The audience a token carries

The aud parameter of a SMART authorization request names the resource server the app wants FHIR data from (https://hl7.org/fhir/smart-app-launch/app-launch.html), and this server publishes one FHIR base per version. A reader who signs in on /r5 and one who signs in on /r4b therefore get tokens with different audiences from an issuer that mints the claim from that request. Both are this server.

The write routes accept every served version’s base derived from FERROTERM__FHIR__BASE_URL, with and without a trailing slash, plus every audience of the issuer’s [auth.issuer.<name>] table. With FERROTERM__FHIR__BASE_URL=https://tx.example.org the server accepts https://tx.example.org/r4, /r4b, /r5, and /r6 under that host. A token passes when its aud holds any of them, which RFC 7519 §4.1.3 asks of a recipient identifying itself, and the claim may be a string or an array. A token for any other audience is refused with 401 and error="invalid_token", and so is a token with no aud at all (RFC 8725 §3.9).

A token minted for one version’s base is spent on every other. One process serves the four bases and a reader moves between them in one session, so the audience says which server, not which version.

Set FERROTERM__FHIR__BASE_URL to the exact address readers’ browsers use, down to the scheme, the host, and the port. An audience is compared as a string, so https://tx.example.org and https://tx.example.org:443 are two audiences, and a value that differs from the one the console sends refuses every write from a reader who signed in successfully.

The root URL is not in the set: the server serves no FHIR base there. Name it in the issuer’s audience when your issuer mints it anyway.

The admin listener is not a FHIR endpoint, so no version base is an audience for it: it accepts the issuer’s audience alone.

An audience is required on every [auth.issuer.<name>] table, so every token is checked for an audience of this server (RFC 9068 §4); a server that names an issuer and no audience refuses to start. Set FERROTERM__FHIR__BASE_URL in any deployment behind a proxy as well: it is what the capability statements publish.

A server-to-server client obtains its token through SMART Backend Services, which is the flow a sync service uses (https://hl7.org/fhir/smart-app-launch/backend-services.html): client_credentials with private_key_jwt, the system/ scopes above, and the token presented as Authorization: Bearer. Every machine caller takes a client at the authorization server: a Basic user is a person, and the server refuses to start on a Basic user granted a system/ scope. The server accepts no static token.

A browser client holds no secret, so it runs the standalone launch as a public client: the authorization code flow with PKCE (https://hl7.org/fhir/smart-app-launch/app-launch.html), user/ scopes, and the token kept in memory. It reads where to send the person from [base]/.well-known/smart-configuration, which publishes authorization_endpoint, token_endpoint, and code_challenge_methods_supported. That last member is always ["S256"]: “SMART servers SHALL support the S256 code_challenge_method and SHALL NOT support the plain method”, and S256 is the SHA-256 challenge of RFC 7636 §4.2. A plain your issuer advertises is dropped. The capabilities array states what the deployment offers: permission-user and permission-v1 are this server’s own, and launch-standalone, client-public, client-confidential-symmetric, client-confidential-asymmetric, and sso-openid-connect are claimed only where your issuer’s document backs them. Register the browser client with your issuer for token_endpoint_auth_method: none, and grant it openid too when you want the person’s identity in an id_token.

What comes back on a refusal follows RFC 6750 §3:

SituationAnswer
No credential401, WWW-Authenticate: Bearer realm="…" (and a Basic challenge when Basic users are configured), an OperationOutcome with login
Expired, malformed, wrong issuer, wrong audience, wrong signature401 with error="invalid_token" and the stable reason code as error_description (expired, malformed-token, issuer-unknown, audience-mismatch, signature-invalid and the rest); the OperationOutcome is the same for every invalid token
Two Authorization headers, or a scheme with no credential400 with error="invalid_request"
Valid credential, no scope for the route403 with error="insufficient_scope" and error_description="scope-not-granted"; the outcome names no scope
The key set could not be read to check the token503, an OperationOutcome with transient

The outcome is written in the format the request asks for, JSON or XML.

Key rotation needs nothing from you. The server reads the key set again when it is older than jwks_max_age (ten minutes), so a withdrawn key stops verifying, and a token naming a kid it has not read makes it read the set again, at most once per jwks_refresh_interval (a minute) counted from the last read, the one at start included. Publish the new key before you sign with it.

The admin listener stays behind the proxy

FERROTERM__ADMIN__LISTEN binds a second listener that serves POST /reload and nothing else. Every route on it requires the admin scope, and the server refuses to start with it until [auth] names an issuer or turns authentication off (Configuration). Bind it to 127.0.0.1 or an address on your internal network, publish only the FHIR listener through the proxy, and reach the reload from the host or from the orchestration that writes the new artifacts. A deployment that puts the admin address behind the same public proxy hands anyone a way to make the server re-read its disks.

Rate limits and timeouts

The proxy is the place for both. An expansion of a large implicit value set is the expensive request to bound: ValueSet/$expand answers at most 1,000 members without count and asks for paging beyond that, so a limit on requests per second per client, plus a read timeout in the tens of seconds, is enough. Cap the request body too (a Parameters POST with tx-resource resources is the largest thing a client sends).

Health and metrics stay off the public route:

handle /health /health/* /metrics {
    respond 404
}

Probe them from inside the network instead, where the container’s own port is reachable.

Running behind FerroSMART

FerroSMART is the FerroHEALTH SMART App Launch 2.x authorization server. It logs a person in at any OpenID Connect provider upstream, for login only, and issues RFC 9068 access tokens for the FerroHEALTH products. FerroTERM then runs as a resource server: an app, the console or a backend service takes its token from FerroSMART and calls FerroTERM’s write routes with it, and FerroTERM never sees the provider’s tokens. FerroSMART’s architecture describes the whole deployment in §13.21 A product behind FerroSMART; this page is FerroTERM’s side of it.

flowchart LR
    person["Person in a browser"] --> app["App or the FerroTERM console"]
    app -- "sign in" --> smart["FerroSMART"]
    smart -- "login only" --> idp["OpenID Connect provider"]
    app -- "write, Bearer token" --> term["FerroTERM write routes"]
    term -. "metadata and key set" .-> smart
sequenceDiagram
    participant B as Browser
    participant A as App or console
    participant S as FerroSMART
    participant I as IdP (login only)
    participant T as FerroTERM
    B->>A: Sign in
    A->>S: /authorize, aud = the /r4b base
    S->>I: OpenID Connect login
    I-->>S: The person is authenticated
    S-->>A: Authorization code
    A->>S: /token
    S-->>A: RFC 9068 access token, typ at+jwt
    A->>T: PUT /r4b/CodeSystem/…, Bearer token
    T-->>A: 201 Created, or 401 or 403

Reading needs no token: the read surface stays open whatever [auth] says, so only writes and the admin listener go through FerroSMART.

FerroSMART’s resource table

FerroSMART issues a token only for a resource it names. FerroTERM serves one FHIR base per version, so list each base your apps write through:

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

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

Each base sits under FerroTERM’s fhir.base_url, and a token whose aud names any served version’s base writes on every version.

FerroTERM’s issuer table

FerroTERM trusts FerroSMART with one named issuer table that names only the issuer:

[fhir]
base_url = "https://tx.example.org"

[auth.issuer.ferrosmart]
issuer = "https://smart.example.org"

The issuer is a SMART App Launch 2.2 authorization server, and with no audience key its audience is the served version bases, so neither needs a key. FerroSMART’s client registry is the one list of clients: a token FerroSMART signs whose aud names a FerroTERM base admits its client, and FerroTERM keeps no client list of its own. A token’s typ is at+jwt or application/at+jwt (RFC 9068 §4), and scope is a required claim. The caller is read from the token’s standard claims:

TokenRead as
A user’s token (sub names the user, client_id the app)a user, by the resource type of its fhirUser claim, or a user of no stated type without one; a user/ scope decides what they write
A token with an RFC 8693 actthe user, with the actor that acts for them
A SMART Backend Services token (sub equals client_id, RFC 9068 §2.2), such as the synchronisation service’sa backend service, with the system/ scopes it carries
A patient’s or a RelatedPerson’s token under patient/ scopesadmitted, and refused every write with 403: a terminology resource sits in no patient’s compartment
A token whose aud names another server, with no scope, or with another typrefused: 401

Use one table for FerroSMART: two issuer tables naming one issuer refuse the start. Every other key of the issuer table and every profile key is on the Configuration page.

The admin listener serves no FHIR base, so it takes only the audiences an issuer table names outright: with no audience key, FerroSMART’s tokens open the write routes alone, and the admin listener admits the Basic users of [[auth.basic.users]].

The discovery document

An app that starts at FerroTERM reads GET /r4b/.well-known/smart-configuration and must find FerroSMART there. With FerroSMART as FerroTERM’s one SMART issuer, the described-issuer rule picks it, and the document names FerroSMART’s authorization_endpoint and token_endpoint. With other issuers beside it, set [auth] described_issuer = "ferrosmart", the name of its table.

No specification governs this deployment shape: it is FerroHEALTH’s own design, built from SMART App Launch 2.2.0, RFC 9068 and OpenID Connect.

The console

The FerroTERM Console is the browser interface of a FerroTERM deployment: a dashboard of what the server serves, listings and detail screens for its code systems, value sets and concept maps, a runner for each terminology operation, and editors for the resources your deployment writes. It is its own program and its own image, ferroterm-console, which you run beside the server. It is one of the FerroHEALTH consoles and looks like the others: the same shell, navigation, tables and forms, in FerroTERM’s teal.

The console renders every page on its own server and talks to FerroTERM over the public FHIR API, server to server. Anything the console does, any other FHIR client can do. The terminology server serves no user interface itself.

Running it

With the quickstart, the console profile starts the console beside the server:

$ docker compose --profile console up
$ open http://localhost:3000

Run the binary yourself with a configuration file:

$ ferroterm-console serve --config console.toml
$ ferroterm-console config check --config console.toml
$ ferroterm-console healthcheck

The configuration is a TOML file, named by --config or FERROTERM_CONSOLE_CONFIG. Every key can be set from the environment as FERROTERM_CONSOLE__<SECTION>__<KEY>, for example FERROTERM_CONSOLE__FERROTERM__SERVER__URL, --set key=value sets one over both, and every secret also reads from a file through its _file sibling, whose trailing line ending is dropped. An unknown key, or a FERROTERM_CONSOLE__ variable that names none, is refused at start. The [telemetry] section is the one the server reads (Telemetry): format and filter set the console log, and RUST_LOG sets the filter too.

[server]
listen = "0.0.0.0:3000"

[ferroterm]
# The address readers see the FHIR API at, shown on the screens.
public_url = "https://terminology.example.org/"

[ferroterm.server]
# Where the console reaches the server, on your private network.
url = "http://ferroterm:8080/"
timeout = "30s"

[ferroterm.sync]
# The synchronisation service's admin listener, which Synchronisation reads.
# The service listens on 127.0.0.1:8181 unless its `listen` names an address
# the console reaches, such as 0.0.0.0:8181 on a private network.
url = "http://ferroterm-sync:8181/"

[ferroterm.admin]
# The server's admin listener, which Reload the served set posts to.
url = "http://ferroterm:8081/"

[session]
store = "memory"
secure_cookie = true
idle_timeout = "30min"
absolute_timeout = "8h"
max_sessions = 1000

[oidc]
issuer = "https://idp.example.org/realms/ferroterm"
client_id = "ferroterm-console"
client_secret_file = "/run/secrets/console-client-secret"
redirect_uri = "https://console.example.org/auth/callback"
scopes = ["openid", "fhirUser", "user/CodeSystem.cud", "user/ValueSet.cud", "user/ConceptMap.cud", "__ferroterm.sync", "__ferroterm.admin"]
post_logout_redirect_uri = "https://console.example.org/"

The [oidc] and [session] sections are the ones every FerroHEALTH console reads (ferrohealth-session). The console reads the provider’s endpoints from its metadata (<issuer>/.well-known/openid-configuration) when it starts; set authorization_endpoint, token_endpoint, jwks_uri, end_session_endpoint or revocation_endpoint to use another address, and [oidc.tls] trust_roots_file to trust a private certificate authority, or trust_roots_without_revocation_file for one that publishes no revocation service (the outbound TLS table of Configuration). config check reads no provider, so it works offline. Spans of time are durations such as "30s" or "8h".

The console accepts an ID Token signed with ML-DSA-44, ML-DSA-65 or ML-DSA-87 (RFC 9964) and with the classical RS256 to PS512, ES256, ES384 and EdDSA. [jose] post_quantum_only = true accepts the three ML-DSA parameter sets alone, for a provider that signs with ML-DSA.

With the synchronisation overlay compose.sync.yaml, the server’s admin listener binds 127.0.0.1:8081 and the sync service runs in the server’s network namespace, so a console in another container reaches neither: Reload the served set and the run findings then need the console in the same namespace, or a listener bound to an interface the console reaches, with TLS (Syncing from a national terminology service).

[ferroterm.server], [ferroterm.sync] and [ferroterm.admin] are the family’s outbound endpoint table: url, timeout, connect_timeout, retry (max_attempts, initial_backoff, max_backoff; a read, update or delete is tried again after a failed connection, a timeout or a 5xx, and a create is sent once) and tls, the outbound TLS table of Configuration. A table takes no credentials: every call carries the signed-in reader’s, and a table that sets one refuses the start. [ferroterm.server] defaults to http://127.0.0.1:8080/ with a timeout of "30s", and a key the table leaves out keeps its default; [ferroterm.sync] and [ferroterm.admin] take the family’s (timeout = "10s"). [session] store = "memory", the only store, keeps the sessions in the console’s process, so a restart signs every reader out. Run the console as one instance, or route each session to one replica at the ingress.

Signing in

Reading is open: a visitor reads every screen, because the server’s read surface asks for no token. Signing in is for editing. Without an [oidc] section the console offers no sign-in and no editing screen.

With one, the top bar gains Sign in. The console signs you in at your identity provider with the authorization code flow and PKCE and keeps the session on its own server, behind one cookie the browser cannot read; the browser never holds a token. Register the console as a client at the provider with the redirect address https://your-console/auth/callback and the scopes above, and point the terminology server at the same issuer with an [auth.issuer.<name>] table that names the audience the provider puts in the console’s tokens (Configuration), so it accepts the tokens the console presents on your behalf:

[auth.issuer.tx]
issuer = "https://auth.example.org/realms/tx"
audience = ["https://tx.example.org"]

The authorization server’s registry decides which clients get a token for this audience, so the table lists no client. The same table admits a backend client’s client credentials token, such as the synchronisation service’s, whose sub is its client_id (RFC 9068 §2.2). The issuer signs access tokens typed at+jwt (RFC 9068 §2.1); FerroSMART does (Running behind FerroSMART). A role that gets none of the three user/ scopes reads the server and changes nothing; the menu under your name says what you may edit.

The console signs you in at /login, the provider sends you back to /auth/callback, Sign out posts to /logout, and the page asks /session what your session has left.

Sign out ends the session, revokes its token where the provider publishes a revocation endpoint (RFC 7009), and takes you to the provider’s end-session endpoint when one is configured and the session holds an ID Token. A Basic sign-in holds none, so its sign-out lands on the signed-out page.

The screens

Every screen is drawn whole on the console’s server and works with scripting off; FerroUI’s script modules add the theme menu, the copy buttons, the concept tree’s keys and the keyboard shortcuts on top. / focuses the command bar, ? opens the list of shortcuts, g then a letter opens a screen of the navigation (g c code systems, g v value sets, g m concept maps, g b the concept browser, g o operations, g s the server, g d the dashboard), Ctrl Enter runs an operation or the composer’s preview from inside a field, and Ctrl S saves an editor. Keyboard shortcuts under your name lists them at their own address. The top bar carries the command bar, the FHIR version you are reading through, the server’s health, and the menu under your name with the theme. The version menu keeps the version for your session, so every screen you open next reads the same root. An address that names a version with ?fhir= reads that version for that page.

From the second character you type into the command bar, a panel under it shows the code systems, value sets and concept maps whose name or canonical holds the words, five of a kind, and the screens that take what you typed. The arrow keys move through it, Enter opens a hit and Escape closes it. The panel asks GET /find/answer?q=, which answers as JSON and says when a read the server refused leaves the matches short. Submitting the command bar opens Find, which lists every match in the page.

Dashboard

What the server serves on the version in view: the number of code systems, value sets and concept maps, the writes it recorded most recently, the first code systems, and the way into each operation.

Code systems

Every code system the root declares in its TerminologyCapabilities, with its source, the versions it holds, its content mode and whether it reads as a hierarchy. Sort by a column and page through; past ten rows, find by name or canonical and keep the sources you tick in the Source menu. Each row opens the code system’s own screen, whose tabs are links: Overview (its definition from the published resource), Versions (what this server declares it can do with each version), History for a resource this server stores, and JSON, the resource as the server sent it.

Concept browser

Search a code system, read a concept with $lookup, and walk its hierarchy one level at a time, where its version declares the child-of filter operator. Every move is in the address, so a walk is a link you can send.

Value sets and concept maps

The resources the root publishes. A value set opens on Definition (what its definition selects), Expansion (the codes it expands to, a page at a time) and JSON; a concept map on Mappings (every mapping it writes, group by group), Overview and JSON.

The operations

Look up a code ($lookup), check a code against a code system or a value set ($validate-code) and how two codes relate ($subsumes), expand a value set ($expand) a page at a time, and translate a code through the concept maps ($translate). Each runner offers the canonicals this root publishes, keeps its parameters in the address, and draws the answer as a result panel, with a refusal shown in the server’s own words.

Server, Configuration and About

Server shows the four FHIR roots side by side, read from each root’s CapabilityStatement, the operations each root declares, and the conformance and benchmark evidence this build ships. Configuration lists the settings the console runs with, secrets redacted, a value an environment override sets marked From the environment and one nothing sets marked Default, and How configuration works, at the end of the line that names the file, opens a dialog on where they come from and how you change them. When the console was started with a configuration file, More in the title row offers Copy the file’s path, the path shown under it. About names the build, the licence and the projects it stands on.

With [ferroterm.admin] set and a token that carries __ferroterm.admin, More on Server offers Reload the served set. It asks first, then posts the server admin listener’s POST /reload, and the page says what the server answered: the new set is in front of readers, or the old one stays and the reason is shown.

Your preferences

Open from the menu under your name: the theme and the density, reduced motion, the default FHIR version, the display language concept names are asked for in, the page size (25 rows unless you choose another) and the keyboard hints. The console keeps each in a cookie of its own for your browser and draws the next page in it. A choice saves as you make it, and the display language and the page size save when you press Enter or leave the field changed (from 1 to 1000 rows); with scripts off, each has a Save button.

Editing

Signed in with the write scopes, the Code system editor, the Value set composer and the Concept map editor write local resources through the same REST API any client uses. Each is a plain form: Save posts it, the console sends the resource, and the page says which version the server wrote. Every save states If-Match, so a resource someone changed since you opened it is refused with 412, your draft stays in the form, and the screen offers to reload the current version. Content your server serves from its loaded indexes has no write path, so it opens to read and offers no save.

Composing a value set

Signed in with user/ValueSet.cud, the Value set composer screen builds a local ValueSet.compose and saves it through the same REST API any client uses.

A definition is a set of clauses. Every include adds to the selection and the value set is the union of them all; the criteria inside one include are taken together, so a code has to satisfy all of them; an exclude takes codes back out of that union (https://hl7.org/fhir/R4B/valueset.html#compositions). The screen says which of those each clause is doing, in a sentence under it, and names the invariant a clause breaks by its own number: vsd-1 for a clause that selects nothing, vsd-2 for codes or filters with no code system, vsd-3 for codes and filters at once.

A clause draws in a value set your server already publishes, picked from the list, or any canonical you type, including a form a code system defines for itself. It selects out of a code system with the filter properties and operators that system’s served version declares, which the screen reads from TerminologyCapabilities: a system declaring an expression-constraint filter offers it here, a system declaring none offers none, and a clause pinned to a code system version is offered that version’s filters. A filter value the server refuses is shown with the character its diagnostic points at marked.

Own codes are typed one per row, and each one can carry the display this value set gives it; the preview shows any code the code system does not hold.

Run the preview expands the definition on screen, saved or not: it posts it to ValueSet/$expand in the valueSet parameter and pages the answer (https://hl7.org/fhir/R4B/valueset-operation-expand.html). The page and the text filter are in the address, so a preview is a link you can send.

Save sends the resource with If-Match, so a value set someone else changed since you opened it is refused with 412 and the screen offers to reload it (https://hl7.org/fhir/R4B/http.html#concurrency). An update replaces the whole resource, so the save carries back every element the form does not draw, from the description to a code’s own designations (https://hl7.org/fhir/R4B/http.html#update). Every refusal is shown in the server’s own words. Content your server serves from its loaded indexes has no write path, so it opens here to read and offers no save under any role.

History and restoring a version

A resource this server stores has a History tab, which opens /history on it. The screen lists the revisions the server holds, newest first, with when each was written and the interaction that wrote it where the answer states one.

How the list is read depends on what your server declares in its CapabilityStatement. A server declaring history-instance answers the whole list at once. FerroTERM declares vread, so the console reads each earlier revision back one request at a time, counting down from the revision the resource states, and the screen says so. Only the 20 most recent revisions are listed.

Compare takes an earlier and a later revision and lists the elements they disagree about: the path, whether it was added, removed or changed, and both values. It compares the two documents structurally, so what you read is which elements moved. meta.versionId and meta.lastUpdated are left out, because your server assigns both on every write. The two revisions are in the address, so a comparison is a link you can send.

Restore on an earlier revision asks first, in a dialog that names the revision, and then writes that revision’s whole resource back as a new one. It states If-Match of the revision the server holds now, so a change someone else made since you opened the screen is refused with 412 and the screen offers to reload the revisions. The page then says which revision the restore wrote. Restore appears only for an account whose token carries the write scope for the resource type; everyone else reads the same revisions and restores nothing.

Synchronisation

With [ferroterm.sync] set and a token that carries the synchronisation service’s product scope (__ferroterm.sync), the Console group of the navigation has Synchronisation. It lists the runs the service made, newest first, read from its admin listener: when each started, what started it, how it ended, what it did and how many findings it made.

A run opens on Summary: its sources, the releases it took, what it left behind, the activation and the revalidation of your own resources, with Download the record for the whole run record as JSON. Findings lists what the release did to the codes your own resources name, each row linked to the resource.

Run now asks first and then posts the service’s POST /run. The service answers once the run has finished, which can take as long as a build, and the list then names the run with a link to it. Activate what is staged, under More, posts POST /activate the same way. Neither needs a script. A reader without the scope, or a console without [ferroterm.sync], has no Synchronisation entry and its address is not found.

Deleting a value set

A value set stored on this server offers Delete this value set last under More, for a token that opens delete on value sets (user/ValueSet.d, SMART App Launch scopes). It asks first, then sends the server a FHIR DELETE (https://hl7.org/fhir/R4B/http.html#delete), and the value set listing says it is gone. Its revisions stay in the server’s history.

About these screenshots

Each image is a capture of a running console over a running server, taken by a browser driven through WebDriver, over the synthetic fixture in e2e/fixtures/codesystems. The repository distributes no SNOMED CT content and no derived edition data, so no licensed release is ever the subject of one.

The browser battery’s script refreshes them when asked, and then runs only the capture:

$ scripts/ui-e2e.sh --docs-shots

--review DIR captures every screen at desktop and phone width in both themes, with the hover, focus and open states, into DIR for a visual review of a change. With --pseudo-locale as well, the review draws every screen in en-XA, a pseudo-locale written from the English catalog with every message 40 percent longer, accented and bracketed, so the capture shows where a screen has no room for a longer translation. The console’s words come from one catalog per language, so a language joins as one catalog file. Without either flag the battery changes no file in the checkout, which is why an ordinary run on a pull request never rewrites an image here.

Hardware sizing

FerroTERM is built to run an edition on ordinary hardware. This page says where the memory goes and how to size a machine; the measurements themselves (build time and peak build memory per release, the index on disk, the server’s resident memory, the latency of every operation) are on the benchmarks page, rendered from the committed records so no figure on this site is typed by hand. Your numbers vary with the edition and the machine; the shape below holds.

What the records show

The resident figure is what the server has read in and holds. The index is read at startup, not paged in as requests arrive, so the figure is at its full size by the time /health answers 200; the records carry the resident memory at that point and again after the warm requests, and the two are close. Size the machine for that figure. The build is the expensive step: it holds a whole release in memory while it computes the transitive closure, so peak build memory is several times the size of the finished index and is the figure to size a build machine by. That peak lands in the write phase, where the rows the read pass produced, the rows the store builder holds for its one write transaction, and the word dictionary under construction are alive together. The build also reads and writes on every core, so size a build machine for cores as well as memory. The design target for point reads is under 1 ms measured over HTTP on the same machine; a millisecond-scale figure in a record is tracked as a performance issue, not called done.

Where the memory goes

Every structure a served edition holds reports what its own allocations hold, and ferroterm-residency --report prints those counts beside the process footprint, so the accounting adds up from the structures rather than being inferred from a total. Run it over an artifact to see where that artifact’s memory goes; the benchmarks page reports the serving process from the committed records. For a SNOMED CT edition the structures are these:

StructureOn diskRead by
Concept records, a dense column by ordinalstore.concepts.col$expand, $lookup
Preferred displays, a dense column by ordinalstore.displays.col$lookup, $expand
Properties, a dense column by ordinalstore.properties.col$lookup
Acceptability, a dense column by ordinalstore.acceptability.col$lookup, $validate-code
Transitive closure, both directions, roaring bitmapspart of hierarchy.bin$subsumes, $expand, ECL
CSR is-a adjacency, and the child adjacency transposed when the edition openspart of hierarchy.binhierarchy walks, nested $expand
fst word dictionary and roaring postingstext.bina filter search
Reference set member tables and membership bitmapsmembers.bin, refsets.bin?fhir_vs=refset, ECL ^
Attribute rows, and their inverted index derived when the edition opensattributes.binECL refinements
Alternate identifiersidentifiers.binECL alternate identifiers

The designation text is the one part of an edition that stays on disk: it is the largest thing an artifact holds and a point read through redb answers it in microseconds, so it is read per request rather than held. Everything else above is resident because a read reaches it: $lookup reads the displays and the properties, $expand reads the concepts and the closure, $subsumes is a membership test on the closure, ECL reads the attributes and the membership bitmaps, and a filter search reads the word dictionary. Nothing in the list is loaded and never touched.

The process holds more than the structures count. Each column is its own file, read once into the structure it is served from, so nothing of it arrives twice; the redb page cache is capped at 64 MiB and fills only with the designation rows a request reads, against a default of a gibibyte. What is left is the allocator’s slack, the binary, and the async runtime.

Both directions of the closure are stored on purpose: subsumption needs one direction, and a descendant set is returned directly from the other. Roaring compresses SNOMED-shaped sets heavily, which is why the closure of half a million concepts fits in hundreds of megabytes rather than the gigabytes a plain bitset would need.

Disk and CPU

Size the disk for the indexes you load; the benchmarks page gives each index’s size. The offline build is the CPU-heavy step, once per release, in ferroterm-build. Serving is a point read or a bitmap operation, so a modest CPU handles it: a 2 to 4 GB box with two cores serves an edition beside other services. A paged $expand is cut from the selection before any concept is read, so the concepts a page reads are the concepts it returns, not the whole selection; an unpaged expansion beyond 1,000 members is refused with too-costly. Finding the page still costs something on a large selection; the benchmarks page records a small and a large $expand per code system.

Verifying releases

Every FerroTERM release artifact carries a signed provenance attestation. Verify it before you run a binary or pull an image, so you know the artifact was built by the project’s own release workflow and not tampered with. The pipeline and its rationale are in docs/ci-cd.md.

What a release carries

For each target (x86_64 and aarch64, glibc and musl), the release holds:

FileWhat it is
ferroterm-<tag>-<target>.tar.gzferroterm, ferroterm-build and ferroterm-sync, built with cargo auditable so the dependency list is embedded in the binary
….tar.gz.sha256sumthe checksum
….tar.gz.sigstore.json and ….tar.gz.intoto.jsonlthe SLSA provenance, signed keyless through Sigstore by the release workflow’s identity
ferroterm-<tag>-<target>.cdx.json, ferroterm-build-<tag>-<target>.cdx.json and ferroterm-sync-<tag>-<target>.cdx.jsonCycloneDX SBOMs of the three binaries
….tar.gz.sbom.sigstore.json, ….tar.gz.build-sbom.sigstore.json and ….tar.gz.sync-sbom.sigstore.jsonthe SBOMs’ attestations
compose.yamlthe quickstart, pinned to the release’s image tag

The container images carry the same provenance and SBOM attestations per platform: ghcr.io/ferrohealth/ferroterm (the server), ghcr.io/ferrohealth/ferroterm-sync (the synchronisation service), both signed by release-image.yml, and ghcr.io/ferrohealth/ferroterm-console (the console), signed by release-console.yml. Verify the sync image the way the server image is verified below, with its name in the reference.

Verify the provenance

$ gh attestation verify ferroterm-v0.4.9-x86_64-unknown-linux-musl.tar.gz \
    -R FerroHEALTH/FerroTERM \
    --signer-workflow FerroHEALTH/FerroTERM/.github/workflows/release-build.yml
$ gh attestation verify oci://ghcr.io/ferrohealth/ferroterm:0.4.9 \
    -R FerroHEALTH/FerroTERM \
    --signer-workflow FerroHEALTH/FerroTERM/.github/workflows/release-image.yml

The --signer-workflow flag is the point of the check. It requires that the attestation was produced by that exact reusable workflow in this repository, so a signature from any other workflow or repository fails. FerroTERM builds its releases in reusable workflows to reach SLSA Build Level 3, where the signing identity is not reachable by user build steps.

Check the checksum

$ sha256sum -c ferroterm-v0.4.9-x86_64-unknown-linux-musl.tar.gz.sha256sum

Run both checks. The checksum tells you the bytes are intact, and the attestation tells you where the bytes came from.

Configuration

Audience: operators. This page is the reference of every key the server reads; Reloading and replacing content covers the reload, the index roots and the refused artifact.

The server reads one configuration tree at start, in four layers, each over the one before it:

  1. the defaults in the table below;
  2. a TOML file, named by --config <path> or by FERROTERM_CONFIG;
  3. environment variables, one per key: FERROTERM__<SECTION>__<KEY> sets [section] key (FERROTERM__SERVER__LISTEN sets [server] listen), and RUST_LOG sets telemetry.filter;
  4. --set key=value arguments (--set server.listen=0.0.0.0:8080).

A container sets the variables or mounts the file; a host does either in the service unit. The load is strict: an unknown key in the file, a FERROTERM__ variable that names no key, and a value of the wrong type each refuse the start, naming the key or the variable and the closest known name, never the value. Any other variable that starts with FERROTERM_ is left alone, so the console’s FERROTERM_CONSOLE__ and the synchronisation service’s FERROTERM_SYNC__ variables can share the server’s environment. A list key reads a TOML array from the file and a comma-separated list from a variable (FERROTERM__TERMINOLOGY__INDEX=/srv/a,/srv/b).

ferroterm config check reads the configuration the way the server would and prints every key with its value and where it came from (the default, the file, the variable that set it, or --set), with every secret shown as ***. ValueSet/$expand returns at most 1,000 members without count and asks for paging beyond that (too-costly); the limit is not configurable.

[server]
listen = "0.0.0.0:8080"

[admin]
listen = "127.0.0.1:8081"

[terminology]
index = ["/srv/ferroterm/snomed-nl", "/srv/ferroterm/loinc"]
code_systems = ["/srv/ferroterm/codesystems"]
resources = "/srv/ferroterm/resources.redb"

[fhir]
base_url = "https://tx.example.org"

[telemetry]
format = "json"

[usage_report]
state_dir = "/data/state"
deployment = "binary"

[auth.issuer.tx]
issuer = "https://auth.example.org/realms/tx"
audience = ["https://tx.example.org"]

The keys

Key (variable)MeaningDefault
terminology.index (FERROTERM__TERMINOLOGY__INDEX)The artifact directories to serve, one per code system version (a SNOMED CT edition, a LOINC release, an ICD-10 classification, an RxNorm release, or one of the three ICD-11 code systems; the manifest says which). Each holds the store.redb with its store.*.col column files, hierarchy.bin, text.bin, and manifest.json that ferroterm-build wrote. The server opens them read-only and refuses to start when one is missing, damaged, or duplicates another’s system version. A path that holds no manifest.json of its own is an index root: every child directory that holds one is an artifact, and the server lists the root again on every reload (see Index roots).none (the server starts with no code systems)
terminology.code_systems (FERROTERM__TERMINOLOGY__CODE_SYSTEMS)Directories of FHIR CodeSystem resources to serve: a FHIR package’s package/ directory (HL7 Terminology, for example) or a directory of CodeSystem JSON files. Files are read in the FHIR version the directory’s package.json declares, or as R4B when there is none. A resource with content = supplement is applied to the system it supplements and is read and searched as a CodeSystem of its own; the server refuses to start when that system is not loaded. ValueSet resources in the same directories are served by url and version for ValueSet/$expand and ValueSet/$validate-code (without a version, the greatest version answers).none
terminology.resources (FERROTERM__TERMINOLOGY__RESOURCES)The database file holding the CodeSystem, ValueSet, ConceptMap, NamingSystem and Provenance resources clients write through the REST API, and the closure tables $closure maintains. The server creates the file when it does not exist, serves every resource in it exactly as it serves one from terminology.code_systems, and loads them again after a restart. A deployment that names no file refuses every write with a 422 and declares no write interaction in its capability statement. With a file named, the server refuses to start until [auth] names an issuer or turns authentication off (see Authentication).none (the server persists nothing)
terminology.default_language (FERROTERM__TERMINOLOGY__DEFAULT_LANGUAGE)The BCP 47 language used for display when a request names none. A SNOMED CT dialect such as en-US or en-GB selects the language reference set ECL Appendix C names for it; a bare en takes the edition’s English reference sets in ascending SCTID order.en
terminology.ecl_scheme_aliasesThe ECL alternate identifier scheme aliases every SNOMED CT edition answers, each alias (LOINC in LOINC#14394-1) to the SCTID of its identifier scheme concept, compared without case: ecl_scheme_aliases = { LOINC = 30051010000102 }. An alias with no entry is refused as an unknown scheme. A table you set replaces the default. ECL 2.3 defines no alias table and names LOINC#54486-6 only as an example, so this table is FerroTERM’s own design; its one default entry is the LOINC Extension’s scheme 30051010000102 |LOINC code identifier|.{ LOINC = 30051010000102 }
server.listen (FERROTERM__SERVER__LISTEN)The socket address to bind, an IP address and a port; a host name is refused.127.0.0.1:8080 (the container image sets 0.0.0.0:8080)
[server] (FERROTERM__SERVER__<KEY>)The request timeout, the body limit, the drain, the overload bound, the trusted proxies, compression and TLS of both listeners (see The HTTP server).see The HTTP server
admin.listen (FERROTERM__ADMIN__LISTEN)The socket address of the admin listener, which serves POST /reload and nothing else (see Reloading the served set). Every route on it requires the admin scope (see Authentication), and the server refuses to start with it until [auth] names an issuer or turns authentication off. Unset or empty, the server binds no second listener and SIGHUP is the only reload trigger.none (no admin listener)
fhir.base_url (FERROTERM__FHIR__BASE_URL)The URL clients reach this server at, without a version prefix (https://tx.example.org); a trailing slash is dropped. Each version states it as implementation.url in its capability statements, so a client behind a reverse proxy learns the address it should use rather than the socket the process bound. Setting it also adds every served version’s base under this URL to the audiences the write routes accept, beside each issuer’s audience (see Behind a reverse proxy). A deployment that names none states no URL.none
fhir.security_services (FERROTERM__FHIR__SECURITY_SERVICES)The authentication in front of the server, as codes of the FHIR restful-security-service value set (OAuth, SMART-on-FHIR, Basic, Certificates, Kerberos, NTLM). The codes declare what a proxy enforces, in CapabilityStatement.rest.security.service; with an [auth] issuer, SMART-on-FHIR is added to whatever you declare here. Any other code refuses the start.none
[auth] (FERROTERM__AUTH__<KEY>)Who may write and reach the admin listener (see Authentication). Every issuer is an [auth.issuer.<name>] table, beside [[auth.basic.users]] and the [basic_grants] they are granted; a key of [auth] itself can be a variable, such as FERROTERM__AUTH__ENABLED or FERROTERM__AUTH__PRODUCT_SCOPE, and so can a key of a named issuer, such as FERROTERM__AUTH__ISSUER__TX__AUDIENCE.see Authentication
[basic_grants]The scopes and roles each Basic user of [[auth.basic.users]] is granted, one [basic_grants.<user>] table per user-id (see Authentication). A grant naming a user [[auth.basic.users]] does not list refuses the start.none (no Basic user reaches anything)
usage_report.enabled (FERROTERM__USAGE_REPORT__ENABLED)Whether the server sends the usage report to FerroPULSE, true or false. true cannot override CI detection: with GITHUB_ACTIONS or CI set to true or 1, the report is off.true
usage_report.endpoint (FERROTERM__USAGE_REPORT__ENDPOINT)The collector the usage report is posted to: an https URL without credentials, or plain http to a loopback host. The server refuses to start on anything else.https://report.ferropulse.eu/v1/report
usage_report.state_dir (FERROTERM__USAGE_REPORT__STATE_DIR)A writable directory where the server keeps its own state: the usage report’s instance id and the time of its last start report. Without one, or with one the server cannot write, the usage report is off.none (the compose file sets /data/state, on a named volume; the container image sets none)
usage_report.deployment (FERROTERM__USAGE_REPORT__DEPLOYMENT)How the server was deployed, as the usage report states it: helm, compose, binary, or unknown. The compose file sets compose.unknown
telemetry.format (FERROTERM__TELEMETRY__FORMAT)auto, json, or pretty. json writes one object per line (timestamp, level, message, and the fields) for a log pipeline; pretty writes aligned human lines with colour; auto picks pretty when stdout is a terminal and json otherwise. The startup banner prints only with pretty.auto
telemetry.filter (FERROTERM__TELEMETRY__FILTER, or RUST_LOG)The tracing filter. RUST_LOG wins over the file and over FERROTERM__TELEMETRY__FILTER.info,hyper=warn,tower=warn,h2=warn
telemetry.logged_query_parameters (FERROTERM__TELEMETRY__LOGGED_QUERY_PARAMETERS)Further query parameters whose values the request line carries in its query field, beside the system and code fields the server always logs (see Request identifiers). Name only parameters that hold no free text.none
telemetry.environment (FERROTERM__TELEMETRY__ENVIRONMENT)The deployment environment the exported spans and metrics name, such as production (deployment.environment.name).none
[telemetry.otlp] (FERROTERM__TELEMETRY__OTLP__<KEY>)The OpenTelemetry collector the spans and metrics are pushed to (see Telemetry).none (nothing is exported)

The HTTP server

The FHIR listener and the admin listener run the HTTP stack every FerroHEALTH server runs. Each request gets the server’s request id and one line of the request log, and the stack answers these refusals itself, under a FHIR base as an OperationOutcome:

  • a request still running after request_timeout is answered 408 (timeout);
  • a body larger than body_limit is answered 413 (too-long);
  • past max_concurrent_requests, a request waits up to admission_wait for a slot in a queue of at most max_waiting_requests places, and a full queue or an expired wait is answered 503 (throttled) with Retry-After; the health routes are never refused or queued;
  • a handler that fails unexpectedly is answered 500 (exception) with the request id, and the log line names the id and nothing of the failure.

On SIGTERM or SIGINT, readiness turns 503 at once, both listeners keep accepting for drain_delay so a load balancer stops sending requests, then close, and the requests in flight get shutdown_timeout to finish. A connection still open then is dropped, and the server exits.

[server]
listen = "0.0.0.0:8080"
request_timeout = "30s"
body_limit = "1MiB"
drain_delay = "5s"
shutdown_timeout = "10s"
max_concurrent_requests = 512
trusted_proxies = ["10.0.0.0/8"]

[server.tls]
certificate_file = "/etc/ferroterm/tls/server.pem"
key_file = "/etc/ferroterm/tls/server.key"
KeyMeaningDefault
listenThe socket address of the FHIR listener.127.0.0.1:8080
base_pathA path every route of both listeners is served under, such as /terminology: empty, or / followed by segments with no trailing /. The FHIR bases become /terminology/r4 and the others, and the health probe follows.empty
request_timeoutHow long one request may take before it is answered 408."30s"
header_read_timeoutHow long a client may take to send a request head, counted from the head’s first byte; a client that has not sent the whole head by then is disconnected."30s"
idle_timeoutHow long a kept-alive HTTP/1.1 connection may wait for its next request, counted from accept or from its last response; past it the server closes the connection cleanly."2min"
body_limitThe largest request body read before the request is answered 413."1MiB"
drain_delayHow long readiness stays withdrawn on SIGTERM before the listeners close."0s"
shutdown_timeoutHow long the requests in flight may take once the listeners closed. Keep drain_delay plus this below the grace period of the container runtime, so the server exits before it is killed."10s"
max_concurrent_requestsHow many requests are served at once, at least 1; past it a request waits for a slot and is answered 503 once the queue is full or its wait expires. The bound is always on: set the ceiling your deployment holds.256
admission_waitHow long a request past the bound waits for a slot, counted in its latency; "0s" refuses it at once."100ms"
max_waiting_requestsHow many requests past the bound wait at once, first come first served; 0 keeps no queue.256
request_decompressionWhether a request body sent with Content-Encoding: gzip or br is decoded before a route reads it. On, body_limit holds the decoded bytes too, any other coding is answered 415, and a body that does not decode 400.false
retry_afterHow long a 503 past the bound tells the client to wait (Retry-After), in whole seconds."1s"
trusted_proxiesThe reverse proxies, each an address or a CIDR block, whose forwarded client address the request log believes. Empty, every request is named by the connection’s peer.none
forwarded_headerThe header a trusted proxy names the client in: forwarded (RFC 7239) or x-forwarded-for.forwarded
compressionWhether a response is compressed with gzip or Brotli when the client accepts one.true
compression_min_sizeThe smallest response body that is compressed."1KiB"
[server.tls]TLS on both listeners (see below). Unset, they speak plain HTTP behind a proxy that terminates TLS.none

A span of time is a whole number and a UCUM unit with no space: ms, s, min, h or d, as in "30s" or "10min". An amount of data is a whole number and an IEC binary unit: B, KiB, MiB or GiB. A bare number is refused, and so are m (the metre in UCUM, so write min) and a decimal unit such as MB.

[server.caller_rate] is refused: FerroTERM applies no per-caller rate limit. Bound the server with max_concurrent_requests, or limit callers at the reverse proxy.

The [server.tls] table:

KeyMeaningDefault
certificate_fileThe certificate chain in PEM, the leaf first.required
key_fileThe private key of the leaf in PEM.required
min_versionThe oldest TLS version spoken, "1.3" or "1.2"."1.3"
client_authWhether a client certificate is asked: none, optional or required.none
client_ca_fileThe CA bundle a client certificate must chain to; required unless client_auth is none, and refused when client_auth is none, the default, so a deployment that sets a CA asks for client certificates.none
reload_intervalHow often the files are read again, a span of time. SIGHUP always reads them again.none
healthcheck_identity_fileThe client certificate chain and key, in one PEM, that ferroterm healthcheck presents to a listener that asks one.none

ferroterm healthcheck asks GET /health/readiness over the same TLS and accepts only the certificate certificate_file holds.

Both listeners, and every outbound client FerroTERM builds, offer the hybrid key exchange X25519MLKEM768 (RFC 10024) first in TLS 1.3, then X25519, P-256 and P-384 for a peer that lacks it, so a session recorded today stays closed to a quantum computer later. Nothing is configured for it. The post-quantum inventory lists every cryptographic use and which ones are post-quantum safe.

Telemetry

The console log, the request log and the /metrics scrape need no configuration. A [telemetry.otlp] table also exports the server’s spans and metrics to an OpenTelemetry collector over OTLP/gRPC:

[telemetry]
environment = "production"

[telemetry.otlp]
endpoint = "https://collector.example.org:4317"
traces = true
metrics = true
sample_ratio = 0.1

[telemetry.otlp.tls]
trust_roots_file = "/etc/ferroterm/collector-ca.pem"
KeyMeaningDefault
endpointThe collector’s OTLP/gRPC endpoint; https:// speaks TLS. It may carry a credential, so config check shows it masked.none
tracesWhether the spans are exported.true
metricsWhether the metrics are pushed.true
sample_ratioThe share of the traces that are sampled, from 0 to 1.1
[telemetry.otlp.tls]The TLS to an https:// collector, the outbound TLS table below. TLS material beside an endpoint that is not https:// refuses the start.none

telemetry.otlp.trust_roots_file and telemetry.otlp.client_identity_file are refused, naming telemetry.otlp.tls.trust_roots_file and telemetry.otlp.tls.client_identity_file.

Every outbound TLS table ([telemetry.otlp.tls], [auth.tls], the tls table of a client credentials grant, and the console’s [oidc.tls]) takes the same keys:

KeyMeaningDefault
trust_roots_fileA PEM file of trust roots the peer’s certificate may chain to, beside the platform’s. A chain to one of them connects only once a revocation check (CRL or OCSP) has cleared it, and the check fails closed when no source answers. FerroTERM keeps the endpoints of the table cleared from the start, and again every 4 minutes, for as long as the client lives.none
trust_roots_without_revocation_fileA PEM file of trust roots for a private PKI that publishes no revocation service. A chain to one of them is trusted with no revocation check, and the start and each connection log that.none
client_identity_fileA PEM file holding a client certificate chain and its key, for mutual TLS.none
client_identityThe same PEM inline, held as a secret; one of the two at most.none
min_versionThe oldest TLS version spoken, "1.3" or "1.2"."1.3"

A chain to a root neither file names goes to the platform’s verifier.

The synchronisation service and the console read the same [telemetry] section from their own files.

Authentication

The server is a SMART App Launch resource server (https://hl7.org/fhir/smart-app-launch/conformance.html) over the FerroHEALTH crate ferrohealth-smart: it checks credentials and never issues one. The read surface stays open. The write routes (POST, PUT and DELETE on CodeSystem, ValueSet, ConceptMap, NamingSystem and Provenance, and POST [base]/$closure) and every route of the admin listener require a credential.

Authentication is on by default and fails closed: a server that names terminology.resources or admin.listen refuses to start until [auth] names an issuer in an [auth.issuer.<name>] table, or says enabled = false. A read-only server with neither starts without [auth].

Each issuer is a table of its own, named by the operator, with its issuer identifier and its audience. An issuer is a SMART App Launch 2.2 authorization server, FerroSMART among them, whose access tokens the server reads from their standard claims; kind = "federation" marks another party’s issuer instead (see Running behind FerroSMART). The name is a lower-case letter followed by lower-case letters, digits and _, at most 64 characters, and every other key that names an issuer, such as described_issuer, uses it. A key of a named issuer can also be a variable, FERROTERM__AUTH__ISSUER__<NAME>__<KEY>; on a network only trusted callers reach, FERROTERM__AUTH__ENABLED=false turns authentication off instead.

[auth.issuer.tx]
issuer = "https://auth.example.org/realms/tx"
audience = ["https://tx.example.org"]

The keys of each [auth.issuer.<name>] table:

KeyMeaningDefault
issuerThe issuer identifier of the authorization server whose access tokens are accepted, an https URL (plain http on a loopback host only). The server reads its metadata (RFC 8414, with OpenID Connect Discovery as the fallback) and its key set before it binds, and refuses to start when either does not answer.none (required)
kindfederation for another party’s issuer, whose tokens name its professionals or its organisation and need an [auth.issuer.<name>.federation] table. Unset for a SMART authorization server, whose tokens are read from their standard claims: a token whose sub is its client_id is a backend service, and any other names a user by its fhirUser. Any other value refuses the start as an unknown variant.none (a SMART authorization server)
[auth.issuer.<name>.profile]Keys over the token checks: token_types (the typ values admitted, at+jwt and application/at+jwt by default, RFC 9068 §2.1), required_claims (the claims every token carries, the RFC 9068 §2.2 set and scope by default) and max_actor_chain (the RFC 8693 §4.1 act nesting admitted, 1). The authorization server’s registry decides which clients reach the server, through the audience it writes, so the table lists no client.none
audienceThe aud values a token may carry; one of them is required (RFC 9068 §4). The write routes also accept every served version’s base under fhir.base_url; the admin listener accepts this list alone, so an issuer that names none opens only the write routes.the served version bases under fhir.base_url; required without it
algorithmsThe signature algorithms accepted: RS256 to PS512, ES256, ES384, EdDSA, and ML-DSA-44, ML-DSA-65 and ML-DSA-87 (RFC 9964); an HMAC algorithm or none refuses the start. post_quantum_only holds the list to ML-DSA.RS256, RS384, PS256, PS384, ES256, ES384 (the three ML-DSA parameter sets under post_quantum_only)
clock_skewThe skew allowed on exp, nbf and iat, at most "5min"."60s"
jwks_max_ageHow long a key set is used before it is read again."10min"
jwks_refresh_intervalThe shortest time between two reads of the key set, so an unknown kid reads it at most once per interval."60s"
jwks_fileA key set file handed over out of band, read in place of the issuer’s jwks_uri.none
timeoutHow long one call to the authorization server may take."10s"
modeHow a bearer token is checked: jwt, as an RFC 9068 JWT against the issuer’s key set, or introspection, by posting it to the issuer’s introspection endpoint (RFC 7662), for an authorization server that issues tokens the server cannot read.jwt
[auth.issuer.<name>.introspection]The introspection check under mode = "introspection": endpoint (the issuer metadata’s introspection_endpoint when empty), cache_max_age (how long an active response is used, at most until its exp; "60s"), cache_capacity (10000), and exactly one of client (the client authentication of the call, with the keys of a client credentials grant: client_id, client_auth, client_secret or client_secret_file, private_key_file) and bearer (a client credentials grant whose token authorizes the call).none
role_claimsThe claims the issuer’s tokens carry roles in, each a dotted path. The server grants nothing by role, so the roles a token carries change no answer.roles, groups, entitlements

The keys of [auth] itself, in the configuration file or as FERROTERM__AUTH__<KEY>:

KeyMeaningDefault
enabledWhether the write routes and the admin listener authenticate their callers.true
product_scopeThe scope the admin listener requires, a string starting with __ or a full URI (SMART App Launch 2.2.0, Scopes and Launch Context, §Extensibility). Anything else refuses the start.__ferroterm.admin
[auth.tls]The outbound TLS table of every issuer’s discovery document and key set, for an issuer behind a private certificate authority: trust_roots_file adds roots to the platform’s, checked for revocation, and trust_roots_without_revocation_file adds roots of a PKI without a revocation service. A file that cannot be read or holds no certificate refuses the start. An introspecting issuer’s calls use the tls table of its own client or bearer grant.none (the platform’s roots)
realmThe realm every challenge names.fhir.base_url, else FerroTERM
scopes_supportedThe scopes the discovery document lists. List only scopes the server honours: “the server SHALL support all scopes listed here”.none (the member is omitted)
capabilitiesSMART capabilities the discovery document adds to the ones it derives.none
described_issuerThe name of the [auth.issuer.<name>] table the discovery document and the capability statement describe, when the server trusts several. Unset, the server describes the one SMART issuer whose metadata it holds, and never a federation issuer. The described issuer gives the rule.none
[[auth.basic.users]]HTTP Basic users (RFC 7617), each a person: user and password_hash or password_hash_file (an Argon2id PHC string). The credential alone: what the user reaches is its [basic_grants] entry, and a scopes or roles key here refuses the start as an unknown key.none (no Basic)
post_quantum_onlyVerify access tokens and DPoP proofs with ML-DSA-44, ML-DSA-65 or ML-DSA-87 (RFC 9964) alone. Every JWT issuer’s algorithms and [auth.dpop] algorithms left at the default become 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. Set it once every issuer signs with ML-DSA.false
[auth.basic] cache_ttlHow long a Basic credential that verified is kept, so a repeat request skips the Argon2id key derivation. "0s" verifies every request."5min"

A Basic user’s scopes are granted in the top-level [basic_grants] table, one [basic_grants.<user>] table per user-id with scopes and roles. The scopes decide what the user reaches as a token’s scopes would. A grant naming a user [[auth.basic.users]] does not list refuses the start, and so does a grant of a system/ scope, naming the user: a Basic credential is a person’s.

The described issuer

The SMART discovery document and the capability statement describe one authorization server: a user launch starts at its authorization endpoint, and a backend client takes its tokens from its token endpoint (SMART App Launch 2.2.0, Conformance, Metadata, and Backend Services, Retrieve .well-known/smart-configuration). SMART does not say which of several trusted issuers that is, so ferrohealth-smart fixes one rule for the FerroHEALTH servers, and the order of the [auth.issuer.<name>] tables never decides:

  • With described_issuer, the server describes the issuer of that name once it holds its metadata; a name no table carries refuses the start.
  • Otherwise it describes the one SMART issuer whose metadata it holds. A federation issuer is another party’s and is never chosen unnamed. Several SMART issuers refuse the start, naming them and the key, and so does none: an issuer read from a jwks_file names no endpoints.

The document carries what the issuer’s metadata supports: the authorization endpoint and the launch capabilities when it runs one, and the token endpoint, private_key_jwt and the client credentials grant a backend client needs.

A machine caller, such as the synchronisation service, authenticates with an access token it obtained with the OAuth 2.0 client credentials grant (RFC 6749 §4.4), whose sub is its client_id (RFC 9068 §2.2); the server accepts no static token, and a Basic user is always a person. A configuration file with an issuer and a person on Basic:

[auth.issuer.tx]
issuer = "https://auth.example.org/realms/tx"
audience = ["https://tx.example.org"]

[[auth.basic.users]]
user = "terminologist"
password_hash_file = "/run/secrets/terminologist-password-hash"

[basic_grants.terminologist]
scopes = ["user/CodeSystem.cud", "__ferroterm.admin"]

An authorization server whose access tokens are opaque is read through its introspection endpoint instead. The server reads the issuer’s metadata at the start, takes the endpoint from it (or from endpoint), and refuses to start when the issuer names none. An active response must carry scope, client_id and exp (SMART App Launch 2.2.0, Token Introspection) and is held until its exp and at most cache_max_age; an inactive one answers 401, and an endpoint that cannot answer 503:

[auth.issuer.tx]
issuer = "https://auth.example.org/realms/tx"
audience = ["https://tx.example.org"]
mode = "introspection"

[auth.issuer.tx.introspection.client]
client_id = "ferroterm"
client_secret_file = "/run/secrets/introspection-secret"

A refused credential answers 401 with an OperationOutcome and a WWW-Authenticate challenge that names no claim and no scope, only the stable reason code of the refusal as error_description; a credential that grants no permission for the route answers 403 (RFC 6750 §3.1). The scopes each route requires are in Behind a reverse proxy.

What the server logs

At start: the banner (pretty only), one ferroterm starting line with the version, the served FHIR versions (fhir_versions), and the count of code systems, one serving code system line per loaded version (id, system, version, concepts, languages, path), one listening line with the address and the base path of every served version (bases), and one usage report ON or usage report OFF line (see Usage report). Per request: one request line with method, route, status, latency_ms, the server’s request_id, client_named, and the system, url, version, code, codeA and codeB query parameters the request named, as the fields system, url, version, code, code_a and code_b; bodies and free-text parameters are never logged. A client error logs at warn, a server error at error. On SIGTERM or SIGINT: the signal, then ferroterm stopped. A refused start is one cannot start line with the reason. A configuration the server refuses ends ferroterm serve and ferroterm config check with exit code 78 (EX_CONFIG, sysexits(3)), so an orchestrator tells a bad configuration from a failure to serve; ferroterm healthcheck writes not up with the reason and exits 1. On a reload: the served set was reloaded with the count of code systems, or the served set was not reloaded at error level with the reason.

The registry systems

Four systems ship with the server and are served without configuration: BCP 47 language tags (urn:ietf:bcp:47), BCP 13 media types (urn:ietf:bcp:13), UCUM units (http://unitsofmeasure.org), and ISO 3166-1 country codes (urn:iso:std:iso:3166). The first three are grammars over their registries and cannot be expanded; the fourth is a table from Unicode CLDR. Their data is vendored in the binary.

What a code system version is served as

Each loaded code system version becomes one CodeSystem instance. A resource that carries an id keeps it: the id is the logical id the resource is read by, so a client that knows it reads the resource there (id). The server mints an id only for a version that arrives without a resource, an index built from an RF2 release or a LOINC delivery, for example: the version URI when that URI carries the system (a SNOMED CT edition is snomed.info-sct-<module>-version-<YYYYMMDD>), otherwise the system URL and the version (terminology.hl7.org-CodeSystem-v2-0001-2.0.0), reduced to the FHIR id alphabet. The instance reads at [base]/r4b/CodeSystem/<id>, is found by [base]/r4b/CodeSystem?url=…&version=…, and takes an instance-level operation at [base]/r4b/CodeSystem/<id>/$validate-code. The id is stable for a given version and is listed at startup and in GET /r4b/metadata?mode=terminology.

A ValueSet or ConceptMap in a terminology.code_systems directory becomes an instance the same way: its own id when it has one, else one minted from its url and version. It reads at [base]/r4b/ValueSet/<id> or [base]/r4b/ConceptMap/<id>, is found by [base]/r4b/ValueSet?url=…&version=… or the matching ConceptMap search, and carries that id as its Resource.id in both answers, so a client can read what a search returned. Every served version answers both.

Two ids never compete. An id outside the FHIR id alphabet (at most 64 of A-Z, a-z, 0-9, -, and ., id) refuses the load, and so does a second loaded resource of the same type carrying an id the first one holds, or a loaded id a resource written through the REST API already answers on. The diagnostic names the canonicals involved; the server never renames a resource to make room. From the other side, a PUT or POST onto an id a loaded resource is read at is refused with 409 Conflict, so a client cannot shadow what the deployment serves.

What you do not configure

You do not configure a database connection, a search cluster, or a JVM heap. FerroTERM has none of these: it needs no PostgreSQL or other database server. What it keeps on disk is the built indexes, read at start, and, when you name terminology.resources, one embedded redb file for the resources clients write and the $closure tables. The inputs the server needs are the built indexes and any FHIR resource directories, and you build the indexes offline with ferroterm-build as described in Loading code systems.

ferroterm

Audience: operators. Every command and option of the ferroterm server, as ferroterm <command> --help prints it. With no command it serves. Configuration describes the configuration every command reads.

ferroterm

The `ferroterm` command line.

Serving is the default so the image's exec-form entrypoint keeps working with no arguments; a subcommand is something the container runs beside it.

Usage: ferroterm [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 (see a summary with '-h')

  -V, --version
          Print version

ferroterm serve

Serves until the process is asked to stop

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

ferroterm config

Works on the configuration

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

ferroterm config check

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

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

ferroterm healthcheck

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

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

ferroterm-build

Audience: operators. Every option of the offline build, as ferroterm-build --help prints it. Loading code systems shows the build of each source.

ferroterm-build

Builds the served artifacts of a code system from its release, offline

Usage: ferroterm-build [OPTIONS]

Options:
      --rf2 <DIR_OR_ZIP>
          The SNOMED CT RF2 release: the directory holding `Snapshot/`, or the release zip

      --rf2-refset <DIR_OR_ZIP>
          A refset-only RF2 package layered onto the edition `--rf2` names (repeatable)

      --rf2-unpublished
          Names the `--rf2` edition as unpublished, under `http://snomed.info/xsct/` (the HL7 terminology ecosystem's test subontology is imported so)

      --loinc <DIR_OR_ZIP>
          The LOINC release: the unpacked `Loinc_<version>` directory, or the release zip

      --loinc-version <VERSION>
          The LOINC version to record when the release does not say (`2.82`)

      --claml <XML_OR_ZIP>
          A `ClaML` classification (WHO ICD-10, a national ICD-10, ICPC-2): the XML file, or a zip holding it

      --system <URI>
          The code system URI the `ClaML` classification is served as (`http://hl7.org/fhir/sid/icd-10`)

      --claml-version <VERSION>
          The version to record when the `ClaML` title does not say (`2021`)

      --icd10cm <DIR_OR_ZIP>
          The ICD-10-CM release: the directories or zips holding the tabular XML and the order file (repeatable)

      --rxnorm <DIR_OR_ZIP>
          The `RxNorm` release: the unpacked directory holding `rrf/`, or the release zip (the full release or the Current Prescribable Content)

      --rxnorm-version <MMDDYYYY>
          The release date to record when the release does not say (`09082026`)

      --icd11 <DIR>
          The ICD-11 cache directory: the entity JSON a local ICD-API deployment served, per code system and language; built into `<out>/mms`, `<out>/icf`, `<out>/entity`

      --icd11-api <URL>
          A local ICD-API deployment (`http://127.0.0.1:80`) to fill the cache from before building

      --icd11-release <RELEASE>
          The ICD-11 release to fetch and record (`2026-01`); the deployment's latest when absent

      --icd11-languages <LANG>
          The languages to fetch (`en,fr`); English when absent

      --atc <FILE>
          The WHO ATC/DDD index as a CSV export (`ATC code`, `ATC level name`, `DDD`, `U`, `Adm.R`, `Note`), or the G-Standaard file `BST801T`

      --atc-version <YEAR>
          The ATC index year to record (`2026`); required, the files carry none

      --dhd <DIR_OR_ZIP>
          A DHD Diagnosethesaurus or Verrichtingenthesaurus delivery: the zip, or the unpacked directory of CSV tables

      --dhd-version <VERSION>
          The thesaurus version to record when the delivery name does not carry it (`2.27`)

      --gstandaard <DIR>
          A G-Standaard release directory (the `BSTnnnT` files); builds the GPK, PRK, HPK, and article systems under `<out>/{gpk,prk,hpk,artikel}`

      --gstandaard-version <RELEASE>
          The G-Standaard release to record (`202609`); required, the files carry none

      --labcodeset <FILE_DIR_OR_ZIP>
          A Nederlandse Labcodeset publication: the release zip, or the `labconcepts-*.xml` document or its directory; writes FHIR resources under `<out>/labcodeset`

      --fhir-package <TGZ>
          An operator-supplied FHIR NPM package (`.tgz`), such as the MyHealth@EU Master Value Sets Catalogue; writes its manifest and its `CodeSystem`, `ValueSet` and `ConceptMap` resources under `<out>/<name>-<version>`

      --fhir-package-sha256 <HEX>
          The sha256 the operator pinned for `--fhir-package`; a package whose digest differs is refused

      --rxnorm-sources <SAB>
          The `RxNorm` sources (`SAB`) whose names are kept beside the unrestricted `RXNORM` and `MTHSPL` (a full release under a UMLS licence)

      --npu <CSV>
          The IFCC NPU code file (`npu-codes-latest.csv`)

      --npu-version <RELEASE>
          The NPU release to record (`2026-11`); required, the file carries none

      --icdo <FILE>
          An ICD-O-3 table: the topography or the morphology table, as the workbook or its delimited export (repeatable)

      --icdo-version <VERSION>
          The ICD-O-3 revision to record (`3.2`); required, the tables carry none

      --emdn <XLSX>
          The European Commission's EMDN workbook (`EMDN v<year>_EN.xlsx`)

      --emdn-version <YEAR>
          The EMDN release to record when the sheet does not name it (`2026`)

      --isco <XLSX>
          The ILO ISCO-08 structure workbook (`ISCO-08 EN Structure and definitions.xlsx`)

      --isco-version <VERSION>
          The ISCO version to record; `2008` when absent

      --orpha <XML>
          An Orphadata nomenclature file (`en_product1.xml`); the first gives the display language, each further language file adds designations (repeatable)

      --orpha-version <VERSION>
          The Orphanet release to record; the date the first file carries when absent

      --dicom <OWL_OR_ZIP>
          NEMA's DICOM Controlled Terminology as OWL (`dcm.owl` or `dcm.owl.zip`)

      --dicom-version <EDITION>
          The DICOM edition to record; the ontology's `owl:versionInfo` when absent

      --edqm <JSON>
          A saved EDQM Standard Terms API response (`full_data_by_class`, JSON) (repeatable)

      --edqm-version <VERSION>
          The EDQM release to record; the newest modification date when absent

      --spor <FILE>
          A saved EMA SPOR API response: RMS terms of one list (v1 XML), OMS organisations (v1 JSON), or SMS substances or PMS products (v2 FHIR `Bundle`) (repeatable, one kind per build)

      --spor-version <VERSION>
          The SPOR release to record; the newest modification date when absent

      --udi <FILE>
          A UDI-DI table of one issuing entity: the `AccessGUDID` `device.txt`, or an EUDAMED or issuing-entity export as a delimited file or workbook

      --udi-issuer <ISSUER>
          The issuing entity of the UDI-DIs (`gs1`, `hibcc`, `iccbba-blood`, `iccbba-other`, `ifa`)

      --udi-version <RELEASE>
          The UDI release to record (`20261102`); required, the table carries none

      --gps <TXT>
          The SNOMED CT Global Patient Set freeset (the tab-separated `.txt`); writes a value set over the loaded edition under `<out>/gps`

      --gps-version <RELEASE>
          The GPS release to record (`20260101`); the date in the file name when absent

      --out <DIR>
          The directory to write the artifacts into; a child of `--index-root` named for the source when absent

      --index-root <DIR>
          The index root the server reads: without `--out` the build writes under it, and an `--out` outside it is refused
          
          [env: FERROTERM_INDEX_ROOT]

  -h, --help
          Print help

  -V, --version
          Print version

ferroterm-sync

Audience: operators. Every command and option of the synchronisation service, as ferroterm-sync <command> --help prints it. Syncing from a national terminology service describes its configuration.

ferroterm-sync

The FerroTERM synchronisation service

Usage: ferroterm-sync [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
  run-once     Performs one run and exits
  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

ferroterm-sync serve

Serves until the process is asked to stop

Usage: ferroterm-sync 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

ferroterm-sync config

Works on the configuration

Usage: ferroterm-sync 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

ferroterm-sync config check

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

Usage: ferroterm-sync 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

ferroterm-sync healthcheck

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

Usage: ferroterm-sync 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

ferroterm-sync run-once

Performs one run and exits

Usage: ferroterm-sync run-once [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

FHIR versions

FerroTERM answers FHIR R4 under /r4, R4B under /r4b, R5 under /r5, and the R6 ballot (6.0.0-snapshot1) under /r6, marked ballot-tracking.

Why one server can serve four versions

HL7 publishes the whole type system and every operation as machine-readable resources, in versioned packages. The FerroBRIDGE repository pins those packages and generates the fhir-types crate from them, one module per version, and FerroTERM takes the crate from crates.io, so each version’s operation surface is correct by construction. An operation parameter that R5 adds appears in the R5 module and is absent from R4 and R4B, because the generator emits what each package declares. The engine beneath is version-neutral; a version’s endpoint maps the engine’s answers into that version’s shapes. R4 and R4B declare the same terminology parameters and elements, so one set of macros instantiates both endpoints from their own generated modules and they cannot drift apart.

Version status

VersionPackageStatus
R4hl7.fhir.r4.core 4.0.1served under /r4
R4Bhl7.fhir.r4b.core 4.3.0served under /r4b
R5hl7.fhir.r5.core 5.0.0served under /r5
R6hl7.fhir.r6.core 6.0.0-snapshot1served under /r6, marked ballot-tracking

R4B is the current stable release of the R4 line and a near-superset of R4; both endpoints serve the same engine, and a $cache-control cache started on one serves the other. The R5 shapes matter most to validators and IG tooling ($validate-code issues and the validated code, system, and version; $lookup definition; $expand property), and /r5 emits them; the R4 and R4B endpoints emit only what their own definitions declare.

What this means for you

Send R4 requests to /r4, R4B requests to /r4b, R5 requests to /r5, and R6 ballot requests to /r6. GET {base}/$versions names the version of the base (4.0, 4.3, 5.0, or 6.0), GET {base}/metadata is that version’s CapabilityStatement, and a parameter the version does not declare is refused with an OperationOutcome rather than absorbed.

The /r6 endpoint answers in the ballot’s shapes. Its capability statement says which ballot it serves and that every behaviour grounded only in the ballot is re-verified against the published specification when it appears. A ballot parameter the server does not implement yet (manifest, filterProperty) is refused as not-supported, never absorbed.

FerroTERM’s FHIR extensions

Audience: integrators who read metadata. FerroTERM defines three extensions for facts no FHIR element records; each section names the element an extension sits on, its canonical, and its StructureDefinition.

Which artifact a code system came from

metadata?mode=terminology names the artifact behind each served version, so a client can tell which built index answered without asking the operator. No FHIR specification records that fact, so FerroTERM defines an extension for it, the form FHIR provides for information outside a resource’s basic definition (https://hl7.org/fhir/R4B/extensibility.html). It sits on TerminologyCapabilities.codeSystem.version, which is where the fact belongs: one artifact holds one version, and two SNOMED CT editions share one codeSystem entry. Every served FHIR version carries it, because R4, R4B, R5, and the R6 ballot all define that element as a BackboneElement.

The canonical is https://ferroterm.eu/fhir/StructureDefinition/terminology-artifact, with two string sub-extensions:

  • name: the artifact directory’s own name, without the directories above it.
  • release: the release identifier the offline build wrote into the artifact’s manifest. For SNOMED CT this is the release date, for the others the release version.
{
  "url": "https://ferroterm.eu/fhir/StructureDefinition/terminology-artifact",
  "extension": [
    { "url": "name", "valueString": "int" },
    { "url": "release", "valueString": "20260901" }
  ]
}

The definition is the StructureDefinition at https://ferroterm.eu/fhir/StructureDefinition/terminology-artifact, and the JSON is terminology-artifact.json.

A version that came from no artifact carries no extension: the registries the binary holds (UCUM, BCP 13, BCP 47, ISO 3166) and any CodeSystem resource a deployment loaded or persisted. Nothing about the operator’s filesystem and nothing from the code system’s content reaches the wire here.

Which implicit value sets a code system resolves

metadata?mode=terminology also lists, per served version, the implicit value set forms that version resolves. No element of TerminologyCapabilities says which implicit value sets a server answers (https://hl7.org/fhir/R5/terminologycapabilities.html), so FerroTERM defines a second extension on TerminologyCapabilities.codeSystem.version, repeated once per form, on R4, R4B, R5, and R6.

The canonical is https://ferroterm.eu/fhir/StructureDefinition/implicit-value-set, with two sub-extensions:

  • pattern (valueString): the value set URL template, spelled as the code system’s page spells it, with each placeholder in square brackets.
  • argument (valueCode): what the placeholders take. none means the pattern is the URL as it stands, code means the one placeholder takes a code of the system, and expression means the placeholders take free text such as an ECL expression or a UCUM unit.
{
  "url": "https://ferroterm.eu/fhir/StructureDefinition/implicit-value-set",
  "extension": [
    { "url": "pattern", "valueString": "http://snomed.info/sct?fhir_vs=isa/[sctid]" },
    { "url": "argument", "valueCode": "code" }
  ]
}

The definition is the StructureDefinition at https://ferroterm.eu/fhir/StructureDefinition/implicit-value-set, and the JSON is implicit-value-set.json.

The forms declared:

SystemPatterns
SNOMED CT?fhir_vs, ?fhir_vs=isa/[sctid], ?fhir_vs=refset, ?fhir_vs=refset/[sctid], ?fhir_vs=ecl/[ecl] on http://snomed.info/sct
LOINChttp://loinc.org/vs, /vs/[id] (an answer list), /vs/[partcode]
RxNormhttp://www.nlm.nih.gov/research/umls/rxnorm/vs
UCUMhttp://unitsofmeasure.org/vs, /vs/[expression]
ICD-11[entity]/postcoordinationScale/[axis], on a linearization

A version that resolves no implicit value set carries no such extension: the ClaML classifications, BCP 13, BCP 47, ISO 3166, and every CodeSystem resource. A supplemented system declares the forms of the system it supplements. A declared form can still answer an error for one argument, for example ?fhir_vs=refset on an edition that defines no reference sets.

Which levels an operation answers at

A CapabilityStatement records that a server answers an operation and never at which level; OperationDefinition.system, .type and .instance carry that (https://hl7.org/fhir/R4B/operationdefinition-definitions.html#OperationDefinition.instance). metadata states the levels the version’s own definition declares as an extension on CapabilityStatement.rest.resource.operation, repeated once per level, on R4, R4B, R5 and R6. The canonical is https://ferroterm.eu/fhir/StructureDefinition/operation-level, with a valueCode of system, type or instance:

{
  "name": "validate-code",
  "definition": "http://hl7.org/fhir/OperationDefinition/CodeSystem-validate-code",
  "extension": [
    { "url": "https://ferroterm.eu/fhir/StructureDefinition/operation-level", "valueCode": "type" },
    { "url": "https://ferroterm.eu/fhir/StructureDefinition/operation-level", "valueCode": "instance" }
  ]
}

The definition is the StructureDefinition at https://ferroterm.eu/fhir/StructureDefinition/operation-level, and the JSON is operation-level.json.

Code systems served

One table of every code system FerroTERM serves: the canonical URI each is served under, the versions and editions handled, how you bring its content, and its licence position. This page is the single source; the README and the landing page carry the same names, and a check in CI fails when a row here is missing from either. The design notes per system (identity rules, filters, properties, implicit value sets, with their citations) are in docs/terminologies.md in the repository.

Code systemCanonical URIVersions and editionsHow you load itLicence
SNOMED CThttp://snomed.info/sctAny RF2 edition; the version is the edition URI (http://snomed.info/sct/[module]/version/[date])ferroterm-build --rf2 <release zip or dir> into FERROTERM__TERMINOLOGY__INDEXLicensed by SNOMED International; free in member countries through the national release centre
LOINChttp://loinc.orgAny release (2.82 style), with its linguistic variantsferroterm-build --loinc <Loinc_x.yy.zip or dir>Free under the LOINC licence
UCUMhttp://unitsofmeasure.orgThe ucum-essence.xml grammar vendored in the binaryNothing to loadFree (UCUM licence)
BCP 47urn:ietf:bcp:47The IANA Language Subtag Registry vendored in the binaryNothing to loadOpen (IETF)
BCP 13urn:ietf:bcp:13The RFC 6838 grammar and the IANA media type registry, vendoredNothing to loadOpen (IETF)
ISO 3166-1urn:iso:std:iso:3166The country codes from Unicode CLDR, vendoredNothing to loadOpen (CLDR)
ICD-10 (WHO)http://hl7.org/fhir/sid/icd-10Any ClaML release (2019 style)ferroterm-build --claml <xml or zip> --system http://hl7.org/fhir/sid/icd-10Licensed by WHO; national translations by their publishers
ICD-10-NLhttp://hl7.org/fhir/sid/icd-10-nlThe Dutch ClaML release (WHO-FIC NL)ferroterm-build --claml <xml or zip> --system http://hl7.org/fhir/sid/icd-10-nlLicensed by WHO-FIC NL
ICD-10-CMhttp://hl7.org/fhir/sid/icd-10-cmAny CMS fiscal-year release (tabular and order files)ferroterm-build --icd10cm <dir or zip>Public domain (US)
ICD-11 MMShttp://id.who.int/icd/release/11/mmsAny WHO release (2026-01 style), in the languages fetchedferroterm-build --icd11 <cache> --icd11-api <local ICD-API>CC BY-ND 3.0 IGO
ICD-11 ICFhttp://id.who.int/icd/release/11/icfThe same WHO releaseThe same --icd11 buildCC BY-ND 3.0 IGO
ICD-11 Foundationhttp://id.who.int/icd/entityThe same WHO releaseThe same --icd11 buildCC BY-ND 3.0 IGO
ICF (standalone)http://hl7.org/fhir/sid/icfThe 2001a and 2017a releases, with the qualifier grammar (s7300.183)The release’s CodeSystem in FERROTERM__TERMINOLOGY__CODE_SYSTEMSLicensed by WHO; you supply the release
ATC/DDDhttp://www.whocc.no/atcAny annual index (2026 style)ferroterm-build --atc <index.csv or BST801T> --atc-version <year>Purchased from the WHO Collaborating Centre
ICPC-2http://hl7.org/fhir/sid/icpc-2Any ClaML releaseferroterm-build --claml <xml or zip> --system http://hl7.org/fhir/sid/icpc-2Licensed by WONCA
RxNormhttp://www.nlm.nih.gov/research/umls/rxnormAny monthly release, or the licence-free prescribable subsetferroterm-build --rxnorm <RRF zip or dir>UMLS licence for the full release; the prescribable subset is free
DHD Diagnosethesaurus and Verrichtingenthesaurusurn:oid:2.16.840.1.213883.2.4.3.120.5.1Any Uitleverformaat 5.0 delivery, with its SNOMED CT and ICD-10 concept mapsferroterm-build --dhd <delivery zip or dir>Licensed by DHD
G-Standaardurn:oid:2.16.840.1.213883.2.4.4.1 (GPK), .10 (PRK), .7 (HPK), .8 (article)Any monthly releaseferroterm-build --gstandaard <dir> --gstandaard-version <release>Z-Index subscription
Nederlandse Labcodesethttps://ferroterm.eu/fhir/ValueSet/nl-labcodeset and the LOINC supplement https://ferroterm.eu/fhir/CodeSystem/nl-labcodeset-loincAny Nictiz publication, as a value set and supplement over LOINC, SNOMED CT, and UCUMferroterm-build --labcodeset <zip, document, or dir> into FERROTERM__TERMINOLOGY__CODE_SYSTEMSLicensed by Nictiz
NHG ICPC-1 to SNOMED CT maphttp://terminologie.nictiz.nl/ns/ConceptMap/icpc1nl-snomed (source http://hl7.org/fhir/sid/icpc-1-nl)Any Nictiz release of the FHIR ConceptMapA directory with the ConceptMap and a package.json, in FERROTERM__TERMINOLOGY__CODE_SYSTEMSLicensed by the NHG
NPUhttp://npu-terminology.orgAny IFCC code file; you name the releaseferroterm-build --npu <npu-codes-latest.csv> --npu-version <release>Published by the IFCC and the Danish Health Data Authority; you download the release
ICD-O-3http://terminology.hl7.org/CodeSystem/icd-o-3Any WHO revision (3.2 style), topography and morphologyferroterm-build --icdo <topography> --icdo <morphology> --icdo-version <revision>Licensed by WHO; you supply the tables
EMDNhttps://smt.esante.gouv.fr/terminologie-emdnAny yearly Commission release (2026 style)ferroterm-build --emdn <EMDN workbook>Free from the European Commission; you download the release
ISCO-08urn:oid:2.16.840.1.113883.2.9.6.2.7The ILO structure workbookferroterm-build --isco <ISCO-08 workbook>Published by the ILO; you download the release
ORPHAcodeshttps://www.orpha.netAny Orphadata nomenclature release, in the languages you loadferroterm-build --orpha <lang>_product1.xmlPublished by Orphanet (Orphadata); you download the release
DICOM Controlled Terminology (DCM)http://dicom.nema.org/resources/ontology/DCMAny edition (2026e style); the PS3.16 context groups as NEMA’s FHIR value setsferroterm-build --dicom <dcm.owl.zip>, the context groups in FERROTERM__TERMINOLOGY__CODE_SYSTEMSCopyright NEMA; you download the release
EDQM Standard Termshttp://standardterms.edqm.euAny download from the Standard Terms APIferroterm-build --edqm <API response JSON>Under the EDQM terms of use; you download the data
EMA SPORhttps://spor.ema.europa.eu/v1/lists/<list id> (RMS), https://spor.ema.europa.eu/v1/organisations (OMS), https://spor.ema.europa.eu/v2/SubstanceDefinition (SMS), http://ema.europa.eu/fhir/MPID (PMS)Any download from the SPOR API, one list or kind per buildferroterm-build --spor <API response>Under the EMA’s SPOR terms; you download the data
SNOMED CT Global Patient Sethttps://ferroterm.eu/fhir/ValueSet/snomed-gps over http://snomed.info/sctAny GPS freeset release, over the edition you loadferroterm-build --gps <freeset .txt> into FERROTERM__TERMINOLOGY__CODE_SYSTEMSCC BY-ND 4.0 from SNOMED International; you download the release
UDI device identifiershttp://hl7.org/fhir/NamingSystem/gs1-di, …/hibcc-diI, …/iccbba-blood-di, …/iccbba-other-di, …/ifa-gmbh-diAny export you make, one issuing entity per buildferroterm-build --udi <device table> --udi-issuer <issuer> --udi-version <date>Under the terms of the database you export from; you supply the records
EHDS identifier typeshttps://ferroterm.eu/fhir/ValueSet/ehds-identifier-type and https://ferroterm.eu/fhir/CodeSystem/ehds-identifier-typeThe Annex X binding of the EEHRxF act, built inNothing to load; HL7 Terminology completes the expansionFerroTERM’s own
FHIR CodeSystem, ValueSet, and ConceptMap resourcesEach resource’s own urlHL7 Terminology and any FHIR package or directory of JSON, supplements includedFERROTERM__TERMINOLOGY__CODE_SYSTEMSPer resource; HL7 Terminology is CC0

Every system reaches the operations through one provider seam, so nothing in an operation is a special case for one system. The repository ships no code system content, licensed or open: you bring the release you are licensed for, and the build tool turns it into an index. The loading page shows each build, and the EEHRxF page the systems the European exchange format binds.

Health, metrics, and request identifiers

FerroTERM answers the FerroHEALTH health routes under /health, a Prometheus scrape at GET /metrics, and names every request with an X-Request-Id. None of these is a FHIR interaction: the routes live off the FHIR base path, so a probe or a scrape is never mistaken for a terminology request.

Health

The server, the synchronisation service and the console answer the same three routes, the ones every FerroHEALTH product serves:

RouteAnswers
GET /health/liveness200 with {"state":"up"} while the process runs. It checks nothing.
GET /health/readiness200 while the process is ready and 503 otherwise, with the readiness document: state (up, degraded or down), phase (booting, serving or draining) and indicators, each named with its state and never its detail.
GET /healthThe status of /health/readiness with {"state":…} alone.

The server binds its listener only after every index and CodeSystem directory it was configured with is open, and refuses to start on a missing or damaged one, so a ready answer means the deployment serves what it was told to serve. On SIGTERM or SIGINT the process moves to draining: /health and /health/readiness answer 503 at once, the listeners keep accepting for server.drain_delay so a load balancer stops sending new requests, and the requests in flight then get server.shutdown_timeout to finish before the server exits (see The HTTP server). /health/liveness keeps answering 200 throughout. The admin listener answers the same three routes.

The container image has no shell and no HTTP client, so the probe is a subcommand of the binary:

$ ferroterm healthcheck

It sends one GET /health/readiness to server.listen, on the loopback when the server listens on every interface, under server.base_path, and over the TLS [server.tls] configures, accepting only the certificate the server’s own file holds. It waits at most three seconds and exits 0 with no output on 200. Otherwise it exits 1 with the reason on stderr: unhealthy: readiness answered 503, unhealthy: cannot connect to …, or unhealthy: readiness did not answer in time. The image declares it as its HEALTHCHECK (every ten seconds, a five-second limit, a sixty-second start period for reading an edition), and the shipped compose.yaml states the same block, so docker compose up --wait and condition: service_healthy work. Kubernetes ignores the image’s instruction: point its liveness probe at GET /health/liveness and its readiness probe at GET /health/readiness.

Scraping

curl -s http://127.0.0.1:8080/metrics

The exposition is the Prometheus text format, served as text/plain. The request histogram follows the OpenTelemetry HTTP semantic conventions, the metric every FerroHEALTH product exports, and the two product metrics carry the ferroterm prefix:

MetricTypeLabelsWhat it says
http_server_request_duration_secondshistogramhttp_request_method, http_route, http_response_status_code, network_protocol_version, url_scheme, and error_type on a 5xxhow long each request took; its _count is the requests answered
ferroterm_code_system_loadedgaugesystem, versionone per code system version loaded
ferroterm_reloads_totalcounteroutcome (ok, failed)the reloads of the served set

http_route is the matched route, /r4b/CodeSystem/$lookup, never the URI, so the series count stays bounded no matter how many codes clients ask about. A method outside the HTTP standard set is counted as _OTHER. The duration buckets are the ones the semantic conventions advise, from 5 milliseconds to 10 seconds.

With a [telemetry.otlp] table the same metrics are also pushed to an OpenTelemetry collector over OTLP/gRPC, beside the server’s spans (see Configuration).

ferroterm_code_system_loaded describes the set the server answers from now: a reload that drops a version drops its series, and one that adds a version adds one. Both outcome series of ferroterm_reloads_total start at zero, so increase(ferroterm_reloads_total{outcome="failed"}[1h]) > 0 is an alert you can write before the first reload happens. A failed reload means the server is still answering from the old set and the content on disk did not open; the the served set was not reloaded log line carries the reason.

A scrape configuration is one job:

scrape_configs:
  - job_name: ferroterm
    static_configs:
      - targets: ["ferroterm:8080"]

The endpoint carries no code system content and no request bodies, so it is safe to expose to a monitoring network. It is not authenticated: keep it on an internal listener or behind the same reverse proxy rules as the rest of the server (see Configuration).

Request identifiers

Every response carries X-Request-Id, and every request’s log line carries the server’s own id, a UUID it makes for that request. A client that sends the header gets its own value back, so a trace started at the caller stays one trace, but its value never reaches the log: it is free text that may name a patient. An id that is empty, longer than 128 characters, or not printable ASCII is not echoed, and the response carries the server’s id instead.

The log line says whether the client sent an id of its own:

{"timestamp":"2026-09-05T09:21:04.113Z","level":"INFO","message":"request",
 "method":"GET","route":"/r4b/CodeSystem/$lookup","status":200,
 "latency_ms":0.42,"request_id":"0f0f6c1e-9d0e-4a5f-8c1a-1f6b0f1f6b0f",
 "client_named":false,"system":"http://snomed.info/sct","code":"73211009"}

So a client that reports a slow or refused call gives you the time and the route, and the response’s X-Request-Id when it sent none of its own, and the log line, the status, and the latency follow from it. Bodies are never logged. Of the query, the line carries only the system, url, version, code, codeA and codeB parameters a request stated, as the fields system, url, version, code, code_a and code_b, each cut at 64 characters.

Problem types

FerroTERM answers every error outside its FHIR bases as problem details, the JSON document of RFC 9457, with the media type application/problem+json. That covers the server’s admin listener (POST /reload), a path of the FHIR listener that names no FHIR base, the sync service’s admin listener, and the refusals the HTTP stack writes itself on those routes: a request past its timeout (408), a body over the limit (413), a server at its request limit (429 or 503) and a handler that failed (500). Under /r4, /r4b, /r5 and /r6 every error stays the FHIR OperationOutcome the FHIR specification prescribes.

A problem looks like this:

{
  "type": "https://ferroterm.eu/docs/operate/problems.html#not-permitted",
  "title": "The credential does not permit this request",
  "status": 403,
  "detail": "the credential carries no scope that permits this request"
}
  • type names the problem type. Each FerroTERM 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 Not Found.
  • title is the type’s summary, the same for every occurrence.
  • status is the HTTP status of the answer.
  • detail says what happened, in a fixed sentence; a failed reload says why the served set could not be rebuilt.
  • instance, on a refusal of the stack and a failed handler, is the request id as a urn:uuid: URI, the id the request log names.

A problem never quotes the request: no token, credential, query value or path segment you sent appears in it, and it carries no stack trace and no secret, 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 of the admin listeners carries Cache-Control: no-store.

The types

TypeStatusWhen
unauthenticated401The request carries no valid credential.
not-permitted403The credential does not permit the route.
authorization-unavailable503The credential could not be checked.
reload-failed500The server could not rebuild its served set.
run-not-found404The sync service holds no such run.
records-unreadable500The sync service could not read its run records.

unauthenticated

The request carries no valid credential: no Authorization header, a token the issuer did not sign or that has expired, or a Basic user and password that do not match. Title: “The request carries no valid credential”. The answer carries the WWW-Authenticate challenge of the listener. Send the request again with a valid access token or Basic credential.

not-permitted

The credential is valid and carries no scope that permits the route. Title: “The credential does not permit this request”. The server’s admin listener asks for the scope [auth] product_scope names (__ferroterm.admin by default), the sync service’s for its own (__ferroterm.sync by default).

authorization-unavailable

The credential could not be checked, because the issuer’s keys or its introspection endpoint could not be reached. Title: “The credential could not be checked”. Nothing about the request was decided; send it again once the issuer answers.

reload-failed

POST /reload could not rebuild the served set from the artifacts the server is configured with. Title: “The served set could not be rebuilt; the previous one still answers”. The detail says what failed, such as an artifact that does not open. The previous set keeps answering every FHIR request, so fix the artifact and reload again.

run-not-found

GET /runs/{id} names a run the sync service has no record of, or an id that is no run id. Title: “The sync service holds no such run”. GET /runs lists the runs it holds.

records-unreadable

The sync service could not read its run records from its records directory. Title: “The sync service could not read its run records”. The service log names the file and the reason; check the directory’s permissions and free space.

Usage report

Every FerroTERM server sends a small JSON report to FerroPULSE, a collector that Cadasto B.V. runs. It goes out at each process start and once a day. It says that the server is alive, which version it runs, which families of code systems it serves, and how fast it answers, in coarse aggregates. The report is on by default. Every boot logs one INFO line that says whether it is on and how to switch it off.

This page lists every field the report carries, says when it is sent, gives the switch, and carries the privacy notice for the data the collector stores. No FHIR or SNOMED CT specification governs any of it; the report is FerroTERM’s own design.

When a report is sent

There are two kinds of report, and both are one HTTPS POST to https://report.ferropulse.eu/v1/report with a JSON body of at most 64 KiB.

  • start: at each process start, once the server has loaded its code systems. A server sends at most one start report per ten minutes: the time of the last one is kept in the state directory. A container in a restart loop sends one start report per ten minutes, not one per restart.
  • daily: the first attempt 10 minutes after boot, then about every 24 hours (23.5 to 24.5 hours after the previous one, spread at random). It covers the requests since the previous daily report of the same process, or since boot.

The report needs a state directory, FERROTERM__USAGE_REPORT__STATE_DIR, where the server keeps the instance id. Without one, or with one it cannot write, the server sends nothing: without a stable id each restart would count as a new installation. The compose file is the one deployment that turns it on: it mounts the named volume ferroterm-state at /data/state and sets FERROTERM__USAGE_REPORT__STATE_DIR=/data/state. The container image sets no state directory, so a plain docker run or a Kubernetes pod sends nothing until you mount a writable volume and set FERROTERM__USAGE_REPORT__STATE_DIR to it:

docker run -v ferroterm-state:/data/state -e FERROTERM__USAGE_REPORT__STATE_DIR=/data/state \
  ghcr.io/ferrohealth/ferroterm:<version>

The image owns /data/state by its runtime user (uid 65532), so a named volume mounted there is writable. A bind mount needs a host directory that uid 65532 can write.

The boot line, with the report on, reads:

usage report ON: instance id, version, licence type, deployment, uptime, host size, loaded code system families and coarse operation latency, at each start and once a day; no clinical content, identifiers, URLs or request paths. Off: FERROTERM__USAGE_REPORT__ENABLED=false. Details: https://ferroterm.eu/docs/operate/usage-report.html

It carries the configured endpoint as the structured field endpoint. With the report off, the line says why, for example:

usage report OFF: switched off (FERROTERM__USAGE_REPORT__ENABLED=false); nothing is sent. Details: https://ferroterm.eu/docs/operate/usage-report.html
usage report OFF: CI detected (GITHUB_ACTIONS); nothing is sent. Details: https://ferroterm.eu/docs/operate/usage-report.html
usage report OFF: no state directory (FERROTERM__USAGE_REPORT__STATE_DIR is unset), and without a stable instance id each restart would count as a new installation; nothing is sent. On: mount a writable volume and set FERROTERM__USAGE_REPORT__STATE_DIR to it. Details: https://ferroterm.eu/docs/operate/usage-report.html

What a report contains

Every report carries these fields:

FieldSent inWhat it is
schemabothAlways 2, the version of the report format.
eventbothstart or daily.
first_startstarttrue when this start created the instance id, which marks a new installation; false on every later start.
productbothAlways ferroterm.
instance_idbothA random UUID (version 4), created at the first start and stored in <FERROTERM__USAGE_REPORT__STATE_DIR>/instance-id. It is not derived from the host or anything else about the deployment.
versionbothThe server version, for example 0.1.8.
git_shabothThe commit the binary was built from, 7 to 40 hex digits. A build that recorded no commit, such as a local cargo build, sends 0000000.
licencebothThe licence grant type, non-commercial (what the Business Source License grants everyone).
deploymentbothHow the server was deployed: helm, compose, binary or unknown. It comes from FERROTERM__USAGE_REPORT__DEPLOYMENT, which the compose file sets to compose.
uptime_sbothSeconds since this process started.
cpu_bucketbothThe CPUs available to the process, as a range: 1-2, 3-4, 5-8, 9-16 or 17+.
memory_bucketbothThe memory available to the process in GiB, the smaller of the host’s memory and the container limit, as a range: <4, 4-8, 8-16, 16-32 or 32+. Off Linux the server cannot read it and sends <4.
statusbothThe state facts below.
metricsdailyThe performance aggregates below.

The status object:

MemberWhat it is
index_okWhether at least one code system the deployment loaded is serving.
code_systemsThe families of the loaded code systems, sorted: dhd, fhir, gstandaard, icd10, icd10cm, icd11, labcodeset, loinc, other, rxnorm, snomed. fhir is a CodeSystem resource from FERROTERM__TERMINOLOGY__CODE_SYSTEMS that no other family names, and other is an artifact none names. Never an edition, a module id, a version or a URL.
persistenceWhether a resources database (FERROTERM__TERMINOLOGY__RESOURCES) is configured.

A start report, formatted here for reading (the server sends it on one line):

{
  "schema": 2,
  "event": "start",
  "first_start": true,
  "product": "ferroterm",
  "instance_id": "5f0c6b2e-3d4a-4c8b-9e1f-2a3b4c5d6e7f",
  "version": "0.1.8",
  "git_sha": "1a2b3c4d",
  "licence": "non-commercial",
  "deployment": "compose",
  "uptime_s": 0,
  "cpu_bucket": "3-4",
  "memory_bucket": "8-16",
  "status": {
    "index_ok": true,
    "code_systems": ["loinc", "snomed"],
    "persistence": false
  }
}

The daily metrics

The daily report adds one object that covers the window since the previous daily report:

"metrics": {
  "window_24h": {
    "requests_bucket": "1k-10k",
    "groups": {
      "lookup": {
        "p50_ms": 1.2, "p95_ms": 4.0, "p99_ms": 9.5,
        "errors_5xx": 0,
        "histogram": [1200, 800, 300, 90, 20, 6, 2, 1, 0, 0, 0]
      }
    },
    "counters": { "fhir_r4": 120, "fhir_r4b": 2300, "fhir_r6": 3, "responses_4xx": 14 }
  }
}
  • requests_bucket: the number of requests under a FHIR base (/r4, /r4b, /r5, /r6) in the window, as a range: 0, 1-100, 100-1k, 1k-10k, 10k-100k or 100k+. Each range includes its lower bound and excludes its upper one, so 1-100 means 1 to 99. /health, /metrics, /ui and the admin listener are not counted.
  • groups: one entry per group of requests that saw at least one in the window. A request is placed in a group by the route template it matched, never by the path or the parameters the client sent: lookup, validate_code, expand, subsumes, translate and closure for the operations, metadata, read (a resource, its history, or a version), search, write (create, update, delete), and other for everything else, a request under a FHIR base that no route matched included.
  • p50_ms, p95_ms, p99_ms: the median, 95th and 99th percentile latency of the group in milliseconds, estimated from its histogram.
  • errors_5xx: the responses with a 5xx status.
  • histogram: 11 request counts, one per latency bucket. The bucket upper bounds in milliseconds are 5, 10, 25, 50, 100, 250, 500, 1000, 2500, 5000, and no bound for the last.
  • counters: the requests per served FHIR version (fhir_r4, fhir_r4b, fhir_r5, fhir_r6) and the 4xx answers to them (responses_4xx). A counter that counted nothing in the window is left out.

What a report never contains

A report carries no code, no display or other text from a request, no system, value set or concept map URL, no edition, module id or version of a code system, no request path or parameter, no error message, no user name, no client IP address, no host name and no customer or staff name. The report types in the server have no field that could hold any of these, and the collector refuses a report with a value that is not a boolean, a number or a short lower-case token.

The collector does record the IP address the report arrives from. See What the collector stores.

Switch it off

FERROTERM__USAGE_REPORT__ENABLED=false

The compose file forwards this variable from your shell, so FERROTERM__USAGE_REPORT__ENABLED=false docker compose up switches the report off there too. In a CI job the report is off by itself: when GITHUB_ACTIONS or CI is true or 1, the server sends nothing, and FERROTERM__USAGE_REPORT__ENABLED=true does not change that. A container does not inherit the runner’s environment, so a test lane that starts the image passes --env FERROTERM__USAGE_REPORT__ENABLED=false.

With the report off, the server sends nothing to FerroPULSE and writes nothing to the state directory for the report, and the boot line says usage report OFF. Nothing else in the server changes. Switching it off stops new reports only. Reports already stored at the collector stay until the retention period ends, unless you ask for them to be erased.

Network

  • Destination: outbound HTTPS to report.ferropulse.eu, port 443. FERROTERM__USAGE_REPORT__ENDPOINT moves it; the server refuses to start on an endpoint that is plain HTTP (except to a loopback host) or that carries credentials.
  • One direction only: the server reads the status code of the answer and nothing else. It does not follow redirects, and nothing the collector answers changes the server’s configuration or behaviour.
  • Failures stay local: a send gives up after 5 seconds without a connection or 10 seconds in total. A failure is logged once at DEBUG. Boot, /health and request handling never wait on the report, so a slow or unreachable collector affects none of them. A daily report that does not reach the collector is tried again an hour later with the same window; one the collector answered, even with a refusal, is not resent.

Privacy notice

This section gives the information that Articles 13 and 14 of the GDPR list, for the personal data a report and its stored record can contain. A report names no person. It can still relate to one: the collector stores the address each report comes from, and a server run by one person on their own internet connection can be linked to that person through the address or through the instance id. Where that is so, the report is personal data, and this notice applies to it.

Controller

Cadasto B.V., the Netherlands. Write to info@cadasto.com or use https://www.cadasto.com/contact/. Cadasto has not appointed a data protection officer.

Purposes and lawful basis

Cadasto processes the reports for three purposes:

  • to know which FerroTERM versions run in the field, so it can tell how many installations a security release concerns and whether they upgrade;
  • to know which families of code systems the installations serve;
  • to see how the operations perform in real use, so it can find and fix slow paths.

The lawful basis is Art. 6(1)(f) GDPR, legitimate interest. The interest is Cadasto’s, as the maker of FerroTERM: keeping the product it publishes secure and maintained, which needs the versions in use and the reach of each security release, and improving it, which needs the code system mix and field performance. The data come from the FerroTERM server itself. You are not obliged to send them: the report can be switched off, and switching it off changes nothing else in FerroTERM.

What the collector stores

  • Every report as it arrives, with the fields listed above.
  • With each report: the time of receipt, the UTC day, the source IP address (IPv4 or IPv6), and the country derived from that address.
  • Per instance id: when it was last seen, its current version, and whether it is alive.
  • Per day: latency totals summed across the whole fleet, without instance ids.

The country comes from an IP-to-country database bundled with the collector, so no address leaves the collector host for the lookup. IP geolocation by DB-IP, licensed CC BY 4.0. Reports from the address ranges of GitHub-hosted CI runners are marked as such and left out of every dashboard.

Recipients and location

Hetzner Online GmbH (Gunzenhausen, Germany) hosts the collector in its cloud and processes the reports as Cadasto’s processor, under a data processing agreement Cadasto has signed (Art. 28 GDPR). The collector runs in Hetzner’s data centre in Falkenstein, Germany. The FerroPULSE dashboard that shows the reports sits behind a GitHub login with no public or anonymous access; only members of the FerroHEALTH organisation can sign in.

Retention

A daily job deletes reports and start reports 13 months after they were received, an instance record 13 months after the instance was last seen, and the fleet-wide daily totals 13 months after their day. Backups of the collector’s database are kept for 14 days, so a deleted report can remain in a backup for at most 14 days more.

Your right to object

Important

You have the right to object at any time, on grounds relating to your particular situation, to the processing of reports that are personal data concerning you (Art. 21(1) GDPR).

To stop future reports, switch the report off as described in Switch it off. No request to anyone is needed.

To have the reports already stored erased, write to info@cadasto.com with the instance id, which the server keeps in <FERROTERM__USAGE_REPORT__STATE_DIR>/instance-id. Under the compose file it sits on the ferroterm-state volume: docker run --rm -v <project>_ferroterm-state:/s busybox cat /s/instance-id prints it. Cadasto then deletes every report, start report and instance record stored for that instance id, source addresses included (Art. 17(1)(c) GDPR). Switch the report off first, or the next report starts a new record.

The fleet-wide daily totals hold no instance ids, so an erased instance’s share in days already summed stays in those totals.

Your other rights

At the same address you can ask for access to the reports stored for your instance id (Art. 15), for their rectification (Art. 16) or erasure (Art. 17), or for restriction of their processing (Art. 18). You have the right to lodge a complaint with a supervisory authority, in particular in the Member State of your habitual residence, place of work or place of the alleged infringement (Art. 77).

Operators in Switzerland

Under the Swiss Federal Act on Data Protection (DSG Art. 19 Abs. 4), these are the states your report’s data are disclosed to: Germany, where the Hetzner data centre in Falkenstein runs the collector, and the Netherlands, where Cadasto B.V. is established. Both are listed in Annex 1 of the Swiss Data Protection Ordinance (DSV) as states whose legislation provides adequate protection (DSG Art. 16 Abs. 1).

What stable means

Stable is a promise about specific surfaces, so this page says which ones carry it and which do not. A surface that carries the promise changes inside a release line (0.4.x) only in ways your deployment survives; a surface that does not may change in any release.

The version is 0.x, and a release line is its minor version: 0.4.0, 0.4.1 and every other 0.4.x are one line, and 0.5.0 starts the next. Only the newest release is supported (SECURITY.md).

What carries the promise

The HTTP terminology API for R4, R4B, and R5. The operations ($lookup, $validate-code, $subsumes, $expand, $translate), the parameters each version’s OperationDefinition declares, the shape of the Parameters answer, and the OperationOutcome a refusal carries. A request that works against one release of a line works against every later release of that line. Where the specification and this server disagree, the specification wins and the change is a fix, which the conformance page records.

The URL layout. The version prefix (/r4, /r4b, /r5), the resource paths under it, /metadata and /metadata?mode=terminology, and /health.

The implicit value sets and concept maps of SNOMED CT. The ?fhir_vs forms and ?fhir_cm, as the SNOMED CT URI standard defines them.

Configuration. The keys of the configuration file and their FERROTERM__<SECTION>__<KEY> variables keep their names and meanings inside a line. New ones may appear; an existing one does not change what it does. A key removed or renamed in a new line refuses the start, naming the key, and the changelog names what replaces it.

The licence terms. BUSL 1.1 with the change date and change licence each release states. A released version’s terms never change after the fact.

What does not carry the promise

R6, which is ballot-tracking. /r6 answers in the shapes of hl7.fhir.r6.core 6.0.0-snapshot1. R6 is not published, so its shapes can change under us, and when the ballot moves this endpoint moves with it inside a line. Build against /r5 if you need the promise; FHIR versions has the detail.

The built artifact format. The layout the offline build writes carries a version, and a server refuses an artifact of another one rather than misread it. That refusal is deliberate: a wrong display is worse than a failure to start. Expect to rebuild your artifacts when you upgrade, and plan the upgrade as build then switch, not switch then build. The install page has the order.

The crates.io crates. rf2, concept-graph, concept-store, designation-index, sct-ecl, fhir-terminology, and the rest are published so other Rust projects can use them, on their own 0.x line that moves with every change to their contents. They are pre-1.0 and their APIs change. The server’s HTTP API is the stable surface; the crates are not it.

Performance figures. The benchmarks are records of what one machine measured, not a floor the project holds you to. The bars the project does claim live in bench/bars.json and CI fails when one is crossed.

Anything the conformance page marks as failing. A suite case that does not pass is a known gap with an issue, and fixing it changes behaviour. That is a fix, and the promise does not protect a wrong answer.

How a breaking change would arrive

Inside a line, a change to a promised surface happens only to follow the specification or to fix a wrong answer. It arrives with the issue that adjudicated it, the spec citation, and a note in the changelog saying what moved. A promised surface that has to change for any other reason starts the next line.

Licensing

FerroTERM is source-available under the Business Source License 1.1. The LICENSE file in the repository is the authority; this page states the same boundary in the order people ask about it, so you can answer “do I need a commercial licence?” without reading the parameters.

The code systems are a separate question, answered at the bottom of this page. The terms every FerroHEALTH product shares, the trademarks and the contribution terms among them, are in the family book’s licensing page.

Do you need a commercial licence?

What you are doingWhat you needWhy
Reading, building, modifying, or redistributing the sourceFreeThe licence grants this without a fee and without asking anyone; only production use is restricted.
Development, testing, evaluation, prototypingFreeNone of these is production use, which is the only thing the Additional Use Grant limits.
Personal useFreeNamed in the grant’s definition of Non-Commercial Purposes.
Academic or scientific research, or teachingFreeNamed in the grant’s definition of Non-Commercial Purposes.
Production use by a non-profit or public body that is not in the course of a business, does not deliver a service for payment, and is not for commercial advantageFreeThe grant’s definition of Non-Commercial Purposes, in the licence’s own words.
Treating patients, or delivering any other service for paymentCommercial licenceThe grant ends with “any other production use, including the delivery of health care or any other service for payment, requires a commercial license from the Licensor”.
Any production use by a vendor or integratorCommercial licenceA business’s production use is not a Non-Commercial Purpose, so the same closing sentence of the grant applies.
Offering FerroTERM, or a work derived from it, to third parties as a hosted, managed, or embedded terminology serviceCommercial licenceCarve-out (a) of the grant, which the licence defines as a service through which anyone other than you and your affiliates stores, manages, or queries terminology, code system content, or health data.
Selling, sublicensing, or otherwise distributing it for a fee, on its own or inside another productCommercial licenceCarve-out (b) of the grant.

The last two rows hold whatever else you are. Hosting FerroTERM for third parties, and distributing it for a fee, need a commercial licence in every case, including for an organisation the rows above would otherwise leave free.

What the licence says

Reading, building, modifying, and redistributing the source is free, without a fee and without asking anyone, and every non-production use is covered: development, testing, evaluation, and prototyping.

Production use is free for Non-Commercial Purposes, which the licence defines as personal use, academic or scientific research, teaching, and use by a non-profit organisation or public body that is not in the course of a business, does not deliver a service for payment, and is not for commercial advantage.

Any other production use needs a commercial licence from the Licensor, including the delivery of health care or any other service for payment.

There is no open-core tier. The engine, the server, and the tools are in one repository under one licence, and nothing is held back to be sold back to you.

When it becomes Apache 2.0

Each version becomes Apache License 2.0 four years after that version is published. The clock runs per version, so the four years start at the release you are looking at rather than at the project.

The crate that is Apache 2.0

rf2 (the SNOMED CT release file reader) is published to crates.io under Apache License 2.0 rather than the Business Source License, so any Rust project can depend on it without a licence conversation. Every other crate published from this repository carries the Business Source License and states so in its own README. The FHIR model FerroTERM builds on, fhir-types, is published under Apache 2.0 by the FerroBRIDGE repository.

Starting a commercial licence

A commercial licence is arranged with Cadasto B.V., the Licensor, which handles the business side of FerroTERM: write to info@cadasto.com or use https://www.cadasto.com/contact/. Technical questions go to the maintainer named in MAINTAINERS.md. Companies and care providers building on FerroTERM are wanted here, and the commercial licence is the normal path for them.

The code systems are licensed separately

The licence above covers the software. The content of each code system is licensed by its publisher: SNOMED CT by SNOMED International, LOINC by Regenstrief, ICD by the WHO, RxNorm by the NLM. The repository ships none of it, and a deployment brings the release it is licensed for. UCUM and the IANA and Unicode registries are vendored under their own licences, recorded beside the data.

How FerroTERM serves terminology

Audience: integrators and operators who want the model behind the how-to pages; decision makers who want to know which parts a specification governs and which are FerroTERM’s own design.

FerroTERM is a FHIR terminology server: a client asks it about codes, and it answers from the code systems, value sets and concept maps a deployment loaded. The FHIR specification defines what a client may ask and what the answer looks like; FerroTERM decides how the content is stored, loaded and kept current. This page explains the parts and how they relate, and names the specification that governs each part, or says that none does.

The parts at a glance

flowchart LR
    REL["A release you are licensed for<br/>RF2, LOINC, ClaML, RRF, ..."] --> BUILD["ferroterm-build<br/>once per release"]
    FEED["A national terminology service<br/>syndication feed"] --> SYNC["ferroterm-sync"]
    SYNC --> BUILD
    BUILD --> ART[("Artifacts<br/>one directory per release")]
    PKG["FHIR packages and JSON<br/>CodeSystem, ValueSet, ConceptMap"] --> DIR[("Resource directories")]
    SYNC --> DIR
    ART --> REG["The served set<br/>one provider per code system version"]
    DIR --> REG
    DB[("Resource database<br/>written through the REST API")] --> REG
    CLIENT["FHIR client"] -->|"/r4, /r4b, /r5, /r6"| OPS["The terminology operations"]
    OPS --> REG
    SYNC -.->|"POST /reload"| REG

Solid arrows carry terminology content. The dotted arrow is the one control call: the sync service asks the server to read its directories again.

The operations a client calls

The FHIR terminology service defines what a terminology server answers (FHIR R4, Terminology Service; FHIR R5, Terminology Service). FerroTERM answers five operations, each defined by an OperationDefinition of the FHIR version in play:

OperationThe question it answersDefinition (R4)
CodeSystem/$lookupWhat does this code mean: its display, designations and properties?codesystem-operation-lookup
CodeSystem/$validate-code, ValueSet/$validate-codeIs this code valid, is its display right, and is it in this value set?codesystem-operation-validate-code, valueset-operation-validate-code
ValueSet/$expandWhich codes does this value set contain?valueset-operation-expand
ConceptMap/$translateWhich codes of another system does this code map to?conceptmap-operation-translate
CodeSystem/$subsumesDoes one code subsume the other?codesystem-operation-subsumes

Each FHIR version has its own base: /r4, /r4b, /r5, and /r6 for the R6 ballot. A version’s base accepts the parameters that version’s OperationDefinition declares, plus the ones the HL7 terminology ecosystem requires of every server (tx ecosystem IG, Requirements), and refuses any other with an OperationOutcome. A parameter R5 adds is answered on /r5 and refused on /r4. The model behind each base is the generated fhir-types crate, one module per version, so a version’s surface follows its own package (FHIR versions).

FHIR R5 states how one server serves several versions: a server may give each version its own base, where “the same record has a different identity depending on the version of FHIR in use” (FHIR R5, Versioning). FerroTERM takes that strategy. One engine answers every base, and each base maps the engine’s answer into its own version’s shapes.

A failure is an OperationOutcome whose issue carries a code from the FHIR issue-type value set and, for a terminology failure, a coding from http://hl7.org/fhir/tools/CodeSystem/tx-issue-type, the issue types the tx ecosystem uses (tx ecosystem IG, Requirements). A code system the server does not hold is an answer of its own: a $validate-code against it is result = false with x-caused-by-unknown-system, so a validator can say which content is missing. The FHIR terminology API has every operation’s parameters and answers.

One engine, one provider per code system

The operations know nothing about any particular code system. They call a provider: a code system version answers a lookup, a status, a designation by language, its properties, its filters, its hierarchy when it has one, subsumption, and the implicit value sets it defines. The compose layer of a value set (includes, excludes, filters, paging, total) sits once above every provider.

flowchart TB
    OPS["$lookup, $validate-code, $expand, $translate, $subsumes"] --> COMP["Compose layer<br/>include, exclude, filter, page"]
    OPS --> SEAM["Code system provider"]
    COMP --> SEAM
    SEAM --> SCT["SNOMED CT<br/>ECL, expressions, implicit value sets and maps"]
    SEAM --> IDX["LOINC, ICD-10, ICD-11, RxNorm, ...<br/>one provider per loader"]
    SEAM --> RES["FHIR CodeSystem resources<br/>and their supplements"]
    SEAM --> BUILTIN["UCUM, BCP 47, BCP 13, ISO 3166-1<br/>carried in the binary"]

A provider declares what it answers in TerminologyCapabilities (GET [base]/metadata?mode=terminology): its filters, its properties, and the implicit value sets it resolves. The declarations differ by system, so a client reads them for the system it uses. Code system semantics live in the provider: the SNOMED CT URI forms and the Expression Constraint Language in the SNOMED CT provider (FHIR R4, Using SNOMED CT with FHIR), the LOINC answer lists in the LOINC provider. The provider seam is FerroTERM’s own design: no specification governs how a server divides its code.

How content is loaded

A deployment serves content from four sources, which differ in who writes them and how long they live.

SourceWritten byLivesConfigured as
Artifactsferroterm-build, from a releaseuntil you remove the directoryterminology.index
Resource directoriesyou, or the sync service: FHIR packages and JSON filesuntil you remove the fileterminology.code_systems
The resource databaseclients, through the REST APIacross restartsterminology.resources
Request-scoped resourcesthe client, in tx-resource parametersone request, or one $cache-control cachenothing

A large code system arrives as a release in its publisher’s own format: an RF2 archive for SNOMED CT, a zip for LOINC, a ClaML document for ICD-10. ferroterm-build reads it once and writes an artifact: a directory with a redb store, dense columns, the hierarchy as compressed sparse rows with its transitive closure in roaring bitmaps, a word index for text search, and a manifest.json that names the system and the version. The server reads the artifact at startup and never parses a release. A subsumption test is then a bitmap membership test, and an $expand of a subtree a bitmap returned directly. The artifact layout and the offline build are FerroTERM’s own design: no specification governs how a server stores a code system.

A code system that FHIR resources describe completely arrives as those resources. The server reads every CodeSystem, ValueSet, ConceptMap, NamingSystem and Provenance in a resource directory, in the FHIR version its package.json declares, and serves it at its own url and version. A CodeSystem with content = supplement adds to the system it supplements (FHIR R4, CodeSystem supplements). A system served from an artifact answers a read of its CodeSystem with its definition and content = not-present: the codes come from the operations, never from the resource (FHIR R4, CodeSystemContentMode).

A value set reaches $expand in five ways: loaded from a directory, persisted in the database, inline in the request, request-scoped in a tx-resource, or implied by a URL a code system defines, such as http://loinc.org/vs or the SNOMED CT ?fhir_vs forms. A request-scoped resource with the same url and version as a loaded one shadows it for that request. Without a version, a canonical resolves to the greatest version the server holds, and every answer names the version it used.

The served set is one immutable registry. A reload, on SIGHUP or POST /reload on the admin listener, opens every artifact and directory again, builds a new registry and swaps it in one step; a request in flight finishes on the set it started on. An artifact that does not open stops the start, and refuses a reload while the old set keeps answering, because an answer of “not found” for a code system that failed to load reads the same as “this code does not exist”. That rule is FerroTERM’s own design, and Configuration gives it in full.

How content stays current

A new release becomes a new artifact beside the old one. An index root is a directory whose children are artifacts, one per release; the server lists it on every reload, and both releases are served until you remove the older one. Because a canonical without a version resolves to the greatest version, publishing the new release is what promotes it.

sequenceDiagram
    participant F as Syndication feed
    participant S as ferroterm-sync
    participant B as ferroterm-build
    participant T as ferroterm
    S->>F: read the feed, compare with what is served
    F-->>S: the entries you subscribed to
    S->>B: build each RF2 archive into staging
    B-->>S: the artifact
    S->>S: rename it into the index root
    S->>T: POST /reload
    T-->>S: the new set answers, or the old one stays
    S->>T: $validate-code and $expand over your own value sets

ferroterm-sync automates that cycle from a national terminology service’s Atom feed: it takes the releases you subscribed to, builds them, renames them into the index root, asks the server to reload, and prunes the releases retention no longer keeps. It then revalidates your own value sets and concept maps through the public FHIR API and reports what the release changed for them, and changes nothing. The sync service runs beside the server and never inside it, so the server has no outbound connection of its own beyond the issuer it checks tokens with and the opt-out usage report. The feed is an Atom feed (RFC 4287) with the NCTS Atom Syndication Format extensions; the schedule, the activation and the retention are FerroTERM’s own design (Syncing from a national terminology service).

Conformance: the tx ecosystem test suite

The HL7 terminology ecosystem implementation guide publishes the test cases the FHIR Validator runs against a terminology server (tx ecosystem IG). CI runs the suite’s general mode against a release build on every pull request, once for /r4, /r4b and /r5, and compares the result with a committed pass list per version. A listed case that fails is a regression and fails the change; a case that starts passing joins the list in the change that makes it pass. The modes that need licensed content (SNOMED CT, LOINC, ICD-11) run by hand.

The specification is the oracle, and the suite is evidence of it. Where a case expects a parameter or an extension that no published OperationDefinition or package defines, FerroTERM answers what the published definitions say and records the difference as an upstream report. Reference servers such as tx.fhir.org settle only what the specifications leave silent. Passing the suite is not a certification: HL7 issues none for terminology servers. Conformance has the counts and every case that does not pass, with its reason.

Licensing: software and content apart

Two licences meet in a deployment, and they never mix.

  • The software is under the Business Source License 1.1: free for every non-production use and for non-commercial production use, a commercial licence for other production use, and Apache License 2.0 four years after each version (Licensing).
  • The content is licensed by its publisher: SNOMED CT by SNOMED International, LOINC by Regenstrief, ICD by the WHO, RxNorm by the NLM. FerroTERM ships none of it, in the repository or in any build. You load the release you are licensed for, and the build turns it into an artifact on your own machine.

The registry systems the binary carries (UCUM, BCP 47, BCP 13 and ISO 3166-1) are open registries, each kept under its own licence beside the data. The tests use shaped, synthetic content only, so the repository holds no licensed content either. Code systems served lists each system with its licence position.

What FerroTERM is

FerroTERM is a read-oriented FHIR terminology server for clinical code systems. It answers the HL7 FHIR terminology operations over the code systems you load, and every code system reaches the operations through the same provider seam, so LOINC, ICD-10, RxNorm, and the rest are loaders and providers, never special cases in an operation.

What it does

The server exposes the FHIR terminology API on R4 (/r4), R4B (/r4b), R5 (/r5) and the R6 ballot (/r6):

  • CodeSystem/$lookup: a concept’s display, designations by language, and properties.
  • CodeSystem/$subsumes: whether one concept subsumes another, from the transitive closure.
  • CodeSystem/$validate-code and ValueSet/$validate-code: whether a code is valid, whether its display is right (the correct one comes back when it is not), and, for a value set, whether the code is a member.
  • ValueSet/$expand: the members of a value set, paged, filtered by text, with version pins, over loaded, inline, and request-scoped value sets. A compose of one include over one system comes back as that system’s own tree, nested under contains.
  • ConceptMap/$translate: the targets a code maps to, from loaded or inline maps and from the SNOMED implicit concept maps (?fhir_cm=[sctid]).
  • $closure: a named transitive closure table the server keeps in step with the codes a client registers, answered as a ConceptMap delta.
  • POST [base] with a batch Bundle: every entry answered in the order it was sent, each one independent of the rest.
  • POST, PUT, GET, DELETE, _history reads, and search of CodeSystem, ValueSet, ConceptMap, NamingSystem and Provenance, with ETag and If-Match, where the deployment names a database in FERROTERM__TERMINOLOGY__RESOURCES. The closure tables live in the same database.
  • metadata and metadata?mode=terminology: what this deployment serves.

What it serves

Code systemWhat you provideWhat the provider answers
SNOMED CT, any editionthe RF2 release zipthe inferred hierarchy, preferred terms per language reference set, inactive concepts marked, the edition and version URI as version, the is-a and in filters
LOINCLoinc_x.yy.zipterms, parts, answer lists, and answers as codes; the FHIR LOINC properties and filters; /vs, /vs/[LL…], /vs/[LP…]
ICD-10 (WHO and national translations), ICPC-2a ClaML documentthe classified-with tree, modifiers expanded onto their leaves, inclusion and exclusion notes as properties
ICD-10-CMthe CMS tabular XML and order filecodes with the period, seventh-character codes under their stem, the valid flag
ICD-11 (MMS, ICF, the Foundation)a local deployment of the WHO ICD-APIentity ids as codes with the classification code as an alternative spelling, postcoordination expressions validated against the axes and answered in normal form, the scale value sets
RxNormthe RRF release or the prescribable subsetthe FHIR STY, SAB, TTY, REL, and RELA filters over typed edges, /vs
ATC/DDDthe WHO index as CSV, or the G-Standaard BST801T filethe five levels as a classified-with tree, DDDs as properties
DHD thesaurithe Uitleverformaat 5.0 delivery zipa flat table with the SNOMED CT, ICD-10, DBC, and ZA links as properties and as concept maps
G-Standaardthe monthly release directory (BSTnnnT files)the GPK, PRK, HPK, and article systems, the ladder as properties
FHIR CodeSystem, ValueSet, ConceptMapa FHIR package or a directory of JSONhierarchy, filters, properties, and supplements as the resources declare them
UCUM, BCP 47, BCP 13, ISO 3166-1nothinggrammar and registry validation, vendored into the binary

docs/terminologies.md records each system’s FHIR page, its licence, and exactly what the provider implements.

Why it exists

Most SNOMED CT terminology servers run on the JVM, and the reference server, Snowstorm, runs on Elasticsearch. That stack works, and it asks for a lot of memory: a machine serving an edition wants 16 to 32 GB of RAM, most of it Elasticsearch heap, plus a search cluster to operate.

The data is smaller than that: a few hundred thousand concepts, a million descriptions, a million relationships. FerroTERM builds an edition into one index once, reads it at startup, and serves it from one process; the benchmarks page has what that costs in build time, disk, and resident memory for each code system, measured and recorded. The goal is plain: run a clinical terminology server on hardware you already have.

Who uses it

FerroTERM speaks the FHIR terminology API, so any FHIR client can use it: a validator, an IG publisher, a clinical application resolving value set bindings. One such client is FerroEHR, a pure-Rust openEHR clinical data repository by the same author. FerroTERM is independent of it.

What it does not do

  • It authors no code system content. The server serves an index built from a finished release; you download the release and run the build tool over it, or let the synchronisation service take it from a national terminology service’s feed (Syncing from a national terminology service).

Architecture at a glance

This page is a short tour of the design as built. The full design authority, with citations to the terminology-server and graph-reachability literature, is docs/architecture.md in the repository.

Offline once, online from precomputed structures

A code system release is turned into served structures once, by ferroterm-build, and the server opens them read-only:

graph TD
    R["A release (RF2, LOINC, ClaML, RRF, the ICD-API cache, ...)"] --> BUILD["ferroterm-build, once per release"]
    BUILD --> IDX["store.redb + its column files + hierarchy.bin + text.bin + manifest.json"]
    IDX --> SRV["ferroterm, read-only, loaded at startup"]
    SRV --> API["FHIR terminology API: /r4, /r4b, /r5, /r6"]

For SNOMED CT the hierarchy a client queries is the inferred one, a reasoner output SNOMED ships in its inferred relationship file; the build computes its transitive closure once and persists it. The server never re-derives inference and never parses a release at request time.

An index-materialized graph, not a graph database

The hierarchy is stored as integer-keyed compressed sparse-row (CSR) adjacency plus roaring bitmaps holding the transitive closure in both directions. A subsumption test is a bitmap membership test, a descendant set is a bitmap returned directly, and set operations over value sets are bitmap AND, OR, and difference. Typed relationships (RxNorm’s has_ingredient, for one) are a second adjacency with the type on each edge, both directions materialized.

A general-purpose graph database is rejected on the evidence: no production terminology server uses one (Ontoserver is Postgres plus Lucene, Snowstorm is Elasticsearch, Hermes a memory-mapped store plus Lucene), and graph databases degrade on exactly the deep multi-hop neighbourhoods a descendant expansion produces.

The artifact layout

Every code system builds into files with the same names and the same meanings, so the server opens each by its manifest and nothing downstream knows which file format it came from. The store with its four columns, the word index, and the manifest are always written; a system with a hierarchy adds one more, and several add files of their own:

FileHolds
store.redbthe designations with their language and use, the code index, the vocabularies; a pure-Rust, disk-backed, ACID embedded engine
store.concepts.col, store.displays.col, store.properties.col, store.acceptability.colthe dense columns the store reads at open, one record per concept, each addressed by ordinal
hierarchy.binthe CSR is-a adjacency and the roaring closure bitmaps, for a system that has a hierarchy; RxNorm has none and writes none
text.binthe fst word dictionary and roaring postings of every designation, by language
manifest.jsonthe system, version, languages, counts, and the files above

Several systems add files. RxNorm writes its typed edges (relations.bin) and atom identifiers (atoms.bin); ICD-11 writes entity keys (keys.bin) and postcoordination scales (scales.json); SNOMED CT writes reference set members (refsets.bin, members.bin), the concept model attributes ECL evaluates (attributes.bin), and the alternate identifiers (identifiers.bin). A SNOMED edition is the largest of them, at seven files. No FHIR or SNOMED specification governs this layout; it is the project’s own design.

The provider seam

The operations talk to a CodeSystemProvider trait and nothing else: locate a code, its display and designations by language, its status and properties, the hierarchy when the system has one, search, enumeration, filters, implicit value sets, and subsumption. Each code system implements the seam over its artifact (or, for the registry systems, over a grammar and a vendored table), and declares its capabilities, filters, and properties for TerminologyCapabilities. The compose layer (include, exclude, filters, paging, total) sits once above every provider.

FHIR support is machine-generated

HL7 publishes the whole type system and every operation as machine-readable StructureDefinition and OperationDefinition resources, in versioned packages. The FerroBRIDGE repository pins those packages and generates the fhir-types crate from them, one module per version, so a parameter R5 adds appears in the R5 module and is absent from R4B. FerroTERM takes the crate from crates.io and serves the R4, R4B, R5 and R6 modules under /r4, /r4b, /r5 and /r6 (The FHIR model).

Text search is a separate index

Description search is its own concern. A word index maps each folded word to a roaring postings list of designations, with an fst dictionary for prefix lookup, per language. A filter on $expand intersects the matching words’ postings and the value set’s members.

How it compares

FerroTERM serves the same FHIR terminology API as the established servers. The difference is the runtime footprint, the stack it needs to operate, and how far along the feature set is. This page sets FerroTERM beside Snowstorm, Ontoserver, and Hermes.

Note

The numbers for the other servers come from their own documentation and published work, cited in docs/architecture.md. FerroTERM’s own figures are measurements over the licensed Dutch SNOMED CT edition on a laptop, and each one links the record that produced it, naming the release it was measured on; see Benchmarks and Hardware sizing.

The servers

  • Snowstorm (SNOMED International): Java on Elasticsearch. The reference server and FerroTERM’s behavioural oracle. Full-featured, and a full International edition deployment wants 16 to 32 GB of RAM plus a search cluster.
  • Snowstorm Lite (SNOMED International): drops Elasticsearch for a single Lucene index and runs the International edition in about 500 MB.
  • Ontoserver (CSIRO): Postgres plus Lucene. A production FHIR terminology server, index-materialized rather than a graph database; the Dutch national terminology server runs it.
  • Hermes (Mark Wardle): Clojure, a memory-mapped store plus Lucene. It serves subsumption in tens of microseconds from a materialized structure, the design point FerroTERM follows in pure Rust.

Side by side

ServerLanguage / runtimeStoreEdition footprintDeploys as
SnowstormJava (JVM)Elasticsearch16 to 32 GB RAMJVM plus a search cluster
Snowstorm LiteJava (JVM)Luceneabout 500 MBJVM service
OntoserverJava (JVM)Postgres plus Luceneserver plus databaseJVM plus Postgres
HermesClojure (JVM)memory-mapped store plus LucenemodestJVM service
FerroTERM 0.4.9Rustredb plus roaring and fst artifacts, read at startup559 to 864 MB on disk, 943 MB to 1.14 GB resident, per SNOMED editionone binary (statically linked on the musl targets) or a distroless image

What FerroTERM trades

FerroTERM is younger. Hierarchical expansion, persisted client resources, Bundle batch, $closure, the SNOMED implicit value sets and implicit concept maps, ECL, the R4, R4B, R5, and R6 endpoints, and XML are served; the persisted resources and the closure tables need a deployment that names a database in FERROTERM__TERMINOLOGY__RESOURCES. FerroTERM serves an index built from a finished release and authors no SNOMED content; its synchronisation service takes releases from a national terminology service’s feed. MRCM validation of postcoordinated expressions does not run. What it serves, it serves from one binary with signed provenance, over more code systems than the SNOMED-only servers, and with its conformance measured by the HL7 terminology ecosystem suite on every change.

Every production server in this list converges on a materialized index rather than live graph traversal. FerroTERM takes the same shape in pure Rust, with a machine-generated FHIR layer across four versions.

Conformance

The badges on the repository’s README show how much of the HL7 terminology ecosystem test suite each served FHIR version passes:

What the suite is

The HL7 terminology ecosystem implementation guide publishes the test cases the FHIR Validator uses against terminology servers. FerroTERM runs the suite’s general mode with the FHIR Validator’s txTests command against a release build of the server, once per served FHIR version (/r4, /r4b, /r5), on every pull request and every push to main. The suite’s commit, its test case version, and the validator version are pinned in docs/VERSIONS.md and in scripts/checks/tx-ecosystem.sh.

What the numbers mean

A badge reads passed / total. passed is the number of cases on the committed pass list for that version (conformance/tx-ecosystem/passing*.txt in the repository); total is the number of cases the suite ran. Continuous integration fails when a listed case stops passing, and a case joins the list in the same change that makes it pass, so the badge never says more than CI has verified. The site regenerates the badge data from those lists on every deploy.

The pass lists are the honest state, not a ceiling: the remaining cases and their clusters are tracked on the issue tracker, and the lists grow with the work. The suite’s other modes (SNOMED CT, ICD-11, LOINC and more) have their own lists beside the general ones, described below.

Where the remaining cases stand

The general mode counts 805 cases on every surface. With suite 9c2bbce and validator 7.0.8, /r4 passes 755, /r4b 740 and /r5 754. Every case that does not pass falls into one of the rows below. None of them needs licensed content: the cases that do (SNOMED CT, LOINC, ICD-11, OMOP) sit in the suite’s other modes, which are not in these counts.

Why the case does not passTracked inR4R4BR5
Not run on this surface. The case is gated to another FHIR version or to the tx.fhir.org mode, and the runner still counts it in the 805.#1361, #1380599
The R4B surface. The suite targets R4 and R5: on /r4b its $version$ stands for R4’s 4.0.1 (the metadata, exclude and two contained-nested cases), and its !4.0 gate lets two R5-only reverse $translate cases run against R4B, which keeps reverse.#1361, #13800110
The case expects a $lookup warning output no OperationDefinition declares (simple-lookup-zxx; on R4 and R4B it also expects R5’s definition output, #1330).#1069111
No published definition. The $lookup cases expect a source part on a designation, and ec-validate-outside expects no version, which no publication defines.#1376101011
The cases send reset or dispose to $closure, which ConceptMap-closure does not declare and the IG leaves unwritten; nine more closure cases fail because the closure the first one sets up is never made.#1068111111
The cases expect concept properties (label, order) and extension placements no published definition allows, vs-deprecation among them: valueset-deprecated and standards-status on expansion.contains, where neither extension’s context allows them.#1107999
The cases turn on versionsMatch, an expansion parameter no publication defines.#507888
The cases expect R5’s $lookup definition output on R4 and R4B, whose OperationDefinitions do not declare it.#1330440
The cases send an input the operation does not declare (codingX in a batch) and expect the reference server’s own wording.#349222
Total not passing506551

The first two rows do not apply on their surface: 5 cases on R4, 20 on R4B and 9 on R5. Each badge counts them out of its fraction, so R4 reads 755/800, R4B 740/785 and R5 754/796, and of the 50 cases R4 does not pass, 45 are FerroTERM’s to answer for, 42 on R5 and 45 on R4B. The cases and their reasons are listed in conformance/tx-ecosystem/not-applicable.tsv, which every CI run of the suite checks against the cases the runner skipped and the cases that fail only on R4B.

The rest are upstream reports: FerroTERM answers what the published OperationDefinitions and extensions define, and each report names the change upstream that would settle it. conformance/tx-ecosystem/upstream.tsv names the issue that holds each of those cases, and every CI run of the suite checks that each still runs and fails.

The other modes

Each of the suite’s other modes has its own badge, labelled <mode> <surface> under the README’s suite heading, which reads passed/ran: ran is the number of cases the mode runs that apply on the surface. Every mode run carries the suite’s metadata case, which on /r4b asserts R4’s 4.0.1 for the reason the R4B-surface row above gives, so each mode’s badge on /r4b leaves the metadata case out of both numbers (not-applicable.tsv lists it per mode).

A mode whose content CI may fetch runs in CI, weekly and on demand (.github/workflows/tx-ecosystem-modes.yml), against its committed pass list and the count conformance/tx-ecosystem/ci-modes.tsv records. The lane fetches the content from its public source, checks it against a pinned sha256, and deletes it when the run ends; none of it is committed, cached or uploaded. snomed runs this way, over the suite’s own SNOMED CT test edition, with mimetypes, which needs no content beyond the IANA media types registry the server ships, omop, which fetches nothing because the server loads no OMOP vocabulary, icf, over the ICF releases of the fhir.tx.support package, and icd-11, over WHO’s ICD-API local deployment, which the lane starts from its image digest and walks into the three ICD-11 artifacts.

The modes CI does not run yet are measured by hand before a release. Their counts, the day of each run and the reason are in conformance/tx-ecosystem/hand-run.tsv, and the table below is written from it:

modesurfaceranmeasuredwhy by hand
loinc/r4b1102026-12-01run over the full LOINC 2.83 release, which loinc.org gives out only behind an account login, so no CI lane can fetch it; the suite’s own LOINC subset carries no licence text and 213 of the 1777 codes the cases name (#1437)
loinc/r51102026-12-01run over the full LOINC 2.83 release, which loinc.org gives out only behind an account login, so no CI lane can fetch it; the suite’s own LOINC subset carries no licence text and 213 of the 1777 codes the cases name (#1437)
tx.fhir.org/r4b1892026-12-01run over the full LOINC 2.83 release, which loinc.org gives out only behind an account login, so no CI lane can fetch it; the suite’s own LOINC subset carries no licence text and 213 of the 1777 codes the cases name (#1437)
tx.fhir.org/r51892026-12-01run over the full LOINC 2.83 release, which loinc.org gives out only behind an account login, so no CI lane can fetch it; the suite’s own LOINC subset carries no licence text and 213 of the 1777 codes the cases name (#1437)

Every tx-ecosystem badge colours by the cases FerroTERM answers for: green when all of them pass, yellow-green when every failing case that applies is held by an open upstream report (conformance/tx-ecosystem/upstream.tsv, each row naming its issue), and yellow otherwise. A mode FerroTERM does not claim reads n/a with its reason (conformance/tx-ecosystem/not-claimed.tsv). The table below is written from those files and the pass lists:

badgepassesappliesnot applicableheld upstreamFerroTERM’s to fix
general /r47558005450
general /r4b74078520450
general /r57547969420
snomed /r4b3413771360
mimetypes /r4b40511110
omop /r4b1not claimed40 of 40not claimed: the IG makes the OMOP requirements conditional on the omop mode (requirements.md §OMOP), and FerroTERM loads no OMOP vocabulary
icf /r4b81951140
icd-11 /r4b11414411119
loinc /r4b6298122412
loinc /r56399112412
tx.fhir.org /r4b29not claimed189 of 189not claimed: the suite says the mode is “for tests that are intended to be and written specifically for tx.fhir.org - internal QA. There is no need for other servers to pass these tests” (tests/readme.md)
tx.fhir.org /r531not claimed189 of 189not claimed: the suite says the mode is “for tests that are intended to be and written specifically for tx.fhir.org - internal QA. There is no need for other servers to pass these tests” (tests/readme.md)

The snomed mode runs over the suite’s own SNOMED CT test edition with terminology.default_language = "en-US", because its expected displays are the US English preferred terms. That is a deployment’s choice of language reference set: no specification picks one, and the shipped default is en.

conformance/tx-ecosystem/README.md says what each mode needs and why its open cases stay open.

What the numbers are not

The suite is the ecosystem’s test suite, not a certification. Passing a case means the server answers as the suite expects; it does not make the server an HL7-certified product, and HL7 issues no such certification for terminology servers. Registration in the HL7 terminology ecosystem is a separate step and will be linked from this page when it exists.

The EHDS badges

Two badges under EHDS (self-tested) in the README report the European Health Data Space terminology work. Each counts a committed corpus that a test proves over synthetic or freely licensed data, because FerroTERM ships no licensed content; neither is a certification or a conformity assessment.

  • MyHealth@EU MVC 10.1.0 import counts the value sets of a synthetic package shaped like the CI build of the Master Value Sets Catalogue 10.1.0 that the server answers after ferroterm-build --fhir-package imports it (conformance/ehds/mvc-synthetic.tsv, held to the fixture by a server test). The real catalogue is the operator’s to load.
  • EEHRxF draft 2026-11-23 Art 6 counts the coding systems of the draft EEHRxF implementing act whose loader a test proves over a synthetic fixture, of the 16 the draft names (conformance/ehds/art6-code-systems.tsv, each row naming its test, checked by scripts/checks/ehds-matrix.sh).

Benchmarks

Every figure FerroTERM quotes about speed or footprint comes from a record the benchmark harness wrote, never from a number typed by hand. A record names the machine, the FerroTERM version, the code system release, and the method beside every figure, so you can rerun it and compare.

What a record holds

For one code system and one run, ferroterm-bench writes a JSON record with:

  • the machine (operating system, architecture, CPU, memory) and the FerroTERM version;
  • the code system, its version, its concept count, and the artifact’s size on disk;
  • the ingest: wall time around ferroterm-build over the release, and the build’s peak resident memory (from /usr/bin/time), when the release is at hand;
  • the time from starting the server until /health answers, and the server’s resident memory after start and after the warm requests, the median of five readings of that one process (footprint’s phys_footprint on macOS, which counts the pages the kernel compressed away, and ps -o rss= elsewhere, where the resident set already counts them);
  • per operation ($lookup, $validate-code, $subsumes, a small and a large $expand, and a designation search through filter): the first request cold, and the nearest-rank p50, p95, and p99 over the warm requests that follow, all as HTTP round trips from the same machine;
  • the comparison field, which states a reference server’s numbers taken on the same machine over the same release with its configuration, or says the comparison was not run.

Reproduce a record

The harness runs over releases and artifacts you are licensed for; the repository ships none. Build the artifacts as the loading page shows, put their paths in bench/systems.json, and run:

$ bench/run.sh

bench/run.sh --skip-ingest measures the artifacts as they are without rebuilding them; --only LOINC restricts the run to systems whose name contains the text. Records land under bench/results/, one file per system and run, named by the system and the timestamp. Close other work on the machine during a run; the latency of a request that shares a CPU with a compiler is the compiler’s number, not the server’s.

Run in a container

A record taken in the same container image is comparable across machines and free of whatever else a workstation has installed. bench/compose.yaml builds the server, the build tool, and the harness from the checkout on digest-pinned Debian images, mounts data/ and artifacts/ read-only, and writes the records to bench/results/:

$ docker compose -f bench/compose.yaml build
$ docker compose -f bench/compose.yaml run --rm bench --skip-ingest --only LOINC

The record marks a container run (machine.container), and on macOS or Windows the machine it names is the Docker virtual machine, with that machine’s CPU count and memory, so a container record from a laptop reads slower than a native one on the same hardware. The README table says which kind it shows.

Units, and what a record refuses

The records store raw numbers: milliseconds for latency, bytes for memory and disk, seconds for ingest and time to ready. Everything rendered from them (the console summary, the README table) uses the unit that fits the value: seconds, milliseconds, or microseconds for time; GB, MB, or KB for bytes. A request that answers anything other than a 2xx status fails the run for that system and no record is written, so a record never holds the latency of an error response. A cell reads n/a when the system defines no such operation, for instance a code system with no whole-system value set to expand.

The published figures

The README table, the figure tiles on the landing page, and the tables on the site’s benchmarks page are rendered from one committed record set, a directory under bench/records/ named by the date and the machine, by scripts/checks/bench-table.sh render <target>; CI runs check and fails when any of the three and the records disagree. Every record in a set comes from the same machine, FerroTERM version, and FHIR version, or the renderer refuses the set. A new set is a new directory copied from bench/results/ by hand, so every published number names the run it came from and links to its record.

The current record set

bench/records/2026-09-23-apple-m2/, taken on 2026-09-22 with the 0.1.4 release binaries on an Apple M2 with 17.18 GB, natively rather than in a container. Nothing else of the owner’s ran while it was taken: no compiler, no test run, no editor indexing, and Docker Desktop idle with no container started. FerroTERM’s own processes are the only ones in the figures, one server at a time, and the harness measures every system’s serving before it runs any build, so no build shares a CPU with a latency measurement.

The resident and peak-build figures are the server’s and the build tool’s, not the machine’s. Resident memory is the median of five readings of the one server process, read with footprint so the pages macOS compressed are counted; peak build memory is the ferroterm-build child’s peak over one system’s release, from /usr/bin/time. The set’s own README carries the machine state in full, including what the one-minute load average in each record is an average of.

Code systemReleaseConceptsBuildPeak build memoryIndex on diskResident$lookup$validate-code$subsumes$expand (small)$expand (large)SearchSnowstorm
ICD-10-CM202698,8271.51 s359 MB44 MB91 MB105 µs60 µs58 µsn/an/an/anot run
ICD-10-NL202142,769880.52 ms221 MB21 MB66 MB96 µs60 µs64 µsn/an/an/anot run
ICD-11 MMS2026-0137,211n/an/a44 MB99 MB138 µs59 µsn/a129 µs116 µs139 µsnot run
LOINC2.83257,2668.15 s2.54 GB310 MB440 MB136 µs56 µsn/a126 µs7.23 ms283 µsnot run
RxNorm (prescribable subset)0908202681,4684.58 s667 MB77 MB133 MB388 µs114 µsn/an/an/an/anot run
SNOMED CT (International edition)20260901535,50214.12 s3.06 GB559 MB943 MB217 µs66 µs59 µs215 µs1.7 ms353 µsnot run
SNOMED CT (Netherlands edition)20260630548,94917.66 s3.88 GB864 MB1.14 GB222 µs66 µs59 µs285 µs2.28 ms817 µsnot run

Warm p50 over 200 HTTP round trips on one machine (Apple M2, 17.18 GB, macos/aarch64), FerroTERM 0.1.4 serving FHIR R4B, taken 2026-09-22. The records are under bench/records/; the benchmarks page has the method, the cold and tail latencies, and how to reproduce a record.

Reading the numbers

A cold request is the first of its kind on a freshly started server, before redb’s page cache and the query caches hold anything for that path; the warm percentiles are what a busy server answers. The resident memory is what the server has read in: the index is loaded at startup, which is why the figure after start and the figure after the warm requests are close. The design target for point reads is under a millisecond in the release profile on the Dutch edition; a millisecond-scale figure is a measurement to improve, never a result to call fine.

$lookup reads slower on some systems than on others because its answer is larger, not because the read is. Across the seven systems in the set, its warm p50 fits a fixed 98 µs plus 4.6 ns for every byte of the answer, from a 862 byte ICD-10-NL answer at 96 µs to a 63,134 byte RxNorm answer at 388 µs: the same rate on every system, and RxNorm is the largest answer rather than the slowest read. The bar the project holds it to has that shape, 100 µs + 6.0 ns/byte in bench/bars.json, and scripts/checks/served-bars.sh checks every record of the published set against it.

CRA risk assessment

This page is the cybersecurity risk assessment Cadasto B.V., the manufacturer of each tagged FerroTERM release, keeps under the Cyber Resilience Act (Regulation (EU) 2024/2847). CRA Art. 13(2) has the manufacturer “undertake an assessment of the cybersecurity risks associated with a product with digital elements and take the outcome of that assessment into account during the planning, design, development, production, delivery and maintenance phases”. Art. 13(3) says what the assessment holds: “an analysis of cybersecurity risks based on the intended purpose and reasonably foreseeable use, as well as the conditions of use”, and an indication of “whether and, if so in what manner, the security requirements set out in Part I, point (2), of Annex I are applicable to the relevant product with digital elements and how those requirements are implemented”. Where a requirement does not apply, Art. 13(4) asks for “a clear justification to that effect” in the technical documentation. The assessment is point 3 of the technical documentation of CRA Annex VII.

The manufacturer’s side, which is the same for every FerroHEALTH product (who the manufacturer is, what applies from when, reporting, the support period and vulnerability handling), is in the FerroHEALTH book: The Cyber Resilience Act. This page is FerroTERM’s own part. The information and instructions Annex II asks for are on CRA information for users.

Warning

The quotations are from the Official Journal text of the CRA at EUR-Lex. No conformity assessment has been carried out, no EU declaration of conformity exists and FerroTERM carries no CE marking. A status on this page describes the evidence the repository holds, never conformity.

Scope and dates

  • The product assessed. Each tagged release as Cadasto B.V. publishes it: the ferroterm, ferroterm-build and ferroterm-sync binaries in the release tarballs, the ferroterm and ferroterm-sync container images, the console’s ferroterm-console binaries and image, and the source archive. The library crates FerroTERM publishes on crates.io are products of their own; this page covers them only where a row says so, and the crates says how.
  • The synchronisation service. ferroterm-sync ships in every release tarball and as the ghcr.io/ferrohealth/ferroterm-sync image from v0.3.0 of 2026-10-24. Revision 2 assesses it; revision 1 predated that release.
  • Who the requirements bind. Annex I Part I sets properties of the product, which the manufacturer ensures (CRA Art. 6, Art. 13(1)). Part II sets the manufacturer’s processes. A deploying organisation that runs an unmodified release is the addressee of neither.
  • When. Annex I and Art. 13 apply from 11 December 2027, Art. 14 from 11 September 2026 (CRA Art. 71(2)). The assessment runs now so that the gaps are closed before that date.
  • Default or important product. FerroTERM is a default product, the owner’s decision of 2026-10-24. CRA Art. 7(1) makes a product an important product when it has “the core functionality of a product category set out in Annex III”, and a terminology server answering the FHIR CodeSystem, ValueSet and ConceptMap operations matches no category of Annex III. Of the procedures CRA Art. 32(1) offers, the owner chose “the internal control procedure (based on module A) set out in Annex VIII” (Art. 32(1)(a), Annex VIII Part I), under which the manufacturer declares conformity on its sole responsibility, with no notified body. The assessment, the EU declaration of conformity (Art. 28) and the CE marking apply from 11 December 2027 (Art. 71(2)). No assessment has been carried out and no declaration exists yet (how conformity is assessed).

The basis: intended purpose, use and environment

Intended purpose. FerroTERM answers the HL7 FHIR terminology operations ($lookup, $validate-code, $subsumes, $expand, $translate, $closure) over the code systems a deployment loads, for FHIR clients such as a clinical data repository, a validator or a clinical application resolving value set bindings (what FerroTERM is). It reads indexes built ahead of time by ferroterm-build from a release the deploying organisation brings under its own licence, and, where the deployment names a database, keeps the CodeSystem, ValueSet and ConceptMap resources its clients write. The console is a browser interface over the same public FHIR API.

The synchronisation service, ferroterm-sync, keeps a deployment current from a national terminology service: on a schedule it reads the service’s Atom feed and its FHIR API, downloads the releases and resources the deployment subscribed to, builds an RF2 release with ferroterm-build as a child process, renames the result into the index root the server reads, asks the server to reload over its admin listener, and revalidates the deployment’s own value sets and concept maps through the server’s public FHIR API (syncing from a national terminology service). It runs as its own process beside the server, with an admin listener of its own.

The data it processes is terminology content and the resources clients author. A request names a code system, a code and sometimes a display or a search term. FerroTERM holds no patient record, and its read path receives no patient data in normal use. The synchronisation service processes the same kind of content: the releases and resources a terminology service publishes, its run records, and the credentials it presents to the terminology service and to the server’s admin listener.

The operational environment is a server on the deploying organisation’s network, beside the systems that call it, behind a reverse proxy that terminates TLS, authenticates readers where the organisation wants readers authenticated, and rate-limits (behind a reverse proxy). An authorization server the organisation runs issues the tokens the write routes, the admin listener and the console’s sign-in use (authentication). The synchronisation service runs on the same network, shares one filesystem with the server’s index root and resource directory, and reaches the terminology service over the internet.

Reasonably foreseeable use and misuse, each with what the product does:

CaseWhat FerroTERM doesWhat remains
The FHIR listener published to the internet without a proxythe server speaks plain HTTP and serves its read surface to anyone who reaches it; the book says to put TLS and reader authentication in the proxythe deployment decides; a licence that limits who may read the content is the deployment’s to keep
Writes switched on without authenticationa server that names FERROTERM__TERMINOLOGY__RESOURCES or FERROTERM__ADMIN__LISTEN refuses to start until [auth] names an issuer or says enabled = falseenabled = false is accepted, for a network only trusted callers reach
The admin listener published beside the FHIR surfaceevery route on it requires the admin scope, and the book says to bind it to loopback or an internal addressa deployment that turns authentication off and publishes it lets anyone make the server re-read its disks
A damaged or half-written index servedan artifact that does not open refuses the start, and a reload that meets one keeps the previous set (a refused artifact stops the start)none
Patient data sent as a search termthe request log never carries a body or a free-text parametera proxy’s own access log may; the book says to keep it to the same standard
The sync service’s admin listener publishedevery route but the health routes requires the product scope, and the service refuses to start while [auth] admits no credential unless it says enabled = falsea deployment that turns authentication off and publishes it lets anyone start a run, activate what is staged, and read the run records
A sync endpoint configured as plain httpthe service refuses to start on a plain http URL outside loopback, naming the key; the shipped overlay reaches the server over loopbacka server’s admin listener on another host needs TLS on that listener ((e))
A release that breaks answers activated by the sync serviceactivation = "manual" stops a run after staging; a reload the server refuses is rolled back; retention keeps the previous release; the revalidation reports what the release changed for the deployment’s own contentactivation = "auto", the default, serves a release the server accepts without a person looking at it
A release run after a newer one is publishedthe release notes and SECURITY.md say only the newest release is supportedthe running server does not state its support end date ((c))

The assets: the licensed code-system content in the indexes, the resources clients wrote, the correctness of every terminology answer (a wrong answer that looks right reaches a clinical system downstream), the authentication configuration and its credentials ([auth] and the Basic users’ password hashes, the console’s OIDC client secret and sessions), the synchronisation service’s credentials (its client at the terminology service and its client for the server’s admin listener), the content of the index root and the resource directory it writes, its run records, the release artefacts, and availability.

How the risks were analysed

CRA Art. 3(37) defines a cybersecurity risk as “the potential for loss or disruption caused by an incident”, “expressed as a combination of the magnitude of such loss or disruption and the likelihood of occurrence of the incident”. The register rates each risk on the intended purpose and the shipped controls: the magnitude by the asset it reaches, the likelihood by what an actor needs to cause it. The ratings are the manufacturer’s judgement, on three levels (high, medium, low).

#RiskMagnitudeLikelihood with the shipped controlsControlsAnnex I Part I(2)
T1An unauthenticated caller writes, changes or deletes a resource, or a closure tablehigh: a changed value set changes every validation that uses itlow: writes need a credential, and a server with a database refuses to start without [auth]SMART App Launch resource server over ferrohealth-smart; fail-closed start; scopes per route(b), (d)
T2Someone the content’s licence does not cover reads licensed contentmediummedium: the read surface asks for no credential by designreader authentication in the proxy; the book names it(d), (e)
T3The admin listener is used to make the server re-read its disksmediumlowa separate listener, off by default, the admin scope on every route(d), (j)
T4A damaged, partial or substituted index answers requestshighlowartifacts opened read-only; a refused artifact stops the start or the reload; atomic rename into an index root(f)
T5A malformed or hostile request crashes the server or corrupts what it holdsmediumlowmemory-safe Rust with unsafe forbidden; overflow checks in release; fuzzed parsers(j), (k)
T6The service is made unavailable by expensive requestsmediummedium: the server has no rate limit, timeout or body cap of its own$expand capped at 1,000 members without count; the proxy limits rates, timeouts and bodies(h)
T7A vulnerable component ships in a releasehighmediumcargo deny in CI; Dependabot; cargo auditable binaries; no image scan before tagging yet(a)
T8A tampered artefact reaches a deploymenthighlowSLSA Build Level 3 provenance; SBOM attestations; digest-pinned base image(f)
T9A console session is taken over, or the console is used to write on a reader’s behalfmediumlowserver-held session behind one HttpOnly cookie; SameSite=Lax; PKCE; a nonce CSP with frame-ancestors 'none'(d), (e)
T10Request content leaks into logs or outbound reportsmediumlowno body or free-text parameter logged; the usage report carries no code, URL or request path(e), (g)
T11A tampered or substituted release reaches the index root through the sync servicehighlow for a feed entry, medium for a resource from a FHIR APIa feed entry is streamed to a partial file and kept only when its digest matches the one the feed advertised; the build runs in staging and a failed build never reaches the index root; a resource read from a FHIR API carries no integrity field to verify, since none of FHIR, the HL7 tx ecosystem IG and the NCTS syndication format defines one for it, so it rests on the transport, which the service holds to https outside loopback, and the run record keeps the digest of what arrived; this is a residual risk(f)
T12An unauthenticated caller starts a run, activates staged content or reads the run recordsmediumlowthe admin listener is a resource server over ferrohealth-smart; every route but the health routes requires the product scope; fail-closed start(b), (d)
T13The sync service’s credentials leakhigh: the reload client can make the server re-read its disks, and the terminology service account unlocks licensed contentloweach secret read from a mounted file or a variable, shown as *** by config check, never logged; the reload call refuses a Basic credential and takes a client credentials token; tokens kept in memory(d), (e)
T14A release that changes answers is served without reviewhighmedium with activation = "auto"activation = "manual"; a refused reload rolled back; retention keeps the previous release to roll back to; the revalidation reports inactive, absent and out-of-value-set codes in the run record and the webhook summary(f), (h)
T15A hostile feed or API response crashes the service or exhausts its diskmediumlowmemory-safe Rust with unsafe forbidden; the feed parser fuzzed; downloads streamed to disk; a download cut off at download_limit (4 GiB by default) and a listing answer at listing_limit (64 MiB by default) while it streams; retention prunes old releases and each run record states the bytes the index root uses(h), (k)

Annex I Part I(1): the level of cybersecurity

“Products with digital elements shall be designed, developed and produced in such a way that they ensure an appropriate level of cybersecurity based on the risks.” The manufacturer applies it through the register above: each risk has a control, and each control is traced to a point of Part I(2) below. The level is set against the risks of a terminology server: it holds no patient record, and the harms that matter are a wrong answer a clinical system trusts, an unauthorised change to a value set, and disclosure of licensed content.

Annex I Part I(2), point by point

The chapeau reads: “On the basis of the cybersecurity risk assessment referred to in Article 13(2) and where applicable, products with digital elements shall:”. Each entry gives the requirement, whether it applies, how FerroTERM implements it, the evidence, and the status (met, partial or gap, describing the evidence only).

(a) No known exploitable vulnerabilities

“be made available on the market without known exploitable vulnerabilities”

  • Applies: yes.
  • How: the cargo-deny job in CI fails on a RustSec advisory and on a yanked crate, with each accepted advisory reasoned in deny.toml; Dependabot opens the updates. The release binaries are built with cargo auditable, so each carries its dependency list for a scanner.
  • Evidence: deny.toml; .github/workflows/ci.yml (cargo-deny); .github/dependabot.yml; .github/workflows/release-build.yml.
  • Status: partial. No advisory is accepted in deny.toml. No release lane scans the container images before they are tagged. The same holds for the ferroterm-sync binary and image, built in the same lanes.

(b) Secure by default, and reset to the original state

“be made available on the market with a secure by default configuration, unless otherwise agreed between manufacturer and business user in relation to a tailor-made product with digital elements, including the possibility to reset the product to its original state”

  • Applies: yes. The tailor-made carve-out does not: a public release is not a tailor-made product.
  • How: the server binds 127.0.0.1:8080 unless told otherwise, persists nothing and accepts no write until FERROTERM__TERMINOLOGY__RESOURCES names a database, binds no admin listener until FERROTERM__ADMIN__LISTEN names one, and refuses to start with either until [auth] names an issuer and an audience or turns authentication off. [auth] refuses an HMAC algorithm and a plain http issuer outside loopback, and an unknown FERROTERM__AUTH__ key stops the start. The console offers no sign-in or editing without an [oidc] section, and its session cookie is Secure by default. The images run as uid 65532 on distroless static, with no shell; the quickstart adds a read-only root filesystem, all capabilities dropped and no-new-privileges. The synchronisation service binds its admin listener on 127.0.0.1:8181, refuses to start while [auth] admits no credential unless it says enabled = false, and refuses an unknown key or FERROTERM_SYNC__ variable; its image runs as uid 65532 on distroless static.
  • Reset: FerroTERM keeps its state in files the deployment names: the index directories, the FERROTERM__TERMINOLOGY__RESOURCES database and the FERROTERM__USAGE_REPORT__STATE_DIR directory. Deleting the database and the state directory and restarting returns a server to its original state over the same indexes (CRA information for users, 8(d)). The synchronisation service keeps its state in the state, records and staging directories its configuration names.
  • Evidence: app/ferroterm-server/src/config.rs; app/ferroterm-sync/src/config.rs; docker/Dockerfile.sync; configuration; docker/Dockerfile; docker/console/Dockerfile; compose.yaml.
  • Status: met for the defaults. The image binds 0.0.0.0:8080 in plain HTTP, because TLS belongs to the proxy in the environment above. The reset is documented and not exercised by a test.

(c) Security updates, notification and postponement

“ensure that vulnerabilities can be addressed through security updates, including, where applicable, through automatic security updates that are installed within an appropriate timeframe enabled as a default setting, with a clear and easy-to-use opt-out mechanism, through the notification of available updates to users, and the option to temporarily postpone them”

  • Applies: the security-update limb, yes. The automatic-update limb, no (the justification). The notification limb, yes. Postponement is inherent: the deploying organisation decides when to upgrade.
  • How: a fix ships in the next tagged release, and only the newest release is supported (SECURITY.md, CRA Art. 13(10)). Users learn of it through the GitHub release, its notes, the security advisory and the changelog, and can follow the release feed (https://github.com/FerroHEALTH/FerroTERM/releases.atom). The server makes no outbound call to learn of a newer release.
  • Evidence: SECURITY.md; the family security policy.
  • Status: partial. The running server states its version (the start log line and CapabilityStatement.software.version) but not the end month of its support period, which CRA Art. 13(19) asks to be stated.

(d) Protection from unauthorised access, and reporting it

“ensure protection from unauthorised access by appropriate control mechanisms, including but not limited to authentication, identity or access management systems, and report on possible unauthorised access”

  • Applies: yes.
  • How: the server is a SMART App Launch resource server over the FerroHEALTH crate ferrohealth-smart: it checks RFC 9068 access tokens from the configured issuers, or HTTP Basic users with Argon2id hashes, and requires a scope per write route and the admin scope on the admin listener. The read surface is open by design: terminology is reference content, and where a licence or a policy limits who may read it, the proxy authenticates readers. The console signs a user in with the authorization code flow and PKCE and keeps the token on its own server. A refused credential answers 401 and a missing permission 403, each logged as a request line with its status at warn. The synchronisation service’s admin listener is a resource server over the same crate and requires its product scope, __ferroterm.sync by default, on every route but the health routes; the service presents a client credentials token to the server’s admin listener and to the terminology service, and accepts no static token.
  • Evidence: app/ferroterm-server/src/smart/; app/ferroterm-sync/src/auth.rs; authentication; validating tokens in the server; app/ferroterm-console/src/auth/ over ferrohealth-session.
  • Status: met for writes and the admin listener. Reporting is the request log and http_server_request_duration_seconds by status code; there is no separate security event record.

(e) Confidentiality of stored, transmitted and processed data

“protect the confidentiality of stored, transmitted or otherwise processed data, personal or other, such as by encrypting relevant data at rest or in transit by state of the art mechanisms, and by using other technical means”

  • Applies: yes. The means are a menu (“such as”).
  • How: in transit, TLS is terminated by the proxy, and the server’s own outbound calls (the issuer’s metadata and keys, the usage report) require https outside loopback. The console holds tokens server side and never in the browser. Other technical means: request bodies and free-text parameters are never logged; secrets are read from files; the Basic users carry password hashes, never passwords. The synchronisation service reads its secrets from files or variables, shows them as *** in config check, and sends a client secret only to the token endpoint.
  • Evidence: what the server logs; the console, signing in.
  • Status: partial. The server and the console speak plain HTTP on their own listeners and rely on the proxy for TLS. FerroTERM does not encrypt the indexes or the resource database at rest (the justification). The synchronisation service refuses to start on a plain http URL outside loopback for every endpoint it sends a credential to or takes content from (the feed and FHIR API of a source, the [nts] base, the issuer and token endpoint of each client credentials grant, [server_admin] and [webhook]), the rule the server holds for its own issuer; the shipped overlay runs it in the server’s network namespace, so the reload stays on loopback (app/ferroterm-sync/src/config.rs, check_endpoints, and its tests; compose.sync.yaml).

(f) Integrity, and reporting corruptions

“protect the integrity of stored, transmitted or otherwise processed data, personal or other, commands, programs and configuration against any manipulation or modification not authorised by the user, and report on corruptions”

  • Applies: yes.
  • How: data: the server opens every index read-only, refuses to start or to reload when one does not open, and logs the reason; an index root takes a release by atomic rename; a write through the REST API takes If-Match. Programs: SLSA Build Level 3 provenance, Sigstore-signed SBOM attestations, checksums, and a base image pinned by digest. Configuration: a FERROTERM__AUTH__ variable that names no key of [auth] stops the start. The synchronisation service keeps a download only when its digest matches the one the feed advertised, builds in staging, renames a release into the index root in one step, and rolls an activation back when the server refuses the reload.
  • Evidence: a refused artifact stops the start; verifying releases; .github/workflows/release-build.yml; crates/terminology-syndication/src/download.rs; app/ferroterm-sync/src/activate.rs.
  • Status: met for the server. The synchronisation service is partial, a residual risk the specifications leave: a resource read from a FHIR API has no integrity field to check. The NCTS Atom Syndication Format defines ncts:sha256Hash on a feed entry’s link only; a FHIR search answers a searchset Bundle whose one integrity element, Bundle.signature, is optional and its verification “implementation-environment specific” (FHIR R4, Bundle.signature); the HL7 tx ecosystem IG defines none. The transport is held to https outside loopback, and if a service signs its Bundles, verifying the signature is the follow-up. The indexes carry no signature of their own: they are built by the deploying organisation from its own release, on its own machine, and stored on its own disks, so their protection against a writer who reaches those disks is the platform’s.

(g) Data minimisation

“process only data, personal or other, that are adequate, relevant and limited to what is necessary in relation to the intended purpose of the product with digital elements (data minimisation)”

  • Applies: yes.
  • How: the request log carries the method, route, status, latency and the system, url, version, code, codeA and codeB parameters, never a body or a free-text parameter. The usage report carries no code, URL or request path (outbound data flows).
  • Status: met.

(h) Availability, also after an incident

“protect the availability of essential and basic functions, also after an incident, including through resilience and mitigation measures against denial-of-service attacks”

  • Applies: yes.
  • How: the indexes are precomputed, so an answer is a set of point reads and bitmap operations; ValueSet/$expand answers at most 1,000 members without count; a reload swaps the served set without dropping the requests in flight, and a failed reload keeps the old set answering; the process drains on SIGTERM. Rate limits, timeouts and a body cap are placed in the proxy (rate limits and timeouts).
  • Status: partial. The server has no rate limit, request timeout or body cap of its own beyond the framework’s default body limit, so a deployment without a proxy has none. The synchronisation service runs apart from the server, so a failed run leaves the served set answering; it prunes old releases by retention, reads at most listing_limit bytes of a feed or a FHIR API page into memory, and takes at most download_limit bytes per download, refusing a longer Content-Length before writing and cutting a body off at the limit while it streams (crates/terminology-syndication/src/download.rs and its tests).

(i) Minimal impact on other devices and networks

“minimise the negative impact by the products themselves or connected devices on the availability of services provided by other devices or networks”

  • Applies: yes.
  • How: the server binary links no general HTTP client (scripts/checks/no-client-in-server.sh, run in CI). Its outbound calls are the issuer’s metadata and keys, read at most once per jwks_refresh_interval, the usage report, at most one start report per ten minutes and one daily report, each at most 64 KiB, and the revocation answers (CRL and OCSP) for the chains of the outbound TLS tables the operator configures. The synchronisation service calls the terminology service once per scheduled run, or when a person asks for one, with the retry its endpoint table bounds.
  • Status: met.

(j) Limited attack surface

“be designed, developed and produced to limit attack surfaces, including external interfaces”

  • Applies: yes.
  • How: the server has one listener by default; the admin listener serves POST /reload alone and is off by default; writes are off without a database; the images are distroless static with no shell or package manager; the console is a separate program and the server serves no UI; the synchronisation service is a separate program, and only it links the terminology service add-ons (scripts/checks/addon-boundary.sh).
  • Evidence: docker/Dockerfile; docker/console/Dockerfile; the admin listener stays behind the proxy.
  • Status: met. /health and /metrics answer on the FHIR listener, and the book says to keep them off the public route.

(k) Exploitation mitigation

“be designed, developed and produced to reduce the impact of an incident using appropriate exploitation mitigation mechanisms and techniques”

  • Applies: yes.
  • How: Rust with unsafe_code = "forbid" across the workspace and overflow-checks = true in release builds; fuzzing of the ECL parser, the FHIR JSON and XML codecs, the RF2 row reader, the SNOMED URI parser and the syndication feed parser; a non-root uid, no shell and, in the quickstart, a read-only root filesystem with every capability dropped.
  • Evidence: Cargo.toml ([workspace.lints.rust], [profile.release]); fuzz/fuzz_targets/; .github/workflows/fuzz.yml.
  • Status: met. The Atom feed parser the synchronisation service reads a terminology service’s feed with is fuzzed by the atom_feed target (fuzz/fuzz_targets/atom_feed.rs, in the matrix of .github/workflows/fuzz.yml).

(l) Recording and monitoring, with an opt-out

“provide security related information by recording and monitoring relevant internal activity, including the access to or modification of data, services or functions, with an opt-out mechanism for the user”

  • Applies: yes.
  • How: one request line per request with its status, at warn for a client error and error for a server error; a line for each reload and its outcome; Prometheus metrics on /metrics; the _history of every resource written through the REST API. The opt-out is the RUST_LOG filter.
  • Evidence: what the server logs; health, metrics, and request identifiers.
  • Status: met. The request line does not name the authenticated subject of a write. The synchronisation service writes one JSON record per run, with everything it took, built, activated, rolled back and removed, and serves them at GET /runs, with its metrics at GET /metrics.

(m) Secure removal of all data and settings, and secure transfer

“provide the possibility for users to securely and easily remove on a permanent basis all data and settings and, where such data can be transferred to other products or systems, ensure that this is done in a secure manner”

  • Applies: yes.
  • How: every piece of state is a file or directory the deployment names, so removing them removes all data and settings (CRA information for users, 8(d)). A single resource is removed with DELETE over the REST API. The synchronisation service’s state is its state, records and staging directories; it deletes nothing from the index root except by retention. Transfer is the FHIR API itself: any client reads every resource.
  • Status: met. FerroTERM has no erase command; sanitising the media is the deploying organisation’s.

Requirements and limbs that do not apply

CRA Art. 13(4): “Where certain essential cybersecurity requirements are not applicable to the product with digital elements, the manufacturer shall include a clear justification to that effect in that technical documentation.”

Automatic security updates (Annex I Part I(2)(c))

Part I(2)(c) asks for automatic security updates “where applicable”, and Part II(7) for distribution “where applicable for security updates, in an automatic manner”. Neither applies to FerroTERM:

  • FerroTERM is a server run under its operator’s change control, beside the clinical systems that call it. An update restarts the process and can change an answer those systems rely on, so the operator schedules it.
  • The operator controls the host, the image registry and the network. FerroTERM has no channel of its own into a deployment, and the server binary links no HTTP client by design, so adding one would widen (j).
  • Updates are distributed securely by other means: signed, attested releases, digest-identified images, and the advisory that says to upgrade.

So the automatic-installation limb and its opt-out do not apply, and CRA Annex II point 8(e) has nothing to describe.

Encryption at rest (Annex I Part I(2)(e))

Part I(2)(e) names encryption at rest as one of the means (“such as”). FerroTERM does not encrypt the indexes or the resource database:

  • The indexes hold terminology content, not personal data, and the server reads them on every request; encryption at rest is provided where they are stored, at the volume or disk layer the deploying organisation provisions.
  • The resource database holds the CodeSystem, ValueSet and ConceptMap resources clients author, which the server serves to anyone who reaches the read surface.

Outbound data flows (Annex I Part I(2)(g))

Every connection FerroTERM opens on its own initiative, with what it carries and why.

FlowDefaultCarriesPurpose
Usage report to report.ferropulse.euon, when FERROTERM__USAGE_REPORT__STATE_DIR names a writable directoryinstance id, version, licence type, deployment, uptime, host size, loaded code system families and coarse operation latency (fields)the manufacturer’s view of which versions and deployment sizes run; no code, URL or request path; FERROTERM__USAGE_REPORT__ENABLED=false turns it off
Metadata and key set of the [auth] issuerwhen an issuer is configuredthe issuer’s well-known URLs; no request dataverifying the tokens the write routes and the admin listener accept
OTLP export of the server’s and the sync service’s spans and metricswhen [telemetry.otlp] is configuredspans and metrics, never a request bodythe deployment’s monitoring
The sync service to the terminology service’s feed and FHIR APIeach runthe service’s client credentials token; the subscribed canonicals in the searchestaking the releases and resources the deployment subscribed to
The sync service to the terminology service’s token endpointeach run, when the cached token is near its expirythe client id and secretthe client credentials grant
The sync service to the server’s admin listenerafter each activation and retentionPOST /reload with a client credentials tokenputting a release in front of readers
The sync service to the server’s FHIR APIafter an activation, when [fhir] is configured$validate-code and $expand for the deployment’s own resourcesthe revalidation
The sync service to its webhookonce per run end, when [webhook] is configuredthe run summary: outcome, times and countstelling the operator a run ended
The console to the terminology serveralwaysthe FHIR requests a screen makes, with the signed-in user’s token on a writethe console’s purpose
The console to the OpenID Providerwhen [oidc] is configuredthe authorization code exchange, refresh and revocationsigning a user in

The crates on crates.io

Each library crate FerroTERM publishes on crates.io (rf2, concept-graph, concept-store, designation-index, sct-ecl, sct-scg, fhir-terminology, loinc, classification, dhd-thesaurus, gstandaard, labcodeset, icd11, rxnorm-rrf) is a product of its own. Each is a library with no network listener and no stored state of its own: of Part I(2), (a), (f), (j) and (k) apply to it as they apply above (cargo deny, the same lints, unsafe forbidden, the fuzzed parsers), and the points about configuration, access control, logging and removal are the integrating product’s. rf2 is published under Apache-2.0, which makes it free and open-source software under CRA Art. 3(48); the others are under the Business Source License 1.1, as the FerroHEALTH book explains (not free and open-source software).

Annex I Part II: vulnerability handling

Part II binds Cadasto B.V. Its policy is the same for every FerroHEALTH product and is published in the FerroHEALTH book (security); what is FerroTERM’s own is below.

PointHow the manufacturer applies it for FerroTERMStatus
(1) Identify components; SBOMa CycloneDX SBOM per release binary and an SBOM per image platform, each attested (verifying releases); the dependency list embedded in each binarymet
(2) Remediate without delay; security updates apart from functionalitythe family policy; a fix ships in the newest releasemet as policy
(3) Regular security tests and reviewsweekly fuzzing, CodeQL, OpenSSF Scorecard, clippy with the reliability lints, cargo deny, the conformance suitemet
(4) Disclose fixed vulnerabilitiesa GitHub security advisory for every fixed vulnerability (the family policy); none has been published yetmet as policy
(5) Coordinated vulnerability disclosurethe family policy, with FerroTERM’s routes and scope in SECURITY.mdmet
(6) Share vulnerability information; a contact addressGitHub private vulnerability reporting and the manufacturer’s addressmet
(7) Distribute updates securelyprovenance, attestations, checksums, digest-pinned images, crates.io Trusted Publishing; the automatic limb does not applymet
(8) Disseminate updates without delay, free of charge, with advisoriespublic releases; advisories under (4); whether “free of charge” holds for every commercial licence is a question for counsel the family book recordspartial

Revisions

CRA Art. 13(3) has the assessment “updated as appropriate during a support period”. It is revised when a release changes an asset or a control in the register, when a vulnerability or an incident shows a risk the register does not name, and when the intended purpose changes.

VersionDateChange
12026-10-21First assessment (#790)
22026-11-27Assesses the synchronisation service, released from v0.3.0: its purpose and environment, three foreseeable misuses, its assets, risks T11 to T15, its controls and status under each point of Part I(2), and its outbound flows; adds the OTLP export to the flows (#1365)
32026-11-27The synchronisation service refuses a plain http endpoint outside loopback: the misuse row and (e) record the control (#1372)
42026-11-27The syndication feed parser is fuzzed: (k) and T15 record the target (#1373)
52026-11-27A download is capped by download_limit: (h) and T15 record the control (#1374)
62026-11-27A resource from a FHIR API has no integrity field in any specification: (f) and T11 record it as a residual risk with its ground (#1375)
72026-11-27A listing answer is capped by listing_limit: (h) and T15 record the control (#1398)

CRA information for users

The Cyber Resilience Act (CRA, Regulation (EU) 2024/2847) has each product “accompanied by the information and instructions to the user set out in Annex II, in paper or electronic form” (CRA Art. 13(18)). This page carries that information for FerroTERM, point by point in the order of Annex II. Each section quotes what the point asks and gives FerroTERM’s answer, or links the page that already gives it.

Annex II opens: “At minimum, the product with digital elements shall be accompanied by:”. The product is each tagged FerroTERM release, as Cadasto B.V. publishes it: the ferroterm, ferroterm-build and ferroterm-sync binaries, the ferroterm and ferroterm-sync container images, the console’s ferroterm-console binaries and image, and the source archive (the scope of the risk assessment).

Warning

The quotations are from the Official Journal text of the CRA at EUR-Lex. No conformity assessment has been carried out, no EU declaration of conformity exists and FerroTERM carries no CE marking. This page gives the information Annex II lists; it does not say that FerroTERM, or a deployment of it, meets the Regulation.

The information is written in English. Whether that meets CRA Art. 13(18) in every Member State is a question the FerroHEALTH book records for counsel (questions for counsel).

1. The manufacturer

“the name, registered trade name or registered trademark of the manufacturer, and the postal address, the email address or other digital contact as well as, where available, the website at which the manufacturer can be contacted;”

Cadasto B.V. is the manufacturer of every FerroHEALTH product. Its contact details are in the FerroHEALTH book: the manufacturer.

2. The single point of contact for vulnerabilities

“the single point of contact where information about vulnerabilities of the product with digital elements can be reported and received, and where the manufacturer’s policy on coordinated vulnerability disclosure can be found;”

  • Report a vulnerability through GitHub private vulnerability reporting, or by email as SECURITY.md says. Do not open a public issue, and never put SNOMED CT or other licensed content in a report.
  • Receive information about vulnerabilities from the GitHub security advisories of the repository, published with the release that fixes each one.
  • The coordinated vulnerability disclosure policy is the manufacturer’s, shared by every FerroHEALTH product: security in the FerroHEALTH book.

3. Name, type and unique identification

“name and type and any additional information enabling the unique identification of the product with digital elements;”

  • Name: FerroTERM.
  • Type: software. A FHIR terminology server for SNOMED CT, LOINC and other clinical code systems, with its offline index build tool and its browser console.
  • Version: the release tag vX.Y.Z. The running server names it in its ferroterm starting log line and as software.version in every CapabilityStatement and TerminologyCapabilities it serves.
  • The artefacts of a version: each release asset carries a checksum and a signed build provenance, and the images are identified by digest (verifying releases).
  • Release date: the date on the release’s heading in the changelog, and software.releaseDate in the capability statements.

4. Intended purpose, security environment, essential functionalities and security properties

“the intended purpose of the product with digital elements, including the security environment provided by the manufacturer, as well as the product’s essential functionalities and information about the security properties;”

  • Intended purpose and essential functionalities: FerroTERM answers the HL7 FHIR terminology operations over the code systems a deployment loads, and keeps the CodeSystem, ValueSet and ConceptMap resources its clients write where the deployment names a database (what FerroTERM is; the basis of the risk assessment).
  • Security environment: what FerroTERM relies on and does not provide itself: a reverse proxy that terminates TLS, authenticates readers where you want them authenticated, and limits rates, timeouts and request bodies; an authorization server for the write routes, the admin listener and the console’s sign-in; and the protection of the disks that hold the indexes and the resource database (behind a reverse proxy).
  • Security properties: each point of CRA Annex I Part I(2), with how FerroTERM implements it and the evidence, is in the CRA risk assessment.

5. Circumstances that may lead to significant cybersecurity risks

“any known or foreseeable circumstance, related to the use of the product with digital elements in accordance with its intended purpose or under conditions of reasonably foreseeable misuse, which may lead to significant cybersecurity risks;”

  • Use in accordance with the intended purpose: the risk register rates each risk with the shipped controls.
  • Reasonably foreseeable misuse: the misuse table lists each case and what remains. The ones to know before you deploy: the read surface asks for no credential, so a licence that limits who may read the content is kept by the proxy; the server speaks plain HTTP; turning authentication off with writes or the admin listener enabled hands both to anyone who reaches them; and the server has no rate limit or timeout of its own.

6. The EU declaration of conformity

“where applicable, the internet address at which the EU declaration of conformity can be accessed;”

No EU declaration of conformity (CRA Art. 28) has been drawn up, so there is no address to give. FerroTERM is a default product, and its conformity is assessed by internal control, module A (CRA Art. 32(1)(a), Annex VIII Part I), the owner’s decision of 2026-10-24 (default or important product). No conformity assessment has been carried out yet. The assessment and the declaration apply from 11 December 2027 (CRA Art. 71(2)). When the declaration exists, it is published with each release it covers, and this section gives its address.

7. Technical security support and the end of the support period

“the type of technical security support offered by the manufacturer and the end-date of the support period during which users can expect vulnerabilities to be handled and to receive security updates;”

  • Only the newest release is supported. When a new release is published, every earlier release stops receiving fixes: there are no maintenance branches and no backports. Upgrading is free.
  • The end date: Cadasto B.V. keeps publishing security fixes for at least five years after each release (CRA Art. 13(8)), so the support period of a release ends five years after the month of its release date, and a fixed release keeps coming until then. A release itself is supported only while it is the newest.
  • The type of support: the manufacturer’s, the same for every FerroHEALTH product (how a fix reaches you), with FerroTERM’s supported artefacts in SECURITY.md § Supported versions.

8. Detailed instructions

“detailed instructions or an internet address referring to such detailed instructions and information on:”

8(a) Secure use from commissioning on

“the necessary measures during initial commissioning and throughout the lifetime of the product with digital elements to ensure its secure use;”

  • Commissioning: verify what you downloaded (verifying releases), install (install and run), put the server behind a reverse proxy that terminates TLS, and keep /health, /metrics and the admin listener off the public route (behind a reverse proxy). Before you enable writes or the admin listener, name an issuer and an audience in [auth] (authentication). Run the console with secure_cookie = true behind TLS (the console).
  • Throughout its lifetime: follow the release feed and the security advisories, upgrade to each new release, and replace an index by building it in a new directory and renaming it into place (reloading the served set).

8(b) How changes to the product can affect the security of data

“how changes to the product with digital elements can affect the security of data;”

  • Configuration. Naming FERROTERM__TERMINOLOGY__RESOURCES turns on writes and FERROTERM__ADMIN__LISTEN the reload; both demand [auth]. Setting [auth] enabled = false removes the credential check from both. Binding the admin listener to a public address exposes the reload. Granting a user of [[auth.basic.users]] a write scope in [basic_grants] grants writes, and so does registering a client for the server’s audience at the authorization server it trusts.
  • Outbound data. The usage report sends what the usage report lists, and FERROTERM__USAGE_REPORT__ENABLED=false stops it.
  • Upgrades. An upgrade replaces the binaries or the image; the indexes, the resource database and the configuration stay where they are, and the release notes say when an index needs rebuilding.
  • Changes to the source. A binary or image built from modified source is not a Cadasto B.V. release: its provenance does not verify, and the risk assessment does not describe it.

8(c) Installing security-relevant updates

“how security-relevant updates can be installed;”

Subscribe to the release feed (https://github.com/FerroHEALTH/FerroTERM/releases.atom) and watch the repository’s security advisories; the server does not look for newer releases itself. Verify the new release (verifying releases), then replace the binary or deploy the new image by digest and restart. The served indexes and the resource database are carried over.

8(d) Secure decommissioning, and removing user data

“the secure decommissioning of the product with digital elements, including information on how user data can be securely removed;”

FerroTERM keeps everything it holds in files and directories you name. To take a deployment out of service and remove its data, stop the server and the console, then delete:

  • every directory FERROTERM__TERMINOLOGY__INDEX names, which hold the licensed content the build wrote, and the release files you built them from;
  • the database file terminology.resources names, which holds the resources your clients wrote and the closure tables;
  • the directory usage_report.state_dir names, which holds the usage report’s instance id;
  • the server’s configuration file, the Basic users’ password hash files, and the console’s configuration and client secret.

The console keeps its sessions in memory, so stopping it ends them. Remove the copies FerroTERM cannot reach yourself: backups, volume snapshots, proxy logs, and the data held by the clients that read from the server. Sanitising the physical media is yours. To have the usage reports already sent erased, follow the usage report’s privacy notice.

8(e) Turning off automatic installation of security updates

“how the default setting enabling the automatic installation of security updates, as required by Part I, point (2)(c), of Annex I, can be turned off;”

FerroTERM installs no update by itself, so there is no such setting to turn off. The risk assessment records why the limb does not apply (the justification).

8(f) Information for an integrator

“where the product with digital elements is intended for integration into other products with digital elements, the information necessary for the integrator to comply with the essential cybersecurity requirements set out in Annex I and the documentation requirements set out in Annex VII.”

The server, the console and their images are not intended for integration into another product; other software calls a running server over the FHIR API. The library crates on crates.io are intended for integration, and each is a product of its own: each crate’s README.md and docs.rs page describe its API, and the crates on crates.io says which Annex I points each carries and which are left to the integrating product.

9. The software bill of materials

“If the manufacturer decides to make available the software bill of materials to the user, information on where the software bill of materials can be accessed.”

Cadasto B.V. makes the software bills of materials available. Each release publishes a CycloneDX SBOM of the ferroterm, ferroterm-build and ferroterm-sync binaries as release assets and an SBOM attestation per platform of each image, and the release binaries embed their dependency lists (what a release carries).

Build and test

This page is a short pointer for contributors. The deeper design and the working discipline live in the repository, and this book keeps to what you need to get building.

Read these first

The workspace

One Cargo workspace, Rust 1.99, edition 2024: crates/* are the libraries (rf2, loinc, classification, rxnorm-rrf, icd11 the release readers; concept-graph, concept-store, designation-index the substrates; fhir-terminology the engine and providers), app/ferroterm-server is the axum server, app/ferroterm-sync the synchronisation service and app/ferroterm-console the console, and tools/* are the offline build, the benchmark harness, the synthetic test fixtures and the forwarder detector. Every crate carries a CLAUDE.md with its local discipline.

The local gates

scripts/checks/fast.sh is the default local gate: rustfmt, clippy, nextest and the doctests over the packages your change reaches (--dry-run prints the plan). CI runs every package and stays the full gate, with these commands over the whole workspace:

$ cargo fmt --all --check
$ cargo clippy --workspace --all-targets --all-features -- -D warnings
$ cargo nextest run --workspace --locked
$ RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --document-private-items
$ cargo deny check
$ scripts/checks/comment-style.sh --all

Scope a command to a crate with -p <crate> while you iterate, then run the full --workspace gates before you push. Cargo.lock is committed and CI builds with --locked. Shell scripts stay clean at shellcheck; workflows at actionlint and zizmor.

Conformance in CI

scripts/checks/tx-ecosystem.sh runs the HL7 terminology ecosystem suite against a release build of the server with the FHIR Validator’s txTests mode (the one place a JVM runs, in CI, never in the server) and compares the result with the committed pass list under conformance/tx-ecosystem/. A listed test that fails is a regression; a test that starts passing is added in the same change. --mode icd-11 --index <dirs> runs a code system mode by hand over local artifacts. A local run needs a Java runtime: the script uses $JAVA_HOME/bin/java when JAVA_HOME is set, the java on PATH otherwise, and stops before it starts the server when neither answers java -version.

The two layers

  • The FHIR model is the generated fhir-types crate, taken from crates.io and generated in another repository. Never re-model a FHIR shape locally. See The FHIR model.
  • Everything else is hand-written, idiomatic Rust, with the FHIR and SNOMED specifications as the authority: a conformance-facing test cites the spec clause it asserts, and a decision the specs leave open is marked as the project’s own.

No code system content in the repository

Tests use shaped, synthetic content only: the testkit writes a small SNOMED-shaped edition, a LOINC-shaped release, ICD-shaped ClaML and CMS files, an RxNorm-shaped RRF release, and an ICD-11-shaped API cache, all with invented identifiers. Never commit a real release or content extracted from one. See Loading code systems for the licensing rule; a licensed release for local runs lives under the gitignored data/ directory.

Correctness oracles

The specifications are the oracle. Reference servers (Snowstorm, the Dutch national server, tx.fhir.org) settle edge cases the specifications leave silent, and a divergence from them is investigated, never adopted blindly.

The FHIR model

The FHIR layer of FerroTERM is generated, not hand-written, and it is generated in another repository. This page explains what that means for a contributor.

Why the FHIR layer is generated

HL7 publishes the whole FHIR type system and every operation as machine-readable StructureDefinition and OperationDefinition resources, in versioned packages. Rust modules are generated per version from those packages, so each version’s operation surface is correct by construction: a parameter that R5 adds appears in the R5 module because the R5 package declares it.

Where it comes from

The model is the fhir-types crate. The FerroBRIDGE repository vendors the pinned HL7 packages, runs the generator, and publishes the crate. FerroTERM depends on it from crates.io, at the version docs/VERSIONS.md pins and the root Cargo.toml requires. No HL7 package is vendored in this repository.

The rules for a contributor

  • Consume the generated types directly. Never re-model or re-serialize FHIR by hand, and never shadow a generated shape with a local type, an adapter layer, or a placeholder value.
  • A shape that is wrong or missing is fixed upstream. Open it on the FerroBRIDGE tracker; the fix is a generator change there, released as a new version of the crate, then taken here.
  • Taking a new release moves three things in one change: the requirement in the root Cargo.toml, the pin row in docs/VERSIONS.md, and Cargo.lock. scripts/checks/versions.sh fails when they disagree, so the served model and the recorded pin cannot drift apart. Dependabot opens that pull request by itself when a release lands.

The generator design follows the sibling project FerroEHR, which generates its openEHR model from vendored machine-readable specs the same way.

The performance gate

Every pull request that changes what the server or the sync service 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 builds of ferroterm and ferroterm-sync with ferrohealth-perf, the performance gate every FerroHEALTH server shares. It fails when a service 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. .github/workflows/perf.yml pins the tool’s version.

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 a quarter or more apart in latency and CPU per request, so a baseline stored from one machine fails unchanged code on another, and 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;
  • for a merge group, its base on main;
  • 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, sync service and fixture writer of the base, from git archive of the base commit under target/perf-base/, and of the head. A base must define the server and the sync service; a base without the fixture writer builds the two services alone. scripts/perf/gate.sh run starts two instances of each side. Each instance writes its own copy of the scaled synthetic SNOMED CT edition of the testkit, 50,000 invented concepts, with its side’s ferroterm-fixture snomed-scaled, the head’s for a base without one. It starts a server over that edition and its side’s e2e CodeSystem fixtures, with its admin listener on: the head’s on ports 8080 and 8081 and on 8082 and 8083, the base’s on 8090 and 8091 and on 8092 and 8093. Against each server it starts a sync service with a daily schedule whose next run is twelve hours away: the head’s on 8181 and 8184, the base’s on 8191 and 8192. Then it runs ferrohealth-perf ab once per service, with both instances of each side:

  1. Idle. No request for 60 seconds. The head’s CPU time must stay under 2 % of one core. The limit is absolute and compared with nothing. Neither service holds a database, so the gate counts no transactions.
  2. Load, in pairs. Four pairs of load phases, each phase 50 requests a second after a 10-second warm-up, open loop, against one side: 180 seconds for the server, so each of its single-request groups holds 1,000 samples and its p99 rests on the 10 slowest of them, and 60 seconds for the sync service, whose two groups hold 1,500 each. The first two pairs take each side’s first instance and the next two its second, so each instance meets both sides leading. The two phases of a pair run at once, the arrivals of one side half an interval after the other’s, so both sides meet the runner in the same state; run one after the other, the runner’s speed moved by up to a third between phases and put an unchanged head up to a third off its base. For the server (perf/server/plan.toml): $lookup, $validate-code on a code system and on an ECL value set, $expand with a text filter, two ECL expansions, $translate over the implicit ICD-10 map and $subsumes, through the R4 base. For the sync service (perf/sync/plan.toml): GET /runs and the readiness probe. Every request must be answered with the status the plan names.

Then the script starts a head sync service whose schedule is every = "1ms", the shortest interval the service accepts, so its scheduler starts each run the moment the last one ends, and runs the idle phase of perf/sync/busy-loop.toml against it. That run must fail on idle CPU, or the job fails: it proves the gate still catches a background worker that never waits.

Reading the report

Each load metric (throughput, latency p50, p95 and p99 per group, peak memory and CPU time per request) is judged on the median over the pairs of the head’s value over the base’s in that pair. Its noise floor is the widest of the two sides’ spread, how far a side’s worst phase strayed from its median, and the spread of those pair ratios. Two instances of one build on one runner can differ for a whole run. With two instances a side, that difference reaches only the pairs on one instance, so it widens the floor and does not fail the head; a regression reaches both head instances, so every pair. A metric breaches when the median ratio is worse than the larger of its tolerance and that floor; the tolerances are each plan’s [tolerance] table: latency and CPU 25 %, throughput 20 %, memory 20 %. 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 one report per service: the outcome, the base commit, the head’s idle limit, 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 with another status are listed and fail the gate; those the base answered with another status, such as a route the change adds, are notes, and a metric only one side 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, the eight services’ logs and the base commit, so ferrohealth-perf compare --report target/perf/server/latest.json judges a report again without a server.

The tool exits 0 for a pass, 1 for a breach or a request answered with another status, 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.

Latest numbers

These numbers come from the gate’s first run on two instances per side and ferrohealth-perf 0.22.0, in the pull request that moved it there (#1528, commit 0cfd5c7f). The runner was a 4-vCPU hosted runner, an AMD EPYC 9V45 with 15 GiB of memory, holding 50 requests per second. Each figure is the head’s median over its judged pairs, with the base beside it, and the ratio is the median over the pairs of the head’s value over the base’s. Both builds are the same code, so the columns show how close two arms on one runner come. Latencies are in milliseconds.

The server needed five pairs to get four it could judge: in one, the largest group’s p50 interval was too wide to tell. In the two server pairs on each side’s second instance, every group ran slower than in the three on its first, in both sides alike: subsumes p50 was 0.13 to 0.18 ms on the first instances and 0.28 to 0.31 ms on the second. Both arms moved together, so the pair ratios held near 1.

Server groupp50p95p99Base p50 / p95 / p99
lookup0.270.390.480.27 / 0.39 / 0.49
validate-code0.310.460.550.31 / 0.48 / 0.72
expand-filter1.701.972.591.71 / 2.00 / 2.47
ecl0.420.530.680.42 / 0.53 / 0.62
translate0.420.520.600.41 / 0.52 / 0.59
subsumes0.230.330.530.23 / 0.32 / 0.41
Sync groupp50p95p99Base p50 / p95 / p99
runs0.120.190.340.12 / 0.19 / 0.35
readiness0.110.170.390.11 / 0.17 / 0.38
ServiceCPU per requestPeak memoryIdle CPUIdle memory
server0.43 ms (base 0.43)98.3 MiB (base 100.1)0.0 %95 MiB
sync0.070 ms (base 0.068)16.6 MiB (base 16.7)0.0 %16 MiB

The widest noise floor was 1.86 on the server and 1.47 on the sync service, both on a p99. The self-test’s sync service, whose schedule never waits, used 7.3 % CPU at idle against the 2 % limit, so the gate failed it as it should.

Retries

Some runners stall every route for a whole job: on an AMD EPYC 9V74 the tails reach 100 to 300 ms while the p50 holds. A phase where every route’s p99 is over ten times its p50 at once is a stalled runner: it is reported, left out of the judgement, and the run exits 2. An attempt that ends with exit 2 runs again on a fresh runner on any CPU model, since a run that cannot be judged says nothing about the code. An attempt that ends with exit 1 runs again only on a CPU model the perf workflow lists in STALL_PRONE. At most two retries run, and the gate passes when the last attempt passed. A breach on any other model fails at once. The job summary names each attempt’s CPU model, its verdict and why a retry ran.

Changing a plan or the tolerances

The plans are the head’s: a change to perf/server/plan.toml or perf/sync/plan.toml is measured on both sides in the same pull request. A tolerance moves only in a pull request that says why.

Changelog

All notable changes to this project are documented here.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Maintenance rule: every pull request that changes user-visible behaviour (the REST/terminology surface, ECL, validation, configuration, CLI, or container/deployment artifacts) adds a fragment under changelog.d/ in the same PR (changelog.d/README.md) and leaves this file alone. Cutting a release runs scripts/release/changelog.sh --assemble <version> <date>, which moves the fragments here under the version and its date.

Unreleased

0.4.9 - 2026-11-26

Added

  • ConceptMap/$translate checks every target code it returns against its code system on every version, as the terminology ecosystem IG 1.11.0 asks: a target code its code system does not hold keeps its match and adds one error parameter, and a match whose target code system the server does not know carries a note part saying the code has not been validated. A code system whose content is not complete cannot call a code invalid, so it triggers neither. The console shows both beside the server’s message (#1308).
  • Every TLS listener and outbound client prefers the hybrid key exchange X25519MLKEM768 (RFC 10024) and still connects to a classical-only peer, through ferrohealth-server 0.12.4 and rustls’s prefer-post-quantum, which the offline build’s ICD-API client now turns on as well. The post-quantum inventory (docs/post-quantum.md, conformance/post-quantum.tsv) lists every cryptographic use, CI holds it to the tree, and the README badge counts its safe uses (#1321).
  • The server serves NamingSystem read and search on every version: it keeps the NamingSystem resources of each package directory beside its terminology (ferroterm-build --fhir-package imports them too), stores written ones with a resource database, and answers the search parameters kind, value, type, id-type and status, so a client resolves an OID, a URI or a local name such as an HL7 v2 assigning authority to its namespace. The capability statement declares the resource (#1322).

Changed

  • FerroTERM moves to fhir-types 0.3.0, whose terminology feature carries the NamingSystem model and the ecosystem $translate error output and match.note part, and ferrobridge-term 0.22.0, built on it (#1322).
  • A request that leaves out an input the operation needs (no code system, no code) answers issue.code invalid with the invalid-data tx-issue-type, and every refusal carries its sentence once, in issue.details.text, with no copy in issue.diagnostics. The OperationError::Required variant of fhir-terminology is gone; such a request is OperationError::Invalid (#1326).

Fixed

  • $lookup with property=* returns abstract false and the notSelectable property for a selectable concept, and returns definition only when the request names no property, * or definition (#1325).
  • ValueSet/$validate-code reports a coding with no system inside a CodeableConcept that matches nothing as a warning at that coding, and names a Coding with neither system nor code with the message id Coding_has_no_system_or_code__cannot_validate (#1327).
  • An R4 and R4B value set’s compose.property, carried in the R5 cross-version extension http://hl7.org/fhir/5.0/StructureDefinition/extension-ValueSet.compose.property, selects the properties of its expansion as ValueSet.compose.property does on R5 (#1328).
  • An R4 and R4B $translate with reverse=true reports each match as the map states it, the map’s target in concept and its source in sourceConcept, as R5’s targetCode does, and a reverse translation that finds nothing names the code, its system and the target system (#1329).

0.4.8 - 2026-11-25

FerroTERM runs behind FerroSMART, the FerroHEALTH SMART App Launch authorization server, with an issuer table that names the issuer alone, and reads every caller from the token’s standard claims. The configuration of [auth] changes shape: read Changed and Removed before you upgrade. For the European Health Data Space, ferroterm-build loads the code systems the draft EEHRxF implementing act binds and an operator-supplied MyHealth@EU Master Value Sets Catalogue, a ConceptMap’s Provenance reads by the map’s canonical, and /r6 serves FHIR R6 6.0.0-snapshot1. FerroTERM ships none of the licensed releases it loads.

Added

  • ferroterm-build --fhir-package <TGZ> imports an operator-supplied FHIR NPM package, such as the MyHealth@EU Master Value Sets Catalogue, into <out>/<name>-<version>/ for terminology.code_systems, keeping each CodeSystem, ValueSet, ConceptMap and Provenance with its canonical and version. --fhir-package-sha256 refuses a file whose digest differs from the pin, and two releases load side by side and answer by valueSetVersion (#1281).
  • ferroterm-build loads the code systems the draft EEHRxF act binds from the release file you download from each publisher, each served under the canonical URI HL7 Terminology or the published FHIR CodeSystem names, versioned from the release, through $lookup, $validate-code and $expand:
    • ORPHAcodes (--orpha, the Orphadata nomenclature files, one per language), the DICOM Controlled Terminology (--dicom, NEMA’s dcm.owl, with the PS3.16 context group value sets expanding over the loaded DCM codes) and EDQM Standard Terms (--edqm, saved Standard Terms API responses) (#1282);
    • EMA SPOR master data from saved SPOR API responses (--spor: RMS terms of one list, OMS organisations, SMS substances and PMS products), and the SNOMED CT Global Patient Set freeset as a value set over the loaded edition (--gps) (#1282);
    • NPU (--npu, the IFCC code file), ICD-O-3 (--icdo, the WHO topography and morphology tables), EMDN (--emdn, the Commission’s workbook) and ISCO-08 (--isco, the ILO structure workbook) (#1282);
    • the UDI device identifiers (UDI-DI) of one issuing entity from a device table you export (--udi with --udi-issuer and --udi-version): the AccessGUDID device.txt, or an EUDAMED or issuing entity export as a delimited file or workbook, served under the URI FHIR names for the issuer (Device.udiCarrier.issuer) (#1295).
  • The EHDS identifier types of the EEHRxF act (Annex X: the HL7 identifier type with NI, HI, HIN, SS, REGPID and REGION) expand as one value set, https://ferroterm.eu/fhir/ValueSet/ehds-identifier-type, on every FHIR version, with FerroTERM’s own code system for the four codes HL7 v2 table 0203 lacks (#1282).
  • A ConceptMap’s Provenance (who validated the map, and when) reads by the map’s canonical: GET {base}/Provenance?target=<url|version> answers a searchset of every Provenance whose target.reference is that canonical, and Provenance/{id} reads one. The server keeps the Provenance resources of every package directory it loads, and a deployment with a resource database accepts them over the REST API like the terminology resources, behind the same SMART write scopes. Every $translate match names its map as url|version, so a receiver records which mapping version produced a code (draft EEHRxF implementing act Art 6(3)) (#1283).
  • The README shows two EHDS badges, labelled self-tested: the MyHealth@EU MVC 10.1.0 (CI) import over a synthetic fixture, and the loaders of the draft EEHRxF act’s Art 6 code systems that a synthetic fixture proves (16 of 16). scripts/checks/ehds-matrix.sh holds each counted loader to an existing test, and the badge script refuses a label that claims a certification (#1284).

Changed

  • Breaking: FerroTERM moves to ferrohealth-smart 0.34, with ferrohealth-session 0.29, ferrohealth-server 0.12, ferrohealth-telemetry 0.5.1 and FerroUI 0.6.11, and reads every caller from the token’s standard claims. [auth.issuer.<name>] trusts a SMART authorization server such as FerroSMART with its issuer alone: with no audience key the audience is the served version bases under fhir.base_url, and such an issuer opens the write routes and not the admin listener. A token’s typ is at+jwt or application/at+jwt, scope is required, a token whose sub is its client_id is a backend service, and any other names a user by its fhirUser. The authorization server’s registry decides which clients reach FerroTERM, through the aud it writes. The book gains Running behind FerroSMART (#1255).
  • Breaking: in the server and the sync service every issuer is a named table, [auth.issuer.<name>], in place of the [[auth.issuer]] array. A key of a named issuer can be set as FERROTERM__AUTH__ISSUER__<NAME>__<KEY>, and the party, federation, attributes and profile tables sit under their issuer (#1265).
  • The SMART discovery document and the capability statement name the issuer ferrohealth-smart’s shared rule describes, never the first issuer table: the one [auth] described_issuer names, which the server accepted without reading before, else the one SMART issuer whose metadata the server holds, never a federation issuer unnamed. Breaking: several SMART issuers and no described_issuer refuse the start, naming them and the key, and so does a described_issuer naming an unknown issuer or one without metadata (#1250).
  • Breaking: a Basic user’s scopes and roles move from [[auth.basic.users]] to the new top-level [basic_grants] table of the server and the sync service, one [basic_grants.<user>] table per user-id. A scopes or roles key under [[auth.basic.users]] is refused as an unknown key. A grant naming a user [[auth.basic.users]] does not list refuses the start, and so does a grant of a system/ scope (#1249).
  • Every 401 and 403 challenge carries the refusal’s stable reason code as error_description (RFC 6750 §3), such as expired or scope-not-granted; the OperationOutcome stays the same for every invalid token (#1265).
  • [server] max_concurrent_requests is always on, 256 by default, where it was unbounded when unset (#1249). A request past it waits up to server.admission_wait (100 ms by default) in a queue of at most server.max_waiting_requests places (256 by default) before it is answered 503, and the server’s metrics count the waits and the refusals (#1265).
  • [server] request_decompression, off by default, decodes a request body sent in gzip or Brotli, with server.body_limit holding the decoded bytes as well (FerroHEALTH/FerroSYS#408) (#1268).
  • /r6 serves FHIR R6 6.0.0-snapshot1 in place of 6.0.0-ballot5: its CapabilityStatement and TerminologyCapabilities state that fhirVersion, and the R6 core terminology is regenerated from hl7.fhir.r6.core 6.0.0-snapshot1. The surface stays ballot-tracking and says so (#1301).
  • A value set whose include pins a version of a code system the server does not hold answers with that system and version named (“A definition for CodeSystem … version … could not be found”), so the operator sees which release to load (#1281).
  • FerroTERM moves to fhir-types 0.2.0, whose terminology feature carries the Provenance model and whose r6 model is 6.0.0-snapshot1, and to ferrobridge-term 0.19.0, built on it (#1283, #1301).

Removed

  • The issuer keys kind (other than federation), profile = "…" (the preset name), profile_file and scopeless_subjects, the [auth.idp] table, the persons, patients and machines kinds and the profile keys that listed clients or described a vendor’s tokens (first_party_clients, delegates, audience_delegates, issuer_client_is_person, act_represents_patient, app_only, client_claims and the rest). A configuration that sets one is refused as an unknown key: drop kind and preset from a SMART issuer’s table and register its clients at the authorization server (#1255).

Fixed

  • ferroterm config check and every error that names an issuer render an issuer identifier written with userinfo (https://user:password@…) as https://***@…, in every table that names an issuer and in the refusal of a role issuer (ConfigError::RoleIssuer) (#1235, #1240).
  • The server, the sync worker and the operator console move to ferrohealth-telemetry 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) (#1246).
  • A tx-resource supplement for a code system version the request does not hold no longer refuses the request with 404: it applies to nothing, as the terminology ecosystem IG says a supplement applies only to the version it names, and a request that requires it with useSupplement is refused as naming a missing supplement (#1287).
  • A value set whose compose, include, exclude, concept or filter carries a modifier extension refuses expansion and validation with 422, business-rule and the vs-invalid classification, naming the extension and the element, where the server ignored the extension and processed the element (FHIR Extensibility, modifierExtension) (#1288).
  • ValueSet/$validate-code with inferSystem refuses with 404 naming the code system when the value set includes a code system the server does not hold that may contain the code, where it inferred the system from the other includes (#1289).
  • A value set filter on a property that a supplement in use gives selects the codes the supplement gives that value, alone or beside filters on the code system’s own properties, in $expand and $validate-code, where it answered 422. Of two versions of one supplement in scope, only the one a request names by version applies, else the latest, and used-supplement reports that one (#1290).
  • The $expand text filter searches one language: the first language the request asks for that the code system has, else the code system’s own, over the designations of supplements in use as well. A request that names no language no longer matches designations in other languages (#1291).

Security

Shipped with functional changes because: only the newest release is supported (SECURITY.md), so a security-only patch published beside this release would be out of support the moment this release lands; the fix is a lockfile move with no behaviour change of its own.

  • The server takes url 2.5.9 in place of 2.5.8 (RUSTSEC-2026-0592, GHSA-hrj5-67jp-wqp9): every earlier url lets Url::origin() recurse without a bound on a nested blob: URL, so a crafted URL overflows the stack (#1270).
  • The operator console takes cookie 0.18.3 in place of 0.18.2 (RUSTSEC-2026-0594, GHSA-8wcq-xq25-7fhm): 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 (#1275).

0.4.7 - 2026-11-11

Changed

  • ferroterm.eu takes the FerroHEALTH family layout: the hero badge is rendered from the workspace version at assembly, every page’s stylesheet link carries a content hash, the console section shows the console as its own image with its screenshot, the book opens in its teal light and navy themes with its parts in the order Evaluate, Integrate, Operate, Contribute and a Changelog page, and the README quick start is the anchored steps of scripts/quickstart/tour.sh, which a new CI job runs against the published image (#1226).
  • The quick start downloads the release’s self-contained compose.yaml, now attached with its .sha256sum, and starts it with an empty index directory in place of a docker run of the image. CI runs the README’s quick start over the repository’s compose.yaml, the file each release attaches, and refuses a host path it would read from the repository (#1228).

Fixed

  • ferroterm config check no longer prints the password of an [[auth.issuer]] issuer written with userinfo (https://user:password@…): it renders as https://***@…. The server moves to ferrohealth-smart 0.18, which holds every configured issuer identifier as a SecretUrl, with ferrohealth-session 0.12 and ferrobridge-term 0.5, the releases on the same line (#1230).
  • ferroterm-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 (#1232).

0.4.6 - 2026-11-10

Removed

  • The named refusals of the configuration keys 0.4.5 retired. The console’s [ferroterm] base_url, timeout, sync_url and admin_url, the sync service’s server_admin_url, [server_admin_credentials], fhir_base_url, webhook_url and [nts] client_id, client_secret and client_secret_file, and base_url and issuer in a [[source]] block’s config are now unknown keys, which the strict load refuses like any other key it does not read. A deployment that moved to the endpoint tables in 0.4.5 changes nothing (#1202).

0.4.5 - 2026-11-10

Changed

  • Every outbound call of the console and the synchronisation service goes through the family endpoint table of ferrohealth-smart: url, timeout, connect_timeout, retry, tls and, for the sync service, credentials. The client follows no redirect, and a call that did not connect, timed out or met a 5xx is tried again as retry allows; the console sends a create once. In 0.4.5 alone each earlier key refuses the start naming its replacement. Upgrade step for the console: write [ferroterm.server] url and timeout for [ferroterm] base_url and timeout, [ferroterm.sync] url for sync_url and [ferroterm.admin] url for admin_url (FERROTERM_CONSOLE__FERROTERM__SERVER__URL and so on); public_url stays, and an endpoint table takes no credentials. Upgrade step for the sync service: write [server_admin] url for server_admin_url, [server_admin.credentials.oauth] for [server_admin_credentials.oauth], [fhir] url for fhir_base_url and [webhook] url for webhook_url (FERROTERM_SYNC__SERVER_ADMIN__URL and so on). A [fhir] URL whose last segment names no served release now refuses the start, and the revalidation sends $validate-code and $expand as POST (#1196).
  • The server, the synchronisation service and the console take the family rounds of 2026-11-09 and 2026-11-10: ferrohealth-config 0.4.1, ferrohealth-telemetry 0.4, ferrohealth-server 0.8.1, ferrohealth-usage-report 0.4, ferrohealth-smart 0.17.0, ferrohealth-session 0.11.0, ferrobridge-term 0.4.0 and fhir-types 0.1.130, with the performance gate on ferrohealth-perf 0.8 (#1196).
  • A patients issuer may set act_represents_patient = true on its [[auth.issuer]] table (ferrohealth-smart 0.14): a patient’s token that carries an RFC 8693 act claim is then the patient’s representative. Without the key such a token is refused 401 as no caller of the issuer, and on another kind of issuer the key refuses the start. A terminology resource sits in no patient’s compartment, so the representative, like the patient, is refused every write with 403. Upgrade step: set act_represents_patient = true on a patients issuer whose tokens name the person acting for the patient in act (#1197).
  • The server and the synchronisation service exit with code 78 (EX_CONFIG, sysexits(3)) on a configuration they refuse, as the console already did, so an orchestrator tells a bad configuration from a failure to serve. healthcheck on a configuration that does not load writes <binary>: not up: <reason> and exits 1. All three binaries run through the family run path of ferrohealth-server 0.8.1: one <binary>: cannot start: <reason> line with every cause on a refusal, config check printing the running tree with every secret redacted, and the telemetry started and flushed by the family. Upgrade step: a supervisor or script that matched exit code 1 for a refused configuration matches 78 (#1198).
  • The synchronisation service calls the Nationale Terminologie Server through the family outbound client of ferrohealth-smart 0.17, built from [nts], which is now the family endpoint table: url, timeout ("1h", since a download of a whole edition is one call), connect_timeout ("30s"), retry, tls and the client credentials grant under [nts.credentials.oauth], whose issuer, client_auth = "client_secret_post" and refresh_margin = "1m" default to the service’s realm. A listing, a page of the FHIR API or a download that did not connect, timed out or met a 5xx is tried again as retry allows. In 0.4.5 alone each earlier key refuses the start naming its replacement. Upgrade step: write [nts.credentials.oauth] client_id, client_secret and client_secret_file for [nts] client_id, client_secret and client_secret_file (FERROTERM_SYNC__NTS__CREDENTIALS__OAUTH__CLIENT_ID and so on), and [nts] url and [nts.credentials.oauth] issuer for a [[source]] block’s base_url and issuer (#1203).
  • A key an endpoint table leaves out keeps the product’s default for it. The synchronisation service’s [server_admin] keeps timeout = "30min" and one try when the file writes only its url, and the console’s [ferroterm.server] keeps timeout = "30s"; [fhir], [webhook], [ferroterm.sync] and [ferroterm.admin] take the family’s defaults. Upgrade step: none (#1206).
  • The published crates (rf2, concept-graph, sct-ecl, fhir-terminology and the rest of the line) follow The Cargo Book’s SemVer rules, judged by cargo-semver-checks 0.51.0 on every pull request and merge-queue entry that moves the line and again in the release plan against crates.io: a compatible change moves the patch, and a breaking change, a public dependency moved to another compatibility line included, moves the minor at patch 0, so a caret requirement such as rf2 = "0.1" never takes a break. Upgrade step: none (#1208).
  • A TLS refusal of an outbound endpoint table names the key under its own tls table, server_admin.tls.trust_roots_file where 0.4.4 named server_admin.trust_roots_file (ferrohealth-smart 0.17). Every OAuth and OpenID Connect endpoint URL a table names, such as the console’s [oidc] token_endpoint and the sync service’s [server_admin.credentials.oauth] token_endpoint, renders with any userinfo and query masked in config check and the logs. Upgrade step: none (#1215).

Removed

  • The console no longer names [ferroterm] timeout_ms when it refuses the key: the 0.4.4 refusal is gone, and the key is now an unknown key that the strict load refuses like any other. Upgrade step: write [ferroterm] timeout as a duration such as "30s" (#1184).
  • The named refusals of the keys 0.4.4 retired in the family crates are gone, so each is now an unknown key that the strict load refuses: the [server] keys that named their unit (request_timeout_ms, body_limit_bytes and the rest), the [auth] and issuer keys that named theirs (clock_skew_seconds, timeout_ms and the rest), auth.ca_file, the console’s [session] and [oidc] keys that named their unit, oidc.ca_file, and telemetry.otlp.trust_roots_file and client_identity_file. The earlier [auth] shape, a flat issuer = "…" or an issuer setting on [auth] itself, is refused the same way. Upgrade step: none for a configuration that started on 0.4.4 (#1196).

0.4.4 - 2026-11-09

Changed

  • SECURITY.md and the post-market record name 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 (#1175).
  • The server, the synchronisation service and the console read every span of time as a duration and every amount of data as a size (ferrohealth-config 0.3): a whole number and a UCUM unit ("500ms", "30s", "10min", "12h", "7d") or an IEC binary unit ("1MiB"). A key that holds one no longer names its unit, and in 0.4.4 alone the old key refuses the start, all of them at once, each naming its replacement. Upgrade step: in [server], write request_timeout, header_read_timeout, idle_timeout, body_limit, drain_delay, shutdown_timeout, retry_after, compression_min_size and [server.tls] reload_interval for the keys ending in _ms, _s or _bytes; on each [[auth.issuer]], clock_skew, jwks_max_age, jwks_refresh_interval, timeout and introspection.cache_max_age; in [auth.basic], cache_ttl; on [server_admin_credentials.oauth], refresh_margin and timeout; in the console, [ferroterm] timeout, [oidc] timeout and [session] sign_in_timeout, idle_timeout and absolute_timeout. The FERROTERM__…, FERROTERM_SYNC__… and FERROTERM_CONSOLE__… variables follow the keys (#1182).
  • [schedule] every of the synchronisation service is a duration of the same form, so "24h" and "90min" read as before, while the ISO 8601 "PT24H", a compound such as "1h 30m" and m for minutes refuse the start. Upgrade step: write one whole number and one unit, min for minutes (#1182).
  • Every outbound TLS table takes the same keys (trust_roots_file, client_identity_file or client_identity, min_version), read once at start through ferrohealth-server: [auth.tls] replaces auth.ca_file, [telemetry.otlp.tls] replaces telemetry.otlp.trust_roots_file and client_identity_file, a client credentials grant’s tls table replaces its ca_file, client_certificate_file and client_key_file, and the console’s [oidc.tls] replaces oidc.ca_file and [oidc.tls] client_certificate, client_key and client_key_file. In 0.4.4 alone, each old key refuses the start naming its replacement. Upgrade step: move each file under the table’s tls key, and join a separate certificate and key into one PEM for client_identity_file (#1182).

Security

Shipped with functional changes because: the fixes arrive in ferrohealth-smart 0.13, whose line FerroTERM takes at 0.14 together with the configuration types that release requires, so the advisories and the key changes cannot ship apart.

  • ferrohealth-smart moves from 0.10.1 to 0.14.0. A token, a key set, a token endpoint answer or an introspection or metadata body the server, the synchronisation service or the console refused could reach their log through the error that refused it: the JSON reader’s error quoted the value it stopped at (GHSA-mhv7-3975-6xq3, fixed in 0.13.0), and a refused key set, introspection or metadata answer kept its body up to 1 MiB in an error whose Debug printed it (GHSA-5qm7-v4fw-p2v9, fixed in 0.13.1). Affected: every FerroTERM release up to 0.4.2 (CWE-532, CWE-209) (#1182).

0.4.3 - 2026-11-09

Changed

  • The console’s $lookup, $validate-code, $subsumes, $translate and $expand requests and readings, and the sync service’s revalidation, now go through FerroBRIDGE’s ferrobridge-term client, which writes each input under the name the serving release’s OperationDefinition gives it, in the order it declares them. The address the console shows for a run lists its parameters in that order, and an answer that leaves out a required output (result, outcome, or a $lookup name or display) is shown as an answer that did not read. The sync service takes the FHIR release it writes in from the last segment of fhir_base_url (r4, r4b, r5 or r6), and reports the revalidation as not run when that segment names none (#1164).
  • The NTS add-on obtains its token through ferrohealth-smart’s client credentials TokenSource, which reads the token endpoint from the realm’s OpenID Connect Discovery metadata, caches the token and renews it a minute before it expires. A [[source]] block of the add-on takes issuer, which defaults to https://terminologieserver.nl/authorisation/auth/realms/nictiz, in place of reading <base>/fhir/.well-known/smart-configuration. nts.client_id has no default any more (#1165).
  • The server, the sync service, the console and the add-ons move to ferrohealth-smart 0.10.1, ferrohealth-session 0.4.0 and ferrohealth-config 0.2.10. An array of tables in the configuration, such as [[auth.issuer]], can now be set from the environment by element index (FERROTERM__AUTH__ISSUER__0__URL) or with --set auth.issuer.0.url=…, so a deployment configured only through the environment can declare its issuers; an index with a leading zero or one that skips an element is refused at load (#1166).
  • The published crates move to 0.1.146 and require fhir-types with the r4, r4b, r5, r6 and terminology features and no default features, so they no longer pull in the STU3 model. A crate consumer that read fhir_types::stu3 through them names the stu3 feature on its own fhir-types requirement. The server requires ferrobridge-term 0.1.148 with the same four FHIR releases (#1170).

Removed

  • The NTS add-on no longer logs in with the resource owner password grant or a refresh token, and the sync service’s [nts] section no longer takes username, password or password_file; each is refused at load. RFC 9700 §2.4 says the password grant MUST NOT be used, and the NTS realm publishes the client credentials grant. Set nts.client_id and nts.client_secret (or nts.client_secret_file) to a confidential client Nictiz issues (#1165).

Fixed

  • ferroterm-sync refuses to start with a schedule.every interval of zero or less and names the key and the value. It used to accept one and start each run the moment the last one ended, writing a run record each time (#1152).

0.4.2 - 2026-11-06

Changed

  • The server, the synchronisation service and the console take ferrohealth-smart 0.9.0 and ferrohealth-session 0.3.0. Every issuer of [auth] is an [[auth.issuer]] table of its own, with a required kind (machines for backend services, persons for people signing in to an app such as the console, which the table lists in first_party_clients), an optional profile (rfc9068 by default, or keycloak, entra, okta) and the issuer’s audience, algorithms, mode, [auth.issuer.introspection], role_claims and key set settings. Every token is classified by its issuer’s kind, and one that matches no caller of that kind answers 401. Upgrade step: move issuer, audience and every other issuer setting from [auth] onto an [[auth.issuer]] table with its kind, in the configuration file, since a table cannot be a variable; write each scopeless_subjects entry as { issuer = "…", sub = "…" }. The old shape refuses the start, naming the key and the table it moves to, and an issuer without kind refuses it naming auth.issuer.kind (#1140).
  • A [[auth.basic.users]] entry is a person, on the server and on the synchronisation service’s admin listener: a user granted a system/ scope refuses the start, naming the user, and a machine calls with a client credentials token (RFC 6749 §4.4) of a machines or persons issuer. Upgrade step: give each machine that used Basic a client at the authorization server, and keep Basic for people (#1140).
  • compose.sync.yaml mounts the server’s configuration file (FERROTERM_SERVER_CONFIG, ./ferroterm.toml by default), which holds its [[auth.issuer]] table or [auth] enabled = false, and no longer passes FERROTERM__AUTH__ISSUER and FERROTERM__AUTH__AUDIENCE through (#1140).
  • The crate line moves to 0.1.144, and two published crates move public items into child modules of the module that held them. In fhir-terminology, ProviderError, InvalidValue and MalformedValueSet move to provider::error, operations::Sources to operations::sources, and snomed::Footprint to snomed::edition. In rf2, refset::RefsetKind moves to refset::kind, and the function refset::kind is now refset::kind::read. Upgrade step: import each item from its new path. No answer on the wire changes (#1147).

Removed

  • The HTTP Basic form of the synchronisation service’s [server_admin_credentials] (user, password, password_file): the reload is a machine’s call, and the server admits a Basic user as a person only. Upgrade step: create a client for the service at the authorization server the server trusts and name it under [server_admin_credentials.oauth] (issuer or token_endpoint, client_id, client_secret_file, scope = "__ferroterm.admin"); a file that still sets the Basic keys fails to load, naming oauth (#1140).
  • The flat [auth] issuer = "…" key, [auth] token_profile, the section-level issuer settings, and with them the variables FERROTERM__AUTH__ISSUER, FERROTERM__AUTH__AUDIENCE and FERROTERM__AUTH__TOKEN_PROFILE. Upgrade step: see the [[auth.issuer]] table under Changed; an issuer that mints plain JWTs takes token_types = ["JWT"] on its table (#1140).

Security

Shipped with functional changes because: the ferrohealth-smart 0.9.0 move replaces the per-issuer form that the 0.8.9 fix introduced, so a security-only release would teach deployments a configuration that the next release removes.

  • [auth] scopeless_subjects and role_claims hold per issuer (GHSA-pfgx-xq28-2629, CWE-863, CWE-639). Before, 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 every write without a scope. Through ferrohealth-smart 0.9.0 a scopeless_subjects entry is a table { issuer = "…", sub = "…" } that admits a System caller of that issuer alone, an entry naming an issuer the section does not trust refuses the start, and role_claims is a key of each [[auth.issuer]] table, read from that issuer’s tokens only. Upgrade step: write each scopeless_subjects entry as { issuer, sub }, and set role_claims on the issuer tables that need other claims than the default (the server grants nothing by role) (#1138).
  • A Basic user is refused a system/ scope by ferrohealth-smart 0.9.1 (GHSA-jhg2-jwjp-hq74, CWE-269, CWE-863). An [[auth.basic.users]] entry granted one fails to load in the server and in the sync service, naming the user and the scope, and a Basic caller is never handed a system/ scope, the reach of a backend service. FerroTERM refused such a user at start with its own check before, which is removed now that the crate holds the rule. Upgrade step: none for a configuration that starts today (#1145).

0.4.1 - 2026-11-04

Changed

  • The server, the sync service and the console run on the newest FerroHEALTH family releases: ferrohealth-config 0.2.8, which masks a refused configuration value of any type in its message, ferrohealth-server 0.4.3, ferrohealth-telemetry 0.2.4, whose panic line names the request id and whose exported request span is named {method} {route}, ferrohealth-session 0.2.2, ferrohealth-smart 0.8.8 and FerroUI 0.6.6 (#1120).
  • The console’s Sign out takes you to the provider’s end-session endpoint only when the session holds an ID Token (OpenID Connect RP-Initiated Logout 1.0 §2), as ferrohealth-session 0.2.1 does; a sign-out with no such session lands on the signed-out page (#1120).
  • The concept graph and the designation index are built on roaring 0.12.0, which writes the portable Roaring format faster on little-endian machines. The bytes are the same, so an index built before this release is read unchanged (#1128).

0.4.0 - 2026-11-04

Added

  • $expand echoes the extensions the terminology ecosystem guide lists on each expansion.contains entry, where the code system or the value set states them on the concept: valueset-label (from valueset-label, else codesystem-label), valueset-conceptOrder (likewise from codesystem-conceptOrder) and rendering-style on the entry, and rendering-xhtml on its display. A value set’s own statement wins over its code system’s. valueset-concept-definition is echoed when the request asks for the definition property. itemWeight and valueset-deprecated are not echoed, because their published contexts (Coding, ValueSet.compose.include.concept) admit no expansion element. The crate line moves to 0.1.142 (#1106).
  • An inactive designation in an expansion, one whose structuredefinition-standards-status is withdrawn or deprecated, carries the SNOMED CT use code 900000000000546006 (Inactive value), as the terminology ecosystem guide asks. That extension’s context does not admit contains.designation. A designation that already states a use cannot carry both, so it is left out of the expansion (#1106).

0.3.3 - 2026-11-04

Added

  • $expand on the R5 and R6 surfaces returns the properties a value set’s compose.property names (* for every one) when the request names none (#1064).
  • The console’s keyboard shortcuts are back on FerroUI 0.6.2’s keys module: g then a letter opens a screen of the navigation, Ctrl Enter runs an operation or the composer’s preview from inside a field, and Ctrl S saves an editor. The legend and /shortcuts list all three groups; with scripts off every action keeps its button (#945).
  • ECL 2.3 (released 2026-03-31): ^R X is the reference sets with an active member whose referenced component is in X, and member filters after it choose the members that count (^R 73211009 {{ M mapTarget = "C01" }}). The active filter of a description, concept or member filter takes * for either status: {{ D active = * }} matches active and inactive descriptions, and active != * matches nothing. A member filter active = * is refused like active = 0, because the served reference set tables hold active members only. The crate line moves to 0.1.124 (#965).

Changed

  • The console signs operators in and keeps their sessions through ferrohealth-session 0.1.0, the FerroHEALTH consoles’ shared sign-in, in place of its own code. The sign-in routes move: GET /auth/login?back= is GET /login?return=, POST /auth/sign-out is POST /logout, and the session watch /auth/session is /session; the sign-in page stays at /auth/sign-in and the redirect URI registered at the provider stays /auth/callback. [oidc] may leave out authorization_endpoint, token_endpoint, jwks_uri, end_session_endpoint and revocation_endpoint, which the console then reads from the provider’s metadata when it starts (config check reads none and works offline), and gains ca_file and timeout_s; [session] gains store (memory, the default, or sealed with key or key_file). session.absolute_timeout_s below session.idle_timeout_s is now refused. A sign-out on a console with no [oidc] ends the local session and lands on the signed-out page, where it answered 503, since no provider session exists to end. Upgrade: change any link or bookmark to the old sign-in, sign-out or session paths; the configuration keys a deployment already sets keep their meaning (#1005).
  • The console’s concept map editor refuses to save a map whose source or target scope names a code system the map’s groups map between. FHIR defines both scopes as value sets (ConceptMap.source[x] and target[x] in R4 and R4B, sourceScope[x] and targetScope[x] in R5), and $translate cannot read such a map’s scope (#1010).
  • The console reads each root’s CapabilityStatement and TerminologyCapabilities through fhir-types, decoding at the release of the root that served it. A document that lacks a required element, or carries a member its release does not define, draws the screen’s error state, which names the release, the resource and the element path, where the console used to draw whatever it could read (#1027).
  • The console reads the code system screens and the listings’ narrowed _elements search through fhir-types, decoding at the release of the root that served each. A code system or a listing that lacks a required element, or carries a member its release does not define, draws the screen’s error state, which names the release, the resource and the element path, where the code system screen, the code system listing and the dashboard used to draw what they could read (#1028).
  • The console reads value sets, their searches, $expand answers and the value set the composer opens through fhir-types, decoding at the release of the root that served each. An answer that lacks a required element, or carries a member its release does not define, draws the screen’s error state, which names the release, the resource and the element path, where the console used to draw whatever it could read. The composer no longer opens an unreadable value set as an empty one (#1029).
  • The console reads concept maps, their searches and $translate answers through fhir-types, decoding at the release of the root that served each. A map that lacks a required element, or names its scope in another release’s element, draws the screen’s error state, which names the release, the resource and the element path, where the console used to draw whatever it could read (#1030).
  • The console reads $lookup, $validate-code and $subsumes answers, and the OperationOutcome a refusal carries, through fhir-types, decoding at the release of the root that served each, and writes the concept browser’s inline $expand through the same release. An answer that lacks a required element, or carries a member its release does not define, draws the screen’s error state, which names the release, the resource and the element path. A refusal whose OperationOutcome does not decode at its release shows the status and the body the server sent (#1031).
  • The console’s editors and history read and write through fhir-types, at the release of the root that serves each: the code system editor, the concept map editor and the value set composer open the stored resource decoded at its release and save it written over that resource, the composer’s preview posts its Parameters through the same release, and the history screen, the dashboard’s recent writes and the answer to a write decode the Bundle and the resource at it. A stored resource or a history that does not decode draws the screen’s error state, which names the release, the resource and the element path (#1032).
  • The console takes ferrohealth-session 0.1.1. The crate now refuses an [oidc] a console cannot sign in with safely (a provider URL that is not https off loopback, a redirect URI with a fragment, scopes without openid or with offline_access), so the console’s own checks are gone. A post_logout_redirect_uri without an end_session_endpoint is no longer refused. The session watch again answers a session that is gone with an RFC 9457 problem whose detail says to sign in again, and a sign-in never returns to a page under the sign-in page (#1041).
  • $lookup leaves out a requested property that neither the FHIR specification nor the code system defines, with no issue, where it answered 400 invalid. A property the code system defines and the server does not generate still answers not-supported (#1062).
  • ValueSet/$validate-code refuses a bare code with no system and no inferSystem as a request error, as the operation requires; it inferred the system from a value set with one system (#1063).
  • $validate-code answers result false with an invalid-data warning at the coding for a Coding or CodeableConcept that states no code, or, on CodeSystem/$validate-code with no url, no system, where it answered 400. The warning for a coding with no system now names the coding itself (Coding, CodeableConcept.coding[0]) rather than its system (#1063).
  • $validate-code names the code system version in the case-difference message, and a coding that names a version of a code system the server serves no version of gets an UNKNOWN_CODESYSTEM_VERSION_NONE issue that names the version asked for (#1065).
  • [server] idle_timeout_ms (default 120000) closes a kept-alive HTTP/1.1 connection that sends no next request within that time, with a clean end of stream. [server] header_read_timeout_ms now counts from the first byte of each request head; it used to count from the previous response, so it also closed an idle connection after 30 s, sometimes while a client was sending its next request into it. A deployment that relied on the 30 s idle close sets idle_timeout_ms (#940).
  • FerroTERM 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). FerroTERM was not exposed to the regression 0.4.1 fixes: the FHIR listener, the admin listener and the ferroterm-sync admin listener each declare their own fallback inside their layers, so a path no route matches was already answered there, and on the admin listener an anonymous request to such a path is refused with 401 before and after (#942).
  • The console moves to FerroUI 0.6 and draws every page on its own server: there is no WebAssembly and no Leptos in it any more, every page works with scripts turned off, and a link or a form loads the next page whole. Its Content-Security-Policy is script-src 'self'; style-src 'self' with no nonce and no 'wasm-unsafe-eval', and FerroUI’s stylesheet, script modules and brand files are served by the console binary under /ferrohealth-ui/0.6.0/, cached as immutable. A reverse proxy that forwarded the old /pkg/, /ferrohealth-ui.css and /theme.css paths can drop them (#944).
  • The console’s own keyboard shortcuts (the g pairs that open a screen, Ctrl Enter to run an operation, Ctrl S to save an editor) are gone until FerroUI offers them as a module (#945); /, ?, Escape and the concept tree’s keys work as before, and every action keeps its button. The typed preferences (default FHIR version, display language, page size) are plain forms that save with their own button (#946) (#944).
  • The display language and the page size in Your preferences are FerroUI 0.6.2’s typed preferences: each saves when you press Enter or leave the field changed, keeps the focus once saved, and is held in the browser to what the console keeps (a language tag of at most 64 characters, a page of 1 to 1000 rows). With scripts off, each still saves with its own button (#946).
  • The FerroTERM Console moves to FerroUI 0.6.2 and ferrohealth-server 0.4.2. A select in a dense options row and a long identifier or link in a stacked table no longer scroll the page sideways at 320 px, and the code editor keeps its typing speed as a JSON or XML document grows. The console’s Content-Security-Policy is unchanged (script-src 'self'; style-src 'self', no nonce) and now comes from the family’s server-rendered console headers, and FerroUI’s script modules are served under /ferrohealth-ui/0.6.2/ (#952).
  • The console draws with FerroUI 0.6.5 (ferrohealth-ui), whose mapping rows wrap a relationship’s words inside their cell, so a concept map’s Mappings tab no longer reaches past a 320 px screen (WCAG 2.2 SC 1.4.10), and whose search submit no longer clips its word on a narrow top bar. A history comparison’s key column is headed Path (#963).
  • The ISO 3166 code system reads its English names from the Unicode CLDR 49.0.0 release, pinned in docs/VERSIONS.md instead of a commit on main, and its version is 49. Three displays change: HM is “Heard Island & McDonald Islands”, SH is “St. Helena, Ascension & Tristan da Cunha” and TF is “French Southern and Antarctic Lands”, for their alpha-3 and numeric forms too. The crate line moves to 0.1.123 (#965).
  • A string value in an ECL refinement is an ECL 2.3 concrete string: it matches the attribute’s value exactly and with its case, where it was read as word prefixes before (3460481009 |Has product name| = "PANADOL" no longer matches PANADOL EXTRA). The search term forms wild:"..." and match:"..." stay in the description term filter and in member field filters, and in a refinement they are now a syntax error (#965).
  • The BCP 47 and BCP 13 code systems read the IANA registries as of 2026-11-02: the Language Subtag Registry of File-Date 2026-09-17, which adds the description Naoero to region NR, and the media type registry, which adds 37 registrations (27 under application/, 5 under text/, 4 under model/ and 1 under audio/) and removes none. The new media types carry registered true and enumerate in an expansion. The crate line moves to 0.1.122 (#965).
  • The HL7 terminology ecosystem conformance run moves to the test cases 1.10.0 (suite commit f158ade, 764 general cases) on FHIR Validator 7.0.4 (#965).
  • fhir-terminology 0.1.132 serves SNOMED CT, LOINC, RxNorm, ICD-11 and the classifications through one stored::system::StoredProvider, generic over the StoredSystem each system implements (snomed::Snomed, loinc::Loinc, rxnorm::RxNorm, icd11::Icd11, classification::Classification). SnomedProvider, LoincProvider, RxNormProvider, Icd11Provider and ClassificationProvider name its five instances, open as before, and answer every operation as before. The open failures every artifact shares move to stored::OpenError, which each system’s OpenError carries as Artifact, and the five MANIFEST_VERSION constants become stored::MANIFEST_VERSION. The default bodies of CodeSystemProvider::inactive and filter_matches are filter::inactive_by_status and filter::selected_by (#974).
  • fhir-terminology 0.1.134 keeps the types the provider seam hands across under provider: filter moves to provider::filter, the ValueSet.compose model (Compose, Include, ConceptRef, SystemRef, Side, FilterAt) to provider::compose, fhir_codesystem::model to provider::code_system (with defined_property_uri), conceptmap::model to provider::concept_map, and artifact::Source to provider::source. valueset::negotiation moves to compose::negotiation, the $expand outcome types (ExpansionOutcome, Contains, ExpansionParameter, ExpansionProperty, ParameterValue) to valueset::expansion, and language::check returns its own language::InvalidLanguage. The LoadError of the resource loaders carries one Model variant, naming the resource type, for all three resources. No top-level module of the crate imports one that imports it (#975).
  • sct-scg 0.1.129 carries front, the parser machinery both SNOMED CT languages run on, and sct-ecl depends on it. ParseError, NESTING_LIMIT, LexError, Token and lex now live in sct_scg::front (Token and lex generic over each crate’s lexer::Kind), and sct_ecl::ParseError, sct_scg::ParseError and the two crates’ own NESTING_LIMIT, LexError, Token and lex are gone. The parsers accept and refuse the same input with the same offsets (#976).
  • fhir-terminology 0.1.130 serves BCP 13 and BCP 47 through one registries::grammar::GrammarProvider, generic over the Grammar each system implements (bcp13::MediaTypes, bcp47::LanguageTags). Bcp13Provider and Bcp47Provider name its two instances, and both answer every operation as before (#977).
  • fhir-terminology 0.1.136 keeps what a provider declares about its code system in provider::declaration: ContentMode, HierarchyMeaning, PropertyKind, PropertyDefinition, FilterDefinition, Capability, Compositional, Declaration, ImplicitForm, and ImplicitArgument move there from provider. No other public path changes; the crate and tool files over 1000 lines are split by concern into child modules (#978).

Removed

  • The console’s [server] site_root key and its FERROTERM_CONSOLE__SERVER__SITE_ROOT variable are gone, and so is the release’s ferroterm-console-site archive: the ferroterm-console binary carries everything the browser loads. A configuration that still sets site_root is refused at start as an unknown key, so delete the line before you upgrade (#944).
  • The crate line 0.1.131 drops the functions that only forwarded to another call: Memberships::new, RefsetMembers::new, IndexBuilder::new, Interned::new, Registry::new, VersionedStore::new, Holdings::new and Subscription::new (use default()), fhir_terminology::artifact::reader (use concept_graph::read::buffered), registries::bcp47::analyze_tag (use analyze with subtags::REGISTRY_DATA), text_match::query_words (use designation_index::tokenize::prefixes), and terminology_syndication::download::to_file_unverified: download::to_file now takes the expected digest as an Option (#973).

Fixed

  • The console’s session watch (GET and POST /auth/session) no longer reports more time than a session has when its access token expires and no refresh token can replace it: absolute ends at that token’s expiry and idle never passes absolute, so the warning before the end opens in time (#1007).
  • The About page draws a failed CapabilityStatement read as its refusal, with the cause and the address asked, where it said the server did not answer whatever had gone wrong, and a server that names no software is said to name none (#1033).
  • _elements keeps every top-level element the resource’s definition at the served version makes mandatory, beside the elements asked for, so a CodeSystem listed with _elements=url,name,title,version,status,meta still carries content and decodes as a valid resource (#1038).
  • CodeSystem/$batch-validate-code runs each validation as a CodeSystem/$validate-code, so the shared url names a code system; it was read as a value set and every validation answered that no such value set exists (#1061).
  • An expansion of a value set whose compose names several versions of one code system keeps contains.version on those codes when force-system-version resolves them to one version (#1066).
  • $validate-code warns of a concept the value set marks deprecated with structuredefinition-standards-status = deprecated, as it did for valueset-deprecated (#1066).
  • $closure takes tx-resource parameters as every other operation does, and computes the closure over the code systems they supply; it refused them as undeclared (#1070).
  • The console’s operation pages, the concept browser, the editors and the value set and concept map screens draw the error state for a published names search that does not decode at its release, which names the release, the resource and the element path, where they used to offer an empty picker or unnamed canonicals. A refused search still leaves the picker empty (#1075).
  • ValueSet/$validate-code answers result true for a CodeableConcept with a coding in the value set when another coding names a code system the server does not hold and the value set does not name, as the operation’s codeableConcept input requires. That coding is reported as a warning that it was not checked (UNKNOWN_CODESYSTEM_CODING_NOT_CHECKED) and no longer as x-unknown-system; the answer failed before (#1105).
  • ConceptMap/$translate answers result false when every match is unmatched, disjoint (not-related-to) or an explicit noMap, as the R4B and R5 operation define result; it answered true for any match (#965).
  • A code system property coded notSelectable under another URI than the standard notSelectable property no longer marks a concept abstract in an expansion or a validation (#965).
  • The status-check note on a draft code system carries the message id MSG_DRAFT_SRC_STATUS, the one the terminology ecosystem test cases 1.10.0 name (#965).
  • An ECL expression whose numeric or time comparison meets a value that does not convert, in the expression or in the edition’s data, is refused with a typed error instead of selecting nothing; an empty time value "" is refused as unsupported (#987).
  • The ISO 3166 code system refuses to load when the vendored CLDR data lacks its version, its territory names or its code mappings, instead of serving the version unknown or an empty table (#988).
  • The ECL parser reads a reverse flag that touches the attribute name, R363698007, as ECL 2.3 eclattribute admits (#989).
  • ConceptMap/$translate applies a map to a code only when the code is a member of the map’s source scope (sourceScope[x] in R5, source[x] in R4 and R4B), whether the map was chosen, named by url or reached through an other-map rule, so its unmapped rule no longer fires for a code outside that value set. A code outside every scope answers result false with a message naming the code and the maps. A source scope the server cannot resolve is an error naming the value set (#996).

0.3.2 - 2026-10-29

Added

  • A signed-in console page watches its session: it warns before the idle timeout with Stay signed in and Sign out, leaves for the sign-in page the moment the session ends, and a sign-out in one tab ends every tab of the console together. The console answers FerroUI’s session route at /auth/session, where a read extends nothing and only the reader’s own activity extends the session (#930).

Changed

  • The server, the sync service and the console take ferrohealth-smart 0.8.6 and ferrohealth-config 0.2.6. Under [auth] mode = "introspection", [auth] ca_file is now trusted for the issuer’s metadata, the introspection call and the token call, as it already was in JWT mode, so an issuer behind a private certificate authority is reached with the same setting (#915).
  • The console runs on FerroUI 0.5.7 and the browser hydrates the whole page: after the first page, a link, a GET form, a preference and the navigation rail draw the next page in place, with no document reload. The pages load in five groups as chunks of their own. The console’s server reads each page once, recording the requests it sends the terminology server, and the browser draws the page from that recording, so a page after a navigation costs one round trip to the console. FerroUI’s keyboard shortcut legend replaces the console’s own, and a Configuration value set by a --set argument now says “From the command line” in place of “From the environment” (#916).
  • fhir-types 0.1.128. The server and the published crates build on the generated FHIR model 0.1.128, and the crate line moves to 0.1.121 (#927).
  • The server, the sync service and the console take ferrohealth-server 0.3.9. A [server.tls] table that sets client_ca_file while client_auth is none, the default, is now refused at start: before, the CA was read and ignored, so a deployment that meant mutual TLS served without it. Set client_auth = "required" (or "optional") beside the file, or remove it (#932).
  • Every error FerroTERM answers outside its FHIR bases is now an RFC 9457 problem, application/problem+json, with the status codes unchanged: the server’s admin listener (POST /reload and its refusals), a path of the FHIR listener that names no FHIR base, the sync service’s admin listener, and the refusals the HTTP stack writes itself on those routes. Each FerroTERM problem type links to its section of the book’s new Problem types page, and a problem quotes nothing from the request. Under /r4, /r4b, /r5 and /r6 errors stay FHIR OperationOutcomes. The console draws an admin route’s problem as its issue (#932).

Fixed

  • A response to a request whose body FerroTERM 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) (#919).
  • 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 (#919).
  • 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 (#919).

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 FerroTERM to take.

  • The server, the sync service 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 (#919).

0.3.1 - 2026-10-27

Added

  • [auth] mode = "introspection" checks an opaque access token at the issuer’s introspection endpoint (RFC 7662), on the server’s write routes and admin listener and on the synchronisation service’s admin listener. The endpoint is the one the issuer’s metadata names, or [auth.introspection] endpoint; the call authenticates with [auth.introspection.client] or a [auth.introspection.bearer] client credentials token. An inactive token answers 401, an endpoint that cannot answer 503, and an issuer that names no endpoint refuses the start. The discovery document and the capability statement name the introspecting issuer’s endpoints (#881).
  • The server, the synchronisation service and the console read their configuration through the FerroHEALTH loader, ferrohealth-config: the defaults, a TOML file named by --config or by FERROTERM_CONFIG, FERROTERM_SYNC_CONFIG or FERROTERM_CONSOLE_CONFIG, one variable per key (FERROTERM__SECTION__KEY, FERROTERM_SYNC__SECTION__KEY, FERROTERM_CONSOLE__SECTION__KEY), and --set key=value last. ferroterm config check and ferroterm-sync config check print every key with where it came from and every secret as *** (#895).
  • The server, the synchronisation service and the console serve the FerroHEALTH health routes from ferrohealth-health 0.1.1 and ferrohealth-server 0.3.0: GET /health/liveness answers 200 while the process runs, and GET /health/readiness answers the readiness document (state, phase and each indicator’s state), 200 while ready and 503 otherwise. On the sync service both stay open without a credential, as GET /health does. Point a Kubernetes liveness probe at /health/liveness and its readiness probe at /health/readiness (#895).
  • The server’s [server] section takes the keys of the FerroHEALTH HTTP stack, for the FHIR listener and the admin listener alike: request_timeout_ms, header_read_timeout_ms, body_limit_bytes, drain_delay_ms, shutdown_timeout_ms, max_concurrent_requests with retry_after_s (past the bound a request is answered 503 with Retry-After, and the health routes are never refused), trusted_proxies with forwarded_header, compression with compression_min_bytes, and base_path, a path every route is served under. A [server.tls] table (certificate_file, key_file, min_version, client_auth, client_ca_file, reload_interval_s, healthcheck_identity_file) serves both listeners over TLS, reads the files again on SIGHUP, and ferroterm healthcheck then probes over TLS, accepting only the server’s own certificate. [server.caller_rate] is refused, since the server limits no caller’s rate (#895).
  • ferroterm serve and ferroterm-sync serve name the default command, as ferroterm-console serve does (#895).
  • The server, the synchronisation service and the console read the FerroHEALTH [telemetry] section: format and filter as before (with RUST_LOG setting the filter in all three), logged_query_parameters for further query parameters the request line may carry, environment, and a [telemetry.otlp] table that pushes the spans and the metrics to an OpenTelemetry collector over OTLP/gRPC (endpoint, traces, metrics, sample_ratio, trust_roots_file, client_identity_file). A panic is logged as one line before the process ends (#895).

Changed

  • The console’s command bar answers under the field as you type: from the second character a panel asks GET /find/answer?q= and shows the code systems, value sets and concept maps whose name or canonical holds the words, five of a kind, then the screens that take what was typed; the arrow keys walk them, Enter opens one and Escape closes the panel. Find lists every match in the page, with no cap of ten, and a read the server refuses is said on the page and in the panel, where it was shown as no match before. The console moves to FerroUI 0.4.0 (#876).
  • The server and the synchronisation service take ferrohealth-smart 0.6.0, the release every FerroHEALTH product runs. The default [auth] mode = "jwt" checks tokens exactly as before (#880).
  • The console’s Configuration screen marks a value an environment override sets with From the environment and one nothing sets with Default, through FerroUI’s setting source; a value the configuration file sets carries no mark. The configuration loader records which keys the file and the environment set (#886).
  • Breaking: an override variable that names no key refuses the start, naming the variable and the closest key it knows (FERROTERM__… for the server, FERROTERM_SYNC__… and FERROTERM_CONSOLE__… for the other two), as each binary refuses an unknown key in its file. Any other variable under the prefix is left alone, so the three binaries can share one environment. Upgrade: correct a misspelt override (#895).
  • Breaking: a secret file the console reads through a _file key loses only its trailing line ending, the FerroHEALTH rule, where the console trimmed every surrounding space; a file that holds only whitespace other than line endings is now a secret, not a refusal. Upgrade: write the secret file with the secret alone (#895).
  • Breaking: GET /health on the server, the synchronisation service and the console answers the family’s summary, {"state":"up"}, where the server and the sync service answered an empty body and the console {"status":"up"}. It answers 503 with {"state":"down"} from the moment the process receives SIGTERM or SIGINT until it exits, so a load balancer stops sending requests while the ones in flight finish. Upgrade: a probe that reads only the status needs no change; one that parses the console’s body reads state in place of status (#895).
  • Breaking: ferroterm healthcheck, ferroterm-sync healthcheck and ferroterm-console healthcheck ask GET /health/readiness and exit 1 while the process drains, where they asked GET /health. The reason on stderr reads unhealthy: readiness answered 503, `unhealthy: cannot connect to
    : …` or `unhealthy: readiness did not answer in time`, and the console prints `healthy` on success. Upgrade: a script that matched the old reasons (`cannot reach`, `answered`, `did not answer within`) matches the new ones (#895).
  • Breaking: the server refuses a request body larger than 1 MiB with 413, the default of server.body_limit_bytes, where the limit of 2 MB applied. Upgrade: a deployment that writes larger resources raises server.body_limit_bytes (#895).
  • Breaking: server.listen takes an IP address and a port, and a host name such as localhost:8080 refuses the start. Upgrade: write the address, such as 127.0.0.1:8080 (#895).
  • The boot banner names the build as ferroterm <version> (<commit>) and lists the served FHIR versions, the site and the maintainer, the banner every FerroHEALTH product prints (#895).
  • The synchronisation service’s admin listener runs the FerroHEALTH HTTP stack: a request id on every request, a request timeout of 30 seconds, a body limit of 1 MiB and a panic answered 500. The console sends the FerroHEALTH console headers, which add Cross-Origin-Opener-Policy: same-origin, and marks its stylesheets no-cache so a new release is fetched (#895).
  • The server and the synchronisation service take ferrohealth-smart 0.7.5. A secret or a masked URL in a rendered [auth] table now reads *** in place of [redacted], and a URL’s query is masked beside its userinfo. [auth] ca_file names a PEM file of trust roots for an issuer behind a private certificate authority, and [auth.basic] cache_ttl_seconds keeps a verified Basic credential for 300 seconds by default, so a repeat request skips the Argon2id derivation; set it to 0 to verify every request (#895).
  • Breaking: the server’s request metrics follow the OpenTelemetry HTTP semantic conventions, the metric every FerroHEALTH product exports through ferrohealth-telemetry. ferroterm_http_requests_total and ferroterm_http_request_duration_seconds are gone with no alias; one histogram, http_server_request_duration_seconds, takes their place, with the labels http_request_method, http_route, http_response_status_code, network_protocol_version, url_scheme and, on a 5xx, error_type, and the buckets the conventions advise (5 ms to 10 s) where the old ones started at half a millisecond. Upgrade: count requests with http_server_request_duration_seconds_count, and rename method, route and status in every query and alert (#895).
  • Breaking: GET /metrics on the server and on the synchronisation service answers in the Prometheus text format (text/plain; version=0.0.4), where it answered in OpenMetrics. The ferroterm_code_system_loaded, ferroterm_reloads_total and ferroterm_sync_* series keep their names and labels. Upgrade: a scraper that asked for OpenMetrics only reads the text format (#895).
  • Breaking: the request log carries the server’s own id, a UUID it makes for every request, in request_id, and client_named says whether the client sent an X-Request-Id; the client’s value is still echoed on the response and never logged, the FerroHEALTH request-id rule, where the log carried the client’s value. The system and code a request named are fields of their own (system, url, version, code, code_a, code_b), where they were one named field. Upgrade: correlate a client report by its time and route, or by the response’s X-Request-Id when the client sent none, and read the new fields in a log pipeline (#895).
  • The usage report runs on ferrohealth-usage-report, the reporter every FerroHEALTH product sends with; the [usage_report] keys and the report’s contents stay as they were. The boot line says “no clinical content, identifiers, URLs or request paths”, the family’s wording (#895).
  • Breaking: the daily report’s counters carry only what counted something in the window, where the four per-version counters were always sent, and add responses_4xx, the 4xx answers under a FHIR base. Upgrade: read a missing version counter as zero (#895).
  • Breaking: the request log and the http_route label of http_server_request_duration_seconds name a request under a FHIR base that no route matched /r4/{*unmatched}, /r4b/{*unmatched}, /r5/{*unmatched} or /r6/{*unmatched}, where it was <unmatched>; any other unmatched request stays <unmatched>. Upgrade: match those four routes where a query or alert matched <unmatched> under a FHIR base (#895).

Removed

  • Breaking: the server’s flat variables are gone with no alias. Each is now a key of the configuration tree: FERROTERM_LISTEN is server.listen (FERROTERM__SERVER__LISTEN), FERROTERM_ADMIN_LISTEN is admin.listen, FERROTERM_INDEX, FERROTERM_CODESYSTEMS, FERROTERM_RESOURCES and FERROTERM_DEFAULT_LANGUAGE are terminology.index, terminology.code_systems, terminology.resources and terminology.default_language, FERROTERM_BASE_URL and FERROTERM_SECURITY_SERVICE are fhir.base_url and fhir.security_services, FERROTERM_LOG_FORMAT is telemetry.format, and FERROTERM_USAGE_REPORT, FERROTERM_USAGE_REPORT_ENDPOINT, FERROTERM_STATE_DIR and FERROTERM_DEPLOYMENT are usage_report.enabled, usage_report.endpoint, usage_report.state_dir and usage_report.deployment. RUST_LOG still sets the filter. A list is a TOML array in the file or comma-separated in a variable, where FERROTERM_INDEX and FERROTERM_CODESYSTEMS took the platform’s path separator, and usage_report.enabled takes true or false, where FERROTERM_USAGE_REPORT took on or off. An old name is not read and does not refuse the start, so the server runs on the default. Upgrade: rename each variable, or move the values into a file (#895).
  • Breaking: FERROTERM_AUTH_FILE and its FERROTERM_AUTH__<KEY> overrides are gone. The [auth] table is a section of the server’s configuration file, and one key is set as FERROTERM__AUTH__<KEY>. Upgrade: move the table into the file FERROTERM_CONFIG names, and rename each FERROTERM_AUTH__ variable to FERROTERM__AUTH__ (#895).
  • Breaking: the NTS add-on reads its account from the synchronisation service’s [nts] section. FERROTERM_NTS_USERNAME, FERROTERM_NTS_PASSWORD, FERROTERM_NTS_CLIENT_ID and FERROTERM_NTS_CLIENT_SECRET are FERROTERM_SYNC__NTS__USERNAME and the other three, the JSON credential file and the credentials key of the [source.config] block are gone, and each secret takes a mounted file through nts.password_file or nts.client_secret_file. Upgrade: rename the variables, and point the _file key at a file that holds the secret alone (#895).
  • Breaking: ferroterm-sync reads no file unless --config or FERROTERM_SYNC_CONFIG names one, where it read /etc/ferroterm/sync.toml by default; the container image sets FERROTERM_SYNC_CONFIG to that path (#895).
  • Breaking: ferroterm healthcheck --url and ferroterm-sync healthcheck --url are gone with no alias. The probe follows the configured listen address, on the loopback when the process listens on every interface. Upgrade: set server.listen (or the sync service’s listen) to the address to probe, or probe the URL with an HTTP client of your own (#895).

Fixed

  • The console’s settings name the configuration file they were read from wherever they are resolved: Config::load keeps the path it read and Config::resolve carries it, where only the command line’s own start filled it in before (#888).
  • The server, the synchronisation service and the console bound the drain on SIGTERM or SIGINT: readiness turns 503 at once, the listeners keep accepting for server.drain_delay_ms, then close, and the requests in flight get server.shutdown_timeout_ms (10 seconds by default) to finish before the process exits, where a connection held open by a slow client kept the process up until the container runtime killed it. The server’s admin listener drains with the FHIR listener under the same bound (#890).
  • The server answers a request that runs past server.request_timeout_ms with 408, a body larger than server.body_limit_bytes with 413, and a handler that panics with 500, each as an OperationOutcome (timeout, too-long, exception), where a panic dropped the connection with no answer and a slow request had no deadline. The 500 names the request id, and the panic message reaches neither the body nor the log (#891).

Security

Shipped with functional changes because: the fix is a dependency release that reached main beside the unreleased work of the next version, and a patch of the last release alone would ship the same pin.

  • ferrohealth-smart 0.7.1 masks the userinfo of an OAuth section’s issuer and token_endpoint in every rendering, a URL that does not parse included; before it a credential written into such a URL could reach a log through the section’s Debug or serialized form (CWE-532, GHSA-vphj-3f8c-5hpx). FerroTERM moves to it from 0.6.0 (#893).

0.3.0 - 2026-10-24

Added

  • Every release publishes the synchronisation service as its own image, ghcr.io/ferrohealth/ferroterm-sync, for linux/amd64 and linux/arm64, built by the same SLSA Build Level 3 lane as the server image with provenance and an SBOM per platform. The release tarballs carry ferroterm-sync beside ferroterm and ferroterm-build, with its own CycloneDX SBOM, and the release is not published until all three images are tagged at the digests their lanes pushed (#798).
  • The console draws the synchronisation service’s runs as screens of their own: the runs newest first, one run’s summary with a download of its record, and its findings linked to the resources they name, with Run now and Activate behind a confirmation. Server offers Reload the served set through the server’s admin listener ([ferroterm] admin_url), and a stored value set offers Delete. Each is drawn only for a reader whose token carries the scope it needs, and each works with no WebAssembly (#811).

Changed

  • SECURITY.md states the fix-time targets every product of the Ferro family commits to, counted from the confirmed assessment: a fixed release within 7 days for a Critical vulnerability, 30 days for High, 90 days for Medium and with the next release for Low, beside the acknowledgement within about 5 business days and the initial assessment within about 10, both best effort as before (#867).

Fixed

  • The landing page scrolls smoothly to an anchor only for a reader who has not asked for reduced motion (#785).
  • The published book and landing page name only released versions. The Docs workflow refuses to deploy while the site names a version that is not a published release with its compose.yaml, and the release workflow dispatches the Docs deploy once the release is published, so a reader never meets install commands for an image that does not exist yet (#801).
  • The History tab names the revision a restore put back and the one it wrote on the page answering the restore itself, as well as on the page its redirect leads to, so the outcome is stated whichever page the browser ends on (#870).

0.2.0 - 2026-10-24

The console is renamed ferroterm-console and rebuilt on FerroUI 0.3.6, which breaks a console deployment: its image, configuration variables, compose profile and secret, sign-in routes and preference cookies change. The two Breaking entries under Changed list each rename and what an operator changes. The server’s FHIR surface does not change.

Added

  • The book carries FerroTERM’s own Cyber Resilience Act documentation: the cybersecurity risk assessment of Art. 13(2) and (3), point by point against Annex I, and the information and instructions to the user of Annex II, each point stated or linked, with the manufacturer-level points linked to the FerroHEALTH book (#790).

Changed

  • The console’s site bundle is built with cargo leptos build --split, which cuts FerroUI’s lazy islands into chunks fetched on first use; without it no island hydrates. The bundle is 502,374 brotli bytes, entry and chunks together, 43% of the 1 MiB budget, where it was 97%, and scripts/checks/console-bundle.sh sums the chunks with the entry (#733).
  • Every string the console draws comes from its Fluent catalog, the catalog carries the number marks FerroUI’s number formatter writes with (number-group, number-decimal), and the unused messages are pruned; a test locale proves a second catalog needs no code change (#749).
  • Breaking: the console is renamed from ferroterm-viewer to ferroterm-console: the crate and its binary (app/ferroterm-console), the image (ghcr.io/ferrohealth/ferroterm-console, built from docker/console/Dockerfile by the release-console.yml lane), the configuration file variable (FERROTERM_CONSOLE_CONFIG) and every environment override (FERROTERM_CONSOLE__… in place of FERROTERM_VIEWER__…), and the quickstart’s compose service, profile and secret (docker compose --profile console up, console_oidc_client_secret, FERROTERM_CONSOLE_OIDC_CLIENT_SECRET_FILE). The old image is not published again. Upgrade: pull ghcr.io/ferrohealth/ferroterm-console in place of ghcr.io/ferrohealth/ferroterm-viewer, rename every FERROTERM_VIEWER__ variable to FERROTERM_CONSOLE__ and FERROTERM_VIEWER_CONFIG to FERROTERM_CONSOLE_CONFIG, start the quickstart with --profile console, and rename ./secrets/viewer_oidc_client_secret to ./secrets/console_oidc_client_secret. The book’s console page moves to operate/console.html (#800).
  • Breaking: the console is rewritten on FerroUI 0.3.2 (ferrohealth-ui =0.3.2) in Leptos islands mode. Every page is drawn whole on the console’s server and works with scripting off; every change is a plain form post to the page’s own address, answered by a redirect, and the WebAssembly carries only FerroUI’s islands (the theme menu, the copy buttons, the concept tree, the toasts, the repeat rows) and the keyboard shortcuts. The server functions under /api/ are gone. The sign-in routes move: /login is /auth/login, /logout is /auth/sign-out, and /auth/sign-in is a page of its own that says why a reader is there (signed out, expired, refused). The screens follow the FerroUI design: binder tabs on each resource (Overview, Versions, History and JSON for a code system; Definition, Expansion and JSON for a value set; Mappings, Overview and JSON for a concept map), the four runners under one Operations screen, About split into Server (the roots, their operations and the build’s evidence), Configuration and About, and Your preferences opened from the menu under your name in three tabs. The navigation entries are plain paths, and the version menu keeps the FHIR version for the session. The editors draw their Save in a docked bar (Ctrl S) and keep a refused draft in the form; a restore on the revisions screen asks first in a dialog and the page says which revision it wrote. The preferences are one cookie each, named ferroterm_console_<key>: the display language moves from ferroterm_console_language to ferroterm_console_display-language (ferroterm_console_language is now the console’s own language), the page size from ferroterm_console_page_size to ferroterm_console_page-size, and the default page size is 25 rows, where it was 50. The composer takes a clause’s codes typed one per row, and the list of recent runs on the operation screens is dropped. Upgrade: point bookmarks and the identity provider’s links at /auth/login and /auth/sign-out (the registered redirect address /auth/callback is unchanged); readers choose their display language and page size again once, in Your preferences (#808).
  • The console moves to FerroUI 0.3.3 (ferrohealth-ui =0.3.3, with its split feature for the site’s --split build) and drops the stand-ins 0.3.2 needed. The listings filter by several sources at once through T1’s Source menu, sent with the find field’s form (?source=stored&source=loaded), where they kept one source at a time. Configuration opens “How configuration works” as a dialog. A dashboard card that shows the start of a listing says so (“6 of 15”). A publication status is drawn as FerroUI’s state mark, the resource pages show their canonical in the code face, the conformance table marks a mode that passed every case, the concept browser’s matches link through FerroUI’s own coding row with its focus ring, every revision’s restore dialog is named by its revision, so a restore is offered on every earlier revision the screen lists, and Translate, Check the relation and Expand draw the design’s glyphs. Upgrade: a link that names one source keeps working (#810).
  • The release notes end with the support period, the month Cadasto B.V.’s commitment to ship security fixes for the release ends (five years from its date, Regulation (EU) 2024/2847 Art 13(8) and (19)), and a link to the CRA information and instructions to the user in the book (Art 13(18)). Every Security entry names its GitHub security advisory, published with the release, and a Security section that ships beside functional changes opens with the reason. SECURITY.md names info@cadasto.com, the manufacturer’s single point of contact, as the second reporting route, and states how an advisory is drafted and published. scripts/release/preflight.sh <tag> runs the release’s plan checks before the tag (#816).
  • Each release scans the ferroterm and ferroterm-console images before it tags them: both are pushed by digest, a vulnerability record scans them and the server’s glibc tarballs at every severity, and the release is refused while a finding has no OpenVEX statement under security/vex/ judging it (Regulation (EU) 2024/2847 Annex I Part I(2)(a)). The record, ferroterm-<tag>-vulnerability-record.json, and the raw Trivy reports are release assets, and the image tags and the published release follow only a passing record and a scan with no fixable HIGH or CRITICAL finding. The one accepted Rust advisory (paste, RUSTSEC-2024-0436) is published as the generated security/vex/rust-advisories.openvex.json, and a weekly scan of the published images applies it. The stale deny.toml exception for RUSTSEC-2026-0173 (proc-macro-error2, no longer in the dependency graph) is dropped (#817).
  • The console moves to FerroUI 0.3.4 (ferrohealth-ui =0.3.4, with its split feature for the site’s --split build) and drops the stand-ins 0.3.3 needed. Code systems and Concept maps draw the design’s book and two-way arrow in the sidebar and on the dashboard’s cards, and Compare in the history draws the design’s compare glyph. On Configuration, “How configuration works” is the end of the line that names the file and opens its dialog, so the title row no longer repeats it. Discard in the editors’ docked bar leaves without the form’s checks, so an empty required field no longer holds you on the page (#823).
  • The console moves to FerroUI 0.3.5 (ferrohealth-ui =0.3.5, with its split feature). When the console was started with a configuration file, Configuration’s title row has More, whose “Copy the file’s path” puts the file’s path on the clipboard, the path shown under it (#852).
  • The console moves to FerroUI 0.3.6 (ferrohealth-ui =0.3.6, with its split feature). Nothing it draws changes: it draws no activity chart, the one part whose interface changed (#854).
  • The book’s CRA pages record the conformity route: FerroTERM is a default product under Regulation (EU) 2024/2847, the owner’s decision of 2026-10-24, and its conformity is assessed by internal control, module A (Art. 32(1)(a), Annex VIII Part I). No assessment has been carried out and no EU declaration of conformity exists yet; both apply from 11 December 2027 (Art. 71(2)) (#858).

Removed

  • The revisions screen no longer lists what the newest synchronisation run found about the resource in view, and the console no longer reads the service’s admin listener; [ferroterm] sync_url stays valid and is shown on Configuration. The runs and their findings return as screens of their own (#811) (#808).

Fixed

  • The concept browser’s Hierarchy note reads its sentence from the catalog, naming the operator and the property, where it showed a raw catalog key, and a test fails when a tr_with call leaves out a variable its message names (#774).
  • A concept map’s Mappings table breaks a long canonical at its slashes and stays inside its card at 1440 and 390 px (#775).
  • Look up and Expand draw one heading level where they stacked the Parameters heading on a section heading (#776).
  • The weekly published-image scan skips an image not yet published at latest with a warning, so ferroterm-console no longer fails the run before its first release under that name (#821).
  • The console’s sign-in page says the identity provider refused the sign-in when its token endpoint refuses the code exchange, and that the provider’s answer failed the console’s checks when it carries no token response, no bearer token or no ID Token, where it said the provider could not be reached (#835).
  • The console answers a request for a site-bundle file under /pkg/ that is not there with a plain 404 Not Found and no body, where it drew a page of the shell, which a browser loading its WebAssembly read as the module. The bundle is served from the site root on its own route, so a miss never reaches the page fallback (#844).

Security

Shipped with functional changes because: only the newest release is supported (SECURITY.md), so a security-only patch published beside this release would be out of support the moment this release lands and give no one a release to stay on; both fixes are a dependency bump and a base-image digest with no behaviour change of their own.

  • The server, sync and console images no longer trust the compromised eMudhra (emSign) intermediates in the system trust store (Debian DSA-6572-1, GHSA-7hfh-24x8-936h). The distroless base gcr.io/distroless/static-debian13:nonroot moves to index digest d620678, which ships ca-certificates 20250419+deb13u1, in the FROM of docker/Dockerfile, docker/Dockerfile.sync and docker/console/Dockerfile, and the pin matrix records it. rustls-webpki 0.103.16 and webpki-root-certs 1.0.10 were already in the lock file (#803).
  • The lock moves ctutils from 0.4.3 to 0.4.5, which the server and the synchronisation service reach through argon2, past RUSTSEC-2026-0385 (GHSA-2cmc-fgqj-cfcv): 0.4.3 could branch on a secret value while generating a constant-time mask (#812).

0.1.10 - 2026-10-22

The v0.1.9 tag was pushed but its release never published: the console tarball lacked its README. 0.1.10 is the same release with that README added, and no 0.1.9 artifacts exist.

Changed

  • A synchronisation run record counts the entries it left behind only because the subscription does not name them, one count per origin, in place of a line each, and the run summary carries the count as entries_not_subscribed; entries_skipped now counts only the entries left behind for another reason (#695).
  • Every first-party file opens with the two SPDX lines naming Cadasto B.V. as copyright holder and the file’s licence (BUSL-1.1, Apache-2.0 in rf2), and two CI guards keep it so: scripts/checks/spdx-headers.sh and scripts/checks/copyright-holder.sh (#706).
  • The viewer is now the FerroTERM Console, its own binary and image (ghcr.io/ferrohealth/ferroterm-viewer), rendered on the server and hydrated, built on the FerroHEALTH component library ferrohealth-ui. It reaches the server over the public FHIR API from its own server, adds a dashboard, listings and detail screens for code systems, value sets and concept maps, a $lookup screen, and the four operation screens laid out as forms with a result panel. Reading stays open; editing needs a sign-in at the OpenID Provider, which the console’s server holds, revoking the token on sign-out where the provider publishes a revocation endpoint. Run it with the quickstart’s viewer profile (#729).
  • The console draws in FerroUI 0.1.4. Every date-time it shows (a resource’s last change, a version’s time in its history, the recent changes on the overview, a date-time parameter of an expansion, a property or a translation, and the time a benchmark record was taken) reads as “2026-10-18 23:18:37 UTC” on one line, with the value the server sent in its tooltip. The overview’s recent changes no longer cut an instant to the minute in the zone it was written in. A disabled field inside a well keeps its edge in the dark theme, so the value set composer’s “Find a code” field shows before a code system is chosen (#742).
  • The console draws in FerroUI 0.1.5. The value set composer’s code search in every clause is FerroUI’s shared field, so each clause’s label names its own search field, with no markup of its own (#745).
  • The console draws in FerroUI 0.1.6, and every field it shows is FerroUI’s shared field, so none is built by hand. A checkbox’s help line sits under its words and follows the form’s help switch, a picker over a canonical or a version is FerroUI’s field that switches between the list and a typed value, and the browser’s display language, filter and code system fields name their help lines with ids that end in -help (#747).
  • The console draws with FerroUI 0.1.7 and is ready for more languages, English the one that ships (#749). The components’ words and the console’s come from Fluent catalogs, the console’s under app/ferroterm-viewer/locales/, so a language joins as a catalog file with no code change. The locale is chosen once per request, the best language of Accept-Language the console’s catalog holds or else the new [server] locale (default en), and the page writes it as <html lang>. scripts/checks/stray-literals.sh fails CI on a console string outside the catalog beyond the per-file baseline the remaining strings hold while they move. The review capture waits for the page height to hold before it measures a screen, so the concept browser is shot with its list.
  • The console takes FerroUI 0.2.0 and reads every word it hands FerroUI from its catalog at run time (#749): table captions, column headers, pager nouns with their plurals, navigation, tabs, fields, dialogs and page titles come from locales/en/ferroterm-viewer.ftl, and the stray-literal baseline drops from 1388 to 115 literals. English remains the only locale.
  • Only the newest release is supported. SECURITY.md says that every earlier release stops receiving fixes when a new one is published, with no maintenance branches, no long-term-support line and no backports, and that upgrading is free. Cadasto B.V. commits to keep publishing security fixes for at least five years after each release (Regulation (EU) 2024/2847 Art 13(8)) and ships them only in the newest release (Art 13(10)) (#754).
  • The server checks credentials through the FerroHEALTH resource-server crate ferrohealth-smart 0.1.1, and its own issuer, key set and scope code is gone. Authentication is configured by an [auth] table, read from the TOML file FERROTERM_AUTH_FILE names with FERROTERM_AUTH__<KEY> overrides (FERROTERM_AUTH__ISSUER, FERROTERM_AUTH__AUDIENCE, FERROTERM_AUTH__ENABLED, FERROTERM_AUTH__PRODUCT_SCOPE, and the rest of the keys the configuration page lists). It is on by default and fails closed: a server that names FERROTERM_RESOURCES or FERROTERM_ADMIN_LISTEN refuses to start until [auth] names an issuer and an audience, or says enabled = false. A read-only server starts as before (#762).
  • An audience is required with an issuer (RFC 9068 §4); the write routes still accept every served version’s base under FERROTERM_BASE_URL beside [auth] audience, and the admin listener accepts [auth] audience alone (#762).
  • Access tokens are checked under RFC 9068 by default: the at+jwt type and the sub, client_id, iat and jti claims are required. An issuer that mints plain JWTs is admitted with [auth] token_profile = "jwt" (#762).
  • The admin scope is a product scope in the SMART extension form, [auth] product_scope, __ferroterm.admin when unset; a value that is neither a __ string nor a full URI refuses the start (#762).
  • Machine callers authenticate with HTTP Basic as an [[auth.basic.users]] entry (Argon2id hashes) or with a client credentials token. Several issuers are trusted with [[auth.issuer]] (#762).
  • A refusal names no claim and no scope: every invalid token gets the same 401 with error="invalid_token" and no error_description, a 403 names no missing scope, two Authorization headers answer 400 invalid_request, and a key set that cannot be read answers 503 (#762).
  • The key set is read again once it is older than ten minutes (jwks_max_age_seconds), so a key the issuer withdrew stops verifying (#762).
  • scopes_supported in the SMART discovery document lists [auth] scopes_supported and no longer republishes the issuer’s list (#762).
  • ferroterm-sync authenticates POST /reload with the credential its new [server_admin_credentials] table names: HTTP Basic (user, password or password_file) or the client credentials grant under [server_admin_credentials.oauth] (#762).
  • ferrohealth-smart 0.4.1 (#764), a patch release with no API change.
  • ferrohealth-smart 0.2.0 builds the .well-known/smart-configuration document. It still writes issuer only where sso-openid-connect is claimed, which needs an issuer that lists the openid scope. It declares permission-v1 and permission-user and never permission-patient. The capabilities follow the crate’s order and are no longer sorted, and token_endpoint_auth_methods_supported is always present. A refused write still answers an OperationOutcome in the format Accept asks for; the gate’s renderer now reads it (#765).
  • ferrohealth-smart 0.3.1. A write route and the admin listener refuse a token whose sub is empty or whitespace only (RFC 9068 §2.2, RFC 7519 §4.1.2) and a bearer value outside the RFC 6750 §2.1 b64token syntax, each with the generic 401 invalid_token and no error_description (#767).
  • ferrohealth-smart 0.4.0 (#771). The sync service’s server_admin_credentials.oauth table takes the keys the crate adds: client_auth = "tls_client_auth" or "self_signed_tls_client_auth" with client_certificate_file and client_key_file for RFC 8705 §2 mutual TLS to the token endpoint, ca_file for trust roots added to the built-in ones, and assertion_audience = "issuer" for a private_key_jwt assertion that names the issuer (RFC 7523 §3) in place of the token endpoint.
  • The workspace builds with Rust 1.99.1 in place of 1.98.0, 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. The crate line moves to 0.1.119 with no API change (#773).

Removed

  • The terminology server no longer serves a user interface: /ui and the FERROTERM_UI switch are gone, and the server image carries no viewer bundle (#729).
  • The usage report’s FerroTERM status no longer carries viewer, which was false on every report since the server stopped serving a user interface (#736).
  • FERROTERM_OIDC_ISSUER, FERROTERM_OIDC_AUDIENCE and FERROTERM_OIDC_ADMIN_SCOPE are gone; [auth] issuer, [auth] audience and [auth] product_scope replace them. The default admin scope ferroterm/admin is now __ferroterm.admin (#762).

Fixed

  • A CodeSystem or ConceptMap loaded from a resource keeps its publisher, description, date and (for a ConceptMap) experimental on a read and a search, on every served FHIR version, where the server used to drop them (#732).
  • On a phone the value set composer’s code search puts its label above the field and the Search button on its own line below it, where the field used to narrow beside the button until its label wrapped (#740).
  • The code system and concept map editors and the value set composer name their mode in the header and the page title (#756): “New code system”, “New concept map” or “New value set” when they create, “Edit ” when they edit.
  • An editor table with no rows draws FerroUI’s shared empty state in place of a bare header row (#757).
  • Two console source files carry their SPDX header (#760).
  • The compose build service writes onto the host index directory with no --out: docker compose run --rm build --loinc /releases/Loinc_2.83.zip builds into ./index/loinc. A relative --out used to land in the container’s own filesystem, which --rm discarded after the build reported success. ferroterm-build takes --index-root (FERROTERM_INDEX_ROOT, which the service sets to /data/index): without --out it writes a child of the root named for the source, it refuses an --out outside the root, and every build prints the absolute path it wrote. The book’s Install and run page walks through the LOINC build, serving, and a $lookup check with the host and container paths named, and lists the command for every other source (#769).

Security

  • A token minted for any audience of the issuer no longer passes a server that names no audience: the start is refused instead (#751) (#762).
  • An invalid token’s refusal no longer quotes the token’s kid or the issuer’s error text in error_description (#752) (#762).
  • The synchronisation service’s admin listener requires a credential carrying __ferroterm.sync (or [auth] product_scope) on every route but GET /health, through ferrohealth-smart, and refuses to start while its [auth] table admits no credential, unless it says enabled = false (#764). The console reads the run list with the signed-in reader’s access token.
  • rustls-webpki 0.103.16 and webpki-root-certs 1.0.10 in the lock, past RUSTSEC-2026-0382 and RUSTSEC-2026-0383 (certificate paths through the distrusted emSign intermediates) (#771).

0.1.8 - 2026-10-16

Added

  • The server sends a usage report to FerroPULSE, operated by Cadasto B.V.: one report at each start and one a day, with the instance id, the version, the deployment kind, coarse host size, the loaded code system families, and latency per operation group. It never carries a code, a URL, or a request path. It is on by default, FERROTERM_USAGE_REPORT=off stops it, and it is off in CI and without a writable FERROTERM_STATE_DIR. The compose file keeps the state on a named /data/state volume; a plain container sends nothing until it is given one. What is sent, what the collector stores (the source IP address and the country derived from it, for 13 months), and how to have it erased: https://ferroterm.eu/docs/operate/usage-report.html.

Fixed

  • The ferroterm starting and listening log lines name every served FHIR version (fhir_versions=r4,r4b,r5,r6, bases=/r4,/r4b,/r5,/r6) instead of r4b alone.

0.1.7 - 2026-10-16

Changed

  • The Licensor and copyright holder of the project’s own work is Cadasto B.V. (#700), which replaces Vernum Projecten B.V. Every Licensor:, copyright and SPDX-FileCopyrightText line, the contribution grant, the governance text and the site footer name the company. The licence terms are unchanged, and maintainer credit stays a person.
  • A commercial licence, and any other business or licensing question, goes to Cadasto B.V. at info@cadasto.com or https://www.cadasto.com/contact/ (#702). Every LICENSE copy, the README, the handbook licensing page, MAINTAINERS.md, GOVERNANCE.md and SUPPORT.md say so. The maintainer keeps the technical side, and the licence terms are unchanged.
  • Pull requests record a user-visible change as a fragment under changelog.d/, which the release cut assembles into this file (#704).
  • The build service in the release compose.yaml builds any code system ferroterm-build knows, so a deployment without a SNOMED CT licence builds LOINC or another system through Compose. It mounts a release directory (./releases, or FERROTERM_RELEASES_DIR) at /releases and takes the builder’s own arguments: docker compose run --rm build --loinc /releases/Loinc_2.82.zip --out /data/index/loinc. FERROTERM_RF2 is gone; a SNOMED CT build passes --rf2 /releases/<zip> --out /data/index/snomed (#713).

Security

  • rustls moves to 0.23.46, which fixes RUSTSEC-2026-0346, RUSTSEC-2026-0347, RUSTSEC-2026-0348 and RUSTSEC-2026-0349 in the server and sync service TLS stack, and zip moves to 9.0.3 because every 8.x release is yanked (#715).

0.1.6 - 2026-10-01

Added

  • The sync lists a service’s FHIR API beside its feed (#692). The Nictiz NTS feed carries only the SNOMED CT binary index, and its CodeSystem, ValueSet, and ConceptMap resources answer on its FHIR endpoint. A source that names a FHIR API is searched per type and paged to the end, each resource becomes an entry the subscription and the replace rule read as they read the feed, and it goes through the resource lane with the digest of what arrived recorded, since the API advertises none. The run record carries the API address, how many resources it listed, each entry’s origin, and the subscribed canonicals no listing carried, which the account could not see. A CodeSystem listed with content not-present is reported, never served. The NTS add-on lists its FHIR endpoint by default (fhir_api = false keeps a run to the feed).

Fixed

  • scripts/live/nts-feed.sh follows the discovery redirect (#602). The NTS answers its SMART configuration URL with a 301 to the Keycloak discovery document, and the script stopped there with “the discovery document names no token_endpoint”; it now follows up to three redirects, as the add-on already did.

  • A subscription to a SNOMED CT edition matches the live NTS feed (#691). Ontoserver identifies an edition release by the bare code system http://snomed.info/sct and carries the edition in the version URI, so a subscription listing the edition URI admitted nothing and a run took nothing. A listed edition now admits a release whose version URI sits under it, the fixture feed carries the live shape, and a built artifact is held under its system as well as its edition, so a re-run recognises the release as served.

Changed

  • The repository moved to the FerroHEALTH organisation: it lives at https://github.com/FerroHEALTH/FerroTERM, and releases from this one on publish the image to ghcr.io/ferrohealth/ferroterm and sign their attestations as FerroHEALTH/FerroTERM. Releases up to v0.1.5 keep their rubentalstra signer identity, and the book’s verification page says how to check them.
  • The NTS add-on names the Dutch canonicals the service serves (#602): ICD-10-NL, the Labcodeset supplement and its three maps, NHG-Tabel 24, the NHG table prefix, and the zib value set prefix, read from the live service. The book’s NTS section records what the feed and the FHIR API carry, the 24 hour token lifetimes, and how an unlicensed system is hidden.

0.1.5 - 2026-09-24

Added

  • The project extensions resolve on the website (#671). Each of terminology-artifact, implicit-value-set and operation-level under https://ferroterm.eu/fhir/StructureDefinition/ has a StructureDefinition in the R4B shape (<name>.json, with its context, its sub-extensions and their types) and a page at the canonical itself that links it, as FHIR asks of an extension’s URL (https://hl7.org/fhir/R4B/extensibility.html#defining). The book’s FHIR API page links each definition beside its wire example, and scripts/checks/extension-definitions.sh fails CI when the server emits a canonical the site does not define.

  • metadata?mode=terminology declares the implicit value sets each served version resolves (#657). Every form is an extension https://ferroterm.eu/fhir/StructureDefinition/implicit-value-set on codeSystem.version, on R4, R4B, R5 and R6, with a pattern (the URL template as the code system’s page spells it, placeholders in square brackets) and an argument (none, code or expression). SNOMED CT declares its five ?fhir_vs forms, LOINC /vs, /vs/[id] and /vs/[partcode], RxNorm /vs, UCUM /vs and /vs/[expression], and an ICD-11 linearization [entity]/postcoordinationScale/[axis]; the ClaML classifications, BCP 13, BCP 47 and CodeSystem resources declare none. The composer’s value set picker offers each declared form for the clause’s code system and fills its placeholders, a code through the concept search and an expression through a text field.

  • The history interaction on the persisted resources (#667). GET {type}/{id}/_history and GET {type}/_history answer a history Bundle on every served version, newest first, with entry.request naming the POST, PUT or DELETE that made each version and entry.response its status, etag and lastModified; the delete is an entry with no resource (https://hl7.org/fhir/R4B/http.html#history). _since narrows both levels, and _count, _at and _list answer 400 not-supported. A loaded resource answers an empty history. The CapabilityStatement declares history-instance and history-type wherever it declares vread. A delete is now recorded as a version of its own: a version read of it answers 410, and a resource written again after a delete counts on from it, where it used to start again at version 1 and overwrite the first version in the store. The viewer’s history screen keys a delete by the version its etag names.

  • _summary on read and search, and _elements on read (#669). The read of a CodeSystem, ValueSet or ConceptMap takes _elements, with the projection and SUBSETTED tag a search already gave. Both interactions take _summary (https://hl7.org/fhir/R4B/search.html#summary): true keeps id, meta and the top-level elements the served version’s definition marks isSummary; text keeps text, id, meta and the top-level elements the served version’s definition makes mandatory, read from the element table of the pinned packages; data drops text; false is the whole resource; count, on a search only, answers total with no entries. A resource that lost an element carries SUBSETTED. A value the search-summary code system does not define is a 400. The CapabilityStatement declares _summary beside _elements.

  • A refused expression constraint states where the parser stopped, as data (#656). When ValueSet/$expand or ValueSet/$validate-code refuses a malformed filter value or ecl/ implicit value set, the OperationOutcome issue names the input in issue.expression (Parameters.parameter[i].resource.compose.include[j].filter[k].value for a filter of an inline value set, Parameters.parameter[i].valueUri for a url in a body, http.url for the url query parameter) and carries the operationoutcome-issue-line (1) and operationoutcome-issue-col extensions. The column is 1-based and counts characters into the value issue.expression names; for http.url it counts into the query value as the client sent it, percent-encoding included. The answer is the same on R4, R4B, R5 and R6, and never sets the issue.location element R6 dropped. The viewer’s composer marks the character from these two, and no longer reads a number out of the diagnostic’s wording.

  • The viewer’s editor bundle reads a resource’s versions, compares two of them, and restores one (#637). Every authoring screen links to /ui/editor/history for the resource it has open. The version list is read with whichever interaction the server’s CapabilityStatement declares, the history interaction or the version read, and the screen says which it used and when the server declares neither. Any two versions can be compared, as the elements they disagree about rather than as text, with the two server- assigned meta elements left out; the pair is in the address, so a comparison is a link. Restore this version writes that version’s whole resource back with If-Match of the version the server holds now, so a concurrent edit is refused with 412 and shown as one; it needs the write scope for the resource type, and a reader sees the versions and no restore control. Where a deployment puts the synchronisation service’s admin listener behind the server’s own origin, the screen also lists what the newest run found about the open resource; where nothing answers there, it shows nothing.

  • The viewer’s editor bundle composes a local ValueSet (#635). /ui/editor/compose builds a ValueSet.compose out of value sets the server already publishes, own codes picked through the concept search, the filter properties and operators the served code system version declares, and excludes. The composition rules are drawn as they apply, a clause that breaks vsd-1, vsd-2 or vsd-3 says so by number, and the preview is ValueSet/$expand by POST with the unsaved definition inline. Saving needs user/ValueSet.cud and goes through the REST API with If-Match, carrying back every element the form does not draw. Content the server serves from its loaded indexes opens read-only.

  • A concept map is authored in the browser, at /ui/editor/conceptmap (#636). The screen carries the metadata, the value sets that scope the map, the groups of systems it maps between, and every code with the targets it maps to. The element a save writes is the served version’s own: R4 and R4B take source[x]/target[x] and group.element.target.equivalence, R5 and R6 take sourceScope[x]/targetScope[x] and target.relationship, R5 made a group’s system a canonical carrying its own version, and R5 added element.noMap (https://hl7.org/fhir/R4B/conceptmap.html, https://hl7.org/fhir/R5/conceptmap.html). The relationship control offers what the served root expands that version’s own value set to, and the form refuses what the version refuses: a target with no relationship, a code that both maps to nothing and carries a target (cmd-4), and an uncommented target on the relationship codes cmd-1 names, which differ per version and are a warning rather than an error on the R6 ballot. Every code on both sides is picked out of the system its group names, through the same ValueSet/$expand search the concept browser runs, so a target arrives with the display the server gave it. A preview runs ConceptMap/$translate by POST with the map itself in the conceptMap parameter, which is how a map that has never been saved is translated through; a server may refuse a map sent that way (https://hl7.org/fhir/R4B/conceptmap-operation-translate.html), so the screen then runs against the saved map and says which it used. Saving sends the whole resource with If-Match, a 412 is shown as a concurrent edit with a reload, and every refusal renders the server’s own OperationOutcome and announces its text. A map this deployment loaded opens the same screen read-only, because the server states no meta.versionId for it.

  • A code system is authored in the browser, at /ui/editor/codesystem (#634). The screen carries the metadata (url, version, status, content, caseSensitive), the properties the system declares, and the concepts with their designations and property values, with every coded control offering what the served root expands that element’s own value set to. A concept is retired rather than deleted: the lifecycle control writes exactly the standard concept properties the state implies (status always, inactive where the state means it, and deprecationDate or retirementDate, https://hl7.org/fhir/R5/codesystem-concept-properties.html), and after a save the screen runs CodeSystem/$validate-code on what it retired and shows the answer. Every write sends the whole resource with If-Match, so a change made elsewhere is refused with 412 and offered a reload rather than overwritten, and every refusal renders the server’s own OperationOutcome and announces its text in the screen’s live region. A code system this deployment built from a release opens the same screen read-only, because the capability statement marks it as served from an artifact.

  • The viewer ships as two bundles, and the server serves both (#634). The reader bundle is what /ui has always served, unchanged in size and in content. The editor bundle is the same crate built with --features editor, served at /ui/editor, carrying every reading screen plus the authoring screens. A reader who never edits downloads no authoring byte, and a person who edits opens /ui/editor, signs in there, and reads there too. Each bundle has its own recorded size (app/ferroterm-viewer/bundle-size.json and bundle-size-editor.json), and the release lane embeds both trees in the one binary.

  • The viewer signs a person in with SMART App Launch and gains a write client (#633). Where the deployment sets FERROTERM_OIDC_ISSUER and FERROTERM_VIEWER_CLIENT_ID, the server publishes the client as ferroterm_viewer_client_id in its .well-known/smart-configuration (RFC 8414 §2 admits the extra member), and the top bar gains a Sign in control. The viewer is a public client performing a standalone launch (https://hl7.org/fhir/smart-app-launch/app-launch.html): a PKCE verifier from the browser’s own crypto with an S256 challenge (RFC 7636), a state checked on return (RFC 6749 §10.12), the code exchanged at the token endpoint with the verifier and no client secret, and /ui/callback as the redirect address to register. The access token is held in memory for the life of the tab: never localStorage, never a cookie, so closing the tab signs out. Signing out drops the token and revokes it where the issuer publishes a revocation_endpoint (RFC 7009). The viewer reads the granted scopes the way the server’s gate reads them, so it offers only what the server would allow, and a deployment that publishes no issuer shows no sign-in and no edit control anywhere.

  • The FHIR client gains create, update with If-Match from the resource’s version, delete, and _history, each presenting the bearer when one is held and each reading the server’s own OperationOutcome into a typed refusal the editor screens render: 401 as sign-in required, 403 as no permission, 412 as a concurrent edit (https://hl7.org/fhir/R4B/http.html#concurrency). Nothing writes yet; the screens that call this seam are #631.

  • The SMART write gate accepts user/ scopes beside the system/ ones, so a person signed in to an interactive client can write (#632). user/ is “data that a user can access” and system/ is a client authorized in its own right, and both address the same resource types (https://hl7.org/fhir/smart-app-launch/scopes-and-launch-context.html), so the route-to-letter mapping is unchanged: user/ValueSet.u opens a PUT, user/CodeSystem.c a POST, user/ConceptMap.d a DELETE, with the combined cud and cruds forms and the version 1 .write and .* mapped as the specification maps them. patient/ is refused with a 403 and an OperationOutcome, because a terminology server holds no patient record and a patient-compartment scope selects nothing on it. A refusal names every scope that opens the route in its outcome text; the challenge’s optional scope attribute is sent only where one scope does, since RFC 6750 §3 reads it as the scope a token must carry, a space-delimited set (RFC 6749 §3.3) rather than a choice.

  • .well-known/smart-configuration publishes what a browser client needs for a standalone launch (#632): launch-standalone and client-public beside the confidential-client capabilities, permission-user for the scopes above, and sso-openid-connect with the required issuer member where the configured issuer lists openid in its scopes_supported (https://hl7.org/fhir/smart-app-launch/conformance.html). Every issuer-derived capability is still claimed only where the issuer’s own document backs it.

  • Post-coordinated SNOMED CT expressions are served (#638). An expression in Compositional Grammar is a valid code and is “subject to the same rules as precoordinated concepts” (https://hl7.org/fhir/R4B/snomedct.html), so CodeSystem/$validate-code checks its syntax and every concept it names, $lookup answers the expression in one canonical order with a display that carries the edition’s terms, $subsumes takes an expression on either side, and $closure relates one to the concepts a table holds. TerminologyCapabilities.codeSystem.version.compositional is now true for SNOMED CT on every served version. The expressions filter decides whether a filtered include admits an expression: true admits one whose focus concepts it contains, and false or no filter refuses it. An include that enumerates an expression contains it whichever way either side spells it, and excludePostCoordinated drops those from an expansion. $lookup answers the expression’s own refinement as the concept-model properties, and an expression over an inactive concept validates with inactive = true, the way an inactive concept does. Three boundaries are recorded in the code and in the book: no concept model (MRCM) check, no close-to-user transformation, and subsumption decided over the edition’s inferred view without a description logic classifier.

  • crates/sct-scg, a logos lexer and winnow parser for the SNOMED CT Compositional Grammar, faithful to the normative ABNF rule for rule, with a printer whose output parses back to the same tree. The ABNF and the official example corpus are vendored from the IHTSDO/SNOMEDCT-Languages repository by scripts/vendor/scg-grammar.sh and pinned in docs/VERSIONS.md.

Changed

  • fhir-types 0.1.106 (#669). The FHIR model release whose element table carries the isSummary and isModifier flag of every element, which _summary=true reads.

  • A save the server refuses with 412 now offers one way back on every editor screen (#666). The code system editor, the value set composer, the concept map editor, and the history screen each announce the server’s own OperationOutcome wording in their live region, keep what was typed, and offer Reload the current version, which reads the resource again, replaces the form’s content and the version the next save states, and moves the keyboard to the announcement. A resource created on the screen is named in the address by that reload. The composer’s reload used to show the version it had read before the refusal, so the next save was refused again; it now reads the server’s current one.

  • The viewer signs in at /ui/editor, so the redirect address registered with the identity provider becomes {base}/ui/editor/callback (#634). The editing screens live in that bundle, and a token lives in the page that holds it, so a sign-in that ended on /ui would be spent by the load that opened the editor. On /ui the control is now a link into the editor bundle. A deployment that configured FERROTERM_VIEWER_CLIENT_ID registers the new address; nothing else about the launch changes.

  • The artifact layout moves to 7, so every index must be rebuilt with the ferroterm-build of this version (#641). A server refuses an artifact of another layout with the error naming both versions, and an older server refuses this one the same way; nothing reads the other’s files. The store’s four dense columns (concepts, preferred displays, properties, acceptability) are now their own files beside store.redb, named store.concepts.col and its three siblings, and the server reads each one into the structure it serves from. Held in the database a column arrived twice, as the value redb materialized and as the copy the store served from, and the pages of the first stayed with the process. Measured on an Apple M2 with ferroterm-residency --report, a served edition’s footprint falls from 783.3 MB to 615.5 MB (Netherlands 20260630) and from 619.7 MB to 519.0 MB (International 20260901), with the unattributed remainder down from 222.8 MB to 55.1 MB and from 150.3 MB to 49.6 MB. The artifact is smaller on disk as well, 863.8 MB to 689.5 MB for the Dutch edition, and the build holds 0.7 GB less at its peak.

  • The SMART gate now checks the token audience wherever FERROTERM_BASE_URL is set, so an issuer that mints an audience of its own needs that value in FERROTERM_OIDC_AUDIENCE (#650). A SMART client names the resource server it wants FHIR data from in aud (https://hl7.org/fhir/smart-app-launch/app-launch.html), and this server publishes one FHIR base per version. An issuer that mints the claim from that request gave a reader who signed in on /r5 a token the gate refused when the operator had named the /r4b base. The write routes now accept every version’s base derived from FERROTERM_BASE_URL, with and without a trailing slash, beside FERROTERM_OIDC_AUDIENCE. A token passes when its aud holds any of them, the string form and the array form alike (RFC 7519 §4.1.3). The admin listener is unchanged: it serves no FHIR interaction, so it still accepts FERROTERM_OIDC_AUDIENCE alone, and a deployment that names neither variable still checks no audience.

  • code_challenge_methods_supported in the served SMART configuration is always ["S256"] (#632). “SMART servers SHALL support the S256 code_challenge_method and SHALL NOT support the plain method” (https://hl7.org/fhir/smart-app-launch/app-launch.html), and the member is required, so the server states its own support and drops a plain the issuer advertises. Before this it echoed the issuer’s filtered list, which published an empty array when the issuer named no method.

  • scopes_supported republishes only the scopes the write gate honours (#632). SMART says the server “SHALL support all scopes listed here”, so a patient/ scope, a launch/ context scope, or a search-parameter-narrowed scope from the issuer’s list is dropped instead of being promised and then refused with a 403.

  • An issuer that omits grant_types_supported or token_endpoint_auth_methods_supported is read as its documented default, ["authorization_code", "implicit"] and client_secret_basic (https://openid.net/specs/openid-connect-discovery-1_0.html, §3), instead of as an issuer that supports neither (#632). The served document then carries a non-empty grant_types_supported, which SMART makes required, and the capability list names the client type that issuer actually accepts.

  • The eleven latency bars in bench/bars.json are tightened from the flat

  • A served SNOMED edition holds a third less memory. The Dutch edition reads 818 MB resident warm against 1.14 GB, and the International edition 654 MB against 942 MB, measured with the same harness on the same artifacts (#322). Two changes carry it. A provider no longer reads a side file whole before parsing it, so hierarchy.bin, text.bin, members.bin, attributes.bin, and refsets.bin are assembled through a buffered reader and the file never sits in memory beside the structure it becomes. And the redb page cache is capped at 64 MiB: its default is a gibibyte, and the dense columns are read once when the store opens and never again, so the default kept their pages for the life of the process. Every other served system gains too, from RxNorm’s 132 MB to 109 MB down to ICD-10-NL’s 66 MB to 64 MB. The published record set still carries the older figures: the machine could not give a measurement while this landed, so re-rendering the table is #642.

  • The resident memory of a served edition is accounted for structure by structure, each figure counted from the structure’s own allocations rather than inferred from a total (#322). concept-graph, designation-index, and concept-store answer size_in_bytes per structure, SnomedProvider::footprint collects them, and ferroterm-residency --report prints the accounting beside the process footprint so the remainder is named rather than left as a gap. The Dutch edition counts 560.4 MB of structure against a 782.2 MB process, and the book’s hardware-sizing chapter carries the table. The two ends of the remainder are the capped page cache and the pages the allocator keeps from copying each column out of the database, which is #641.

  • The fixed per-request cost of $lookup is the loopback round trip, not the server (#628). Three served/*_lookup benches now span 862 bytes to 63,134 bytes in one process, and fitted over them a $lookup costs 11.9 µs plus 3.74 ns per byte, against 97.6 µs plus 4.61 ns per byte over a socket in a record. Two new benches split the 11.9 µs: fixed/axum_floor puts routing at 0.7 µs and fixed/served_floor puts the request log, the metrics sample, and the request identifier at 1.2 µs on top, with the SMART gate adding 0.7 µs when no issuer is configured. The 28 µs the fixed term appeared to gain since 2026-09-08 does not reproduce: the server built from that tree and the server built from this one, run by the same harness over the same artifact in six alternating passes, read a median 104.7 µs and 83.1 µs for the same 862-byte answer. The served bar stays at 100 µs + 6.0 ns/byte, and the two new fixed/ bars gate the part the server controls.

  • ferroterm-bench and ferroterm-residency read a process’s memory from one module. ferroterm-residency had its own reader over ps -o rss=, which on macOS counts only the pages that are resident and uncompressed, so the resident_bytes it wrote understated a served edition by an order of magnitude; both binaries now use footprint’s phys_footprint there (#322).

  • The latency bars in bench/bars.json are tightened from the flat millisecond to a round number three to six times over the slowest median the bench has shown, so a regression fails scripts/checks/bench-bars.sh in CI instead of being noticed in a record months later (#304). A $lookup that got twenty times slower passed the old bar. The headroom covers both machines that run the check: this laptop and the shared runner of the bench-bars job, whose medians differ by up to 1.5x between runner instances.

  • The served $lookup bar keeps its per-byte shape and its coefficients, 100 µs + 6.0 ns/byte, confirmed against bench/records/2026-09-23-apple-m2/, the first committed set that carries the size of each answer (#512). Fitted over its seven code systems, a $lookup costs a fixed 97.6 µs plus 4.61 ns per byte, and all seven hold the bar: RxNorm’s 387.7 µs for 63,134 bytes is the largest answer rather than the slowest read, since SNOMED CT International pays 216.8 µs for 25,764 bytes at the same rate. The fixed term measured 70 µs on 2026-09-08 and 97.6 µs here with the rate unchanged, which leaves the smallest answers 4% under the bar; the bar is not raised for it, and the 28 µs was taken to #628, which found it in the machine rather than the code (below).

  • The published record set states the condition of the machine it was taken on: bench/records/2026-09-23-apple-m2/README.md and the benchmarks chapter say what ran during the run and what did not, and that the resident and peak-build figures are the server’s and the build tool’s own processes rather than the machine’s (#512).

  • docs/claims.md is refreshed against the 2026-09-23 set. The five benchmark claims that had no evidence behind them are gone: the container wording they flagged has been replaced on the README and the benchmarks page, and the resident and footprint figures on the comparison pages now come from that set, read with footprint so the pages macOS compresses are counted.

  • terminology-syndication is not published on crates.io (the owner’s decision, 2026-09-23): it says publish = false and sits outside the release lane’s crate list, consumed inside the workspace by the sync service and its add-ons. The v0.1.4 release run had published the other thirteen crates at 0.1.105 and failed on this one, since a Trusted Publishing token cannot create a new crate. crate-version-guard.sh no longer counts an unpublished member’s files as packaged content.

  • The FHIR API chapter states how a $validate-code names a code system the server does not hold, and corrects its claim that each operation’s parameter set is the R4B OperationDefinition. The set is the served version’s own definition plus the parameters the HL7 terminology ecosystem requires of every server (https://hl7.org/fhir/uv/tx-ecosystem/requirements.html), which is what the server has accepted since the overlay landed (#537).

Fixed

  • The browser journeys pass a second run against the same store (#677). Every write journey in e2e/ authors a canonical carrying the run’s process id, through one helper in the harness, so a server whose resource store persists between runs no longer answers with the copy an earlier run left. The header of scripts/ui-e2e.sh states the whole managed topology and the manual recipe for the signed-in pair, with the --public issuer split and the Caddy upstream, and on macOS the managed mode points at that recipe.

  • A persisted resource can no longer take the canonical of a FHIR core resource (#679). A create or update whose url and version a CodeSystem or ValueSet of the FHIR core terminology carries, on any served version, is refused with 409 and an OperationOutcome issue of code duplicate naming the FHIR version whose core terminology holds it (https://hl7.org/fhir/R4B/resource.html#canonical). Such a write used to be stored and to answer for the core code system or value set on every version, with nothing on the wire saying so. A store that already holds one keeps the record, leaves it out of what the operations resolve, answers from the core terminology, and logs a warning at startup naming the id.

  • A persisted resource under a core or loaded url hides only its own version (#685). A CodeSystem persisted at http://hl7.org/fhir/administrative-gender with version local-1 used to hide every version the FHIR core terminology defines for that url, so a $validate-code naming 4.3.0 answered from the local resource. The layers now resolve per url and version on R4, R4B, R5 and R6: a version the persisted layer holds answers from it, every other version answers from the core terminology or the loaded resources beneath, and the error for an unknown version lists the versions of every layer. A request without a version takes the default one registry holding every layer would pick: a configured default, else the greatest version, so local-1 becomes the default over 4.3.0 and a persisted 1.0.0 leaves 4.3.0 the default (https://hl7.org/fhir/R4B/references.html#canonical). A persisted ValueSet over a core value set layers the same way.

  • Two resources of one type can no longer carry one canonical (#670). A create or update whose url and version another CodeSystem, ValueSet or ConceptMap of the same type already carries, persisted or loaded from disk, is refused with 409 and an OperationOutcome issue of code duplicate naming the other resource’s id, because the pair identifies one resource (https://hl7.org/fhir/R4B/resource.html#canonical). An update of the resource that holds the canonical, and the same url under another version, are written as before. A store written before this change may already hold a duplicate: the server now answers for it from the most recent write, where it used to answer from the id that sorted last, and logs a warning at startup naming every id that carries the canonical.

  • _elements keeps the extension member of a primitive it names (#675). _elements=title now returns _title beside title, the member that carries a primitive’s id and extensions in FHIR JSON (https://hl7.org/fhir/R4B/json.html#primitive), as the _summary views already did; it used to drop it. The ValueSet and ConceptMap instance lists are sorted by id as documented, where the persisted entries used to follow the loaded ones, and a persisted-resource route answers its 406 in one place.

  • An Accept header naming no format the server serves answers 406 (#668). Accept: text/csv used to get FHIR JSON with a 200; it now gets 406 Not Acceptable with an OperationOutcome not-supported issue in JSON, on every route of every served version, the answer an unknown _format already gave (https://hl7.org/fhir/R4B/http.html#mime-type). Quality values count: each format takes the weight of the most specific media range that matches it, the heavier format wins with JSON on a tie, and q=0 excludes (https://www.rfc-editor.org/rfc/rfc9110#section-12.5.1), so application/fhir+xml;q=0.9, application/fhir+json is JSON. */*, application/*, an absent header and a list with one acceptable entry keep working, _format still overrides Accept, and the DSTU2 types application/json+fhir and application/xml+fhir are accepted.

  • A resource written on one served version no longer fails another version’s search (#659). A ConceptMap authored on /r5 states a target’s direction as relationship, which R4B spells equivalence, so GET /r4b/ConceptMap used to answer 422 and list nothing at all. A written resource is still never converted between FHIR releases. R4B states a target’s direction with concept-map-equivalence and R5 with concept-map-relationship; equal, subsumes, specializes, inexact and unmatched have no code in the R5 set (https://hl7.org/fhir/R4B/valueset-concept-map-equivalence.html, https://hl7.org/fhir/R5/valueset-concept-map-relationship.html), and HL7’s R4-to-R5 transforms live in a cross-version implementation guide that is informative and under development (https://hl7.org/fhir/extensions/conversions-ConceptMap.html), so no core specification states what a conversion should produce. Instead the search leaves the resource out of its matches and adds one entry carrying an OperationOutcome with search.mode of outcome, severity of warning and code of not-supported, naming the resource and the version it was written as, which is the shape a searchset has for reporting on the search itself (https://hl7.org/fhir/R4B/http.html#search); total counts the matches. The instance read of that resource on that base answers 404 rather than 422: serving one release per base is the strategy the specification describes as one where “the same record has a different identity depending on the version of FHIR in use” (https://hl7.org/fhir/R5/versioning.html), and the read interaction names only 200, 404 and 410 (https://hl7.org/fhir/R4B/http.html#read). The OperationOutcome names the release the resource does read as.

  • ValueSet/{id}/$expand, ValueSet/{id}/$validate-code and ConceptMap/{id}/$translate answer on R4, R4B, R5 and R6 (#663). All three operation definitions declare the instance level on every served version, where the operation runs on the resource the URL names (https://hl7.org/fhir/R4B/operations.html#request), and a client that listed value sets and expanded one by id met a 404. The instance form dispatches to the same engine call as the type-level form with the instance’s own canonical and version, for loaded and for persisted resources, including a resource that carries no url of its own; a url, a version, or an inline resource that contradicts the instance is a 400, and a canonical that carries the instance’s own version after a | is the instance.

  • A searchset’s entry.fullUrl is absolute, and the bundle carries its self link (#663). fullUrl is the absolute URL of the resource (https://hl7.org/fhir/R4B/bundle.html#bundle-unique), built from the base URL the deployment declares in FERROTERM_BASE_URL plus the version’s own root, or, when it declares none, from the authority the request names. A deployment behind TLS declares the base URL, because a request carries no scheme. R5 and the R6 ballot require a fullUrl on every searchset entry (bdl-15) and a self link on every searchset (bdl-18, https://hl7.org/fhir/R5/bundle.html), so the outcome entry above carries a urn:uuid: and every searchset now carries the URL it was searched at.

  • A loaded CodeSystem supplement is read at its id and listed by search (#663). A supplement is a CodeSystem resource the server holds (https://hl7.org/fhir/R4B/codesystem.html#supplements) and nothing lets a server withhold one from a read; it answers at the id it was authored with, or the minted fallback, with content = supplement and its supplements canonical intact, and it still applies to the system it names.

  • An editor’s coded control shows the code the resource carries rather than the first one the server offered (#636). The codes arrive from a ValueSet/$expand after the form is built, and a <select> whose value names an option it does not have yet falls back to its first one (https://html.spec.whatwg.org/multipage/form-elements.html#the-select-element), so opening a saved resource showed the wrong code and the next save wrote it. Each option now states its own selectedness, which the browser reads as the option is inserted. The code system editor’s status, content mode and property type controls are fixed by the same change, and an expansion the root will not run now renders the server’s own OperationOutcome beside the control rather than the status number it came with.

  • A CodeSystem, ValueSet, or ConceptMap the deployment loads is read at the id it carries (#660). The server used to mint an id from the resource’s canonical and version and drop the authored one, so GET /r4b/ValueSet/e2e-taxonomy-all answered not-found for a resource whose own id was e2e-taxonomy-all, and every resource a syndication feed delivers has an id its clients address it by. Resource.id is the logical id a read addresses (https://hl7.org/fhir/R4B/http.html#read, https://hl7.org/fhir/R4B/resource.html#id), and the read, the search fullUrl, the rendered id, and the instance-level operations now all use it. A resource that carries no id, an index built from an RF2 release for example, keeps the minted one. Two loaded resources of one type carrying the same id refuse the load, as does a loaded id a persisted record already answers on, with a diagnostic naming the canonicals; the server never renames a resource it loads. A PUT or POST onto an id a loaded resource is read at is refused with 409 Conflict for the same reason. A client that addressed one of these resources by the minted id moves to the authored one, which a search now returns.

  • The RF2 relationship reader admits only rows whose characteristicTypeId is 900000000000011006 |Inferred relationship| (#545). A qualifying or an additional row “is not part of the definition of the concept” (release file specification, appendix E.5), so neither reaches the hierarchy, the concept’s attribute properties, ECL refinement, or the normal form. The concrete value file carries the same column and gets the same filter, since §4.2.6 states that its rules are those of the relationship file. A current edition ships only inferred rows, so a build of one produces the same artifacts as before; an edition published before 2018 and an extension that ships other rows no longer put them into a concept definition. The build counts every row it leaves out and prints the count, so a release whose relationships sit outside the inferred view never builds a thin hierarchy in silence.

0.1.4 - 2026-09-23

Added

  • app/ferroterm-sync, the synchronisation service: one way from a terminology syndication feed into a running server (#579). It runs beside the server and never inside it. On a schedule (every = "24h", at = "03:00" in a configured zone, no cron), on POST /run, or as ferroterm-sync run-once, it lists each configured source, takes what the deployment does not hold yet, and puts it through one of two lanes: an RF2 archive is built by ferroterm-build into a staging directory and renamed into the index root as a new release beside the previous one, and a FHIR resource is written into the managed resource directory with its service’s corrections applied. It then asks the server to reload. activation = "manual" stops after staging and waits for POST /activate. Retention keeps the newest releases per code system and removes the rest only after a reload succeeded; nothing else is ever deleted, and the server’s own write store is never touched. A build that fails or a reload the server refuses leaves the served set exactly as it was, rolling back what the run had moved, and still fires the webhook. Every run writes one JSON record (what the feed offered, what was taken, what was left behind and why, the builds, the activation, the reload replies, retention, and the errors), served with the metrics and the manual triggers on the service’s own admin listener. The Nictiz NTS add-on is registered as the nts source kind. docker/Dockerfile.sync carries the service and the builder on the same distroless base, and compose.sync.yaml runs it beside the server over one volume with the server’s admin listener turned on.
  • The sync service revalidates the deployment’s own content after a release is activated (#583). With fhir_base_url set it reads every locally authored ValueSet and ConceptMap over the server’s public FHIR API, with ValueSet/$validate-code and ValueSet/$expand and their activeOnly parameter, and writes into the run record every local code the new release made inactive, removed, or left outside the value set it was included through, each with its system, its code, and the release that changed it. A run that finds nothing says so. The finding count travels in the webhook summary, and /metrics carries ferroterm_sync_revalidation_findings as a gauge per locally authored resource. The check reports and never edits local content.
  • Optional SMART App Launch bearer validation over the write routes and the admin listener (#586). FERROTERM_OIDC_ISSUER turns it on: the server reads the issuer’s OpenID Connect discovery document and its JWKS before it binds, refuses to start with the reason when either does not answer, and then requires an OAuth 2.0 bearer token on POST, PUT, and DELETE of CodeSystem, ValueSet, and ConceptMap on every served FHIR version, on POST [base]/$closure, and on every admin-listener route. The scope for a route is the SMART version 2 one (system/CodeSystem.c to create, .u to update, .d to delete, the combined cud and cruds forms accepted), and the version 1 .write and .* forms are accepted as the specification maps them (https://hl7.org/fhir/smart-app-launch/scopes-and-launch-context.html); FERROTERM_OIDC_ADMIN_SCOPE names the scope the admin listener requires. A request with no token answers 401 with a WWW-Authenticate: Bearer challenge, a token that does not verify answers 401 with error="invalid_token", and a token without the scope answers 403 with error="insufficient_scope", each with an OperationOutcome (RFC 6750 §3). The signature is checked against the issuer’s JWKS with an asymmetric algorithm only, and iss, exp, and nbf are required, as is aud when FERROTERM_OIDC_AUDIENCE names one; a typ header that names a kind other than an access token is refused (RFC 8725 §3.1, §3.8, §3.9, §3.12). A token naming a key the server has not read refreshes the key set, at most once a minute. The issuer URL is https, and a cleartext one is refused unless its host is the loopback. [base]/.well-known/smart-configuration is served per version from the issuer’s document, and the capability statements declare SMART-on-FHIR with the oauth-uris extension (https://hl7.org/fhir/smart-app-launch/conformance.html). The read surface stays open, and a deployment that names no issuer behaves exactly as before.
  • The server reloads the served set without a restart (#578). SIGHUP and POST /reload both make it read FERROTERM_INDEX and FERROTERM_CODESYSTEMS again, open everything read-only, and swap the whole registry; a request in flight finishes on the set it started on. POST /reload is served by an admin listener bound to FERROTERM_ADMIN_LISTEN, which serves nothing else and is absent when the variable is unset; the FHIR listener answers /reload with the not-found OperationOutcome any unknown path answers. A reload that meets an artifact it cannot open leaves the served set untouched, logs the reason, and answers the admin request with a 500 naming it. FERROTERM_RESOURCES is carried over rather than reopened. /metrics gains ferroterm_reloads_total{outcome="ok"|"failed"}, and ferroterm_code_system_loaded now describes the set being served rather than the set loaded at start.
  • A concept of a CodeSystem resource the server loaded or a client persisted is inactive when its standard concept properties say so (#584). inactive = true, a status of retired, and a retirementDate the request is behind each retire the concept; deprecated, a deprecationDate, and a status of deprecated leave it active, because the specification says a concept that is deprecated but not inactive can still be used (https://hl7.org/fhir/R5/codesystem-concept-properties.html). $expand with activeOnly=true then leaves the concept out and activeOnly=false lists it with contains.inactive = true, $validate-code answers result = true with inactive = true, and $lookup returns the properties as written. The R5 property set is data on every version prefix, so the answers match on R4, R4B, R5, and R6. Where two markers disagree the one that says inactive wins, a retirementDate that is not a readable dateTime reads as a retirement already in force, and the status output of $validate-code reports a status only where the resource stated one.
  • crates/terminology-syndication, a client for the Atom syndication dialect national terminology services publish (#580). It reads a feed with the NCTS Atom Syndication Format extensions into a typed model, keeps a category term it does not name rather than dropping it, decides what a run takes (snapshot only, the binary index refused by name, Ontoserver’s newer-date replace rule), and streams one content item to a file with its SHA-256 or MD5 verified before it counts as fetched. The Source trait is the seam a service add-on implements, with the listing and the download authenticating separately. The crate names no country, operator, or code system.
  • A path in FERROTERM_INDEX may name an index root as well as a single artifact (#592). A path holding no manifest.json is a root, and every child directory that holds one is opened as an artifact. The server lists the roots again on every reload, so a release directory that appeared is opened and one that disappeared is dropped, without a restart. A child without a manifest is passed over, which makes the stage-then-rename step a synchronisation job uses race-free; a child whose manifest the server cannot read refuses the reload and leaves the served set answering. Two releases of one system under a root are both served, and the greatest version stays the default.
  • scripts/checks/addon-boundary.sh, the guard that keeps addons/* optional (#582). A source add-on is code the sync service compiles in and nothing else links, so the check reads the declared workspace edges from cargo metadata and fails when a member outside app/ferroterm-sync depends on an add-on, or when an add-on depends on a workspace crate other than crates/terminology-syndication and the leaf crates it names by hand. A dev dependency is test scaffolding and stays legal. --self-test judges synthetic metadata, so a tree whose every real edge is legal still shows the guard bites. It runs in CI beside the viewer boundary, and scripts/checks/comment-style.sh --all now runs there as a job of its own rather than only in the per-edit hook.
  • addons/nts, the Nationale Terminologie Server source add-on and the first member of the new addons/* tree (#581). It reads the token endpoint from the service’s SMART configuration document, logs in with the documented password grant (or the client-credentials grant when a client secret is configured), refreshes the access token inside a one-minute margin, and logs in again from the stored credentials when the refresh is refused, so an unattended run on any day needs no person. Credentials come from a file or the environment and never from the configuration body, and no rendering of the configuration, the credentials, or the source prints a secret. The subscription names systems by canonical identifier: an entry outside it is reported as skipped, and a system the service offers only as Ontoserver’s binary index is reported as not syndicable. A FHIR resource file whose experimental element is the string "true" or "false" gets the boolean FHIR declares, with the correction returned beside the file; a file that needs nothing lands byte-identical. The add-on is verified against fixtures only until an account exists.

Changed

  • fhir-types 0.1.105 (#611). The generated codec now refuses a primitive outside its lexical form at decode time, with the regex read per FHIR version from the HL7 package (structuredefinition-regex): a dateTime that is no date, a code with a leading space, a uri with whitespace. On the write path a POST or PUT of such a resource answers 400 invalid with the element path in issue.expression (a resource that “failed basic FHIR validation rules”, https://hl7.org/fhir/R4B/http.html), and the path names the resource type (CodeSystem.date). R4, R4B, and the R6 ballot require the timezone offset when a dateTime carries a time; R5 makes it optional, as the packages state.
  • Engine fixes, in one change: a concept property whose value element carries no value is a property the resource does not state, never an empty string, a zero, or false, and a concept or property without a code is refused as a defective resource (#610); a deprecation stated through the standard concept properties (status = deprecated, a past deprecated or deprecationDate) earns the DEPRECATED_CONCEPT_FOUND warning while the concept stays active (#609); the wall clock is read through one accessor, fhir_terminology::clock::now, with the panic contract recorded once (#612); the manifest file name has one definition, in concept-store (#597); the testkit’s sctid takes a typed Item, so a bare ordinal no longer compiles where an item number belongs (#594).
  • Repository hygiene, in one change: the versions.sh check reads the one published-crate list from scripts/release/publish-crates.sh and accepts a member declared unpublished with a reason; the ECL grammar and registry fetchers write to the renamed crate paths again, vendored trees are linguist-vendored, and scripts/checks/vendor-dests.sh fails when a fetcher’s destination is missing; every workspace member is named in the repo map and the architecture table, kept so by scripts/checks/repo-map.sh; docs/claims.md cites symbols and tests instead of line numbers, kept so by scripts/checks/claims.sh; the install page and compose.yaml mount an index root; zizmor moves to 1.30.1 with its self-repository audit ignored by recorded reason while actionlint rejects the $/ form; and the review rule names GitHub’s Copilot code-scanning lane as advisory.
  • The server binary carries no HTTP client, and a guard keeps it that way (#585). The WHO ICD-API walker is the one client in the workspace and now sits behind the icd11 crate’s api feature, which only the offline build tool enables, so reqwest leaves the server’s dependency tree. scripts/checks/no-client-in-server.sh reads that tree on every pull request and fails when a client reaches it. The health probe keeps its loopback GET /health, which speaks to the server’s own listener.
  • The Licensor and copyright holder of the project’s own work is Vernum Projecten B.V. (#569). Every Licensor:, copyright and SPDX-FileCopyrightText line names the company. The licence terms are unchanged, and maintainer credit stays a person.

Security

  • rustls moves to 0.23.45 for RUSTSEC-2026-0285, TLS 1.3 handshake messages incorrectly accepted across encryption level boundaries (#576). The lockfile moves; no source changes.

0.1.3 - 2026-09-12

Added

  • ferroterm healthcheck, a subcommand that sends one GET /health to the server’s own listen address and exits 0 on 200 OK, 1 otherwise with the reason on stderr. The distroless image has no shell or HTTP client, so this is what its new HEALTHCHECK runs, and the shipped compose.yaml states the same block: docker compose up --wait now waits for a serving instance, and another service sequences itself after the server with depends_on: ferroterm: condition: service_healthy, as the shipped proxy service now does. Because the server binds only after every artifact is open, a passing probe means the deployment answers terminology requests (#565).

Changed

  • The FHIR model now comes from crates.io. fhir-types and the generator that emits it, with the five vendored HL7 packages behind it, moved to the FerroBRIDGE repository, which publishes the crate; FerroTERM depends on it by version like any other dependency (#300). Consumers of the crate are unaffected: the same crate line continues on crates.io, published from FerroBRIDGE, and the published 0.1.98 source is byte for byte what this repository generated at 0.1.97. What leaves here is the generator, its vendored input, the codegen-drift CI job, and the fhir-types entry of the publish order. What replaces the drift job is a pin check: scripts/checks/versions.sh fails when the requirement in Cargo.toml, the row in docs/VERSIONS.md, and the version in Cargo.lock disagree, so a new release reaches the build only in a change that records it, and Dependabot opens that pull request on its own.

0.1.2 - 2026-09-12

Added

  • The viewer has a design system, and every screen is drawn from it. Colour is named by role on :root and redefined once under :root.dark, so a theme decision is never taken per element; type is six steps, spacing four on an 8-point grid, and motion one duration. A screen names a role and a step and nothing else, which scripts/checks/viewer-tokens.sh enforces as its own CI job: a palette entry, a per-element dark: variant, a raw type size, an off-scale spacing value, or a bracketed value fails the build. The point is measurement rather than tidiness: a pairing defined once is checked once, and the WCAG 2.2 AA contrast pass covers every pairing the viewer draws in both themes and both densities.

  • A command bar sits above every screen, and the navigation is four labelled groups. One field takes a code, a canonical, or free text, decides which it is from the string’s shape before any request, and offers what this root can do with it; every offer is a real link, so the keyboard contract is the browser’s own and an offer can be shared. The screens are grouped by what a reader came to do rather than by resource type.

  • Every runner picks its code system rather than waiting for a canonical to be typed. GET /{version}/{type}?_elements=url,name,title,version is about four kilobytes where the whole search is a quarter of a megabyte, so each control offers what this root publishes, the name leading and the canonical as the value, with the versions beside it being the ones that canonical was published in. A canonical the root does not publish is still typed, and the control opens on the text field for one rather than snapping back to a list it is not in. The screens are named for the question rather than the operation that answers it: Check a code, List a value set, Map a code.

  • The overview reads a twenty-system deployment on one screen. It is one table rather than a card each, sortable by any system-level column, each row leading with the name its code system was published under and the canonical beside it, quieter and still selectable. Absence is a mark with the sentence behind it rather than a sentence in every cell. The top bar and the sidebar stay put while the screen scrolls under them.

  • _elements is answered on every served version. The parameter is defined by every release this server speaks (http://hl7.org/fhir/SearchParameter/Resource-elements) and was refused as unsupported; a search now returns the elements it names plus the ones every resource keeps, and marks what it sends SUBSETTED so a client cannot store a subset back as the whole resource. Reading eleven code systems by name costs 4 KB where the whole search costs 255 KB.

  • SNOMED CT’s normalForm and normalFormTerse are generated and served. Both are the Necessary Normal Form of a concept, which the FHIR SNOMED CT page defines and does not say how to produce. The generation is a rendering rather than a computation: the necessary normal form of a precoordinated concept is what the release’s inferred view already holds (the SNOMED CT Release File Specification, Appendix D), so the focus concepts are the concept’s inferred is a parents and the attributes are its other inferred rows, and no reasoner and no supertype walk runs. The syntax is the Compositional Grammar specification §5, the definition status prefix its §6.7: === where the RF2 definitionStatusId says the concept is sufficiently defined, <<< where it does not, both always written because the grammar assumes === when none is. Three shapes are this server’s own, because no specification fixes them, and each is recorded: the order of what is rendered, which term a reference carries, and the layout. A request naming no property is answered as before, which is what “the server chooses what to return” admits.

  • An openEHR archetype’s local terminology is served through the ordinary operations. An archetype constrains most of its coded fields with an archetype-local at-code list, and nothing publishes those as FHIR resources. The scope decision is recorded: this server ingests the resources a producer derives from an archetype and reads no openEHR artefact, so it keeps no openEHR dependency. The at-codes as a CodeSystem, an ac-code as a ValueSet, and term_bindings as a ConceptMap load through FERROTERM_CODESYSTEMS like any other supplied resource, and $lookup, $expand, $validate-code and $translate answer over them with no openEHR-specific request shape. No openEHR specification defines a canonical URI for a local value set, so whoever produces the resources mints the URL from the archetype id, and this server reads it as an opaque canonical: two deployers minting the same archetype under their own domains are served side by side, and two directories naming one canonical at one version refuse to load rather than picking a winner.

  • The brand tokens state what each is safe for. Three of them are safe for the mark and not for text, and nothing said so: teal reaches 3.58:1 on the light surface, which clears the 3:1 a graphic needs and falls short of the 4.5:1 a label needs. Each token carries its measured ratio against both grounds, --ferroterm-brand-text is the brand colour as text (deep teal on light, teal on the tile, each at 4.5:1 or better), and scripts/checks/brand-contrast.sh fails when a token’s own comment or the published table stops matching what the value measures. The mark is unchanged.

Fixed

  • An unresolvable exclude.valueSet is named rather than passed over. ValueSet/$validate-code walked the excludes only after an include had held the code, so an exclude naming a value set this server does not hold was never reached and the answer was a silent result = false over a definition it could not fully evaluate. The excludes are walked either way now, which changes what is reported and no answer: an exclude removes codes, so a false it could not evaluate was never going to become a true. The terminology ecosystem settles the reached case as an answer rather than a refusal, with the canonical named in an issue of tx-issue-type#not-found, and it requires $expand and $validate-code to differ in shape over one such value set; a refusal stays reserved for a definition that cannot be processed at all, which is a cycle.

  • A cycle names the value set that closed it. The reference chain pushed the root as url|version and every reference as the bare reference string, so the two spellings could never match: a value set referencing itself was caught one hop late, and a two-hop loop was reported under the value set it reached rather than the one that closed it. One rule now decides whether a reference re-enters a chain entry, comparing the url and the versions where both name one, because a reference naming no version means the version the server resolves to.

  • check-system-version is compared against the version an include resolved to. The check ran against the version or pattern a value set wrote, before that version had been resolved against what the server serves, so a value set naming 1.x.x was reported as failing a 1.0.x check under the pattern’s own spelling rather than under the 1.2.0 it selects, and a value set naming a version nothing serves was reported as failing the check rather than as naming a version that does not exist. The pin now applies the defaults and the forces alone and the checks run over the versions the expansion actually used, so a version that resolves to nothing fails as unknown first, which is what it is. An answer that says a version is unknown also names the versions the server does hold.

0.1.1 - 2026-09-08

Added

  • The viewer runs $validate-code and $subsumes. /ui/validate validates one code against a code system or a value set, and asks how two codes of one system relate. What the form offers is the root’s own capability statement: a resource type it does not declare $validate-code on is not offered, and where a root declares the instance level a stored resource’s id stands in for the canonical. The answer states the verdict, the message the server gave, the display the system holds, the version it validated in, and whether the concept is inactive, with every issue the server itemised and the codes beside its text. Both runners put their parameters in the address, so a case is a link you can share.

  • The viewer compares the four served roots. /ui/versions reads GET /{version}/metadata from /r4, /r4b, /r5, and /r6 and draws two tables: what each root says about itself, and which of the terminology operations it declares and at which levels. The screen exists because the four genuinely differ; R4 and R4B declare $lookup at the type level and R5 added the instance level, and the viewer offers on every other screen only what the root you are on declares. Each root’s own operation.documentation is drawn below, which is where a release states what it takes beyond its own OperationDefinition.

  • The viewer carries the conformance and benchmark evidence this build ships. /ui/evidence is the one screen that asks the server nothing: every figure was read out of a committed file by the build script and names that file on the page, so a reader who doubts a number opens it in the repository. It draws the HL7 terminology ecosystem suite mode by mode with the cases each passed of the cases it ran, the latency bars the project claims with the run recorded against each, and the newest committed benchmark run system by system. The figures describe the FerroTERM build the bundle came from, never the deployment answering the page, and the screen says so.

  • The viewer’s screens sit in a left sidebar, each with its own icon, and the FHIR version selector stays in the top bar. The selector changes what every screen reads rather than moving you to a screen of its own, which is why it is not in the list. On a narrow window the sidebar folds behind a button. The icons are the viewer’s own, drawn as inline SVG with no icon package in the bundle.

  • The FHIR core code systems and value sets the specification defines are served without configuration. A deployment that loads no artifact still answers $lookup, $validate-code, and $expand for the code systems FHIR publishes itself, so a resource bound to administrative-gender or publication-status validates against the version of FHIR it was written for.

  • Every ISO 3166 code form is a code of urn:iso:std:iso:3166. FHIR selects all three from it with a code regex per form, [A-Z]{2} for ValueSet/iso3166-1-2, [A-Z]{3} for -1-3, and [0-9]{3} for -1-N, so an alpha-3 or numeric country code the specification binds has to validate. Only the alpha-2 form was a code, and NLD and 528 were refused against a system that holds NL. Each territory is three concepts now, sharing a display and carrying all three forms as properties.

  • The viewer browses the concepts of one code system. /ui/browse searches a system, reads one concept with CodeSystem/$lookup, and walks the hierarchy the served version declares. What the screen offers is read from TerminologyCapabilities alone. A version that declares a filter carrying child-of, the operator FHIR defines as “all concept ids that have a direct parent that matches”, gets the taxonomy tree on the property that filter is declared on; a version that declares other hierarchy operators, or none at all, gets the flat searchable list with a sentence naming what it does declare. Every search and every level of the tree is a POST ValueSet/$expand whose value set travels inline as the operation’s own valueSet input, so the screen names no implicit canonical and browses any served system the same way; each request asks for excludeNested so one level arrives as one list. The tree follows the ARIA tree view pattern: one tab stop that follows the browser’s own focus, the arrow keys walking and opening, Enter selecting, and each row carrying its level, its position among its siblings, and whether it is expanded. A row is keyed by the path of codes above it, so one concept sitting under two parents draws two rows that never share state, exactly one of them is announced as selected, and an answer that loops back stops at the repeat. A node whose children the server counts higher than it listed says so on the node, so a level cut short by the page size never reads as the whole of it. Every pane renders the request its answer belongs to rather than the address as it stands, so a code is never shown paired with the concept that was read before it. The concept pane draws every designation and property the server answered, and links the parents and children it declares. Every parameter lives in the address, so a concept you are reading, the filter you typed, and the nodes you opened are all one link you can share, and a refusal renders the server’s own OperationOutcome.

  • The viewer lists the concept maps a root holds and translates codes with them. /ui/conceptmaps reads GET /{version}/ConceptMap the way the value set screen reads its own type, draws every fact a map’s publisher declared, and lists the groups it maps with the code count of each. The scope elements are read under both spellings, because R4 and R4B carry source[x] and target[x] and R5 renamed them sourceScope[x] and targetScope[x]. The $translate runner below appears only where the root’s CapabilityStatement declares translate on ConceptMap, so the screen never offers a run the server then refuses. Every parameter is sent under the name that FHIR version’s own OperationDefinition declares: R4 and R4B take code, system, version, and targetsystem, R5 renamed the code to sourceCode and the target system to targetSystem, and the R6 ballot renamed system and version to sourceSystem and sourceVersion. The answer is read the same way: a match’s relation is labelled Equivalence where R4 and R4B answered one and Relationship where R5 and the R6 ballot did, over two different sets of codes, so one version’s answer is never drawn as another’s. Each match also draws the target Coding, the map it came from, the source concept and comments, and any product, dependsOn, or property the answer carried. Matches keep the server’s own order, which is the edition’s concept order for a reverse translation. Every parameter of a run lives in the address, so a translation is a link you can share, and a refusal renders the server’s own OperationOutcome.

  • The viewer lists the value sets a root holds. /ui/valuesets reads GET /{version}/ValueSet, filtered by the url and version search parameters, and reads one of them by id. The filter, the page, and the resource you opened all live in the address, so a list is a link you can share and the back button walks it. This server answers a search in one searchset and pages none of it, so the pages the screen walks are its own over the answer that arrived, and it says so. A value set you open draws every fact its publisher declared, the clauses its compose selects with, and a link that opens its canonical in the expansion runner. A resource that carries no id says so rather than drawing a link that would answer nothing, and a refusal renders the server’s own OperationOutcome. The screen only reads: the server answers create, update, and delete on this resource type and the viewer calls none of them.

  • The viewer runs $expand and walks its pages. /ui/expand takes a value set canonical with filter, count, offset, displayLanguage, activeOnly, and includeDesignations, sends each one only when you set it, and draws the concepts with their designations, expansion.total, and the parameters the server says it applied. Every parameter lives in the address, so a page is a link you can share and the back button walks the run; an implicit canonical carrying its own query string is percent-encoded into the one parameter it belongs to. An expansion the server marks with valueset-unclosed says so above the table, in the server’s own words where it states a reason, because a code missing from an unclosed list is not a code the server rejects. A refusal renders the OperationOutcome verbatim, with the codes of issue.details beside the text, and a too-costly refusal adds what to do about it: ask for a page size and the runner walks the selection instead. The screen names no code system.

  • The viewer’s first screen answers what a deployment loaded. /ui reads GET /{version}/metadata?mode=terminology and draws one card per code system: the canonical, every served version with the default marked, whether the server reads the system’s compositional grammar, the designation languages, the declared filters with their operators, the artifact the version was read from with the release the offline build recorded, the content mode where the FHIR version has that element, and whether subsumption is supported. R4 and R4B declare no codeSystem.content, so the card says the version does not carry it rather than showing nothing, and the R6 ballot’s version.value is read where R4, R4B, and R5 use version.code. A system that declares no version, no language, or no filter states the absence, and a system read from no artifact, such as a registry the server carries, says that rather than reading as a gap. The screen names no code system: every card is the capability statement rendered, so a system this server has never served draws with no change to the viewer, and a test proves it by feeding a document naming an invented system. Each section discloses the request it issued, as a URL and as a curl line, and renders the server’s own OperationOutcome inline when a read is refused.

  • The server serves the viewer at /ui, and / redirects onto it. The bundle Trunk builds rides inside the ferroterm binary as a table of files the build script writes, so a release tarball and the container image behave the same and a request path never reaches the filesystem. A path under /ui the bundle does not hold answers index.html, which is how a client-side route deep-links; the fallback is scoped to /ui, so an unknown path outside it still answers the not-found OperationOutcome. Content-hashed assets are served public, max-age=31536000, immutable and index.html no-cache, each with its own media type and X-Content-Type-Options: nosniff. Asset requests are outside the request log and the /metrics histograms, so the latency figures keep describing the terminology operations. FERROTERM_UI=off drops the routes and restores today’s /, and a binary built without the viewer serves no /ui route and says so at start.

  • $expand over urn:ietf:bcp:47 answers when the value set fixes the primary language subtag. RFC 5646 §2.1 gives every position of a tag a bounded shape (language = 2*3ALPHA / 4ALPHA / 5*8ALPHA, script = 4ALPHA, region = 2ALPHA / 3DIGIT) and §3.1 registers a finite list of subtags for each, so a fixed language leaves a finite list of tags: the language itself with each registered region, and, once a region is fixed too, that tag with each registered script. A selection that leaves the primary language open still answers not-supported, and an unpaged enumeration past the server’s own expansion limit answers too-costly like any other. The expansion is marked unclosed whatever it lists, because extension = singleton 1*("-" (2*8alphanum)) and privateuse = "x" 1*("-" (1*8alphanum)) build unboundedly many tags on any of them, and it now states that as its valueset-unclosed-reason.

  • Every subtag of a registry range is registered. The IANA Language Subtag Registry writes the private-use blocks as ranges (qaa..qtz, Qaaa..Qabx, QM..QZ, XA..XZ), and RFC 5646 §3.1.1 defines the notation: “The sequence ‘..’ (U+002E U+002E) in a field-body denotes a range of values. Such a range represents all subtags of the same length that are in alphabetic or numeric order within that range, including the values explicitly mentioned.” The reader took each range as one literal subtag, so en-QM, en-XX, and the private-use language qaa were well-formed but not valid, and $validate-code refused them. The registry now holds 8795 language, 274 script, and 343 region subtags.

  • An implicit SNOMED CT value set carries the template the FHIR SNOMED CT page prints for it. The page gives a template per ?fhir_vs= form and says “the content of the resource must conform to the template provided”, and each one carries version, name, description, and copyright beside the compose the server already answered. The copyright is the page’s own SNOMED International notice, character for character, which tells a consumer the expansion holds licensed content; name and description interpolate the sctid, the reference set, or the expression constraint as the template shows, with the preferred term where the template says “[sctid or preferred description]”. description and copyright travel with the definition, as publisher does, so an expansion without includeDefinition is unchanged. The page prints no template for the bare ?fhir_vs, so that form carries only the two fields every template shares.

  • ?fhir_vs=refset lists the language reference sets the edition defines. The page defines the set as “all concept ids that correspond to reference sets that are explicitly defined in the specified SNOMED CT edition”, with no category excluded, and a language reference set is one; their membership reaches the designation index rather than the reference set tables, so the list missed them. The Netherlands edition lists 80 reference sets where it listed 75, the International edition 27 where it listed 25. The member-facing forms stay refused and now say why: a language reference set references descriptions, so “all concept ids in the specified reference set” selects none of them.

  • A version naming only a SNOMED CT edition resolves to the greatest loaded release of that edition. The page tells clients to send that form, “At minimum the URI SHOULD contain the sctid of the SNOMED CT distribution”, and lets a service default, “if the date of release is not provided, the Terminology Service may default to the most recent version of the named SNOMED CT distribution”. Every operation that takes a system version reads it through the same resolver. The date-only form stays an error, as the same section asks, and so does an edition no loaded release belongs to.

  • An expansion that leaves out codes the value set admits says so: ValueSet.expansion carries http://hl7.org/fhir/StructureDefinition/valueset-unclosed with valueBoolean true. $expand describes the case as a value set “unbounded due to the inclusion of post-coordinated value sets (e.g. SNOMED CT, UCUM)”. Which systems report it is decided one at a time: BCP 13 media types selected by a filter (each registered type carries unboundedly many parameterised forms), SNOMED CT unless the include states expressions = false, UCUM and BCP 47 language tags, and a CodeSystem resource whose content is fragment. An include that names its concepts is complete whatever the system admits, and LOINC, RxNorm, the ICD and ICPC classifications, ICD-11, and ISO 3166 expansions list every member and are unchanged.

  • $expand on /r6 takes handle-unclosed-expansion, the parameter the R6 ballot alone declares. The ballot states it as a pair of rules: “If true this asserts that you will correctly handle an unclosed expansion and the returned expansion SHALL include the valueset-unclosed extension if the value set is unclosed. If handle-unclosed-expansion is set to false the server SHALL return an error if the value set is unclosed.” So true is answered with the expansion and its mark, and false over an unclosed value set is a 400 not-supported OperationOutcome instead of an expansion. The ballot fixes nothing for the absent parameter, so a request that names none keeps the mark, which is what R4B and R5 describe. R4, R4B, and R5 declare no such input and refuse the name as undeclared, as they refuse any parameter their OperationDefinition does not carry.

  • An expansion drawing on a code system fragment says which fragment and why. ValueSet.expansion carries valueset-unclosed-reason beside valueset-unclosed, naming the system whose resource holds only “a subset of the code system”, and expansion.parameter carries a used-fragment per fragment the expansion drew on, beside the used-codesystem already answered. The terminology ecosystem asks a server to report “all versions of code systems used (in ‘used-*’)”, and its fragment/fragment-expansion case fixes both spellings; that case now passes on /r4b, /r4, and /r5.

Fixed

  • A concept whose status property is deprecated is no longer reported inactive. The specification’s own property definition says the two are different: “Concepts that are deprecated but not inactive can still be used, but their use is discouraged, and they should be expected to be made inactive in a future release” (https://hl7.org/fhir/R5/codesystem-concept-properties.html). Only retired is read as inactive, which is the value the inactive definition points at. An expansion no longer marks a deprecated concept inactive, and activeOnly no longer drops it.

  • A displayLanguage that lands on a designation keeps the system’s own display. Where a request asks for a language the concept carries a designation in, that designation becomes the display, and the code system’s own display had nowhere to go: the answer repeated the promoted designation and dropped the original. It moves into the designation list now, marked preferred for the language the system states, so the answer carries each translation once.

  • A display language a request refuses is no longer answered anyway. RFC 9110 section 12.5.4 gives a zero-quality range one meaning, “not acceptable”, and displayLanguage carries that syntax, so de, *;q=0 refuses every language the list does not name. Zero-quality ranges were dropped while parsing, so the request was answered as plain de and a concept with no German designation came back with the system’s own display. A concept with nothing acceptable now carries no display, and the system’s own reaches the answer as a designation.

  • A request for the code system’s own language reads the concept’s display. CodeSystem.concept.display is already written in CodeSystem.language, and the provider looked for a designation first, so an en request against an en system could be answered with an alternate en designation ahead of the concept’s own display.

  • An unknown code is reported as code-invalid rather than not-found. The two issue types are different: code-invalid is “the code or system could not be understood, or it was not valid in the context”, and not-found is “the reference provided was not found” (https://hl7.org/fhir/R4B/valueset-issue-type.html). A code system that resolved and a code it does not have is the first; the unresolvable system is still the second, with a 404.

  • An expansion says which supplement it applied. A request may name one without a version, so the answer states the versioned canonical it resolved to as used-supplement, beside used-codesystem and used-valueset, rather than echoing the request’s own useSupplement.

  • An R6 ConceptMap element comment is read from the field R6 declares for it. R6 has ConceptMap.group.element.comment and R5 and earlier carry the same fact in an extension; only the extension was read, so an R6 document that stated the comment natively lost it on load and rendered without it.

  • A parameter the operation does not declare is refused on POST as it is on GET. A GET was checked while its query was decoded and a POST carried a Parameters the codec read without consulting the operation, so the same parameter went through, was ignored, and the request answered 200 as though it had been honoured.

  • Three contrast failures in the viewer, found by measuring every screen in both themes rather than by eye: the version switcher’s label at 4.35:1, its selected version at 3.72:1, and the submit button in the dark theme at 3.74:1. The dark theme inverts the pairing rather than darkening the tint further, which would have fixed the text and broken the control’s own boundary against the page.

  • A concept map the deployment loaded reads at its own id and is found by a search. GET ConceptMap answered total 0 for a map $translate was resolving through, and GET ConceptMap/{id} answered nothing at all, while the capability statement declared read and search-type on the type. Every loaded map now answers both, under every version prefix, rendered in the reading version’s own vocabulary: R4 and R4B carry source[x], a uri group.source beside sourceVersion, equivalence, the provided unmapped mode, and an element that maps to nothing as a target with equivalence = unmatched and no code (https://hl7.org/fhir/R4B/conceptmap.html); R5 and R6 carry sourceScope[x], a canonical group.source, relationship, noMap with target empty beside it as cmd-4 requires, and unmapped.otherMap (https://hl7.org/fhir/R5/conceptmap.html).

  • A resource in a searchset carries its own Resource.id, “the logical id of the resource, as used in the URL for the resource” (https://hl7.org/fhir/R4B/resource.html#id). A loaded ValueSet came back with a fullUrl and no id, so a client could see what a search returned and not read it; the read of a loaded value set carries the id too.

  • fhir-types no longer forces serde_json’s arbitrary_precision feature on the crates that depend on it. Cargo unifies features across a build graph, so every dependent inherited a feature it cannot switch off, under which a JSON number deserializes as a private map and anything that buffers, an internally tagged enum among them, stops reading its own floats back. The feature was carrying a real requirement: FHIR says “Do not use an IEEE type floating point type, instead use something that works like a true decimal” (https://hl7.org/fhir/R4B/datatypes.html#decimal), so a decimal keeps the precision it was given. The codec now meets that requirement itself. It reads and writes FHIR JSON through its own document model, fhir_types::codec::Value, which holds a number in the text the document carried, so 1.10 and a decimal past f64 precision round-trip unchanged on all four served versions through both write paths, and the crate turns on no serde_json feature that changes how anything else reads JSON. Json::to_json, Json::from_json, Primitive::value_json, and the XML conversion now speak fhir_types::codec::Value and fhir_types::codec::Object where they took serde_json’s. The bytes on the wire are unchanged, asserted over every resource of the four vendored FHIR packages and over the conformance suite.

  • A tx-resource the request never resolves no longer refuses the whole request. One supplied resource that failed to deserialize took the request with it, so a $expand or $validate-code was answered 400 for a defect in a resource it does not touch. Cardinality is an aspect of validating a resource, which a server performs at its discretion, and an implementation “should be conservative in its sending behavior, and liberal in its receiving behavior” (https://hl7.org/fhir/R4B/validation.html). A supplied resource is now read leniently, so a required primitive that states no value reads as the value-less element it would be with only an extension, and a value set missing its status serves the request that names it. One the server still cannot use is recorded and answers only the request that resolves its url, with issue.code invalid, “content invalid against the specification or a profile” in the IssueType definition, where structure stays for a body the server cannot parse at all. A compose.include.filter with no value is such a resource: it answers invalid with the vs-invalid classification and issue.expression naming the filter. A tx-resource carrying a resource of a type the server never serves is still refused where it is stated.

  • ValueSet/$validate-code no longer claims a code is outside a value set it cannot check. When the code’s system is one the value set itself selects from and the server does not hold that system, membership is undetermined, so the answer now carries only the unknown-system issue beside x-caused-by-unknown-system. A system the request names that the value set does not select from is unchanged and still gets both issues.

  • inferSystem names the systems that competed when more than one holds the code. The answer said only that the system could not be determined; it now lists the matching systems in the issue text, so a client can see why no single system was inferred.

  • $lookup answers a property the code system does not define instead of dropping it. A client naming a property the server does not serve got a 200 with no signal, so a missing answer was indistinguishable from a concept with nothing to say. R5 and R6 bound the parameter to the codes the operation names itself plus “any property codes defined by this specification or by the CodeSystem”, so a code outside that set is now a client error, and a property the code system’s own specification defines that this server does not generate is not-supported. The two SNOMED CT normal form properties, normalForm and normalFormTerse, are the only ones in the second class today.

  • A supplemented code system answers as the system it supplements. Naming a supplement (useSupplement, or the valueset-supplement extension a value set carries) layered a wrapper over the provider that answered its designations and properties and left most other questions to a default, so a supplemented SNOMED CT resolved no ?fhir_vs= or ?fhir_cm= URI and a supplemented BCP 13 refused a two-filter include that expands unsupplemented. $expand says naming a supplement behaves “the same way as if the supplements were included in the value set definition”, and a supplement “extends an existing code system with additional designations and properties”, so the wrapper now answers every other question with the supplemented system’s own answer: the implicit value sets and concept maps and their metadata, the successors of an inactive concept, the inactive and abstract concept sets, filter evaluation and the bound a set of filters puts on a selection, subsumption the system decides itself, post-coordination, and the CodeSystem resource a resource-backed system serves.

  • $translate over a SNOMED CT map reference set costs its answer rather than the release. The server built the whole ConceptMap of the named reference set on every request, one element and one store read per member, and then looked one code up in it, so the ICD-10 extended map of the International edition (137,678 members) answered in 28 seconds and every map answered in proportion to its size. A provider is now told which mappings a request needs, and the SNOMED provider reads only the reference set rows that carry them: the same request answers in 0.21 ms warm, and the three implicit maps of that edition, from 23,551 to 137,678 members, answer alike. Reading the whole map is unchanged and still available.

Changed

  • Every viewer screen is measured against WCAG 2.2 Level AA rather than checked by eye. The browser battery tabs through each screen in both themes and reports any control the keyboard never reached and any stop the browser drew no outline on, computes the contrast ratio of every text the browser painted, reads the tables, labels, ids and headings out of the DOM, and checks that a search, an expansion and a validation each announce themselves in a live region. The contrast is measured on the painted colour rather than on the token the source names, because Tailwind writes its palette in oklch and a browser resolves color in the space the author wrote.

  • A SNOMED CT implicit ConceptMap states group.element in the edition’s own concept order, the order $expand already uses, instead of the order the reference set file holds its rows in. No FHIR version orders group.element, and a selection of the elements has to read back in the same order as the whole map for a translation to answer identically either way. The matches a reverse $translate reports move with it; the set of matches does not change.

  • A $lookup and a $translate answer in a fraction of the time, because a parameter costs its own value instead of the widest one the wire admits. A Rust enum is as large as its largest variant, and the generated value[x] enum admits Dosage, which carries a whole Timing: it was 4512 bytes, so every ParametersParameter cost 4736 whether it held a dosage schedule or the string RxNorm. An RxNorm $lookup writes 423 parameters and 945 nested parts, so it moved megabytes to say sixty kilobytes. The emitter now boxes every choice variant holding a complex type and leaves the primitives inline, which is what a terminology answer is nearly all of: the open type is 80 bytes and a parameter 304. The answer is also built once rather than copied into the wire tree. Measured over the local RxNorm and Netherlands artifacts, $lookup through the router went from about 630 to 232 microseconds on RxNorm and from about 300 to 139 on SNOMED CT. The response bytes are unchanged, asserted over every operation on all four served versions in both JSON and XML.

  • A response is written from the typed resource. The generated FHIR types now carry their own Serialize, so $lookup, $validate-code, $expand, $subsumes, $translate, and every OperationOutcome write their answer straight into the response body instead of building a serde_json document first and writing that. The bytes are unchanged: the two paths are asserted identical over every resource of the four vendored FHIR packages and over generated Parameters documents, per version, so the primitive-plus-_element rule, the element order, and the absent-versus-null distinction are pinned where they were.

0.1.0 - 2026-09-06

Added

  • FERROTERM_BASE_URL: the URL clients reach the server at, stated per version as CapabilityStatement.implementation.url and in the terminology capabilities. A server behind a reverse proxy answers on an address it never sees, so the endpoint is configured rather than guessed from a socket or a forgeable header; a deployment that names none states no URL. compose.yaml gains a proxied profile: Caddy terminates TLS in front and the server publishes no host port.
  • GET /metrics: the Prometheus exposition of the requests answered (a counter and a duration histogram per method, matched route, and status) and the code system versions loaded (one gauge each). The route is off the FHIR base path, so a scrape is never a terminology request, and the labels name the matched route rather than the URI, so the series count stays bounded whatever codes clients ask about.
  • X-Request-Id on every response: the client’s own value when it sent a usable one, a fresh UUID otherwise, and the same id in the request’s log line. An id that is empty, over 128 characters, or not printable ASCII is replaced rather than echoed.
  • $batch-validate-code on ValueSet and CodeSystem, on every served version: one POST carries the shared inputs once, a validation parameter per validation, each a Parameters of that validation’s own inputs, and the answer repeats validation in the same order with that validation’s $validate-code outputs. A validation states its own value for an input the request also states, and a validation the server cannot run answers an OperationOutcome in its own slot while the others still answer. No OperationDefinition declares the operation anywhere, so the contract is the terminology ecosystem suite’s cases, whose batch/batch-validate now passes on /r4b, /r4 and /r5.
  • The fuzz targets under fuzz/: every parser an untrusted input reaches (ECL, the FHIR JSON and XML bodies, the SNOMED CT implicit ?fhir_vs= and ?fhir_cm= forms, and the RF2 file names, effective times, and identifiers) is fed arbitrary bytes by cargo-fuzz, weekly in CI and by hand for longer runs. The seeds are committed; a crash uploads the input that reproduces it.

Fixed

  • The terminology capabilities no longer claim SNOMED CT post-coordination. CodeSystem.compositional is “The code system defines a compositional (post-coordination) grammar” and TerminologyCapabilities.codeSystem.version.compositional is “If the compositional grammar defined by the code system is supported”, two different statements that one flag answered, so a client was told it could send expressions and then got “no such concept” for every one. A provider now declares the grammar and this server’s support for it separately: SNOMED CT defines the grammar and this server evaluates none, UCUM, BCP 13, BCP 47, and the ICD-11 linearizations parse the grammars they declare, and a CodeSystem resource that declares a grammar is served without one. A post-coordinated code is refused as a grammar this server does not evaluate (not-supported) rather than as a concept the edition lacks.
  • A code system the deployment loaded reads at its own id and is found by a search. GET CodeSystem/{id} on the id the server prints at startup was a 404 and GET CodeSystem?url=… answered total 0, while the capability statement declared read and search-type and the configuration page documented the id, so a documented instance path addressed nothing. Every loaded version now answers both, under every version prefix: a system held behind an index answers its definition with content = not-present, and one loaded as a CodeSystem resource answers with the content it declared. A supplement stays applied to the system it supplements and is not served as an instance.
  • CodeSystem/{id}/$lookup answers under /r5 and /r6, whose OperationDefinition declares the operation at the instance level. The engine refused the instance level on every version; the level is now the served version’s own declaration, so /r4 and /r4b, which declare the type level only, still offer no such route.
  • A SNOMED CT implicit value set or concept map based on a non-default edition answers when several editions are loaded. The FHIR SNOMED CT page lets any edition version stand as the base URL, and the edition in the base decides the membership, but the server only asked the default version of the system, so every ?fhir_vs form and ?fhir_cm= on another loaded edition was refused as a malformed URI. The registry now asks every loaded version, default first, so the bare http://snomed.info/sct base still answers from the default edition. A base naming an edition version no loaded version serves is a not-found on that version rather than vs-invalid.
  • $translate over a SNOMED CT map reference set returns a target Coding carrying both a system and a code. R4B needs ConceptMap.group.target, the “absolute URI that identifies the target system that the concepts will be mapped to”, unless the target value set names a single system or every target equivalence is unmatched, and an implicit map states neither. RF2 records the scheme nowhere on a member row, so the reference set names it: the ICD-10 extended map (447562003), the ICD-9-CM equivalence map (447563008), the ICD-O map (446608001), the CTV3 map (900000000000497000), and the US Edition’s ICD-10-CM map (6011000124106) each state the URI FHIR publishes for their scheme, on the served ConceptMap and on every match. A map reference set outside that table answers not-supported instead of a code with no system. An association reference set names SNOMED CT on both sides, whichever reference set it is.
  • The LOINC and RxNorm builds name a property key they never registered instead of reporting “too many concepts”: a defect in the build no longer surfaces as a capacity error. The RxNorm relationship-type lookup is split the same way, and TooMany keeps its own meaning.
  • An expression constraint of deeply nested brackets no longer takes the server down. The ECL parser descends with the grammar, so an unbounded nesting exhausted the stack and aborted the process, which no OperationOutcome survives; the parser now refuses past sct_ecl::NESTING_LIMIT (64) and the server answers the refusal as an OperationOutcome. Found by the ecl_parse fuzz target.

Changed

  • A flat $expand answers in the order the compose selected: the includes in order, each include’s named concepts as it named them, each filter’s concepts in the code system’s own order, and the first occurrence winning where includes overlap. count and offset page over that order. No FHIR version fixes the order of an expansion, and ValueSet.compose.include.concept says an expansion typically follows the compose; a compose of one filter still pages off the selection bitmap without reading a concept. The ICD-11 postcoordination axis now answers in the WHO’s own scale order, which the terminology ecosystem suite’s icd-11/expand-pcs-count and icd-11/expand-pcs-offset cases assert together.

0.0.11 - 2026-09-05

Added

  • The build layers derivative reference set packages onto the edition they depend on: ferroterm-build --rf2 <edition> --rf2-refset <package> takes the flag repeatably, and each package’s concepts, descriptions, and language reference set members join the edition’s while its reference sets serve as implicit value sets over it. Every package’s module dependency is checked first, so an edition older than the date a package was authored against is refused, naming the module and both dates, and so is a package naming a module the edition does not contain. The manifest records what was layered. The SNOMED CT ICNP Nursing Practice package is the shape this serves.
  • ConceptMap/$closure maintains a named transitive closure table for a client, over any code system with subsumption: name alone creates or empties the table at version 0, name with concepts answers the relationships the client did not have at a new version, and name with a version replays everything sent after it. The tables live in the database FERROTERM_RESOURCES names and outlive a restart. Naming a table the server was not asked to create is a 404, and a table whose code systems changed under it answers 422 with must be reinitialized. The relationship is read from target to source, and each version states it in its own vocabulary. The R6 ballot ships no ConceptMap-closure definition, so /r6 offers no $closure and declares none.
  • The batch interaction: POST [base] with a Bundle of type batch runs every entry and answers a batch-response with one entry per request, in order, on every served version. A GET entry carries the operation’s inputs in the query of request.url and a POST entry in a Parameters resource; every terminology operation is reachable, at the type level and at the instance level. The entries are independent: one that fails answers the OperationOutcome the same request would have answered on its own, the rest still answer, and the batch answers 200. A transaction Bundle is refused with not-supported, and the capability statement declares the batch system interaction.
  • Persisted CodeSystem, ValueSet, and ConceptMap resources: a deployment that names a database in FERROTERM_RESOURCES accepts create, update, read, version read, search by url and version, and delete on every served version, with the FHIR status codes and the ETag and Last-Modified headers. meta.versionId starts at 1 and rises with every write, If-Match makes a write conditional, a deleted resource reads as 410 Gone and keeps its history. Every operation sees a persisted resource exactly as it sees one loaded from FERROTERM_CODESYSTEMS, on every version, and the resources are served again after a restart. A deployment that names no database refuses every write with a 422 and declares no write interaction in its capability statement.
  • SNOMED CT implicit concept maps: ConceptMap/$translate answers url=http://snomed.info/sct?fhir_cm=[sctid] over the reference sets of the loaded edition, on the bare system URI or on the edition or version URI. The four association reference sets the FHIR SNOMED CT page lists (POSSIBLY EQUIVALENT TO, REPLACED BY, SAME AS, ALTERNATIVE) each carry the relationship that page gives them, and the map follows the page’s template. A map reference set answers from mapTarget, with the complex and extended columns (mapGroup, mapPriority, mapRule, mapAdvice, correlationId, mapCategoryId) as product parts; no RF2 file records which system a mapTarget belongs to, so the group names no target system. A $translate that names no map and finds none falls back to the historical associations of an inactive concept, so a retired code answers with its SAME AS and REPLACED BY successors. Where the specifications are silent, the choice is marked in the code as our own design.
  • $expand carries the code system’s hierarchy: a compose of one include that selects a whole system or an is-a subtree nests its expansion.contains, with total counting every concept and count and offset paging over the pre-order flattening. excludeNested keeps it flat, and so does a text filter over a whole system, whose matches have no root to hang from.

Changed

  • The four loader pipelines SonarQube reports as most complex are split along their phases, with no change in behaviour: the LOINC and RxNorm builds and the DHD thesaurus and G-Standaard readers each drop from roughly 250 lines to under 60, and the four too_many_lines suppressions they carried are gone. The designation and property-key accumulators become small owned structs rather than closures over the enclosing scope.

0.0.10 - 2026-09-04

Added

  • CapabilityStatement.rest[mode = server].security.service on every served version, which the terminology ecosystem requires. A deployment names the authentication in front of the server with FERROTERM_SECURITY_SERVICE (codes of the FHIR restful-security-service value set, comma-separated); the server itself authenticates nobody and says so in text when a deployment declares none.
  • property on ValueSet/$expand on R4 and R4B, pre-adopted from R6 through the ecosystem overlay as the terminology ecosystem requires; the requested properties travel as the R5 cross-version extensions extension-ValueSet.expansion.property and extension-ValueSet.expansion.contains.property, since those versions have no property element. Each version’s TerminologyCapabilities.expansion.parameter is derived from the parameters its generated $expand contract declares, so a version never advertises a parameter it refuses.
  • normalized-code on both $validate-code operations (the terminology ecosystem’s output): the code as the system spells it when the request spelled it otherwise, with a code-rule note for an alternate form; code echoes the request’s spelling, on $lookup too. $expand keeps the compose’s spelling of an enumerated code. The capability statements list property among the expansion parameters on every version and name the release date of a released build.

Fixed

  • The build warns and omits the release date when CHANGELOG.md cannot be read or its heading for the version being built carries no FHIR date; a malformed date no longer reaches CapabilityStatement.software.releaseDate.
  • The compose’s spelling of an enumerated code survives an include merge and an include.valueSet import in an expansion, and an enumerated concept is located once.
  • excludeNotForUI = true on $expand drops the abstract (notSelectable) groupers and excludePostCoordinated = true drops post-coordinated expressions; both were accepted and ignored.
  • A code a case-insensitive system locates under another spelling is noted as information on $validate-code, the terminology ecosystem’s severity. The message id every issue carries on the wire is decided where the issue is raised, never read off its wording.
  • ICD-11: a codeless grouper keeps its abstract status for expansions (contains.abstract) and for $validate-code with abstract = false; only the $lookup output abstract is withheld, as the ecosystem’s icd-11 case expects. A bare ICF code no longer counts as the dotted qualifier form.
  • ClaML: a code earns the period after its third character only when its three-character category is one of its ancestors, so the ICD-O morphology class M953 under M keeps its spelling beside the ICD-10 subcategory M95.3; the ICD-10-NL 2021 release builds.
  • ICD-11: postcoordinationValues subproperties carry each value under its own code; an unknown ICF dotted qualifier is an unknown code; a codeless entity answers notSelectable as a property, not abstract. The icd-11 suite mode passes 41 of 52 cases (from 28).

Changed

  • The committed terminology ecosystem pass lists grow to 499 general cases on /r4b, 500 on /r4, and 505 on /r5 (from 480, 481, and 503), the R4-family property and the ICD-11 changes behind the gains.
  • The workspace lint table is FerroEHR’s: clippy::all and clippy::pedantic at deny, as_conversions, pub_use, dead_code, missing_assert_message, map_err_ignore, unused_qualifications, rc_buffer, create_dir, exit, the feature-name lints, and non_ascii_idents = forbid among the additions. Every finding is fixed at its site: an error that wrapped a conversion or parse failure now carries it as its source or states why the cause adds nothing, and the generated fhir-types crate carries unused_qualifications and map_err_ignore in its allow list because every path is spelled from the crate root and a primitive that fails to parse is reported by its path and kind.
  • The licence of the project’s own code is the Business Source License 1.1 (LICENSE, NOTICE): free for non-production use and for non-commercial production use, a commercial licence for any other production use, and Apache License 2.0 four years after each version. Every header, manifest, badge, page, and image label names it, and the versions guard fails on a stale Apache 2.0 claim (#221). The fhir-types and rf2 crates stay Apache License 2.0 on crates.io, so the FHIR types and the RF2 reader remain usable by any Rust project (#223).

0.0.9 - 2026-09-04

The wire release: FHIR R4, R5, and the R6 ballot are served beside R4B from the generated per-version modules, the terminology ecosystem’s requirements are an overlay on every version, the tx-ecosystem general mode passes 500 of 670 cases on R5, every route speaks FHIR XML as well as JSON through a codec generated from the same definitions, and the crates are published on crates.io under plain names.

Added

  • FHIR R6 (6.0.0-ballot5) is served under /r6, marked ballot-tracking in both capability statements; the R5 and R6 wires share one family of modules, and the ballot’s manifest, filterProperty, and handle-unclosed-expansion are refused as not-supported, never absorbed.
  • FHIR XML on every route: _format or Accept selects application/fhir+xml for responses, Content-Type names an XML Parameters request body, and both go through fhir-types::xml, a codec driven by a per-version element schema the generator emits, so the JSON codec’s strictness applies to both wires. The capability statements list both formats.
  • The terminology ecosystem overlay: every version’s operation contract carries the parameters the HL7 terminology ecosystem requires beyond its own OperationDefinition, pre-adopted from R6 where the ballot declares them (the value set and system version trios, inferSystem, lenient-display-validation, valueset-membership-only, useSupplement, the validated code, system, version, issues, and codeableConcept, the $translate source* and target* names and originMap) and declared by the generator otherwise (x-caused-by-unknown-system, x-unknown-system, inactive, status, activeOnly, used-conceptmap, used-system, the $translate match parts sourceConcept, sourceComment, targetComment, noMap), each marked by source in the generated descriptor and in the capability statement.
  • Validation answers the ecosystem’s shapes: issues with the tx-issue-type codings and operationoutcome-message-id extensions, the message rule, the CodeableConcept shape, version disagreements resolved against the value set’s version, wildcard system versions, supplements applied only when asked, inactive and status outputs, status-check notes for draft, experimental, deprecated, and withdrawn resources, deprecated and withdrawn concepts and designations, a value set’s own language as the display language, whitespace-only display differences, and activeOnly and membership-only validation.
  • $expand lists every designation when none is named, filters them by urn:ietf:bcp:47|<lang>, applies a value set’s valueset-expansion-parameter defaults, populates contains.version when a system appears at several versions, anchors the regex filter, and flags inactive concepts with their status.
  • $translate answers every match with originMap and the ecosystem’s parts, treats a noMap element and a not-related-to target as answers, reports chained (other-map) maps as used-conceptmap, and reads a target* input in reverse on every version.
  • The Nederlandse Labcodeset: ferroterm-build --labcodeset reads the publication (the new labcodeset crate) and writes the value set over LOINC, the LOINC supplement with the Dutch names and the publication’s facts, and the ordinal outcome value sets as FHIR resources for FERROTERM_CODESYSTEMS.
  • Conformance badges per served version from the committed pass lists, and a Sonar project key that follows the rename to FerroTERM.
  • FHIR R5 (5.0.0) is served under /r5 with the shapes R5 declares: the validated code, system, version, and itemised issues on both $validate-code operations, definition on $lookup, property and useSupplement on $expand (with expansion.property and contains.property), and the R5 $translate parameter names (sourceCode, targetCode, relationship, originMap). The R4 and R4B endpoints now emit only the outputs their own OperationDefinitions declare. The tx-ecosystem suite runs against /r5 in CI too (conformance/tx-ecosystem/passing-r5.txt).
  • FHIR R4 (4.0.1) is served under /r4 from the generated fhir_types::r4 module: every terminology operation with R4’s own OperationDefinition parameter set, GET /r4/metadata and ?mode=terminology as R4 resources, $versions, $cache-control, and the ValueSet read and search. One set of macros instantiates the wire per version, so R4 and R4B cannot drift; a cache started on one version serves the other. The tx-ecosystem suite runs against /r4 in CI too (scripts/checks/tx-ecosystem.sh --fhir r4, conformance/tx-ecosystem/passing-r4.txt).

Changed

  • The crates/* members are published on crates.io under plain names (fhir-types, rf2, concept-graph, concept-store, designation-index, sct-ecl, fhir-terminology, loinc, classification, dhd-thesaurus, gstandaard, labcodeset, icd11, rxnorm-rrf) on their own lockstep crate line, bumped with their packaged content and guarded in CI, and published through crates.io Trusted Publishing from the release and a dispatch lane.
  • A parameter declared as a primitive reads the primitives that specialize it (a code for a string, a canonical for a uri), derived by the generator from the FHIR type hierarchy.
  • The licence of the project’s own code is the Apache License 2.0 (LICENSE, NOTICE), replacing MIT; every SPDX header, manifest, badge, image label, and page that named MIT follows. Releases up to v0.0.8 stay under the MIT terms they were published with. (A Business Source License change merged and was reverted the same day, before any release carried it.)

0.0.8 - 2026-09-03

The ECL release: the SNOMED CT Expression Constraint Language 2.2, parsed from the official grammar and evaluated as set algebra over the closure, the attribute graph, and the reference set tables, behind ?fhir_vs=ecl/ and the constraint filter; the artifact gains the attribute, member, and identifier files the evaluator reads; LOINC’s class parts and axes are served as the release defines them.

Added

  • ECL: sct-ecl parses the Expression Constraint Language 2.2 with a lexer and a parser that follow the official ANTLR grammar rule for rule (https://github.com/IHTSDO/snomed-expression-constraint-language, the tag pinned in docs/VERSIONS.md, vendored with the example corpus by scripts/vendor/ecl-grammar.sh). The syntax tree names the grammar’s constructs; its Display prints a canonical form that parses back to the same tree; a malformed expression is a typed error with the byte offset and the token class expected there. Evaluation follows in the next change.
  • SNOMED CT: ferroterm-build --rf2 writes three more files beside the store for the ECL evaluator: attributes.bin (every active inferred relationship that is not is-a, with its role group and its concept, number, or string value, plus an inverted index by type and value), members.bin (the active member rows of every concept-referencing reference set with their fields, the OWL axiom reference sets left out), and identifiers.bin (the alternate identifiers of the RF2 identifier file). The provider opens them when the manifest names them; an older artifact still opens.
  • ECL: sct-ecl evaluates a parsed expression constraint against an edition as set algebra over the closure, the attribute graph, and the reference set tables (sct_ecl::eval): every constraint operator (<, <<, <!, <<!, >, >>, >!, >>!, !!>, !!<), member of with field selection, refinements with attribute and group cardinalities, the reverse flag, dotted attributes, concrete values, conjunction, disjunction, exclusion, the description, concept, and member filters, the history supplements, and alternate identifiers. The SNOMED provider is the edition behind it; an unknown identifier, scheme, field, or dialect alias is a typed error, and a construct the artifact cannot answer (a description module or effective time filter, a filter on inactive members) is refused as unsupported.
  • SNOMED CT: ?fhir_vs=ecl/[ecl] (the expression URI-encoded, on the system, edition, or version URI) and the constraint filter of ValueSet.compose evaluate the expression constraint (https://hl7.org/fhir/R4B/snomedct.html); the expressions filter accepts false and refuses true as not supported. Malformed ECL is an OperationOutcome invalid with the byte offset, an identifier the edition lacks is code-invalid. Parsed expressions are cached.

Fixed

  • LOINC: the class parts that only the Component Hierarchy by System names (42,554 in 2.83, such as LP442038-8 |Bacteria | Abscess | Microbiology|) are concepts with the hierarchy’s text as their name, so concept is-a and ancestor over a part reach the terms under it (they were dropped with their terms before). The six axes (COMPONENT, PROPERTY, TIME_ASPCT, SYSTEM, SCALE_TYP, METHOD_TYP) carry the part the primary part links name, as the FHIR LOINC page types them; a filter on an axis matches the part’s code or its name with = and in, and its name, code, or column text with regex. ferroterm-build --loinc reads LoincPartLink_Primary.csv from the zip.
  • LOINC: a part displays its PartName (PANEL.HL7.CYTOGEN), as the reference servers do where the FHIR page names no display; PartDisplayName follows as a synonym.
  • TerminologyCapabilities.codeSystem.version.language lists the designation languages as CommonLanguages codes (a tag outside the set by its primary subtag, or left out): R4B binds the element to nothing, but the FHIR validator converts the resource to R5, whose binding is required, and stopped on ar-JO from the LOINC linguistic variants. $lookup designations keep every tag.
  • LOINC: the release zip’s AccessoryFiles/PanelsAndForms/Loinc.csv is no longer mistaken for the term table, and a published code whose check digit does not follow the Mod 10 algorithm (11491-6, deprecated, in 2.83) is read as the table lists it; the check digit still applies to codes a client submits.

0.0.7 - 2026-09-03

The code systems release: the ICD-11 code systems from the WHO ICD-API local deployment, ATC/DDD, the DHD thesauri, and the G-Standaard product ladder join the served systems; SNOMED CT gains its implicit value sets; $expand pages over selection bitmaps before reading a concept; Accept-Language selects the display language; and the README, the landing page, and the book describe the shipped server.

Added

  • SNOMED CT: the implicit value sets ?fhir_vs (every concept), ?fhir_vs=isa/[sctid], ?fhir_vs=refset, and ?fhir_vs=refset/[sctid] on the system, edition, or version URI (https://hl7.org/fhir/R4B/snomedct.html); ?fhir_vs=ecl/ is refused with an OperationOutcome until the ECL milestone. concept in [sctid] is reference set membership, as the page defines it. ferroterm-build --rf2 writes the active concept members of every concept-referencing reference set to refsets.bin beside the store (an artifact without the file still opens, with no reference sets).
  • ICD-11: ferroterm-build --icd11 <cache> [--icd11-api <url>] walks a local deployment of the WHO ICD-API into a cache of entity JSON and builds the MMS, the ICF, and the Foundation as three code systems (http://id.who.int/icd/release/11/mms, .../icf, http://id.who.int/icd/entity), served from FERROTERM_INDEX. A code is a short code, an entity URI in either form, or a postcoordination expression validated against the stem’s axes, with stem and postcoordinationValues in $lookup; id, parent, and child are URIs; an entity without a short code is notSelectable; a stem’s scale is an implicit value set (<uri>/postcoordinationScale/<axis>). $lookup properties now carry description and subproperty parts, and a uri value.
  • The Accept-Language header selects the display language of $lookup, $validate-code, and $expand when the request names no displayLanguage; the parameter wins when both are given. Both carry a language range list (en, en-AU; q=0.4, de,*), resolved against the languages the code system carries by quality, then position; * is the system’s own language.
  • ATC/DDD: ferroterm-build --atc <index.csv|BST801T> --atc-version <year> builds the WHO index (exported as CSV) or the G-Standaard BST801T file into the classification layout under http://www.whocc.no/atc: the five levels as kind, the tree from the code prefixes, the names as designations by language, every DDD a ddd property.
  • DHD thesauri: ferroterm-build --dhd <delivery.zip|dir> [--dhd-version <v>] builds a Diagnosethesaurus or Verrichtingenthesaurus delivery (Uitleverformaat 5.0 CSV tables) into a flat classification under urn:oid:2.16.840.1.113883.2.4.3.120.5.1: the terms as designations by type and language, the SNOMED CT identifier, the ICD-10, DBC, and ZA derivations, roles, code mappings, replacements, splits, and umbrella terms as properties, ended concepts inactive. The build writes conceptmaps/dhd-to-snomed.json and dhd-to-icd10.json (FHIR R4B ConceptMap) for FERROTERM_CODESYSTEMS. A classification without a tree (no hierarchyMeaning) is served without parent/child properties and without subsumption.
  • G-Standaard: ferroterm-build --gstandaard <dir> --gstandaard-version <release> builds the product ladder from the fixed-length files (BST711T, BST052T, BST031T, BST004T, names through BST020T, thesauri through BST902T) into four flat classifications under <out>/{gpk,prk,hpk,artikel} (urn:oid:2.16.840.1.113883.2.4.4.1, .10, .7, .8): the full name as display, short and label names as designations, the rungs above a concept, the ATC code, substance, strength, form, route, brand, and firm as properties; removed records skipped, articles with a removal date inactive.

Changed

  • ValueSet/$expand pages before it reads: includes and excludes are bitmap algebra per code system version, total is the bitmap count, and only the count members after offset are read from the store. The order within a system is the provider’s concept order (the ordinal the build assigns from sorted codes; a FHIR CodeSystem resource’s concepts are numbered in code order too) instead of a string sort of the codes, so a page over 133,736 SNOMED CT descendants answers in 0.6 ms instead of a second, the whole Dutch edition in 3 ms instead of four seconds. activeOnly over a large set subtracts the provider’s inactive set, which SNOMED CT reads once from the store (0.4 s) and keeps.

0.0.6 - 2026-09-03

The ICD-10 and RxNorm release: a ClaML classification (WHO ICD-10, ICD-10-NL, or any other) and the NCHS ICD-10-CM release build into the artifact layout and are served with the FHIR ICD page’s conventions, and an RxNorm release (the full release or the Current Prescribable Content) is served with the five FHIR filters over typed relationship edges.

Added

  • The ICD-10 family: ferroterm-build --claml <xml|zip> --system <uri> builds a ClaML classification (WHO ICD-10, ICD-10-NL, or any other) and ferroterm-build --icd10cm <dir|zip>... builds the NCHS ICD-10-CM release (the tabular XML and the order file) into the artifact layout, and the server serves them from FERROTERM_INDEX beside SNOMED CT and LOINC. Chapters, blocks, categories, and subcategories are the codes with the period the FHIR ICD page requires; the single-parent tree is the graph (classified-with); titles, inclusion terms, and short descriptions are designations; every other note kind is a property and a filter beside kind, usage, and valid; ClaML modifiers expand onto their leaves and the ICD-10-CM seventh-character codes hang under their stem. The provider answers the generic filters over the tree and $subsumes from the closure; the ICD page defines no filters and no implicit value sets, so there are none.
  • RxNorm: ferroterm-build --rxnorm <zip|dir> builds the full release or the Current Prescribable Content into the artifact layout (the RXCUIs with an RXNORM atom as codes, the RXNORM string as the display, every kept atom as a designation, TTY, SAB, STY, and the RXNORM attributes as properties, the RXNORM relationships as typed edges both ways), and the server serves it from FERROTERM_INDEX. The provider follows the FHIR RxNorm page: the STY, SAB, and TTY filters, every REL code and RELA label as a filter over the edges (=, in, CUI: or AUI: values), the /vs implicit value set, no subsumption. Only the unrestricted sources are kept unless --rxnorm-sources names the licensed ones.

0.0.5 - 2026-09-03

The LOINC release: a LOINC release builds into the same artifact layout as a SNOMED CT edition and is served beside it, UCUM ships with the server, and the hierarchy closure and the designation index move out of the database into files beside it, which brings the Dutch edition to 589 MiB on disk and 49 s to build.

Added

  • LOINC: ferroterm-build --loinc <release zip or directory> builds a LOINC release into the artifact layout (terms, parts, answer lists, and answers as codes; the Component Hierarchy by System as the graph; every Loinc.csv field as a property; long common names, short names, consumer names, part and answer texts, and every linguistic variant as designations), and the server serves it from FERROTERM_INDEX beside SNOMED CT, the manifest naming the system. The provider follows the FHIR LOINC page: codes compared without case, LONG_COMMON_NAME (or a translation) as the display, STATUS = DEPRECATED inactive, = and regex on every field, copyright, parent, and ancestor over the hierarchy, and the implicit value sets http://loinc.org/vs, /vs/[LL id], and /vs/[part code].

Changed

  • The artifact layout: ferroterm-build writes the hierarchy closure and the designation index as hierarchy.bin and text.bin beside store.redb instead of as blobs inside it (manifest version 2, store layout 2), which removes the large-value pages and their fragmentation from the database. Artifacts built before this change must be rebuilt.

0.0.4 - 2026-09-03

The multi-terminology release: any FHIR CodeSystem, ValueSet, and ConceptMap resource is served beside SNOMED CT, the ValueSet and ConceptMap operations join the CodeSystem ones on R4B, the registry systems (BCP 47, BCP 13, ISO 3166-1) ship with the server, request-scoped resources and $cache-control make the HL7 terminology ecosystem suite runnable, and it runs in CI against a committed pass list. The index builds from the release zip with a tool that ships in the release and the image.

Added

  • UCUM (http://unitsofmeasure.org), served without configuration: expressions are parsed against the UCUM grammar over the vendored ucum-essence.xml (2.2, its licence alongside) and reduced to a magnitude over the seven base units; every valid expression is a code and its own display, with an English name composed from the essence; canonical and property are properties and filters; $subsumes answers equivalent for the same unit and not-subsumed otherwise; the implicit value sets /vs and /vs/[expression]; enumeration is refused.

  • The registry systems, served without configuration: BCP 47 language tags (urn:ietf:bcp:47, the RFC 5646 grammar over the IANA Language Subtag Registry; a well-formed tag with an unregistered subtag is not a code), BCP 13 media types (urn:ietf:bcp:13, the RFC 6838 grammar; registered and base filters, registered = true enumerates the IANA registry, and $subsumes decides by parameters, declining a parameter it does not know), and ISO 3166-1 country codes (urn:iso:std:iso:3166, from Unicode CLDR; case-insensitive alpha-2 codes with alpha3 and numeric, code regex). The IANA and CLDR data is vendored with provenance (scripts/vendor/registries.sh).

  • ValueSet/$validate-code decides membership include by include against the code itself, so a value set over a system that cannot be enumerated validates; $expand answers too-costly for more than 1000 concepts without count; every OperationOutcome issue carries details.text and a tx-issue-type coding.

  • ferroterm-build --rf2 takes the SNOMED CT release zip as distributed, not only the unpacked directory: the Snapshot/ tree is unpacked to a temporary directory removed with the build, and the bytes written equal those of a build from the directory. The tool ships in every release tarball beside ferroterm (with its own CycloneDX SBOM and attestation) and in the container image at /usr/local/bin/ferroterm-build; compose.yaml gains a one-shot build service under the build profile, so the quickstart is FERROTERM_RF2=<release.zip> docker compose run --rm build then docker compose up.

  • ConceptMap/$translate on R4B, type level. A map is inline (conceptMap), loaded from a FERROTERM_CODESYSTEMS directory (url and conceptMapVersion), or chosen by source and target scope and targetsystem; the input is code with system, a coding, or a codeableConcept; reverse reads the groups the other way. R4’s equivalence and R5’s relationship vocabularies reduce to one model, an element without a target or with noMap answers unmatched, and unmapped rules (provided, fixed, other-map) apply. Each match also carries originMap, sourceConcept, sourceComment, and noMap, as the terminology ecosystem expects. ConceptMap resources travel in tx-resource like the others.

  • Request-scoped resources: tx-resource parameters on every operation carry CodeSystem and ValueSet resources served for that request only (a supplement applies to the system it names; another resource type is refused), POST $cache-control?mode=start front-loads them under a cache-id that the X-Cache-Id header names on later requests (mode=end releases it; an idle cache expires after 30 minutes), and GET $versions answers the FHIR version of the base. Loaded value sets are readable (GET ValueSet/{id}) and searchable by url and version. The capability statement gains its canonical, instantiates the terminology server statement, the ValueSet interactions and operations, versions and cache-control, and the ecosystem feature extensions; the terminology capabilities list the $expand parameters the server evaluates.

  • ValueSet/$expand and ValueSet/$validate-code on R4B, type level, over the compose layer. A value set is inline (valueSet), loaded from a FERROTERM_CODESYSTEMS directory (url and valueSetVersion; the greatest version is the default), or a provider’s implicit form; include.valueSet resolves through the same store and a cycle is refused. The expansion is flat, pages with offset and count, honours activeOnly, filter, displayLanguage, includeDesignations with designation, includeDefinition, system-version, check-system-version, force-system-version, and exclude-system, and echoes every effective parameter plus one used-codesystem per code system version used. Validation answers result, message, and display, infers the system when the value set draws on one, checks the display against the designations, marks inactive codes with a warning, and appends the system, version, and code echo and an issues OperationOutcome with tx-issue-type codings, as the terminology ecosystem expects.

  • Any code system published as a FHIR CodeSystem resource is served: FERROTERM_CODESYSTEMS names directories of resources (a FHIR package’s package/ directory, such as HL7 Terminology 7.3.0, or plain JSON files) in R4, R4B, R5, or R6. Nested concepts and parent/subsumedBy properties form the hierarchy when hierarchyMeaning is is-a; caseSensitive, content (example and not-present refuse code lookup and enumeration), versionNeeded, the resource’s own property and filter declarations, and the standard inactive, notSelectable, parent, and child properties are honoured. A content = supplement resource adds its designations and properties to the system it supplements; a designation in the requested language is the display when the system has none.

  • CodeSystem instance ids carry the system URL when the version does not, so two systems at version 1 do not collide.

  • The generated FHIR layer covers R4: hl7.fhir.r4.core 4.0.1 is vendored with provenance and fhir-types gains the r4 module (131 root-set types, the terminology operation contracts, the JSON codec, and the Parameters conversions), with every terminology resource of the package round-tripping.

  • The generated FHIR layer tracks the R6 ballot: hl7.fhir.r6.core 6.0.0-ballot5 (published on packages2.fhir.org) is vendored with provenance and fhir-types gains the r6 module (161 root-set types, the operation contracts including the new tx-resource parameters, the codec, and the Parameters conversions). Ballot content: every R6-only behaviour is re-verified when R6 publishes.

0.0.3 - 2026-09-02

The first release that serves: a built SNOMED CT edition answers $lookup, $validate-code, and $subsumes on FHIR R4B, from a binary or the container image, with a quickstart compose file and readable console logs.

Added

  • ferroterm-build --rf2 <release> --out <dir>: the offline build from a SNOMED CT RF2 Snapshot to the served artifacts. One redb store per edition version with the concepts, designations, language-reference-set acceptabilities, the parent, definitionStatus, and module properties, and every concept-model attribute keyed by its concept id; the is-a hierarchy and the designation search index in its blob slots; and a manifest.json naming the edition and version URIs, the release date, the languages, and the counts. Two builds of the same release are byte-identical; the Netherlands edition builds in about a minute.
  • The first served operations on FHIR R4B: CodeSystem/$lookup, CodeSystem/$validate-code, and CodeSystem/$subsumes under /r4b, by GET with query parameters or POST with a Parameters resource, at the type level and (for the latter two) on a CodeSystem instance; every client input error is an OperationOutcome. GET /r4b/metadata returns the CapabilityStatement and ?mode=terminology the TerminologyCapabilities describing the loaded editions. The server loads the artifact directories named by FERROTERM_INDEX at start and refuses a missing or damaged one.
  • The code system provider seam and the compose layer the operations run on, with SNOMED CT as the first provider: identity by edition version URI, display by language reference set, the SNOMED-on-FHIR properties, subsumption from the closure, and text search from the index.
  • The container image ghcr.io/rubentalstra/ferroterm (linux/amd64 and linux/arm64; the static binary on distroless/static-debian13, numeric non-root user, listening on 0.0.0.0:8080), built from the attested static binaries with SLSA Build L3 provenance on the index and each platform manifest and an SPDX SBOM per platform, all verifiable with gh attestation verify oci://….
  • A compose.yaml quickstart at the repository root, attached to every release: it pulls the released image, mounts a built index read-only, binds the loopback interface, and runs with every capability dropped and a read-only root filesystem. docker compose up beside an index is the whole install.
  • Console logs an operator can read: a startup banner naming the version and the maintainer, one line per loaded code system version (id, system, version, concepts, languages, path), one line per request (method, route, status, latency, the system and code named), and one line on stop. FERROTERM_LOG_FORMAT chooses pretty (colour on a terminal) or json (one object per line); auto, the default, picks by whether stdout is a terminal. RUST_LOG filters; the HTTP stack’s crates default to warn.
  • The server stops cleanly on SIGTERM and SIGINT, finishing the requests in flight.

Changed

  • Release binaries ship for Linux only (x86_64 and aarch64, gnu and musl): the server runs in a container or on a Linux host. The macOS build is dropped from the release; a developer on a Mac builds from source.

0.0.2 - 2026-09-02

The first published release. It carries the 0.0.1 contents below plus the release-build fix; the 0.0.1 tag exists but never published (its build jobs failed at the packaging step) and stays as an unpublished draft.

Fixed

  • The release build packages the server binary again: the binary is named ferroterm, as the release workflow, the install guide, and the container image expect. The 0.0.1 tag never published because the crate produced ferroterm-server and the packaging step found no file to strip.

0.0.1 - 2026-09-02

The first cut: the project foundation, the generated FHIR layer for R4B and R5, and the first three SNOMED CT engine substrates (RF2 loading, the subsumption graph, the concept store). Nothing is served yet; the server binary answers GET /health only.

Added

  • The Cargo workspace: the seven engine crates, the ferroterm-server binary (with a GET /health route), and the two tools, with the pinned dependency set, the workspace lint table, and the Rust CI lanes active.
  • Project foundation: architecture, .claude/ project configuration (rules, agents, hooks, skills, memory), CI/CD + supply-chain scaffolding, the tracker work-style, and citation/funding metadata.
  • fhir-codegen and the generated fhir-types crate: the vendored, pinned hl7.fhir.r4b.core 4.3.0 and hl7.fhir.r5.core 5.0.0 packages (with provenance), the terminology root-set types per version (133 for R4B, 154 for R5), the operation contracts ($lookup, $validate-code, $subsumes, $expand, $translate, $find-matches, $closure) as the version’s OperationDefinition declares them, and a JSON codec that round-trips every terminology resource in both packages. A CI drift check regenerates and fails on any diff.
  • rf2: the SNOMED CT RF2 Snapshot loader and typed component model (SCTID check digits and partitions, file-name grammar, concepts, descriptions, relationships, concrete values, reference sets with typed views, module dependencies resolved to an edition URI).
  • concept-graph: integer-keyed CSR adjacency and roaring transitive-closure bitmaps over the inferred is-a hierarchy, the $subsumes outcome over them, and a versioned artifact layout.
  • concept-store: the read-only redb concept and designation store with point reads, precomputed preferred designations per language reference set, typed properties, and blob slots for the graph and text artifacts.

Changed

  • The project has its official name, FerroTERM (Ferro for the Rust family it shares with FerroEHR, TERM for terminology), with the site at https://ferroterm.eu. The repository, every crate (ferroterm-*), binary, environment variable (FERROTERM_LISTEN), and document carry the name; the Notio codename is retired.
  • The engine is code-system-neutral by design: the FHIR terminology operations talk to a code system provider seam, SNOMED CT is the first provider, and LOINC, UCUM, ICD-10, and the other systems in docs/terminologies.md follow through the same seam.
  • No existing Rust terminology or FHIR crate is a dependency; the README records the evaluation and the reasons.