Description Usage Arguments Details Value Examples
View source: R/verify_events.R
Applies all relevent varification flags to an extracted dataitem. This includes:
Completeness: contributed data items match local capability (i.e. missingness only occurs when the data doesn't exist)
Uniqueness plausibility: descriptions of singular events/objects are not duplicated.
Atemporal plausibility: Events occur within their episode (within a reasonable buffer time). Events fall within an accepted range, follow the expected distribution and agree with internal/local knowledge. Repeated measures of the same event show the expected variability.
Temporal plausibility: value density over time are consistent with local expectations
1 | verify_events(x, los_table = NULL)
|
x |
extracted dataitem from |
los_table |
episode length table from |
Other varification components are found elsewhere, as they don't necessarily fit into an evaludation at the data item level. I am contemplating how to unify this procedure.
a tibble with verification applied
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## DB Connection
db_pth <- system.file("testdata/synthetic_db.sqlite3", package = "inspectEHR")
ctn <- connect(sqlite_file = db_pth)
## Pre-requisites
core <- make_core(ctn)
episode_length <- characterise_episodes(ctn)
ve <- verify_episodes(episode_length)
## Data item extraction
hr <- extract(core, input = "NIHR_HIC_ICU_0108")
## Full varification
vhr <- verify_events(hr, ve)
head(vhr)
DBI::dbDisconnect(ctn)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.