Abstract:Epidemic prevention health code plays an important role in strengthening epidemic management and achieving accurate prevention and control. At the same time, it is necessary to strengthen the protection of personal information. The collection and use of the health code for epidemic prevention should follow the principles of legality, necessity, limitation of purpose, informed consent, balance of interests and information protection. When using personal information, there are risks such as information disclosure and using beyond the purpose , which should be actively prevented. Anyone who infringes upon the personal information in the process of collection and use should bear legal responsibility.