us_core_test_kit 0.10.1 → 0.11.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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/config/presets/inferno_reference_server_311_preset.json +7 -35
  3. data/config/presets/inferno_reference_server_400_preset.json +7 -35
  4. data/config/presets/inferno_reference_server_501_preset.json +7 -35
  5. data/config/presets/inferno_reference_server_610_preset.json +25 -35
  6. data/config/presets/inferno_reference_server_700_preset.json +25 -35
  7. data/lib/us_core_test_kit/custom_groups/base_smart_granular_scopes_group.rb +20 -20
  8. data/lib/us_core_test_kit/custom_groups/smart_app_launch_group.rb +6 -42
  9. data/lib/us_core_test_kit/custom_groups/smart_ehr_launch_stu1.rb +26 -12
  10. data/lib/us_core_test_kit/custom_groups/smart_ehr_launch_stu2.rb +26 -12
  11. data/lib/us_core_test_kit/custom_groups/smart_ehr_launch_stu2_2.rb +26 -12
  12. data/lib/us_core_test_kit/custom_groups/smart_scopes_constants.rb +6 -0
  13. data/lib/us_core_test_kit/custom_groups/smart_standalone_launch_stu1_group.rb +27 -13
  14. data/lib/us_core_test_kit/custom_groups/smart_standalone_launch_stu2_2_group.rb +27 -13
  15. data/lib/us_core_test_kit/custom_groups/smart_standalone_launch_stu2_group.rb +27 -13
  16. data/lib/us_core_test_kit/custom_groups/v3.1.1/capability_statement_group.rb +1 -9
  17. data/lib/us_core_test_kit/custom_groups/v3.1.1/resource_support_test.rb +1 -1
  18. data/lib/us_core_test_kit/custom_groups/v4.0.0/capability_statement_group.rb +1 -9
  19. data/lib/us_core_test_kit/custom_groups/v5.0.1/capability_statement_group.rb +1 -9
  20. data/lib/us_core_test_kit/custom_groups/v6.1.0/capability_statement_group.rb +1 -9
  21. data/lib/us_core_test_kit/custom_groups/v6.1.0/smart_granular_scopes_group.rb +22 -6
  22. data/lib/us_core_test_kit/custom_groups/v7.0.0/capability_statement_group.rb +1 -9
  23. data/lib/us_core_test_kit/custom_groups/v7.0.0/smart_granular_scopes_group.rb +22 -6
  24. data/lib/us_core_test_kit/generated/v3.1.1/us_core_test_suite.rb +3 -3
  25. data/lib/us_core_test_kit/generated/v4.0.0/us_core_test_suite.rb +3 -3
  26. data/lib/us_core_test_kit/generated/v5.0.1/us_core_test_suite.rb +3 -3
  27. data/lib/us_core_test_kit/generated/v6.1.0/granular_scopes1_group.rb +3 -3
  28. data/lib/us_core_test_kit/generated/v6.1.0/granular_scopes2_group.rb +3 -3
  29. data/lib/us_core_test_kit/generated/v6.1.0/us_core_test_suite.rb +3 -3
  30. data/lib/us_core_test_kit/generated/v7.0.0/granular_scopes1_group.rb +3 -3
  31. data/lib/us_core_test_kit/generated/v7.0.0/granular_scopes2_group.rb +3 -3
  32. data/lib/us_core_test_kit/generated/v7.0.0/us_core_test_suite.rb +3 -3
  33. data/lib/us_core_test_kit/generator/templates/granular_scope_group.rb.erb +3 -3
  34. data/lib/us_core_test_kit/generator/templates/suite.rb.erb +3 -3
  35. data/lib/us_core_test_kit/version.rb +2 -2
  36. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9cfc69a96024c39450f31a67620f263c113ef1dad361200e5458da181741985
