16192 Coastal Highway, Lewes, Delaware 19958
info@psychiatrybillers.com

Z87.893 Personal History of Gender Detransition: The 2027 Psychiatry Billing Guide

Clinician entering diagnosis codes on a laptop beside a stethoscope, representing ICD-10 code Z87.893 documentation
Editorial Transparency
Created by: Billing Service Quotes Editorial Team (Psychiatrybillers is powered by Billing Service Quotes).
Technical Review: Tim Daniels, Director of Strategic Accounts, Billing Service Quotes.
Billing Service Quotes is a matching platform for providers searching for vetted medical billing companies. Finding a match is 100% for providers.

What Is ICD-10 Code Z87.893?

Z87.893 is the new ICD-10-CM code for personal history of gender detransition, effective October 1, 2026, under the FY 2027 code set. It is a billable Z code in Chapter 21 (Factors Influencing Health Status and Contact with Health Services) that documents a patient who previously underwent some form of gender transition and has since reverted to living in conformity with their birth sex. Z87.893 is one of seven new gender-related codes added to the FY 2027 update, alongside F64.A (Gender identity disorder, in remission) and five personal history codes for specific types of gender transition.

  • When to use it: Z87.893 is a personal history code. Like any Z87 code, it should only be reported when the patient’s history of detransition is clinically relevant to the current encounter, such as during a psychiatric diagnostic evaluation (CPT 90791) or ongoing psychotherapy where the history informs treatment planning. It is not a code that should be added to every visit simply because the history exists in the chart.
  • What changed: Before October 1, 2026, there was no ICD-10-CM code for detransition history. Practices had no way to capture this clinical context in a structured, billable format. Z87.893 closes that gap for psychiatry, endocrinology, and primary care.
  • Compliance note: Greater ICD-10-CM specificity does not mean more diagnoses should be reported. The code is used when the history bears on the clinical decision-making for the current encounter, not as a standing diagnosis on every claim.

What Z87.893 Covers and When to Report It

Z87.893 captures one specific piece of clinical history: the patient previously underwent a gender transition of any type (social, medical, or surgical) and has since detransitioned, meaning they reverted to living in accordance with their birth sex. The code does not describe the reason for detransition, the type of transition that preceded it, or the patient’s current diagnostic status. It is purely a personal history code.

Report Z87.893 when the patient’s history of detransition is relevant to the clinical decision-making for the current encounter. Common scenarios in psychiatry include:

  • A patient presenting for mental health treatment where the detransition history informs the treatment plan, such as adjustment-related distress, identity-related counseling, or monitoring for depression (F32.9) or anxiety linked to the transition and detransition experience.
  • A patient whose detransition history affects medication management, such as a patient who previously received cross-sex hormone therapy and is now managing the physiological effects of discontinuation. This is especially relevant when a psychiatrist coordinates with endocrinology through a collaborative care model.
  • A patient requiring a psychiatric evaluation (CPT 90792) where the provider documents the detransition context to support the medical necessity of the evaluation and any referrals.

Do not report Z87.893 as a standalone primary diagnosis for an encounter. Z codes in the Z87 category are supplementary codes that provide context. They are typically reported alongside a primary diagnosis code that describes the condition being treated at the encounter, such as an F-code for the presenting mental health condition.

One question we hear constantly from practice managers is whether a Z code like Z87.893 will be reimbursed. The answer depends on the payer and the encounter context. Most payers accept Z codes as secondary diagnoses that support the medical necessity of the primary diagnosis and the services rendered. Some payers will also accept certain Z codes as primary when the encounter is specifically for counseling or screening related to the personal history. Verify with each payer before assuming coverage.

The Full FY 2027 Gender Transition and Identity Code Set

Z87.893 is part of a cluster of seven new codes added to FY 2027 that give psychiatry practices significantly more specificity when documenting gender identity history and current status. The full set is:

CodeDescriptionBillable
F64.AGender identity disorder, in remissionYes
Z87.8901Personal history of social gender transitionYes
Z87.8902Personal history of medical gender transitionYes
Z87.8903Personal history of surgical gender transitionYes
Z87.8904Personal history of intersex surgeryYes
Z87.8909Personal history of unspecified gender transitionYes
Z87.893Personal history of gender detransitionYes

