lib/validators.rb in cqm-validators-3.1.3 vs lib/validators.rb in cqm-validators-4.0.0

- old
+ new

@@ -13,11 +13,14 @@ module CqmValidators CDA_SDTC_SCHEMA = 'lib/schema/infrastructure/cda/CDA_SDTC.xsd' QRDA_CAT1_R5_SCHEMATRON = 'lib/schematron/qrda/cat_1_r5/HL7 QRDA Category I STU 5.sch' QRDA_CAT1_R51_SCHEMATRON = 'lib/schematron/qrda/cat_1_r5_1/HL7 QRDA Category I STU 5.1.sch' QRDA_CAT1_R52_SCHEMATRON = 'lib/schematron/qrda/cat_1_r5_2/HL7 QRDA Category I STU 5.2.sch' + # TODO, this will need to be replaced with the real schematron + QRDA_CAT1_R53_SCHEMATRON = 'lib/schematron/qrda/cat_1_r5_3/HL7 QRDA Category I STU 5.3.sch' QRDA_CAT3_21SCHEMATRON = 'lib/schematron/qrda/cat_3_r2_1/HL7 QRDA Category III STU 2.1.sch' + QRDA_CAT3_R1_SCHEMATRON = 'lib/schematron/qrda/cat_3_r1/HL7 QRDA Category III Release 1.sch' BASE_DIR = File.expand_path('..', __dir__) class Cat1Measure < MeasureValidator include Singleton @@ -64,14 +67,30 @@ def initialize super('QRDA Cat 1 Validator', File.join(BASE_DIR, QRDA_CAT1_R52_SCHEMATRON)) end end + class Cat1R53 < Schematron::Validator + include Singleton + + def initialize + super('QRDA Cat 1 Validator', File.join(BASE_DIR, QRDA_CAT1_R53_SCHEMATRON)) + end + end + class Cat3R21 < Schematron::Validator include Singleton def initialize super('QRDA Cat 3 Validator', File.join(BASE_DIR, QRDA_CAT3_21SCHEMATRON)) + end + end + + class Cat3R1 < Schematron::Validator + include Singleton + + def initialize + super('QRDA Cat 3 Validator', File.join(BASE_DIR, QRDA_CAT3_R1_SCHEMATRON)) end end class Cat3PerformanceRate < PerformanceRateValidator include Singleton