How could have the many court proceedings been prevented in the terri Schiavo and nancy cruzan cases?

How could have the many court proceedings been prevented in the terri Schiavo and nancy cruzan cases?