ruby_astm 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/publisher/poller.rb +6 -2
- data/lib/ruby_astm/order.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc05e6b6b235e7df2ca1c58a743122e801c8c18b
|
4
|
+
data.tar.gz: 2abc30cf1f6a90e3942bdd03a7b2dc1b9f7c846b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 470f3f0bffa8cba632548f65a2f782a177e38bc4989880fd112a908ce98337dd940097e0f70ad0f6b79ce0d4711e5ab8f10dde25151e9a047f2dc101dfd2c325
|
7
|
+
data.tar.gz: e3fec45152ad2716ec63efcfdcb1c7211c6db528a0cf1d0f3301d03484f0cf7f09766afe9f63f26aca8cb267ea4d6015cb3aee1d63678355bb6b71e4a8b954d3
|
data/lib/publisher/poller.rb
CHANGED
@@ -189,11 +189,15 @@ class Poller
|
|
189
189
|
$redis.multi do |multi|
|
190
190
|
$redis.zadd REQUISITIONS_SORTED_SET, epoch, JSON.generate(tests)
|
191
191
|
tests.keys.each do |tube_barcode|
|
192
|
-
|
192
|
+
## in this hash we want the key to be only the specimen id.
|
193
|
+
## and not prefixed by the tube type like FLUORIDE etc.
|
194
|
+
tube_barcode.scan(/:(?<barcode>.*)$/) { |barcode|
|
195
|
+
$redis.hset REQUISITIONS_HASH, barcode, JSON.generate(tests[tube_barcode])
|
196
|
+
}
|
193
197
|
end
|
194
198
|
end
|
195
199
|
end
|
196
|
-
|
200
|
+
|
197
201
|
def default_checkpoint
|
198
202
|
(Time.now - 5.days).to_i*1000
|
199
203
|
end
|
data/lib/ruby_astm/order.rb
CHANGED
@@ -62,7 +62,7 @@ class Order
|
|
62
62
|
|
63
63
|
raise "provide a sequence number" if self.sequence_number.blank?
|
64
64
|
raise "provide a specimen id" if self.id.blank?
|
65
|
-
raise "provide a list of tests" if self.tests.blank?
|
65
|
+
#raise "provide a list of tests" if self.tests.blank?
|
66
66
|
raise "provide a test priority" if self.priority.blank?
|
67
67
|
|
68
68
|
if self.specimen_type.blank?
|