Services for the detection, diagnosis and treatment of mental illness shall be provided to those persons in the care and custody of the New York City Department of Correction. The New York City Department of Health or a contracted service provider, and the Department of Correction, with the approval of the Department of Mental Health, Mental Retardation and Alcoholism Services shall design and implement a mental health program to provide:
(a) crisis intervention and the management of acute psychiatric episodes;
(b) suicide prevention;
(c) stabilization of mental illness and the alleviation of psychological deterioration in the prison setting; and
(d) elective therapy services and preventive treatment where resources permit.