Skip to content

Commit

Permalink
Merge pull request #10 from hl7au/update-summary-generator
Browse files Browse the repository at this point in the history
Update summary generator
  • Loading branch information
ir4y authored Mar 14, 2024
2 parents f65086d + 4e5b186 commit de093bf
Show file tree
Hide file tree
Showing 5 changed files with 1,414 additions and 794 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'tls_test_kit'
require_relative '../../helpers'
require_relative '../capability_statement/conformance_support_test'
require_relative '../capability_statement/fhir_version_test'
require_relative '../capability_statement/json_support_test'
Expand All @@ -10,41 +11,7 @@ class CapabilityStatementGroup < Inferno::TestGroup
id :au_core_v030_capability_statement
title 'Capability Statement'
short_description 'Retrieve information about supported server functionality using the FHIR capabilties interaction.'
description %(
# Background
The #{title} Sequence tests a FHIR server's ability to formally describe
features supported by the API by using the [Capability
Statement](https://www.hl7.org/fhir/capabilitystatement.html) resource.
The features described in the Capability Statement must be consistent with
the required capabilities of a AU Core server. The Capability Statement
must also advertise the location of the required SMART on FHIR endpoints
that enable authenticated access to the FHIR server resources.
The Capability Statement resource allows clients to determine which
resources are supported by a FHIR Server. Not all servers are expected to
implement all possible queries and data elements described in the AU Core
API. For example, the AU Core Implementation Guide requires that the
Patient resource and only one additional resource profile from the AU Core
Profiles.
# Test Methodology
This test sequence accesses the server endpoint at `/metadata` using a
`GET` request. It parses the Capability Statement and verifies that:
* The endpoint is secured by an appropriate cryptographic protocol
* The resource matches the expected FHIR version defined by the tests
* The resource is a valid FHIR resource
* The server claims support for JSON encoding of resources
* The server claims support for the Patient resource and one other
resource
It collects the following information that is saved in the testing session
for use by later tests:
* List of resources supported
* List of queries parameters supported
)
description Helpers.get_capability_statement_group_description_text('Capability Statement')
run_as_group

PROFILES = {
Expand Down
Loading

0 comments on commit de093bf

Please sign in to comment.