(CNN) A group of Texas abortion providers and abortion rights advocates are suing state officials after Texas opted to include abortions among nonessential surgical procedures that must be deferred or canceled to focus on the coronavirus pandemic.

On Monday, Texas Attorney General Ken Paxton confirmed that "any type of abortion that is not medically necessary to preserve the life or health of the mother" was included in Republican Texas Gov. Greg Abbott's order that health care providers "postpone all surgeries and procedures that are not immediately medically necessary" to preserve a patient's life or condition.

Paxton noted that violating the order, which lasts until April 21, could result in fines of up to $1,000 or 180 days imprisonment.

In a lawsuit filed Wednesday against Abbott, Paxton and other state officials by local providers, as well as Planned Parenthood and the Center for Reproductive Rights, the groups called on a federal judge to block the restriction on abortion. They argued that it "violates Plaintiffs' patients' fundamental constitutional right to decide whether to have an abortion prior to viability."

"The Texas Attorney General's enforcement threats are a blatant effort to exploit a public health crisis to advance an extreme, anti-abortion agenda, without any benefit to the state in terms of preventing or resolving shortages of (personal protective equipment) or hospital capacity," they wrote. "As a result of these threats, this week Plaintiffs have already been forced to turn away patients in need of time-sensitive care."

Read More