cqm-validators 3.0.0 → 4.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.
data/lib/validators.rb CHANGED
@@ -8,13 +8,17 @@ require_relative 'measure_validator'
8
8
  require_relative 'data_validator'
9
9
  require_relative 'performance_rate_validator'
10
10
  require_relative 'qrda_qdm_template_validator'
11
+ require 'singleton'
11
12
 
12
13
  module CqmValidators
13
14
  CDA_SDTC_SCHEMA = 'lib/schema/infrastructure/cda/CDA_SDTC.xsd'
14
15
  QRDA_CAT1_R5_SCHEMATRON = 'lib/schematron/qrda/cat_1_r5/HL7 QRDA Category I STU 5.sch'
15
16
  QRDA_CAT1_R51_SCHEMATRON = 'lib/schematron/qrda/cat_1_r5_1/HL7 QRDA Category I STU 5.1.sch'
16
17
  QRDA_CAT1_R52_SCHEMATRON = 'lib/schematron/qrda/cat_1_r5_2/HL7 QRDA Category I STU 5.2.sch'
18
+ # TODO, this will need to be replaced with the real schematron
19
+ QRDA_CAT1_R53_SCHEMATRON = 'lib/schematron/qrda/cat_1_r5_3/HL7 QRDA Category I STU 5.3.sch'
17
20
  QRDA_CAT3_21SCHEMATRON = 'lib/schematron/qrda/cat_3_r2_1/HL7 QRDA Category III STU 2.1.sch'
21
+ QRDA_CAT3_R1_SCHEMATRON = 'lib/schematron/qrda/cat_3_r1/HL7 QRDA Category III Release 1.sch'
18
22
  BASE_DIR = File.expand_path('..', __dir__)
19
23
 
20
24
  class Cat1Measure < MeasureValidator
@@ -65,6 +69,14 @@ module CqmValidators
65
69
  end
66
70
  end
67
71
 
72
+ class Cat1R53 < Schematron::Validator
73
+ include Singleton
74
+
75
+ def initialize
76
+ super('QRDA Cat 1 Validator', File.join(BASE_DIR, QRDA_CAT1_R53_SCHEMATRON))
77
+ end
78
+ end
79
+
68
80
  class Cat3R21 < Schematron::Validator
69
81
  include Singleton
70
82
 
@@ -73,6 +85,14 @@ module CqmValidators
73
85
  end
74
86
  end
75
87
 
88
+ class Cat3R1 < Schematron::Validator
89
+ include Singleton
90
+
91
+ def initialize
92
+ super('QRDA Cat 3 Validator', File.join(BASE_DIR, QRDA_CAT3_R1_SCHEMATRON))
93
+ end
94
+ end
95
+
76
96
  class Cat3PerformanceRate < PerformanceRateValidator
77
97
  include Singleton
78
98
  end
metadata CHANGED
@@ -1,30 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cqm-validators
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laura
8
8
  - Michael O'Keefe
9
- autorequire:
9
+ autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-06-30 00:00:00.000000000 Z
12
+ date: 2021-12-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: 1.8.5
21
+ - - "<"
19
22
  - !ruby/object:Gem::Version
20
- version: '1.10'
23
+ version: 1.13.0
21
24
  type: :runtime
22
25
  prerelease: false
23
26
  version_requirements: !ruby/object:Gem::Requirement
24
27
  requirements:
25
- - - "~>"
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ version: 1.8.5
31
+ - - "<"
26
32
  - !ruby/object:Gem::Version
27
- version: '1.10'
33
+ version: 1.13.0
28
34
  - !ruby/object:Gem::Dependency
29
35
  name: bundler
30
36
  requirement: !ruby/object:Gem::Requirement
@@ -113,30 +119,30 @@ dependencies:
113
119
  name: rake
114
120
  requirement: !ruby/object:Gem::Requirement
115
121
  requirements:
116
- - - "~>"
122
+ - - ">="
117
123
  - !ruby/object:Gem::Version
118
- version: '10.0'
124
+ version: 12.3.3
119
125
  type: :development
120
126
  prerelease: false
