ICD-10-CM 2027 diagnosis code
O24.31Unspecified pre-existing diabetes mellitus in pregnancy
O24.31 is a header code, so it can't be reported by itself. Choose one of the 4 more specific codes beneath it.
Code unchanged since ICD-10-CM took effect on October 1, 2015. Source: official FY2027 ICD-10-CM release from CDC/NCHS and CMS. Page updated September 29, 2026. About our data
About O24.31
O24.31 is the ICD-10-CM diagnosis code for unspecified pre-existing diabetes mellitus in pregnancy. It belongs to category O24 (diabetes mellitus in pregnancy, childbirth, and the puerperium), block O20-O29 (other maternal disorders predominantly related to pregnancy) and chapter 15 (pregnancy, childbirth and the puerperium). It is a header code, so it can't be reported by itself; one of its 4 subcodes must be used instead.
Within O24.3 (unspecified pre-existing diabetes mellitus in pregnancy, childbirth and the puerperium), O24.31 is specifically for unspecified pre-existing diabetes mellitus in pregnancy. Related codes cover childbirth (O24.32) and the puerperium (O24.33).
To report this condition, pick the subcode that matches the documentation: O24.311 (first trimester), O24.312 (second trimester), O24.313 (third trimester) and O24.319 (unspecified trimester).
It has been part of ICD-10-CM since the code set took effect on October 1, 2015 and hasn't changed since.
Specific codes under O24.31
- O24.311Unspecified pre-existing diabetes mellitus in pregnancy, first trimesterBillable
- O24.312Unspecified pre-existing diabetes mellitus in pregnancy, second trimesterBillable
- O24.313Unspecified pre-existing diabetes mellitus in pregnancy, third trimesterBillable
- O24.319Unspecified pre-existing diabetes mellitus in pregnancy, unspecified trimesterBillable
Notes that apply from higher levels
Instructions written at a parent level also apply to O24.31.
Alphabetic index entries
1 entriesTerms in the official ICD-10-CM index that lead to O24.31.
Code history
- 2016
- 2017
- 2018
- 2019
- 2020
- 2021
- 2022
- 2023
- 2024
- 2025
- 2026
- 2027
- FY2016 (effective 10/1/2015): Added (first year of ICD-10-CM)
- No changes since FY2016.
Common questions about O24.31
Is O24.31 billable?
- No. O24.31 is a header code. Report one of its more specific subcodes instead.