us_core_test_kit 1.1.2 → 1.1.3

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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/config/presets/inferno_reference_server_311_preset.json +1 -1
  3. data/config/presets/inferno_reference_server_400_preset.json +1 -1
  4. data/config/presets/inferno_reference_server_501_preset.json +1 -1
  5. data/config/presets/inferno_reference_server_610_preset.json +1 -1
  6. data/config/presets/inferno_reference_server_700_preset.json +1 -1
  7. data/config/presets/inferno_reference_server_800_preset.json +1 -1
  8. data/execution_scripts/reference_server/fhir_api_only/us_core_server_311.yaml +37 -0
  9. data/execution_scripts/reference_server/fhir_api_only/us_core_server_311_expected.json +25070 -0
  10. data/execution_scripts/reference_server/fhir_api_only/us_core_server_400.yaml +37 -0
  11. data/execution_scripts/reference_server/fhir_api_only/us_core_server_400_expected.json +1 -0
  12. data/execution_scripts/reference_server/fhir_api_only/us_core_server_501.yaml +37 -0
  13. data/execution_scripts/reference_server/fhir_api_only/us_core_server_501_expected.json +41390 -0
  14. data/execution_scripts/reference_server/fhir_api_only/us_core_server_610.yaml +37 -0
  15. data/execution_scripts/reference_server/fhir_api_only/us_core_server_610_expected.json +1 -0
  16. data/execution_scripts/reference_server/fhir_api_only/us_core_server_700.yaml +37 -0
  17. data/execution_scripts/reference_server/fhir_api_only/us_core_server_700_expected.json +1 -0
  18. data/execution_scripts/reference_server/fhir_api_only/us_core_server_800.yaml +37 -0
  19. data/execution_scripts/reference_server/fhir_api_only/us_core_server_800_expected.json +53183 -0
  20. data/execution_scripts/reference_server/ref_server_authorize_85_all_scopes.rb +4 -0
  21. data/execution_scripts/reference_server/ref_server_authorize_launched_all_scopes.rb +4 -0
  22. data/execution_scripts/reference_server/ref_server_ehr_launch_85.rb +4 -0
  23. data/execution_scripts/reference_server/us_core_server_610_smart_2_with_commands.yaml +150 -0
  24. data/execution_scripts/reference_server/us_core_server_610_smart_2_with_commands_expected.json +1 -0
  25. data/lib/us_core_test_kit/generated/v3.1.1/us_core_test_suite.rb +6 -2
  26. data/lib/us_core_test_kit/generated/v4.0.0/us_core_test_suite.rb +6 -2
  27. data/lib/us_core_test_kit/generated/v5.0.1/us_core_test_suite.rb +6 -2
  28. data/lib/us_core_test_kit/generated/v6.1.0/us_core_test_suite.rb +6 -2
  29. data/lib/us_core_test_kit/generated/v7.0.0/us_core_test_suite.rb +6 -2
  30. data/lib/us_core_test_kit/generated/v8.0.0/us_core_test_suite.rb +6 -2
  31. data/lib/us_core_test_kit/generator/templates/suite.rb.erb +6 -2
  32. data/lib/us_core_test_kit/reference_resolution_test.rb +1 -1
  33. data/lib/us_core_test_kit/version.rb +2 -2
  34. metadata +26 -9
@@ -66,7 +66,8 @@ module USCoreTestKit
66
66
  /\A\S+: \S+: URL value '.*' does not resolve/,
67
67
  /\A\S+: \S+: No definition could be found for URL value '.*'/,
