Pain in the upper abdomen has many causes
“Gastritis” is often used for any stomach pain, but it is a specific condition — inflammation of the stomach lining — and many people who have it feel nothing at all. The pain itself is better described by its pattern and its position.
Vomiting blood or passing black, tarry stools may indicate bleeding. Seek urgent medical assessment immediately. If bleeding is ongoing, or you feel faint, very weak or breathless, go to the nearest emergency department.

Upper abdominal pain can have several causes, including problems affecting the oesophagus, stomach or duodenum. Pain in the right upper abdomen, especially after meals, may be related to the gallbladder. The location of pain alone cannot establish a diagnosis.
Because these symptoms overlap with reflux, ulcers and other conditions, the assessment looks at the pattern, at any medicines you take — anti-inflammatory painkillers can irritate the stomach lining — and at whether warning signs are present. An endoscopy looks directly at the stomach lining when it is needed.
If your symptoms persist or you are unsure of the cause, arrange an assessment.