Z Codes
History Codes (Z80–Z87): When Is a Condition “History Of” Rather Than Current?
Personal history codes (Z85–Z87 and the Z91.- history subcategories) report a past condition that no longer exists and is not receiving treatment but may recur; family history codes (Z80–Z84) report a family member’s disease that raises the patient’s risk. They are sequenced after the reason for the encounter, and they pair with the follow-up and screening codes: Z85 carries Code First for Z08, and Z86 and Z87 carry Code First for Z09. A condition still present or still treated is not history.
Why this matters: “history of” is a coding boundary, not a chart heading
“There are two types of history Z codes, personal and family. Personal history codes explain a patient’s past medical condition that no longer exists and is not receiving any treatment, but that has the potential for recurrence, and therefore may require continued monitoring. Family history codes are for use when a patient has a family member(s) who has had a particular disease that causes the patient to be at higher risk of also contracting the disease.”
Charts use “history of” for anything in the past — including conditions still being treated. The classification uses it only for conditions that are over. The active-cancer guide linked below is the largest single case of that boundary; the same test applies to every history code.
The ICD-10-CM rule, by source
- Guidelines I.C.21.c.4 — the definitions above; “Personal history codes may be used in conjunction with follow-up codes and family history codes may be used in conjunction with screening codes to explain the need for a test or procedure. History codes are also acceptable on any medical record regardless of the reason for visit”; “The reason for the encounter (for example, screening or counseling) should be sequenced first and the appropriate personal and/or family history code(s) should be assigned as additional diagnos(es).” The history categories are listed there: Z80–Z84 family, Z85–Z87 personal, Z91.4-, Z91.5-, Z91.81, Z91.82, Z91.85 and others.
- Tabular — Z85 carries Code First for Z08; Z86 and Z87 carry Code First for Z09; Z86.73 (stroke without residual deficits) carries an Excludes1 for I69.- sequelae; Z87.891 excludes current nicotine dependence (F17.2-).
- Guidelines I.C.21.c.3 — the distinction from status: “A status code is distinct from a history code. The history code indicates that the patient no longer has the condition.”
How to apply the rule
- Confirm the condition no longer exists and is not being treated. Still present or under treatment → the condition’s own code; residual deficit → the sequela code; a device or organ present → a status code.
- Choose personal (Z85–Z87, Z91.-) or family (Z80–Z84).
- Sequence the reason for the encounter first — screening, counseling, follow-up — and the history code as an additional diagnosis.
- Follow the Code First notes: Z08 before Z85; Z09 before Z86/Z87, at a follow-up visit after completed treatment.
- Read the code’s exclusions: I69 for a stroke with residuals; F17.2- for current tobacco dependence; Z86.00-/.01- for carcinoma in situ or benign neoplasm history rather than Z85.
Coding examples
- Documentation: surveillance visit after completed breast cancer treatment, no evidence of disease. Result: Z08 → Z85.3. Why: Z85’s Code First note; the three-part active-vs-history test is met.
- Documentation: prior stroke; the note says “no residual deficits.” Result: Z86.73. Why: its inclusion term names stroke without residual deficits; a residual would instead be an I69 sequela code, which Z86.73 excludes.
- Documentation: “former smoker,” quit years ago. Result: Z87.891. Why: a documented current dependence would be F17.2-, which Z87.891 excludes.
- Documentation: screening colonoscopy; father had colon cancer. Result: the Z12.1- screening code first, then the Z80.0 family-history code. Why: the reason for the encounter leads; family history explains the need for the test.
Common mistakes
- A history code for a condition still under treatment (the active-cancer trap).
- Z86.73 for a stroke with residual deficits — I69.-.
- The history code sequenced before the follow-up or screening code.
- Z87.891 for a current smoker.
- A status code and a history code confused — a device present is status; a condition gone is history.
Documentation that changes the coding
- Whether the condition is resolved and untreated, still active, or has left a residual.
- The reason for the encounter, which leads.
- Family history that explains a screening or counseling visit.
- For neoplasms: excised/eradicated, no further treatment, no evidence of disease.
Decision framework
| IF… | THEN… |
|---|---|
| Past condition, gone, untreated, may recur | Personal history code, after the reason for the encounter |
| Condition still present or treated | The condition’s code — not history |
| Residual of the past condition | Sequela code (I69.-, or injury code with S) |
| Follow-up after completed treatment | Z08 / Z09 first, then the history code |
| Family member’s disease raising the patient’s risk | Z80–Z84, after the screening or reason code |
FAQ
When is a condition coded as “history of”?
When it no longer exists and is not receiving any treatment but has the potential for recurrence — Section I.C.21.c.4’s definition of a personal history code. A condition still present or still treated takes its own code.
Which goes first, the follow-up code or the history code?
The follow-up code. Z85 carries a Code First note for Z08, and Z86 and Z87 carry Code First notes for Z09; the Guidelines sequence the reason for the encounter first and the history code as an additional diagnosis.
Is a prior stroke always Z86.73?
Only without residual deficits. Z86.73 carries an Excludes1 for sequelae of cerebrovascular disease (I69.-); a documented residual such as hemiplegia is coded to I69.
Can history codes be reported at any visit?
Yes. The Guidelines say history codes are acceptable on any medical record regardless of the reason for visit, because a history of an illness may alter the treatment ordered — sequenced after the reason for the encounter.
Code relationships
| Relationship | At | Names | Note |
|---|---|---|---|
| code-first | Z85 | Z08 (follow-up examination after treatment of malignant neoplasm) | |
| code-first | Z86 | Z09 (follow-up examination after treatment) | |
| code-first | Z87 | Z09 | |
| excludes1 | Z86.73 | I69.- (sequelae of cerebrovascular disease); Z87.820 | No residual deficit = history; residual = sequela |
| excludes1 | Z87.891 | F17.2- (current nicotine dependence) | |
| use-additional | Z85 | F10.-, F17.-, Z72.0, Z87.891, Z77.22, Z57.31 | alcohol and tobacco exposure/use codes |
| excludes2 | Z85 | Z86.00- (history of carcinoma-in-situ); Z86.01- (history of benign neoplasm) |
Relationships are quoted from the FY tabular notes and Official Guidelines the guide cites; none are inferred.
Sources
Verified against the FY 2026 ICD-10-CM Official Guidelines (Section I.C.21.c.4) and the FY 2026 tabular entries at Z85, Z86, Z86.73, Z87 and Z87.891.
- ICD-10-CM Official Guidelines for Coding and Reporting, FY 2026 (Section I.C.21.c.4, History (of))
- FY 2026 ICD-10-CM Tabular List (Z85; Z86; Z86.73; Z87; Z87.891)
Coder Takeaway: History means gone and untreated but worth knowing; the reason for the encounter leads and the history code follows. If the condition is still present, still treated, or has left a residual, it is not a history code — it is the condition, the active code, or the sequela.
Applicable code set: FY 2026. Published September 3, 2026; last updated September 3, 2026; last reviewed September 3, 2026.