Data Availability
The corresponding author had full access to all the data in the study. All data relevant to the study are included in the article or uploaded as supplementary information. A comprehensive list of codelists and phenotyping algorithms used for the study variables are available on the EL-PaC-Epidem portal (https://pac-epidem-el.bcc.qmul.ac.uk/covid-19).