View source: R/generate_time_map.R
build_time_map_keys | R Documentation |
This function goes to the database and assembles all of the inpatient an outpatient visits (or just the visits specified by a collection table). It then assembles them into a logintudinal time_map of distinct visits (defined by admission/service date and stdplac). Finally, each visit is given a distinct visit key. The time_map and the distinct inpatient and outpatient visit keys are returned as a list. NOTE: This function should generally only be run once after the small DB is build, and it generally should not be called directly. Use the function 'add_time_map_keys()' to add the time_map keys to the database.
build_time_map_keys(collect_tab = collect_table(), db_con)
collect_tab |
a collection table to build time_map from. By default all years will be used |
db_con |
a connection to a database |
A list containing three tibbles (timemap, outpatient keys, and inpatient keys)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.