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 +4 -4
- data/lib/cancer_pathology_data_sharing_test_kit/fhir_resource_navigation.rb +2 -2
- data/lib/cancer_pathology_data_sharing_test_kit/group_metadata.rb +2 -2
- data/lib/cancer_pathology_data_sharing_test_kit/must_support_test.rb +1 -1
- data/lib/cancer_pathology_data_sharing_test_kit/report_generation_suite/exchange_bundle/us_pathology_exchange_bundle/exchange_bundle_validation_test.rb +1 -0
- data/lib/cancer_pathology_data_sharing_test_kit/report_generation_suite.rb +5 -0
- data/lib/cancer_pathology_data_sharing_test_kit/us_core_data_access_suite.rb +4 -0
- data/lib/cancer_pathology_data_sharing_test_kit/version.rb +2 -2
- metadata +14 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: da0e94c17c74df750deabc914f6bc7c3384c9572c51016ab9f07d43c6b339566
|
|
4
|
+
data.tar.gz: fae0025c8bc8cbe0b4dd468e407d98cca4c4110196cabfda88ba3ae8998cf6fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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|
|
|
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|
|
|
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
|
-
|
|
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
|
-
|
|
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/
|
|
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
|
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.
|
|
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:
|
|
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.
|
|
19
|
+
version: '1.3'
|
|
20
20
|
- - ">="
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: 1.
|
|
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.
|
|
29
|
+
version: '1.3'
|
|
30
30
|
- - ">="
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 1.
|
|
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.
|
|
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.
|
|
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:
|