redcap export fieldnames - part-cw/lambdanative GitHub Wiki

(redcap-export-fieldnames host token)

redcap-export-fieldnames exports fieldnames for a given project from REDCap. This is easier than parsing the metadata export.

Parameter Description
host Server hostname
token Authentication token (project and user specific!)

Examples

Example 1: Exporting all fieldnames of a project.

> (define redcap:token "54CC....CC10")
> (define redcap:hostname "redcap.INSTITUTIONNAME.ca")
> (redcap-export-fieldnames redcap:hostname redcap:token)             
("record_id"
 "procedure_date"
 "age"
 "weight")