Diabetes Mellitus - Inpatient Coding Reference


πŸ₯ Clinical Overview

Why does diabetes coding matter so much in inpatient PMR? Diabetes mellitus (DM) is the #1 underlying cause of lower extremity amputation in the United States. The vast majority of your amputee patients will carry a DM diagnosis. Beyond amputation, DM drives a cascade of complications β€” neuropathy, nephropathy, retinopathy, peripheral vascular disease, autonomic dysfunction β€” all of which are active, clinically managed comorbidities during an inpatient rehab stay. Coding DM accurately, with its complications, is critical for DRG CC/MCC capture, HCC risk adjustment, and supporting medical necessity.

The Core Coding Rule for DM

ICD-10-CM instructs: when a patient has DM AND a complication, assume a causal relationship and code them together as a combination code β€” UNLESS the physician explicitly states they are unrelated.

This is a significant departure from old ICD-9 logic. You do not need the physician to write β€œdue to diabetes” for most DM complications. If the patient has DM and diabetic neuropathy, you code E11.40. The combination code does both jobs. You do not code E11 (DM alone) and then a separate neuropathy code.

Type 1 vs. Type 2 vs. Other β€” How to Tell

TypeCode CategoryKey Clinical Clues
Type 1 (T1DM)E10Insulin-dependent since youth; C-peptide absent; absolute insulin requirement; often slender
Type 2 (T2DM)E11Most common; adult onset; often obese; may or may not use insulin
Drug/chemical-inducedE09Caused by steroids, tacrolimus, antipsychotics, etc.
Due to underlying conditionE08DM secondary to pancreatitis, Cushing’s, pancreatic cancer
Other specifiedE13Latent autoimmune DM in adults (LADA), post-pancreatectomy DM
UnspecifiedE14⚠️ Avoid β€” query for type

When insulin use is documented but type is unclear: E11 (Type 2) with an insulin use code (Z79.4) is the default when type is not specified. Type 2 patients commonly use insulin; insulin use alone does NOT make a patient Type 1. Query the physician if documentation is genuinely ambiguous.


πŸ“‹ E10 - Type 1 Diabetes Mellitus

Parent code E10 is not billable. Code to full specificity.


E10 with Hyperosmolarity

CodeDescriptionCC/MCCHCC
E10.00T1DM with hyperosmolarity without nonketotic hyperglycemic-hyperosmolar coma (NKHHC)MCCHCC 17
E10.01T1DM with hyperosmolarity with comaMCCHCC 17

E10 with Ketoacidosis (DKA)

CodeDescriptionCC/MCCHCC
E10.10T1DM with ketoacidosis without comaMCCHCC 17
E10.11T1DM with ketoacidosis with comaMCCHCC 17

DKA is a life-threatening complication almost exclusively seen in T1DM (though T2DM can have DKA under extreme stress). Documentation: anion gap metabolic acidosis, elevated serum ketones, blood glucose typically >250 mg/dL. DKA is an MCC β€” extremely important for DRG weight.


E10 with Kidney Complications

CodeDescriptionCC/MCCHCC
E10.21T1DM with diabetic nephropathyCCHCC 19
E10.22T1DM with diabetic chronic kidney disease, stage 1-2CCHCC 19
E10.23T1DM with diabetic chronic kidney disease, stage 3aCCHCC 19
E10.24T1DM with diabetic chronic kidney disease, stage 3bCCHCC 19
E10.25T1DM with diabetic chronic kidney disease, stage 4MCCHCC 19
E10.26T1DM with diabetic chronic kidney disease, stage 5MCCHCC 19
E10.29T1DM with other diabetic kidney complicationCCHCC 19

Combination code guidance: When coding E10.2x for CKD, you still add the CKD stage code (N18.1-N18.6) as an additional diagnosis per ICD-10 instructions. The E10.2x code tells you DM is the cause; the N18 code specifies the stage.


E10 with Ophthalmic Complications

CodeDescriptionCC/MCCHCC
E10.311T1DM with unspecified diabetic retinopathy with macular edemaCCHCC 19
E10.319T1DM with unspecified diabetic retinopathy without macular edemaβ€”HCC 19
E10.321T1DM with mild nonproliferative retinopathy with macular edema, right eyeCCHCC 19
E10.329T1DM with mild nonproliferative retinopathy without macular edema, right eyeβ€”HCC 19
E10.341T1DM with severe nonproliferative retinopathy with macular edema, right eyeCCHCC 19
E10.351T1DM with proliferative retinopathy with macular edema, right eyeCCHCC 19
E10.36T1DM with diabetic cataractβ€”HCC 19
E10.37X1T1DM with diabetic macular degeneration, right eyeCCHCC 19
E10.39T1DM with other diabetic ophthalmic complicationβ€”HCC 19

