You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
133 lines
2.3 KiB
HTML
133 lines
2.3 KiB
HTML
{% extends 'base.html' %}
|
|
|
|
{% block header %}
|
|
<h1>
|
|
{% block title %}
|
|
Match Trial {{nct_id}} to Formularies
|
|
{% endblock %}
|
|
</h1>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div class=trial_summary>
|
|
<h3> Trial Summary </h3>
|
|
<table>
|
|
<tr>
|
|
<th>Short Title</th>
|
|
<td>{{ summary['summary'][0][1] }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Complete Title</th>
|
|
<td>{{ summary['summary'][0][2] }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Summary</th>
|
|
<td>{{ summary['summary'][0][3] }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Summary 2</th>
|
|
<td>{{ summary['summary'][0][4] }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Indicated Drugs</th>
|
|
<td>
|
|
<ul>
|
|
{% for drug in summary['indications'] %}
|
|
<li>
|
|
<a
|
|
href="https://www.drugs.com/search.php?searchterm={{drug}}"
|
|
target="_blank"
|
|
>
|
|
{{drug}}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Conditions</th>
|
|
<td>
|
|
<ul>
|
|
{% for condition in summary['conditions'] %}
|
|
<li>
|
|
<a
|
|
href="https://www.mayoclinic.org/search/search-results?q={{condition}}"
|
|
target="_blank"
|
|
>
|
|
{{condition}}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>keywords</th>
|
|
<td>{{ summary['keywords'] }}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<form method="post">
|
|
<h2>Matching Classes</h2>
|
|
{% for formulary in potential_matches %}
|
|
<div class=formulary_matches>
|
|
<h3>
|
|
{{ formulary }}
|
|
</h3>
|
|
|
|
<p>
|
|
|
|
<table>
|
|
<tr>
|
|
<th>Category</th>
|
|
<th>Class</th>
|
|
<th>Select</th>
|
|
</tr>
|
|
{% for row in potential_matches[formulary] %}
|
|
<tr>
|
|
<td> {{ row[1] }} </td>
|
|
<td> {{ row[2] }} </td>
|
|
<td> <input
|
|
type="checkbox"
|
|
id="{{ formulary,row }}"
|
|
name="check_box|{{ formulary,row }}"
|
|
value="selected">
|
|
</td>
|
|
<!-- add checkbox here -->
|
|
</tr>
|
|
{% endfor %}
|
|
|
|
</table>
|
|
</p>
|
|
<p>
|
|
If you've determined it belongs to another class
|
|
<select name="select_box|{{ formulary }}" id="{{ formularay }}-select_box">
|
|
<option disabled selected value> -- select an option -- </option>
|
|
<option value="difficult">
|
|
Difficult to choose
|
|
</option>
|
|
|
|
{% for option in class_lists[formulary] %}
|
|
<option value="{{ (option[0],option[1]) }}">
|
|
Cat:{{ option[0] }} Class:{{ option[1] }}
|
|
<!-- FIX this is really hard to read -->
|
|
<!-- FIX try to add opgroups? -->
|
|
</option>
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
{% endfor %}
|
|
|
|
</p>
|
|
<p>
|
|
<input type="submit" value="Submit">
|
|
</p>
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|