[
  {
    "phenotype_id": "PH2894",
    "phenotype_version_id": 7382,
    "name": "Peptic ulceration 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 `PEPTICULCER_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-26T22:50:42.341255Z",
    "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-26T22:50:46.147871Z",
    "references": [],
    "signed_off": [],
    "methodology": "",
    "coding_system": [
      {
        "name": "SNOMED  CT codes",
        "value": 9
      }
    ],
    "open_codelist_id": "nhsd-primary-care-domain-refsets/pepticulcer_cod",
    "source_reference": "https://www.opencodelists.org/codelist/nhsd-primary-care-domain-refsets/pepticulcer_cod/20250912",
    "concept_information": [
      {
        "concept_id": 7559,
        "concept_version_id": 15044,
        "concept_name": "nhsd-primary-care-domain-refsets/pepticulcer_cod/20250912",
        "coding_system": {
          "id": 9,
          "name": "SNOMED  CT codes",
          "description": "SNOMED CT codes"
        },
        "phenotype_id": "PH2894",
        "phenotype_version_id": 7382,
        "phenotype_name": "Peptic ulceration codes",
        "code_attribute_header": [],
        "codes": [
          {
            "code": "103691000119106",
            "description": "Gastric ulcer caused by Helicobacter pylori",
            "attributes": null
          },
          {
            "code": "10389003",
            "description": "Acute gastrojejunal ulcer without hemorrhage AND without perforation but with obstruction",
            "attributes": null
          },
          {
            "code": "10699001",
            "description": "Esophagogastric ulcer",
            "attributes": null
          },
          {
            "code": "10897002",
            "description": "Chronic gastrojejunal ulcer with perforation AND with obstruction",
            "attributes": null
          },
          {
            "code": "109813002",
            "description": "Drug-induced peptic ulcer",
            "attributes": null
          },
          {
            "code": "111353003",
            "description": "Acute peptic ulcer with hemorrhage and perforation",
            "attributes": null
          },
          {
            "code": "1144981002",
            "description": "Ulcer of stomach due to Henoch-Schönlein purpura",
            "attributes": null
          },
          {
            "code": "1163589006",
            "description": "Prepyloric ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "1177073003",
            "description": "Duodenal ulcer caused by disease caused by parasite",
            "attributes": null
          },
          {
            "code": "11818002",
            "description": "Gastrojejunal ulcer with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "1197685001",
            "description": "Ulcer of duodenum due to vasculitis",
            "attributes": null
          },
          {
            "code": "1197688004",
            "description": "Ulcer of duodenum due to immunoglobulin A vasculitis",
            "attributes": null
          },
          {
            "code": "1197690003",
            "description": "Ulcer of duodenum due to sarcoidosis",
            "attributes": null
          },
          {
            "code": "1197691004",
            "description": "Ulcer of duodenum due to celiac disease",
            "attributes": null
          },
          {
            "code": "1197692006",
            "description": "Ulcer of duodenum due to Crohn disease",
            "attributes": null
          },
          {
            "code": "1197708008",
            "description": "Gastric ulcer due to vasculitis",
            "attributes": null
          },
          {
            "code": "1197714001",
            "description": "Gastric ulcer due to Crohn disease",
            "attributes": null
          },
          {
            "code": "1197724009",
            "description": "Duodenal ulcer caused by alcohol",
            "attributes": null
          },
          {
            "code": "1197771003",
            "description": "Gastric ulcer due to sarcoidosis",
            "attributes": null
          },
          {
            "code": "1204467005",
            "description": "Gastrointestinal ulceration due to sepsis",
            "attributes": null
          },
          {
            "code": "12274003",
            "description": "Acute peptic ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "12355008",
            "description": "Duodenal ulcer with hemorrhage, with perforation AND with obstruction",
            "attributes": null
          },
          {
            "code": "12384004",
            "description": "Chronic peptic ulcer without hemorrhage AND without perforation but with obstruction",
            "attributes": null
          },
          {
            "code": "12625009",
            "description": "Peptic ulcer with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "128286008",
            "description": "Chronic duodenal ulcer",
            "attributes": null
          },
          {
            "code": "128287004",
            "description": "Chronic peptic ulcer",
            "attributes": null
          },
          {
            "code": "128288009",
            "description": "Chronic gastrojejunal ulcer",
            "attributes": null
          },
          {
            "code": "12847006",
            "description": "Acute duodenal ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "129141000119104",
            "description": "Gastric ulcer caused by non-steroidal anti-inflammatory drug in therapeutic use",
            "attributes": null
          },
          {
            "code": "13200003",
            "description": "Peptic ulcer",
            "attributes": null
          },
          {
            "code": "15115006",
            "description": "Duodenal ulcer with hemorrhage AND with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "1567007",
            "description": "Chronic gastric ulcer without hemorrhage, without perforation AND without obstruction",
            "attributes": null
          },
          {
            "code": "15902003",
            "description": "Gastric ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "16089091000119106",
            "description": "History of esophageal ulcer",
            "attributes": null
          },
          {
            "code": "16089131000119108",
            "description": "History of pyloric channel ulcer",
            "attributes": null
          },
          {
            "code": "16089211000119108",
            "description": "History of gastrojejunal ulcer",
            "attributes": null
          },
          {
            "code": "16121001",
            "description": "Gastrojejunal ulcer",
            "attributes": null
          },
          {
            "code": "16516008",
            "description": "Familial duodenal ulcer associated with rapid gastric emptying",
            "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": "173842008",
            "description": "Closure of perforated gastric ulcer",
            "attributes": null
          },
          {
            "code": "173889005",
            "description": "Closure of perforated duodenal ulcer",
            "attributes": null
          },
          {
            "code": "17593008",
            "description": "Gastric ulcer with hemorrhage, with perforation and with obstruction",
            "attributes": null
          },
          {
            "code": "18169007",
            "description": "Duodenal ulcer without hemorrhage AND without perforation but with obstruction",
            "attributes": null
          },
          {
            "code": "18367003",
            "description": "Duodenal ulcer with hemorrhage AND obstruction",
            "attributes": null
          },
          {
            "code": "196607008",
            "description": "Esophageal ulcer caused by aspirin",
            "attributes": null
          },
          {
            "code": "196609006",
            "description": "Barrett's ulcer of esophagus",
            "attributes": null
          },
          {
            "code": "196632005",
            "description": "Acute gastric ulcer with obstruction",
            "attributes": null
          },
          {
            "code": "196639001",
            "description": "Chronic gastric ulcer with obstruction",
            "attributes": null
          },
          {
            "code": "196652006",
            "description": "Acute duodenal ulcer",
            "attributes": null
          },
          {
            "code": "196658005",
            "description": "Acute duodenal ulcer with obstruction",
            "attributes": null
          },
          {
            "code": "196666001",
            "description": "Chronic duodenal ulcer with obstruction",
            "attributes": null
          },
          {
            "code": "196671008",
            "description": "Recurrent duodenal ulcer",
            "attributes": null
          },
          {
            "code": "196682000",
            "description": "Acute peptic ulcer",
            "attributes": null
          },
          {
            "code": "196687006",
            "description": "Acute peptic ulcer with obstruction",
            "attributes": null
          },
          {
            "code": "196694009",
            "description": "Chronic peptic ulcer with obstruction",
            "attributes": null
          },
          {
            "code": "196707000",
            "description": "Acute gastrojejunal ulcer",
            "attributes": null
          },
          {
            "code": "196712004",
            "description": "Acute gastrojejunal ulcer with obstruction",
            "attributes": null
          },
          {
            "code": "196719008",
            "description": "Chronic gastrojejunal ulcer with obstruction",
            "attributes": null
          },
          {
            "code": "196775009",
            "description": "Healed gastric ulcer leaving a scar",
            "attributes": null
          },
          {
            "code": "19850005",
            "description": "Acute gastric ulcer with perforation",
            "attributes": null
          },
          {
            "code": "2066005",
            "description": "Gastric ulcer with hemorrhage AND perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "21759003",
            "description": "Gastrojejunal ulcer with perforation AND obstruction",
            "attributes": null
          },
          {
            "code": "22157005",
            "description": "Acute peptic ulcer with hemorrhage but without obstruction",
            "attributes": null
          },
          {
            "code": "221899751000119107",
            "description": "Chronic ulcer of pylorus caused by Helicobacter pylori",
            "attributes": null
          },
          {
            "code": "22511002",
            "description": "Acute duodenal ulcer with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "22620000",
            "description": "Prepyloric ulcer",
            "attributes": null
          },
          {
            "code": "226891000000104",
            "description": "Oversew of blood vessel of duodenal ulcer",
            "attributes": null
          },
          {
            "code": "235232008",
            "description": "Oversewing perforated gastric ulcer",
            "attributes": null
          },
          {
            "code": "235608007",
            "description": "Eosinophilic ulcer of esophagus",
            "attributes": null
          },
          {
            "code": "235609004",
            "description": "Infective ulcer of esophagus",
            "attributes": null
          },
          {
            "code": "235610009",
            "description": "Bacterial ulcer of esophagus",
            "attributes": null
          },
          {
            "code": "235611008",
            "description": "Viral ulcer of esophagus",
            "attributes": null
          },
          {
            "code": "235612001",
            "description": "Protozoal ulcer of esophagus",
            "attributes": null
          },
          {
            "code": "235613006",
            "description": "Ulcer of esophagus caused by radiation",
            "attributes": null
          },
          {
            "code": "235614000",
            "description": "Stress ulceration of esophagus",
            "attributes": null
          },
          {
            "code": "235648004",
            "description": "Acute drug-induced ulcer of stomach",
            "attributes": null
          },
          {
            "code": "235650007",
            "description": "Chronic drug-induced ulcer of stomach",
            "attributes": null
          },
          {
            "code": "235688009",
            "description": "Stress ulcer of duodenum",
            "attributes": null
          },
          {
            "code": "235689001",
            "description": "Cushing ulcer of duodenum",
            "attributes": null
          },
          {
            "code": "235690005",
            "description": "Curling's ulcer of duodenum",
            "attributes": null
          },
          {
            "code": "235702004",
            "description": "Healed gastric ulcer",
            "attributes": null
          },
          {
            "code": "23649000",
            "description": "Cushing ulcer",
            "attributes": null
          },
          {
            "code": "23693000",
            "description": "Acute duodenal ulcer without hemorrhage, without perforation AND without obstruction",
            "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": "24060004",
            "description": "Gastrocolic ulcer",
            "attributes": null
          },
          {
            "code": "245754007",
            "description": "Gastroesophageal reflux disease with ulceration",
            "attributes": null
          },
          {
            "code": "248891000000103",
            "description": "Non-steroidal anti-inflammatory drug induced gastric ulcer",
            "attributes": null
          },
          {
            "code": "250856961000119105",
            "description": "Chronic ulcer of pyloric antrum",
            "attributes": null
          },
          {
            "code": "26221006",
            "description": "Peptic ulcer with hemorrhage, with perforation AND with obstruction",
            "attributes": null
          },
          {
            "code": "266998003",
            "description": "History of peptic ulcer",
            "attributes": null
          },
          {
            "code": "27281001",
            "description": "Duodenal ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "275547005",
            "description": "History of duodenal ulcer",
            "attributes": null
          },
          {
            "code": "275548000",
            "description": "History of gastric ulcer",
            "attributes": null
          },
          {
            "code": "2783007",
            "description": "Gastrojejunal ulcer without hemorrhage AND without perforation",
            "attributes": null
          },
          {
            "code": "2807004",
            "description": "Chronic gastrojejunal ulcer with perforation",
            "attributes": null
          },
          {
            "code": "28082003",
            "description": "Chronic duodenal ulcer without hemorrhage AND without perforation but with obstruction",
            "attributes": null
          },
          {
            "code": "287811008",
            "description": "Perforated peptic ulcer closure",
            "attributes": null
          },
          {
            "code": "28945005",
            "description": "Acute peptic ulcer with hemorrhage, with perforation AND with obstruction",
            "attributes": null
          },
          {
            "code": "29755007",
            "description": "Duodenal ulcer with increased serum pepsinogen I",
            "attributes": null
          },
          {
            "code": "30183003",
            "description": "Gastrojejunal ulcer with perforation",
            "attributes": null
          },
          {
            "code": "3023008",
            "description": "Acute peptic ulcer without hemorrhage, without perforation AND without obstruction",
            "attributes": null
          },
          {
            "code": "30514008",
            "description": "Acute gastrojejunal ulcer without hemorrhage AND without perforation",
            "attributes": null
          },
          {
            "code": "307190008",
            "description": "Laparoscopic closure of perforated gastric ulcer",
            "attributes": null
          },
          {
            "code": "307259004",
            "description": "Suture of gastric ulcer",
            "attributes": null
          },
          {
            "code": "307260009",
            "description": "Suture of duodenal ulcer",
            "attributes": null
          },
          {
            "code": "307510004",
            "description": "Oversewing of bleeding duodenal ulcer",
            "attributes": null
          },
          {
            "code": "307511000",
            "description": "Under-running of bleeding duodenal ulcer",
            "attributes": null
          },
          {
            "code": "307512007",
            "description": "Oversewing of bleeding gastric ulcer",
            "attributes": null
          },
          {
            "code": "30811009",
            "description": "Ulcer of esophagus",
            "attributes": null
          },
          {
            "code": "308882008",
            "description": "Bleeding stress ulcer of stomach",
            "attributes": null
          },
          {
            "code": "31301004",
            "description": "Chronic gastric ulcer with perforation",
            "attributes": null
          },
          {
            "code": "313425006",
            "description": "Multiple gastric ulcers",
            "attributes": null
          },
          {
            "code": "31452001",
            "description": "Gastric ulcer without hemorrhage AND without perforation but with obstruction",
            "attributes": null
          },
          {
            "code": "314632001",
            "description": "Under-running of bleeding gastric ulcer",
            "attributes": null
          },
          {
            "code": "32490005",
            "description": "Acute duodenal ulcer without hemorrhage AND without perforation",
            "attributes": null
          },
          {
            "code": "34021006",
            "description": "Chronic duodenal ulcer with hemorrhage AND obstruction",
            "attributes": null
          },
          {
            "code": "34580000",
            "description": "Duodenal ulcer without hemorrhage, without perforation AND without obstruction",
            "attributes": null
          },
          {
            "code": "34602004",
            "description": "Chronic duodenal ulcer with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "3483000",
            "description": "Chronic peptic ulcer with perforation",
            "attributes": null
          },
          {
            "code": "34921009",
            "description": "Acute peptic ulcer with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "35517004",
            "description": "Gastrojejunal ulcer without hemorrhage, without perforation AND without obstruction",
            "attributes": null
          },
          {
            "code": "35560008",
            "description": "Duodenal ulcer with hemorrhage but without obstruction",
            "attributes": null
          },
          {
            "code": "35681000",
            "description": "Acute peptic ulcer with perforation AND obstruction",
            "attributes": null
          },
          {
            "code": "35892001",
            "description": "Oversewing of perforated duodenal ulcer",
            "attributes": null
          },
          {
            "code": "359574001",
            "description": "Closure of ulcer of duodenum",
            "attributes": null
          },
          {
            "code": "360372005",
            "description": "Gastrorrhaphy for perforated gastric ulcer",
            "attributes": null
          },
          {
            "code": "360374006",
            "description": "Oversewing of peptic ulcer crater",
            "attributes": null
          },
          {
            "code": "360377004",
            "description": "Oversewing of ulcer crater of stomach",
            "attributes": null
          },
          {
            "code": "36246001",
            "description": "Chronic gastric ulcer with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "36975000",
            "description": "Chronic duodenal ulcer with hemorrhage AND perforation",
            "attributes": null
          },
          {
            "code": "37442009",
            "description": "Peptic ulcer without hemorrhage AND without perforation",
            "attributes": null
          },
          {
            "code": "38365000",
            "description": "Peptic ulcer without hemorrhage, without perforation AND without obstruction",
            "attributes": null
          },
          {
            "code": "39204006",
            "description": "Pyloric ulcer",
            "attributes": null
          },
          {
            "code": "39755000",
            "description": "Curling's ulcer",
            "attributes": null
          },
          {
            "code": "397825006",
            "description": "Gastric ulcer",
            "attributes": null
          },
          {
            "code": "40214005",
            "description": "Chronic duodenal ulcer without hemorrhage AND without perforation",
            "attributes": null
          },
          {
            "code": "415624002",
            "description": "Stress ulcer of stomach",
            "attributes": null
          },
          {
            "code": "41626001",
            "description": "Chronic gastrojejunal ulcer without hemorrhage, without perforation AND without obstruction",
            "attributes": null
          },
          {
            "code": "41986000",
            "description": "Acute duodenal ulcer with hemorrhage, with perforation AND with obstruction",
            "attributes": null
          },
          {
            "code": "4269005",
            "description": "Chronic gastrojejunal ulcer without hemorrhage AND without perforation",
            "attributes": null
          },
          {
            "code": "42698006",
            "description": "Gastrojejunal ulcer with hemorrhage AND obstruction",
            "attributes": null
          },
          {
            "code": "43035002",
            "description": "Childhood duodenal ulcer",
            "attributes": null
          },
          {
            "code": "43406003",
            "description": "Acute peptic ulcer with hemorrhage AND obstruction",
            "attributes": null
          },
          {
            "code": "43694004",
            "description": "Acute gastric ulcer with perforation AND obstruction",
            "attributes": null
          },
          {
            "code": "439955006",
            "description": "Ulcerative esophagitis",
            "attributes": null
          },
          {
            "code": "442805003",
            "description": "Incision of stomach and suture of bleeding gastric ulcer",
            "attributes": null
          },
          {
            "code": "45485004",
            "description": "Acute peptic ulcer without hemorrhage AND without perforation",
            "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": "47152002",
            "description": "Gastrojejunal ulcer without hemorrhage AND without perforation but with obstruction",
            "attributes": null
          },
          {
            "code": "48336009",
            "description": "Peptic ulcer with perforation AND 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": "4911000119101",
            "description": "Antral ulcer",
            "attributes": null
          },
          {
            "code": "49232000",
            "description": "Chronic peptic ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "49916007",
            "description": "Chronic duodenal ulcer with perforation",
            "attributes": null
          },
          {
            "code": "500790491000119109",
            "description": "Acute gastric ulcer caused by Cytomegalovirus",
            "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": "51868009",
            "description": "Ulcer of duodenum",
            "attributes": null
          },
          {
            "code": "53132006",
            "description": "Zollinger-Ellison syndrome",
            "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": "54053008",
            "description": "Acute gastric ulcer without hemorrhage, without perforation AND without obstruction",
            "attributes": null
          },
          {
            "code": "54157007",
            "description": "Peptic ulcer without hemorrhage AND without perforation but with obstruction",
            "attributes": null
          },
          {
            "code": "54798007",
            "description": "Gastrojejunal ulcer with hemorrhage, with perforation and with obstruction",
            "attributes": null
          },
          {
            "code": "5492000",
            "description": "Chronic peptic ulcer without hemorrhage AND without perforation",
            "attributes": null
          },
          {
            "code": "55483002",
            "description": "Chronic gastric ulcer 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": "56579005",
            "description": "Chronic gastrojejunal ulcer without hemorrhage AND without perforation but with obstruction",
            "attributes": null
          },
          {
            "code": "56776001",
            "description": "Duodenal ulcer without hemorrhage AND without perforation",
            "attributes": null
          },
          {
            "code": "57246001",
            "description": "Chronic gastric ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "57748001",
            "description": "Bleeding ulcer of esophagus",
            "attributes": null
          },
          {
            "code": "57871005",
            "description": "Chronic peptic ulcer with perforation AND obstruction",
            "attributes": null
          },
          {
            "code": "57940000",
            "description": "Chronic duodenal ulcer without hemorrhage, without perforation AND without obstruction",
            "attributes": null
          },
          {
            "code": "58085004",
            "description": "Acute peptic ulcer without hemorrhage AND without perforation but with obstruction",
            "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": "59913009",
            "description": "Gastric ulcer without hemorrhage, without perforation AND without obstruction",
            "attributes": null
          },
          {
            "code": "60400003",
            "description": "Chronic peptic ulcer without hemorrhage, without perforation AND without obstruction",
            "attributes": null
          },
          {
            "code": "60531007",
            "description": "Chronic gastric ulcer without hemorrhage AND without perforation but with obstruction",
            "attributes": null
          },
          {
            "code": "60551006",
            "description": "Chronic duodenal ulcer with perforation AND obstruction",
            "attributes": null
          },
          {
            "code": "61300005",
            "description": "Chronic peptic ulcer with hemorrhage AND perforation",
            "attributes": null
          },
          {
            "code": "61347001",
            "description": "Acute duodenal ulcer with perforation",
            "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": "62465000",
            "description": "Ulcer of esophagus caused by ingestion of corrosive chemical",
            "attributes": null
          },
          {
            "code": "62477005",
            "description": "Chronic gastrojejunal ulcer with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "62838000",
            "description": "Chronic gastrojejunal ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "62936002",
            "description": "Acute duodenal ulcer with perforation AND obstruction",
            "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": "64595005",
            "description": "Ulcer of esophagus caused by ingestion of medicine",
            "attributes": null
          },
          {
            "code": "66636001",
            "description": "Acute gastrojejunal ulcer with perforation",
            "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": "6761005",
            "description": "Familial hypergastrinemic duodenal ulcer",
            "attributes": null
          },
          {
            "code": "67964002",
            "description": "Acute gastric ulcer without hemorrhage AND without perforation",
            "attributes": null
          },
          {
            "code": "683509791000119109",
            "description": "Acute ulcer of pylorus caused by Helicobacter pylori",
            "attributes": null
          },
          {
            "code": "68834009",
            "description": "Giant duodenal ulcer",
            "attributes": null
          },
          {
            "code": "698496004",
            "description": "Patch repair of perforated duodenal ulcer",
            "attributes": null
          },
          {
            "code": "70418001",
            "description": "Acute gastric ulcer with hemorrhage but without obstruction",
            "attributes": null
          },
          {
            "code": "708644006",
            "description": "Laparoscopic closure of ulcer of stomach using patch",
            "attributes": null
          },
          {
            "code": "708645007",
            "description": "Laparoscopic closure of ulcer of duodenum using patch",
            "attributes": null
          },
          {
            "code": "713638002",
            "description": "Gastric ulcer caused by drug",
            "attributes": null
          },
          {
            "code": "717848003",
            "description": "Ulcer of esophagus due to gastro-esophageal reflux disease with complication",
            "attributes": null
          },
          {
            "code": "717849006",
            "description": "Ulcer of esophagus due to gastro-esophageal reflux disease without complication",
            "attributes": null
          },
          {
            "code": "717863000",
            "description": "Peptic anastomotic ulcer",
            "attributes": null
          },
          {
            "code": "717878007",
            "description": "Eosinophilic duodenal ulcer",
            "attributes": null
          },
          {
            "code": "717879004",
            "description": "Lymphocytic duodenal ulcer",
            "attributes": null
          },
          {
            "code": "717890009",
            "description": "Anastomotic ulcer due to Zollinger-Ellison syndrome",
            "attributes": null
          },
          {
            "code": "717891008",
            "description": "Gastric ulcer due to Zollinger-Ellison syndrome",
            "attributes": null
          },
          {
            "code": "717892001",
            "description": "Duodenal ulcer due to Zollinger-Ellison syndrome",
            "attributes": null
          },
          {
            "code": "72219001",
            "description": "Acute gastrojejunal ulcer with perforation AND obstruction",
            "attributes": null
          },
          {
            "code": "722200003",
            "description": "Duodenal ulcer caused by non-steroidal anti-inflammatory drug",
            "attributes": null
          },
          {
            "code": "723099007",
            "description": "Gastric ulcer caused by bacterium",
            "attributes": null
          },
          {
            "code": "723100004",
            "description": "Gastric ulcer caused by virus",
            "attributes": null
          },
          {
            "code": "723101000",
            "description": "Gastric ulcer caused by fungus",
            "attributes": null
          },
          {
            "code": "723102007",
            "description": "Gastric ulcer due to parasitic infection",
            "attributes": null
          },
          {
            "code": "723103002",
            "description": "Gastric ulcer caused by alcohol",
            "attributes": null
          },
          {
            "code": "723104008",
            "description": "Gastric ulcer caused by ionizing radiation",
            "attributes": null
          },
          {
            "code": "723105009",
            "description": "Gastric ulcer caused by chemical",
            "attributes": null
          },
          {
            "code": "723884008",
            "description": "Duodenal ulcer caused by bacterium",
            "attributes": null
          },
          {
            "code": "72395008",
            "description": "Acute gastrojejunal ulcer with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "72408002",
            "description": "Acute gastrojejunal ulcer with hemorrhage and obstruction",
            "attributes": null
          },
          {
            "code": "724516001",
            "description": "Ulcer of esophagus caused by thermal agent",
            "attributes": null
          },
          {
            "code": "724519008",
            "description": "Gastric ulcer caused by Helicobacter pylori and non-steroidal anti-inflammatory agent",
            "attributes": null
          },
          {
            "code": "724520002",
            "description": "Ulcer of stomach due to eosinophilic gastritis",
            "attributes": null
          },
          {
            "code": "724521003",
            "description": "Ulcer of stomach due to lymphocytic gastritis",
            "attributes": null
          },
          {
            "code": "724522005",
            "description": "Anastomotic ulcer of stomach caused by Helicobacter pylori",
            "attributes": null
          },
          {
            "code": "724523000",
            "description": "Anastomotic ulcer of stomach caused by drug",
            "attributes": null
          },
          {
            "code": "724528009",
            "description": "Duodenal ulcer caused by Helicobacter pylori",
            "attributes": null
          },
          {
            "code": "724529001",
            "description": "Duodenal ulcer caused by drug",
            "attributes": null
          },
          {
            "code": "724530006",
            "description": "Duodenal ulcer caused by Helicobacter pylori and non-steroidal anti-inflammatory agent",
            "attributes": null
          },
          {
            "code": "724531005",
            "description": "Ulcer of duodenum caused by ionizing radiation",
            "attributes": null
          },
          {
            "code": "724532003",
            "description": "Ulcer of duodenum caused by chemical",
            "attributes": null
          },
          {
            "code": "724533008",
            "description": "Duodenal ulcer caused by virus",
            "attributes": null
          },
          {
            "code": "724534002",
            "description": "Duodenal ulcer caused by fungus",
            "attributes": null
          },
          {
            "code": "72486001",
            "description": "Gastric ulcer with perforation AND obstruction",
            "attributes": null
          },
          {
            "code": "733147004",
            "description": "Parasitic infection causing ulcer of esophagus",
            "attributes": null
          },
          {
            "code": "73481001",
            "description": "Gastric ulcer without hemorrhage AND without perforation",
            "attributes": null
          },
          {
            "code": "737189006",
            "description": "Ulcer of esophagus due to allergic disorder",
            "attributes": null
          },
          {
            "code": "737190002",
            "description": "Ulcer of esophagus due to disorder of immune system",
            "attributes": null
          },
          {
            "code": "738791006",
            "description": "Cushing ulcer of stomach",
            "attributes": null
          },
          {
            "code": "738792004",
            "description": "Cushing ulcer of esophagus",
            "attributes": null
          },
          {
            "code": "74341002",
            "description": "Chronic gastric ulcer with hemorrhage AND with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "75342000",
            "description": "Acute duodenal ulcer without hemorrhage AND without perforation but with 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": "762274007",
            "description": "Ulcer of stomach due to infection",
            "attributes": null
          },
          {
            "code": "762276009",
            "description": "Ulcer of duodenum due to infection",
            "attributes": null
          },
          {
            "code": "76338009",
            "description": "Normopepsinogenemic familial duodenal ulcer",
            "attributes": null
          },
          {
            "code": "76796008",
            "description": "Chronic gastric ulcer without hemorrhage AND without perforation",
            "attributes": null
          },
          {
            "code": "77410006",
            "description": "Duodenal ulcer with perforation AND obstruction",
            "attributes": null
          },
          {
            "code": "77661009",
            "description": "Chronic peptic ulcer with hemorrhage, with perforation AND with obstruction",
            "attributes": null
          },
          {
            "code": "77987006",
            "description": "Acute gastrojejunal ulcer without hemorrhage, without perforation AND without obstruction",
            "attributes": null
          },
          {
            "code": "78054007",
            "description": "Postpyloric ulcer",
            "attributes": null
          },
          {
            "code": "781203005",
            "description": "Curling's ulcer of stomach",
            "attributes": null
          },
          {
            "code": "782935003",
            "description": "Tremor, nystagmus, duodenal ulcer syndrome",
            "attributes": null
          },
          {
            "code": "786068005",
            "description": "Peptic ulcer with obstruction",
            "attributes": null
          },
          {
            "code": "79118000",
            "description": "Acute peptic ulcer with perforation",
            "attributes": null
          },
          {
            "code": "79806007",
            "description": "Combined gastric AND duodenal ulcer",
            "attributes": null
          },
          {
            "code": "80953005",
            "description": "Chronic peptic ulcer with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "81142005",
            "description": "Chronic duodenal ulcer with hemorrhage AND with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "81225008",
            "description": "Acute gastric ulcer without hemorrhage AND without perforation but with 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": "8322005",
            "description": "Closure of stomach ulcer",
            "attributes": null
          },
          {
            "code": "84038009",
            "description": "Gastric ulcer with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "840591006",
            "description": "Duodenal ulcer caused by platelet aggregation inhibitor",
            "attributes": null
          },
          {
            "code": "840592004",
            "description": "Gastric ulcer caused by platelet aggregation inhibitor",
            "attributes": null
          },
          {
            "code": "84124004",
            "description": "Gastrojejunal ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "849591000000103",
            "description": "Gastric ulcer with obstruction",
            "attributes": null
          },
          {
            "code": "849601000000109",
            "description": "Duodenal ulcer with obstruction",
            "attributes": null
          },
          {
            "code": "849621000000100",
            "description": "Gastrojejunal ulcer with obstruction",
            "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": "865912001",
            "description": "Exacerbation of peptic ulcer",
            "attributes": null
          },
          {
            "code": "86895006",
            "description": "Acute duodenal ulcer with hemorrhage AND perforation",
            "attributes": null
          },
          {
            "code": "86983005",
            "description": "Duodenal ulcer with perforation but without obstruction",
            "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": "88169003",
            "description": "Peptic ulcer with perforation",
            "attributes": null
          },
          {
            "code": "88700009",
            "description": "Fungal ulcer of esophagus",
            "attributes": null
          },
          {
            "code": "88968005",
            "description": "Duodenal ulcer with perforation",
            "attributes": null
          },
          {
            "code": "89469000",
            "description": "Chronic duodenal ulcer with hemorrhage",
            "attributes": null
          },
          {
            "code": "89600751000119100",
            "description": "Acute ulcer of pyloric antrum",
            "attributes": null
          },
          {
            "code": "89662003",
            "description": "Helicobacter-associated pyloric ulcer",
            "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": "90628007",
            "description": "Acute gastric ulcer with perforation but without obstruction",
            "attributes": null
          },
          {
            "code": "95529005",
            "description": "Acute gastric ulcer",
            "attributes": null
          },
          {
            "code": "95530000",
            "description": "Chronic gastric ulcer",
            "attributes": null
          },
          {
            "code": "96720031000119104",
            "description": "Chronic ulcer of stomach caused by Helicobacter pylori",
            "attributes": null
          },
          {
            "code": "9829001",
            "description": "Gastric ulcer with perforation",
            "attributes": null
          }
        ]
      }
    ],
    "coding_system_release": "",
    "open_codelist_version_id": "3a8f1b9b",
    "open_codelist_version_tag": "20250912",
    "status": 1,
    "doi": "https://doi.org/10.48533/ne33-p155",
    "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": 7382,
        "version_name": "Peptic ulceration codes",
        "version_date": "2026-01-26T22:50:46.159053Z",
        "is_published": true,
        "is_latest": true
      },
      {
        "version_id": 7381,
        "version_name": "Peptic ulceration codes",
        "version_date": "2026-01-26T22:50:44.217245Z",
        "is_published": true,
        "is_latest": false
      },
      {
        "version_id": 7380,
        "version_name": "Peptic ulceration codes",
        "version_date": "2026-01-26T22:50:42.348688Z",
        "is_published": true,
        "is_latest": false
      }
    ]
  }
]