[
  {
    "phenotype_id": "PH3092",
    "phenotype_version_id": 8026,
    "name": "Upper gastrointestinal (GI) bleed codes",
    "definition": "This codelist was taken from [OpenCodelists](https://www.opencodelists.org/), created by [OpenSAFELY](https://www.opensafely.org/). We recommend viewing this Phenotype on the OpenCodelist website to view the most recent version.\n\n\nTaken from the `UPGIBLEED_COD` refset published by NHSD. Contains public sector information licensed under the UK Open Government Licence v3\\.0 (https://www.nationalarchives.gov.uk/doc/open\\-government\\-licence/version/3/).\n\n\n© University of Oxford for the Bennett Institute for Applied Data Science 2025\\. This work may be copied freely for non\\-commercial research and study.\n\n",
    "implementation": null,
    "publications": null,
    "validation": null,
    "citation_requirements": null,
    "created": "2026-01-26T23:02:58.198527Z",
    "author": "NHSD Primary Care Domain Refsets",
    "collections": [
      {
        "name": "OpenCodelist",
        "value": 31
      },
      {
        "name": "Phenotype Library",
        "value": 18
      }
    ],
    "tags": null,
    "organisation": {
      "id": 1,
      "slug": "opensafely",
      "name": "OpenSAFELY"
    },
    "world_access": 1,
    "updated": "2026-01-26T23:03:01.410698Z",
    "references": [],
    "signed_off": [],
    "methodology": "",
    "coding_system": [
      {
        "name": "SNOMED  CT codes",
        "value": 9
      }
    ],
    "open_codelist_id": "nhsd-primary-care-domain-refsets/upgibleed_cod",
    "source_reference": "https://www.opencodelists.org/codelist/nhsd-primary-care-domain-refsets/upgibleed_cod/20250912",
    "concept_information": [
      {
        "concept_id": 8203,
        "concept_version_id": 15688,
        "concept_name": "nhsd-primary-care-domain-refsets/upgibleed_cod/20250912",
        "coding_system": {
          "id": 9,
          "name": "SNOMED  CT codes",
          "description": "SNOMED CT codes"
        },
        "phenotype_id": "PH3092",
        "phenotype_version_id": 8026,
        "phenotype_name": "Upper gastrointestinal (GI) bleed codes",
        "code_attribute_header": [],
        "codes": [
          {
            "code": "1052071000000102",
            "description": "Fibreoptic endoscopic coagulation of oesophageal lesion haemorrhage",
            "attributes": null
          },
          {
            "code": "1082631000119106",
            "description": "Gastric hemorrhage due to allergic gastritis",
            "attributes": null
          },
          {
            "code": "1082701000119105",
            "description": "Duodenal hemorrhage due to angiodysplasia of duodenum",
            "attributes": null
          },
          {
            "code": "1082711000119108",
            "description": "Gastric hemorrhage due to angiodysplasia of stomach",
            "attributes": null
          },
          {
            "code": "1085121000119107",
            "description": "Gastric hemorrhage due to chronic superficial gastritis",
            "attributes": null
          },
          {
            "code": "1086031000119101",
            "description": "Duodenal hemorrhage due to Dieulafoy vascular malformation of duodenum",
            "attributes": null
          },
          {
            "code": "1086041000119105",
            "description": "Gastric hemorrhage due to Dieulafoy lesion of stomach",
            "attributes": null
          },
          {
            "code": "1086561000119100",
            "description": "Hemorrhage of duodenum co-occurrent and due to diverticulosis",
            "attributes": null
          },
          {
            "code": "1086951000119108",
            "description": "Gastric hemorrhage due to vascular ectasia of gastric antrum",
            "attributes": null
          },
          {
            "code": "1087081000119102",
            "description": "Gastric hemorrhage caused by Helicobacter pylori",
            "attributes": null
          },
          {
            "code": "1087161000119105",
            "description": "Gastric hemorrhage due to hypertrophic gastritis",
            "attributes": null
          },
          {
            "code": "1087811000119103",
            "description": "Gastric hemorrhage due to irritant gastritis",
            "attributes": null
          },
          {
            "code": "1090361000119108",
            "description": "Gastric hemorrhage due to pyloric gastritis",
            "attributes": null
          },
          {
            "code": "1092941000119109",
            "description": "Gastric hemorrhage due to viral gastritis",
            "attributes": null
          },
          {
            "code": "111353003",
            "description": "Acute peptic ulcer with hemorrhage and perforation",
            "attributes": null
          },
          {
            "code": "1148555003",
            "description": "Erosion of duodenum with hemorrhage",
            "attributes": null
          },
          {
            "code": "1197661009",
            "description": "Esophageal varices with bleeding due to schistosomiasis",
            "attributes": null
          },
          {
            "code": "12274003",
            "description": "Acute peptic ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "123411000119106",
            "description": "Gastric hemorrhage due to eosinophilic gastritis",
            "attributes": null
          },
          {
            "code": "12355008",
            "description": "Duodenal ulcer with hemorrhage, with perforation AND with obstruction",
            "attributes": null
          },
          {
            "code": "1251572005",
            "description": "Esophagogastroduodenoscopy with control of esophageal hemorrhage by injection",
            "attributes": null
          },
          {
            "code": "1255196002",
            "description": "Esophagogastroduodenoscopy with control of hemorrhage of esophagus",
            "attributes": null
          },
          {
            "code": "1255197006",
            "description": "Esophagogastroduodenoscopy with clipping for control of hemorrhage of esophagus",
            "attributes": null
          },
          {
            "code": "1255198001",
            "description": "Esophagogastroduodenoscopy with control of hemorrhage of esophagus by thermocoagulation",
            "attributes": null
          },
          {
            "code": "1263602007",
            "description": "Endoscopic control of hemorrhage of stomach using argon plasma coagulation",
            "attributes": null
          },
          {
            "code": "1263704002",
            "description": "Fiberoptic endoscopic coagulation of hemorrhage of upper gastrointestinal tract using hemostatic spray",
            "attributes": null
          },
          {
            "code": "1263705001",
            "description": "Fiberoptic endoscopic coagulation of hemorrhage of esophagus using hemostatic spray",
            "attributes": null
          },
          {
            "code": "1263734007",
            "description": "Endoscopic control of hemorrhage of duodenum using argon plasma coagulation",
            "attributes": null
          },
          {
            "code": "12847006",
            "description": "Acute duodenal ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "150721000119102",
            "description": "Gastric hemorrhage due to atrophic gastritis",
            "attributes": null
          },
          {
            "code": "15115006",
            "description": "Duodenal ulcer with hemorrhage AND with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "15238002",
            "description": "Esophageal bleeding",
            "attributes": null
          },
          {
            "code": "1577251000000102",
            "description": "Fiberoptic endoscopic coagulation of hemorrhage of upper gastrointestinal tract using hemostatic spray",
            "attributes": null
          },
          {
            "code": "1577261000000104",
            "description": "Fiberoptic endoscopic coagulation of hemorrhage of esophagus using hemostatic spray",
            "attributes": null
          },
          {
            "code": "15902003",
            "description": "Gastric ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "161538007",
            "description": "History of hematemesis",
            "attributes": null
          },
          {
            "code": "16694003",
            "description": "Gastric ulcer with hemorrhage but without obstruction",
            "attributes": null
          },
          {
            "code": "17067009",
            "description": "Acute gastric ulcer with hemorrhage AND with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "17593008",
            "description": "Gastric ulcer with hemorrhage, with perforation and with obstruction",
            "attributes": null
          },
          {
            "code": "18367003",
            "description": "Duodenal ulcer with hemorrhage AND obstruction",
            "attributes": null
          },
          {
            "code": "206406008",
            "description": "Perinatal hematemesis",
            "attributes": null
          },
          {
            "code": "2066005",
            "description": "Gastric ulcer with hemorrhage AND perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "218541000119109",
            "description": "Gastric hemorrhage due to idiopathic erosive gastritis",
            "attributes": null
          },
          {
            "code": "22157005",
            "description": "Acute peptic ulcer with hemorrhage but without obstruction",
            "attributes": null
          },
          {
            "code": "236093004",
            "description": "Esophageal anastomotic hemorrhage",
            "attributes": null
          },
          {
            "code": "236094005",
            "description": "Gastric anastomotic hemorrhage",
            "attributes": null
          },
          {
            "code": "236095006",
            "description": "Duodenal anastomotic hemorrhage",
            "attributes": null
          },
          {
            "code": "2367005",
            "description": "Acute hemorrhagic gastritis",
            "attributes": null
          },
          {
            "code": "23812009",
            "description": "Duodenal ulcer with hemorrhage AND perforation",
            "attributes": null
          },
          {
            "code": "24001002",
            "description": "Chronic gastrojejunal ulcer with hemorrhage, with perforation and with obstruction",
            "attributes": null
          },
          {
            "code": "24807004",
            "description": "Bleeding gastric varices",
            "attributes": null
          },
          {
            "code": "25349007",
            "description": "Chronic upper gastrointestinal hemorrhage",
            "attributes": null
          },
          {
            "code": "26221006",
            "description": "Peptic ulcer with hemorrhage, with perforation AND with obstruction",
            "attributes": null
          },
          {
            "code": "267051003",
            "description": "Vomiting blood - fresh",
            "attributes": null
          },
          {
            "code": "27129009",
            "description": "Endoscopic control of duodenal bleeding",
            "attributes": null
          },
          {
            "code": "27281001",
            "description": "Duodenal ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "28945005",
            "description": "Acute peptic ulcer with hemorrhage, with perforation AND with obstruction",
            "attributes": null
          },
          {
            "code": "307233002",
            "description": "Erosion of stomach with hemorrhage",
            "attributes": null
          },
          {
            "code": "308882008",
            "description": "Bleeding stress ulcer of stomach",
            "attributes": null
          },
          {
            "code": "308904008",
            "description": "Hematemesis of unknown cause",
            "attributes": null
          },
          {
            "code": "312489007",
            "description": "History of upper gastrointestinal tract hemorrhage",
            "attributes": null
          },
          {
            "code": "314595005",
            "description": "Injection into lesion of duodenum for hemostasis",
            "attributes": null
          },
          {
            "code": "314596006",
            "description": "Injection into lesion of stomach for hemostasis",
            "attributes": null
          },
          {
            "code": "314598007",
            "description": "Injection of epinephrine into lesion of stomach for hemostasis",
            "attributes": null
          },
          {
            "code": "314599004",
            "description": "Injection of epinephrine into lesion of duodenum for hemostasis",
            "attributes": null
          },
          {
            "code": "314627002",
            "description": "Endoscopic injection hemostasis of duodenal ulcer",
            "attributes": null
          },
          {
            "code": "34021006",
            "description": "Chronic duodenal ulcer with hemorrhage AND obstruction",
            "attributes": null
          },
          {
            "code": "35265002",
            "description": "Mallory-Weiss syndrome",
            "attributes": null
          },
          {
            "code": "35560008",
            "description": "Duodenal ulcer with hemorrhage but without obstruction",
            "attributes": null
          },
          {
            "code": "36975000",
            "description": "Chronic duodenal ulcer with hemorrhage AND perforation",
            "attributes": null
          },
          {
            "code": "37372002",
            "description": "Upper gastrointestinal hemorrhage",
            "attributes": null
          },
          {
            "code": "38938002",
            "description": "Acute upper gastrointestinal hemorrhage",
            "attributes": null
          },
          {
            "code": "40241000119109",
            "description": "Gastric hemorrhage due to alcoholic gastritis",
            "attributes": null
          },
          {
            "code": "40835002",
            "description": "Coffee ground vomiting",
            "attributes": null
          },
          {
            "code": "409506009",
            "description": "Hemorrhagic gastroenteritis",
            "attributes": null
          },
          {
            "code": "413212000",
            "description": "Hemorrhagic duodenopathy",
            "attributes": null
          },
          {
            "code": "413218001",
            "description": "Hemorrhagic gastropathy",
            "attributes": null
          },
          {
            "code": "414390000",
            "description": "Hemorrhagic mucosa of duodenum",
            "attributes": null
          },
          {
            "code": "414391001",
            "description": "Hemorrhagic mucosa of stomach",
            "attributes": null
          },
          {
            "code": "41986000",
            "description": "Acute duodenal ulcer with hemorrhage, with perforation AND with obstruction",
            "attributes": null
          },
          {
            "code": "42698006",
            "description": "Gastrojejunal ulcer with hemorrhage AND obstruction",
            "attributes": null
          },
          {
            "code": "430349003",
            "description": "Upper gastrointestinal hemorrhage associated with hypercoagulability state",
            "attributes": null
          },
          {
            "code": "43406003",
            "description": "Acute peptic ulcer with hemorrhage AND obstruction",
            "attributes": null
          },
          {
            "code": "439442003",
            "description": "Esophageal bleeding due to ulcerative esophagitis",
            "attributes": null
          },
          {
            "code": "44208009",
            "description": "Transcatheter embolization for gastric bleeding",
            "attributes": null
          },
          {
            "code": "44380002",
            "description": "Endoscopic control of gastric bleeding",
            "attributes": null
          },
          {
            "code": "45640006",
            "description": "Chronic gastrojejunal ulcer with hemorrhage and perforation",
            "attributes": null
          },
          {
            "code": "46523000",
            "description": "Chronic gastrojejunal ulcer with hemorrhage and with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "46708007",
            "description": "Acute gastric ulcer with hemorrhage and obstruction",
            "attributes": null
          },
          {
            "code": "47064007",
            "description": "Acute peptic ulcer with hemorrhage AND with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "48658001",
            "description": "Peptic ulcer with hemorrhage but without obstruction",
            "attributes": null
          },
          {
            "code": "48974009",
            "description": "Acute gastric ulcer with hemorrhage and perforation",
            "attributes": null
          },
          {
            "code": "49232000",
            "description": "Chronic peptic ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "50663005",
            "description": "Gastrojejunal ulcer with hemorrhage but without obstruction",
            "attributes": null
          },
          {
            "code": "51847008",
            "description": "Acute duodenal ulcer with hemorrhage AND with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "53337006",
            "description": "Acute gastric ulcer with hemorrhage, with perforation and with obstruction",
            "attributes": null
          },
          {
            "code": "53877005",
            "description": "Gastric ulcer with hemorrhage and obstruction",
            "attributes": null
          },
          {
            "code": "54798007",
            "description": "Gastrojejunal ulcer with hemorrhage, with perforation and with obstruction",
            "attributes": null
          },
          {
            "code": "55617001",
            "description": "Peptic ulcer with hemorrhage AND perforation",
            "attributes": null
          },
          {
            "code": "55746001",
            "description": "Chronic peptic ulcer with hemorrhage AND with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "56461008",
            "description": "Chronic peptic ulcer with hemorrhage AND obstruction",
            "attributes": null
          },
          {
            "code": "57246001",
            "description": "Chronic gastric ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "57748001",
            "description": "Bleeding ulcer of esophagus",
            "attributes": null
          },
          {
            "code": "58711008",
            "description": "Acute gastrojejunal ulcer with hemorrhage, with perforation and with obstruction",
            "attributes": null
          },
          {
            "code": "59356009",
            "description": "Chronic gastrojejunal ulcer with hemorrhage but without perforation",
            "attributes": null
          },
          {
            "code": "59515005",
            "description": "Acute gastrojejunal ulcer with hemorrhage but without obstruction",
            "attributes": null
          },
          {
            "code": "60698006",
            "description": "Hemorrhagic esophagitis",
            "attributes": null
          },
          {
            "code": "609198002",
            "description": "Endoscopic thermocoagulation of duodenum for control of hemorrhage",
            "attributes": null
          },
          {
            "code": "61300005",
            "description": "Chronic peptic ulcer with hemorrhage AND perforation",
            "attributes": null
          },
          {
            "code": "61401005",
            "description": "Gastric hemorrhage",
            "attributes": null
          },
          {
            "code": "62341002",
            "description": "Chronic duodenal ulcer with hemorrhage but without obstruction",
            "attributes": null
          },
          {
            "code": "62366003",
            "description": "Gastric ulcer with hemorrhage and perforation",
            "attributes": null
          },
          {
            "code": "62838000",
            "description": "Chronic gastrojejunal ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "63954007",
            "description": "Acute gastrojejunal ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "64094003",
            "description": "Gastrojejunal ulcer with hemorrhage AND perforation",
            "attributes": null
          },
          {
            "code": "64121000",
            "description": "Peptic ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "64398008",
            "description": "Peptic ulcer with hemorrhage AND obstruction",
            "attributes": null
          },
          {
            "code": "66673003",
            "description": "Acute gastrojejunal ulcer with hemorrhage and with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "66767006",
            "description": "Acute duodenal ulcer with hemorrhage but without obstruction",
            "attributes": null
          },
          {
            "code": "698319006",
            "description": "Endoscopic control of duodenal bleeding using thermocoagulation",
            "attributes": null
          },
          {
            "code": "698320000",
            "description": "Endoscopic clipping for control of duodenal hemorrhage",
            "attributes": null
          },
          {
            "code": "698322008",
            "description": "Endoscopic control of gastric bleeding using thermocoagulation",
            "attributes": null
          },
          {
            "code": "698352000",
            "description": "Chronic antral gastritis with hemorrhage",
            "attributes": null
          },
          {
            "code": "698410009",
            "description": "Endoscopic control of esophageal hemorrhage using thermocoagulation",
            "attributes": null
          },
          {
            "code": "698411008",
            "description": "Endoscopic control of esophageal hemorrhage by injection",
            "attributes": null
          },
          {
            "code": "698412001",
            "description": "Endoscopic coagulation of esophageal hemorrhage",
            "attributes": null
          },
          {
            "code": "698494001",
            "description": "Transcatheter embolization for duodenal bleeding",
            "attributes": null
          },
          {
            "code": "698574007",
            "description": "Control of hemorrhage of duodenum",
            "attributes": null
          },
          {
            "code": "700042008",
            "description": "Transcatheter embolization of gastric artery for control of gastric bleeding",
            "attributes": null
          },
          {
            "code": "70384006",
            "description": "Control of hemorrhage of stomach",
            "attributes": null
          },
          {
            "code": "70418001",
            "description": "Acute gastric ulcer with hemorrhage but without obstruction",
            "attributes": null
          },
          {
            "code": "7071000119102",
            "description": "Gastric hemorrhage due to erosive gastritis",
            "attributes": null
          },
          {
            "code": "72408002",
            "description": "Acute gastrojejunal ulcer with hemorrhage and obstruction",
            "attributes": null
          },
          {
            "code": "74341002",
            "description": "Chronic gastric ulcer with hemorrhage AND with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "76078009",
            "description": "Chronic gastric ulcer with hemorrhage but without obstruction",
            "attributes": null
          },
          {
            "code": "76181002",
            "description": "Chronic gastric ulcer with hemorrhage and with perforation",
            "attributes": null
          },
          {
            "code": "771623009",
            "description": "Fiberoptic endoscopic coagulation of hemorrhage of esophagus",
            "attributes": null
          },
          {
            "code": "771624003",
            "description": "Fiberoptic endoscopic coagulation of hemorrhage of upper gastrointestinal tract",
            "attributes": null
          },
          {
            "code": "77661009",
            "description": "Chronic peptic ulcer with hemorrhage, with perforation AND with obstruction",
            "attributes": null
          },
          {
            "code": "81142005",
            "description": "Chronic duodenal ulcer with hemorrhage AND with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "81387001",
            "description": "Acute gastrojejunal ulcer with hemorrhage and perforation",
            "attributes": null
          },
          {
            "code": "81518000",
            "description": "Chronic peptic ulcer with hemorrhage but without obstruction",
            "attributes": null
          },
          {
            "code": "84124004",
            "description": "Gastrojejunal ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "85787009",
            "description": "Chronic gastric ulcer with hemorrhage, with perforation and with obstruction",
            "attributes": null
          },
          {
            "code": "85859006",
            "description": "Chronic gastric ulcer with hemorrhage and with obstruction",
            "attributes": null
          },
          {
            "code": "86258000",
            "description": "Chronic duodenal ulcer with hemorrhage, with perforation AND with obstruction",
            "attributes": null
          },
          {
            "code": "86895006",
            "description": "Acute duodenal ulcer with hemorrhage AND perforation",
            "attributes": null
          },
          {
            "code": "8765009",
            "description": "Hematemesis",
            "attributes": null
          },
          {
            "code": "87756006",
            "description": "Acute duodenal ulcer with hemorrhage AND obstruction",
            "attributes": null
          },
          {
            "code": "87796008",
            "description": "Gastrojejunal ulcer with hemorrhage and with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "89469000",
            "description": "Chronic duodenal ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "89748001",
            "description": "Acute gastric ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "90257004",
            "description": "Chronic gastrojejunal ulcer with hemorrhage and obstruction",
            "attributes": null
          },
          {
            "code": "90489006",
            "description": "Peptic ulcer with hemorrhage AND with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "95531001",
            "description": "Hemorrhagic duodenitis",
            "attributes": null
          },
          {
            "code": "95533003",
            "description": "Duodenal hemorrhage",
            "attributes": null
          },
          {
            "code": "97801000119102",
            "description": "Upper gastrointestinal hemorrhage co-occurrent and due to gastritis",
            "attributes": null
          }
        ]
      }
    ],
    "coding_system_release": "",
    "open_codelist_version_id": "7fefe708",
    "open_codelist_version_tag": "20250912",
    "status": 1,
    "doi": "https://doi.org/10.48533/1bnz-6e56",
    "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": 8026,
        "version_name": "Upper gastrointestinal (GI) bleed codes",
        "version_date": "2026-01-26T23:03:01.427871Z",
        "is_published": true,
        "is_latest": true
      },
      {
        "version_id": 8025,
        "version_name": "Upper gastrointestinal (GI) bleed codes",
        "version_date": "2026-01-26T23:02:59.822341Z",
        "is_published": true,
        "is_latest": false
      },
      {
        "version_id": 8024,
        "version_name": "Upper gastrointestinal (GI) bleed codes",
        "version_date": "2026-01-26T23:02:58.208561Z",
        "is_published": true,
        "is_latest": false
      }
    ]
  }
]