SAN FRANCISCO (CBS SF) – A doctor in San Francisco is under investigation for allegedly providing medical exemptions to get kids out of receiving vaccinations with an at-home genetics test.

San Francisco City Attorney Dennis Herrera announced Wednesday that he has subpoenaed anonymous medical records from Dr. Kenneth Stoller.

READ MORE: East Palo Alto Residents on Edge Over Possible Placement of Convicted Sex Predator

Herreras office is investigating whether Stoller violated state laws by providing medical exemptions for patients who didn’t qualify for them. Under a state law that took effect in 2016, students attending any public or private school in California must be vaccinated unless they qualify for a valid medical exemption approved by a physician.

Herrera says the doctor is a vocal opponent of vaccines and used 23andMe test results to fabricate exemptions for kids.

“There are children who have serious medical conditions that prevent them from getting vaccinated. The scary thing is those are the kids most at risk when somebody engages in medical exemption deception,” said Herrera in a press release. “If someone uses a medical exemption they don’t qualify for and introduces unvaccinated children into that environment, the kids who legitimately can’t get a vaccine — and ultimately the general public — are the ones in real danger.”

READ MORE: Theranos Trial: New Testimony Alleges Holmes Lied To Lure Billionaire Devos Family To Invest $50 Million

In an interview for an anti-vaccine website, Stoller said he based his medical exemption decisions off two 30-minute visits and a 23andMe genetic test. However, 23andMe notes numerous warnings for its tests on its website, including that: “The test is not intended to tell you anything about your current state of health, or to be used to make medical decisions, including whether or not you should take a medication, how much of a medication you should take, or determine any treatment.”

Stoller earned his degree from the American University of the Caribbean School of Medicine, according to state medical board records.

The investigation comes amid an unprecedented measles outbreak and growing concerns about low levels of vaccinations among children in the state.

MORE NEWS: Hung Jury In Trial of Danville Deputy Andrew Hall Over Laudemer Arboleda Killing; Guilty On Gun Assault

KPIX 5 reached out to Stoller’s attorney, who said doctors have the right to use family history and genetics in vaccine exemptions. He called the investigation into his client a “political and opportunistic fishing expedition” and questioned the legal basis of the subpoena.