68
68
  %r{Observation.component\[\d+\].value.ofType\(Quantity\): The code provided \(http://unitsofmeasure.org#L/min\) was not found in the value set 'Vital Signs Units'}, # Known issue with the Pulse Oximetry Profile
69
- %r{Slice 'Observation\.value\[x\]:valueQuantity': a matching slice is required, but not found \(from (http://hl7\.org/fhir/StructureDefinition/bmi\|4\.0\.1|http://hl7\.org/fhir/StructureDefinition/bmi\%7C4\.0\.1)\)}
69
+ %r{Slice 'Observation\.value\[x\]:valueQuantity': a matching slice is required, but not found \(from (http://hl7\.org/fhir/StructureDefinition/bmi\|4\.0\.1|http://hl7\.org/fhir/StructureDefinition/bmi\%7C4\.0\.1)\)},
70
+ %r{A definition for CodeSystem 'http://ihe.net/fhir/ValueSet/IHE.FormatCode.codesystem' could not be found, so the code cannot be validated} # only logged the first DocumentReference validation
70
71
  ].freeze
71
72
 
72
73
  VERSION_SPECIFIC_MESSAGE_FILTERS = [].freeze
@@ -86,10 +87,13 @@ module USCoreTestKit
86
87
  message_filters = VALIDATION_MESSAGE_FILTERS
87
88
 
88
89
  exclude_message do |message|
89
-
90
90
  message_filters.any? { |filter| filter.match? message.message }
91
91
  end
92
92
 
93
+ validation_context do
94
+ snomedCT '731000124108' # explicit snomedCT expansion parameter
95
+ end
96
+
93
97
  perform_additional_validation do |resource, profile_url|
94
98
  ProvenanceValidator.validate(resource) if resource.instance_of?(FHIR::Provenance)
95
99
  end
@@ -68,7 +68,8 @@ module USCoreTestKit
68
68
  /\A\S+: \S+: URL value '.*' does not resolve/,
69
69
  /\A\S+: \S+: No definition could be found for URL value '.*'/,
70
70
  %r{Observation.component\[\d+\].value.ofType\(Quantity\): The code provided \(http://unitsofmeasure.org#L/min\) was not found in the value set 'Vital Signs Units'}, # Known issue with the Pulse Oximetry Profile
71
- %r{Slice 'Observation\.value\[x\]:valueQuantity': a matching slice is required, but not found \(from (http://hl7\.org/fhir/StructureDefinition/bmi\|4\.0\.1|http://hl7\.org/fhir/StructureDefinition/bmi\%7C4\.0\.1)\)}
71
+ %r{Slice 'Observation\.value\[x\]:valueQuantity': a matching slice is required, but not found \(from (http://hl7\.org/fhir/StructureDefinition/bmi\|4\.0\.1|http://hl7\.org/fhir/StructureDefinition/bmi\%7C4\.0\.1)\)},
72
+ %r{A definition for CodeSystem 'http://ihe.net/fhir/ValueSet/IHE.FormatCode.codesystem' could not be found, so the code cannot be validated} # only logged the first DocumentReference validation
72
73
  ].freeze
73
74
 
74
75
  VERSION_SPECIFIC_MESSAGE_FILTERS = [].freeze
@@ -88,10 +89,13 @@ module USCoreTestKit
88
89
  message_filters = VALIDATION_MESSAGE_FILTERS
89
90
 
90
91
  exclude_message do |message|
91
-
92
92
  message_filters.any? { |filter| filter.match? message.message }
93
93
  end
94
94
 
95
+ validation_context do
96
+ snomedCT '731000124108' # explicit snomedCT expansion parameter
97
+ end
98
+
95
99
  perform_additional_validation do |resource, profile_url|
96
100
  ProvenanceValidator.validate(resource) if resource.instance_of?(FHIR::Provenance)
97
101
  end
@@ -78,7 +78,8 @@ module USCoreTestKit
78
78
  /\A\S+: \S+: URL value '.*' does not resolve/,
79
79
  /\A\S+: \S+: No definition could be found for URL value '.*'/,
80
80
  %r{Observation.component\[\d+\].value.ofType\(Quantity\): The code provided \(http://unitsofmeasure.org#L/min\) was not found in the value set 'Vital Signs Units'}, # Known issue with the Pulse Oximetry Profile
81
- %r{Slice 'Observation\.value\[x\]:valueQuantity': a matching slice is required, but not found \(from (http://hl7\.org/fhir/StructureDefinition/bmi\|4\.0\.1|http://hl7\.org/fhir/StructureDefinition/bmi\%7C4\.0\.1)\)}
81
+ %r{Slice 'Observation\.value\[x\]:valueQuantity': a matching slice is required, but not found \(from (http://hl7\.org/fhir/StructureDefinition/bmi\|4\.0\.1|http://hl7\.org/fhir/StructureDefinition/bmi\%7C4\.0\.1)\)},
82
+ %r{A definition for CodeSystem 'http://ihe.net/fhir/ValueSet/IHE.FormatCode.codesystem' could not be found, so the code cannot be validated} # only logged the first DocumentReference validation
82
83
  ].freeze
83
84
 
84
85
  VERSION_SPECIFIC_MESSAGE_FILTERS = [].freeze
@@ -98,10 +99,13 @@ module USCoreTestKit
98
99
  message_filters = VALIDATION_MESSAGE_FILTERS
99
100
 
100
101
  exclude_message do |message|
101
-
102
102
  message_filters.any? { |filter| filter.match? message.message }
103
103
  end
104
104
 
105
+ validation_context do
106
+ snomedCT '731000124108' # explicit snomedCT expansion parameter
107
+ end
108
+
105
109
  perform_additional_validation do |resource, profile_url|
106
110
  ProvenanceValidator.validate(resource) if resource.instance_of?(FHIR::Provenance)
107
111
  end
@@ -85,7 +85,8 @@ module USCoreTestKit
85
85
  /\A\S+: \S+: URL value '.*' does not resolve/,
86
86
  /\A\S+: \S+: No definition could be found for URL value '.*'/,
87
87
  %r{Observation.component\[\d+\].value.ofType\(Quantity\): The code provided \(http://unitsofmeasure.org#L/min\) was not found in the value set 'Vital Signs Units'}, # Known issue with the Pulse Oximetry Profile
88
- %r{Slice 'Observation\.value\[x\]:valueQuantity': a matching slice is required, but not found \(from (http://hl7\.org/fhir/StructureDefinition/bmi\|4\.0\.1|http://hl7\.org/fhir/StructureDefinition/bmi\%7C4\.0\.1)\)}
88
+ %r{Slice 'Observation\.value\[x\]:valueQuantity': a matching slice is required, but not found \(from (http://hl7\.org/fhir/StructureDefinition/bmi\|4\.0\.1|http://hl7\.org/fhir/StructureDefinition/bmi\%7C4\.0\.1)\)},
89
+ %r{A definition for CodeSystem 'http://ihe.net/fhir/ValueSet/IHE.FormatCode.codesystem' could not be found, so the code cannot be validated} # only logged the first DocumentReference validation
89
90
  ].freeze
90
91
 
91
92
  VERSION_SPECIFIC_MESSAGE_FILTERS = [
@@ -119,10 +120,13 @@ module USCoreTestKit
119
120
  message_filters = VALIDATION_MESSAGE_FILTERS
120
121
 
121
122
  exclude_message do |message|
122
-
123
123
  message_filters.any? { |filter| filter.match? message.message }
124
124
  end
125
125
 
126
+ validation_context do
127
+ snomedCT '731000124108' # explicit snomedCT expansion parameter
128
+ end
129
+
126
130
  perform_additional_validation do |resource, profile_url|
127
131
  ProvenanceValidator.validate(resource) if resource.instance_of?(FHIR::Provenance)
128
132
  end
@@ -91,7 +91,8 @@ module USCoreTestKit
91
91
  /\A\S+: \S+: URL value '.*' does not resolve/,
92
92
  /\A\S+: \S+: No definition could be found for URL value '.*'/,
93
93
  %r{Observation.component\[\d+\].value.ofType\(Quantity\): The code provided \(http://unitsofmeasure.org#L/min\) was not found in the value set 'Vital Signs Units'}, # Known issue with the Pulse Oximetry Profile
94
- %r{Slice 'Observation\.value\[x\]:valueQuantity': a matching slice is required, but not found \(from (http://hl7\.org/fhir/StructureDefinition/bmi\|4\.0\.1|http://hl7\.org/fhir/StructureDefinition/bmi\%7C4\.0\.1)\)}
94
+ %r{Slice 'Observation\.value\[x\]:valueQuantity': a matching slice is required, but not found \(from (http://hl7\.org/fhir/StructureDefinition/bmi\|4\.0\.1|http://hl7\.org/fhir/StructureDefinition/bmi\%7C4\.0\.1)\)},
95
+ %r{A definition for CodeSystem 'http://ihe.net/fhir/ValueSet/IHE.FormatCode.codesystem' could not be found, so the code cannot be validated} # only logged the first DocumentReference validation
95
96
  ].freeze
96
97
 
97
98
  VERSION_SPECIFIC_MESSAGE_FILTERS = [].freeze
@@ -121,10 +122,13 @@ module USCoreTestKit
121
122
  message_filters = VALIDATION_MESSAGE_FILTERS
122
123
 
123
124
  exclude_message do |message|
124
-
125
125
  message_filters.any? { |filter| filter.match? message.message }
126
126
  end
127
127
 
128
+ validation_context do
129
+ snomedCT '731000124108' # explicit snomedCT expansion parameter
130
+ end
131
+
128
132
  perform_additional_validation do |resource, profile_url|
129
133
  ProvenanceValidator.validate(resource) if resource.instance_of?(FHIR::Provenance)
130
134
  end
@@ -93,7 +93,8 @@ module USCoreTestKit
93
93
  /\A\S+: \S+: URL value '.*' does not resolve/,
94
94
  /\A\S+: \S+: No definition could be found for URL value '.*'/,
95
95
  %r{Observation.component\[\d+\].value.ofType\(Quantity\): The code provided \(http://unitsofmeasure.org#L/min\) was not found in the value set 'Vital Signs Units'}, # Known issue with the Pulse Oximetry Profile
96
- %r{Slice 'Observation\.value\[x\]:valueQuantity': a matching slice is required, but not found \(from (http://hl7\.org/fhir/StructureDefinition/bmi\|4\.0\.1|http://hl7\.org/fhir/StructureDefinition/bmi\%7C4\.0\.1)\)}
96
+ %r{Slice 'Observation\.value\[x\]:valueQuantity': a matching slice is required, but not found \(from (http://hl7\.org/fhir/StructureDefinition/bmi\|4\.0\.1|http://hl7\.org/fhir/StructureDefinition/bmi\%7C4\.0\.1)\)},
97
+ %r{A definition for CodeSystem 'http://ihe.net/fhir/ValueSet/IHE.FormatCode.codesystem' could not be found, so the code cannot be validated} # only logged the first DocumentReference validation
97
98
  ].freeze
98
99
 
99
100
  VERSION_SPECIFIC_MESSAGE_FILTERS = [].freeze
@@ -123,10 +124,13 @@ module USCoreTestKit
123
124
  message_filters = VALIDATION_MESSAGE_FILTERS
124
125
 
125
126
  exclude_message do |message|
126
-
127
127
  message_filters.any? { |filter| filter.match? message.message }
128
128
  end
129
129
 
130
+ validation_context do
131
+ snomedCT '731000124108' # explicit snomedCT expansion parameter
132
+ end
133
+
130
134
  perform_additional_validation do |resource, profile_url|
131
135
  ProvenanceValidator.validate(resource) if resource.instance_of?(FHIR::Provenance)
132
136
  end
@@ -42,7 +42,8 @@ module USCoreTestKit
42
42
  /\A\S+: \S+: URL value '.*' does not resolve/,
43
43
  /\A\S+: \S+: No definition could be found for URL value '.*'/,
44
44
  %r{Observation.component\[\d+\].value.ofType\(Quantity\): The code provided \(http://unitsofmeasure.org#L/min\) was not found in the value set 'Vital Signs Units'}, # Known issue with the Pulse Oximetry Profile
45
- %r{Slice 'Observation\.value\[x\]:valueQuantity': a matching slice is required, but not found \(from (http://hl7\.org/fhir/StructureDefinition/bmi\|4\.0\.1|http://hl7\.org/fhir/StructureDefinition/bmi\%7C4\.0\.1)\)}
45
+ %r{Slice 'Observation\.value\[x\]:valueQuantity': a matching slice is required, but not found \(from (http://hl7\.org/fhir/StructureDefinition/bmi\|4\.0\.1|http://hl7\.org/fhir/StructureDefinition/bmi\%7C4\.0\.1)\)},
46
+ %r{A definition for CodeSystem 'http://ihe.net/fhir/ValueSet/IHE.FormatCode.codesystem' could not be found, so the code cannot be validated} # only logged the first DocumentReference validation
46
47
  ].freeze
47
48
  <% if version_specific_message_filters.empty? %>
48
49
  VERSION_SPECIFIC_MESSAGE_FILTERS = [].freeze
@@ -104,10 +105,13 @@ module USCoreTestKit
104
105
  message_filters = VALIDATION_MESSAGE_FILTERS
105
106
 
106
107
  exclude_message do |message|
107
-
108
108
  message_filters.any? { |filter| filter.match? message.message }
109
109
  end
110
110
 
111
+ validation_context do
112
+ snomedCT '731000124108' # explicit snomedCT expansion parameter
113
+ end
114
+
111
115
  perform_additional_validation do |resource, profile_url|
112
116
  ProvenanceValidator.validate(resource) if resource.instance_of?(FHIR::Provenance)
113
117
  end
@@ -84,7 +84,7 @@ module USCoreTestKit
84
84
  found_one_reference = false
85
85
 
86
86
  resolve_one_reference = resources.any? do |resource|
87
- value_found = resolve_path(resource, path).select { |v| v.is_a?(FHIR::Reference) }
87
+ value_found = resolve_path(resource, path).select { |value| value.is_a?(FHIR::Reference) }
88
88
  next if value_found.empty?
89
89
 
90
90
  found_one_reference = true
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module USCoreTestKit
4
- VERSION = '1.1.2'
5
- LAST_UPDATED = '2026-05-13'
4
+ VERSION = '1.1.3'
5
+ LAST_UPDATED = '2026-05-26'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: us_core_test_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
- - Stephen MacVicar
7
+ - Inferno Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-14 00:00:00.000000000 Z
11
+ date: 2026-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inferno_core
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.2'
19
+ version: '1.3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.2.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.2'
29
+ version: '1.3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 1.2.2
32
+ version: 1.3.1
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: smart_app_launch_test_kit
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: '1.0'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 1.0.1
42
+ version: 1.0.2
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: '1.0'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 1.0.1
52
+ version: 1.0.2
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: tls_test_kit
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -151,6 +151,23 @@ files:
151
151
  - config/presets/server_demo_against_client_610_preset.json.erb
152
152
  - config/presets/server_demo_against_client_700_preset.json.erb
153
153
  - config/presets/server_demo_against_client_800_preset.json.erb
154
+ - execution_scripts/reference_server/fhir_api_only/us_core_server_311.yaml
155
+ - execution_scripts/reference_server/fhir_api_only/us_core_server_311_expected.json
156
+ - execution_scripts/reference_server/fhir_api_only/us_core_server_400.yaml
157
+ - execution_scripts/reference_server/fhir_api_only/us_core_server_400_expected.json
158
+ - execution_scripts/reference_server/fhir_api_only/us_core_server_501.yaml
159
+ - execution_scripts/reference_server/fhir_api_only/us_core_server_501_expected.json
160
+ - execution_scripts/reference_server/fhir_api_only/us_core_server_610.yaml
161
+ - execution_scripts/reference_server/fhir_api_only/us_core_server_610_expected.json
162
+ - execution_scripts/reference_server/fhir_api_only/us_core_server_700.yaml
163
+ - execution_scripts/reference_server/fhir_api_only/us_core_server_700_expected.json
164
+ - execution_scripts/reference_server/fhir_api_only/us_core_server_800.yaml
165
+ - execution_scripts/reference_server/fhir_api_only/us_core_server_800_expected.json
166
+ - execution_scripts/reference_server/ref_server_authorize_85_all_scopes.rb
167
+ - execution_scripts/reference_server/ref_server_authorize_launched_all_scopes.rb
168
+ - execution_scripts/reference_server/ref_server_ehr_launch_85.rb
169
+ - execution_scripts/reference_server/us_core_server_610_smart_2_with_commands.yaml
170
+ - execution_scripts/reference_server/us_core_server_610_smart_2_with_commands_expected.json
154
171
  - lib/us_core_test_kit.rb
155
172
  - lib/us_core_test_kit/client/docs/us_core_client.rb
156
173
  - lib/us_core_test_kit/client/generated/v3.1.1/allergy_intolerance/allergy_intolerance_client_read_test.rb