Skip to main content

O22.42 ICD-10-CM Code: Hemorrhoids in pregnancy, second trimester

Billing Status: YES. This is a valid, specific, and billable ICD-10-CM reference.

Coding at a Glance

Tabular directives
6 Excludes1 · 4 Excludes2

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 817 — OTHER ANTEPARTUM DIAGNOSES WITH O.R. PROCEDURES WITH MCC (MDC 14)
  • MS-DRG 818 — OTHER ANTEPARTUM DIAGNOSES WITH O.R. PROCEDURES WITH CC (MDC 14)
  • MS-DRG 819 — OTHER ANTEPARTUM DIAGNOSES WITH O.R. PROCEDURES WITHOUT CC/MCC (MDC 14)
  • MS-DRG 831 — OTHER ANTEPARTUM DIAGNOSES WITHOUT O.R. PROCEDURES WITH MCC (MDC 14)
  • MS-DRG 832 — OTHER ANTEPARTUM DIAGNOSES WITHOUT O.R. PROCEDURES WITH CC (MDC 14)
  • MS-DRG 833 — OTHER ANTEPARTUM DIAGNOSES WITHOUT O.R. PROCEDURES WITHOUT CC/MCC (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 O22.42 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 O22.42 itself; “inherited from” names the category or block whose note applies here.

Excludes1 — Not Coded Here

Conditions generally not reported together with this code (Excludes1) -- an error unless the two conditions are documented as unrelated to each other (ICD-10-CM Official Guidelines, Section I.A.12.a).

Source: inherited from O22

Excludes2 — Not Included Here

Conditions not covered by this code, but which may be reported alongside it when both are present.

Coder workflow for O22.42

MedCoder structured workflow — derived from this code’s own official record

Before you code O22.42

  1. 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).

    Guide: How to choose an ICD-10-CM code →

  2. Check the Excludes1 note: if the documentation supports a condition named there, do not simply proceed with O22.42. Excludes1 conditions are not reported together with this code unless the record shows they are unrelated (Guidelines I.A.12.a).

    See the official tabular notes

Choose the right path

  1. Does the documentation support a condition named in O22.42’s Excludes1 note?
    Yes → Do not simply proceed: review the excluded code. Both are reported only when the record shows the two conditions are unrelated.
    No → Continue.

    ReviewO03.9, O08.7, O07.35, O04.85, O03.89

Consider O22.42. Then confirm the code is valid for the date of service in the Verify section.

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

  • Excludes1 — check before selecting O22.42(6 notes)

    Coding workflow: If the documentation supports a condition named in this note, do not simply proceed with O22.42: the two are not reported together. The one exception is when the record shows the two conditions are unrelated to each other.

    CompareO03.9, O08.7, O07.35, O04.85, O03.89

    See the official tabular notes · Guidelines I.A.12.a

  • Excludes2 — not part of O22.42(4 notes)

    Coding workflow: The conditions named in this note are not included in O22.42. When the record documents both, both may be reported; the note is a boundary, not a prohibition.

    CompareO88, O87

    See the official tabular notes · Guidelines I.A.12.b

Coding decision scenarios

Pattern scenarios for this code’s structure — decision rules, not clinical cases

Documentation: Both the condition O22.42 describes and a condition named in its Excludes1 note are documented for the same encounter.

Coding question: Can both codes be reported?

Path: Review the Excludes1 note and the excluded code, and look for a provider statement on whether the two conditions are related.

Reason: Excludes1 means the two are not coded together; the exception is when the record shows the conditions are unrelated to each other (Guidelines I.A.12.a).

ReviewO03.9, O08.7, O07.35, O04.85, O03.89

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.

Code Overview

Hemorrhoids in pregnancy, second trimester is a billable ICD-10-CM diagnosis code (O22.42).

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 structured relationships — computed from published CMS and AHRQ datasets

