his_emr_api_lab 2.2.6 → 2.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/jobs/lab/process_lab_result_job.rb +2 -1
- data/app/services/lab/results_service.rb +1 -1
- data/lib/lab/version.rb +1 -1
- 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: a671f82699f04b95546b08da98d2147c9eef15dd2c7f5fdc50a33dba81b6a1da
|
|
4
|
+
data.tar.gz: b7cd52104803e486f296e76048025069b762dd8c625e9ededb43c88bfac6206d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 04f55f8f9ad2b0f0972f158512c2c390bf1c42c1112c2fe59a2c45c72560093faca5d74bb91dc95eb67dd014324a53c124012719f0bde97c4359ec39774776b7
|
|
7
|
+
data.tar.gz: 24062f8f8ac5e44c657015019c4fb4b796129c889b58ce3ca5815df11df84a3c46e2a30473c6301b77095602015cec1b7e21d88a1cafb141c7af6f8b6faec7c4
|
|
@@ -5,7 +5,8 @@ module Lab
|
|
|
5
5
|
# Push an order to LIMS.
|
|
6
6
|
class ProcessLabResultJob < ApplicationJob
|
|
7
7
|
queue_as :default
|
|
8
|
-
def perform(
|
|
8
|
+
def perform(data)
|
|
9
|
+
results_obs_id, serializer, result_enter_by = data.values_at(:results_obs_id, :serializer, :result_enter_by)
|
|
9
10
|
Rails.logger.info("Lab::ProcessLabResultJob: Processing result completion for #{serializer}")
|
|
10
11
|
# set location context for the job based on the order's encounter to ensure proper context for any operations performed in the job
|
|
11
12
|
results_obs = Lab::LabResult.unscoped.find(results_obs_id)
|
|
@@ -43,7 +43,7 @@ module Lab
|
|
|
43
43
|
ActiveRecord::Base.connection.commit_db_transaction
|
|
44
44
|
|
|
45
45
|
# Execute job synchronously
|
|
46
|
-
ProcessLabResultJob.perform_now(results_obs.id, serializer
|
|
46
|
+
ProcessLabResultJob.perform_now({ results_obs_id: results_obs.id, serializer:, result_enter_by: })
|
|
47
47
|
|
|
48
48
|
Rails.logger.info("Lab::ResultsService: Result created for test #{test_id} #{serializer}")
|
|
49
49
|
serializer
|
data/lib/lab/version.rb
CHANGED