2027 ICD-10-CM Diagnosis Code O07.0Genital tract and pelvic infection following failed attempted termination of pregnancy

ICD-10-CM Codes›O00-O9A›O00-O08›O07

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

O07.0 is a billable ICD-10-CM diagnosis code for genital tract and pelvic infection following failed attempted termination of pregnancy. It is valid on HIPAA claims for fiscal year 2027 (October 1, 2026 through September 30, 2027) and groups to MS-DRG 770, 779. As a secondary diagnosis, it counts as a complication or comorbidity (CC) and moves an inpatient stay to a higher severity level within its MS-DRG family. It does not count, however, when the principal diagnosis is one of 305 closely related codes. The code is restricted by the Medicare Code Editor to maternity cases (age 9 through 64). In AHRQ's Clinical Classifications Software (CCSR), this diagnosis falls under Induced abortion and complications of termination of pregnancy.

Code Identity

ICD-10-CM Code
O07.0
Billable Status
Yes — Valid for Submission
Code Describes
Genital tract and pelvic infection following failed attempted termination of pregnancy
Short Description
Genitl trct and pelvic infct fol failed attempt term of preg
Parent Code
Failed attempted termination of pregnancy

Code Classification

ChapterO00-O9APregnancy, childbirth and the puerperium
SectionO00-O08Pregnancy with abortive outcome
CategoryO07Failed attempted termination of pregnancy
This CodeO07.0Genital tract and pelvic infection following failed attempted termination of pregnancy

Code EditsBilling

Medicare Code Editor checks that affect claim validity for O07.0.

The Medicare Code Editor detects inconsistencies in maternity cases by checking a patient's age and any diagnosis on the patient's record. The maternity code edits apply to patients age ange is 9–64 years inclusive (e.g., diabetes in pregnancy, antepartum pulmonary complication).

Approximate SynonymsGuidance

Alternate terms and clinical phrases that map to this code.

  • Failed attempted medical termination of pregnancy
  • Failed attempted termination of pregnancy complicated by genital-pelvic infection
  • Failed attempted termination of pregnancy with endometritis
  • Failed attempted termination of pregnancy with genital tract or pelvic infection
  • Failed attempted termination of pregnancy with parametritis
  • Failed attempted termination of pregnancy with pelvic peritonitis
  • Failed attempted termination of pregnancy with salpingitis
  • Failed attempted termination of pregnancy with salpingo-oophoritis
  • Failed medical termination of pregnancy, complicated by genital tract or pelvic infection
  • Genital tract infection due to incomplete induced termination of pregnancy
  • Infection of ovary
  • Parametritis
  • Pelvic peritonitis
  • Tubo-ovarian inflammatory disease

Instructional NotesGuidance

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

Includes

Further defines, or gives examples of, the content of the category.

From O07 Failed attempted termination of pregnancy applies to 14 codes
  • failure of attempted induction of termination of pregnancy
  • incomplete elective abortion

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.

  • Endometritis following failed attempted termination of pregnancy
  • Oophoritis following failed attempted termination of pregnancy
  • Parametritis following failed attempted termination of pregnancy
  • Pelvic peritonitis following failed attempted termination of pregnancy
  • Salpingitis following failed attempted termination of pregnancy
  • Salpingo-oophoritis following failed attempted termination of pregnancy

Excludes1

Not coded here: the excluded code is never reported together with this one, unless the two conditions are unrelated.

On O07.0 itself
  • sepsis following failed attempted termination of pregnancy (O07.37)
  • urinary tract infection following failed attempted termination of pregnancy (O07.38)
From O07 Failed attempted termination of pregnancy applies to 14 codes
  • incomplete spontaneous abortion (O03.0-)
From Block O00-O08 Pregnancy with abortive outcome applies to 110 codes
  • continuing pregnancy in multiple gestation after abortion of one fetus or more (O31.1-, O31.3-)
