Automated identification of drug and food allergies entered using non-standard terminology
- PMID: 23748627
- PMCID: PMC3756276
- DOI: 10.1136/amiajnl-2013-001756
Automated identification of drug and food allergies entered using non-standard terminology
Abstract
Objective: An accurate computable representation of food and drug allergy is essential for safe healthcare. Our goal was to develop a high-performance, easily maintained algorithm to identify medication and food allergies and sensitivities from unstructured allergy entries in electronic health record (EHR) systems.
Materials and methods: An algorithm was developed in Transact-SQL to identify ingredients to which patients had allergies in a perioperative information management system. The algorithm used RxNorm and natural language processing techniques developed on a training set of 24 599 entries from 9445 records. Accuracy, specificity, precision, recall, and F-measure were determined for the training dataset and repeated for the testing dataset (24 857 entries from 9430 records).
Results: Accuracy, precision, recall, and F-measure for medication allergy matches were all above 98% in the training dataset and above 97% in the testing dataset for all allergy entries. Corresponding values for food allergy matches were above 97% and above 93%, respectively. Specificities of the algorithm were 90.3% and 85.0% for drug matches and 100% and 88.9% for food matches in the training and testing datasets, respectively.
Discussion: The algorithm had high performance for identification of medication and food allergies. Maintenance is practical, as updates are managed through upload of new RxNorm versions and additions to companion database tables. However, direct entry of codified allergy information by providers (through autocompleters or drop lists) is still preferred to post-hoc encoding of the data. Data tables used in the algorithm are available for download.
Conclusions: A high performing, easily maintained algorithm can successfully identify medication and food allergies from free text entries in EHR systems.
Keywords: Allergies; Electronic health records; Electronic medical records; Hypersensitivity; Natural language processing; RxNorm.
Figures

Similar articles
-
Improving Allergy Documentation: A Retrospective Electronic Health Record System-Wide Patient Safety Initiative.J Patient Saf. 2022 Jan 1;18(1):e108-e114. doi: 10.1097/PTS.0000000000000711. J Patient Saf. 2022. PMID: 32487880 Free PMC article.
-
AllergyMap: An Open Source Corpus of Allergy Mention Normalizations.AMIA Annu Symp Proc. 2021 Jan 25;2020:1249-1257. eCollection 2020. AMIA Annu Symp Proc. 2021. PMID: 33936501 Free PMC article.
-
A dynamic reaction picklist for improving allergy reaction documentation in the electronic health record.J Am Med Inform Assoc. 2020 Jun 1;27(6):917-923. doi: 10.1093/jamia/ocaa042. J Am Med Inform Assoc. 2020. PMID: 32417930 Free PMC article.
-
Clinical Decision Support Systems for Drug Allergy Checking: Systematic Review.J Med Internet Res. 2018 Sep 7;20(9):e258. doi: 10.2196/jmir.8206. J Med Internet Res. 2018. PMID: 30194058 Free PMC article.
-
Tackling the Patient with Multiple Drug "Allergies": Multiple Drug Intolerance Syndrome.J Allergy Clin Immunol Pract. 2020 Oct;8(9):2870-2876. doi: 10.1016/j.jaip.2020.08.033. J Allergy Clin Immunol Pract. 2020. PMID: 33039011 Review.
Cited by
-
Extracting social determinants of health from electronic health records using natural language processing: a systematic review.J Am Med Inform Assoc. 2021 Nov 25;28(12):2716-2727. doi: 10.1093/jamia/ocab170. J Am Med Inform Assoc. 2021. PMID: 34613399 Free PMC article.
-
Artificial intelligence approaches using natural language processing to advance EHR-based clinical research.J Allergy Clin Immunol. 2020 Feb;145(2):463-469. doi: 10.1016/j.jaci.2019.12.897. Epub 2019 Dec 26. J Allergy Clin Immunol. 2020. PMID: 31883846 Free PMC article. Review.
-
Multi-label classification of symptom terms from free-text bilingual adverse drug reaction reports using natural language processing.PLoS One. 2022 Aug 4;17(8):e0270595. doi: 10.1371/journal.pone.0270595. eCollection 2022. PLoS One. 2022. PMID: 35925971 Free PMC article.
-
Creation of an Accurate Algorithm to Detect Snellen Best Documented Visual Acuity from Ophthalmology Electronic Health Record Notes.JMIR Med Inform. 2016 May 4;4(2):e14. doi: 10.2196/medinform.4732. JMIR Med Inform. 2016. PMID: 27146002 Free PMC article.
-
Clinical Informatics Researcher's Desiderata for the Data Content of the Next Generation Electronic Health Record.Appl Clin Inform. 2017 Oct;8(4):1159-1172. doi: 10.4338/ACI-2017-06-R-0101. Epub 2017 Dec 21. Appl Clin Inform. 2017. PMID: 29270955 Free PMC article.
References
-
- HealthIT.gov Step 5: Achieve Meaningful Use. http://www.healthit.gov/providers-professionals/achieve-meaningful-use/c... (accessed 16 Feb 2013).
-
- Lesar TS, Briceland L, Stein DS. Factors related to errors in medication prescribing. JAMA 1997;277:312–17 - PubMed
Publication types
MeSH terms
Grants and funding
LinkOut - more resources
Full Text Sources
Other Literature Sources
Medical