2027 ICD-10-CM Diagnosis Code Z87.8903Personal history of surgical gender transition
Z87.8903 is a billable ICD-10-CM diagnosis code for personal history of surgical gender transition. It is valid on HIPAA claims for fiscal year 2027 (October 1, 2026 through September 30, 2027) and groups to MS-DRG 887. 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 history of construction of penis.
Code Identity
Code Classification
Code EditsBilling
Medicare Code Editor checks that affect claim validity for Z87.8903.
Present on Admission (POA)Billing
Z87.8903 is exempt from POA reporting on inpatient claims to general acute care hospitals. Review the other POA exempt codes in Persons with potential health hazards related to family and personal history and certain conditions influencing health status (Z77-Z99).
Approximate SynonymsGuidance
Alternate terms and clinical phrases that map to this code.
- History of construction of penis
- History of metoidioplasty
Instructional NotesGuidance
Instructions from the official ICD-10-CM Tabular List that apply to Z87.8903: 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.
Code First
The underlying condition named in the note is sequenced before this code.
Code Also
A second code may be needed to fully describe the condition; the note gives no sequencing direction.
Notes
General instructions on how these codes are used.
- 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.8903, its category, or a range that includes it.
Excludes1 1
These codes carry an Excludes1 note naming Z87.8903: they are not reported together with it, unless the two conditions are unrelated.
Excludes2 1
These codes carry an Excludes2 note naming Z87.8903: its condition is not part of those codes, and both may be reported when the patient has both.
Use Additional Code 2
These codes say to use an additional code from the note, and Z87.8903 is one of the codes named.
- F64.1 Dual role transvestismcode to identify sex reassignment status (Z87.890-) names Z87.890-, which includes this code
- Z09 Encounter for follow-up examination after completed treatment for conditions other than malignant neoplasmcode to identify any applicable history of disease code (Z86.-, Z87.-) names Z87.-, which includes this code
Code History & ChangesHistory
New Code Z87.8903 was added to the ICD-10-CM code set for FY 2027, effective October 1, 2026.
Replacement Z87.8903 replaces the following previously assigned code(s):
- Z87.890 - Personal history of sex reassignment
Questions About Z87.8903Overview
What is the ICD-10 code for personal history of surgical gender transition?
The ICD-10-CM code for personal history of surgical gender transition is Z87.8903 (sometimes written as Z878903). It is billable on HIPAA-covered claims from October 1, 2026 through September 30, 2027.
Is Z87.8903 (Personal history of sex reassignment) a billable code?
Yes. This is a billable ICD-10-CM code, specific enough to report personal history of surgical gender transition on HIPAA-covered claims from October 1, 2026 through September 30, 2027.
What MS-DRG does Z87.8903 group to?
On inpatient claims, personal history of surgical gender transition maps to MS-DRG 887 (other Mental Disorder Diagnoses), which carries a relative weight of 1.1154. Higher weights mean higher Medicare reimbursement.
Can Z87.8903 be a principal diagnosis?
No. The Medicare Code Editor rejects this code as a principal diagnosis because personal history of surgical gender transition describes a circumstance that influences health status rather than a current illness. Report it as a secondary diagnosis.
Is Z87.8903 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 surgical gender transition 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.