This commit is contained in:
Ross
2024-10-28 10:34:03 +00:00
parent 7981684005
commit 21fa4739ee
3 changed files with 33 additions and 8 deletions
+15 -5
View File
@@ -3,9 +3,19 @@
{% block content %}
<h1>Radiology Gap Analysis</h1>
<details>
<summary>Filter</summary>
<form method="get">
{{ item_filter.form.as_p }}
<input type="submit" />
</form>
</details>
<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/>
{% comment %} <br/>
Show outcomes
{% for outcome in outcomes %}
@@ -13,12 +23,12 @@ Show outcomes
<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 %}
{% endfor %} {% endcomment %}
{% for category in categories %}
{% for category, items in filtered_categories %}
<h2>{{category.name}}</h2>
@@ -33,7 +43,7 @@ _="on click if me.checked show .outcome-{{outcome.id}} else hide .outcome-{{outc
<th>Radiology condition</th>
</tr>
{% for item in category.items_radiology.all %}
{% for item in items %}
<tr class="outcome-{{item.outcome.id}}">
<td class="id">{{item.rcr_platform_id}}</td>
<td>{{item.name}}</td>
@@ -47,7 +57,7 @@ _="on click if me.checked show .outcome-{{outcome.id}} else hide .outcome-{{outc
</table>
<p>
Item count: {{category.items_radiology.count}}
Item count: {{items.count}}
</p>
{% endfor %}