There are well-considered standards for patient anonymity. Saying "I had a patient with X disease" is not compromising the identity of the patient. Without that, doctors couldn't teach medicine to med students or explain their cases at conferences.
I mean it's utilitarian attitude on the surface, but the usefulness of medicine will be significantly degraded for everyone if patient records become public records.
Huh? The reason why doctor-patient confidentiality exists is to encourage people to seek treatment without fear of embarrassment or retaliation.