Doctors told her she would be unlikely to carry the child to term, and doing so increased her chances of infection or other severe outcome.
When the law is a witch hunt not based on science, doctors cannot operate based on their best judgement based on science. Real issues of “unlikely” and “increased her chances” aren’t the same things as immediate medical emergency: they prevent an immediate medical emergency. Any law restricting abortions to when they are “medically necessary” will always lead to cases where its denied until its immediately medically necessary, at which point it may be too late. This is a clear-cut example of what such laws will always do and doctors being forced to tiptoe around the feelings of fanatics instead of being able to practice medicine.
Women are dying because doctors aren’t providing medically necessary care.
Some doctors would rather risk their patient dying than face legal issues. Many are leaving those states and forcing pregnancy centers to close due to lack of staff, which also affects the mortality of the women in those areas.