Your health care provider may recommend a barium swallow to help diagnose a problem with your esophagus.