4
- data.tar.gz: 6adae46602da4bcaba0b302dae8e8176ccfb9ccb1dbbaef295644a57b98b6d31
3
+ metadata.gz: c5c1144b0951c2ba438152f25553f8a4eff37301e232b17dc149030bbe5b23ff
4
+ data.tar.gz: 0f790cf343a074d72240ffe6f83ebc8fdab641b7a08601b2d51f4d601d8f7889
5
5
  SHA512:
6
- metadata.gz: 438cf65702f3df6f213ab994b3c73d964a575d70c7c0b26b82266b315852fa1217c614e97a7b10efa718941fb480f0fc2a28c12e2c23ed2deb1ce84878053a20
7
- data.tar.gz: 26b6615e1dbf4c2be906c6d9072f4c03bad43438a1c26de987914a2785142d539876c03ea5f0ac7d6602ea08003971d2d2734158fce9090ba26605786c42b90c
6
+ metadata.gz: 7f4fbe3dd3524a0983715bdff2a6f6a03ee370392e4bd50346d95eaaca46144a566b6497c818265fb602a577a9329bfe2cb1ee63723eb68a4510e0990a407b27
7
+ data.tar.gz: f52cd5e1baa310753831c0825f226e89c7b4fddf74e4fdaff0f797f17c6a5c30f3de24e8703e4a1ea6bf22f65144e12cd5f54bcb9732d8616e4685badf9e3d36
@@ -11,41 +11,13 @@
11
11
  "value": "https://inferno.healthit.gov/reference-server/r4"
12
12
  },
13
13
  {
14
- "name": "smart_credentials",
15
- "type": "oauth_credentials",
16
- "title": "OAuth Credentials",
17
- "optional": true,
18
- "value": "{\"access_token\":\"SAMPLE_TOKEN\"}"
19
- },
20
- {
21
- "name": "standalone_client_id",
22
- "type": "text",
23
- "title": "Standalone Client ID",
24
- "description": "Client ID provided during registration of Inferno as a standalone application",
25
- "value": "SAMPLE_CONFIDENTIAL_CLIENT_ID"
26
- },
27
- {
28
- "name": "standalone_client_secret",
29
- "type": "text",
30
- "title": "Standalone Client Secret",
31
- "description": "Client Secret provided during registration of Inferno as a standalone application",
32
- "value": "SAMPLE_CONFIDENTIAL_CLIENT_SECRET"
33
- },
34
- {
35
- "name": "ehr_client_id",
36
- "type": "text",
37
- "value": "SAMPLE_CONFIDENTIAL_CLIENT_ID"
38
- },
39
- {
40
- "name": "ehr_client_secret",
41
- "type": "text",
42
- "optional": false,
43
- "value": "SAMPLE_CONFIDENTIAL_CLIENT_SECRET"
44
- },
45
- {
46
- "name": "client_auth_type",
47
- "type": "text",
48
- "value": "confidential_symmetric"
14
+ "name": "smart_auth_info",
15
+ "type": "auth_info",
16
+ "value": {
17
+ "auth_type": "public",
18
+ "use_discovery": "true",
19
+ "client_id": "SAMPLE_PUBLIC_CLIENT_ID"
20
+ }
49
21
  },
50
22
  {
51
23
  "name": "patient_ids",
@@ -11,41 +11,13 @@
11
11
  "value": "https://inferno.healthit.gov/reference-server/r4"
12
12
  },
