Tools that assist with analytics on i2b2 patient count data.
The i2b2 patient counting scripts are part of the main i2b2 data repository. The latest released version are documented in the i2b2 release notes, though the documentation in GitHub has not yet been updated for the major improvement that is in GitHub. The latest release notes will be published with i2b2 1.7.13 at the end of 2021.
- Load the stored procedures
- Add the totalnum and totalnum_report tables to i2b2
- Run the Scripts. The scripts will count the total number of patients for every item in your ontology, and fill these in the c_totalnum column of your ontology tables. This can be used for internal quality checks and will display in the i2b2 query tool (not SHRINE), to help researchers pick ontology items that have data behind them.
- Export the obfuscated totalnum_report table as a CSV file. The obfuscated reports of sites’ totalnums can be collected, aggregated, and analyzed by quality checking / exploring tools. (This obfuscation is essentially the same as sharing SHRINE counts; it is obfuscated the same way.)
- Consent to being part of a public file of network-wide averages. In ACT, we are writing a manuscript about #2, in which we will distribute “network-wide” averages (averages of the percent of patients at each participating site). If you would like to participate, you will be a named author on the paper.
- All data mapping must be in the ontology tables, not (exclusively) the concept_dimension or Adapter Mappings files.
- Multiple fact tables cannot coexist in the same hierarchy. (i.e. any single ontology can reference a fact table other than observation_fact, but it cannot reference multiple fact tables)
- Export each i2b2's totalnum_report as a CSV file.
- Export the ACT ontology as a single CSV file per the instructions in totalnum_builddb
- Execute totalnum_builddb_v2.py to build the SQLite database.
- Run totalnum_dashboard_v2.py to explore the SQLite database.
- A totalnum_report script of static reports is forthcoming.