key: cord-0001687-7izahzqy authors: Rochefort, Christian M; Buckeridge, David L; Forster, Alan J title: Accuracy of using automated methods for detecting adverse events from electronic health record data: a research protocol date: 2015-01-08 journal: Implement Sci DOI: 10.1186/s13012-014-0197-6 sha: bc589336315df8e93a0fcd4fda5442bf982e9b6d doc_id: 1687 cord_uid: 7izahzqy BACKGROUND: Adverse events are associated with significant morbidity, mortality and cost in hospitalized patients. Measuring adverse events is necessary for quality improvement, but current detection methods are inaccurate, untimely and expensive. The advent of electronic health records and the development of automated methods for encoding and classifying electronic narrative data, such as natural language processing, offer an opportunity to identify potentially better methods. The objective of this study is to determine the accuracy of using automated methods for detecting three highly prevalent adverse events: a) hospital-acquired pneumonia, b) catheter-associated bloodstream infections, and c) in-hospital falls. METHODS/DESIGN: This validation study will be conducted at two large Canadian academic health centres: the McGill University Health Centre (MUHC) and The Ottawa Hospital (TOH). The study population consists of all medical, surgical and intensive care unit patients admitted to these centres between 2008 and 2014. An automated detection algorithm will be developed and validated for each of the three adverse events using electronic data extracted from multiple clinical databases. A random sample of MUHC patients will be used to develop the automated detection algorithms (cohort 1, development set). The accuracy of these algorithms will be assessed using chart review as the reference standard. Then, receiver operating characteristic curves will be used to identify optimal cut points for each of the data sources. Multivariate logistic regression and the areas under curve (AUC) will be used to identify the optimal combination of data sources that maximize the accuracy of adverse event detection. The most accurate algorithms will then be validated on a second random sample of MUHC patients (cohort 1, validation set), and accuracy will be measured using chart review as the reference standard. The most accurate algorithms validated at the MUHC will then be applied to TOH data (cohort 2), and their accuracy will be assessed using a reference standard assessment of the medical chart. DISCUSSION: There is a need for more accurate, timely and efficient measures of adverse events in acute care hospitals. This is a critical requirement for evaluating the effectiveness of preventive interventions and for tracking progress in patient safety through time. Adverse events (AEs) are injuries caused by the medical management rather than the underlying condition of the patient [1] . AEs are estimated to occur in 2.9%-16.6% of all acute care hospitalizations, and studies have suggested that 30%-58% of all AEs are preventable [2] [3] [4] [5] [6] [7] [8] [9] . Preventable AEs are a leading cause of death, resulting in 44,000-98,000 deaths in acute care hospitals each year [1, 3, 5, 6] . Preventable AEs also represent a sizeable cost to our fragile economy, with total annual cost being estimated to range between USD $17 and $29 billion due to lost income, lost household production, disability, and health care costs [4] . For these reasons, preventing AEs has been identified as a high priority worldwide [10, 11] . An important requirement to evaluate the success of preventive measures is to have access to accurate, timely and efficient methods for monitoring AE rates. However, at present, there are no such methods. Indeed, while manual chart review is the reference standard in many AE detection studies, it is a time-consuming, resource-intensive and costly process. As a consequence, it is an impractical means for the routine detection and monitoring of AEs [12] [13] [14] . As for prevalence surveys, they are very costly to implement. For this reason, they are usually limited to small cross-sectional samples of at-risk patients or to selected hospital units. Regarding incident and accident reports, studies have found that compared to manual chart review they underestimate the true incidence of AEs by a factor of about 20 [15, 16] . Lastly, while discharge diagnostic codes have the advantage of being readily available, relatively inexpensive, and easy to use, [14, 15] prior studies have found that they generally have low to moderate sensitivity and positive predictive value for identifying AEs [17] [18] [19] . In addition, in many jurisdictions, discharge diagnostic codes are not dated with precision. As a consequence, it can be difficult to determine whether a given code (e.g. pulmonary embolism) represents an event that occurred before the patient was hospitalized (i.e. a comorbid condition) or during the actual hospitalization (i.e. an AE) [20, 21] . Moreover, discharge diagnostic codes usually become available several months after discharge, which makes them impractical for timely AE detection and monitoring. In summary, the limitations in existing methods for measuring AEs have not only curtailed the ability to conduct continuous quality monitoring in acute care hospitals but also to pursue important investigational work on potentially preventable causes of AEs. To move the field forward, there is a need for more accurate, timely and efficient methods of AE detection. With the advent of electronic health records (EHR) and digital capture of progress notes and other clinical data-which were paralleled with the development of automated methods for encoding and classifying electronic clinical narratives-an exciting opportunity has emerged to identify potentially better methods of AE detection. Taking advantage of this new opportunity, the purpose of this study is to determine the accuracy of using automated algorithms for detecting AEs from EHR data. Pilot work: novel methods of AE detection With the increasing availability of electronic clinical data, preliminary investigations have attempted to use a variety of electronic triggers (e.g. an abnormal laboratory test result such as an elevated white blood cell count or the prescription of an antidote drug) as a means to identify potential cases of AEs. While these methods offer promise for detecting AEs, the reported sensitivities and positive predictive values are low, suggesting that many AEs may go undetected, and that many of the events that are identified are indeed false positives [13] . More recently, researchers have started to use alternative and potentially more accurate approaches to AE detection, such as natural language processing (NLP) of dictated electronic radiology reports or discharge summaries [22, 23] . NLP refers to automated methods for converting free-text data into computer-understandable format [24] . NLP techniques have been divided into two broad categories: symbolic and statistical. Symbolic NLP techniques use the characteristics of the language (i.e. semantics, syntax and the relationships among sentences) to interpret a narrative document to the extent necessary for encoding it into one of a set of predefined categories (e.g. positive or negative for pneumonia) [25, 26] . As for statistical NLP techniques, they use the frequency distribution of words and phrases to automatically classify a set of narrative documents [27, 28] . The results of preliminary studies that have implemented these NLP techniques are encouraging [29, 30] . For instance, we recently conducted a pilot study to validate the accuracy of using statistical NLP for identifying cases of deep vein thrombosis (DVT) and pulmonary embolism (PE) from free-text electronic narrative radiology reports [31] . This method was found to be highly effective and accurate. The statistical NLP model predicting DVT achieved sensitivity of 0.80 (95% CI: 0.76-0.85), specificity of 0.98 (98% CI: 0.97-0.99) and positive predictive value (PPV) of 0.89 (95% CI: 0.85-0.93). As for the statistical NLP model predicting PE, sensitivity was 0.79 (95% CI: 0.73-0.85), specificity 0.99 (95% CI: 0.98-0.99), and PPV was 0.84 (95% CI: 0.75-0.92) [31] . However, narrative data alone may not contain all the information needed to accurately identify all types of AEs. For some events, such as hospital-acquired pneumonia (HAP), it might be necessary to combine the information from a variety of electronic data sources, including narrative chest x-ray reports, microbiology and laboratory data, and progress notes to accurately identify positive cases [13] . To move this field forward, as well as to maximize the accuracy of AE detection, there is a need for comprehensive automated AE detection algorithms that integrate the information from all the available data sources (e.g. microbiology and laboratory results, freetext radiology reports and progress notes and electronic vital signs). The primary objective of this study, and the original contribution of this research proposal, is to assess the accuracy of using comprehensive automated algorithms for detecting AEs in acute care hospitals. A secondary objective of this study is to determine the external validity of these algorithms. This study will be conducted at two leading Canadian academic health centres: the McGill University Health Centre (MUHC) and The Ottawa Hospital (TOH). The MUHC is composed of five acute care hospitals and has more than 800 adult beds. It serves a population of 1.7 million people (22% of Quebec's population), with an annual volume of 735,000 ambulatory visits, 33,300 surgeries, and 40,000 hospitalizations [32] . TOH is composed of three campuses serving a community of more than one million people across the National Capital Region and Eastern Ontario. It is composed of 1,149 beds, with annual volumes of more than 1,000,000 ambulatory care visits, 34,000 surgeries, and 48,000 patient admissions [33] . TOH was the first academic health centre in Canada to implement a research data warehouse as part of its clinical information system and to pioneer AE detection and monitoring through new information technologies and the secondary use of electronic clinical data. The study population will consist of all adult medical, surgical and intensive care unit patients admitted to the MUHC and TOH between January 1, 2008 and December 31, 2014. First, a random sample of MUHC patients will be used to develop baseline automated AE detection algorithms (cohort 1, development set). These baseline algorithms will be developed using published definitions (e.g. National Healthcare Safety Network/Centers for Disease Control and Prevention (CDC/NHSN) definitions of nosocomial infections), which will also guide the extraction of the required data from the various electronic clinical databases at the MUHC and TOH. Then, the accuracy of these baseline algorithms will be assessed in comparison to information contained in the medical charts. To maximize the accuracy of AE detection, these algorithms will then be iteratively optimized by varying the cutoff values for each of the data sources, as well as the type and the number of data sources included in the algorithms. The most accurate algorithms will then be validated on a distinct random sample of MUHC patients (cohort 1, validation set). To determine the robustness of these algorithms and the extent to which they can be generalized to other acute care settings, the most accurate algorithms developed and validated at the MUHC will be applied to a random sample of TOH patients (cohort 2), and a reference standard assessment of the medical chart will be performed. Data required to develop the automated algorithms will be extracted from the MUHC and TOH clinical data warehouses and will be linked by unit, patient and hospital admission date and time. Specifically, data will be extracted from nine electronic databases, including: 1) laboratory, 2) microbiology, 3) radiology, 4) vital signs, 5) intensive care unit, 6) pharmacy, 7) admission, discharge and transfer, 8) discharge abstracts, and 9) narrative progress notes. For the purpose of this study, three potentially preventable AEs were selected: a) hospital-acquired pneumonias (HAPs), including ventilator-associated pneumonias (VAPs); b) central venous catheter-associated blood stream infections (CVC-BSIs); and c) in-hospital falls. These AEs were selected because they can each result in increased morbidity, mortality and length of hospital stay, as well as increased health care expenditures [34] [35] [36] [37] [38] [39] [40] [41] [42] . Moreover, these indicators have high incidence rates compared to other AEs. HAPs represent one of the most common nosocomial infections, accounting for 15% of all hospitalacquired infections and 25% of all ICU-acquired infections [34] [35] [36] [37] . HAPs are estimated to occur at a rate of between five and ten cases per 1,000 hospital admission, and in about 8%-28% of patients receiving mechanical ventilation [34, 37, 43] . Central venous catheters are the single most important cause of health-care-associated bloodstream infections, with CVC-BSIs estimated to occur in 2%-6% of all catheterizations [38, 39, 44] . Between 3% and 27% of patients will fall at least once during their hospitalization [40, 45, 46] . Data from the development set (cohort 1) will be used to develop three baseline automated AE detection algorithms, one for each of the selected AEs. These baseline algorithms will be developed by applying the CDC/NHSN definitions for HAP/VAP [47] and CVC-BSI [42] and the WHO definition for a fall [48] (Table 1) . A positive case of AE will be defined as any patient whose electronic data satisfies the CDC/NHSN definitions for HAP/VAP and CVC-BSI or the WHO definition for a fall (Table 1) . Negative cases will be those patients that are negative on one or more of these criteria. The accuracy of the baseline algorithms will be assessed using a reference standard assessment of the medical chart. Charts will be reviewed by trained medical chart reviewers (MCRs) that will be blind to the patients' AE status (i.e. positive vs. negative) as determined by the automated algorithms. MCRs will use a standardized computer-based abstraction form that was developed during our pilot work [31] . To assess inter-rater reliability, a random sample of 10% of the medical charts will be blindly reviewed by a second MCR, and interclass correlation coefficients (ICC) will be computed. To ensure data quality throughout the study, MCRs will undergo periodic quality assurance monitoring. Prior studies have shown that the CDC/NNSH definitions have limited accuracy for identifying cases of AEs [51] [52] [53] . To maximize the accuracy of AE detection, the baseline algorithms for HAP/VAP and CVC-BSI will be optimized using four successive steps. Steps 1-3 will use the patient medical chart as the reference standard, whereas step 4 will estimate the reference standard using latent class analyses. Step 1: Receiver operating characteristic (ROC) curves will be used to identify: a) optimal cut points for defining the presence of an AE (e.g. using various threshold values for defining an elevated white blood cell count, an abnormal ventilator setting or an elevated body temperature) Radiology NLP Narrative radiology reports that are suggestive of the occurrence of a fall (e.g. history of fall, s/p fall, syncope). Then, these reports will be scanned for evidence of soft tissue injuries, long bones, hip, wrist or skull fractures or traumatic brain injuries Abbreviations: NLP Natural Language Processing, WBC white blood cell count, HAP hospital-acquired pneumonia, VAP ventilator-associated pneumonia, CVC-BSI central venous catheter-associated blood stream infections. and b) optimal time window for measuring these parameters (e.g. requiring a single day with an elevated WBC vs. at least two consecutive days). In addition, the ROC area under curve (AUC), along with its 95%CIs, will be used to assess the accuracy of each data source. Step 2: Three separate multivariate logistic regression analyses-one for each AE-will be conducted to assess the incremental effect in detection accuracy of combining data sources, using the optimal cut points and measurement windows defined in step 1. Stepwise and backward procedures will be used to identify data sources that are significantly associated with the occurrence of an AE. AUCs along with their 95%CIs will be used to assess the incremental effect in detection accuracy associated with the inclusion of a given data source in the regression model. AUCs across models will be compared using the approach described by Hanley and McNeill [54] . Data sources not significantly associated with AE occurrence will be eliminated from the model. Step 3: The regression models developed in step 2 will be used to assess the incremental effect in detection accuracy of including patient demographic characteristics and comorbidities. Indeed, prior studies have found that older patients with more comorbidities are at higher risk of experiencing AEs [12] . Patient age, sex, and admission urgency (elective vs. urgent) and admission type (medical vs. surgical) will be obtained from the discharge abstract database. Comorbidities will be measured using the Charlson Comorbidity Index, a weighted index of 17 comorbidities that are associated with an increased risk of mortality [55] . Comorbidities will be extracted from discharge summaries and progress notes using a previously validated NLP system described by Chuang et al. [56] . Then, patient age and comorbidities will be entered as continuous variables in the regression models, whereas patient sex and admission urgency and type will be included as dichotomous variables. The AUCs of models containing demographic characteristics and comorbidities will be compared to that of models not containing these characteristics [54] . Step 4: The limitations associated with using the patient medical charts as the reference standard for determining the true AE status (e.g. omissions, errors) [13] will be acknowledged as these limitations may influence the perceived accuracy of the automated AE detection algorithms in either direction [57] . As such, the analyses from steps 1-3 will be repeated using latent class analysis to estimate the reference standard. Latent class analyses will be conducted assuming the conditional dependence of the data sources [57] . The AUCs of the best performing algorithms from step 1 to step 3 will then be compared to that of the best performing models from step 4 [54] . Lastly, the best performing algorithms from the development steps will be applied to the validation set (cohort 1) and their performance will be assessed using the AUCs. AUCs from the validation set will then be compared to those obtained during the development steps [54] . In each of the development steps (steps 1-4) and validation steps estimates of sensitivity, specificity, positive and negative predictive value, along with their 95% confidence intervals, will be computed for the best performing algorithms. To assess the robustness and the extent to which the best performing algorithms developed and validated at the MUHC can be generalized to other acute care hospitals, they will be applied to a second cohort (cohort 2) consisting of medical, surgical and intensive care unit patients admitted to TOH. A reference standard assessment of the medical chart will then be performed, and the AUCs obtained from cohort 2 will be compared to those obtained from the best performing algorithms in cohort 1 to determine if there are significant differences in the performance of the algorithms across sites. To maximize efficiency, AE positive patients will be oversampled in relation to AE negative patients [58] . To avoid bias due to seasonal trends, [59, 60] each AE positive patient will be matched with AE negative patients who will be sampled among those that were admitted on the same date. In addition, to minimize the costs associated with performing chart review, all AE negative patients will be selected so that they are negative for all three AEs according to the automated AE detection algorithms. Assuming an incidence rate of 5.0% for both HAP/VAP [34, 37, 43] and CVC-BSIs [38, 39, 44] and of 7.0% for inhospital falls, [40, 45] a total of 639 AE positive charts and 3,099 AE negative charts will be reviewed at the MUHC, using the worst case scenario (see Tables 2 and 3) , to generate a 95% confidence interval width of 0.10 around a sensitivity estimate of 0.90 that is adjusted for the oversampling of AE positive patients [58] . Similar figures will be required at TOH to assess the external validity of the automated AE algorithms. A considerable amount of time and effort were required during the first 2 years of the study for extracting, cleaning and formatting the required data, as well as for meeting confidentiality and security requirements for data extraction and use at each site. At present time, we have developed and validated a statistical NLP model for identifying narrative radiology reports that are suggestive of the presence of pneumonia. We are now in the process of developing the pneumonia detection algorithm using this NLP-based information along with data from other electronic sources (e.g. microbiology and laboratory results, electronic vital signs). The development of the CVC-BSI algorithm is also underway. This study will likely produce more accurate and timely measures of AEs. Three important contributions of this study should be emphasized. First, we propose to integrate several sources of EHR data into comprehensive automated AE detection algorithms. This approach contrasts with previous algorithms, [29, 30, [61] [62] [63] [64] [65] [66] which were for the most part based on a single source of EHR data (e.g. electronic triggers or narrative radiology reports). Second, we will attempt to maximize accuracy by optimizing the automated algorithms, an approach that also departs from prior studies. Lastly, we will determine if the automated AE detection algorithms developed in one setting can be generalized to other similar clinical contexts; a question that has rarely been addressed in prior investigations. The measures that will be developed and validated in this study are likely to have multiple applications. Hospitals could use these measures to assess the incidence rates of AEs, develop near real-time monitoring systems, evaluate different interventions aimed at improving patient safety, track progress in patient safety through time, or benchmark performance at the local or national levels. In addition, because these methods are automated, they offer the potential to rapidly scan large numbers of patient records and EHR data with minimal human effort, a major gain compared to using manual chart review. Moreover, because these methods will be applied to electronic data that have the advantage of being time and date stamped (e.g. radiology reports), they can potentially determine the timing of AE occurrence with relatively high precision; a net improvement compared to using discharge diagnostic codes and a key requirement for determining how antecedent exposures are related to the risk of AE. Based on optimal sample sizes provided in Table 2 (see values in italics). b To minimize the costs associated with performing chart review, all AE negative patients will be selected so that they are negative for all three AEs according to the automated detection algorithms. As such, 3,099 is the largest number of AE negative patients required, assuming the worst case scenario. Building a Safer Health System Incidence of adverse events and negligence in hospitalized patients. Results of the Harvard Medical Practice Study I The nature of adverse events in hospitalized patients. Results of the Harvard Medical Practice Study II Incidence and types of adverse events and negligent care in Utah and Colorado Costs of medical injuries in Utah and Colorado The Canadian Adverse Events Study: the incidence of adverse events among hospital patients in Canada Adverse events in New Zealand public hospitals I: occurrence and impact Adverse events in New Zealand public hospitals II: preventability and clinical context The Quality in Australian Health Care Study The Research Priority Setting Working Group. Global Priorities for Research in Patient Safety. Geneva: World Health Organization Patient Safety: Achieving a New Standard for Care Automated detection of harm in healthcare with information technology: a systematic review Detecting adverse events for patient safety research: a review of current methodologies Automated surveillance of health care-associated infections Detecting adverse events using information technology Global trigger tool' shows that adverse events in hospitals may be ten times greater than previously measured Validity of selected patient safety indicators: opportunities and concerns Accuracy of administrative code data for the surveillance of healthcare-associated infections: a systematic review and meta-analysis Validity of selected AHRQ patient safety indicators based on VA National Surgical Quality Improvement Program data How often are potential patient safety events present on admission? Do the AHRQ patient safety indicators flag conditions that are present at the time of hospital admission? Electronically screening discharge summaries for adverse medical events Validation of a discharge summary term search method to detect adverse events Natural Language Understanding Natural language processing: an introduction Natural Language Processing for Biosurveillance The Elements of Statistical Learning. Data mining, Inference, and Prediction Automated identification of postoperative complications within an electronic medical record using natural language processing Exploring the frontier of electronic health record surveillance: the case of postoperative complications A novel method of adverse event detection can accurately identify venous thromboembolism (VTE) from narrative electronic health record data MUHC at a glance The Ottawa Hospital: the Ottawa Hospital in statistics Ventilator-associated pneumonia Guidelines for the management of adults with hospital-acquired, ventilatorassociated, and healthcare-associated pneumonia Hospital-acquired pneumonia: pathophysiology, diagnosis, and treatment Ventilator-associated pneumonia: a review The clinical effectiveness and cost-effectiveness of central venous catheters treated with anti-infective agents in preventing bloodstream infections: a systematic review and economic evaluation The risk of bloodstream infection in adults with different intravascular devices: a systematic review of 200 published prospective studies Predictors of falling in elderly hospital patients Epidemiology and microbiology of hospital-acquired pneumonia Guidelines for the prevention of intravascular catheter-related infections Clinical practice guidelines for hospital-acquired pneumonia and ventilator-associated pneumonia in adults Overview of catheter-related infections with special emphasis on prevention based on educational programs Risk factors and risk assessment tools for falls in hospital in-patients: a systematic review Measuring falls events in acute hospitals-a comparison of three reporting methods to identify missing data in the hospital reporting system CDC/NHSN surveillance definitions for specific types of infections WHO Global report on fall prevention in older age Electronic surveillance of antibiotic exposure and coded discharge diagnoses as indicators of postoperative infection and other quality assurance measures Electronic interpretation of chest radiograph reports to detect central venous catheters Accuracy of reporting nosocomial infections in intensive-care-unit patients to the National Nosocomial Infections Surveillance System: a pilot study Accuracy of clinical definitions of ventilator-associated pneumonia: comparison with autopsy findings Quality of traditional surveillance for public reporting of nosocomial bloodstream infection rates A method of comparing the areas under receiver operating characteristic curves derived from the same cases A new method of classifying prognostic comorbidity in longitudinal studies: development and validation A comparison of the Charlson comorbidities derived from medical language processing and administrative data The Statistical Evaluation of Medical Test Classification and Prediction Efficient study designs to assess the accuracy of screening tests Seasonal variation in host susceptibility and cycles of certain infectious diseases Seasonality of infectious diseases and severe acute respiratory syndrome-what we don't know can hurt us Natural Language Processing to identify pneumonia from radiology reports NLP-based identification of pneumonia cases from free-text radiological reports Computer algorithms to detect bloodstream infections Comparison of automated strategies for surveillance of nosocomial bacteremia Formulation of a model for automating infection surveillance: algorithmic detection of central-line associated bloodstream infection Submit your next manuscript to BioMed Central and take full advantage of: • Convenient online submission • Thorough peer review • No space constraints or color figure charges • Immediate publication on acceptance • Inclusion in PubMed, CAS, Scopus and Google Scholar • Research which is freely available for redistribution The authors declare that they have no competing interests.Authors' contributions CR, DB and AF 1) have made substantial contributions to conception and design, or acquisition of data, or analysis and interpretation of data; 2) have been involved in drafting the manuscript or revising it critically for important intellectual content; and 3) have read and given final approval of the version to be published. Funding for this study was provided by the Canadian Institutes of Health Research (CIHR).