Sha256: 1dfb62ffe24e69b686dc0bbbf2e27f8fcebe85935ace9472bdd09426469b2e19

Contents?: true

Size: 1.81 KB

Versions: 4

Compression:

Stored size: 1.81 KB

Contents

require_relative '../../../must_support_test'

module DaVinciPlanNetTestKit
  module DaVinciPlanNetV110
    class OrgAffilMustSupportTest < Inferno::Test
      include DaVinciPlanNetTestKit::MustSupportTest

      title 'All must support elements are provided in the OrganizationAffiliation resources returned'
      description %(
        Plan Net Responders SHALL be capable of populating all data elements as
        part of the query results as specified by the Plan Net Server Capability
        Statement. This test will look through the OrganizationAffiliation resources
        found previously for the following must support elements:

        * OrganizationAffiliation.active
        * OrganizationAffiliation.code
        * OrganizationAffiliation.endpoint
        * OrganizationAffiliation.healthcareService
        * OrganizationAffiliation.identifier.type
        * OrganizationAffiliation.identifier.value
        * OrganizationAffiliation.location
        * OrganizationAffiliation.network
        * OrganizationAffiliation.organization
        * OrganizationAffiliation.participatingOrganization
        * OrganizationAffiliation.period
        * OrganizationAffiliation.specialty
        * OrganizationAffiliation.telecom
        * OrganizationAffiliation.telecom.rank
        * OrganizationAffiliation.telecom.system
        * OrganizationAffiliation.telecom.value
      )

      id :davinci_plan_net_v110_org_affil_must_support_test

      def resource_type
        'OrganizationAffiliation'
      end

      def self.metadata
        @metadata ||= Generator::GroupMetadata.new(YAML.load_file(File.join(__dir__, 'metadata.yml'), aliases: true))
      end

      def scratch_resources
        scratch[:org_affil_resources] ||= {}
      end

      run do
        perform_must_support_test(all_scratch_resources)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
davinci_plan_net_test_kit-0.10.1 lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_must_support_test.rb
davinci_plan_net_test_kit-0.10.0 lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_must_support_test.rb
davinci_plan_net_test_kit-0.9.1 lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_must_support_test.rb
davinci_plan_net_test_kit-0.9.0 lib/davinci_plan_net_test_kit/generated/v1.1.0/org_affil/org_affil_must_support_test.rb