-
Notifications
You must be signed in to change notification settings - Fork 58
/
pstat.proto
160 lines (138 loc) · 3.41 KB
/
pstat.proto
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
package comphealth;
import "penums.proto";
import "pvisit.proto";
message PAGG{
required string key = 1;
optional string dataset = 2;
required bool linked = 3;
required bool unlinked = 4;
required int32 patient_count = 6;
required int32 visit_count = 7;
required int32 linked_count = 8;
required int32 unlinked_count = 9;
repeated PSubsets subsets = 10;
repeated VisitDeltaHist delta_hist = 11;
repeated VisitDeltaHist delta_error_hist = 13;
repeated EtypeCountHist count_hist = 12;
optional int32 edge_count = 14;
optional int32 negative_delta_count = 15;
required Policy policy = 16;
}
message PSubsets{
required bool linked = 1;
required ETYPE vtype = 2;
required AGG subset = 3;
optional string k = 4;
}
message VisitDeltaHist{
required ETYPE initial = 1;
required ETYPE sub = 2;
required int32 delta = 3;
required int32 v = 4;
}
message AGG {
required string key = 1;
required bool mini = 26 [default = false];
optional int32 count = 2 [default = 0];
required Policy policy = 33;
optional int64 charges_num = 31;
optional int64 charges_den = 32;
optional IntHist ageh = 3;
repeated SexHist sexh = 4;
repeated RaceHist raceh = 5;
repeated SourceHist sourceh = 6;
repeated DispositionHist disph = 7;
repeated PayerHist payerh = 8;
repeated DeathHist deathh = 9;
repeated DXI dxh = 10;
repeated KVI primary_prh = 11;
repeated KVI prh = 13;
repeated KVI exh = 14;
repeated KVI drgh = 15;
optional IntHist losh = 16;
repeated DNRHist dnrh = 18;
repeated PZipHist pziph = 19;
repeated KVII agedh = 21;
repeated KVII yearh = 22;
repeated EtypeHist vtypeh = 23;
repeated string facilityh = 24;
optional string dataset = 25;
}
message Policy{
required int32 min_count = 1;
required int32 min_hospital = 2;
required int32 base = 3;
required int32 min_subset = 4;
}
message IntHist{
repeated KVII h = 1;
optional int32 median = 2;
optional int32 fq = 3;
optional int32 tq = 4;
optional float mean = 5;
}
message KVII {
required int32 k = 1;
required int32 v = 2;
optional string s = 3;
}
message DXI {
required string k = 1;
optional int32 primary = 2;
optional int32 poa = 3;
optional int32 all = 4;
optional string c = 5;
optional string s = 6;
}
message DispositionHist {
required DISPOSITION k = 1;
required int32 v = 2;
optional string s = 3;
}
message EtypeHist {
required ETYPE k = 1;
required int32 v = 2;
optional string s = 3;
}
message EtypeCountHist {
required bool linked = 5;
required int32 ip = 1;
required int32 ed = 2;
required int32 asg = 3;
required int32 v = 4;
}
message SourceHist {
required SOURCE k = 1;
required int32 v = 2;
optional string s = 3;
}
message PayerHist {
required PAYER k = 1;
required int32 v = 2;
optional string s = 3;
}
message RaceHist {
required RACE k = 1;
required int32 v = 2;
optional string s = 3;
}
message DeathHist {
required DEATH k = 1;
required int32 v = 2;
optional string s = 3;
}
message SexHist {
required SEX k = 1;
required int32 v = 2;
optional string s = 3;
}
message DNRHist {
required DNR k = 1;
required int32 v = 2;
optional string s = 3;
}
message PZipHist {
required PZIP k = 1;
required int32 v = 2;
optional string s = 3;
}