Skip to main content

Z31 vs Z71.7

Z31 (Encounter for procreative management) compared with Z71.7 (Human immunodeficiency virus [HIV] counseling), from the official CMS tabular data.

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 28, 2026 · All releases and sources

Summary

These codes can be reported together when both conditions are documented, because Z71.7 lists Z31 under Excludes2, which marks them as distinct conditions.

Official rule
What is different?

The conditions named and billing status.Z31 is “Encounter for procreative management”; Z71.7 is “Human immunodeficiency virus [HIV] counseling”. Z31 is a non-billable header; Z71.7 is billable.

Registry fact

Can these codes be reported together?

Yes, when both are documented.Z71.7 lists Z31 under Excludes2: “contraceptive or procreation counseling (Z30-Z31)”. Excludes2 marks distinct conditions that may both be reported when both are documented.

Official ruleGuide: Excludes1 vs Excludes2

Is there an Excludes2 relationship?

Yes.Z71.7’s tabular entry: “contraceptive or procreation counseling (Z30-Z31)”. The note covers Z31.

Official ruleGuide: Excludes1 vs Excludes2

Is one a parent or header code?

One is a header.Z31 is a non-billable header, but Z71.7 is not one of its subdivisions.

Registry fact

Nothing found in 3 other checks; 1 check does not apply
Is there an Excludes1 relationship?

None.Neither entry carries an Excludes1 note that names the other code.

Official rule

Is one more specific?

Not comparable.The codes sit in different categories; specificity is only comparable within one category.

Are there sequencing instructions?

None.Neither entry carries a Code First or Use Additional Code note that names the other.

Official rule

Are there other coding relationships?

None found.No laterality, encounter-phase, Table of Neoplasms, Table of Drugs and Chemicals, or history-versus-active-disease relationship links these codes.

MedCoder-derived

Official rule: a tabular instructional note or a section of the ICD-10-CM Official Guidelines, quoted as published. Registry fact: the codes’ own published attributes (titles, billable status, position in the hierarchy, code set). MedCoder-derived: a reading MedCoder computes from those facts; it is not itself a rule. How to read the labels

Can these codes be reported together?

Informational

Excludes2 relationship

Z71.7
Human immunodeficiency virus [HIV] counseling
↔
Z31
Encounter for procreative management

What we found

Yes, when both are documented.Z71.7 carries an Excludes2 note covering Z31: “contraceptive or procreation counseling (Z30-Z31)”

Excludes2 marks distinct conditions — both may be reported when both are documented.

What to review

Report both only when the documentation supports both conditions; otherwise report the one documented.

Guide: Excludes1 vs Excludes2Check these on a claim

Why it matters

An Excludes2 note means the excluded condition is not part of the code above it, but a patient can have both. Report both when both are documented.

Source / rule

CMS ICD-10-CM tabular instructional notes

Official guidance behind these answers

  • Section I.A.12.b — Excludes2 · applies to: Excludes2

    A type 2 Excludes note represents “Not included here.” An excludes2 note indicates that the condition excluded is not part of the condition represented by the code, but a patient may have both conditions at the same time. When an Excludes2 note appears under a code, it is acceptable to use both the code and the excluded code together, when appropriate.

    ICD-10-CM Official Guidelines FY2027

Quoted from the ICD-10-CM Official Guidelines for Coding and Reporting in effect for the release shown. The tabular notes above are the code-level instruction; these sections are the convention that says how such a note is applied. Source document (CMS PDF) · Release and checksum

Side by side

Similar descriptions do not make codes interchangeable. The documentation and the official instructions decide which code applies.

Official descriptionDiffers
Z31

Encounter for procreative management

Z71.7

Human immunodeficiency virus [HIV] counseling

StatusDiffers
Z31
Non-billable header

A header is not reported on a claim; a code beneath it is.

Report instead: Z31.0, Z31.41, Z31.42, Z31.430, Z31.438

Z71.7
Billable
Excludes2Differs
Z31
  • complications associated with artificial fertilization (N98.-)
  • female infertility (N97.-)
  • male infertility (N46.-)
Z71.7
  • contraceptive or procreation counseling (Z30-Z31)
  • sex counseling (Z70.-)
CategoryDiffers
Z31

Is itself a category

Z71.7

Z71 Persons encountering health services for other counseling and medical advice, not elsewhere classified

ChapterSame for both

Z00-Z99 — Factors Influencing Health Status and Contact with Health Services (Z00-Z99)

No Excludes1, Code first, Use additional code, Code also, Includes and 7th character note at either code.

Notes are the code’s own tabular entry, quoted as published. A note that names the other code is the one the verdict above rests on. In a row that differs, each code’s own notes are listed under it, and the notes every code shares are listed once beneath them.

Derived from the official CMS ICD-10-CM tabular data (FY2027). A coding-rule comparison, not billing advice: payer-specific edits and medical-necessity policy are outside its scope. All data sources