verify_range: verify Event Plausibility - Range Checks (S3 Generic)

Description Usage Arguments Value Examples

View source: R/verify_events.R

Description

Varifies events as being in-range (0), high (+1) or low (-1). These ranges have been calibrated based upone; ICNARC reference ranges, prior evidence (usually case report for exceptional values) or expert opinion. Reference ranges are all found in qref.

Usage

1

Arguments

x

an extracted event table

Value

a tibble of the same length as x with the following features:

-1

event is below the defined range of plausibility

0

event is valid

+1

event is above the defined range of plausibility

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## DB Connection
db_pth <- system.file("testdata/synthetic_db.sqlite3", package = "inspectEHR")
ctn <- connect(sqlite_file = db_pth)

## Pre-requisites
core <- make_core(ctn)

## Data item extraction
hr <- extract(core, input = "NIHR_HIC_ICU_0108")

## verify Range
vhr <- verify_range(hr)
head(vhr)
DBI::dbDisconnect(ctn)

CC-HIC/inspectEHR documentation built on Jan. 16, 2020, 11:24 p.m.