-
Notifications
You must be signed in to change notification settings - Fork 88
redcap export records
Chris Petersen edited this page Oct 16, 2014
·
7 revisions
redcap-export-records export records from REDCap
| Parameter | Description |
|---|---|
| host | Server hostname |
| token | Authentication token (project and user specific!) |
| xargs | Optional: Additional parameters, such as records using 'records (list "2" "3") or fields using 'fields ("first_name" "last_name") can be used here |
Example 1: Exporting records with subject_ids "1" and "4" from a project.
> (define redcap:token "54CC....CC10")
> (define redcap:hostname "redcap.INSTITUTIONNAME.ca")
> (redcap-export-records redcap:hostname redcap:token 'records (list "4" "1"))
((("participant_id" . "1")
("study_id" . "1")
("first_name" . "John")
("last_name" . "Smith")
("number_test" . "")
("test_file" . "[document]")
("test1" . "helloWorld")
[...]
Example 2:
>(redcap-export-records redcap:hostname redcap:token 'format "csv" 'fields
(list "study_id" "spo2_site" "spo2_median" "hr_median" "sqi_avg" "spo2_date"))
"participant_id,study_id\n\"1\",\"1\"\n\"2\",\"\"\n\"4\",\"\"\n\"4\",\"\"\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