renalware-core 2.0.129 → 2.0.130
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: da57af35307fc3b61ecd3a63a06fbbc38bcf7b11a50e81b2def0333a5f9cd773
|
4
|
+
data.tar.gz: dce6d2238587ebb06f9b25d2fb4dd90997255eb485af69df9fb0a2ad4ed080a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 319282259cb9f86a3d0bbd343b236401accd2bc70be630e152e309de57199a02680f7c27e4f566ad2eb7c8523c18a31641610f683082965f3e6684991c99b65e
|
7
|
+
data.tar.gz: 89d78ef44fc08a1de7e88ddb24f9e6c1f401c0d1481156d6cd3d967b01b130ba12aaf83006dc2183a12128ba702d37e663743776d4eb533ec3ef183be8788f39
|
@@ -33,9 +33,19 @@ module Renalware
|
|
33
33
|
private
|
34
34
|
|
35
35
|
def sendable_patients
|
36
|
-
Renalware::Patient.where(
|
37
|
-
|
38
|
-
|
36
|
+
Renalware::Patient.where(send_to__where_sql).order(family_name: :asc, given_name: :asc)
|
37
|
+
end
|
38
|
+
|
39
|
+
def send_to__where_sql
|
40
|
+
where = []
|
41
|
+
where << "send_to_rpv = true" if Renalware.config.ukrdc_send_rpv_patients
|
42
|
+
where << "send_to_renalreg = true" if Renalware.config.ukrdc_send_rreg_patients
|
43
|
+
|
44
|
+
if where.empty?
|
45
|
+
raise ArgumentError, "#{self.class.name}.sendable_patients would send all patients!"
|
46
|
+
end
|
47
|
+
|
48
|
+
where.join(" or ")
|
39
49
|
end
|
40
50
|
end
|
41
51
|
end
|
@@ -80,6 +80,13 @@ module Renalware
|
|
80
80
|
# a dump of historical pathology.
|
81
81
|
config_accessor(:ukrdc_pathology_start_date) { ENV["UKRDC_PATHOLOGY_START_DATE"] }
|
82
82
|
|
83
|
+
config_accessor(:ukrdc_send_rpv_patients) {
|
84
|
+
ENV.fetch("UKRDC_SEND_RPV_PATIENTS", "true") == "true"
|
85
|
+
}
|
86
|
+
config_accessor(:ukrdc_send_rreg_patients) {
|
87
|
+
ENV.fetch("UKRDC_SEND_RREG_PATIENTS", "true") == "true"
|
88
|
+
}
|
89
|
+
|
83
90
|
# We override this in some tests as a means of getting wicked_pdf to generate an HTML version
|
84
91
|
# of the PDF so we can examine its content
|
85
92
|
config_accessor(:render_pdf_as_html_for_debugging) { false }
|
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.130
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Airslie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview-component
|