Serenity BDD Report
Home > Requirements > Stufe5 > Basis > Read information from a resource of type "statutory" coverage (@coverage-read-statutory)
Report generated 01-09-2026 07:07

Feature: Read information from a resource of type "statutory" coverage (@coverage-read-statutory)

Scenarios

Given the Test Description: "The system under test must return the complete resource in response to an HTTP GET request to its URL (READ)."

Given the Preconditions: - The Patient-Read test case must have been executed successfully beforehand.

  • The RelatedPerson-Read test case must have been executed successfully beforehand.
  • The test dataset must have been entered in the system under test according to the specifications (manually).
  • The ID of the corresponding FHIR resource for this test dataset must be stored in the configuration variable 'coverage-read-statutory-id'.
  • The FHIR Profile for the resource is ISiKVersicherungsverhaeltnisGesetzlich

Create a Coverage resource with these fields:

  • Status: active/valid
  • Coverage type: statutory (gesetzlich)
  • Insurer: AOK Baden-Württemberg
  • IK-Number: 108018007
  • Insured person's statutory insurance number (GKV): from the Patient-Read test case
  • Beneficiary: the patient from the Patient-Read test case
  • Subscriber: reference to the RelatedPerson from the RelatedPerson-Read test case; Insurance Number (KVNR) belongs to the Subscriber themselves
  • (Optional) Tag: Value defined through the configuration variables 'tag-value' and 'tag-system'

When Get FHIR resource at "http://fhirserver/metadata" with content type "json"

And CapabilityStatement contains interaction "read" for resource "Coverage"

When Get FHIR resource at "http://fhirserver/Coverage/${data.coverage-read-statutory-id}" with content type "xml"

And FHIR current response body is a valid isik5 resource and conforms to profile "https://gematik.de/fhir/isik/StructureDefinition/ISiKVersicherungsverhaeltnisGesetzlich"

And resource has ID "${data.coverage-read-statutory-id}" with error message "The returned Coverage resource has not the expected ID"

And FHIR current response body evaluates the FHIRPath "type.coding.where(system='http://fhir.de/CodeSystem/versicherungsart-de-basis' and code = 'GKV').exists()" with error message 'The type does not match the expected value'

And element "beneficiary" references resource with ID "${data.patient-read-id}" with error message "The referenced patient does not match the expected value."

And TGR current response with attribute "$..status.value" matches "active"

And FHIR current response body evaluates the FHIRPath "payor.identifier.type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/v2-0203' and code = 'XX').exists()" with error message "The type of the insurer's identifier does not match the expected value"

And FHIR current response body evaluates the FHIRPath "payor.identifier.where(system = 'http://fhir.de/sid/arge-ik/iknr' and value = '108018007').exists()" with error message "The insurer's identifier does not match the expected value"

And FHIR current response body evaluates the FHIRPath "payor.display = 'AOK Baden-Württemberg'" with error message "The insurer's display value does not match the expected value"

And FHIR current response body evaluates the FHIRPath "subscriber.reference.exists()" with error message 'A reference to a RelatedPerson as Subscriber was not found'

And FHIR current response body evaluates the FHIRPath "subscriber.identifier.type.coding.where(system = 'http://fhir.de/CodeSystem/identifier-type-de-basis' and code = 'KVZ10').exists()" with error message "The subscriber's identifier type does not match the expected value"

And FHIR current response body evaluates the FHIRPath "subscriber.identifier.where(system = 'http://fhir.de/sid/gkv/kvid-10' and value = '${data.related-person-identifier-value}').exists()" with error message "The subscriber's identifier does not match the expected value"

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 3 Total Duration 10s
Total Number of Test Cases 3 Fastest Test 435ms
Number of Manual Test Cases 0 Slowest Test 7s
Tests Started Sep 01, 2026 07:07:57 Average Execution Time 3s
Tests Finished Sep 01, 2026 07:08:07 Cumulative Test Time
(sum of all individual test durations)
10s

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Read Information from a resource of type "statutory" Coverage (@Coverage-Read-Statutory) Precondition 2 07:07:57 435ms SUCCESS
Read Information from a resource of type "statutory" Coverage (@Coverage-Read-Statutory) Read and Validation of the CapabilityStatement 2 07:07:57 2s 391ms SUCCESS
Read Information from a resource of type "statutory" Coverage (@Coverage-Read-Statutory) Read and Validate statutory Coverage by its ID 12 07:08:00 7s 603ms SUCCESS

Manual Tests

No manual tests were recorded

Evidence

Scenario Title Details
Precondition RBellog 0  Download Evidence
Read and Validation of the CapabilityStatement INFO - rest.where(mode = 'server').resource.where(type = 'Coverage' and interaction.where(code = 'read').exists()).exists()  Details
Read and Validation of the CapabilityStatement RBellog 0  Download Evidence
Read and Validation of the CapabilityStatement Evidence Report  Download Evidence
Read and Validate statutory Coverage by its ID INFO - id.replaceMatches('/_history/.+','').matches('\\bCoverage-Read-Statutory-Example$')  Details
Read and Validate statutory Coverage by its ID INFO - type.coding.where(system='http://fhir.de/CodeSystem/versicherungsart-de-basis' and code = 'GKV').exists()  Details
Read and Validate statutory Coverage by its ID INFO - beneficiary.reference.replaceMatches('/_history/.+','').matches('\\bPatient-Read-Example$')  Details
Read and Validate statutory Coverage by its ID INFO - payor.identifier.type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/v2-0203' and code = 'XX').exists()  Details
Read and Validate statutory Coverage by its ID INFO - payor.identifier.where(system = 'http://fhir.de/sid/arge-ik/iknr' and value = '108018007').exists()  Details
Read and Validate statutory Coverage by its ID INFO - payor.display = 'AOK Baden-Württemberg'  Details
Read and Validate statutory Coverage by its ID INFO - subscriber.reference.exists()  Details
Read and Validate statutory Coverage by its ID INFO - subscriber.identifier.type.coding.where(system = 'http://fhir.de/CodeSystem/identifier-type-de-basis' and code = 'KVZ10').exists()  Details
Read and Validate statutory Coverage by its ID INFO - subscriber.identifier.where(system = 'http://fhir.de/sid/gkv/kvid-10' and value = 'A123456789').exists()  Details
Read and Validate statutory Coverage by its ID RBellog 0  Download Evidence
Read and Validate statutory Coverage by its ID Evidence Report  Download Evidence
Serenity BDD version 5.3.10