JACKSON, Miss. (AP) — A Mississippi judge has set a hearing in a lawsuit by the state’s only abortion clinic. The suit seeks to block a law that would ban most abortions.

Such a ruling would allow the clinic to remain open.

The law is set to take effect two days after Tuesday’s hearing.

The law says if Roe v. Wade is overturned, abortion will be legal only if the pregnant woman’s life is in danger or if a pregnancy is caused by a rape reported to law enforcement.

The clinic’s lawsuit says the Mississippi Supreme Court issued a ruling in 1998 that recognized a right to abortion in the state constitution.