There are various ways for foreigners to buy medicines in Beijing. In addition to buying prescription medicines with prescriptions from medical practitioners or assistance practitioners, you can buy over-the-counter medication at formal pharmacies. If needed, you can purchase medicines online. Please note that you should get medicines from online pharmacies that are established with the approval of the state and hold all necessary certificates issued by relevant government departments. To check whether an online pharmacy is legally operated, please refer to "Online Drug Information Services" on the "Data Query" page of the official website of the National Medical Products Administration (https://www.nmpa.gov.cn/datasearch/home-index.html).