{% extends "remapp/filteredbase.html" %} {% load sigdig %} {% load update_variable %} {% block navrf %}
  • {% endblock %} {% block toprow %}

    There are {{ study_list.paginator.count }} studies in this list.

    {% endblock %} {% block col2 %}

    Data export

    {% if admin.exportgroup %}

    Note: Apply the exam filter first to refine what is exported.

    Export to CSV  {% if admin.pidgroup %} With names With ID With both

    {% endif %} Export to XLSX {% if admin.pidgroup %} With names With ID With both {% endif %}

    PHE 2019 Survey

    {% else %}

    No export permissions

    {% endif %}
    {{ studyfilter }}

    Exam filter

    Date format yyyy-mm-dd {% for field in filter.form %}
    {{ field.errors }} {{ field }}
    {% endfor %}

    Chart options

    {% csrf_token %} {% regroup chartOptionsForm by field.group as field_groups %} {% for field_group in field_groups %} {% if field_group.grouper == 'PlotCharts' %}

     {{ field_group.list.0 }}

    {% else %}
    {% for field in field_group.list %} {% if field.field.widget.attrs.class == 'CheckboxSelectMultiple' %} {% elif field.label == 'Study frequency' or field.label == 'Requested procedure frequency' or field.label == 'Time period' %} {% else %} {% endif %} {% endfor %}
    {{ field }} {{ field }} {{ field }}
    {% endif %} {% endfor %}

    Table options

    {{ itemsPerPageForm }}
    {% endblock %} {% block col1 %} {% load l10n %} {% if showStandardNames %} {% endif %} {% if alertLevels.show_accum_dose_over_delta_weeks %} {% endif %} {% if admin.admingroup %} {% endif %} {% for exam in study_list %} {% with equipment=exam.generalequipmentmoduleattr_set.get %} {% with n_delta_studies=exam.pksforsummedrfdosestudiesindeltaweeks_set.all.count %} {% with False as use_warning %} {% if exam.dap_a_cgycm2 >= alertLevels.alert_total_dap_rf or exam.dap_b_cgycm2 >= alertLevels.alert_total_dap_rf or exam.total_rp_dose_a >= alertLevels.alert_total_rp_dose_rf or exam.total_rp_dose_b >= alertLevels.alert_total_rp_dose_rf %} {% update_variable True as use_warning %} {% endif %} {% if use_warning == False %} {% if alertLevels.show_accum_dose_over_delta_weeks %} {% if exam.dap_delta_weeks_cgycm2 >= alertLevels.alert_total_dap_rf or exam.total_rp_dose_delta_weeks >= alertLevels.alert_total_rp_dose_rf %} {% update_variable True as use_warning %} {% endif %} {% endif %} {% endif %} {% if use_warning == False %} {% else %} {% endif %} {% endwith %} {% if showStandardNames %} {% endif %} {% if alertLevels.show_accum_dose_over_delta_weeks %} {% endif %} {% if admin.admingroup %} {% endif %} {% endwith %}{% endwith %} {% endfor %}
    Institution
    Make
    Model
    Display name
    Date
    Study description
    Procedure
    Requested Procedure
    Accession number
    Standard study namesNumber of events Total DAP (cGy.cm2) Total dose at RP (Gy)Total DAP summed over
    {{ alertLevels.accum_dose_delta_weeks }} weeks before study(cGy.cm2)
    Total dose at RP summed over
    {{ alertLevels.accum_dose_delta_weeks }} weeks before study (Gy)
    PhysicianDelete?
    {{ equipment.institution_name }}
    {{ equipment.manufacturer }}
    {{ equipment.manufacturer_model_name }}
    {{ equipment.unique_equipment_name.display_name }}
    {{ exam.study_date|date:"Y-m-d" }} {{ exam.study_time|date:"H:i" }} {% if not exam.accession_hashed %} {% endif %}
    {{ exam.study_description }}
    {{ exam.procedure_code_meaning }}
    {{ exam.requested_procedure_code_meaning }}
    {{ exam.accession_number }}
    {% for std_name in exam.standard_names.all %} {% endfor %}
    {{ std_name.standard_name|default_if_none:"-" }}
    {{ exam.number_of_events }} {% if exam.number_of_planes == 2 %} {% if exam.dap_a_cgycm2 >= alertLevels.alert_total_dap_rf %} A: {{ exam.dap_a_cgycm2|floatformat:1 }} {% else %} A: {{ exam.dap_a_cgycm2|floatformat:1 }} {% endif %}
    {% if exam.dap_b_cgycm2 >= alertLevels.alert_total_dap_rf %} B: {{ exam.dap_b_cgycm2|floatformat:1 }} {% else %} B: {{ exam.dap_b_cgycm2|floatformat:1 }} {% endif %} {% else %} {% if exam.dap_a_cgycm2 >= alertLevels.alert_total_dap_rf %} {{ exam.dap_a_cgycm2|floatformat:1 }} {% else %} {{ exam.dap_a_cgycm2|floatformat:1 }} {% endif %} {% endif %}
    {% if exam.number_of_planes == 2 %} {% if exam.total_rp_dose_a >= alertLevels.alert_total_rp_dose_rf %} A: {{ exam.total_rp_dose_a|sigdig }} {% else %} A: {{ exam.total_rp_dose_a|sigdig }} {% endif %}
    {% if exam.total_rp_dose_b >= alertLevels.alert_total_rp_dose_rf %} B: {{ exam.total_rp_dose_b|sigdig }} {% else %} B: {{ exam.total_rp_dose_b|sigdig }} {% endif %} {% else %} {% if exam.total_rp_dose_a >= alertLevels.alert_total_rp_dose_rf %} {{ exam.total_rp_dose_a|sigdig }} {% else %} {{ exam.total_rp_dose_a|sigdig }} {% endif %} {% endif %}
    {% if exam.dap_delta_weeks_cgycm2 >= alertLevels.alert_total_dap_rf %} {{ exam.dap_delta_weeks_cgycm2|floatformat:1 }} {% else %} {{ exam.dap_delta_weeks_cgycm2|floatformat:1 }} {% endif %} ({{ n_delta_studies }} exam{{ n_delta_studies|pluralize }}) {% if exam.total_rp_dose_delta_weeks >= alertLevels.alert_total_rp_dose_rf %} {{ exam.total_rp_dose_delta_weeks | sigdig }} {% else %} {{ exam.total_rp_dose_delta_weeks | sigdig }} {% endif %} ({{ n_delta_studies }} exam{{ n_delta_studies|pluralize }}) {{ exam.performing_physician_name }} Delete
    {% endblock %} {% block plotdata %} {% if request.user.userprofile.plotCharts %}
    {% for chart in required_charts %}
    {% endfor %} {% endif %} {% endblock %}