Skip to main content

O04.87 vs O07

O04.87 (Sepsis following (induced) termination of pregnancy) compared with O07 (Failed attempted termination of pregnancy), from the official CMS tabular data.

Summary

These codes can be reported together when both conditions are documented, because O04.87 lists O07 under Excludes2, which marks them as distinct conditions.

Official rule
What is different?

Title wording and billing status.The titles share “termination of pregnancy”; O04.87 says “Sepsis following (induced)” where O07 says “Failed attempted”. O07 is a non-billable header; O04.87 is billable.

Registry fact

Can these codes be reported together?

Yes, when both are documented.O04.87 lists O07 under Excludes2: “failed attempted termination of pregnancy (O07.-)”. Excludes2 marks distinct conditions that may both be reported when both are documented.

Official ruleGuide: Excludes1 vs Excludes2

Is there an Excludes1 relationship?

None.Neither entry carries an Excludes1 note that names the other code. O04.87 carries 2 Excludes1 notes and O07 carries 2 Excludes1 notes covering other codes; the side-by-side table quotes them.

Official rule

Is there an Excludes2 relationship?

Yes.O04.87’s tabular entry: “failed attempted termination of pregnancy (O07.-)”. The note covers O07.

Official ruleGuide: Excludes1 vs Excludes2

Is one more specific?

Not comparable.The codes sit in different categories; specificity is only comparable within one category.

Is one a parent or header code?

One is a header.O07 is a non-billable header, but O04.87 is not one of its subdivisions.

Registry fact

Are there sequencing instructions?

None.Neither entry carries a Code First or Use Additional Code note that names the other.

Official rule

Are there other coding relationships?

None found.No laterality, encounter-phase, Table of Neoplasms, Table of Drugs and Chemicals, or history-versus-active-disease relationship links these codes.

MedCoder-derived

Official rule: a tabular instructional note or a section of the ICD-10-CM Official Guidelines, quoted as published. Registry fact: the codes’ own published attributes (titles, billable status, position in the hierarchy, code set). MedCoder-derived: a reading MedCoder computes from those facts; it is not itself a rule. How to read the labels

Can these codes be reported together?

Informational

Excludes2 relationship

O04.87
Sepsis following (induced) termination of pregnancy
↔
O07
Failed attempted termination of pregnancy

What we found

Yes, when both are documented.O04.87 carries an Excludes2 note covering O07: “failed attempted termination of pregnancy (O07.-)”

Excludes2 marks distinct conditions — both may be reported when both are documented.

What to review

Report both only when the documentation supports both conditions; otherwise report the one documented.

Guide: Excludes1 vs Excludes2Check these on a claim

Why it matters

An Excludes2 note means the excluded condition is not part of the code above it, but a patient can have both. Report both when both are documented.

Source / rule

CMS ICD-10-CM tabular instructional notes

Official guidance behind these answers

  • Section I.A.12.b — Excludes2 · applies to: Excludes2

    A type 2 Excludes note represents “Not included here.” An excludes2 note indicates that the condition excluded is not part of the condition represented by the code, but a patient may have both conditions at the same time. When an Excludes2 note appears under a code, it is acceptable to use both the code and the excluded code together, when appropriate.

    ICD-10-CM Official Guidelines FY2026

Quoted from the ICD-10-CM Official Guidelines for Coding and Reporting in effect for the release shown. The tabular notes above are the code-level instruction; these sections are the convention that says how such a note is applied. Source document (CMS PDF) · Release and checksum

Side by side

O04.87Sepsis following (induced) termination of pregnancyO07Failed attempted termination of pregnancy
Billing statusBillableNon-billable header

Report instead: O07.0, O07.1, O07.2, O07.30, O07.31

ClassificationO00-O9A — Pregnancy, Childbirth and the Puerperium (O00-O9A)O00-O9A — Pregnancy, Childbirth and the Puerperium (O00-O9A)
DefinitionSepsis following (induced) termination of pregnancy is a billable ICD-10-CM diagnosis code (O04.87).Failed attempted termination of pregnancy is a non-billable ICD-10-CM category code (O07).
Includes
complications following (induced) termination of pregnancy
failure of attempted induction of termination of pregnancy
incomplete elective abortion
Excludes1
septic or septicopyemic embolism following (induced) termination of pregnancy (O04.7)
continuing pregnancy in multiple gestation after abortion of one fetus or more (O31.1-, O31.3-)
incomplete spontaneous abortion (O03.0-)
continuing pregnancy in multiple gestation after abortion of one fetus or more (O31.1-, O31.3-)
Excludes2
encounter for elective termination of pregnancy (Z33.2)
failed attempted termination of pregnancy (O07.-)
—
Use additional code
code to identify infectious agent (B95-B97)
code to identify severe sepsis, if applicable (R65.2-)
—

Notes are the code’s own tabular entry, quoted as published. A note that names the other code is the one the verdict above rests on.

Derived from the official CMS ICD-10-CM tabular data (FY2027). A coding-rule comparison, not billing advice: payer-specific edits and medical-necessity policy are outside its scope. All data sources