What are the exceptions to Iowa's anti-abortion legislation?

The law, which goes into effect on July 1, will require physicians to conduct an abdominal ultrasound to test for a fetal heartbeat on any woman seeking an abortion. If a heartbeat is detected, a physician cannot perform an abortion.
Des Moines Register

Iowa Republicans approved a measure that would ban most abortions in the state.

Senate File 359, if signed into law, would ban nearly all abortions after a fetal heartbeat is detected. (That can occur about six weeks into a pregnancy and often before a woman realizes she’s pregnant.) But there are a few exceptions.