2027 ICD-10-CM Diagnosis Code T40.0X5AAdverse effect of opium, initial encounter

ICD-10-CM Codes›S00–T88›T36-T50›T40

ICD-10-CM T40.0X5A
CMSSource: CMS FY 2027 ICD-10-CM dataset · Effective Oct 1, 2026 – Sep 30, 2027

T40.0X5A is a billable ICD-10-CM diagnosis code for adverse effect of opium, initial encounter. The 7th character A marks it as an initial encounter code, used while the patient is receiving active treatment. It is valid on HIPAA claims for fiscal year 2027 (October 1, 2026 through September 30, 2027) and groups to MS-DRG 791, 793, 917 through 918. The code is not accepted as a principal diagnosis by the Medicare Code Editor. Coders also document this condition as opium alkaloid adverse reaction. In AHRQ's Clinical Classifications Software (CCSR), this diagnosis falls under Adverse effects of drugs and medicaments, initial encounter; and Opioid-related disorders.

Code Identity

ICD-10-CM Code
T40.0X5A
Billable Status
Yes — Valid for Submission
Code Describes
Adverse effect of opium, initial encounter
Short Description
Adverse effect of opium, initial encounter
Same as the full description in the CMS dataset.
Parent Code
Adverse effect of opium

Code Classification

ChapterS00–T88Injury, poisoning and certain other consequences of external causes
SectionT36-T50Poisoning by, adverse effect of and underdosing of drugs, medicaments and biological substances
CategoryT40Poisoning by, adverse effect of and underdosing of narcotics and psychodysleptics [hallucinogens]
This CodeT40.0X5AAdverse effect of opium, initial encounter

Code EditsBilling

Medicare Code Editor checks that affect claim validity for T40.0X5A.

There are selected codes that describe a circumstance which influences an individual's health status but not a current illness or injury, or codes that are not specific manifestations but may be due to an underlying cause. These codes are considered unacceptable as a principal diagnosis.

Approximate SynonymsGuidance

Alternate terms and clinical phrases that map to this code.

  • Opium alkaloid adverse reaction
  • Tremor opiophagorum

Coding GuidelinesGuidance

When coding an adverse effect of a drug that has been correctly prescribed and properly administered, assign the appropriate code for the nature of the adverse effect followed by the appropriate code for the adverse effect of the drug.

The appropriate 7th character is to be added to each code from block Poisoning by, adverse effect of and underdosing of narcotics and psychodysleptics [hallucinogens] (T40). Use the following options for the applicable episode of care:

  • A - initial encounter
  • D - subsequent encounter
  • S - sequela

Source: ICD-10-CM Official Guidelines for Coding and Reporting, FY 2027, published by CMS and the National Center for Health Statistics.

Instructional NotesGuidance

Instructions from the official ICD-10-CM Tabular List that apply to T40.0X5A: its own notes plus those printed at T40, block T36-T50, and Chapter 19. A note printed at a category, block or chapter applies to every code under it.

Includes

Further defines, or gives examples of, the content of the category.

From Block T36-T50 Poisoning by, adverse effect of and underdosing of drugs, medicaments and biological substances applies to 3,186 codes
  • adverse effect of correct substance properly administered
  • poisoning by overdose of substance
  • poisoning by wrong substance given or taken in error
  • underdosing by (inadvertently) (deliberately) taking less substance than prescribed or instructed

Excludes1

Not coded here: the excluded code is never reported together with this one, unless the two conditions are unrelated.

From Block T36-T50 Poisoning by, adverse effect of and underdosing of drugs, medicaments and biological substances applies to 3,186 codes
  • toxic reaction to local anesthesia in pregnancy (O29.3-)

Excludes2

Not included here: the excluded condition is not part of this code, but a patient may have both, so both codes may be reported.

From T40 Poisoning by, adverse effect of and underdosing of narcotics and psychodysleptics [hallucinogens] applies to 258 codes
  • drug dependence and related mental and behavioral disorders due to psychoactive substance use (F10.-F19.-)
