When You Are Taking Omeprazole, What Foods Should You Stay Away From? December 4, 2022 By My Indian Pharmacy It is used to treat duodenal ulcers, heartburn, indigestion, acid reflux, and gastric ulcers and to lower the risk of bleeding in the upper digestive tract and other health problems caused by too much acid.