diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 0878822..8105077 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,3 +1,8 @@ +# 0.11.2 + +* FI-4141: Requirements Conversion by @karlnaden in https://github.com/inferno-framework/subscriptions-test-kit/pull/29 +* FI-4141: Requirements Conversion Update by @karlnaden in https://github.com/inferno-framework/subscriptions-test-kit/pull/30 + # 0.11.1 * FI-3652: Allow nonconformant subscription and capability statement by @tstrass in https://github.com/inferno-framework/subscriptions-test-kit/pull/27 diff --git a/Gemfile.lock b/Gemfile.lock index 46cd690..76a0dd2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,8 +1,8 @@ PATH remote: . specs: - subscriptions_test_kit (0.11.1) - inferno_core (~> 0.6.13) + subscriptions_test_kit (0.11.2) + inferno_core (~> 0.6.14) GEM remote: https://rubygems.org/ @@ -135,7 +135,7 @@ GEM domain_name (~> 0.5) i18n (1.14.7) concurrent-ruby (~> 1.0) - inferno_core (0.6.13) + inferno_core (0.6.14) activesupport (~> 6.1.7.5) base62-rb (= 0.3.1) blueprinter (= 0.25.2) @@ -274,7 +274,7 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) rspec-support (3.13.4) - rubocop (1.76.2) + rubocop (1.77.0) json (~> 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) diff --git a/lib/subscriptions_test_kit/common/notification_conformance_verification.rb b/lib/subscriptions_test_kit/common/notification_conformance_verification.rb index 98bcddf..f9fd335 100644 --- a/lib/subscriptions_test_kit/common/notification_conformance_verification.rb +++ b/lib/subscriptions_test_kit/common/notification_conformance_verification.rb @@ -149,7 +149,7 @@ def verify_full_resource_notification_bundle_entries(bundle_entries) end end - def check_bundle_entry_reference(bundle_entries, reference) + def bundle_entry_reference_valid?(bundle_entries, reference) check_full_url = reference.start_with?('urn:') referenced_entry = bundle_entries.find do |entry| @@ -168,7 +168,7 @@ def check_notification_event_focus(focus_elem, bundle_entries) When the content type is `full-resource`, notification bundles SHALL include references to the appropriate focus resources in the SubscriptionStatus.notificationEvent.focus element)) else - unless check_bundle_entry_reference(bundle_entries, focus_elem.valueReference.reference) + unless bundle_entry_reference_valid?(bundle_entries, focus_elem.valueReference.reference) add_message('error', %( The Notification Bundle does not include a resource entry for the reference found in SubscriptionStatus.notificationEvent.focus with id #{focus_elem.valueReference.reference})) @@ -180,7 +180,7 @@ def check_notification_event_additional_context(additional_context_list, bundle_ return if additional_context_list.empty? additional_context_list.each do |additional_context| - next if check_bundle_entry_reference(bundle_entries, additional_context.valueReference.reference) + next if bundle_entry_reference_valid?(bundle_entries, additional_context.valueReference.reference) add_message('error', %( The Notification Bundle does not include a resource entry for the reference found in diff --git a/lib/subscriptions_test_kit/version.rb b/lib/subscriptions_test_kit/version.rb index 72b2721..d299f18 100644 --- a/lib/subscriptions_test_kit/version.rb +++ b/lib/subscriptions_test_kit/version.rb @@ -1,4 +1,4 @@ module SubscriptionsTestKit - VERSION = '0.11.1'.freeze - LAST_UPDATED = '2025-04-03'.freeze + VERSION = '0.11.2'.freeze + LAST_UPDATED = '2025-06-20'.freeze end diff --git a/subscriptions_test_kit.gemspec b/subscriptions_test_kit.gemspec index 632411e..91d04bb 100644 --- a/subscriptions_test_kit.gemspec +++ b/subscriptions_test_kit.gemspec @@ -9,7 +9,7 @@ Gem::Specification.new do |spec| spec.description = 'Inferno test kit for FHIR R5-style Subscriptions' spec.homepage = 'https://github.com/inferno-framework/subscriptions-test-kit' spec.license = 'Apache-2.0' - spec.add_dependency 'inferno_core', '~> 0.6.13' + spec.add_dependency 'inferno_core', '~> 0.6.14' spec.required_ruby_version = Gem::Requirement.new('>= 3.3.6') spec.metadata['inferno_test_kit'] = 'true' spec.metadata['homepage_uri'] = spec.homepage