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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 694ae05d26bb089e9ac086b049a61b334918554c
4
- data.tar.gz: 7f64cc2d8ff8e65db4db2344180d09a45aba91c6
3
+ metadata.gz: bc05e6b6b235e7df2ca1c58a743122e801c8c18b
4
+ data.tar.gz: 2abc30cf1f6a90e3942bdd03a7b2dc1b9f7c846b
5
5
  SHA512:
6
- metadata.gz: 76f380e0fd5b1f15c52f77cc7eed5b094e4970c52f7419a8664b9047e18619fad2e78641cbe718bba92f769c539eb841459be4b5525fa4139a27d58d6bd6301e
7
- data.tar.gz: 512ad2242dd67761595af57c02a8d1de61f724029703a105dd63bc1c30536c710b5fca1409385cca56e18e8ffaaf81ef407c7fa050067a710844ee0e845d21fe
6
+ metadata.gz: 470f3f0bffa8cba632548f65a2f782a177e38bc4989880fd112a908ce98337dd940097e0f70ad0f6b79ce0d4711e5ab8f10dde25151e9a047f2dc101dfd2c325
7
+ data.tar.gz: e3fec45152ad2716ec63efcfdcb1c7211c6db528a0cf1d0f3301d03484f0cf7f09766afe9f63f26aca8cb267ea4d6015cb3aee1d63678355bb6b71e4a8b954d3
@@ -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
- $redis.hset REQUISITIONS_HASH, tube_barcode, JSON.generate(tests[tube_barcode])
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
@@ -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?
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.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bhargav Raut