[
  {
    "phenotype_id": "PH518",
    "phenotype_version_id": 1036,
    "name": "Diabetes",
    "definition": "The database:\n\nThe CPRD is a large computerised database of anonymised primary care medical records. It contains complete patient information for participating practices, with the healthcare events (diagnoses, treatments, referrals, tests and prescriptions) recorded using coding systems (Read coding for diagnoses). Practice characteristics are described in detail elsewhere. The database is broadly representative of the UK population, although larger practices are over-represented. Practices need to meet prespecified data entry quality criteria to be defined as ‘up to research standard’, and for each study year, our main sample included all CPRD practices that were classed as such for the whole year. We also generated two data sets to test the sensitivity of our findings. First, we included all practices contributing data across the entire study period. Second, we included a subsample of 50 practices, representative of UK practices in terms of area deprivation, and practice list size.\n\n\nDefining people with SMI and controls:\n\nInformation was extracted for the period 1 April 2000 to 31 March 2012 and aggregated into 12 yearly ‘bins’, to correspond with financial years 2000/2001–2011/2012. We used Read codes to identify the presence of SMI. First, we identified relevant keywords (or key-stubs) and codes, for example ‘paranoi’ and ‘E100.00’ (simple schizophrenia). Next, the CPRD was searched for codes that matched the list in either the code or the description field. Finally, the matched code list was reviewed by clinical experts and a final conservative list of codes was agreed. A similar process was used to define comorbidities (hypertension, asthma, hypothyroidism, osteoarthritis, chronic kidney disease, coronary heart disease, epilepsy, chronic obstructive pulmonary disease, cancer, stroke, heart failure, rheumatoid arthritis, dementia and psoriasis). All code lists we used are available from http://www.clinicalcodes.org. All conditions, bar asthma, were treated as unresolvable (ie, permanent). Within each year, all patients registered with a CPRD practice for the whole year and aged 18 or over were eligible for inclusion. The final SMI Read code list was used to identify cases of SMI, which were then grouped into three broad subcategories, in line with the diagnoses used when compiling primary care QOF SMI registers: schizophrenia; affective psychoses (bipolar disorder or other unspecified affective psychosis); other types of psychosis. In the event that an individual received more than one SMI diagnosis over the study period, we used the last available diagnosis to retrospectively ‘correct’ the original diagnosis (ie, we assumed that the latest diagnosis was the correct one). Within each year, each SMI case was then matched on age, sex and practice to five randomly selected patients not associated with SMI up until that time point. More details on the extraction of the cohort have been provided elsewhere,21 and a flow chart of the data extraction process is available in the online appendix figure A2.\n\n\nDefining consultation type:\n\nWe defined a ‘consultation’ as involving direct contact between a patient and a healthcare professional within the primary care setting. We divided consultations into two main categories: face-to-face (our primary outcome), and by telephone (see online appendix table A1). We also constructed a third ‘other’ grouping of all other activities that are captured by the ‘consultation type’ codes within the CPRD. This includes mail/email contact, third party consultations (including referrals), secondary care episodes, other administrative tasks and consultations of unknown content. This group is highly heterogeneous and includes many activities that cannot be classed as consultations. However, we decided to use this grouping as an aggregate secondary outcome since it can potentially provide insight into the overall workload associated with patient care in the primary care context. We decided against breaking down the ‘other’ group in more subcategories as we are very doubtful regarding the reliability and across practice consistency of the coding within these ‘other’ categories. In instances where a patient had two or more consultations within a day, we conservatively assumed a single consultation took place, to reduce the likelihood of including duplicate records.\n\n\n\n\n\n\n\n\n",
    "implementation": "",
    "publications": [
      {
        "doi": null,
        "details": "Evangelos Kontopantelis, Ivan Olier, Claire Panner, David Reeves, Darren M Ashcroft, Linda Gask, Tim Doran, Siobhan Reilly, Primary care consultation rates among people with and without severe mental illness a UK cohort study using the Clinical Practice Research Datalink. BMJ Open, 5 (e008650), 2015."
      }
    ],
    "validation": "",
    "citation_requirements": "",
    "created": "2021-10-06T16:23:25.517515Z",
    "author": "Evangelos Kontopantelis, Ivan Olier, Claire Planner, David Reeves, Darren M Ashcroft, Linda Gask, Tim Doran, Sioban Reilly",
    "collections": [
      {
        "name": "ClinicalCodes Repository",
        "value": 25
      },
      {
        "name": "Phenotype Library",
        "value": 18
      }
    ],
    "tags": null,
    "organisation": null,
    "world_access": 1,
    "updated": "2021-10-06T16:23:25.517543Z",
    "sex": [
      {
        "name": "Both",
        "value": "3"
      }
    ],
    "type": [
      {
        "name": "Disease or syndrome",
        "value": "2"
      }
    ],
    "ontology": null,
    "phenoflowid": "",
    "data_sources": [
      {
        "name": "CPRD GOLD",
        "value": 5,
        "uid": "a29feafa-7bdd-44e9-b977-c9d26425e67f",
        "url": "https://healthdatagateway.org/en/dataset/694",
        "datasource_id": 694
      }
    ],
    "coding_system": [
      {
        "name": "Read codes v2",
        "value": 5
      },
      {
        "name": "OXMIS codes",
        "value": 15
      }
    ],
    "event_date_range": "01/04/2000 - 31/03/2012",
    "concept_information": [
      {
        "concept_id": 1895,
        "concept_version_id": 4928,
        "concept_name": "Diabetes - Primary Care",
        "coding_system": {
          "id": 5,
          "name": "Read codes v2",
          "description": "Read codes v2"
        },
        "phenotype_id": "PH518",
        "phenotype_version_id": 1036,
        "phenotype_name": "Diabetes",
        "code_attribute_header": [
          "Entity type",
          "Coding System (OXMIS Read)",
          "Category"
        ],
        "codes": [
          {
            "code": "66A3.00",
            "description": "Diabetic on diet only",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "66A4.00",
            "description": "Diabetic on oral treatment",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "66A5.00",
            "description": "Diabetic on insulin",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "66AI.00",
            "description": "Diabetic - good control",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "66AJ.00",
            "description": "Diabetic - poor control",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "66AJ100",
            "description": "Brittle diabetes",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "66AJ.11",
            "description": "Unstable diabetes",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "66AJz00",
            "description": "Diabetic - poor control NOS",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "66AK.00",
            "description": "Diabetic - cooperative patient",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "66AL.00",
            "description": "Diabetic-uncooperative patient",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "66AV.00",
            "description": "Diabetic on insulin and oral treatment",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10..00",
            "description": "Diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C100.00",
            "description": "Diabetes mellitus with no mention of complication",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C100000",
            "description": "Diabetes mellitus, juvenile type, no mention of complication",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C100011",
            "description": "Insulin dependent diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C100100",
            "description": "Diabetes mellitus, adult onset, no mention of complication",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C100111",
            "description": "Maturity onset diabetes",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C100112",
            "description": "Non-insulin dependent diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C100z00",
            "description": "Diabetes mellitus NOS with no mention of complication",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C101.00",
            "description": "Diabetes mellitus with ketoacidosis",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C101000",
            "description": "Diabetes mellitus, juvenile type, with ketoacidosis",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C101100",
            "description": "Diabetes mellitus, adult onset, with ketoacidosis",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C101y00",
            "description": "Other specified diabetes mellitus with ketoacidosis",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C101z00",
            "description": "Diabetes mellitus NOS with ketoacidosis",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C102.00",
            "description": "Diabetes mellitus with hyperosmolar coma",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C102000",
            "description": "Diabetes mellitus, juvenile type, with hyperosmolar coma",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C102100",
            "description": "Diabetes mellitus, adult onset, with hyperosmolar coma",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C102z00",
            "description": "Diabetes mellitus NOS with hyperosmolar coma",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C103.00",
            "description": "Diabetes mellitus with ketoacidotic coma",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C103000",
            "description": "Diabetes mellitus, juvenile type, with ketoacidotic coma",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C103100",
            "description": "Diabetes mellitus, adult onset, with ketoacidotic coma",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C103y00",
            "description": "Other specified diabetes mellitus with coma",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C103z00",
            "description": "Diabetes mellitus NOS with ketoacidotic coma",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C104.00",
            "description": "Diabetes mellitus with renal manifestation",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C104000",
            "description": "Diabetes mellitus, juvenile type, with renal manifestation",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C104100",
            "description": "Diabetes mellitus, adult onset, with renal manifestation",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C104y00",
            "description": "Other specified diabetes mellitus with renal complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C104z00",
            "description": "Diabetes mellitus with nephropathy NOS",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C105.00",
            "description": "Diabetes mellitus with ophthalmic manifestation",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C105000",
            "description": "Diabetes mellitus, juvenile type, + ophthalmic manifestation",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C105100",
            "description": "Diabetes mellitus, adult onset, + ophthalmic manifestation",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C105y00",
            "description": "Other specified diabetes mellitus with ophthalmic complicatn",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C105z00",
            "description": "Diabetes mellitus NOS with ophthalmic manifestation",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C106.00",
            "description": "Diabetes mellitus with neurological manifestation",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C106000",
            "description": "Diabetes mellitus, juvenile, + neurological manifestation",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C106100",
            "description": "Diabetes mellitus, adult onset, + neurological manifestation",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C106.12",
            "description": "Diabetes mellitus with neuropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C106.13",
            "description": "Diabetes mellitus with polyneuropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C106y00",
            "description": "Other specified diabetes mellitus with neurological comps",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C106z00",
            "description": "Diabetes mellitus NOS with neurological manifestation",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C107.00",
            "description": "Diabetes mellitus with peripheral circulatory disorder",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C107000",
            "description": "Diabetes mellitus, juvenile +peripheral circulatory disorder",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C107100",
            "description": "Diabetes mellitus, adult, + peripheral circulatory disorder",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C107.11",
            "description": "Diabetes mellitus with gangrene",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C107.12",
            "description": "Diabetes with gangrene",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C107200",
            "description": "Diabetes mellitus, adult with gangrene",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C107300",
            "description": "IDDM with peripheral circulatory disorder",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C107400",
            "description": "NIDDM with peripheral circulatory disorder",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C107z00",
            "description": "Diabetes mellitus NOS with peripheral circulatory disorder",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108.00",
            "description": "Insulin dependent diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108000",
            "description": "Insulin-dependent diabetes mellitus with renal complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108011",
            "description": "Type I diabetes mellitus with renal complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108012",
            "description": "Type 1 diabetes mellitus with renal complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108100",
            "description": "Insulin-dependent diabetes mellitus with ophthalmic comps",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108.11",
            "description": "IDDM-Insulin dependent diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108.12",
            "description": "Type 1 diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108.13",
            "description": "Type I diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108200",
            "description": "Insulin-dependent diabetes mellitus with neurological comps",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108211",
            "description": "Type I diabetes mellitus with neurological complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108212",
            "description": "Type 1 diabetes mellitus with neurological complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108300",
            "description": "Insulin dependent diabetes mellitus with multiple complicatn",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108400",
            "description": "Unstable insulin dependent diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108411",
            "description": "Unstable type I diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108500",
            "description": "Insulin dependent diabetes mellitus with ulcer",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108511",
            "description": "Type I diabetes mellitus with ulcer",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108600",
            "description": "Insulin dependent diabetes mellitus with gangrene",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108700",
            "description": "Insulin dependent diabetes mellitus with retinopathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108711",
            "description": "Type I diabetes mellitus with retinopathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108712",
            "description": "Type 1 diabetes mellitus with retinopathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108800",
            "description": "Insulin dependent diabetes mellitus - poor control",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108811",
            "description": "Type I diabetes mellitus - poor control",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108812",
            "description": "Type 1 diabetes mellitus - poor control",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108900",
            "description": "Insulin dependent diabetes maturity onset",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108911",
            "description": "Type I diabetes mellitus maturity onset",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108A00",
            "description": "Insulin-dependent diabetes without complication",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108B00",
            "description": "Insulin dependent diabetes mellitus with mononeuropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108B11",
            "description": "Type I diabetes mellitus with mononeuropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108C00",
            "description": "Insulin dependent diabetes mellitus with polyneuropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108D00",
            "description": "Insulin dependent diabetes mellitus with nephropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108D11",
            "description": "Type I diabetes mellitus with nephropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108E00",
            "description": "Insulin dependent diabetes mellitus with hypoglycaemic coma",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108E11",
            "description": "Type I diabetes mellitus with hypoglycaemic coma",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108E12",
            "description": "Type 1 diabetes mellitus with hypoglycaemic coma",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108F00",
            "description": "Insulin dependent diabetes mellitus with diabetic cataract",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108F11",
            "description": "Type I diabetes mellitus with diabetic cataract",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108G00",
            "description": "Insulin dependent diab mell with peripheral angiopathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108H00",
            "description": "Insulin dependent diabetes mellitus with arthropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108H11",
            "description": "Type I diabetes mellitus with arthropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108J00",
            "description": "Insulin dependent diab mell with neuropathic arthropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108J12",
            "description": "Type 1 diabetes mellitus with neuropathic arthropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108y00",
            "description": "Other specified diabetes mellitus with multiple comps",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C108z00",
            "description": "Unspecified diabetes mellitus with multiple complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109.00",
            "description": "Non-insulin dependent diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109000",
            "description": "Non-insulin-dependent diabetes mellitus with renal comps",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109011",
            "description": "Type II diabetes mellitus with renal complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109012",
            "description": "Type 2 diabetes mellitus with renal complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109100",
            "description": "Non-insulin-dependent diabetes mellitus with ophthalm comps",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109.11",
            "description": "NIDDM - Non-insulin dependent diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109111",
            "description": "Type II diabetes mellitus with ophthalmic complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109112",
            "description": "Type 2 diabetes mellitus with ophthalmic complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109.12",
            "description": "Type 2 diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109.13",
            "description": "Type II diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109200",
            "description": "Non-insulin-dependent diabetes mellitus with neuro comps",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109211",
            "description": "Type II diabetes mellitus with neurological complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109212",
            "description": "Type 2 diabetes mellitus with neurological complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109300",
            "description": "Non-insulin-dependent diabetes mellitus with multiple comps",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109400",
            "description": "Non-insulin dependent diabetes mellitus with ulcer",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109411",
            "description": "Type II diabetes mellitus with ulcer",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109412",
            "description": "Type 2 diabetes mellitus with ulcer",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109500",
            "description": "Non-insulin dependent diabetes mellitus with gangrene",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109511",
            "description": "Type II diabetes mellitus with gangrene",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109600",
            "description": "Non-insulin-dependent diabetes mellitus with retinopathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109611",
            "description": "Type II diabetes mellitus with retinopathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109612",
            "description": "Type 2 diabetes mellitus with retinopathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109700",
            "description": "Non-insulin dependent diabetes mellitus - poor control",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109711",
            "description": "Type II diabetes mellitus - poor control",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109712",
            "description": "Type 2 diabetes mellitus - poor control",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109900",
            "description": "Non-insulin-dependent diabetes mellitus without complication",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109A00",
            "description": "Non-insulin dependent diabetes mellitus with mononeuropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109A11",
            "description": "Type II diabetes mellitus with mononeuropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109B00",
            "description": "Non-insulin dependent diabetes mellitus with polyneuropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109B11",
            "description": "Type II diabetes mellitus with polyneuropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109C00",
            "description": "Non-insulin dependent diabetes mellitus with nephropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109C11",
            "description": "Type II diabetes mellitus with nephropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109C12",
            "description": "Type 2 diabetes mellitus with nephropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109D00",
            "description": "Non-insulin dependent diabetes mellitus with hypoglyca coma",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109D11",
            "description": "Type II diabetes mellitus with hypoglycaemic coma",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109D12",
            "description": "Type 2 diabetes mellitus with hypoglycaemic coma",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109E00",
            "description": "Non-insulin depend diabetes mellitus with diabetic cataract",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109E11",
            "description": "Type II diabetes mellitus with diabetic cataract",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109E12",
            "description": "Type 2 diabetes mellitus with diabetic cataract",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109F00",
            "description": "Non-insulin-dependent d m with peripheral angiopath",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109F11",
            "description": "Type II diabetes mellitus with peripheral angiopathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109F12",
            "description": "Type 2 diabetes mellitus with peripheral angiopathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109G00",
            "description": "Non-insulin dependent diabetes mellitus with arthropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109G11",
            "description": "Type II diabetes mellitus with arthropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109G12",
            "description": "Type 2 diabetes mellitus with arthropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109H00",
            "description": "Non-insulin dependent d m with neuropathic arthropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109H11",
            "description": "Type II diabetes mellitus with neuropathic arthropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109H12",
            "description": "Type 2 diabetes mellitus with neuropathic arthropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109J00",
            "description": "Insulin treated Type 2 diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109J11",
            "description": "Insulin treated non-insulin dependent diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109J12",
            "description": "Insulin treated Type II diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C109K00",
            "description": "Hyperosmolar non-ketotic state in type 2 diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10C.00",
            "description": "Diabetes mellitus autosomal dominant",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10C.11",
            "description": "Maturity onset diabetes in youth",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10D.00",
            "description": "Diabetes mellitus autosomal dominant type 2",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10D.11",
            "description": "Maturity onset diabetes in youth type 2",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10E.00",
            "description": "Type 1 diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10E000",
            "description": "Type 1 diabetes mellitus with renal complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10E100",
            "description": "Type 1 diabetes mellitus with ophthalmic complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10E.11",
            "description": "Type I diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10E.12",
            "description": "Insulin dependent diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10E200",
            "description": "Type 1 diabetes mellitus with neurological complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10E300",
            "description": "Type 1 diabetes mellitus with multiple complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10E312",
            "description": "Insulin dependent diabetes mellitus with multiple complicat",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10E400",
            "description": "Unstable type 1 diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10E411",
            "description": "Unstable type I diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10E412",
            "description": "Unstable insulin dependent diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10E500",
            "description": "Type 1 diabetes mellitus with ulcer",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10E600",
            "description": "Type 1 diabetes mellitus with gangrene",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10E700",
            "description": "Type 1 diabetes mellitus with retinopathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10E800",
            "description": "Type 1 diabetes mellitus - poor control",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10E812",
            "description": "Insulin dependent diabetes mellitus - poor control",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10E900",
            "description": "Type 1 diabetes mellitus maturity onset",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10EA00",
            "description": "Type 1 diabetes mellitus without complication",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10EA11",
            "description": "Type I diabetes mellitus without complication",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10EB00",
            "description": "Type 1 diabetes mellitus with mononeuropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10EC00",
            "description": "Type 1 diabetes mellitus with polyneuropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10ED00",
            "description": "Type 1 diabetes mellitus with nephropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10EE00",
            "description": "Type 1 diabetes mellitus with hypoglycaemic coma",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10EF00",
            "description": "Type 1 diabetes mellitus with diabetic cataract",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10EG00",
            "description": "Type 1 diabetes mellitus with peripheral angiopathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10EH00",
            "description": "Type 1 diabetes mellitus with arthropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10EJ00",
            "description": "Type 1 diabetes mellitus with neuropathic arthropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10EK00",
            "description": "Type 1 diabetes mellitus with persistent proteinuria",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10EL00",
            "description": "Type 1 diabetes mellitus with persistent microalbuminuria",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10EM00",
            "description": "Type 1 diabetes mellitus with ketoacidosis",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10EM11",
            "description": "Type I diabetes mellitus with ketoacidosis",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10EN00",
            "description": "Type 1 diabetes mellitus with ketoacidotic coma",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10EN11",
            "description": "Type I diabetes mellitus with ketoacidotic coma",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10EP00",
            "description": "Type 1 diabetes mellitus with exudative maculopathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10EQ00",
            "description": "Type 1 diabetes mellitus with gastroparesis",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10F.00",
            "description": "Type 2 diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10F000",
            "description": "Type 2 diabetes mellitus with renal complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10F011",
            "description": "Type II diabetes mellitus with renal complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10F100",
            "description": "Type 2 diabetes mellitus with ophthalmic complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10F.11",
            "description": "Type II diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10F200",
            "description": "Type 2 diabetes mellitus with neurological complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10F300",
            "description": "Type 2 diabetes mellitus with multiple complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10F311",
            "description": "Type II diabetes mellitus with multiple complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10F400",
            "description": "Type 2 diabetes mellitus with ulcer",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10F500",
            "description": "Type 2 diabetes mellitus with gangrene",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10F511",
            "description": "Type II diabetes mellitus with gangrene",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10F600",
            "description": "Type 2 diabetes mellitus with retinopathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10F611",
            "description": "Type II diabetes mellitus with retinopathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10F700",
            "description": "Type 2 diabetes mellitus - poor control",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10F711",
            "description": "Type II diabetes mellitus - poor control",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10F900",
            "description": "Type 2 diabetes mellitus without complication",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10F911",
            "description": "Type II diabetes mellitus without complication",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10FA00",
            "description": "Type 2 diabetes mellitus with mononeuropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10FB00",
            "description": "Type 2 diabetes mellitus with polyneuropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10FB11",
            "description": "Type II diabetes mellitus with polyneuropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10FC00",
            "description": "Type 2 diabetes mellitus with nephropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10FC11",
            "description": "Type II diabetes mellitus with nephropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10FD00",
            "description": "Type 2 diabetes mellitus with hypoglycaemic coma",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10FE00",
            "description": "Type 2 diabetes mellitus with diabetic cataract",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10FF00",
            "description": "Type 2 diabetes mellitus with peripheral angiopathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10FG00",
            "description": "Type 2 diabetes mellitus with arthropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10FH00",
            "description": "Type 2 diabetes mellitus with neuropathic arthropathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10FJ00",
            "description": "Insulin treated Type 2 diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10FJ11",
            "description": "Insulin treated Type II diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10FK00",
            "description": "Hyperosmolar non-ketotic state in type 2 diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10FL00",
            "description": "Type 2 diabetes mellitus with persistent proteinuria",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10FL11",
            "description": "Type II diabetes mellitus with persistent proteinuria",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10FM00",
            "description": "Type 2 diabetes mellitus with persistent microalbuminuria",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10FN00",
            "description": "Type 2 diabetes mellitus with ketoacidosis",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10FP00",
            "description": "Type 2 diabetes mellitus with ketoacidotic coma",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10FQ00",
            "description": "Type 2 diabetes mellitus with exudative maculopathy",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10FR00",
            "description": "Type 2 diabetes mellitus with gastroparesis",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10G.00",
            "description": "Secondary pancreatic diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10G000",
            "description": "Secondary pancreatic diabetes mellitus without complication",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10y.00",
            "description": "Diabetes mellitus with other specified manifestation",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10y100",
            "description": "Diabetes mellitus, adult, + other specified manifestation",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10yy00",
            "description": "Other specified diabetes mellitus with other spec comps",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10yz00",
            "description": "Diabetes mellitus NOS with other specified manifestation",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10z.00",
            "description": "Diabetes mellitus with unspecified complication",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10z000",
            "description": "Diabetes mellitus, juvenile type, + unspecified complication",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10z100",
            "description": "Diabetes mellitus, adult onset, + unspecified complication",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10zy00",
            "description": "Other specified diabetes mellitus with unspecified comps",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "C10zz00",
            "description": "Diabetes mellitus NOS with unspecified complication",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "Cyu2.00",
            "description": "[X]Diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "Cyu2000",
            "description": "[X]Other specified diabetes mellitus",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "Cyu2300",
            "description": "[X]Unspecified diabetes mellitus with renal complications",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "L180500",
            "description": "Pre-existing diabetes mellitus, insulin-dependent",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "L180600",
            "description": "Pre-existing diabetes mellitus, non-insulin-dependent",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          },
          {
            "code": "L180X00",
            "description": "Pre-existing diabetes mellitus, unspecified",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "Read",
              "Category": "diagnostic"
            }
          }
        ]
      },
      {
        "concept_id": 1896,
        "concept_version_id": 4930,
        "concept_name": "Diabetes - Primary Care",
        "coding_system": {
          "id": 15,
          "name": "OXMIS codes",
          "description": "OXMIS codes"
        },
        "phenotype_id": "PH518",
        "phenotype_version_id": 1036,
        "phenotype_name": "Diabetes",
        "code_attribute_header": [
          "Entity type",
          "Coding System (OXMIS Read)",
          "Category"
        ],
        "codes": [
          {
            "code": "250 A",
            "description": "SUGAR DIABETES",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "diagnostic"
            }
          },
          {
            "code": "250 AA",
            "description": "NIDDM (NON-INSULIN DEPENDENT DIABETES)",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "diagnostic"
            }
          },
          {
            "code": "250 AD",
            "description": "DIABETES MELLITUS INSULIN DEPENDANT",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "diagnostic"
            }
          },
          {
            "code": "250 AK",
            "description": "MATURITY ONSET DIABETES MELLITUS INSULIN",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "diagnostic"
            }
          },
          {
            "code": "250 AL",
            "description": "MATURITY ONSET DIABETES(MELLITUS) NON-IN",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "diagnostic"
            }
          },
          {
            "code": "250 AM",
            "description": "MATURITY ONSET DIABETES (MELLITUS)",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "diagnostic"
            }
          },
          {
            "code": "250 AN",
            "description": "DIABETES",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "diagnostic"
            }
          },
          {
            "code": "250 NT",
            "description": "UNSTABLE DIABETIC",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "diagnostic"
            }
          },
          {
            "code": "250 PG",
            "description": "DIABETES PREGNANCY",
            "attributes": {
              "Entity type": "res21: Diabetes",
              "Coding System (OXMIS Read)": "OXMIS",
              "Category": "diagnostic"
            }
          }
        ]
      }
    ],
    "status": 2,
    "doi": "https://doi.org/10.48533/y5zx-5w92",
    "is_deleted": null,
    "publish_status": 2,
    "owner": "ieuan.scanlon",
    "template": {
      "id": 1,
      "name": "Clinical-Coded Phenotype",
      "description": "Phenotype definitions that are based on lists of clinical codes, or algorithms using clinical codes.",
      "version_id": 1
    },
    "versions": [
      {
        "version_id": 1036,
        "version_name": "Diabetes",
        "version_date": "2021-10-06T16:23:25.540417Z",
        "is_published": true,
        "is_latest": true
      }
    ]
  }
]