-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathidentify_connection.html
80 lines (80 loc) · 2.43 KB
/
identify_connection.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!doctype html>
<!--suppress HtmlUnknownTarget -->
<html lang="en">
<head>
<meta Charset=“UTF-8”>
<title>Record of {{ patient.name }}</title>
<style type="text/css">
table, th, td {
border: 1px solid black;
}
</style>
</head>
<body>
<div>
<a href="">
{% load static %}
<img src="{% static '/logo.jpg' %}" alt="Logo">
</a>
<a href="{% url 'view-patients' %}">Patients</a> |
<a href="{% url 'view-locations' %}">Locations</a> |
<a href="{% url 'view-visits' %}">Visits</a>
<div style="text-align:right;">
<a href="/system/patients/">Search</a> |
<a href="{% url 'create-patient' %}">Create</a>
</div>
</div>
<div>
<h3>Selected Patient</h3>
<table>
<tr>
<th>Name</th>
<th>Date Case Confirmed</th>
<th>Case Number</th>
</tr>
<tr>
<td>{{ patient.name }}</td>
<td>{{ patient.DCC }}</td>
<td>{{ patient.caseID }}</td>
</tr>
</table>
<h3>Search Parameters</h3>
<form action="" method="get">
<label for="days">Number of window days: </label>
<input id="days" value="{{ window_days }}" name="days">
<input type="submit">
</form>
<h3>Connections</h3>
<table>
<tr>
<th>Case Number</th>
<th>Name</th>
<th>Date Case Confirmed</th>
<th>Common Location Visited</th>
<th>Date Visited by this Patient</th>
<th>Detail</th>
<th>Date Visited by Selected Patient</th>
<th>Detail</th>
</tr>
{% for visit in visit_connections_list %}
{% for connection in visit.1 %}
<tr>
<td>{{ connection.patient.caseID }}</td>
<td>{{ connection.patient.name }}</td>
<td>{{ connection.patient.DCC }}</td>
<td>{{ connection.location.name }}</td>
<td>{{ connection.D_from }} - {{ connection.D_to }}</td>
<td>{{ connection.detail }}</td>
<td>{{ visit.0.D_from }} - {{ visit.0.D_to }}</td>
<td>{{ visit.0.detail }}</td>
</tr>
{% endfor %}
{% empty %}
<tr>
<td colspan="9" style="text-align: center">Empty for now</td>
</tr>
{% endfor %}
</table>
</div>
</body>
</html>