The medical exam for green card purposes does not include test of Heptitis B. So do not worry about that.