Pabau GO app

The new Pabau GO is heredownload on the App Store

Download on the App Store
Book a demo Book a demo
Diagnostic Codes

ICD-10 Code O87.2: Hemorrhoids in the puerperium

Key Takeaways

Key Takeaways

ICD-10 Code O87.2 describes hemorrhoids in the puerperium, the postpartum period typically defined as the six weeks following delivery.

O87.2 is a billable, specific ICD-10-CM code valid for fiscal year 2026 (October 1, 2025 through September 30, 2026) and carries a maternity age edit of 12 to 55 years.

O87.2 and O22.4 (hemorrhoids in pregnancy) carry a mutual Excludes2 note, meaning both codes may be reported together when documentation supports two distinct, coexisting conditions; the timing of the encounter still determines which code documents a given visit.

Pabau’s claims management software embeds ICD-10 code selection directly in the patient record workflow, eliminating the switch between lookup tools and billing platforms.

ICD-10 Code O87.2 is the billable, specific diagnosis code for hemorrhoids in the puerperium, the six-week postpartum period following delivery. It’s effective October 1, 2025 through September 30, 2026 for HIPAA-covered transaction submissions, and it carries a maternity age edit restricting its use to patients aged 12 to 55 years.

Automate claims and billing with Pabau
Automate claims and billing with Pabau

The code falls under chapter O00-O9A (Pregnancy, childbirth, and the puerperium). Coders often default to the general hemorrhoid code (K64) or skip documentation entirely, which leaves valid reimbursement on the table. Claims management software like Pabau that integrates ICD-10 lookup at the point of care helps practices capture these diagnoses consistently.

Field Details
Code O87.2
Full description Hemorrhoids in the puerperium
Billable/Specific Yes
Fiscal year validity FY2026 (October 1, 2025 through September 30, 2026)
Effective date October 1, 2025
Maternity age edit 12 to 55 years
Chapter O00-O9A: Pregnancy, childbirth, and the puerperium
Block O85-O92: Complications predominantly related to the puerperium
Parent category O87: Venous complications and hemorrhoids in the puerperium

Code classification: where O87.2 sits in ICD-10-CM

Understanding where O87.2 sits in the ICD-10-CM hierarchy matters because the chapter context is what justifies the obstetric-specific code over a general hemorrhoid code. O87.2 is not just a convenience code for postpartum hemorrhoids. It signals to payers that the condition is linked to the delivery episode, which affects both sequencing rules and reimbursement pathways.

The hierarchical path runs: Chapter O00-O9A (Pregnancy, childbirth, and the puerperium) > Block O85-O92 (Complications predominantly related to the puerperium) > Category O87 (Venous complications and hemorrhoids in the puerperium) > O87.2 (Hemorrhoids in the puerperium).

Level Code Range / Code Description
Chapter O00-O9A Pregnancy, childbirth, and the puerperium
Block O85-O92 Complications predominantly related to the puerperium
Category O87 Venous complications and hemorrhoids in the puerperium
Code O87.2 Hemorrhoids in the puerperium

Includes and excludes notes for O87.2

The includes and excludes notes for O87.2 define the boundaries of when the code applies. Getting these wrong is the most common source of audit risk for postpartum encounters, and the same sequencing risk applies to O94 once a complication is no longer active but still needs to be documented as a late effect.

Includes note

O87.2 includes Hemorrhoids NOS (not otherwise specified) complicating the puerperium. This means coders do not need a more specific hemorrhoid classification (internal, external, or mixed) to apply O87.2. The diagnosis of postpartum hemorrhoids documented by the clinician is sufficient.

Excludes2 note

O87.2 carries an Excludes2 note for O22.4 (Hemorrhoids in pregnancy), along with Excludes2 notes for O88.- (obstetric embolism) and O86.81 (puerperal septic thrombophlebitis). Excludes2 means “not included here”: the excluded condition is not part of O87.2, but a patient can have both conditions, and both codes may legitimately be reported together when documentation supports two distinct, coexisting diagnoses.

In practice, a patient who develops hemorrhoids during pregnancy is coded O22.4 for the antepartum encounter. Once she delivers and enters the puerperium, any hemorrhoid diagnosis documented at that encounter is coded O87.2, whether the hemorrhoids are new or persisting from pregnancy.

