mahis_emr_api_lab 1.2.1 → 1.2.3

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: 7b96e84037c5b93480e7928f2f4f692544523d3fce2fd1e38fb62fd21ec96c6f
4
- data.tar.gz: d15223a79d53492e0e6304a86966b22848b38ed13f1bf25e27d52ef9cbb70ba5
3
+ metadata.gz: 9ea6fe4728c370e41a0e916119b766d0c9958623cd39c8c96ad5fd1d825af7ef
4
+ data.tar.gz: 64b3cd907fc28f430c1bd203b4226214bafdb4ab6f4a7d3913de6086efcdafb8
5
5
  SHA512:
6
- metadata.gz: a1e085355414c28cd47c3607fb0025aa1509ac0db2dbe6d1b079acaf6b850e11b0403070a35e80a3d804e4c994d5fe7f5cc679081252f2ab487d00cdda92033e
7
- data.tar.gz: 5ff0a9ecb0d2fb8207fdebe7d10c3a6cef2ebc3a245fe9714886881ed2b542898a4388eac4d3b8dbb3821df5c17c2d62cc606e6dbe41df98265e108cf202fd58
6
+ metadata.gz: b404b558028886e53503bcaf55f34befda732e2fb6abd401611f8f453d63c9ec37c0dc02b74ecca14dee1359d072f0ffb738962d2a3ecdecb5122fbd1de5d461
7
+ data.tar.gz: 0e9dfb9a29a79f6dc96dc0956ec2a7872b607874a77fea69bb19cc34e169210ecd4d5a358790b9beb530dd6fd563d52acef2f7a30a70977d9f525fe0019f80b6
@@ -214,7 +214,7 @@ module Lab
214
214
  end
215
215
 
216
216
  next if test.result || test_results['results'].blank?
217
-
217
+
218
218
  result_date = Time.now
219
219
  measures = test_results['results'].map do |indicator, value|
220
220
  measure = find_measure(order, indicator, value)
@@ -60,9 +60,9 @@ module Lab
60
60
  Rails.logger.info("Updating order ##{order_dto[:accession_number]} in LIMS")
61
61
  lims_api.update_order(mapping.lims_id, order_dto)
62
62
  if order_dto['test_results'].nil? || order_dto['test_results'].empty?
63
- mapping.update(pushed_at: Time.now)
63
+ mapping.update(pushed_at: Time.now)
64
64
  else
65
- mapping.update(pushed_at: Time.now, result_push_status: true)
65
+ mapping.update(pushed_at: Time.now, result_push_status: true)
66
66
  end
67
67
  elsif order_dto[:_id] && Lab::LimsOrderMapping.where(lims_id: order_dto[:_id]).exists?
68
68
  # HACK: v1.1.7 had a bug where duplicates of recently created orders where being created by
@@ -56,7 +56,7 @@ module Lab
56
56
  end
57
57
 
58
58
  def process_acknowledgement(results, results_enter_by)
59
- Lab::AcknowledgementService.create_acknowledgement({ order_id: results.order_id, test: results.test.id,
59
+ Lab::AcknowledgementService.create_acknowledgement({ order_id: results.order_id, test: results.test.value_coded,
60
60
  date_received: Time.now,
61
61
  entered_by: results_enter_by })
62
62
  end
@@ -0,0 +1,5 @@
1
+ require 'lab/engine'
2
+
3
+ module Lab
4
+ # Your code goes here...
5
+ end
data/lib/lab/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lab
4
- VERSION = '1.2.1'
4
+ VERSION = '1.2.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mahis_emr_api_lab
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elizabeth Glaser Pediatric Foundation Malawi
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-05 00:00:00.000000000 Z
11
+ date: 2024-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: couchrest
@@ -290,6 +290,7 @@ files:
290
290
  - lib/generators/lab/install/templates/rswag-ui-lab.rb
291
291
  - lib/generators/lab/install/templates/start_worker.rb
292
292
  - lib/generators/lab/install/templates/swagger.yaml
293
+ - lib/his_emr_api_lab.rb
293
294
  - lib/lab/engine.rb
294
295
  - lib/lab/version.rb
295
296
  - lib/logger_multiplexor.rb
@@ -303,12 +304,12 @@ files:
303
304
  - lib/tasks/loaders/reasons_for_test_loader.rb
304
305
  - lib/tasks/loaders/specimens_loader.rb
305
306
  - lib/tasks/loaders/test_result_indicators_loader.rb
306
- homepage: https://github.com/EGPAFMalawiHIS/mahis_emr_api_lab
307
+ homepage: https://github.com/EGPAFMalawiHIS/his_emr_api_lab
307
308
  licenses:
308
309
  - MIT
309
310
  metadata:
310
- source_code_uri: https://github.com/EGPAFMalawiHIS/mahis_emr_api_lab
311
- post_install_message:
311
+ source_code_uri: https://github.com/EGPAFMalawiHIS/his_emr_api_lab
312
+ post_install_message:
312
313
  rdoc_options: []
313
314
  require_paths:
314
315
  - lib
@@ -323,9 +324,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
323
324
  - !ruby/object:Gem::Version
324
325
  version: '0'
325
326
  requirements: []
326
- rubyforge_project:
327
- rubygems_version: 2.7.6
328
- signing_key:
327
+ rubygems_version: 3.4.17
328
+ signing_key:
329
329
  specification_version: 4
330
330
  summary: Lab extension for the HIS-EMR-API
331
331
  test_files: []