build_rx_indicators | R Documentation |
This function makes indicators corresponding to a list of ndc codes, for visits identified by timemap keys. If keys are not found in the database, this function will not run 'add_time_map_keys()').
build_rx_indicators(rx_list, db_con, collect_tab = collect_table())
rx_list |
a named list of ndc codes. Each condition should be named and the ndc codes should be stored as a named sub-list for each condition |
db_con |
connection to the small database |
collect_tab |
(optional) a collection table. This argument is only used to make temporary, visit keys if no keys are found in the database |
a tibble containing keys and indicators for each condition
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.