The doctors had to be so certain that it was life threatening before acting that once they decided it was life-threatening, she was already going to die no matter what they did. And this is not an isolated incident.
The law has to allow for more uncertainty for the carve-out to be effective.