dmsaylor commited on
Commit
44fe5af
·
1 Parent(s): 345b471

added impurity evaluation for non-CA additives

Browse files
color_module/colors.py CHANGED
@@ -79,6 +79,7 @@ def app_post():
79
  MW = float(request.form["MW"])
80
  chemName = request.form["chemName"] if "chemName" in request.form else "CHEMICAL NAME NOT PROVIDED"
81
  chemName = '*' + chemName + '*'
 
82
 
83
  if exposure != "limited":
84
  time = 24.
 
79
  MW = float(request.form["MW"])
80
  chemName = request.form["chemName"] if "chemName" in request.form else "CHEMICAL NAME NOT PROVIDED"
81
  chemName = '*' + chemName + '*'
82
+ impurity = float(request.form["impurity"]) * amount * 1e-2
83
 
84
  if exposure != "limited":
85
  time = 24.
color_module/templates/index.html CHANGED
@@ -56,7 +56,7 @@ function caCheck() {
56
  document.getElementById('impurity').disabled = false;
57
 
58
  if (iCA >= 13) {
59
- document.getElementById('impurity').disabled = true;
60
  }
61
  if (iCA >= 12) {
62
  document.getElementById('MW').disabled = false;
 
56
  document.getElementById('impurity').disabled = false;
57
 
58
  if (iCA >= 13) {
59
+ // document.getElementById('impurity').disabled = true;
60
  }
61
  if (iCA >= 12) {
62
  document.getElementById('MW').disabled = false;
color_module/templates/report.html CHANGED
@@ -16,7 +16,7 @@
16
 
17
  <body>
18
 
19
- <p> The following report was generated using CHRIS v.1.1.1 on
20
  <script> document.write(new Date().toLocaleDateString()); </script>.
21
  </p>
22
 
@@ -164,13 +164,11 @@ of {{MOS}}.
164
 
165
  {% endif %}
166
 
167
- {% if isCA == true %}
168
-
169
- <h3> Color additive impurities </h3>
170
 
171
  {% if iMOS >= 1 %}
172
 
173
- <font color="green"> The total color additive impurity level is {{impurity}} mg. When compared to TTC this results in
174
  an MOS = {{iMOS}}. Therefore, no further analysis is needed for the impact of impurities on systemic
175
  biocompatibility endpoints. </font>
176
 
@@ -178,22 +176,23 @@ of {{MOS}}.
178
  <font color="red"> *Note*: This assessment assumes that any impurities present are not in the cohort of concern. </font>
179
  </p>
180
 
 
181
  <p>
182
  <font color="red"> *Note*: Users should review and confirm compliance of impurity levels with any relevant Code of
183
  Federal Regulations (CFR) listings as part of the submission package, i.e. in addition to any output of CHRIS.
184
  A list of relevant CFR listings is provided
185
  <a href="color_module/FAQ.html#how-does-chris-deal-with-color-additive-impurities" >here</a>.</font>
186
  </p>
 
187
 
188
  {% else %}
189
 
190
- <font color="red"> The total color additive impurity level is {{impurity}} mg. When compared to TTC this results in
 
191
  an MOS = {{iMOS}}. Therefore, further analysis is needed to address the impact of impurities on systemic
192
  biocompatibility endpoints. Guidance on alternative methods to address impurities is provided
193
  <a href="color_module/FAQ.html#how-does-chris-deal-with-color-additive-impurities" >here</a>. </font>
194
-
195
-
196
- {% endif %}
197
 
198
  {% endif %}
199
 
 
16
 
17
  <body>
18
 
19
+ <p> The following report was generated using CHRIS v.1.1.2 on
20
  <script> document.write(new Date().toLocaleDateString()); </script>.
21
  </p>
22
 
 
164
 
165
  {% endif %}
166
 
167
+ <h3> Impurities </h3>
 
 
168
 
169
  {% if iMOS >= 1 %}
170
 
171
+ <font color="green"> The total additive impurity level is {{impurity}} mg. When compared to TTC this results in
172
  an MOS = {{iMOS}}. Therefore, no further analysis is needed for the impact of impurities on systemic
173
  biocompatibility endpoints. </font>
174
 
 
176
  <font color="red"> *Note*: This assessment assumes that any impurities present are not in the cohort of concern. </font>
177
  </p>
178
 
179
+ {% if isCA == true %}
180
  <p>
181
  <font color="red"> *Note*: Users should review and confirm compliance of impurity levels with any relevant Code of
182
  Federal Regulations (CFR) listings as part of the submission package, i.e. in addition to any output of CHRIS.
183
  A list of relevant CFR listings is provided
184
  <a href="color_module/FAQ.html#how-does-chris-deal-with-color-additive-impurities" >here</a>.</font>
185
  </p>
186
+ {% endif %}
187
 
188
  {% else %}
189
 
190
+ <p>
191
+ <font color="red"> The total additive impurity level is {{impurity}} mg. When compared to TTC this results in
192
  an MOS = {{iMOS}}. Therefore, further analysis is needed to address the impact of impurities on systemic
193
  biocompatibility endpoints. Guidance on alternative methods to address impurities is provided
194
  <a href="color_module/FAQ.html#how-does-chris-deal-with-color-additive-impurities" >here</a>. </font>
195
+ </p>
 
 
196
 
197
  {% endif %}
198
 
static/Changelog.md CHANGED
@@ -14,6 +14,10 @@
14
  ```
15
  ## Change Log
16
 
 
 
 
 
17
  ### Version 1.1.1 - 2022-12-07
18
  * Modified header of the landing page
19
  * Added contact information for suggested improvements
 
14
  ```
15
  ## Change Log
16
 
17
+ ### Version 1.1.2 - 2022-12-07
18
+ * Added impurity evaluation for non-CA additives
19
+ * Fixed typos
20
+
21
  ### Version 1.1.1 - 2022-12-07
22
  * Modified header of the landing page
23
  * Added contact information for suggested improvements