A toddler was pronounced dead by doctors, but relatives at her funeral later realized she was actually alive, according to reports. Camila Roxana Martinez Mendoza, 3, was taken to Salinas de Hidalgo Basic Community Hospital in the central Mexican state of San Luis Potosí to be treated for dehydration on Aug. 17, according to Fox News. He was released from the hospital but soon became unwell again, Fox News reported. Her parents took her back to the hospital, where her family claimed the doctors were negligent. The family, in a lawsuit seen by local newspaper El Universal San Luis Potosí, said hospital staff were slow to give Mendoza an IV and oxygen. Doctors later pronounced the child dead, Fox News reported, citing a report by El Universal San Luis Potosí. “She was still hugging me. They took her and said, ‘You have to let her rest in peace,’” her mother, Mary Jane Peralta, told the newspaper, according to Fox News. At Mendoza’s funeral on August 18, Fox News reported that Peralta noticed condensation on her daughter’s glass casket. When she told mourners her daughter was still breathing, they told her the grief was causing her to hallucinate, according to Fox News. Mendoza’s grandmother then noticed that the three-year-old’s eyes were moving, the media outlet reported. Fox News reported that he had a heart rate of 97 beats per minute. The little girl was rushed to a hospital by ambulance, where reports say her heart rate dropped rapidly and she was later pronounced dead a second time. According to Fox News, the first cause of death was listed as dehydration and the second was cerebral edema – swelling of the brain. Peralta said she doesn’t hold a “grudge” against the doctors and nurses, but the lawsuit is to make sure such an incident doesn’t happen again, according to Fox News. Insider reached out to the Salinas de Hidalgo Basic Community Hospital and the San Luis Potosí Attorney General’s Office for comment, but did not immediately receive a response.