A medical examiner has ruled that the rapper died as a result of oxycodone and codeine toxicity,