Extraction Rules are applied to the data located at the defined Extraction Root row-by-row in the order you define them. If no rules are configured, no data is extracted. All extraction happens on the participant's device using JavaScript.

Configuring extraction:

  1. For each field you want to keep, add a rule with the Keep field operator.
  2. Add additional rules to filter (delete rows) or transform values using comparison or regex operators.
{% include "ddm_core/form_components/_basic_field.html" with field=form.json_extraction_root %}

Extraction Rules:

{{ rule_formset.management_form }} {{ rule_formset.non_form_errors }} {% include "ddm_datadonation/blueprint/form_sections/_extraction_rule_table.html" %}
{% include "ddm_core/components/info_collapsible.html" with element_id="dataextraction" title="Extraction rule options" include_path="ddm_datadonation/blueprint/info_collapsibles/block_data_extraction.html" body="" %}
Add Extraction Rule
{% for form in rule_formset %} {% with modal_id_postfix=forloop.counter0|stringformat:"i" button_id_postfix=forloop.counter0|stringformat:"i" %} {% include "ddm_datadonation/processing_rule_modal.html" with modal_id="configuration-"|add:modal_id_postfix form=form button_id=""|add:button_id_postfix %} {% endwith %} {% empty %} {% include "ddm_datadonation/processing_rule_modal.html" with modal_id="configuration-template" form=rule_formset.empty_form button_id="__prefix__" %} {% endfor %} {% include "ddm_datadonation/blueprint/form_sections/_extraction_rule_empty_form.html" %}
{% include "ddm_datadonation/blueprint/form_sections/_extraction_rule_form.html" with form=rule_formset.empty_form %}