These codes were not included in the initial FY 2027 proposed rule. They were added during the ICD-10 Coordination and Maintenance Committee process and appear in the final code set published by CMS in June 2026. This is the same update cycle that introduced the G2211 modifier changes for psychiatry billing and the 2027 Medicare payment adjustments that also affect behavioral health reimbursement.

The distinction between these codes matters for documentation. Z87.8901 through Z87.8903 describe what type of transition occurred: social (name, pronouns, presentation), medical (hormone therapy), or surgical (gender-affirming procedures). Z87.893 describes a patient who transitioned by any of those means and subsequently detransitioned. F64.A describes a patient whose gender identity disorder or gender dysphoria is currently in remission, with the inclusion term “gender dysphoria, in remission (desistance).”

A psychiatry practice may report more than one of these codes on the same encounter when the documentation supports it. For example, a patient with a history of medical gender transition (Z87.8902) who has since detransitioned (Z87.893) and whose gender dysphoria is currently in remission (F64.A) could have all three codes on the claim if each is relevant to the clinical decision-making for that visit. The key is that each code must be supported by the documentation and must bear on the encounter.

How Z87.893 Relates to F64.A

Z87.893 and F64.A are complementary but distinct codes. Understanding the difference is critical for psychiatry billing teams because using one when the other is appropriate will misrepresent the clinical situation on the claim.

ElementComparison
Code typeF64.A is an active clinical status (F code, mental health). Z87.893 is a personal history code (Z code, supplementary).
What it describesF64.A: gender dysphoria is currently in remission. Z87.893: the patient previously detransitioned, regardless of current dysphoria status.
Primary vs secondaryF64.A can be a primary diagnosis. Z87.893 is typically a secondary or supplementary code.
OverlapA patient can have both: dysphoria in remission (F64.A) and a history of detransition (Z87.893). They can also have one without the other.

A patient who detransitioned but still experiences active gender dysphoria would not receive F64.A (which requires remission). That patient’s current dysphoria would be coded under F64.0 (Transsexualism / Gender dysphoria in adolescents and adults) or another active F64 code, with Z87.893 as a secondary code documenting the detransition history. A patient whose dysphoria has resolved after detransition could receive both F64.A and Z87.893.

In our experience matching psychiatry practices with billing partners, the most common coding error on gender identity claims is reporting a history code when an active diagnosis code is appropriate, or the reverse. These new codes make the distinction clearer, but only if the billing team understands which code describes current clinical status (F64.A) and which describes past events (Z87.893).

New codes for gender identity history and detransition add specificity that psychiatry practices need, but they also add compliance risk if reported incorrectly. If your billing team is not current on the FY 2027 behavioral health code changes, a specialized billing partner ensures every claim uses the right code for the right encounter.

What Documentation Supports Z87.893

For a coder to assign Z87.893, the clinical documentation must explicitly state that the patient has a history of gender detransition. The documentation should come from the treating provider, not from the coder’s interpretation of scattered chart entries. This is the compliance point that the Alpha Coding Experts advisory on the FY 2027 update emphasized: coders should not determine whether a patient’s history was social, medical, or surgical based on clues in the medical record. The provider must document the history directly.

Acceptable documentation includes a provider note stating the patient has a personal history of gender detransition, a psychiatric evaluation that describes the detransition as part of the patient’s history, or a care coordination note that references detransition in the context of ongoing treatment. The documentation should also establish why the history is relevant to the current encounter. A passing mention in a social history section, without any connection to the current visit’s clinical reasoning, does not support reporting the code on that claim.

When Z87.893 is reported alongside a psychotherapy or evaluation CPT code such as CPT 90887 (interpretation or explanation of results) or a behavioral health screening (CPT 96127), the documentation should clearly connect the detransition history to the purpose of that service. The payer reviewing the claim needs to see why the history code was necessary for that specific encounter.

Providers often come to us after a new code set goes live asking whether they need to add the new codes to every patient who fits the description. The answer is no. Z87.893 is reported when the detransition history is clinically relevant, not as a universal demographic marker. A patient with a history of detransition who presents for an unrelated medication check does not need Z87.893 on that claim unless the detransition history informs the medication decision.

Compliance Considerations for Psychiatry Practices

