Except doctor don't practice philosophy, they practice medicine- BIG difference. The FETUS isn't the same as an adult male, in the hospital or a court of law. The fetus was not viable at the time of the mother's death. (You don't know biology as well as you think)
This wasn't about the wishes of the hospital, but the wishes of the family. You are bending 'logic' like the comparison of cutting off a leg being the same as terminating a pregnancy. In the adult male the priority for who gets to decide end of life is not the hospital to be first, they don't get a 'X reason" to deny.
Are you truly sure the dead woman would remain functional enough for long enough to carry the fetus past 24 weeks and not produce a badly deformed baby? The woman's body will continue to deteriorate because she isn't in a coma, she is dead. Big difference on what happens to the body. that dead body passes fluids to the fetus, it isn't a 'closed' system. (this is why women should be very careful what medications they take while pregnant.)
You Sir, don't know biology....
eace