An ultrasound may also be done to check for blockages in the urinary tract. An ultrasound is an imaging test that uses sound waves to create images of structures inside the body.