[
  {
    "phenotype_id": "PH3793",
    "phenotype_version_id": 8946,
    "name": "Type 2 Diabetes",
    "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\nCodes explicitly indicating Type 2 Diabetes\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-26T23:34:53.076151Z",
    "author": "OpenSAFELY",
    "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-26T23:34:53.071385Z",
    "references": [
      {
        "url": "https://github.com/opensafely/ethnicity-covid-research/issues/11",
        "title": "Discussion on GitHub issue"
      }
    ],
    "signed_off": [],
    "methodology": "Derived from Diabetes codelist previously developed for OpenSAFELY. See discussion in GitHub issue referenced below\n\n",
    "coding_system": [
      {
        "name": "Read codes v3",
        "value": 6
      }
    ],
    "open_codelist_id": "opensafely/type-2-diabetes",
    "source_reference": "https://www.opencodelists.org/codelist/opensafely/type-2-diabetes/2020-06-29",
    "concept_information": [
      {
        "concept_id": 9123,
        "concept_version_id": 16608,
        "concept_name": "opensafely/type-2-diabetes/2020-06-29",
        "coding_system": {
          "id": 6,
          "name": "Read codes v3",
          "description": "Read codes v3"
        },
        "phenotype_id": "PH3793",
        "phenotype_version_id": 8946,
        "phenotype_name": "Type 2 Diabetes",
        "code_attribute_header": [
          "CTV3Source"
        ],
        "codes": [
          {
            "code": "C1011",
            "description": "Type 2 diabetes mellitus with ketoacidosis",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "C1031",
            "description": "Type II diabetes mellitus with ketoacidotic coma",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "C109.",
            "description": "Type II diabetes mellitus",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "C1090",
            "description": "Type II diabetes mellitus with renal complications",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "C1091",
            "description": "Type II diabetes mellitus with ophthalmic complications",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "C1092",
            "description": "Type II diabetes mellitus with neurological complications",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "C1093",
            "description": "Type II diabetes mellitus with multiple complications",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "C1094",
            "description": "Type II diabetes mellitus with ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "C1095",
            "description": "Type II diabetes mellitus with gangrene",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "C1096",
            "description": "Type II diabetes mellitus with retinopathy",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "C1097",
            "description": "Type II diabetes mellitus - poor control",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "X40J5",
            "description": "Type II diabetes mellitus",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "X40J6",
            "description": "Insulin treated Type 2 diabetes mellitus",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "X40JJ",
            "description": "Diabetes mellitus autosomal dominant type 2",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "Xa2hA",
            "description": "Dietary advice for type II diabetes",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "Xaagf",
            "description": "Type II diabetes mellitus in remission",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaELQ",
            "description": "Type II diabetes mellitus without complication",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaEnp",
            "description": "Type II diabetes mellitus with mononeuropathy",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaEnq",
            "description": "Type II diabetes mellitus with polyneuropathy",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaF05",
            "description": "Type II diabetes mellitus with nephropathy",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "Xaffg",
            "description": "Type 2 diabetes mellitus risk assessment invitation",
            "attributes": {
              "CTV3Source": "QOF"
            }
          },
          {
            "code": "Xaffh",
            "description": "Type 2 diabetes mellitus risk assessment inv first letter",
            "attributes": {
              "CTV3Source": "QOF"
            }
          },
          {
            "code": "Xaffi",
            "description": "Type 2 diabetes mellitus risk assessment inv second letter",
            "attributes": {
              "CTV3Source": "QOF"
            }
          },
          {
            "code": "Xaffj",
            "description": "Type 2 diabetes mellitus risk assessment inv third letter",
            "attributes": {
              "CTV3Source": "QOF"
            }
          },
          {
            "code": "Xaffk",
            "description": "Type 2 diabetes mellitus risk assessment verbal invitation",
            "attributes": {
              "CTV3Source": "QOF"
            }
          },
          {
            "code": "Xaffl",
            "description": "Type 2 diabetes mellitus risk assessment telephone inv",
            "attributes": {
              "CTV3Source": "QOF"
            }
          },
          {
            "code": "Xaffm",
            "description": "Type 2 diabetes mellitus risk assessment inv SMS text msg",
            "attributes": {
              "CTV3Source": "QOF"
            }
          },
          {
            "code": "XaFmA",
            "description": "Type II diabetes mellitus with diabetic cataract",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaFn7",
            "description": "Type II diabetes mellitus with peripheral angiopathy",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaFn8",
            "description": "Type II diabetes mellitus with arthropathy",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaFn9",
            "description": "Type II diabetes mellitus with neuropathic arthropathy",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaFWI",
            "description": "Type II diabetes mellitus with hypoglycaemic coma",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaIfG",
            "description": "Type II diabetes on insulin",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "XaIfI",
            "description": "Type II diabetes on diet only",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "XaIrf",
            "description": "Hyperosmolar non-ketotic state in type II diabetes mellitus",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaIzQ",
            "description": "Type II diabetes mellitus with persistent proteinuria",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaIzR",
            "description": "Type II diabetes mellitus with persistent microalbuminuria",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaJQp",
            "description": "Type II diabetes mellitus with exudative maculopathy",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaKyX",
            "description": "Type II diabetes mellitus with gastroparesis",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaMhK",
            "description": "Diabetes type II review",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaX3q",
            "description": "Type II diabetic dietary review",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaXZR",
            "description": "H/O: diabetes mellitus type 2",
            "attributes": {
              "CTV3Source": "QOF"
            }
          },
          {
            "code": "XM19j",
            "description": "[EDTA] Diabetes Type II associated with renal failure",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          }
        ]
      }
    ],
    "coding_system_release": "",
    "open_codelist_version_id": "48da3ef2",
    "open_codelist_version_tag": "2020-06-29",
    "status": 1,
    "doi": "https://doi.org/10.48533/n9r7-yg12",
    "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": 8946,
        "version_name": "Type 2 Diabetes",
        "version_date": "2026-01-26T23:34:53.082702Z",
        "is_published": true,
        "is_latest": true
      }
    ]
  }
]