[
  {
    "phenotype_id": "PH3427",
    "phenotype_version_id": 8465,
    "name": "GI Bleed or Ulcer",
    "definition": "This codelist was taken from [OpenCodelists](https://www.opencodelists.org/), created by [OpenSAFELY](https://www.opensafely.org/). We recommend viewing this Phenotype on the OpenCodelist website to view the most recent version.\n\n\nCodes indicating diagnosis of either a GI bleed or a GI ulcer\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:17:08.594829Z",
    "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:17:08.588615Z",
    "references": [
      {
        "url": "https://github.com/ebmdatalab/opensafely-codelist-development/issues/14",
        "title": "Discussion on GitHub issue"
      }
    ],
    "signed_off": [],
    "methodology": "Derived from Read V2 codelist provided by LSHTM. See discussion in GitHub issue referenced below\n\n",
    "coding_system": [
      {
        "name": "Read codes v3",
        "value": 6
      }
    ],
    "open_codelist_id": "opensafely/gi-bleed-or-ulcer",
    "source_reference": "https://www.opencodelists.org/codelist/opensafely/gi-bleed-or-ulcer/2020-04-08",
    "concept_information": [
      {
        "concept_id": 8642,
        "concept_version_id": 16127,
        "concept_name": "opensafely/gi-bleed-or-ulcer/2020-04-08",
        "coding_system": {
          "id": 6,
          "name": "Read codes v3",
          "description": "Read codes v3"
        },
        "phenotype_id": "PH3427",
        "phenotype_version_id": 8465,
        "phenotype_name": "GI Bleed or Ulcer",
        "code_attribute_header": [
          "CTV3Source"
        ],
        "codes": [
          {
            "code": "14C1.",
            "description": "H/O: peptic ulcer (&amp; [duodenal] or [gastric])",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "1956.",
            "description": "Peptic ulcer symptoms",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "76125",
            "description": "Resection of gastric ulcer by cautery",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "76181",
            "description": "Closure of perforation of stomach NEC",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "76191",
            "description": "Gastrotomy and ligation of bleeding point of stomach",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "761J.",
            "description": "Gastric ulcer operation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "761J0",
            "description": "Closure of perforated gastric ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "761J1",
            "description": "Closure gastric ulcer NEC (&amp; suture)",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "761Jy",
            "description": "Other specified operation on gastric ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "761Jz",
            "description": "Operation on gastric ulcer NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "7627.",
            "description": "Duodenal ulcer operation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "76270",
            "description": "Closure of perforated duodenal ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "76271",
            "description": "Suture of duodenal ulcer not elsewhere classified",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "7627y",
            "description": "Other specified operation on duodenal ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "7627z",
            "description": "Operation on duodenal ulcer NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "773C6",
            "description": "Closure of perforated bowel ulcer NEC",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J102.",
            "description": "Ulcer of oesophagus",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1020",
            "description": "Gastro-oesophageal reflux disease with ulceration",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1022",
            "description": "Oesophageal ulcer due to aspirin",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1023",
            "description": "Chemical ulcer of oesophagus",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1024",
            "description": "Drug-induced ulcer of oesophagus",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1025",
            "description": "Barrett's ulcer of oesophagus",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J102z",
            "description": "Ulcer of oesophagus NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J107.",
            "description": "Mallory-Weiss syndrome",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "J10y0",
            "description": "Oesophageal haemorrhage",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "J11..",
            "description": "Gastric ulcer (&amp; [prepyloric] or [pyloric])",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "J110.",
            "description": "Acute gastric ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1100",
            "description": "Acute gastric ulcer without mention of complication",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1101",
            "description": "Acute gastric ulcer with haemorrhage",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_Only"
            }
          },
          {
            "code": "J1102",
            "description": "Acute gastric ulcer with perforation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1103",
            "description": "Acute gastric ulcer with haemorrhage and perforation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1104",
            "description": "Acute gastric ulcer with obstruction",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J110y",
            "description": "Acute gastric ulcer unspecified",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J110z",
            "description": "Acute gastric ulcer NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J111.",
            "description": "Chronic gastric ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1110",
            "description": "Chronic gastric ulcer without mention of complication",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1111",
            "description": "Chronic gastric ulcer with haemorrhage",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1112",
            "description": "Chronic gastric ulcer with perforation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_Only"
            }
          },
          {
            "code": "J1113",
            "description": "Chronic gastric ulcer with haemorrhage and perforation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1114",
            "description": "Chronic gastric ulcer with obstruction",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J111y",
            "description": "Chronic gastric ulcer unspecified",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J111z",
            "description": "Chronic gastric ulcer NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J11y.",
            "description": "Unspecified gastric ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J11y0",
            "description": "Unspecified gastric ulcer without mention of complication",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J11y1",
            "description": "Unspecified gastric ulcer with haemorrhage",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J11y2",
            "description": "Unspecified gastric ulcer with perforation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J11y3",
            "description": "Unspecified gastric ulcer with haemorrhage and perforation",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "J11y4",
            "description": "Unspecified gastric ulcer with obstruction",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J11yy",
            "description": "Unspec gastric ulcer; unspec haemorrhage and/or perforation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J11yz",
            "description": "Unspecified gastric ulcer NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J11z.",
            "description": "Gastric: [erosions] or [multiple ulcers] or [ulcer NOS]",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "J12..",
            "description": "Duodenal ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J120.",
            "description": "Acute duodenal ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1200",
            "description": "Acute duodenal ulcer without mention of complication",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1201",
            "description": "Acute duodenal ulcer with haemorrhage",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1202",
            "description": "Acute duodenal ulcer with perforation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1203",
            "description": "Acute duodenal ulcer with haemorrhage and perforation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1204",
            "description": "Acute duodenal ulcer with obstruction",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J120y",
            "description": "Acute duodenal ulcer unspecified",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J120z",
            "description": "Acute duodenal ulcer NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J121.",
            "description": "Chronic duodenal ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1210",
            "description": "Chronic duodenal ulcer without mention of complication",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1211",
            "description": "Chronic duodenal ulcer with haemorrhage",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1212",
            "description": "Chronic duodenal ulcer with perforation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1213",
            "description": "Chronic duodenal ulcer with haemorrhage and perforation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1214",
            "description": "Chronic duodenal ulcer with obstruction",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J121y",
            "description": "Chronic duodenal ulcer unspecified",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J121z",
            "description": "Chronic duodenal ulcer NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J122.",
            "description": "Duodenal ulcer disease",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "J124.",
            "description": "Recurrent duodenal ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J12y.",
            "description": "Unspecified duodenal ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J12y0",
            "description": "Unspecified duodenal ulcer without mention of complication",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J12y1",
            "description": "Unspecified duodenal ulcer with haemorrhage",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J12y2",
            "description": "Unspecified duodenal ulcer with perforation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J12y3",
            "description": "Unspecified duodenal ulcer with haemorrhage and perforation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J12y4",
            "description": "Unspecified duodenal ulcer with obstruction",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J12yy",
            "description": "Unspec duodenal ulcer; unspec haemorrhage and/or perforation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J12yz",
            "description": "Unspecified duodenal ulcer NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J12z.",
            "description": "Duodenal ulcer NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J13..",
            "description": "Ulcer: [peptic (PU) site unspecified] or [stress NOS]",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_Only"
            }
          },
          {
            "code": "J130.",
            "description": "Acute peptic ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1300",
            "description": "Acute peptic ulcer without mention of complication",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1301",
            "description": "Acute peptic ulcer with haemorrhage",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1302",
            "description": "Acute peptic ulcer with perforation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1303",
            "description": "Acute peptic ulcer with haemorrhage and perforation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1304",
            "description": "Acute peptic ulcer with obstruction",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J130y",
            "description": "Acute peptic ulcer unspecified",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J130z",
            "description": "Acute peptic ulcer NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J131.",
            "description": "Chronic peptic ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1310",
            "description": "Chronic peptic ulcer without mention of complication",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1311",
            "description": "Chronic peptic ulcer with haemorrhage",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1312",
            "description": "Chronic peptic ulcer with perforation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1313",
            "description": "Chronic peptic ulcer with haemorrhage and perforation",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "J1314",
            "description": "Chronic peptic ulcer with obstruction",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J131y",
            "description": "Chronic peptic ulcer unspecified",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J131z",
            "description": "Chronic peptic ulcer NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J13y.",
            "description": "Unspecified peptic ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J13y0",
            "description": "Unspecified peptic ulcer without mention of complication",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J13y1",
            "description": "Unspecified peptic ulcer with haemorrhage",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J13y2",
            "description": "Unspecified peptic ulcer with perforation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J13y3",
            "description": "Unspecified peptic ulcer with haemorrhage and perforation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J13y4",
            "description": "Unspecified peptic ulcer with obstruction",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J13yy",
            "description": "Unspec peptic ulcer; unspec haemorrhage and/or perforation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J13yz",
            "description": "Unspecified peptic ulcer NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J13z.",
            "description": "Peptic ulcer NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J14..",
            "description": "Ulcer: [gastrojej]/[anast]/[gastrocol]/[jej]/[margin]/[stom]",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "J140.",
            "description": "Acute gastrojejunal ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1400",
            "description": "Acute gastrojejunal ulcer without mention of complication",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1401",
            "description": "Acute gastrojejunal ulcer with haemorrhage",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1402",
            "description": "Acute gastrojejunal ulcer with perforation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1403",
            "description": "Acute gastrojejunal ulcer with haemorrhage and perforation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1404",
            "description": "Acute gastrojejunal ulcer with obstruction",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "J140y",
            "description": "Acute gastrojejunal ulcer unspecified",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "J140z",
            "description": "Acute gastrojejunal ulcer NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J141.",
            "description": "Chronic gastrojejunal ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1410",
            "description": "Chronic gastrojejunal ulcer without mention of complication",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "J1411",
            "description": "Chronic gastrojejunal ulcer with haemorrhage",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "J1412",
            "description": "Chronic gastrojejunal ulcer with perforation",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "J1413",
            "description": "Chronic gastrojejunal ulcer with haemorrhage and perforation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J1414",
            "description": "Chronic gastrojejunal ulcer with obstruction",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "J141y",
            "description": "Chronic gastrojejunal ulcer unspecified",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "J141z",
            "description": "Chronic gastrojejunal ulcer NOS",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "J14y.",
            "description": "Unspecified gastrojejunal ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J14y0",
            "description": "Unspecified gastrojejunal ulcer without mention complication",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "J14y1",
            "description": "Unspecified gastrojejunal ulcer with haemorrhage",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J14y2",
            "description": "Unspecified gastrojejunal ulcer with perforation",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J14y3",
            "description": "Unspec gastrojejunal ulcer with haemorrhage and perforation",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "J14y4",
            "description": "Unspecified gastrojejunal ulcer with obstruction",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J14yy",
            "description": "Unspec gastrojejunal ulcer; unspec haemorrhage/perforation",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "J14yz",
            "description": "Unspecified gastrojejunal ulcer NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J14z.",
            "description": "Gastrojejunal ulcer NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J17y8",
            "description": "Healed gastric ulcer leaving a scar",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J57y8",
            "description": "Primary ulcer of intestine",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J57y9",
            "description": "Ulceration of colon",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J57yA",
            "description": "Ulceration of intestine NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J68..",
            "description": "Gastrointestinal haemorrhage",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_Only"
            }
          },
          {
            "code": "J68z.",
            "description": "Gastrointestinal bleeding (&amp; [unspecified])",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "J68z0",
            "description": "Gastric haemorrhage NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J68z1",
            "description": "Intestinal haemorrhage NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "J68zz",
            "description": "Gastrointestinal tract haemorrhage NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "Q414.",
            "description": "Perinatal gastrointestinal haemorrhage",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "Q414y",
            "description": "Other specified perinatal gastrointestinal haemorrhage",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "Q414z",
            "description": "Perinatal gastrointestinal haemorrhage NOS",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X20VM",
            "description": "Closure of perforated stomach",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X20VN",
            "description": "Oversewing perforated gastric ulcer",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X20Vu",
            "description": "Oversewing perforated duodenal ulcer",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X300K",
            "description": "Eosinophilic ulcer of oesophagus",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X300L",
            "description": "Infective ulcer of oesophagus",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X300M",
            "description": "Bacterial ulcer of oesophagus",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X300N",
            "description": "Viral ulcer of oesophagus",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X300O",
            "description": "Protozoal ulcer of oesophagus",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X300P",
            "description": "Radiation ulcer of oesophagus",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X300Q",
            "description": "Stress ulceration of oesophagus",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X301E",
            "description": "Acute peptic ulcer of stomach",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X301F",
            "description": "Acute drug-induced ulcer of stomach",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X301G",
            "description": "Stress ulcer of stomach",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X301H",
            "description": "Cushing's ulcer of stomach",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X301I",
            "description": "Curling's ulcer of stomach",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X301J",
            "description": "Chronic peptic ulcer of stomach",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X301K",
            "description": "Chronic drug-induced ulcer of stomach",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X301L",
            "description": "Gastric erosion",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "X301M",
            "description": "Multiple gastric erosions",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "X301o",
            "description": "Perforation of gastric ulcer",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "X301O",
            "description": "Acute haemorrhagic gastritis",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "X302a",
            "description": "Healed gastric ulcer",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "X302A",
            "description": "Acute peptic ulcer of duodenum",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X302b",
            "description": "Duodenal ulcer disease",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "X302B",
            "description": "Stress ulcer of duodenum",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X302c",
            "description": "Peptic ulcer of duodenum",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X302C",
            "description": "Cushing's ulcer of duodenum",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X302D",
            "description": "Curling's ulcer of duodenum",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X302F",
            "description": "Chronic peptic ulcer of duodenum",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X302G",
            "description": "Duodenal erosion",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "X302H",
            "description": "Haemorrhagic duodenitis",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "X302Q",
            "description": "Perforation of duodenal ulcer",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "X302w",
            "description": "Ulceration of small intestine",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "X302x",
            "description": "Jejunal ulceration",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "X302X",
            "description": "Peptic ulcer of stomach",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "X302z",
            "description": "Primary nonspecific ulceration of small intestine",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "X304H",
            "description": "Ulceration of large intestine",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "X304I",
            "description": "Stercoral ulcer of large intestine",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "X30Be",
            "description": "Upper gastrointestinal haemorrhage",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "X30Bg",
            "description": "Bleeding gastric ulcer",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X30Bh",
            "description": "Bleeding duodenal ulcer",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X30Bi",
            "description": "Lower gastrointestinal haemorrhage",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "X30CH",
            "description": "Gastrointestinal anastomotic haemorrhage",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "X30CI",
            "description": "Oesophageal anastomotic haemorrhage",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "X30CJ",
            "description": "Gastric anastomotic haemorrhage",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "X30CK",
            "description": "Duodenal anastomotic haemorrhage",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "X30CM",
            "description": "Small intestine anastomotic haemorrhage",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "X30CN",
            "description": "Large intestine anastomotic haemorrhage",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "X40Ys",
            "description": "Sepsis-related gastrointestinal ulceration",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "X70RT",
            "description": "Classical histoplasmosis intestinal ulceration",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "Xa00e",
            "description": "Sepsis-associated gastrointestinal haemorrhage",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "Xa1qA",
            "description": "Anastomotic ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "Xa1qB",
            "description": "Jejunal ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "Xa1qC",
            "description": "Gastrocolic ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_Only"
            }
          },
          {
            "code": "Xa3u7",
            "description": "Stomach ulcer excision",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "Xa6ot",
            "description": "Prepyloric gastric ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_Only"
            }
          },
          {
            "code": "Xa7nW",
            "description": "Gastro-oesophageal erosion",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "Xa7TU",
            "description": "Oesophageal bleeding",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "Xa84h",
            "description": "Pyloric ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "Xa9C0",
            "description": "Non-reflux ulcer of oesophagus",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "XaB15",
            "description": "Laparoscopic closure of perforated gastric ulcer",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "XaB1x",
            "description": "Bleeding gastric erosion",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "XaB2Q",
            "description": "Suture of gastric ulcer",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "XaB2R",
            "description": "Suture of duodenal ulcer",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "XaB3J",
            "description": "Recurrent gastrointestinal bleeding",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "XaB3K",
            "description": "Massive gastrointestinal bleed",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "XaB5h",
            "description": "Haemorrhagic oesophagitis",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "XaB8q",
            "description": "Oversewing of bleeding duodenal ulcer",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "XaB8r",
            "description": "Under-running of bleeding duodenal ulcer",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "XaB8s",
            "description": "Oversewing of bleeding gastric ulcer",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "XaBel",
            "description": "Bleeding stress ulcer of stomach",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "XaBmb",
            "description": "Bleeding peptic ulcer",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "XaCLu",
            "description": "[V] Personal history of gastric ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaELE",
            "description": "Multiple gastric ulcers",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_Only"
            }
          },
          {
            "code": "XaFBq",
            "description": "Endoscopic injection haemostasis of duodenal ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaFBs",
            "description": "Endoscopic injection haemostasis of gastric ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaFC4",
            "description": "Under-running of bleeding gastric ulcer",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "XaLdV",
            "description": "Oversew of blood vessel of duodenal ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaLWq",
            "description": "Anti-platelet induced gastric ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaLWr",
            "description": "Anti-platelet induced gastric ulcer NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaLWs",
            "description": "Anti-platelet induced duodenal ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaLWt",
            "description": "Anti-platelet induced duodenal ulcer NOS",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "XaMO5",
            "description": "Non steroidal anti inflammatory drug induced gastric ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaMO6",
            "description": "Non steroidal anti inflammatory drug induced gastric ulc NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaMO7",
            "description": "Non steroidal anti inflammatory drug induced duodenal ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XaMO8",
            "description": "Non steroidal anti inflammatory drug induced duoden ulc NOS",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "XaYMi",
            "description": "Stress ulcer",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "XE0aP",
            "description": "Gastric ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_Only"
            }
          },
          {
            "code": "XE0aQ",
            "description": "Gastric ulcer NOS",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XE0aR",
            "description": "Peptic ulcer - (PU) site unspecified",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XE0aS",
            "description": "Gastrojejunal ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_Only"
            }
          },
          {
            "code": "XE0bJ",
            "description": "Gastrointestinal haemorrhage unspecified",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XE0bz",
            "description": "Perforated GU (&amp; [acute])",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          },
          {
            "code": "XE0c1",
            "description": "Perforated DU (&amp; [acute])",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "XE0c3",
            "description": "Ulcer: [peptic NOS]/[gastrojejunal]/[stomal]/[anastomotic]",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "XE0c5",
            "description": "Perforated peptic ulcer (&amp; [acute PU])",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "XE0Cr",
            "description": "Closure of gastric ulcer NEC",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XE0qB",
            "description": "H/O: peptic ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_Only"
            }
          },
          {
            "code": "XM0BZ",
            "description": "Peptic ulcer disease",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "XM0sI",
            "description": "Perforated peptic ulcer",
            "attributes": {
              "CTV3Source": "High_Level_SNOMED"
            }
          },
          {
            "code": "XM1I9",
            "description": "Suture of ulcer of stomach NEC",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_Only"
            }
          },
          {
            "code": "XM1RN",
            "description": "H/O: duodenal ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "XM1RO",
            "description": "H/O: gastric ulcer",
            "attributes": {
              "CTV3Source": "CTV3Map_Code_And_Term"
            }
          },
          {
            "code": "ZV127",
            "description": "[V]Pers hist digest syst disease (&amp; [pept ulcer (&amp; [duod])])",
            "attributes": {
              "CTV3Source": "CTV3_Children"
            }
          }
        ]
      }
    ],
    "coding_system_release": "",
    "open_codelist_version_id": "37846656",
    "open_codelist_version_tag": "2020-04-08",
    "status": 1,
    "doi": "https://doi.org/10.48533/4etq-3a43",
    "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": 8465,
        "version_name": "GI Bleed or Ulcer",
        "version_date": "2026-01-26T23:17:08.604671Z",
        "is_published": true,
        "is_latest": true
      }
    ]
  }
]