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

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

Scenarios

Given the Test Description: "The system under test MUST return the created resource correctly and completely in response to an HTTP GET request to its URL (READ)."

Given the Preconditions: - The test data set must have been recorded in the system under test according to the specifications (manually).

  • The ID of the corresponding FHIR resource for this test data set must be stored in the configuration variable 'schedule-read-id'.

Create the following Schedule resource in your system:

  • Active: true
  • Service type:
    • Text: any text that describes the service type (e.g., "Regular check-up")
    • Coding System: any (please provide the code system in the configuration variable 'schedule-read-servicetype-system')
    • Coding Code: any (please provide the code in the configuration variable 'schedule-read-servicetype-code')
  • Specialty: Neurology
  • Actor: Any (the linked Practitioner resource must conform to ISiKPersonImGesundheitsberuf; please store the ID in the configuration variable 'appointment-practitioner-id')
  • Name: Any (not empty)

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

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

Then Get FHIR resource at "http://fhirserver/Schedule/${data.schedule-read-id}" with content type "xml"

And resource has ID "${data.schedule-read-id}"

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

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

And FHIR current response body evaluates the FHIRPath "serviceType.text.empty().not() and serviceType.coding.where(code='${data.schedule-read-servicetype-code}' and system = '${data.schedule-read-servicetype-system}').exists()" with error message 'The schedule type does not match the expected value'

And FHIR current response body evaluates the FHIRPath "specialty.coding.where(code = 'NEUR' and system ='http://ihe-d.de/CodeSystems/AerztlicheFachrichtungen').exists()" with error message 'The specialty does not match the expected value'

And FHIR current response body evaluates the FHIRPath "actor.where(reference.replaceMatches('/_history/.+','').matches('\b${data.appointment-practitioner-id}$') and display.exists()).exists()" with error message 'The actor is missing or incomplete'

And FHIR current response body evaluates the FHIRPath "extension.where(url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-Schedule.name' and value.empty().not()).exists()" with error message 'The schedule name is not provided'

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 3 Total Duration 5s
Total Number of Test Cases 3 Fastest Test 424ms
Number of Manual Test Cases 0 Slowest Test 2s
Tests Started Sep 01, 2026 07:07:51 Average Execution Time 1s
Tests Finished Sep 01, 2026 07:07:56 Cumulative Test Time
(sum of all individual test durations)
5s

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Read Information from a resource of type Schedule (@Schedule-Read) Precondition 2 07:07:51 424ms SUCCESS
Read Information from a resource of type Schedule (@Schedule-Read) Read and Validation of the CapabilityStatement 2 07:07:52 2s 906ms SUCCESS
Read Information from a resource of type Schedule (@Schedule-Read) Read a Schedule by ID 8 07:07:54 1s 783ms 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 = 'Schedule' 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 a Schedule by ID INFO - id.replaceMatches('/_history/.+','').matches('\\bSchedule-Read-Example$')  Details
Read a Schedule by ID INFO - serviceType.text.empty().not() and serviceType.coding.where(code='177' and system = 'http://terminology.hl7.org/CodeSystem/service-type').exists()  Details
Read a Schedule by ID INFO - specialty.coding.where(code = 'NEUR' and system ='http://ihe-d.de/CodeSystems/AerztlicheFachrichtungen').exists()  Details
Read a Schedule by ID INFO - actor.where(reference.replaceMatches('/_history/.+','').matches('\\bPractitioner-Read-Example$') and display.exists()).exists()  Details
Read a Schedule by ID INFO - extension.where(url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-Schedule.name' and value.empty().not()).exists()  Details
Read a Schedule by ID RBellog 0  Download Evidence
Read a Schedule by ID Evidence Report  Download Evidence
Serenity BDD version 5.3.10