ICD-10-CM 2027 diagnosis code
Z87.8902Personal history of medical gender transition
Z87.8902 is a valid, billable ICD-10-CM code for personal history of medical gender transition. It can be reported on claims for dates of service from October 1, 2026 – September 30, 2027.
Code last changed in FY2027 (effective October 1, 2026). Source: official FY2027 ICD-10-CM release from CDC/NCHS and CMS. Page updated September 29, 2026. About our data
About Z87.8902
Z87.8902 is the ICD-10-CM diagnosis code for personal history of medical gender transition. It belongs to category Z87 (personal history of other diseases and conditions), block Z77-Z99 (persons with potential health hazards related to family and personal history and certain conditions influencing health status) and chapter 21 (factors influencing health status and contact with health services). It is billable, so it can be reported on its own for dates of service from October 1, 2026 through September 30, 2027.
Within Z87.890 (personal history of sex reassignment), Z87.8902 is specifically for personal history of medical gender transition. Related codes cover social gender transition (Z87.8901), surgical gender transition (Z87.8903), intersex surgery (Z87.8904) and unspecified gender transition (Z87.8909).
Code first: any follow-up examination after treatment (Z09).
It is not a CC or MCC, so as a secondary diagnosis it doesn't change the MS-DRG severity level.
In MS-DRG v44.0, it is part of the grouping logic for DRG 887 (Other Mental Disorder Diagnoses, relative weight 1.1139), in MDC 19 (Mental Diseases and Disorders), as a principal or secondary diagnosis. The DRG a claim lands in depends on the principal diagnosis, procedures and any CC/MCC secondary diagnoses.
It is not acceptable as the principal diagnosis for an inpatient stay; it may be reported as a secondary diagnosis.
It is exempt from present-on-admission (POA) reporting, so no POA indicator is required.
It was added in FY2027, effective October 1, 2026.
Coding notes
- Personal history of pharmacological (hormonal) gender transition
Notes that apply from higher levels
Instructions written at a parent level also apply to Z87.8902.
› From Z87.8 Personal history of other specified conditions
- personal history of self harm (Z91.5-)
› From Z87 Personal history of other diseases and conditions
- any follow-up examination after treatment (Z09)
Broader instructions also apply from Z77-Z99 Persons with potential health hazards related to family and personal history and certain conditions influencing health status and Chapter 21: Factors influencing health status and contact with health services.
MS-DRG v44.0 grouping
All DRGs →Inpatient MS-DRGs this diagnosis can group to, as the principal or a secondary diagnosis, depending on the rest of the claim.
MDC 19 · Mental Diseases and Disorders
Code history
- 2016
- 2017
- 2018
- 2019
- 2020
- 2021
- 2022
- 2023
- 2024
- 2025
- 2026
- 2027
- FY2027 (effective 10/1/2026): Added
Common questions about Z87.8902
Is Z87.8902 billable?
- Yes. Z87.8902 is a billable/specific ICD-10-CM code valid for FY2027 (October 1, 2026 – September 30, 2027).
Can Z87.8902 be used as a principal diagnosis?
- No. It is not acceptable as the principal diagnosis for an inpatient stay; it may be reported as a secondary diagnosis.
Is Z87.8902 a CC or MCC?
- No. Z87.8902 is neither a CC nor an MCC under MS-DRG v44.0.
What DRG does Z87.8902 group to?
- Z87.8902 is used in the MS-DRG v44.0 logic for MS-DRG 887 (Other Mental Disorder Diagnoses). Which one applies depends on whether it is the principal diagnosis and on the rest of the claim.
Did Z87.8902 change for 2027?
- Yes. For FY2027 (effective October 1, 2026) it was added to the code set.