Hong Kong had been relatively successful in containing the virus until the emergence of the omicron variant.