Is there a legal basis for checking the health code?

Yes, it is legal to check the health code.

When entering a shopping mall or a public place such as a residential area, the bright code is only to check the safety of the personnel and show them their "green code". Scanning code can record personal trajectory data with the help of big data. Once an epidemic occurs, it can provide accurate epidemiological information, greatly improve the intelligent level of epidemic prevention and control, and protect personal health to the greatest extent. So, do a good job of health code scanning registration and be responsible for yourself and others.