ferred by or discharged from the care of the department of mental health until the department of mental health forwards an assessment and recommendation as to whether the child or adolescent may be appropriately placed in foster care or if such child or adolescent is more appropriate for congregate care placement; provided further, that the department, in consultation with the department of mental