This package provides a command line tool to take answers from the MI-I Broad Consent version 1.7.2. and maps it into the core data set for consents of the MI-I. It supports custom configurations (leaving out specific questions for example retrospective data / sample use).
It also supports a mapping from a designated REDCap form, e.g. in https://github.com/KohlbacherLab/nse-mv-genomseq.
Prerequisites: Make sure you have gradle and java installed.
Then in the project folder run
mii_broad_consent_mapper % ./gradlew build
to generate a MII Broad Consent document from the output of a REDCap form you can run for example
mii_broad_consent_mapper % ./gradlew run --args='--date_of_birth=12.2010 --redcap_formular=src/test/resources/redcap_formular.txt --output=tst.json'
For tests you can run
mii_broad_consent_mapper % ./gradlew test
For example you can run
./gradlew run -PmainClass=de.ukt.mvh.CLIConsentMapperOlderMinors_1_7_2 --args="--date_of_birth=12.2010 --date_of_consent=04.07.2025 -o outfileOlderMinors.json --consent_pat_data_1=true --consent_insurance_data_2=true --consent_contact_5=false"
Please file an issue in case of questions.