What a code set is
Under the Health Insurance Portability and Accountability Act (HIPAA) rules, a code set is any set of codes used to encode data elements, such as tables of terms, medical concepts, diagnostic codes or procedure codes. A code set includes the codes and their descriptors, the text that defines each code.
An analyst meets two kinds. Claims carry the code sets HIPAA adopts for transactions: the International Classification of Diseases, Tenth Revision, Clinical Modification (ICD-10-CM) for diagnoses, the ICD-10 Procedure Coding System (ICD-10-PCS) for inpatient procedures, and the Healthcare Common Procedure Coding System (HCPCS) for most other services and items. Electronic health records (EHRs) also use clinical terminologies: SNOMED Clinical Terms (SNOMED CT), Logical Observation Identifiers Names and Codes (LOINC) and RxNorm.
To pick the right one, ask what is being coded (a diagnosis, a procedure, a supply, a test or a drug), in which setting, and in which data source.
A classification and a clinical terminology do different jobs
Classification: ICD-10-CM and ICD-10-PCS
- ICD-10-CM is a morbidity classification for classifying diagnoses and reasons for visits in all health care settings. It is based on ICD-10, the statistical classification of disease published by the World Health Organization (WHO).
- ICD-10-PCS is a procedure classification for procedures performed in hospital inpatient settings. Each of its seven characters is an axis of classification.
- ICD-10-CM's Tabular List is a structured list of codes in chapters by body system or condition, and its three-character categories are subdivided for greater specificity.
- Inpatient acute care claims coded in ICD-10-CM and ICD-10-PCS group to a Medicare Severity Diagnosis-Related Group (MS-DRG), which Medicare uses for payment.
Clinical terminology: SNOMED CT
- SNOMED CT is a general clinical reference terminology. It represents clinical concepts across many domains: findings (conditions, diagnoses, symptoms and signs), procedures, observations, and some laboratory tests, drugs and devices.
- It contains more than 357,000 health care concepts, each with a unique meaning and a formal logic-based definition, organized into hierarchies. Its full list holds more than 957,000 descriptions of those concepts, and about 1.37 million semantic relationships link them.
- Clinicians use different terms for the same thing, such as heart attack, myocardial infarction and MI, which a computer would read as different. SNOMED CT lets them keep their terms and still exchange clinical data consistently.
- It maps to ICD-10-CM. Its core content includes an ICD-10-CM mapping, and the National Library of Medicine (NLM) distributes a SNOMED CT to ICD-10-CM map.
ICD-10-CM codes diagnoses in every setting
ICD-10-CM codes diagnoses, symptoms and other reasons for an encounter. Every provider and supplier in U.S. health care settings uses it, and its diagnosis codes go on all inpatient and outpatient claims. The Centers for Disease Control and Prevention (CDC) develops and maintains it through its National Center for Health Statistics (NCHS).
The Centers for Medicare & Medicaid Services (CMS) and NCHS publish the official coding guidelines. Four organizations, the Cooperating Parties, approve them: the American Hospital Association (AHA), the American Health Information Management Association (AHIMA), CMS and NCHS. HIPAA requires adherence to the guidelines whenever ICD-10-CM codes are assigned.
The fiscal year (FY) 2027 code files and guidelines apply to discharges and encounters from 1 October 2026 to 30 September 2027. The U.S. moved from ICD-9 to ICD-10 for diagnoses and inpatient procedures on 1 October 2015, and ICD-10 applies to every entity HIPAA covers, not only to providers who bill Medicare or Medicaid.
How an ICD-10-CM code is built
Categories
Every category has three characters. A category with no further subdivision is itself a code.
Subcategories
Subcategories have four or five characters. Each level of subdivision after a category is a subcategory.
Codes
A code has three to seven characters, and each character may be a letter or a number. Only codes may be reported, never categories or subcategories. A code cut short of its full number of characters is invalid.
Seventh characters
Some categories require a seventh character, which must always sit in the seventh position. A code that needs one is invalid without it.
The placeholder X
X holds a place for future expansion, as in the poisoning, adverse effect and underdosing categories T36-T50, and fills empty positions before a seventh character. Where a placeholder exists, the code is valid only with the X.
ICD-10-PCS codes inpatient procedures
CMS develops and maintains ICD-10-PCS, and HIPAA adopts its codes for hospital inpatient settings. Facilities use it only for inpatient procedures. Physicians do not use it to report their own services, not even their visits to inpatients.
Every ICD-10-PCS code has exactly seven characters, and each character is an axis that specifies one kind of information about the procedure. Each position can take one of 34 values: the digits 0 to 9 and the letters except I and O, which are too easily confused with 1 and 0. A value's meaning depends on its axis and on the values before it.
In the Medical and Surgical section, the seven characters are section, body system, root operation, body part, approach, device and qualifier. The guidelines' own example, 0JHT3VZ, is an insertion in the subcutaneous tissue and fascia of the trunk, by a percutaneous approach, with an infusion pump and no qualifier. All seven characters must be specified for a code to be valid.
The 2027 ICD-10-PCS files apply to discharges from 1 October 2026 to 31 March 2027. ICD-10-PCS can change on 1 April: CMS posted April 1 updates for FY 2026, with files for discharges from 1 April to 30 September 2026.
HCPCS has two levels with different owners
HCPCS is a standard national code set, specified so that claims are processed in an orderly and consistent way. Outpatient providers such as physicians, hospital outpatient departments and ambulatory surgical centers report their services in HCPCS, and they put ICD-10-CM diagnosis codes on the same claims, never ICD-10-PCS procedure codes.
HCPCS Level I and Level II
Level I: Current Procedural Terminology (CPT)
- The American Medical Association (AMA) develops, copyrights and maintains CPT and its modifiers, and republishes and updates the codes every year.
- CPT identifies medical services and procedures furnished mainly by physicians and other health care professionals.
- CMS describes CPT codes as five numeric digits.
- Physicians, hospital outpatient departments, ambulatory surgical centers and suppliers report CPT codes, including for physicians' inpatient visits.
Level II: CMS's national codes
- CMS maintains Level II, including additions, revisions and deletions, under authority the Secretary of Health and Human Services delegated in 42 CFR 414.40(a).
- Level II identifies products, supplies and services that CPT does not include, such as ambulance services, drugs, devices, and durable medical equipment, prosthetics, orthotics and supplies (DMEPOS) used outside a physician's office.
- A Level II code is one letter followed by four digits.
- Anyone may ask CMS to change the Level II code set: drug and biological applications are taken quarterly, others twice a year.
- Current Dental Terminology (CDT) is a subset of Level II for dental procedures. The American Dental Association (ADA), not CMS, develops, copyrights and maintains it.
CPT's three categories
Category I
Descriptive terms and codes for reporting medical services and procedures performed by physicians. Each code corresponds to a single procedure or service.
Category II
Codes for performance measurement, developed through the CPT Editorial Panel, that encode the clinical actions in a measure's numerator. Each is five alphanumeric characters ending in the letter F. Electronic clinical quality measures (eCQMs) do not use them.
Category III
Temporary alphanumeric codes for new and developing technology, procedures and services. They support data collection, assessment and in some cases payment for services that do not yet meet the criteria for a Category I code.
Three clinical terminologies, their owners and their uses
The United States Core Data for Interoperability (USCDI) is a standard set of data classes and data elements for nationwide exchange of health information. Version 7, from July 2026, lists the applicable vocabulary standard for many of its data elements, so it shows where these terminologies appear in shared EHR data.
SNOMED CT: clinical findings and more
SNOMED International owns and maintains SNOMED CT. NLM is the U.S. release center and distributes the U.S. Edition, the only edition available for use in the U.S. U.S. EHR standards use it for purposes that include problem lists and public health reporting. In USCDI version 7, SNOMED CT or ICD-10-CM codes a problem; SNOMED CT also codes lab result values, specimen types and allergic reactions, and it is one of the standards for procedures.
LOINC: tests and observations
The Regenstrief Institute produces LOINC, which codes laboratory tests and clinical observations. USCDI version 7 names LOINC version 2.82 for a laboratory test and for laboratory, imaging and other clinical test orders. A test's result value is a separate element, coded in SNOMED CT.
RxNorm: drugs
NLM produces RxNorm. It gives normalized names and unique identifiers to clinical drugs, generic and branded, so that systems using different drug names can exchange drug information without ambiguity. A generic drug's normalized name gives the ingredient, strength and dose form, in that order. RxNorm also carries National Drug Codes (NDCs) from its sources, normalized to the 11-digit HIPAA format. USCDI version 7 names RxNorm for medications, medication orders and medication allergies, with NDC as an option for medications.
HIPAA names the code sets for transactions
When a covered entity conducts a HIPAA standard transaction, such as a claim, it must use the medical data code sets that 45 CFR 162.1002 adopts, as the implementation specification directs, and the codes must be valid at the time the care was furnished. Each code set is valid within the dates its maintaining organization sets. For ICD-10-CM and ICD-10-PCS, that means the code files in force on the date of discharge or encounter.
SNOMED CT, LOINC and RxNorm are not among the code sets adopted for 1 October 2015 onward.
The HIPAA medical data code sets from 1 October 2015
ICD-10-CM
Diseases, injuries, impairments, other health problems and their manifestations, and the causes of injury, disease, impairment or other health problems.
ICD-10-PCS
Procedures or other actions taken for diseases, injuries and impairments on hospital inpatients, reported by hospitals: prevention, diagnosis, treatment and management.
HCPCS and CPT together
Physician services and other health care services, including physical and occupational therapy, radiologic procedures, clinical laboratory tests, other diagnostic procedures, hearing and vision services, and transportation such as ambulance.
HCPCS
All other substances, equipment, supplies or items used in health care services, except drugs and biologics. Examples are medical supplies, orthotic and prosthetic devices, and durable medical equipment.
NDC
Drugs and biologics reported by retail pharmacies. The NDC is a three-segment number that serves as the Food and Drug Administration's (FDA's) identifier for drugs.
Code on Dental Procedures and Nomenclature
Dental services, in the code set the ADA maintains and distributes. This is the HIPAA rule's name for CDT.
Worked example
Matching five data requests to the right code set
In November 2026, a hospital's analytics team gets five requests: count inpatient hip procedures on discharges since 1 October 2026; count the durable medical equipment its outpatient supply store billed; find patients whose EHR problem list shows diabetes; compare a blood test across two clinics that name it differently; and list every patient with an active order for a given drug, whatever brand or label the order uses.
- 1
Inpatient procedures
ICD-10-PCS codes procedures on hospital inpatients. Discharges from 1 October 2026 use the 2027 ICD-10-PCS files, which cover discharges to 31 March 2027.
- 2
Durable medical equipment
Durable medical equipment used outside a physician's office is one of the items CPT does not include. It is coded in HCPCS Level II, which CMS maintains.
- 3
Problem list entries
In the EHR, a problem is coded in SNOMED CT or ICD-10-CM, the two standards USCDI version 7 names. If the list uses SNOMED CT and the request needs ICD-10-CM, the team can use the SNOMED CT to ICD-10-CM map.
- 4
The blood test
LOINC codes laboratory tests, so matching each clinic's local test to its LOINC code lets the team compare them.
- 5
The drug orders
RxNorm gives each clinical drug a normalized name and identifier and links branded and generic names, so the team can group orders that name the same drug differently.
Result: The first two requests use claims or billing data, coded in ICD-10-PCS and HCPCS Level II. The last three use clinical data in the EHR, coded in SNOMED CT or ICD-10-CM, in LOINC and in RxNorm.
Try it
Claims or the EHR?
A health plan's analyst needs two things for the same group of members: how many clinical laboratory tests were billed on professional claims, and the coded result of each test as the clinics recorded it. Which code sets will the analyst work with in each source?
Hint: Check what HIPAA names for clinical laboratory tests on claims, and what USCDI names for a laboratory test and its result.
On professional claims, clinical laboratory tests are among the services coded in the combination of HCPCS and CPT that 45 CFR 162.1002 adopts, so the analyst counts HCPCS and CPT codes. LOINC is not a HIPAA code set. In shared EHR data, USCDI version 7 codes a laboratory test in LOINC and a coded result value in SNOMED CT, so the analyst reads LOINC for the test and SNOMED CT for the result.