[
  {
    "phenotype_id": "PH2468",
    "phenotype_version_id": 5947,
    "name": "Codes for diabetes (non-type 1)",
    "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 `DMNONTYPE1_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:02.404522Z",
    "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:07.707874Z",
    "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/dmnontype1_cod",
    "source_reference": "https://www.opencodelists.org/codelist/nhsd-primary-care-domain-refsets/dmnontype1_cod/20250912",
    "concept_information": [
      {
        "concept_id": 6124,
        "concept_version_id": 13609,
        "concept_name": "nhsd-primary-care-domain-refsets/dmnontype1_cod/20250912",
        "coding_system": {
          "id": 9,
          "name": "SNOMED  CT codes",
          "description": "SNOMED CT codes"
        },
        "phenotype_id": "PH2468",
        "phenotype_version_id": 5947,
        "phenotype_name": "Codes for diabetes (non-type 1)",
        "code_attribute_header": [],
        "codes": [
          {
            "code": "112991000000101",
            "description": "Lipoatrophic diabetes mellitus without complication",
            "attributes": null
          },
          {
            "code": "1142044000",
            "description": "Pre-existing malnutrition-related diabetes mellitus in pregnancy",
            "attributes": null
          },
          {
            "code": "1172389004",
            "description": "Disorder due to malnutrition related diabetes mellitus",
            "attributes": null
          },
          {
            "code": "1196922005",
            "description": "Neovascular glaucoma due to diabetes mellitus type 2",
            "attributes": null
          },
          {
            "code": "1197592001",
            "description": "Intrauterine growth restriction, short stature, early adult-onset diabetes syndrome",
            "attributes": null
          },
          {
            "code": "1217044000",
            "description": "Ketosis-resistant diabetes mellitus",
            "attributes": null
          },
          {
            "code": "1231650006",
            "description": "Combined rhegmatogenous and tractional retinal detachment due to proliferative diabetic retinopathy",
            "attributes": null
          },
          {
            "code": "1231691008",
            "description": "Vitreous hemorrhage due to proliferative diabetic retinopathy",
            "attributes": null
          },
          {
            "code": "1231698002",
            "description": "Tractional retinal detachment with macula involvement due to proliferative diabetic retinopathy",
            "attributes": null
          },
          {
            "code": "1251386008",
            "description": "Disorder of skin due to diabetes mellitus",
            "attributes": null
          },
          {
            "code": "1259048007",
            "description": "Lesion of brachial plexus due to diabetes mellitus",
            "attributes": null
          },
          {
            "code": "127012008",
            "description": "Lipoatrophic diabetes",
            "attributes": null
          },
          {
            "code": "127991000119101",
            "description": "Hypertension concurrent and due to end stage renal disease on dialysis due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "1285518004",
            "description": "Wolfram syndrome type 1",
            "attributes": null
          },
          {
            "code": "1285519007",
            "description": "Wolfram syndrome type 2",
            "attributes": null
          },
          {
            "code": "138811000119100",
            "description": "Complication due to secondary diabetes mellitus",
            "attributes": null
          },
          {
            "code": "140381000119104",
            "description": "Neuropathic ulcer of toe due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "140531000119105",
            "description": "Neuropathic ulcer of foot due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "1481000119100",
            "description": "Diabetes mellitus type 2 without retinopathy",
            "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": "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": "237613005",
            "description": "Hyperproinsulinemia",
            "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": "284449005",
            "description": "Congenital total lipodystrophy",
            "attributes": null
          },
          {
            "code": "313436004",
            "description": "Type II diabetes mellitus without complication",
            "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": "368591000119109",
            "description": "Cheiroarthropathy due to diabetes mellitus type 2",
            "attributes": null
          },
          {
            "code": "368711000119106",
            "description": "Mild nonproliferative retinopathy due to secondary diabetes mellitus",
            "attributes": null
          },
          {
            "code": "395204000",
            "description": "Hyperosmolar non-ketotic state due to type 2 diabetes mellitus",
            "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": "420279001",
            "description": "Renal disorder due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "420436000",
            "description": "Mononeuropathy due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "420715001",
            "description": "Persistent microalbuminuria due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "420756003",
            "description": "Cataract of eye due to diabetes mellitus type 2",
            "attributes": null
          },
          {
            "code": "421326000",
            "description": "Disorder of nervous system due to type 2 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": "421779007",
            "description": "Exudative maculopathy due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "421847006",
            "description": "Ketoacidotic coma due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "421986006",
            "description": "Persistent proteinuria due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "422014003",
            "description": "Disorder due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "422034002",
            "description": "Retinopathy due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "422099009",
            "description": "Disorder of eye due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "426705001",
            "description": "Diabetes mellitus co-occurrent and 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": "445353002",
            "description": "Brittle type 2 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": "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": "703138006",
            "description": "Type II diabetes mellitus in remission",
            "attributes": null
          },
          {
            "code": "70694009",
            "description": "Wolfram syndrome",
            "attributes": null
          },
          {
            "code": "713703005",
            "description": "Gastroparesis due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "713706002",
            "description": "Polyneuropathy due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "719216001",
            "description": "Hypoglycemic coma due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "724276006",
            "description": "X-linked immune dysregulation, polyendocrinopathy, enteropathy syndrome",
            "attributes": null
          },
          {
            "code": "737212004",
            "description": "Diabetes mellitus caused by chemical",
            "attributes": null
          },
          {
            "code": "75682002",
            "description": "Diabetes mellitus caused by insulin receptor antibodies",
            "attributes": null
          },
          {
            "code": "781000119106",
            "description": "Neuropathic arthropathy due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "789567007",
            "description": "Ulcer of heel due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "789569005",
            "description": "Neuropathic ulcer of heel due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "789570006",
            "description": "Neuropathic ulcer of midfoot due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "863879002",
            "description": "At low risk of ulcer of right foot due to diabetes mellitus",
            "attributes": null
          },
          {
            "code": "863880004",
            "description": "At low risk of ulcer of left foot due to diabetes mellitus",
            "attributes": null
          },
          {
            "code": "8801005",
            "description": "Secondary diabetes mellitus",
            "attributes": null
          }
        ]
      }
    ],
    "coding_system_release": "",
    "open_codelist_version_id": "40c4b813",
    "open_codelist_version_tag": "20250912",
    "status": 1,
    "doi": "https://doi.org/10.48533/dc09-9160",
    "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": 5947,
        "version_name": "Codes for diabetes (non-type 1)",
        "version_date": "2026-01-26T22:17:07.722934Z",
        "is_published": true,
        "is_latest": true
      },
      {
        "version_id": 5946,
        "version_name": "Codes for diabetes (non-type 1)",
        "version_date": "2026-01-26T22:17:06.440733Z",
        "is_published": true,
        "is_latest": false
      },
      {
        "version_id": 5945,
        "version_name": "Codes for diabetes (non-type 1)",
        "version_date": "2026-01-26T22:17:05.180830Z",
        "is_published": true,
        "is_latest": false
      },
      {
        "version_id": 5944,
        "version_name": "Codes for diabetes (non-type 1)",
        "version_date": "2026-01-26T22:17:03.842203Z",
        "is_published": true,
        "is_latest": false
      },
      {
        "version_id": 5943,
        "version_name": "Codes for diabetes (non-type 1)",
        "version_date": "2026-01-26T22:17:02.416485Z",
        "is_published": true,
        "is_latest": false
      }
    ]
  }
]