13
13
  {
14
- "name": "smart_credentials",
15
- "type": "oauth_credentials",
16
- "title": "OAuth Credentials",
17
- "optional": true,
18
- "value": "{\"access_token\":\"SAMPLE_TOKEN\"}"
19
- },
20
- {
21
- "name": "standalone_client_id",
22
- "type": "text",
23
- "title": "Standalone Client ID",
24
- "description": "Client ID provided during registration of Inferno as a standalone application",
25
- "value": "SAMPLE_CONFIDENTIAL_CLIENT_ID"
26
- },
27
- {
28
- "name": "standalone_client_secret",
29
- "type": "text",
30
- "title": "Standalone Client Secret",
31
- "description": "Client Secret provided during registration of Inferno as a standalone application",
32
- "value": "SAMPLE_CONFIDENTIAL_CLIENT_SECRET"
33
- },
34
- {
35
- "name": "ehr_client_id",
36
- "type": "text",
37
- "value": "SAMPLE_CONFIDENTIAL_CLIENT_ID"
38
- },
39
- {
40
- "name": "ehr_client_secret",
41
- "type": "text",
42
- "optional": false,
43
- "value": "SAMPLE_CONFIDENTIAL_CLIENT_SECRET"
44
- },
45
- {
46
- "name": "client_auth_type",
47
- "type": "text",
48
- "value": "confidential_symmetric"
14
+ "name": "smart_auth_info",
15
+ "type": "auth_info",
16
+ "value": {
17
+ "auth_type": "public",
18
+ "use_discovery": "true",
19
+ "client_id": "SAMPLE_PUBLIC_CLIENT_ID"
20
+ }
49
21
  },
50
22
  {
51
23
  "name": "patient_ids",
@@ -11,41 +11,13 @@
11
11
  "value": "https://inferno.healthit.gov/reference-server/r4"
12
12
  },
13
13
  {
14
- "name": "smart_credentials",
15
- "type": "oauth_credentials",
16
- "title": "OAuth Credentials",
17
- "optional": true,
18
- "value": "{\"access_token\":\"SAMPLE_TOKEN\"}"
19
- },
20
- {
21
- "name": "standalone_client_id",
22
- "type": "text",
23
- "title": "Standalone Client ID",
24
- "description": "Client ID provided during registration of Inferno as a standalone application",
25
- "value": "SAMPLE_CONFIDENTIAL_CLIENT_ID"
26
- },
27
- {
28
- "name": "standalone_client_secret",
29
- "type": "text",
30
- "title": "Standalone Client Secret",
31
- "description": "Client Secret provided during registration of Inferno as a standalone application",
32
- "value": "SAMPLE_CONFIDENTIAL_CLIENT_SECRET"
33
- },
34
- {
35
- "name": "ehr_client_id",
36
- "type": "text",
37
- "value": "SAMPLE_CONFIDENTIAL_CLIENT_ID"
38
- },
39
- {
40
- "name": "ehr_client_secret",
41
- "type": "text",
42
- "optional": false,
43
- "value": "SAMPLE_CONFIDENTIAL_CLIENT_SECRET"
44
- },
45
- {
46
- "name": "client_auth_type",
47
- "type": "text",
48
- "value": "confidential_symmetric"
14
+ "name": "smart_auth_info",
15
+ "type": "auth_info",
16
+ "value": {
17
+ "auth_type": "public",
18
+ "use_discovery": "true",
19
+ "client_id": "SAMPLE_PUBLIC_CLIENT_ID"
20
+ }
49
21
  },
50
22
  {
51
23
  "name": "patient_ids",
@@ -11,41 +11,13 @@
11
11
  "value": "https://inferno.healthit.gov/reference-server/r4"
12
12
  },
13
13
  {
14
- "name": "smart_credentials",
15
- "type": "oauth_credentials",
16
- "title": "OAuth Credentials",
17
- "optional": true,
18
- "value": "{\"access_token\":\"SAMPLE_TOKEN\"}"
19
- },
20
- {
21
- "name": "standalone_client_id",
22
- "type": "text",
23
- "title": "Standalone Client ID",
24
- "description": "Client ID provided during registration of Inferno as a standalone application",
25
- "value": "SAMPLE_CONFIDENTIAL_CLIENT_ID"
26
- },
27
- {
28
- "name": "standalone_client_secret",
29
- "type": "text",
30
- "title": "Standalone Client Secret",
31
- "description": "Client Secret provided during registration of Inferno as a standalone application",
32
- "value": "SAMPLE_CONFIDENTIAL_CLIENT_SECRET"
33
- },
34
- {
35
- "name": "ehr_client_id",
36
- "type": "text",
37
- "value": "SAMPLE_CONFIDENTIAL_CLIENT_ID"
38
- },
39
- {
40
- "name": "ehr_client_secret",
41
- "type": "text",
42
- "optional": false,
43
- "value": "SAMPLE_CONFIDENTIAL_CLIENT_SECRET"
44
- },
45
- {
46
- "name": "client_auth_type",
47
- "type": "text",
48
- "value": "confidential_symmetric"
14
+ "name": "smart_auth_info",
15
+ "type": "auth_info",
16
+ "value": {
17
+ "auth_type": "public",
18
+ "use_discovery": "true",
19
+ "client_id": "SAMPLE_PUBLIC_CLIENT_ID"
20
+ }
49
21
  },
