Skip to content

Commit

Permalink
Cms cat 3 (#1883)
Browse files Browse the repository at this point in the history
* Use updated IG for CMS Cat III

* point to git branch

* update rexml for bundle audit

* Cypress Certification is no longer shown in the HTML patient view

* update schematron to the one published on 7/25

* point to gem, not branch of cqm-reports
  • Loading branch information
dczulada committed Jul 30, 2024
1 parent e7a8cd3 commit 4046f3d
Show file tree
Hide file tree
Showing 11 changed files with 2,067 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ gem 'os'

gem 'cqm-models', '~> 4.2.0'
gem 'cqm-parsers', '~> 4.1.1.0'
gem 'cqm-reports', '~> 4.1.0'
gem 'cqm-reports', '~> 4.1.2'
gem 'cqm-validators', '~> 4.0.5'

# # Use faker to generate addresses
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ GEM
typhoeus
uuid (~> 2.3.7)
zip-zip (~> 0.3)
cqm-reports (4.1.1)
cqm-reports (4.1.2)
cqm-models (~> 4.0)
cqm-validators (~> 4.0)
erubis (~> 2.7)
Expand Down Expand Up @@ -608,7 +608,7 @@ DEPENDENCIES
codecov
cqm-models (~> 4.2.0)
cqm-parsers (~> 4.1.1.0)
cqm-reports (~> 4.1.0)
cqm-reports (~> 4.1.2)
cqm-validators (~> 4.0.5)
cucumber-rails
daemons
Expand Down
3 changes: 1 addition & 2 deletions app/models/c2_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ def good_results
false
end
options = { provider: product_test.patients.first.providers.first, submission_program: cat3_submission_program,
start_time: start_date, end_time: end_date, ry2022_submission: product_test.bundle.major_version == '2021',
ry2025_submission: product_test.bundle.major_version == '2024' }
start_time: start_date, end_time: end_date, ry2025_submission: product_test.bundle.major_version == '2024' }
Qrda3.new(product_test.expected_results_with_all_supplemental_codes, product_test.measures, options).render
end

Expand Down
2 changes: 1 addition & 1 deletion app/models/cat3_filter_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def good_results
false
end
options = { provider: product_test.patients.first.providers.first, submission_program: cat3_submission_program,
start_time: start_date, end_time: end_date, ry2022_submission: product_test.bundle.major_version == '2021' }
start_time: start_date, end_time: end_date, ry2025_submission: product_test.bundle.major_version == '2024' }
Qrda3.new(product_test.expected_results_with_all_supplemental_codes, product_test.measures, options).render
end
end
2 changes: 1 addition & 1 deletion app/models/multi_measure_cat3_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def execute(file, user)
def good_results
# Set the Submission Program to MIPS_INDIV
options = { provider: product_test.patients.first.providers.first, submission_program: 'MIPS_INDIV',
start_time: start_date, end_time: end_date, ry2022_submission: product_test.bundle.major_version == '2021' }
start_time: start_date, end_time: end_date, ry2025_submission: product_test.bundle.major_version == '2024' }
Qrda3.new(product_test.expected_results_with_all_supplemental_codes, product_test.measures, options).render
end
end
1 change: 0 additions & 1 deletion config/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ version_config:
code: "854901"
codeSystem: "2.16.840.1.113883.6.88"
CMSQRDA3SchematronValidator_warnings:
- '2025 CMS QRDA III Implementation Guide for Eligible Clinicians is not available'
CMSQRDA1HQRSchematronValidator_warnings:

# Configuration for values to use when randomizing patients in test decks
Expand Down
4 changes: 2 additions & 2 deletions features/step_definitions/record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
end

Then(/^the user sees details$/) do
page.assert_text "Cypress Certification Patient Test Record: #{@patient.first_names} #{@patient.familyName}"
page.assert_text "Patient Test Record: #{@patient.first_names} #{@patient.familyName}"
page.assert_text @patient.gender
@measures = @bundle.measures.where(:_id.in => @patient.calculation_results.map(&:measure_id))
sf_patient = @patient.clone
Expand Down Expand Up @@ -185,7 +185,7 @@
end

Then(/^the user should see vendor patient details$/) do
page.assert_text "Cypress Certification Patient Test Record: #{@patient.first_names} #{@patient.familyName}"
page.assert_text "Patient Test Record: #{@patient.first_names} #{@patient.familyName}"
page.assert_text @patient.gender
page.assert_text 'View Logic Highlighting'
page.first('button', text: 'View Logic Highlighting').click
Expand Down
2 changes: 1 addition & 1 deletion lib/cypress/api_measure_evaluator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ def calcuate_cat3(product_test_id, bundle_id)
false
end
options = { provider: pt.patients.first.providers.first, submission_program: cat3_submission_program,
start_time: pt.start_date, end_time: pt.end_date, ry2022_submission: pt.bundle.major_version == '2021' }
start_time: pt.start_date, end_time: pt.end_date, ry2025_submission: pt.bundle.major_version == '2024' }
xml = Qrda3.new(results, pt.measures, options).render

Patient.find(patient_ids).each(&:destroy)
Expand Down
1,329 changes: 1,329 additions & 0 deletions resources/schematron/2024.0.0/EP/EP_CAT_III.sch

Large diffs are not rendered by default.

728 changes: 728 additions & 0 deletions resources/schematron/2024.0.0/EP/voc.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/integration/api_measure_evaluator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def calculate_cat3(product_test, patients, correlation_id)
false
end
options = { provider: product_test.patients.first.providers.first, submission_program: cat3_submission_program,
start_time: product_test.start_date, end_time: product_test.end_date, ry2022_submission: product_test.bundle.major_version == '2021' }
start_time: product_test.start_date, end_time: product_test.end_date, ry2025_submission: product_test.bundle.major_version == '2024' }
Qrda3.new(results, product_test.measures, options).render
end

Expand Down

0 comments on commit 4046f3d

Please sign in to comment.