his_emr_api_lab 2.1.8 → 2.1.8.1

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: 44e72036503453b83d8f3cfcdff281e1085e461c476a8f793e24a3d72f12f223
4
- data.tar.gz: 0100d95046a1a81db0fc8b7eace3e9fa02dc2f9be6f396f073954bbfa5578993
3
+ metadata.gz: eb5f40ca6283e18cfb748d55a7b4f057fa053cc8e35bf156ae31c9288a7ff74d
4
+ data.tar.gz: 254b36fbef7f90fb9be5f1a0b889edb7074cc594f68b9f68814656cbea48a622
5
5
  SHA512:
6
- metadata.gz: 25cb61dabafa209680d649747e35a06e19ed3685c7730bc0c539a35357e9e9529794ed180714c626125ec6ab8104b107e90e6ad0ab0cbebfcaee2ae728ea7815
7
- data.tar.gz: 0da64fc5aa9647ffcc3252ae597b0492bacb3b77ec97064c4433f72bcd122431e04114323f7f13dc602faa0ccdc7c2f836b098a1090e9a56fa8cae774503101f
6
+ metadata.gz: aad01fe0ea7a1f450e74f20e4533bf64a006f21e8c7bbb2e7c3c9e20fb87ca2c2f7917c026dbea89eac2a476f3a8da1430d9b396089c7e57197d4bb8ff3e8c8c
7
+ data.tar.gz: 546ef27857fdc95604248e9559d54f37c0dbcc9b61e5965b38089540619649317f3e8a49ad8bf6ee5cd3cbde35d27496bda99882eacd568011a8745db2899f58
@@ -10,7 +10,7 @@ module Lab
10
10
  target_lab = target_lab&.value_text || order.target_lab&.value_text || Location.current_health_center&.name
11
11
 
12
12
  encounter = Encounter.find_by_encounter_id(order.encounter_id)
13
- program = Program.find_by_program_id(encounter.program_id)
13
+ program = Program.find_by_program_id(encounter&.program_id)
14
14
 
15
15
  ActiveSupport::HashWithIndifferentAccess.new(
16
16
  {
@@ -19,8 +19,8 @@ module Lab
19
19
  order_id: order.order_id, # Deprecated: Link to :id
20
20
  encounter_id: order.encounter_id,
21
21
  order_date: order.start_date,
22
- location_id: encounter.location_id,
23
- program_id: encounter.program_id,
22
+ location_id: encounter&.location_id,
23
+ program_id: encounter&.program_id,
24
24
  program_name: program&.name,
25
25
  patient_id: order.patient_id,
26
26
  accession_number: order.accession_number,
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.1.8'
4
+ VERSION = '2.1.8.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: his_emr_api_lab
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.8
4
+ version: 2.1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elizabeth Glaser Pediatric Foundation Malawi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-02-27 00:00:00.000000000 Z
11
+ date: 2026-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: couchrest