he care of the department of mental health until the latter department forwards an assessment and recommendation as to whether the child or adolescent may be appropriately placed in foster care or, if due to severe emotional disturbance, is more appropriate for group care; provided further, that the department, in consultation with the department of mental health, shall establish guidelines to ass