T-Rx: A toolbox for reproducible processing of prescriptions (Rx) stored in electronic health record databases
C. W. H. Lo, D. Handley, O. Pain, M. Kamp, A. C. Gillett, M. H. Iveson, C. Fabbri, K. G. Young,
Key points
From the paper's conclusion- The Phenotyping Module inputs prescriptions and returns phenotype dataframes for downstream analyses.
Abstract
Motivation Linkage between population-wide biobanks and electronic health records (EHRs) opens new opportunities to study the genetic and epidemiological underpinnings of treatment outcomes. However, data extraction is often complex, and the lack of open, reproducible phenotyping algorithms makes it difficult to scale analyses and compare findings across studies. Implementation T-Rx is an open-source R package consisting of three modules: (1) Extraction and Imputation Module; (2) Exposure Ascertainment Module; and (3) Phenotyping Module. General features T-Rx allows the extraction and imputation of prescription details, such as product strength and prescribed quantity in UK-based EHR databases, including UK Biobank and CPRD. The Exposure Ascertainment Module converts discrete prescribing events into longitudinal exposure periods in one-line R commands. The Phenotyping Module inputs prescriptions and returns phenotype dataframes for downstream analyses. Availability T-Rx is available as a Github Repository at [https://github.com/chrislowh/T-Rx]. Documentation is available at: [https://chrislowh.github.io/T-Rx/].
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Addressing challenges in agentic retrieval of structured data from biomedical databasesbioRxiv · 2026
- Democratizing Agentic Access to Bioinformatics and Biopharmaceutical Databases and Analyses with BioMCP-TSbioRxiv · 2026
- Omics data discovery agents: Agent-supported retrieval, reanalysis, and synthesis of published omics dataPLoS Computational Biology · 2026
- Pharmacolibrary: Interoperable executable models for PK, PD and PGx derived from published evidencebioRxiv · 2026
- CohortCharacteristics: an R package for population characterisation in observational studies using the OMOP common data modelEuropean Journal of Epidemiology · 2026
- Real-world drug use in ATC and ICD-10: an expert-curated drug-diagnosis resource based on UK primary care and Danish hospitalization electronic health recordsmedRxiv · 2026