2027 ICD-10-CM Diagnosis Code O87.2Hemorrhoids in the puerperium
ICD-10-CM Codes›O00-O9A›O85-O92›O87
- Billable — Valid for Submission
- CC — Complication or Comorbidity
- Not Chronic
O87.2 is a billable ICD-10-CM diagnosis code for hemorrhoids in the puerperium. 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 250 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 hemorrhoids in pregnancy. In AHRQ's Clinical Classifications Software (CCSR), this diagnosis falls under Complications specified during the puerperium and Hemorrhoids.
Code Identity
Code Classification
Code EditsBilling
Medicare Code Editor checks that affect claim validity for O87.2.
Approximate SynonymsGuidance
Alternate terms and clinical phrases that map to this code.
- Hemorrhoids in pregnancy
- Hemorrhoids in pregnancy and/or puerperium
- Hemorrhoids in puerperium
- Varicose veins in pregnancy
- Varicose veins in puerperium
- Varicose veins of perineum in pregnancy
- Varicose veins of perineum in puerperium
Instructional NotesGuidance
Instructions from the official ICD-10-CM Tabular List that apply to O87.2: its own notes plus those printed at O87, block O85-O92, 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.
- venous complications in labor, delivery and the puerperium
Excludes1
Not coded here: the excluded code is never reported together with this one, unless the two conditions are unrelated.
- 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 O87.2, its category, or a range that includes it.
Excludes1 1
These codes carry an Excludes1 note naming O87.2: they are not reported together with it, unless the two conditions are unrelated.
- K64 Hemorrhoids and perianal venous thrombosishemorrhoids complicating childbirth and the puerperium (O87.2)
Excludes2 2
These codes carry an Excludes2 note naming O87.2: its condition is not part of those codes, and both may be reported when the patient has both.
- O22 Venous complications and hemorrhoids in pregnancyvenous complications and hemorrhoids of childbirth and the puerperium (O87.-) names O87.-, which includes this code
- O99.4 Diseases of the circulatory system complicating pregnancy, childbirth and the puerperiumvenous complications and cerebrovenous sinus thrombosis in labor, childbirth and the puerperium (O87.-) names O87.-, which includes this code
Code First 2
These codes say to code first a condition named in the note, and O87.2 is one of the conditions named.
- I80 Phlebitis and thrombophlebitisphlebitis and thrombophlebitis complicating pregnancy, childbirth and the puerperium (O22.-, O87.-) names O87.-, which includes this code
- I82 Other venous embolism and thrombosispregnancy, childbirth and the puerperium (O22.-, O87.-) names O87.-, which includes this code
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
Hemorrhoids
Hemorrhoids are swollen, inflamed veins around your anus or the lower part of your rectum. There are two types:
The full article covers:
- What are hemorrhoids?
- What causes hemorrhoids?
- What are the symptoms of hemorrhoids?
- How can I treat hemorrhoids at home?
- When do I need to see a health care provider for hemorrhoids?
- How are hemorrhoids diagnosed?
- What are the treatments for hemorrhoids?
- Can hemorrhoids be prevented?
Read the full article at MedlinePlus
Courtesy of MedlinePlus, a service of the U.S. National Library of Medicine.
Convert O87.2 to ICD-9-CMHistory
Code HistoryHistory
Questions About O87.2Overview
What is the ICD-10 code for hemorrhoids in the puerperium?
The ICD-10-CM code for hemorrhoids in the puerperium is O87.2 (sometimes written as O872). It is billable on HIPAA-covered claims from October 1, 2026 through September 30, 2027.
Is O87.2 (Venous complications and hemorrhoids in the puerperium) a billable code?
Yes. This is a billable ICD-10-CM code, specific enough to report hemorrhoids in the puerperium on HIPAA-covered claims from October 1, 2026 through September 30, 2027.
What MS-DRG does O87.2 group to?
When hemorrhoids in the puerperium 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 O87.2 a CC or MCC?
CMS lists O87.2 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 250 closely related codes in its exclusion list.
Who can O87.2 be reported for?
The Medicare Code Editor checks hemorrhoids in the puerperium against patient demographics: this code is intended for maternity cases (age 9 through 64). Claims outside these limits are flagged as inconsistent.