. . . . "the amount appropriated to other departments within the executive office of health and human services; provided further, that the department shall not refer or discharge a child or adolescent to the custody or care of the department of children and families until the department of mental health forwards its assessment and recommendation as to whether the child or adolescent is appropriate for fost" .