Sha256: c8c244a6c39035f9dfe9ad9879466634e5b5e028ade0454895b16c2070667d6f

Contents?: true

Size: 665 Bytes

Versions: 8

Compression:

Stored size: 665 Bytes

Contents

require 'test_helper'

class EHPatientImporterTest < MiniTest::Unit::TestCase
  include QME::DatabaseAccess

  def setup
    get_db['query_cache'].drop()
    get_db['patient_cache'].drop()
    collection_fixtures(get_db(), 'measures')
    collection_fixtures(get_db(), 'records', '_id')
    @workbook = RubyXL::Parser.parse(File.join('test', 'fixtures', 'eh_patient_sheets', 'results_matrix_eh.xlsx'))    
  end

  def test_load
    assert_equal 0, get_db['query_cache'].find().count
    QME::Bundle::EHPatientImporter.load(get_db, @workbook)
    assert_equal 3, get_db['query_cache'].find().count
    assert_equal 12, get_db['patient_cache'].find().count
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
quality-measure-engine-2.5.3 test/unit/qme/bundle/eh_patient_importer_test.rb
quality-measure-engine-2.5.2 test/unit/qme/bundle/eh_patient_importer_test.rb
quality-measure-engine-2.5.1 test/unit/qme/bundle/eh_patient_importer_test.rb
quality-measure-engine-2.5.0 test/unit/qme/bundle/eh_patient_importer_test.rb
quality-measure-engine-2.4.0 test/unit/qme/bundle/eh_patient_importer_test.rb
quality-measure-engine-2.3.0 test/unit/qme/bundle/eh_patient_importer_test.rb
quality-measure-engine-2.2.0 test/unit/qme/bundle/eh_patient_importer_test.rb
quality-measure-engine-2.1.0 test/unit/qme/bundle/eh_patient_importer_test.rb