The "original HIV Infection Control and Patient Rights Protection Act allowed the government to order HIV tests on foreign residents in Taiwan and short-term visitors staying in the country for three months or longer. Those whose tests came back positive were required to be deported." During the process of deportation, "their visas annulled and their names [were permanently listed in official records, resulting in automatic refusal of any future application for an entry visa." Foreigners infected by their Taiwanese spouse or from medical procedures conducted in Taiwan could appeal to be taken off of the black list, but only from abroad after being deported.