Utah voters during Tuesday’s midterm election approved Proposition 2, legalizing medical marijuana in a dependably conservative state.

Utah’s Proposition 2 allows patients to obtain medical marijuana cards via a doctor’s office for certain qualifying conditions, such as HIV/AIDS, cancer, chronic pain (if someone is at risk for opioid painkiller addiction or overdose), and multiple sclerosis. But it prohibits smoking marijuana, instead allowing vaping, edibles, and other means of consuming pot. And it imposes some restrictions on doctors, including prohibitions on owning or working for a medical marijuana dispensary and on recommending a card to more than 20 percent of their patients.

The measure also sets up a system through which state officials will license and regulate medical marijuana businesses, from growers to dispensaries. And it allows growing up to six pot plants for personal medical use, but only if a patient lives more than 100 miles from a licensed dispensary.