50
22
  {
51
23
  "name": "patient_ids",
@@ -61,6 +33,24 @@
61
33
  "description": "Enter the code for an Implantable Device type, or multiple codes separated by commas. If blank, Inferno will validate all Device resources against the Implantable Device profile",
62
34
  "optional": true,
63
35
  "value": null
36
+ },
37
+ {
38
+ "name": "granular_scopes_1_auth_info",
39
+ "type": "auth_info",
40
+ "value": {
41
+ "auth_type": "public",
42
+ "use_discovery": "true",
43
+ "client_id": "SAMPLE_PUBLIC_CLIENT_ID"
44
+ }
45
+ },
46
+ {
47
+ "name": "granular_scopes_2_auth_info",
48
+ "type": "auth_info",
49
+ "value": {
50
+ "auth_type": "public",
51
+ "use_discovery": "true",
52
+ "client_id": "SAMPLE_PUBLIC_CLIENT_ID"
53
+ }
64
54
  }
65
55
  ]
66
56
  }
@@ -11,41 +11,13 @@
11
11
  "value": "https://inferno.healthit.gov/reference-server/r4"
12
12
  },
13
13
  {
14
- "name": "smart_credentials",
15
- "type": "oauth_credentials",
16
- "title": "OAuth Credentials",
17
- "optional": true,
18
- "value": "{\"access_token\":\"SAMPLE_TOKEN\"}"
19
- },
20
- {
21
- "name": "standalone_client_id",
22
- "type": "text",
23
- "title": "Standalone Client ID",
24
- "description": "Client ID provided during registration of Inferno as a standalone application",
25
- "value": "SAMPLE_CONFIDENTIAL_CLIENT_ID"
26
- },
27
- {
28
- "name": "standalone_client_secret",
29
- "type": "text",
30
- "title": "Standalone Client Secret",
31
- "description": "Client Secret provided during registration of Inferno as a standalone application",
32
- "value": "SAMPLE_CONFIDENTIAL_CLIENT_SECRET"
33
- },
34
- {
35
- "name": "ehr_client_id",
36
- "type": "text",
37
- "value": "SAMPLE_CONFIDENTIAL_CLIENT_ID"
38
- },
39
- {
40
- "name": "ehr_client_secret",
41
- "type": "text",
42
- "optional": false,
43
- "value": "SAMPLE_CONFIDENTIAL_CLIENT_SECRET"
44
- },
45
- {
46
- "name": "client_auth_type",
47
- "type": "text",
48
- "value": "confidential_symmetric"
14
+ "name": "smart_auth_info",
15
+ "type": "auth_info",
16
+ "value": {
17
+ "auth_type": "public",
18
+ "use_discovery": "true",
19
+ "client_id": "SAMPLE_PUBLIC_CLIENT_ID"
20
+ }
49
21
  },
