2027 ICD-10-CM Diagnosis Code Q40.0Congenital hypertrophic pyloric stenosis

ICD-10-CM Codes›Q00-Q99›Q38-Q45›Q40

ICD-10-CM Q40.0
CMSSource: CMS FY 2027 ICD-10-CM dataset · Effective Oct 1, 2026 – Sep 30, 2027

Q40.0 is a billable ICD-10-CM diagnosis code for congenital hypertrophic pyloric stenosis. It is valid on HIPAA claims for fiscal year 2027 (October 1, 2026 through September 30, 2027) and groups to MS-DRG 393 through 395. The code is exempt from POA reporting. In AHRQ's Clinical Classifications Software (CCSR), this diagnosis falls under Digestive congenital anomalies.

For Medicare Advantage risk adjustment, Q40.0 maps to CMS-HCC Category 78 (Intestinal Obstruction/Perforation) under the V28 model, adding a risk factor of about 0.326 for a community, non-dual, aged beneficiary in payment year 2027.

Code Identity

ICD-10-CM Code
Q40.0
Billable Status
Yes — Valid for Submission
Code Describes
Congenital hypertrophic pyloric stenosis
Short Description
Congenital hypertrophic pyloric stenosis
Same as the full description in the CMS dataset.
Parent Code
Other congenital malformations of upper alimentary tract

Code Classification

ChapterQ00-Q99Congenital malformations, deformations and chromosomal abnormalities
SectionQ38-Q45Other congenital malformations of the digestive system
CategoryQ40Other congenital malformations of upper alimentary tract
This CodeQ40.0Congenital hypertrophic pyloric stenosis

Present on Admission (POA)Billing

Q40.0 is exempt from POA reporting on inpatient claims to general acute care hospitals. Review the other POA exempt codes in Other congenital malformations of the digestive system (Q38-Q45).

Medicare Risk Adjustment (HCC)Billing

Q40.0 maps to a payment category in the CMS-HCC model used to risk-adjust Medicare Advantage payments. Weights are the published community factors for payment year 2027.

CMS-HCC V28 Category (Payment Model)
HCC 78— Intestinal Obstruction/Perforation
Payment HCC · PY 2027 one of 76 ICD-10-CM codes in this category
Risk Adjustment Factor (RAF) Weight
+0.326
community, non-dual, aged · ranges 0.326–0.688 across segments
Hierarchy
Superseded by HCC 77
a more severe related category takes the payment when both are reported
Prior Model (CMS-HCC V24)
Not mapped under V24
this diagnosis newly risk-adjusts under the V28 model
Part D (RxHCC)
Not mapped
Q40.0 does not risk-adjust in the RxHCC prescription drug model

Source: CMS Payment Year 2027 risk adjustment mappings and model software. Weights are relative factors, not dollar amounts; a beneficiary's total RAF also includes demographics and interactions. Browse all CMS-HCC categories.

Approximate SynonymsGuidance

Alternate terms and clinical phrases that map to this code.

  • Congenital constriction of pylorus
  • Congenital hypertrophic pyloric stenosis
  • Congenital hypertrophy of pylorus
  • Congenital junctional epidermolysis bullosa
  • Congenital junctional epidermolysis bullosa-pyloric atresia syndrome
  • Congenital pyloric spasm
  • Congenital pyloric stenosis
  • Congenital stenosis of stomach
  • Gastric atresia
  • Generalized junctional epidermolysis bullosa
  • Intellectual disability, hypotonia, brachycephaly, pyloric stenosis, cryptorchidism syndrome
  • Pyloric antral stenosis
  • Pyloric atresia
  • Pyloric obstruction
  • Pyloric stenosis
  • Pylorospasm

Instructional NotesGuidance

Instructions from the official ICD-10-CM Tabular List that apply to Q40.0: its own notes plus those printed at Chapter 17. A note printed at a category, block or chapter applies to every code under it.

Applicable To

Conditions this code is used for: synonyms of the title or, for "other specified" codes, the conditions assigned to it. The list is not exhaustive.

  • Congenital constriction
  • Congenital hypertrophy
  • Congenital spasm
  • Congenital stenosis
  • Congenital stricture

Excludes2

Not included here: the excluded condition is not part of this code, but a patient may have both, so both codes may be reported.

From Chapter 17 (Q00-QA1) Congenital malformations, deformations and chromosomal abnormalities applies to 900 codes
  • inborn errors of metabolism (E70-E88)

Notes

General instructions on how these codes are used.

From Chapter 17 (Q00-QA1) Congenital malformations, deformations and chromosomal abnormalities applies to 900 codes
  • Codes from this chapter are not for use on maternal records

