Skip to content

redcap export metadata

Chris Petersen edited this page Oct 16, 2014 · 13 revisions

redcap-export-metadata exports the Metadata (i.e. Data Dictionary) for a REDCap project.

Parameter Description
host Server hostname
token Authentication token (project and user specific!)
xargs Optional: Allows setting desired output format (such as csv) to be set, otherwise a list of lists is returned

Example

Example 1: Exporting metadata of a project.

> ;;Testing Export Metadata function
> (define redcap:token "54CC....CC10")
> (define redcap:hostname "redcap.INSTITUTIONNAME.ca")
> (redcap-export-metadata redcap:hostname redcap:token)
((("field_name" . "participant_id")
  ("form_name" . "demographics")
  ("section_header" . "")
  ("field_type" . "text")
  ("field_label" . "Participant ID")
  ("select_choices_or_calculations" . "")
  ("field_note" . "")
  ("text_validation_type_or_show_slider_number" . "")
  ("text_validation_min" . "")
  ("text_validation_max" . "")
  ("identifier" . "")
  ("branching_logic" . "")
  ("required_field" . "")
  ("custom_alignment" . "")
  ("question_number" . ""))
  [...]

Clone this wiki locally