2027 ICD-10-CM Diagnosis Code O08.5Metabolic disorders following an ectopic and molar pregnancy

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

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

O08.5 is a billable ICD-10-CM diagnosis code for metabolic disorders following an ectopic and molar pregnancy. It is valid on HIPAA claims for fiscal year 2027 (October 1, 2026 through September 30, 2027) and groups to MS-DRG 769, 776. 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 265 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 electrolyte imbalance following ectopic pregnancy. In AHRQ's Clinical Classifications Software (CCSR), this diagnosis falls under Complications following ectopic and/or molar pregnancy.

Code Identity

ICD-10-CM Code
O08.5
Billable Status
Yes — Valid for Submission
Code Describes
Metabolic disorders following an ectopic and molar pregnancy
Short Description
Metabolic disorders following an ectopic and molar pregnancy
Same as the full description in the CMS dataset.
Parent Code
Complications following ectopic and molar pregnancy

Code Classification

ChapterO00-O9APregnancy, childbirth and the puerperium
SectionO00-O08Pregnancy with abortive outcome
CategoryO08Complications following ectopic and molar pregnancy
This CodeO08.5Metabolic disorders following an ectopic and molar pregnancy

Code EditsBilling

Medicare Code Editor checks that affect claim validity for O08.5.

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.

  • Electrolyte imbalance following ectopic pregnancy
  • Electrolyte imbalance following molar pregnancy
  • Metabolic disorder following ectopic pregnancy
  • Metabolic disorder following molar pregnancy

Instructional NotesGuidance

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

Excludes1

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

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

Excludes1 1

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

  • E87 Other disorders of fluid, electrolyte and acid-base balance
    electrolyte imbalance following ectopic or molar pregnancy (O08.5)

Use Additional Code 3

These codes say to use an additional code from the note, and O08.5 is one of the codes named.

  • O00 Ectopic pregnancy
    code from category O08 to identify any associated complication names O08, which includes this code
  • O01 Hydatidiform mole
    code from category O08 to identify any associated complication. names O08, which includes this code
  • O02 Other abnormal products of conception
    code from category O08 to identify any associated complication. names O08, which includes this code

Index to Diseases and InjuriesGuidance

Clinical ClassificationClinical

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

CCSR PRG007
Complications following ectopic and/or molar pregnancy
Default principal diagnosis: inpatient Yes · outpatient Yes

Patient EducationClinical

Ectopic Pregnancy

The uterus, or womb, is the place where a fetus grows during pregnancy. In an ectopic pregnancy, the fertilized egg grows in the wrong place outside the uterus. It usually occurs in the fallopian tubes. These tubes carry eggs from the ovaries to the uterus.

The full article covers:

  • What is an ectopic pregnancy?
  • What increases my risk of an ectopic pregnancy?
  • What are the symptoms of an ectopic pregnancy?
  • How is an ectopic pregnancy diagnosed?
  • What is the treatment for an ectopic pregnancy?

Read the full article at MedlinePlus

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

Convert O08.5 to ICD-9-CMHistory

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

ICD-9-CM
639.4 Postabort metabolic dis
Exact Match The mapping is direct, with no qualifiers.

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 O08.5Overview

What is the ICD-10 code for metabolic disorders following an ectopic and molar pregnancy?

The ICD-10-CM code for metabolic disorders following an ectopic and molar pregnancy is O08.5 (sometimes written as O085). It is billable on HIPAA-covered claims from October 1, 2026 through September 30, 2027.

Is O08.5 (Complications following ectopic and molar pregnancy) a billable code?

Yes. This is a billable ICD-10-CM code, specific enough to report metabolic disorders following an ectopic and molar pregnancy on HIPAA-covered claims from October 1, 2026 through September 30, 2027.

What MS-DRG does O08.5 group to?

When metabolic disorders following an ectopic and molar pregnancy is the principal diagnosis on an inpatient stay, it groups to MS-DRG 769, 776, with relative weights from 0.6718 to 1.6666 depending on complications. Higher weights mean higher Medicare reimbursement.

Is O08.5 a CC or MCC?

CMS lists O08.5 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 265 closely related codes in its exclusion list.

Who can O08.5 be reported for?

The Medicare Code Editor checks metabolic disorders following an ectopic and molar pregnancy against patient demographics: this code is intended for maternity cases (age 9 through 64). Claims outside these limits are flagged as inconsistent.