After finishing residency, a physician can apply for a job under an H1b visa and then apply for a green card (permanent residency status) right away. It is also possible to apply for a fellowship with an H1b visa provided that the program lasts three years or less.