What is the ICD‑10‑CM code for a history of diabetic ketoacidosis?

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: March 25, 2026 • View editorial policy

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.

ICD-10-CM Code for History of Diabetic Ketoacidosis

The ICD-10-CM code for a personal history of diabetic ketoacidosis is Z86.39 (Personal history of other endocrine, nutritional and metabolic disease).

Code Selection Rationale

  • Z86.39 is the appropriate code when documenting a resolved episode of DKA in a patient's medical history 1, 2.
  • This code falls under the "Z codes" category, which are used to document factors influencing health status and contact with health services, including past medical conditions that are no longer present but may be clinically relevant 1.

Important Coding Considerations

When NOT to Use Z86.39

  • Do not use Z86.39 for an active/current DKA episode – use the acute DKA codes instead 1, 2:
    • E10.10 (Type 1 diabetes mellitus with ketoacidosis without coma)
    • E10.11 (Type 1 diabetes mellitus with ketoacidosis with coma)
    • E11.10 (Type 2 diabetes mellitus with ketoacidosis without coma)
    • E11.11 (Type 2 diabetes mellitus with ketoacidosis with coma)

Diagnostic Accuracy Pitfall

  • Be aware that ICD-10 codes for DKA have only 67-70% positive predictive value when used as the most responsible diagnosis, meaning nearly one-third of cases coded as DKA may not meet true diagnostic criteria 1, 2.
  • True DKA requires: serum bicarbonate ≤18 mmol/L, arterial pH ≤7.3, anion gap ≥14 mEq/L, and presence of ketones in urine or blood 3, 1.
  • Misdiagnosis commonly occurs when confusing DKA with hyperosmolar hyperglycemic state (HHS), simple hyperglycemia, or euglycemic DKA 2.

Clinical Context for Documentation

Why History of DKA Matters

  • Risk stratification: Patients with prior DKA are at higher risk for recurrence, particularly during "emerging adulthood" (ages 19-21), when DKA hospitalization rates increase by 90% in the USA 4.
  • Medication safety: History of DKA is especially relevant when considering SGLT2 inhibitors, which carry increased risk of euglycemic DKA (particularly in patients with dementia, where the absolute increase is 5.9 per 1000 person-years vs 1.1 in those without dementia) 5, 6, 7.
  • Perioperative planning: Prior DKA history should trigger preoperative discontinuation of SGLT2 inhibitors 3-4 days before surgery to prevent euglycemic DKA 6, 7.

Documentation Best Practices

  • Always specify the type of diabetes (Type 1 vs Type 2) when documenting history of DKA 3.
  • Note any precipitating factors from the prior episode (infection, medication non-adherence, SGLT2 inhibitor use) 5, 6.
  • Document current preventive measures in place, such as ketone monitoring protocols or continuous ketone monitoring (CKM) devices if available 8.

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.