It may be prescribed as part of a medically supervised approach to treating significant pain. As an opioid medicine, it changes the way the brain and nervous system process pain signals. Although it can provide effective pain relief, It also has potentially serious risks .