Skip to main content

Medication Code Systems

Introduction

Medication codes play a fundamental role in crafting prescriptions, medication orders, and formularies. EHRs use standardized codes to describe medications to remove ambiguity, ensure patient safety, and streamline billing and analytics.

In an ideal world, a universal standard of codes would be agreed upon to represent drugs. However, the reality is that there are multiple code systems, each with its unique characteristics and applications.

This guide is dedicated to discussing two of the most significant, non-proprietary code systems in U.S. healthcare: RXNorm and NDC.

  • RXNorm is an international standard endorsed by standards-compliant bodies such as the US Core, NIH, and CDC.
  • NDC (National Drug Code) is a U.S. specific system administered by the Food and Drug Administration (FDA)

While there are other proprietary drug databases with their proprietary code systems, they will not be explored in this guide.

RxNorm

RxNorm is the preferred code system of the US Core Medication Profile and the National Institutes of Health (NIH), as well as most FHIR profiles.

RXNorm is a hierarchical code system, that allows for different levels of specificity, depending on the application. The RXNorm vocabulary establishes standard names and identifiers for combinations of ingredients, strengths, and dose forms. This is the information doctors typically include when they write a prescription because they often can’t know the specific product that will be used to fill it.

Each level of the RxNorm hierarchy is called a "term type" (TTY), and each element is called a "concept". Each concept in has a unique numeric code, know as it's RxCUI. The RXNorm hierarchy has separate codes for brand name vs. generic drugs, drug name synonyms, as well as explicit dose form, strength, and packaging types.

The RxNAV browser is a useful tool to explore the RxNorm system.

The table below shows a the range of term types for the antidepressant Prozac:

TTYNameDescriptionExample ConceptRxCUI
INIngredientA compound or moiety that gives the drug its distinctive clinical properties. Ingredients generally use the United States Adopted Name (USAN).Fluoxetine4493
PINPrecise IngredientA specified form of the ingredient that may or may not be clinically active. Most precise ingredients are salt or isomer forms.Fluoxetine Hydrochloride227224
MINMultiple IngredientsTwo or more ingredients appearing together in a single drug preparation, created from SCDF. In rare cases when IN/PIN or PIN/PIN combinations of the same base ingredient exist, created from SCD.Fluoxetine / Olanzapine611247
SCDCSemantic Clinical Drug ComponentIngredient + StrengthFluoxetine 40 mg330341
SCDFSemantic Clinical Drug FormIngredient + Dose FormFLUoxetine Oral Capsule372231
SCDGSemantic Clinical Drug GroupIngredient + Dose Form GroupFluoxetine Oral Product1160836
SCDSemantic Clinical DrugIngredient + Strength + Dose FormFLUoxetine 40 MG Oral Capsule313989
BNBrand NameA proprietary name for a family of products containing a specific active ingredient.Prozac58827
SBDCSemantic Branded Drug ComponentIngredient + Strength + Brand Namefluoxetine 40 MG [PROzac]574512
SBDFSemantic Branded Drug FormIngredient + Dose Form + Brand NameFLUoxetine Oral Capsule [PROzac]93904
SBDGSemantic Branded Drug GroupBrand Name + Dose Form GroupProzac Pill1182487
SBDSemantic Branded DrugIngredient + Strength + Dose Form + Brand NameProzac 40 MG Oral Capsule261287
PSNPrescribable NameSynonym of another TTY, given for clarity and for display purposes in electronic prescribing applications. Only one PSN per concept.PROzac 40 MG Oral Capsule
SYSynonymSynonym of another TTY, given for clarity.fluoxetine 40 MG (as fluoxetine HCl 44.8 MG) Oral Capsule
DFDose FormSee Appendix 2 for a full list of Dose Forms.Oral Capsule316965
DFGDose Form GroupSee Appendix 3 for a full list of Dose Form Groups.Pill1151133

source: https://www.nlm.nih.gov/research/umls/rxnorm/docs/appendix5.html

NDC

National Drug Codes (NDCs) are product identifiers allocated by manufacturers and packagers of drugs in the U.S. These codes appear on medication labels and packages, and are commonly used in pharmacy inventory control, as well as dispensing and billing for drugs.

Unlike RXNorm, NDC operates as a flat code system and only refers to the "leaf nodes" of the RXNorm hierarchy. If a single manufacturer issues the same medication in packages of different sizes (like 25 tablets, 50 tablets, etc.), each size is assigned a unique NDC.

However, there are connections between the two code systems, as a drug product can have both NDC and RXNorm codes. Below is an example of the a CodeableConcept for Tylenol, with both NDC and RxNorm codes

{
text: 'Tylenol 325 MG Oral Tablet',
coding: [
{
system: 'http://hl7.org/fhir/sid/ndc',
code: '50580045850',
},
{
system: 'http://www.nlm.nih.gov/research/umls/rxnorm',
code: '209387',
},
],
};

Other Drug databases

While this guide focuses on RxNorm and NDC, there are a few other popular drug databases in commercial use:

First Databank (FDB)

First Databank (FDB) is a private company that provides drug databases covering various aspects of drug information, including drug interactions, contraindications, clinical decision support.

FDB is very popular in both hospital and retail pharmacy settings due to its extensive data, which support a variety of clinical and operational use cases. Its commercial nature means that it has extensive coverage, including many over-the-counter medications and nutritional products not included in other databases.

While access to the FDB MedKnowledge database requires a paid subscription, HL7 has created a placeholder code system to reference these codes.

National Drug Data File (NDB)

The NDB, also known as the National Drug File - Reference Terminology (NDF-RT), is maintained by the U.S. Department of Veterans Affairs. NDF-RT is typically used in decision support systems for medication therapy management, drug formulary checks, medication safety checks, and population-based analyses of drug effects.

NDB/NDF-RT is less popular compared to RxNorm and FDB. However, it is still widely used within the U.S. Department of Veterans Affairs, and by some EHR vendors and researchers, due to its comprehensive data on drug characteristics.

See Also