Liver 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


Liver 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: 224
Code Description Medcode
141E.00 History of hepatitis B 30729
141F.00 History of viral hepatitis 100405
14C5.00 H/O: liver disease 8155
14i..00 H/O hepatitis C antiviral drug therapy 104277
2J2..00 Hepatitis A status 11784
2J23.00 Hepatitis A - current infection 33645
43B4.00 Hepatitis B surface antig +ve 27175
43B5.00 Hepatitis e antigen present 27174
43M2.00 Hepatitis A test positive 27250
43j5.00 Hepatitis C nucleic acid detection 27191
43jG.00 Hepatitis B nucleic acid detection 33316
43jJ.00 Hepatitis D nucleic acid detection 69878
43jW.00 Hepatitis E nucleic acid detection 58641
43k0.00 Hepatitis B e antigen level 14512
43w7.00 Hepatitis A nucleic acid detection 106284
4JQ3.00 Hepatitis C virus genotype 35589
4JQD.00 Hepatitis C viral ribonucleic acid PCR positive 102568
4JQD.11 Hepatitis C PCR positive 102565
4JQF.00 Hepatitis C antigen positive 104243
65Q7.00 Viral hepatitis carrier 6800
65V3.11 Hepatitis notification 11271
67P4200 Discussion about liver transplantation 106575
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
7800111 Auxillary liver transplant 89445
7800112 Piggy back liver transplant 100073
7800200 Replacement of previous liver transplant 69194
7805211 Exploration of liver transplant 47861
7L1f.00 Compensation for liver failure 88994
7L1fz00 Compensation for liver failure NOS 97650
7Q05200 Hepatitis B treatment drugs Band 1 100834
7Q05300 RSV treatment and Hepatitis C treatment drugs Band 1 96192
8LH..00 Liver transplant planned 105758
9NgR.00 On hepatitis C treatment plan 104572
9Op1.00 Hepatitis C screening offered 69068
9kR..00 Chronic hepatitis annual review - enhanced services admin 99898
9kV..00 Hepatitis C screening positive - enhanced services admin 96085
9kV..11 Hepatitis C screening positive 98903
9kX..00 Hepatitis status 6 months post treatment - enhanced serv adm 103362
9kZ..00 Hepatitis B screening positive - enhanced services admin 95926
9kZ..11 Hepatitis B screening positive 97735
A053.00 Amoebic liver abscess 29021
A70..00 Viral hepatitis 3146
A700.00 Viral hepatitis A with coma 55962
A701.00 Viral (infectious) hepatitis A 3142
A701.11 Infective hepatitis 1440
A702.00 Viral hepatitis B with coma 69053
A703.00 Viral (serum) hepatitis B 2860
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
A705.00 Other specified viral hepatitis without coma 30926
A705000 Viral hepatitis C without mention of hepatic coma 2834
A705100 Acute delta-(super)infection of hepatitis B carrier 32657
A705200 Acute hepatitis E 52365
A705400 Hepatitis non A non B 19418
A705z00 Other specified viral hepatitis without mention of coma NOS 65335
A707.00 Chronic viral hepatitis 26367
A707000 Chronic viral hepatitis B with delta-agent 24813
A707100 Chronic viral hepatitis B without delta-agent 41096
A707200 Chronic viral hepatitis C 30586
A707300 Chronic viral hepatitis B 106642
A707X00 Chronic viral hepatitis, unspecified 32277
A709.00 Viral hepatitis without hepatic coma 106017
A70A.00 Hepatitis C genotype 1 104341
A70B.00 Hepatitis C genotype 2 105664
A70C.00 Hepatitis C genotype 3 104346
A70D.00 Hepatitis C genotype 4 104892
A70G.00 Acute hepatitis C 104579
A70z.00 Unspecified viral hepatitis 20137
A70z000 Hepatitis C 2413
A70z100 Acute viral hepatitis NOS 104435
A72x000 Mumps hepatitis 70649
A785200 Cytomegaloviral hepatitis 34087
A916100 Secondary syphilitic hepatitis 70966
A98yy11 Gonococcal hepatitis 71114
A98yy13 Gonococcal perihepatitis 93945
AD05.00 Toxoplasma hepatitis 66185
AE23.00 Sequelae of viral hepatitis 45939
AyuB.00 [X]Viral hepatitis 68967
AyuB000 [X]Other specified acute viral hepatitis 98805
AyuB100 [X]Other chronic viral hepatitis 108343
AyuB200 [X]Chronic viral hepatitis, unspecified 107896
AyuJ900 [X]Sequelae of viral hepatitis 101954
BB5D411 [M]Hepatocellular adenoma 52492
C310400 Glycogenosis with hepatic cirrhosis 19512
C350012 Pigmentary cirrhosis of liver 8206
C370800 Cystic fibrosis related cirrhosis 102922
C376100 Alpha-1-antitrypsin hepatitis 25589
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
J600011 Acute liver failure 39945
J600100 Acute hepatitis - noninfective 15855
J601100 Subacute hepatitis - noninfective 22168
J61..00 Cirrhosis and chronic liver disease 6863
J612.11 Florid cirrhosis 68376
J612.12 Laennec's cirrhosis 100474
J614.00 Chronic hepatitis 1754
J614000 Chronic persistent hepatitis 23578
J614100 Chronic active hepatitis 9029
J614111 Autoimmune chronic active hepatitis 7957
J614200 Chronic aggressive hepatitis 1755
J614300 Recurrent hepatitis 53480
J614400 Chronic lobular hepatitis 66534
J614y00 Chronic hepatitis unspecified 53877
J614z00 Chronic hepatitis NOS 15489
J615.00 Cirrhosis - non alcoholic 16725
J615.11 Portal cirrhosis 47257
J615100 Multilobular portal cirrhosis 69204
J615300 Diffuse nodular cirrhosis 3450
J615400 Fatty portal cirrhosis 44676
J615500 Hypertrophic portal cirrhosis 92909
J615600 Capsular portal cirrhosis 40567
J615700 Cardiac portal cirrhosis 27438
J615711 Congestive cirrhosis 108819
J615800 Juvenile portal cirrhosis 96664
J615812 Indian childhood cirrhosis 58184
J615C00 Xanthomatous portal cirrhosis 100253
J615D00 Bacterial portal cirrhosis 73482
J615G00 Zooparasitic portal cirrhosis 109540
J615H00 Infectious cirrhosis NOS 48928
J615y00 Portal cirrhosis unspecified 55454
J615z00 Non-alcoholic cirrhosis NOS 16455
J615z11 Macronodular cirrhosis of liver 22841
J615z12 Cryptogenic cirrhosis of liver 18739
J615z13 Cirrhosis of liver NOS 1638
J616.00 Biliary cirrhosis 9494
J616000 Primary biliary cirrhosis 5638
J616100 Secondary biliary cirrhosis 15424
J616200 Biliary cirrhosis of children 91591
J616z00 Biliary cirrhosis NOS 58630
J617.00 Alcoholic hepatitis 7943
J61y.00 Other non-alcoholic chronic liver disease 42843
J61y300 Portal fibrosis without cirrhosis 40963
J61y800 Nonalcoholic steatohepatitis 98148
J61yz00 Other non-alcoholic chronic liver disease NOS 33597
J61z.00 Chronic liver disease NOS 10539
J62..00 Liver abscess and sequelae of chronic liver disease 31897
J620.00 Liver abscess - excluding amoebic liver abscess 46023
J620000 Liver abscess due to portal pyaemia 68692
J620100 Liver abscess due to cholangitis 25341
J620200 Liver abscess via hepatic artery 103715
J620300 Liver abscess via umbilicus 70524
J620z00 Liver abscess NOS 4454
J622.00 Hepatic coma 23511
J623.00 Portal hypertension 5129
J624.00 Hepatorenal syndrome 10636
J625.11 [X] Liver failure 21769
J62y.00 Other sequelae of chronic liver disease 48102
J62y.12 Liver failure NOS 23775
J62z.00 Liver abscess and chronic liver disease causing sequelae NOS 108800
J631.00 Hepatitis in viral diseases EC 41237
J631000 Hepatitis in coxsackie virus 71785
J631100 Hepatitis in cytomegalic inclusion virus 4406
J631200 Hepatitis in infectious mononucleosis 7947
J631400 Hepatitis in yellow fever 98609
J631500 Hepatitis in other viral disease 58876
J631600 Hepatitis + adenovirus 101535
J631z00 Hepatitis in viral diseases EC NOS 42222
J632.00 Hepatitis in other infectious diseases EC 34358
J632000 Hepatitis in malaria 1467
J632200 Hepatitis in secondary syphilis 63456
J632300 Hepatitis in toxoplasmosis 104686
J632z00 Hepatitis in infectious diseases EC NOS 42289
J633.00 Hepatitis unspecified 899
J633000 Toxic hepatitis 15562
J633z00 Hepatitis unspecified NOS 5219
J635.00 Toxic liver disease 36727
J635000 Toxic liver disease with cholestasis 22766
J635100 Toxic liver disease with hepatic necrosis 36107
J635200 Toxic liver disease with acute hepatitis 41104
J635300 Toxic liver disease with chronic persistent hepatitis 17219
J635400 Toxic liver disease with chronic lobular hepatitis 64750
J635500 Toxic liver disease with chronic active hepatitis 39351
J635600 Toxic liver disease with fibrosis and cirrhosis of liver 44120
J635X00 Toxic liver disease, unspecified 41673
J63B.00 Autoimmune hepatitis 18652
J63X.00 Granulomatous hepatitis, not elsewhere classified 27663
J63y100 Nonspecific reactive hepatitis 28798
J661700 Primary sclerosing cholangitis 15425
J661800 Secondary sclerosing cholangitis 35667
J661900 Sclerosing cholangitis unspecified 44791
Jyu7100 [X]Other and unspecified cirrhosis of liver 6015
Jyu7200 [X]Other specified inflammatory liver diseases 107897
Jyu7600 [X]Toxic liver disease, unspecified 106025
Jyu7700 [X]Granulomatous hepatitis, not elsewhere classified 53861
L176500 Viral hepatitis comp pregnancy, childbirth & the puerperium 59573
PB62.00 Congenital cystic liver disease 27565
PB62000 Congenital polycystic liver disease 18195
PB62100 Fibrocystic liver disease 28350
PB62z00 Congenital cystic liver disease NOS 72000
Q409.00 Congenital viral hepatitis 67779
Q409000 Congenital hepatitis A infection 40762
Q409100 Congenital hepatitis B infection 50245
Q409z00 Congenital viral hepatitis NOS 107622
Q434000 Perinatal hepatitis causing jaundice, unspecified 35625
Q434100 Giant cell hepatitis causing neonatal jaundice 104225
SP08600 Liver transplant failure and rejection 6692
SP14211 Liver failure as a complication of care 17222
SP14300 Hepatorenal syndrome as a complication of care 10721
TB00200 Liver transplant with complication, without blame 31997
ZC2CH11 Dietary advice for liver disease 96638
ZV02600 [V]Viral hepatitis carrier 16766
ZV02612 [V]Hepatitis Australia antigen carrier 34893
ZV02B00 [V]Hepatitis B carrier 11431
ZV02C00 [V]Hepatitis C carrier 28703
ZV42700 [V]Liver transplanted 9026
ZV7C000 [V]Assessment for liver transplant 25700


To Export Phenotype Details:

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

To Export Phenotype Code List:

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

# Download here


# Connect to API

client = connect_to_API(public=TRUE)

# Get codelists of phenotype

codelists = get_phenotype_code_list('PH1085', '2373', api_client=client)

Version History

Name Owner Publish date
2373 Liver 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.