his_emr_api_lab 2.2.8 → 2.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b76ae3cd0dc64cc451d867759e130040db83f0db23a9f2b465b28dbc4f3d7d82
4
- data.tar.gz: 1e5e3c1c3a64650a2970b7cd5e9c38e18c82c9980888ee30afe0d0a32734ddd1
3
+ metadata.gz: 076c4e3c64155baece8e43499296d703578262b83b09bdb0adada71d3155613b
4
+ data.tar.gz: 492212d77df9cec8c5639b6f097fd1f72180f9846b45b9909e49504eebd30ff1
5
5
  SHA512:
6
- metadata.gz: fed32b5b291dd7cbaae466613d5330314ded442753071ebfe109cfabadb733276ed25a2cf9b4fb905d9cedd1a8df67ca66ff05a7e49f73e438ca679adc78f646
7
- data.tar.gz: c21e45e996abd503796b27c652f09c6f42c9def600813b1a23e1f46faff953716786d1d215e6aace67f367e913eb7c9c00a91a3ede8f39d33035d13902c4e253
6
+ metadata.gz: f96be1635dc75fc9b8207c874ebd34e53dd8f86c650434ac1ea37a5d2a3ae810b4a18c672a3c732cd14de964ff8352f00584231342340e358668f68e11db0497
7
+ data.tar.gz: 868ad9bd444b0afa72713576f5ed557dc3b32cb548fbaa0cab94c5129e2bfa83f7935a08c03876c08dc41f9258af7b886e1e7f0ee80ff728d8e52661fd47d6e8
@@ -52,7 +52,7 @@ module Lab
52
52
  # Status trails are stored as observations with concept 'Lab Order Status'
53
53
  has_many :status_trail_observations,
54
54
  lambda {
55
- unscoped.where(voided: 0, concept_id: Lab::LabOrder.order_status_concept_id).order(obs_datetime: :asc)
55
+ unscoped.where(voided: 0, concept_id: Lab::LabOrder.order_status_concept_id).order(date_created: :asc)
56
56
  },
57
57
  class_name: 'Observation',
58
58
  foreign_key: :order_id
@@ -24,7 +24,7 @@ module Lab
24
24
  # They are linked via obs_group_id (this test obs is the parent)
25
25
  has_many :status_trail_observations,
26
26
  lambda {
27
- unscoped.where(voided: 0, concept_id: Lab::LabTest.test_status_concept_id).order(obs_datetime: :asc)
27
+ unscoped.where(voided: 0, concept_id: Lab::LabTest.test_status_concept_id).order(date_created: :asc)
28
28
  },
29
29
  class_name: 'Observation',
30
30
  foreign_key: :obs_group_id,
@@ -4,7 +4,7 @@ module Lab
4
4
  # This class is used to encode and decode the JWT token
5
5
  module JsonWebTokenService
6
6
  class << self
7
- SECRET_KEY = Rails.application.secrets.secret_key_base.to_s
7
+ SECRET_KEY = Rails.application.secret_key_base.to_s
8
8
 
9
9
  def encode(payload, request_ip, exp = 18.hours.from_now)
10
10
  payload[:exp] = exp.to_i
data/lib/lab/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lab
4
- VERSION = '2.2.8'
4
+ VERSION = '2.3.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: his_emr_api_lab
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.8
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elizabeth Glaser Pediatric Foundation Malawi