At one point this was promoted by Medicare. In FL, physicians were legally removed from having to request/report this information. Since then there has been so much opposition that the requirement was removed and Snopes considers it a rumor now:
Medicare Requires Doctors to Ask Patients About Guns? : snopes.com