Any person in charge of a hospital or similar institution, or any physician or licensed health care professional treating a child may detain that child without the consent of the parents, caregiver, or legal custodian, whether or not additional medical treatment is required, if the circumstances are such, or if the condition of the child is such that returning the child to the care or custody of the parents, caregiver, or legal custodian presents an imminent danger to the child's life or physical or mental health. Any such person detaining a child shall immediately notify the department, whereupon the department shall immediately begin a child protective investigation in accordance with the provisions of this chapter and shall make every reasonable effort to immediately notify the parents or legal custodian that such child has been detained. If the department determines, according to the criteria set forth in this chapter, that the child should be detained longer than 24 hours, it shall petition the court through the attorney representing the Department of Children and Families as quickly as possible and not to exceed 24 hours, for an order authorizing such custody in the same manner as if the child were placed in a shelter. The department shall attempt to avoid the placement of a child in an institution whenever possible.
Fla. Stat. § 39.395