Which doctor you see could determine how long you use opioids, study says