The primary purpose of the medical facility shall be the receiving, segregation, confinement, treatment, and care of males under the custody of the Department of Corrections and Rehabilitation or any agency thereof who are any of the following:

(a) Persons with mental health disorders.

(b) Persons with developmental disabilities.

(c) Persons who are addicted to the use of controlled substances.

(d) Persons who are suffering from any other chronic disease or condition.

(Amended by Stats. 2020, Ch. 370, Sec. 231. (SB 1371) Effective January 1, 2021.)