Skip to content
Dx

ICD-10-CM 2027 diagnosis code

K31.BHypertrophic pyloric stenosis, in childhood

K31.B is a valid, billable ICD-10-CM code for hypertrophic pyloric stenosis, in childhood. It can be reported on claims for dates of service from October 1, 2026 – September 30, 2027.

Code last changed in FY2027 (effective October 1, 2026). Source: official FY2027 ICD-10-CM release from CDC/NCHS and CMS. Page updated September 29, 2026. About our data

About K31.B

K31.B is the ICD-10-CM diagnosis code for hypertrophic pyloric stenosis, in childhood. It belongs to category K31 (other diseases of stomach and duodenum), block K20-K31 (diseases of esophagus, stomach and duodenum) and chapter 11 (diseases of the digestive system). It is billable, so it can be reported on its own for dates of service from October 1, 2026 through September 30, 2027.

Within K31 (other diseases of stomach and duodenum), K31.B is specifically for hypertrophic pyloric stenosis, in childhood. Related codes cover acute dilatation of stomach (K31.0), adult hypertrophic pyloric stenosis (K31.1), Hourglass stricture and stenosis of stomach (K31.2), Pylorospasm, not elsewhere classified (K31.3), gastric diverticulum (K31.4), obstruction of duodenum (K31.5), fistula of stomach and duodenum (K31.6), polyp of stomach and duodenum (K31.7) and 3 more.

Don't report K31.B together with the conditions in its Excludes1 note: congenital pyloric stenosis (Q40.0).

As a secondary diagnosis it is a CC (complication or comorbidity), which can move an inpatient stay into the "with CC" MS-DRG of its family, unless the principal diagnosis excludes it.

In MS-DRG v44.0, it is part of the grouping logic for DRG 380 (Complicated Peptic Ulcer with MCC, relative weight 1.9245), DRG 381 (Complicated Peptic Ulcer with CC, relative weight 1.0838) and DRG 382 (Complicated Peptic Ulcer without CC/MCC, relative weight 0.7281), in MDC 06 (Diseases and Disorders of the Digestive System), as a principal or secondary diagnosis. The DRG a claim lands in depends on the principal diagnosis, procedures and any CC/MCC secondary diagnoses.

The Medicare Code Editor expects this diagnosis only for patients age 0 through 17; other ages trigger an age-conflict edit.

It was added in FY2027, effective October 1, 2026.

Coding notes

Applicable toConditions and synonyms classified to this code
  • Infantile hypertrophic pyloric stenosis
  • Pediatric hypertrophic pyloric stenosis
  • Pediatric pyloric stenosis
Excludes1Not coded here — never report together with this code
  • congenital pyloric stenosis (Q40.0)

Notes that apply from higher levels

Instructions written at a parent level also apply to K31.B.

› From K31 Other diseases of stomach and duodenum
Includes
  • functional disorders of stomach
Excludes2

Broader instructions also apply from K20-K31 Diseases of esophagus, stomach and duodenum and Chapter 11: Diseases of the digestive system.

Alphabetic index entries

4 entries

Terms in the official ICD-10-CM index that lead to K31.B.

MS-DRG v44.0 grouping

All DRGs →

Inpatient MS-DRGs this diagnosis can group to, as the principal or a secondary diagnosis, depending on the rest of the claim.

Code history

  1. 2016
  2. 2017
  3. 2018
  4. 2019
  5. 2020
  6. 2021
  7. 2022
  8. 2023
  9. 2024
  10. 2025
  11. 2026
  12. 2027
  • FY2027 (effective 10/1/2026): Added

Common questions about K31.B

Is K31.B billable?

Yes. K31.B is a billable/specific ICD-10-CM code valid for FY2027 (October 1, 2026 – September 30, 2027).

Can K31.B be used as a principal diagnosis?

Yes. The Medicare Code Editor doesn't restrict K31.B as a principal diagnosis.

Is K31.B a CC or MCC?

K31.B is a CC (complication or comorbidity) under MS-DRG v44.0, unless excluded by the principal diagnosis.

What DRG does K31.B group to?

K31.B is used in the MS-DRG v44.0 logic for MS-DRG 380 (Complicated Peptic Ulcer with MCC), MS-DRG 381 (Complicated Peptic Ulcer with CC) and MS-DRG 382 (Complicated Peptic Ulcer without CC/MCC). Which one applies depends on whether it is the principal diagnosis and on the rest of the claim.

Did K31.B change for 2027?

Yes. For FY2027 (effective October 1, 2026) it was added to the code set.