← Platform Basement

FEAT-TERMINOLOGY-AND-CODE-BINDINGS

Terminology & Code Bindings

Clinical codes — what a lab test is called, what a procedure means, what a diagnosis maps to — are the vocabulary of every clinical workflow. The platform manages these codes as a shared, zone-aligned, declaratively-configured terminology layer rather than as per-module ad-hoc tables. Your codes stay current with the national catalogue without ongoing work; your customer organisation runs a curated subset of the zone's offering; your team sees terms in the language they speak; modules across the platform agree on what every code means.

Why this matters

Every clinical workflow touches codes. A lab test is a LOINC code (or its national equivalent); a procedure is a SNOMED CT or local code; a diagnosis is an ICD-10 code; an insurance contract references those codes when defining coverage. National authorities maintain master catalogues — the Estonian Lab Registry (ELHR) for lab tests, Tervisekassa's procedure catalogue, the WHO ICD-10 list — and update them on their own schedules.

A clinical module that ships its own code tables falls out of sync with these national catalogues over time. A new LOINC code arrives at ELHR; the lab module's table doesn't include it until the next module release; the customer either waits or runs a workaround. Multiply this by every module times every catalogue times every zone, and the maintenance cost grows faster than the product does.

The opposite design — one terminology layer that the platform maintains, every module reads from — keeps the codes current without per-module work. The customer's IT team doesn't sync code tables; the platform does. A new ELHR release propagates to every module simultaneously. A clinical module developer binds to terminology by code system + value set, not by hard-coded enum.

The Terminology & Code Bindings component is that shared layer. It lives in the Shared Clinical Surface, is structured around Compliance zones, and is consumed uniformly by every clinical and support module.

What's in the box

Zone-aligned code systems

Codes are organised by zone. Estonia gets its LOINC subset (curated against the ELHR catalogue), its national procedure catalogue, its ICD-10 conventions. Germany gets a different LOINC subset, EBM for procedures, ICD-10-GM. France gets NABM, CCAM, ICD-10-FR. Each zone's catalogue is a first-class artefact the platform synchronises with the national authority.

A customer organisation joins one or more zones; it inherits the zone's terminology automatically. Cross-zone deployments (a hospital group spanning the EU operating a Helsinki customer organisation and a Tallinn customer organisation) get the right codes per customer organisation without per organisation configuration.

National authorities publish on their own terms — a tab-separated dump with ragged rows, a spreadsheet, an API. The platform takes whatever shape arrives and materialises it as a canonical FHIR CodeSystem: one concept per coded entry, carrying its display, its long-form definition, and its language-tagged synonyms. The resulting resource is versioned by the most recent upstream change rather than the date it was fetched, so a clinician looking at two zones can see which catalogue has moved and which has been still for a year. A fetch that fails leaves the previous snapshot in place; a partial national catalogue is worse than a slightly stale one.

Per-customer organisation subsets

A customer organisation rarely uses the whole zone catalogue. A regional hospital's lab offers a few hundred LOINC codes out of the zone's full set. A primary-care clinic uses a smaller ICD-10 subset than a tertiary teaching hospital. The platform models this as a per organisation ValueSet that constrains the available codes per use site.

The subset is curated by the organisation's clinical leads, managed declaratively through the same git-backed configuration as the rest of the customer organisation (Declarative customer organisation configuration). Adding a lab test the hospital newly offers is a git change with a review trail.

Alias overlays

Clinical staff don't speak in standard codes; they speak in local names. A LOINC code reads as a string of digits with a formal description; the lab tech at the bench knows it as "CRP". The platform supports alias overlays per zone and per customer organisation: short names, departmental shorthand, language-specific display strings.

The displayed label on a screen is the organisation's alias if one exists; otherwise the zone alias; otherwise the standard description. The platform never silently transforms the canonical code, but everything a clinician sees can be in their own register.

A customer organisation's clinical leads curate their aliases; the alias set itself becomes a piece of institutional knowledge the platform captures rather than letting it live as a paper sheet on the bench.

Stable bindings for modules

A clinical module doesn't write "CRP" in its code; it binds to a value set (e.g. Inflammation markers) defined in the terminology layer. The lab module's worklist of inflammation markers gets the right codes per zone automatically. The billing module's per-tariff coverage rules reference the same value sets.

When ELHR adds a new inflammation marker code in March, the platform's terminology sync picks it up; the lab module's worklist shows the new code without any module release; the billing module knows to expect it; nothing in any module's codebase had to change.

Built on FHIR terminology services

The implementation uses standard FHIR code list, value list, and code mapping resources, with $expand and $validate-code operations as the consumer-facing API. This means the terminology layer is queryable with standard FHIR tooling, and any external system that speaks FHIR can integrate against it.

