Skip to main content

Z77.12 vs Z87.821

Z77.12 (Contact with and (suspected) exposure to hazards in the physical environment) compared with Z87.821 (Personal history of retained foreign body fully removed), from the official CMS tabular data.

Current data releases:ICD-10-CM FY2027 · ICD-10-PCS FY2027 · HCPCS October 2026 · MS-DRG v44 · Medicare Code Editor v44.0 · NCCI PTP Q4 2026 · MUE Q4 2026 · NCD code lists 2026-01 · LCD export September 28, 2026 · All releases and sources

Summary

These codes can be reported together when both conditions are documented, because Z77.12 lists Z87.821 under Excludes2, which marks them as distinct conditions.

Official rule
What is different?

The conditions named and billing status.Z77.12 is “Contact with and (suspected) exposure to hazards in the physical environment”; Z87.821 is “Personal history of retained foreign body fully removed”. Z77.12 is a non-billable header; Z87.821 is billable.

Registry fact

Can these codes be reported together?

Yes, when both are documented.Z77.12 lists Z87.821 under Excludes2: “retained foreign body fully removed (Z87.821)”. Excludes2 marks distinct conditions that may both be reported when both are documented.

Official ruleGuide: Excludes1 vs Excludes2

Is there an Excludes1 relationship?

None.Neither entry carries an Excludes1 note that names the other code.

Official rule

Is there an Excludes2 relationship?

Yes.Z77.12’s tabular entry: “retained foreign body fully removed (Z87.821)”. The note covers Z87.821.

Official ruleGuide: Excludes1 vs Excludes2

Is one more specific?

Not comparable.The codes sit in different categories; specificity is only comparable within one category.

Is one a parent or header code?

One is a header.Z77.12 is a non-billable header, but Z87.821 is not one of its subdivisions.

Registry fact

Are there sequencing instructions?

None.Neither entry carries a Code First or Use Additional Code note that names the other.

Official rule

Are there other coding relationships?

None found.No laterality, encounter-phase, Table of Neoplasms, Table of Drugs and Chemicals, or history-versus-active-disease relationship links these codes.

MedCoder-derived

Official rule: a tabular instructional note or a section of the ICD-10-CM Official Guidelines, quoted as published. Registry fact: the codes’ own published attributes (titles, billable status, position in the hierarchy, code set). MedCoder-derived: a reading MedCoder computes from those facts; it is not itself a rule. How to read the labels

Can these codes be reported together?

Informational

Excludes2 relationship

Z77.12
Contact with and (suspected) exposure to hazards in the physical environment
↔
Z87.821
Personal history of retained foreign body fully removed

What we found

Yes, when both are documented.Z77.12 carries an Excludes2 note covering Z87.821: “retained foreign body fully removed (Z87.821)”

Excludes2 marks distinct conditions — both may be reported when both are documented.

What to review

Report both only when the documentation supports both conditions; otherwise report the one documented.

Guide: Excludes1 vs Excludes2Check these on a claim

Why it matters

An Excludes2 note means the excluded condition is not part of the code above it, but a patient can have both. Report both when both are documented.

Source / rule

CMS ICD-10-CM tabular instructional notes

Official guidance behind these answers

  • Section I.A.12.b — Excludes2 · applies to: Excludes2

    A type 2 Excludes note represents “Not included here.” An excludes2 note indicates that the condition excluded is not part of the condition represented by the code, but a patient may have both conditions at the same time. When an Excludes2 note appears under a code, it is acceptable to use both the code and the excluded code together, when appropriate.

    ICD-10-CM Official Guidelines FY2027

Quoted from the ICD-10-CM Official Guidelines for Coding and Reporting in effect for the release shown. The tabular notes above are the code-level instruction; these sections are the convention that says how such a note is applied. Source document (CMS PDF) · Release and checksum

Side by side

Similar descriptions do not make codes interchangeable. The documentation and the official instructions decide which code applies.

Official descriptionDiffers
Z77.12

Contact with and (suspected) exposure to hazards in the physical environment

Z87.821

Personal history of retained foreign body fully removed

StatusDiffers
Z77.12
Non-billable header

A header is not reported on a claim; a code beneath it is.

Report instead: Z77.120, Z77.121, Z77.122, Z77.123, Z77.128

Z87.821
Billable
Excludes2Differs
Z77.12
  • contact with and (suspected) exposure to communicable diseases (Z20.-)
  • exposure to (parental) (environmental) tobacco smoke in the perinatal period (P96.81)
  • newborn affected by noxious substances transmitted via placenta or breast milk (P04.-)
  • occupational exposure to risk factors (Z57.-)
  • retained foreign body (Z18.-)
  • retained foreign body fully removed (Z87.821)
  • toxic effects of substances chiefly nonmedicinal as to source (T51-T65)
Z87.821
  • personal history of self harm (Z91.5-)
Code firstDiffers
Z77.12

None at this code

Z87.821
  • any follow-up examination after treatment (Z09)
Code alsoSame for both
  • any follow-up examination (Z08-Z09)
CategoryDiffers
Z77.12

Z77 Other contact with and (suspected) exposures hazardous to health

Z87.821

Z87 Personal history of other diseases and conditions

ChapterSame for both

Z00-Z99 — Factors Influencing Health Status and Contact with Health Services (Z00-Z99)

IncludesDiffers
Z77.12
  • contact with and (suspected) exposures to potential hazards to health
Z87.821

None at this code

No Excludes1, Use additional code and 7th character note at either code.

Notes are the code’s own tabular entry, quoted as published. A note that names the other code is the one the verdict above rests on. In a row that differs, notes every code shares are dimmed.

Derived from the official CMS ICD-10-CM tabular data (FY2027). A coding-rule comparison, not billing advice: payer-specific edits and medical-necessity policy are outside its scope. All data sources