doctrine of double effect
there was a real life surgeon case with a doctor who killed a guy faster for his organs (he was dying anyways). He claimed DDE that he was just giving painkiller meds to give him comfort.