In a dual diagnosis program, an individual receives treatment for substance addiction and mental illness. Treatment differs for everyone but can include detoxification, therapy and medication, often in an inpatient or residential setting. Some people with a dual diagnosis may be able to complete rehab as an outpatient.