Z40.9 ICD-10-CM Code: Encounter for prophylactic surgery, unspecified
Billing Status: YES. This is a valid, specific, and billable ICD-10-CM reference.
Coding at a Glance
- Tabular directives
- 2 Excludes1 · 1 Excludes2
Inpatient Payment Groups (MS-DRG)
Potential MS-DRG participation — not a DRG assignment.
MS-DRGs this diagnosis helps define, as principal or secondary, per the CMS ICD-10-CM/PCS MS-DRG Definitions Manual v43, Appendix B.
- MS-DRG 951 — OTHER FACTORS INFLUENCING HEALTH STATUS (MDC 23)
A diagnosis appearing in a group's logic does not by itself determine the DRG assigned to a stay; the grouper uses the full claim.
Coding instructions
Official Tabular Instructional Notes: the inclusion, exclusion and sequencing notes published for Z40.9 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.9 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).
- organ donations (Z52.-) Compare Z40.9 vs Z52 →
- therapeutic organ removal-code to condition
Source: inherited from Z40
Excludes2 — Not Included Here
Conditions not covered by this code, but which may be reported alongside it when both are present.
- follow-up examination for medical surveillance after treatment (Z08-Z09) Compare Z40.9 vs Z08 →
Source: inherited from Z40-Z53
Coder workflow for Z40.9
MedCoder structured workflow — derived from this code’s own official record
Before you code Z40.9
- Unspecified does not mean incorrect. When the record gives no greater specificity, Z40.9 may be the appropriate code. Check the record for detail that supports a more specific sibling. An unspecified code is for records that do not provide the detail a more specific code needs; a query, not an assumption, is the route to specificity (Guidelines I.A.9.b, I.B.18).
See the relationships section · Guide: Other vs unspecified (NEC vs NOS) →
- 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).
- Check the Excludes1 note: if the documentation supports a condition named there, do not simply proceed with Z40.9. Excludes1 conditions are not reported together with this code unless the record shows they are unrelated (Guidelines I.A.12.a).
Choose the right path
- Does the record document the detail a more specific sibling code needs?
Yes → Review the specific siblings in this subcategory.
No → Continue — Z40.9 is appropriate when the documentation goes no further. - Does the documentation support a condition named in Z40.9’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.9. 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).
- Any detail beyond this code’s title
- What the record states that a more specific sibling code would capture — or its absence, which itself supports the unspecified code.
Official instructions as workflow
Excludes1 — check before selecting Z40.9(2 notes)
Coding workflow: If the documentation supports a condition named in this note, do not simply proceed with Z40.9: 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.9(1 note)
Coding workflow: The conditions named in this note are not included in Z40.9. 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: The provider documents the condition in the terms of this code’s title and records no further detail.
Coding question: Is a more specific sibling code supportable?
Path: Review the specific siblings in this subcategory and what each requires the record to state.
Reason: A more specific code needs documentation of the distinguishing element; without it the unspecified code is appropriate, and a provider query is the route to specificity (Guidelines I.A.9.b, I.B.18).
Documentation: Both the condition Z40.9 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
MedCoder summary Summary composed by MedCoder from this code's official ICD-10-CM record. The tabular instructional notes themselves appear verbatim below.
Indexed Clinical Terms (1)
Official source data — entries quoted as published, in the Index’s own lookup phrasing
Clinical term phrases from the official ICD-10-CM Index to Diseases and Injuries that map to this code. These are alphabetic-index entries shown as the Index writes them — lookup phrasing, not necessarily the wording of a final diagnosis.
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
- Principal-diagnosis restriction. The Medicare Code Editor lists this code as unacceptable as a principal diagnosis: it describes a circumstance influencing health status rather than a current illness or injury being treated. It is valid as a secondary diagnosis.
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.9 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 (via Z40.-).
These codes’ tabular lists mark this diagnosis as mutually exclusive — not reported together unless the conditions are documented as unrelated.
MS-DRG Grouper Relationships (FY2026)
Potential MS-DRG participation — not a DRG assignment.
FY2026 MS-DRG: not on the CMS CC/MCC list — as a secondary diagnosis this code does not change MS-DRG severity for that release.
Named in the grouper logic of 1 MS-DRG: DRG 951 (MDC 23).
From the CMS MS-DRG Definitions Manual (Appendices B and C). Actual DRG assignment depends on the complete claim.
Clinical classification (AHRQ CCSR):FAC004 — Encounter for prophylactic or other procedures (default).
Clinical Classifications Software Refined (CCSR) for ICD-10-CM Diagnoses. Healthcare Cost and Utilization Project (HCUP), Agency for Healthcare Research and Quality.
Related Codes
Principal diagnosis restriction (Medicare Code Editor)
Not acceptable as a principal diagnosis on an inpatient claim.
Same clinical category (CCSR)
AHRQ's Clinical Classifications Software groups these diagnoses under the same clinical category (Encounter for prophylactic or other procedures).
Z40.00 — Encounter for prophylactic removal of unspecified organ, Z40.01 — Encounter for prophylactic removal of breast, Z40.02 — Encounter for prophylactic removal of ovary(s), Z40.03 — Encounter for prophylactic removal of fallopian tube(s), Z40.09 — Encounter for prophylactic removal of other organ, Z40.8 — Encounter for other prophylactic surgery, Z40.81 — Encounter for prophylactic surgery for removal of ovary(s) for persons without known genetic/familial risk factors, Z40.82 — Encounter for prophylactic surgery for removal of fallopian tube(s) for persons without known genetic/familial risk factors, Z40.89 — Encounter for other prophylactic surgery, Z41.1 — Encounter for cosmetic surgery, Z41.2 — Encounter for routine and ritual male circumcision, Z41.3 — Encounter for ear piercing, Z41.8 — Encounter for other procedures for purposes other than remedying health state, Z41.9 — Encounter for procedure for purposes other than remedying health state, unspecified, Z42.1 — Encounter for breast reconstruction following mastectomy, Z42.8 — Encounter for other plastic and reconstructive surgery following medical procedure or healed injury
Same Index main term, other category
The ICD-10-CM Index to Diseases and Injuries files this code under the main term “Prophylactic”; these codes share that main term but sit in a different category of the Tabular List.
Z23 — Encounter for immunization (vaccination), Z79.2 — Long term (current) use of antibiotics (administration of, antibiotics, long-term), Z79.899 — Other long term (current) drug therapy (medication)
Contextual Map
Every relationship of Z40.9 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.9 with this related code in Claim Check
Hierarchy
- Z00-Z99 — Chapter 21: Factors Influencing Health Status and Contact with Health Services (Z00-Z99) (Z00-Z99)[Hierarchy]— CMS ICD-10-CM tabular structure · icd10cm-fy2026
- Z40-Z53 — Encounters for other specific health care[Hierarchy]— CMS ICD-10-CM tabular structure · icd10cm-fy2026
Referenced by Excludes1 notes
- Z29 — Encounter for other prophylactic measures[Excludes1](via Z40.-): “prophylactic surgery (Z40.-)”— CMS ICD-10-CM tabular instructional notes · icd10cm-fy2026
Clinical classification (CCSR)
- FAC004 — Encounter for prophylactic or other procedures[CCSR]— AHRQ CCSR for ICD-10-CM Diagnoses (HCUP)
MS-DRG Grouper
- DRG 951 — OTHER FACTORS INFLUENCING HEALTH STATUS[MS-DRG]: “OTHER FACTORS INFLUENCING HEALTH STATUS (MDC 23)”— CMS MS-DRG Definitions Manual (Appendix B) · FY2026
MDC crossing
- MDC 23 — Factors Influencing Health Status and Other Contacts with Health Services[MDC crossing]: “Factors Influencing Health Status and Other Contacts with Health Services — the grouper's crossing between diagnoses and procedures: a principal diagnosis sets the MDC, and same-MDC procedures move the stay to its surgical DRGs. 1,235 same-MDC procedures group here; browse them on the MDC page.”— CMS MS-DRG Definitions Manual · FY2026
Index entries
- Prophylactic, surgery[Index term]— CMS ICD-10-CM Index to Diseases and Injuries · icd10cm-fy2026
Nearest codes (11)
- Z40 — Encounter for prophylactic surgery[Sibling]— CMS ICD-10-CM tabular structure · icd10cm-fy2026
- Z40.0 — Encounter for prophylactic surgery for risk factors related to malignant neoplasms[Sibling]— CMS ICD-10-CM tabular structure · icd10cm-fy2026
- Z40.00 — Encounter for prophylactic removal of unspecified organ[Sibling]— CMS ICD-10-CM tabular structure · icd10cm-fy2026
- Z40.01 — Encounter for prophylactic removal of breast[Sibling]— CMS ICD-10-CM tabular structure · icd10cm-fy2026
- Z40.02 — Encounter for prophylactic removal of ovary(s)[Sibling]— CMS ICD-10-CM tabular structure · icd10cm-fy2026
- Z40.03 — Encounter for prophylactic removal of fallopian tube(s)[Sibling]— CMS ICD-10-CM tabular structure · icd10cm-fy2026
- Z40.09 — Encounter for prophylactic removal of other organ[Sibling]— CMS ICD-10-CM tabular structure · icd10cm-fy2026
- Z40.8 — Encounter for other prophylactic surgery[Sibling]— CMS ICD-10-CM tabular structure · icd10cm-fy2026
- and 3 more
Change history
- FY2016 — In the code set at ICD-10-CM adoption [Change history]— CMS release files (code change ledger) · icd10cm-fy2016
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
- Inpatient payment groups Official source data
- CMS MS-DRG Definitions Manual (incl. Appendix B diagnosis index, Appendix C CC/MCC list, Appendix E procedure index) and IPPS Final Rule tables — v43 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.9 — Encounter for prophylactic surgery, unspecified." ICD-10-CM FY2026. https://medcoder.ai/icd10/code/z40.9-encounter-for-prophylactic-surgery-unspecified
Change history
- FY2016 — October 1, 2015In the code set at ICD-10-CM adoptionEncounter for prophylactic surgery, unspecified
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.9 in its code family, with their registry titles.
- Z40.0 — Encounter for prophylactic surgery for risk factors related to malignant neoplasms
- Z40.00 — Encounter for prophylactic removal of unspecified organ
- Z40.01 — Encounter for prophylactic removal of breast
- Z40.02 — Encounter for prophylactic removal of ovary(s)
- Z40.03 — Encounter for prophylactic removal of fallopian tube(s)
- Z40.09 — Encounter for prophylactic removal of other organ
- Z40.8 — Encounter for other prophylactic surgery
- Z40.81 — Encounter for prophylactic surgery for removal of ovary(s) for persons without known genetic/familial risk factors
- Z40.82 — Encounter for prophylactic surgery for removal of fallopian tube(s) for persons without known genetic/familial risk factors
- Z40.89 — Encounter for other prophylactic surgery