Source: CMS ICD-10-CM Tabular List. How to read instructional notes.

Referenced in Other NotesGuidance

Instructional notes printed at other codes that name Q40.0, its category, or a range that includes it.

Excludes1 3

These codes carry an Excludes1 note naming Q40.0: they are not reported together with it, unless the two conditions are unrelated.

  • K31.1 Adult hypertrophic pyloric stenosis
    congenital pyloric stenosis (Q40.0)
  • K31.3 Pylorospasm, not elsewhere classified
    congenital or infantile pylorospasm (Q40.0)
  • K31.B Hypertrophic pyloric stenosis, in childhood
    congenital pyloric stenosis (Q40.0)

Excludes2 1

These codes carry an Excludes2 note naming Q40.0: its condition is not part of those codes, and both may be reported when the patient has both.

  • Block R10-R19 Symptoms and signs involving the digestive system and abdomen
    congenital or infantile pylorospasm (Q40.0)

Index to Diseases and InjuriesGuidance

Clinical ClassificationClinical

AHRQ’s CCSR groups this code into broader clinical categories.

CCSR MAL002
Digestive congenital anomalies
Default principal diagnosis: inpatient Yes · outpatient Yes

Patient EducationClinical

Birth Defects

A birth defect is a problem that happens while a baby is developing in the mother's body. Most birth defects happen during the first 3 months of pregnancy. One out of every 33 babies in the United States is born with a birth defect.

The full article covers:

  • What are birth defects?
  • What causes birth defects?
  • Who is at risk of having a baby with birth defects?
  • How are birth defects diagnosed?
  • What are the treatments for birth defects?
  • Can birth defects be prevented?

Read the full article at MedlinePlus

Courtesy of MedlinePlus, a service of the U.S. National Library of Medicine.

Convert Q40.0 to ICD-9-CMHistory

The closest ICD-9-CM equivalents under the General Equivalence Mappings.

ICD-9-CM
750.5 Cong pyloric stenosis
Exact Match The mapping is direct, with no qualifiers.

Code History & ChangesHistory

Replaced This code was replaced in the FY 2027 code set by:

  • K31.B - Hypertrophic pyloric stenosis, in childhood
FY 2016AddedAdded to the ICD-10-CM code setEffective October 1, 2015, the first year of ICD-10-CM.
FY 2017–2026No changes
FY 2027CurrentExpanded into more specific codes in the current code setEffective October 1, 2026 through September 30, 2027.

Questions About Q40.0Overview

What is the ICD-10 code for congenital hypertrophic pyloric stenosis?

The ICD-10-CM code for congenital hypertrophic pyloric stenosis is Q40.0 (sometimes written as Q400). It is billable on HIPAA-covered claims from October 1, 2026 through September 30, 2027.

Is Q40.0 (Other congenital malformations of upper alimentary tract) a billable code?

Yes. This is a billable ICD-10-CM code, specific enough to report congenital hypertrophic pyloric stenosis on HIPAA-covered claims from October 1, 2026 through September 30, 2027.

What MS-DRG does Q40.0 group to?

When congenital hypertrophic pyloric stenosis is the principal diagnosis on an inpatient stay, it groups to MS-DRG 394, 395, 393, with relative weights from 0.6379 to 1.5877 depending on complications. Higher weights mean higher Medicare reimbursement.

Is Q40.0 exempt from POA reporting?

Yes. CMS lists this code among those exempt from present on admission reporting, so hospitals do not assign a POA indicator for congenital hypertrophic pyloric stenosis on inpatient claims. The code appears in the Other congenital malformations of the digestive system (Q38-Q45) range of the CMS exempt list.

What is the ICD-9 equivalent of Q40.0?

Under the General Equivalence Mappings, congenital hypertrophic pyloric stenosis converts to ICD-9-CM 750.5 (cong pyloric stenosis). The mapping is a direct match.

What HCC is Q40.0?

Q40.0 (congenital hypertrophic pyloric stenosis) maps to CMS-HCC Category 78 (Intestinal Obstruction/Perforation), commonly written as HCC 78, in the CMS-HCC V28 model used for Medicare Advantage risk adjustment in payment year 2027. It does not map to any RxHCC in the Part D prescription drug model.

Does Q40.0 risk-adjust for Medicare Advantage payment?

Yes. When documented and reported on a Medicare Advantage encounter, Q40.0 adds a risk adjustment factor of about 0.326 to the beneficiary's RAF score for a community, non-dual, aged enrollee (published V28 weights range from 0.326 to 0.688 depending on the payment segment). A more severe related category (HCC 77) supersedes it when both are reported. See the full factor table on the HCC 78 category page.