The conditions that the court may impose upon release, if necessary and appropriate, include, the following:
(1) That the defendant take medication as prescribed by doctors in the department or in a regional or community mental health facility, or by some other doctor whose care the defendant is in;(2) That the defendant submit to treatment and accept care from a duly authorized outpatient facility such as a regional or community mental health facility;(3) That the defendant submit to mental or medical evaluation or testing as prescribed by the department, by a regional or community mental health facility, or by other appropriate person or facility;(4) That the defendant submit to periodic or random drug testing designed to ensure that he is taking any prescribed drugs and avoiding any prescribed drugs including alcohol;(5) That the defendant avoid specified activities, persons, or places that may be detrimental to his condition;(6) Any other appropriate condition that is necessary to prevent the defendant from posing a real and present threat of substantial harm to himself or to others while he is at large.Ala. Code § 15-16-68 (1975)
Acts 1988, No. 88-581, p. 906, §9.