ruby_astm 1.1.8 → 1.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mappings.json +3 -3
- data/lib/ruby_astm/HL7/hl7_observation.rb +1 -0
- data/lib/ruby_astm/order.rb +15 -2
- data/lib/ruby_astm/result.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0317b5cc1b25b47af7d15db62ee7f7f6ccf6e40587ffb16643da7c9845a75d85
|
4
|
+
data.tar.gz: d5214042d72a4f3c498bca1d4565f40488374568e2fd1da917f837e51c08c5c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32b5da6d8f483aa2b4402d6c0b3a03b7f3a4b54c4006f0352bfc98fdc794e82cf5f45523a1178a63d6226a20d25e80e2d979176f1d65f34217486356a2b6bc4e
|
7
|
+
data.tar.gz: b75c3fcc0aa7b46c504d1e9b27eb40813d711ce4c85b7623e0f5aaa5b83e9f3712deaecf19c62b403af1aa0adf692740059aaef501eb86fefe133a6977b82c77
|
data/lib/mappings.json
CHANGED
@@ -141,7 +141,7 @@
|
|
141
141
|
"TUBE" : "SERUM",
|
142
142
|
"REPORT_NAME" : "VLDL"
|
143
143
|
},
|
144
|
-
"
|
144
|
+
"CREAT" : {
|
145
145
|
"LIS_CODE" : "CRE",
|
146
146
|
"TUBE" : "SERUM",
|
147
147
|
"REPORT_NAME" : "Creatinine"
|
@@ -181,12 +181,12 @@
|
|
181
181
|
"TUBE" : "SERUM",
|
182
182
|
"REPORT_NAME" : "Alkaline Phosphatase"
|
183
183
|
},
|
184
|
-
"
|
184
|
+
"GOT" : {
|
185
185
|
"LIS_CODE" : "GOTHL",
|
186
186
|
"TUBE" : "SERUM",
|
187
187
|
"REPORT_NAME" : "SGOT"
|
188
188
|
},
|
189
|
-
"
|
189
|
+
"GPT" : {
|
190
190
|
"LIS_CODE" : "GPTHL",
|
191
191
|
"TUBE" : "SERUM",
|
192
192
|
"REPORT_NAME" : "SGPT"
|
data/lib/ruby_astm/order.rb
CHANGED
@@ -118,18 +118,31 @@ class Order
|
|
118
118
|
end
|
119
119
|
|
120
120
|
if (options[:machine_name] && (options[:machine_name] == "cobas-e411"))
|
121
|
+
|
122
|
+
|
123
|
+
## remove all the non number tests, as these are not to be run on the roche system, and cause the roche machine to clam up totally if non recognized/alphabetic tests are sent to it in the response.
|
124
|
+
|
125
|
+
|
126
|
+
self.tests = self.tests.select{|c| c =~ /[0-9]+/}
|
127
|
+
|
121
128
|
self.tests = self.tests.map{|c| c = "^^^" + c + "^1"}
|
122
129
|
# ^^0000000387^587^0^2^^S1^SC
|
123
130
|
id_string = options[:sequence_number] + "^" + options[:carrier_number] + "^" + options[:position_number] + "^^" + options[:sample_type] + "^" + options[:container_type]
|
124
131
|
|
125
|
-
|
132
|
+
|
133
|
+
"O|1|#{self.id.to_s}|#{id_string}|#{tests.join('\\')}|#{self.priority}||#{Time.now.strftime("%Y%m%d%H%M%S")}||||A||||1||||||||||O\r"
|
126
134
|
|
127
135
|
else
|
128
136
|
|
129
|
-
|
137
|
+
tests = self.tests.select{|c| c =~ /[A-Z]+/}
|
138
|
+
|
139
|
+
"O|#{self.sequence_number}|#{self.id}|#{Time.now.to_i.to_s}|^^^#{tests.join('`^^^')}|#{self.priority}||#{Time.now.strftime("%Y%m%d%H%M%S")}||||N||||#{self.specimen_type || 'SERUM'}\r"
|
130
140
|
|
131
141
|
end
|
132
142
|
|
143
|
+
## for urine it does not get the report name.
|
144
|
+
## so let me do one entry for urine and hemogram.
|
145
|
+
|
133
146
|
end
|
134
147
|
|
135
148
|
end
|
data/lib/ruby_astm/result.rb
CHANGED