(1) The Department of Corrections shall have supervisory and protective care, custody, and control of the inmates, buildings, grounds, property, and all other matters pertaining to the following facilities and programs for the imprisonment, correction, and rehabilitation of adult offenders:
(a) Department of Corrections adult correctional institutions;
(b) Department of Corrections youthful offender institutions;
(c) Department of Corrections Mental Health Treatment Facility;
(d) Department of Corrections Probation and Restitution Center;
(e) Department of Corrections community correctional centers; and
(f) Department of Corrections vocational centers.
(2) In establishing, operating, and utilizing these facilities, the department shall attempt, whenever possible, to avoid the placement of nondangerous offenders who have potential for rehabilitation with repeat offenders or dangerous offenders. Medical, mental, and psychological problems shall be diagnosed and treated whenever possible. The Department of Children and Family Services and the Agency for Persons with Disabilities shall cooperate to ensure the delivery of services to persons under the custody or supervision of the department. When it is the intent of the department to transfer a mentally ill or retarded prisoner to the Department of Children and Family Services or the Agency for Persons with Disabilities, an involuntary commitment hearing shall be held according to the provisions of chapter 393 or chapter 394.
(3) There shall be other correctional facilities, including detention facilities of varying levels of security, work-release facilities, and community correctional facilities, halfway houses, and other approved community residential and nonresidential facilities and programs; however, no adult correctional facility may be established by changing the use and purpose of any mental health facility or mental health institution under the jurisdiction of any state agency or department without authorization in the General Appropriation Act or other approval by the Legislature. Any community residential facility may be deemed a part of the state correctional system for purposes of maintaining custody of offenders, and for this purpose the department may contract for and purchase the services of such facilities.
(4) Nothing contained in chapter 287 shall be construed as requiring competitive bids for health services involving examination, diagnosis, or treatment.