(2) Notwithstanding section 2637, if there is a compelling need for medical records or information to determine whether child abuse or neglect has occurred or to take action to protect a child where there may be a substantial risk of harm, the department shall give access to a family independence agency caseworker or administrator directly involved in the investigation to the child's medical recor