The doctor checked the girl's body after she underwent a medical examination