Automated Extraction and Classification of Drug Prescriptions in Electronic Health Records: Introducing the PRESNER Pipeline ============================================================================================================================ * Cristóbal Colón-Ruiz * Tomas Fitzgerald * Isabel Segura-Bedmar * Ewan Birney * Maria Herrero-Zazo ## Abstract Electronic health record (EHR) systems with prescription data offer vast potential in pharmacoepidemiology and pharmacogenomics. The large amount of clinical data recorded in these systems requires automatic processing to extract relevant information. This paper introduces PRESNER, a name entity recognition (NER) and classification pipeline for EHR prescription data. The pipeline uses the pre-trained transformer Bio-ClinicalBERT fine-tuned on UK Biobank prescription entries manually annotated with medication-related information (drug name, route of administration, pharmaceutical form, strength, and dosage) as the core NER system. Moreover, PRESNER also maps drugs to the Anatomical Therapeutic and Chemical (ATC) classification system and distinguishes between systemic and non-systemic drug products. It outperformed a baseline model combining the state-of-the-art Med7 and a dictionary-based approach from the ChEMBL database with a macro-average F1-score of 0.95 vs 0.71. In addition to UK Biobank prescription data, PRESNER can also be applied to other English prescription datasets, making it a versatile tool for researchers in the field. ## 1 Introduction Large anonymized electronic health records (EHR) with prescription data linked to biobank registries enable large pharmacoepidemiologic and pharmacogenomic studies (Mcinnes, 2021). UK Biobank (UKB) collects health information and biological samples from over half a million volunteers (Bycroft et al., 2018). Since 2019, primary care records from the UK National Health System (NHS) have been linked for approximately 45% of the UKB cohort (∼230,000 participants), corresponding to more than 57 million prescription entries. Unlike other prescription records (Pottegård et al., 2016; Alvarez-Madrazo et al., 2016), these datasets store unprocessed prescription information for dispensation purposes. Registries typically use national or internal codes for drugs, necessitating manual extraction by active ingredients and brand names (Fabbri *et al*., 2021). An alternative to coding systems is to extract the information of interest from the text. This strategy also enables the extraction of additional information. In pharmacoepidemiology and pharmacogenomics using EHR data, a key need is identifying and grouping active ingredients, including synonyms and brand names. The Anatomical Therapeutic and Chemical (ATC) classification by WHO organises substances based on effects and properties, aiding international drug research (WHO, 2018). Additionally, the pharmaceutical form and route of administration must be considered to distinguish between drug products with systemic and non-systemic effects (e.g., oral vs topical antibiotics), while strength and dosage information are crucial for quantitative studies (Rodgers et al., 2017; Chen et al., 2018). There has been substantial interest in developing Natural Language Processing (NLP) information extraction (IE) systems for drug named entity recognition (NER) (Segura-Bedmar et al., 2013; Kormilitzin et al., 2021) and other relevant medication information (Johnson et al., 2016). The irruption of contextual word embedding models, such as the Bidirectional Encoder Representations from Transformers (BERT) (Devlin et al., 2019), has fuelled the progress of NLP in all domains through the use of transfer learning with pre-trained models, especially when fine-tuned for a specific NLP application (Henry et al., 2020; Alsentzer et al., 2019). This paper introduces PRESNER, a tailored NER and classification pipeline for EHR prescription data. Based on the transformer for medical text Bio-ClinicalBERT (Alsentzer et al., 2019) and fine-tuned with UKB prescription entries, PRESNER aims to automate standardised extraction, mapping, and classification of prescriptions, serving as a benchmarking tool for research acceleration. Anticipated broader applications include processing prescription data from sources like CPRD (Ghosh et al., 2019), MIMIC-III, and hospital EHR datasets. PRESNER is designed to assist researchers working with raw prescription data from EHR. This pipeline not only performs drug NER but also offers additional capabilities, enabling users to automatically identify systemic drug products and apply filters to prescriptions based on drug name or therapeutic group by their ATC codes. The workflow seamlessly handles entity recognition and classification tasks, by mapping prescriptions to ATC codes and categorising them as either systemic or non-systemic. Users can choose to use the post-processing output or access the results of the NER component to tailor solutions to their specific research questions. The pipeline is available at [https://github.com/ccolonruiz/PRESNER](https://github.com/ccolonruiz/PRESNER). ## 2. Materials and Methods ### 2.1 ChEMBL dictionary The ChEMBL database (Gaulton et al., 2012) is the largest open-source resource for medicinal chemistry data. Using its web services API, we built a dictionary for approved human molecules. The latest version of the dictionary contained 38,215 synonyms for 4,127 active ingredients, mapped to 4,193 ChEMBL ID and 3,206 ATC codes. However, to include the latest information curated from the database, when run by the user the pipeline accesses the API to create an updated version of the dictionary. This dictionary is used by the pipeline to map prescription entries to their ATC codes. We also used this dictionary in a baseline approach for the NER task. ### 2.2 UK Biobank prescription dataset UKB Data-Field “42039” was used to retrieve prescription data, covering primary care prescriptions for 222,096 individuals and 102,052 unique prescription names entries. These data included the drug product’s name, quantity, prescription date, and one or more codes from medicinal and sanitary products coding systems used across the NHS primary care (Supplementary Table 1). A dataset of 1,100 randomly selected prescription entries for fine-tuning and evaluation was manually annotated using the BRAT tool (Peng et al., 2019) by a pharmacist with prior experience in the annotation of pharmacological texts (Table 1). We applied stratified sampling to split the whole dataset into train (80%) and test (20%) splits. We refer to this annotated dataset as the UKB prescription dataset throughout this document. View this table: [Table 1.](http://medrxiv.org/content/early/2023/10/05/2023.10.04.23296481/T1) Table 1. Distribution of UK Biobank (UKB) and n2c2 annotated text spans used for training and test. The document types are prescription entries and discharge summary entries in the UKB prescription dataset and the n2c2 corpus, respectively. ### 2.3 The n2c2 corpus Due to annotation processes being one of the most time-costly and expensive tasks in NLP and machine learning, the size of our UK Biobank prescription dataset is limited. For this reason, we also exploited the National NLP Clinical Challenges (n2c2) corpus to fine-tune our NER pipeline. This corpus includes over 83 thousand annotated entities for medication information (strength, dosage, duration, frequency, form, route, reason for administration, and adverse effects) from 505 discharge summaries (Table 1) from the MIMIC-III dataset (Johnson et al., 2016). ### 2.4 The NER task The core model in PRESNER is based on Bio-ClinicalBERT (Alsentzer et al., 2019), a contextual word embedding model that builds upon BioBERT (Lee *et al*., 2020) and specifically pre-trained on the MIMIC-III dataset, addressing the linguistic disparities between general domain and clinical texts. We fine-tuned the Bio-ClincalBERT model by adding a conditional random field (CRF) layer (Ketmaneechairat and Maliyaem, 2020). This layer allows us to capture dependencies between labels. The extended architecture – i.e., the Bio-ClinicalBERT model enhanced with a CRF optimization layer (Supplementary Figure 1) – will be referred to as the BCB-CRF model throughout this document. Pre-processing and training details are provided in Supplementary Methods. For comparison purposes, the BCB-CRF model was fine-tuned in the following three scenarios: i) only using the n2c2 corpus, ii) only using the UKB prescription dataset, and iii) using both datasets. In this third scenario (Figure 1), the BCB-CRF model was fine-tuned on the n2c2 corpus, and then, a second fine-tuning was performed on the UKB prescription dataset. The n2c2 corpus was used first due to the relatively limited number of annotated entities in the UKB prescription dataset (Table 1). Moreover, this approach allows us to harness the knowledge transfer from the n2c2 corpus and also adapt to the unique language features present in the UKB prescription dataset. Our hypothesis is that this approach can improve the recognition of under-represented entities such as ROUTE (with only 92 instances in the training split of the UKB prescription dataset). For hyperparameter tuning, 20% of the n2c2 training sentences were used as a validation set. Limited annotated data in the UKB prescription dataset necessitated 5-fold cross-validation. ![Figure 1.](http://medrxiv.org/https://www.medrxiv.org/content/medrxiv/early/2023/10/05/2023.10.04.23296481/F1.medium.gif) [Figure 1.](http://medrxiv.org/content/early/2023/10/05/2023.10.04.23296481/F1) Figure 1. Representation of the fine-tuning approaches compared in this work. 1) Fine-tuning on the UKB prescription dataset. 2) Fine-tuning on the n2c2 corpus. 3) Fine-tuning on the n2c2 corpus and UKB prescription dataset. We also developed a baseline approach combining a dictionary-based NER module based on the ChEMBL dictionary and the pre-trained NER models from Med7 (Kormilitzin et al., 2021). There are two Med7 models available, one based on convolution networks and another based on the transformer-based model RoBERTA (Liu *et al*., 2021). In this work, we combined the output of both and refer to them as Med7 for simplicity. The output of the baseline is the union of all entities identified by the dictionary and Med7. More details on the baseline model can be found in Supplementary Methods. ### 2.5 Classification tasks: mapping ATC codes and detecting drug products with systemic activity After the NER phase, PRESNER aims to classify drug products based on the extracted information in the previous NER step, differentiating between those with and without systemic activity and assigning the most appropriate ATC code(s). This facilitates further filtering by researchers using the EHR prescription dataset. ATC codes were mapped to DRUG entities using a refined dictionary created from ChEMBL (including 3,206 ATC codes linked to 3,433 ChEMBL ID). Moreover, the ROUTE and FORM entities annotated in the previous phase (see section 2.4) were manually reviewed to create dictionaries for systemic and non-systemic administration routes and pharmaceutical forms. These dictionaries for pharmaceutical form and administration route are used to classify prescriptions as systemic (SDP) or non-systemic drug products (NSD) and to select the preferred ATC codes (Supplementary Figure 2). ## 3 Results The baseline approach was outperformed by the BCB-CRF model which was either fine-tuned using only the UKB prescription dataset or initially fine-tuned with n2c2 followed by fine-tuning with the UKB prescription dataset. These two BCB-CRF models obtained higher F1 for all entity types (Table 2). The greatest improvement (up to 0.24 in macro-F1) was achieved by the BCB-CRF model fine-tuned first on the n2c2 corpus and then on the UKB prescription dataset. While transfer learning from n2c2 corpus helped to mitigate the scarcity of annotated entities in the UKB prescription dataset, this second dataset provided information on the text distribution of the target documents (i.e., prescription entries). The effectiveness of this approach was particularly evident in the case of the under-represented entity type, ROUTE, where pre-adjustment with n2c2 significantly improved recall performance. View this table: [Table 2.](http://medrxiv.org/content/early/2023/10/05/2023.10.04.23296481/T2) Table 2. Comparison of results of the baseline and three BCB-CRF models on the hold-out test showing precision (P), recall (R) and F1-score (F1). BCB-CRF (n2c2): model fine-tuned with the n2c2 corpus. BCB-CRF (UKB): model fine-tuned with the UKB prescription dataset. BCB-CRF (n2c2 + UKB): model fine-tuned with the n2c2 corpus and the UKB prescription dataset. On the contrary, the BCB-CRF model fine-tuned only on the n2c2 corpus provided lower results than the other BCB-CRF models and the baseline approach for FORM, ROUTE, and STRENGTH entities. In addition to the disparities in text distributions between n2c2 and prescription entries, this lower performance could be due to the fact that Med7 was trained with n2c2 but also with two additional corpora annotated by the authors. The PRESNER pipeline also addresses the mapping of DRUG entities to ATC codes by using a matching process based on a dictionary from ChEMBL. DRUG entities extracted by the BCB-CRF or the Med7 module of the baseline but not mapped to ATC codes were mainly brand names not included in the ChEMBL dictionary (Figure 2 and Supplementary Figures 3 and 4), like hormone replacement therapy or oral contraceptives, and non-drug items, supplements, or healthcare terms. A word cloud (Figure 2) of top terms not retrieved by any approach (10% total) displays non-medicinal sanitary products predominantly. ![Figure 2.](http://medrxiv.org/https://www.medrxiv.org/content/medrxiv/early/2023/10/05/2023.10.04.23296481/F2.medium.gif) [Figure 2.](http://medrxiv.org/content/early/2023/10/05/2023.10.04.23296481/F2) Figure 2. Word-clouds of top entities retrieved but not mapped to ATC codes by only one of the models: the MED7 module of the baseline model or the BCB-CRF model. The third panel shows the top terms from drug product entries with no entity DRUG retrieved by any of the drug NER models. ![Figure 3.](http://medrxiv.org/https://www.medrxiv.org/content/medrxiv/early/2023/10/05/2023.10.04.23296481/F3.medium.gif) [Figure 3.](http://medrxiv.org/content/early/2023/10/05/2023.10.04.23296481/F3) Figure 3. Example of drug information extracted by PRESNER. *TEXT*: text of the prescription entry with the entity types highlighted in different colours.; *DRUG, DOSAGE, FORM, ROUTE, STRENGTH*: extracted entities for each type; *term*: drug name in ChEMBL dictionary mapped to the DRUG entity; *atc code*: mapped ATC codes for that term; *class*: drug product classification as systemic (SDP), non-systemic (NSDP) or potential systemic drug product (PSDP); *preferred*: label for the ATC code as preferred or non-preferred based on the assigned class. ![Figure 4.](http://medrxiv.org/https://www.medrxiv.org/content/medrxiv/early/2023/10/05/2023.10.04.23296481/F4.medium.gif) [Figure 4.](http://medrxiv.org/content/early/2023/10/05/2023.10.04.23296481/F4) Figure 4. Number of unique prescription entries by top ATC class classified as systemic drug product (SDP) or non-systemic drug product (NSDP). One prescription can be mapped to more than one ATC codes and categories. The baseline retrieved more incorrect ROUTE terms (e.g., the pharmaceutical form ‘injection’, or the adjectives ‘dispersible’, ‘gastro’, ‘conjugated’) while failing more often to retrieve correct ones such as ‘eye’, ‘ear’, ‘vaginal’ or ‘oromucosal’. All the approaches failed to extract correct FORM terms, but non-related words (e.g., ‘medicated’, ‘pack’, ‘‘vanilla’, ‘lasagne’, ‘blister’) were more commonly retrieved by Med7 (Supplementary Figure 5). Fine-tuning with both n2c2 and the UKB prescription dataset greatly benefited the entities STRENGTH and DOSAGE compared to the baseline. The baseline model performed poorly for entity DOSAGE with precision and recall scores of 0.66 and 0.24, respectively. Likewise, entity STRENGTH had a precision of only 0.5, whereas the BCB-CRF model achieved a precision of 0.96. This is partly because the baseline consistently mislabelled the total prescribed unit count as STRENGTH instead of DOSAGE, resulting in low recall for DOSAGE (0.2) and low precision for STRENGTH (0.5). Figure 3 shows an example of the output of the PRESNER pipeline, with the extracted structured information for the various entity types. 458,132 prescription entries (72% of the total dataset) were mapped to at least one ATC code. From these, 81% and 13% were classified as SDP and NSDP, respectively. Preferred ATC codes were selected by the pipeline based on this classification, leading to the distribution of top ATC classes shown in Figure 4. Prescription entries that could not be clearly classified by PRESNER (6%) were labelled as potential SDP (PSDP). ## Discussion and Conclusions Prescription data linked to large biobanks enable pharmacogenomic studies (McInnes et al., 2021), but processing these raw data is complex and time consuming. Manual lists of names and codes are frequently used for UKB primary care data (Darke et al., 2022; Fabbri et al., 2021; Topless et al., 2022). However, these terminologies have inherent flaws such as variations in NHS implementation across time and regions. (Spiers et al., 2017). We demonstrate the superiority of our fine-tuned BCB-CRF model over a baseline combining the state-of-the-art Med7 and a dictionary-based approach. While dictionaries often exhibit high precision, they lack recall due to synonym diversity. Machine learning, especially transformer models, excel in capturing contextual cues for entity identification. This proficiency allows transformers to effectively address NLP ambiguity by recognizing context-based representations. Pre-training on clinical documents enables BCB-CRF to capture relevant clinical knowledge and context. Fine-tuning with n2c2 and the annotated UKB prescription dataset further enhances performance by refining its representations and parameters to align with the specific task requirements. This combined approach optimally uses both pre-trained models and task-specific annotations for better clinical NLP tasks. Finally, the regular structure of prescription entries in the UKB prescription dataset greatly favours the use of transfer learning that can substantially reduce the heavy workload of the annotation tasks. PRESNER has demonstrated its effectiveness in extracting structured information from prescription entries, including drug names, strength, dosage, pharmaceutical form, and route of administration. The pipeline also enables classification tasks such as mapping drug names to the ATC classification system and classifying prescription entries as systemic or non-systemic based on extracted route and form information. Additionally, the extracted strength and dosage data can, for example, be utilised to infer the total prescribed dose for quantitative analysis. Moving forward, our future work aims to incorporate additional functionalities, such as identifying co-medications or cleaning and imputing missing strength or dosages. It is important to acknowledge certain limitations. Some drugs may have not been recognised by the NER pipeline or mapped by the ChEMBL dictionary. After initial manual revision, 65 drug entities with a frequency greater than 100 in the current dataset but not included in the ChEMBL dictionary (e.g., ‘*co-codamol’*, ‘*valproate’*, or ‘*malarone’*) were added manually. Even so, drugs like insulins, hormone replacement therapies, contraceptives, and brand names for comedications may not have been consistently identified. Future enhancements could focus on improving the dictionaries or incorporating pattern-based rules to enhance the recall of the PRESNER pipeline. Although the pipeline discerns between systemic and non-systemic ATC codes, some molecules have more than one ATC code and it currently does not identify a singular ATC code for each drug product. Finally, manual validation of the extracted results for all drug products has not been done and, therefore, manual review by the users is encouraged. Looking ahead, as the UK Biobank secures access to primary care data for the remaining 35% of the cohort, we anticipate that PRESNER will prove to be a valuable resource for processing these new and extensive datasets. Furthermore, the potential for utilizing the same pipeline to process other English prescription databases is promising, showcasing its potential for wider application in the field. ## Supporting information Supplementary Methods [[supplements/296481_file02.pdf]](pending:yes) Supplementary Material [[supplements/296481_file03.pdf]](pending:yes) ## Data Availability UK Biobank data are available under restricted access through a procedure described at http://www.ukbiobank.ac.uk/using-the-resource/. All other data produced in the present work and the code are available at https://github.com/ccolonruiz/PRESNER [https://github.com/ccolonruiz/PRESNER](https://github.com/ccolonruiz/PRESNER) ## Availability [https://github.com/ccolonruiz/PRESNER](https://github.com/ccolonruiz/PRESNER) ## Funding This research was supported by the Novo Nordisk Foundation (NNF17OC0027594). ## Acknowledgments We acknowledge ChEMBL for their advice on the creation of the dictionaries and use of the API. * Received October 4, 2023. * Revision received October 4, 2023. * Accepted October 5, 2023. * © 2023, Posted by Cold Spring Harbor Laboratory This pre-print is available under a Creative Commons License (Attribution 4.0 International), CC BY 4.0, as described at [http://creativecommons.org/licenses/by/4.0/](http://creativecommons.org/licenses/by/4.0/) ## References 1. Alsentzer, E. et al. (2019) Publicly Available Clinical BERT Embeddings. In, Proceedings of the 2nd Clinical Natural Language Processing Workshop. Association for Computational Linguistics, Stroudsburg, PA, USA, pp. 72–78. 2. Alvarez-Madrazo, S. et al. (2016) Data Resource Profile: The Scottish National Prescribing Information System (PIS). Int. J. Epidemiol., 45, 714–715f. [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1093/ije/dyw060&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=27165758&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F10%2F05%2F2023.10.04.23296481.atom) 3. Bycroft, C. et al. (2018) The UK Biobank resource with deep phenotyping and genomic data. Nature, 562, 203–209. [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1038/s41586-018-0579-z&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=30305743&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F10%2F05%2F2023.10.04.23296481.atom) 4. Chen, T.C. et al. (2018) A 15-year overview of increasing tramadol utilisation and associated mortality and the impact of tramadol classification in the United Kingdom. Pharmacoepidemiol. Drug Saf., 27, 487–494. [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1002/pds.4320&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=28944519&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F10%2F05%2F2023.10.04.23296481.atom) 5. Darke, P. et al. (2022) Curating a longitudinal research resource using linked primary care EHR data - a UK Biobank case study. J. Am. Med. Informatics Assoc., 29, 546–552. 6. 1. Linguistics, A., 2. for C. Devlin, J. et al. (2019) BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In, Linguistics, A., for C. (ed), Conference of the North American Chapter of the Association for Computational Linguistics. Minneapolis, Minnesota, pp. 4171–4186. 7. Fabbri, C. et al. (2021) Genetic and clinical characteristics of treatment-resistant depression using primary care records in two UK cohorts. Mol. Psychiatry, 26, 3363–3373. [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1038/s41380-021-01062-9&link_type=DOI) 8. Gaulton, A. et al. (2012) ChEMBL: a large-scale bioactivity database for drug discovery. Nucleic Acids Res., 40, D1100–7. [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1093/nar/gkr777&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=21948594&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F10%2F05%2F2023.10.04.23296481.atom) [Web of Science](http://medrxiv.org/lookup/external-ref?access_num=000298601300165&link_type=ISI) 9. Ghosh, R.E. et al. (2019) How Clinical Practice Research Datalink data are used to support pharmacovigilance. Ther. Adv. Drug Saf., 10, 204209861985401. 10. Henry, S. et al. (2020) 2018 N2C2 Shared Task on Adverse Drug Events and Medication Extraction in Electronic Health Records. J. Am. Med. Informatics Assoc., 27, 3–12. [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1093/jamia/ocz166&link_type=DOI) 11. Johnson, A.E.W. et al. (2016) MIMIC-III, a freely accessible critical care database. Sci. Data, 3, 160035. 12. Ketmaneechairat, H. and Maliyaem, M. (2020) Natural Language Processing for Disaster Management Using Conditional Random Fields. J. Adv. Inf. Technol., 11, 97–102. 13. Kormilitzin, A. et al. (2021) Med7: A transferable clinical natural language processing model for electronic health records. Artif. Intell. Med., 118, 102086. [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/j.artmed.2021.102086&link_type=DOI) 14. Lee, J. et al. (2020) BioBERT: A pre-trained biomedical language representation model for biomedical text mining. Bioinformatics, 36, 1234–1240. [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1093/bioinformatics/btz682&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=31501885&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2023%2F10%2F05%2F2023.10.04.23296481.atom) 15. Liu, Z. et al. (2021) A Robustly Optimized BERT Pre-training Approach with Posttraining. CCL 2021 - Proc. 20th Chinese Natl. Conf. Comput. Linguist., 1218– 1227. 16. Mcinnes, G. (2021) Drug Response Pharmacogenetics for 200,000 UK Biobank Participants. In, Pac Symp Biocomput., pp. 184–195. 17. McInnes, G. et al. (2021) Pharmacogenetics at Scale: An Analysis of the UK Biobank. Clin. Pharmacol. Ther., 109, 1528–1537. 18. Peng, Y. et al. (2019) Transfer Learning in Biomedical Natural Language Processing: An Evaluation of BERT and ELMo on Ten Benchmarking Datasets. In, Proceedings of the 18th BioNLP Workshop and Shared Task. Association for Computational Linguistics, Stroudsburg, PA, USA, pp. 58–65. 19. Pottegård, A. et al. (2016) Data Resource Profile: The Danish National Prescription Registry. Int. J. Epidemiol., 46, dyw213. 20. Rodgers, L.R. et al. (2017) Cohort profile for the MASTERMIND study: Using the Clinical Practice Research Datalink (CPRD) to investigate stratification of response to treatment in patients with type 2 diabetes. BMJ Open, 7. 21. Segura-Bedmar, I. et al. (2013) SemEval-2013 Task 9 : Extraction of Drug-Drug Interactions from Biomedical Texts (DDIExtraction 2013). In, Second Joint Conference on Lexical and Computational Semantics (*SEM), Volume 2: Proceedings of the Seventh International Workshop on Semantic Evaluation (SemEval 2013). Atlanta, USA, pp. 341–350. 22. Spiers, I. et al. (2017) Clinical Terminologies in the NHS: SNOMED CT and dm+d. Br. J. Pharm., 2, 80–87. 23. Topless, R. et al. (2022) Folic acid and methotrexate use and their association with COVID-19 diagnosis and mortality: a case–control analysis from the UK Biobank. BMJ Open, 12, e062945. [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6NzoiYm1qb3BlbiI7czo1OiJyZXNpZCI7czoxMjoiMTIvOC9lMDYyOTQ1IjtzOjQ6ImF0b20iO3M6NTA6Ii9tZWRyeGl2L2Vhcmx5LzIwMjMvMTAvMDUvMjAyMy4xMC4wNC4yMzI5NjQ4MS5hdG9tIjt9czo4OiJmcmFnbWVudCI7czowOiIiO30=) 24. WHO (2018) The use of systems in the selection of International Nonproprietary Names (INN) for pharmaceutical substances. World Heal. Organ. Press, p.WHO/PSM/QSM/2006.3.