Description Usage Arguments Value See Also
View source: R/createVocabTable.R
The Vocabulary Table takes all the HemOnc Regimens in the OMOP Concept Table, maps the RxNorm Ingredients that comprise each Regimen, and calculates the number of unique ingredients per Regimen in an ingredient_count
field and a string aggregate ingredient_combination
. The ingredient_combination
field combines the names of all the ingredients in a comma-separated string when the ingredient_count
is greater than 2, an "and" concatenation when the ingredient_count
is 2, or simply the ingredient name when ingredient_count
is 1.
Since a set of RxNorm Ingredients can map to more than 1 HemOnc Regimen, the table also is filtered for the shortest ingredient_combination
string by character count by the concept id of the regimen, excluding abbreviations assumed to be of character counts of 5 or less.
1 2 3 4 5 6 7 | createVocabTable(
conn,
writeDatabaseSchema,
cdmDatabaseSchema,
vocabularyTable,
renameTable
)
|
conn |
PARAM_DESCRIPTION |
writeDatabaseSchema |
PARAM_DESCRIPTION |
cdmDatabaseSchema |
PARAM_DESCRIPTION |
vocabularyTable |
PARAM_DESCRIPTION |
A Vocabulary Table in the designated schema.
lsTables
,appendDate
,renameTable
,dropTable
,execute
,readTable
,writeTable
render
,readSql
press_enter
group_by
,summarise
,arrange
,rename
,mutate-joins
,mutate
,select
group_by_unique_aggregate
,arrange_by_nchar
str_replace
fct_collapse
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.