canql 5.2.0 → 5.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/code_safety.yml +8 -8
- data/lib/canql/grammars/patient.treetop +6 -1
- data/lib/canql/nodes/patient.rb +5 -5
- data/lib/canql/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae3a56f2f18e07ba44242415dba078f1a95b7b23f151964a7d4609df6fd1de6a
|
4
|
+
data.tar.gz: 4b3ed23c5649700c5ad282fa59bc08f5b74b1e57cff818ed776bfc4ce3c1b178
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb9f4a4566ac1489921fa2e154abf67fdda5453f19572331e06829a7195204dd81376221ae7b44cce4fc4e6f16b817d40cb3259aa3e91626094432412f09e6f5
|
7
|
+
data.tar.gz: 8f4151afa3555cbfdcd168131c893924c1edadeb5fb8d017a3ea1725d65f006c9040c68e9438285bbf76fa7f4382d64d2326f11abeb013e61877b77b90102fa0
|
data/CHANGELOG.md
CHANGED
data/code_safety.yml
CHANGED
@@ -27,7 +27,7 @@ file safety:
|
|
27
27
|
CHANGELOG.md:
|
28
28
|
comments:
|
29
29
|
reviewed_by: ollietulloch
|
30
|
-
safe_revision:
|
30
|
+
safe_revision: 64a8f1007fe57afd5bd886e6b02b17b7a6e874c4
|
31
31
|
CODE_OF_CONDUCT.md:
|
32
32
|
comments:
|
33
33
|
reviewed_by: drewthorp
|
@@ -107,8 +107,8 @@ file safety:
|
|
107
107
|
lib/canql/grammars/patient.treetop:
|
108
108
|
comments: It is a known issue that this is potentially susceptible to certain
|
109
109
|
kinds of DoS attack
|
110
|
-
reviewed_by:
|
111
|
-
safe_revision:
|
110
|
+
reviewed_by: ollietulloch
|
111
|
+
safe_revision: 481194575c30b48987f957a9cc5535d604ea0117
|
112
112
|
lib/canql/grammars/perinatal_hospital.treetop:
|
113
113
|
comments:
|
114
114
|
reviewed_by: josh.pencheon
|
@@ -165,8 +165,8 @@ file safety:
|
|
165
165
|
safe_revision: 361dea5dc6d64bdb7b03434dd2878f8c3b128c95
|
166
166
|
lib/canql/nodes/patient.rb:
|
167
167
|
comments:
|
168
|
-
reviewed_by:
|
169
|
-
safe_revision:
|
168
|
+
reviewed_by: ollietulloch
|
169
|
+
safe_revision: 481194575c30b48987f957a9cc5535d604ea0117
|
170
170
|
lib/canql/nodes/perinatal_hospital.rb:
|
171
171
|
comments:
|
172
172
|
reviewed_by: josh.pencheon
|
@@ -194,7 +194,7 @@ file safety:
|
|
194
194
|
lib/canql/version.rb:
|
195
195
|
comments:
|
196
196
|
reviewed_by: ollietulloch
|
197
|
-
safe_revision:
|
197
|
+
safe_revision: 64a8f1007fe57afd5bd886e6b02b17b7a6e874c4
|
198
198
|
test/anomaly_test_helper.rb:
|
199
199
|
comments:
|
200
200
|
reviewed_by: ollietulloch
|
@@ -249,8 +249,8 @@ file safety:
|
|
249
249
|
safe_revision: 511e4238f83eb5b32839c25d94ec2a59145539bb
|
250
250
|
test/nodes/patient_test.rb:
|
251
251
|
comments:
|
252
|
-
reviewed_by:
|
253
|
-
safe_revision:
|
252
|
+
reviewed_by: ollietulloch
|
253
|
+
safe_revision: 481194575c30b48987f957a9cc5535d604ea0117
|
254
254
|
test/nodes/perinatal_hospital_test.rb:
|
255
255
|
comments:
|
256
256
|
reviewed_by: josh.pencheon
|
@@ -13,7 +13,12 @@ module Canql
|
|
13
13
|
end
|
14
14
|
|
15
15
|
rule category
|
16
|
-
space category:('eurocat amber and green' /
|
16
|
+
space category:('eurocat amber and green' /
|
17
|
+
'eurocat red and amber' / 'eurocat red' / 'eurocat amber' /
|
18
|
+
'eurocat green' / 'eurocat' /
|
19
|
+
'fasp red and amber' / 'fasp amber and red' / 'fasp red' /
|
20
|
+
'fasp amber' / 'fasp green' / 'fasp excluded'
|
21
|
+
) word_break <Nodes::Patient::CategoryNode>
|
17
22
|
end
|
18
23
|
|
19
24
|
rule expected_keyword
|
data/lib/canql/nodes/patient.rb
CHANGED
@@ -27,11 +27,11 @@ module Canql #:nodoc: all
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def clean_category
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
30
|
+
if category.text_value.start_with?('eurocat ') || category.text_value.start_with?('fasp ')
|
31
|
+
filter_value = category.text_value.gsub(/( )/, '_').downcase.gsub(/(_and_)/, '_')
|
32
|
+
filter_value = 'fasp_red_amber' if filter_value == 'fasp_amber_red'
|
33
|
+
return filter_value
|
34
|
+
end
|
35
35
|
|
36
36
|
category.text_value
|
37
37
|
end
|
data/lib/canql/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: canql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHE NDR Development Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chronic
|