The web-based i2b2 Query Tool is the most commonly used module by researchers. The Query Tool allows users to very quickly count the number of people with selected clinical and demographic features.
Navigating the i2b2 Query & Analysis Tool
Following the validation of your login credentials, the i2b2 Query & Analysis Tool screen is displayed and available for use. The basic i2b2 workbench screen provides six primary tabbed panes for identifying, building and running cohort discovery queries. These panes are indicated in the figure below.
1. Navigate Terms – This is where you will locate search concepts using a hierarchical folder structure.
2. Find Terms ‐ In this pane, you can find search concepts using a representative word, phrase or specific
code to describe the concept.
3. Workplace – This is where you will create personal folders for storing your queries.
4. Previous Queries ‐ This pane shows a log of previous queries for the current user.
5. Query Tool ‐ This is your main work area where you will define and refine the criteria for your query.
6. Query Status ‐ You will be able to monitor progress and see results in this pane.
Counting Patient Populations
i2b2 Query Cell queries count the number of people meeting certain criteria. Each patient may have multiple records in the database but each person is only counted once. Criteria listed within a group are considered to have an “or” relationship and between groups is considered to be an “and” relationship. For example, in the screen shot below the query is counting the number of people who had: 1) at least one visit to Family Medicine OR General Medicine OR Geriatrics; AND 2) a diagnosis of essential hypertension sometime in the past; AND 3) at least one blood pressure measurement in the past.
Below is a simple example of a Query Tool Query to count the number of adult primary care patients between 2005 and 2011, who have ever had a diagnosis of essential hypertension, and who have had at least 1 blood pressure between 2005 and 2015.
Step 1: Add your concepts
The concepts (Essential Hypertension, General Medicine, Family Medicine, Geriatrics, Blood Pressure) were dragged into their groups from the Navigate Terms tab on the left.
Step 2: Apply Constraints
To constrain to only patients with a visit to General Medicine, Family Medicine, Geriatrics and a Blood Pressure during 2005 to 2015, apply a “From:” and “To:” date to Group 1 and Group 2.
Step 3: Select your Analysis Type
The most commonly used Analysis Types are:
Number of Patients
Gender Patient Breakdown
Race Patient Breakdown
Age Patient Breakdown
It is not recommended to use the Patient List and Encounter List options – These create lists of patients or patient encounters and stores them in the database. Since queries can have many thousands of patients, the use of these options creates lists of data that are not useful and will take up unnecessary space on the server.
Step 4: Run your query
Click Run Query to run the query and the counts will be displayed in the bottom center.