That's good, patient privacy is a fairly basic concept in the field of medicine, but it's always good to double-check
Medical stuff should be 100% private, between you and your doctor.
I meant more from a public health perspective, like how CDCs and other agencies are able to collect enough population-level data to work on regional/national health issues (COVID or otherwise) when there are privacy concerns.
Do they have to do anonymization and aggregation the way we do for web analytics?