Legislation looks to limit length of opioid prescriptions