ipa_test_kit 0.3.4 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13459a3fee3c409cdb78abbcf827ca793f2334ad1a9d1df97c7f13068a2e9181
|
4
|
+
data.tar.gz: ae13e01f6e265a3b4d97c0c1e27e13ad36544353dad6442d590c65635cf1f63e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39d1a7ad46187c90d1287a8d9116620b7e157d44868344565f601ab852b5f00ad39a164b76cd7fdcef761f74e3df7abe4a8ea4b95497bd749a72cb15e9f58941
|
7
|
+
data.tar.gz: '08bffae9f4c6b846f1ed660440fca3c32a9e58a86a9e74c8297959eec9504af4cc21d64abae591ab13761281a1d198a9899fbd5c9e9abd593951ed249b5d3081'
|
@@ -46,11 +46,13 @@ module IpaTestKit
|
|
46
46
|
search.
|
47
47
|
)
|
48
48
|
version VERSION
|
49
|
+
id :ipa_v100
|
49
50
|
|
50
51
|
VALIDATION_MESSAGE_FILTERS = [
|
51
52
|
%r{Sub-extension url 'introspect' is not defined by the Extension http://fhir-registry\.smarthealthit\.org/StructureDefinition/oauth-uris},
|
52
53
|
%r{Sub-extension url 'revoke' is not defined by the Extension http://fhir-registry\.smarthealthit\.org/StructureDefinition/oauth-uris},
|
53
54
|
/Observation\.effective\.ofType\(Period\): .*vs-1:/, # Invalid invariant in FHIR v4.0.1
|
55
|
+
/\A\S+: \S+: URL value '.*' does not resolve/,
|
54
56
|
].freeze
|
55
57
|
|
56
58
|
def self.metadata
|
@@ -59,8 +61,9 @@ module IpaTestKit
|
|
59
61
|
end
|
60
62
|
end
|
61
63
|
|
62
|
-
|
63
|
-
|
64
|
+
fhir_resource_validator do
|
65
|
+
igs 'hl7.fhir.uv.ipa#1.0.0'
|
66
|
+
|
64
67
|
exclude_message do |message|
|
65
68
|
VALIDATION_MESSAGE_FILTERS.any? { |filter| filter.match? message.message }
|
66
69
|
end
|
@@ -70,9 +73,6 @@ module IpaTestKit
|
|
70
73
|
end
|
71
74
|
end
|
72
75
|
|
73
|
-
id :ipa_v100
|
74
|
-
|
75
|
-
|
76
76
|
input :url,
|
77
77
|
title: 'FHIR Endpoint',
|
78
78
|
description: 'URL of the FHIR endpoint'
|
@@ -53,8 +53,9 @@ module IpaTestKit
|
|
53
53
|
"IPA #{ig_metadata.ig_version}"
|
54
54
|
end
|
55
55
|
|
56
|
-
def
|
57
|
-
|
56
|
+
def ig_identifier
|
57
|
+
version = ig_metadata.ig_version[1..] # Remove leading 'v'
|
58
|
+
"hl7.fhir.uv.ipa##{version}"
|
58
59
|
end
|
59
60
|
|
60
61
|
def ig_link
|
@@ -165,8 +165,8 @@ module IpaTestKit
|
|
165
165
|
# Only need to know if the resource is valid.
|
166
166
|
# Calling resource_is_valid? causes validation errors to be logged.
|
167
167
|
validator = find_validator(:default)
|
168
|
-
|
169
|
-
outcome =
|
168
|
+
validator_response = validator.validate(resource, target_profile)
|
169
|
+
outcome = validator.operation_outcome_from_hl7_wrapped_response(validator_response)
|
170
170
|
|
171
171
|
message_hashes = outcome.issue&.map { |issue| validator.message_hash_from_issue(issue, resource) } || []
|
172
172
|
|
data/lib/ipa_test_kit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ipa_test_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Inferno Core Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inferno_core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.4.
|
19
|
+
version: 0.4.37
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.4.
|
26
|
+
version: 0.4.37
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: smart_app_launch_test_kit
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -306,12 +306,12 @@ files:
|
|
306
306
|
- lib/ipa_test_kit/search_test_properties.rb
|
307
307
|
- lib/ipa_test_kit/validation_test.rb
|
308
308
|
- lib/ipa_test_kit/version.rb
|
309
|
-
homepage: https://github.com/
|
309
|
+
homepage: https://github.com/inferno-framework/ipa-test-kit
|
310
310
|
licenses:
|
311
311
|
- Apache-2.0
|
312
312
|
metadata:
|
313
|
-
homepage_uri: https://github.com/
|
314
|
-
source_code_uri: https://github.com/
|
313
|
+
homepage_uri: https://github.com/inferno-framework/ipa-test-kit
|
314
|
+
source_code_uri: https://github.com/inferno-framework/ipa-test-kit
|
315
315
|
post_install_message:
|
316
316
|
rdoc_options: []
|
317
317
|
require_paths:
|