Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -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/
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand All @@ -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}))
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/subscriptions_test_kit/version.rb
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion subscriptions_test_kit.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down