Diagnostic Purposes: Endoscopy may be performed due to many symptoms, including:

Abnormal bleeding
Persistent abdominal pain
Difficulty swallowing, dysphagia, or esophageal obstruction
Persistent nausea
Prolonged diarrhea and constipation
Unexplained weight loss
Peptic ulcers
Infections
Pancreatitis
Gallstones
Tumors

It can be used to investigate the causes of various disorders in the digestive system.


Therapeutic Purposes: Endoscopy can also be used therapeutically by adding special instruments to the endoscope. This allows for procedures such as opening esophageal strictures, draining fluid collections, removing polyps, extracting foreign bodies, and even removing small organs such as an infected gallbladder.

Furthermore, endoscopy is sometimes combined with other procedures such as ultrasound. In a technique called endoscopic ultrasound (EUS), an ultrasound probe can be attached to the endoscope. This allows for detailed images of the esophageal or gastric wall, and provides better access and clearer images of difficult-to-reach organs like the pancreas.