Skip to content

redcap import record csv

Chris Petersen edited this page Oct 16, 2014 · 2 revisions

redcap-import-record-csv imports a record into REDCap using CSV formatted data

Parameter Description
host Server hostname
token Authentication token (project and user specific!)
str A long string with CSV data of the record to be imported
xargs Optional: Specify additional parameters, such as 'overwrite "normal" to specify overwrite behaviour

Example

Example 1: Import data into REDCap using CSV formatted strings, e.g. read from a previously stored data file.

> (define redcap:token "54CC....CC10")
> (define redcap:hostname "redcap.INSTITUTIONNAME.ca")
> (define str "...")
> (redcap-import-record-csv redcap:hostname redcap:token str 'overwrite "normal")
#t

Clone this wiki locally