We pulled 60 charts for an internal medicine group last month as part of a documentation review. Forty-one patients had type 2 diabetes, and 34 of those were coded E11.9, type 2 diabetes mellitus without complications. Then we read the notes. Nineteen had chronic kidney disease staged in the problem list, eleven had documented peripheral neuropathy, six had retinopathy on a scanned ophthalmology report, and 22 were on insulin. On paper this was a healthy diabetic population. In the exam room it was anything but.
Nothing about that is unusual. Coding diabetes with complications is the single most common gap we find in primary care and endocrinology charts, and not because physicians don't know their patients have kidney disease. E11.9 is the first code the EHR offers, the note says "DM2, stable" and nobody has explained how the combination codes work. The result is risk adjustment scores that understate the panel, wrong quality measure denominators and supply orders that deny for medical necessity.
This article is how we teach the topic. For readers without a coding background: ICD-10-CM is the diagnosis code set, and a combination code captures both a disease and its complication, so E11.22 means "type 2 diabetes with diabetic chronic kidney disease" in one code rather than two.
Key takeaways
- Diabetes lives in five ICD-10-CM categories, E08 through E13; when the type is not documented, the default is E11, type 2.
- The fourth and fifth characters of E11 identify the complication (kidney, eye, nerve, circulatory, skin, glycemic), and you report as many E11 codes as the patient has complications.
- Under the "with" convention, conditions listed under "with" in the Alphabetic Index are presumed caused by the diabetes unless the physician documents otherwise, so "CKD stage 3" plus "type 2 diabetes" codes to E11.22 and N18.3x without a linking sentence.
- Z79.4 (insulin), Z79.84 (oral hypoglycemics) and Z79.85 (injectable non-insulin drugs) are added for long-term use, and more than one can apply.
- Since October 1, 2025, type 2 diabetes in remission has its own code, E11.A, which is never reported with E11.9.
The five categories and the E11 subcategories
ICD-10-CM splits diabetes by cause. E08 is diabetes due to an underlying condition such as cystic fibrosis, with the underlying condition coded first. E09 is drug or chemical induced diabetes, steroid-induced being the everyday example. E10 is type 1. E11 is type 2. E13 is other specified diabetes, where genetic forms and diabetes after pancreatectomy land (with E89.1, postprocedural hypoinsulinemia, sequenced first). When the type is not documented, the Official Guidelines say assign E11. Age and insulin use do not determine the type: a type 2 patient on basal insulin stays in E11.
Within E11, the fourth character names the body system and the fifth narrows it. The table below is the map we hand to coders; the retinopathy codes need a seventh character for laterality (1 right, 2 left, 3 bilateral, 9 unspecified).
| Subcategory | Complication group | Frequent codes | Code with it |
|---|---|---|---|
| E11.2- | Kidney | E11.21 nephropathy, E11.22 chronic kidney disease, E11.29 other kidney complication | N18.1 to N18.6 for the CKD stage with E11.22 |
| E11.3- | Eye | E11.319- retinopathy unspecified without macular edema, E11.329- mild nonproliferative without macular edema, E11.36 cataract, E11.37X- macular edema resolved after treatment | Seventh character for laterality on the retinopathy codes |
| E11.4- | Nerve | E11.40 neuropathy unspecified, E11.42 polyneuropathy, E11.43 autonomic neuropathy | K31.84 gastroparesis with E11.43 |
| E11.5- | Circulatory | E11.51 peripheral angiopathy without gangrene, E11.52 with gangrene, E11.59 other circulatory | Nothing additional for E11.51 in most cases |
| E11.6- | Other specified | E11.610 neuropathic arthropathy, E11.621 foot ulcer, E11.622 other skin ulcer, E11.649 hypoglycemia without coma, E11.65 hyperglycemia, E11.69 other specified | L97.- for the ulcer site, depth and laterality with E11.621 or E11.622 |
| E11.8, E11.9, E11.A | Unspecified, none, remission | E11.8 unspecified complications, E11.9 without complications, E11.A in remission | E11.A is Excludes1 with E11.9 |
Two habits fall out of this table. First, "uncontrolled diabetes" is not a code. ICD-10-CM asks whether the patient is hyperglycemic (E11.65) or hypoglycemic (E11.649, or E11.641 with coma), and the physician has to say which; we ask physicians to write the word. Second, E11.8 is almost never right in an office note; it says the physician did not name the complication, and auditors read it as a shrug.
Coding diabetes with complications: the "with" convention
Section I.A.15 of the Official Guidelines is the rule that changes the most claims. When a condition appears under the word "with" in the Alphabetic Index entry for diabetes, ICD-10-CM presumes a causal relationship, even if the physician never wrote "diabetic" or "due to diabetes." The presumption is broken only when the documentation clearly states the conditions are unrelated. A coder who reports E11.9 plus N18.31 for a patient with type 2 diabetes and CKD stage 3a is not being conservative, she is coding incorrectly.
The Index entry for "Diabetes, with" is long. The conditions that come up daily in primary care are chronic kidney disease, gastroparesis, hyperglycemia, hypoglycemia, neuropathy and polyneuropathy, peripheral angiopathy, retinopathy, foot ulcer and skin ulcer, osteomyelitis (E11.69 plus the M86.- code) and periodontal disease (E11.630). Hypertension, hyperlipidemia and coronary artery disease are not in the list, so they stay separate diseases unless the physician links them.
When the patient has hypertension, diabetes and CKD, both presumptions apply: the Index links CKD to hypertension (I12.9) and to diabetes (E11.22), so the correct set is I12.9, E11.22 and the N18 stage code.
A worked example from one visit
A 64-year-old established patient sees her internist for a routine diabetes follow-up. The note documents type 2 diabetes, CKD stage 3a with an eGFR of 52, diabetic polyneuropathy in both feet, an A1c of 9.1 with the physician's assessment "hyperglycemia, will add a GLP-1 agonist," a medication list with metformin 1000 mg twice daily and insulin glargine 24 units nightly, and a retinal screening from the ophthalmologist six weeks ago showing mild nonproliferative retinopathy in both eyes without macular edema.
- E11.22, type 2 diabetes with diabetic chronic kidney disease, sequenced first because the visit was for the diabetes.
- N18.31, chronic kidney disease stage 3a. The stage code is required with E11.22 and an unstaged "CKD" would code to N18.9, which most auditors treat as a documentation failure.
- E11.42, type 2 diabetes with diabetic polyneuropathy.
- E11.65, type 2 diabetes with hyperglycemia, because the physician wrote the word.
- E11.3293, type 2 diabetes with mild nonproliferative diabetic retinopathy without macular edema, bilateral. The ophthalmology report in the chart is usable because the treating physician reviewed and documented it in the assessment.
- Z79.4, long term (current) use of insulin, and Z79.84, long term (current) use of oral hypoglycemic drugs. Both apply, and if the GLP-1 agonist is started and continued, Z79.85 joins them at the next visit.
Seven codes for a routine follow-up, every one of them defensible from the note. The E11.9 version of this claim has one code and says the patient is well.
The Z79 medication codes
Z79.4 is reported when the patient uses insulin long term. Z79.84 is reported for oral hypoglycemic drugs, metformin included. Z79.85, added October 1, 2022, covers injectable non-insulin antidiabetic drugs, which in practice means the GLP-1 receptor agonists and similar agents. The guideline rules are short. If the patient is on insulin and an oral drug, report both Z79.4 and Z79.84. If the patient is on insulin and an injectable non-insulin drug, report Z79.4 and Z79.85. If the patient is on an oral drug and an injectable non-insulin drug, report Z79.84 and Z79.85. If insulin was given temporarily to bring blood sugar down during an encounter, do not report Z79.4.
For type 1 diabetes, insulin use is inherent to the disease and the E10 category carries no "use additional code" instruction, so most coding educators leave Z79.4 off. The Z79 codes describe treatment intensity for a type 2 or secondary diabetic, and payers use them: coverage rules for test strips, insulin pumps and continuous glucose monitors frequently look for Z79.4 on the claim, and its absence is a routine reason a supply claim denies.
One more code arrived recently. Effective October 1, 2025, with the FY 2026 ICD-10-CM update, E11.A reports type 2 diabetes in remission, based on the physician's documentation of remission, not a lab value the coder interprets. E11.A is Excludes1 with E11.9, so the two never appear together, and a patient in remission who still has diabetic CKD keeps E11.22.
Why the money follows the fifth character
Three revenue streams depend on getting this right. The first is risk adjustment. Under the CMS-HCC model version 28, fully phased in for the 2026 payment year, the three diabetes HCCs (36, 37 and 38) carry the same coefficient, so "with complications" no longer raises the diabetes payment by itself. But the complications you capture carry their own HCCs: CKD stage 3 and above, peripheral vascular disease and the ulcer codes among them. A panel coded E11.9 across the board looks cheaper to care for than it is, and value-based contracts pay accordingly.
The second is quality measurement. HEDIS diabetes measures (glycemic status, eye exam, kidney health evaluation) build their denominators from diagnosis codes on claims. The third is medical necessity for what you order. Routine foot care under Medicare is covered only when a systemic condition such as E11.51 or E11.42 is on the claim with the right class-finding modifier; podiatrists get denials every week because the referring diagnosis was E11.9. Our gaps-in-care work starts with this exact chart review, and the rules are covered in depth in our live medical coding courses.
The errors we flag most
E10 for a type 2 patient on insulin is the classic. The physician means "insulin-dependent," the coder reads type 1, and the record now carries a different disease. E11.22 without an N18 stage is next; the stage code is not optional. Retinopathy codes missing the seventh character reject at the clearinghouse, and coders who fix them with 9 (unspecified laterality) when the ophthalmology report says "both eyes" are throwing away specificity that was in the chart.
Coding from the problem list without the note supporting it is the audit risk in the other direction. A problem list that still says "diabetic foot ulcer" two years after it healed does not support E11.621 today. Risk adjustment auditors want to see the condition assessed, monitored or treated in that encounter. The rule we teach: every diabetes complication code on the claim should be traceable to a sentence in the assessment for that date.
Questions we hear
Can we code E11.22 when the note only lists "CKD stage 3" and "type 2 DM" in the problem list with no link between them?
Yes, if the assessment for that visit addresses both conditions; the "with" convention supplies the link. If the physician believes the CKD is from something else, such as polycystic kidney disease, the note must say so, and then you code the CKD and its cause separately.
The patient takes semaglutide for weight loss and is not diabetic. Do we report Z79.85?
No. Z79.85 describes long-term use of injectable non-insulin antidiabetic drugs and belongs on a diabetic patient's claim. For a non-diabetic patient on a GLP-1 for weight management, report the obesity or overweight code with a Z68 body mass index code and, if a drug therapy code is wanted, Z79.899 (other long term drug therapy).
Do we report E11.65 every time the A1c is above goal?
Only when the physician documents hyperglycemia. Coders cannot infer it from a lab result. The fix is a documentation habit ("type 2 diabetes with hyperglycemia, A1c 9.1"), not a coding rule.
What to do this week
- Run a report of patients with any E11 code in the last 12 months and count how many have only E11.9; if it is more than half of an older panel, the charts are almost certainly under-coded.
- Cross that list against patients with an N18 code or a Z79.4 code and queue those charts for review.
- Give each physician the table above and three sentences to add to their diabetes assessment templates: the CKD stage, the word hyperglycemia or hypoglycemia when it applies, and the current diabetes medications by class.
- Check that your claim scrubber rejects E11.22 without an N18 code, E11.A with E11.9, and any E11.3- code without a seventh character, then re-audit 20 charts in 60 days.
