davinci_pdex_test_kit 0.9.3 → 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: c7c68b12094b58df6230b268adef15026ec39cd5a1d1e274012db329adbbdf2b
4
- data.tar.gz: 511ca99c7d69284852ce7f75c2fb72f64299ea58c3ba45409bce4063bcf83e13
3
+ metadata.gz: 24f9510b1d2105f4b1199d572e887929941fb34ee15a09ccb08faa34558c0561
4
+ data.tar.gz: caa1b93a05c412f9a75949dcbea9f0840fe18a43c195a41a76b6dc30a4f8caf5
5
5
  SHA512:
6
- metadata.gz: 578782fb0b7452ae3c42e908007f2581762835a8480c758e0dc9d4b2f68524e9913723131d31790ef44ec81c9f5f169698441862307524826c0e6ae97577bc6f
7
- data.tar.gz: fc5c8cb40f8cc43306b727034fa9bfd9f56592fbe78fc14b38a0a8a9ce8771b747d1cc645d7e5e25bafb5448e5c9fc0184985c2f688120dd3b33cb4b779a225c
6
+ metadata.gz: f14278dd56909c49768c2fc16578dd199a0e5f200af4c12a4eff4ad282eacd6e91ade0b7ed39778cd80b788e8835566fba6db642ec099028064d01e7751444a5
7
+ data.tar.gz: fc7b2623686c52477fdb32973b7bcf23ae103eb5eccd82c2da1ffe99626380497f48e5d30a64c0fa4c37ec228c2eb51f9954af99e75b7c1f672394617cdbda68
@@ -17,7 +17,7 @@ module DaVinciPDexTestKit
17
17
  run do
18
18
  skip_if scratch[:Patient].nil?, "No requests made for Patient resources"
19
19
 
20
- assert scratch[:Patient].any? {|resource| resource.id == 'pdex-Patient'}, "Unable to find expected resource: 999"
20
+ assert scratch[:Patient].any? {|resource| resource.id == '999'}, "Unable to find expected resource: 999"
21
21
  end
22
22
  end
23
23
  end
@@ -51,9 +51,33 @@ module DaVinciPDexTestKit
51
51
  !test.config.options[:accepts_multiple_requests]
52
52
  end
53
53
 
54
- # All FHIR validation requests will use this FHIR validator
55
- validator do
56
- url ENV.fetch('VALIDATOR_URL')
54
+ links [
55
+ {
56
+ label: 'Report Issue',
57
+ url: 'https://github.com/inferno-framework/davinci-pdex-test-kit/issues'
58
+ },
59
+ {
60
+ label: 'Open Source',
61
+ url: 'https://github.com/inferno-framework/davinci-pdex-test-kit'
62
+ },
63
+ {
64
+ label: 'Download',
65
+ url: 'https://github.com/inferno-framework/davinci-pdex-test-kit/releases'
66
+ },
67
+ {
68
+ label: 'Implementation Guide',
69
+ url: 'https://hl7.org/fhir/us/davinci-pdex/STU2/'
70
+ }
71
+ ]
72
+
73
+ # Hl7 Validator Wrapper:
74
+ fhir_resource_validator do
75
+ igs 'hl7.fhir.us.davinci-pdex#2.0.0'
76
+ # hrex 1.0.0 and other dependencies will auto-load
77
+
78
+ exclude_message do |message|
79
+ message.message.match?(/\A\S+: \S+: URL value '.*' does not resolve/)
80
+ end
57
81
  end
58
82
 
59
83
  record_response_route :post, TOKEN_PATH, AUTH_TAG, method(:token_response) do |request|
@@ -149,4 +173,4 @@ module DaVinciPDexTestKit
149
173
  # end
150
174
  end
151
175
  end
152
-
176
+
@@ -84,33 +84,36 @@ module DaVinciPDexTestKit
84
84
  end
85
85
  end
86
86
 
