Abstract
Primary care electronic health care records are rich with patient and clinical information. Studying electronic health care records has resulted in marked improvements to national health care processes and patient-care decision making, and is a powerful supplementary source of data for drug discovery effort. We present the R package rdrugtrajectory, designed to yield demographic and patient-level characteristics of drug prescriptions in the UK Clinical Practice Research Datalink dataset. The package operates over Clinical Practice Research Datalink Gold clinical, referral and therapy datasets and includes features such as first drug prescriptions analysis, cohort-wide prescription information, cumulative drug prescription events, the longitudinal trajectory of drug prescriptions, and a survival analysis timeline builder to identify risks related to drug prescription switching. The rdrugtrajectory package has been made freely available via the GitHub repository.
Competing Interest Statement
The authors have declared no competing interest.
Footnotes
E-mail: anthony.nash{at}ndcn.ox.ac.uk