Sha256: ab3db49a0183d1304cf787b0c6c884a4bcb09a9b20a2351e9207e80ab3fcff88
Contents?: true
Size: 1.46 KB
Versions: 34
Compression:
Stored size: 1.46 KB
Contents
module USCoreTestKit class ConformanceSupportTest < Inferno::Test id :us_core_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
34 entries across 34 versions & 1 rubygems