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: Clinics Adapt As Pause Put On Johnson & Johnson Vaccine Distribution

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: New Evidence Leads To Arrests In Kristin Smart's Murder Case

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: Johnson & Johnson Pause Sends Some Clinics Scrambling, Fuels Worry Of Vaccine Hesitation

Copyright 2019 The Associated Press.