The clinical timing of the encounter determines which code documents that particular visit. O22.4 and O87.2 are not mutually exclusive, and both can appear on a patient’s record, or the same claim, when documentation supports it.

Pro Tip

Document the encounter date relative to delivery in every postpartum note. Payers validate obstetric codes against the delivery date. A claim for O87.2 submitted for an encounter that falls outside the puerperium window can trigger a denial or a request for medical records.

ICD-10 Code O87.2 vs K64: Choosing the right hemorrhoid code

The O87.2 vs K64 decision is the most common coding question for this condition. K64 covers hemorrhoids and perianal venous thrombosis outside the obstetric context. O87.2 is the obstetric-specific code, restricted to the postpartum period. Using K64 for a postpartum encounter when O87.2 applies is a coding error that understates the clinical complexity of the encounter.

Factor O87.2 K64
Patient context Postpartum (within puerperium, typically 6 weeks post-delivery) Non-obstetric; any patient outside the postpartum period
Chapter O00-O9A (Obstetric) K00-K95 (Digestive system diseases)
Maternity age edit Yes, 12 to 55 years No age restriction
Use together? Only if a separate non-obstetric hemorrhoid condition exists alongside Primary code when no obstetric context applies
Claim risk Maternity age edit triggers on claims for patients outside 12-55 range Payer may question if submitted for a postpartum encounter without supporting context

The practical rule: if the patient is being seen within the puerperium and the hemorrhoids are related to or complicating the postpartum period, use O87.2. If the patient was seen before delivery (antepartum), use O22.4. For any encounter outside the obstetric context entirely, K64 is correct.

O87.2 vs O22.4: Hemorrhoids in the puerperium vs hemorrhoids in pregnancy

O87.2 and O22.4 carry a mutual Excludes2 note, not an Excludes1 note: the two codes are not mutually exclusive, but they are also not interchangeable for the same encounter.

Each code documents hemorrhoids from a different phase of the pregnancy episode. Selecting the right one for a given visit turns on the timing of the encounter, not the origin of the hemorrhoids.

Scenario Correct code
Hemorrhoids diagnosed at 28-week prenatal visit O22.4
Hemorrhoids documented at 2-week postpartum check O87.2
Hemorrhoids present during pregnancy and still present at 6-week postpartum visit O87.2 (postpartum encounter drives code selection)
O22.4 and O87.2 on the same claim Permitted under the Excludes2 note when documentation supports two distinct, coexisting diagnoses (e.g., hemorrhoids that began antepartum and are still being treated in the puerperium)

According to the CMS ICD-10-CM guidelines, an Excludes2 note means the excluded condition is not part of the code it is excluded from, but a patient may have both conditions at the same time, and both codes may be reported together when the documentation supports it.

Coders should still avoid defaulting to both codes out of habit. Assign O22.4 and O87.2 together only when the record clearly documents two distinct, coexisting hemorrhoid presentations, one dated to the antepartum period and one to the puerperium.

O87.2 is one of several codes under category O87 covering venous complications in the puerperium. Coders working in obstetric billing should be familiar with the full O87.x range, and should distinguish it from K64, the general non-obstetric hemorrhoid code, to select the most specific code for each diagnosis.

Code Description
O87.0 Superficial thrombophlebitis in the puerperium
O87.1 Deep phlebothrombosis in the puerperium
O87.2 Hemorrhoids 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

O87.9 should only be used when documentation does not support a more specific code. In practice, O87.2 is the most frequently assigned code in this category for outpatient postpartum visits, while O87.1 appears more often in inpatient settings following complicated deliveries. Always assign the most specific code supported by the medical record.

Per the WHO ICD-10 classification, the O87 category covers venous complications and hemorrhoids originating in or persisting through the puerperium, distinguishing them clearly from antepartum venous conditions classified under O22.

Tired of switching between coding tools and your billing platform?

Pabau lets obstetric and women's health practices assign ICD-10 diagnosis codes like O87.2 directly within the patient record and invoice workflow, cutting down the lookup-to-billing context switch.

Pabau practice management platform

Approximate synonyms and index terms for O87.2

