of course the law was written to allow a bare minimum of protection for the life of the mother
Yeah, I got some bad news about that.
Basically 6 states (Texas, Oklahoma, Arkansas, Alabama, Idaho, South Dakota, and Wisconsin) have no provision to protect the health of the pregnant person. They only have provisions to protect the life of the mother. The issue is it's so poorly written in many states they have to wait until the mother is actively dying to act.
Ectopic pregnancies are deadly, eventually. They can stay in place for weeks without actually killing the woman. It's well documented that in many states women have been told to wait in the parking lot until the condition became severe enough that it was life threatening.