renalware-core 2.0.90 → 2.0.91

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: 1a92055c00589d505aae488859a5a4e9071a8d49d658c1bd1dcb1d205ad10da1
4
- data.tar.gz: 56b74f8c39ed127a5d958d6f08fc65941a11ea37c4cd62efce78714a9350230f
3
+ metadata.gz: 616e2e276a219102471dd40df9efeeb936aeb6ad3ab8c82077ff39c5c9030552
4
+ data.tar.gz: 3e6fc32511815907c8b53e2b4c206c5c9058ec67f199dd0a2e0e547a80623801
5
5
  SHA512:
6
- metadata.gz: 7b8ddfbdb456d9a15e402755da4de84caf59c0f8fb1c00e71f55d784251d955ddb712e7d3c5af3c9d4e643fd49767c2a9511a6acccd21db77f83d2dd8c28c259
7
- data.tar.gz: 57fbed3713860f482a2c18bcfebbba90d33a8cabad1595b754cf0445cd257755e3b369baba7a0f4c38dc4e3ecdafde9220719eb9ddf88a2639402788616812a2
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
- 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
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 prescriptions
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+\.\\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.prescriptions.each do |prescription|
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?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Renalware
4
- VERSION = "2.0.90"
4
+ VERSION = "2.0.91"
5
5
  end
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.90
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-10 00:00:00.000000000 Z
11
+ date: 2019-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_type