The provisions of this article do not apply to hospitals owned by the Department of Behavioral Health and Developmental Disabilities or operated by the Office of Mental Health or by specialized hospitals licensed exclusively for treatment of alcohol or drug abuse and which are under contract with the Office of Substance Use Services, a component office of the Department of Behavioral Health and Developmental Disabilities.