Turning doctors into killers.
Since we have the right to life, liberty, and the pursuit of happiness, then we get to make end of life choices is (I think) the judge's reasoning.
That really is an open door without even the need to be terminally ill.