[
  {
    "phenotype_id": "PH4161",
    "phenotype_version_id": 9379,
    "name": "Diabetes Type II",
    "definition": "UKB baseline self reported fields.\n",
    "implementation": "The earliest record across all sources is obtained.\n",
    "publications": [
      {
        "doi": "https://doi.org/10.1038/s41598-025-05838-9",
        "details": "Torralbo, Ana and Davitte, Jonathan M. and Croteau-Chonka, Damien C. and Ytsma, Cai R. and Tomlinson, Christopher and Fitzpatrick, Natalie and Chung, Sheng-Chia and Fatemifar, Ghazaleh and Cortes, Adrian S. and Richardson, Tom G. and Barclay, Matthew and Carrasco Zanini Sanchez, Julia and Finan, Chris and Hemingway, Harry and Hingorani, Aroon D. and Kuan Po Ai, Valerie and Langenberg, Claudia and Lyratzopoulos, Georgios and Lumbers, Tom and Pietzner, Maik and Shah, Anoop Dinesh and Thygesen, Johan Hilge and Zelenka, Natalie and Whittaker, John C. and Ehm, Margaret G. and Denaxas, Spiros, A Computational Framework for Defining and Validating Reproducible Phenotyping Algorithms of 313 Diseases in the UK Biobank.",
        "primary": true
      }
    ],
    "validation": "Phenotypes underwent a multi\\-layered validation approach that included a) evaluating data source concordance, b) age\\-sex incidence and baseline prevalence patterns, c) an external comparison to a representative and unselected UK EHR dataset, d) modifiable risk factor associations, and e) genetic correlations with external genome\\-wide association studies (GWAS). Results showed consistent disease distributions by age and sex, high ranked correlation with general population prevalence estimates, confirmed risk factor associations, and significant genetic correlations with external GWAS.\n",
    "citation_requirements": null,
    "created": "2026-06-08T20:09:01.527370Z",
    "author": "Torralbo, A; Davitte, J M; Croteau-Chonka, D C; Ytsma, C; Tomlinson, C; Fitzpatrick, N K; Chung, S C; Fatemifar, G; Cortes, A S; Richardson, T G; Barclay, M; Carrasco Zanini, J; Finan, C; Hemingway, H; Hingorani, A; Kuan, V; Langenberg, C; Lyratzopoulos, G; Lumbers, R T; Pietzner, M; Shah, A D; Thygesen, J H; Zelenka, N; Whittaker, J C; Ehm, M G; Denaxas, S",
    "collections": [
      {
        "name": "Phenotype Library",
        "value": 18
      },
      {
        "name": "UK Biobank",
        "value": 32
      }
    ],
    "tags": null,
    "organisation": null,
    "world_access": 1,
    "updated": "2026-06-08T20:09:01.521799Z",
    "sex": [
      {
        "name": "Both",
        "value": "3"
      }
    ],
    "type": [
      {
        "name": "Disease or syndrome",
        "value": "2"
      }
    ],
    "trials": null,
    "ontology": null,
    "phenoflowid": null,
    "data_sources": [
      {
        "name": "UK Biobank",
        "value": 13,
        "uid": "6a9f93ad-2434-41d9-93bf-6e9d2eee04e5",
        "url": "https://healthdatagateway.org/en/dataset/700",
        "datasource_id": 700
      },
      {
        "name": "Patient Episode Dataset for Wales (PEDW)",
        "value": 40,
        "uid": "4c33a5d2-164c-41d7-9797-dc2b008cc852",
        "url": "https://healthdatagateway.org/en/dataset/318",
        "datasource_id": 318
      },
      {
        "name": "Scottish Cancer Registry (SMR06)",
        "value": 417,
        "uid": "ad36dc03-1856-44de-99b0-1af6f312d86b",
        "url": "https://healthdatagateway.org/en/dataset/79",
        "datasource_id": 79
      },
      {
        "name": "Cancer Registration Data",
        "value": 788,
        "uid": "6904a2ff-ab44-4dd6-b9ec-25d3cad29e43",
        "url": "https://healthdatagateway.org/en/dataset/880",
        "datasource_id": 880
      }
    ],
    "endorsements": null,
    "project_name": null,
    "coding_system": [
      {
        "name": "UKBioBank codes",
        "value": 12
      },
      {
        "name": "ICD10 codes",
        "value": 4
      },
      {
        "name": "Read codes v3",
        "value": 6
      }
    ],
    "corresp_author": "Ana Torralbo",
    "event_date_range": null,
    "concept_information": [
      {
        "concept_id": 10005,
        "concept_version_id": 17490,
        "concept_name": "Non-cancer illness code, self-reported",
        "coding_system": {
          "id": 12,
          "name": "UKBioBank codes",
          "description": "UKBioBank codes"
        },
        "phenotype_id": "PH4161",
        "phenotype_version_id": 9379,
        "phenotype_name": "Diabetes Type II",
        "code_attribute_header": [
          "type"
        ],
        "codes": [
          {
            "code": "1223",
            "description": "type 2 diabetes",
            "attributes": {
              "type": "any"
            }
          }
        ]
      },
      {
        "concept_id": 10006,
        "concept_version_id": 17491,
        "concept_name": "Diagnoses - main ICD10",
        "coding_system": {
          "id": 4,
          "name": "ICD10 codes",
          "description": "ICD10 Codes"
        },
        "phenotype_id": "PH4161",
        "phenotype_version_id": 9379,
        "phenotype_name": "Diabetes Type II",
        "code_attribute_header": [
          "type"
        ],
        "codes": [
          {
            "code": "E11",
            "description": "Non-insulin-dependent diabetes mellitus",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "O24.0",
            "description": "Diabetes mellitus in pregnancy: Pre-existing diabetes mellitus, insulin-dependent",
            "attributes": {
              "type": "prevalent"
            }
          }
        ]
      },
      {
        "concept_id": 10007,
        "concept_version_id": 17492,
        "concept_name": "Diagnoses - secondary ICD10",
        "coding_system": {
          "id": 4,
          "name": "ICD10 codes",
          "description": "ICD10 Codes"
        },
        "phenotype_id": "PH4161",
        "phenotype_version_id": 9379,
        "phenotype_name": "Diabetes Type II",
        "code_attribute_header": [
          "type"
        ],
        "codes": [
          {
            "code": "E11",
            "description": "Non-insulin-dependent diabetes mellitus",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "O24.0",
            "description": "Diabetes mellitus in pregnancy: Pre-existing diabetes mellitus, insulin-dependent",
            "attributes": {
              "type": "prevalent"
            }
          }
        ]
      },
      {
        "concept_id": 10008,
        "concept_version_id": 17493,
        "concept_name": "Underlying (primary) cause of death: ICD10",
        "coding_system": {
          "id": 4,
          "name": "ICD10 codes",
          "description": "ICD10 Codes"
        },
        "phenotype_id": "PH4161",
        "phenotype_version_id": 9379,
        "phenotype_name": "Diabetes Type II",
        "code_attribute_header": [
          "type"
        ],
        "codes": [
          {
            "code": "E11",
            "description": "Non-insulin-dependent diabetes mellitus",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "O24.0",
            "description": "Diabetes mellitus in pregnancy: Pre-existing diabetes mellitus, insulin-dependent",
            "attributes": {
              "type": "prevalent"
            }
          }
        ]
      },
      {
        "concept_id": 10009,
        "concept_version_id": 17494,
        "concept_name": "Contributory (secondary) causes of death: ICD10",
        "coding_system": {
          "id": 4,
          "name": "ICD10 codes",
          "description": "ICD10 Codes"
        },
        "phenotype_id": "PH4161",
        "phenotype_version_id": 9379,
        "phenotype_name": "Diabetes Type II",
        "code_attribute_header": [
          "type"
        ],
        "codes": [
          {
            "code": "E11",
            "description": "Non-insulin-dependent diabetes mellitus",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "O24.0",
            "description": "Diabetes mellitus in pregnancy: Pre-existing diabetes mellitus, insulin-dependent",
            "attributes": {
              "type": "prevalent"
            }
          }
        ]
      },
      {
        "concept_id": 10010,
        "concept_version_id": 17495,
        "concept_name": "GP clinical event records",
        "coding_system": {
          "id": 6,
          "name": "Read codes v3",
          "description": "Read codes v3"
        },
        "phenotype_id": "PH4161",
        "phenotype_version_id": 9379,
        "phenotype_name": "Diabetes Type II",
        "code_attribute_header": [
          "type"
        ],
        "codes": [
          {
            "code": "C1011",
            "description": "Type 2 diabetes mellitus with ketoacidosis",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109011",
            "description": "Type II diabetes mellitus with renal complications",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109012",
            "description": "Type 2 diabetes mellitus with renal complications",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109111",
            "description": "Type II diabetes mellitus with ophthalmic complications",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109112",
            "description": "Type 2 diabetes mellitus with ophthalmic complications",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109.12",
            "description": "Type 2 diabetes mellitus",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109.13",
            "description": "Type II diabetes mellitus",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109211",
            "description": "Type II diabetes mellitus with neurological complications",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109212",
            "description": "Type 2 diabetes mellitus with neurological complications",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109411",
            "description": "Type II diabetes mellitus with ulcer",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109412",
            "description": "Type 2 diabetes mellitus with ulcer",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109511",
            "description": "Type II diabetes mellitus with gangrene",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109512",
            "description": "Type 2 diabetes mellitus with gangrene",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109611",
            "description": "Type II diabetes mellitus with retinopathy",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109612",
            "description": "Type 2 diabetes mellitus with retinopathy",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109711",
            "description": "Type II diabetes mellitus - poor control",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109712",
            "description": "Type 2 diabetes mellitus - poor control",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109A11",
            "description": "Type II diabetes mellitus with mononeuropathy",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109B11",
            "description": "Type II diabetes mellitus with polyneuropathy",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109C11",
            "description": "Type II diabetes mellitus with nephropathy",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109C12",
            "description": "Type 2 diabetes mellitus with nephropathy",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109D11",
            "description": "Type II diabetes mellitus with hypoglycaemic coma",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109D12",
            "description": "Type 2 diabetes mellitus with hypoglycaemic coma",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109E11",
            "description": "Type II diabetes mellitus with diabetic cataract",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109E12",
            "description": "Type 2 diabetes mellitus with diabetic cataract",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109F11",
            "description": "Type II diabetes mellitus with peripheral angiopathy",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109F12",
            "description": "Type 2 diabetes mellitus with peripheral angiopathy",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109G11",
            "description": "Type II diabetes mellitus with arthropathy",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109G12",
            "description": "Type 2 diabetes mellitus with arthropathy",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109H11",
            "description": "Type II diabetes mellitus with neuropathic arthropathy",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109H12",
            "description": "Type 2 diabetes mellitus with neuropathic arthropathy",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109J00",
            "description": "Insulin treated Type 2 diabetes mellitus",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109J12",
            "description": "Insulin treated Type II diabetes mellitus",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C109K00",
            "description": "Hyperosmolar non-ketotic state in type 2 diabetes mellitus",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10F.00",
            "description": "Type 2 diabetes mellitus",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10F000",
            "description": "Type 2 diabetes mellitus with renal complications",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10F011",
            "description": "Type II diabetes mellitus with renal complications",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10F100",
            "description": "Type 2 diabetes mellitus with ophthalmic complications",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10F.11",
            "description": "Type II diabetes mellitus",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10F200",
            "description": "Type 2 diabetes mellitus with neurological complications",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10F211",
            "description": "Type II diabetes mellitus with neurological complications",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10F300",
            "description": "Type 2 diabetes mellitus with multiple complications",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10F311",
            "description": "Type II diabetes mellitus with multiple complications",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10F400",
            "description": "Type 2 diabetes mellitus with ulcer",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10F411",
            "description": "Type II diabetes mellitus with ulcer",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10F500",
            "description": "Type 2 diabetes mellitus with gangrene",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10F600",
            "description": "Type 2 diabetes mellitus with retinopathy",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10F611",
            "description": "Type II diabetes mellitus with retinopathy",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10F700",
            "description": "Type 2 diabetes mellitus - poor control",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10F711",
            "description": "Type II diabetes mellitus - poor control",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10F900",
            "description": "Type 2 diabetes mellitus without complication",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10F911",
            "description": "Type II diabetes mellitus without complication",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10FA00",
            "description": "Type 2 diabetes mellitus with mononeuropathy",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10FA11",
            "description": "Type II diabetes mellitus with mononeuropathy",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10FB00",
            "description": "Type 2 diabetes mellitus with polyneuropathy",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10FB11",
            "description": "Type II diabetes mellitus with polyneuropathy",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10FC00",
            "description": "Type 2 diabetes mellitus with nephropathy",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10FD00",
            "description": "Type 2 diabetes mellitus with hypoglycaemic coma",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10FD11",
            "description": "Type II diabetes mellitus with hypoglycaemic coma",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10FE00",
            "description": "Type 2 diabetes mellitus with diabetic cataract",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10FE11",
            "description": "Type II diabetes mellitus with diabetic cataract",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10FF00",
            "description": "Type 2 diabetes mellitus with peripheral angiopathy",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10FG00",
            "description": "Type 2 diabetes mellitus with arthropathy",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10FH00",
            "description": "Type 2 diabetes mellitus with neuropathic arthropathy",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10FJ00",
            "description": "Insulin treated Type 2 diabetes mellitus",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10FJ11",
            "description": "Insulin treated Type II diabetes mellitus",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10FK00",
            "description": "Hyperosmolar non-ketotic state in type 2 diabetes mellitus",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10FL00",
            "description": "Type 2 diabetes mellitus with persistent proteinuria",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10FL11",
            "description": "Type II diabetes mellitus with persistent proteinuria",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10FM00",
            "description": "Type 2 diabetes mellitus with persistent microalbuminuria",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10FM11",
            "description": "Type II diabetes mellitus with persistent microalbuminuria",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10FN00",
            "description": "Type 2 diabetes mellitus with ketoacidosis",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10FP00",
            "description": "Type 2 diabetes mellitus with ketoacidotic coma",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10FQ00",
            "description": "Type 2 diabetes mellitus with exudative maculopathy",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "C10FR00",
            "description": "Type 2 diabetes mellitus with gastroparesis",
            "attributes": {
              "type": "any"
            }
          },
          {
            "code": "X40J6",
            "description": "Insulin treated Type 2 diabetes mellitus",
            "attributes": {
              "type": "any"
            }
          }
        ]
      }
    ],
    "status": 1,
    "doi": "https://doi.org/10.48533/sefj-1y32",
    "is_deleted": false,
    "publish_status": 2,
    "owner": "ieuan.scanlon",
    "template": {
      "id": 2,
      "name": "BHF Data Science Centre Phenotype",
      "description": "BHF Data Science Centre Phenotype definitions that describe a list of clinical codes, algorithms using clinical codes, or set of clinical trials. Visit the BHF Data Science Centre website to learn more: https://bhfdatasciencecentre.org",
      "version_id": 1
    },
    "versions": [
      {
        "version_id": 9379,
        "version_name": "Diabetes Type II",
        "version_date": "2026-06-08T20:09:01.539559Z",
        "is_published": true,
        "is_latest": true
      }
    ]
  }
]