121
127
  version_requirements: !ruby/object:Gem::Requirement
122
128
  requirements:
123
- - - "~>"
129
+ - - ">="
124
130
  - !ruby/object:Gem::Version
125
- version: '10.0'
131
+ version: 12.3.3
126
132
  - !ruby/object:Gem::Dependency
127
133
  name: rubocop
128
134
  requirement: !ruby/object:Gem::Requirement
129
135
  requirements:
130
136
  - - "~>"
131
137
  - !ruby/object:Gem::Version
132
- version: '0.60'
138
+ version: '0.93'
133
139
  type: :development
134
140
  prerelease: false
135
141
  version_requirements: !ruby/object:Gem::Requirement
136
142
  requirements:
137
143
  - - "~>"
138
144
  - !ruby/object:Gem::Version
139
- version: '0.60'
145
+ version: '0.93'
140
146
  description: new cqm validator library
141
147
  email:
142
148
  - laclark@mitre.org
@@ -146,11 +152,11 @@ extensions: []
146
152
  extra_rdoc_files: []
147
153
  files:
148
154
  - ".github/PULL_REQUEST_TEMPLATE.md"
155
+ - ".github/workflows/ci.yml"
149
156
  - ".gitignore"
150
157
  - ".overcommit.yml"
151
158
  - ".rubocop.yml"
152
159
  - ".simplecov"
153
- - ".travis.yml"
154
160
  - Gemfile
155
161
  - LICENSE.txt
156
162
  - QRDA_Schematron_License.txt
@@ -208,6 +214,10 @@ files:
208
214
  - lib/schematron/qrda/cat_1_r5_1/voc.xml
209
215
  - lib/schematron/qrda/cat_1_r5_2/HL7 QRDA Category I STU 5.2.sch
210
216
  - lib/schematron/qrda/cat_1_r5_2/voc.xml
217
+ - lib/schematron/qrda/cat_1_r5_3/HL7 QRDA Category I STU 5.3.sch
218
+ - lib/schematron/qrda/cat_1_r5_3/voc.xml
219
+ - lib/schematron/qrda/cat_3_r1/HL7 QRDA Category III Release 1.sch
220
+ - lib/schematron/qrda/cat_3_r1/voc.xml
211
221
  - lib/schematron/qrda/cat_3_r2_1/HL7 QRDA Category III STU 2.1.sch
212
222
  - lib/schematron/qrda/cat_3_r2_1/voc.xml
213
223
  - lib/schematron_validator.rb
@@ -218,7 +228,7 @@ homepage: https://github.com/projecttacoma/cqm-validators
218
228
  licenses:
219
229
  - Apache-2.0
220
230
  metadata: {}
221
- post_install_message:
231
+ post_install_message:
222
232
  rdoc_options: []
223
233
  require_paths:
224
234
  - lib
@@ -226,16 +236,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
226
236
  requirements:
227
237
  - - ">="
228
238
  - !ruby/object:Gem::Version
229
- version: '0'
239
+ version: 2.4.0
230
240
  required_rubygems_version: !ruby/object:Gem::Requirement
231
241
  requirements:
232
242
  - - ">="
233
243
  - !ruby/object:Gem::Version
234
244
  version: '0'
235
245
  requirements: []
236
- rubyforge_project:
237
- rubygems_version: 2.6.14
238
- signing_key:
246
+ rubygems_version: 3.0.2
247
+ signing_key:
239
248
  specification_version: 4
240
249
  summary: new cqm validator library
241
250
  test_files: []
data/.travis.yml DELETED
@@ -1,22 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.6
4
- - 2.5
5
- - 2.4
6
- - 2.3
7
- cache:
8
- - bundler
9
- sudo: required
10
- services:
11
- - mongodb
12
- branches:
13
- only:
14
- - master
15
- - cqm_validators_2_x
16
- before_script:
17
- - git config --global user.email "travis@travis.ci"
18
- - git config --global user.name "Travis CI"
19
- script:
20
- - bundle exec overcommit --sign
21
- - bundle exec overcommit --run
22
- - travis_retry bundle exec rake test