[
  {
    "phenotype_id": "PH3400",
    "phenotype_version_id": 8424,
    "name": "diabetes-exeter-group",
    "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 for type 1 and 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:15:19.803333Z",
    "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:15:19.795988Z",
    "references": [
      {
        "url": "https://github.com/opensafely/ethnicity-covid-research/pull/14",
        "title": "See Discussion on Github Issue"
      }
    ],
    "signed_off": [],
    "methodology": "Developed by Diabetes Research Group at Exeter University.\n\n",
    "coding_system": [
      {
        "name": "Read codes v3",
        "value": 6
      }
    ],
    "open_codelist_id": "opensafely/diabetes-exeter-group",
    "source_reference": "https://www.opencodelists.org/codelist/opensafely/diabetes-exeter-group/2020-07-06",
    "concept_information": [
      {
        "concept_id": 8601,
        "concept_version_id": 16086,
        "concept_name": "opensafely/diabetes-exeter-group/2020-07-06",
        "coding_system": {
          "id": 6,
          "name": "Read codes v3",
          "description": "Read codes v3"
        },
        "phenotype_id": "PH3400",
        "phenotype_version_id": 8424,
        "phenotype_name": "diabetes-exeter-group",
        "code_attribute_header": [
          "Category"
        ],
        "codes": [
          {
            "code": "C1010",
            "description": "Type 1 diabetes mellitus with ketoacidosis",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "C1011",
            "description": "Type 2 diabetes mellitus with ketoacidosis",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "C1030",
            "description": "Type 1 diabetes mellitus with ketoacidotic coma",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "C1031",
            "description": "Type 2 diabetes mellitus with ketoacidotic coma",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "C1080",
            "description": "Type 1 diabetes mellitus with renal complications",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "C1081",
            "description": "Type 1 diabetes mellitus with ophthalmic complications",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "C1082",
            "description": "Type 1 diabetes mellitus with neurological complications",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "C1083",
            "description": "Type 1 diabetes mellitus with multiple complications",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "C1085",
            "description": "Type 1 diabetes mellitus with ulcer",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "C1086",
            "description": "Type 1 diabetes mellitus with gangrene",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "C1087",
            "description": "Type 1 diabetes mellitus with retinopathy",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "C1088",
            "description": "Type 1 diabetes mellitus - poor control",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "C109.",
            "description": "Type 2 diabetes mellitus",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "C1090",
            "description": "Type 2 diabetes mellitus with renal complications",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "C1091",
            "description": "Type 2 diabetes mellitus with ophthalmic complications",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "C1092",
            "description": "Type 2 diabetes mellitus with neurological complications",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "C1093",
            "description": "Type 2 diabetes mellitus with multiple complications",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "C1094",
            "description": "Type 2 diabetes mellitus with ulcer",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "C1095",
            "description": "Type 2 diabetes mellitus with gangrene",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "C1096",
            "description": "Type 2 diabetes mellitus with retinopathy",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "C1097",
            "description": "Type 2 diabetes mellitus - poor control",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "X40J4",
            "description": "Type 1 diabetes mellitus",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "X40J5",
            "description": "Type 2 diabetes mellitus",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "X40J6",
            "description": "Insulin treated Type 2 diabetes mellitus",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "Xa2h9",
            "description": "Dietary advice for type I diabetes",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "Xa2hA",
            "description": "Dietary advice for type II diabetes",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "Xa4g7",
            "description": "Unstable type 1 diabetes mellitus",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "Xaage",
            "description": "Type 1 diabetes mellitus in remission",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "Xaagf",
            "description": "Type 2 diabetes mellitus in remission",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "XaELP",
            "description": "Type 1 diabetes mellitus without complication",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "XaELQ",
            "description": "Type 2 diabetes mellitus without complication",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "XaEnn",
            "description": "Type 1 diabetes mellitus with mononeuropathy",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "XaEno",
            "description": "Type 1 diabetes mellitus with polyneuropathy",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "XaEnp",
            "description": "Type 2 diabetes mellitus with mononeuropathy",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "XaEnq",
            "description": "Type 2 diabetes mellitus with polyneuropathy",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "XaF04",
            "description": "Type 1 diabetes mellitus with nephropathy",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "XaF05",
            "description": "Type 2 diabetes mellitus with nephropathy",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "XafjT",
            "description": "ED-DMT1 - Eating disorder-diabetes mellitus type 1",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "XaFm8",
            "description": "Type 1 diabetes mellitus with diabetic cataract",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "XaFmA",
            "description": "Type 2 diabetes mellitus with diabetic cataract",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "XaFmK",
            "description": "Type 1 diabetes mellitus with peripheral angiopathy",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "XaFmL",
            "description": "Type 1 diabetes mellitus with arthropathy",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "XaFmM",
            "description": "Type 1 diabetes mellitus with neuropathic arthropathy",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "XaFn7",
            "description": "Type 2 diabetes mellitus with peripheral angiopathy",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "XaFn8",
            "description": "Type 2 diabetes mellitus with arthropathy",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "XaFn9",
            "description": "Type 2 diabetes mellitus with neuropathic arthropathy",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "XaFWG",
            "description": "Type 1 diabetes mellitus with hypoglycaemic coma",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "XaFWI",
            "description": "Type 2 diabetes mellitus with hypoglycaemic coma",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "XaIfG",
            "description": "Type 2 diabetes on insulin",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "XaIfI",
            "description": "Type 2 diabetes on diet only",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "XaIrf",
            "description": "Hyperosmolar non-ketotic state in type 2 diabetes mellitus",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "XaIzM",
            "description": "Type 1 diabetes mellitus with persistent proteinuria",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "XaIzN",
            "description": "Type 1 diabetes mellitus with persistent microalbuminuria",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "XaIzQ",
            "description": "Type 2 diabetes mellitus with persistent proteinuria",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "XaIzR",
            "description": "Type 2 diabetes mellitus with persistent microalbuminuria",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "XaJQp",
            "description": "Type 2 diabetes mellitus with exudative maculopathy",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "XaJSr",
            "description": "Type 1 diabetes mellitus with exudative maculopathy",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "XaKyW",
            "description": "Type 1 diabetes mellitus with gastroparesis",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "XaKyX",
            "description": "Type 2 diabetes mellitus with gastroparesis",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "XaMhJ",
            "description": "Diabetes type 1 review",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "XaMhK",
            "description": "Diabetes type 2 review",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "XaX3p",
            "description": "Type 1 diabetic dietary review",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "XaX3q",
            "description": "Type 2 diabetic dietary review",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "XaX49",
            "description": "Referral to type 1 diabetes structured education programme",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "XaXZR",
            "description": "H/O: diabetes mellitus type 2",
            "attributes": {
              "Category": "2"
            }
          },
          {
            "code": "XaXZv",
            "description": "H/O: diabetes mellitus type 1",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "XM19i",
            "description": "[EDTA] Diabetes Type I (insulin dependent) associated with renal failure",
            "attributes": {
              "Category": "1"
            }
          },
          {
            "code": "XM19j",
            "description": "[EDTA] Diabetes Type II (non-insulin-dependent) associated with renal failure",
            "attributes": {
              "Category": "2"
            }
          }
        ]
      }
    ],
    "coding_system_release": "",
    "open_codelist_version_id": "005ea549",
    "open_codelist_version_tag": "2020-07-06",
    "status": 1,
    "doi": "https://doi.org/10.48533/vnh4-9258",
    "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": 8424,
        "version_name": "diabetes-exeter-group",
        "version_date": "2026-01-26T23:15:19.809871Z",
        "is_published": true,
        "is_latest": true
      }
    ]
  }
]