FY 2027 MEDESUN®
Home›Chapter 4 Endocrine, Nutritional and Metabolic Diseases
Section I.C.4 · E00-E89 · FY 2027

Chapter 4 — Endocrine, Nutritional and Metabolic Diseases

Diabetes as combination coding: type, body system and complication in a single code — plus the insulin and drug status codes, pump malfunctions, and the obesity class rules.

Guidelines effective October 1, 2026 – September 30, 2027

Chapter 4 is dominated by diabetes mellitus, and the single most important fact about the diabetes codes is that they are combination codes — each one carries the type of diabetes, the body system affected and the complication affecting that body system. You assign as many codes from E08–E13 as are needed to describe every associated condition the patient has, sequenced according to the reason for the encounter.

Type documented?Yes → E10 / E11No → default E11.-Insulin but no type?still E11.-Diabetes codes are COMBINATION codes: type + body system + complication. Assign as many as needed from E08–E13.Z79.4long-term insulinZ79.84long-term oralhypoglycemic drugsZ79.85long-term injectablenon-insulin antidiabeticsNot assignedinsulin given onlytemporarily to controla type 2 patientSecondary diabetes: E08 / E09 / E13always caused by another condition or eventPresymptomatic type 1: E10.A-    Type 2 in remission: E11.A"resolved" is not "in remission" — query
Section I.C.4.a — diabetes type, default and drug status

Which diabetes category applies?#

DocumentationCategoryNotes
Type 1 diabetes mellitusE10.-Also called juvenile diabetes. Age is not the sole determining factor, though most type 1 diabetics develop the condition before puberty
Early-stage type 1 diabetes predating the onset of symptomsE10.A-Presymptomatic type 1 diabetes mellitus
Type 2 diabetes mellitusE11.-—
Type 2 diabetes without complications, in remissionE11.AAssigned on provider documentation of remission. QUERY If unclear, query — the guideline states that the term resolved is not synonymous with remission
Type not documentedE11.-ALWAYS Type 2 is the default
Type not documented, but the patient uses insulinE11.-Still type 2, plus the appropriate Z79 code
Diabetes due to an underlying conditionE08.-Secondary diabetes — always caused by another condition or event
Drug or chemical induced diabetes mellitusE09.-Secondary diabetes
Other specified diabetes mellitusE13.-Secondary diabetes
Diabetes in pregnancy, childbirth or the puerperiumO24.- first, then E08-E13See Section I.C.15.g and I.C.15.i

Long-term drug status codes with diabetes#

Treatment documentedAssign
Insulin onlyZ79.4 Long term (current) use of insulin
Oral hypoglycemic drugs onlyZ79.84
Injectable non-insulin antidiabetic drugs onlyZ79.85
Oral hypoglycemic drugs and insulinZ79.4 and Z79.84
Insulin and an injectable non-insulin antidiabetic drugZ79.4 and Z79.85
Oral hypoglycemic drugs and an injectable non-insulin antidiabetic drugZ79.84 and Z79.85
Insulin given temporarily to bring a type 2 patient's blood sugar under control during an encounterNEVER Z79.4 is not assigned

The same table applies to secondary diabetes mellitus — guideline I.C.4.a.6.a repeats it in full for patients with E08, E09 or E13 who routinely use these drugs, including the rule that Z79.4 is not assigned where insulin is given only temporarily.

Insulin pump malfunctions#

EventSequence
Underdose of insulin due to insulin pump failure1T85.6- Mechanical complication specifying the type of pump malfunction, as the principal or first-listed code2T38.3X6- Underdosing of insulin and oral hypoglycemic drugs3codes for the type of diabetes mellitus and any associated complications due to the underdosing
Overdose of insulin due to insulin pump failure1T85.6- as the principal or first-listed code2T38.3X1- Poisoning by insulin and oral hypoglycemic drugs, accidental (unintentional)
Postpancreatectomy diabetesAssign
Lack of insulin due to surgical removal of all or part of the pancreasE89.1 Postprocedural hypoinsulinemia
Code sequenceA code from category E13 as the principal or first-listed diagnosis, with Z90.41- Acquired absence of pancreas as an additional code

Obesity and obesity class#