From Block T36-T50 Poisoning by, adverse effect of and underdosing of drugs, medicaments and biological substances applies to 3,186 codes
  • abuse and dependence of psychoactive substances (F10-F19)
  • abuse of non-dependence-producing substances (F55.-)
  • immunodeficiency due to drugs (D84.821)
  • drug reaction and poisoning affecting newborn (P00-P96)
  • pathological drug intoxication (inebriation) (F10-F19)
From Chapter 19 (S00-T88) Injury, poisoning and certain other consequences of external causes applies to 41,187 codes

Code First

The underlying condition named in the note is sequenced before this code.

From Block T36-T50 Poisoning by, adverse effect of and underdosing of drugs, medicaments and biological substances applies to 3,186 codes
  • for adverse effects, the nature of the adverse effect, such as:
  • adverse effect NOS (T88.7)
  • aspirin gastritis (K29.-)
  • blood disorders (D56-D76)
  • contact dermatitis (L23-L25)
  • dermatitis due to substances taken internally (L27.-)
  • nephropathy (N14.0-N14.2)

Use Additional Code

Add a second code, after this one, to fully describe the condition.

From Block T36-T50 Poisoning by, adverse effect of and underdosing of drugs, medicaments and biological substances applies to 3,186 codes
  • code(s) to specify:
  • manifestations of poisoning
  • underdosing or failure in dosage during medical and surgical care (Y63.6, Y63.8-Y63.9)
  • underdosing of medication regimen (Z91.12-, Z91.13-)
From Chapter 19 (S00-T88) Injury, poisoning and certain other consequences of external causes applies to 41,187 codes
  • code to identify any retained foreign body, if applicable (Z18.-)

Notes

General instructions on how these codes are used.

From Block T36-T50 Poisoning by, adverse effect of and underdosing of drugs, medicaments and biological substances applies to 3,186 codes
  • The drug giving rise to the adverse effect should be identified by use of codes from categories T36-T50 with fifth or sixth character 5.
From Chapter 19 (S00-T88) Injury, poisoning and certain other consequences of external causes applies to 41,187 codes
  • Use secondary code(s) from Chapter 20, External causes of morbidity, to indicate cause of injury. Codes within the T section that include the external cause do not require an additional external cause code
  • The chapter uses the S-section for coding different types of injuries related to single body regions and the T-section to cover injuries to unspecified body regions as well as poisoning and certain other consequences of external causes.

7th Character

Every code in the category takes a 7th character from the listed values, with the placeholder X filling any empty positions before it.

From T40 Poisoning by, adverse effect of and underdosing of narcotics and psychodysleptics [hallucinogens] applies to 258 codes
  • The appropriate 7th character is to be added to each code from category T40
  • Ainitial encounter this code
  • Dsubsequent encounter
  • Ssequela

Source: CMS ICD-10-CM Tabular List. How to read instructional notes.

Referenced in Other NotesGuidance

Instructional notes printed at other codes that name T40.0X5A, its category, or a range that includes it.

Excludes1 1

These codes carry an Excludes1 note naming T40.0X5A: they are not reported together with it, unless the two conditions are unrelated.

  • T41 Poisoning by, adverse effect of and underdosing of anesthetics and therapeutic gases
    opioids (T40.0-T40.2-) names T40.0-T40.2, which includes this code

Excludes2 1

These codes carry an Excludes2 note naming T40.0X5A: its condition is not part of those codes, and both may be reported when the patient has both.

  • F11.2 Opioid dependence
    opioid poisoning (T40.0-T40.2-) names T40.0-T40.2, which includes this code

Clinical ClassificationClinical

AHRQ’s CCSR groups this code into broader clinical categories.

CCSR INJ028
Adverse effects of drugs and medicaments, initial encounter
Default principal diagnosis: inpatient No · outpatient Yes
CCSR MBD018
Opioid-related disorders
Default principal diagnosis: inpatient No · outpatient No