The ICD-10-CM alphabetic index maps several terms to O87.2. Knowing these index terms helps coders locate the correct code when documentation uses non-standard language. The following terms all route to O87.2 in the tabular list:

  • Hemorrhoids in the puerperium
  • Hemorrhoids NOS complicating the puerperium
  • Haemorrhoids in the puerperium (WHO/international spelling variant)
  • Postpartum hemorrhoids
  • Hemorrhoids complicating delivery

When provider documentation says “postpartum hemorrhoids” or simply “hemorrhoids” in a postpartum encounter note, coders can confidently assign O87.2 without needing a more specific descriptor such as “internal” or “external.” The NOS qualifier in the includes note explicitly covers that scenario.

Documentation requirements for O87.2

Accurate coding of O87.2 depends on four documentation elements. Missing any one of them creates ambiguity that auditors can flag. Using a structured intake form for postpartum visits helps ensure these elements are captured consistently.

  • Explicit diagnosis: The provider must state “hemorrhoids” in the postpartum note. A vague reference to “rectal symptoms” or “perineal discomfort” is insufficient for code assignment.
  • Timing relative to delivery: The note must establish that the encounter occurs within the puerperium, ideally including the delivery date or a statement that the patient is postpartum.
  • Clinical assessment: A brief description of the hemorrhoid condition (severity, symptoms, treatment plan) supports medical necessity and distinguishes a clinically significant diagnosis from an incidental finding.
  • Linkage to obstetric context: Documentation should indicate the hemorrhoids are a complication of or occurring in the postpartum period, not a pre-existing non-obstetric condition.

Strong patient record documentation at the postpartum visit level also supports downstream reporting. When practices track O87.x codes across their patient population, they can identify trends in postpartum complication rates and support quality reporting requirements.

Comprehensive EMR & patient record management
Comprehensive EMR & patient record management

Pro Tip

When coding from a postpartum visit note, look for the delivery date in the chart. If the encounter falls more than six weeks post-delivery, confirm with the provider that the puerperium has not ended before assigning O87.2. Some clinical situations extend the puerperium beyond six weeks, but this should be explicitly noted.

Present on admission status for O87.2

Present on admission (POA) reporting is a hospital inpatient requirement. O87.2, as a postpartum complication code, has specific implications for POA assignment that inpatient coders need to understand for accurate HIPAA-covered transaction compliance.

POA Indicator Meaning Application for O87.2
Y Condition present on admission Hemorrhoids were present when patient was admitted postpartum
N Condition not present on admission Hemorrhoids developed after hospital admission
W Clinically undetermined Provider unable to determine if condition was present at admission
1 (Exempt) POA exempt O87.2 may be designated POA-exempt in some CMS tables; verify against current CMS exempt list

Outpatient practices do not report POA indicators. Similar POA logic applies to other inpatient puerperium complications, such as O89.2. For inpatient postpartum stays, coders should check the current CMS ICD-10-CM update files to confirm O87.2’s current POA exempt status, as the exempt list is updated annually with the fiscal year release.

Clinical context: Hemorrhoids after childbirth

Postpartum hemorrhoids are more common than many coders realize. The increased abdominal pressure during labor, combined with the straining of vaginal delivery, significantly elevates the risk of hemorrhoidal development or exacerbation in the immediate postpartum period.

Accurate coding matters here not just for reimbursement but for postpartum patient care management and quality reporting. It should not be confused with unrelated perinatal bleeding codes such as P51.9, which applies to the newborn rather than the postpartum patient.

Postpartum recovery often extends beyond the hemorrhoid diagnosis itself. Practices offering pelvic health services frequently see the same patients for related postpartum recovery needs during the same six-week window.

Providers treating postpartum patients at OB-GYN practices should document hemorrhoid findings during routine postpartum visits, even when hemorrhoids are not the primary reason for the encounter. When hemorrhoids are documented and managed, assigning O87.2 as an additional diagnosis captures the clinical complexity of the postpartum visit and supports appropriate reimbursement for the time and resources involved.

According to the CDC/NCHS ICD-10-CM tool, the puerperium is formally defined as the period beginning immediately after delivery and lasting approximately six weeks.

The maternity age edit (12-55 years) built into O87.2 also signals to practices that the code has an automated billing validation in place. Claims submitted for patients outside this age range will be flagged, which is a useful built-in check against miscoding.

Associated CPT codes for postpartum hemorrhoid management

