ruby_astm 1.1.4 → 1.1.5

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
  SHA256:
3
- metadata.gz: 749dcf0c64ea38ebdded6d8da1861145cda0da3217e1580caced8d17ab49488a
4
- data.tar.gz: 79765a8914e651457350650b07e8382fbfb8cf7e35dcc27d9d67b16a4c06d1b2
3
+ metadata.gz: 433fd3c434412d3e8e82a0aec5f7ea4d02171ec6eb4114f40ba6683167ce76ef
4
+ data.tar.gz: 10f9cbfd6ab7153bf671e0e67709dd1a24faea4f430c5c53a9f8089a3f7c0496
5
5
  SHA512:
6
- metadata.gz: 7e51861e24962d0498871a115cb88ec521ec433247c203539d706fd66fb6e4837b9922e812c41f45f8c08931187f4079d09caeed29fb31d9cd80cdf60cd772fd
7
- data.tar.gz: fa5d0a0e2806fc2957848c2cfb29e46e5f85aabe8544e196a6f81351794fe13b28191402ad33fa8c46aad7f3642352f668b41e338e7b0bc6c3a8c78f96de4b31
6
+ metadata.gz: 453b97c83bfa1c3ab8901a7988168de09f9d97332a69d8a4efb69a783fbf467e28c5d04d620a997400719b8846489f3e71802ec3645546ec31e11b6b8c0db22e
7
+ data.tar.gz: 89def7573598d2b8aef88ee880223bc6b03aed1f835abe044a52d2fa05a37bdaa85d55fb8a4b2248d4618a44394613b359157fd753a1973ceebfd6882a51ca54
@@ -4,242 +4,301 @@
4
4
  {
5
5
  "LIS_CODE" : "TLCparam",
6
6
  "TUBE" : "EDTA",
7
- "TRANSFORM" : "(self.value.to_f*1000).to_i.to_s"
7
+ "TRANSFORM" : "(self.value.to_f*1000).to_i.to_s",
8
+ "REPORT_NAME" : "Hemogram"
8
9
  },
9
10
  "RBC" :
10
11
  {
11
12
  "LIS_CODE" : "RBCparam",
12
- "TUBE" : "EDTA"
13
+ "TUBE" : "EDTA",
14
+ "REPORT_NAME" : "Hemogram"
13
15
  },
14
16
  "HGB" :
15
17
  {
16
18
  "LIS_CODE" : "HBparam",
17
- "TUBE" : "EDTA"
19
+ "TUBE" : "EDTA",
20
+ "REPORT_NAME" : "Hemogram"
18
21
  },
19
22
  "HCT" : {
20
23
  "LIS_CODE" : "HCTparam",
21
- "TUBE" : "EDTA"
24
+ "TUBE" : "EDTA",
25
+ "REPORT_NAME" : "Hemogram"
22
26
  },
23
27
  "MCV" :
24
28
  {
25
29
  "LIS_CODE" : "MCVparam",
26
- "TUBE" : "EDTA"
30
+ "TUBE" : "EDTA",
31
+ "REPORT_NAME" : "Hemogram"
27
32
  },
28
33
  "MCH" : {
29
34
  "LIS_CODE" : "MCHparam",
30
- "TUBE" : "EDTA"
35
+ "TUBE" : "EDTA",
36
+ "REPORT_NAME" : "Hemogram"
31
37
  },
32
38
  "MCHC": {
33
39
  "LIS_CODE" : "MCHCparam",
34
- "TUBE" : "EDTA"
40
+ "TUBE" : "EDTA",
41
+ "REPORT_NAME" : "Hemogram"
35
42
  },
36
43
  "PLT" : {
37
44
  "LIS_CODE" : "PCparam",
38
45
  "TUBE" : "EDTA",
39
- "TRANSFORM" : "(self.value.to_f*1000).to_i.to_s"
46
+ "TRANSFORM" : "(self.value.to_f*1000).to_i.to_s",
47
+ "REPORT_NAME" : "Hemogram"
40
48
  },
41
49
  "NEUT%": {
42
50
  "LIS_CODE" : "Nparam",
43
- "TUBE" : "EDTA"
51
+ "TUBE" : "EDTA",
52
+ "REPORT_NAME" : "Hemogram"
44
53
  },
45
54
  "LYMPH%": {
46
55
  "LIS_CODE" : "Lparam",
47
- "TUBE" : "EDTA"
56
+ "TUBE" : "EDTA",
57
+ "REPORT_NAME" : "Hemogram"
48
58
  },
49
59
  "MONO%": {
50
60
  "LIS_CODE" : "Mparam",
51
- "TUBE" : "EDTA"
61
+ "TUBE" : "EDTA",
62
+ "REPORT_NAME" : "Hemogram"
52
63
  },
