Skip to content

redcap import record csv

Jonathan Chan edited this page May 11, 2018 · 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 parameters; see below

Optional parameters must come in pairs of 'symbol "string".

Optional Parameter Description
'overwrite "[over]" Declares the overwrite behaviour for blank or empty values. "[over]" may be "normal" (no overwriting) or "overwrite". Default is "overwrite".

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