cqm-validators 2.0.2 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +35 -0
- data/.overcommit.yml +2 -0
- data/.rubocop.yml +16 -10
- data/Gemfile +1 -1
- data/README.md +8 -5
- data/cqm_validators.gemspec +2 -2
- data/lib/cqm_validators/version.rb +1 -1
- data/lib/performance_rate_validator.rb +3 -0
- data/lib/reported_result_extractor.rb +20 -16
- data/lib/schematron/qrda/cat_1_r5_1/HL7 QRDA Category I STU 5.1.sch +306 -313
- data/lib/schematron/qrda/cat_1_r5_1/voc.xml +102 -135
- data/lib/schematron/qrda/cat_1_r5_2/HL7 QRDA Category I STU 5.2.sch +3961 -0
- data/lib/schematron/qrda/cat_1_r5_2/voc.xml +1191 -0
- data/lib/validators.rb +10 -0
- metadata +16 -8
- data/.travis.yml +0 -20
data/lib/validators.rb
CHANGED
@@ -8,11 +8,13 @@ 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'
|
17
|
+
QRDA_CAT1_R52_SCHEMATRON = 'lib/schematron/qrda/cat_1_r5_2/HL7 QRDA Category I STU 5.2.sch'
|
16
18
|
QRDA_CAT3_21SCHEMATRON = 'lib/schematron/qrda/cat_3_r2_1/HL7 QRDA Category III STU 2.1.sch'
|
17
19
|
BASE_DIR = File.expand_path('..', __dir__)
|
18
20
|
|
@@ -56,6 +58,14 @@ module CqmValidators
|
|
56
58
|
end
|
57
59
|
end
|
58
60
|
|
61
|
+
class Cat1R52 < Schematron::Validator
|
62
|
+
include Singleton
|
63
|
+
|
64
|
+
def initialize
|
65
|
+
super('QRDA Cat 1 Validator', File.join(BASE_DIR, QRDA_CAT1_R52_SCHEMATRON))
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
59
69
|
class Cat3R21 < Schematron::Validator
|
60
70
|
include Singleton
|
61
71
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cqm-validators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Laura
|
@@ -9,22 +9,28 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-10-01 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:
|
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:
|
33
|
+
version: 1.13.0
|
28
34
|
- !ruby/object:Gem::Dependency
|
29
35
|
name: bundler
|
30
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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
|
@@ -206,6 +212,8 @@ files:
|
|
206
212
|
- lib/schematron/qrda/cat_1_r5/voc.xml
|
207
213
|
- lib/schematron/qrda/cat_1_r5_1/HL7 QRDA Category I STU 5.1.sch
|
208
214
|
- lib/schematron/qrda/cat_1_r5_1/voc.xml
|
215
|
+
- lib/schematron/qrda/cat_1_r5_2/HL7 QRDA Category I STU 5.2.sch
|
216
|
+
- lib/schematron/qrda/cat_1_r5_2/voc.xml
|
209
217
|
- lib/schematron/qrda/cat_3_r2_1/HL7 QRDA Category III STU 2.1.sch
|
210
218
|
- lib/schematron/qrda/cat_3_r2_1/voc.xml
|
211
219
|
- lib/schematron_validator.rb
|
@@ -224,7 +232,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
224
232
|
requirements:
|
225
233
|
- - ">="
|
226
234
|
- !ruby/object:Gem::Version
|
227
|
-
version: 2.
|
235
|
+
version: 2.4.0
|
228
236
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
229
237
|
requirements:
|
230
238
|
- - ">="
|
data/.travis.yml
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 2.6
|
4
|
-
- 2.5
|
5
|
-
cache:
|
6
|
-
- bundler
|
7
|
-
sudo: required
|
8
|
-
services:
|
9
|
-
- mongodb
|
10
|
-
branches:
|
11
|
-
only:
|
12
|
-
- master
|
13
|
-
- cqm_validators_2_x
|
14
|
-
before_script:
|
15
|
-
- git config --global user.email "travis@travis.ci"
|
16
|
-
- git config --global user.name "Travis CI"
|
17
|
-
script:
|
18
|
-
- bundle exec overcommit --sign
|
19
|
-
- bundle exec overcommit --run
|
20
|
-
- travis_retry bundle exec rake test
|