Fluid and electrolyte disorders - 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


Fluid and electrolyte disorders 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: 45
Code Description Medcode
44I4100 Raised serum potassium level 26929
44I4200 Low serum potassium level 26279
44I8100 Raised serum calcium level 26900
44L2100 Blood magnesium abnormal 53267
46M2.00 Urine electrolytes abnormal 66418
8B77.00 Potassium supplementation 100687
C294400 Magnesium deficiency 30100
C352.00 Disorders of magnesium metabolism 46803
C352z00 Disorder of magnesium metabolism NOS 104451
C354000 Hypocalcaemia NEC 5232
C354100 Hypercalcaemia NEC 2900
C354111 Secondary hypercalcaemia 70714
C354200 Idiopathic hypercalcaemia 41157
C354500 Familial benign hypercalcaemia 22773
C354900 Calcium deficiency 29554
C354z00 Disorder of calcium metabolism NOS 64772
C36..00 Disorders of fluid, electrolyte and acid-base balance 47216
C36..11 Electrolyte disorders 20366
C360.00 Hyperosmolality and or hypernatraemia 54804
C360.11 Hypernatraemia 9057
C361.00 Hyposmolality and or hyponatraemia 39298
C361.11 Hyponatraemia 4710
C362000 Metabolic acidosis NEC 27369
C362100 Respiratory acidosis 48457
C362200 Lactic acidosis 11615
C362900 Compensated metabolic acidosis 105725
C362y00 Other specified acidosis 56219
C363.00 Alkalosis 31271
C363000 Metabolic alkalosis 31838
C363100 Respiratory alkalosis 60625
C363200 Metabolic alkalaemia 65561
C363500 Alkalaemia 108674
C363y00 Other specified alkalosis 72727
C363z00 Alkalosis NOS 70565
C365.00 Volume depletion 45987
C365100 Hypovolaemia 11526
C365z00 Volume depletion NOS 35647
C366111 Idiopathic fluid retention 28598
C367.00 Hyperkalaemia 5748
C368.00 Hypokalaemia 3168
C36A.00 Respiratory acidosis and metabolic alkalosis 105688
C36z.00 Disorders of fluid, electrolyte and acid-base balance NEC 72778
C36z000 Hyperchloraemia 37464
C36z100 Hypochloraemia 16372
C36zz00 Electrolyte imbalance NOS 54304


To Export Phenotype Details:

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

To Export Phenotype Code List:

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

# Download here


# Connect to API

client = connect_to_API(public=TRUE)

# Get codelists of phenotype

codelists = get_phenotype_code_list('PH1080', '2363', api_client=client)

Version History

Name Owner Publish date
2363 Fluid and electrolyte disorders - 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.