Pain is common in patients with a fatal illness. Which of the following steps will doctors recommend to control their pain?