The double effect principle: conditions associated with it
The good outcome of the medication is the patient would have a comfortable and higher quality of life free from pain. In the circumstance of administering life shortening pain medication, the intent must be to relieve the patient's pain and not to shorten their life span.