53
64
  "EO%": {
54
65
  "LIS_CODE" : "Eparam",
55
- "TUBE" : "EDTA"
66
+ "TUBE" : "EDTA",
67
+ "REPORT_NAME" : "Hemogram"
56
68
  },
57
69
  "BASO%": {
58
70
  "LIS_CODE" : "BASOparam",
59
- "TUBE" : "EDTA"
71
+ "TUBE" : "EDTA",
72
+ "REPORT_NAME" : "Hemogram"
60
73
  },
61
74
  "NEUT#": {
62
75
  "LIS_CODE" : "ANCparam",
63
- "TUBE" : "EDTA"
76
+ "TUBE" : "EDTA",
77
+ "REPORT_NAME" : "Hemogram"
64
78
  },
65
79
  "LYMPH#": {
66
80
  "LIS_CODE" : "ALCparam",
67
- "TUBE" : "EDTA"
81
+ "TUBE" : "EDTA",
82
+ "REPORT_NAME" : "Hemogram"
68
83
  },
69
84
  "MONO#": {
70
85
  "LIS_CODE" : "AMCparam",
71
- "TUBE" : "EDTA"
86
+ "TUBE" : "EDTA",
87
+ "REPORT_NAME" : "Hemogram"
72
88
  },
73
89
  "EO#": {
74
90
  "LIS_CODE" : "AECparam",
75
- "TUBE" : "EDTA"
91
+ "TUBE" : "EDTA",
92
+ "REPORT_NAME" : "Hemogram"
76
93
  },
77
94
  "BASO#": {
78
95
  "LIS_CODE" : "ABCparam",
79
- "TUBE" : "EDTA"
96
+ "TUBE" : "EDTA",
97
+ "REPORT_NAME" : "Hemogram"
80
98
  },
81
99
  "RDW-CV": {
82
100
  "LIS_CODE" : "RDWCVparam",
83
- "TUBE" : "EDTA"
101
+ "TUBE" : "EDTA",
102
+ "REPORT_NAME" : "Hemogram"
84
103
  },
85
104
  "GLUR" : {
86
105
  "LIS_CODE" : "GLUR",
87
- "TUBE" : "FLUORIDE"
106
+ "TUBE" : "FLUORIDE",
107
+ "REPORT_NAME" : "Random Glucose"
88
108
  },
89
109
  "GLUPP" : {
90
110
  "LIS_CODE" : "GLUPP",
91
- "TUBE" : "FLUORIDE"
111
+ "TUBE" : "FLUORIDE",
112
+ "REPORT_NAME" : "Post Prandial Glucose"
92
113
  },
93
114
  "GLUF" : {
94
115
  "LIS_CODE" : "GLUF",
95
- "TUBE" : "FLUORIDE"
116
+ "TUBE" : "FLUORIDE",
117
+ "REPORT_NAME" : "Fasting Glucose"
96
118
  },
97
119
  "CHOL" : {
98
120
  "LIS_CODE" : "CHOL",
99
- "TUBE" : "SERUM"
121
+ "TUBE" : "SERUM",
122
+ "REPORT_NAME" : "Cholesterol"
100
123
  },
101
124
  "TRIG" : {
102
125
  "LIS_CODE" : "TRIG",
103
- "TUBE" : "SERUM"
126
+ "TUBE" : "SERUM",
127
+ "REPORT_NAME" : "Triglycerides"
104
128
  },
105
129
  "HDLC" : {
106
130
  "LIS_CODE" : "HDLC",
107
- "TUBE" : "SERUM"
131
+ "TUBE" : "SERUM",
132
+ "REPORT_NAME" : "HDLC"
108
133
  },
109
134
  "LDL" : {
110
135
  "LIS_CODE" : "LDL",
111
- "TUBE" : "SERUM"
136
+ "TUBE" : "SERUM",
137
+ "REPORT_NAME" : "LDL"
112
138
  },
113
139
  "VLDL" : {
114
140
  "LIS_CODE" : "VLDL",
115
- "TUBE" : "SERUM"
141
+ "TUBE" : "SERUM",
142
+ "REPORT_NAME" : "VLDL"
116
143
  },
117
144
  "CRE" : {
118
145
  "LIS_CODE" : "CRE",
119
- "TUBE" : "SERUM"
146
+ "TUBE" : "SERUM",
147
+ "REPORT_NAME" : "Creatinine"
120
148
  },
121
149
  "UREA" : {
122
150
  "LIS_CODE" : "UREA",
123
- "TUBE" : "SERUM"
151
+ "TUBE" : "SERUM",
152
+ "REPORT_NAME" : "Urea"
124
153
  },
