As a legacy of this, the US government doesn't count Jews in the census. (And, to preserve nondiscrimination values, doesn't count other religious denominations either.)
Interestingly, the census does enthusiastically collect race data on everyone. This is logically incoherent; racial groups (such as the Jews, actually) are at least as much a natural target of extermination efforts as religious groups.
(It was also stigmatized because it was a lethal disease that spread by unclear means, but that seems less relevant to the topic at hand.)
But this was a real crazy time. Hypothetical scenario (in the sense that I have not verified it, but I do think it's a very likely scenario to have happened): There were medical records of people with physical conditions before 1933 (so they could be treated) that were used under the Nazi regime to persecute them. Does that mean it that hospitals and doctors maintaining a list of medical records to treat their patients efficiently was a bad idea ?
I don't have the answer to this, I just wanted to point out that this is a delicate issue that society needs to figure out fairly quickly if they want to have an influence its outcome.
I wonder what godwin would have thought about all this :)
Anyway it is not such a hypotetical scenario, nazis were really killing the disabled persons based on their medical record (yes, qwant or duckduckgo for it).
Yes, it is a bad idea that doctors keep those data. If insurance companies get those information (and my dentist said he was already aproached by some company to sell dental records, I wouldnt be surprised if this is a common practice in states) you will have issues. Same with employees etc., even if nothing wrong with your health but there is x% chance that you get terminal disease.
Those records should be handed over to the patient, tamper proofed (no, not blockchain, just RSA will do fine) or stored, but encrypted with patient key. Actually when writting this I remembered that we (as in my country) are having a medical smart card that needs to be given to the doctor to access our medical records. Maybe we already have such a system.
Anyway it is a bit sick comparing google with doctors. The need and trust is on completely different scale not to mention that trust between doctor and patient is handled by laws and hippocratic oath since 257 AD.
No one should keep such records as society is changing and not always to best. This is one of the reasons, privacy is one of fundamental human rights. And is blatantly violated for the profit.