createPkFromFile: Create a primary key sql script from two csv files that...

Description Usage Arguments

View source: R/createPkFromFile.R

Description

Create a primary key sql script from two csv files that detail the OMOP CDM Specifications.

Usage

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"))

Arguments

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.


OHDSI/DDLgeneratr documentation built on March 10, 2021, 1:44 a.m.