Description Usage Arguments Details Value Examples
This function provides base access to the emar_detail table containing data for each medicine administration made in the EMAR table. Information includes the associated pharmacy order, the dose due, the dose given, and many other parameters associated with the medical administration.
1 | m4_emar_detail(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 emar_detail table:
(PKEY emar_id
, emar_seq
, parent_field_ordinal
)
(FKEY subject_id
) -> patients table
(FKEY emar_id
, emar_seq
) -> emar table
(FKEY pharmacy_id
) -> pharmacy table
(FKEY pharmacy_id
) -> prescriptions 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
)
edet <- m4_emar_detail(con, cohort = 10137012)
dim(edet)
bigrquery::dbDisconnect(con)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.