davinci_dtr_test_kit 0.15.2 → 0.16.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: 7c7428bcd7709d7160839efbd4fc1e2b35f2c3a1dc6dea14f4e0a462a6b37750
4
- data.tar.gz: 987d6a15760c6234c951349ba93d1d83fbe1e42371f205d6fd8e18d068b9840e
3
+ metadata.gz: f4f5736e9c82025978c6f8a37e0d4c7a1c6f01452e0df5922b32a20f3dc15120
4
+ data.tar.gz: 3d7fe398e9cfde54ace74cf406642be99e661fda20ca22283d76d5015a97f996
5
5
  SHA512:
6
- metadata.gz: d03822125aa5664bec8b27dfb8f44f9463fdc561514ae3bd7d4e113ebbf12b532a8e685169013ae45969bf37d26f30456c7e7ed6eccee332ef1cf2e60fafec77
7
- data.tar.gz: 899bf8ef19cdeabe111021aff17b1bbd2adb956b9e9eac89b2b1a80eb14e9970723f372ed4e4fdddfe862f97cff2b0a7fb272b596d630716b65cd31abb03375f
6
+ metadata.gz: c4e6850d04fae9249dba2211774e0d609467e0ab1628245330b3c50078ddeac2083457ca177e82ee31e0dfa1ffd1e8625afd377b5f16626d2491ec1c43bf83ff
7
+ data.tar.gz: 82f21e5a963295c5bca351e252a8ce519e00a035a3f0f7de4e2bff686996bff4a56c91fe977ee7d2eaaf96a65153745e6d65786ab099bb61ab8e16f686ea4a01
@@ -18,18 +18,15 @@
18
18
  "value": "SAMPLE_PUBLIC_CLIENT_ID"
19
19
  },
20
20
  {
21
- "name": "smart_credentials",
22
- "type": "oauth_credentials",
21
+ "name": "smart_auth_info",
22
+ "type": "auth_info",
23
23
  "title": "OAuth Credentials",
24
24
  "optional": true,
25
- "value": "{\"access_token\":\"SAMPLE_TOKEN\"}"
26
- },
27
- {
28
- "name": "credentials",
29
- "type": "oauth_credentials",
30
- "title": "OAuth Credentials",
31
- "optional": true,
32
- "value": "{\"access_token\":\"SAMPLE_TOKEN\"}"
25
+ "value": {
26
+ "auth_type": "public",
27
+ "access_token": "SAMPLE_TOKEN",
28
+ "client_id": "SAMPLE_PUBLIC_CLIENT_ID"
29
+ }
33
30
  },
34
31
  {
35
32
  "name": "patient_ids",
@@ -24,10 +24,13 @@
24
24
  "value": "{\n \"resourceType\": \"Parameters\",\n \"parameter\": [\n {\n \"name\": \"order\",\n \"resource\": {\n \"resourceType\": \"DeviceRequest\",\n \"id\": \"devreq015\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-04-15T14:44:59.870-04:00\",\n \"source\": \"#kU2Z2iJYEYSIu7mS\",\n \"profile\": [\n \"http://hl7.org/fhir/us/davinci-crd/R4/StructureDefinition/profile-devicerequest-r4\"\n ]\n },\n \"identifier\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0203\",\n \"code\": \"PLAC\"\n }\n ]\n },\n \"value\": \"b59fe936-b381-4e5c-80c0-9c13ad6c5a89\"\n }\n ],\n \"status\": \"draft\",\n \"intent\": \"original-order\",\n \"codeCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"https://bluebutton.cms.gov/resources/codesystem/hcpcs\",\n \"code\": \"E0424\",\n \"display\": \"StationaryCompressedGaseousOxygenSystem,Rental\"\n }\n ]\n },\n \"subject\": {\n \"reference\": \"Patient/pat015\"\n },\n \"occurrenceTiming\": {\n \"repeat\": {\n \"boundsDuration\": {\n \"value\": 8,\n \"unit\": \"mo\",\n \"system\": \"http://unitsofmeasure.org\",\n \"code\": \"mo\"\n }\n },\n \"code\": {\n \"text\": \"DuringsleepANDDuringexertion\"\n }\n },\n \"authoredOn\": \"2023-01-01T00:00:00Z\",\n \"requester\": {\n \"reference\": \"Practitioner/pra-hfairchild\"\n },\n \"performer\": {\n \"reference\": \"Practitioner/pra1234\"\n },\n \"insurance\": [\n {\n \"reference\": \"Coverage/cov015\"\n }\n ]\n }\n },\n {\n \"name\": \"coverage\",\n \"resource\": {\n \"resourceType\": \"Coverage\",\n \"id\": \"cov015\",\n \"meta\": {\n \"versionId\": \"1\",\n \"lastUpdated\": \"2024-04-02T13:04:57.203-04:00\",\n \"source\": \"#UAfJJ1Cvq8FrI4FL\"\n },\n \"status\": \"active\",\n \"subscriberId\": \"10A3D58WH456\",\n \"beneficiary\": {\n \"reference\": \"Patient/pat015\"\n },\n \"relationship\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/subscriber-relationship\",\n \"code\": \"self\"\n }\n ]\n },\n \"payor\": [\n {\n \"reference\": \"Organization/org1234\"\n }\n ],\n \"class\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://hl7.org/fhir/coverage-class\",\n \"code\": \"plan\"\n }\n ]\n },\n \"value\": \"MedicarePartA\"\n }\n ]\n }\n }\n ]\n}"
25
25
  },
