How to get the third country health code for returning from the United States?

Starting from your country of residence and transiting China through a third country, you must carry out the first nucleic acid test and serum IgM antibody test in your country of residence, and the second nucleic acid test and serum IgM antibody test in the transit country (the country where the direct flight from China takes off), and apply for the green health code from the embassies and consulates of your country of residence and transit country (the country where the direct flight from China takes off) respectively.