| ccRecord-class | R Documentation |
ccRecord is a class to hold the raw episode data parsed directly from XML or CSV files.
nepisodesis an integer number indicates the total number of episode the record is holding.
dmgtba data.table containing all the demographic information of each episode, including site_id, NHS number, PAS number, admission date/time, and discharge date/time. This field is usually left empty.
infotba data.table holding the parsing information of each episode such as the parsing time and from which file it parsed from.
episdoesa list of ccEpisode objects.
heart_rate <- data.frame(seq(10), rep(70, 10)) # NIHR_HIC_ICU_0108
site_id <- "Q70" # NIHR_HIC_ICU_0002
episode_id <- "0000001" # NIHR_HIC_ICU_0005
# Create a new episode
ep <- new.episode(list(NIHR_HIC_ICU_0108=heart_rate,
NIHR_HIC_ICU_0002=site_id,
NIHR_HIC_ICU_0005=episode_id))
# modifying records
rec <- ccRecord() # a new record
rec <- rec + ep # adding a new episode to the record
rec <- rec + NULL # adding nothing to the record
rec <- rec + rec # adding a record to a record
# Adding a list of episodes
rec <- ccRecord()
ep1 <- new.episode()
ep2 <- new.episode()
eps.list <- list(ep1, ep2)
new.rec <- rec + eps.list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.