This could be fine as long as there are very strong regulations against de-anonimizing the data (including jailtime for violators) and there was a regular rotation of the keys used for anonimization.
People's privacy usually isn't impacted until datasets are combined, compromising pseudonimity.