Class: AUPSTestKit::AUPSCSSupportsAUPSProfiles100preview
- Inherits:
-
BasicTest
- Object
- Inferno::Test
- BasicTest
- AUPSTestKit::AUPSCSSupportsAUPSProfiles100preview
- Defined in:
- lib/au_ps_inferno/suite/au_ps_retrieve_cs_group/au_ps_cs_supports_au_ps_profiles.rb
Overview
Verifies that the CapabilityStatement declares support for the required AU PS profiles.
Constant Summary
Constants included from BasicTestCompositionSectionReadModule
BasicTestCompositionSectionReadModule::MANDATORY_SECTIONS_CODES, BasicTestCompositionSectionReadModule::OPTIONAL_SECTIONS_CODES, BasicTestCompositionSectionReadModule::RECOMMENDED_SECTIONS_CODES
Constants included from BasicTestCompositionSectionReadModule::BasicTestCompositionSectionCheckResourcesMSElementsModule
Constants included from BasicTestConstants
BasicTestConstants::AUTHOR_MS_IDENTIFIER_SLICES_BY_TYPE, BasicTestConstants::NO_SERVER_URL_OMIT_MESSAGE, BasicTestConstants::ORGANIZATION_MS_IDENTIFIER_SLICES, BasicTestConstants::PATIENT_MS_IDENTIFIER_SLICES, BasicTestConstants::PRACTITIONER_MS_IDENTIFIER_SLICES, BasicTestConstants::PRACTITIONER_ROLE_MS_IDENTIFIER_SLICES
Constants included from ValidatorHelpers
ValidatorHelpers::DEFAULT_VALUE, ValidatorHelpers::RESPONSE_KEYS, ValidatorHelpers::RESPONSE_VALIDATOR_KEY, ValidatorHelpers::RESPONSE_WRAPPER_KEY, ValidatorHelpers::VALIDATOR_KEY, ValidatorHelpers::WRAPPER_KEY
Constants included from CompositionUtils
CompositionUtils::BUNDLE_SOURCE_GROUPS, CompositionUtils::NO_BUNDLE_OMIT_MESSAGE
Instance Method Summary collapse
Methods included from BasicTestResolveResourceTypeModule
#raw_resource_type_is_valid, #test_resource_type_is_valid?
Methods included from BasicTestMsSubElementsPopulatedModule
#ms_sub_elements_populated_message
Methods included from BasicTestMsElementsPopulatedModule
#ms_elements_populated_message
Methods included from BasicTestResolvePathDebugModule
Methods included from BasicTestCompositionSectionReadIssuesHelpersModule
Methods included from BasicTestCompositionSectionReadModule::BasicTestCompositionSectionCheckResourcesMSElementsModule
Methods included from BasicTestCapabilityOperationsModule
#operation_defined?, #operations, #select_op, #summary_op_defined?
Methods included from BasicTestBundleModule
#bundle_mandatory_ms_elements_info, #mandatory_ms_elements_info, #skip_validation?, #validate_au_ps_bundle, #validate_ips_bundle
Methods included from BasicTestAttesterIdentifierSlices
#test_composition_attester_party_ms_identifier_slices, #validate_attester_party_ms_identifier_slices
Methods included from BasicTestAttesterResource
Methods included from BasicTestCustodianTests
#test_composition_custodian_ms_identifier_slices
Methods included from BasicTestCustodianIdentifierSlices
#validate_custodian_ms_identifier_slices
Methods included from BasicTestCustodianResource
Methods included from BasicTestAuthorTests
#test_composition_author_ms_identifier_slices
Methods included from BasicTestAuthorResource
Methods included from BasicTestSubjectPatientMsOtherTests
#test_subject_ms_identifier_slices
Methods included from BasicTestSubjectResource
Methods included from SectionNamesMapping
#get_section_name, #section_names_mapping
Methods included from SectionTestModule
Methods included from ValidatorHelpers
Methods included from CompositionUtils
#bundle_scratch_key, #group_section_output, #omit_unless_bundle_in_scratch, #save_bundle_to_scratch, #scratch_bundle
Methods included from CompositionUtilsBooleanAndStats
#all_entries_have_full_url_info?, #boolean_to_existent_string, #identifier_info?, #timestamp_info?, #type_info?
Instance Method Details
#check_profiles_status(profiles_mapping, general_message) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/au_ps_inferno/suite/au_ps_retrieve_cs_group/au_ps_cs_supports_au_ps_profiles.rb', line 13 def check_profiles_status(profiles_mapping, ) au_ps_profiles_status_array = profiles_mapping.keys.map do |profile_url| "#{profiles_mapping[profile_url]} (#{profile_url}): #{cs_profiles.include?(profile_url) ? 'Yes' : 'No'}" end.join("\n\n") info "**#{}**:\n\n#{au_ps_profiles_status_array}" end |
#cs_profiles ⇒ Object
20 21 22 23 |
# File 'lib/au_ps_inferno/suite/au_ps_retrieve_cs_group/au_ps_cs_supports_au_ps_profiles.rb', line 20 def cs_profiles cs_resource = CapabilityStatementDecorator.new(scratch[:capability_statement].to_hash) cs_resource.all_profiles end |