Standards we lean on

  • HL7 FHIR Terminology Module — code list, value list, code mapping, $expand, $translate.
  • LOINC — laboratory and clinical observations.
  • SNOMED CT — clinical concepts (where licensed per zone).
  • ICD-10 (and national variants — ICD-10-GM, ICD-10-FR, ICD-10-CM) — diagnoses.
  • National catalogues per zone — Estonian Lab Registry (ELHR), Tervisekassa, German EBM, French NABM/CCAM.
  • ISO/IEC 11179 — metadata registries; the conceptual basis for the zone-aligned shared-vocabulary approach.

What customers and operators experience

  • A lab technician at the bench sees test codes in the shorthand their lab uses; the underlying canonical code is there for billing and reporting but doesn't clutter the worklist.
  • A clinical leader curating the lab's offering uses one declarative interface to specify what subset of the zone's test catalogue the lab offers; changes go through git review; the audit trail is the git history.
  • A new module developer binds to value sets, not to enums. Their module ships once and works correctly across every zone the platform supports.
  • A billing manager sees per-tariff coverage rules expressed against the same value sets the clinical modules use; the rules don't drift apart from clinical reality.
  • A DPO sees one terminology surface to audit when a national authority changes a code; the audit covers all modules at once.
  • A national authority publishing a catalogue update sees the platform absorb it via a single sync; no customer has to coordinate per-module updates.

Limits and trade-offs

  • License-bound vocabularies have their own legal regimes. SNOMED CT, for instance, requires affiliate licensing per jurisdiction. The terminology layer respects these licenses per zone; what's available depends on what the customer's zone licenses cover.
  • Codes are not concepts. The same body of clinical reality is coded differently in different catalogues; a code mapping bridges between them but is never a perfect identity. Where precise semantic mapping matters (cross-zone referral, eHDSI exchange), the platform exposes the mapping uncertainty rather than hiding it.
  • Customer subsets need active curation. A customer organisation that doesn't curate its subset gets the zone's full catalogue, which is usually too broad. The platform makes the gap visible (a long-tail of codes that have never been used at this customer organisation) but the curation decision is the customer's.
  • Catalogue update lag. The platform syncs national catalogues on a published schedule; a brand-new code at ELHR appears at the customer organisation on the next sync window, not the millisecond it lands. For urgent cases, manual override is available.
What it rests on
0 / 7 passing 3 without a result yet
  • kept by its basis its basis has no result Every organisation answers code look-ups, value-set expansions and code checks from its own vocabulary, whichever version of the standard it speaks. REQ-TRM-EVERY-ORGANISATION-ANSWERS-ITS-CODES
    Based on 1 promise
    • not cited Every served tenant answers `$lookup`, `$expand` and `$validate-code` from its own store's native form, whichever FHIR version it speaks; no tenant is a second-class reader. A terminology write reaches that form rather than being stored whole — a resource that is present and answers nothing is worse than one that is absent. REQ-DBO-TERM-EVERY-TENANT-ANSWERS
  • kept by its basis its basis has no result A code outside a required binding is refused by name, checked against the organisation's own vocabulary; a code from a vocabulary it does not hold is reported as unknown, not as wrong. REQ-TRM-A-WRONG-CODE-IS-REFUSED-BY-NAME
    Based on 1 promise
    • cited, no result A binding's value set and code system are answered from the tenant's records — the version's own, published by its root and taken apart into the native form on arrival, and the tenant's own — never from a carried package. A code outside a required binding is refused by name; a code from a system the tenant does not hold is unresolvable, never invalid. REQ-DBO-TERM-BINDINGS-ANSWERED-FROM-RECORDS
      Cited by: cloud.jengu.dbo.fhir.element.ABindingIsAnsweredFromRecordsTest#aBareCodeIsJudgedByTheValueSetsOwnSystems
  • kept by its basis its basis has no result A vocabulary taken from the zone arrives complete — its whole history at first, every change afterwards — and is answered locally down to each code. REQ-TRM-THE-ZONES-VOCABULARY-ARRIVES-WHOLE
    Based on 2 promises
    • not cited A newly declared dependency catches up from the upstream's full history; pre-existing content arrives the same way live changes do. REQ-DBO-SYNC-FULL-HISTORY-CATCH-UP
    • not cited A streamed terminology dependency rebuilds the receiving tenant's native form: the source sends the whole CodeSystem even though it stores a shell, and the dependent takes it apart into its own concepts. After catch-up the dependent answers `$lookup` and `$expand` locally, which is the only proof that the grain survived the hop — a copy's stored payload never contains a concept at either end. REQ-DBO-SYNC-TERMINOLOGY-GRAIN-SURVIVES
  • gap: not yet stated A code system authored in parts is declared as one system, and a supplement is never declared as a vocabulary of its own. FEAT-GAP-59657f14
  • gap: not yet stated A national catalogue is taken in as it is published, each version kept, and a failed update keeps the last good one. FEAT-GAP-e984c5e1
  • gap: not yet stated Aliases show by organisation, then zone, then the standard name, and the canonical code is never altered. FEAT-GAP-42ee1306
  • gap: not yet stated A code is translated between the code systems a zone maps. FEAT-GAP-c5ec9ae3