The PPV and completeness of the sub‐algorithms varied between 67.8%–87.6% and 73.6%–92.4%, respectively, depending on the inclusion of additional information on issued prescriptions of insulin or oral antidiabetics and exclusion of women who had a registered gestational diabetes mellitus diagnosis code during the index pregnancy. Here, INS is linked to gestational diabetes.