Skip to content

Commit

Permalink
update for rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
dczulada committed Sep 7, 2023
1 parent ccb76b9 commit 1a5a358
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions lib/validators/core_clinical_data_element_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ def validate(file, options = {})
return unless ccde_measure_ids.intersect?(@test_measure_ids)

doc = get_document(file)
case options.task._type
when 'CMSProgramTask'
verify_patient_ids(doc, options)
when 'C3Cat1Task'
verify_patient_ids(doc, options)
end
verify_patient_ids(doc, options) if %w[CMSProgramTask C3Cat1Task].include?(options.task._type)
verify_encounters(doc, options)
end

Expand Down
2 changes: 1 addition & 1 deletion test/unit/lib/validators/program_validator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class ProgramValidatorTest < ActiveSupport::TestCase
include ::Validators

def setup
@validator = Validators::ProgramValidator.new('HQR_PI')
@validator = Validators::ProgramValidator.new(['HQR_PI'])
file = File.new(Rails.root.join('test', 'fixtures', 'qrda', 'cat_I', 'sample_patient_good.xml')).read
@document = get_document(file)
end
Expand Down

0 comments on commit 1a5a358

Please sign in to comment.