-
Notifications
You must be signed in to change notification settings - Fork 6
/
notes3.txt
105 lines (99 loc) · 1.8 KB
/
notes3.txt
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
things to do
-------------
1. generalize risk score (not hard-coded)
2. come up with real solution for binary tiles in risk scores
3. not redo calculation for risks on each page
4. not refetch data on every page
5. allow generalizable env factors also
{
selectedSubreddit: 'frontend',
postsBySubreddit: {
frontend: {
isFetching: true,
didInvalidate: false,
items: []
},
reactjs: {
isFetching: false,
didInvalidate: false,
lastUpdated: 1439478405547,
items: [
{
id: 42,
title: 'Confusion about Flux and Relay'
},
{
id: 500,
title: 'Creating a Simple Application Using React JS and Flux Architecture'
}
]
}
}
}
{
selectedMeasurementCode: '2980-6',
selectedRiskScore: 'Cardiac',
//the IDs can be snomed or loinc codes
most_recent_measurements: {
id : {
value: 5,
units: "",
reference_range: [],
}
},
//this will be a fetchall of all observations
allObservations : {
isFetching: true,
didInvalidate: false,
items: []
},
allConditions : {
isFetching: true,
didInvalidate: false,
items: []
},
riskScores : {
cardiac: 5.3,
stroke: 2.5,
},
demographics: {
first_name: "",
last_name: "",
DOB: "",
last_visit: "",
sex: "",
last_visit: "",
},
environment: {
aiq: {
isFetching: true,
didInvalidate: false,
items: []
},
pollen: {
isFetching: true,
didInvalidate: false,
items: []
},
flu: {
isFetching: true,
didInvalidate: false,
items: []
}
},
medicationsByID : {
id : {
common_name: "",
dosage: "",
}
},
medications : array<id>,
preventative: array<id>,
preventativeByID : {
id : {
text : "",
main_component : "",
deadline: "",
}
},
}