Module: AUPSTestKit::BasicTestAuthorTests

Includes:
BasicTestConstants
Included in:
BasicTestAuthorModule
Defined in:
lib/au_ps_inferno/utils/author/basic_test_author_tests.rb

Overview

Inferno tests for Composition.author Must Support.

Constant Summary

Constants included from BasicTestConstants

AUPSTestKit::BasicTestConstants::AUTHOR_MS_IDENTIFIER_SLICES_BY_TYPE, AUPSTestKit::BasicTestConstants::NO_SERVER_URL_OMIT_MESSAGE, AUPSTestKit::BasicTestConstants::ORGANIZATION_MS_IDENTIFIER_SLICES, AUPSTestKit::BasicTestConstants::PATIENT_MS_IDENTIFIER_SLICES, AUPSTestKit::BasicTestConstants::PRACTITIONER_MS_IDENTIFIER_SLICES, AUPSTestKit::BasicTestConstants::PRACTITIONER_ROLE_MS_IDENTIFIER_SLICES

Instance Method Summary collapse

Instance Method Details

#test_composition_author_ms_identifier_slicesObject



10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/au_ps_inferno/utils/author/basic_test_author_tests.rb', line 10

def test_composition_author_ms_identifier_slices
  guard_populated_resource('author')

  resource = author_resource
  author_and_device_resource?('author', resource)
  resource_type_str = resource_type(resource)
  slices = AUTHOR_MS_IDENTIFIER_SLICES_BY_TYPE[resource_type_str] || []
  omit_if slices.blank?,
          'No Must Support identifier slices are defined for the referenced author type (e.g. AU PS RelatedPerson)'

  # rtype_str, profile_str = author_resource_type_and_profiles(resource)
  validate_ms_identifier_slices_in_resource(resource, slices)
end