Study guide
3.3 Digestive and Hepatobiliary Anatomy
AAPC Certified Outpatient Coder COC
Track your progress as you read
Finished sections get a check mark.
1 Introduction & Exam Overview
1.1 Current COC Exam Facts 1.2 Exam Day, Format, and Approved Code Books 1.3 COC vs CPC, CIC, and CASCC
2 Medical Terminology
2.1 Word Building: Roots, Prefixes, and Suffixes 2.2 Surgical and Diagnostic Procedure Terms 2.3 Musculoskeletal, Integumentary, and Nervous Terminology 2.4 Cardiovascular, Visceral, Endocrine, and Special-Senses Terminology
3 Applied Anatomy for Facility Coding
3.1 Musculoskeletal and Integumentary Anatomy 3.2 Cardiovascular, Respiratory, and Lymphatic Anatomy 3.3 Digestive and Hepatobiliary Anatomy 3.4 GU, Nervous, Special-Senses, and Endocrine Anatomy
4 Coding Guidelines
4.1 ICD-10-CM Official Guidelines and Conventions 4.2 CPT Conventions, Parenthetical Notes, and Unlisted Codes 4.3 Modifier Principles in Facility Reporting
5 Medicare Coverage and Claim Forms
5.1 Medicare Parts A, B, C, and D 5.2 Medicare as Secondary Payer 5.3 The UB-04 Institutional Claim and Revenue Codes 5.4 The CMS-1500 Professional Claim Contrast
6 OPPS, APC, and Related Payment Methodology
6.1 OPPS and Ambulatory Payment Classifications 6.2 OPPS Status Indicators 6.3 Packaging, Composites, and Comprehensive APCs 6.4 IPPS Contrast, the Inpatient-Only List, and OCE Edits
7 Compliance and Regulatory Requirements
7.1 NCDs, LCDs, and Medical Necessity 7.2 HIPAA Privacy, Security, and Code-Set Rules for Coders 7.3 Advance Beneficiary Notices and Financial Liability
8 ICD-10-CM Structure and Outpatient Rules
8.1 ICD-10-CM Structure, Index, and Tabular Conventions 8.2 Section IV: First-Listed Diagnosis for Outpatient Services 8.3 Z Codes, Screening, Aftercare, and Status
9 ICD-10-CM Medical Chapters
9.1 Infectious Disease, Neoplasms, Blood, and Endocrine 9.2 Mental, Nervous System, Eye, and Ear 9.3 Circulatory and Respiratory Systems 9.4 Digestive, Skin, and Musculoskeletal
10 ICD-10-CM Injury, External Causes, and 7th Characters
10.1 GU, Pregnancy, Perinatal, and Congenital Conditions 10.2 Injury, Poisoning, and External Causes 10.3 Laterality, 7th Characters, and Combination Codes
11 HCPCS Level II
11.1 HCPCS Level II Structure and Modifiers 11.2 Drugs, Biologicals, J-Codes, and C-Codes 11.3 Supplies, DME, Prosthetics, and Orthotics 11.4 G-Codes, Ambulance, Pass-Through Devices, and 2026 Skin Substitutes
12 CPT Navigation and Evaluation and Management
12.1 CPT Book Navigation, Symbols, and Sections 12.2 Emergency Department and Observation Services 12.3 Hospital Outpatient Clinic, Preventive, and Critical Care
13 Radiology, Pathology and Laboratory, and Medicine
13.1 Radiology: Technical Component, Contrast, and Interventional 13.2 Pathology and Laboratory 13.3 Hydration, Therapeutic Infusions, and Injections 13.4 Cardiology Diagnostics and Other Medicine Services
14 Surgical Coding Principles and Modifiers
14.1 Reading the Operative Report for Facility Coding 14.2 Outpatient Hospital and ASC Surgical Modifiers 14.3 NCCI PTP Edits and Medically Unlikely Edits 14.4 Discontinued, Reduced, Bilateral, and Multiple Procedures
15 Integumentary, Musculoskeletal, and Respiratory Surgery
15.1 Integumentary Surgery 15.2 Musculoskeletal Surgery 15.3 Respiratory System Surgery
16 Cardiovascular and Digestive Surgery
16.1 Cardiovascular Outpatient Procedures 16.2 Digestive Endoscopy 16.3 Digestive Operative Surgery
17 GU, Gynecologic, Endocrine, and Hemic Surgery
17.1 Urinary and Male Genital Surgery 17.2 Female Genital and Outpatient Maternity Procedures 17.3 Endocrine, Hemic, Lymphatic, and Mediastinum
18 Nervous, Eye, Ear Surgery and ASC versus HOPD Billing
18.1 Nervous System, Pain Management, and Outpatient Spine 18.2 Eye and Ear Surgery 18.3 ASC versus Hospital Outpatient Department Billing
19 Integrated Case Coding
19.1 Same-Day Surgery Cases 19.2 Emergency Department Cases 19.3 Observation and Hospital Clinic Cases 19.4 Multi-Code-Set Diagnostic and Interventional Cases
3.3 Digestive and Hepatobiliary Anatomy
Key Takeaways Explain This Topic AI
Endoscopy families follow the organ actually entered: esophagus, stomach, duodenum, jejunoileum, colon, or rectum—not a generic gastrointestinal tract code.
Sphincter and junction landmarks (UES, EGJ/Z-line, pylorus, ileocecal valve, dentate line) are how incomplete or converted endoscopic procedures are localized.
Cystic duct anatomy supports laparoscopic cholecystectomy thinking; work in the common bile duct is bile-duct exploration or endoscopic retrograde cholangiopancreatography territory, not the same structure.
The appendix arises from the cecum near the ileocecal junction; it is not a left-lobe liver structure and is not the gallbladder fundus.
Liver laterality uses right and left lobes (plus caudate and quadrate); gallbladder, pancreas, and extrahepatic ducts are named separately from hepatic parenchyma.
Last updated: September 2026
Digestive anatomy is the backbone of hospital outpatient endoscopy and of high-volume ASC laparoscopy. Esophagogastroduodenoscopy (EGD), colonoscopy, endoscopic retrograde cholangiopancreatography (ERCP), laparoscopic cholecystectomy, appendectomy, hernia repair, and percutaneous endoscopic gastrostomy all require you to know which organ, junction, and duct the provider reached. ExamFinch teaches this map for independent COC study. Do not paste copyrighted CPT descriptor lists into your notes; use the books on exam day and use anatomy to know which family to open .
Hollow viscera from esophagus to anus
Think in the order an endoscope or surgeon actually travels.
Segment Landmarks Facility clue
Esophagus Cervical, thoracic, abdominal portions; upper esophageal sphincter (UES) EGD starts here; dilations and stents
Esophagogastric junction (EGJ) Often documented with the squamocolumnar Z-line End of esophagus, start of stomach
- Stomach Cardia, fundus, body, antrum Ulcers, PEG site, biopsies
- Pyloric sphincter Outlet to duodenum Pyloric channel; obstruction notes
- Duodenum D1 bulb through D4; ampulla in D2 EGD typically includes duodenum; ampulla is biliary/pancreatic
- Ligament of Treitz Duodenojejunal junction Separates upper from mid small bowel in many descriptions
- Jejunum and ileum Mid and distal small bowel Enteroscopy, ileoscopy, some balloon procedures
- Ileocecal valve Terminal ileum to cecum Colonoscopy completion landmark when ileum is entered
- Cecum and appendix Blind pouch; appendix off cecum Appendectomy; incomplete colonoscopy if cecum not reached
- Colon Ascending, hepatic flexure, transverse, splenic flexure, descending, sigmoid Colonoscopy extent
- Rectum Distal to sigmoid, above anal canal Flexible sigmoidoscopy versus full colon
Anal canal Dentate (pectinate) line ; internal and external sphincters Hemorrhoid and fissure families; not colonic polyps
If a colonoscopy is incomplete at the splenic flexure, you did not examine the ascending colon. Anatomy, not hope, decides whether the note supports a complete colon family versus a flexible sigmoidoscopy or incomplete-colonoscopy approach described in CPT guidelines (read those guidelines in the book; this section only tells you where the scope stopped).
EGD that never passes the pylorus did not evaluate the duodenum. A note that finds a lesion "at 20 cm" on colonoscopy is rectal or distal sigmoid depending on the endoscopist's landmarking; do not assume every centimeter count is the same organ.
Sphincter landmarks for endoscopy
Memorize the sphincters as doors in the report:
UES : entry to the esophageal body.
Lower esophageal sphincter / EGJ : stomach begins.
Pylorus : duodenum begins.
Sphincter of Oddi at the ampulla of Vater : bile and pancreatic ducts empty into D2.
Ileocecal valve : colon begins (from the small-bowel side).
Internal and external anal sphincters and the dentate line : surgical anal canal versus rectum.
ERCP is not a colonoscopy. It uses side-viewing endoscopy to cannulate the ampulla and inject the biliary or pancreatic duct. If the note never mentions the ampulla, bile duct, or pancreatic duct, you are not in ERCP anatomy.
Liver lobes
The liver has right and left lobes, plus caudate and quadrate lobes in classical description. Couinaud segments (I–VIII) appear in interventional radiology and some surgical notes. Laterality of a liver lesion (right lobe versus left lobe) matters for ICD-10-CM and for whether a biopsy or ablation targeted the documented segment. The porta hepatis is where portal vein, hepatic artery, and extrahepatic ducts meet the liver—not a pulmonary hilum.
Gallbladder and the extrahepatic biliary tree
The gallbladder has fundus, body, and neck. The cystic duct drains the gallbladder into the extrahepatic ductal system. The right and left hepatic ducts join to form the common hepatic duct . The cystic duct plus common hepatic duct form the common bile duct (CBD) , which joins the main pancreatic duct at the ampulla of Vater in the second duodenum.
This branching is the highest-yield digestive anatomy on a facility exam:
Dissection of the gallbladder off the liver and division of the cystic duct and cystic artery is laparoscopic (or open) cholecystectomy thinking.
Instrumentation, choledochoscopy, or surgical exploration of the CBD is bile-duct work, not a cystic-duct-only cholecystectomy.
Endoscopic sphincterotomy and stone extraction from the CBD is ERCP anatomy, still CBD, different approach.
If the operative report says "critical view of safety," cystic duct and cystic artery were identified for gallbladder removal. If it says "choledochotomy" or "CBD explored," you have left gallbladder-only anatomy. Do not assume every "lap chole with cholangiogram" explored the CBD surgically; intraoperative cholangiogram images the ducts but is not the same as bile-duct exploration. Read whether a catheter was placed through the cystic duct for imaging versus whether the CBD itself was opened or instrumented.
Pancreas
The pancreas has head (with uncinate process ), neck , body , and tail . The head sits in the duodenal C-loop. The tail reaches toward the splenic hilum. The main pancreatic duct (Wirsung) and sometimes an accessory duct (Santorini) drain to the duodenum. Outpatient notes may describe pancreatic cysts, endoscopic ultrasound of the pancreas, or ERCP of the pancreatic duct. A pancreatic tail lesion is not a gallbladder neck lesion. Laterality language is less like paired kidneys; use the named part (head versus tail) instead of inventing left/right pancreas codes that the note does not support.
Appendix location
The appendix (vermiform appendix) arises from the cecum , typically on the posteromedial cecum near the ileocecal junction . McBurney's point on the abdominal wall is a clinical surface landmark, not a CPT structure. Retrocecal appendix is still cecal anatomy. Laparoscopic appendectomy is digestive surgery of the appendix, not a cholecystectomy, even when both viscera are in the right upper/lower quadrant neighborhood. A normal appendix left in place during a diagnostic laparoscopy is not an appendectomy.
Facility scenario
ASC note A: laparoscopic cholecystectomy, cystic duct and cystic artery clipped, gallbladder removed from liver bed, no CBD instrumentation. Anatomy: gallbladder plus cystic duct , not common bile duct exploration. ASC note B: ERCP, sphincterotomy, balloon extraction of a CBD stone. Anatomy: ampulla and common bile duct , not a colonoscopy and not a cystic-duct-only cholecystectomy. Hospital outpatient note C: colonoscopy to cecum, terminal ileum intubated, snare polypectomy in sigmoid. Anatomy: complete colon to cecum plus ileocecal landmark; the polyp site is sigmoid , which will matter for ICD-10-CM site of neoplasm or polyp, while the procedure family is still colonoscopy with polypectomy method described in the note.