{% extends "rpt_base.html" %}{% load static %} {% block content %}

1 Dataset name/description

2 Filtering criteria

Create filters using the fields, operators, and values options below. Add one or more conditions to each row; all records that satisfy at least one condition in each row you define will be returned.

{% with lu_all=universe.lookups.all %} {% if lu_all|length > 0 %} {% spaceless %}

You can filter on Lookup Table fields in order to filter on one-to-many relationships. For example, using the 'DX' field in a diagnoses lookup table will search through DX1, DX2, DX3, etc. The available lookup categories are {% for lu in lu_all %} {% with def=lu.via.definition %} {% if forloop.counter == lu_all|length %} and {{ def.category }}. {% else %} {{ def.category }}, {% endif %} {% endwith %} {% endfor %}

{% endspaceless %} {% endif %} {% endwith %}
All of the following

OR

3 Output fields

Specify the categories/fields you would like in your DataSet below. A default set of categories has been pre-selected for you. Click on a category name to view its included fields.

{% regroup available_columns by get_category_display as column_lst %}
{% for get_category_display in column_lst %}
{% endfor %}

4 Linked visits

Check either the pre-visit or post-visit boxes below to bundle corresponding linked visit files with your DataSet. These will be separate CSV files with the same columns as your primary DataSet.

If you wish to do comparisons between and among linked visits, it is strongly recommended that you include both the VisitLink and DaysToEvent fields in your output.

5 Submit

Once your dataset is submitted, it will be placed in the processing queue. You will receive an email once the dataset has been fully generated and is ready for download.

{% csrf_token %}
{% endblock %} {% block body_js %} {% endblock %}