26
26
  {
27
- "name": "credentials",
27
+ "name": "smart_auth_info",
28
28
  "title": "OAuth Credentials",
29
- "type": "oauth_credentials",
30
- "value": "{\"access_token\":\"eyJhbGciOiJub25lIn0.eyJpbmZlcm5vX2NsaWVudF9pZCI6InNhbXBsZSJ9\"}"
29
+ "type": "auth_info",
30
+ "value": {
31
+ "auth_type": "backend_services",
32
+ "access_token": "eyJhbGciOiJub25lIn0.eyJpbmZlcm5vX2NsaWVudF9pZCI6InNhbXBsZSJ9"
33
+ }
31
34
  }
32
35
  ]
33
36
  }
@@ -65,6 +65,24 @@ module DaVinciDTRTestKit
65
65
  group do
66
66
  title 'Authorization'
67
67
 
68
+ config(
69
+ inputs: {
70
+ smart_auth_info: {
71
+ name: :smart_auth_info,
72
+ title: 'EHR Launch Credentials',
73
+ options: {
74
+ mode: 'auth',
75
+ components: [
76
+ Inferno::DSL::AuthInfo.default_auth_type_component_without_backend_services
77
+ ]
78
+ }
79
+ }
80
+ },
81
+ outputs: {
82
+ smart_auth_info: { name: :smart_auth_info }
83
+ }
84
+ )
85
+
68
86
  group from: :smart_discovery_stu2 do
69
87
  required_suite_options DTROptions::SMART_2_REQUIREMENT
70
88
  run_as_group
@@ -98,8 +116,7 @@ module DaVinciDTRTestKit
98
116
  id_token: { name: :id_token },
99
117
  client_id: { name: :client_id },
100
118
  requested_scopes: { name: :requested_scopes },
101
- access_token: { name: :access_token },
102
- smart_credentials: { name: :smart_credentials }
119
+ access_token: { name: :access_token }
103
120
  }
104
121
  }
105
122
  end
@@ -117,6 +134,17 @@ module DaVinciDTRTestKit
117
134
  title: 'FHIR Server Base Url',
118
135
  description: 'URL of the target DTR Light EHR'
119
136
 
137
+ config(
138
+ inputs: {
139
+ smart_auth_info: {
140
+ title: 'OAuth Credentials',
141
+ options: {
142
+ mode: 'access'
143
+ }
144
+ }
145
+ }
146
+ )
147
+
120
148
  group from: :'us_core_v311-us_core_v311_fhir_api',
121
149
  run_as_group: true,
122
150
  verifies_requirements: ['hl7.fhir.us.davinci-dtr_2.0.1@2', 'hl7.fhir.us.davinci-dtr_2.0.1@281']
@@ -131,15 +159,14 @@ module DaVinciDTRTestKit
131
159
  )
132
160
  run_as_group
133
161
 
134
- input :smart_credentials,
135
- title: 'OAuth Credentials',
136
- type: :oauth_credentials,
162
+ input :smart_auth_info,
163
+ type: :auth_info,
137
164
  optional: true
138
165
 
139
166
  # All FHIR requests in this suite will use this FHIR client
140
167
  fhir_client do
