Skip to content
Dx

ICD-10-CM 2027 diagnosis code

O87.2Hemorrhoids in the puerperium

O87.2 is a valid, billable ICD-10-CM code for hemorrhoids in the puerperium. It can be reported on claims for dates of service from October 1, 2026 – September 30, 2027.

Code unchanged since ICD-10-CM took effect on October 1, 2015. Source: official FY2027 ICD-10-CM release from CDC/NCHS and CMS. Page updated September 29, 2026. About our data

About O87.2

O87.2 is the ICD-10-CM diagnosis code for hemorrhoids in the puerperium. It belongs to category O87 (venous complications and hemorrhoids in the puerperium), block O85-O92 (complications predominantly related to the puerperium) and chapter 15 (pregnancy, childbirth and the puerperium). It is billable, so it can be reported on its own for dates of service from October 1, 2026 through September 30, 2027.

Within O87 (venous complications and hemorrhoids in the puerperium), O87.2 is specifically for hemorrhoids in the puerperium. Related codes cover superficial thrombophlebitis in the puerperium (O87.0), deep phlebothrombosis in the puerperium (O87.1), cerebral venous thrombosis in the puerperium (O87.3), varicose veins of lower extremity in the puerperium (O87.4), other venous complications in the puerperium (O87.8) and venous complication in the puerperium, unspecified (O87.9).

As a secondary diagnosis it is a CC (complication or comorbidity), which can move an inpatient stay into the "with CC" MS-DRG of its family, unless the principal diagnosis excludes it.

In MS-DRG v44.0, it is part of the grouping logic for DRG 769 (Postpartum and Post Abortion Diagnoses with O.R. Procedures, relative weight 1.6673) and DRG 776 (Postpartum and Post Abortion Diagnoses without O.R. Procedures, relative weight 0.6721), in MDC 14 (Pregnancy, Childbirth and the Puerperium), as a principal or secondary diagnosis. The DRG a claim lands in depends on the principal diagnosis, procedures and any CC/MCC secondary diagnoses.

The Medicare Code Editor treats this as a maternity diagnosis, expected only for patients age 9 through 64.

It is on the CMS list of diagnoses consistent only with female patients (the sex-conflict edit itself was retired in FY2025).

It has been part of ICD-10-CM since the code set took effect on October 1, 2015 and hasn't changed since.

Before ICD-10, this condition was coded in ICD-9-CM as 671.82 (other venous complications of pregnancy and the puerperium, delivered, with mention of postpartum complication) and 671.84 (other venous complications of pregnancy and the puerperium, postpartum condition or complication).

Notes that apply from higher levels

Instructions written at a parent level also apply to O87.2.

› From O87 Venous complications and hemorrhoids in the puerperium
Includes
  • venous complications in labor, delivery and the puerperium
Excludes2
  • obstetric embolism (O88.-)
  • puerperal septic thrombophlebitis (O86.81)
  • venous complications in pregnancy (O22.-)

Broader instructions also apply from O85-O92 Complications predominantly related to the puerperium and Chapter 15: Pregnancy, childbirth and the puerperium.

Alphabetic index entries

4 entries

Terms in the official ICD-10-CM index that lead to O87.2.

Codes whose notes reference O87.2

MS-DRG v44.0 grouping

All DRGs →

Inpatient MS-DRGs this diagnosis can group to, as the principal or a secondary diagnosis, depending on the rest of the claim.

MDC 14 · Pregnancy, Childbirth and the Puerperium

MDC 14 · Pregnancy, Childbirth and the Puerperium

ICD-9-CM equivalent

Converter →
  • 671.82Other venous complications of pregnancy and the puerperium, delivered, with mention of postpartum complicationapproximate
  • 671.84Other venous complications of pregnancy and the puerperium, postpartum condition or complicationapproximate

From the CMS 2018 General Equivalence Mappings (GEMs), the final GEMs release.

Code history

  1. 2016
  2. 2017
  3. 2018
  4. 2019
  5. 2020
  6. 2021
  7. 2022
  8. 2023
  9. 2024
  10. 2025
  11. 2026
  12. 2027
  • FY2016 (effective 10/1/2015): Added (first year of ICD-10-CM)
  • No changes since FY2016.

Common questions about O87.2

Is O87.2 billable?

Yes. O87.2 is a billable/specific ICD-10-CM code valid for FY2027 (October 1, 2026 – September 30, 2027).

Can O87.2 be used as a principal diagnosis?

Yes. The Medicare Code Editor doesn't restrict O87.2 as a principal diagnosis.

Is O87.2 a CC or MCC?

O87.2 is a CC (complication or comorbidity) under MS-DRG v44.0, unless excluded by the principal diagnosis.

What DRG does O87.2 group to?

O87.2 is used in the MS-DRG v44.0 logic for MS-DRG 769 (Postpartum and Post Abortion Diagnoses with O.R. Procedures) and MS-DRG 776 (Postpartum and Post Abortion Diagnoses without O.R. Procedures). Which one applies depends on whether it is the principal diagnosis and on the rest of the claim.

What is the ICD-9 code for O87.2?

The CMS General Equivalence Mappings map O87.2 to ICD-9-CM 671.82 and 671.84.