⚠️ Ophthalmic DM codes are laterality-specific in many categories. Always capture laterality (right, left, bilateral) from the documentation. In your Ophthalmology specialty work, you will see these frequently.


E10 with Neurological Complications

CodeDescriptionCC/MCCHCC
E10.40T1DM with diabetic neuropathy, unspecifiedCCHCC 18
E10.41T1DM with diabetic mononeuropathyCCHCC 18
E10.42T1DM with diabetic polyneuropathyCCHCC 18
E10.43T1DM with diabetic autonomic (poly)neuropathyCCHCC 18
E10.44T1DM with diabetic amyotrophyCCHCC 18
E10.49T1DM with other diabetic neurological complicationCCHCC 18

Diabetic neuropathy in the PMR world: In amputee patients, diabetic polyneuropathy (E10.42 or E11.42) is extremely common and is a significant secondary diagnosis during rehab. It affects sensation, balance, and prosthetic tolerance. Always code when documented.


E10 with Peripheral Circulatory / Vascular Complications

CodeDescriptionCC/MCCHCC
E10.51T1DM with diabetic peripheral angiopathy without gangreneCCHCC 18
E10.52T1DM with diabetic peripheral angiopathy with gangreneMCCHCC 18
E10.59T1DM with other circulatory complicationsCCHCC 18

E10.52 / E11.52 β€” these are MCCs and HCC-18. When the patient’s foot gangrene led to amputation, keep coding this even after the amputation. The underlying peripheral angiopathy with gangrene (even as a historical condition now post-amputation) is what drove the admission.


E10 with Other / Combination Complications

CodeDescriptionCC/MCCHCC
E10.610T1DM with diabetic neuropathic arthropathyCCHCC 18
E10.618T1DM with other diabetic arthropathyCCHCC 18
E10.620T1DM with diabetic dermatitisβ€”HCC 18
E10.621T1DM with foot ulcerCCHCC 18
E10.622T1DM with other skin ulcerCCHCC 18
E10.628T1DM with other skin complicationsβ€”HCC 18
E10.630T1DM with periodontal diseaseβ€”HCC 18
E10.641T1DM with hypoglycemia with comaMCCHCC 17
E10.649T1DM with hypoglycemia without comaCCHCC 17
E10.65T1DM with hyperglycemiaβ€”β€”
E10.69T1DM with other specified complicationβ€”HCC 18
E10.8T1DM with unspecified complicationsβ€”HCC 18
E10.9T1DM without complicationsβ€”HCC 35

πŸ“‹ E11 - Type 2 Diabetes Mellitus

Parent code E11 is not billable. The E11 family mirrors E10 in structure. The most common codes in the inpatient PMR amputee population are listed below with full detail.


E11 with Hyperosmolarity

CodeDescriptionCC/MCCHCC
E11.00T2DM with hyperosmolarity without NKHHCMCCHCC 17
E11.01T2DM with hyperosmolarity with comaMCCHCC 17

Hyperosmolar Hyperglycemic State (HHS) is the T2DM equivalent of DKA β€” severe hyperglycemia without significant ketoacidosis. Blood glucose often exceeds 600 mg/dL. This is an MCC and inpatient emergency.


E11 with Ketoacidosis

CodeDescriptionCC/MCCHCC
E11.10T2DM with ketoacidosis without comaMCCHCC 17
E11.11T2DM with ketoacidosis with comaMCCHCC 17

E11 with Kidney Complications

CodeDescriptionCC/MCCHCC
E11.21T2DM with diabetic nephropathyCCHCC 19
E11.22T2DM with diabetic chronic kidney disease, stage 1-2CCHCC 19
E11.23T2DM with diabetic CKD, stage 3aCCHCC 19
E11.24T2DM with diabetic CKD, stage 3bCCHCC 19
E11.25T2DM with diabetic CKD, stage 4MCCHCC 19
E11.26T2DM with diabetic CKD, stage 5MCCHCC 19
E11.29T2DM with other diabetic kidney complicationCCHCC 19

πŸ“Œ Always add N18.1-N18.6 as additional code per ICD-10 instructional notes when coding E11.2x. This is a required secondary code.


E11 with Neurological Complications

CodeDescriptionCC/MCCHCC
E11.40T2DM with diabetic neuropathy, unspecifiedCCHCC 18
E11.41T2DM with diabetic mononeuropathyCCHCC 18
E11.42T2DM with diabetic polyneuropathyCCHCC 18
E11.43T2DM with diabetic autonomic (poly)neuropathyCCHCC 18
E11.44T2DM with diabetic amyotrophyCCHCC 18
E11.49T2DM with other diabetic neurological complicationCCHCC 18

E11 with Peripheral Vascular / Circulatory Complications

