Skip to content

Commit

Permalink
Improve multipatient description and additional tests description.
Browse files Browse the repository at this point in the history
  • Loading branch information
arscan committed Aug 13, 2024
1 parent 75f06c2 commit f0a78c1
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 20 deletions.
18 changes: 13 additions & 5 deletions lib/onc_certification_g10_test_kit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -348,11 +348,19 @@ def self.well_known_route_handler
title 'Additional Authorization Tests'
id 'Group06'
description %(
Not all requirements that need to be tested fit within the previous
scenarios. The tests contained in this section addresses remaining
testing requirements. Each of these tests need to be run independently.
Please read the instructions for each in the 'About' section, as they
may require special setup on the part of the tester.
The (g)(10) Standardized Test Suite attempts to minimize effort required
by testers by creating scenarios that validate as many requirements as
possible with just a handful of SMART App Launches. However, not all
SMART App Launch and (g)(10) Standardized API criterion requirements
that need to be verified fit within the first few test scenarios in this
suite.
The scenarios contained in this section verify remaining testing
requirements for the (g)(10) Standardized API criterion relevant to
the SMART App Launch implementation specification. Each of these scenarios
need to be run independently. Please read the instructions for each in
the 'About' section, as they may require special setup on the part of
the tester.
)

default_redirect_message_proc = lambda do |auth_url|
Expand Down
21 changes: 13 additions & 8 deletions lib/onc_certification_g10_test_kit/multi_patient_api_stu1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,25 @@ class MultiPatientAPIGroupSTU1 < Inferno::TestGroup
)

description %(
Demonstrate the ability to export clinical data for multiple patients in a
group using [FHIR Bulk Data Access
IG](http://hl7.org/fhir/uv/bulkdata/STU1.0.1/). This test uses [Backend
Services
This scenario verifies the ability of the system to export clinical data
for multiple patients in a group using [FHIR Bulk Data Access
IG](http://hl7.org/fhir/uv/bulkdata/STU1.0.1/). This scenario uses
[Backend Services
Authorization](http://hl7.org/fhir/uv/bulkdata/STU1.0.1/authorization/index.html)
to obtain an access token from the server. After authorization, a group
level bulk data export request is initialized. Finally, this test reads
exported NDJSON files from the server and validates the resources in each
file. To run the test successfully, the selected group export is required
to have resources conforming to every profile mapped to [USCDI data
level bulk data export request is initialized. Finally, this scenario
reads exported NDJSON files from the server and validates the resources in
each file. To run the test successfully, the selected group export is
required to have resources conforming to every profile mapped to [USCDI
data
elements](https://www.healthit.gov/isa/us-core-data-interoperability-uscdi).
Additionally, it is expected the server will provide Encounter, Location,
Organization, and Practitioner resources as they are referenced as must
support elements in required resources.
Prior to executing this scenario, register Inferno with the following JWK Set Url:
* `#{Inferno::Application[:base_url]}/custom/g10_certification/.well-known/jwks.json`
)
id :multi_patient_api
run_as_group
Expand Down
19 changes: 12 additions & 7 deletions lib/onc_certification_g10_test_kit/multi_patient_api_stu2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,25 @@ class MultiPatientAPIGroupSTU2 < Inferno::TestGroup
)

description %(
Demonstrate the ability to export clinical data for multiple patients in a
group using [FHIR Bulk Data Access
IG](https://hl7.org/fhir/uv/bulkdata/STU2/). This test uses [Backend
This scenario verifies the ability of the system to export clinical data
for multiple patients in a group using [FHIR Bulk Data Access
IG](https://hl7.org/fhir/uv/bulkdata/STU2/). This scenario uses [Backend
Services
Authorization](http://www.hl7.org/fhir/smart-app-launch/backend-services.html)
to obtain an access token from the server. After authorization, a group
level bulk data export request is initialized. Finally, this test reads
exported NDJSON files from the server and validates the resources in each
file. To run the test successfully, the selected group export is required
to have resources conforming to every profile mapped to [USCDI data
level bulk data export request is initialized. Finally, this scenario
reads exported NDJSON files from the server and validates the resources in
each file. To run the test successfully, the selected group export is
required to have resources conforming to every profile mapped to [USCDI
data
elements](https://www.healthit.gov/isa/us-core-data-interoperability-uscdi).
Additionally, it is expected the server will provide Encounter, Location,
Organization, and Practitioner resources as they are referenced as must
support elements in required resources.
Prior to executing this scenario, register Inferno with the following JWK Set Url:
* `#{Inferno::Application[:base_url]}/custom/g10_certification/.well-known/jwks.json`
)
id :multi_patient_api_stu2
run_as_group
Expand Down

0 comments on commit f0a78c1

Please sign in to comment.