|
|
OverviewThe onyx-demo application that you are using as a basis for your customization, includes a consent stage. You can modify the configuration of the consent stage for your customized version of Onyx in these ways:
Configuration Files for the Consent StageThe configuration files for the consent stage are found in the WEB-INF/config/marble directory. The consent stage is included in Onyx by means of a <stage> element in the stages.xml file in this directory. The name of the consent stage is defined in this file. In the onyx-demo application, the name of the consent stage is Consent. Configuring Consent Modes (electronic and manual)The consent stage in the onyx-demo application is configured to accept the participant's consent in electronic and manual (paper) forms. Manual mode is always possible (it cannot be disabled). Electronic mode can be disabled. If your organization will obtain consent electronically, you will need create custom consent forms as explained in Creating Custom Electronic Consent Forms (PDF). If your organization will only obtain consent manually (on paper forms), you must disable electronic consent by setting the allowElectronicMode property to false in the marble/module-config.properties file as follows: WEB-INF/config/marble/module-config.properties Configuring the Locales for Manual ConsentYour organization may provide its manual consent forms in several languages. The Onyx consent stage allows the user to select the language of the manual consent form given to the participant. The list of available languages is confugured by editing the following line in the WEB-INF/config/marble/module-config.properties file. WEB-INF/config/marble/module-config.properties As shown above, the onyx-demo application accepts manual consent in English and French. If your organization requires other languages, add the appropriate two-letter language codes to this line. For possible language codes, see http://www.loc.gov/standards/iso639-2/php/code_list.php. Creating Custom Electronic Consent Forms (PDF)If your custom version of Onyx will accept consent electronically, you must create a consent form in each language that is required for your version of Onyx.
To create a PDF consent formRepeat this procedure to create a PDF consent form for each language that you need to support.
How to name consent form filesThe filenames of PDF consent forms must conform to this configurable naming scheme: basename_language_country.pdf where,
Examples of valid consent form names:
Where to put consent form filesBy default, PDF consent forms should be located in the WEB-INF/config/marble/resources directory. Based on the consent form files in the resources directory, Onyx "discovers" the available languages and displays them at runtime. No further configuration is required. You can change the resources directory by modifying this line in the WEB-INF/config/marble/module-config.properties file: WEB-INF/config/marble/module-config.properties How to name fields in PDF formsAt runtime, Onyx can complete certain fields in your consent forms automatically. The mapping between Onyx variables and fields in the PDF form is defined in WEB-INF/config/marble/module-config.properties. For a list of the Onyx variables that you can use in your consent form, see To view a list of Onyx variables. Here is the variable-to-field mapping for the consent form in the onyx-demo application: WEB-INF/config/jade/module-config.properties The table below indicates information that Onyx can supply and how you should name the fields in your consent form, if you want Onyx to complete the fields.
Customizing Consent Stage MessagesYou can modify various texts displayed onscreen during the consent stage by editing the messages_language.properties files located in the WEB-INF/config/marble directory. The directory contains a messages file for each user interface language supported by Onyx. By default, there are messages files for English and French. For example, if you want to change the English name for the stage to be displayed onscreen, you would edit Consent.description line in this file: WEB-INF/config/marble/messages_en.properties Disabling the Consent StageIf your study does not require that participants sign a consent form, you can disable the consent stage as follows: 1. Remove the <stage> element from the marble/stages.xml file. The element to remove looks like this: WEB-INF/config/marble/stages.xml 2. Remove all the <variableCondition> elements related to the consent stage from the stages.xml files in the jade and ruby directories. The elements to remove look like this: WEB-INF/config/jade/stages.xml and WEB-INF/config/ruby/stages.xml 3. Remove all the <stageDependencyCondition> elements from the stages.xml file in the quartz directory. The elements to remove look like this: WEB-INF/config/quartz/stages.xml 4. Remove the word Consent from the staticStageOrder property line in the onyx-config.properties file: WEB-INF/config/onyx-config.properties |
Search Onyx Documentation |
Customizing the Consent Stage
Labels:
None