new.episode: Create a new episode

View source: R/ccRecord.R

new.episodeR Documentation

Create a new episode

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

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

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


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