new.episode: Create a new episode

Description Usage Arguments Value Examples

View source: R/ccRecord.R

Description

create a new ccEpisode object by given the episode data as a list. The list should be organised in data items and indexed with NIHC code, e.g. NIHR_HIC_ICU_0108.

Usage

1
new.episode(lt = list(), parse_file = "NA", parse_time = as.POSIXct(NA))

Arguments

lt

is a list

parse_file

the file location from which the episode comes from.

parse_time

the parse date and time of the episode.

Value

ccEpisode object

Examples

1
2
3
eps <- list()
eps[["NIHR_HIC_ICU_0018"]] <- data.frame(time=seq(10), rep(70, 10))
new.episode(eps)

ropensci/cleanEHR documentation built on Sept. 6, 2018, 1:52 a.m.