Abstract: The incidence of cardiovascular diseases increases after COVID-19 diagnosis. How COVID-19 vaccination and different SARS-CoV-2 variants impact on this increase is unclear. The objective was to quantify associations between COVID-19 diagnosis and cardiovascular diseases in different vaccination and variant eras in England.
This project compares three cohorts: pre-vaccination, unvaccinated and vaccinated. This repository creates the results for the unvaccinated and vaccinated cohorts. The pre-vaccination repository can be found here
You can run this project via Gitpod in a web browser by clicking on this badge:
here
analysis
directoryOpenSAFELY documentation
The project.yaml
defines project actions, run-order and dependencies for all analysis scripts. This file should not be edited directly. To make changes to the yaml, edit and run the create_project.R
script instead. Project actions are then run securely using OpenSAFELY Jobs. Details of the purpose and any published outputs from this project can be found at this link as well.
Below is a description of each action in the project.yaml
. Arguments are denoted by {arg} in the action name.
vax_eligibility_inputs
vax_eligibility_inputs.R
which creates metadata for aspects of the study design which are required for the generate_study_population
actions.generate_study_population_{cohort}
generate_study_population
scripts that are run to create the two study populations: vaccinated and unvaccinated. These are study_definition_vaccinated.py
, study_definition_electively_unvaccinated.py
and study_definition_index.py
.common_variables.py
.preprocess_data_{cohort}
preprocess_data.R
to apply dataframe tidying to input_{cohort}.feather
(generated by generate_study_population_{cohort}
)stage1_data_cleaning_both
Stage1_data_cleaning.R
stage1_end_date_table_{cohort}
create_follow_up_end_date.R
which creates a dataframe of patient study end dates for each outcome of interest.stage2_missing_table1_both
Stage2_missing_table1.R
stage4_table_2_{cohort}
table_2.R
which calculates pre- and post-exposure event counts and person days of follow-up for all outcomes and subgroups.stage4_venn_diagram_both
venn_diagram.R
Analysis_cox_{outcome}_{cohort}
01_cox_pipeline.R
README
filestata_cox_model_{outcome}_{subgroup}_{cohort}_{time_periods}
cox_model.do
and cox_model_day0.do
format_stata_output
format_stata_output.R
which combines all the stata results in one formatted .csv fileformat_R_output
07_combine_HRs_to_one_file.R
which combines all the R results in one formatted .csv fileIn OpenSAFELY a study definition is a formal specification of the data that you want to extract from the OpenSAFELY database. This includes:
Further details on creating the study population can be found in the OpenSAFELY documentation
.
The contents of this repository MUST NOT be considered an accurate or valid representation of the study or its purpose. This repository may reflect an incomplete or incorrect analysis with no further ongoing work. The content has ONLY been made public to support the OpenSAFELY open science and transparency principles and to support the sharing of re-usable code for other subsequent users. No clinical, policy or safety conclusions must be drawn from the contents of this repository.
The OpenSAFELY framework is a Trusted Research Environment (TRE) for electronic health records research in the NHS, with a focus on public accountability and research quality.
Read more at OpenSAFELY.org.
As standard, research projects have a MIT license.