Does the Hong Kong Immigration Department issue codes on the spot?

No, according to the information of official website, the Hong Kong Immigration Department, at present, the Hong Kong Immigration Department has stopped distributing health codes on the spot, and passengers need to apply for health codes themselves before boarding the plane. Specifically, passengers need to apply on the designated health code platform such as "Yuekang Code" or "Aokang Code" and go through the procedures of nucleic acid detection and separation in accordance with relevant regulations. If the relevant conditions are met, passengers can get a health code and show it to the airline before boarding.