A TV ad airing in the wake of the Parkland, Fla., school shooting targets Florida Gov. Rick Scott over his support for a controversial gun measure.

The ad was produced by Giffords, an organization that fights gun violence and is named for former Arizona U.S. Rep. Gabrielle Giffords. Giffords was shot in the head in 2011.

The ad references three recent Florida shootings, in Parkland, Orlando and Fort Lauderdale, and then goes after Scott. "We need to stop dangerous people from getting guns. But Gov. Rick Scott made it illegal for a doctor to ask a patient if they owned a gun, even a mental health professional. This law was so dangerous that a court had to strike it down."

Does the ad cast Scott’s position, and the reaction of the court, correctly? We decided to find out.

The law behind the ad, ‘docs vs. glocks’

In 2011, Florida lawmakers crafted a bill to strengthen patient protection related to firearms after hearing a report of a woman in Central Florida who was turned away from her pediatrician.

The bill said that health care providers couldn’t ask questions to patients or their families about whether they own a gun, unless the provider "believes that this information is relevant to the patient's medical care or safety, or the safety of others." It also stated that health care providers couldn’t discriminate against patients because they own firearms.

The penalties included facing fines up to $10,000 or loss of a medical license.

The bill passed the House and Senate, with a few Democrats joining in with Republicans to support the plan. Scott signed the bill into law on June 2, 2011.

The ad correctly says the law applied to a "mental health professional" because Florida law defines health care practitioners as including those who are licensed to provide psychological, clinical, counseling, and psychotherapy services.

But did the law make it illegal for a doctor to ask a patient if they owned a gun?

The 2011 law didn’t expressly state that doctors couldn’t ask patients if they owned a gun. But it did limit their ability to do so by stating that providers "should refrain from making a written inquiry or asking questions concerning the ownership of a firearm" unless in "good faith" they believe "that this information is relevant to the patient's medical care or safety, or the safety of others, may make such a verbal or written inquiry."

The law failed to detail what would qualify as meeting that standard. Critics say it created a chilling effect for doctors who stopped asking questions out of fear they would face discipline.

Court struck down some provisions as unconstitutional

After nearly six years of litigation, in February 2017 the 11th Circuit Federal Appeals Court ruled that some provisions of the law were unconstitutional, including the part that prevented providers from asking patients about guns.

The bill’s "record-keeping and inquiry provisions prevent doctors and medical professionals from asking all patients, or all patients with children, whether they own firearms or have firearms in their homes, or from recording answers to such questions."

A medical professional, for example, would violate the law "if he or she gives all new patients an intake questionnaire which asks about firearms in the home," the court wrote.

"This law was so dangerous that a court had to strike it down."

The ruling addressed the danger of the law in a few ways.

First, the court addressed the danger of doctors facing a "credible threat of prosecution." The court wrote that when the alleged danger of legislation is self-censorship harm, "can be realized even without an actual prosecution."

Second, the court concluded that the legislation did not provide a means by which patients could hear from their doctors about firearms and firearm safety.

In the fields of medicine and public health "information can save lives" and doctors, therefore, "must be able to speak frankly and openly to patients," the court wrote.

The court wrote that some medical organizations believe that unsecured firearms increase risks of injuries and are a leading cause of death for some age groups. That’s why major medical groups "recommend that doctors and pediatricians routinely ask patients about firearm ownership, and educate them about the dangers posed to children by firearms that are not safely secured."

Thomas Julin, a First Amendment lawyer who represented a coalition of medical groups as "friends of the court," told PolitiFact that the court was not attempting to determine whether the law was so dangerous that it had to strike it down.

"It was trying to determine whether the state had sufficient evidence to show that the law would advance the interests that it supposedly had been enacted to serve," he wrote.

However, the law did create a danger that health care providers would censor their own speech -- which they did do to avoid possible discipline.

"When one speaks of the law being dangerous, I think most people would understand that to mean not simply that it created a danger of self-censorship, but that the law deterred health care providers from providing advice to patients that would be used to prevent firearm accidents," Julin said. "I think that is a fair characterization of what the law likely did because it apparently did deter health care providers not only from making inquiries of their patients but also from providing advice to their patients regarding the dangers of firearms and ammunition ownership and how that could be mitigated."

We asked Scott’s press office if he had any evidence to refute the claims in the ad, but his spokeswoman did not directly answer our question and said that Scott was "focused on finding real solutions to keep students safe."

Scott showed support when the Legislature passed the bills.

"I look forward to seeing those bills," Scott said in April 2011. "I believe in the right to bear arms."

Our ruling

A Giffords TV ad said, "Gov. Rick Scott made it illegal for a doctor to ask a patient if they owned a gun, even a mental health professional. This law was so dangerous that a court had to strike it down."

Scott didn’t act alone -- he signed the law after the Legislature passed it in 2011. The bill didn’t flat out prevent doctors from asking patients if they owned a gun, but said they should refrain from asking about guns unless they believed in good faith the information was relevant to the patient’s medical care or safety. That was a vague standard, which effectively silenced some doctors, critics claimed.

A federal appeals court ruled in 2017 that the inquiry provisions prevented medical professionals from asking questions about firearms. The ruling also stated that doctors faced the threat of discipline and doctors must be able to speak openly with patients to provide life-saving information.

As a result of these caveats, we rate this statement Mostly True.