reatment for individuals diagnosed with substance abuse or substance dependence generally involves detoxification, rehabilitation, or a combination of both. When a patient is admitted specifically for these services, the substance abuse or dependence condition is reported as the principal diagnosis.
Detoxification
Detoxification refers to the active clinical management of withdrawal symptoms in patients who are physically dependent on alcohol or drugs. It is not limited to passive observation; rather, it includes structured medical supervision and therapeutic intervention.
Clinical management may include:
Comprehensive evaluation and ongoing monitoring
Observation for withdrawal complications
Nutritional supplementation such as thiamine and multivitamins
Pharmacologic therapy when indicated (e.g., methadone, long-acting barbiturates, benzodiazepines, or carbamazepine)

For alcohol dependence, detoxification typically lasts four to five days, although outpatient detox may be appropriate depending on withdrawal severity.
Detoxification for opioid or sedative/hypnotic dependence generally requires a longer duration—ranging from three weeks to several months—and may be provided in either a residential or outpatient setting based on clinical needs.
From a coding perspective, if the medical record clearly documents that detoxification services were provided, the appropriate detoxification-related code may be assigned—even if no medications were administered during the process.
Rehabilitation
Rehabilitation programs are structured treatment modalities designed to help patients achieve and maintain abstinence from alcohol or drugs. The primary objective is sustained behavioral change and long-term recovery.
Rehabilitation approaches may include:
Methadone maintenance therapy
Therapeutic residential community programs
Long-term outpatient substance-free treatment programs
For coding purposes, when a patient with documented drug dependence receives medication as part of detoxification or maintenance therapy (e.g., methadone maintenance for opioid dependence), the appropriate drug dependence diagnosis code should be assigned.
It is important to note that codes such as:
Z79.891 – Long-term (current) use of opiate analgesic, or
Z79.899 – Other long-term (current) drug therapy
should not be used in place of the substance dependence diagnosis when the medication is being administered for detoxification or maintenance treatment related to substance dependence.



