A drug called codeine 300/30 mg is used to relieve mild to moderately severe pain. It is an opioid analgesic that modifies how your body perceives and reacts to pain by acting on the brain.