us_core_test_kit 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/us_core_test_kit/generated/v3.1.1/goal/metadata.yml +1 -1
- data/lib/us_core_test_kit/generated/v3.1.1/metadata.yml +1 -1
- data/lib/us_core_test_kit/generated/v3.1.1/us_core_test_suite.rb +2 -2
- data/lib/us_core_test_kit/generated/v4.0.0/goal/metadata.yml +1 -1
- data/lib/us_core_test_kit/generated/v4.0.0/metadata.yml +1 -1
- data/lib/us_core_test_kit/generated/v4.0.0/us_core_test_suite.rb +2 -2
- data/lib/us_core_test_kit/search_test.rb +14 -0
- data/lib/us_core_test_kit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73fe6df54949275287514ff854eddd9ad980636597d53aebf84c712b002b9ab6
|
4
|
+
data.tar.gz: ed6cafa99e52868d58333ef7c97d51918c7ddaae5c22e9fd9c39dd6d65579e8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c67d926c520ff027a2c508f72b7e09b68e7d3227d41d8bed7ee522d3de65a101a814aecb48c84bc85ecd0cb5b54d6851d4ed56d53f20c5c29bbd55ce420678e
|
7
|
+
data.tar.gz: 5e87c426a12469514878a72f6ad11afe62bdd52a5ea5966d033c984784b7a720a6fbdf08879c023a49b68e6818f4a82eb63e56391b0cd328679df6e00a62c6f4
|
@@ -42,8 +42,8 @@ module USCoreTestKit
|
|
42
42
|
VALIDATION_MESSAGE_FILTERS = [
|
43
43
|
%r{Sub-extension url 'introspect' is not defined by the Extension http://fhir-registry\.smarthealthit\.org/StructureDefinition/oauth-uris$},
|
44
44
|
%r{Sub-extension url 'revoke' is not defined by the Extension http://fhir-registry\.smarthealthit\.org/StructureDefinition/oauth-uris$},
|
45
|
-
|
46
|
-
|
45
|
+
/Observation\.effective\.ofType\(Period\): vs-1:/, # Invalid invariant in FHIR v4.0.1
|
46
|
+
/Observation\.effective\.ofType\(Period\): us-core-1:/ # Invalid invariant in US Core v3.1.1
|
47
47
|
].freeze
|
48
48
|
|
49
49
|
def self.metadata
|
@@ -44,8 +44,8 @@ module USCoreTestKit
|
|
44
44
|
VALIDATION_MESSAGE_FILTERS = [
|
45
45
|
%r{Sub-extension url 'introspect' is not defined by the Extension http://fhir-registry\.smarthealthit\.org/StructureDefinition/oauth-uris$},
|
46
46
|
%r{Sub-extension url 'revoke' is not defined by the Extension http://fhir-registry\.smarthealthit\.org/StructureDefinition/oauth-uris$},
|
47
|
-
|
48
|
-
|
47
|
+
/Observation\.effective\.ofType\(Period\): vs-1:/, # Invalid invariant in FHIR v4.0.1
|
48
|
+
/Observation\.effective\.ofType\(Period\): us-core-1:/ # Invalid invariant in US Core v3.1.1
|
49
49
|
].freeze
|
50
50
|
|
51
51
|
def self.metadata
|
@@ -529,6 +529,20 @@ module USCoreTestKit
|
|
529
529
|
page_count += 1
|
530
530
|
end
|
531
531
|
|
532
|
+
valid_resource_types = [resource_type, 'OperationOutcome'].concat(additional_resource_types)
|
533
|
+
valid_resource_types << 'Medication' if resource_type == 'MedicationRequest'
|
534
|
+
|
535
|
+
invalid_resource_types =
|
536
|
+
resources.reject { |entry| valid_resource_types.include? entry.resourceType }
|
537
|
+
.map(&:resourceType)
|
538
|
+
.uniq
|
539
|
+
|
540
|
+
if invalid_resource_types.any?
|
541
|
+
info "Received resource type(s) #{invalid_resource_types.join(', ')} in search bundle, " \
|
542
|
+
"but only expected resource types #{valid_resource_types.join(', ')}. " + \
|
543
|
+
"This is unusual but allowed if the server believes additional resource types are relevant."
|
544
|
+
end
|
545
|
+
|
532
546
|
resources
|
533
547
|
end
|
534
548
|
|
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: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen MacVicar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inferno_core
|