Does it affect the hygiene code to buy cold medicine in Xi 'an, Shaanxi now?

It will not affect the health regulations. This is the same concept as going to the hospital now, just registering and filing. Will not change your health code. Don't worry unless you have special behavior of contacting COVID-19's case. Have a good rest, take good care of yourself, and don't think about it.