Sha256: 372c9305f0cc105943b8f3af6e2750cc04065abb9f95f75773a7340e1718c897

Contents?: true

Size: 1.92 KB

Versions: 4

Compression:

Stored size: 1.92 KB

Contents

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

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

      title 'All must support elements are provided in the Practitioner 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 Practitioner resources
        found previously for the following must support elements:

        * Practitioner.active
        * Practitioner.address
        * Practitioner.address.extension:geolocation
        * Practitioner.communication
        * Practitioner.communication.extension:communication-proficiency
        * Practitioner.identifier
        * Practitioner.identifier.system
        * Practitioner.identifier.type
        * Practitioner.identifier.value
        * Practitioner.identifier:NPI
        * Practitioner.name
        * Practitioner.name.family
        * Practitioner.name.given
        * Practitioner.name.text
        * Practitioner.qualification
        * Practitioner.qualification.code
        * Practitioner.qualification.extension:practitioner-qualification
        * Practitioner.qualification.identifier
        * Practitioner.qualification.issuer
        * Practitioner.qualification.period
        * Practitioner.telecom
      )

      id :davinci_plan_net_v110_practitioner_must_support_test

      def resource_type
        'Practitioner'
      end

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

      def scratch_resources
        scratch[:practitioner_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/practitioner/practitioner_must_support_test.rb
davinci_plan_net_test_kit-0.10.0 lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner/practitioner_must_support_test.rb
davinci_plan_net_test_kit-0.9.1 lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner/practitioner_must_support_test.rb
davinci_plan_net_test_kit-0.9.0 lib/davinci_plan_net_test_kit/generated/v1.1.0/practitioner/practitioner_must_support_test.rb