[
  {
    "phenotype_id": "PH2477",
    "phenotype_version_id": 5987,
    "name": "Diabetes mellitus codes",
    "definition": "This codelist was taken from [OpenCodelists](https://www.opencodelists.org/), created by [OpenSAFELY](https://www.opensafely.org/). We recommend viewing this Phenotype on the OpenCodelist website to view the most recent version.\n\n\nTaken from the `DM_COD` refset published by NHSD. Contains public sector information licensed under the UK Open Government Licence v3\\.0 (https://www.nationalarchives.gov.uk/doc/open\\-government\\-licence/version/3/).\n\n\n© University of Oxford for the Bennett Institute for Applied Data Science 2025\\. This work may be copied freely for non\\-commercial research and study.\n\n",
    "implementation": null,
    "publications": null,
    "validation": null,
    "citation_requirements": null,
    "created": "2026-01-26T22:17:53.027495Z",
    "author": "NHSD Primary Care Domain Refsets",
    "collections": [
      {
        "name": "OpenCodelist",
        "value": 31
      },
      {
        "name": "Phenotype Library",
        "value": 18
      }
    ],
    "tags": null,
    "organisation": {
      "id": 1,
      "slug": "opensafely",
      "name": "OpenSAFELY"
    },
    "world_access": 1,
    "updated": "2026-01-26T22:17:58.445980Z",
    "references": [
      {
        "url": "https://digital.nhs.uk/data-and-information/data-collections-and-data-sets/data-collections/quality-and-outcomes-framework-qof/quality-and-outcome-framework-qof-business-rules/primary-care-domain-reference-set-portal",
        "title": "Primary Care Domain Reference Set Portal"
      }
    ],
    "signed_off": [],
    "methodology": "",
    "coding_system": [
      {
        "name": "SNOMED  CT codes",
        "value": 9
      }
    ],
    "open_codelist_id": "nhsd-primary-care-domain-refsets/dm_cod",
    "source_reference": "https://www.opencodelists.org/codelist/nhsd-primary-care-domain-refsets/dm_cod/20250912",
    "concept_information": [
      {
        "concept_id": 6164,
        "concept_version_id": 13649,
        "concept_name": "nhsd-primary-care-domain-refsets/dm_cod/20250912",
        "coding_system": {
          "id": 9,
          "name": "SNOMED  CT codes",
          "description": "SNOMED CT codes"
        },
        "phenotype_id": "PH2477",
        "phenotype_version_id": 5987,
        "phenotype_name": "Diabetes mellitus codes",
        "code_attribute_header": [],
        "codes": [
          {
            "code": "111552007",
            "description": "Diabetes mellitus without complication",
            "attributes": null
          },
          {
            "code": "112991000000101",
            "description": "Lipoatrophic diabetes mellitus without complication",
            "attributes": null
          },
          {
            "code": "1142044000",
            "description": "Pre-existing malnutrition-related diabetes mellitus in pregnancy",
            "attributes": null
          },
          {
            "code": "11530004",
            "description": "Brittle diabetes mellitus",
            "attributes": null
          },
          {
            "code": "1196922005",
            "description": "Neovascular glaucoma due to diabetes mellitus type 2",
            "attributes": null
          },
          {
            "code": "1196923000",
            "description": "Neovascular glaucoma due to diabetes mellitus type 1",
            "attributes": null
          },
          {
            "code": "1217044000",
            "description": "Ketosis-resistant diabetes mellitus",
            "attributes": null
          },
          {
            "code": "1217068008",
            "description": "Fulminant type 1 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "1217674007",
            "description": "Neurotrophic keratitis due to diabetes mellitus",
            "attributes": null
          },
          {
            "code": "1222660008",
            "description": "Pancreatic agenesis, holoprosencephaly syndrome",
            "attributes": null
          },
          {
            "code": "1255271005",
            "description": "Type 1 diabetes mellitus, central and peripheral neurodegeneration syndrome",
            "attributes": null
          },
          {
            "code": "127012008",
            "description": "Lipoatrophic diabetes",
            "attributes": null
          },
          {
            "code": "127013003",
            "description": "Disorder of kidney due to diabetes mellitus",
            "attributes": null
          },
          {
            "code": "127014009",
            "description": "Peripheral angiopathy due to diabetes mellitus",
            "attributes": null
          },
          {
            "code": "1481000119100",
            "description": "Diabetes mellitus type 2 without retinopathy",
            "attributes": null
          },
          {
            "code": "190368000",
            "description": "Type I diabetes mellitus with ulcer",
            "attributes": null
          },
          {
            "code": "190369008",
            "description": "Type I diabetes mellitus with gangrene",
            "attributes": null
          },
          {
            "code": "190372001",
            "description": "Type I diabetes mellitus maturity onset",
            "attributes": null
          },
          {
            "code": "190388001",
            "description": "Multiple complications due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "190389009",
            "description": "Type II diabetes mellitus with ulcer",
            "attributes": null
          },
          {
            "code": "190390000",
            "description": "Type II diabetes mellitus with gangrene",
            "attributes": null
          },
          {
            "code": "201724008",
            "description": "Neuropathic arthropathy due to diabetes mellitus",
            "attributes": null
          },
          {
            "code": "230577008",
            "description": "Mononeuropathy due to diabetes mellitus",
            "attributes": null
          },
          {
            "code": "237599002",
            "description": "Insulin treated type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "237601000",
            "description": "Secondary endocrine diabetes mellitus",
            "attributes": null
          },
          {
            "code": "237604008",
            "description": "Maturity onset diabetes of the young, type 2",
            "attributes": null
          },
          {
            "code": "237612000",
            "description": "Photomyoclonus, diabetes mellitus, deafness, nephropathy and cerebral dysfunction",
            "attributes": null
          },
          {
            "code": "237618001",
            "description": "Insulin-dependent diabetes mellitus secretory diarrhea syndrome",
            "attributes": null
          },
          {
            "code": "237619009",
            "description": "Maternally inherited diabetes and deafness",
            "attributes": null
          },
          {
            "code": "268519009",
            "description": "Diabetic - poor control",
            "attributes": null
          },
          {
            "code": "290002008",
            "description": "Brittle type 1 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "313435000",
            "description": "Type I diabetes mellitus without complication",
            "attributes": null
          },
          {
            "code": "313436004",
            "description": "Type II diabetes mellitus without complication",
            "attributes": null
          },
          {
            "code": "314771006",
            "description": "Type I diabetes mellitus with hypoglycemic coma",
            "attributes": null
          },
          {
            "code": "314893005",
            "description": "Arthropathy due to type 1 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "314902007",
            "description": "Peripheral angiopathy due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "314903002",
            "description": "Arthropathy due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "314904008",
            "description": "Type II diabetes mellitus with neuropathic arthropathy",
            "attributes": null
          },
          {
            "code": "335621000000101",
            "description": "Maternally inherited diabetes mellitus",
            "attributes": null
          },
          {
            "code": "368711000119106",
            "description": "Mild nonproliferative retinopathy due to secondary diabetes mellitus",
            "attributes": null
          },
          {
            "code": "385041000000108",
            "description": "Diabetes mellitus with multiple complications",
            "attributes": null
          },
          {
            "code": "395204000",
            "description": "Hyperosmolar non-ketotic state due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "401110002",
            "description": "Type 1 diabetes mellitus with persistent microalbuminuria",
            "attributes": null
          },
          {
            "code": "408540003",
            "description": "Diabetes mellitus caused by non-steroid drugs",
            "attributes": null
          },
          {
            "code": "413183008",
            "description": "Diabetes mellitus caused by non-steroid drugs without complication",
            "attributes": null
          },
          {
            "code": "420270002",
            "description": "Ketoacidosis due to type 1 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "420825003",
            "description": "Gangrene due to type 1 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "420868002",
            "description": "Disorder due to type 1 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "421075007",
            "description": "Ketoacidotic coma due to type 1 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "421305000",
            "description": "Persistent microalbuminuria due to type 1 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "421437000",
            "description": "Hypoglycemic coma due to type 1 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "421631007",
            "description": "Gangrene due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "421750000",
            "description": "Ketoacidosis due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "421847006",
            "description": "Ketoacidotic coma due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "422014003",
            "description": "Disorder due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "422228004",
            "description": "Multiple complications due to type 1 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "426705001",
            "description": "Diabetes mellitus co-occurrent and due to cystic fibrosis",
            "attributes": null
          },
          {
            "code": "426875007",
            "description": "Latent autoimmune diabetes mellitus in adult",
            "attributes": null
          },
          {
            "code": "427089005",
            "description": "Diabetes mellitus due to cystic fibrosis",
            "attributes": null
          },
          {
            "code": "44054006",
            "description": "Diabetes mellitus type 2",
            "attributes": null
          },
          {
            "code": "443694000",
            "description": "Uncontrolled type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "444073006",
            "description": "Uncontrolled type 1 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "445353002",
            "description": "Brittle type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "46635009",
            "description": "Diabetes mellitus type 1",
            "attributes": null
          },
          {
            "code": "4855003",
            "description": "Retinopathy due to diabetes mellitus",
            "attributes": null
          },
          {
            "code": "49455004",
            "description": "Polyneuropathy due to diabetes mellitus",
            "attributes": null
          },
          {
            "code": "51002006",
            "description": "Diabetes mellitus associated with pancreatic disease",
            "attributes": null
          },
          {
            "code": "5368009",
            "description": "Drug-induced diabetes mellitus",
            "attributes": null
          },
          {
            "code": "5969009",
            "description": "Diabetes mellitus associated with genetic syndrome",
            "attributes": null
          },
          {
            "code": "609561005",
            "description": "Maturity-onset diabetes of the young",
            "attributes": null
          },
          {
            "code": "609562003",
            "description": "Maturity onset diabetes of the young, type 1",
            "attributes": null
          },
          {
            "code": "609572000",
            "description": "Maturity-onset diabetes of the young, type 5",
            "attributes": null
          },
          {
            "code": "703136005",
            "description": "Diabetes mellitus in remission",
            "attributes": null
          },
          {
            "code": "703137001",
            "description": "Type I diabetes mellitus in remission",
            "attributes": null
          },
          {
            "code": "703138006",
            "description": "Type II diabetes mellitus in remission",
            "attributes": null
          },
          {
            "code": "70694009",
            "description": "Wolfram syndrome",
            "attributes": null
          },
          {
            "code": "73211009",
            "description": "Diabetes mellitus",
            "attributes": null
          },
          {
            "code": "737212004",
            "description": "Diabetes mellitus caused by chemical",
            "attributes": null
          },
          {
            "code": "739681000",
            "description": "Disorder of eye due to type 1 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "75682002",
            "description": "Diabetes mellitus caused by insulin receptor antibodies",
            "attributes": null
          },
          {
            "code": "768792007",
            "description": "Cataract of right eye due to diabetes mellitus",
            "attributes": null
          },
          {
            "code": "768793002",
            "description": "Cataract of left eye due to diabetes mellitus",
            "attributes": null
          },
          {
            "code": "768794008",
            "description": "Cataract of bilateral eyes due to diabetes mellitus",
            "attributes": null
          },
          {
            "code": "816067005",
            "description": "Diabetes, hypogonadism, deafness, intellectual disability syndrome",
            "attributes": null
          },
          {
            "code": "82581000119105",
            "description": "Rubeosis iridis due to type 1 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "8801005",
            "description": "Secondary diabetes mellitus",
            "attributes": null
          }
        ]
      }
    ],
    "coding_system_release": "",
    "open_codelist_version_id": "7af27562",
    "open_codelist_version_tag": "20250912",
    "status": 1,
    "doi": "https://doi.org/10.48533/4a20-e452",
    "is_deleted": false,
    "publish_status": 2,
    "owner": "ieuan.scanlon",
    "template": {
      "id": 3,
      "name": "OpenCodelists Phenotype",
      "description": "OpenSafely's OpenCodelist Phenotype, visit https://www.opencodelists.org/ to learn more",
      "version_id": 1
    },
    "versions": [
      {
        "version_id": 5987,
        "version_name": "Diabetes mellitus codes",
        "version_date": "2026-01-26T22:17:58.461043Z",
        "is_published": true,
        "is_latest": true
      },
      {
        "version_id": 5986,
        "version_name": "Diabetes mellitus codes",
        "version_date": "2026-01-26T22:17:57.102447Z",
        "is_published": true,
        "is_latest": false
      },
      {
        "version_id": 5985,
        "version_name": "Diabetes mellitus codes",
        "version_date": "2026-01-26T22:17:55.730089Z",
        "is_published": true,
        "is_latest": false
      },
      {
        "version_id": 5984,
        "version_name": "Diabetes mellitus codes",
        "version_date": "2026-01-26T22:17:54.356742Z",
        "is_published": true,
        "is_latest": false
      },
      {
        "version_id": 5983,
        "version_name": "Diabetes mellitus codes",
        "version_date": "2026-01-26T22:17:53.038756Z",
        "is_published": true,
        "is_latest": false
      }
    ]
  }
]