* The results are based on the parameters and assumptions published in the CARA publication: doi.org/10.1098/rsfs.2021.0076.
* The results are based on the parameters and assumptions published in the CARA publication: doi.org/10.1098/rsfs.2021.0076.
{% if form.short_range_option == "short_range_yes" %}
{% if 'Speaking' in form.short_range_interactions|string or 'Shouting' in form.short_range_interactions|string %}
diff --git a/cara/apps/templates/cern/calculator.report.html.j2 b/cara/apps/templates/cern/calculator.report.html.j2
index 11c6f5c2..495b1401 100644
--- a/cara/apps/templates/cern/calculator.report.html.j2
+++ b/cara/apps/templates/cern/calculator.report.html.j2
@@ -1,6 +1,12 @@
{% extends "base/calculator.report.html.j2" %}
{% set cern_level = 'green-1' %}
+
+{% if ((long_range_prob_inf > 10) or (long_range_expected_new_cases >= 1)) %} {% set long_range_scale_warning = 'red' %}
+{% elif (2 <= long_range_prob_inf <= 10) %} {% set long_range_scale_warning = 'orange' %}
+{% else %} {% set long_range_scale_warning = 'green' %}
+{% endif %}
+
{% if ((prob_inf > 10) or (expected_new_cases >= 1)) %} {% set scale_warning = 'red' %}
{% elif (2 <= prob_inf <= 10) %} {% set scale_warning = 'orange' %}
{% else %} {% set scale_warning = 'green' %}
@@ -12,12 +18,25 @@
{% endblock report_preamble_navtab %}
+{% block long_range_warning_animation %}
+ {% if long_range_scale_warning == 'red' %} {% set long_range_warning_color= 'bg-danger' %}
+ {% elif long_range_scale_warning == 'orange' %} {% set long_range_warning_color = 'bg-warning' %}
+ {% elif long_range_scale_warning == 'green' %} {% set long_range_warning_color = 'bg-success' %}
+ {% endif %}
+
+{% endblock long_range_warning_animation %}
+
{% block warning_animation %}
{% if scale_warning == 'red' %} {% set warning_color= 'bg-danger' %}
{% elif scale_warning == 'orange' %} {% set warning_color = 'bg-warning' %}
{% elif scale_warning == 'green' %} {% set warning_color = 'bg-success' %}
{% endif %}
-
{{prob_inf | non_zero_percentage}}
@@ -28,51 +47,73 @@
{% endblock warning_animation %}
{% block report_summary %}
- {% set report_message = "Taking into account the uncertainties tied to the model variables, in this scenario and assuming all occupants are exposed equally, the
probability of one exposed occupant getting infected is " + prob_inf | non_zero_percentage + " and the
expected number of new cases is " + expected_new_cases | float_format + "*." %}
+ {% set long_range_report_message = "Taking into account the uncertainties tied to the model variables, in this scenario and assuming all occupants are exposed equally, the
probability of one exposed occupant getting infected is " + long_range_prob_inf | non_zero_percentage + " and the
expected number of new cases is " + long_range_expected_new_cases | float_format + "*." %}
- {% if scale_warning == 'red' %}
+
+ {% if long_range_scale_warning == 'red' %}
Not Acceptable:
- {{ report_message }}
+ {{ long_range_report_message }}
- {% elif scale_warning == 'orange' %}
+ {% elif long_range_scale_warning == 'orange' %}
Attention:
- {{ report_message }}
+ {{ long_range_report_message }}
- {% elif scale_warning == 'green' %}
+ {% elif long_range_scale_warning == 'green' %}
Acceptable:
- {{ report_message }}
+ {{ long_range_report_message }}
{% endif %}
-
- {% if (prob_inf > 2) %}
-
- {% if cern_level == "green-1" %}
-
- Note: the current CERN COVID Scale is Green – 1. The risk of circulation of asymptomatic or pre-symptomatic infected individuals within the CERN site is considered negligible. There may be more than 8'000 daily on-site accesses. Align your risk assessment with the guidance and instructions provided by the HSE Unit.
-
- {% elif cern_level == "yellow-2" %}
-
- Note: the current CERN COVID Scale is Yellow - 2. There is a reduced risk that asymptomatic or pre-symptomatic infected individuals circulate within the CERN site. There may be around 6'500 daily on-site accesses during this stage. See with your supervisor, DSO/LEXGLIMOS and space manager if this scenario is acceptable and if any additional measures can be applied (ALARA).
-
- {% elif cern_level == "orange-3" %}
-
- Warning: the current CERN COVID Scale is Orange - 3. There is a medium risk that asymptomatic or pre-symptomatic infected individuals circulate within the CERN site. There may be around 5'000 daily on-site accesses during this stage. See with your supervisor, DSO/LEXGLIMOS and space manager if this scenario is acceptable and if any additional measures can be applied (ALARA).
-
- {% elif cern_level == "red-4" %}
-
- Warning: the current CERN COVID Scale is Red - 4. There is a strong risk that asymptomatic or pre-symptomatic infected individuals circulate within the CERN site. There may be around 4'000 daily on-site accesses during this stage. Please reduce the value below the threshold of 2%. See with your supervisor, DSO/LEXGLIMOS and space manager if this scenario is acceptable and if any additional measures are required.
-
- {% else %}
-
Note: The CERN COVID Level is not specified.
+ {% if form.short_range_option == "short_range_yes" %}
+
+ {% set report_message = "Taking into account the uncertainties tied to the model variables, in this scenario and assuming all occupants are exposed equally, the
probability of one exposed occupant getting infected is " + prob_inf | non_zero_percentage + " and the
expected number of new cases is " + expected_new_cases | float_format + "*." %}
+ {% if scale_warning == 'red' %}
+
+ Not Acceptable:
+ {{ report_message }}
+
+ {% elif scale_warning == 'orange' %}
+
+ Attention:
+ {{ report_message }}
+
+ {% elif scale_warning == 'green' %}
+
+ Acceptable:
+ {{ report_message }}
+
+ {% endif %}
{% endif %}
- {% endif %}
-
+ {% if (prob_inf > 2) %}
+
+ {% if cern_level == "green-1" %}
+
+ Note: the current CERN COVID Scale is Green – 1. The risk of circulation of asymptomatic or pre-symptomatic infected individuals within the CERN site is considered negligible. There may be more than 8'000 daily on-site accesses. Align your risk assessment with the guidance and instructions provided by the HSE Unit.
+
+ {% elif cern_level == "yellow-2" %}
+
+ Note: the current CERN COVID Scale is Yellow - 2. There is a reduced risk that asymptomatic or pre-symptomatic infected individuals circulate within the CERN site. There may be around 6'500 daily on-site accesses during this stage. See with your supervisor, DSO/LEXGLIMOS and space manager if this scenario is acceptable and if any additional measures can be applied (ALARA).
+
+ {% elif cern_level == "orange-3" %}
+
+ Warning: the current CERN COVID Scale is Orange - 3. There is a medium risk that asymptomatic or pre-symptomatic infected individuals circulate within the CERN site. There may be around 5'000 daily on-site accesses during this stage. See with your supervisor, DSO/LEXGLIMOS and space manager if this scenario is acceptable and if any additional measures can be applied (ALARA).
+
+ {% elif cern_level == "red-4" %}
+
+ Warning: the current CERN COVID Scale is Red - 4. There is a strong risk that asymptomatic or pre-symptomatic infected individuals circulate within the CERN site. There may be around 4'000 daily on-site accesses during this stage. Please reduce the value below the threshold of 2%. See with your supervisor, DSO/LEXGLIMOS and space manager if this scenario is acceptable and if any additional measures are required.
+
+ {% else %}
+
Note: The CERN COVID Level is not specified.
+ {% endif %}
+ {% endif %}
+
+
{% endblock report_summary %}
-{% block report_summary_footnote %}
+{% block report_summary_footnote %}
+
{% if scale_warning == 'red' %}
This exceeds the authorised risk threshold or number of expected new cases.
The risk level must be reduced before this activity can be undertaken.