Other codes that name O22.42 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 3 Excludes2 notes: O87 — Venous complications and hemorrhoids in the puerperium (via O22.-), O99.4 — Diseases of the circulatory system complicating pregnancy, childbirth and the puerperium (via O22.-), O99.6 — Diseases of the digestive system complicating pregnancy, childbirth and the puerperium (via O22.4.-).

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 O22.-), I82 — Other venous embolism and thrombosis (via O22.-).

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 6 MS-DRGs: DRG 817 (MDC 14), DRG 818 (MDC 14), DRG 819 (MDC 14), DRG 831 (MDC 14), DRG 832 (MDC 14), DRG 833 (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):PRG028 — Other specified complications in pregnancy (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.

O22.20 — Superficial thrombophlebitis in pregnancy, unspecified trimester, O22.21 — Superficial thrombophlebitis in pregnancy, first trimester, O22.22 — Superficial thrombophlebitis in pregnancy, second trimester, O22.23 — Superficial thrombophlebitis in pregnancy, third trimester, O22.30 — Deep phlebothrombosis in pregnancy, unspecified trimester, O22.31 — Deep phlebothrombosis in pregnancy, first trimester, O22.32 — Deep phlebothrombosis in pregnancy, second trimester, O22.33 — Deep phlebothrombosis in pregnancy, third trimester, O22.40 — Hemorrhoids in pregnancy, unspecified trimester, O22.41 — Hemorrhoids in pregnancy, first trimester, O22.43 — Hemorrhoids in pregnancy, third trimester, O22.50 — Cerebral venous thrombosis in pregnancy, unspecified trimester, O22.51 — Cerebral venous thrombosis in pregnancy, first trimester, O22.52 — Cerebral venous thrombosis in pregnancy, second trimester, O22.53 — Cerebral venous thrombosis in pregnancy, third trimester, O22.8X1 — Other venous complications in pregnancy, first trimester, O22.8X2 — Other venous complications in pregnancy, second trimester, O22.8X3 — Other venous complications in pregnancy, third trimester, O22.8X9 — Other venous complications in pregnancy, unspecified trimester, O22.90 — Venous complication in pregnancy, unspecified, unspecified trimester, +229 more

Same clinical category (CCSR)

AHRQ's Clinical Classifications Software groups these diagnoses under the same clinical categories (Other specified complications in pregnancy, Hemorrhoids).

K64.0 — First degree hemorrhoids, K64.1 — Second degree hemorrhoids, K64.2 — Third degree hemorrhoids, K64.3 — Fourth degree hemorrhoids, K64.4 — Residual hemorrhoidal skin tags, K64.5 — Perianal venous thrombosis, K64.8 — Other hemorrhoids, K64.9 — Unspecified hemorrhoids, O22.40 — Hemorrhoids in pregnancy, unspecified trimester, O22.41 — Hemorrhoids in pregnancy, first trimester, O22.43 — Hemorrhoids in pregnancy, third trimester, O87.2 — Hemorrhoids in the puerperium, +315 more

Same Index main term, other category

The ICD-10-CM Index to Diseases and Injuries files this code under the main term “Varix”; these codes share that main term but sit in a different category of the Tabular List.

I83.9 — Asymptomatic varicose veins of lower extremities (leg), I83.90 — Asymptomatic varicose veins of unspecified lower extremity, I83.91 — Asymptomatic varicose veins of right lower extremity (leg, right), I83.92 — Asymptomatic varicose veins of left lower extremity (leg, left), I83.93 — Asymptomatic varicose veins of bilateral lower extremities (leg, bilateral), I85.00 — Esophageal varices without bleeding (esophagus), I85.01 — Esophageal varices with bleeding (esophagus, bleeding), I85.10 — Secondary esophageal varices without bleeding (esophagus, secondary), I85.11 — Secondary esophageal varices with bleeding (esophagus, secondary, bleeding), I86.0 — Sublingual varices (sublingual), I86.1 — Scrotal varices (scrotum), I86.2 — Pelvic varices (ovary), I86.3 — Vulval varices (labia), I86.4 — Gastric varices (stomach), I86.8 — Varicose veins of other specified sites (orbit), O43.89 — Other placental disorders (placenta), O87.2 — Hemorrhoids in the puerperium (complicating, puerperium, anus or rectum), O87.4 — Varicose veins of lower extremity in the puerperium (complicating, childbirth), O87.8 — Other venous complications in the puerperium (complicating, puerperium, genital), Q27.8 — Other specified congenital malformations of peripheral vascular system (congenital), +58 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.

Prothrombin Time Test and INR (PT/INR)

Contextual Map

Every relationship of O22.42 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 O22.42 with these 5 related codes in Claim Check

Hierarchy

Referenced by Excludes2 notes

Referenced by Code First instructions

  • I80 — Phlebitis and thrombophlebitis[Code First](via O22.-): “phlebitis and thrombophlebitis complicating pregnancy, childbirth and the puerperium (O22.-, O87.-)”— CMS ICD-10-CM tabular instructional notes · icd10cm-fy2026
  • I82 — Other venous embolism and thrombosis[Code First](via O22.-): “pregnancy, childbirth and the puerperium (O22.-, O87.-)”— CMS ICD-10-CM tabular instructional notes · icd10cm-fy2026

Clinical classification (CCSR)

MS-DRG Grouper

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

Nearest codes (40)

Change history

  • FY2016 — In the code set at ICD-10-CM adoption [Change history]— CMS release files (code change ledger) · icd10cm-fy2016

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 structured 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 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.

Labels on this page: Official source data · MedCoder structured relationship · MedCoder explanation. How to read the labels · All data sources and release dates

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. "O22.42 — Hemorrhoids in pregnancy, second trimester." ICD-10-CM FY2027. https://medcoder.ai/icd10/code/o22.42-hemorrhoids-in-pregnancy-second-trimester

Change history

  • FY2016 — October 1, 2015
    In the code set at ICD-10-CM adoption
    Hemorrhoids in pregnancy, second trimester

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 O22.42 in its code family, with their registry titles.

View all codes in the O22 family