CodeCovers
E66.-Overweight and obesity — including codes for the cause, such as E66.1 drug-induced obesity, and for the effects, such as E66.2 morbid (severe) obesity with alveolar hypoventilation
E66.81-Obesity class — requires a 5th character conveying the severity. The obesity class must be documented by the provider for these codes to be assigned
E88.82Obesity due to disruption of MC4R pathway
O99.21-Obesity complicating pregnancy, childbirth and the puerperium
Class 3 obesity and morbid obesity both documentedALWAYS Assign only the class 3 obesity code — it is more specific

The obesity class codes may be reported with other obesity codes found in Chapters 4 and 15 to fully describe the condition. The one restriction is the class 3 and morbid obesity overlap above.

Practice questions#

Q1An office note documents “insulin-dependent diabetes mellitus” with no statement of type anywhere in the record. What is assigned?

  1. AE10.9 and Z79.4
  2. BE11.9 and Z79.4
  3. CE11.9 only
  4. DE13.9 and Z79.4
Show answer & rationale

Correct answer: B. E11.9 and Z79.4

Rationale. Guideline I.C.4.a.3 provides that if the documentation does not indicate the type of diabetes but does indicate that the patient uses insulin, E11.- type 2 diabetes mellitus should be assigned, with an additional code from category Z79 to identify the long-term use of insulin. Guideline I.C.4.a.2 sets E11.- as the default where the type is not documented at all.

Q2A type 2 diabetic is admitted with pneumonia and receives a sliding-scale insulin drip for two days to control blood glucose during the acute illness. She takes only metformin at home. Which status codes are assigned?

  1. AZ79.4 and Z79.84
  2. BZ79.4 only
  3. CZ79.84 only
  4. DNeither code
Show answer & rationale

Correct answer: C. Z79.84 only

Rationale. Guideline I.C.4.a.3 states that Z79.4 should not be assigned if insulin is given temporarily to bring a type 2 patient's blood sugar under control during an encounter. The home metformin is long-term oral hypoglycemic therapy, so Z79.84 is assigned. The same restriction on Z79.4 is repeated at I.C.4.a.6.a for secondary diabetes.

Q3A patient's insulin pump fails, delivering less insulin than prescribed, and she presents with hyperglycaemia. What is the principal diagnosis?

  1. AT38.3X6-
  2. BE11.65
  3. CT85.6-
  4. DE11.9
Show answer & rationale

Correct answer: C. T85.6-

Rationale. Guideline I.C.4.a.5.a directs that an underdose of insulin due to an insulin pump failure is assigned to a code from subcategory T85.6 that specifies the type of pump malfunction, as the principal or first-listed code, followed by T38.3X6- underdosing of insulin and oral hypoglycemic drugs, then codes for the type of diabetes and any associated complications due to the underdosing. The same principal code applies to a pump malfunction causing an overdose, with T38.3X1- second.

Q4The provider documents both “class 3 obesity” and “morbid obesity” for the same patient. What is assigned?

  1. ABoth codes
  2. BOnly the code for class 3 obesity
  3. COnly the code for morbid obesity
  4. DOnly E66.9
Show answer & rationale

Correct answer: B. Only the code for class 3 obesity

Rationale. Guideline I.C.4.b.1 states that if both class 3 obesity and morbid obesity are documented, only a code for class 3 obesity should be assigned as it is more specific. The obesity class codes in subcategory E66.81 otherwise may be reported with other obesity codes in Chapters 4 and 15 to fully describe the condition, and require the class to be documented by the provider.

Q5A patient developed diabetes after a total pancreatectomy for pancreatic cancer. How is the diabetes reported?

  1. AE11.- as the default, with Z90.41-
  2. BA code from category E13 as the principal or first-listed diagnosis, with Z90.41- as an additional code
  3. CE08.- with the malignancy sequenced first
  4. DE89.1 alone
Show answer & rationale

Correct answer: B. A code from category E13 as the principal or first-listed diagnosis, with Z90.41- as an additional code

Rationale. Guideline I.C.4.a.6.b.i covers secondary diabetes mellitus due to pancreatectomy: for postpancreatectomy diabetes mellitus, meaning lack of insulin due to the surgical removal of all or part of the pancreas, assign E89.1 postprocedural hypoinsulinemia, and assign a code from category E13 as the principal or first-listed diagnosis with a code from subcategory Z90.41 acquired absence of pancreas as an additional code.

