Many doctors are still prescribing codeine for children despite safety concerns.
At least, that's what a new study published in the journal Pediatrics found.
Researchers at the University of California San Francisco looked at emergency room visits among children between the ages of three and 17 from 2001 to 2010.
They found overall the number of codeine prescriptions decreased during that time.
However, they found the odds of codeine prescription were higher among children eight to 12 years old and among providers outside the northeast.
Researchers say they didn't see a decline in codeine prescriptions for patients with cough or upper respiratory infections.
The American Academy of Pediatrics has recommended against prescribing codeine to children.
The organization says the drug can be dangerous to some children and may be ineffective in other cases.
Copyright 2017 Nexstar Broadcasting, Inc. All rights reserved. This material may not be published, broadcast, rewritten, or redistributed.