Six years after Florida lawmakers tried to stop doctors from asking patients about guns, health care providers have emerged victorious in a legal battle as the state did not appeal a federal court ruling striking down major parts of the 2011 law.

The controversial measure, dubbed the “docs vs. glocks” law and supported by the National Rifle Association, included a series of restrictions on doctors and other health providers. For example, it sought to prevent physicians from entering information about gun ownership into medical records if the physicians knew the information was not “relevant” to patients’ medical care or safety or to the safety of other people.