Moderate or severe liver disease - Charlson 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


Moderate or severe liver disease comorbidity category for Charlson index, defined in Read codes for primary care by David Metcalfe et. al. The Charlson comorbidity index score for this phenotype is 3.


  • 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).

  • Charlson ME, Pompei P, Ales KL, et al. A new method of classifying prognostic comorbidity in longitudinal studies: development and validation. J Chronic Dis. 1987;40(5):373–83.

  • 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: 35
Code Description Medcode
573 B HEPATIC COMA 202263
7609.00 Open operations on oesophageal varices 24220
7609300 Local ligation of oesophageal varices 43404
7609400 Open injection sclerotherapy to oesophageal varices 20912
7609y00 Other specified open operation on oesophageal varices 107975
7609z00 Open operation on oesophageal varices NOS 20233
760C300 Fibreoptic endoscopic injection sclerotherapy oesoph varices 11960
760C500 Fibreoptic endoscopic banding of oesophageal varices 16759
760F300 Rigid oesophagoscopic injection sclerotherapy oesoph varices 47214
760F400 Rigid oesophagoscopic banding of oesophageal varices 46647
A700.00 Viral hepatitis A with coma 55962
A702.00 Viral hepatitis B with coma 69053
A704.00 Other specified viral hepatitis with coma 69552
A704000 Viral hepatitis C with coma 65050
A704z00 Other specified viral hepatitis with hepatic coma NOS 89587
G85..11 Oesophageal varices 1641
G850.00 Oesophageal varices with bleeding 24989
G851.00 Oesophageal varices without bleeding 30655
G852.00 Oesophageal varices in diseases EC 44424
G852000 Oesophageal varices with bleeding in diseases EC 96756
G852100 Oesophageal varices without bleeding in diseases EC 73139
G852200 Oesophageal varices in cirrhosis of the liver 26319
G852300 Oesophageal varices in alcoholic cirrhosis of the liver 8363
G852z00 Oesophageal varices in diseases EC NOS 62582
G858.00 Oesophageal varices NOS 10797
Gyu9400 [X]Oesophageal varices in diseases classified elsewhere 105611
J622.00 Hepatic coma 23511
J622.11 Encephalopathy - hepatic 22411
J623.00 Portal hypertension 5129
J624.00 Hepatorenal syndrome 10636
J62y.00 Other sequelae of chronic liver disease 216331
J62z.00 Liver abscess and chronic liver disease causing sequelae NOS 225440
SP14300 Hepatorenal syndrome as a complication of care 10721


To Export Phenotype Details:

Format API
XML site_root/api/v1/public/phenotypes/PH1061/version/2325/detail/?format=xml
JSON site_root/api/v1/public/phenotypes/PH1061/version/2325/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('PH1061', '2325', api_client=client)

To Export Phenotype Code List:

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

# Download here


# Connect to API

client = connect_to_API(public=TRUE)

# Get codelists of phenotype

codelists = get_phenotype_code_list('PH1061', '2325', api_client=client)

Version History

Name Owner Publish date
2325 Moderate or severe liver disease - Charlson 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.