Description Usage Arguments Details Value Examples
This function provides base access to the datetimeevents table containing data which represents all date measurements about a patient in the ICU.
1 | m4_datetimeevents(con, cohort = NULL, itemlist = NULL, ...)
|
con |
A |
cohort |
an optional vector of patient IDs defining the cohort of interest |
itemlist |
an optional vector of item IDs defining the event types of interest |
... |
additional optional passed along parameters. |
For example, the date of last dialysis would be in the DATETIMEEVENTS table, but the systolic blood pressure would not be in this table.
Table attributes for datetimeevents table:
(PKEY subject_id
, hadm_id
, stay_id
)
(FKEY subject_id
) -> patients table
(FKEY hadm_id
) -> admissions table
(FKEY stay_id
) -> icustays table
(FKEY itemid
) -> d_items table, datetimeevents_items sub-table
a tibble with the results.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # To run examples, you must have the BIGQUERY_TEST_PROJECT environment
# variable set to name of project which has billing set up and to which
# you have write access.
con <- bigrquery::dbConnect(
bigrquery::bigquery(),
project = bigrquery::bq_test_project(),
quiet = TRUE
)
evt <- m4_datetimeevents(con, cohort = 15914798)
dim(evt)
bigrquery::dbDisconnect(con)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.