ICD-10-CM Code O24.31

Unspecified pre-existing diabetes mellitus in pregnancy

Version 2020 Non-Billable Code

Not Valid for Submission

O24.31 is a "header" nonspecific and non-billable code code, consider using a code with a higher level of specificity for a diagnosis of unspecified pre-existing diabetes mellitus in pregnancy. The code is NOT valid for the year 2020 for the submission of HIPAA-covered transactions.

ICD-10:O24.31
Short Description:Unspecified pre-existing diabetes mellitus in pregnancy
Long Description:Unspecified pre-existing diabetes mellitus in pregnancy

Consider the following ICD-10 codes with a higher level of specificity:

Index to Diseases and Injuries

The Index to Diseases and Injuries is an alphabetical listing of medical terms, with each term mapped to one or more ICD-10 code(s). The following references for the code O24.31 are found in the index:


Code Classification

  • Pregnancy, childbirth and the puerperium (O00–O99)
    • Other maternal disorders predominantly related to pregnancy (O20-O29)
      • Diabetes in pregnancy, childbirth, and the puerperium (O24)

Code History

  • FY 2016 - New Code, effective from 10/1/2015 through 9/30/2016
    (First year ICD-10-CM implemented into the HIPAA code set)
  • FY 2017 - No Change, effective from 10/1/2016 through 9/30/2017
  • FY 2018 - No Change, effective from 10/1/2017 through 9/30/2018
  • FY 2019 - No Change, effective from 10/1/2018 through 9/30/2019
  • FY 2020 - No Change, effective from 10/1/2019 through 9/30/2020

Information for Patients


Diabetes and Pregnancy

Diabetes is a disease in which your blood glucose, or blood sugar, levels are too high. When you are pregnant, high blood sugar levels are not good for your baby.

About seven out of every 100 pregnant women in the United States get gestational diabetes. Gestational diabetes is diabetes that happens for the first time when a woman is pregnant. Most of the time, it goes away after you have your baby. But it does increase your risk for developing type 2 diabetes later on. Your child is also at risk for obesity and type 2 diabetes.

Most women get a test to check for diabetes during their second trimester of pregnancy. Women at higher risk may get a test earlier.

If you already have diabetes, the best time to control your blood sugar is before you get pregnant. High blood sugar levels can be harmful to your baby during the first weeks of pregnancy - even before you know you are pregnant. To keep you and your baby healthy, it is important to keep your blood sugar as close to normal as possible before and during pregnancy.

Either type of diabetes during pregnancy increases the chances of problems for you and your baby. To help lower the chances talk to your health care team about

  • A meal plan for your pregnancy
  • A safe exercise plan
  • How often to test your blood sugar
  • Taking your medicine as prescribed. Your medicine plan may need to change during pregnancy.

NIH: National Institute of Diabetes and Digestive and Kidney Diseases


[Learn More]

Gestational Diabetes Learn about gestational diabetes, including symptoms, causes, diagnosis, and management. Find out what you can do to help prevent gestational diabetes.
[Learn More]