Module: AUPSTestKit::BasicTestBundleModule
- Included in:
- BasicTest
- Defined in:
- lib/au_ps_inferno/utils/basic_test/bundle_module.rb
Overview
Bundle-level checks, mandatory MS list info, and IPS bundle profile validation.
Instance Method Summary collapse
- #bundle_mandatory_ms_elements_info ⇒ Object
- #mandatory_ms_elements_info ⇒ Object
- #skip_validation? ⇒ Boolean
- #validate_au_ps_bundle ⇒ Object
- #validate_ips_bundle ⇒ Object
Instance Method Details
#bundle_mandatory_ms_elements_info ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/au_ps_inferno/utils/basic_test/bundle_module.rb', line 8 def bundle_mandatory_ms_elements_info omit_unless_bundle_in_scratch passed = [identifier_info?, type_info?, , all_entries_have_full_url_info?].all? = passed ? 'info' : 'error' (, "**List mandatory Must Support elements populated and missing**:\n\n#{mandatory_ms_elements_info}") info "**List any entry resources by type (and meta.profile if exists)**:\n\n#{entry_resources_info}" assert passed, 'Mandatory Must Support elements are not populated' end |
#mandatory_ms_elements_info ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/au_ps_inferno/utils/basic_test/bundle_module.rb', line 18 def mandatory_ms_elements_info [ "**identifier**: #{boolean_to_existent_string(identifier_info?)}", "**type**: #{boolean_to_existent_string(type_info?)}", "**timestamp**: #{boolean_to_existent_string()}", "**All entry exists fullUrl**: #{boolean_to_existent_string(all_entries_have_full_url_info?)}" ].join("\n\n") end |
#skip_validation? ⇒ Boolean
27 28 29 |
# File 'lib/au_ps_inferno/utils/basic_test/bundle_module.rb', line 27 def skip_validation? false end |
#validate_au_ps_bundle ⇒ Object
31 32 33 |
# File 'lib/au_ps_inferno/utils/basic_test/bundle_module.rb', line 31 def validate_au_ps_bundle validate_bundle_wrapper("http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-bundle|#{AUPSTestKit::IG_VERSION}") end |
#validate_ips_bundle ⇒ Object
35 36 37 |
# File 'lib/au_ps_inferno/utils/basic_test/bundle_module.rb', line 35 def validate_ips_bundle validate_bundle_wrapper('http://hl7.org/fhir/uv/ips/StructureDefinition/Bundle-uv-ips') end |