A study by researchers at Cornell University found that when doctors check a patient’s drug history, the risk of opioid abuse is reduced.