canql 6.1.0 → 7.0.0

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: 3ddc1179c0b2c2afc78722708a71b75b15392bf8b98d3372dc175742d13ef8ee
4
- data.tar.gz: 31a72fbf6d0fa1e456319f5adb9bfba0786382c1aec62daa9508aecab099537c
3
+ metadata.gz: 2ad8b695027b32e574bb3df68d025413a16867dae1df05d66e60bf015048ffa2
4
+ data.tar.gz: 71e41326f9f3d13ad273e63e4583246d788a7d1df675b6b326430c019de3adc0
5
5
  SHA512:
6
- metadata.gz: 624e30b20147a430f98c76b63ed20a4e7bc7876d403eaadaac4763adbac7895cb8a76b4cf7b17060625c2990da20b773e25e5e575754ca720da6e64af3c7890d
7
- data.tar.gz: 752298cee16890d65abc474c7e3dfcb67c011815d3689216ac0f3bdaf981a394de23d4c968f72762dc021883e8e5c29634f7afaab03df24d2ea24df95429bcfd
6
+ metadata.gz: cb06edc70e67d52f5468f99097bd154b8d3bc20382311365aae9b14fdf0bb09528dfa94875f9c0d58ecb21a8e1399b3d9a32664bcea4f2d59af3ddae3edc2b2a
7
+ data.tar.gz: 1d644814b40d2401cda0e6650b9c15d7f0af63b2800350556eb1d6072f26dd6a508f3973702e8f8725f757f53ea1b1121320409720a2d48159471b04520d3f27
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [Unreleased]
2
+ ## 7.0.0 / 2026-07-31
3
+ ### Fixed
4
+ * Support Ruby 4.0, Rails 8.1. Drop support for Ruby 3.2
5
+ ### Added
6
+ * Added support for antenatal and postnatal batch types
7
+
1
8
  ## 6.1.0 / 2026-03-24
2
9
  ### Changed
3
10
  * Added NCRS_CHECK and NCRS_CHECKED actions to action filter
data/SECURITY.md ADDED
@@ -0,0 +1,35 @@
1
+ # Security
2
+
3
+ NHS England takes security and the protection of private data extremely seriously. If you believe you have found a vulnerability or other issue which has compromised or could compromise the security of any of our systems and/or private data managed by our systems, please do not hesitate to contact us using the methods outlined below.
4
+
5
+ ## Table of Contents
6
+
7
+ - [Security](#security)
8
+ - [Table of Contents](#table-of-contents)
9
+ - [Reporting a vulnerability](#reporting-a-vulnerability)
10
+ - [Email](#email)
11
+ - [NCSC](#ncsc)
12
+ - [General Security Enquiries](#general-security-enquiries)
13
+
14
+ ## Reporting a vulnerability
15
+
16
+ Please note, email is our preferred method of receiving reports.
17
+
18
+ ### Email
19
+
20
+ If you wish to notify us of a vulnerability via email, please include detailed information on the nature of the vulnerability and any steps required to reproduce it.
21
+
22
+ You can reach us at:
23
+
24
+ - [Brian.Shand@nhs.net](mailto:Brian.Shand@nhs.net)
25
+ - [cybersecurity@nhs.net](mailto:cybersecurity@nhs.net)
26
+
27
+ ### NCSC
28
+
29
+ You can send your report to the National Cyber Security Centre, who will assess your report and pass it on to NHS England if necessary.
30
+
31
+ You can report vulnerabilities here: [https://www.ncsc.gov.uk/information/vulnerability-reporting](https://www.ncsc.gov.uk/information/vulnerability-reporting)
32
+
33
+ ## General Security Enquiries
34
+
35
+ If you have general enquiries regarding our cybersecurity, please reach out to us at [cybersecurity@nhs.net](mailto:cybersecurity@nhs.net)
@@ -2,7 +2,7 @@ module Canql
2
2
  grammar BatchTypes
3
3
  rule batch_type
4
4
  (paediatric / enote2 / badger / ucyto / nipt / rddeath /
5
- umum / ca_death / biochem / hes / uss) <Nodes::BatchTypeNode>
5
+ umum / ca_death / biochem / hes / uss / antenatal / postnatal) <Nodes::BatchTypeNode>
6
6
  end
7
7
 
8
8
  rule paediatric
@@ -48,5 +48,13 @@ module Canql
48
48
  rule ca_death
49
49
  ('cadeath' / 'ca death' / 'congenital anomaly death') <Nodes::CADeathNode>
50
50
  end
51
+
52
+ rule antenatal
53
+ 'antenatal' <Nodes::AntenatalNode>
54
+ end
55
+
56
+ rule postnatal
57
+ 'postnatal' <Nodes::PostnatalNode>
58
+ end
51
59
  end
52
60
  end
@@ -74,5 +74,17 @@ module Canql # :nodoc: all
74
74
  'ca_death'
75
75
  end
76
76
  end
77
+
78
+ module AntenatalNode
79
+ def normalise
80
+ 'antenatal'
81
+ end
82
+ end
83
+
84
+ module PostnatalNode
85
+ def normalise
86
+ 'postnatal'
87
+ end
88
+ end
77
89
  end
78
90
  end
data/lib/canql/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  # This stores the current version of the Canql gem
4
4
  module Canql
5
- VERSION = '6.1.0'
5
+ VERSION = '7.0.0'
6
6
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canql
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.0
4
+ version: 7.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - NHSD NDRS Development Team
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2026-03-27 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: chronic
@@ -53,7 +52,7 @@ dependencies:
53
52
  version: '7.1'
54
53
  - - "<"
55
54
  - !ruby/object:Gem::Version
56
- version: '8.1'
55
+ version: '8.2'
57
56
  type: :runtime
58
57
  prerelease: false
59
58
  version_requirements: !ruby/object:Gem::Requirement
@@ -63,7 +62,7 @@ dependencies:
63
62
  version: '7.1'
64
63
  - - "<"
65
64
  - !ruby/object:Gem::Version
66
- version: '8.1'
65
+ version: '8.2'
67
66
  - !ruby/object:Gem::Dependency
68
67
  name: treetop
69
68
  requirement: !ruby/object:Gem::Requirement
@@ -95,6 +94,7 @@ files:
95
94
  - LICENSE.txt
96
95
  - README.md
97
96
  - Rakefile
97
+ - SECURITY.md
98
98
  - lib/canql.rb
99
99
  - lib/canql/constants.rb
100
100
  - lib/canql/grammars.rb
@@ -134,7 +134,6 @@ homepage: https://github.com/NHSDigital/canql
134
134
  licenses:
135
135
  - MIT
136
136
  metadata: {}
137
- post_install_message:
138
137
  rdoc_options: []
139
138
  require_paths:
140
139
  - lib
@@ -142,15 +141,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
142
141
  requirements:
143
142
  - - ">="
144
143
  - !ruby/object:Gem::Version
145
- version: '3.2'
144
+ version: '3.3'
146
145
  required_rubygems_version: !ruby/object:Gem::Requirement
147
146
  requirements:
148
147
  - - ">="
149
148
  - !ruby/object:Gem::Version
150
149
  version: '0'
151
150
  requirements: []
152
- rubygems_version: 3.5.22
153
- signing_key:
151
+ rubygems_version: 4.0.17
154
152
  specification_version: 4
155
153
  summary: Congenital Anomaly Natural Query Language
156
154
  test_files: []