-
Notifications
You must be signed in to change notification settings - Fork 86
redcap export instrument
Jonathan Chan edited this page May 11, 2018
·
4 revisions
redcap-export-instrument
exports instruments for a given project from REDCap.
Parameter | Description |
---|---|
host | Server hostname |
token | Authentication token (project and user specific!) |
xargs | Optional parameters; see below |
Optional parameters must come in pairs of 'symbol "string"
.
Optional Parameter | Description |
---|---|
'format "[fmt]" | Sets desired output format. "[fmt]" may be one of "csv" , "xml" , or "json" (which will return a list of lists). Default is "json" . |
Example 1: Exporting instruments.
> (define redcap:token "54CC....CC10")
> (define redcap:hostname "redcap.INSTITUTIONNAME.ca")
> (redcap-export-instrument redcap:hostname redcap:token)
((("instrument_name" . "form_1") ("instrument_label" . "Form 1"))
(("instrument_name" . "form_2") ("instrument_label" . "Form 2"))
(("instrument_name" . "form_3") ("instrument_label" . "Form 3")))
Example 2: Exporting instruments in CSV format.
> (define redcap:token "54CC....CC10")
> (define redcap:hostname "redcap.INSTITUTIONNAME.ca")
> (redcap-export-instrument redcap:hostname redcap:token 'format "csv")
"instrument_name,instrument_label\nform_1,\"Form 1\"\nform_2,\"Form 2\"\nform_3,\"Form 3\"\n"
-
- accelerometer
- alist
- audio
- audioaux
- base64
- btle-scan
- camera
- cdb
- cgi
- config
- csv
- curl
- digest
- dmtx
- download
- eventloop
- fcgi
- fft
- generalized-arrays
- gps
- graph
- gyro
- hidapi
- hpdf
- html
- httpsclient
- hybridapp
- json
- lmdb
- ln_core
- ln_glcore
- ln_glgui
- ln_store
- localization
- localization_gui
- localnotification
- magnetometer
- mdns
- mqtt
- mqtt-store
- multitouch
- oauth
- orientation
- p256ecdsa
- png
- portaudio
- pregexp
- pressure
- prime
- pushnotification
- redcap
- rsa
- rtaudio
- rupi
- rotation
- sanestring
- scheduler
- serial
- sets
- settings
- simplexnoise
- sqlite
- ssax
- syntax-case
- timestamp
- ttf
- uiform
- url
- uuid
- vibrate
- videoplayer
- watchdog
- website
- xml
- zip