141
168
  url :url
142
- oauth_credentials :smart_credentials
169
+ auth_info :smart_auth_info
143
170
  end
144
171
 
145
172
  group from: :questionnaire_response_group
@@ -71,9 +71,9 @@ module DaVinciDTRTestKit
71
71
  title: 'Custom Endpoint for Accessing a Particular Resource',
72
72
  description: 'Either Flow (optional)'
73
73
 
74
- input :credentials,
74
+ input :smart_auth_info,
75
75
  title: 'OAuth Credentials',
76
- type: :oauth_credentials,
76
+ type: :auth_info,
77
77
  optional: true
78
78
 
79
79
  input_order :retrieval_method,
@@ -83,12 +83,12 @@ module DaVinciDTRTestKit
83
83
  :initial_static_questionnaire_request,
84
84
  :initial_adaptive_questionnaire_request,
85
85
  :next_question_requests,
86
- :credentials
86
+ :smart_auth_info
87
87
 
88
88
  # All FHIR requests in this suite will use this FHIR client
89
89
  fhir_client do
90
90
  url :url
91
- oauth_credentials :credentials
91
+ auth_info :smart_auth_info
92
92
  end
93
93
 
94
94
  # Hl7 Validator Wrapper:
@@ -13,8 +13,12 @@ module DaVinciDTRTestKit
13
13
  session_id = result.test_session_id
14
14
  session_data = Inferno::Repositories::SessionData.new
15
15
  url_input = session_data.load(test_session_id: session_id, name: 'url')
16
- credentials_input = session_data.load(test_session_id: session_id, name: 'credentials',
17
- type: 'oauth_credentials')
16
+ credentials_input =
17
+ session_data.load(
18
+ test_session_id: session_id,
19
+ name: 'smart_auth_info',
20
+ type: 'auth_info'
21
+ )
18
22
 
19
23
  client = FHIR::Client.new(url_input)
20
24
  client.default_json
@@ -14,8 +14,12 @@ module DaVinciDTRTestKit
14
14
  session_data = Inferno::Repositories::SessionData.new
15
15
  endpoint_input = session_data.load(test_session_id: session_id, name: 'custom_endpoint')
16
16
  url_input = session_data.load(test_session_id: session_id, name: 'url')
17
- credentials_input = session_data.load(test_session_id: session_id, name: 'credentials',
18
- type: 'oauth_credentials')
17
+ credentials_input =
18
+ session_data.load(
19
+ test_session_id: session_id,
20
+ name: 'smart_auth_info',
21
+ type: 'auth_info'
22
+ )
19
23
 
20
24
  client = FHIR::Client.new(url_input)
21
25
  client.default_json
@@ -59,7 +59,7 @@ module DaVinciDTRTestKit
59
59
  :access_token,
60
60
  :initial_adaptive_questionnaire_request,
61
61
  :next_question_requests,
62
- :credentials
62
+ :smart_auth_info
63
63
 
64
64
  # receive client request
65
65
  test from: :payer_server_questionnaire_request,
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DaVinciDTRTestKit
4
- VERSION = '0.15.2'
5
- LAST_UPDATED = '2025-03-11'
4
+ VERSION = '0.16.0'
5
+ LAST_UPDATED = '2025-03-21'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: davinci_dtr_test_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.2
4
+ version: 0.16.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: 2025-03-11 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
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 0.6.4
21
+ version: 0.6.7
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: 0.6.4
28
+ version: 0.6.7
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: jwt
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -46,14 +46,14 @@ dependencies:
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: 0.5.0
49
+ version: 0.6.0
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - "~>"
55
55
  - !ruby/object:Gem::Version
56
- version: 0.5.0
56
+ version: 0.6.0
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: tls_test_kit
59
59
  requirement: !ruby/object:Gem::Requirement
@@ -74,14 +74,14 @@ dependencies:
74
74
  requirements:
75
75
  - - "~>"
76
76
  - !ruby/object:Gem::Version
77
- version: 0.10.0
77
+ version: 0.11.0
78
78
  type: :runtime
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - "~>"
83
83
  - !ruby/object:Gem::Version
84
- version: 0.10.0
84
+ version: 0.11.0
85
85
  description: Test Kit for the Da Vinci Documentation Templates and Rules (DTR) FHIR
86
86
  Implementation Guide
87
87
  email: