Software Open Access

DrugPrep (STATA) : An algorithm to transform raw CPRD prescriptions data into formatted analysis-ready drug exposure data.

Mark Lunt; Stephen Pye; Mohammad Movahedi; Ruth Costello

Data curator(s)
Rebecca M. Joseph; Kamilla Kopec-Harding
William G Dixon

DrugPrep is an algorithm for transforming raw medications data into formatted, analysis-ready drug exposure data.  The current version of DrugPrep archived here has been developed for use with Clinical Practice Research datalink (CPRD) and is implemented in STATA.

Funding: Supported by the Arthritis Research UK Centre for Epidemiology (grant 20380) Contributions: Mark Lunt (design & implemention of code), Stephen Pye (design & implementation of code) Mohammad Movahedi (design and implementation of code), Ruth Costello (bug fixes), Rebecca Joseph (data curation), Kamilla Kopec-Harding (data curation), William G Dixon (principal investigator/conceptualisation/funding)
Files (28.1 kB)
Name Size
28.1 kB Download
All versions This version
Views 446346
Downloads 6767
Data volume 1.9 MB1.9 MB
Unique views 361294
Unique downloads 6767


Cite as