The FY 2027 gender identity and transition codes carry compliance implications that go beyond standard coding accuracy. Psychiatry practices should address several points before October 1.

  • Clinical relevance is the threshold for reporting. Every Z87 personal history code, including Z87.893, requires a clinical reason for its inclusion on the claim. Reporting it without a documented connection to the encounter’s clinical decision-making risks an audit finding for overcoding or unsupported diagnoses.
  • Provider documentation drives code assignment, not coder inference. If the provider does not explicitly document a history of detransition, the coder cannot assign Z87.893 based on other chart entries that might suggest it. This is consistent with the general ICD-10-CM coding guideline that codes are assigned based on provider documentation, and it is especially important for codes involving sensitive personal history.
  • Payer coverage varies. Not all payers have published policies on the new gender identity history codes. Before reporting Z87.893 or any of the Z87.890x codes, verify with each payer whether they accept the code, whether they require it as a secondary diagnosis only, and whether any prior authorization or documentation requirements apply. Across the billing companies we vet, a recurring pattern is that behavioral health payers are slower to update their adjudication systems for new Z codes than for new F codes, which means early claims may pend or reject until the payer loads the update.
  • Patient sensitivity requires clear communication. These codes appear on Explanation of Benefits statements that patients receive. Practices should be prepared to explain why a code was reported if a patient asks, and they should have a process for ensuring that code assignment reflects what the provider documented and discussed with the patient, not an assumption the billing team made independently.

Frequently Asked Questions

What is ICD-10 code Z87.893?

Z87.893 is the ICD-10-CM code for personal history of gender detransition. It is a new billable code under the FY 2027 update, effective October 1, 2026. It documents that a patient previously underwent a gender transition of any type and has since reverted to living in conformity with their birth sex.

Is Z87.893 a billable code?

Yes. Z87.893 is a billable, specific ICD-10-CM code. It is typically reported as a secondary or supplementary code alongside a primary diagnosis that describes the condition being treated at the encounter.

What is the difference between Z87.893 and F64.A?

Z87.893 is a personal history code that documents a past event (the patient detransitioned). F64.A is a clinical status code that describes a current condition (gender identity disorder in remission, also termed desistance). A patient can have both codes on the same claim if the documentation supports both.

Can Z87.893 be reported as a primary diagnosis?

Z87 personal history codes are typically reported as secondary codes alongside a primary diagnosis. Some payers accept Z codes as primary when the encounter is specifically for counseling or follow-up related to the personal history. Verify with each payer before reporting Z87.893 as the primary diagnosis.

What documentation is needed to report Z87.893?

The treating provider must explicitly document that the patient has a personal history of gender detransition. The documentation should also establish why this history is relevant to the current encounter. Coders should not assign the code based on inferences from other chart entries.

When did Z87.893 become effective?

Z87.893 took effect on October 1, 2026, as part of the FY 2027 ICD-10-CM update. It applies to all patient encounters occurring on or after that date through September 30, 2027.

What other gender-related codes were added in FY 2027?

FY 2027 added seven gender-related codes: F64.A (Gender identity disorder, in remission), Z87.8901 (social gender transition history), Z87.8902 (medical gender transition history), Z87.8903 (surgical gender transition history), Z87.8904 (intersex surgery history), Z87.8909 (unspecified gender transition history), and Z87.893 (gender detransition history).

Next Steps

New gender identity and detransition codes add precision that psychiatry practices need for accurate claims, but they also add compliance requirements that a general billing team can easily miss. A specialized behavioral health billing partner knows when to report Z87.893, when to use F64.A, and how to document both so your claims hold up under audit. Billing Service Quotes has connected more than 2,000 providers across all 50 states, with over 15 years in medical billing and rates starting as low as 2.95%. Finding a match is 100% free for providers.

Get Matched In 30 Minutes

Get a FREE Quote

Tell us about your practice and we'll connect you with trusted billing companies.

100% Free to providers — No hidden fees at any stage

Where should we send your quote(s)?

We'll send it directly to your inbox

How many providers does your practice have?

We'll find a billing company that can support your needs

Where is your practice located?

We'll find a billing company that serves providers in your area

loading
Tim Daniels
Online now
Tim Daniels

How can I help?

Send me your number and I'll personally call you in less than 24 hours to discuss any questions you may have about our psychiatry billing partners

Mon–Fri, 9:00am–5:30pm Or email instead →
Got it — talk soon.
I'll call you within one business hour. Check your phone for an unknown number.