Scenarios#

Scenario 1Diabetes with several complications at one encounter

A patient with type 2 diabetes mellitus is seen in the office. The provider documents diabetic stage 3a chronic kidney disease, diabetic polyneuropathy and diabetic macular oedema of the right eye with proliferative retinopathy. The visit focused chiefly on the worsening kidney function. The patient takes insulin and a sodium-glucose co-transporter 2 inhibitor long term.

Show coded answer & rationale
SeqCodeDescription
1E11.22Type 2 diabetes mellitus with diabetic chronic kidney disease — first-listed, because the encounter focused on the kidney disease
2N18.31Chronic kidney disease, stage 3a
3E11.42Type 2 diabetes mellitus with diabetic polyneuropathy
4E11.3511Type 2 diabetes with proliferative diabetic retinopathy with macular edema, right eye — verify the exact code in the Tabular List
5Z79.4Long term (current) use of insulin
6Z79.84Long term (current) use of oral hypoglycemic drugs, if applicable to the agent documented

Rationale. Guideline I.C.4.a states that the diabetes codes are combination codes including the type, the body system affected and the complication, that as many codes within a category as are necessary may be used, that they are sequenced based on the reason for the particular encounter, and that as many codes from E08-E13 as needed should be assigned to identify all associated conditions. Guideline I.C.9.a.2 and I.C.14.a require N18.- to identify the CKD stage. The Z79 codes follow I.C.4.a.3. Confirm which long-term agent classes the patient actually takes before selecting between Z79.84 and Z79.85.

Guideline: Section I.C.4.a, I.C.4.a.3, I.C.14.a

Scenario 2Drug-induced diabetes

A patient on long-term high-dose corticosteroid therapy for giant cell arteritis develops diabetes mellitus, documented by the provider as steroid-induced. The corticosteroid was correctly prescribed and properly administered.

Show coded answer & rationale
SeqCodeDescription
1E09.9Drug or chemical induced diabetes mellitus without complications — sequenced per the Tabular List instructions at E09
2T38.0X5-Adverse effect of glucocorticoids and synthetic analogues, with the appropriate 7th character
3Z79.52Long term (current) use of systemic steroids, if documented

Rationale. Guideline I.C.4.a.6 identifies E09 as the category for drug or chemical induced diabetes mellitus and notes that secondary diabetes is always caused by another condition or event, naming an adverse effect of a drug among the causes. Guideline I.C.4.a.6.b.ii cross-references Section I.C.19.e for the coding of adverse effects. Guideline I.C.19.e.5.a requires that for an adverse effect of a correctly prescribed and properly administered drug, the nature of the adverse effect is coded followed by the drug code with 5th or 6th character 5. Sequencing of the E09 code relative to the cause follows the Tabular List instructions at that category, per I.C.4.a.6.b.

Guideline: Section I.C.4.a.6, I.C.4.a.6.b, I.C.19.e.5.a

Scenario 3Obesity with a BMI documented by a dietitian

A hospital dietitian documents a BMI of 44.1. The attending physician documents “class 3 obesity”. The patient is admitted for an elective knee replacement.

Show coded answer & rationale
SeqCodeDescription
1Reason for admissionthe osteoarthritis code that occasioned the admission, as principal diagnosis
2E66.813Obesity class 3 — verify the 5th character in the Tabular List
3Z68.41Body mass index 40.0-44.9, adult — secondary diagnosis only

Rationale. Three guidelines combine. Section I.B.14 permits BMI to be coded from a clinician other than the patient's provider, such as a dietitian, but requires the associated diagnosis to be documented by the provider and restricts BMI codes to secondary diagnoses. Section I.C.21.c.3 repeats that BMI codes should only be assigned when there is an associated, reportable diagnosis documented by the patient's provider, and prohibits BMI codes during pregnancy. Section I.C.4.b.1 requires the obesity class to be documented by the provider, which it is here.

Guideline: Section I.B.14, I.C.4.b.1, I.C.21.c.3

Primary sources#