ICD-10 Code O87.2 is a diagnosis code. It will typically appear alongside procedure codes that reflect how the hemorrhoids are managed during the postpartum encounter. The choice of CPT code depends on what the provider actually does during the visit, not simply on the O87.2 diagnosis.

CPT Code Description Use with O87.2 when
99213 / 99214 Office/outpatient visit, established patient Hemorrhoids addressed at postpartum follow-up visit
59430 Postpartum care only Global postpartum care including hemorrhoid assessment as part of the standard postpartum visit
46945 / 46946 Hemorrhoidectomy, internal, by ligation Procedural treatment of postpartum internal hemorrhoids requiring ligation
46600 Anoscopy Diagnostic anoscopy performed to evaluate postpartum hemorrhoids

CPT code selection must reflect the actual services rendered and documented. Verify current CPT descriptions and bundling rules against the AAPC ICD-10-CM code lookup and AMA CPT guidelines, as procedure codes are updated annually. Practices using digital intake forms can capture the clinical details needed to support correct CPT selection at the point of care.

Customizable consent and intake forms
Customizable consent and intake forms

Conclusion

Postpartum hemorrhoids are a clinical complication that too many obstetric practices undercode. The Excludes2 relationship with O22.4, the maternity age edit, and the O87.2 vs K64 distinction create three separate points where coding errors occur most often.

Pabau’s claims management software helps OB-GYN and women’s health practices assign ICD-10 diagnosis codes directly within the patient record, connecting clinical documentation directly to billing. To see how Pabau handles postpartum coding workflows, book a demo.

Continue your research

Continue your research

Coding other perinatal bleeding diagnoses? P53 covers hemorrhagic disease of the newborn, a related but distinct diagnosis from maternal postpartum codes.

Exploring ICD-10 documentation best practices? Choosing the best EMR software walks through how integrated EHR platforms reduce diagnostic coding errors.

Want to improve postpartum patient care processes? Patient care management outlines how practices structure follow-up workflows to capture all billable diagnoses.

Frequently Asked Questions

What is ICD-10 Code O87.2?

ICD-10 Code O87.2 is the billable, specific diagnosis code for hemorrhoids in the puerperium, the postpartum period following delivery. It falls under category O87 (Venous complications and hemorrhoids in the puerperium) within the obstetric chapter of ICD-10-CM and is valid for fiscal year 2026, covering October 1, 2025 through September 30, 2026.

What is the difference between O87.2 and K64 for hemorrhoids?

O87.2 applies specifically to hemorrhoids occurring during the puerperium in a postpartum patient, while K64 covers hemorrhoids and perianal venous thrombosis outside the obstetric context. Use O87.2 when the encounter is within the postpartum period and the hemorrhoids relate to or complicate that period. K64 is correct for any patient without an active obstetric context.

What is the difference between O87.2 and O22.4?

O22.4 codes hemorrhoids in pregnancy (antepartum), while O87.2 codes hemorrhoids in the puerperium (postpartum). They carry a mutual Excludes2 relationship, meaning the codes are not mutually exclusive: a patient can have both, and both may be reported together when documentation supports two distinct, coexisting conditions. The timing of the clinical encounter still determines which code documents a given visit.

Is O87.2 a billable ICD-10 code?

Yes, O87.2 is a billable and specific ICD-10-CM code. It can be used directly on HIPAA-covered transaction claims to indicate a diagnosis without requiring a more specific code to be assigned. It carries a maternity age edit restricting its use to patients aged 12 to 55 years.

What does puerperium mean in medical coding?

Puerperium refers to the period following delivery, typically the first six weeks after birth. In ICD-10-CM coding, the puerperium is the timeframe that determines whether obstetric chapter codes (O00-O9A) apply to a postpartum encounter. Conditions documented during this period that relate to or complicate the postpartum state are coded from the obstetric chapter rather than non-obstetric chapters.

How do I document hemorrhoids in the puerperium for accurate coding?

Documentation must include an explicit hemorrhoid diagnosis, the delivery date or a clear statement that the patient is postpartum, a clinical assessment of the hemorrhoid condition, and linkage to the obstetric context. Missing any of these elements creates ambiguity that can lead to claim denials or audit risk for O87.2 submissions.

×