Once detox has completed, we recommend every patient enter a 30,60 or 90-day addiction treatment program. Intensive inpatient rehab is necessary for success because the detox phase only alleviates the physical ailments of heroin addiction. Without further treatment, the detox phase is a waste of time if the underlying reasons for using heroin are not treated. The goal of residential inpatient is to treat the root cause of heroin addiction through education and therapy. Healing the mental and spiritual aspects of the person.