[
  {
    "phenotype_id": "PH3416",
    "phenotype_version_id": 8443,
    "name": "Ethnicity",
    "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\nA list of ethnicity codes in use in UK general practice including aggregate grouping at two levels.\n\n\n5\\+1 category labels are:\n\n\n- 1 \\- White\n- 2 \\- Mixed\n- 3 \\- South Asian\n- 4 \\- Black\n- 5 \\- Other\n- 6 \\- Not stated\n\n\n16\\+1 category labels are:\n\n\n- 1 \\- White British\n- 2 \\- White Irish\n- 3 \\- Other White\n- 4 \\- White and Caribbean\n- 5 \\- White and African\n- 6 \\- White and Asian\n- 7 \\- Other mixed\n- 8 \\- Indian\n- 9 \\- Pakistani\n- 10 \\- Bangladeshi\n- 11 \\- Other South Asian\n- 12 \\- Caribbean\n- 13 \\- African\n- 14 \\- Other Black\n- 15 \\- Chinese\n- 16 \\- All other ethnic groups\n- 17 \\- Not stated\n\n\n© University of Oxford for the Bennett Institute for Applied Data Science 2025\\. This work may be copied freely for non\\-commercial research and study.\n\n",
    "implementation": null,
    "publications": null,
    "validation": null,
    "citation_requirements": null,
    "created": "2026-01-26T23:16:05.011339Z",
    "author": "OpenSAFELY",
    "collections": [
      {
        "name": "OpenCodelist",
        "value": 31
      },
      {
        "name": "Phenotype Library",
        "value": 18
      }
    ],
    "tags": null,
    "organisation": {
      "id": 1,
      "slug": "opensafely",
      "name": "OpenSAFELY"
    },
    "world_access": 1,
    "updated": "2026-01-26T23:16:04.999879Z",
    "references": [
      {
        "url": "https://github.com/ebmdatalab/opensafely-codelist-development/issues/7",
        "title": "GitHub discussion"
      },
      {
        "url": "https://pubmed.ncbi.nlm.nih.gov/24323951/",
        "title": "Paper: Completeness and Usability of Ethnicity Data in UK-based Primary Care and Hospital Databases"
      }
    ],
    "signed_off": [],
    "methodology": "An initial long list of ethnicity codes was provided from a paper on the Completeness and Usability of Ethnicity Data in UK\\-based Primary Care and Hospital Databases. This list was further iterated by aggregating ethnicity to parent ethnicity at two levels based on a list provided by Rohini Mathur, the first author on the above paper. This task was completed independently by Ieva Lipsa, Alex J Walker and Brian MacKenna. Any divergence was resolved through discussion between AJW and BMK.\n\n\nWe are aware that some of the individual codes contained in this codelist may be offensive and upsetting. Although these terms are outdated and no longer in routine use, it is necessary to include them in codelists due to the historic nature of the data that is being analysed.\n\n",
    "coding_system": [
      {
        "name": "Read codes v3",
        "value": 6
      }
    ],
    "open_codelist_id": "opensafely/ethnicity",
    "source_reference": "https://www.opencodelists.org/codelist/opensafely/ethnicity/2020-04-27",
    "concept_information": [
      {
        "concept_id": 8620,
        "concept_version_id": 16105,
        "concept_name": "opensafely/ethnicity/2020-04-27",
        "coding_system": {
          "id": 6,
          "name": "Read codes v3",
          "description": "Read codes v3"
        },
        "phenotype_id": "PH3416",
        "phenotype_version_id": 8443,
        "phenotype_name": "Ethnicity",
        "code_attribute_header": [
          "Grouping_16",
          "Grouping_6"
        ],
        "codes": [
          {
            "code": "134B.",
            "description": "Race: Caucasian",
            "attributes": {
              "Grouping_16": "1",
              "Grouping_6": "1"
            }
          },
          {
            "code": "134C.",
            "description": "Race: Arab",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "134D.",
            "description": "Race: Chinese",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "134E.",
            "description": "Race: Japanese",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "134F.",
            "description": "Race: Korean",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "134G.",
            "description": "Race: Oriental",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "134H.",
            "description": "Race: Afro-Caribbean",
            "attributes": {
              "Grouping_16": "12",
              "Grouping_6": "4"
            }
          },
          {
            "code": "134I.",
            "description": "Race: Bangladeshi",
            "attributes": {
              "Grouping_16": "10",
              "Grouping_6": "3"
            }
          },
          {
            "code": "134J.",
            "description": "Race: Mixed",
            "attributes": {
              "Grouping_16": "7",
              "Grouping_6": "2"
            }
          },
          {
            "code": "134K.",
            "description": "Race: West indian",
            "attributes": {
              "Grouping_16": "12",
              "Grouping_6": "4"
            }
          },
          {
            "code": "134L.",
            "description": "Race: Afro-caucasian",
            "attributes": {
              "Grouping_16": "5",
              "Grouping_6": "2"
            }
          },
          {
            "code": "134M.",
            "description": "Race: Pakistani",
            "attributes": {
              "Grouping_16": "9",
              "Grouping_6": "3"
            }
          },
          {
            "code": "9S1..",
            "description": "White - ethnic group",
            "attributes": {
              "Grouping_16": "1",
              "Grouping_6": "1"
            }
          },
          {
            "code": "9S2..",
            "description": "Black Caribbean",
            "attributes": {
              "Grouping_16": "12",
              "Grouping_6": "4"
            }
          },
          {
            "code": "9S3..",
            "description": "Black African",
            "attributes": {
              "Grouping_16": "13",
              "Grouping_6": "4"
            }
          },
          {
            "code": "9S4..",
            "description": "Black, other, non-mixed origin",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "9S41.",
            "description": "Black British",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "9S42.",
            "description": "Black Caribbean &amp;/or W.I. &amp;/or Guyana",
            "attributes": {
              "Grouping_16": "12",
              "Grouping_6": "4"
            }
          },
          {
            "code": "9S43.",
            "description": "Black N African &amp;/or Arab &amp;/or Iranian",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "9S44.",
            "description": "Black - other African country",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "9S45.",
            "description": "Black E Afric Asia &amp;/or Indo-Caribb",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "9S46.",
            "description": "Black Indian sub-continent",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "9S47.",
            "description": "Black - other Asian",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "9S48.",
            "description": "Black Black - other",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "9S5..",
            "description": "Black - other, mixed",
            "attributes": {
              "Grouping_16": "7",
              "Grouping_6": "2"
            }
          },
          {
            "code": "9S51.",
            "description": "Other Black - Black/White orig",
            "attributes": {
              "Grouping_16": "7",
              "Grouping_6": "2"
            }
          },
          {
            "code": "9S52.",
            "description": "Other Black - Black/Asian orig",
            "attributes": {
              "Grouping_16": "7",
              "Grouping_6": "2"
            }
          },
          {
            "code": "9S6..",
            "description": "Indian",
            "attributes": {
              "Grouping_16": "8",
              "Grouping_6": "3"
            }
          },
          {
            "code": "9S7..",
            "description": "Pakistani",
            "attributes": {
              "Grouping_16": "9",
              "Grouping_6": "3"
            }
          },
          {
            "code": "9S8..",
            "description": "Bangladeshi",
            "attributes": {
              "Grouping_16": "10",
              "Grouping_6": "3"
            }
          },
          {
            "code": "9SA..",
            "description": "Other ethnic non-mixed (NMO)",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "9SA1.",
            "description": "Brit. ethnic minor. spec.(NMO)",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "9SA2.",
            "description": "Brit. ethnic minor. unsp (NMO)",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "9SA3.",
            "description": "Caribbean I. &amp;/or W.I. &amp;/or Guyana (NMO)",
            "attributes": {
              "Grouping_16": "12",
              "Grouping_6": "4"
            }
          },
          {
            "code": "9SA4.",
            "description": "N African Arab &amp;/or Iranian (NMO)",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "9SA5.",
            "description": "Other African countries (NMO)",
            "attributes": {
              "Grouping_16": "13",
              "Grouping_6": "4"
            }
          },
          {
            "code": "9SA6.",
            "description": "E Afric Asian &amp;/or Indo-Carib (NMO)",
            "attributes": {
              "Grouping_16": "11",
              "Grouping_6": "3"
            }
          },
          {
            "code": "9SA7.",
            "description": "Indian sub-continent (NMO)",
            "attributes": {
              "Grouping_16": "8",
              "Grouping_6": "3"
            }
          },
          {
            "code": "9SA8.",
            "description": "Other Asian (NMO)",
            "attributes": {
              "Grouping_16": "11",
              "Grouping_6": "3"
            }
          },
          {
            "code": "9SA9.",
            "description": "Irish (NMO)",
            "attributes": {
              "Grouping_16": "2",
              "Grouping_6": "1"
            }
          },
          {
            "code": "9SAA.",
            "description": "Greek &amp;/or Greek Cypriot (NMO)",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "9SAB.",
            "description": "Turkish &amp;/or Turkish Cypriot (NMO)",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "9SAC.",
            "description": "Other European (NMO)",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "9SAD.",
            "description": "Other ethnic NEC (NMO)",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "9SB..",
            "description": "Other ethnic, mixed origin",
            "attributes": {
              "Grouping_16": "7",
              "Grouping_6": "2"
            }
          },
          {
            "code": "9SB1.",
            "description": "Other ethnic, Black/White orig",
            "attributes": {
              "Grouping_16": "7",
              "Grouping_6": "2"
            }
          },
          {
            "code": "9SB2.",
            "description": "Other ethnic, Asian/White orig",
            "attributes": {
              "Grouping_16": "6",
              "Grouping_6": "2"
            }
          },
          {
            "code": "9SB3.",
            "description": "Other ethnic, mixed white orig",
            "attributes": {
              "Grouping_16": "7",
              "Grouping_6": "2"
            }
          },
          {
            "code": "9SB4.",
            "description": "Other ethnic, other mixed orig",
            "attributes": {
              "Grouping_16": "7",
              "Grouping_6": "2"
            }
          },
          {
            "code": "9T1..",
            "description": "New Zealand ethnic groups",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "9T11.",
            "description": "New Zealand European",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "9T12.",
            "description": "Other European in New Zealand",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "9T13.",
            "description": "New Zealand Maori",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "9T14.",
            "description": "Samoan",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "9T15.",
            "description": "Cook Island Maori",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "9T16.",
            "description": "Tongan",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "9T17.",
            "description": "Niuean",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "9T18.",
            "description": "Tokelauan",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "9T19.",
            "description": "Fijian",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "9T1A.",
            "description": "Other Pacific ethnic group",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "9T1B.",
            "description": "South East Asian",
            "attributes": {
              "Grouping_16": "11",
              "Grouping_6": "3"
            }
          },
          {
            "code": "9T1C.",
            "description": "Chinese",
            "attributes": {
              "Grouping_16": "15",
              "Grouping_6": "5"
            }
          },
          {
            "code": "9T1E.",
            "description": "Other Asian",
            "attributes": {
              "Grouping_16": "11",
              "Grouping_6": "3"
            }
          },
          {
            "code": "9T1Y.",
            "description": "Other New Zealand ethnic group",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "9T1Z.",
            "description": "New Zealand ethnic group NOS",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "X76Gp",
            "description": "Race: Other",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaBz7",
            "description": "Black West Indian",
            "attributes": {
              "Grouping_16": "12",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XaBz8",
            "description": "Black Guyana",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "Xactd",
            "description": "Mixed: White+Black African - Eng+Wales eth cat 2011 census",
            "attributes": {
              "Grouping_16": "5",
              "Grouping_6": "2"
            }
          },
          {
            "code": "Xacte",
            "description": "Mixed: White+Asian - Eng+Wales ethnic category 2011 census",
            "attributes": {
              "Grouping_16": "6",
              "Grouping_6": "2"
            }
          },
          {
            "code": "Xactf",
            "description": "Mixed: other Mixed/multiple backgrd - Eng+Wales 2011 census",
            "attributes": {
              "Grouping_16": "7",
              "Grouping_6": "2"
            }
          },
          {
            "code": "Xactg",
            "description": "Asian/Asian Brit: Indian - Eng+Wales ethnic cat 2011 census",
            "attributes": {
              "Grouping_16": "8",
              "Grouping_6": "3"
            }
          },
          {
            "code": "Xacth",
            "description": "Asian/Asian British:Pakistani- Eng+Wales eth cat 2011 census",
            "attributes": {
              "Grouping_16": "9",
              "Grouping_6": "3"
            }
          },
          {
            "code": "XactH",
            "description": "White:Eng/Welsh/Scot/NI/Brit - England and Wales 2011 census",
            "attributes": {
              "Grouping_16": "1",
              "Grouping_6": "1"
            }
          },
          {
            "code": "Xacti",
            "description": "Asian/Asian Brit: Bangladeshi- Eng+Wales eth cat 2011 census",
            "attributes": {
              "Grouping_16": "10",
              "Grouping_6": "3"
            }
          },
          {
            "code": "XactI",
            "description": "White: Irish - England and Wales ethnic category 2011 census",
            "attributes": {
              "Grouping_16": "2",
              "Grouping_6": "1"
            }
          },
          {
            "code": "Xactj",
            "description": "Asian/Asian Brit: Chinese - Eng+Wales ethnic cat 2011 census",
            "attributes": {
              "Grouping_16": "15",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XactJ",
            "description": "White: Gypsy/Irish Traveller - Eng+Wales eth cat 2011 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "Xactk",
            "description": "Asian/Asian Brit: other Asian- Eng+Wales eth cat 2011 census",
            "attributes": {
              "Grouping_16": "11",
              "Grouping_6": "3"
            }
          },
          {
            "code": "XactK",
            "description": "White: other White backgrd- Eng+Wales ethnic cat 2011 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "Xactl",
            "description": "Black/African/Carib/Black Brit: African- Eng+Wales 2011 cens",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XactL",
            "description": "Mixed: White+Black Caribbean - Eng+Wales eth cat 2011 census",
            "attributes": {
              "Grouping_16": "4",
              "Grouping_6": "2"
            }
          },
          {
            "code": "Xactm",
            "description": "Black/African/Caribbn/Black Brit: Caribbean - Eng+Wales 2011",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "Xactn",
            "description": "Black/Afr/Carib/Black Brit: other Black- Eng+Wales 2011 cens",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "Xacto",
            "description": "Other ethnic group: Arab - Eng+Wales ethnic cat 2011 census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "Xactp",
            "description": "Other ethnic: any other grp - Eng+Wales eth cat 2011 census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "Xacua",
            "description": "Mixed: other Mixed/multiple ethnic backgrd - NI 2011 census",
            "attributes": {
              "Grouping_16": "7",
              "Grouping_6": "2"
            }
          },
          {
            "code": "Xacuc",
            "description": "Asian or Asian British: Indian - NI ethnic cat 2011 census",
            "attributes": {
              "Grouping_16": "8",
              "Grouping_6": "3"
            }
          },
          {
            "code": "Xacui",
            "description": "Asian/Asian British: Pakistani - NI ethnic cat 2011 census",
            "attributes": {
              "Grouping_16": "9",
              "Grouping_6": "3"
            }
          },
          {
            "code": "Xacuj",
            "description": "Asian/Asian British: Bangladeshi - NI ethnic cat 2011 census",
            "attributes": {
              "Grouping_16": "10",
              "Grouping_6": "3"
            }
          },
          {
            "code": "Xacuk",
            "description": "Asian/Asian British: Chinese - NI ethnic cat 2011 census",
            "attributes": {
              "Grouping_16": "15",
              "Grouping_6": "5"
            }
          },
          {
            "code": "Xacul",
            "description": "Asian/Asian British: other Asian - NI ethnic cat 2011 census",
            "attributes": {
              "Grouping_16": "11",
              "Grouping_6": "3"
            }
          },
          {
            "code": "Xacum",
            "description": "Black/Afri/Carib/Black Brit: African- NI eth cat 2011 census",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "Xacun",
            "description": "Black/Afri/Carib/Black Brit: Caribbean- NI eth cat 2011 cens",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "Xacuo",
            "description": "Black/Afri/Carib/Black Brit: other - NI eth cat 2011 census",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "Xacup",
            "description": "Other ethnic group: Arab - NI ethnic category 2011 census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "Xacuq",
            "description": "Other ethnic group: any other grp- NI ethnic cat 2011 census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XacuQ",
            "description": "White - Northern Ireland ethnic category 2011 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XacuR",
            "description": "Irish Traveller - Northern Ireland ethnic cat 2011 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "Xacus",
            "description": "White: Scottish - Scotland ethnic category 2011 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XacuS",
            "description": "Mixed: White and Black Caribbean - NI ethnic cat 2011 census",
            "attributes": {
              "Grouping_16": "4",
              "Grouping_6": "2"
            }
          },
          {
            "code": "Xacut",
            "description": "White: other British - Scotland ethnic category 2011 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XacuT",
            "description": "Mixed: White and Black African - NI ethnic cat 2011 census",
            "attributes": {
              "Grouping_16": "5",
              "Grouping_6": "2"
            }
          },
          {
            "code": "Xacuu",
            "description": "White: Irish - Scotland ethnic category 2011 census",
            "attributes": {
              "Grouping_16": "2",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XacuU",
            "description": "Mixed: White and Asian - NI ethnic category 2011 census",
            "attributes": {
              "Grouping_16": "6",
              "Grouping_6": "2"
            }
          },
          {
            "code": "Xacuv",
            "description": "White: Gypsy/Irish Traveller - Scotland ethnic cat 2011 cens",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "Xacux",
            "description": "White: Polish - Scotland ethnic category 2011 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "Xacuy",
            "description": "White: other White ethnic grp- Scotland ethnic cat 2011 cens",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "Xacuz",
            "description": "Mixed/multiple ethnic grps: any- Scot ethnic cat 2011 census",
            "attributes": {
              "Grouping_16": "7",
              "Grouping_6": "2"
            }
          },
          {
            "code": "Xacv0",
            "description": "Asian: Pakistani/Pakistani Scot/Pakistani Brit- Scot 2011",
            "attributes": {
              "Grouping_16": "9",
              "Grouping_6": "3"
            }
          },
          {
            "code": "Xacv2",
            "description": "Asian: Indian, Indian Scot/Indian Brit- Scotland 2011 census",
            "attributes": {
              "Grouping_16": "8",
              "Grouping_6": "3"
            }
          },
          {
            "code": "Xacv5",
            "description": "Bangladeshi, Bangladeshi Scot or Bangladeshi Brit- Scot 2011",
            "attributes": {
              "Grouping_16": "10",
              "Grouping_6": "3"
            }
          },
          {
            "code": "Xacva",
            "description": "Carib/Black: any other Black/Caribbean grp - Scotland 2011",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "Xacvb",
            "description": "Other ethnic grp: Arab/Arab Scot/Arab British- Scotland 2011",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "Xacvc",
            "description": "Other ethnic grp: any other ethnic grp- Scotland 2011 census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XacvF",
            "description": "Asian: Chinese - Scotland ethnic category 2011 census",
            "attributes": {
              "Grouping_16": "15",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XacvG",
            "description": "Asian: other Asian group - Scotland ethnic cat 2011 census",
            "attributes": {
              "Grouping_16": "11",
              "Grouping_6": "3"
            }
          },
          {
            "code": "XacvH",
            "description": "African: African/African Scot/African Brit - Scotland 2011",
            "attributes": {
              "Grouping_16": "13",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XacvI",
            "description": "African: any other African - Scotland ethnic cat 2011 census",
            "attributes": {
              "Grouping_16": "13",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XacvJ",
            "description": "Carib/Black: Caribbean/Carib Scot/Carib Brit- Scotland 2011",
            "attributes": {
              "Grouping_16": "12",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XacvZ",
            "description": "Carib/Black: Black/Black Scot/Black Brit- Scotland 2011 cens",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XaE4A",
            "description": "Vietnamese",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaedN",
            "description": "Slovak Roma",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaedQ",
            "description": "Czech Roma",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaedS",
            "description": "Hungarian Roma",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaedT",
            "description": "Polish Roma",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaedU",
            "description": "Romanian Roma",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaedV",
            "description": "Roma ethnic group",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaedW",
            "description": "Bulgarian Roma",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaFwD",
            "description": "White British",
            "attributes": {
              "Grouping_16": "1",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaFwE",
            "description": "White Irish",
            "attributes": {
              "Grouping_16": "2",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaFwF",
            "description": "Other white ethnic group",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaFwG",
            "description": "Mixed ethnic census group",
            "attributes": {
              "Grouping_16": "7",
              "Grouping_6": "2"
            }
          },
          {
            "code": "XaFwH",
            "description": "Black - ethnic group",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XaFwy",
            "description": "Other black ethnic group",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XaFwz",
            "description": "Asian - ethnic group",
            "attributes": {
              "Grouping_16": "11",
              "Grouping_6": "3"
            }
          },
          {
            "code": "XaFx0",
            "description": "Other Asian ethnic group",
            "attributes": {
              "Grouping_16": "11",
              "Grouping_6": "3"
            }
          },
          {
            "code": "XaFx1",
            "description": "Other ethnic group",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaFx2",
            "description": "Irish traveller",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaIB5",
            "description": "Black Caribbean and White",
            "attributes": {
              "Grouping_16": "4",
              "Grouping_6": "2"
            }
          },
          {
            "code": "XaIB6",
            "description": "Black African and White",
            "attributes": {
              "Grouping_16": "5",
              "Grouping_6": "2"
            }
          },
          {
            "code": "XaIuh",
            "description": "White Scottish",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaIui",
            "description": "Other white British ethnic group",
            "attributes": {
              "Grouping_16": "1",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJQv",
            "description": "British or mixed British - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "1",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJQw",
            "description": "Irish - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "2",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJQx",
            "description": "Other White background - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJQy",
            "description": "White and Black Caribbean - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "4",
              "Grouping_6": "2"
            }
          },
          {
            "code": "XaJQz",
            "description": "White and Black African - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "5",
              "Grouping_6": "2"
            }
          },
          {
            "code": "XaJR0",
            "description": "White and Asian - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "6",
              "Grouping_6": "2"
            }
          },
          {
            "code": "XaJR1",
            "description": "Other Mixed background - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "7",
              "Grouping_6": "2"
            }
          },
          {
            "code": "XaJR2",
            "description": "Indian or British Indian - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "8",
              "Grouping_6": "3"
            }
          },
          {
            "code": "XaJR3",
            "description": "Pakistani or British Pakistani - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "9",
              "Grouping_6": "3"
            }
          },
          {
            "code": "XaJR4",
            "description": "Bangladeshi or British Bangladeshi - ethn categ 2001 census",
            "attributes": {
              "Grouping_16": "10",
              "Grouping_6": "3"
            }
          },
          {
            "code": "XaJR5",
            "description": "Other Asian background - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "11",
              "Grouping_6": "3"
            }
          },
          {
            "code": "XaJR6",
            "description": "Caribbean - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "12",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XaJR7",
            "description": "African - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "13",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XaJR8",
            "description": "Other Black background - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XaJR9",
            "description": "Chinese - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "15",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaJRa",
            "description": "Black British - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XaJRA",
            "description": "Other - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaJRb",
            "description": "Other Black or Black unspecified ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XaJRc",
            "description": "Vietnamese - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaJRC",
            "description": "English - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJRd",
            "description": "Japanese - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaJRD",
            "description": "Scottish - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJRe",
            "description": "Filipino - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaJRE",
            "description": "Welsh - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJRf",
            "description": "Malaysian - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaJRF",
            "description": "Northern Irish - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJRg",
            "description": "Cypriot (part not stated) - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJRG",
            "description": "Cornish - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJRh",
            "description": "Ulster Scots - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJRH",
            "description": "Black and Asian - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "7",
              "Grouping_6": "2"
            }
          },
          {
            "code": "XaJRi",
            "description": "Greek - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJRI",
            "description": "Black and Chinese - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "7",
              "Grouping_6": "2"
            }
          },
          {
            "code": "XaJRj",
            "description": "Greek Cypriot - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJRJ",
            "description": "Black and White - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "7",
              "Grouping_6": "2"
            }
          },
          {
            "code": "XaJRk",
            "description": "Turkish - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJRK",
            "description": "Chinese and White - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "7",
              "Grouping_6": "2"
            }
          },
          {
            "code": "XaJRl",
            "description": "Turkish Cypriot - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJRL",
            "description": "Asian and Chinese - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "7",
              "Grouping_6": "2"
            }
          },
          {
            "code": "XaJRm",
            "description": "Italian - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJRM",
            "description": "Other Mixed or Mixed unspecified ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "7",
              "Grouping_6": "2"
            }
          },
          {
            "code": "XaJRN",
            "description": "Mixed Asian - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "7",
              "Grouping_6": "2"
            }
          },
          {
            "code": "XaJRO",
            "description": "Punjabi - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "11",
              "Grouping_6": "3"
            }
          },
          {
            "code": "XaJRP",
            "description": "Kashmiri - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "11",
              "Grouping_6": "3"
            }
          },
          {
            "code": "XaJRQ",
            "description": "East African Asian - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "11",
              "Grouping_6": "3"
            }
          },
          {
            "code": "XaJRR",
            "description": "Sri Lankan - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "11",
              "Grouping_6": "3"
            }
          },
          {
            "code": "XaJRS",
            "description": "Tamil - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "11",
              "Grouping_6": "3"
            }
          },
          {
            "code": "XaJRT",
            "description": "Sinhalese - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "11",
              "Grouping_6": "3"
            }
          },
          {
            "code": "XaJRU",
            "description": "British Asian - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "11",
              "Grouping_6": "3"
            }
          },
          {
            "code": "XaJRV",
            "description": "Caribbean Asian - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "11",
              "Grouping_6": "3"
            }
          },
          {
            "code": "XaJRW",
            "description": "Other Asian or Asian unspecified ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "11",
              "Grouping_6": "3"
            }
          },
          {
            "code": "XaJRX",
            "description": "Somali - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XaJRY",
            "description": "Mixed Black - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "7",
              "Grouping_6": "2"
            }
          },
          {
            "code": "XaJRZ",
            "description": "Nigerian - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XaJSa",
            "description": "South and Central American - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaJSb",
            "description": "Mauritian/Seychellois/Maldivian/St Helena eth cat 2001census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaJSB",
            "description": "Irish Traveller - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJSc",
            "description": "Buddhist - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaJSC",
            "description": "Traveller - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJSd",
            "description": "Hindu - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaJSD",
            "description": "Gypsy/Romany - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJSe",
            "description": "Muslim - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaJSE",
            "description": "Polish - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJSf",
            "description": "Sikh - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaJSF",
            "description": "Baltic Estonian/Latvian/Lithuanian - ethn categ 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJSg",
            "description": "Any other group - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaJSG",
            "description": "Commonwealth (Russian) Indep States - ethn categ 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJSH",
            "description": "Kosovan - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJSI",
            "description": "Albanian - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJSJ",
            "description": "Bosnian - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJSK",
            "description": "Croatian - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJSL",
            "description": "Serbian - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJSM",
            "description": "Other republics former Yugoslavia - ethnic categ 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJSN",
            "description": "Mixed Irish and other White - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "2",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJSO",
            "description": "Other mixed White - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJSP",
            "description": "Oth White European/European unsp/Mixed European 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJSQ",
            "description": "Other White or White unspecified ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaJSR",
            "description": "Jewish - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaJSS",
            "description": "Arab - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaJST",
            "description": "North African - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "13",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XaJSU",
            "description": "Mid East (excl Israeli, Iranian &amp; Arab) - eth cat 2001 cens",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaJSV",
            "description": "Israeli - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaJSW",
            "description": "Iranian - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaJSX",
            "description": "Kurdish - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaJSY",
            "description": "Moroccan - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaJSZ",
            "description": "Latin American - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaN9x",
            "description": "Yemeni",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XaQEa",
            "description": "White British - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "1",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaQEb",
            "description": "White Irish - ethnic category 2001 census",
            "attributes": {
              "Grouping_16": "2",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaR4o",
            "description": "Romanian",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaR4p",
            "description": "Bulgarian",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaR61",
            "description": "Czech",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaVw5",
            "description": "Slovak",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaW8w",
            "description": "Portuguese",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XaW95",
            "description": "Nepali",
            "attributes": {
              "Grouping_16": "11",
              "Grouping_6": "3"
            }
          },
          {
            "code": "XE2Nt",
            "description": "Black Caribbean/W.I./Guyana",
            "attributes": {
              "Grouping_16": "12",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XE2Nu",
            "description": "Black N African/Arab/Iranian",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XE2Nv",
            "description": "Black East African Asian/Indo-Caribbean",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XE2Nw",
            "description": "Caribbean I./W.I./Guyana (NMO)",
            "attributes": {
              "Grouping_16": "12",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XE2Nx",
            "description": "N African Arab/Iranian (NMO)",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XE2Ny",
            "description": "E Afric Asian/Indo-Carib (NMO)",
            "attributes": {
              "Grouping_16": "11",
              "Grouping_6": "3"
            }
          },
          {
            "code": "XE2Nz",
            "description": "Greek/Greek Cypriot (NMO)",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XE2O0",
            "description": "Turkish/Turkish Cypriot (NMO)",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XM1S3",
            "description": "Black North African",
            "attributes": {
              "Grouping_16": "13",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XM1S4",
            "description": "Black Arab",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XM1S5",
            "description": "Black Iranian",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XM1S6",
            "description": "Black East African Asian",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XM1S7",
            "description": "Black Indo-Caribbean",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XM1S8",
            "description": "Caribbean Island (NMO)",
            "attributes": {
              "Grouping_16": "12",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XM1S9",
            "description": "West Indian (NMO)",
            "attributes": {
              "Grouping_16": "12",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XM1SA",
            "description": "Guyana (NMO)",
            "attributes": {
              "Grouping_16": "14",
              "Grouping_6": "4"
            }
          },
          {
            "code": "XM1SB",
            "description": "North African Arab (NMO)",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XM1SC",
            "description": "Iranian (NMO)",
            "attributes": {
              "Grouping_16": "16",
              "Grouping_6": "5"
            }
          },
          {
            "code": "XM1SD",
            "description": "East African Asian (NMO)",
            "attributes": {
              "Grouping_16": "11",
              "Grouping_6": "3"
            }
          },
          {
            "code": "XM1SE",
            "description": "Indo-Caribbean (NMO)",
            "attributes": {
              "Grouping_16": "11",
              "Grouping_6": "3"
            }
          },
          {
            "code": "XM1SF",
            "description": "Greek (NMO)",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XM1SG",
            "description": "Greek Cypriot (NMO)",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XM1SH",
            "description": "Turkish (NMO)",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XM1SI",
            "description": "Turkish Cypriot (NMO)",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "XS7AU",
            "description": "Gypsies",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "Y1527",
            "description": "Traveller",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          },
          {
            "code": "Y9930",
            "description": "Race - British",
            "attributes": {
              "Grouping_16": "1",
              "Grouping_6": "1"
            }
          },
          {
            "code": "Y9931",
            "description": "Race - Indian",
            "attributes": {
              "Grouping_16": "8",
              "Grouping_6": "3"
            }
          },
          {
            "code": "Y9932",
            "description": "Race - Mediterranean",
            "attributes": {
              "Grouping_16": "3",
              "Grouping_6": "1"
            }
          }
        ]
      }
    ],
    "coding_system_release": "",
    "open_codelist_version_id": "746e4c98",
    "open_codelist_version_tag": "2020-04-27",
    "status": 1,
    "doi": "https://doi.org/10.48533/6z9e-mz49",
    "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": 8443,
        "version_name": "Ethnicity",
        "version_date": "2026-01-26T23:16:05.024764Z",
        "is_published": true,
        "is_latest": true
      }
    ]
  }
]