O87.2 ICD-10-CM Code: Hemorrhoids in the puerperium
Compare with another codeCheck this code on a claim
Billing Status: YES. This is a valid, specific, and billable ICD-10-CM reference.
Coding at a Glance
- Tabular directives
- 1 inclusion term · 6 Excludes2
Billable · FY2027A valid, specific ICD-10-CM code, reportable for dates of service in FY2027.
What you need to know
Source: CMS/NCHS Official ICD-10-CM tabular notes, quoted. From the CMS/NCHS tabular list for the release in force. A note the category or block publishes applies to this code too; the Instructions section marks which is which.
- Excludes2Not included here; may be reported together
- IncludesWhat this code covers
- venous complications in labor, delivery and the puerperium
Most relevant related codes MedCoder-derived
Read off the official notes above and this code’s own position in the tabular list. Which to report is a documentation question; Compare shows the two side by side.
Inpatient Payment Groups (MS-DRG)
Potential MS-DRG participation — not a DRG assignment.
MS-DRGs this diagnosis helps define, as principal or secondary, per the CMS ICD-10-CM/PCS MS-DRG Definitions Manual v44, Appendix B.
- MS-DRG 769 — POSTPARTUM AND POST ABORTION DIAGNOSES WITH O.R. PROCEDURES (MDC 14)
- MS-DRG 776 — POSTPARTUM AND POST ABORTION DIAGNOSES WITHOUT O.R. PROCEDURES (MDC 14)
A diagnosis appearing in a group's logic does not by itself determine the DRG assigned to a stay; the grouper uses the full claim.
Coding instructions
Official Tabular Instructional Notes: the inclusion, exclusion and sequencing notes published for O87.2 in the official ICD-10-CM tabular list, quoted as published.
Source: CMS/CDC — ICD-10-CM Tabular ListRelease: FY2027Effective: October 1, 2026
Trace:FY2027 changesChange historyRelease, file and checksum
Notes without a marker are published on O87.2 itself; “inherited from” names the category or block whose note applies here.
Includes
Conditions the official ICD-10-CM tabular list includes under this code.
- venous complications in labor, delivery and the puerperium
Source: inherited from O87
Excludes2 — Not Included Here
Conditions not covered by this code, but which may be reported alongside it when both are present.
- obstetric embolism (O88.-) inherited from O87Compare O87.2 vs O88 →
- puerperal septic thrombophlebitis (O86.81) inherited from O87Compare O87.2 vs O86.81 →
- venous complications in pregnancy (O22.-) inherited from O87Compare O87.2 vs O22 →
- mental and behavioral disorders associated with the puerperium (F53.-) inherited from O85-O92Compare O87.2 vs F53 →
- obstetrical tetanus (A34) inherited from O85-O92Compare O87.2 vs A34 →
- puerperal osteomalacia (M83.0) inherited from O85-O92Compare O87.2 vs M83.0 →
Coder workflow for O87.2
MedCoder structured workflow — derived from this code’s own official record
Before you code O87.2
- Confirm the condition is documented as complicating the pregnancy, childbirth, or the puerperium, and check the trimester where the code carries one and the fetus character where the category requires it. Chapter 15 codes belong on the maternal record only and take sequencing priority over codes from other chapters. It is the provider’s responsibility to state that a condition is not affecting the pregnancy; the trimester is assigned from the documentation (Guidelines I.C.15.a, I.C.15.a.1, I.C.15.a.3).
Documentation check
- The provider’s diagnostic statement
- Codes are assigned from the provider’s documented diagnosis, not from clinical criteria, test values or a medication list (Guidelines I.A.19).
- Trimester
- Assigned from the documented trimester at the encounter, or the trimester in which the condition developed for inpatient stays (Guidelines I.C.15.a.3).
Official instructions as workflow
Excludes2 — not part of O87.2(6 notes)
Coding workflow: The conditions named in this note are not included in O87.2. When the record documents both, both may be reported; the note is a boundary, not a prohibition.
CompareO88, O86.81, O22, F53, A34, M83.0
See the official tabular notes · Guidelines I.A.12.b
Every row is derived from this code’s own record — its title, tabular notes, 7th-character family and same-category siblings — with fixed MedCoder wording; nothing is inferred about a patient. The official notes and guideline text are in the sections each row links to, and they control.
Coding context
Guidelines, coding notes, decision aids, relationships (with MS-DRG and CCSR classification), hierarchy, HCC, coverage and the context map: what a coder reaches for after the core. Each section names whether it is official source data, a MedCoder-derived relationship or MedCoder editorial.
Code Overview
MedCoder summary Summary composed by MedCoder from this code's official ICD-10-CM record. The tabular instructional notes themselves appear verbatim below.
Verify Before Coding
- Age-restricted: the Medicare Code Editor lists this as a maternity (age 9-64) diagnosis; other ages are presumed incorrect.
- CC as a secondary diagnosis (FY2027). Can raise the stay's MS-DRG severity tier.
From the code registry, the Medicare Code Editor, and the MS-DRG Definitions Manual. Check it against a full claim in Claim Check.
Relationships & Classification
MedCoder-derived relationships — computed from published CMS and AHRQ datasets
Other codes that name O87.2 or its code family, from the CMS ICD-10-CM tabular instructional notes. Tabular-note edges are stored at the code family level that carries each note.
Referenced by 1 Excludes1 note: K64 — Hemorrhoids and perianal venous thrombosis.
These codes’ tabular lists mark this diagnosis as mutually exclusive — not reported together unless the conditions are documented as unrelated.
Referenced by 2 Excludes2 notes: O22 — Venous complications and hemorrhoids in pregnancy (via O87.-), O99.4 — Diseases of the circulatory system complicating pregnancy, childbirth and the puerperium (via O87.-).
These codes’ tabular lists name this diagnosis as distinct — both may be reported when both are documented.
Referenced by 2 Code First instructions: I80 — Phlebitis and thrombophlebitis (via O87.-), I82 — Other venous embolism and thrombosis (via O87.-).
Each of these codes carries a Code First note naming this condition — when that code is reported, THIS code is sequenced first, ahead of it.
MS-DRG Grouper Relationships (FY2027)
Potential MS-DRG participation — not a DRG assignment.
FY2027 MS-DRG: CC — Complication or Comorbidity. Reported as a secondary diagnosis, this code raises the stay's MS-DRG severity tier — except when the principal diagnosis is one of 250 clinically related codes on its CMS exclusion list.
Named in the grouper logic of 2 MS-DRGs: DRG 769 (MDC 14), DRG 776 (MDC 14).
From the CMS MS-DRG Definitions Manual (Appendices B and C). Actual DRG assignment depends on the complete claim.
Clinical classification (AHRQ CCSR):PRG027 — Complications specified during the puerperium (default); DIG014 — Hemorrhoids.
Clinical Classifications Software Refined (CCSR) for ICD-10-CM Diagnoses. Healthcare Cost and Utilization Project (HCUP), Agency for Healthcare Research and Quality.
Related Codes
Same clinical process (MS-DRG)
Acts as CC — raises the severity of other admissions. CMS groups these diagnoses into one MS-DRG principal-diagnosis exclusion process — a CC/MCC on this list never raises severity when the principal diagnosis is also on it.
O35.7XX4 — Maternal care for (suspected) damage to fetus by other medical procedures, fetus 4, O35.7XX5 — Maternal care for (suspected) damage to fetus by other medical procedures, fetus 5, O35.7XX9 — Maternal care for (suspected) damage to fetus by other medical procedures, other fetus, O75.4 — Other complications of obstetric surgery and procedures, O75.81 — Maternal exhaustion complicating labor and delivery, O75.89 — Other specified complications of labor and delivery, O75.9 — Complication of labor and delivery, unspecified, O80 — Encounter for full-term uncomplicated delivery, O87.0 — Superficial thrombophlebitis in the puerperium, O87.1 — Deep phlebothrombosis in the puerperium, O87.3 — Cerebral venous thrombosis in the puerperium, O87.8 — Other venous complications in the puerperium, O87.9 — Venous complication in the puerperium, unspecified, O90.89 — Other complications of the puerperium, not elsewhere classified, O99.111 — Other diseases of the blood and blood-forming organs and certain disorders involving the immune mechanism complicating pregnancy, first trimester, O99.112 — Other diseases of the blood and blood-forming organs and certain disorders involving the immune mechanism complicating pregnancy, second trimester, O99.113 — Other diseases of the blood and blood-forming organs and certain disorders involving the immune mechanism complicating pregnancy, third trimester, O99.119 — Other diseases of the blood and blood-forming organs and certain disorders involving the immune mechanism complicating pregnancy, unspecified trimester, O99.12 — Other diseases of the blood and blood-forming organs and certain disorders involving the immune mechanism complicating childbirth, O99.13 — Other diseases of the blood and blood-forming organs and certain disorders involving the immune mechanism complicating the puerperium, +229 more
Same clinical category (CCSR)
AHRQ's Clinical Classifications Software groups these diagnoses under the same clinical categories (Complications specified during the puerperium, Hemorrhoids).
O86.19 — Other infection of genital tract following delivery, O86.20 — Urinary tract infection following delivery, unspecified, O86.21 — Infection of kidney following delivery, O86.22 — Infection of bladder following delivery, O86.29 — Other urinary tract infection following delivery, O86.4 — Pyrexia of unknown origin following delivery, O86.81 — Puerperal septic thrombophlebitis, O86.89 — Other specified puerperal infections, O87.0 — Superficial thrombophlebitis in the puerperium, O87.1 — Deep phlebothrombosis in the puerperium, O87.3 — Cerebral venous thrombosis in the puerperium, O87.4 — Varicose veins of lower extremity in the puerperium, O87.8 — Other venous complications in the puerperium, O87.9 — Venous complication in the puerperium, unspecified, O88.03 — Air embolism in the puerperium, O88.13 — Amniotic fluid embolism in the puerperium, O88.23 — Thromboembolism in the puerperium, O88.33 — Pyemic and septic embolism in the puerperium, O88.83 — Other embolism in the puerperium, O89.01 — Aspiration pneumonitis due to anesthesia during the puerperium, +125 more
Same Index main term, other category
The ICD-10-CM Index to Diseases and Injuries files this code under the main terms “Puerperal, puerperium”, “Varix”; these codes share that main term but sit in a different category of the Tabular List.
O86.12 — Endometritis following delivery (pyometra), O86.13 — Vaginitis following delivery (vaginitis), O86.19 — Other infection of genital tract following delivery (vulvitis), O86.20 — Urinary tract infection following delivery, unspecified (infection, urinary NEC), O86.21 — Infection of kidney following delivery (pyelitis), O86.22 — Infection of bladder following delivery (cystitis), O86.29 — Other urinary tract infection following delivery (pyocystitis), O86.4 — Pyrexia of unknown origin following delivery (fever), O86.81 — Puerperal septic thrombophlebitis (septic thrombophlebitis), O86.89 — Other specified puerperal infections (lymphangitis), O89.8 — Other complications of anesthesia during the puerperium (anesthetic death), O90.0 — Disruption of cesarean delivery wound (disruption, cesarean wound), O90.1 — Disruption of perineal obstetric wound (secondary perineal tear), O90.3 — Peripartum cardiomyopathy (cardiomyopathy), O90.41 — Hepatorenal syndrome following labor and delivery (hepatorenal syndrome), O90.49 — Other postpartum acute kidney failure (uremia), O90.5 — Postpartum thyroiditis (thyroiditis), O90.6 — Postpartum mood disturbance (mood disturbance), O90.81 — Anemia of the puerperium (anemia), O90.89 — Other complications of the puerperium, not elsewhere classified (neuritis), +160 more
Lab tests where this diagnosis supports Medicare coverage (NCD)
Medicare's National Coverage Determination (NCD) program lists this diagnosis as medical justification for these lab tests.
Contextual Map
Every relationship of O87.2 in one view: hierarchy, official tabular instructions in both directions, clinical classification, risk adjustment, MS-DRG participation, index terms and change history — each edge carrying the CMS source it derives from.
Run O87.2 with these 5 related codes in Claim Check
Hierarchy
- O00-O9A — Chapter 15: Pregnancy, Childbirth and the Puerperium (O00-O9A) (O00-O9A)[Hierarchy]— CMS ICD-10-CM tabular structure · icd10cm-fy2027
- O85-O92 — Complications predominantly related to the puerperium[Hierarchy]— CMS ICD-10-CM tabular structure · icd10cm-fy2027
Referenced by Excludes1 notes
- K64 — Hemorrhoids and perianal venous thrombosis[Excludes1]: “hemorrhoids complicating childbirth and the puerperium (O87.2)”— CMS ICD-10-CM tabular instructional notes · icd10cm-fy2027
Referenced by Excludes2 notes
- O22 — Venous complications and hemorrhoids in pregnancy[Excludes2](via O87.-): “venous complications and hemorrhoids of childbirth and the puerperium (O87.-)”— CMS ICD-10-CM tabular instructional notes · icd10cm-fy2027
- O99.4 — Diseases of the circulatory system complicating pregnancy, childbirth and the puerperium[Excludes2](via O87.-): “venous complications and cerebrovenous sinus thrombosis in labor, childbirth and the puerperium (O87.-)”— CMS ICD-10-CM tabular instructional notes · icd10cm-fy2027
Referenced by Code First instructions
- I80 — Phlebitis and thrombophlebitis[Code First](via O87.-): “phlebitis and thrombophlebitis complicating pregnancy, childbirth and the puerperium (O22.-, O87.-)”— CMS ICD-10-CM tabular instructional notes · icd10cm-fy2027
- I82 — Other venous embolism and thrombosis[Code First](via O87.-): “pregnancy, childbirth and the puerperium (O22.-, O87.-)”— CMS ICD-10-CM tabular instructional notes · icd10cm-fy2027
Clinical classification (CCSR)
- PRG027 — Complications specified during the puerperium[CCSR]— AHRQ CCSR for ICD-10-CM Diagnoses (HCUP)
- DIG014 — Hemorrhoids[CCSR]— AHRQ CCSR for ICD-10-CM Diagnoses (HCUP)
MS-DRG Grouper
- CC — Complication or Comorbidity [MS-DRG severity]: “As a secondary diagnosis this code can raise the stay's MS-DRG severity tier (CC).”— CMS MS-DRG Definitions Manual (Appendix C) · FY2027
- DRG 769 — POSTPARTUM AND POST ABORTION DIAGNOSES WITH O.R. PROCEDURES[MS-DRG]: “POSTPARTUM AND POST ABORTION DIAGNOSES WITH O.R. PROCEDURES (MDC 14)”— CMS MS-DRG Definitions Manual (Appendix B) · FY2027
- DRG 776 — POSTPARTUM AND POST ABORTION DIAGNOSES WITHOUT O.R. PROCEDURES[MS-DRG]: “POSTPARTUM AND POST ABORTION DIAGNOSES WITHOUT O.R. PROCEDURES (MDC 14)”— CMS MS-DRG Definitions Manual (Appendix B) · FY2027
MDC crossing
- MDC 14 — Pregnancy, Childbirth and the Puerperium[MDC crossing]: “Pregnancy, Childbirth and the Puerperium — the grouper's crossing between diagnoses and procedures: a principal diagnosis sets the MDC, and same-MDC procedures move the stay to its surgical DRGs. 94 same-MDC procedures group here; browse them on the MDC page.”— CMS MS-DRG Definitions Manual · FY2027
Index entries
- Hemorrhoids (bleeding) (without mention of degree), complicating, puerperium[Index term]— CMS ICD-10-CM Index to Diseases and Injuries · icd10cm-fy2027
- Puerperal, puerperium (complicated by, complications), hemorrhoids[Index term]— CMS ICD-10-CM Index to Diseases and Injuries · icd10cm-fy2027
- Varix (lower limb), complicating, childbirth (lower extremity), anus or rectum[Index term]— CMS ICD-10-CM Index to Diseases and Injuries · icd10cm-fy2027
- Varix (lower limb), complicating, puerperium (lower extremity), anus or rectum[Index term]— CMS ICD-10-CM Index to Diseases and Injuries · icd10cm-fy2027
Nearest codes
- O87 — Venous complications and hemorrhoids in the puerperium[Sibling]— CMS ICD-10-CM tabular structure · icd10cm-fy2027
- O87.0 — Superficial thrombophlebitis in the puerperium[Sibling]— CMS ICD-10-CM tabular structure · icd10cm-fy2027
- O87.1 — Deep phlebothrombosis in the puerperium[Sibling]— CMS ICD-10-CM tabular structure · icd10cm-fy2027
- O87.3 — Cerebral venous thrombosis in the puerperium[Sibling]— CMS ICD-10-CM tabular structure · icd10cm-fy2027
- O87.4 — Varicose veins of lower extremity in the puerperium[Sibling]— CMS ICD-10-CM tabular structure · icd10cm-fy2027
- O87.8 — Other venous complications in the puerperium[Sibling]— CMS ICD-10-CM tabular structure · icd10cm-fy2027
- O87.9 — Venous complication in the puerperium, unspecified[Sibling]— CMS ICD-10-CM tabular structure · icd10cm-fy2027
Change history
- FY2016 — In the code set at ICD-10-CM adoption [Change history]— CMS release files (code change ledger) · icd10cm-fy2016
Reference
Index terms and tables, published questions and FAQ, every source behind this page with its release and checksum, the date-of-service check and the complete change history.
Indexed Clinical Terms (4)
Official source data — entries quoted as published, in the Index’s own lookup phrasing
Clinical term phrases from the official ICD-10-CM Index to Diseases and Injuries that map to this code. These are alphabetic-index entries shown as the Index writes them — lookup phrasing, not necessarily the wording of a final diagnosis.
Sources for this page
Codes, titles, notes, index terms and mappings on this page are transcribed from the datasets below. Relationships MedCoder computed and text MedCoder wrote are labelled where they appear.
- Code, title, tabular notes and index terms Official source data
- CMS/CDC ICD-10-CM FY2027 tabular list, index and tables, effective October 1, 2026 Release, file and checksum · Publisher’s page
- Claim edits Official source data
- CMS Definitions of Medicare Code Edits — v44.0 (October 2026) Release, file and checksum · Publisher’s page
- Inpatient payment groups Official source data
- CMS MS-DRG Definitions Manual (incl. Appendix B diagnosis index, Appendix C CC/MCC list, Appendix E procedure index) and IPPS Final Rule tables — v44 Release, file and checksum · Publisher’s page
- Change history and date-of-service validity Official source data
- CMS ICD-10-CM release addenda, ingested release by release into the change ledger Release, file and checksum · Publisher’s page
- Comparisons, relationships and the contextual map MedCoder-derived relationship
- Computed by MedCoder from the tabular notes and tables above; every derived relationship is marked as derived where it appears
- Summary and FAQ answers MedCoder editorial explanation
- Written by MedCoder to explain the sources above: drafted with AI assistance, checked by a person against the release files, and labelled as MedCoder text where it appears. Not official text.
Current data releases:ICD-10-CM FY2027 · ICD-10-PCS FY2027 · HCPCS October 2026 · MS-DRG v44 · Medicare Code Editor v44.0 · NCCI PTP Q4 2026 · MUE Q4 2026 · NCD code lists 2026-01 · LCD export September 20, 2026 · All releases and sources
Labels on this page: Official source data · MedCoder-derived relationship · MedCoder editorial explanation. How to read the labels · All data sources and release dates · CMS coding rules
Cite this page
Reference this page in a research guide, syllabus or article. The release is included because code content changes each year.
MedCoder.ai. "O87.2 — Hemorrhoids in the puerperium." ICD-10-CM FY2027. https://medcoder.ai/icd10/code/o87.2-hemorrhoids-in-the-puerperium
Change history
- FY2016 — October 1, 2015In the code set at ICD-10-CM adoptionHemorrhoids in the puerperium
No changes since FY2016 — additions, deletions, description changes and billable-status changes are tracked through FY2027, and none are recorded for this code. Note changes are tracked from FY2027 only.
Nearest Codes in This Family
Official ICD-10-CM classifications closest to O87.2 in its code family, with their registry titles.
- O87 — Venous complications and hemorrhoids in the puerperium
- O87.0 — Superficial thrombophlebitis in the puerperium
- O87.1 — Deep phlebothrombosis in the puerperium
- O87.3 — Cerebral venous thrombosis in the puerperium
- O87.4 — Varicose veins of lower extremity in the puerperium
- O87.8 — Other venous complications in the puerperium
- O87.9 — Venous complication in the puerperium, unspecified