Sha256: d34f8cd855054ca09a99b3a322011c85e708a736550def7f60ed5463b49945d9
Contents?: true
Size: 1.37 KB
Versions: 3
Compression:
Stored size: 1.37 KB
Contents
require 'test_helper' class MeasureComplexityTest < ActiveSupport::TestCase setup do @cql_mat_export = File.new File.join('test', 'fixtures', 'BCS_v5_0_Artifacts.zip') end test "Loading a CQL Mat export zip file, with VSAC credentials" do VCR.use_cassette("valid_vsac_response") do dump_db user = User.new user.save measure_details = { 'episode_of_care'=> false } Measures::CqlLoader.extract_measures(@cql_mat_export, user, measure_details, { profile: APP_CONFIG['vsac']['default_profile'] }, get_ticket_granting_ticket).each {|measure| measure.save} assert_equal 1, CqlMeasure.all.count measure = CqlMeasure.all.first assert_equal 10, measure.complexity["variables"].length assert_equal [{"name"=>"Patient", "complexity"=>1}, {"name"=>"SDE Ethnicity", "complexity"=>1}, {"name"=>"SDE Payer", "complexity"=>1}, {"name"=>"SDE Race", "complexity"=>1}, {"name"=>"SDE Sex", "complexity"=>1}, {"name"=>"Initial Pop", "complexity"=>2}, {"name"=>"Num", "complexity"=>1}, {"name"=>"Double Unilateral Mastectomy", "complexity"=>1}, {"name"=>"Denom", "complexity"=>3}, {"name"=>"Denom Excl", "complexity"=>2}], measure.complexity["variables"] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bonnie_bundler-3.0.0 | test/unit/measure_complexity_test.rb |
bonnie_bundler-2.2.5 | test/unit/measure_complexity_test.rb |
bonnie_bundler-2.2.4 | test/unit/measure_complexity_test.rb |