Skip to main content

Z40 ICD-10-CM Code: Encounter for prophylactic surgery

Billing Status: NO. This is a clinician non-billable / parent hierarchy grouping in the ICD-10-CM system.

Coding at a Glance

Tabular directives
2 Excludes1 · 1 Excludes2

Coding instructions

Official Tabular Instructional Notes: the inclusion, exclusion and sequencing notes published for Z40 in the official ICD-10-CM tabular list, quoted as published.

Source: CMS/CDC — ICD-10-CM Tabular ListRelease: FY2026Effective: October 1, 2025

Notes without a marker are published on Z40 itself; “inherited from” names the category or block whose note applies here.

Excludes1 — Not Coded Here

Conditions generally not reported together with this code (Excludes1) -- an error unless the two conditions are documented as unrelated to each other (ICD-10-CM Official Guidelines, Section I.A.12.a).

Excludes2 — Not Included Here

Conditions not covered by this code, but which may be reported alongside it when both are present.

Source: inherited from Z40-Z53

Coder workflow for Z40

MedCoder structured workflow — derived from this code’s own official record

Before you code Z40

  1. Z40 is not reportable as written. Select the more specific code beneath it that the documentation supports. Codes are reported to the highest level of specificity the classification provides (Guidelines I.B.2).

    ReviewZ40.0, Z40.8, Z40.9

    See the relationships section · Guide: How to choose an ICD-10-CM code →

  2. Confirm the reason for the encounter this Z code records: the circumstance it records. Check whether the code may be reported as first-listed or principal — some Z codes are limited to one position — and do not report a history or status code for a condition documented as current. Z code categories and their reporting positions (Guidelines I.C.21.c, I.C.21.c.15).

    Guide: Z codes as principal or first-listed diagnosis →

  3. Check the Excludes1 note: if the documentation supports a condition named there, do not simply proceed with Z40. Excludes1 conditions are not reported together with this code unless the record shows they are unrelated (Guidelines I.A.12.a).

    See the official tabular notes

Choose the right path

  1. Does the documentation support one of the more specific codes beneath Z40?
    Yes → Select that code and continue the checks below on its own page.
    No → Z40 cannot be reported as written; query for the specificity its subcategory needs.

    ReviewZ40.0, Z40.8, Z40.9

  2. Does the documentation support a condition named in Z40’s Excludes1 note?
    Yes → Do not simply proceed: review the excluded code. Both are reported only when the record shows the two conditions are unrelated.
    No → Continue.

    ReviewZ52

Consider Z40. Then confirm the code is valid for the date of service in the Verify section.

Documentation check

The provider’s diagnostic statement
Codes are assigned from the provider’s documented diagnosis, not from clinical criteria, test values or a medication list (Guidelines I.A.19).
The reason for the encounter
Whether the code records the encounter’s purpose, a status, or a history — and whether it may be first-listed (Guidelines I.C.21.c).

Official instructions as workflow

  • Excludes1 — check before selecting Z40(2 notes)

    Coding workflow: If the documentation supports a condition named in this note, do not simply proceed with Z40: the two are not reported together. The one exception is when the record shows the two conditions are unrelated to each other.

    CompareZ52

    See the official tabular notes · Guidelines I.A.12.a

  • Excludes2 — not part of Z40(1 note)

    Coding workflow: The conditions named in this note are not included in Z40. When the record documents both, both may be reported; the note is a boundary, not a prohibition.

    See the official tabular notes · Guidelines I.A.12.b

Coding decision scenarios

Pattern scenarios for this code’s structure — decision rules, not clinical cases

Documentation: Both the condition Z40 describes and a condition named in its Excludes1 note are documented for the same encounter.

Coding question: Can both codes be reported?

Path: Review the Excludes1 note and the excluded code, and look for a provider statement on whether the two conditions are related.

Reason: Excludes1 means the two are not coded together; the exception is when the record shows the conditions are unrelated to each other (Guidelines I.A.12.a).

ReviewZ52

Every row is derived from this code’s own record — its title, tabular notes, 7th-character family and same-category siblings — with fixed MedCoder wording; nothing is inferred about a patient. The official notes and guideline text are in the sections each row links to, and they control.

Code Overview

Encounter for prophylactic surgery is a non-billable ICD-10-CM category code (Z40). A more specific billable subcode must be selected for claims submission.

MedCoder summary Summary composed by MedCoder from this code's official ICD-10-CM record. The tabular instructional notes themselves appear verbatim below.

Official Coding Guidelines

Official source data — quoted verbatim from the CMS/NCHS Official Guidelines

Official source data — quoted verbatim from the CMS/NCHS Official Guidelines

Verbatim excerpts from the ICD-10-CM Official Guidelines for Coding and Reporting (CMS/NCHS) that govern this code.

Chapter 21: Factors influencing health status and contact with health services (Z00-Z99)

