Opioid-induced constipation may be treated cautiously with a prescribed medication. Ask your doctor about options if you think your constipation is caused by your pain medication.