An ulcer is a localized defect in the stomach wall, affecting the mucosa and some other layers (submucosa, muscularis, and sometimes serous). During examination, it is necessary to determine the location, number, shape, size, and stage of development.