cancer_pathology_data_sharing_test_kit 0.10.1 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a39bb5d0c23ebd530d1a30b2cde6ba488278a9df01a92c651b7f33b062e1add
4
- data.tar.gz: '052906955093dd6ce6aff4a2fd3ddb9bc7c2c91d7322ef1d07751a36077a88e9'
3
+ metadata.gz: da0e94c17c74df750deabc914f6bc7c3384c9572c51016ab9f07d43c6b339566
4
+ data.tar.gz: fae0025c8bc8cbe0b4dd468e407d98cca4c4110196cabfda88ba3ae8998cf6fe
5
5
  SHA512:
6
- metadata.gz: 85a363e25bed54822a593cf60586565ac099c901f52ea5296f850ce499bc566fc4630c11dc95fb89a136a0ecd55afd2208ed737abdc189702352cb99cdde6ed4
7
- data.tar.gz: 3c6e10c61fdf155a25a3592ca017b2a8a48db08610136ff248c56de9ad41b365e1fe9b2ba34cf33e1bd045e684476b734754855d29d0f8db2ba4a73adda38dfe
6
+ metadata.gz: c8033d2c6df9b1eee615807b98fac45e9f45122ff8010ac20d434be7f94a52e3439a5cf8c381d5e65789ba35e9fb84e67647c9c79ddaa36b6c3da06c375bb977
7
+ data.tar.gz: e14f04585b9db4404722118aeb7259c0fd0ccf3302a81207224b019619a415c7a78da2d5769f66ff0999ed621419d5dfde617661446a343c17f4e0e8438d1532
@@ -45,14 +45,14 @@ module CancerPathologyDataSharingTestKit
45
45
  .gsub('[x]:', ':')
46
46
  .to_sym
47
47
  no_elements_present =
48
- elements.none? do |element| # rubocop:disable Lint/ShadowingOuterLocalVariable
48
+ elements.none? do |element|
49
49
  child = get_next_value(element, segment)
50
50
  child.present? || child == false
51
51
  end
52
52
  return nil if no_elements_present
53
53
 
54
54
  remaining_path = path_segments.join('.')
55
- elements.each do |element| # rubocop:disable Lint/ShadowingOuterLocalVariable
55
+ elements.each do |element|
56
56
  child = get_next_value(element, segment)
57
57
  element_found =
58
58
  if block_given?
@@ -49,13 +49,13 @@ module CancerPathologyDataSharingTestKit
49
49
  id: id,
50
50
  file_name: file_name
51
51
  }
52
- self.tests << test_metadata
52
+ tests << test_metadata
53
53
  end
54
54
 
55
55
  def add_granular_scope_test(id:, file_name:)
56
56
  self.granular_scope_tests ||= []
57
57
 
58
- self.granular_scope_tests << {
58
+ granular_scope_tests << {
59
59
  id:,
60
60
  file_name:
61
61
  }
@@ -42,7 +42,7 @@ module CancerPathologyDataSharingTestKit
42
42
  end
43
43
  end
44
44
 
45
- def is_any_choice_supported?(choices) # rubocop:disable Metrics/CyclomaticComplexity,Naming/PredicateName
45
+ def is_any_choice_supported?(choices) # rubocop:disable Metrics/CyclomaticComplexity,Naming/PredicatePrefix
46
46
  choices.present? &&
47
47
  (
48
48
  choices[:paths]&.any? { |path| missing_elements.none? { |element| element[:path] == path } } ||
@@ -7,6 +7,7 @@ module CancerPathologyDataSharingTestKit
7
7
  class ContentBundleValidationTest < Inferno::Test
8
8
  include CancerPathologyDataSharingTestKit::ValidationTest
9
9
  include CancerPathologyDataSharingTestKit::BundleParse
10
+
10
11
  title 'Provided Bundle resources conform to the US Pathology Exchange Bundle Profile'
11
12
  id :cpds_exchange_bundle_validation_test
12
13
 
@@ -6,6 +6,7 @@ require_relative 'report_generation_suite/exchange_bundle_group'
6
6
  module CancerPathologyDataSharingTestKit
7
7
  class ReportGenerationSuite < Inferno::TestSuite
8
8
  include URLs
9
+
9
10
  id :cpds_report_generation
10
11
  title 'Cancer Pathology Data Sharing Report Generation Test Suite'
11
12
  short_title 'CPDS Report Generation Test Suite'
@@ -61,6 +62,10 @@ module CancerPathologyDataSharingTestKit
61
62
  perform_additional_validation do |resource, _profile_url|
62
63
  ProvenanceValidator.validate(resource) if resource.instance_of?(FHIR::Provenance)
63
64
  end
65
+
66
+ validation_context do
67
+ snomedCT '731000124108' # explicit snomedCT expansion parameter
68
+ end
64
69
  end
65
70
 
66
71
  resume_test_route :get, RESUME_PASS_PATH do |request|
@@ -59,6 +59,10 @@ module CancerPathologyDataSharingTestKit
59
59
  perform_additional_validation do |resource, _profile_url|
60
60
  USCoreTestKit::ProvenanceValidator.validate(resource) if resource.instance_of?(FHIR::Provenance)
61
61
  end
62
+
63
+ validation_context do
64
+ snomedCT '731000124108' # explicit snomedCT expansion parameter
65
+ end
62
66
  end
63
67
 
64
68
  group from: :cpds_us_core_data_access
@@ -1,4 +1,4 @@
1
1
  module CancerPathologyDataSharingTestKit
2
- VERSION = '0.10.1'.freeze
3
- LAST_UPDATED = '2025-07-30'.freeze # TODO: update next release
2
+ VERSION = '0.10.2'.freeze
3
+ LAST_UPDATED = '2026-06-01'.freeze # TODO: update next release
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cancer_pathology_data_sharing_test_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Inferno Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-30 00:00:00.000000000 Z
11
+ date: 2026-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inferno_core
@@ -16,34 +16,40 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: '1.3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.0.2
22
+ version: 1.3.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '1.0'
29
+ version: '1.3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 1.0.2
32
+ version: 1.3.1
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: us_core_test_kit
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.0'
39
+ version: '1.1'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 1.1.3
40
43
  type: :runtime
41
44
  prerelease: false
42
45
  version_requirements: !ruby/object:Gem::Requirement
43
46
  requirements:
44
47
  - - "~>"
45
48
  - !ruby/object:Gem::Version
46
- version: '1.0'
49
+ version: '1.1'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 1.1.3
47
53
  description: Inferno test kit for testing systems per the Cancer Pathology Data Sharing
48
54
  IG
49
55
  email: