The Washington, DC, City Council approved a medical marijuana bill allowing doctors to prescribe marijuana to patients with chronic conditions such as HIV, glaucoma and cancer, The Washington Post reports. Under the bill, doctors would be able to prescribe patients up to 2 ounces of marijuana in a 30-day period.

According to the article, patients’ prescriptions would be filled at city-sanctioned distribution centers, which receive their marijuana supply from private cultivation centers licensed by the city.

The bill, approved April 20, does include restrictions. Patients aren’t allowed to grow their own marijuana, and distribution and cultivation centers can’t be located within 300 feet of schools or preschools.

The council is scheduled to vote a second time on the bill next month, after which it could take several months for the program to go into effect.