Serenity BDD Report
Home > Requirements > Stufe5 > Terminplanung > Read information from a resource of type valueset (@valueset-read)
Report generated 01-09-2026 07:06

Feature: Read information from a resource of type valueset (@valueset-read)

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 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 'valueset-read-id'.

Create a ValueSet in your system that contains codes 'sat' and 'sun' from the FHIR CodeSystem http://hl7.org/fhir/days-of-week:

  • Version: 1.0.0
  • Name: any (please set the name in the configuration variable 'valueset-read-id')
  • Status: active
  • Context: Encounter
  • (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 "ValueSet"

When Get FHIR resource at "http://fhirserver/ValueSet/${data.valueset-read-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/ISiKValueSet"

And resource has ID "${data.valueset-read-id}" with error message "The ID does not match the expected value"

Then TGR current response with attribute "$.responseCode" matches "200"

And TGR current response with attribute "$.header.[~'content-type']" matches "application/fhir+xml;\s*charset=(?i)UTF-8"

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

And TGR current response with attribute "$..url.value" matches "http://example.org/fhir/ValueSet/TestValueSet"

And TGR current response with attribute "$..name.value" matches "TestValueSet"

And TGR current response with attribute "$..ValueSet.version.value" matches "1.0.0"

And FHIR current response body evaluates the FHIRPath "useContext.value.coding.where(code = 'Encounter').exists()" with error message 'The ValueSet does not specify the required context'

And FHIR current response body evaluates the FHIRPath "expansion.exists()" with error message 'The ValueSet does not contain an expansion'

And FHIR current response body evaluates the FHIRPath "expansion.contains.where(code = 'sun' and display = 'Sunday' and system = 'http://hl7.org/fhir/days-of-week').exists()" with error message 'The ValueSet does not contain the required codes'

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 3 Total Duration 28s
Total Number of Test Cases 3 Fastest Test 423ms
Number of Manual Test Cases 0 Slowest Test 24s
Tests Started Sep 01, 2026 07:06:36 Average Execution Time 9s
Tests Finished Sep 01, 2026 07:07:05 Cumulative Test Time
(sum of all individual test durations)
28s

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Read Information from a resource of type ValueSet (@ValueSet-Read) Precondition 2 07:06:36 423ms SUCCESS
Read Information from a resource of type ValueSet (@ValueSet-Read) Read and Validation of the CapabilityStatement 2 07:06:37 3s 310ms SUCCESS
Read Information from a resource of type ValueSet (@ValueSet-Read) Read and Validate ValueSet by its ID 12 07:06:40 24s 551ms 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 = 'ValueSet' 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 ValueSet by its ID INFO - id.replaceMatches('/_history/.+','').matches('\\bValueSet-Read-Example$')  Details
Read and Validate ValueSet by its ID INFO - useContext.value.coding.where(code = 'Encounter').exists()  Details
Read and Validate ValueSet by its ID INFO - expansion.exists()  Details
Read and Validate ValueSet by its ID INFO - expansion.contains.where(code = 'sun' and display = 'Sunday' and system = 'http://hl7.org/fhir/days-of-week').exists()  Details
Read and Validate ValueSet by its ID RBellog 0  Download Evidence
Read and Validate ValueSet by its ID Evidence Report  Download Evidence
Serenity BDD version 5.3.10