From Chapter 15 (O00-O9A) Pregnancy, childbirth and the puerperium applies to 2,481 codes
  • supervision of normal pregnancy (Z34.-)

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 15 (O00-O9A) Pregnancy, childbirth and the puerperium applies to 2,481 codes
  • mental and behavioral disorders associated with the puerperium (F53.-)
  • obstetrical tetanus (A34)
  • postpartum necrosis of pituitary gland (E23.0)
  • puerperal osteomalacia (M83.0)

Use Additional Code

Add a second code, after this one, to fully describe the condition.

From Chapter 15 (O00-O9A) Pregnancy, childbirth and the puerperium applies to 2,481 codes
  • code, if applicable, from category Z3A, Weeks of gestation, to identify the specific week of the pregnancy, if known.

Notes

General instructions on how these codes are used.

From Chapter 15 (O00-O9A) Pregnancy, childbirth and the puerperium applies to 2,481 codes
  • CODES FROM THIS CHAPTER ARE FOR USE ONLY ON MATERNAL RECORDS, NEVER ON NEWBORN RECORDS
  • Codes from this chapter are for use for conditions related to or aggravated by the pregnancy, childbirth, or by the puerperium (maternal causes or obstetric causes)
  • Trimesters are counted from the first day of the last menstrual period. They are defined as follows:
  • 1st trimester- less than 14 weeks 0 days
  • 2nd trimester- 14 weeks 0 days to less than 28 weeks 0 days
  • 3rd trimester- 28 weeks 0 days until delivery

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

Referenced in Other NotesGuidance

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

Excludes1 12

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

  • O02.1 Missed abortion
    failed induced abortion (O07.-) names O07.-, which includes this code
  • G08 Intracranial and intraspinal phlebitis and thrombophlebitis
    abortion, ectopic or molar pregnancy (O00-O07, O08.7) names O00-O07, which includes this code
  • K65 Peritonitis
    peritonitis with or following abortion or ectopic or molar pregnancy (O00-O07, O08.0) names O00-O07, which includes this code
  • Block N70-N77 Inflammatory diseases of female pelvic organs
    abortion or ectopic or molar pregnancy (O00-O07, O08.0) names O00-O07, which includes this code
  • R34 Anuria and oliguria
    anuria and oliguria complicating abortion or ectopic or molar pregnancy (O00-O07, O08.4) names O00-O07, which includes this code
  • R55 Syncope and collapse
    shock complicating or following abortion or ectopic or molar pregnancy (O00-O07, O08.3) names O00-O07, which includes this code
  • R57 Shock, not elsewhere classified
    shock complicating or following ectopic or molar pregnancy (O00-O07, O08.3) names O00-O07, which includes this code
  • T79.0 Air embolism (traumatic)
    air embolism complicating abortion or ectopic or molar pregnancy (O00-O07, O08.2) names O00-O07, which includes this code
  • T79.1 Fat embolism (traumatic)
    abortion or ectopic or molar pregnancy (O00-O07, O08.2) names O00-O07, which includes this code
  • T79.4 Traumatic shock
    shock complicating abortion or ectopic or molar pregnancy (O00-O07, O08.3) names O00-O07, which includes this code
  • T81.1 Postprocedural shock
    shock following abortion or ectopic or molar pregnancy (O00-O07, O08.3) names O00-O07, which includes this code
  • T81.7 Vascular complications following a procedure, not elsewhere classified
    embolism complicating abortion or ectopic or molar pregnancy (O00-O07, O08.2) names O00-O07, which includes this code

Excludes2 7

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

  • O04 Complications following (induced) termination of pregnancy
    failed attempted termination of pregnancy (O07.-) names O07.-, which includes this code
  • D65 Disseminated intravascular coagulation [defibrination syndrome]
    abortion or ectopic or molar pregnancy (O00-O07, O08.1) names O00-O07, which includes this code
  • D68 Other coagulation defects
    coagulation defects complicating abortion or ectopic or molar pregnancy (O00-O07, O08.1) names O00-O07, which includes this code
  • I26 Pulmonary embolism
    pulmonary embolism complicating abortion, ectopic or molar pregnancy (O00-O07, O08.2) names O00-O07, which includes this code
  • K72 Hepatic failure, not elsewhere classified
    hepatic failure complicating abortion or ectopic or molar pregnancy (O00-O07, O08.8) names O00-O07, which includes this code
  • Block N17-N19 Acute kidney failure and chronic kidney disease
    renal failure complicating abortion or ectopic or molar pregnancy (O00-O07, O08.4) names O00-O07, which includes this code
  • Block N30-N39 Other diseases of the urinary system
    abortion or ectopic or molar pregnancy (O00-O07, O08.8) names O00-O07, which includes this code

