The bill would allow patients with a qualifying condition, such as cancer, to get a prescription for medical marijuana.