ccTable-class: Process the EHR data in table format

ccTable-classR Documentation

Process the EHR data in table format

Description

ccRecord data are re-arranged into tables where the columns stands for data fields (e.g. heart rate, blood pressure) and the rows stands for each data record within a unique cadence. See ccTable_create_cctable. ccTable is the data processing platform. It stores both original data and processed data alongside with the process details. It also contains various commonly used data filters.

Fields

record

ccRecord.

conf

the YAML style configuration.

torigin

the original data table.

tclean

the data table after cleaning processes.

dfilter

list contains data filtering information.

dquality

list contains data quality.

summary

list

base_cadence

the base cadence is specified in hours

Methods

apply_filters(warnings = TRUE)

Apply all filters specified in the configuration to update the clean table (tclean)

create_table(freq)

Create a table contains the selected items in the conf with a given frequency (in hour)

export_csv(file = NULL)

Export the cleaned table to a CSV file.

filter_categories()

Check individual entries if they are the in the categories specified in conf.

filter_missingness(recount = FALSE)

filter out the where missingness is too low.

filter_nodata()

Exclude episodes when no data is presented in certain fields

imputation()

Filling missing data to a time series data by performing a given imputation method on a selected window period nearby the missing data.

reload_conf(conf)

reload yaml configuration.

Examples

rec <- ccRecord()
cctable <- create_cctable(rec, freq=1)
cctable <- cctable$clean()
#table <- cctable$tclean 

ropensci/cleanEHR documentation built on Aug. 28, 2022, 8:31 p.m.