CodeDescriptionCC/MCCHCC
E11.51T2DM with diabetic peripheral angiopathy without gangreneCCHCC 18
E11.52T2DM with diabetic peripheral angiopathy with gangreneMCCHCC 18
E11.59T2DM with other circulatory complicationsCCHCC 18

E11.51 and E11.52 are the most critical codes in the PMR amputee population. They represent the vascular disease that destroyed the foot and led to amputation. Code these even after the amputation has been completed β€” the underlying angiopathy is still active and being managed with anticoagulation, wound surveillance, and cardiovascular risk reduction.


E11 with Ophthalmic Complications

CodeDescriptionCC/MCCHCC
E11.311T2DM with unspecified diabetic retinopathy with macular edemaCCHCC 19
E11.319T2DM with unspecified diabetic retinopathy without macular edemaβ€”HCC 19
E11.3411T2DM with severe nonproliferative retinopathy with macular edema, right eyeCCHCC 19
E11.3412T2DM with severe nonproliferative retinopathy with macular edema, left eyeCCHCC 19
E11.3413T2DM with severe nonproliferative retinopathy with macular edema, bilateralCCHCC 19
E11.351T2DM with proliferative retinopathy with macular edema, right eyeCCHCC 19
E11.36T2DM with diabetic cataractβ€”HCC 19
E11.39T2DM with other diabetic ophthalmic complicationβ€”HCC 19

E11 with Other/Combination Complications

CodeDescriptionCC/MCCHCC
E11.610T2DM with diabetic neuropathic arthropathyCCHCC 18
E11.618T2DM with other diabetic arthropathyCCHCC 18
E11.620T2DM with diabetic dermatitisβ€”HCC 18
E11.621T2DM with diabetic foot ulcerCCHCC 18
E11.622T2DM with other skin ulcerCCHCC 18
E11.628T2DM with other skin complicationsβ€”HCC 18
E11.630T2DM with periodontal diseaseβ€”HCC 18
E11.641T2DM with hypoglycemia with comaMCCHCC 17
E11.649T2DM with hypoglycemia without comaCCHCC 17
E11.65T2DM with hyperglycemiaβ€”β€”
E11.69T2DM with other specified complicationβ€”HCC 18
E11.8T2DM with unspecified complicationsβ€”HCC 18
E11.9T2DM without complicationsβ€”HCC 36

🏷️ Critical Secondary Codes β€” Always Consider

CodeDescriptionWhen to Add
Z79.4Long-term current use of insulinT2DM patient using insulin β€” does NOT change type; add as additional
Z79.84Long-term current use of oral hypoglycemic drugsT2DM on metformin, glipizide, etc.
Z79.85Long-term current use of injectable non-insulin antidiabetic drugsGLP-1 agonists (semaglutide, liraglutide), SGLT2 inhibitors
N18.1CKD, Stage 1Add when E11.22 is coded
N18.2CKD, Stage 2Add when E11.22 is coded
N18.31CKD, Stage 3aAdd when E11.23 is coded
N18.32CKD, Stage 3bAdd when E11.24 is coded
N18.4CKD, Stage 4Add when E11.25 is coded
N18.5CKD, Stage 5Add when E11.26 is coded β€” add Z99.2 if on dialysis
Z99.2Dependence on renal dialysisAdd when patient is on hemodialysis or peritoneal dialysis
E87.65HypomagnesemiaCommonly seen in T2DM β€” impacts glycemic control
R73.01Impaired fasting glucosePre-diabetes (not DM)
R73.09Other abnormal glucoseGlucose intolerance NOS

🧠 HCC Mapping Summary - Diabetes (CMS-HCC v28)

HCCConditions IncludedKey DM CodesRisk Impact
HCC 17DM with acute complications (DKA, HHS, hypoglycemia with coma)E11.00, E11.10, E11.641Highest DM HCC
HCC 18DM with chronic complications (neuropathy, PVD, skin/joint)E11.40-E11.59, E11.621Very common in PMR amputee
HCC 19DM with ophthalmic/renal complicationsE11.21-E11.39Important in diabetic nephropathy
HCC 35T1DM without complicationsE10.9Lower weight
HCC 36T2DM without complicationsE11.9Lowest DM HCC β€” avoid if complications documented

Coding Imperative: HCC 36 (T2DM without complications) is worth far less in risk adjustment than HCC 18 (T2DM with complications). If your patient has T2DM AND peripheral neuropathy AND foot ulcer, you should be coding E11.40 and/or E11.621 β€” not E11.9. Always capture the complication combination codes.


πŸ’Š Coding Scenarios


Scenario 1: T2DM β€” Post-BKA Rehab, Polyneuropathy, Peripheral Angiopathy

