Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions config/presets/client_demo_against_server_800_preset.json.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"title": "Demo: Run Against the US Core Server Suite",
"id": "demo_us_core_client_against_server_v800",
"test_suite_id": "us_core_client_v800",
"inputs": [
{
"name": "client_id",
"description": "Testers may provide a specific value for Inferno to assign as the client id. If no value is provided, the Inferno session id will be used.",
"optional": true,
"title": "Client Id",
"type": "text",
"value": "us_core_client_demo"
},
{
"name": "smart_launch_urls",
"description": "If the client app supports EHR launch, a comma-delimited list of one or more URLs that Inferno can use to launch the app.",
"optional": true,
"title": "SMART App Launch URL(s)",
"type": "textarea",
"value": ""
},
{
"name": "smart_redirect_uris",
"description": "A comma-separated list of one or more URIs that the app will sepcify as the target of the redirect for Inferno to use when providing the authorization code.",
"title": "SMART App Launch Redirect URI(s)",
"type": "textarea",
"value": "<%= Inferno::Application['base_url'] %>/custom/smart/redirect"
},
{
"name": "launch_context",
"description": "Launch context details to be included in access token responses, specified as a JSON array. If provided, the contents will be merged into Inferno's token responses.",
"optional": true,
"title": "Launch Context",
"type": "textarea",
"value": ""
},
{
"name": "fhir_user_relative_reference",
"description": "A FHIR relative reference (<resource type>/<id>) for the FHIR user record to return when the openid and fhirUser scopes are requested. Include this resource in the **Available Resources** input so that it can be accessed via FHIR read.",
"optional": true,
"title": "FHIR User Relative Reference",
"type": "text",
"value": "Patient/us-core-client-tests-patient"
}
]
}
30 changes: 30 additions & 0 deletions config/presets/server_demo_against_client_800_preset.json.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"title": "Demo: Run Against the US Core Client Suite",
"id": "demo_us_core_server_against_client_v800",
"test_suite_id": "us_core_v800",
"inputs": [
{
"name": "url",
"type": "text",
"title": "FHIR Endpoint",
"description": "URL of the FHIR endpoint",
"value": "<%= Inferno::Application['base_url'] %>/custom/us_core_client_v800/fhir"
},
{
"name": "smart_auth_info",
"type": "auth_info",
"value": {
"auth_type": "public",
"use_discovery": "true",
"client_id": "us_core_client_demo"
}
},
{
"name": "patient_ids",
"type": "text",
"title": "Patient IDs",
"description": "Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements",
"value": "us-core-client-tests-patient"
}
]
}
1 change: 1 addition & 0 deletions lib/us_core_test_kit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
require_relative 'us_core_test_kit/client/generated/v5.0.1/us_core_client_test_suite'
require_relative 'us_core_test_kit/client/generated/v6.1.0/us_core_client_test_suite'
require_relative 'us_core_test_kit/client/generated/v7.0.0/us_core_client_test_suite'
require_relative 'us_core_test_kit/client/generated/v8.0.0/us_core_client_test_suite'

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion lib/us_core_test_kit/client/generator/templates/suite.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,17 @@ module USCoreTestKit
actor: 'Client'
}
)

<%- elsif module_name == 'USCoreClientV800'-%>

requirement_sets(
{
identifier: 'hl7.fhir.us.core_8.0.0',
title: 'US Core Implementation Guide',
actor: 'Client'
}
)

<%- end -%>

suite_option :client_type,
Expand All @@ -92,7 +103,7 @@ module USCoreTestKit
route(:get, SMARTAppLaunch::SMART_DISCOVERY_PATH, lambda { |_env|
SMARTAppLaunch::MockSMARTServer.smart_server_metadata(id)
})
route(:get, SMARTAppLaunch::OIDC_DISCOVERY_PATH, ->(_env) {SMARTAppLaunch::MockSMARTServer.openid_connect_metadata(id) })
route(:get, SMARTAppLaunch::OIDC_DISCOVERY_PATH, ->(_env) {SMARTAppLaunch::MockSMARTServer.openid_connect_metadata(id) })
route(
:get,
SMARTAppLaunch::OIDC_JWKS_PATH,
Expand Down
2 changes: 1 addition & 1 deletion lib/us_core_test_kit/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class Metadata < Inferno::TestKit
of the repository.
DESCRIPTION
suite_ids [:us_core_v311, :us_core_v400, :us_core_v501, :us_core_v610, :us_core_v700, :us_core_v800, :us_core_client_v311,
:us_core_client_v400, :us_core_client_v501, :us_core_client_v610, :us_core_client_v700]
:us_core_client_v400, :us_core_client_v501, :us_core_client_v610, :us_core_client_v700, :us_core_client_v800]
tags ['SMART App Launch', 'US Core']
last_updated LAST_UPDATED
version VERSION
Expand Down
Loading