lib/quby/compiler/dsl/questionnaire_builder.rb in quby-compiler-0.4.13 vs lib/quby/compiler/dsl/questionnaire_builder.rb in quby-compiler-0.4.14

- old
+ new

@@ -145,9 +145,17 @@ def default_answer_value(value) @questionnaire.default_answer_value = value end + def hide_pii_from_researchers(value) + @questionnaire.anonymous_conditions = @questionnaire.anonymous_conditions.new(hide_pii_from_researchers: value) + end + + def hide_values_from_professionals(value) + @questionnaire.anonymous_conditions = @questionnaire.anonymous_conditions.new(hide_values_from_professionals: value) + end + def panel(title = nil, options = {}, &block) panel = PanelBuilder.build(title, **options, **default_panel_options, &block) @questionnaire.add_panel(panel) end