A: Heroin, morphine and codeine are opiates derived from the resin of the opium poppy. Heroin is quickly metabolized to morphine. The body also changes codeine (used in some cold medicines) to morphine. Thus, the presence of morphine in the urine indicates heroin, morphine and/or codeine use.