JEFFERSON CITY, Mo. (AP) — Missouri’s health department is investigating whether a hospital violated federal health care rules in denying a woman an emergency abortion, an agency spokeswoman confirmed Monday.

Missouri Health and Senior Services spokeswoman Lisa Cox in a statement said, the agency launched an investigation into Freeman Health System’s treatment of Mylissa Farmer.

Farmer, who is from Joplin, told The Associated Press that she went to Freeman’s local emergency room when her water broke months early on Aug. 2. She said tests showed that she had lost all of her amniotic fluid because of a pregnancy complication and doctors told her the fetus was not expected to survive.

Doctors also told Farmer that “awaiting a medical emergency may put her at further risk for maternal mortality” or the removal of her uterus, medical records show. But because her fetus still had a heartbeat and her condition wasn’t considered a life-threatening medical emergency at that moment, they couldn’t terminate the pregnancy in Missouri, they told her. She eventually got an abortion in Illinois.

According to the AP, records from that visit say doctors told Farmer that the law supersedes their medical judgment and “contrary to the most appropriate management based (on) my medical opinion, due to the legal language of MO law, we are unable to offer induction of labor at this time.”

“They were telling me to basically get out of the state to get the care that I needed,” the 41-year-old told the AP.

Missouri’s abortion ban includes exceptions for medical emergencies, although doctors and hospitals have said they’re unsure exactly what that covers.

Hospital spokeswoman Liz Syer told the Associated Press, it’s their practice not to comment on patient care. We have reached out to the hospital for comment on the investigation and are waiting on a response.

Missouri’s health department investigation centers on a federal law requiring medical facilities to determine whether a person seeking treatment may be in labor or whether they face an emergency health situation — or one that could develop into an emergency — and to provide treatment.

In July, soon after the Supreme Court struck down Roe v. Wade, U.S. Health and Human Services Secretary Xavier Becerra wrote in an email to health care providers that the federal EMTALA statute “protects your clinical judgment and the action that you take to provide stabilizing medical treatment to your pregnant patients, regardless of the restrictions in the state where you practice.”

Becerra wrote that a hospital violating any provision of EMTALA “may be subject to termination of its Medicare provider agreement and/or the imposition of civil monetary penalties. Civil monetary penalties may also be imposed against individual physicians for EMTALA violations. Additionally, physicians may also be subject to exclusion from the Medicare and State health care programs.”