Whether or not this was "by the book", the result is clearly not justice. I am just taken aback that unmentioned Consitutional penumbrae guarantee a "right" to abortion and sodomy and other demented behaviors, but a mere statute seems to override explicitly enumerated and inalienable rights.
I just don't have the experience in these kind of messes to put my finger on what exactly is the problem, but I do know that it stinks to high heaven, and whatever the law may say, this woman is being slowly murdered in a horrific way that I wouldn't wish on anyone, and it doesn't at all appear that she wants to die.
Again, that's what it comes down to - the Courts, all the way up the chain, disagree with you on this point.
And you've already stated that her wishes are immaterial - what matters is that you don't want her to die.