[
  {
    "phenotype_id": "PH2476",
    "phenotype_version_id": 5982,
    "name": "Codes for diabetes type 2",
    "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 `DMTYPE2_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:48.324772Z",
    "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:51.777303Z",
    "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/dmtype2_cod",
    "source_reference": "https://www.opencodelists.org/codelist/nhsd-primary-care-domain-refsets/dmtype2_cod/20250912",
    "concept_information": [
      {
        "concept_id": 6159,
        "concept_version_id": 13644,
        "concept_name": "nhsd-primary-care-domain-refsets/dmtype2_cod/20250912",
        "coding_system": {
          "id": 9,
          "name": "SNOMED  CT codes",
          "description": "SNOMED CT codes"
        },
        "phenotype_id": "PH2476",
        "phenotype_version_id": 5982,
        "phenotype_name": "Codes for diabetes type 2",
        "code_attribute_header": [],
        "codes": [
          {
            "code": "1196922005",
            "description": "Neovascular glaucoma due to diabetes mellitus type 2",
            "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": "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": "395204000",
            "description": "Hyperosmolar non-ketotic state due to type 2 diabetes mellitus",
            "attributes": null
          },
          {
            "code": "420715001",
            "description": "Persistent microalbuminuria 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": "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": "703136005",
            "description": "Diabetes mellitus in remission",
            "attributes": null
          },
          {
            "code": "703138006",
            "description": "Type II diabetes mellitus in remission",
            "attributes": null
          },
          {
            "code": "789569005",
            "description": "Neuropathic ulcer of heel due to type 2 diabetes mellitus",
            "attributes": null
          }
        ]
      }
    ],
    "coding_system_release": "",
    "open_codelist_version_id": "66e073d3",
    "open_codelist_version_tag": "20250912",
    "status": 1,
    "doi": "https://doi.org/10.48533/35tx-sw68",
    "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": 5982,
        "version_name": "Codes for diabetes type 2",
        "version_date": "2026-01-26T22:17:51.789705Z",
        "is_published": true,
        "is_latest": true
      },
      {
        "version_id": 5981,
        "version_name": "Codes for diabetes type 2",
        "version_date": "2026-01-26T22:17:50.679174Z",
        "is_published": true,
        "is_latest": false
      },
      {
        "version_id": 5980,
        "version_name": "Codes for diabetes type 2",
        "version_date": "2026-01-26T22:17:49.538846Z",
        "is_published": true,
        "is_latest": false
      },
      {
        "version_id": 5979,
        "version_name": "Codes for diabetes type 2",
        "version_date": "2026-01-26T22:17:48.337361Z",
        "is_published": true,
        "is_latest": false
      }
    ]
  }
]