Introduction to the HCUP Nationwide Emergency Department Sample (NEDS), 2009
HEALTHCARE COST AND UTLIZATION PROJECT HCUP
A FEDERAL-STATE-INDUSTRY PARTNERSHIP IN HEALTH DATA
Sponsored by the Agency for Healthcare Research and Quality
INTRODUCTION TO
THE HCUP NATIONWIDE EMERGENCY DEPARTMENT SAMPLE (NEDS)
2009
| These pages provide introductory-level information about the NEDS. For full documentation and notification of changes, visit the HCUP User Support (HCUP-US) Website at http://www.hcup-us.ahrq.gov. |
Issued September 2011
Updated November 2015
Agency for Healthcare Research and Quality
Healthcare Cost and Utilization Project (HCUP)
Phone: (866) 290-HCUP (4287)
E-mail: hcup@ahrq.gov
Website: http://www.hcup-us.ahrq.gov
NEDS Data and Documentation Distributed by:
HCUP Central Distributor
Phone: (866) 556-4287 (toll-free)
Fax: (866) 792-5313
E-mail: HCUPDistributor@ahrq.gov
Table of Contents
Skip Table of Contents- SUMMARY OF DATA USE LIMITATIONS
- HCUP CONTACT INFORMATION
- WHAT IS THE NATIONWIDE EMERGENCY DEPARTMENT SAMPLE (NEDS)?
- UNDERSTANDING THE NEDS
- ABSTRACT
- INTRODUCTION TO THE HCUP NATIONWIDE EMERGENCY DEPARTMENT SAMPLE (NEDS)
- Overview Of NEDS Data
- Identification of HCUP Records with Emergency Department Services
- State-Specific Restrictions
- File Structure of the NEDS
- NEDS Data Elements
- Getting Started
- SAMPLING DESIGN OF THE NEDS
- Universe of Hospital-Based Emergency Departments
- Sampling Frame of the NEDS
- Stratification Variables
- Sample Weights
- Final NEDS Sample
- HOW TO USE THE NEDS FOR DATA ANALYSIS
- Limitations of the NEDS
- Identifying Different Types of ED Events
- Calculating National Estimates
- Choosing Data Elements for Analysis
- ICD-9-CM Diagnosis and Procedure Codes
- Missing Values
- Variance Calculations
- Computer Software for Weighted and Variance Calculations
- COMPARABLE ED DATA SOURCES
- Appendix I: NEDS Introductory Information
- Table 1: HCUP Partners Participating in the 2009 NEDS
- Figure 1: HCUP States Participating in the 2009 NEDS
- Table 2: Percentage of U.S Population and AHA ED Visits Accounted for by the 28 HCUP States Participating in the NEDS, 2009
- Table 3: NEDS Related Reports and Database Documentation Available on HCUP-US
- Table 4: Different Types of ED Events in the NEDS
- Table 5: NEDS Stratifiers
- Table 6: 2009 NEDS Target Universe, Sampling Frame, and Final Sample Characteristics
- Table 7: NEDS Sampling Rates, 2009
- Appendix II: State-Specific Restrictions
- Appendix III: NEDS Data Elements and Codes
- Table 1: Data Elements in the NEDS Core File
- Table 2: Data Elements in the NEDS Supplemental ED File
- Table 3: Data Elements in the NEDS Supplemental Inpatient File
- Table 4: Data Elements in the NEDS Hospital Weights File
- Appendix IV: Comparisons of the NEDS with Existing Sources of ED Data
- Figure 1: Emergency Department Visit Counts (in thousands) in the United States, 2009
- Table 1: Estimates of ED Visits by U.S. Geographic Region from Five ED Data Sources, 2009
- Table 2: Estimates of the ED Visits Resulting in Inpatient Admissions (Admission Rate) by U.S. Geographic Region from Two ED Data Sources, 2009
- Table 3: Estimates of the Number of Hospital-Based EDs by ED Visit Volume from Three ED Data Sources, 2009
- Table 4: Estimates of the Number of Injury-Related ED Visits from Three ED Data Sources, 2009
HCUP NATIONWIDE EMERGENCY DEPARTMENT SAMPLE (NEDS)
|
|
***** REMINDER ***** |
All users of the NEDS must take the on-line HCUP Data Use Agreement (DUA) training course, and read and sign a Data Use Agreement.† Authorized users of HCUP data agree to the following restrictions: ‡
Any violation of the limitations in the Data Use Agreement is punishable under Federal law by a fine of up to $10,000 and up to 5 years in prison. Violations may also be subject to penalties under State statutes. |
† The on-line Data Use Agreement training session and the Data Use Agreement are available on the HCUP User Support (HCUP-US) website at http://www.hcup-us.ahrq.gov. |
HCUP CONTACT INFORMATION
All HCUP data users, including data purchasers and collaborators, must complete the online HCUP Data Use Agreement (DUA) Training Tool, and read and sign the HCUP Data Use Agreement. Proof of training completion and signed Data Use Agreements must be submitted to the HCUP Central Distributor as described below.
The on-line DUA training course is available at: http://www.hcup-us.ahrq.gov/tech_assist/dua.jsp.
The HCUP Nationwide Data Use Agreement is available on the AHRQ-sponsored HCUP User Support (HCUP-US) website at: http://www.hcup-us.ahrq.gov
HCUP Central Distributor
Data purchasers will be required to provide their DUA training completion code and will execute their DUAs electronically as a part of the online ordering process. The DUAs and training certificates for collaborators and others with access to HCUP data should be submitted directly to the HCUP Central Distributor using the contact information below.
The HCUP Central Distributor can also help with questions concerning HCUP database purchases, your current order, training certificate codes, or invoices, if your questions are not covered in the Purchasing FAQs on the HCUP Central Distributor website.
-
Purchasing FAQs:
https://www.distributor.hcup-us.ahrq.gov/Purchasing-Frequently-Asked-Questions.aspx
Phone: 866-556-HCUP (4287) (toll free)
Email: HCUPDistributor@AHRQ.gov
Fax: 866-792-5313 (toll free in the United States)
HCUP Central Distributor
Social & Scientific Systems, Inc.
8757 Georgia Ave, 12th Floor
Silver Spring, MD 20910
HCUP User Support:
Information about the content of the HCUP databases is available on the HCUP User Support (HCUP-US) website (http://www.hcup-us.ahrq.gov). If you have questions about using the HCUP databases, software tools, supplemental files, and other HCUP products, please review the HCUP Frequently Asked Questions or contact HCUP User Support:
HCUP FAQs:
http://www.hcup-us.ahrq.gov/tech_assist/faq.jsp
Phone: 866-290-HCUP (4287) (toll free)
Email: hcup@ahrq.gov
|
WHAT IS THE NATIONWIDE EMERGENCY DEPARTMENT SAMPLE (NEDS)?
|
|
|
UNDERSTANDING THE NEDS
|
|
HEALTHCARE COST AND UTILIZATION PROJECT — HCUP
A FEDERAL-STATE-INDUSTRY PARTNERSHIP IN HEALTH DATA
Sponsored by the Agency for Healthcare Research and Quality
HCUP Nationwide Emergency Department Sample (NEDS)
ABSTRACT
The Nationwide Emergency Department Sample (NEDS) is part of the Healthcare Cost and Utilization Project (HCUP) that is sponsored by the Agency for Healthcare Research and Quality (AHRQ). The 2009 NEDS is a publicly available database that can be purchased through the HCUP Central Distributor.
The NEDS was created to enable analyses of emergency department (ED) utilization patterns and to support public health professionals, administrators, policy makers, and clinicians in their decision-making regarding this critical source of care. The ED serves a dual role in the U.S. healthcare system infrastructure, as a point of entry for approximately 50% of inpatient hospital admissions and as a setting for treat-and-release outpatient visits.1 The NEDS has many research applications, because it contains information about geographic, hospital, and patient characteristics as well as descriptions of the nature of the visits (i.e., common reasons for ED visits, including injuries).
The NEDS is the largest all-payer ED database that is publicly available in the United States, containing information from almost 29 million ED visits at 964 hospitals that approximate a 20-percent stratified sample of U.S. hospital-based EDs. Weights are provided to calculate national estimates pertaining to almost 130 million ED visits in 2009.
The NEDS is drawn from States that provide HCUP with data from ED visits that may or may not have resulted in hospital admission. Twenty-nine HCUP States participated in the 2009 NEDS. See Appendix I, Table 1 for a list of data organizations participating in the NEDS.
By stratifying on important hospital characteristics, the NEDS represents a microcosm of U.S. hospital-based EDs. Stratification is based on the following five characteristics:
- Geographic region (Northeast, Midwest, South, and West)
- Trauma center designation (trauma level I, II, III, and non-trauma)
- Urban-rural location of the hospital (large metropolitan, small metropolitan, micropolitan, and non-urban residual)
- Teaching hospitals
- Hospital ownership or control (public, for-profit, and not-for-profit).
Access to the NEDS is open to users who sign Data Use Agreements. Uses are limited to research and aggregate statistical reporting. For more information on the NEDS, visit the AHRQ-sponsored HCUP User Support (HCUP-US) Website at .
INTRODUCTION TO THE HCUP NATIONWIDE EMERGENCY DEPARTMENT SAMPLE (NEDS)
Overview of NEDS Data
The Healthcare Cost and Utilization Project (HCUP) Nationwide Emergency Department Sample (NEDS) was created to enable analyses of emergency department (ED) utilization patterns and to support public health professionals, administrators, policy makers, and clinicians in their decision-making regarding this critical source of care. The ED serves a dual role in the U.S. healthcare system infrastructure, as a point of entry for approximately 50% of inpatient hospital admissions and as a setting for treat-and-release outpatient visits.2 The NEDS has many research applications, because it contains information about geographic, hospital, and patient characteristics as well as the nature of visits (e.g., common reasons for ED visits, acute and chronic conditions, and injuries).
The number of States, hospital-based EDs, and ED visits included in the NEDS varies by year (listed below). Appendix I, Table 1 identifies the specific statewide data organizations that contribute to the NEDS.
| Data Year | HCUP States in the NEDS | Number of Hospital-Based EDs | Number of ED Events Unweighted | Number of ED Events, Weighted for National Estimates |
|---|---|---|---|---|
| 2009 | AZ, CA, CT, FL, GA, HI, IA, IN, KS, KY, IL, MA, MD, ME, MN, MO, NC, NE, NH, NJ, NY, OH, RI, SC, SD, TN, UT, VT, and WI (Added IL) | 964 | 28,861,047 | 128,885,040 |
| 2008 | AZ, CA, CT, FL, GA, HI, IA, IN, KS, KY, MA, MD, ME, MN, MO, NC, NE, NH, NJ, NY, OH, RI, SC, SD, TN, UT, VT, and WI (Added KY) | 980 | 28,447,148 | 124,945,264 |
| 2007 | AZ, CA, CT, FL, GA, HI, IA, IN, KS, MA, MD, ME, MN, MO, NC, NE, NH, NJ, NY, OH, RI, SC, SD, TN, UT, VT, and WI (Added NC, NY, RI) | 966 | 26,627,923 | 122,331,739 |
| 2006 | AZ, CA, CT, FL, GA, HI, IA, IN, KS, MA, MD, ME, MN, MO, NE, NH, NJ, OH, SC, SD, TN, UT, VT, and WI | 955 | 25,702,597 | 120,033,570 |
Appendix 1, Figure 1 represents the geographic distribution of the 29 participating HCUP Partner States in 2009. Based on U.S. Census Bureau data, the HCUP NEDS States account for 66.8% of the U.S. population in 2009. The 29 States account for 65.5% of the ED visits reported in the 2009 American Hospital Association (AHA) Annual Survey Database. Details on the percentage of population and ED visits by region are provided in Appendix I, Table 2.
Identification of HCUP Records with Emergency Department Services
Information on patients with ED events are contained in two existing HCUP databases:
- State Emergency Department Databases (SEDD) capture discharge information on all ED visits that do not result in an admission to that hospital (i.e., treat-and-release visits and transfers to another hospital).
- State Inpatient Databases (SID) contain information on patients initially seen in the emergency room and then admitted to the same hospital.
Both of these HCUP databases contain a core set of clinical and non-clinical information elements that are defined in a uniform scheme for all patients, regardless of payer. This scheme makes it possible to combine records across databases.
Selection of ED records from the SEDD and SID for use in the NEDS was based on evidence of ED services reported on the record. The HCUP criteria for identifying an ED record (i.e., a discharge record for a patient with an ED event) require that at least one of the following conditions is true:
- Revenue center code of 450-459 reported on discharge record, indicating ED services.
- ED charge greater than zero dollars, when revenue center codes were not available.
- CPT code of 99281-99285 reported on discharge record, indicating ED physician services.
- ED identified by admission source or point of origin (used for inpatient discharges only).
Because five of the 29 Partners (CA, HI, MA, NC, and OH) did not provide ED charge information (either in revenue codes or a separate charge field) on records in the SEDD, this limited the ability to clearly identify ED visits using the HCUP criteria. Therefore, the identification of ED records in these States was evaluated on a State-by-State basis.
- CA, HI, MA, and NC: In each case, the HCUP Partner provided a source file that contained only ED treat-and-release records. Because the data source uniquely identified ED records, all of the SEDD records were considered to be ED records, even though information was not available to determine if HCUP criteria were met.
- OH: The HCUP Partner provided a large outpatient database that combined records for ED services with records for other outpatient visits, such as ambulatory surgery, outpatient clinic, or laboratory. Each record contained a State-defined indicator of the type of outpatient service. Ohio outpatient records with an ED designation were considered to be ED records, even though information was not available to determine if HCUP criteria were met.
State-Specific Restrictions
Some sources that contributed data to the NEDS imposed restrictions on the release of certain data elements or on the number and types of hospitals that could be included in the database. In addition, because of confidentiality laws, some data sources were prohibited from providing HCUP with discharge records that indicated specific medical conditions, such as HIV/AIDS or behavioral health. Detailed information on these State-specific restrictions is available in Appendix II.
File Structure of the NEDS
Because of the size of the NEDS and the difference in information collected on records for patients admitted into the hospital directly from the ED (SID records) and for ED patients that are not admitted (SEDD records), the NEDS is divided into four different files:
- Core File: This file contains 100% of the ED events — whether resulting in admission or not — from the sample of hospitals in participating States. In 2009, the NEDS Core File has almost 29 million ED records. Refer to Appendix III, Table 1 for a list of data elements in the NEDS Core File.
- Supplemental ED File: This file contains information on CPT-4 and ICD-9-CM procedures that were performed in the ED for patients who are not admitted directly to the hospital. This information came from the SEDD. In 2009, the NEDS Supplemental ED File has about 24 million ED records. The unique NEDS record identifier (KEY_ED) provides the linkage between the NEDS Core File and the Supplemental ED File. Refer to Appendix III, Table 2 for a list of data elements in the NEDS Supplemental ED File. For patients seen in the ED and admitted to the same hospital (SID records), information about procedures is contained in the Supplemental Inpatient File.
- Supplemental Inpatient File: This file contains data elements that are not specific to the ED, such as total charges for the inpatient stay, length of inpatient stay, and ICD-9-CM procedures from the SID record. Procedures reported on the SID records may have been performed in the ED, but currently there is no way to verify this information. In 2009, the NEDS Supplemental Inpatient File has over 4 million records. The unique NEDS record identifier (KEY_ED) provides the linkage between the NEDS Core File and the Supplemental Inpatient File. Refer to Appendix III, Table 3 for a list of data elements in the NEDS Supplemental Inpatient File.
- Hospital Weights File: This hospital-level file contains one observation for each hospital included in the NEDS and contains weights and variance estimation data elements. In 2009, the NEDS Hospital Weights File has 964 hospital-specific records. The HCUP ED hospital identifier (HOSP_ED) provides the linkage between the NEDS Core File and the Hospital Weights File. A list of data elements in the Hospital Weights File is provided in Appendix III, Table 4.
NEDS Data Elements
The coding of data elements in the NEDS is consistent with other HCUP databases. The following three objectives guided the definition of data elements in all HCUP databases:
- Ensure usability without extensive editing by analysts.
- Retain the largest amount of information available from the original sources, while still maintaining consistency among sources.
- Structure the information for efficient storage, manipulation, and analysis.
More information on the coding of HCUP data elements is available on HCUP User Support (HCUP-US) Website (http://www.hcup-us.ahrq.gov/db/coding.jsp).
After analyzing the availability of information from the HCUP Partner States, a set of common fields to be available in the NEDS was created. The NEDS contains more than 100 clinical and non-clinical variables provided in a hospital discharge abstract, such as:
- ICD-9-CM diagnoses and external cause of injury codes
- Identification of injury-related ED visits, including mechanism and intent of injury and severity
- ICD-9-CM and CPT procedure codes
- Patient demographics (e.g., sex, age, urban-rural designation of residence, national quartile of the median household annual income for the patient’s ZIP Code)
- Expected payment source (e.g., Medicare, Medicaid, private insurance, self-pay)
- Hospital characteristics (e.g., indicator of trauma center level, including pediatric trauma centers, urban-rural designation of county, ownership, teaching status, region of the U.S.)
- ED charges and total hospital charges for patients admitted as an inpatient through the ED.
Appendix III identifies the data elements in each NEDS file:
- Table 1 for the NEDS Core File (record = ED event)
- Table 2 for the NEDS Supplemental ED File (record = ED event that did not result in direct inpatient admission to the same hospital)
- Table 3 for the NEDS Supplemental Inpatient File (record = ED event that resulted in a direct inpatient admission to the same hospital)
- Table 4 for the Hospital Weights File (record = hospital).
Not all data elements in the NEDS are uniformly coded or available across all States. The tables in Appendix III provide summary documentation for the data. Please refer to the NEDS documentation located on the HCUP-US Website (http://www.hcup-us.ahrq.gov) for comprehensive information about data elements and the files.
Getting Started
The NEDS is an extremely large database that requires sophisticated statistical software for analysis. The following computer properties are needed in order to load and analyze the NEDS data:
- A DVD drive
- A hard drive with 60 to 100 gigabytes (GB) of available space
- SAS®, SPSS®,Stata® or similar analysis software
- Microsoft Windows® Vista or other recent operating system, or a third-party zip utility such as WinZip or 7-Zip.
The total size of the comma-delimited version (CSV) of the NEDS is almost 14 GB. The NEDS files loaded into SAS are about 11 GB. In SAS, the largest use of space typically occurs during a sort, which requires work space about three times the size of the file. Thus, the NEDS files would require about 33 GB of available workspace to perform a sort. Most SAS data steps will require twice the storage of the file, so that both the input and output files can coexist. The NEDS files loaded into SPSS are under 30 GB. Because Stata loads the entire file into memory, it may not be possible to load every data element in the NEDS Core file into Stata. Stata users will need to maximize memory and use the "_skip" option to select a subset of variables. More details are provided in the Stata load programs.
With a file of this size and without careful planning, space could easily become a problem in a multi-step program. It is not unusual to have several versions of a file marking different steps while preparing it for analysis, and there may be more versions for the actual analyses. Therefore, the amount of space required could escalate rapidly.
Copying and Decompressing the Comma-Delimited Files
To copy and decompress the comma-delimited (CSV) NEDS files from the DVD, the following steps are outlined:
- Create a directory for the NEDS on the hard drive.
- Unzip each CSV file from the DVD, saving it into a new directory. [Please note that attempts to unzip files larger than 4 GB using versions of Windows prior to Vista will produce an error message similar to the following: "The Compressed (zipped) Folder is invalid or corrupted." The solution is to use a third-party zip utility such as WinZip or 7-Zip rather than the built-in Windows Explorer function to open the archive. Evaluation versions of WinZip may be downloaded from the WinZip Website at www.winzip.com.
7-Zip can be downloaded free of charge at http://www.7-zip.org/.] 
NEDS Documentation
Comprehensive documentation for the NEDS files is available on the HCUP-US Website (http://www.hcup-us.ahrq.gov). Users of the NEDS can access complete file documentation, including variable notes, file layouts, summary statistics, and related technical reports. Similarly, data users can download SAS, SPSS, and Stata load programs. These important resources help the client understand the structure and content of the NEDS and aid in using the database.
To locate the NEDS documentation on HCUP-US, the user is instructed to:
- Choose "Databases" from the home page (http://www.hcup-us.ahrq.gov)
- Select the section labeled "Nationwide Emergency Department Sample (NEDS)."
Appendix 1, Table 3 details the comprehensive NEDS documentation available on HCUP-US.
Downloading and Running the Load Programs
Programs to load the data into SAS, SPSS, or Stata, are available on the HCUP User Support Website (HCUP-US). These steps are used to download and run the load programs:
- Go to the NEDS Database Documentation page on HCUP-US at http://www.hcup-us.ahrq.gov/db/nation/neds/nedsdbdocumentation.jsp.
- Go to the "Load Programs" section on this page.
- Click on "SAS Load Programs", "SPSS Load Programs", or "Stata Load Programs" to go to the corresponding Load Programs page.
- Select and download the load programs. They are specific to the data year. For example, the load program for the 2009 NEDS Core file is linked to "Core File" under "2009 NEDS." Save the load programs into the same directory as the NEDS CSV files on the computer.
- Edit and run the load programs as appropriate for the environment, to load and save the analysis files. For example, add directory paths for the input and output files as needed.
HCUP On-Line Tutorials
For additional assistance, AHRQ has created the HCUP Online Tutorial Series, a series of free, interactive courses that provide training on technical methods for conducting research with HCUP data. Topics include an HCUP Overview Course and these tutorials:
- The Load and Check HCUP Data tutorial provides instructions on how to unzip (decompress) HCUP data, save it on a computer, and load the data into a standard statistical software package. This tutorial also describes how to verify that the data have loaded correctly.
- The HCUP Sampling Design tutorial is designed to help users learn how to account for sample design in their work with HCUP nationwide databases.
- The Producing National HCUP Estimates tutorial is designed to help users understand how the three nationwide databases — the NIS, NEDS, and KID — can be used to produce national and regional estimates.
- The Calculating Standard Errors tutorial shows how to accurately determine the precision of the estimates produced from the HCUP nationwide databases. Users will learn two methods for calculating standard errors for estimates produced from the HCUP nationwide databases.
New tutorial are added periodically. The Online Tutorial Series is located on the HCUP-US Website at http://hcup-us.ahrq.gov/tech_assist/tutorials.jsp.
SAMPLING DESIGN OF THE NEDS
Similar to the design of the Nationwide Inpatient Sample (NIS), the NEDS is built using a 20% stratified sample of institutions. The NIS is a sample of U.S. hospitals; the NEDS is a sample of U.S. hospital-based EDs. The main objective of a stratified sample is to ensure that it is representative of the target universe. By stratifying on important hospital characteristics, the NEDS represents a "microcosm" of EDs in the U.S. For example, by including trauma center designation in the sampling strategy, the NEDS has the same percentage of trauma hospitals as the entire U.S. The NEDS contains all of the ED visits for the sample of hospital-based EDs selected.
Universe of Hospital-Based Emergency Departments
A feasibility study performed in 2008 assessed several possible data sources for the universe of hospital-based EDs in the United States: the American Hospital Association (AHA) Annual Survey Database (Health Forum, LLC © 2012); Verispan, LLC databases (now called SDI Health LLC); and the Centers for Medicare and Medicaid (CMS) Hospital Cost Reports. The AHA Annual Survey Database has the best data to apply for a number of reasons. First, the AHA data provide the necessary hospital characteristics, such as ownership type and teaching status, and also report total ED visits for hospitals. Second, the crosswalk linkage from the HCUP databases to the AHA data is already established. Third, the AHA Annual Survey Database is used as the target universe for the NIS. The universe of hospital-based EDs is therefore defined as the AHA community, non-rehabilitation hospitals that reported total ED visits. The AHA defines community hospitals as "all non-Federal, short-term, general, and other specialty hospitals."
Sampling Frame of the NEDS
The sampling frame of the NEDS is limited to a subset of the universe: hospital-based EDs in the States for which HCUP ED data (SID and SEDD) are available. The list of hospital-based EDs in the frame consists of all AHA community, non-rehabilitation hospitals that report total ED visits in each of the frame States that could be matched to the ED data provided to HCUP. If an ED in the AHA survey could not be matched to the ED data provided by the HCUP data source, it was eliminated from the sampling frame (but not from the target universe).
Stratification Variables
The following hospital characteristics were used for sample stratification: U.S. Census region, trauma center designation, urban-rural location of the hospital, ownership, and teaching status. ED bed size was not used because no data source for this information could be identified. A number of data sources report the bed size of the hospital, but no source distinguishes between inpatient and ED beds.
The NEDS stratification variables are described below and detailed in Appendix I, Table 5.
U.S. Census Region
The four Census regions – Northeast, Midwest, South, and West – were used to stratify EDs by geographic location because practice patterns may vary substantially by region. Appendix I, Figure 1 shows the NEDS States by region.
Trauma Centers
A trauma center is a hospital that is equipped to provide comprehensive emergency medical services 24 hours a day, 365 days per year to patients with traumatic injuries. For the NEDS, trauma centers treating adults and children were identified through the Trauma Information Exchange Program database (TIEP), a national inventory of trauma centers in the U.S. Information is collected by the American Trauma Society and the Johns Hopkins Center for Injury Research and Policy and funded by the Centers for Disease Control and Prevention. 3,4
The TIEP database identifies all U.S. hospitals that are designated as trauma centers by a State or regional authority or verified by the American College of Surgeons' Committee on Trauma (ACS/COT). These trauma centers treat both adults and children. Designation of trauma center levels I, II, and III is based on criteria developed by the ACS/COT. Level I and II centers have comprehensive resources and are able to care for the most severely injured. Level I centers also provide leadership in education and research. Level III centers provide prompt assessment and resuscitation, emergency surgery and, if needed, transfer to a level I or II center. Level IV and V centers are State-defined and often located in remote areas. These centers resuscitate and stabilize patients and arrange transfer to an appropriate trauma facility. For the NEDS, levels I, II, and III were used to identify a trauma center. Level IV and V centers were set aside within the context of these data because many states choose not to designate hospitals at these levels of trauma care and their institutional characteristics have many similarities to community (non-trauma) hospitals in other areas. It is also important to note that although all level I, II, and III trauma centers offer a high level of trauma care, there may be differences in the services and resources offered by hospitals of different levels. Further, hospitals of different levels may be utilized in diverse ways within the context of individual state trauma systems or the geographic areas in which they operate. Hospital information from TIEP was matched to the AHA via the corresponding AHA hospital identifier and then added to the HCUP ED data.
For trauma centers within children's hospitals, the following process was employed:
- A combination of information from TIEP, ACS/COT and State-specific Websites on trauma certification was used to identify trauma centers within children's hospitals and their associated trauma levels.
- Trauma centers within children's hospitals were included in the 2009 NEDS sample frame within the appropriate trauma level strata. In 2009, these hospitals are either trauma level I, II, or III. Prior to 2009, none of these hospitals had a level III designation.
In the NEDS, trauma centers that are level I, II, and III were distinguished unless the strata size in the universe or frame was less than two hospitals. In that case, a collapsed stratification of levels I and II or levels I, II, and III was necessary.
Urban-Rural Location of the ED
The urban-rural location of hospital-based EDs was determined based on the county in which the hospital was located. The categorization is a simplified adaptation of the 2003 version of the Urban Influence Codes (UIC).5 The 12 categories of the UIC are combined into four broader categories:
- Large metropolitan area — areas with at least one million residents
- Small metropolitan area — areas with less than one million residents
- Micropolitan area — non-metropolitan area with at least 10,000 people or more
- Non-urban residual.
If the strata size in the universe or frame was less than two hospitals, a collapsed stratification of metropolitan (large and small) or non-metropolitan (micropolitan and non-urban residual) was necessary.
Teaching Status
A hospital-based ED is considered to be a teaching facility if the associated hospital has an American Medical Association (AMA) approved residency program, is a member of the Council of Teaching Hospitals (COTH), or has a ratio of full-time equivalent interns and residents to beds of 0.25 or higher according to the AHA Annual Survey Database. Because there are very few teaching hospitals in micropolitan and rural areas, teaching status was only used to stratify EDs in metropolitan areas.
Hospital Ownership
Hospital ownership or control was categorized according to information reported in the AHA Annual Survey Database. Ownership categories include:
- Public — government, non-Federal
- Voluntary — private, not-for-profit
- Proprietary — private, investor-owned/for-profit.
When there were enough hospitals of each type, EDs were stratified into public, voluntary, and proprietary categories. If necessary, because of small strata size in the universe, a collapsed stratification of public versus private was used; the voluntary, non-profit and proprietary/for-profit hospitals were combined to form a single "private" category. Stratification based on ownership or control was not advisable in some regions because of the dominance of one type of hospital (e.g., Northeast).
Sample Weights
To obtain nationwide estimates, weights were developed using the AHA universe as the standard. These were developed separately for analyses of hospital-based EDs and ED visits. Hospital-level weights were developed to extrapolate NEDS sample EDs to the universe of hospital-based EDs. Similarly, discharge-level discharge weights were developed to extrapolate NEDS sample ED visits to the universe of ED visits.
Hospital Weights
Hospital weights to the universe were calculated by poststratification. Hospital-based EDs were stratified on the same variables that were used for sampling: geographic region, trauma center designation, urban-rural location, teaching status, and ownership or control. The strata that were collapsed for sampling were also collapsed for sample weight calculations. Within each stratum, s, each ED in the NEDS sample received a weight:
- HOSPWT = Ws(universe) = Ns(universe) ÷ Ns(sample)
Discharge Weights
Discharge weights to the universe were calculated by poststratification. Hospital-based EDs were stratified in a manner similar to that for universe hospital-weight calculations. Within stratum, s, for hospital, i, the universe weight for each visit in the NEDS sample, was calculated as:
- DISCWT = DWis(universe) = [DNs(universe) ÷ ADNs(sample)] * (4 ÷ Qi)
Final NEDS Sample
The target universe for the NEDS was: (1) community, non-rehabilitation hospitals in the United States that were included in the 2009 AHA Annual Survey Database, and (2) reported total ED visits. Excluded were a handful of non-rural hospitals that reported less than ten ED visits in a year.
The NEDS sampling frame included hospital-based ED events from community, non-rehabilitation hospitals in the 29 HCUP Partner States that provided discharge abstracts on patients admitted to the hospital through the ED and on patients treated and released or transferred to another hospital from the ED. The HCUP hospitals were required to be represented in the AHA data and have no more than 90% of their ED visits resulting in admission. Appendix I, Table 6 lists the final target universe and sampling frame for the NEDS.
The NEDS is a stratified probability sample of hospital-based EDs in the frame. Sampling probabilities were calculated to select 20% of the universe contained in each stratum, which was defined by region, trauma designation, urban-rural location, teaching status, and hospital ownership or control. A sample size of 20 percent was based on previous experience with similar research databases. A larger sample would be cumbersome for data users, given that a 20% sample contains over 29 million records. A 20% sample also enables the user to split the NEDS into two 10% subsamples for estimation and validation of models.
To further ensure accurate geographic representation, hospitals were implicitly stratified by State and three-digit ZIP Code (i.e., the first three digits of the hospital's five-digit ZIP Code). This was accomplished through sorting by three-digit ZIP Code within each stratum prior to drawing a systematic random sample of hospitals. Within the three-digit ZIP Code, hospitals were sorted by a random number to ensure further geographic generalizability of hospitals within the frame States; otherwise, generally, three-digit ZIP Codes that are proximal in value are geographically near one another within a State. Furthermore, the U.S. Postal Service locates regional mail distribution centers at the three-digit level. Thus, the boundaries tend to be a compromise between geographic size and population size.
Using the universe of U.S. hospital-based EDs, strata were defined by region, trauma designation, urban-rural location, teaching status, and hospital ownership or control. Strata with less than two hospitals in the universe and frame were collapsed with adjacent stratum based on urban-rural location, trauma designation, or ownership or control.
After stratifying and sorting the universe of hospitals, a random sample of up to 20% of the total number of hospital-based EDs in the U.S. was selected within each stratum. A shortfall was defined as an insufficient number of EDs in the frame to meet the threshold of 20% of the universe. In strata with shortfalls, the sampling rate from the universe was less than 20% and all possible EDs in the frame were selected for the NEDS. In contrast, the sampling rate is larger than 20% in some strata because protecting hospital confidentiality required a minimum of two sampled EDs in each stratum. Appendix I, Table 7 lists the sampling rates for the NEDS.
HOW TO USE THE NEDS FOR DATA ANALYSIS
This section provides a brief synopsis of special considerations when using the NEDS. For more details, refer to the comprehensive documentation on the HCUP-US Website (http://hcup-us.ahrq.gov/).
All persons using the NEDS (whether or not they are the original recipient of the data) must complete the on-line Data Use Agreement training available on the HCUP-US Website (http://www.hcup-us.ahrq.gov) and then read and sign a Data Use Agreement. A copy of the signed Data Use Agreements must be sent to AHRQ. See page 2 of this document for the mailing address.
Limitations of the NEDS
The NEDS contains almost 29 million ED records and over 100 clinical and non-clinical data elements. A multitude of research studies can be conducted with the data, but there are some limitations.
- The NEDS is an extremely large database that requires sophisticated, statistical software for analysis and 60 to 100 GB of computer space.
- In 2009, about 17% of the ED visits (weighted) are missing information about ED charges. For ED visits that result in admission, 28% of records are missing ED charges. For ED visits that do not result in admissions, 15% of records are missing ED charges. The missing information is concentrated in the West. Estimates of the sum of charges should use the product of the number of cases times the average charge to account for records with missing information.
- The NEDS contains event-level records, not patient-level records. This means that individual patients who visit the ED multiple times in one year may be present in the NEDS multiple times. There is no uniform patient identifier available that would allow a patient-level analysis with the NEDS. In contrast, the HCUP state databases may be used for this type of analysis.
- If a patient is directly admitted from the ED to the same hospital, one discharge record is included in the NEDS. If a patient is transferred from the ED to another ED or hospital, the resulting record may or may not be included in the NEDS because the NEDS is created from a sample of hospital-based EDs. This type of transfer (from an ED to another ED or acute care hospital) only occurs in about 1.5% of the NEDS.
- For a patient who was directly admitted to the same hospital through the ED, clearly identifying whether a procedure was performed in the ED or as part of the inpatient stay is not currently possible. Information on procedures for ED admissions is stored in the NEDS Supplemental Inpatient File.
- For hospital confidentiality purposes, trauma centers levels I and II, and sometimes levels I, II, and III, were grouped together in the HCUP data element HOSP_TRAUMA. This limits the analyses that can be performed by individual levels of trauma centers.
- The NEDS is not linkable to other HCUP databases, does not intentionally contain the same hospitals as the HCUP NIS, and cannot be used for state-level analyses. In fact, states are not identified in the NEDS.
Identifying Different Types of ED Events
The HCUP data element ED event distinguishes among the different types of ED events. Appendix 1, Table 4 provides the number and percentage of records in the 2009 NEDS for each of the five ED event types.
There may be a bias to the records in which the type of ED event is unknown. Some States have a large percentage of missing information.
Calculating National Estimates
To produce national estimates, the weighting data elements provided to weight ED events in the NEDS to hospital-based ED visits from all U.S. community, non-rehabilitation hospitals should be used. In order to produce national estimates, weights MUST be used.
- The hospital weight (HOSPWT) should be used for producing nationwide hospital-level statistics for analyses that use the hospital-based ED as the unit of analysis.
- The discharge weight (DISCWT) should be used for producing nationwide visits-level statistics for analyses that use the ED visit as the unit of analysis.
Because the NEDS is a stratified sample, proper statistical techniques must be used to calculate standard errors and confidence intervals. For detailed instructions, refer to the special report Calculating Nationwide Inpatient Sample Variances on the HCUP-US Website (www.hcup-us.ahrq.gov). The HCUP Nationwide Inpatient Sample (NIS) uses the same stratified sample design, so techniques appropriate for the NIS are also appropriate for the NEDS.
When creating national estimates, it is a good idea to check results against other data sources, if available. Summary benchmarks for national estimates from the NEDS are provided in Appendix IV. Also included in Appendix IV are comparable estimates from other ED data sources. For example, the National Hospital Ambulatory Medical Care Survey (NHAMCS) has an ED component and publishes national health statistics annually.
To ensure that weights are used appropriately and estimates and variances are calculated accurately, researchers can also use HCUPnet, the free online query system (https://datatools.ahrq.gov/hcupnet). HCUPnet is a Web-based query tool for identifying, tracking, analyzing, and comparing statistics on hospitals at the national, regional, and State levels. HCUPnet offers easy access to national statistics and trends as well as selected State statistics about hospital stays and ED visits. This tool provides step-by-step guidance, helping researchers to quickly obtain the statistics they need. HCUPnet generates statistics using the HCUP databases.
Choosing Data Elements for Analysis
For all data elements to be used in the analysis, the user should first perform descriptive statistics and examine the range of values, including number of missing cases. When anomalies (such as large numbers of missing cases) are detected, descriptive statistics can be performed by region for that variable to determine whether or not there are region-specific differences. Sometimes, performing descriptive statistics by hospital (HOSP_ED) can be helpful in detecting hospital-specific data anomalies.
ICD-9-CM Diagnosis and Procedure Codes
ICD-9-CM diagnosis and procedure codes provide valuable insights into the reasons for ED visits and hospitalizations as well as what procedures patients receive, but these codes need to be carefully used and interpreted. ICD-9-CM codes change every October as new codes are introduced and some codes are retired. See the Conversion Table at http://www.cdc.gov/nchs/datawh/ftpserv/ftpicd9/ftpicd9.htm which shows ICD-9-CM code changes over time. It is essential to check all ICD-9-CM codes used for analysis to ensure the codes are in effect during the time period(s) studied.
The meaning of the first listed diagnosis (DX1) differs based on the type of ED visit. Please refer to the HCUP Methods Series Report on the Meaning of the First-Listed Diagnosis on Emergency Department and Ambulatory Surgery Records.6
Diagnoses reported on an ED admission may be from both the ED and hospital settings. It may be useful to compare diagnostic-specific ED visits that do not result in hospitalization to those resulting in hospitalization.
CPT procedure codes, which are copyrighted by the American Medical Association, also provide valuable insight into the procedures performed. CPT codes can change dramatically each year. It is essential to check all CPT procedure codes used for analysis to ensure that the codes are in effect during the time period(s) studied.
Up to four external cause-of-injury codes (E codes) are retained in separate data elements (ECODE1-ECODE4). The first listed E code (ECODE1) is not necessarily the underlying or principal cause of the injury.
The collection and reporting of E codes vary greatly across States. Some States have laws or mandates for the collection of E codes; others do not. In addition, some States do not require hospitals to report E codes in the range E870-E879 ("misadventures to patients during surgical and medical care") which means that these occurrences will be underreported.
Although the NEDS contains fields for up to 15 diagnoses, four E codes, 15 CPT procedures, and 9 ICD-9-CM procedures per ED event, the number of code fields populated varies by State due to reporting differences. Some States provide more than the maximum code fields retained on the NEDS. To reduce the file size of the NEDS, the number of diagnosis and procedure codes retained was limited. Less than 2% of all ED records report more fields than the maximum allowed on the NEDS. Four data elements are provided. These data elements tell users exactly how many diagnoses and procedures were on the original records (NDX for diagnoses, NECODE for E codes, NCPT for CPT procedures, and NPR for ICD-9-CM procedures).
Missing Values
Missing data values can compromise the quality of estimates. For example, if the outcome for ED visits with missing values is different from the outcome for ED visits with valid values, then sample estimates for that outcome will be biased and inaccurately represent the ED utilization patterns. There are several techniques available to help overcome this bias. One strategy is to use imputation to replace missing values with acceptable values. Another strategy is to use sample weight adjustments to compensate for missing values. Descriptions of such data preparation and adjustment are outside the scope of this report; however, it is recommended that researchers evaluate and adjust for missing data, if necessary.
Alternatively, if the cases with and without missing values are assumed to be similar with respect to their outcomes, no adjustment may be necessary for estimates of means and rates because the non-missing cases would be representative of the missing cases. However, some adjustment may still be necessary for the estimates of totals. Sums of data elements (such as aggregate ED charges) containing missing values would be incomplete because cases with missing values would be omitted from the calculations. Estimates of the sum of charges should use the product of the number of cases times the average charge to account for records with missing information.
Variance Calculations
It may be important for researchers to calculate a measure of precision for some estimates based on the NEDS sample data. Variance estimates must take into account both the sampling design and the form of the statistic. The sampling design consisted of a stratified, single-stage cluster sample. A stratified random sample of hospital-based EDs (clusters) was drawn and then all ED visits were included from each selected hospital. To accurately calculate variances from the NEDS, appropriate statistical software and techniques must be used. For details, see the special report Calculating Nationwide Inpatient Sample Variances on the HCUP-US Website (www.hcup-us.ahrq.gov). The NIS uses the same stratified sample design, so techniques appropriate for the NIS are also appropriate for the NEDS.
If hospitals inside the sampling frame are similar to hospitals outside the frame, the sample hospitals can be treated as if they were randomly selected from the entire universe of hospitals within each stratum. Standard formulas for a stratified, single-stage cluster sample without replacement could be used to calculate statistics and their variances in most applications.
A multitude of statistics can be estimated from the NEDS data. Several computer programs that calculate statistics and their variances from sample survey data are listed in the next section. Some of these programs use general methods of variance calculations (e.g., the jackknife and balanced half-sample replications) that take into account the sampling design. However, it may be desirable to calculate variances using formulas specifically developed for certain statistics.
These variance calculations are based on finite-sample theory, which is an appropriate method for obtaining cross-sectional, nationwide estimates of outcomes. According to finite-sample theory, the intent of the estimation process is to obtain estimates that are precise representations of the nationwide population at a specific point in time. In the context of the NEDS, any estimates that attempt to accurately describe characteristics and interrelationships among hospitals and ED visits during a specific year should be governed by finite-sample theory. Examples would be estimates of expenditure and utilization patterns.
Alternatively, in the study of hypothetical population outcomes not limited to a specific point in time, the concept of a "superpopulation" may be useful. Analysts may be less interested in specific characteristics of the finite population (and time period) from which the sample was drawn than they are in hypothetical characteristics of a conceptual superpopulation from which any particular finite population in a given year might have been drawn. According to this superpopulation model, the nationwide population in a given year is only a snapshot in time of the possible interrelationships among hospital, market, and discharge characteristics. In a given year, all possible interactions between such characteristics may not have been observed, but analysts may wish to predict or simulate interrelationships that may occur in the future.
Under the finite-population model, the variances of estimates approach zero as the sampling fraction approaches one. This is the case because the population is defined at that point in time and because the estimate is for a characteristic as it existed when sampled. This is in contrast to the superpopulation model, which adopts a stochastic viewpoint rather than a deterministic viewpoint. That is, the nationwide population in a particular year is viewed as a random sample of some underlying superpopulation over time. Different methods are used for calculating variances under the two sample theories. The choice of an appropriate method for calculating variances for nationwide estimates depends on the type of measure and the intent of the estimation process.
Computer Software for Weighted and Variance Calculations
The hospital weights are useful for producing hospital-level statistics for analyses that use the hospital-based ED as the unit of analysis. In contrast, the discharge weights are useful for producing visit-level statistics for analyses that use the ED visit as the unit of analysis.
In most cases, computer programs are readily available to perform these calculations. Several statistical programming packages allow weighted analyses.6 For example, nearly all SAS procedures incorporate weights. In addition, several statistical analysis programs have been developed to specifically calculate statistics and their standard errors from survey data. Version 8 or later of SAS contains procedures (PROC SURVEYMEANS and PROC SURVEYREG) for calculating statistics based on specific sampling designs. Stata and SUDAAN are two other common statistical software packages that perform calculations for numerous statistics arising from the stratified, single-stage cluster sampling design. Examples of the use of SAS, SUDAAN, and Stata to calculate NIS variances are presented in the special report Calculating Nationwide Inpatient Sample Variances on the HCUP-US Website (http://www.hcup-us.ahrq.gov). Although the examples using the NIS also apply to the NEDS, it should be noted that the NEDS is a much larger data set. Please consult the documentation for the different software packages concerning the use of large databases. For an excellent review of programs to calculate statistics from survey data, visit the following Website: http://www.hcp.med.harvard.edu/statistics/survey-soft/.The NEDS includes a Hospital Weights File with variables required by these programs to calculate finite-population statistics. The file includes synthetic hospital identifiers (Primary Sampling Units or PSUs), stratification variables, and stratum-specific totals for the numbers of ED visits and hospitals so that finite-population corrections can be applied to variance estimates.
In addition to these subroutines, standard errors can be estimated by validation and cross-validation techniques. Given that a very large number of observations will be available for most NEDS analyses, it may be feasible to set aside a part of the data for validation purposes. Standard errors and confidence intervals then can be calculated from the validation data.
If the analytic file is too small to set aside a large validation sample, cross-validation techniques may be used. For example, ten-fold cross-validation would split the data into 10 subsets of equal size. The estimation would take place in 10 iterations. In each iteration, the outcome of interest is predicted for one-tenth of the observations by an estimate based on a model that is fit to the other nine-tenths of the observations. Unbiased estimates of error variance are then obtained by comparing the actual values to the predicted values obtained in this manner.
COMPARABLE ED DATA SOURCES
To aid in understanding of NEDS, national estimates from the NEDS are compared to available sources of similar data (Table A). Each of the following ED data sources has potential for use in research addressing ED utilization and policy and has data available for 2009.
Table A. Sources of Emergency Department (ED) Data by Type

