Peptic ulcer disease - Elixhauser primary care

David Metcalfe, James Masters, Antonella Delmestri, Andrew Judge, Daniel Perry, Cheryl Zogg, Belinda Gabbe, Matthew Costa

Version ID
Disease or Syndrome
Data Sources
♀  Female ♂  Male
Agreement Date
Coding system
Read codes v2
Phenotype Library
Comorbidity Index


Peptic ulcer disease comorbidity category for Elixhauser index, defined in Read codes for primary care by David Metcalfe et. al.


  • Metcalfe, D., Masters, J., Delmestri, A. et al. Coding algorithms for defining Charlson and Elixhauser co-morbidities in Read-coded databases. BMC Med Res Methodol 19, 115 (2019).

  • Elixhauser A, Steiner C, Harris DR, et al. Comorbidity measures for use with administrative data. Med Care. 1998;36(1):8–27.

  • Lyons J, Akbari A, Agrawal U, et al Protocol for the development of the Wales Multimorbidity e-Cohort (WMC): data sources and methods to construct a population-based research platform to investigate multimorbidity BMJ Open 2021;11:e047101. doi: 10.1136/bmjopen-2020-047101

Clinical Code List

Rows: 103
Code Description Medcode
14C1.00 H/O: peptic ulcer 2812
14C1.11 H/O: duodenal ulcer 6321
14C1.12 H/O: gastric ulcer 7108
7612111 Balfour excision of gastric ulcer 92695
7612500 Resection of gastric ulcer by cautery 64710
761J.00 Operations on gastric ulcer 23688
761J.11 Stomach ulcer operations 6865
761J000 Closure of perforated gastric ulcer 20677
761J100 Closure of gastric ulcer NEC 64014
761J111 Suture of ulcer of stomach NEC 70005
761Jy00 Other specified operation on gastric ulcer 94104
761Jz00 Operation on gastric ulcer NOS 33914
7627.00 Operations on duodenal ulcer 5928
7627000 Closure of perforated duodenal ulcer 4741
7627100 Suture of duodenal ulcer not elsewhere classified 37268
7627y00 Other specified operation on duodenal ulcer 56005
7627z00 Operation on duodenal ulcer NOS 55933
J102000 Peptic ulcer of oesophagus 24021
J11..00 Gastric ulcer - (GU) 1262
J11..11 Prepyloric ulcer 6333
J11..12 Pyloric ulcer 3101
J110.00 Acute gastric ulcer 24040
J110000 Acute gastric ulcer without mention of complication 64165
J110200 Acute gastric ulcer with perforation 14671
J110400 Acute gastric ulcer with obstruction 109546
J110y00 Acute gastric ulcer unspecified 24342
J110z00 Acute gastric ulcer NOS 44324
J111.00 Chronic gastric ulcer 18654
J111000 Chronic gastric ulcer without mention of complication 48946
J111200 Chronic gastric ulcer with perforation 53336
J111211 Perforated chronic gastric ulcer 11104
J111400 Chronic gastric ulcer with obstruction 67356
J111y00 Chronic gastric ulcer unspecified 64556
J111z00 Chronic gastric ulcer NOS 44309
J112.00 Anti-platelet induced gastric ulcer 63001
J112z00 Anti-platelet induced gastric ulcer NOS 89227
J113.00 Non steroidal anti inflammatory drug induced gastric ulcer 89023
J11y.00 Unspecified gastric ulcer 53081
J11y000 Unspecified gastric ulcer without mention of complication 73338
J11y200 Unspecified gastric ulcer with perforation 36461
J11y400 Unspecified gastric ulcer with obstruction 73697
J11yz00 Unspecified gastric ulcer NOS 44284
J11z.00 Gastric ulcer NOS 29771
J11z.12 Multiple gastric ulcers 52323
J12..00 Duodenal ulcer - (DU) 352
J120.00 Acute duodenal ulcer 18027
J120000 Acute duodenal ulcer without mention of complication 44335
J120200 Acute duodenal ulcer with perforation 18324
J120400 Acute duodenal ulcer with obstruction 73417
J120y00 Acute duodenal ulcer unspecified 53822
J120z00 Acute duodenal ulcer NOS 53797
J121.00 Chronic duodenal ulcer 9853
J121000 Chronic duodenal ulcer without mention of complication 33438
J121200 Chronic duodenal ulcer with perforation 37643
J121211 Perforated chronic duodenal ulcer 23087
J121400 Chronic duodenal ulcer with obstruction 44073
J121y00 Chronic duodenal ulcer unspecified 52138
J121z00 Chronic duodenal ulcer NOS 51406
J122.00 Duodenal ulcer disease 22918
J123.00 Duodenal erosion 3462
J124.00 Recurrent duodenal ulcer 29317
J125.00 Anti-platelet induced duodenal ulcer 89234
J126.00 Non steroidal anti inflammatory drug induced duodenal ulcer 85989
J12y.00 Unspecified duodenal ulcer 53669
J12y000 Unspecified duodenal ulcer without mention of complication 71150
J12y200 Unspecified duodenal ulcer with perforation 657
J12y400 Unspecified duodenal ulcer with obstruction 71904
J12yz00 Unspecified duodenal ulcer NOS 65737
J12z.00 Duodenal ulcer NOS 15175
J13..00 Peptic ulcer - (PU) site unspecified 670
J13..11 Stress ulcer NOS 15821
J130.00 Acute peptic ulcer 32856
J130000 Acute peptic ulcer without mention of complication 68661
J130200 Acute peptic ulcer with perforation 5521
J130y00 Acute peptic ulcer unspecified 67711
J130z00 Acute peptic ulcer NOS 50048
J131.00 Chronic peptic ulcer 40997
J131000 Chronic peptic ulcer without mention of complication 99430
J131200 Chronic peptic ulcer with perforation 37620
J131400 Chronic peptic ulcer with obstruction 52313
J131y00 Chronic peptic ulcer unspecified 70390
J131z00 Chronic peptic ulcer NOS 69663
J13y.00 Unspecified peptic ulcer 50497
J13y000 Unspecified peptic ulcer without mention of complication 67082
J13y200 Unspecified peptic ulcer with perforation 64111
J13y400 Unspecified peptic ulcer with obstruction 99670
J13yz00 Unspecified peptic ulcer NOS 60249
J13z.00 Peptic ulcer NOS 19928
J14..00 Gastrojejunal ulcer (GJU) 23082
J14..12 Gastrocolic ulcer 64913
J14..13 Jejunal ulcer 9981
J140.00 Acute gastrojejunal ulcer 45184
J140200 Acute gastrojejunal ulcer with perforation 102177
J140z00 Acute gastrojejunal ulcer NOS 42274
J141.00 Chronic gastrojejunal ulcer 96090
J14y.00 Unspecified gastrojejunal ulcer 63482
J14y200 Unspecified gastrojejunal ulcer with perforation 15979
J14yz00 Unspecified gastrojejunal ulcer NOS 66092
J14z.00 Gastrojejunal ulcer NOS 15403
J17y800 Healed gastric ulcer leaving a scar 18319
ZV12711 [V]Personal history of peptic ulcer 26261
ZV12712 [V]Personal history of duodenal ulcer 40489
ZV12C00 [V] Personal history of gastric ulcer 41271


To Export Phenotype Details:

Format API
XML site_root/api/v1/public/phenotypes/PH1091/version/2385/detail/?format=xml
JSON site_root/api/v1/public/phenotypes/PH1091/version/2385/detail/?format=json
R Package

# Download here


# Connect to API

client = connect_to_API(public=TRUE)

# Get details of phenotype

details = get_phenotype_detail_by_version('PH1091', '2385', api_client=client)

To Export Phenotype Code List:

Format API
XML site_root/api/v1/public/phenotypes/PH1091/version/2385/export/codes/?format=xml
JSON site_root/api/v1/public/phenotypes/PH1091/version/2385/export/codes/?format=json
CSV site_root/phenotypes/PH1091/version/2385/export/codes/
R Package

# Download here


# Connect to API

client = connect_to_API(public=TRUE)

# Get codelists of phenotype

codelists = get_phenotype_code_list('PH1091', '2385', api_client=client)

Version History

Name Owner Publish date
2385 Peptic ulcer disease - Elixhauser primary care coldeaa 2023-02-14 currently shown

Export - export all codes into a csv file/JSON/XML for the current phenotype version.

Print - Print page.