Oh sure, but you know, I also probably benefited a little bit from the Tuskegee Syphilis experiments, and heck, if nuclear war ever comes, the things learned from keeping Hisashi Ouchi alive after his radiation expose, will probably help too.
The primary issue with this was the lack of ethical research, not the privacy of medical records. In fact the opposite argument could be made, with a more open and connected system, we could likely glean such information without the trial in the first place.
If you view letting infections play out in people because "We view black people as sub-human" is or can be equivalent to sharing medical records for patient care, research, or outbreak surveillance, and that there isn't a meaningful distinction between those categories, it is unlikely we could have a productive conversation on the topic.
In the nightmare scenario proposed by GP, of everyone's medical records being open to the public, I would simply stop consuming all medical services. So no.