What ICD‑10‑CM code(s) should be used for a patient with a documented personal history of urinary tract infection who is asymptomatic, and for long‑term prophylactic antibiotic use?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: February 6, 2026View editorial policy

Personalize

Help us tailor your experience

Which best describes you? Your choice helps us use language that's most understandable for you.

ICD-10 Coding for History of UTI and Prophylactic Antibiotic Use

For an asymptomatic patient with a documented personal history of urinary tract infection, use ICD-10-CM code Z87.440 (Personal history of urinary tract infections), and for long-term prophylactic antibiotic use, add Z79.2 (Long-term [current] use of antibiotics).

Primary Coding for History of UTI

  • Z87.440 is the specific ICD-10-CM code for personal history of urinary tract infections and should be used when documenting a patient's past UTI history in the absence of current active infection 1.

  • This code applies when the patient is currently asymptomatic but has a documented history that may be relevant to current care decisions, such as consideration for prophylactic measures 2.

Additional Coding for Prophylactic Antibiotic Use

  • Z79.2 (Long-term [current] use of antibiotics) should be added as a secondary code when the patient is receiving continuous or postcoital antimicrobial prophylaxis for recurrent UTI prevention 2.

  • The European Association of Urology guidelines recommend continuous or postcoital antimicrobial prophylaxis to prevent recurrent UTI when non-antimicrobial interventions have failed, which justifies the use of this code 2.

Clinical Context for Code Selection

  • Recurrent UTI is defined as at least three UTIs per year or two UTIs in the last 6 months, and this clinical context supports the use of both history and prophylaxis codes 2.

  • The guidelines emphasize that rUTI prevention includes counseling regarding avoidance of risk factors, non-antimicrobial measures, and antimicrobial prophylaxis, with these interventions attempted in the order listed 2.

When NOT to Use These Codes

  • Do not use Z87.440 if the patient has current, active UTI symptoms (dysuria, frequency, urgency, fever, or gross hematuria), as an acute infection code would be more appropriate 2, 3, 4.

  • Do not code for UTI history based solely on asymptomatic bacteriuria or pyuria, as these findings do not represent true infection and should not be treated in most populations 5, 6, 7.

Documentation Requirements

  • Medical record documentation should clearly indicate the history of recurrent UTIs with specific dates or frequency of past infections to support the Z87.440 code 1.

  • For Z79.2, documentation must specify the prophylactic antibiotic regimen, duration, and indication (prevention of recurrent UTI) 2.

  • The chart should reflect that non-antimicrobial preventive measures were attempted first, as recommended by guidelines, before initiating long-term antibiotic prophylaxis 2.

References

Guideline

Guideline Directed Topic Overview

Dr.Oracle Medical Advisory Board & Editors, 2025

Research

The Emergency Department Diagnosis and Management of Urinary Tract Infection.

Emergency medicine clinics of North America, 2018

Research

Diagnosis and treatment of urinary tract infections across age groups.

American journal of obstetrics and gynecology, 2018

Guideline

Management of Dysuria in Elderly Patients

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2026

Guideline

Urinary Tract Infection Diagnosis and Evaluation

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2026

Research

Urinary Tract Infection.

Annals of internal medicine, 2017

Related Questions

What is the best treatment approach for a non-pregnant, otherwise healthy adult woman with recurrent Urinary Tract Infections (UTIs)?
What are the markers for urinary tract infection (UTI) in urinalysis (UA)?
What is the diagnosis and treatment for a patient experiencing a burning sensation and yellow discharge in their urine, potentially indicating a urinary tract infection (UTI)?
What is the evaluation and treatment for a patient with mucus threads in their urine, potentially indicating a urinary tract infection?
When should a stat Urinalysis (UA) with Culture and Sensitivity (C&S) be ordered in patients with symptoms suggestive of a Urinary Tract Infection (UTI), particularly in high-risk populations?
What is the proper technique and dosing for intramuscular administration of flumazenil in an adult when intravenous access is unavailable?
Are there seizure types that are unilateral or confined to a single limb?
What is the stepwise evidence‑based treatment for an adult with moderate‑to‑severe plaque psoriasis (≥10% body surface area or significant quality‑of‑life impact)?
Can a patient with fecal incontinence and perianal candidiasis apply A&D (antiseptic and deodorant) ointment together with a topical antifungal (e.g., clotrimazole, miconazole, or nystatin)?
How should I evaluate and initially manage an adolescent presenting with a sore knee?
For a stable patient with an arm abscess after incision and drainage, is a single intravenous vancomycin dose followed by a short course of oral anti‑MRSA antibiotics appropriate?

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.