Starting Thursday Illinois will allow some patients to substitute medical marijuana for opioid prescriptions