[
  {
    "phenotype_id": "PH2022",
    "phenotype_version_id": 4628,
    "name": "Nonvariceal GI bleeding SNOMED",
    "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\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-26T21:33:32.281894Z",
    "author": "University of Bristol",
    "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-26T21:33:32.277232Z",
    "references": [],
    "signed_off": [],
    "methodology": "",
    "coding_system": [
      {
        "name": "SNOMED  CT codes",
        "value": 9
      }
    ],
    "open_codelist_id": "bristol/nonvariceal-gi-bleeding-snomed",
    "source_reference": "https://www.opencodelists.org/codelist/bristol/nonvariceal-gi-bleeding-snomed/50237916",
    "concept_information": [
      {
        "concept_id": 4805,
        "concept_version_id": 12290,
        "concept_name": "bristol/nonvariceal-gi-bleeding-snomed/50237916",
        "coding_system": {
          "id": 9,
          "name": "SNOMED  CT codes",
          "description": "SNOMED CT codes"
        },
        "phenotype_id": "PH2022",
        "phenotype_version_id": 4628,
        "phenotype_name": "Nonvariceal GI bleeding SNOMED",
        "code_attribute_header": [],
        "codes": [
          {
            "code": "1082701000119105",
            "description": "Duodenal hemorrhage due to angiodysplasia of duodenum",
            "attributes": null
          },
          {
            "code": "1085171000119108",
            "description": "Rectal hemorrhage due to chronic ulcerative pancolitis",
            "attributes": null
          },
          {
            "code": "1086031000119101",
            "description": "Duodenal hemorrhage due to Dieulafoy vascular malformation of duodenum",
            "attributes": null
          },
          {
            "code": "1086461000119101",
            "description": "Hemorrhage of small intestine due to diverticulitis",
            "attributes": null
          },
          {
            "code": "1086481000119105",
            "description": "Perforation of small intestine co-occurrent with hemorrhage due to diverticulitis",
            "attributes": null
          },
          {
            "code": "1086551000119102",
            "description": "Hemorrhage of cecum due to diverticulosis",
            "attributes": null
          },
          {
            "code": "1086561000119100",
            "description": "Hemorrhage of duodenum co-occurrent and due to diverticulosis",
            "attributes": null
          },
          {
            "code": "1086571000119106",
            "description": "Hemorrhage of ileum co-occurrent and due to diverticulosis",
            "attributes": null
          },
          {
            "code": "1086591000119107",
            "description": "Hemorrhage of sigmoid colon co-occurrent and due to diverticulosis",
            "attributes": null
          },
          {
            "code": "1086601000119100",
            "description": "Intestinal hemorrhage co-occurrent and due to diverticulosis",
            "attributes": null
          },
          {
            "code": "1086951000119108",
            "description": "Gastric hemorrhage due to vascular ectasia of gastric antrum",
            "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": "1092881000119105",
            "description": "Rectal hemorrhage due to ulcerative colitis",
            "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": "12063002",
            "description": "Rectal hemorrhage",
            "attributes": null
          },
          {
            "code": "121491000000105",
            "description": "Endoscopic injection haemostasis of duodenal ulcer",
            "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": "12847006",
            "description": "Acute duodenal ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "138807001",
            "description": "H/O: haematemesis",
            "attributes": null
          },
          {
            "code": "138808006",
            "description": "H/O: melaena",
            "attributes": null
          },
          {
            "code": "139339008",
            "description": "Blood in vomit: [symptom] or [fresh blood]",
            "attributes": null
          },
          {
            "code": "139368009",
            "description": "(Black faeces [&amp; symptom]) or (C/O melaena)",
            "attributes": null
          },
          {
            "code": "144837001",
            "description": "Faeces: [tarry colour] or [O/E melaena]",
            "attributes": null
          },
          {
            "code": "145057005",
            "description": "Vomit: blood present &amp;/or frank",
            "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": "155678004",
            "description": "Mallory-Weiss syndrome",
            "attributes": null
          },
          {
            "code": "155838009",
            "description": "Haematemesis",
            "attributes": null
          },
          {
            "code": "155839001",
            "description": "Melaena",
            "attributes": null
          },
          {
            "code": "15720001",
            "description": "Hemorrhagic enteropathy of terminal ileum",
            "attributes": null
          },
          {
            "code": "15902003",
            "description": "Gastric ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "15970005",
            "description": "Intramural esophageal hematoma",
            "attributes": null
          },
          {
            "code": "15970021000119103",
            "description": "Bleeding internal hemorrhoid grade III",
            "attributes": null
          },
          {
            "code": "15970261000119101",
            "description": "Bleeding internal hemorrhoid grade I",
            "attributes": null
          },
          {
            "code": "15970301000119109",
            "description": "Bleeding internal hemorrhoid grade II",
            "attributes": null
          },
          {
            "code": "162064009",
            "description": "Blood in vomit: [symptom] or [fresh blood]",
            "attributes": null
          },
          {
            "code": "162092004",
            "description": "(Black faeces [&amp; symptom]) or (C/O melaena)",
            "attributes": null
          },
          {
            "code": "16694003",
            "description": "Gastric ulcer with hemorrhage but without obstruction",
            "attributes": null
          },
          {
            "code": "167611003",
            "description": "Faeces: [tarry colour] or [O/E melaena]",
            "attributes": null
          },
          {
            "code": "167829006",
            "description": "Vomit: blood present &amp;/or frank",
            "attributes": null
          },
          {
            "code": "17067009",
            "description": "Acute gastric ulcer with hemorrhage AND with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "173778009",
            "description": "Gastrotomy and ligation of bleeding point of stomach",
            "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": "190191000119107",
            "description": "Hemorrhage of colon due to diverticulosis",
            "attributes": null
          },
          {
            "code": "196620006",
            "description": "Mallory-Weiss tear",
            "attributes": null
          },
          {
            "code": "197092000",
            "description": "Hemorrhage of large intestine co-occurrent and due to diverticular disease of large intestine",
            "attributes": null
          },
          {
            "code": "197471006",
            "description": "Gastrointestinal bleeding (&amp; [unspecified])",
            "attributes": null
          },
          {
            "code": "197473009",
            "description": "Intestinal hemorrhage NOS",
            "attributes": null
          },
          {
            "code": "2066005",
            "description": "Gastric ulcer with hemorrhage AND perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "218541000119109",
            "description": "Gastric hemorrhage co-occurrent with and due to idiopathic erosive gastritis",
            "attributes": null
          },
          {
            "code": "22157005",
            "description": "Acute peptic ulcer with hemorrhage but without obstruction",
            "attributes": null
          },
          {
            "code": "226891000000104",
            "description": "Oversew of blood vessel of duodenal ulcer",
            "attributes": null
          },
          {
            "code": "235224000",
            "description": "Hemorrhagic enteritis",
            "attributes": null
          },
          {
            "code": "236016008",
            "description": "Acute hemorrhagic enterocolitis",
            "attributes": null
          },
          {
            "code": "236096007",
            "description": "Small intestine anastomotic hemorrhage",
            "attributes": null
          },
          {
            "code": "236097003",
            "description": "Large intestine anastomotic hemorrhage",
            "attributes": null
          },
          {
            "code": "2367005",
            "description": "Acute hemorrhagic gastritis",
            "attributes": null
          },
          {
            "code": "23812009",
            "description": "Duodenal ulcer with hemorrhage AND perforation",
            "attributes": null
          },
          {
            "code": "249498003",
            "description": "Haematemesis",
            "attributes": null
          },
          {
            "code": "257111000000102",
            "description": "Oversew of blood vessel of duodenal ulcer",
            "attributes": null
          },
          {
            "code": "26221006",
            "description": "Peptic ulcer with hemorrhage, with perforation AND with obstruction",
            "attributes": null
          },
          {
            "code": "262790002",
            "description": "Esophageal hematoma",
            "attributes": null
          },
          {
            "code": "262838003",
            "description": "Stomach hematoma",
            "attributes": null
          },
          {
            "code": "262843005",
            "description": "Duodenal hematoma",
            "attributes": null
          },
          {
            "code": "262852001",
            "description": "Small intestinal hematoma",
            "attributes": null
          },
          {
            "code": "262858002",
            "description": "Appendix hematoma",
            "attributes": null
          },
          {
            "code": "262865005",
            "description": "Cecal hematoma",
            "attributes": null
          },
          {
            "code": "262870003",
            "description": "Colonic hematoma",
            "attributes": null
          },
          {
            "code": "262876009",
            "description": "Rectal hematoma",
            "attributes": null
          },
          {
            "code": "26421009",
            "description": "Bleeding external hemorrhoids",
            "attributes": null
          },
          {
            "code": "266464001",
            "description": "Hemorrhage of rectum and anus",
            "attributes": null
          },
          {
            "code": "267051003",
            "description": "Vomiting blood - fresh",
            "attributes": null
          },
          {
            "code": "272045003",
            "description": "Complaining of melena",
            "attributes": null
          },
          {
            "code": "27281001",
            "description": "Duodenal ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "275782008",
            "description": "Melena on examination of feces",
            "attributes": null
          },
          {
            "code": "275786006",
            "description": "Blood in vomit on examination",
            "attributes": null
          },
          {
            "code": "276229008",
            "description": "Sepsis-associated gastrointestinal hemorrhage",
            "attributes": null
          },
          {
            "code": "276465001",
            "description": "Anal margin hematoma",
            "attributes": null
          },
          {
            "code": "27719009",
            "description": "Acute gastrointestinal hemorrhage",
            "attributes": null
          },
          {
            "code": "281102003",
            "description": "Blood in vomit - symptom",
            "attributes": null
          },
          {
            "code": "282065004",
            "description": "Hematoma of ileum",
            "attributes": null
          },
          {
            "code": "282074002",
            "description": "Hematoma of anus",
            "attributes": null
          },
          {
            "code": "28945005",
            "description": "Acute peptic ulcer with hemorrhage, with perforation AND with obstruction",
            "attributes": null
          },
          {
            "code": "2901004",
            "description": "Melena",
            "attributes": null
          },
          {
            "code": "307131005",
            "description": "Mallory-Weiss tear",
            "attributes": null
          },
          {
            "code": "307233002",
            "description": "Bleeding gastric erosion",
            "attributes": null
          },
          {
            "code": "307296008",
            "description": "Recurrent gastrointestinal bleeding",
            "attributes": null
          },
          {
            "code": "307297004",
            "description": "Massive gastrointestinal bleed",
            "attributes": null
          },
          {
            "code": "308882008",
            "description": "Bleeding stress ulcer of stomach",
            "attributes": null
          },
          {
            "code": "308904008",
            "description": "Hematemesis - cause unknown",
            "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": "40271000119102",
            "description": "Hemorrhage of small intestine co-occurrent and due to diverticulosis",
            "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": "414663001",
            "description": "Melena due to gastrointestinal hemorrhage",
            "attributes": null
          },
          {
            "code": "41986000",
            "description": "Acute duodenal ulcer with hemorrhage, with perforation AND with 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": "445162006",
            "description": "Bleeding Meckel's diverticulitis",
            "attributes": null
          },
          {
            "code": "445163001",
            "description": "Bleeding Meckel's diverticulum",
            "attributes": null
          },
          {
            "code": "453720571000119100",
            "description": "Acute ulcerative rectosigmoiditis",
            "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": "51551000",
            "description": "Bleeding hemorrhoids",
            "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": "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": "55957000",
            "description": "Proximal colon ulcer",
            "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": "606711000000108",
            "description": "Intestinal hemorrhage NOS",
            "attributes": null
          },
          {
            "code": "60698006",
            "description": "Hemorrhagic esophagitis",
            "attributes": null
          },
          {
            "code": "6072007",
            "description": "Bleeding from anus",
            "attributes": null
          },
          {
            "code": "609200008",
            "description": "Endoscopic procedure on small intestine for control of hemorrhage",
            "attributes": null
          },
          {
            "code": "609287009",
            "description": "Endoscopic thermocoagulation of small intestine for control of hemorrhage",
            "attributes": null
          },
          {
            "code": "609288004",
            "description": "Endoscopic injection of small intestine 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": "64121000",
            "description": "Peptic ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "64398008",
            "description": "Peptic ulcer with hemorrhage AND obstruction",
            "attributes": null
          },
          {
            "code": "66767006",
            "description": "Acute duodenal ulcer with hemorrhage but without obstruction",
            "attributes": null
          },
          {
            "code": "70375006",
            "description": "Small intestinal hemorrhage",
            "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": "709424004",
            "description": "Postoperative hemorrhage of anus",
            "attributes": null
          },
          {
            "code": "711441008",
            "description": "Hemorrhage of cecum",
            "attributes": null
          },
          {
            "code": "712510007",
            "description": "Intestinal hemorrhage",
            "attributes": null
          },
          {
            "code": "717868009",
            "description": "Intramural hemorrhage of stomach",
            "attributes": null
          },
          {
            "code": "717882009",
            "description": "Intramural hemorrhage of duodenum",
            "attributes": null
          },
          {
            "code": "721179009",
            "description": "Intramural hemorrhage of esophagus",
            "attributes": null
          },
          {
            "code": "721690003",
            "description": "Acute hemorrhagic ulcer of rectum",
            "attributes": null
          },
          {
            "code": "722886001",
            "description": "Obscure gastrointestinal hemorrhage",
            "attributes": null
          },
          {
            "code": "735727004",
            "description": "Diverticulum of small intestine co-occurrent with hemorrhage of small intestine",
            "attributes": null
          },
          {
            "code": "735729001",
            "description": "Diverticulum of large intestine co-occurrent with hemorrhage of large intestine",
            "attributes": null
          },
          {
            "code": "74341002",
            "description": "Chronic gastric ulcer with hemorrhage AND with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "74474003",
            "description": "Gastrointestinal hemorrhage",
            "attributes": null
          },
          {
            "code": "75884004",
            "description": "Bleeding internal hemorrhoids",
            "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": "77661009",
            "description": "Chronic peptic ulcer with hemorrhage, with perforation AND with obstruction",
            "attributes": null
          },
          {
            "code": "799008",
            "description": "Sigmoid colon ulcer",
            "attributes": null
          },
          {
            "code": "81142005",
            "description": "Chronic duodenal ulcer with hemorrhage AND with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "81318004",
            "description": "Hemorrhagic colitis",
            "attributes": null
          },
          {
            "code": "81518000",
            "description": "Chronic peptic ulcer with hemorrhage but without obstruction",
            "attributes": null
          },
          {
            "code": "85521005",
            "description": "Acute lower gastrointestinal 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": "87763006",
            "description": "Lower gastrointestinal hemorrhage",
            "attributes": null
          },
          {
            "code": "89469000",
            "description": "Chronic duodenal ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "89748001",
            "description": "Acute gastric ulcer with hemorrhage",
            "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": "95535005",
            "description": "Ileal hemorrhage",
            "attributes": null
          },
          {
            "code": "95540002",
            "description": "Hemorrhage of colon",
            "attributes": null
          },
          {
            "code": "97801000119102",
            "description": "Upper gastrointestinal hemorrhage co-occurrent and due to gastritis",
            "attributes": null
          },
          {
            "code": "981008",
            "description": "Hemorrhagic proctitis",
            "attributes": null
          }
        ]
      }
    ],
    "coding_system_release": "",
    "open_codelist_version_id": "50237916",
    "open_codelist_version_tag": "",
    "status": 1,
    "doi": "https://doi.org/10.48533/wdzh-6q53",
    "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": 4628,
        "version_name": "Nonvariceal GI bleeding SNOMED",
        "version_date": "2026-01-26T21:33:32.288952Z",
        "is_published": true,
        "is_latest": true
      }
    ]
  }
]