ruby_astm 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 842286467b059daf0900a6fcf8e4eb268c312d30
4
- data.tar.gz: f8c9fe3d6f956160469ab440a05dde9668186908
3
+ metadata.gz: 166ef03d3cea8528d5efe22f666cee22bb95a1de
4
+ data.tar.gz: d244a14412ed832aef705c62b21fd88550de4f8e
5
5
  SHA512:
6
- metadata.gz: 2127234e9e8bfd786a4e00bba25b0eb67f5e2d60acc709fe5868c5137edae77b60e8ea458f43767fda88467241166cf9e33da8a3d82eaade538b56f730414089
7
- data.tar.gz: 4bc8ae6b1a863234dd750fd02d11d5656a4686eb6f254d831cedd2533ea225d1804e82a6ced3c243ff528d8337a0095a7536163ee88218d78d1fbe55a311c35d
6
+ metadata.gz: 1b253ff46624b761763cd74754bbf56bf87eb956de54e414fc6e0e4baf75161d3915a02b8629238ae8cd4605d3cd9762e69ae379be5961632e9bafbeae53cd08
7
+ data.tar.gz: 68379077bae503a51048d9de4f98922433fb6b70a3c369a56a2eef4e56437c8fb3bb5280b68d85444575cbf8e02f4ba7d51d572e463d38b9a4af19f37fc3fda4
data/lib/mappings.json ADDED
@@ -0,0 +1,195 @@
1
+ {
2
+ "_comment" : "key -> code sent by analyzer, eg sysmex sends WBC count under the code 'WBC'. value -> object. Object structure: 'LIS_CODE': in the google lab interface, this code is present in two places on google drive. one) in the name of the file, two) inside the file, where the test result value should be added. For eg in the hemogram report, TLCparam, is present in the name of the file, as well as inside the file, so the google script will update it with the relevant value. 'TUBE' stands for the type of tube in which this test has to be performed. This should match the constants in the Google Lab Interface.rb file. Now there is another problem that we have to deal with here. When going bidirectional, in some machines like Roche Cobas e411, the test codes come in as numbers, and not letters, so the keys here in this file are numbers, for those tests. Because Roche is a bitch basically.",
3
+ "WBC" :
4
+ {
5
+ "LIS_CODE" : "TLCparam",
6
+ "TUBE" : "EDTA"
7
+ },
8
+ "RBC" :
9
+ {
10
+ "LIS_CODE" : "RBCparam",
11
+ "TUBE" : "EDTA"
12
+ },
13
+ "HGB" :
14
+ {
15
+ "LIS_CODE" : "HBparam",
16
+ "TUBE" : "EDTA"
17
+ },
18
+ "HCT" : {
19
+ "LIS_CODE" : "HCTparam",
20
+ "TUBE" : "EDTA"
21
+ },
22
+ "MCV" :
23
+ {
24
+ "LIS_CODE" : "MCVparam",
25
+ "TUBE" : "EDTA"
26
+ },
27
+ "MCH" : {
28
+ "LIS_CODE" : "MCHparam",
29
+ "TUBE" : "EDTA"
30
+ },
31
+ "MCHC": {
32
+ "LIS_CODE" : "MCHCparam",
33
+ "TUBE" : "EDTA"
34
+ },
35
+ "PLT" : {
36
+ "LIS_CODE" : "PCparam",
37
+ "TUBE" : "EDTA"
38
+ },
39
+ "NEUT%": {
40
+ "LIS_CODE" : "Nparam",
41
+ "TUBE" : "EDTA"
42
+ },
43
+ "LYMPH%": {
44
+ "LIS_CODE" : "Lparam",
45
+ "TUBE" : "EDTA"
46
+ },
47
+ "MONO%": {
48
+ "LIS_CODE" : "Mparam",
49
+ "TUBE" : "EDTA"
50
+ },
51
+ "EO%": {
52
+ "LIS_CODE" : "Eparam",
53
+ "TUBE" : "EDTA"
54
+ },
55
+ "BASO%": {
56
+ "LIS_CODE" : "BASOparam",
57
+ "TUBE" : "EDTA"
58
+ },
59
+ "NEUT#": {
60
+ "LIS_CODE" : "ANCparam",
61
+ "TUBE" : "EDTA"
62
+ },
63
+ "LYMPH#": {
64
+ "LIS_CODE" : "ALCparam",
65
+ "TUBE" : "EDTA"
66
+ },
67
+ "MONO#": {
68
+ "LIS_CODE" : "AMCparam",
69
+ "TUBE" : "EDTA"
70
+ },
71
+ "EO#": {
72
+ "LIS_CODE" : "AECparam",
73
+ "TUBE" : "EDTA"
74
+ },
75
+ "BASO#": {
76
+ "LIS_CODE" : "ABCparam",
77
+ "TUBE" : "EDTA"
78
+ },
79
+ "RDW-CV": {
80
+ "LIS_CODE" : "RDWCVparam",
81
+ "TUBE" : "EDTA"
82
+ },
83
+ "GLUR" : {
84
+ "LIS_CODE" : "GLUR",
85
+ "TUBE" : "FLUORIDE"
86
+ },
87
+ "GLUPP" : {
88
+ "LIS_CODE" : "GLUPP",
89
+ "TUBE" : "FLUORIDE"
90
+ },
91
+ "GLUF" : {
92
+ "LIS_CODE" : "GLUF",
93
+ "TUBE" : "FLUORIDE"
94
+ },
95
+ "CHOL" : {
96
+ "LIS_CODE" : "CHOL",
97
+ "TUBE" : "SERUM"
98
+ },
99
+ "TRIG" : {
100
+ "LIS_CODE" : "TRIG",
101
+ "TUBE" : "SERUM"
102
+ },
103
+ "HDLC" : {
104
+ "LIS_CODE" : "HDLC",
105
+ "TUBE" : "SERUM"
106
+ },
107
+ "LDL" : {
108
+ "LIS_CODE" : "LDL",
109
+ "TUBE" : "SERUM"
110
+ },
111
+ "VLDL" : {
112
+ "LIS_CODE" : "VLDL",
113
+ "TUBE" : "SERUM"
114
+ },
115
+ "CRE" : {
116
+ "LIS_CODE" : "CRE",
117
+ "TUBE" : "SERUM"
118
+ },
119
+ "UREA" : {
120
+ "LIS_CODE" : "UREA",
121
+ "TUBE" : "SERUM"
122
+ },
123
+ "BUN" : {
124
+ "LIS_CODE" : "BUN",
125
+ "TUBE" : "SERUM"
126
+ },
127
+ "ALB" : {
128
+ "LIS_CODE" : "ALB",
129
+ "TUBE" : "SERUM"
130
+ },
131
+ "GGT" : {
132
+ "LIS_CODE" : "GGT",
133
+ "TUBE" : "SERUM"
134
+ },
135
+ "BID" : {
136
+ "LIS_CODE" : "BID",
137
+ "TUBE" : "SERUM"
138
+ },
139
+ "BIT" : {
140
+ "LIS_CODE" : "BIT",
141
+ "TUBE" : "SERUM"
142
+ },
143
+ "ALPU" : {
144
+ "LIS_CODE" : "ALPU",
145
+ "TUBE" : "SERUM"
146
+ },
147
+ "GOTHL" : {
148
+ "LIS_CODE" : "GOTHL",
149
+ "TUBE" : "SERUM"
150
+ },
151
+ "GPTHL" : {
152
+ "LIS_CODE" : "GPTHL",
153
+ "TUBE" : "SERUM"
154
+ },
155
+ "HOMOCY" : {
156
+ "LIS_CODE" : "HOMOCY",
157
+ "TUBE" : "SERUM"
158
+ },
159
+ "8" : {
160
+ "LIS_CODE" : "TSH",
161
+ "TUBE" : "SERUM"
162
+ },
163
+ "7" : {
164
+ "LIS_CODE" : "T4",
165
+ "TUBE" : "SERUM"
166
+ },
167
+ "6" : {
168
+ "LIS_CODE" : "T3",
169
+ "TUBE" : "SERUM"
170
+ },
171
+ "5" : {
172
+ "LIS_CODE" : "HIV",
173
+ "TUBE" : "PLASMA"
174
+ },
175
+ "4" : {
176
+ "LIS_CODE" : "HBS",
177
+ "TUBE" : "PLASMA"
178
+ },
179
+ "3" : {
180
+ "LIS_CODE" : "VITD",
181
+ "TUBE" : "SERUM"
182
+ },
183
+ "2" : {
184
+ "LIS_CODE" : "HCV",
185
+ "TUBE" : "PLASMA"
186
+ },
187
+ "1" : {
188
+ "LIS_CODE" : "B12",
189
+ "TUBE" : "SERUM"
190
+ },
191
+ "ESR" : {
192
+ "LIS_CODE" : "ESR",
193
+ "TUBE" : "ESR"
194
+ }
195
+ }
@@ -19,7 +19,7 @@ class AstmServer
19
19
  end
20
20
 
21
21
  def self.default_mappings
22
- File.join AstmServer.root_path, "../","mappings.json"
22
+ File.join AstmServer.root_path,"mappings.json"
23
23
  end
24
24
 
25
25
  $ENQ = "[5]"
@@ -50,8 +50,4 @@ class AstmServer
50
50
  }
51
51
  end
52
52
 
53
- ## now we need to run the server and poller.
54
- ## thats what we need.
55
-
56
-
57
53
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_astm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bhargav Raut
@@ -115,6 +115,7 @@ executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
+ - lib/mappings.json
118
119
  - lib/publisher/adapter.rb
119
120
  - lib/publisher/credentials.json
120
121
  - lib/publisher/google_lab_interface.rb