Skip to content
MedicalCoreCoding

Try a topic like assisted living, critical care or a code like 99214.

ICD-10-CM

Chapter 11: Diseases of the Digestive System (K00–K95)

How to code GI bleeding from ulcers and diverticula, appendicitis with peritonitis, hernias with obstruction or gangrene, gallstone combinations, alcoholic liver disease and ostomy problems.

  • 9 min read
  • Updated
On this page · 10 sections

Part 1 of 4

How Chapter 11 works

The Official Guidelines list Chapter 11 as reserved for future expansion (Section I.C.11), so there is no chapter-specific guideline. The general rules do the work, and you rely on the Tabular List: every category here carries notes such as Excludes1, Code also, and Use additional code. Learn to read the code title as a series of questions.

Picture it · where the Chapter 11 codes live

1234567patient's right
  1. Stomach and duodenum K25.-K26.-

    Ulcers: site, acute or chronic, then hemorrhage and/or perforation.

  2. Liver K70.-

    Alcoholic liver disease. Add F10.- for the alcohol use.

  3. Gallbladder and bile ducts K80.-K81.-

    Stones are in K80 even when there is cholecystitis. K81 is for inflammation without stones.

  4. Colon with diverticula K57.-

    Diverticulosis or diverticulitis, large or small bowel, with or without bleeding.

  5. Appendix K35.-

    Peritonitis, perforation, abscess and gangrene each change the code.

  6. Abdominal wall K40.-K46.-

    Hernias: site first, then obstruction or gangrene.

  7. Stoma K94.-Z93.-

    A problem with the opening is K94. A healthy stoma is only a status code.

Find the organ in the note, then read the next two words: with what (bleeding, perforation, obstruction), and how long (acute or chronic).

Peptic ulcers: K25.- to K28

An ulcer code answers three questions in the title.

  1. Where? K25.- gastric, K26.- duodenal, K27.- peptic ulcer with the site not stated, K28.- gastrojejunal.
  2. Acute or chronic? The Tabular List gives different characters for acute, chronic, and "unspecified as acute or chronic."
  3. With what? Hemorrhage, perforation, both, or neither.
4th characterMeaningExample (gastric)
0Acute, with hemorrhageK25.0
1Acute, with perforationK25.1
2Acute, with both hemorrhage and perforationK25.2
3Acute, without hemorrhage or perforationK25.3
4Chronic or unspecified, with hemorrhageK25.4
5Chronic or unspecified, with perforationK25.5
6Chronic or unspecified, with bothK25.6
7Chronic, without hemorrhage or perforationK25.7
9Unspecified as acute or chronic, without eitherK25.9

Notice that if the note says "bleeding gastric ulcer" and nothing about acute or chronic, you use K25.4, because the 4-6 characters include "unspecified."

  • K25.- has a note to use an additional code for alcohol abuse and dependence (F10.-).
  • If the provider documents the cause as H. pylori, add B96.81.
  • K25.- has an Excludes1 note for peptic ulcer NOS (K27.-) and acute gastritis (K29.0-).
Example

Melena from a known ulcer

A woman is admitted with black, tarry stools and a hemoglobin of 6.8. EGD finds a chronic duodenal ulcer with bleeding. The provider adds "acute blood loss anemia" and she receives a transfusion.

  • K26.4: chronic or unspecified duodenal ulcer with hemorrhage
  • D62: acute posthemorrhagic anemia
  • B96.81 if H. pylori is documented as the cause

K92.1 is not added, because the melena is part of the bleeding ulcer.

Example

Bleeding with no source found

A man has black stools and a normal EGD and colonoscopy. The provider documents "melena, source unknown."

Code: K92.1

If the provider only says "GI bleed," use K92.2.

Diverticular disease: K57.-

In the FY2027 Tabular List the K57.- codes are built from several choices. Read the title for each:

  • Diverticulosis (pouches only) or diverticulitis (inflamed).
  • With perforation and abscess (K57.0-, K57.2-, K57.4-, K57.8-) or without (K57.1-, K57.3-, K57.5-, K57.9-).
  • Which bowel: small (K57.0- and K57.1-), large (K57.2- and K57.3-), both (K57.4- and K57.5-), or part not specified (K57.8- and K57.9-).
  • With or without bleeding: the last character separates them.

For the large intestine without perforation or abscess (K57.3-):

DocumentationCode
Diverticulosis, no bleedingK57.30
Diverticulosis with bleedingK57.31
Diverticulitis, no bleedingK57.32
Diverticulitis with bleedingK57.33

With perforation and abscess, the large-intestine codes are K57.20 (no bleeding) and K57.21 (with bleeding). K57.- has a code-also note for peritonitis (K65.-) and pelvic abscess (K6A.0-) when they apply.

If the note says "diverticular disease of the colon" with nothing more, the inclusion term at K57.30 applies. If it only says "diverticulitis" and no bowel is named, the Index leads to K57.92.

