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.
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.
Entities:
Keywords:
Allergies; Electronic health records; Electronic medical records; Hypersensitivity; Natural language processing; RxNorm
Authors: Hua Xu; Shane P Stenner; Son Doan; Kevin B Johnson; Lemuel R Waitman; Joshua C Denny Journal: J Am Med Inform Assoc Date: 2010 Jan-Feb Impact factor: 4.497
Authors: Joshua C Denny; Anderson Spickard; Kevin B Johnson; Neeraja B Peterson; Josh F Peterson; Randolph A Miller Journal: J Am Med Inform Assoc Date: 2009-08-28 Impact factor: 4.497
Authors: Gilad J Kuperman; Anne Bobb; Thomas H Payne; Anthony J Avery; Tejal K Gandhi; Gerard Burns; David C Classen; David W Bates Journal: J Am Med Inform Assoc Date: 2006-10-26 Impact factor: 4.497
Authors: D W Bates; L L Leape; D J Cullen; N Laird; L A Petersen; J M Teich; E Burdick; M Hickey; S Kleefield; B Shea; M Vander Vliet; D L Seger Journal: JAMA Date: 1998-10-21 Impact factor: 56.272
Authors: Pradnya P Warnekar; Omar Bouhaddou; Fola Parrish; Nhan Do; John Kilbourne; Steven H Brown; Michael J Lincoln Journal: AMIA Annu Symp Proc Date: 2007-10-11
Authors: Tyken C Hsieh; Gilad J Kuperman; Tonushree Jaggi; Patricia Hojnowski-Diaz; Julie Fiskio; Deborah H Williams; David W Bates; Tejal K Gandhi Journal: J Am Med Inform Assoc Date: 2004-08-06 Impact factor: 4.497
Authors: Herman D Tolentino; Michael D Matters; Wikke Walop; Barbara Law; Wesley Tong; Fang Liu; Paul Fontelo; Katrin Kohl; Daniel C Payne Journal: BMC Med Inform Decis Mak Date: 2007-02-12 Impact factor: 2.796
Authors: Yuan Luo; William K Thompson; Timothy M Herr; Zexian Zeng; Mark A Berendsen; Siddhartha R Jonnalagadda; Matthew B Carson; Justin Starren Journal: Drug Saf Date: 2017-11 Impact factor: 5.606
Authors: Arthur Wasylewicz; Britt van de Burgt; Aniek Weterings; Naomi Jessurun; Erik Korsten; Toine Egberts; Arthur Bouwman; Marieke Kerskes; René Grouls; Carolien van der Linden Journal: Br J Clin Pharmacol Date: 2021-10-13 Impact factor: 3.716
Authors: Joseph M Plasek; Foster R Goss; Kenneth H Lai; Jason J Lau; Diane L Seger; Kimberly G Blumenthal; Paige G Wickner; Sarah P Slight; Frank Y Chang; Maxim Topaz; David W Bates; Li Zhou Journal: J Am Med Inform Assoc Date: 2015-09-17 Impact factor: 4.497
Authors: Lily Li; Dinah Foer; Robert K Hallisey; Carol Hanson; Ashley E McKee; Gianna Zuccotti; Elizabeth A Mort; Thomas D Sequist; Nathan E Kaufman; Claire M Seguin; Allen Kachalia; Kimberly G Blumenthal; Paige G Wickner Journal: J Patient Saf Date: 2022-01-01 Impact factor: 2.844