When we had a more orderly immigration program, we first had Ellis Island and later medical exams for legal visas.
I knew a Japanese woman who married a U.S. Marine and came to the U.S. with him. Before she was allowed into the U.S. she had to pay for a HIV test and prove that she did not have aids. Different rules for different ethnic groups.