When any person confined in an adult correctional institution under the control of the commissioner of corrections is alleged to be a person who is mentally ill, the director of psychological services, or warden or other person in charge of the institution shall cause the person to be examined by a licensed physician especially qualified in the diagnosis of mental illness, or, if none is available