This folder contains:
- REDCap Metadata Definition files for questionnaires used in the aRMT app
- aRMT reformatted payloads
- A REDCAP to aRMT convertor
- Install node / npm
- Clone this repository
- Run
npm install
- Edit the
utilities/defaultGithubConfig.js
to add your Github Configuration for posting the data. - To parse all single REDCap project
node utilties/index.js [REDCAP_API_URL] [REDCAP_API_TOKEN] [type] [LANGUAGE]
- To parse single form in a single REDCap project
node utilties/index.js [REDCAP_API_URL] [REDCAP_API_TOKEN] [type] [LANGUAGE] [FORM-NAME FORM-NAME]
This is to be used to generate Questionnaire Definitions for the RADAR-base Active Remote Monitoring Application at RADAR-Questionnaire. To generate this for different languages -
- Copy the
utilities/_.env-template
to./.env
and carefully fill in the values of the various variables specifically the Github Token and the branch. - Edit the
utilities/defaultGithubConfig.js
to add your Github Configuration for posting the data. - Run the
generateARMTs.sh
likebash generateARMTs.sh
- To update only a specific questionnaire or form, run
bash generateARMTs.sh [FORM-NAME]
. For example:bash generateARMTs.sh esm
- To update multiple questionnaires or forms, separate them by spaces:
bash generateARMTs.sh [FORM-NAME FORM-NAME]
.
We want to version both the REDCap Data Dictionaries and the derived aRMT Definitions Files.
The process should be:
- Update the Data Dictionaries(DD) either directly or in the REDCap Test Project. Verify that these changes are correct.
- Create a branch e.g.
dd-update-DATE
of Master in the relevant repository, add the new DDs overwriting the previous ones inREDCap-DDs/
- you should strip the dates of the DD filenames or you'll end up with separate files, create a Pull Request - Set someone as a reviewer, get this approved then merged. The DDs are now versioned.
- Update the production REDCap server projects with the new DDs, these changes are now ready to go live
- The
node utilties/index.js
script can now be run to convert the aRMT DDs into aRMT Definitions, these are loaded onto github - A new protocol.json version number must now be incremented beforer the aRMT app will automatically pull the definintion changes them and start using them. Note however new registration/enrollments will automatically pickup latest configuration or configuration refresh can be triggered manually in the Questionnaire App settings https://radar-base.atlassian.net/browse/RSD-74