The changes occur under Z87.890, Personal history of sex reassignment. The classification also adds “Personal history of gender transition” as an inclusion term. Although the parent code continues to use the phrase “sex reassignment,” the new child codes use more specific gender-transition terminology. Coding professionals should follow the terminology and instructions in the Tabular List while assigning the code that best reflects the provider’s documentation.
It is important to understand what a personal history code represents. These codes describe a transition-related event, treatment, or circumstance that occurred in the past. They do not automatically indicate that the patient currently has an active condition, is receiving current treatment, or identifies in any particular way. As with other history codes, the information should be reported when it is documented and relevant to the encounter.
The new code choices include the following:
- Z87.8901 Personal history of social gender transition
This code identifies a documented history of social transition. Social transition may involve nonmedical changes in how a person presented or was recognized socially, such as a change in name, pronouns, clothing, or other social expression. The code does not describe hormone therapy or surgery.
- Z87.8902 Personal history of medical gender transition
This code identifies a history of medical treatment associated with gender transition. The Tabular List specifically includes a personal history of pharmacological or hormonal gender transition. It should not be assigned solely because a medication appears on the medication list; the documentation should connect the treatment to the patient’s transition history.
- Z87.8903 Personal history of surgical gender transition
This code identifies a history of surgery performed as part of gender transition. It does not identify the specific procedure or the patient’s current anatomy. Other codes may be needed when a prior procedure, acquired absence, or current postoperative condition is relevant to the encounter.
- Z87.8904 Personal history of intersex surgery
This code identifies a documented history of surgery related to an intersex variation or differences in sex characteristics. It is separate from the surgical gender-transition code. Coding professionals should not infer this history from anatomy, a congenital condition, or a prior procedure when the relationship is not clearly documented.
- Z87.8909 Personal history of unspecified gender transition
This code is used when a history of gender transition is documented but the record does not identify whether the transition was social, medical, surgical, or another specified type. The unspecified code should not be selected when the complete record supports one of the more specific options. Coding professionals should not assume a more specific type based on appearance, medication history, surgical scars, demographic information, or prior registration data.
- Z87.893 Personal history of gender detransition
This code identifies a documented history of gender detransition, meaning that one or more aspects of a prior transition were discontinued or reversed. The Tabular List includes a “Code also” instruction for personal history of sex reassignment, Z87.890-. Therefore, when applicable and supported by the documentation, Z87.893 is assigned with the most specific Z87.890- code describing the prior transition history.
Two additional points. First, because specific child codes are being added under Z87.890, coding professionals must assign the complete code supported by the documentation rather than stopping at the parent category. Second, a history code should not replace coding for an active condition, current treatment, complication, status, or aftercare when one of those circumstances is the reason for the encounter. The complete record and the applicable coding guidelines must be reviewed.
The added specificity surrounding the new gender transition history codes can improve reporting, but only when documentation clearly identifies the type of history and coding professionals avoid making assumptions about a patient’s identity, treatment, or anatomy.
About the Author
Dianna Foley, RHIA, CCS, CDIP, CHPS, has 25 years of HIM experience. She earned her bachelor’s degree from the University of Cincinnati and holds RHIA, CHPS, CDIP, and CCS certifications from AHIMA. Dianna’s an AHIMA-approved ICD-10-CM/PCS trainer, an AHIMA-published author, a participant in AHIMA credential item writing and exam development, and served on the AHIMA Nominating Committee. Dianna has held various HIM positions and is now an independent coding consultant. She previously served as a program director for Medical Coding and HIT. She presents on coding topics at the national, state, and regional levels and serves as OHIMA’s Education Coordinator.