87
- test do
88
- title %{
89
- The resources returned SHALL include all the data covered by the meaningful use common data elements as
90
- defined in the US Core Implementation Guide
91
- }
92
- description %{
93
- See FHIR R4 documentation for [patient-everything](https://hl7.org/fhir/R4/patient-operation-everything.html).
94
- The US realm has now replaced meaningful use common data elements with [USCDI](https://www.healthit.gov/isa/united-states-core-data-interoperability-uscdi).
95
87
 
96
- This test currently uses `meta.profile` to validate that a resource is compliant with its intended profile,
97
- which includes checking for the profile's required elements.
88
+ # TODO: convert to attestation
89
+ # test do
90
+ # title %{
91
+ # The resources returned SHALL include all the data covered by the meaningful use common data elements as
92
+ # defined in the US Core Implementation Guide
93
+ # }
94
+ # description %{
95
+ # See FHIR R4 documentation for [patient-everything](https://hl7.org/fhir/R4/patient-operation-everything.html).
96
+ # The US realm has now replaced meaningful use common data elements with [USCDI](https://www.healthit.gov/isa/united-states-core-data-interoperability-uscdi).
98
97
 
99
- It is the servers responsiblity to return all resources necessary to cover all USDCI elements known by
100
- the server.
101
- }
98
+ # This test currently uses `meta.profile` to validate that a resource is compliant with its intended profile,
99
+ # which includes checking for the profile's required elements.
102
100
 
103
- uses_request :pdex_patient_everything
101
+ # It is the servers responsiblity to return all resources necessary to cover all USDCI elements known by
102
+ # the server.
103
+ # }
104
104
 
105
- run do
106
- skip_if resource.resourceType != 'Bundle'
105
+ # uses_request :pdex_patient_everything
107
106
 
108
- (0...resource.entry.length).each do |i|
109
- assert_valid_resource(resource: resource.entry[i].resource,
110
- profile_url: resource.entry[i].resource.meta.profile)
111
- end
112
- end
113
- end
107
+ # run do
108
+ # skip_if resource.resourceType != 'Bundle'
109
+
110
+ # (0...resource.entry.length).each do |i|
111
+ # assert_valid_resource(resource: resource.entry[i].resource,
112
+ # profile_url: resource.entry[i].resource.meta.profile
113
+ # )
114
+ # end
115
+ # end
116
+ # end
114
117
 
115
118
  # TODO: make attestations clearer, possibly change UI
116
119
  # test do
@@ -16,6 +16,25 @@ module DaVinciPDexTestKit
16
16
  title 'Da Vinci PDex Payer Server Test Suite'
17
17
  description File.read(File.join(__dir__, 'docs', 'payer_server_suite_description_v200.md'))
18
18
 
19
+ links [
20
+ {
21
+ label: 'Report Issue',
22
+ url: 'https://github.com/inferno-framework/davinci-pdex-test-kit/issues'
23
+ },
24
+ {
25
+ label: 'Open Source',
26
+ url: 'https://github.com/inferno-framework/davinci-pdex-test-kit'
27
+ },
28
+ {
29
+ label: 'Download',
30
+ url: 'https://github.com/inferno-framework/davinci-pdex-test-kit/releases'
31
+ },
32
+ {
33
+ label: 'Implementation Guide',
34
+ url: 'https://hl7.org/fhir/us/davinci-pdex/STU2/'
35
+ }
36
+ ]
37
+
19
38
  input :url,
20
39
  title: 'FHIR Server Base Url'
21
40
 
@@ -35,9 +54,11 @@ module DaVinciPDexTestKit
35
54
  ].freeze
36
55
 
37
56
  VERSION_SPECIFIC_MESSAGE_FILTERS = [].freeze
38
-
39
- validator do
40
- url ENV.fetch('VALIDATOR_URL')
57
+
58
+ # Hl7 Validator Wrapper:
59
+ fhir_resource_validator do
60
+ igs 'hl7.fhir.us.davinci-pdex#2.0.0'
61
+ # hrex 1.0.0 and other dependencies will auto-load
41
62
 
42
63
  # Copy messages limit from Bulk Data Export tests
43
64
  message_filters = VALIDATION_MESSAGE_FILTERS + VERSION_SPECIFIC_MESSAGE_FILTERS
@@ -11,6 +11,25 @@ module DaVinciPDexTestKit
11
11
  guide. Inferno will act as a payer server that the
12
12
  system under test will connect to and retrieve data from.
13
13
  )
14
+
15
+ links [
16
+ {
17
+ label: 'Report Issue',
18
+ url: 'https://github.com/inferno-framework/davinci-pdex-test-kit/issues'
19
+ },
20
+ {
21
+ label: 'Open Source',
22
+ url: 'https://github.com/inferno-framework/davinci-pdex-test-kit'
23
+ },
24
+ {
25
+ label: 'Download',
26
+ url: 'https://github.com/inferno-framework/davinci-pdex-test-kit/releases'
27
+ },
28
+ {
29
+ label: 'Implementation Guide',
30
+ url: 'https://hl7.org/fhir/us/davinci-pdex/STU2/'
31
+ }
32
+ ]
14
33
 
15
34
  # These inputs will be available to all tests in this suite
16
35
  input :url,
@@ -27,10 +46,16 @@ module DaVinciPDexTestKit
27
46
  oauth_credentials :credentials
28
47
  end
29
48
 
30
- # All FHIR validation requsets will use this FHIR validator
31
- validator do
32
- url ENV.fetch('VALIDATOR_URL')
49
+ # Hl7 Validator Wrapper:
50
+ fhir_resource_validator do
51
+ igs 'hl7.fhir.us.davinci-pdex#2.0.0'
52
+ # hrex 1.0.0 and other dependencies will auto-load
53
+
54
+ exclude_message do |message|
55
+ message.message.match?(/\A\S+: \S+: URL value '.*' does not resolve/)
56
+ end
57
+
33
58
  end
34
59
  end
35
- end
36
-
60
+ end
61
+
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DaVinciPDexTestKit
4
- VERSION = '0.9.3'
4
+ VERSION = '0.10.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: davinci_pdex_test_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Naden
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-06-10 00:00:00.000000000 Z
13
+ date: 2024-06-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: inferno_core