Party affiliation, which is mandatory in some U.S. states for voters (e.g. Oregon) is available to anyone who wants to access the registration dataset from the Secretary of State.
It takes very little to deanonymize things like healthcare records with this information as was demonstrated going back to the 1990s.