We classified HIV acquisition among migrants as pre- or post-migration using TESSy variables (country of birth, year of arrival, probable country/region of HIV acquisition, year of diagnosis, CD4+ T cell count at diagnosis, and markers of recent infection), prioritising the reported probable country/region of infection when available. Here, CD4 is linked to infection.