5.3 Perinatal Conditions & Congenital Malformations

Key Takeaways

  • Chapter 16 codes (P00–P96) represent conditions originating in the perinatal period (before birth through 28 days post-birth) and may be reported throughout the patient's entire lifespan if the condition originated perinatally.
  • Category Z38 (Liveborn infants according to place of birth and delivery type) is the mandatory principal diagnosis on the infant's initial birth record, but is never assigned on transfer records or readmissions.
  • When coding low birth weight and prematurity, codes from category P07.0/P07.1 (Birth weight) must be sequenced before category P07.2/P07.3 (Gestational age).
  • Congenital malformations (Chapter 17, Q00–Q99) represent developmental defects present at birth and may be reported on infant, pediatric, or adult charts whenever the defect remains active or unrepaired.
Last updated: August 2026

Perinatal Conditions & Congenital Malformations

AHIMA CCS Exam Focus: Pediatric and perinatal coding requires navigating two distinct ICD-10-CM chapters: Chapter 16 (P-codes) for conditions originating during the perinatal period (birth through 28 days), and Chapter 17 (Q-codes) for congenital malformations, deformations, and chromosomal abnormalities present at birth. On the CCS exam, candidates must master newborn birth admission sequencing (Z38), birth weight and gestational age coding hierarchy, neonatal respiratory distress, sepsis, hypoxic-ischemic encephalopathy, and congenital cardiovascular malformations.


1. Perinatal Period (Chapter 16) vs. Congenital Anomalies (Chapter 17)

Understanding the boundary between Chapter 16 and Chapter 17 is fundamental to compliant coding:

                                  CHAPTER 16 VS. CHAPTER 17 DISTINCTION
                                                    │
               ┌────────────────────────────────────┴────────────────────────────────────┐
               ▼                                                                         ▼
   [Chapter 16: P-Codes (P00–P96)]                           [Chapter 17: Q-Codes (Q00–Q99)]
   • Conditions originating in perinatal period               • Structural defects / chromosomal anomalies
   • Perinatal = before birth through 28 days post-birth     • Present at birth (congenital etiology)
   • Usable throughout entire lifetime if origin perinatally • Usable throughout entire lifetime if unrepaired/active

The Lifespan Rule for Chapter 16 Codes (Section I.C.16.a.1)

  • Origin Determines Code Selection: Chapter 16 codes are assigned for conditions that have their origin in the perinatal period, even if the patient's treatment, hospitalization, or death occurs days, months, or years later.
  • Example: A 14-year-old child admitted for an acute exacerbation of bronchopulmonary dysplasia originating in the perinatal period is assigned code P27.1, despite the patient being well beyond the 28-day neonatal period.
  • Maternal Record Prohibition: Chapter 16 codes are assigned to the patient whose condition originated in the perinatal period, never to the maternal record merely because of the delivery; qualifying P-codes may remain applicable later in life.

2. Newborn Birth Admission Coding (Section I.C.16.a.2)

On the initial birth record of a newborn infant delivered in a hospital facility, official guidelines establish strict sequencing:

                     NEWBORN BIRTH ADMISSION CODING ARCHITECTURE
                                         │
                                         ▼
                  [Principal Diagnosis: Category Z38 Code]
                  • Z38.00 (Single liveborn, vaginal delivery)
                  • Z38.01 (Single liveborn, cesarean delivery)
                  • Z38.30 (Twin liveborn, born in hospital)
                                         │
                                         ▼
                  [Secondary Diagnosis 1: Birth Weight (P07.0/P07.1)]
                                         │
                                         ▼
                  [Secondary Diagnosis 2: Gestational Age (P07.2/P07.3)]
                                         │
                                         ▼
                  [Secondary Diagnosis 3: Acute Neonatal Pathologies]
                  (RDS, Neonatal Sepsis, Jaundice, Birth Injuries)

Category Z38 Guidelines

  1. Principal Diagnosis Mandate: A code from category Z38 (Liveborn infants according to place of birth and type of delivery) is always sequenced as the Principal Diagnosis on the initial birth record.
  2. Birth Record Only: Category Z38 is assigned only on the initial episode of care where birth occurs. If the infant is transferred to another hospital, discharged and readmitted, or evaluated in an outpatient clinic, Z38 is never assigned. On transfer or readmission records, the specific acute neonatal condition causing the admission (e.g., neonatal sepsis, hyperbilirubinemia) is the Principal Diagnosis.
  3. Prematurity & Birth Weight Sequencing Rule: When both birth weight (category P07.0 or P07.1) and gestational age (category P07.2 or P07.3) codes are reported, the birth weight code is sequenced BEFORE the gestational age code.

3. High-Frequency Perinatal Pathologies (Chapter 16)

Neonatal Respiratory Distress Syndrome vs. TTN

  • Respiratory Distress Syndrome (RDS / P22.0): Caused by developmental deficiency of pulmonary surfactant in premature infants, resulting in diffuse alveolar atelectasis, grunting, retractions, and ground-glass appearance on chest X-ray.
  • Transient Tachypnea of the Newborn (TTN / P22.1): Delayed clearance of fetal lung fluid following delivery, commonly seen in infants delivered via cesarean section without labor. Typically benign and resolves within 24–72 hours.
  • Meconium Aspiration Syndrome (P24.01): Aspiration of meconium-stained amniotic fluid causing chemical pneumonitis and mechanical airway obstruction.

