Quick answer. O22.4 is the ICD-10-CM Diagnosis Code for "Hemorrhoids in pregnancy". Hemorrhoids occurring during pregnancy. Assign O22.4 for hemorrhoids documented as complicating or occurring during pregnancy.
Last updated
The flowchart as text
The same decisions as the diagram above, in order. Each line is a step; the answers say where it leads.
Confirm patient is pregnant then Verify diagnosis of hemorrhoids?.
Verify diagnosis of hemorrhoids? Yes: Are hemorrhoids postpartum?.
Are hemorrhoids postpartum? Yes: Use O87.2;No: Assign O22.4 code.
Use O87.2
Assign O22.4 code then Append Z3A weeks of gestation.
Append Z3A weeks of gestation then Use O22.4 and Z3A.
Use O22.4 and Z3A
Decision steps
Confirm the patient is currently pregnant.
Verify the diagnosis of hemorrhoids.
Check if the hemorrhoids are postpartum (if yes, use O87.2; if during pregnancy, proceed with O22.4).
Assign O22.4 as the primary or secondary code depending on the reason for the encounter.
Append the appropriate Z3A.xx code for weeks of gestation.
What the provider should document
A claim supports O22.4 when the record shows:
☐Clear documentation of hemorrhoids (internal, external, or unspecified).
☐Explicit statement linking the hemorrhoids to the pregnancy or noting their presence during the current pregnancy.
☐Current gestational age (weeks of gestation) to support the secondary Z3A code.
Questions to ask the provider
Does the record include clear documentation of hemorrhoids (internal, external, or unspecified)?
Does the record include explicit statement linking the hemorrhoids to the pregnancy or noting their presence during the current pregnancy?
Does the record include current gestational age (weeks of gestation) to support the secondary Z3A code?
Is the condition documented as “Hemorrhoids originating or treated in the postpartum period (puerperium)”? If so, the code is O87.2, not O22.4.
Is the condition documented as “Hemorrhoids in a non-pregnant patient”? If so, the code is K64.9, not O22.4.
Frequently asked questions
What is O22.4?
Hemorrhoids occurring during pregnancy.
How do you code O22.4 correctly?
Assign O22.4 for hemorrhoids documented as complicating or occurring during pregnancy. Do not assign a trimester-specific sixth character, as O22.4 is a complete, billable 5-character code. Sequence O22.4 as the primary diagnosis if the hemorrhoids are the main reason for the encounter. Code an additional Z3A code to identify the specific weeks of gestation.
What must the provider document to support O22.4?
Clear documentation of hemorrhoids (internal, external, or unspecified). Explicit statement linking the hemorrhoids to the pregnancy or noting their presence during the current pregnancy. Current gestational age (weeks of gestation) to support the secondary Z3A code.
When is a different code used instead of O22.4?
If documented as "Hemorrhoids originating or treated in the postpartum period (puerperium)", use O87.2. If documented as "Hemorrhoids in a non-pregnant patient", use K64.9.
What are common mistakes with O22.4?
Attempting to add a 6th character for trimester (e.g., O22.41), which results in an invalid code. Use the 5-character code O22.4 as it is already a billable leaf node. Coding standard hemorrhoids (K64.-) for a pregnant patient. Always use Chapter 15 codes (O22.4) for conditions complicating or co-existing with pregnancy.
Medical Coding Hub builds this guide with AI from the official code tables (CMS and CDC/NCHS) and the code’s place in the hierarchy. It is not yet reviewed line by line by a certified coder. Treat it as a working reference, check it against the current official ICD-10 guidelines and the payer’s policy before you bill, and tell us about errors through the feedback links on this site. It is not medical, legal or billing advice.