Z87.8904

Personal history of intersex surgery

FY2027Chapter 21: Factors influencing health status and contact with health services/Z77–Z99 Persons with potential health hazards related to family and personal history and certain conditions influencing health status

BillableComplete code, valid to report

Z87.8904 (also written Z878904) is a billable ICD-10-CM diagnosis code for personal history of intersex surgery. It is part of the FY2027 code set, effective October 1, 2026. It is one of the 54 codes in category Z87 (Personal history of other diseases and conditions). Its coding notes include a Code first instruction, a Code also instruction and 1 Excludes2 entry.

Guidelines tip

From the FY2027 Official Guidelines. ICD10Ref adds no rules of its own.

History codes can go on any record. The reason for the encounter is sequenced first, with history codes as additional diagnoses.

Guidelines I.C.21.c.4Personal and family history Z codesRead the official text

Code first

If the underlying condition listed here is present and known, sequence it first.

Inherited from Z87 Personal history of other diseases and conditions
  • any follow-up examination after treatment (Z09)

Code also

Two codes may be needed to describe the condition. This note gives no sequencing order.

Also from chapter/block level (1 note)
Inherited from Z77–Z99 Persons with potential health hazards related to family and personal history and certain conditions influencing health status
  • any follow-up examination (Z08-Z09)

Excludes2

Not included here. Both codes may be reported if the patient has both conditions.

Inherited from Z87.8 Personal history of other specified conditions
  • personal history of self harm (Z91.5-)

Care settings

How CMS programs treat this code. These are CMS claim edits and list entries, not coverage or eligibility rules.

Hospice: not accepted as primary

Not accepted as the principal diagnosis on a hospice claim (bill types 081x and 082x). The Integrated OCE returns an edit for this code.
Reason: Supplementary or additional code, not allowed as principal diagnosis.

Source: CMS Integrated Outpatient Code Editor (IOCE) v27.3, effective October 1, 2026, edit 113

IPF Primary

IPF MS-DRG adjustment. A principal diagnosis of this code groups to this MS-DRG:

MS-DRGDescriptionFactor
887Other mental disorder diagnoses1.00
A principal diagnosis that groups to none of the 19 designated MS-DRGs gets no MS-DRG adjustment. Otherwise the claim still receives the federal per diem base rate and the other adjustments.

Source: CMS IPF PPS FY 2027 final rule (CMS-1847-F), Addendum A; code lists from the CMS MS-DRG Definitions Manual v44; effective for discharges on or after October 1, 2026

Notes

Also from chapter/block level (3 notes)
Inherited from Chapter 21 Factors influencing health status and contact with health services
  • 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.