50
22
  {
51
23
  "name": "patient_ids",
@@ -61,6 +33,24 @@
61
33
  "description": "Enter the code for an Implantable Device type, or multiple codes separated by commas. If blank, Inferno will validate all Device resources against the Implantable Device profile",
62
34
  "optional": true,
63
35
  "value": null
36
+ },
37
+ {
38
+ "name": "granular_scopes_1_auth_info",
39
+ "type": "auth_info",
40
+ "value": {
41
+ "auth_type": "public",
42
+ "use_discovery": "true",
43
+ "client_id": "SAMPLE_PUBLIC_CLIENT_ID"
44
+ }
45
+ },
46
+ {
47
+ "name": "granular_scopes_2_auth_info",
48
+ "type": "auth_info",
49
+ "value": {
50
+ "auth_type": "public",
51
+ "use_discovery": "true",
52
+ "client_id": "SAMPLE_PUBLIC_CLIENT_ID"
53
+ }
64
54
  }
65
55
  ]
66
56
  }
@@ -51,8 +51,8 @@ module USCoreTestKit
51
51
 
52
52
  config(
53
53
  outputs: {
54
- smart_credentials: {
55
- name: :granular_scopes_1_credentials
54
+ smart_auth_info: {
55
+ name: :granular_scopes_1_auth_info
56
56
  }
57
57
  }
58
58
  )
@@ -61,8 +61,8 @@ module USCoreTestKit
61
61
  optional: true,
62
62
  config: {
63
63
  inputs: {
64
- smart_credentials: {
65
- name: :granular_scopes_1_credentials
64
+ smart_auth_info: {
65
+ name: :granular_scopes_1_auth_info
66
66
  }
67
67
  }
68
68
  } do
@@ -80,8 +80,8 @@ module USCoreTestKit
80
80
  optional: true,
81
81
  config: {
82
82
  inputs: {
83
- smart_credentials: {
84
- name: :granular_scopes_1_credentials
83
+ smart_auth_info: {
84
+ name: :granular_scopes_1_auth_info
85
85
  }
86
86
  }
87
87
  } do
@@ -100,8 +100,8 @@ module USCoreTestKit
100
100
  optional: true,
101
101
  config: {
102
102
  inputs: {
103
- smart_credentials: {
104
- name: :granular_scopes_1_credentials
103
+ smart_auth_info: {
104
+ name: :granular_scopes_1_auth_info
105
105
  }
106
106
  }
107
107
  } do
@@ -119,8 +119,8 @@ module USCoreTestKit
119
119
  optional: true,
120
120
  config: {
121
121
  inputs: {
122
- smart_credentials: {
123
- name: :granular_scopes_1_credentials
122
+ smart_auth_info: {
123
+ name: :granular_scopes_1_auth_info
124
124
  }
125
125
  }
126
126
  } do
@@ -148,8 +148,8 @@ module USCoreTestKit
148
148
 
149
149
  config(
150
150
  outputs: {
151
- smart_credentials: {
152
- name: :granular_scopes_2_credentials
151
+ smart_auth_info: {
152
+ name: :granular_scopes_2_auth_info
153
153
  }
154
154
  }
155
155
  )
@@ -159,8 +159,8 @@ module USCoreTestKit
159
159
  optional: true,
160
160
  config: {
161
161
  inputs: {
162
- smart_credentials: {
163
- name: :granular_scopes_2_credentials
162
+ smart_auth_info: {
163
+ name: :granular_scopes_2_auth_info
164
164
  }
165
165
  }
166
166
  } do
@@ -178,8 +178,8 @@ module USCoreTestKit
178
178
  optional: true,
179
179
  config: {
180
180
  inputs: {
181
- smart_credentials: {
182
- name: :granular_scopes_2_credentials
181
+ smart_auth_info: {
182
+ name: :granular_scopes_2_auth_info
183
183
  }
184
184
  }
185
185
  } do
@@ -198,8 +198,8 @@ module USCoreTestKit
198
198
  optional: true,
199
199
  config: {
200
200
  inputs: {
201
- smart_credentials: {
202
- name: :granular_scopes_2_credentials
201
+ smart_auth_info: {
202
+ name: :granular_scopes_2_auth_info
203
203
  }
204
204
  }
205
205
  } do
@@ -217,8 +217,8 @@ module USCoreTestKit
217
217
  optional: true,
218
218
  config: {
219
219
  inputs: {
220
- smart_credentials: {
221
- name: :granular_scopes_2_credentials
220
+ smart_auth_info: {
221
+ name: :granular_scopes_2_auth_info
222
222
  }
223
223
  }
224
224
  } do
@@ -12,64 +12,28 @@ module USCoreTestKit
12
12
  id :us_core_smart_app_launch
13
13
  title 'SMART App Launch'
14
14
 
15
- SMART_V1_RESOURCE_LEVEL_SCOPES = 'launch/patient openid fhirUser offline_access patient/Patient.read patient/AllergyIntolerance.read patient/CarePlan.read patient/CareTeam.read patient/Condition.read patient/Coverage.read patient/Device.read patient/DiagnosticReport.read patient/DocumentReference.read patient/Encounter.read patient/Goal.read patient/Immunization.read patient/Location.read patient/Media.read patient/Medication.read patient/MedicationDispense.read patient/MedicationRequest.read patient/Observation.read patient/Organization.read patient/Practitioner.read patient/PractitionerRole.read patient/Procedure.read patient/Provenance.read patient/QuestionnaireResponse.read patient/RelatedPerson.read patient/ServiceRequest.read patient/Specimen.read'.freeze
16
-
17
- SMART_V2_RESOURCE_LEVEL_SCOPES = 'launch/patient openid fhirUser offline_access patient/Patient.rs patient/AllergyIntolerance.rs patient/CarePlan.rs patient/CareTeam.rs patient/Condition.rs patient/Coverage.rs patient/Device.rs patient/DiagnosticReport.rs patient/DocumentReference.rs patient/Encounter.rs patient/Endpoint.rs patient/Goal.rs patient/Immunization.rs patient/Location.rs patient/Media.rs patient/Medication.rs patient/MedicationDispense.rs patient/MedicationRequest.rs patient/Observation.rs patient/Organization.rs patient/Practitioner.rs patient/PractitionerRole.rs patient/Procedure.rs patient/Provenance.rs patient/QuestionnaireResponse.rs patient/RelatedPerson.rs patient/ServiceRequest.rs patient/Specimen.rs'.freeze
18
-
19
- SMART_V2_2_RESOURCE_LEVEL_SCOPES = 'launch/patient openid fhirUser offline_access patient/Patient.rs patient/AllergyIntolerance.rs patient/CarePlan.rs patient/CareTeam.rs patient/Condition.rs patient/Coverage.rs patient/Device.rs patient/DiagnosticReport.rs patient/DocumentReference.rs patient/Encounter.rs patient/Endpoint.rs patient/Goal.rs patient/Immunization.rs patient/Location.rs patient/Media.rs patient/Medication.rs patient/MedicationDispense.rs patient/MedicationRequest.rs patient/Observation.rs patient/Organization.rs patient/Practitioner.rs patient/PractitionerRole.rs patient/Procedure.rs patient/Provenance.rs patient/QuestionnaireResponse.rs patient/RelatedPerson.rs patient/ServiceRequest.rs patient/Specimen.rs'.freeze
20
-
21
15
  group from: :us_core_smart_standalone_launch_stu1,
22
16
  required_suite_options: USCoreOptions::SMART_1_REQUIREMENT,
23
- optional: true,
24
- config: {
25
- inputs: {
26
- requested_scopes: { default: SmartAppLaunchGroup::SMART_V1_RESOURCE_LEVEL_SCOPES }
27
- }
28
- }
17
+ optional: true
29
18
 
30
19
  group from: :us_core_smart_ehr_launch_stu1,
31
20
  required_suite_options: USCoreOptions::SMART_1_REQUIREMENT,
32
- optional: true,
33
- config: {
34
- inputs: {
35
- requested_scopes: { default: SmartAppLaunchGroup::SMART_V1_RESOURCE_LEVEL_SCOPES }
36
- }
37
- }
21
+ optional: true
38
22
 
39
23
  group from: :us_core_smart_standalone_launch_stu2,
40
24
  required_suite_options: USCoreOptions::SMART_2_REQUIREMENT,
41
- optional: true,
42
- config: {
43
- inputs: {
44
- requested_scopes: { default: SmartAppLaunchGroup::SMART_V2_RESOURCE_LEVEL_SCOPES }
45
- }
46
- }
25
+ optional: true
47
26
 
48
27
  group from: :us_core_smart_ehr_launch_stu2,
49
28
  required_suite_options: USCoreOptions::SMART_2_REQUIREMENT,
50
- optional: true,
51
- config: {
52
- inputs: {
53
- requested_scopes: { default: SmartAppLaunchGroup::SMART_V2_RESOURCE_LEVEL_SCOPES }
54
- }
55
- }
29
+ optional: true
56
30
 
57
31
  group from: :us_core_smart_standalone_launch_stu2_2,
58
32
  required_suite_options: USCoreOptions::SMART_2_2_REQUIREMENT,
59
- optional: true,
60
- config: {
61
- inputs: {
62
- requested_scopes: { default: SmartAppLaunchGroup::SMART_V2_2_RESOURCE_LEVEL_SCOPES }
63
- }
64
- }
33
+ optional: true
65
34
 
66
35
  group from: :us_core_smart_ehr_launch_stu2_2,
67
36
  required_suite_options: USCoreOptions::SMART_2_2_REQUIREMENT,
68
- optional: true,
69
- config: {
70
- inputs: {
71
- requested_scopes: { default: SmartAppLaunchGroup::SMART_V2_2_RESOURCE_LEVEL_SCOPES }
72
- }
73
- }
37
+ optional: true
74
38
  end
75
39
  end
@@ -1,10 +1,36 @@
1
+ require_relative 'smart_scopes_constants'
2
+
1
3
  module USCoreTestKit
2
4
  class SmartEHRLaunchSTU1 < Inferno::TestGroup
5
+ include SmartScopesConstants
6
+
3
7
  id :us_core_smart_ehr_launch_stu1
4
8
  title 'EHR Launch'
5
9
 
6
10
  run_as_group
7
11
 
12
+ config(
13
+ inputs: {
14
+ smart_auth_info: {
15
+ name: :smart_auth_info,
16
+ options: {
17
+ components: [
18
+ {
19
+ name: :requested_scopes,
20
+ default: SMART_V1_RESOURCE_LEVEL_SCOPES
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ received_scopes: { name: :ehr_received_scopes }
26
+ },
27
+ outputs: {
28
+ smart_auth_info: {
29
+ name: :smart_auth_info
30
+ }
31
+ }
32
+ )
33
+
8
34
  group from: :smart_discovery,
9
35
  run_as_group: true
10
36
  group from: :smart_ehr_launch,
@@ -16,10 +42,6 @@ module USCoreTestKit
16
42
  config(
17
43
  inputs: {
18
44
  id_token: { name: :ehr_id_token },
19
- client_id: { name: :ehr_client_id },
20
- requested_scopes: { name: :ehr_requested_scopes },
21
- access_token: { name: :ehr_access_token },
22
- smart_credentials: { name: :ehr_smart_credentials }
23
45
  }
24
46
  )
25
47
  end
@@ -27,14 +49,6 @@ module USCoreTestKit
27
49
  group from: :smart_token_refresh do
28
50
  run_as_group
29
51
  optional
30
- config(
31
- inputs: {
32
- refresh_token: { name: :ehr_refresh_token },
33
- client_id: { name: :ehr_client_id },
34
- client_secret: { name: :ehr_client_secret },
35
- received_scopes: { name: :ehr_received_scopes }
36
- }
37
- )
38
52
  end
39
53
  end
40
54
  end
@@ -1,10 +1,36 @@
1
+ require_relative 'smart_scopes_constants'
2
+
1
3
  module USCoreTestKit
2
4
  class SmartEHRLaunchSTU2 < Inferno::TestGroup
5
+ include SmartScopesConstants
6
+
3
7
  id :us_core_smart_ehr_launch_stu2
4
8
  title 'EHR Launch'
5
9
 
6
10
  run_as_group
7
11
 
12
+ config(
13
+ inputs: {
14
+ smart_auth_info: {
15
+ name: :smart_auth_info,
16
+ options: {
17
+ components: [
18
+ {
19
+ name: :requested_scopes,
20
+ default: SMART_V2_RESOURCE_LEVEL_SCOPES
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ received_scopes: { name: :ehr_received_scopes }
26
+ },
27
+ outputs: {
28
+ smart_auth_info: {
29
+ name: :smart_auth_info
30
+ }
31
+ }
32
+ )
33
+
8
34
  group from: :smart_discovery_stu2,
9
35
  run_as_group: true
10
36
  group from: :smart_ehr_launch_stu2,
@@ -16,10 +42,6 @@ module USCoreTestKit
16
42
  config(
17
43
  inputs: {
18
44
  id_token: { name: :ehr_id_token },
19
- client_id: { name: :ehr_client_id },
20
- requested_scopes: { name: :ehr_requested_scopes },
21
- access_token: { name: :ehr_access_token },
22
- smart_credentials: { name: :ehr_smart_credentials }
23
45
  }
24
46
  )
25
47
  end
@@ -27,14 +49,6 @@ module USCoreTestKit
27
49
  group from: :smart_token_refresh do
28
50
  run_as_group
29
51
  optional
30
- config(
31
- inputs: {
32
- refresh_token: { name: :ehr_refresh_token },
33
- client_id: { name: :ehr_client_id },
34
- client_secret: { name: :ehr_client_secret },
35
- received_scopes: { name: :ehr_received_scopes }
36
- }
37
- )
38
52
  end
39
53
  end
40
54
  end
@@ -1,10 +1,36 @@
1
+ require_relative 'smart_scopes_constants'
2
+
1
3
  module USCoreTestKit
2
4
  class SmartEHRLaunchSTU22 < Inferno::TestGroup
5
+ include SmartScopesConstants
6
+
3
7
  id :us_core_smart_ehr_launch_stu2_2
4
8
  title 'EHR Launch'
5
9
 
6
10
  run_as_group
7
11
 
12
+ config(
13
+ inputs: {
14
+ smart_auth_info: {
15
+ name: :smart_auth_info,
16
+ options: {
17
+ components: [
18
+ {
19
+ name: :requested_scopes,
20
+ default: SMART_V2_2_RESOURCE_LEVEL_SCOPES
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ received_scopes: { name: :ehr_received_scopes }
26
+ },
27
+ outputs: {
28
+ smart_auth_info: {
29
+ name: :smart_auth_info
30
+ }
31
+ }
32
+ )
33
+
8
34
  group from: :smart_discovery_stu2_2,
9
35
  run_as_group: true
10
36
  group from: :smart_ehr_launch_stu2_2,
@@ -16,10 +42,6 @@ module USCoreTestKit
16
42
  config(
17
43
  inputs: {
18
44
  id_token: { name: :ehr_id_token },
19
- client_id: { name: :ehr_client_id },
20
- requested_scopes: { name: :ehr_requested_scopes },
21
- access_token: { name: :ehr_access_token },
22
- smart_credentials: { name: :ehr_smart_credentials }
23
45
  }
24
46
  )
25
47
  end
@@ -27,14 +49,6 @@ module USCoreTestKit
27
49
  group from: :smart_token_refresh_stu2 do
28
50
  run_as_group
29
51
  optional
30
- config(
31
- inputs: {
32
- refresh_token: { name: :ehr_refresh_token },
33
- client_id: { name: :ehr_client_id },
34
- client_secret: { name: :ehr_client_secret },
35
- received_scopes: { name: :ehr_received_scopes }
36
- }
37
- )
38
52
  end
39
53
  end
40
54
  end