125
154
  "BUN" : {
126
155
  "LIS_CODE" : "BUN",
127
- "TUBE" : "SERUM"
156
+ "TUBE" : "SERUM",
157
+ "REPORT_NAME" : "Blood Urea Nitrogen"
128
158
  },
129
159
  "ALB" : {
130
160
  "LIS_CODE" : "ALB",
131
- "TUBE" : "SERUM"
161
+ "TUBE" : "SERUM",
162
+ "REPORT_NAME" : "Albumin"
132
163
  },
133
164
  "GGT" : {
134
165
  "LIS_CODE" : "GGT",
135
- "TUBE" : "SERUM"
166
+ "TUBE" : "SERUM",
167
+ "REPORT_NAME" : "GGT"
136
168
  },
137
169
  "BID" : {
138
170
  "LIS_CODE" : "BID",
139
- "TUBE" : "SERUM"
171
+ "TUBE" : "SERUM",
172
+ "REPORT_NAME" : "Direct Bilirubin"
140
173
  },
141
174
  "BIT" : {
142
175
  "LIS_CODE" : "BIT",
143
- "TUBE" : "SERUM"
176
+ "TUBE" : "SERUM",
177
+ "REPORT_NAME" : "Total Bilirubin"
144
178
  },
145
179
  "ALPU" : {
146
180
  "LIS_CODE" : "ALPU",
147
- "TUBE" : "SERUM"
181
+ "TUBE" : "SERUM",
182
+ "REPORT_NAME" : "Alkaline Phosphatase"
148
183
  },
149
184
  "GOTHL" : {
150
185
  "LIS_CODE" : "GOTHL",
151
- "TUBE" : "SERUM"
186
+ "TUBE" : "SERUM",
187
+ "REPORT_NAME" : "SGOT"
152
188
  },
153
189
  "GPTHL" : {
154
190
  "LIS_CODE" : "GPTHL",
155
- "TUBE" : "SERUM"
191
+ "TUBE" : "SERUM",
192
+ "REPORT_NAME" : "SGPT"
156
193
  },
157
194
  "HOMOCY" : {
158
195
  "LIS_CODE" : "HOMOCY",
159
- "TUBE" : "SERUM"
196
+ "TUBE" : "SERUM",
197
+ "REPORT_NAME" : "Homocysteine"
160
198
  },
161
199
  "8" : {
162
200
  "LIS_CODE" : "TSH",
163
- "TUBE" : "SERUM"
201
+ "TUBE" : "SERUM",
202
+ "REPORT_NAME" : "TSH"
164
203
  },
165
204
  "7" : {
166
205
  "LIS_CODE" : "T4",
167
- "TUBE" : "SERUM"
206
+ "TUBE" : "SERUM",
207
+ "REPORT_NAME" : "T4"
168
208
  },
169
209
  "6" : {
170
210
  "LIS_CODE" : "T3",
171
- "TUBE" : "SERUM"
211
+ "TUBE" : "SERUM",
212
+ "REPORT_NAME" : "T3"
172
213
  },
173
214
  "5" : {
174
215
  "LIS_CODE" : "HIV",
175
- "TUBE" : "PLASMA"
216
+ "TUBE" : "PLASMA",
217
+ "REPORT_NAME" : "HIV Screening"
176
218
  },
177
219
  "4" : {
178
220
  "LIS_CODE" : "HBS",
179
- "TUBE" : "PLASMA"
221
+ "TUBE" : "PLASMA",
222
+ "REPORT_NAME" : "HBV Screening"
180
223
  },
181
224
  "3" : {
182
225
  "LIS_CODE" : "VITD",
183
- "TUBE" : "SERUM"
226
+ "TUBE" : "SERUM",
227
+ "REPORT_NAME" : "Vitamin D"
184
228
  },
185
229
  "2" : {
186
230
  "LIS_CODE" : "HCV",
187
- "TUBE" : "PLASMA"
231
+ "TUBE" : "PLASMA",
232
+ "REPORT_NAME" : "HCV Screening"
188
233
  },
189
234
  "1" : {
190
235
  "LIS_CODE" : "B12",
191
- "TUBE" : "SERUM"
236
+ "TUBE" : "SERUM",
237
+ "REPORT_NAME" : "Vitamin B12"
192
238
  },
193
239
  "ESR" : {
194
240
  "LIS_CODE" : "ESR",
195
- "TUBE" : "ESR"
241
+ "TUBE" : "ESR",
242
+ "REPORT_NAME" : "ESR"
196
243
  },
197
244
  "GLU" : {
198
245
  "LIS_CODE" : "GLU",
199
- "TUBE" : "URINE_CONTAINER"
246
+ "TUBE" : "URINE_CONTAINER",
247
+ "REPORT_NAME" : "Urine Routine"
200
248
  },
