2027 ICD-10-CM Diagnosis Code O04.87Sepsis following (induced) termination of pregnancy
ICD-10-CM Codes›O00-O9A›O00-O08›induced
- Billable — Valid for Submission
- CC — Complication or Comorbidity
- Not Chronic
O04.87 is a billable ICD-10-CM diagnosis code for sepsis following (induced) 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 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 induced termination of pregnancy complicated by infectious disease. In AHRQ's Clinical Classifications Software (CCSR), this diagnosis falls under Induced abortion and complications of termination of pregnancy and Septicemia.
Code Identity
Code Classification
Code EditsBilling
Medicare Code Editor checks that affect claim validity for O04.87.
Approximate SynonymsGuidance
Alternate terms and clinical phrases that map to this code.
- Induced termination of pregnancy complicated by infectious disease
- Induced termination of pregnancy complicated by postoperative shock
- Induced termination of pregnancy complicated by septic shock
- Induced termination of pregnancy complicated by shock
- Induced termination of pregnancy complicated by tetanus
- Postprocedural septic shock
- Sepsis following induced termination of pregnancy
Instructional NotesGuidance
Instructions from the official ICD-10-CM Tabular List that apply to O04.87: its own notes plus those printed at O04, 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.
- complications following (induced) termination of pregnancy
Excludes1
Not coded here: the excluded code is never reported together with this one, unless the two conditions are unrelated.
- septic or septicopyemic embolism following (induced) termination of pregnancy (O04.7)
- 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.
Use Additional Code
Add a second code, after this one, to fully describe the condition.
- 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.
- 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 O04.87, its category, or a range that includes it.
Excludes1 13
These codes carry an Excludes1 note naming O04.87: they are not reported together with it, unless the two conditions are unrelated.
- O04.5 Genital tract and pelvic infection following (induced) termination of pregnancysepsis following (induced) termination of pregnancy (O04.87)
- O04.81 Shock following (induced) termination of pregnancyshock due to infection following (induced) termination of pregnancy (O04.87)
- G08 Intracranial and intraspinal phlebitis and thrombophlebitis
- K65 Peritonitis
- Block N70-N77 Inflammatory diseases of female pelvic organs
- R34 Anuria and oliguria
- R55 Syncope and collapse
- R57 Shock, not elsewhere classified
- T79.0 Air embolism (traumatic)
- T79.1 Fat embolism (traumatic)
- T79.4 Traumatic shock
- T81.1 Postprocedural shock
- T81.7 Vascular complications following a procedure, not elsewhere classified
Excludes2 6
These codes carry an Excludes2 note naming O04.87: its condition is not part of those codes, and both may be reported when the patient has both.
- D65 Disseminated intravascular coagulation [defibrination syndrome]
- D68 Other coagulation defects
- I26 Pulmonary embolism
- K72 Hepatic failure, not elsewhere classified
- Block N17-N19 Acute kidney failure and chronic kidney disease
- Block N30-N39 Other diseases of the urinary system
Code First 9
These codes say to code first a condition named in the note, and O04.87 is one of the conditions named.
- A40 Streptococcal sepsisstreptococcal sepsis following abortion or ectopic or molar pregnancy (O03.37, O03.87, O04.87, O07.37, O08.82)
- A41 Other sepsissepsis following abortion, ectopic or molar pregnancy (O03.37, O03.87, O04.87, O07.37, O08.82)
- R65.2 Severe sepsissepsis following (induced) termination of pregnancy (O04.87)
- I47 Paroxysmal tachycardia
- I49 Other cardiac arrhythmias
- I50 Heart failure
- I74 Arterial embolism and thrombosis
- I80 Phlebitis and thrombophlebitis
- I82 Other venous embolism and thrombosis
Index to Diseases and InjuriesGuidance
Alphabetical index entries that point to this code.
Clinical ClassificationClinical
AHRQ’s CCSR groups this code into broader clinical categories.
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 O04.87 to ICD-9-CMHistory
The closest ICD-9-CM equivalents under the General Equivalence Mappings.
Code HistoryHistory
Questions About O04.87Overview
What is the ICD-10 code for sepsis following (induced) termination of pregnancy?
The ICD-10-CM code for sepsis following (induced) termination of pregnancy is O04.87 (sometimes written as O0487). It is billable on HIPAA-covered claims from October 1, 2026 through September 30, 2027.
Is O04.87 a billable code?
Yes. This is a billable ICD-10-CM code, specific enough to report sepsis following (induced) termination of pregnancy on HIPAA-covered claims from October 1, 2026 through September 30, 2027.
What MS-DRG does O04.87 group to?
When sepsis following (induced) 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 O04.87 a CC or MCC?
CMS lists O04.87 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 O04.87 be reported for?
The Medicare Code Editor checks sepsis following (induced) 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.