Skip to content

redcap export project info

Dustin edited this page Oct 6, 2020 · 1 revision

redcap-export-project-info exports the basic attributes of project such as it's title, whether it is longitudinal, etc.

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

Exporting the project info.

> (define redcap:token "54CC....CC10")
> (define redcap:hostname "redcap.INSTITUTIONNAME.ca")
> (redcap-export-project-info redcap:hostname redcap:token)
> ((("project_id" . 10)
   ("project_title" . "A Great REDCap Project")
   ("creation_time" . "2012-12-18 17:05:48")
   ("production_time" . "")
   ("in_production" . 0)
   ("project_language" . "English")
   ("purpose" . 0)
   ("purpose_other" . "")
   ("project_notes" . "")
   ("custom_record_label" . "")
   ("secondary_unique_field" . "")
   ("is_longitudinal" . 1)
   ("has_repeating_instruments_or_events" . 1)
   ("surveys_enabled" . 1)
   ("scheduling_enabled" . 1)
   ("record_autonumbering_enabled" . 1)
   ("randomization_enabled" . 0)
   ("ddp_enabled" . 0)
   ("project_irb_number" . "")
   ("project_grant_number" . "")
   ("project_pi_firstname" . "")
   ("project_pi_lastname" . "")
   ("display_today_now_button" . 1)
   ("missing_data_codes" . "")
   ("external_modules" . "custom_template_engine,singlelineinformationaltext")))
Clone this wiki locally