Foreign-trained doctors must pass Brazil’s Revalida exam — an intensive two-stage test of theory and clinical skills — before they can apply for a medical license.