-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalgorithms.py
84 lines (76 loc) · 1.63 KB
/
algorithms.py
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
81
82
# these are not actually algorithms.
ALL_DATA = [
]
john_doe_xrays = [
{
'time_string': '03 22 2014',
'tags': ['xray'],
'image_url': 'static/img/xray1.jpg',
},
{
'time_string': '08 23 2014',
'tags': ['xray'],
'image_url': 'static/img/xray2.jpg',
},
{
'time_string': '09 20 2014',
'tags': ['xray'],
'image_url': 'static/img/xray3.jpg',
},
{
'time_string': '11 24 2014',
'tags': ['xray'],
'image_url': 'static/img/xray4.jpg',
},
{
'time_string': '12 03 2014',
'tags': ['xray'],
'image_url': 'static/img/xray5.jpg',
},
{
'time_string': '02 24 2015',
'tags': ['xray'],
'image_url': 'static/img/xray6.jpg',
}
]
prescriptions = [
{
'time_string': '03 22 2014',
'tags': ['prescription', 'Pubar clinic'],
'image_url': 'static/img/p1.jpg',
},
{
'time_string': '03 22 2014',
'tags': ['prescription', 'drug store'],
'image_url': 'static/img/p2.jpg',
},
{
'time_string': '03 22 2014',
'tags': ['prescription', 'antibiotics'],
'image_url': 'static/img/p3.jpg',
},
{
'time_string': '03 22 2014',
'tags': ['prescription', 'clinic'],
'image_url': 'static/img/p4.jpg',
},
{
'time_string': '03 22 2014',
'tags': ['prescription', 'fever'],
'image_url': 'static/img/p5.jpg',
},
{
'time_string': '03 22 2014',
'tags': ['prescription', 'hand'],
'image_url': 'static/img/p6.jpg',
},
]
def get_patient_data_json(query_string):
if True:
return prescriptions
if query_string == "john doe xrays before April":
return john_doe_xrays
if query_string == "Sanjit before March 2015 prescriptions":
return prescriptions
if query_string == "Kumar m. lab tests":
return lab_tests