When Can a Z Code Be the Primary Diagnosis?
Part ofStatus, history and Z codes · step 3 of 7 · Read firstPrincipal Diagnosis vs First-Listed Diagnosis: Which Term Applies, and How Each Is Chosen · Read nextStatus Codes: When Should a Z Status Code Be Reported?, Status or Complication? When a Z Status Code Gives Way to a Complication Code
Editorial explanation — not an official CMS/CDC rule. Official coding instructions and source material are identified below. How to read the labels
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
Quick answer · MedCoder editorial
A Z code can be the first-listed or principal diagnosis when the circumstance it describes is itself the reason for the encounter. Status codes like Z93.6 almost never qualify — and Medicare’s inpatient editor rejects them — while their Z43.- “attention to” counterparts usually do.
Jump to the decision rule ↓What decides the answer?
- The reason for the encounter — the only thing that lets a Z code lead
- Whether the opening needed attention or was merely present
- A complication of the opening, which displaces both Z codes
- The claim type — Medicare’s inpatient editor rejects a Z93 principal
Why it matters
The rule and where it comes from
Three separate authorities bear on this question. They are different kinds of rules and they do not always point the same way, so it is worth keeping them apart.
1. The ICD-10-CM Official Guidelines (FY 2027, Section I.C.21)
The general rule is permissive:
Official source“Z codes may be used as either a first-listed (principal diagnosis code in the inpatient setting) or secondary code, depending on the circumstances of the encounter. Certain Z codes may only be used as first-listed or principal diagnosis.”
Nothing in the Guidelines flatly forbids a status code from being first-listed. What the Guidelines do say about status codes (Section I.C.21.c.3) is about their purpose: “A status code is informative, because the status may affect the course of treatment and its outcome.” A code whose job is to add context rarely describes the reason the patient showed up — which is why in practice it lands in a secondary position. The Guidelines also say a status code “should not be used with a diagnosis code from one of the body system chapters, if the diagnosis code includes the information provided by the status code.”
For the “attention to” codes, the aftercare guideline (Section I.C.21.c.7) is direct: “The aftercare codes are generally first listed to explain the specific reason for the encounter,” and the same section names this family explicitly — “Additional Z code aftercare category terms include fitting and adjustment, and attention to artificial openings.”
Neither Z93 nor Z43 appears on the Guidelines’ list of Z codes that may only be principal/first-listed (Section I.C.21.c.15) — so both are formally free to appear in either position. The constraint comes from elsewhere.
2. The Tabular List
Category Z93 carries an Excludes1 note pointing away from itself whenever the opening needs work:
Official sourceExcludes1: artificial openings requiring attention or management (Z43.-); complications of external stoma (J95.0-, K94.-, N99.5-)
An Excludes1 note is a classification rule, not advice: if the encounter is for attention to the opening, Z93.- is the wrong code entirely, not merely the wrong sequence. This note is what makes “can Z93.6 be primary?” almost always the wrong question — an encounter genuinely about the opening belongs to Z43.- or to a complication code.
3. The Medicare Code Editor (MCE v44.0, edit 09 — Unacceptable principal diagnosis)
This is a payer edit, not a classification rule, and it applies to Medicare inpatient claims:
Official source“There are selected codes that describe a circumstance which influences an individual’s health status but not a current illness or injury, or codes that are not specific manifestations but may be due to an underlying cause. These codes are considered unacceptable as a principal diagnosis.”
Every billable code in Z93 is on that list: Z93.0, Z93.1, Z93.2, Z93.3, Z93.4, Z93.50, Z93.51, Z93.52, Z93.59, Z93.6, Z93.8, Z93.9. Of the Z43 family, only Z43.9 (attention to unspecified artificial opening) is on it — Z43.0 through Z43.8 are acceptable principal diagnoses. Z08 and Z09, the follow-up examination codes, are also on the list.
So a claim with Z93.6 as principal is not “against the Guidelines” — it is clinically implausible under the Excludes1 logic, and on a Medicare inpatient claim the MCE flags it under edit 09 rather than accepting it as principal. Two different reasons, two different authorities.
Examples
The worked example: Z93.6
Z93.6 — Other artificial openings of urinary tract status. Billable. Inclusion terms: Nephrostomy status; Ureterostomy status; Urethrostomy status.
Its full tabular apparatus, with the level each note is inherited from — which matters, because a note sitting on the section applies far more loosely than one on the category:
Official sourceExcludes1 (category Z93): artificial openings requiring attention or management (Z43.-); complications of external stoma (J95.0-, K94.-, N99.5-)
Code also (section 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)
Walk an encounter through it. A patient with a ureterostomy presents. Ask, in order:
- Is the encounter for a complication of the stoma? Then the Excludes1 sends you to the complication family — for the urinary tract, N99.5- (Complications of stoma of urinary tract) — and Z93.6 is not reported at all. The status guideline reinforces this: the complication code already tells you the patient has the stoma.
- Is the encounter for attention or management — catheter change, cleansing, closure, dilation? Then the Excludes1 sends you to Z43.6 (Encounter for attention to other artificial openings of urinary tract, inclusion terms: attention to nephrostomy / ureterostomy / urethrostomy), which as an aftercare code is “generally first listed.” Again Z93.6 is not reported — Z43.- and Z93.- are mutually exclusive by Excludes1. You can see the conflict flagged by running the pair through Claim Check.
- Is the encounter for something else entirely — pneumonia, a fracture, a scheduled colonoscopy? Now Z93.6 earns its place: as a secondary code, because a healed, functioning ureterostomy affects nursing care, positioning, and infection risk. The reason for the encounter is principal; Z93.6 follows.
- Is the encounter a follow-up examination after completed treatment? The “Code also any follow-up examination (Z08-Z09)” note applies: Z08 or Z09 carries the encounter, Z93.6 rides along as the status. (On a Medicare inpatient claim, note that Z08 and Z09 are themselves on the MCE unacceptable-principal list — this pairing is an outpatient pattern.)
There is no branch in which Z93.6 comes out first-listed. That is not because a rule says “status codes can’t be primary” — it is because every encounter that is about the opening is claimed by Z43.- or a complication code before Z93.6 gets a turn.
Practice
Practice scenarios
Scenario 1
A patient with a ureterostomy is seen for a catheter change.
- Coding question
- Can Z93.6 be first-listed?
- Decision
- No. Z43.6 carries the encounter, and Z93.6 is not reported alongside it.
- Why
- Category Z93’s Excludes1 sends artificial openings requiring attention or management to Z43.-, and the two are mutually exclusive on one claim.
- Documentation check
- Whether the visit was for attention to the opening, or the opening was merely present during a visit for something else.
Scenario 2
The same patient is admitted for pneumonia; the ureterostomy is functioning and needs no attention.
- Coding question
- Is Z93.6 reported, and where?
- Decision
- Yes, as a secondary code; the pneumonia is principal.
- Why
- A status code reports a condition that affects care without being the reason for the encounter; the reason for the encounter leads.
- Documentation check
- That nothing was done to the opening and no complication is documented.
Each scenario restates one of the worked examples above in decision form; none adds a clinical fact or a code the example does not already assign.
Branches: code this instead
If the opening needs routine attention or management → Z43.-, first-listed. A patient comes in for a scheduled nephrostomy tube exchange, no complication. Z43.6 is the first-listed diagnosis. Do not add Z93.6 — Excludes1. The Z43 category’s Includes note spells out what counts as attention: closure of artificial openings; passage of sounds or bougies through artificial openings; reforming artificial openings; removal of catheter from artificial openings; toilet or cleansing of artificial openings.
If the stoma has a complication → the complication code, first-listed; no Z93, no Z43. A colostomy patient presents with a parastomal hernia or stoma infection: code from K94.- (Complications of artificial openings of the digestive system). Tracheostomy complications go to J95.0-; urinary stoma complications to N99.5-. Both Z93 and Z43 carry the same Excludes1 against these families.
If the encounter is for an unrelated condition → that condition first, Z93.- secondary. A patient with tracheostomy status admitted for a hip fracture: the fracture is principal, Z93.0 is secondary. Sequencing example for the urinary case — patient with ureterostomy status treated for community-acquired pneumonia:
- J18.9 — Pneumonia, unspecified organism (principal)
- Z93.6 — Other artificial openings of urinary tract status (secondary)
If the encounter is aftercare for the underlying disease, not the opening → the aftercare guideline still governs: aftercare Z codes are not used “if treatment is directed at a current, acute disease. The diagnosis code is to be used in these cases.”
If attention to the opening happens during an encounter for something else → the Guidelines’ own example (I.C.21.c.7): “closure of a colostomy during an encounter for treatment of another condition” — the other condition is first-listed and Z43.3 is reported as an additional code.
How this generalises
The whole Z93/Z43 landscape is one pattern repeated per body site: a status code for the healed, present opening and an attention code for the encounter that services it. The status code is (nearly always) secondary; the attention code is (generally) first-listed; a complication code beats both.
| Opening | Status (secondary) | Attention (first-listed) |
|---|---|---|
| Tracheostomy | Z93.0 | Z43.0 |
| Gastrostomy | Z93.1 | Z43.1 |
| Ileostomy | Z93.2 | Z43.2 |
| Colostomy | Z93.3 | Z43.3 |
| Other GI openings | Z93.4 | Z43.4 |
| Cystostomy | Z93.50–Z93.59 | Z43.5 |
| Other urinary openings | Z93.6 | Z43.6 |
| Artificial vagina | — | Z43.7 |
| Other openings | Z93.8 | Z43.8 |
| Unspecified opening | Z93.9 | Z43.9 ⚠ |
Two asymmetries to know: Z43.7 (artificial vagina) has no Z93 status counterpart at the same granularity — the status family’s “other” bucket is Z93.8 (Other artificial opening status). And Z43.9 is the one attention code the MCE rejects as principal, because an unspecified opening fails the editor even in the attention family — one more reason “unspecified” is a documentation query, not a code choice.
The same status-vs-encounter split runs through the rest of the status block (Z94 transplant status vs. the transplant aftercare and complication codes, Z95–Z98 device and postprocedural states) — check the category’s own Excludes1 notes, but the reasoning transfers.
When the folk rule is wrong
The folk rule: “status codes are never primary.” It is approximately right and coders who follow it will almost never file a wrong claim — but it is not what the rules actually say, and knowing the difference matters in three situations.
What is actually true: the Official Guidelines permit any Z code in either position unless it appears on the first-listed-only list, and Z93 does not appear on any list forbidding first position either. The prohibition coders feel is the sum of two narrower rules: the Excludes1 on Z93 (any encounter genuinely about the opening belongs to Z43.- or a complication code) and MCE edit 09 (Medicare inpatient claims specifically). The shortcut usually gives the right answer because those two rules cover nearly every real encounter.
Where the folk rule misleads: (1) it offers no help on non-Medicare, non-inpatient claims, where the MCE does not apply and the real question is the Excludes1; (2) it tempts coders to “fix” a status-code-primary claim by resequencing, when the correct fix is usually replacing the status code with the Z43.- or complication code the Excludes1 was pointing at; (3) it obscures that one attention code — Z43.9 — fails the same MCE edit despite not being a status code at all.
Decision rule
Quick reference
| Situation | First-listed code | Is the status code (Z93.-) reported? |
|---|---|---|
| Routine attention/management of the opening | Z43.- for the site | No — Excludes1 |
| Complication of the stoma | J95.0- / K94.- / N99.5- | No — Excludes1 |
| Encounter for an unrelated condition | The condition | Yes, secondary |
| Follow-up exam after completed treatment (outpatient) | Z08 / Z09 | Yes, secondary (“Code also”) |
| Attention to opening during an encounter for another condition | The other condition | No — report Z43.-, additional |
| Medicare inpatient claim, any Z93.- as principal | — | Rejected: MCE edit 09 |
How to apply it
How to apply the rule
- Identify what the encounter was for; a Z code can lead when the circumstance it describes is itself the reason for the encounter.
- Check Section I.C.21.c.15’s first-listed-only list and the categories the Guidelines describe as generally first-listed (aftercare, follow-up, screening for a screening visit).
- For a status code, ask whether a body-system code on the claim already includes the status — if so, drop the status code; a status code rarely describes the reason for an encounter.
- Read the Z code’s Excludes1 notes — Z93 sends an encounter for attention to the opening to Z43.-, and a complication to J95.0-/K94.-/N99.5-.
- For Medicare inpatient claims, check MCE edit 09 for the code.
Common mistakes
Common mistakes
- Z93.6 as principal for an encounter that is about the stoma — Z43.6 or a complication code.
- A status code with a code that already includes the status.
- Treating the MCE list as a coding rule — it is a payer edit; the classification rule comes first.
Documentation matters
Documentation that changes the coding
- The reason for the encounter — the only thing that lets a Z code lead.
- Whether the artificial opening needed attention or was merely present.
- A complication of the opening, which displaces both Z codes.
FAQ
Can Z93.6 ever be the principal diagnosis?
On a Medicare inpatient claim, no — Z93.6 is on the MCE v44.0 unacceptable-principal-diagnosis list, so the editor flags an inpatient claim carrying it as principal rather than accepting it. Outside that edit, no rule flatly forbids it, but the Excludes1 on category Z93 means any encounter actually about the opening takes Z43.6 or an N99.5- complication code instead, so a compliant claim with Z93.6 first is hard to construct.
What’s the difference between Z93.6 and Z43.6?
Z93.6 says the patient has a nephrostomy, ureterostomy, or urethrostomy; Z43.6 says the encounter is for servicing it — closure, catheter change, cleansing, dilation. They are mutually exclusive on the same claim: category Z93 carries an Excludes1 for “artificial openings requiring attention or management (Z43.-).”
Do I code both the status code and the complication code?
No. Both Z93 and Z43 exclude the complication families (J95.0-, K94.-, N99.5-) by Excludes1, and the status guideline says the same thing in prose: the complication code already tells you the patient has the opening, so the status code adds nothing.
Is Z43.6 acceptable as a principal diagnosis for Medicare?
Yes. Z43.0 through Z43.8 are not on the MCE unacceptable-principal list, and the aftercare guideline says these codes are “generally first listed.” The exception is Z43.9 — attention to an unspecified artificial opening — which the MCE rejects as principal.
The patient was admitted for something else. Do I still report the stoma?
Yes, as a secondary diagnosis — a functioning artificial opening affects care even when it isn’t the reason for admission, which is exactly what status codes are for. Code the reason for the encounter first and Z93.- after it.
Which codes does “complications of external stoma” actually mean?
The Excludes1 note names three families by site: J95.0- (Tracheostomy complications), K94.- (Complications of artificial openings of the digestive system), and N99.5- (Complications of stoma of urinary tract).
Code set release
This guide was verified against ICD-10-CM FY2027, effective October 1, 2026.
Code relationships
| Relationship | At | Names | Note |
|---|---|---|---|
| excludes1 | Z93 | Z43.- (artificial openings requiring attention or management); J95.0-, K94.-, N99.5- (complications of external stoma) | |
| sequencing | Z43.- | first-listed for attention to artificial openings | I.C.21.c.7: aftercare codes generally first listed |
| excludes2 | Z40-Z53 section | Z08-Z09 (follow-up examination) | section-level note |
Relationships are quoted from the FY tabular notes and Official Guidelines the guide cites; none are inferred.
Relationships are quoted from the tabular notes and Official Guidelines sections the guide cites; the wording of each row is MedCoder’s.
Compare these pairs
Each pair below is one the tabular notes link; its Compare page quotes the note and says whether the two can be reported together.
Authoritative sources
Applies to FY2027 ICD-10-CM
Verified against the FY 2027 ICD-10-CM Official Guidelines, the FY 2027 tabular list, and Definitions of Medicare Code Edits v44.0 (October 2026).
- ICD-10-CM Official Guidelines for Coding and Reporting, FY 2027 (Section I.C.21, Z codes)
- FY 2027 ICD-10-CM Tabular List
- Definitions of Medicare Code Edits v44.0 (October 2026)
Official guidance cited
The Official Guidelines sections this guide quotes or applies, by heading. Passages set as quotations above are the sections’ own words; the surrounding text is MedCoder’s reading of them.
- Section I.C.21 — Chapter 21: Factors influencing health status and contact with health
- Section I.C.21.c.3 — Status
- Section I.C.21.c.7 — Aftercare
- Section I.C.21.c.15 — Z Codes That May Only be Principal/First-Listed Diagnosis
Passages set as quotations are verbatim official text from the sources listed. Surrounding explanation, decision tables and examples are MedCoder’s editorial reading of those sources and are not official statements. Examples are illustrative; they assign no code to any real patient.
Coder Takeaway: A Z code can lead when the circumstance it describes is the reason for the encounter; status codes almost never qualify — and Z93.6 is excluded outright whenever the opening needs attention (Z43.-) or has a complication.
Real-world questions this guide answers
Coding questions
No community questions relate to this guide yet.
Ask a Coding Question about this guide.
Didn’t find your answer?
Ask a coding question and get help from the MedCoder community.
Applicable code set: FY2027. Published August 31, 2026; last updated October 1, 2026; last reviewed October 1, 2026.