-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from inferno-framework/fi-3231-light-smart-app
Fi-3231: Add SMART app tests to Light DTR EHR suite
- Loading branch information
Showing
9 changed files
with
153 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
JS_HOST="" | ||
INFERNO_HOST="http://localhost:4567" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"title": "Inferno Reference Server", | ||
"id": "smart_stu2_reference_server", | ||
"test_suite_id": "dtr_light_ehr", | ||
"inputs": [ | ||
{ | ||
"name": "url", | ||
"description": "URL of the FHIR endpoint used by SMART applications", | ||
"title": "FHIR Endpoint", | ||
"type": "text", | ||
"value": "https://inferno-qa.healthit.gov/reference-server/r4" | ||
}, | ||
{ | ||
"name": "ehr_client_id", | ||
"description": "Client ID provided during registration of Inferno as an EHR launch application", | ||
"title": "EHR Launch Client ID", | ||
"type": "text", | ||
"value": "SAMPLE_PUBLIC_CLIENT_ID" | ||
}, | ||
{ | ||
"name": "standalone_client_id", | ||
"type": "text", | ||
"value": "SAMPLE_PUBLIC_CLIENT_ID" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
require_relative 'davinci_dtr_test_kit/dtr_payer_server_suite' | ||
require_relative 'davinci_dtr_test_kit/dtr_smart_app_suite' | ||
require_relative 'davinci_dtr_test_kit/dtr_full_ehr_suite' | ||
# require_relative 'davinci_dtr_test_kit/dtr_light_ehr_suite' | ||
require_relative 'davinci_dtr_test_kit/dtr_light_ehr_suite' |
29 changes: 29 additions & 0 deletions
29
lib/davinci_dtr_test_kit/docs/dtr_light_ehr_suite_description_v201.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
The Da Vinci DTR Test Kit Light EHR Suite validates the conformance of SMART apps | ||
to the STU 2 version of the HL7® FHIR® | ||
[Da Vinci Documentation Templates and Rules (DTR) Implementation Guide](https://hl7.org/fhir/us/davinci-dtr/STU2/). | ||
|
||
## Scope | ||
|
||
These tests are a **DRAFT** intended to allow app implementers to perform | ||
preliminary checks of their systems against DTR IG requirements and [provide | ||
feedback](https://github.com/inferno-framework/davinci-dtr-test-kit/issues) | ||
on the tests. Future versions of these tests may validate other | ||
requirements and may change the test validation logic. | ||
|
||
## Test Methodology | ||
|
||
Inferno will simulate a DTR SMART App that will connect to the DTR Light EHR system under test. The tester will need to launch Inferno using either an EHR launch or a Standalone launch. | ||
|
||
Once the connection between the DTR SMART App and the DTR Light EHR is established, tests within this suite check that the DTR Light EHR API is conformant to US Core and any other requirements outlined in the [Light DTR EHR Capability Statement](https://hl7.org/fhir/us/davinci-dtr/STU2/CapabilityStatement-light-dtr-ehr.html#root). | ||
|
||
## Running the Tests | ||
|
||
If you would like to try out the tests but don't have a DTR payer server implementation, you can run these tests against the [public instance of the Inferno Reference Server](https://inferno.healthit.gov/reference-server/r4/) by using the Inferno Reference Server preset in the test suite. | ||
|
||
In order to get the Inferno QA Reference Server to do an EHR launch, navigate to https://inferno.healthit.gov/reference-server/app/app-launch and use https://inferno.healthit.gov/custom/smart/launch as the App Launch URL. | ||
|
||
## Limitations | ||
|
||
The DTR IG is a complex specification and these tests currently validate conformance to only | ||
a subset of IG requirements. Future versions of the test suite will test further | ||
features. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module DaVinciDTRTestKit | ||
module DTROptions | ||
SMART_2 = 'smart_app_launch_2'.freeze | ||
|
||
SMART_2_REQUIREMENT = { smart_app_launch_version: SMART_2 }.freeze | ||
end | ||
end |