Table of Drugs and ChemicalsClinical

Substances in the Table of Drugs and Chemicals that reference this code family. Always confirm in the Tabular List before coding.

SubstanceAccidentalSelf-harmAssaultUndeter­minedAdverse
Effect
Under­dosing
LaudanumT40.0X1T40.0X2T40.0X3T40.0X4T40.0X5T40.0X6
Opium alkaloids (total)T40.0X1T40.0X2T40.0X3T40.0X4T40.0X5T40.0X6
Opium alkaloids (total)::standardized powderedT40.0X1T40.0X2T40.0X3T40.0X4T40.0X5T40.0X6
Opium alkaloids (total)::tincture (camphorated)T40.0X1T40.0X2T40.0X3T40.0X4T40.0X5T40.0X6
PantoponT40.0X1T40.0X2T40.0X3T40.0X4T40.0X5T40.0X6
PapaveretumT40.0X1T40.0X2T40.0X3T40.0X4T40.0X5T40.0X6
ParegoricT40.0X1T40.0X2T40.0X3T40.0X4T40.0X5T40.0X6

Patient EducationClinical

Drug Reactions

Most of the time, medicines make our lives better. They reduce aches and pains, fight infections, and control problems such as high blood pressure or diabetes. But medicines can also cause unwanted reactions, such as drug interactions, side effects, and allergies.

The full article covers:

  • What is a drug interaction?
  • What are side effects?
  • What are drug allergies?
  • How can I stay safe when taking medicines?

Read the full article at MedlinePlus

Courtesy of MedlinePlus, a service of the U.S. National Library of Medicine.

Convert T40.0X5A to ICD-9-CMHistory

The closest ICD-9-CM equivalents under the General Equivalence Mappings.

ICD-9-CM
995.29 Adv eff med/biol NEC/NOS
ApproximateCombination The match is approximate, and more than one code can be needed to describe the source diagnosis. Confirm with contextual judgment.
ICD-9-CM
E935.0 Adv eff heroin
ApproximateCombination The match is approximate, and more than one code can be needed to describe the source diagnosis. Confirm with contextual judgment.
ICD-9-CM
E935.2 Adv eff opiates
ApproximateCombination The match is approximate, and more than one code can be needed to describe the source diagnosis. Confirm with contextual judgment.

Code HistoryHistory

FY 2016AddedAdded to the ICD-10-CM code setEffective October 1, 2015, the first year of ICD-10-CM.
FY 2017–2026No changes
FY 2027CurrentCurrent code set, no changesEffective October 1, 2026 through September 30, 2027.

Questions About T40.0X5AOverview

What is the ICD-10 code for adverse effect of opium, initial encounter?

The ICD-10-CM code for adverse effect of opium, initial encounter is T40.0X5A (sometimes written as T400X5A). It is billable on HIPAA-covered claims from October 1, 2026 through September 30, 2027.

Is T40.0X5A (Adverse effect of opium) a billable code?

Yes. This is a billable ICD-10-CM code, specific enough to report adverse effect of opium, initial encounter on HIPAA-covered claims from October 1, 2026 through September 30, 2027.

What does the 7th character A in T40.0X5A mean?

The final character A marks the initial encounter: use it while the patient is receiving active treatment for adverse effect of opium, such as an emergency visit or first evaluation.

What MS-DRG does T40.0X5A group to?

On inpatient claims, adverse effect of opium, initial encounter maps to MS-DRG 793, 791, 918, 917, with relative weights from 0.8716 to 4.2192 depending on complications. Higher weights mean higher Medicare reimbursement.

Can T40.0X5A be a principal diagnosis?

No. The Medicare Code Editor rejects this code as a principal diagnosis because adverse effect of opium, initial encounter describes a circumstance that influences health status rather than a current illness. Report it as a secondary diagnosis.