{# pe_build.html #} {% extends "base.html" %} {% block collapsejs %}{% endblock %} {% block extrahead %} {% include "querybuilder_extrahead.html" %} {% endblock %} {% block onload %}onload="populate()"{% endblock %} {% block content %} {% include "query_nav.html" %}

Build a Patient Explorer

Current Patient Explorer

A. Output columns

{{ pmq_output_columns|safe }}

B. Patient selection criteria

{{ pmq_patient_conditions|safe }}

C. Manual patient selection query

{{ pmq_manual_patient_query|safe }}

Final patient selection query

{{ pmq_final_patient_query|safe }}
{{ warnings|safe }}
{% csrf_token %}

Build your Patient Explorer!

{% include "querybuilder_form.html" with form_submit_url='pe_build' %}

Set a manual patient query

This should select the master research ID (MRID); it should use the DISTINCT keyword so each MRID is selected only once; it should pick them WHERE mrid IS NOT NULL, and it should (ideally) ORDER BY that MRID for consistency when you run it more than once.
{% csrf_token %} {{ manual_form }}

Explanation

{% endblock %}