When I used the example of STIs, I was alluding to things like how the "duty to report" [1] and the criminalization of very limited and targeted behaviours [2] have the effect of narrowing very specific rights in very specific circumstances. These are policies that are reasonable and that generally are designed to limit rights and freedoms as little as possible in order to achieve a particular goal. We're not talking about suspending rights just because it's "convenient", and I wasn't alluding to using humans as guinea pigs for unethical research programmes... I don't know what you were thinking.
You apparently don't see the difference, but that doesn't mean you have special insight-- if anything, it just means you're confused about the principles at play (or, perhaps more charitably, you're assuming that I'm a fool and are misinterpreting what I'm saying).
---
[1] https://medlineplus.gov/ency/article/001929.htm
[2] https://www.cdc.gov/hiv/policies/law/states/exposure.html
^ The provided links are US-centred (because I'm assuming most readers are American) but one can easily find very similar policies in Canada or almost any other developed country.