2027 ICD-10-CM Diagnosis Code Z87.893Personal history of gender detransition

ICD-10-CM Codes›Z00–Z99›Z77-Z99›Z87

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

Z87.893 is a billable ICD-10-CM diagnosis code for personal history of gender detransition. 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.

Code Identity

ICD-10-CM Code
Z87.893
Billable Status
Yes — Valid for Submission
Code Describes
Personal history of gender detransition
Short Description
Personal history of gender detransition
Same as the full description in the CMS dataset.
Parent Code
Personal history of other specified conditions

Code Classification

ChapterZ00–Z99Factors influencing health status and contact with health services
SectionZ77-Z99Persons with potential health hazards related to family and personal history and certain conditions influencing health status
CategoryZ87Personal history of other diseases and conditions
This CodeZ87.893Personal history of gender detransition

Code EditsBilling

Medicare Code Editor checks that affect claim validity for Z87.893.

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

Instructional NotesGuidance

Instructions from the official ICD-10-CM Tabular List that apply to Z87.893: its own notes plus those printed at Z87.8, Z87, block Z77-Z99, 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 Z87.8 Personal history of other specified conditions applies to 13 codes
  • personal history of self harm (Z91.5-)

Code First

The underlying condition named in the note is sequenced before this code.

From Z87 Personal history of other diseases and conditions applies to 54 codes
  • any follow-up examination after treatment (Z09)

Code Also

A second code may be needed to fully describe the condition; the note gives no sequencing direction.

On Z87.893 itself
  • personal history of sex reassignment (Z87.890-)
From Block Z77-Z99 Persons with potential health hazards related to family and personal history and certain conditions influencing health status applies to 567 codes
  • any follow-up examination (Z08-Z09)

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.

Referenced in Other NotesGuidance

Instructional notes printed at other codes that name Z87.893, its category, or a range that includes it.

Use Additional Code 1

These codes say to use an additional code from the note, and Z87.893 is one of the codes named.

  • Z09 Encounter for follow-up examination after completed treatment for conditions other than malignant neoplasm
    code to identify any applicable history of disease code (Z86.-, Z87.-) names Z87.-, which includes this code

Code History & ChangesHistory

New Code Z87.893 was added to the ICD-10-CM code set for FY 2027, effective October 1, 2026.

Replacement Z87.893 replaces the following previously assigned code(s):

  • Z87.898 - Personal history of other specified conditions
FY 2027AddedAdded to the ICD-10-CM code setEffective October 1, 2026.
FY 2027CurrentRevised in the current code setEffective October 1, 2026 through September 30, 2027.

Questions About Z87.893Overview

What is the ICD-10 code for personal history of gender detransition?

The ICD-10-CM code for personal history of gender detransition is Z87.893 (sometimes written as Z87893). It is billable on HIPAA-covered claims from October 1, 2026 through September 30, 2027.

Is Z87.893 (Personal history of other specified conditions) a billable code?

Yes. This is a billable ICD-10-CM code, specific enough to report personal history of gender detransition on HIPAA-covered claims from October 1, 2026 through September 30, 2027.

What MS-DRG does Z87.893 group to?

On inpatient claims, personal history of gender detransition 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 Z87.893 be a principal diagnosis?

No. The Medicare Code Editor rejects this code as a principal diagnosis because personal history of gender detransition describes a circumstance that influences health status rather than a current illness. Report it as a secondary diagnosis.

Is Z87.893 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 personal history of gender detransition on inpatient claims. The code appears in the Persons with potential health hazards related to family and personal history and certain conditions influencing health status (Z77-Z99) range of the CMS exempt list.