Is it illegal for the pharmacy to take my health code?

It is illegal for a pharmacy to take your health code through the staff's mobile phone.

1, because the health code is a person.

2. It is not illegal to scan the code through the device.

2. During the epidemic period, it is the requirement of epidemic prevention and control to register the health code after we arrive at the store, and it is also the legal obligation of everyone in the special period of epidemic prevention.