Sha256: 1a1d0024df3ea18148d970bbb9c92729b5be6c83c03c015cd8a1f562d451ef1d
Contents?: true
Size: 1.46 KB
Versions: 1
Compression:
Stored size: 1.46 KB
Contents
module IpaTestKit class ConformanceSupportTest < Inferno::Test id :ipa_010_conformance_support title 'FHIR Server supports the conformance interaction' description %( The conformance 'whole system' interaction provides a method to get the CapabilityStatement for the FHIR server. This test checks that the server responds to a `GET` request at the following endpoint: ``` GET [base]/metadata ``` This test checks the following SHALL requirement: > Applications SHALL return a resource that describes the functionality of the server end-point. [http://hl7.org/fhir/R4/http.html#capabilities](http://hl7.org/fhir/R4/http.html#capabilities) It does this by checking that the server responds with an HTTP OK 200 status code and that the body of the response contains a valid [CapabilityStatement resource](http://hl7.org/fhir/R4/capabilitystatement.html). This test does not inspect the content of the CapabilityStatement to see if it contains the required information. It only checks to see if the RESTful interaction is supported and returns a valid CapabilityStatement resource. ) makes_request :capability_statement run do fhir_client.set_no_auth fhir_get_capability_statement(name: :capability_statement) assert_response_status(200) assert_resource_type(:capability_statement) assert_valid_resource end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ipa_test_kit-0.2.0 | lib/ipa_test_kit/custom_groups/capability_statement/conformance_support_test.rb |