Prescription opioids are used to relieve discomfort and pain in patients, usually as a part of an overall treatment plan.