SACRAMENTO (AP) – California lawmakers have advanced tougher rules for vaccinations even as opponents shouted “we will not comply” from the Senate gallery.

Senators sent the bill to the Assembly on Wednesday as the nation struggles to stem the highest number of measles cases in decades.

READ MORE: El Dorado County Braces For Flooding After Caldor Fire

RELATED: Anti-Vaccination Families May Need To Get Exemption Permission From State

The bill gives state public health officials instead of local doctors the power to decide which children can skip their shots before attending school.

READ MORE: Lake Tahoe Wildlife Care Barred From Caring For Bears Until It Makes Changes To Enclosure

Democratic Sen. Richard Pan of Sacramento says his bill is needed because some doctors have been selling medical exemptions since the state ended non-medical immunization exemptions in 2016.

Opponents say the bill interferes with the doctor-patient relationship. Some say disciplining doctors should be left to the state medical board.

It passed on a 24-10 vote.

MORE NEWS: Kings Home Opener Brings Life To Downtown, Stresses Business

Copyright 2019 The Associated Press.