Principle of double effect
The principle of double effect is part of Roman Catholic philosophy. Medical doctors can also use it when deciding how to treat patients, especially patients who are in pain and want to die.