davinci_plan_net_test_kit 0.9.1 → 0.10.0

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: abd186357f2e4f65300b10d498996e9b8b79b06e0beb2fc47b4cf7a1efb87d85
4
- data.tar.gz: 89dfd1c65b54a9f402895d8f29ce2fa13482cff9f0ec0de92e24e59d7ab975bd
3
+ metadata.gz: b034f162ea7a8e904b5c0dea7401b4b9c0818885c5d731424758649da48b3b23
4
+ data.tar.gz: a2e6c995b1857f5851b9a3d26e0bd8f48acc42137a573d430657643d2ebbb9d3
5
5
  SHA512:
6
- metadata.gz: 384fc19006044d2124a14a25db4537afe3d960aa35134f55f1512c65c889f8fcb85a426fdbc32d74f08cce7bd926bcd6b0732002654af26c16ff801ab2429246
7
- data.tar.gz: 6a840a4dc32ed716ca96a76f0e4cc0da8d8fc15dd2adce0cd4b64d161ccae100fb579df0ad5c13ee40250f473a50152c9403f7b74e656094a51e1e745e3dd236
6
+ metadata.gz: 37d256d3f4d3c14d7ca9361a5c3b977a1df576832ceba4e404d55b367ce61e0574c1223c33b8aea065466f0c79613f5a5b0446f035b551a9400762f81b376fc0
7
+ data.tar.gz: 926f0ccba983adc3a0a3620576fb9d7cc7d47297561463353269e13b28241fe8e5af39d74cdb5b862109e5e2e7e7c2ee11ff2469a924438976d2ed80ef1eaa99
@@ -141,6 +141,7 @@ module DaVinciPlanNetTestKit
141
141
  %r{Sub-extension url 'introspect' is not defined by the Extension http://fhir-registry\.smarthealthit\.org/StructureDefinition/oauth-uris},
142
142
  %r{Sub-extension url 'revoke' is not defined by the Extension http://fhir-registry\.smarthealthit\.org/StructureDefinition/oauth-uris},
143
143
  /Observation\.effective\.ofType\(Period\): .*us-core-1:/, # Invalid invariant in US Core v3.1.1
144
+ /\A\S+: \S+: URL value '.*' does not resolve/,
144
145
  ].freeze
145
146
 
146
147
  VERSION_SPECIFIC_MESSAGE_FILTERS = [].freeze
@@ -151,8 +152,11 @@ module DaVinciPlanNetTestKit
151
152
  end
152
153
  end
153
154
 
154
- validator do
155
- url ENV.fetch('V110_VALIDATOR_URL', 'http://validator_service:4567')
155
+ id :davinci_plan_net_server_v110
156
+
157
+ fhir_resource_validator do
158
+ igs 'hl7.fhir.us.davinci-pdex-plan-net#1.1.0'
159
+
156
160
  message_filters = VALIDATION_MESSAGE_FILTERS + VERSION_SPECIFIC_MESSAGE_FILTERS
157
161
 
158
162
  exclude_message do |message|
@@ -180,8 +184,6 @@ module DaVinciPlanNetTestKit
180
184
  }
181
185
  ]
182
186
 
183
- id :davinci_plan_net_server_v110
184
-
185
187
  input :url,
186
188
  title: 'FHIR Endpoint',
187
189
  description: 'URL of the FHIR endpoint'
@@ -53,8 +53,9 @@ module DaVinciPlanNetTestKit
53
53
  "DaVinci Plan Net #{ig_metadata.ig_version} Server Test Suite"
54
54
  end
55
55
 
56
- def validator_env_name
57
- "#{ig_metadata.reformatted_version.upcase}_VALIDATOR_URL"
56
+ def ig_identifier
57
+ version = ig_metadata.ig_version[1..] # Remove leading 'v'
58
+ "hl7.fhir.us.davinci-pdex-plan-net##{version}"
58
59
  end
59
60
 
60
61
  def ig_link
@@ -165,7 +165,8 @@ module DaVinciPlanNetTestKit
165
165
 
166
166
  target_profile_with_version = target_profile.include?('|') ? target_profile : "#{target_profile}|#{metadata.profile_version}"
167
167
 
168
- outcome = FHIR::OperationOutcome.new(JSON.parse(validator.validate(resource, target_profile_with_version)))
168
+ validator_response = validator.validate(resource, target_profile_with_version)
169
+ outcome = validator.operation_outcome_from_hl7_wrapped_response(validator_response)
169
170
 
170
171
  message_hashes = outcome.issue&.map { |issue| validator.message_hash_from_issue(issue, resource) } || []
171
172
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DaVinciPlanNetTestKit
4
- VERSION = '0.9.1'
4
+ VERSION = '0.10.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: davinci_plan_net_test_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Naden
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-07 00:00:00.000000000 Z
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.21
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.21
26
+ version: 0.4.37
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: tls_test_kit
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -430,7 +430,7 @@ licenses:
430
430
  metadata:
431
431
  homepage_uri: https://github.com/inferno-framework/davinci-plan-net-test-kit
432
432
  source_code_uri: https://github.com/inferno-framework/davinci-plan-net-test-kit
433
- post_install_message:
433
+ post_install_message:
434
434
  rdoc_options: []
435
435
  require_paths:
436
436
  - lib
@@ -446,7 +446,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
446
446
  version: '0'
447
447
  requirements: []
448
448
  rubygems_version: 3.3.7
449
- signing_key:
449
+ signing_key:
450
450
  specification_version: 4
451
451
  summary: DaVinci Plan Net Test Kit
452
452
  test_files: []