davinci_crd_test_kit 0.11.1 → 0.12.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 970eb61c1075868a3d84497e1765c2b67c02a8bf61e0005fe0700c4df15984cb
4
- data.tar.gz: 799e551ca2d70bf6ca6ffb539ebd8832ec638c04cdfcc5b3206e58df42d7a86f
3
+ metadata.gz: 127edba8a287013916c1d2253e75adc7f5a294a3f7f728c55eac90f0af98f971
4
+ data.tar.gz: 72e7fa073aff5b9883e676eba4cd6fbbf0247c236b17bdb16d1063fcb7ada625
5
5
  SHA512:
6
- metadata.gz: 854c86c38eacd5cca3c40253da23625f9597b317a09ab406e341930a1571018364bca1bc6b61237862b5019491ffb9ac231de11f7bfe17021819a7d68a21f9ef
7
- data.tar.gz: 7f8d00e32b5b10a3fd89f15e1e3eff2369c7fd52e58caf065d47778e19eb509244f36ca385bd1435032f0b96d94e285a9ea754b94b6cce582619c25be5e07d81
6
+ metadata.gz: deb2fe6592efa6eba5f614766f28eb69d5a357ceced62933c5f86a93e2570d7e296c63ca9c3a4434a240f2e7d3f5489b887daee40d36a46587da0732364eb19b
7
+ data.tar.gz: '0268515d52e9f623acd3c97ce09acf30c95cadb48eb87361a0bfce939288d6d3038e285bd020647526d542334149caa8bb013511266c07ec2e4305c476f7249b'
@@ -17,34 +17,16 @@
17
17
  "value": "<%= ENV.fetch('INFERNO_REFERENCE_SERVER_URI', 'https://inferno-qa.healthit.gov') %>/reference-server/r4"
18
18
  },
19
19
  {
20
- "name": "ehr_smart_credentials",
20
+ "name": "smart_auth_info",
21
21
  "optional": true,
22
22
  "title": "OAuth Credentials",
23
- "type": "oauth_credentials",
23
+ "type": "auth_info",
24
24
  "value": {
25
+ "auth_type": "public",
25
26
  "access_token": "SAMPLE_TOKEN",
26
- "refresh_token": "",
27
- "expires_in": "",
28
- "client_id": "",
29
- "client_secret": "",
30
- "token_url": ""
27
+ "client_id": "SAMPLE_PUBLIC_CLIENT_ID"
31
28
  }
32
29
  },
33
- {
34
- "name": "ehr_client_id",
35
- "description": "Client ID provided during registration of Inferno as an EHR launch application",
36
- "title": "EHR Launch Client ID",
37
- "type": "text",
38
- "value": "SAMPLE_PUBLIC_CLIENT_ID"
39
- },
40
- {
41
- "name": "ehr_requested_scopes",
42
- "default": "launch openid fhirUser offline_access user/*.rs",
43
- "description": "OAuth 2.0 scope provided by system to enable all required functionality",
44
- "title": "EHR Launch Scope",
45
- "type": "textarea",
46
- "value": "launch openid fhirUser offline_access user/*.rs"
47
- },
48
30
  {
49
31
  "name": "patient_ids",
50
32
  "description": "Comma separated list of Patient IDs that in sum contain all MUST SUPPORT elements",
@@ -42,6 +42,24 @@ module DaVinciCRDTestKit
42
42
  Capabilities tests.
43
43
  )
44
44
 
45
+ config(
46
+ inputs: {
47
+ smart_auth_info: {
48
+ name: :smart_auth_info,
49
+ title: 'EHR Launch Credentials',
50
+ options: {
51
+ mode: 'auth',
52
+ components: [
53
+ Inferno::DSL::AuthInfo.default_auth_type_component_without_backend_services
54
+ ]
55
+ }
56
+ }
57
+ },
58
+ outputs: {
59
+ smart_auth_info: { name: :smart_auth_info }
60
+ }
61
+ )
62
+
45
63
  group from: :smart_discovery do
46
64
  required_suite_options CRDOptions::SMART_1_REQUIREMENT
47
65
  run_as_group
@@ -107,11 +125,7 @@ module DaVinciCRDTestKit
107
125
  optional
108
126
  config(
109
127
  inputs: {
110
- id_token: { name: :ehr_id_token },
111
- client_id: { name: :ehr_client_id },
112
- requested_scopes: { name: :ehr_requested_scopes },
113
- access_token: { name: :ehr_access_token },
114
- smart_credentials: { name: :ehr_smart_credentials }
128
+ id_token: { name: :ehr_id_token }
115
129
  }
116
130
  )
117
131
  end
@@ -121,9 +135,6 @@ module DaVinciCRDTestKit
121
135
  optional
122
136
  config(
123
137
  inputs: {
124
- refresh_token: { name: :ehr_refresh_token },
125
- client_id: { name: :ehr_client_id },
126
- client_secret: { name: :ehr_client_secret },
127
138
  received_scopes: { name: :ehr_received_scopes }
128
139
  }
129
140
  )
@@ -158,14 +169,15 @@ module DaVinciCRDTestKit
158
169
  * [VisionPrescription](https://hl7.org/fhir/us/davinci-crd/STU2/CapabilityStatement-crd-client.html#VisionPrescription1-17)
159
170
  )
160
171
  input :url
161
- input :ehr_smart_credentials,
162
- type: :oauth_credentials,
172
+ input :smart_auth_info,
173
+ type: :auth_info,
163
174
  title: 'OAuth Credentials',
175
+ options: { mode: 'access' },
164
176
  optional: true
165
177
 
166
178
  fhir_client do
167
179
  url :url
168
- oauth_credentials :ehr_smart_credentials
180
+ auth_info :smart_auth_info
169
181
  end
170
182
 
171
183
  group do
@@ -1,4 +1,4 @@
1
1
  module DaVinciCRDTestKit
2
- VERSION = '0.11.1'.freeze
3
- LAST_UPDATED = '2025-03-18'.freeze # TODO: update next release
2
+ VERSION = '0.12.0'.freeze
3
+ LAST_UPDATED = '2025-03-21'.freeze # TODO: update next release
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: davinci_crd_test_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen MacVicar
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2025-03-18 00:00:00.000000000 Z
13
+ date: 2025-03-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: inferno_core
@@ -32,14 +32,14 @@ dependencies:
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: 0.5.0
35
+ version: 0.6.0
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: 0.5.0
42
+ version: 0.6.0
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: tls_test_kit
45
45
  requirement: !ruby/object:Gem::Requirement