ADR-0007: Carry portable substance identifiers on every medication
- Status: Accepted
- Date: 2026-07-25
- Supersedes: None
- Superseded by: None
Context
Records prefilled from the ŠÚKL mirror (ADR-0006) are keyed entirely by Slovak identifiers: a ŠÚKL code, a registration number and a substance name spelled in Slovak ("Metylfenidát", "Aciklovir"). None of that means anything to a foreign clinician, an interaction checker or an export.
What exists globally, and what does not:
- No free product-level key. ISO IDMP's MPID/PhPID is the standard designed for exactly this, but EMA's SPOR/PMS is not publicly downloadable. The GTIN in the pack's 2D DataMatrix is globally unique, but it identifies a carton and has to be scanned.
- Substance level is solved and free. INN is the international name; ATC classifies it; RxNorm gives it a machine id; UNII is a global substance identifier; SNOMED CT concepts exist but need a member licence to redistribute.
- ŠÚKL already publishes the ATC code and the substance name, so the bridge is a name lookup — and a verifiable one, since RxNorm holds ATC codes too.
Decision
- A medication stores
atc_code,rxnorm_cuianduniialongside its national identifiers, and the draft prefillsactiveIngredientwith the INN rather than the Slovak spelling. - Resolution is cached per substance, keyed by ATC code (
substances), not per medication: the answer belongs to the substance, so every product sharing an ATC shares one lookup. Rows are a cache — deleting them costs a round trip. - The Slovak spelling is tried first, then Latinised alternatives (
-át→-ate,metyl→methyl,k→c,z→s), because RxNav's own fuzzy matcher returns nothing formetylfenidatyet resolvesmetylfenidate. Candidates are proposals, not corrections. - ATC is the validator. A candidate whose RxNorm concept carries ŠÚKL's own
ATC code is accepted outright; otherwise the best-ranked hit is kept and
labelled unconfirmed. A mismatch is usually an ATC revision, not a wrong drug
(ŠÚKL still files pregabalin under
N03AX16, WHO moved it toN02BF02), so it lowers confidence rather than discarding the link. - A salt is not its base. RxNorm files "venlafaxine hydrochloride" as a precise ingredient; the 75 mg on the box is 75 mg of venlafaxine base (about 84.85 mg of the salt). The record therefore names the substance the strength refers to, and keeps the salt beside it as the exact substance in the product. Only a recognised counter-ion moves the identity: "cerliponase alfa" is a glycoform and "technetium Tc 99m pertechnetate" a radiolabel, and demoting either to its stem would name something nobody is given.
- Failure is not an error: an unresolved substance leaves a complete record that simply carries national identifiers only.
- SNOMED concepts are stored for local use but are not treated as redistributable.
Consequences
- Measured on 25 distinct substances from the mirror: 25 resolved, 20 confirmed
by ATC agreement. Before the Latinisation step,
metylfenidat,teofylinand similar resolved to nothing at all. - A record is legible outside Slovakia —
Atorvastatin · C10AA05 · RXCUI 83367 · UNII A0JWA85V8F— which is what an interaction checker or a FHIR export needs, without either knowing what ŠÚKL is. - The ingredient rows are consumed, not merely stored: substances appearing in more than one active medication are reported on the regimen and on each affected record. Matching prefers RxNorm, then UNII, then the folded name, and says which it used — two records agreeing on an identifier is a fact, two spellings agreeing is an inference. It is a prompt to check, never a verdict: a switch or a taper legitimately shares a substance.
- Records the registry never filled take part too. A hand-typed ingredient field
is split and resolved into the same rows (
source = 'manual'), so a regimen is comparable end to end; registry rows are never overwritten by retyped text. - The link is a name match, however verified, so it is a claim about a substance rather than a regulatory identity. It is labelled in the UI when unconfirmed and never used to make a clinical decision on its own.
- Fixed-dose combinations are a list, not a special case. Every medication
has a
medication_ingredientslist — of length one for most — shaped like the extraction pipeline'sActiveIngredient(name, INN, ATC, strength value and unit), so a medication read out of a discharge report maps onto the same rows. Each substance resolves independently; the product's ATC belongs to the combination and is withheld from its members, sinceC10BX13describes the three together and none of them alone. - Strengths are never paired with substances by position. ŠÚKL writes the
ATC class name in one order and the pack's strengths in the manufacturer's:
A10BD13 Metformín a alogliptín · 12,5 mg/1000 mgis 12.5 mg of alogliptin. Zipping the lists would state a hundredfold wrong dose, so per-ingredient amounts stay null unless a source says which belongs to which, and the record shows the pack's own string with that caveat. - Labels that name a class rather than substances — "Umelé slzy a iné indiferentné liečivá", "Očkovacia látka proti osýpkam, kombinácie" — yield no ingredients and say so. A class named alongside substances ("Olmesartan medoxomil a diuretiká") keeps the substances and flags the omission.
- Not adopted, for now: the full ISO 11238 substance graph (parent, salt and solvate relationships, substance classes) and a FHIR-shaped ingredient list with reference strengths. The salt/base distinction is the part of that model that changes what a record says; the rest is scope for when this app gains multi-ingredient products or an export, and EMA's SPOR SMS — the EU implementation — is not publicly obtainable to key against anyway.
- One more network dependency at draft time, cached for 180 days and degrading to the previous answer when RxNav is unreachable.