This painless test uses ultrasound to create a “map” of the veins, typically in the leg. This might be done in preparation for various procedures, like bypass graft surgery (replacing diseased vessels in the body with a healthy vein from the leg).