extract: Extract NHIC Events

Description Usage Arguments Value Examples

View source: R/extract.R

Description

Extracts NHIC events and appends them with the correct class for further processing. This is essentially the creator method for the S3 classes associated with the inspectEHR package

Usage

1
extract(core_table = NULL, input = NULL)

Arguments

core_table

core table from make_core

input

the input variable of choice

Value

A tibble with 1 row per event

Examples

1
2
3
4
5
db_pth <- system.file("testdata/synthetic_db.sqlite3", package = "inspectEHR")
ctn <- connect(sqlite_file = db_pth)
core <- make_core(ctn)
extract(core, input = "NIHR_HIC_ICU_0073")
DBI::dbDisconnect(ctn)

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