Dhall language offers types and functions in the definition of REDCap instruments.
redcap_dictionary.dhall
defines a REDCap instrument field
makeRedCapMap
function converts fields to json through dhall-to-json
.dhall-to-instrument.sh
is a bash script to turn dhall instrument to
uploadable zip file. Needs json2csv
which can be installed with nmp install -g json2csv