The procedure begins with the patient drinking the barium solution. As they swallow, a series of X-rays are taken, capturing images of the barium as it moves through the esophagus and into the stomach. The patient may be asked to change positions to ensure comprehensive imaging. The entire process typically takes between 30 to 60 minutes.