Health codes will turn yellow near medium-risk communities. Relevant epidemic prevention departments stipulate that residents in middle and high risk areas are not allowed to go out unless necessary, and the health code will turn green only after the middle and high risk areas are restored to low risk areas.
If you only stay in a medium-risk area for a short time, your health code will not change color.