Cohort Builder Open Web App User Guide
How to access the cohort builder:
Click on the Cohort Builder button on the homepage of the OpenMRS application after logging in.
About the OpenMRS cohort-builder OWA
The OpenMRS cohort-builder OWA is used to make search queries against a dataset of patients with different query options, the cohort-builder currently has 5 active tabs each offering the user with different option and parameters to make search queries.
These are :-
The Concept / Observation tab
The Patient Attributes tab
The Encounter tab
The Composition tab
The Saved tab
The Concept / Observation tab
This tab gives the user the option to search via concepts or observations existing in the system.
Concepts are the individual data points collected from a population of patients. They include both questions and answers. An example here would be whole blood sample, with the question; Does the patient value have a whole blood sample?
Observations denote anything actively measured or observed during an encounter. For example a patient's weight, age or blood pressure.
The Patient Attributes tab
This tab gives the user the option to search via demographics and a person attributes
- Search by demographic: This allows you search for patients with a descriptive characteristic, in a particular sector of a population.
There are 5 search options namely:-- Gender - Search by gender option i. e Male or Female
- Age - Filter patient search results by age range i.e. 0-14
- Birthdate - Filter patient search results by birthdate range ie -
- Alive - Search only for patients who are alive.
- Dead - Search for deceased patients.
Search by person attribute: This allows you search for patients with specific information that further describes them.
There are numerous search options namely:-
Birthplace filter by place of birth
Citizenship - Filter patient results by specifying their country of origin
Civil Status
Health Center - Filter by details of health center attended by patients
Health District allows you to to filter by similar health districts
Mother’s Name - Filter by similar mother’s name
Race - Filter results by the patients racial background
Telephone number - Filter by similar phone numbers
Unknown patient
Test patient
- Search by demographic: This allows you search for patients with a descriptive characteristic, in a particular sector of a population.
The Encounter tab
An encounter is a single, specific interaction between the patient and a provider.
This tab gives the user the option to search via patients encounter and the location at which they interacted with the service provider.
Search by Encounter: This searches for patients with a specific type of activity or encounter. For example, check in, checkout, transfer, admission e.t.c.
There are numerous search options namely: -
Of Type allows you to to filter by the type of the encounter
Location allows you to to filter by the location of the encounter
At least this many allows you to to filter by the minimum encounter count
Upto this many allows you to to filter by the maximum encounter type
From - To allows you to to filter by the date range in which the encounter(s) occurred.
Search by Location: This allows you search for patients by the encounter location e.t.c Amani hospital, inpatient ward, isolation ward e.t.c.
Here the filters are applied according to the following:-
Patients belonging to a group of encounters from a specific location.
According to the timeline of the encounter
The Composition tab
This tab allows a user to combine multiple cohorts using the logical operators:- 'AND', 'OR', and 'NOT'.
To use this query, you need to have query results from the other queries in your search history. These are the queries which will then be combined to yeild new results.
Example: There is a cohort of patients who weigh less than 100 KG at #1, and a cohort of patients with ages between 23 and 35 years at #2 in the search history.
You can create a query with a composition '1 AND 2' and add a brief meaningful description for the new query. To view a result for the combined queries.
There are two input boxes on this tab namely:
Composition: This is where the operations are entered e.g 1 AND 2 from the example above
Description: This is a memorable name or description for the search composition that is being created. Eg. for the above example, we could add a description "Patients weight < 100, age 23 -35". (checkout image below for a visual sample).
The Saved tab
This tab gives the user the option to search for a saved cohort or definition, it has two fields namely
Search Saved Definitions allows the user search for a saved definition by it’s name
Search Saved Cohort allows the user search for a saved cohort by it’s name
The Search history: This is where an history of executed searches are saved and displayed to the user, each search can be saved either as a cohort or as a definition. There are numerous fields under this component, namely
Query: This is where the name or description of the query is displayed
Query Definition Options
Save: This saves a definition to the database
Delete: This removes a definition from the search history
Results: This contains a list of all the patients contained in the search result
Query Definition Options
Save: This saves a cohort to the database
Delete: This removes a definition from the search history
To contribute or setup this open web app please visit this Link.
Frequently asked questions:
Is there a limit to the number of cohorts and definitions that can be saved?
No there is no limit to the amount of cohorts and definitions that can be saved.