Codeine is considered a ‘weak’ opioid pain medication. It is in the same family of medicines as opioid pain medications and drugs such as morphine, oxycodone and heroin. In the body codeine is converted into morphine, which is thought to be responsible for almost all of the pain relieving effects of codeine.