2027 ICD-10-CM Diagnosis Code O07.39Failed attempted termination of pregnancy with other complications

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

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

O07.39 is a billable ICD-10-CM diagnosis code for failed attempted termination of pregnancy with other complications. 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 311 closely related codes. The code is restricted by the Medicare Code Editor to maternity cases (age 9 through 64). Coders also document this condition as acute necrosis of liver. 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.39
Billable Status
Yes — Valid for Submission
Code Describes
Failed attempted termination of pregnancy with other complications
Short Description
Failed attempted termination of pregnancy w oth comp
Parent Code
Failed attempted termination of pregnancy with other and unspecified complications

Code Classification

ChapterO00-O9APregnancy, childbirth and the puerperium
SectionO00-O08Pregnancy with abortive outcome
CategoryO07Failed attempted termination of pregnancy
This CodeO07.39Failed attempted termination of pregnancy with other complications

Code EditsBilling

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

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.

  • Acute necrosis of liver
  • Anoxia of brain
  • Failed attempted termination of pregnancy complicated by acute necrosis of liver
  • Failed attempted termination of pregnancy with cerebral anoxia
  • Failed attempted termination of pregnancy with electrolyte imbalance
  • Oxygen supply absent

Instructional NotesGuidance

Instructions from the official ICD-10-CM Tabular List that apply to O07.39: 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

Excludes1

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

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.39, its category, or a range that includes it.

Excludes1 12

These codes carry an Excludes1 note naming O07.39: 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.39: 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.39 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.39 to ICD-9-CMHistory

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

ICD-9-CM
638.7 Attemp abort w compl NEC
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.39Overview

What is the ICD-10 code for failed attempted termination of pregnancy with other complications?

The ICD-10-CM code for failed attempted termination of pregnancy with other complications is O07.39 (sometimes written as O0739). It is billable on HIPAA-covered claims from October 1, 2026 through September 30, 2027.

Is O07.39 a billable code?

Yes. This is a billable ICD-10-CM code, specific enough to report failed attempted termination of pregnancy with other complications on HIPAA-covered claims from October 1, 2026 through September 30, 2027.

What MS-DRG does O07.39 group to?

When failed attempted termination of pregnancy with other complications 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.39 a CC or MCC?

CMS lists O07.39 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 311 closely related codes in its exclusion list.

Who can O07.39 be reported for?

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