Example

Bleeding diverticulosis

A man has painless red blood per rectum. Colonoscopy shows diverticulosis of the sigmoid colon with active bleeding and no inflammation.

Code: K57.31. Not K92.2 and not K62.5, because the source is known.

Example

Perforated diverticulitis with peritonitis

A woman has left lower quadrant pain, and CT shows perforated sigmoid diverticulitis with an abscess and generalized peritonitis. There is no bleeding.

  • K57.20: diverticulitis of the large intestine with perforation and abscess, without bleeding
  • K65.0: generalized (acute) peritonitis (the code-also note at K57.-)

Other causes of GI bleeding

Cause documentedCode(s)
Acute gastritis with bleedingK29.01
Angiodysplasia of stomach or duodenum with bleedingK31.811
Bleeding esophageal varices secondary to cirrhosisThe cirrhosis code first (I85.1- says code first the underlying disease), then I85.11
Bleeding from the anus or rectum, no cause givenK62.5, hemorrhage of anus and rectum (K92.2 excludes it)

Part 2 of 4

Appendicitis: K35.-

The classification asks what has happened to the appendix: peritonitis (local or general), perforation, abscess, gangrene. The Index entry for Appendicitis with a subterm and a title does the sorting.

Provider documentsCode
Acute appendicitis, nothing moreK35.80
Acute appendicitis with localized peritonitis, no perforation or gangreneK35.30
Acute appendicitis with gangrene, no perforationK35.891
Ruptured appendix, perforated appendix NOS (with localized peritonitis)K35.32
Perforation with localized peritonitis and an abscessK35.33
Rupture with generalized peritonitis, no abscessK35.201
Rupture with generalized peritonitis and abscessK35.211
Chronic or recurrent appendicitisK36
"Appendicitis" with no acute or chronic statedK37

Two traps: K37 (unspecified appendicitis) has an Excludes1 note that sends any appendicitis with peritonitis to K35.2- or K35.3-. And the acute codes with localized peritonitis, perforation, and gangrene are combined in K35.32 and K35.33, so you do not add a separate gangrene code.

Example

Ruptured appendix

A teenager's CT shows a ruptured appendix with an abscess and diffuse peritonitis. He has surgery the same day.

Code: K35.211, acute appendicitis with generalized peritonitis, with perforation and abscess.

Hernias: K40.- to K46

A hernia code is built from three decisions.

  1. Site. K40.- inguinal, K41.- femoral, K42.- umbilical, K43.- ventral (incisional, parastomal, epigastric and other ventral), K44.- diaphragmatic (hiatal), K45.- other specified abdominal, K46.- unspecified.
  2. Condition. Neither obstruction nor gangrene; obstruction without gangrene; or gangrene.
  3. For inguinal and femoral hernias: one side or both, and recurrent or not specified as recurrent.

Picture it · one hernia, three levels

SiteNo obstruction, no gangreneObstructed (incarcerated, irreducible, strangulated)Gangrene (with or without obstruction)
Inguinal, one sideK40.90K40.30K40.40
UmbilicalK42.9K42.0K42.1
IncisionalK43.2K43.0K43.1
Hiatal (diaphragmatic)K44.9K44.0K44.1
Gangrene outranks obstruction. A hernia that is both incarcerated and gangrenous takes the gangrene code. Inguinal and femoral codes also record whether the hernia is recurrent (shown here: not specified as recurrent).

The words incarcerated, irreducible, strangulated and "causing obstruction" are inclusion terms under the "with obstruction" code. A hernia with gangrene takes the gangrene code, whether or not it is also obstructed.

Example

Incarcerated inguinal hernia

A man has a painful right inguinal hernia that cannot be pushed back. The provider documents "incarcerated right inguinal hernia, no gangrene, first occurrence." Surgery follows.

Code: K40.30: unilateral inguinal hernia, with obstruction, without gangrene, not specified as recurrent.

Example

Strangulated incisional hernia

A woman with a prior laparotomy presents with a strangulated incisional hernia. At surgery the loop of bowel is gangrenous.

Code: K43.1, incisional hernia with gangrene. The gangrene code covers the obstruction, so K43.0 is not added.

Example

Hiatal hernia with reflux

An office note says "hiatal hernia with GERD, no esophagitis."

  • K44.9: diaphragmatic hernia without obstruction or gangrene
  • K21.9: gastro-esophageal reflux disease without esophagitis

A parastomal hernia (next to a stoma) is a ventral hernia, K43.3 to K43.5, not a stoma complication from K94.-.

Part 3 of 4

Gallstones: K80.-

Category K80.- asks where the stones are and what the gallbladder or duct is doing. The ones used most:

