A barium swallow is an x-ray imaging test that helps your health care provider view your esophagus.