(GERD). GERD is a condition in which backward flow of acid from the stomach causes heartburn and possible damage to the esophagus. Omeprazole works by decreasing the amount of acid produced in the stomach for up to 24 hours and is usually taken once a day on an empty stomach or at ...