The Department of Health and Social Services and Department of Services for Children, Youth and Their Families may determine the size and accommodations required for any section established by the respective Departments pursuant to § 5303 of this title; the medical treatment, training and education of patients or persons admitted to such sections; and any and all matters or programs related to the study, comfort, care and treatment of each patient or persons. The Department of Health and Social Services and Department of Services for Children, Youth and Their Families, in making any of the foregoing determinations, may call upon and receive the cooperation, advice and assistance of any other state department, institution, commission or agency performing education, health or welfare functions.