It's not really that close. In this case, the woman refused an operation on herself that could save her child. It's morally repugnant, but the law shouldn't have a say.
A closer analogy would be somebody who could save a life by donating bone marrow, but refuses. The person's a jerk, but the government shouldn't be able to tie them down and tap their bones against their will.
Considering the tremendous emotional/hormonal situation involved in pregnancy, who knows what went on? I think we'd better be careful with this though. This is really bad precedent.