HARRISBURG, Pa. (WHTM) – The front of the state Capitol will be lit green Sunday night after Gov. Tom Wolf signs a bill to legalize medical marijuana.

Senate Bill 3 cleared the Legislature after a final vote Wednesday in the state House.

The legislation allows doctors to prescribe medical marijuana to patients with 17 qualified medical conditions including cancer, epilepsy, autism, ALS, Parkinson’s disease, multiple sclerosis, HIV/AIDS, and post-traumatic stress disorder.

Medical marijuana would be dispensed as a pill, oil, topical form and for vaporization or nebulization. Smoking marijuana won’t be legal.

The state Department of Health will oversee the program which could be operating in 18-24 months.

In the meantime, a safe harbor provision allows parents to give medical marijuana to children who suffer from debilitating seizures if they buy it legally from another state.Get breaking news, weather and traffic on the go. Download the ABC 27 News App and the ABC 27 Weather App for your phone or tablet.