View source: R/createPkFromFile.R
Create a primary key sql script from two csv files that detail the OMOP CDM Specifications.
1 2 3 4 | createPkFromFile(cdmVersionNum = cdmVersion,
cdmFieldCsvLoc = "inst/csv/OMOP_CDMv5.3.1_Field_Level.csv",
outputFile = paste0("inst/sql/sql_server/OMOP CDM pk ", cdmVersion,
" ", Sys.Date(), ".sql"))
|
cdmVersionNum |
The version of the CDM you are creating |
cdmFieldCsvLoc |
The location of the csv file with the CDM field information. This is defaulted to "inst/csv/OMOP_CDMv5.3.1_Field_Level.csv". If a new version of this file was committed to the CDM repository the package automatically will grab it and place it in "inst/csv/". |
outputFile |
The name of the output primary key sql file. This is defaulted to a location in the inst/sql/sql server folder and named with today's date and CDM Version. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.