N.Y. Comp. Codes R. & Regs. tit. 18, § 431.17
(a) Social services districts shall retain responsibility for the care and custody of children in foster care when such children are placed in facilities operated or supervised by the Office of Mental Health or the Office for People With Developmental Disabilities under the following circumstances:
(b) A social services official shall, when the circumstances set forth in subdivision (a) of this section are not present, assess the capabilities of the parents or previous care taker of the child to accept the return of the care and custody of the child. The assessment shall be conducted in situations, including but not limited to, where:
(2) the child is expected to return to foster care after the child is discharged from a facility which is operated or supervised by the Office of Mental Health or the Office for People With Developmental Disabilities.
The assessment shall be entered in the child's uniform case record. After performing the assessment, the social services district shall determine whether it is in the best interest of the child to return the child to the care and custody of his or her parents or previous caretaker. Based upon such determination, the social services district shall either retain the care and custody of the child or shall return the child to the care and custody of his or her parents or previous caretaker.
(c) Prior to returning the care and custody of a child who is in a facility operated or supervised by the Office of Mental Health or Office for People With Developmental Disabilities to the child's parents or previous caretaker, a social services official shall ensure that: