Description Usage Arguments Details Value Examples
This function provides base access to the admissions table containing information regarding a patient’s
admission to the hospital. Since each unique hospital visit for a patient is assigned a unique hadm_id
,
the admissions table can be considered as a definition table for hadm_id
. Information available includes
timing information for admission and discharge, demographic information, the source of the admission, and so on.
1 | m4_admissions(con, cohort = NULL, ...)
|
con |
A |
cohort |
an optional vector of patient IDs defining the cohort of interest |
... |
additional optional passed along parameters. |
Table attributes for admissions table:
(PKEY hadm_id
)
(FKEY subject_id
) -> patients 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
)
adm <- m4_admissions(con, cohort = 10137012)
dim(adm)
bigrquery::dbDisconnect(con)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.