renalware-core 2.0.90 → 2.0.91
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 616e2e276a219102471dd40df9efeeb936aeb6ad3ab8c82077ff39c5c9030552
|
|
4
|
+
data.tar.gz: 3e6fc32511815907c8b53e2b4c206c5c9058ec67f199dd0a2e0e547a80623801
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bb4139f5810ed69d8fe425d0505ea4c343200eb1f861e82f59d6a0d251450e7661f641b9ef5d0be277e2dfd107065273f22c0c0423eaf3960fb5a80c36fb0660
|
|
7
|
+
data.tar.gz: 4189332fa2b1239d551dfc34b2011bce66fc2d99adce8584eb8e24cca131462867eb6c581381af0360c417013dc14ad1e7f54d1f1316dce01ff6fe50d9524a72
|
|
@@ -36,13 +36,13 @@ module Renalware
|
|
|
36
36
|
|
|
37
37
|
def call
|
|
38
38
|
logger.tagged(request_uuid) do
|
|
39
|
-
ActiveRecord::Base.transaction do
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
end
|
|
39
|
+
# ActiveRecord::Base.transaction do
|
|
40
|
+
summary.milliseconds_taken = Benchmark.ms do
|
|
41
|
+
create_patient_xml_files
|
|
42
|
+
encrypt_patient_xml_files
|
|
43
|
+
copy_encrypted_xml_files_into_the_outgoing_folder
|
|
45
44
|
end
|
|
45
|
+
# end
|
|
46
46
|
paths.create_symlink_to_latest_timestamped_folder_so_it_is_easier_to_eyeball
|
|
47
47
|
build_summary
|
|
48
48
|
print_summary
|
|
@@ -111,11 +111,11 @@ module Renalware
|
|
|
111
111
|
# We always send the patients current prescriptions.
|
|
112
112
|
# Because the XSD rejects non-numeric dose amounts, only send prescriptions with a
|
|
113
113
|
# dose_amount of eg 10 or 10.23 or .23
|
|
114
|
-
def
|
|
114
|
+
def prescriptions_with_numeric_dose_amount
|
|
115
115
|
__getobj__
|
|
116
116
|
.prescriptions
|
|
117
117
|
.includes(:termination, :medication_route, :drug)
|
|
118
|
-
.where("dose_amount ~ '^[ ]*(\\d+|\\d
|
|
118
|
+
.where("dose_amount ~ '^[ ]*(\\d+|\\d+\\.\\d+|\\.\\d+)[ ]*$'")
|
|
119
119
|
.order(:prescribed_on)
|
|
120
120
|
end
|
|
121
121
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
xml = builder
|
|
4
4
|
|
|
5
5
|
xml.Medications do
|
|
6
|
-
patient.
|
|
6
|
+
patient.prescriptions_with_numeric_dose_amount.each do |prescription|
|
|
7
7
|
xml.Medication do
|
|
8
8
|
xml.FromTime prescription.prescribed_on.to_datetime
|
|
9
9
|
if prescription.terminated_or_marked_for_termination?
|
data/lib/renalware/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: renalware-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.91
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Airslie
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-07-
|
|
11
|
+
date: 2019-07-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: active_type
|