Clinical Story: A 69-year-old male with T2DM on insulin admitted to PMR following right below-knee amputation secondary to gangrenous diabetic foot disease. He also has documented diabetic polyneuropathy affecting bilateral lower extremities and CKD Stage 3b. PMR physician documents management of DM, adjustment of insulin regimen, and monitoring of renal function.

DM-Related Codes (all additional diagnoses under Z47.81 principal):

  • E11.52 β€” T2DM with diabetic peripheral angiopathy with gangrene (the etiology of the amputation β€” gang code even post-amputation)
  • E11.42 β€” T2DM with diabetic polyneuropathy (documented, affecting rehab tolerance and sensation)
  • E11.24 β€” T2DM with diabetic CKD, stage 3b (combination code)
  • N18.32 β€” CKD, Stage 3b (required additional code per ICD-10)
  • Z79.4 β€” Long-term use of insulin (T2DM patient using insulin)

DRG Impact: E11.52 is MCC β†’ DRG 945; E11.42 and E11.24 are CCs β€” all captured appropriately.


Scenario 2: T2DM with Hypoglycemic Episode During PMR Admission

Clinical Story: A 74-year-old female T2DM patient on insulin is in inpatient PMR following left AKA. On Day 3, nursing documents a blood glucose of 42 mg/dL with confusion and diaphoresis. The PMR physician evaluates the patient, administers dextrose, and adjusts the insulin regimen. The patient returns to baseline. No coma occurred.

DM Code for this event:

  • E11.649 β€” T2DM with hypoglycemia without coma (confusion and diaphoresis do not constitute coma β€” physician documents resolution with treatment)
  • Z79.4 β€” Long-term use of insulin

HCC and DRG note: E11.649 is a CC, elevating the DRG if not already captured. It also maps to HCC 17 (acute DM complication) β€” an important capture for risk adjustment.

Query tip: If the physician documents β€œhypoglycemic encephalopathy” or β€œloss of consciousness,” escalate to E11.641 (with coma) β€” that is an MCC.


Scenario 3: T2DM Without Documentation of Complications β€” Query Opportunity

Clinical Story: A chart review shows: patient has T2DM. PMR daily notes document monitoring of blood glucose, insulin administration, wound surveillance of residual limb, evaluation of sensation in the contralateral foot (noting decreased sensation), and foot inspection. No complication of diabetes is explicitly named.

Coding as-is: E11.9 β€” T2DM without complications β†’ HCC 36 only

Query opportunity: The physician is monitoring and managing sensation loss in the contralateral foot and performing wound surveillance β€” clinical indicators of diabetic neuropathy and/or circulatory involvement. A physician query asking whether the patient has diabetic polyneuropathy or diabetic peripheral angiopathy, based on the clinical findings, is appropriate and can shift the code from E11.9 to E11.42 (CC, HCC 18) or E11.51 (CC, HCC 18).

Never assume or code without physician documentation β€” but recognize when the clinical picture supports a query.


⚠️ Common Coding Pitfalls - Diabetes

  1. Coding E11.9 when complications are documented β€” This is the single biggest missed capture opportunity. Scan the entire record for neuropathy, nephropathy, retinopathy, PVD, foot ulcer, autonomic dysfunction.

  2. Not adding Z79.4 for insulin-using T2DM β€” Insulin use by a T2DM patient must be captured with Z79.4. Omitting it creates a misleading picture of the patient’s disease management.

  3. Confusing E11.65 (hyperglycemia) with DKA/HHS β€” E11.65 is for elevated blood glucose without a crisis. DKA and HHS are separate, more severe codes.

  4. Failing to add N18.xx when coding E11.2x β€” ICD-10 instructs you to add an additional code from N18 to identify the stage. This is not optional.

  5. Coding E11 AND a separate neuropathy code β€” Incorrect. The combination code (e.g., E11.42) already captures both DM and polyneuropathy. Do not also code G62.9 (polyneuropathy NOS) alongside it.

  6. Not querying when type is unspecified β€” Always query the physician if chart documentation uses phrases like β€œinsulin-dependent diabetes” without specifying type. Document findings before defaulting to E11.


  • Z47.81 β€” Orthopedic aftercare, surgical amputation
  • Z89.511 β€” Acquired absence of right leg below knee
  • E11.51 β€” T2DM with peripheral angiopathy without gangrene
  • E11.52 β€” T2DM with peripheral angiopathy with gangrene
  • Peripheral Vascular Disease Coding Reference
  • PMR Amputee Coding Reference
  • Wound Care and Debridement CPT Reference

Created: 2026-05-07 | MCW Inpatient Abstraction Team | Crystal | CIC-Prep Sources: ICD-10-CM FY2026, CMS-HCC v28 Mappings, ADA Clinical Standards of Care 2026