CHRIS / quantity_module /templates /quantity_report.html
Robert Elder
switching to local MathJax
bee23fb
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CHRIS Report</title>
<!-- <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> -->
<!-- <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-svg.js"></script> -->
<script id="MathJax-script" async src="{{ url_for('static',filename='mathjax/tex-mml-svg.js') }}"></script>
<link rel= "stylesheet" type= "text/css" href= "{{ url_for('static',filename='styles.css') }}">
<style>
* {
box-sizing: border-box;
}
/* Create two equal columns that floats next to each other */
.column {
float: left;
width: 50%;
padding: 10px;
vertical-align: top;
align: center;
}
/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}
</style>
</head>
<img src="{{ url_for('static',filename='images/FDAlogo.png') }}" style="float: left;" height="100"/>
<img src="{{ url_for('static',filename='images/FDAgraphic.png') }}" style="float: right;" height="100"/>
<br clear="all" />
<header>
<h1 style="text-align:center"><font color="#0070C0">CH</font>emical <font color="#0070C0">RIS</font>k calculators (CHRIS) Report - Total Quantity</h1>
</header>
<body>
<p> The following report was generated using CHRIS-Total Quantity v.0.1 on
<script> document.write(new Date().toLocaleDateString()); </script>.
</p>
<h2> Compound </h2>
<div class="container">
<div class="row">
<div class="column">
Input :: {{chemName}} <br> <br>
IUPAC Name :: {{iupac}} <br> <br>
CAS :: {{cas}} <br> <br>
Molecular weight (g/mol) :: {{'%0.4f'%MW|float}}
{% if ceramic %} :: inorganic detected, assume insoluble particle and slow diffusion (e.g., maximum Mw) {% endif %}
<br> <br>
{% if show_properties %}
LogKow :: {{LogP}}{{LogP_origin}}<br> <br>
Density (g/cm<sup>3</sup>) :: {{rho}}{{rho_origin}}<br> <br>
Melting point (&deg;C) :: {{mp}}{{mp_origin}}<br> <br>
{% endif %}
SMILES :: {{smiles}}
</div>
<div class="column">
<img src="{{molImage}}"/>
</div>
</div>
</div>
<h2> Total Quantity </h2>
<p>
{% if methods[0]=="category" %}
<u> Modeling extraction from {{polymers[pIndex]}} estimates the total quantity = {{M0}} {{units}}. </u>
{% elif methods[0]=="wc" %}
<u> Modeling extraction from the polymer (with worst-case diffusion in a glassy polymer assumed) estimates the total quantity = {{M0}} {{units}}. </u>
{% elif methods[0]=="qrf" %}
<u> Modeling extraction from the polymer (with density = {{methods[2]}} g/cm<sup>3</sup> and T<sub>g</sub> = {{methods[1]}} &deg;C) estimates the total quantity = {{M0}} {{units}}. </u>
{% elif methods[0]=="qrf/wc" %}
<u> Modeling extraction from the polymer (with worst-case diffusion in a glassy polymer assumed because this system is outside the model training domain) estimates the total quantity = {{M0}} {{units}}. </u>
{% endif %}
<p>
<p>
This estimate was derived using the solutions to the conservative plane sheet model for mass release, \( M \):
\[
\frac{M(\tau)}{M_0} = \left\{
\begin{array}{cr}
(1+\Psi) \left[1-\exp\left( \frac{\tau}{\alpha^2} \right) \mathop{\rm erfc} \left( \frac{\tau^{0.5}}{\Psi} \right) \right] & \tau \leq 0.05 \\
\frac{1}{1+1/\Psi}\left[1-\sum^\infty_{n=1} \frac{2\Psi(1+\Psi)}{1+\Psi+\Psi^2q_n^2}\exp\left(-\tau q_n^2\right)\right] & \tau > 0.05
\end{array} \right.
\]
where \( \tau= D t A^2 / V_p^2 \), \( A \) and \( V_p \) are the surface area and volume of the polymer matrix, respectively, \( D \) is an estimated distribution of the diffusion coefficient of the extractable within the swollen polymer matrix, and \( t \) is time. The quantity \( \Psi = V_s/V_p K \), where \( V_s \) is the solvent volume and \( K \) is the polymer-solvent partition coefficient for the extractable. \( q_n \) are the roots of \( \tan x + \Psi x = 0 \). \( M_0 \) is total quantity initially contained in the polymer. The amount of swelling and number of iterations \( N \) are used to adjust \( \tau \) and \( \Psi \). Based on the input provided, the calculation used the following values:
</p>
<p>
Extracted amount \( M \) = {{M}} {{units}} <br>
Surface area \( A \) = {{area}} cm<sup>2</sup> <br>
Duration \( t \) = {{time}} h <br>
Iterations \( N \) = {{iterations}} <br>
Temperature = {{T}} &deg;C <br>
Solvent = {{solventname}} <br>
Solvent volume \( V_s \) = {{solventvol}} cm<sup>3</sup> <br>
Polymer volume \( V_p \) = {{vol}} cm<sup>3</sup> (based on polymer mass = {{mass}} g and density = {{density}} g/cm<sup>3</sup>) <br>
Partition coefficient \( K \)= {{K}} <br>
Swelling = {{swelling}} wt% (used to estimate \( D \))<br>
</p>
<p>The total quantity reported above is the median of the distribution of predicted amounts. Additional percentiles are provided here for informational purposes:</p>
<div>
{{ table | safe }}
</div>
<!-- <p>The progress of the extraction can be expressed through the dimensionless time \( \tau \). For your extraction, \( \tau \) = {{tau}}. Extractions with \( \tau \geq 0.1 \) result in more accurate estimates of the total quantity. When \( \tau \geq 1.0 \), the extracted amount may be used directly as the total quantity if the extraction is diffusion-controlled (i.e., \( \Psi \) is sufficiently large). For example, if \( \Psi > 10 \) and \( \tau \geq 1.0 \) less than 10% of the extractable will remain in the test article, consistent with exhaustive extraction. The total quantity from this tool may be used in the CHRIS exposure modules to estimate clinical exposure.</p> --!>
<h3> Notes </h3>
<ul>
<li>The progress of the extraction can be expressed through the dimensionless time \( \tau \). For your extraction, the median \( \tau \) = {{tau}}. Extractions with \( \tau \geq 0.1 \) result in more accurate estimates of the total quantity.</li>
<li>If the median \( M / M_0 > 0.9 \), the extraction can be considered exhaustive, and the extracted amount may be used directly as the total quantity.</li>
<li>The total quantity predicted with this tool can be used in the CHRIS exposure modules to estimate clinical exposure.</li>
</ul>
{% if M0>=mass_units %}
<p>
<font color="red">The predicted amount ({{M0}} {{units}}) is larger than the device mass ({{mass_units}} {{units}}), which may be due to uncertainty and conservatism in the prediction.
In this case the device mass may be used as a conservative estimate of the total quantity of this extractable. Alternatively, you may have used mismatched units for device density or extracted amount.</font>
</p>
{% endif %}
<p><button type="button" onclick="javascript:history.back()">Back</button></p>
</body>
</html>