Stones in...Without cholecystitis or cholangitisWith inflammation
GallbladderK80.2-K80.0- (acute cholecystitis), K80.1- (other cholecystitis)
Bile ductK80.5-K80.3- (cholangitis), K80.4- (cholecystitis)
Both gallbladder and bile ductK80.7-K80.6- (cholecystitis)

K80.8- is for other cholelithiasis.

The last character (K80.00, K80.01, and so on) says without or with obstruction. For acute cholecystitis with gallbladder stones: K80.00 (without obstruction) or K80.01 (with obstruction).

  • Stones with cholecystitis are K80.-, not K81.-. K81.- has an Excludes1 note for cholecystitis with cholelithiasis (K80.-). K81.0 acute cholecystitis is for inflammation without stones.
  • K80.0-, K80.1-, K80.4- and K80.6- carry a use additional code note for gangrene of the gallbladder (K82.A1) or perforation (K82.A2).
  • Gallstone pancreatitis is K85.10 (biliary acute pancreatitis without necrosis or infection). If the provider documents stones, ask where they are, because a documented stone is coded too.
Example

Gangrenous cholecystitis with stones

A man is operated on for acute cholecystitis with gallbladder stones. Pathology and the surgeon document gangrene of the gallbladder. There is no duct obstruction.

  • K80.00: calculus of gallbladder with acute cholecystitis without obstruction
  • K82.A1: gangrene of gallbladder in cholecystitis
Example

Stones in the bile duct, no infection

A woman is jaundiced. ERCP removes a stone that was obstructing the common bile duct. There is no cholangitis or cholecystitis.

Code: K80.51: calculus of bile duct without cholangitis or cholecystitis, with obstruction.

Alcoholic liver disease: K70.-

Category K70.- is for liver disease the provider ties to alcohol. The note says to use an additional code for the alcohol use, abuse or dependence (F10.-). The main codes:

  • K70.0 alcoholic fatty liver
  • K70.10 /K70.11 alcoholic hepatitis, without or with ascites
  • K70.2 alcoholic fibrosis and sclerosis
  • K70.30 /K70.31 alcoholic cirrhosis, without or with ascites
  • K70.40 /K70.41 alcoholic hepatic failure, without or with coma
  • K70.9 alcoholic liver disease, unspecified
Example

Alcoholic cirrhosis with bleeding varices

A man with alcohol dependence is admitted with vomiting blood. EGD shows bleeding esophageal varices. The provider documents "alcoholic cirrhosis with ascites and bleeding esophageal varices secondary to the cirrhosis."

  • K70.31: alcoholic cirrhosis of the liver with ascites (first)
  • I85.11: secondary esophageal varices with bleeding (the I85.1- note says to code first the underlying disease)
  • F10.20: alcohol dependence, uncomplicated (the K70.- use-additional note)

Ostomy complications: K94.-

A problem with an opening is coded in K94.-, by the type of stoma and then the problem.

StomaCategoryLast character
ColostomyK94.0-0 unspecified, 1 hemorrhage, 2 infection, 3 malfunction (mechanical), 9 other
Enterostomy (includes ileostomy, jejunostomy)K94.1-Same pattern
GastrostomyK94.2-Same pattern
EsophagostomyK94.3-Same pattern
  • The colostomy, enterostomy and gastrostomy infection codes (K94.02, K94.12, K94.22) have a note to add a code for the type of infection, such as cellulitis of the abdominal wall (L03.311) or sepsis. The esophagostomy infection code (K94.32) says to code the infection.
  • A stoma that works with no problem is a status code from Z93.- (for example Z93.3 colostomy, Z93.2 ileostomy), and a visit just to change the appliance is a Z43.- code (Z43.3 for colostomy).
  • Complications of care depend on the provider's documentation (Section I.B.16).
Example

Infected colostomy

A patient has redness and pus around a colostomy, and the provider diagnoses "colostomy site infection with cellulitis of the abdominal wall."

  • K94.02: colostomy infection
  • L03.311: cellulitis of abdominal wall

Part 4 of 4

Practice cases

Try these before you check the answers. Each case explains why the right choice is right and the others are wrong.

questions
12questions
exam time
15 minexam time
to pass
70%to pass
Choose a mode

End of the chapter: check what you remember

  • Chapter 11 has no chapter-specific guideline of its own, so the Tabular List axes (acute or chronic, bleeding, perforation, obstruction, gangrene) decide the code
  • A bleeding ulcer or bleeding diverticular disease has its own code. K92.2 is for bleeding with no known source, and melena or hematemesis is not added to a code that already includes bleeding
  • Hernias are coded by site, then by obstruction (incarcerated, irreducible, strangulated) or gangrene. Gangrene outranks obstruction
  • Gallstones, alcoholic liver disease and ostomy complications use combination codes plus use-additional-code notes (K82.A-, F10.-, B95-B97 and others)
Take the ICD-10-CM practice test12 questions on the ICD-10-CM guidelines