Neonatal Sepsis (Category P36)

Clinical EntityICD-10-CM Coding & Sequencing
Confirmed Bacterial Neonatal SepsisAssign code from category P36 (Bacterial sepsis of newborn), specifying organism (e.g., P36.0 for Group B Streptococcus, P36.10 for E. coli).
Severe Sepsis in Neonate1. P36.- (Specific neonatal sepsis code as PDX)<br/>2. R65.2- (Severe sepsis)<br/>3. Specific acute organ failure codes (e.g., P22.0, R40.20).
Suspected Sepsis Ruled Out (Prophylactic Antibiotics)Assign P00.2 (Newborn affected by maternal infectious and parasitic diseases) or Z05.1 (Observation and evaluation of newborn for suspected infectious condition ruled out). Do not code P36.- if sepsis is ruled out.

Neonatal Hyperbilirubinemia (Jaundice)

  • Isoimmunization Jaundice: Caused by maternal-fetal blood incompatibility:
    • P55.0: Rh isoimmunization of newborn (erythroblastosis fetalis)
    • P55.1: ABO isoimmunization of newborn
  • Physiological & Prematurity Jaundice:
    • P59.0: Neonatal jaundice associated with preterm delivery
    • P59.9: Neonatal jaundice, unspecified

Hypoxic-Ischemic Encephalopathy (HIE / Category P91.6)

  • Hypoxic-ischemic encephalopathy represents acute perinatal brain injury resulting from systemic asphyxia or impaired cerebral blood flow:
    • P91.60: Hypoxic-ischemic encephalopathy [HIE], unspecified
    • P91.61: Mild HIE (hyperalert, jittery, normal EEG)
    • P91.62: Moderate HIE (lethargic, hypotonic, seizures present)
    • P91.63: Severe HIE (stupor/coma, flaccid, absent reflexes, refractory seizures)
  • Therapeutic Hypothermia: If the infant receives whole-body cooling for neuroprotection, capture the appropriate ICD-10-PCS therapeutic cooling procedure code alongside the HIE diagnosis.

4. Congenital Malformations, Deformations & Chromosomal Abnormalities (Chapter 17)

Chapter 17 codes (Q00Q99) describe congenital structural anomalies present at birth.

                     COMMON CONGENITAL CARDIOVASCULAR ANOMALIES
                                         │
        ┌────────────────────────────────┼────────────────────────────────┐
        ▼                                ▼                                ▼
  [Patent Ductus]             [Ventricular Septal]              [Tetralogy of Fallot]
    [Arteriosus]                    [Defect]                           (Q21.3)
      (Q25.0)                       (Q21.0)                     • Ventricular Septal Defect
• Failure of ductus           • Acyanotic left-to-right         • Pulmonary Infundibular Stenosis
  arteriosus to close           shunt through septum            • Overriding Aorta
  post-delivery                                                 • Right Ventricular Hypertrophy

Rules for Coding Congenital Anomalies Across the Lifespan

  1. Active vs. Repaired Congenital Anomalies:
    • Unrepaired Anomaly: If a congenital anomaly has not been surgically corrected, assign the Q-code whenever the patient is treated for or evaluated for the condition, regardless of the patient's age (infant, child, or adult).
    • Repaired Anomaly with Residual Defect: If an anomaly was previously repaired but a residual defect or hemodynamic complication persists, report the Q-code or appropriate post-procedural complication code.
    • Completely Repaired Anomaly with No Residual: If an anomaly was successfully repaired in infancy and the patient has no active manifestations or residual structural defect, do not assign the Q-code. Assign a personal history code (e.g., Z87.7- Personal history of congenital malformations) if applicable.
  2. Adult Admissions for Congenital Defects:
    • When an adult patient is admitted for initial surgical repair or catheter-based closure of an adult congenital heart defect (e.g., adult repair of patent foramen ovale Q21.12 or coarctation of aorta Q25.1), the Q-code is sequenced as the Principal Diagnosis.
Test Your Knowledge

A premature infant is delivered in the hospital via cesarean section at 31 completed weeks of gestation, weighing 1,350 grams. Following delivery, the infant develops tachypnea, nasal flaring, and intercostal retractions, with chest radiography demonstrating diffuse ground-glass reticulogranular infiltrates. The neonatologist documents 'preterm infant, birth weight 1,350 g, gestational age 31 weeks, severe neonatal respiratory distress syndrome.' How should this birth record be coded and sequenced?

A
B
C
D
Test Your Knowledge

A 4-day-old infant who was discharged home following a normal spontaneous vaginal delivery is brought to the emergency department by his parents due to lethargy, poor feeding, and high-pitched crying. The infant is admitted to the neonatal intensive care unit (NICU). Blood cultures are positive for Group B Streptococcus (GBS), and the physician documents 'neonatal sepsis due to Group B Streptococcus.' How should the principal diagnosis be coded for this admission?

A
B
C
D
Test Your Knowledge

A 24-year-old male is admitted to the cardiac surgical service for elective repair of an unrepaired congenital ventricular septal defect (VSD). Transthoracic echocardiogram confirms a large perimembranous VSD with significant left-to-right shunting. The patient successfully undergoes open surgical patch closure of the defect. What is the correct principal diagnosis code?

A
B
C
D