Medical privacy ends when the condition may cause detrimental effects to other people. It's not that difficult of a concept to understand.
Somebody who has epilepsy is not allowed to drive vehicles or fly a plane. They might have an episode while operating the vehicle and kill/injure others.
Somebody with a confirmed deadly disease is not allowed to wander around spreading it to others. Their decisions to ignore quarantine restrictions will kill/injure others.