{% extends "remapp/rfdetailbase.html" %} {% load sigdig %} {% block navrf %}
  • {% endblock %} {% block mainblock %}
    {% with study=generalstudymoduleattr %} {% with patientstudy=study.patientstudymoduleattr_set.get %} {% with equipment=study.generalequipmentmoduleattr_set.get %}

    Study summary

    • Accession number: {% if not study.accession_hashed %} {{ study.accession_number }} {% else %} hidden {% endif %}
    • Study date: {{ study.study_date }}
    • Study time: {{ study.study_time|date:"H:i" }}
    • Study description: {{ study.study_description }}
    • Procedure: {{ study.procedure_code_meaning }}
    • Requested procedure: {{ study.requested_procedure_code_meaning }}
    • {% if showStandardNames %}
    • Standard study names:
        {% for std_name in study.standard_names.all %}
      • {{ std_name.standard_name }}
      • {% endfor %}
    • {% endif %}
    • Patient age: {{ patientstudy.patient_age_decimal|floatformat:1 }} years
    • Patient height and weight: {{ patientstudy.patient_size|floatformat:2 }} m, {{ patientstudy.patient_weight|floatformat:1 }} kg
    • {% for record in accumxraydose_set_all_planes %} {% with accumprojection=record.accumintegratedprojradiogdose_set.get %}
    • Total DAP, {{ record.acquisition_plane.code_meaning }}: {% if accumprojection.convert_gym2_to_cgycm2 >= alert_levels.alert_total_dap_rf %} {{ accumprojection.convert_gym2_to_cgycm2|floatformat:1 }} cGy.cm2 {% else %} {{ accumprojection.convert_gym2_to_cgycm2|floatformat:1 }} cGy.cm2 {% endif %}
    • Total dose at RP, {{ record.acquisition_plane.code_meaning }}: {% if accumprojection.dose_rp_total >= alert_levels.alert_total_rp_dose_rf %} {{ accumprojection.dose_rp_total | sigdig }} Gy {% else %} {{ accumprojection.dose_rp_total | sigdig }} Gy {% endif %}
    • {% endwith %} {% endfor %}
    • Hospital: {{ equipment.institution_name }}
    • Equipment: {{ equipment.manufacturer }} | {{ equipment.manufacturer_model_name }} | {{ equipment.station_name }}
    • Display name: {{ equipment.unique_equipment_name.display_name }}
    • Study UID: {{ study.study_instance_uid }}
    • Performing physician(s): {{ study.performing_physician_name }}
    • Operator(s): {{ study.operator_name }}
    • Test patient indicators? {{ study.patientmoduleattr_set.get.not_patient_indicator }}
    • {% for irr_type in study_totals %} {% if '- ' in irr_type.0 %} {% elif 'Total' in irr_type.0 %} {% else %} {% endif %} {% endfor %}
      Irradiation type Total DAP (cGy.cm2) Total dose at RP (Gy) Total duration (s)
      {{ irr_type.0 }} {% if irr_type.1 %}{{ irr_type.1 | floatformat:2 }} {% endif %} {% if irr_type.2 %}{{ irr_type.2 | sigdig }} {% endif %} {% if irr_type.3 %}{{ irr_type.3 | floatformat:2 }} {% endif %}{{ irr_type.0 }} {% if irr_type.1 %}{{ irr_type.1 | floatformat:2 }} {% endif %} {% if irr_type.2 %}{{ irr_type.2 | sigdig }} {% endif %} {% if irr_type.3 %}{{ irr_type.3 | floatformat:2 }} {% endif %}{{ irr_type.0 }} {% if irr_type.1 %}{{ irr_type.1 | floatformat:2 }} {% endif %} {% if irr_type.2 %}{{ irr_type.2 | sigdig }} {% endif %} {% if irr_type.3 %}{{ irr_type.3 | floatformat:2 }} {% endif %}
    {% if alert_levels.show_accum_dose_over_delta_weeks %} {% if study.patientmoduleattr_set.get.patient_id %}

    Summary of studies (including this one) matching this patient ID over the {{ alert_levels.accum_dose_delta_weeks }} week{{ alert_levels.accum_dose_delta_weeks|pluralize }} previous to this study

      {% with accumxraydose_set_all_planes|first as first_accumxraydose %} {% with accumprojection=first_accumxraydose.accumintegratedprojradiogdose_set.get %}
    • Number of studies: {{ studies_in_week_delta.count }} ({% for each_study in studies_in_week_delta %} {% if each_study.pk == study.pk %}this study{% else %}study {{ each_study.pk }}{% endif %}{% if not forloop.last%}, {% endif %} {% endfor %})
    • Total DAP summed over this period: {% if accumprojection.total_dap_delta_gym2_to_cgycm2 >= alert_levels.alert_total_dap_rf %} {{ accumprojection.total_dap_delta_gym2_to_cgycm2|floatformat:1 }} cGy.cm2 {% else %} {{ accumprojection.total_dap_delta_gym2_to_cgycm2|floatformat:1 }} cGy.cm2 {% endif %}
    • Total dose at RP summed over this period: {% if accumprojection.dose_rp_total_over_delta_weeks >= alert_levels.alert_total_rp_dose_rf %} {{ accumprojection.dose_rp_total_over_delta_weeks | sigdig }} Gy {% else %} {{ accumprojection.dose_rp_total_over_delta_weeks | sigdig }} Gy {% endif %}
    • {% endwith %} {% endwith %}
    • {% for each_study in studies_in_week_delta %} {% endfor %}
      Date Time Accession number Total DAP (cGy.cm2) Total dose at RP (Gy) OpenREM link
      {{ each_study.study_date|date:"d/m/y" }} {{ each_study.study_time|date:"H:i" }} {{ each_study.accession_number }} {% for accumxraydoseset_allplanes in each_study.projectionxrayradiationdose_set.get.accumxraydose_set.all %} {% with accumprojection=accumxraydoseset_allplanes.accumintegratedprojradiogdose_set.get %} {{ accumxraydoseset_allplanes.acquisition_plane.code_meaning }}: {% if accumprojection.convert_gym2_to_cgycm2 >= alert_levels.alert_total_dap_rf %} {{ accumprojection.convert_gym2_to_cgycm2|floatformat:1 }} {% else %} {{ accumprojection.convert_gym2_to_cgycm2|floatformat:1 }} {% endif %}
      {% endwith %} {% endfor %}
      {% for accumxraydoseset_allplanes in each_study.projectionxrayradiationdose_set.get.accumxraydose_set.all %} {% with accumprojection=accumxraydoseset_allplanes.accumintegratedprojradiogdose_set.get %} {{ accumxraydoseset_allplanes.acquisition_plane.code_meaning }}: {% if accumprojection.dose_rp_total >= alert_levels.alert_total_rp_dose_rf %} {{ accumprojection.dose_rp_total|floatformat:1 }} {% else %} {{ accumprojection.dose_rp_total|floatformat:1 }} {% endif %}
      {% endwith %} {% endfor %}
      {% if each_study.pk == study.pk %}This study{% else %} Study {{ each_study.pk }}{% endif %}
    {% else %}

    Summary of studies (including this one) matching this patient ID over the {{ alert_levels.accum_dose_delta_weeks }} week{{ alert_levels.accum_dose_delta_weeks|pluralize }} previous to this study

    Data unavailable: no patient ID for this study.

    {% endif %} {% endif %}
    {% endwith %}{% endwith %}{% endwith %} {% if admin.enable_skin_dose_maps %}

    Radiation exposure incidence map

    Colour scale choice
    Hide colour scales
    Use max/min Gy window level
    Colour scales Toggle 2D/3D view Gy window width
    Use WW/WL Gy min. displayed dose
    Colour scales Toggle 2D/3D view Gy max. displayed dose
    Skin dose maps are calculated using openSkin. Monte Carlo validation has been carried out for a Siemens Artis zee system for the body section of the phantom: openSkin results were within ± 20% of the Monte Carlo results. Skin dose values depend on the accuracy of the x-ray system's dose at reference point and DAP values. For other types of x-ray system the results are for indication only as they have not been validated. Contributions are welcome, see openSkin website for details. {% if admin.exportgroup %} Create an openSkin export. {% endif %}
    {% else %}

    openSkin radiation exposure incidence map

    You can export this study to a csv file in the format required by Jonathan Cole's openSkin software. The openSkin software can be downloaded from the openSkin BitBucket project and there is more information available in the OpenREM documentation.

    {% url 'skin_dose_map_settings_update' 1 as the_url %}

    This version of OpenREM has openSkin built-in, and is able to calculate and display skin dose maps for some x-ray systems. However, this option is switched off for your installation at the moment. It can be enabled by an administrator by changing the Skin dose map settings.

    Warning: Only copper filters are considered in this export - aluminium or other filters are not considered. This is related to the way openSkin works.

    Create openSkin export. (Not available if you don't have export permissions.)

    {% endif %}

    Radiation event details for this study

    {% if showStandardNames %} {% endif %} {% for event in events_all %} {% with sourcedata=event.irradeventxraysourcedata_set.get %} {% with mechanicaldata=event.irradeventxraymechanicaldata_set.get %} {% if showStandardNames %} {% endif %} {% endwith %}{% endwith %} {% endfor %}
    Time Acquisition protocolStandard acquisition protocolEvent type Pulse rate (s-1) Plane DAP (cGy.cm2) Dose at reference point (mGy) Duration (ms)
    Exposure time (ms)
    kVp mA Filters (mm) Primary angle (°) Secondary angle (°) Detector size (mm) SDD (mm) Orientation
    {{ event.date_time_started|time:"H:i.s" }} {{ event.acquisition_protocol }} {% for std_name in event.standard_protocols.all %} {% endfor %}
    {{ std_name.standard_name|default_if_none:"-" }}
    {{ event.irradiation_event_type.code_meaning }} {{ sourcedata.pulse_rate|floatformat:2 }} {{ event.acquisition_plane.code_meaning }} {% if event.convert_gym2_to_cgycm2 %}{{ event.convert_gym2_to_cgycm2 | sigdig }} {% endif %} {% if sourcedata.convert_gy_to_mgy %}{{ sourcedata.convert_gy_to_mgy | sigdig }} {% endif %} {% if sourcedata.irradiation_duration %} {{ sourcedata.irradiation_duration|multiply:1000|floatformat:1 }} {% else %} n/a {% endif %}
    {% if sourcedata.exposure_time %} {{ sourcedata.exposure_time }} {% else %} n/a {% endif %}
    {% for kvp_value in sourcedata.kvp_set.all %} {{ kvp_value.kvp|floatformat:0 }} {% endfor %} {% for tube_current in sourcedata.xraytubecurrent_set.all %} {{ tube_current.xray_tube_current|floatformat:1 }} {% endfor %} {% include 'remapp/list_filters.html' %} {{ mechanicaldata.positioner_primary_angle|floatformat:1 }} {{ mechanicaldata.positioner_secondary_angle|floatformat:1 }} {{ sourcedata.ii_field_size }} {{ mechanicaldata.doserelateddistancemeasurements_set.get.distance_source_to_detector|floatformat:0 }} {{ event.patient_table_relationship_cid.code_meaning|title }}, {{ event.patient_orientation_cid.code_meaning|title }}, {{ event.patient_orientation_modifier_cid.code_meaning|title }}

    Study level comment

    {{ projection_xray_dose_set.comment }}

    {% if is_paginated %}

    {% if has_next %} Older {% endif %} {% if has_next and has_previous %} | {% endif %} {% if has_previous %} Newer {% endif %}

    {% endif %} {% endblock %}