Quick answer: Z codes are usually secondary diagnoses, but some can be the principal or first-listed diagnosis. A Z code can come first when the visit is for a routine exam, screening, prenatal supervision, routine follow-up, or counseling. In these visits, the focus is not treatment of an active illness. ICD-10-CM also lists certain Z codes, such as Z00, Z01, Z02, Z34, and Z38. You may report these codes only as the principal or first-listed diagnosis.
Can Z Codes Be Used as a Principal Diagnosis?
Z codes capture factors that affect a patient’s health status. Examples include preventive care, family history, long-term medication use, and post-op visits. Z codes are often secondary diagnoses. In some cases, though, a Z code can be the principal diagnosis, meaning the main reason for the visit. Therefore, coders need to know these cases to code, bill, and receive correct payment.
This article covers the rules, best practices, and tips for using Z codes as the principal diagnosis.
What Are Z Codes, and When Can They Be the Principal Diagnosis?
Z codes are part of ICD-10-CM. They document things like preventive care, post-op visits, and family history. These codes provide additional context to a patient’s health status and the reasons behind their healthcare visit.
Most of the time, Z codes are secondary. Coders list them with the main condition under treatment. But in some cases, a Z code is the principal diagnosis because it is the main reason for the visit.
Which Z Codes Can Only Be the Principal or First-Listed Diagnosis?
The following Z codes/categories may only be reported as the principal/first-listed diagnosis, except when there are multiple encounters
on the same day and the medical records for the encounters are combined:
Z00 Encounter for general examination without complaint,
suspected or reported diagnosis
Except: Z00.6
Z01 Encounter for other special examination without complaint,
suspected or reported diagnosis
Z02 Encounter for administrative examination
Z04 Encounter for examination and observation for other reasons
Z33.2 Encounter for elective termination of pregnancy
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
When Can You Use a Z Code as the Principal Diagnosis?
Preventive Health Services (Routine Health Checks):
Use a Z code as the principal diagnosis when the visit is mainly for preventive care. Examples include a routine physical or screening.
Example: A patient visiting their physician for a routine health examination would have a Z00.00 code (Encounter for general adult medical examination without abnormal findings) as the principal diagnosis, even if they have underlying chronic conditions such as hypertension or diabetes.
Family History:
Family history codes are usually secondary. They explain why the patient needs a screening or counseling visit. In these visits, the screening or counseling Z code comes first, and the family history code follows.
Example: A patient with a family history of colon cancer comes in for a screening colonoscopy. List Z12.11 (Encounter for screening for malignant neoplasm of colon) first. Then add Z80.0 (Family history of malignant neoplasm of digestive organs) as a secondary code.
Pregnancy-Related Visits:
Pregnancy-related Z codes can be the principal diagnosis for routine visits when the pregnancy is normal. Use Z34.- for supervision of a normal pregnancy and Z39.- for routine postpartum care. However, a complication or a condition affecting the pregnancy changes the sequencing. In that case, list a Chapter 15 obstetric code (O00 to O9A) first instead of a Z code.
Example: For a routine prenatal visit during the first trimester, Z34.00 (Encounter for supervision of normal pregnancy, first trimester) can be used as the principal diagnosis.
Post-Operative Care:
A Z code may also be the principal diagnosis for a routine follow-up after a procedure or surgery. This applies when there are no complications.
Example: A patient returns for a routine postoperative check after knee surgery. The surgery was not for an injury, and there are no complications. An aftercare code is listed first, such as Z47.89 (Encounter for other orthopedic aftercare), or Z47.1 (Aftercare following joint replacement surgery) with Z96.65- after a knee replacement. Use Z09 (Encounter for follow-up examination after completed treatment for conditions other than malignant neoplasm) only when treatment is complete and the condition no longer exists.
Medication Monitoring Visits:
Long-term (current) drug therapy codes from category Z79 are usually secondary codes. When the visit is specifically to monitor a medication, such as an INR check for a patient on an anticoagulant, report Z51.81 (Encounter for therapeutic drug level monitoring) first. Then add the Z79 code for the long-term drug and the code for the condition being treated.
Example: A patient on long-term anticoagulant therapy for atrial fibrillation comes in for an INR check. Report Z51.81 (Encounter for therapeutic drug level monitoring) first, then Z79.01 (Long-term (current) use of anticoagulants) and the code for the atrial fibrillation.
Encounter for Health Counseling and Education:
Health counseling visits follow the same approach. For smoking cessation, weight management, or diet counseling, the matching Z code can be the principal diagnosis.
Example: Z71.3 (Dietary counseling and surveillance) could be the principal diagnosis if the patient is visiting for weight loss counseling.
When Should a Z Code Not Be the Principal Diagnosis?
In other cases, a Z code should not be the principal diagnosis:
When the Visit is Primarily for Treatment of an Active Disease or Condition:
Do not use a Z code as the principal diagnosis when the visit is to treat an active condition. Examples include pneumonia, diabetes, or hypertension. In this case, the active condition should be listed as the principal diagnosis.
Example: If a patient with hypertension visits for treatment of an acute exacerbation, the hypertension code should be the principal diagnosis, not a Z code.
In the Presence of Complications or Acute Illnesses:
Similarly, do not use a Z code first when the visit is for an acute condition or a complication that needs urgent care. The code for the primary condition should take precedence.
Example: A patient who visits the emergency room for chest pain due to a heart attack should have the acute myocardial infarction (MI) code as the principal diagnosis, not a Z code.
How Do You Use Z Codes as Principal Diagnosis Accurately?
Ensure the Visit is Preventive or Health-Related:
Z codes are appropriate as principal diagnoses in cases of preventive services, counseling, or follow-up visits. Always ensure the patient’s visit is primarily for these services before using a Z code as the principal diagnosis.
Example: For a routine well-woman exam with no abnormal findings, Z01.419 (Encounter for gynecological examination (general) (routine) without abnormal findings) is the principal diagnosis. If abnormal findings are documented, use Z01.411 (Encounter for gynecological examination (general) (routine) with abnormal findings) and add codes for the findings.
Check the Reason for the Encounter:
Always ask whether the reason for the encounter is health maintenance, preventive care, or a routine check-up. If it is, a Z code is likely the right choice for the principal diagnosis.
Example: For a routine mammogram visit, Z12.31 (Encounter for screening mammogram for malignant neoplasm of breast) would be the principal diagnosis.
Be Specific:
Use the most specific Z code that describes the encounter. For example, when documenting a patient’s family history, make sure to select the exact Z code based on the type of condition (e.g., Z80.0 for a family history of malignant neoplasm of the digestive organs or Z82.49 for a family history of cardiovascular disease).
Use Medical Coding Z Codes for Continuity of Care:
Z codes help document ongoing care, such as long-term medication management, follow-up care, and routine checkups. These encounters may not involve acute conditions but are crucial for maintaining patient health.
Example: For a visit to manage type 2 diabetes treated with insulin, list the diabetes code from category E11 first. Add Z79.4 (Long-term (current) use of insulin) as a secondary code. Do not assign Z79.4 for type 1 diabetes, because insulin use is already implied.
Avoid Using Medical Coding Z Codes as Principal Diagnosis for Acute Conditions:
Skip the Z code as principal when the main purpose is to treat an acute condition or diagnose a disease.
Always ensure that the reason for the visit matches the nature of the Z code used.
Check Payer Guidelines:
Payer rules vary. Check that the payer accepts a Z code as the principal diagnosis for that type of visit. Some payers may have specific rules about which Z codes coders can use in this manner.
Z codes play a significant role in medical coding, offering crucial context for non-disease-related encounters. While they are commonly used as secondary diagnoses, certain situations allow Z codes to be the principal diagnosis. These include preventive health services, screenings, post-operative care, and counseling services. Understanding the guidelines and following best practices will help ensure accurate coding and proper reimbursement.
Accurate documentation, correct sequencing, and payer rules all matter. Together, they make sure the Z code reflects the true reason for the visit. As a result, you lower denials and stay compliant.
Coding Clarified Medical Coding Z Codes ICD-10-CM Z Codes 2026: SDOH, Homelessness, Unemployment, Sequencing & Billing Guide
ICD-10-CM Guidelines CMS FY 2025 ICD-10-CM Official Guidelines
