openmrs_data_sanitizer 1.0.5 → 1.0.6

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: 0572be4e6295a0c0a91bba68ee8b320e75992c1c287a7e0354bcb4a79212db4d
4
- data.tar.gz: b4f664ce9b017c2218588c9a38c253fe71eb33349832914a7d4e9526d858e12a
3
+ metadata.gz: 45352f6a9ff782926a46e2e93973f3a7873b8316bf482481d09c1543de7b958c
4
+ data.tar.gz: ef10ff0800b3895cd22de64c0171255d3870888b15fb302d41f4c0fff5acc89d
5
5
  SHA512:
6
- metadata.gz: c9d1a3ecf4e51cc363bba2c9bf493139c276886dfea7807349e4c1402dfe60d83c0a1eeb2892785a0faf8ff6ce59b6e2f07627da1cd30b9f8aced0348671b228
7
- data.tar.gz: '0972c1e41fe4638adda99146a64f2c4a725f3409697ef6414d386b7dfc5ec56376a60a47c74100c944d2b92faa11d4f946b6112b888f71816b530c4f9d002253'
6
+ metadata.gz: a931566411fae2f5cf78b5e59757a9ae7c2610c6916d67610623a8906cd1865c94b3c2bca2adda5ca9737e601a4d983e1a36349ad305ce7beb4a186905d22e33
7
+ data.tar.gz: 9748ee31837097d5f9d4c1210f79b569f678dc78feb7a841c7cac65b5a9332e03cb12f2805727d9b89c7c273f2f38d464253edc9e6fd3785029f1cc433d41fa4
@@ -110,10 +110,10 @@ module OpenmrsDataSanitizer
110
110
  end
111
111
 
112
112
  def write_data_to_files
113
- write_to_file(Thread.current[:patients_json].to_json, 'patients')
114
- write_to_file(Thread.current[:fhir_encounters].to_json, 'visits')
115
- write_to_file(Thread.current[:fhir_observations].to_json, 'observations')
116
- write_to_file(Thread.current[:fhir_medication_dispense].to_json, 'medications')
113
+ write_to_file(Thread.current[:patients_json].to_json, 'patients') unless Thread.current[:patients_json].blank?
114
+ write_to_file(Thread.current[:fhir_encounters].to_json, 'visits') unless Thread.current[:fhir_encounters].blank?
115
+ write_to_file(Thread.current[:fhir_observations].to_json, 'observations') unless Thread.current[:fhir_observations].blank?
116
+ write_to_file(Thread.current[:fhir_medication_dispense].to_json, 'medications') unless Thread.current[:fhir_medication_dispense].blank?
117
117
  end
118
118
 
119
119
  # ===================================
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OpenmrsDataSanitizer
4
- VERSION = '1.0.5'
4
+ VERSION = '1.0.6'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openmrs_data_sanitizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mwatha