If this is the case, your doctor may do more tests or give you medicine to treat GERD. Some patients may undergo an esophagram or CT scan to diagnose a hiatal hernia. Your doctor will discuss any ...