Miscellaneous Z codes/subcategories/categories: Z28 Immunization not carried out Except: Z28.3-, Underimmunization status Z29 Encounter for other prophylactic measures Z40 Encounter for prophylactic surgery Z41 Encounter for procedures for purposes other than remedying health state Except: Z41.9, Encounter for procedure for purposes other than remedying health state, unspecified Z53 Persons encountering health services for specific procedures and treatment, not carried out Z72 Problems related to lifestyle Note: These codes should be assigned only when the documentation specifies that the patient has an associated problem Z73 Problems related to life management difficulty Note: These codes should be assigned only when the documentation specifies that the patient has an associated problem. Z74 Problems related to care provider dependency Except: Z74.01, Bed confinement status Z75 Problems related to medical facilities and other health care Z76.0 Encounter for issue of repeat prescription

Chapter 21: Factors influencing health status and contact with health services (Z00-Z99)

Z31.81 Encounter for male factor infertility in female patient Z31.83 Encounter for assisted reproductive fertility procedure cycle Z31.84 Encounter for fertility preservation procedure Z34 Encounter for supervision of normal pregnancy Z39 Encounter for maternal postpartum care and examination Z38 Liveborn infants according to place of birth and type of delivery Z40 Encounter for prophylactic surgery Z42 Encounter for plastic and reconstructive surgery following medical procedure or healed injury Z51.0 Encounter for antineoplastic radiation therapy Z51.1- Encounter for antineoplastic chemotherapy and immunotherapy Z52 Donors of organs and tissues Except: Z52.9, Donor of unspecified organ or tissue Z76.1 Encounter for health supervision and care of foundling Z76.2 Encounter for health supervision and care of other healthy infant and child Z99.12 Encounter for respirator [ventilator] dependence during power failure

Verify Before Coding

From the code registry, the Medicare Code Editor, and the MS-DRG Definitions Manual. Check it against a full claim in Claim Check.

Relationships & Classification

MedCoder structured relationships — computed from published CMS and AHRQ datasets

Other codes that name Z40 or its code family, from the CMS ICD-10-CM tabular instructional notes. Tabular-note edges are stored at the code family level that carries each note.

Referenced by 1 Excludes1 note: Z29 — Encounter for other prophylactic measures.

These codes’ tabular lists mark this diagnosis as mutually exclusive — not reported together unless the conditions are documented as unrelated.

Contextual Map

Every relationship of Z40 in one view: hierarchy, official tabular instructions in both directions, clinical classification, risk adjustment, MS-DRG participation, index terms and change history — each edge carrying the CMS source it derives from.

Run Z40 with these 4 related codes in Claim Check

Hierarchy

Excludes1

Excludes2

Referenced by Excludes1 notes

Nearest codes (11)

Change history

  • FY2016 — In the code set at ICD-10-CM adoption [Change history]— CMS release files (code change ledger) · icd10cm-fy2016

Common coding questions

Can Z40 be billed directly?

No. Z40 (Encounter for prophylactic surgery) is a non-billable ICD-10-CM category code. A more specific billable subcode must be selected based on clinical documentation.

Sources for this page

Codes, titles, notes, index terms and mappings on this page are transcribed from the datasets below. Relationships MedCoder computed and text MedCoder wrote are labelled where they appear.

Code, title, tabular notes and index terms Official source data
CMS/CDC ICD-10-CM FY2026 tabular list, index and tables, effective October 1, 2025 Release, file and checksum · Publisher’s page
Coding guidelines Official source data
ICD-10-CM Official Guidelines for Coding and Reporting (FY2026), quoted by section Release, file and checksum · Publisher’s page
Claim edits Official source data
CMS Definitions of Medicare Code Edits — v43.1 (April 2026) Release, file and checksum · Publisher’s page
Change history and date-of-service validity Official source data
CMS ICD-10-CM release addenda, ingested release by release into the change ledger Release, file and checksum · Publisher’s page
Comparisons, relationships and the contextual map MedCoder structured relationship
Computed by MedCoder from the tabular notes and tables above; every derived relationship is marked as derived where it appears
Summary and FAQ answers MedCoder explanation
Written by MedCoder to explain the sources above: drafted with AI assistance, checked by a person against the release files, and labelled as MedCoder text where it appears. Not official text.

Labels on this page: Official source data · MedCoder structured relationship · MedCoder explanation. How to read the labels · All data sources and release dates

Cite this page

Reference this page in a research guide, syllabus or article. The release is included because code content changes each year.

MedCoder.ai. "Z40 — Encounter for prophylactic surgery." ICD-10-CM FY2026. https://medcoder.ai/icd10/code/z40-encounter-for-prophylactic-surgery

Change history

  • FY2016 — October 1, 2015
    In the code set at ICD-10-CM adoption
    Encounter for prophylactic surgery

No changes since FY2016 — additions, deletions, description changes and billable-status changes are tracked through FY2027 (effective October 1, 2026), and none are recorded for this code. Note changes are tracked from FY2027 only.

Nearest Codes in This Family

Official ICD-10-CM classifications closest to Z40 in its code family, with their registry titles.