openmrs_data_sanitizer 1.0.5 → 1.0.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45352f6a9ff782926a46e2e93973f3a7873b8316bf482481d09c1543de7b958c
|
4
|
+
data.tar.gz: ef10ff0800b3895cd22de64c0171255d3870888b15fb302d41f4c0fff5acc89d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
# ===================================
|