gap
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/md5.js"></script>
|
||||
|
||||
{% comment %} <script src="https://unpkg.com/alpinejs" defer></script> {% endcomment %}
|
||||
<script src="https://unpkg.com/hyperscript.org@0.9.7"></script>
|
||||
<script src="https://unpkg.com/hyperscript.org@0.9.13"></script>
|
||||
<script src="https://unpkg.com/htmx.org@1.8.5/dist/htmx.min.js" defer></script>
|
||||
{% django_htmx_script %}
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
@@ -91,6 +91,9 @@
|
||||
<span id="" class="top-bar-link">
|
||||
<a href="{% url 'rcr:radiology_review_view' %}">Review</a>
|
||||
</span>
|
||||
<span id="" class="top-bar-link">
|
||||
<a href="{% url 'rcr:radiology_gap' %}">Gap Analysis</a>
|
||||
</span>
|
||||
{% if request.user.is_staff %}
|
||||
<span id="admin-link" class="top-bar-link">
|
||||
<a href="{% url 'admin:index' %}">Admin</a>
|
||||
|
||||
@@ -0,0 +1,134 @@
|
||||
{% extends 'rcr/base.html' %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h1>Radiology Gap Analysis</h1>
|
||||
<p>This page lists all of the radiology categories and the items that exist within them. The items are grouped by category.</p>
|
||||
<button _='on click toggle .visible on .id'> Toggle IDs</button>
|
||||
<br/>
|
||||
Show outcomes
|
||||
|
||||
{% for outcome in outcomes %}
|
||||
<span class="outcome-selection">
|
||||
<label for="{{outcome.name}}">{{outcome.name}}</label><input type="checkbox" name="{{outcome.name}}" value="{{outcome}}" checked
|
||||
_="on click if me.checked show .outcome-{{outcome.id}} else hide .outcome-{{outcome.id}} end">
|
||||
</span>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
|
||||
|
||||
{% for category in categories %}
|
||||
|
||||
<h2>{{category.name}}</h2>
|
||||
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<th class="id">ID</th>
|
||||
<th>Item</th>
|
||||
<th>Content type</th>
|
||||
<th>Level</th>
|
||||
<th>Outcome</th>
|
||||
<th>Radiology condition</th>
|
||||
</tr>
|
||||
|
||||
{% for item in category.items_radiology.all %}
|
||||
<tr class="outcome-{{item.outcome.id}}">
|
||||
<td class="id">{{item.rcr_platform_id}}</td>
|
||||
<td>{{item.name}}</td>
|
||||
<td>{{item.content_type}}</td>
|
||||
<td>{{item.get_level}}</td>
|
||||
<td>{{item.outcome}}</td>
|
||||
<td>{{item.get_radiology_condition}}</td>
|
||||
</tr>
|
||||
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
<p>
|
||||
Item count: {{category.items_radiology.count}}
|
||||
</p>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
{% comment %} {% for condition in conditions %}
|
||||
|
||||
<h2>{{condition.name}}</h2>
|
||||
|
||||
{{condition.items.all}}
|
||||
|
||||
{% endfor %} {% endcomment %}
|
||||
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block css %}
|
||||
|
||||
<style type="text/css">
|
||||
.review::after {
|
||||
content: '(R)';
|
||||
color: orange;
|
||||
}
|
||||
.completed-radiology::after {
|
||||
content: '✓';
|
||||
color: green;
|
||||
}
|
||||
.completed-oncology::after {
|
||||
content: '✓';
|
||||
color: blue;
|
||||
}
|
||||
.completed-oncology.completed-radiology::after {
|
||||
content: '✓';
|
||||
color: purple;
|
||||
}
|
||||
.completed::after {
|
||||
content: '✓';
|
||||
color: green;
|
||||
}
|
||||
.Radiology::before {
|
||||
content: "R";
|
||||
}
|
||||
.Radiology {
|
||||
color: green;
|
||||
}
|
||||
.Oncology::before {
|
||||
content: "O";
|
||||
}
|
||||
.Oncology {
|
||||
color: blue;
|
||||
}
|
||||
.Cross-faculty::before {
|
||||
content: "C";
|
||||
}
|
||||
.Cross-faculty {
|
||||
color: purple;
|
||||
}
|
||||
td {
|
||||
padding-right: 10px;
|
||||
}
|
||||
* {
|
||||
box-sizing: unset;
|
||||
}
|
||||
.id {
|
||||
display: none;
|
||||
}
|
||||
.visible {
|
||||
display: block;
|
||||
}
|
||||
.outcome-selection {
|
||||
display: inline-block;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
</style>
|
||||
{% endblock css %}
|
||||
|
||||
|
||||
{% block js %}
|
||||
<script type="text/hyperscript">
|
||||
|
||||
</script>
|
||||
{% endblock js %}
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
{% extends 'rcr/base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<details>
|
||||
<summary>Filter</summary>
|
||||
<form method="get">
|
||||
{{ item_filter.form.as_p }}
|
||||
<input type="submit" />
|
||||
</form>
|
||||
</details>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
@@ -13,6 +20,7 @@
|
||||
<th>Outcome (reason)</th>
|
||||
<th>Outcome (free text)</th>
|
||||
<th>Comments</th>
|
||||
<th>Level</th>
|
||||
<th>Radiology Category</th>
|
||||
<th>Oncology Category</th>
|
||||
<th>Radiology Condition</th>
|
||||
@@ -30,6 +38,15 @@
|
||||
<td>{{item.outcome_reason}}</td>
|
||||
<td>{{item.outcome_free_text}}</td>
|
||||
<td>{{item.comments}}</td>
|
||||
<td>{% for cat in item.level.all %}
|
||||
{% if forloop.last %}
|
||||
{{cat}}
|
||||
{% else %}
|
||||
{{cat}},
|
||||
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td>{% for cat in item.radiology_categories.all %}
|
||||
{% if forloop.last %}
|
||||
{{cat}}
|
||||
|
||||
Reference in New Issue
Block a user