A barium swallow is a diagnostic test that uses x-rays and a thick and chalky liquid that you swallow. It helps health care providers see your esophagus.