Sha256: 7cd28cdf0a8ac81c0044a23baa091be6c00fe681c3ca3f9b19e68f92970276b0

Contents?: true

Size: 1.48 KB

Versions: 5

Compression:

Stored size: 1.48 KB

Contents

module ONCCertificationG10TestKit
  module G10Options
    US_CORE_3 = 'us_core_3'.freeze
    US_CORE_4 = 'us_core_4'.freeze
    US_CORE_5 = 'us_core_5'.freeze
    US_CORE_6 = 'us_core_6'.freeze

    BULK_DATA_1 = 'multi_patient_api_stu1'.freeze
    BULK_DATA_2 = 'multi_patient_api_stu2'.freeze

    SMART_1 = 'smart_app_launch_1'.freeze
    SMART_2 = 'smart_app_launch_2'.freeze

    US_CORE_3_REQUIREMENT = { us_core_version: US_CORE_3 }.freeze
    US_CORE_4_REQUIREMENT = { us_core_version: US_CORE_4 }.freeze
    US_CORE_5_REQUIREMENT = { us_core_version: US_CORE_5 }.freeze
    US_CORE_6_REQUIREMENT = { us_core_version: US_CORE_6 }.freeze

    BULK_DATA_1_REQUIREMENT = { multi_patient_version: BULK_DATA_1 }.freeze
    BULK_DATA_2_REQUIREMENT = { multi_patient_version: BULK_DATA_2 }.freeze

    SMART_1_REQUIREMENT = { smart_app_launch_version: SMART_1 }.freeze
    SMART_2_REQUIREMENT = { smart_app_launch_version: SMART_2 }.freeze

    def us_core_version
      suite_options[:us_core_version]
    end

    def using_us_core_3?
      us_core_version == US_CORE_3
    end

    def using_us_core_5?
      us_core_version == US_CORE_5
    end

    def using_us_core_6?
      us_core_version == US_CORE_6
    end

    def versioned_us_core_module
      case us_core_version
      when US_CORE_6
        USCoreTestKit::USCoreV610
      when US_CORE_5
        USCoreTestKit::USCoreV501
      when US_CORE_4
        USCoreTestKit::USCoreV400
      else
        USCoreTestKit::USCoreV311
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
onc_certification_g10_test_kit-5.2.0 lib/onc_certification_g10_test_kit/g10_options.rb
onc_certification_g10_test_kit-5.1.0 lib/onc_certification_g10_test_kit/g10_options.rb
onc_certification_g10_test_kit-5.0.0 lib/onc_certification_g10_test_kit/g10_options.rb
onc_certification_g10_test_kit-4.1.0 lib/onc_certification_g10_test_kit/g10_options.rb
onc_certification_g10_test_kit-4.0.0 lib/onc_certification_g10_test_kit/g10_options.rb