Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EQUALIZE VARIABLE NAMES

This script will generate a find/replace change plan and apply it to all files in exported redcap project zip archives it detects, generating a new zip file with the desired changes for each one, which you can upload into redcap's project designer.

usage: bash run.sh [ -d directory ] [ -s separator ] Where -d directory contains your config files and instrument zip file(s) and -s separator is the character you want to split your variable names by

example: bash run.sh -d ~/Downloads/redcap-test -s '_'

The following files are required and should be in the directory supplied:
.zip changemaps.json

Optionally, you may provide: preChangemaps.json postChangemaps.json

to perform find replace changes on the entire variable name before and/or after they are split and rearranged according to changemaps.json.

About

reads project files exported by RedCap and a configuration file containing rules on common variable components, then asserts a common name for each of them, and rearranges the order of the components by a common set of rules

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages