what are opioids used to treat?
Opioids Used to Treat Chronic Pain. 1  Codeine -- Codeine is a pain medication that is taken by mouth. It is short-acting, meaning it lasts only for a few hours per dose. 2  Oxycodone -- Oxycodone is available in both a short-acting and long-acting pain medication form.