5 Terminologies and ontologies
Why does atrial fibrillation have a different code in every system?
In plain language
- A terminology gives each clinical idea a code and a precise meaning, so computers in different places can treat the same idea the same way.
- Different code systems serve different jobs: SNOMED CT for clinical meaning, ICD for statistics and billing, LOINC for tests, a drug vocabulary for medicines (RxNorm in the US, Dubai's own drug codes in Dubai) and UCUM for units.
- Moving data between code systems is mapping, and mapping can lose or distort meaning. Always ask what a code could not say.
The core sections below build on these ideas. Sections marked "Going deeper" are optional and go further.
Why this matters for you
What it means for each role
- Students
- Codes are the hidden layer under every dashboard and study. This module teaches you to read them.
- Physicians and residents
- The diagnosis you pick from a list becomes several codes, each read by different people and rules. Your choice decides what they see.
- Nurses and allied health
- Flowsheet rows, care plans and assessments are coded too. Choosing the right row is choosing the right code.
- Researchers and analysts
- Most cohort errors start with a code list. Knowing how terminologies are built is how you write one that holds up.
- IT and administration
- Mapping tables are a large, permanent maintenance job. Every terminology releases updates, and someone must apply them.
One heartbeat, five codes
At 09:40 the ED resident reviews Mira’s ECG and picks “AF” from the diagnosis list. That one click creates several codes. The friendly term on the screen is mapped behind the scenes to a SNOMED CT concept for her ED diagnosis, and to a provisional ICD-10-CM code. On Day 3, a coder in health information management reads the notes and assigns the final billing codes. Dubai uses the US ICD-10-CM for claims, so its coding rules apply. If Mira’s short stay is classed as outpatient, the coder does not code “possible TIA” at all, and codes the symptom instead. If it is classed as an inpatient admission, the uncertain diagnosis is coded as if confirmed (Module 2). On Day 30, the research warehouse stores a standard research concept. Each code is right, and each answers a different question. This module is about why that happens and what can go wrong.
Why computers need controlled terms
People can read “AF”, “a-fib”, “atrial fibrillation” and “irregularly irregular rhythm, likely AF” and know they mean much the same thing. A computer cannot. To count, compare, alert or exchange, it needs one agreed identifier for each idea, with a precise meaning. That is what a controlled terminology provides: a list of concepts, each with a code that never changes meaning, a preferred name, synonyms and, in the better ones, relationships to other concepts.
Three related words are worth keeping apart:
- A terminology names clinical ideas in detail, for recording care. SNOMED CT is the main example.
- A classification sorts conditions into a limited set of non-overlapping groups, for counting and payment. ICD-10 is the main example. Every case must fit somewhere, so classifications have “other” and “unspecified” categories.
- An ontology defines concepts formally through their relationships, so a computer can reason with them. SNOMED CT is built on an ontology. The Gene Ontology and the Human Phenotype Ontology are examples from research.
The main code systems
| System | What it codes | Main use | Who maintains it |
|---|---|---|---|
| SNOMED CT | Diagnoses, findings, procedures, body sites and more: over 350,000 concepts | Clinical records, problem lists, decision support | SNOMED International |
| ICD-10 and ICD-11 | Diseases and causes of death, in groups | Mortality statistics, billing, health service planning | WHO; national versions by national bodies, such as the US ICD-10-CM by NCHS |
| LOINC | Lab tests, vital signs, survey questions and document types | Exchanging and pooling results | Regenstrief Institute |
| RxNorm | Medicines: ingredients, strengths, forms and products | Exchanging drug data and research in the US | US National Library of Medicine |
| UCUM | Units of measure | Unit conversion and checking | Regenstrief Institute |
SNOMED CT concepts sit in a hierarchy linked by “is a” relationships. Paroxysmal atrial fibrillation is a atrial fibrillation, which is a disorder of cardiac rhythm. A concept can have more than one parent. This structure is what lets a query for “atrial fibrillation” find every more specific kind of AF, but only if the query asks for the descendants too.
Clinicians rarely pick SNOMED CT codes directly. They choose from an interface terminology: friendly terms such as “AF” or “a-fib”, often supplied by a commercial vendor, that the EHR maps behind the scenes to SNOMED CT and ICD-10-CM. Module 2’s encounter lab shows this at the 09:40 step.
LOINC names are long because they spell out what was measured: the substance (creatinine), the kind of quantity (“Mass/volume”, such as mg/dL, or “Moles/volume”, such as µmol/L), the specimen (serum or plasma, or urine) and sometimes the timing or method. Two results that differ in any of these get different codes.
Going deeper Which codes, where
The UAE uses the US ICD-10-CM and CPT for claims, with its own drug codes: in Dubai, every medicine on a prescription or claim carries a Dubai Drug Code issued by the health authority, and RxNorm is optional. Saudi Arabia uses the Australian ICD-10-AM and a billing system adapted from Australian procedure codes, so data from hospitals in the two countries cannot be pooled code for code. SNOMED International has around 50 member countries, and SNOMED CT is used in many more. In England, GP systems moved to SNOMED CT in 2018, and hospitals are required to use it too. Most countries bill and report using a national version of ICD-10, such as ICD-10-AM in Australia or ICD-10-CA in Canada. In England, procedures are coded with OPCS-4. The WHO’s ICD-11 came into effect in 2022 and is being adopted gradually. RxNorm is US-specific: the UK uses the Dictionary of medicines and devices (dm+d), and many European countries have their own drug databases. LOINC and UCUM are used internationally.
Lab: map it yourself
Explore how one idea is coded in several systems. Then map MENA Academic Hospital’s local lab codes to LOINC, see what survives when types of AF travel between systems, and build a small value set.
Part A: one idea, many codes
| System | Code | Display | Used for |
|---|---|---|---|
| EHR diagnosis picker | (local term) | AF (atrial fibrillation) | What the clinician clicks. A friendly interface term, mapped behind the scenes. |
| SNOMED CT | 49436004 | Atrial fibrillation (disorder) | Clinical meaning in the record: problem lists, decision support. |
| ICD-10-CM (US, also used in the UAE) | I48.91 | Unspecified atrial fibrillation | Billing and statistics in the US, and claims in Dubai and Abu Dhabi. |
| ICD-10 (WHO) | I48.9 | Atrial fibrillation and atrial flutter, unspecified | International statistics, and billing in many countries. Note that it no longer separates AF from flutter. |
| Research database standard (OMOP, Module 11) | 313217 | Atrial fibrillation | Research: one standard concept that every site maps to. |
None of these codes is "the" code for the idea. Each system answers a different question, and the record often holds several of them for the same fact.
Part B: map the lab's local codes to LOINC
MENA Academic Hospital's lab sends its own codes. Before the results can be shared, someone must map each one to LOINC. Choose the best match.
Part C: what survives the trip
The same four kinds of AF in SNOMED CT, in ICD-10-CM (the US version, also used in the UAE) and in the WHO's ICD-10.
| Clinical idea | SNOMED CT | ICD-10-CM (US, UAE) | ICD-10 (WHO) |
|---|---|---|---|
| Paroxysmal AF (comes and goes by itself) | 282825002 | I48.0 | I48.0 |
| Persistent AF (lasts more than a week) | 440059007 | I48.19 (or I48.11 if long-standing) | I48.1 |
| Permanent AF (accepted, no plan to restore rhythm) | 440028005 | I48.21 | I48.2 |
| AF, type not stated | 49436004 | I48.91 | I48.9 (also used for flutter) |
Part D: build a value set
A stroke-prevention alert needs every code that means "this patient has AF now". A search for AF and everything below it returned these concepts. Tick the ones that belong in the value set.
Mapping: where meaning leaks
Mapping links a code in one system to a code in another. It is everywhere: local lab codes to LOINC, SNOMED CT to ICD-10-CM for billing, source codes to OMOP standard concepts for research. Each map is built by people, usually with tools, and each has the same traps:
- Missing context. A local code may hide the specimen, timing or method. “CREU” and “CRE” look alike but measure different things.
- Different granularity. Going from fine to coarse loses detail, and going from coarse to fine needs information the source never had.
- No exact match. The mapper must choose the nearest code, and documents (or forgets) the difference.
- Drift. Terminologies release new versions on their own schedules: RxNorm weekly and monthly, SNOMED CT’s international edition monthly, LOINC twice a year, ICD-10-CM every October. A map that was right last year may now point at a retired code.
The fix is not one perfect map but a process: maps reviewed by people who know the clinical meaning, versions tracked, and counts checked before and after.
Who does this work in a hospital
Terminology work is a permanent job, shared between teams:
- Lab and interface analysts map lab codes to LOINC, with the lab’s medical director signing off.
- Pharmacy informatics maintains the drug database: each formulary item linked to its package codes and to the national drug vocabulary (in Dubai, the Dubai Drug Code; in the US, RxNorm).
- Health information management coders and clinical documentation integrity specialists turn documentation into billing codes.
- EHR analysts maintain the diagnosis picker, usually supplied by an interface terminology vendor, and its maps to SNOMED CT and ICD-10-CM.
- The research data team maintains maps into the research warehouse (Module 11).
Good organisations have a terminology governance group that decides who owns each map, applies and tests new releases, and handles change requests, such as “this new troponin test needs a code”.
Going deeper How drugs are coded in a US hospital
In US hospitals, prescribing and drug checking run on a commercial drug knowledge base, such as First Databank, Medi-Span or Multum, on top of which the pharmacy builds its formulary. A formulary item links to the National Drug Codes (NDC) of the packages it can be filled from: the barcode a nurse scans at the bedside is an NDC. RxNorm links all of these to the clinical drug (ingredient, strength and form) and the ingredient, and is used mainly to exchange drug data between systems and for research. Other countries have their own chains: in Dubai, the formulary item links to the Dubai Drug Code used on prescriptions and claims, and package barcodes are usually international GTINs; in the UK, dm+d.
Value sets: finding every code for one idea
Questions are rarely about one code. “Patients with diabetes” means dozens of SNOMED CT concepts and many ICD-10-CM codes. A value set is a published list of codes that together define one idea for one purpose. In the US, the Value Set Authority Center (VSAC) publishes the value sets used in national quality measures. Building your own means walking the hierarchy from a parent concept, then reviewing what comes back, because searches can pull in concepts you did not mean, such as “history of” or “family history of”. Part D of the lab lets you try this.
From the Failure Museum: the epidemic that was partly a code change
On 1 October 2015, US hospitals switched from ICD-9-CM to ICD-10-CM for diagnoses. The new system had far more codes and grouped some conditions differently. Researchers at the US Agency for Healthcare Research and Quality looked at hospital stays related to opioids, which were being tracked closely during the opioid crisis. They found that the trend shifted at the moment of the switch, because the new codes captured different groups of patients, not only because patients had changed.
Anyone who compared counts from before and after without accounting for the switch would have measured the coding system as well as the epidemic.
Lesson: a code is a measuring instrument. When the instrument changes, so do the numbers. Check for version changes in any time series built from codes, and map carefully across them.
Check your understanding
Answer every question, then check. Each answer comes with an explanation. Score 80% or more to mark the module complete. Your progress is saved only in this browser.
Sources
- SNOMED International. SNOMED CT Starter Guide.
- Regenstrief Institute. LOINC: Logical Observation Identifiers Names and Codes.
- Dubai Health Authority. NABIDH Policies and Standards: Clinical Data Coding and Terminology Standards (Dubai Drug Code, ICD-10-CM, CPT, HCPCS). 2022.
- US National Library of Medicine. RxNorm overview.
- Schadow G, McDonald CJ. The Unified Code for Units of Measure (UCUM).
- World Health Organization. International Classification of Diseases, 11th revision (ICD-11).
- Cimino JJ. Desiderata for controlled medical vocabularies in the twenty-first century. Methods Inf Med. 1998;37(4-5):394-403.
- Rosenbloom ST, Miller RA, Johnson KB, Elkin PL, Brown SH. Interface terminologies: facilitating direct entry of clinical data into electronic health record systems. J Am Med Inform Assoc. 2006;13(3):277-288.
- Heslin KC, Owens PL, Karaca Z, Barrett ML, Moore BJ, Elixhauser A. Trends in opioid-related inpatient stays shifted after the US transitioned to ICD-10-CM diagnosis coding in 2015. Med Care. 2017;55(11):918-923.
- US National Library of Medicine. Value Set Authority Center (VSAC).
- Regenstrief Institute. LOINC 14682-9: Creatinine [Moles/volume] in Serum or Plasma.
- IVD Industry Connectivity Consortium. LIVD: digital format for publication of LOINC to vendor IVD test results.