Skip to content

Endoscopic evaluation of the gastrointestinal tract (visual inspection and possible biopsy)

Published: August 9, 2026Updated: August 16, 2026

This test involves a flexible tube with a camera inserted into your mouth or rectum to examine your digestive tract. It helps doctors check for abnormalities like ulcers, tumors, or inflammation.

Quick summary

["Endoscopy can diagnose and treat many digestive issues in one visit."]

Medically reviewed by WellAlly Editorial TeamLast reviewed August 16, 2026Editorial policy

Key facts at a glance

LOINC
19786-3
Short code
Serial # Endoscopy device
Synonyms
Serial # Endoscopy device
Category
chemistry
Sample
serum
Container
Red-top tube (SST)
Units
N/A
Fasting
false
Population
adult
Sex
all
Age range
18–65 years
Specimen volume
5 mL
Stability
Room temperature: 4h, Refrigerated: 24h, Frozen: 7d
Hemolysis max
500
Lipemia max
1000
Icterus max
500
TAT
4–24 hours
Order
routine

Why Is This Test Done?

Doctors may recommend an endoscopy to investigate symptoms such as persistent stomach pain, unexplained weight loss, blood in stool, or difficulty swallowing. It can also check for signs of conditions like acid reflux, ulcers, or cancer.

What to Expect Before the Test

You’ll likely need to fast for several hours before the procedure. A sedative may be given to help you relax. Your doctor will explain the risks and benefits, and you’ll need someone to drive you home afterward.

During the Procedure

The endoscope is gently inserted through your mouth (upper endoscopy) or rectum (lower endoscopy). A small camera captures images of your esophagus, stomach, or intestines. If needed, a small tissue sample (biopsy) may be taken for further testing.

After the Test

You’ll rest for a short time before going home. Avoid eating or drinking until fully awake. Side effects may include mild discomfort, bloating, or nausea. Call your doctor if you experience severe pain or bleeding.

Clinical interpretation

How abnormal results are interpreted and what conditions they suggest.

Endoscopy is crucial for diagnosing gastrointestinal diseases, detecting early signs of cancer, and guiding treatments like removing polyps or treating bleeding ulcers. It provides real-time visual confirmation of abnormalities that blood tests or imaging alone might miss.

Short name

Gastrointestinal Endoscopy (Upper or Lower)

Frequently asked questions

How long does the endoscopy take?
The procedure usually takes 15 to 60 minutes, depending on the scope of the examination. If biopsies are taken, it may extend slightly.
Will I feel pain during the endoscopy?
You’ll feel mild discomfort as the tube passes through your throat or rectum, but you’ll be sedated to minimize pain. Most patients don’t remember the procedure afterward.
Can I eat or drink after the endoscopy?
You should avoid eating or drinking until fully awake and alert, as the sedative may impair your ability to swallow safely. Follow your doctor’s instructions for when it’s safe to resume normal activities.
  1. 1
  2. 2
  3. 3

Click any link to access the full source. PubMed Central (PMC) links provide free full-text access.

This information is for educational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment.

Medical Disclaimer

This content is for general informational and educational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. Always seek the guidance of a qualified healthcare provider with any questions you have about a medical condition, and never disregard professional medical advice or delay seeking it because of something you read here.

If you think you may have a medical emergency, call your local emergency number or go to the nearest emergency department immediately.

Medically reviewed by WellAlly Editorial Team Last reviewed August 16, 2026. · Read our editorial policy