201
249
  "BIL" : {
202
250
  "LIS_CODE" : "BIL",
203
- "TUBE" : "URINE_CONTAINER"
251
+ "TUBE" : "URINE_CONTAINER",
252
+ "REPORT_NAME" : "Urine Routine"
204
253
  },
205
254
  "KET" : {
206
255
  "LIS_CODE" : "KET",
207
- "TUBE" : "URINE_CONTAINER"
256
+ "TUBE" : "URINE_CONTAINER",
257
+ "REPORT_NAME" : "Urine Routine"
208
258
  },
209
259
  "SG" : {
210
260
  "LIS_CODE" : "SG",
211
- "TUBE" : "URINE_CONTAINER"
261
+ "TUBE" : "URINE_CONTAINER",
262
+ "REPORT_NAME" : "Urine Routine"
212
263
  },
213
264
  "BLO" : {
214
265
  "LIS_CODE" : "BLO",
215
- "TUBE" : "URINE_CONTAINER"
266
+ "TUBE" : "URINE_CONTAINER",
267
+ "REPORT_NAME" : "Urine Routine"
216
268
  },
217
269
  "pH" : {
218
270
  "LIS_CODE" : "pH",
219
- "TUBE" : "URINE_CONTAINER"
271
+ "TUBE" : "URINE_CONTAINER",
272
+ "REPORT_NAME" : "Urine Routine"
220
273
  },
221
274
  "PRO" : {
222
275
  "LIS_CODE" : "PRO",
223
- "TUBE" : "URINE_CONTAINER"
276
+ "TUBE" : "URINE_CONTAINER",
277
+ "REPORT_NAME" : "Urine Routine"
224
278
  },
225
279
  "URO" : {
226
280
  "LIS_CODE" : "URO",
227
- "TUBE" : "URINE_CONTAINER"
281
+ "TUBE" : "URINE_CONTAINER",
282
+ "REPORT_NAME" : "Urine Routine"
228
283
  },
229
284
  "NIT" : {
230
285
  "LIS_CODE" : "NIT",
231
- "TUBE" : "URINE_CONTAINER"
286
+ "TUBE" : "URINE_CONTAINER",
287
+ "REPORT_NAME" : "Urine Routine"
232
288
  },
233
289
  "LEU" : {
234
290
  "LIS_CODE" : "LEU",
235
- "TUBE" : "URINE_CONTAINER"
291
+ "TUBE" : "URINE_CONTAINER",
292
+ "REPORT_NAME" : "Urine Routine"
236
293
  },
237
294
  "COL" : {
238
295
  "LIS_CODE" : "COL",
239
- "TUBE" : "URINE_CONTAINER"
296
+ "TUBE" : "URINE_CONTAINER",
297
+ "REPORT_NAME" : "Urine Routine"
240
298
  },
241
299
  "CLA" : {
242
300
  "LIS_CODE" : "CLA",
243
- "TUBE" : "URINE_CONTAINER"
301
+ "TUBE" : "URINE_CONTAINER",
302
+ "REPORT_NAME" : "Urine Routine"
244
303
  }
245
304
  }
@@ -1,5 +1,6 @@
1
1
  class Result
2
2
  attr_accessor :name
3
+ attr_accessor :report_name
3
4
  attr_accessor :value
4
5
  attr_accessor :units
5
6
  attr_accessor :flags
@@ -11,6 +12,7 @@ class Result
11
12
  if line = args[:line]
12
13
  line.fields[2].scan(/\^+(?<name>[A-Za-z0-9\%\#\-\_\?\/]+)\^?(?<dilution>\d+)?/) { |name,dilution|
13
14
  self.name = lookup_mapping(name)
15
+ self.report_name = lookup_report_name(name)
14
16
  }
15
17
  end
16
18
  end
@@ -60,6 +62,8 @@ class Result
60
62
  end
61
63
  end
62
64
 
65
+
66
+
63
67
  ## here will call mappings and check the result correlation
64
68
  def initialize(args)
65
69
  set_name(args)
@@ -68,6 +72,7 @@ class Result
68
72
  set_timestamp(args)
69
73
  set_dilution(args)
70
74
  set_units(args)
75
+
71
76
  =begin
72
77
  if args[:line]
73
78
  line = args[:line]
@@ -101,4 +106,8 @@ class Result
101
106
  $mappings[name] ? $mappings[name]["TRANSFORM"] : nil
102
107
  end
103
108
 
109
+ def lookup_report_name(name)
110
+ $mappings[name] ? $mappings[name]["REPORT_NAME"] : name
111
+ end
112
+
104
113
  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: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bhargav Raut