2027 ICD-10-CM Diagnosis Code Z71.7Human immunodeficiency virus [HIV] counseling

ICD-10-CM Codes›Z00–Z99›Z69-Z76›Z71

ICD-10-CM Z71.7
CMSSource: CMS FY 2027 ICD-10-CM dataset · Effective Oct 1, 2026 – Sep 30, 2027

Z71.7 is a billable ICD-10-CM diagnosis code for human immunodeficiency virus [HIV] counseling. It is valid on HIPAA claims for fiscal year 2027 (October 1, 2026 through September 30, 2027) and groups to MS-DRG 951. The code is not accepted as a principal diagnosis by the Medicare Code Editor and exempt from POA reporting. Coders also document this condition as patient advised about the risks of HIV. In AHRQ's Clinical Classifications Software (CCSR), this diagnosis falls under Other specified encounters and counseling.

Code Identity

ICD-10-CM Code
Z71.7
Billable Status
Yes — Valid for Submission
Code Describes
Human immunodeficiency virus [HIV] counseling
Short Description
Human immunodeficiency virus [HIV] counseling
Same as the full description in the CMS dataset.
Parent Code
Persons encountering health services for other counseling and medical advice, not elsewhere classified

Code Classification

ChapterZ00–Z99Factors influencing health status and contact with health services
SectionZ69-Z76Persons encountering health services in other circumstances
CategoryZ71Persons encountering health services for other counseling and medical advice, not elsewhere classified
This CodeZ71.7Human immunodeficiency virus [HIV] counseling

Code EditsBilling

Medicare Code Editor checks that affect claim validity for Z71.7.

There are selected codes that describe a circumstance which influences an individual's health status but not a current illness or injury, or codes that are not specific manifestations but may be due to an underlying cause. These codes are considered unacceptable as a principal diagnosis.

Present on Admission (POA)Billing

Z71.7 is exempt from POA reporting on inpatient claims to general acute care hospitals. Review the other POA exempt codes in Persons encountering health services in other circumstances (Z69-Z76).

Approximate SynonymsGuidance

Alternate terms and clinical phrases that map to this code.

  • Patient advised about the risks of HIV

Instructional NotesGuidance

Instructions from the official ICD-10-CM Tabular List that apply to Z71.7: its own notes plus those printed at Z71 and Chapter 21. A note printed at a category, block or chapter applies to every code under it.

Excludes2

Not included here: the excluded condition is not part of this code, but a patient may have both, so both codes may be reported.

From Z71 Persons encountering health services for other counseling and medical advice, not elsewhere classified applies to 19 codes
  • contraceptive or procreation counseling (Z30-Z31)
  • sex counseling (Z70.-)

Notes

General instructions on how these codes are used.

From Chapter 21 (Z00-Z99) Factors influencing health status and contact with health services applies to 1,425 codes
  • Z codes represent reasons for encounters. A corresponding procedure code must accompany a Z code if a procedure is performed. Categories Z00-Z99 are provided for occasions when circumstances other than a disease, injury or external cause classifiable to categories A00-Y89 are recorded as 'diagnoses' or 'problems'. This can arise in two main ways:
  • (a) When a person who may or may not be sick encounters the health services for some specific purpose, such as to receive limited care or service for a current condition, to donate an organ or tissue, to receive prophylactic vaccination (immunization), or to discuss a problem which is in itself not a disease or injury.
  • (b) When some circumstance or problem is present which influences the person's health status but is not in itself a current illness or injury.

Source: CMS ICD-10-CM Tabular List. How to read instructional notes.

Index to Diseases and InjuriesGuidance

Clinical ClassificationClinical

AHRQ’s CCSR groups this code into broader clinical categories.

CCSR FAC012
Other specified encounters and counseling
Default principal diagnosis: inpatient No · outpatient Yes

Patient EducationClinical

HIV

HIV stands for human immunodeficiency virus. HIV harms your immune system by destroying a type of white blood cell that helps your body fight infection. This puts you at risk for other infections and diseases.

The full article covers:

  • What is HIV?
  • What is AIDS?
  • How does HIV spread?
  • Who is at risk for HIV infection?
  • What are the symptoms of HIV?
  • How do I know if I have HIV?
  • What are the treatments for HIV?
  • Can HIV infection be prevented?

Read the full article at MedlinePlus

Courtesy of MedlinePlus, a service of the U.S. National Library of Medicine.

Convert Z71.7 to ICD-9-CMHistory

The closest ICD-9-CM equivalents under the General Equivalence Mappings.

ICD-9-CM
V65.44 Hiv counseling
Exact Match The mapping is direct, with no qualifiers.

Code HistoryHistory

FY 2016AddedAdded to the ICD-10-CM code setEffective October 1, 2015, the first year of ICD-10-CM.
FY 2017–2026No changes
FY 2027CurrentCurrent code set, no changesEffective October 1, 2026 through September 30, 2027.

Questions About Z71.7Overview

What is the ICD-10 code for human immunodeficiency virus [HIV] counseling?

The ICD-10-CM code for human immunodeficiency virus [HIV] counseling is Z71.7 (sometimes written as Z717). It is billable on HIPAA-covered claims from October 1, 2026 through September 30, 2027.

Is Z71.7 a billable code?

Yes. This is a billable ICD-10-CM code, specific enough to report human immunodeficiency virus [HIV] counseling on HIPAA-covered claims from October 1, 2026 through September 30, 2027.

What MS-DRG does Z71.7 group to?

On inpatient claims, human immunodeficiency virus [HIV] counseling maps to MS-DRG 951 (other Factors Influencing Health Status), which carries a relative weight of 0.5574. Higher weights mean higher Medicare reimbursement.

Can Z71.7 be a principal diagnosis?

No. The Medicare Code Editor rejects this code as a principal diagnosis because human immunodeficiency virus [HIV] counseling describes a circumstance that influences health status rather than a current illness. Report it as a secondary diagnosis.

Is Z71.7 exempt from POA reporting?

Yes. CMS lists this code among those exempt from present on admission reporting, so hospitals do not assign a POA indicator for human immunodeficiency virus [HIV] counseling on inpatient claims. The code appears in the Persons encountering health services in other circumstances (Z69-Z76) range of the CMS exempt list.