In pediatrics, an esophagram is often utilized to diagnose conditions such as gastroesophageal reflux disease (GERD), esophageal strictures, and congenital anomalies like esophageal atresia or tracheoesophageal fistula. It helps in assessing swallowing disorders and identifying structural abnormalities that may impact a child's ability to eat and drink.