Code First 6

These codes say to code first a condition named in the note, and O07.0 is one of the conditions named.

  • I47 Paroxysmal tachycardia
    abortion or ectopic or molar pregnancy (O00-O07, O08.8) names O00-O07, which includes this code
  • I49 Other cardiac arrhythmias
    abortion or ectopic or molar pregnancy (O00-O07, O08.8) names O00-O07, which includes this code
  • I50 Heart failure
    heart failure complicating abortion or ectopic or molar pregnancy (O00-O07, O08.8) names O00-O07, which includes this code
  • I74 Arterial embolism and thrombosis
    embolism and thrombosis complicating abortion or ectopic or molar pregnancy (O00-O07, O08.2) names O00-O07, which includes this code
  • I80 Phlebitis and thrombophlebitis
    if applicable: phlebitis and thrombophlebitis complicating abortion, ectopic or molar pregnancy (O00-O07, O08.7) names O00-O07, which includes this code
  • I82 Other venous embolism and thrombosis
    abortion, ectopic or molar pregnancy (O00-O07, O08.7) names O00-O07, which includes this code

Index to Diseases and InjuriesGuidance

Clinical ClassificationClinical

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

CCSR PRG004
Induced abortion and complications of termination of pregnancy
Default principal diagnosis: inpatient Yes · outpatient Yes

Patient EducationClinical

Abortion

An induced abortion is a procedure to end a pregnancy. It can be done two different ways:

Read the full article at MedlinePlus

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

Convert O07.0 to ICD-9-CMHistory

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

ICD-9-CM
638.0 Attem abort w pelvic inf
Approximate The match is approximate rather than exact.

Code HistoryHistory

FY 2016AddedAdded to the ICD-10-CM code setEffective October 1, 2015, the first year of ICD-10-CM.
FY 2017–2026No changes
FY 2027CurrentCurrent code set, no changesEffective October 1, 2026 through September 30, 2027.

Questions About O07.0Overview

Is O07.0 (Failed attempted termination of pregnancy) a billable code?

Yes. This is a billable ICD-10-CM code, specific enough to report genital tract and pelvic infection following failed attempted termination of pregnancy on HIPAA-covered claims from October 1, 2026 through September 30, 2027.

What MS-DRG does O07.0 group to?

When genital tract and pelvic infection following failed attempted termination of pregnancy is the principal diagnosis on an inpatient stay, it groups to MS-DRG 779, 770, with relative weights from 1.0198 to 1.0987 depending on complications. Higher weights mean higher Medicare reimbursement.

Is O07.0 a CC or MCC?

CMS lists O07.0 as a CC (complication or comorbidity) for FY 2027. Reported as a secondary diagnosis, it moves the inpatient stay to a higher-weighted DRG within its severity family. It does not count when the principal diagnosis is one of the 305 closely related codes in its exclusion list.

Who can O07.0 be reported for?

The Medicare Code Editor checks genital tract and pelvic infection following failed attempted termination of pregnancy against patient demographics: this code is intended for maternity cases (age 9 through 64). Claims outside these limits are flagged as inconsistent.

Can O07.0 be reported with O07.37?

Not as a rule. The Excludes1 note on O07.0 lists "sepsis following failed attempted termination of pregnancy (O07.37)". An Excludes1 note means the excluded code is never reported together with this one; the only exception is when the two conditions are unrelated to each other (Official Guidelines, Section I.A.12.a).