Serenity BDD Report
Home > Requirements > Stufe5 > Terminplanung > Read information from a resource of type healthcareservice (@healthcareservice-read)
Report generated 23-03-2026 09:39

Feature: Read information from a resource of type healthcareservice (@healthcareservice-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 'healthcareservice-read-id'.

Create the following HealthcareService resource in your system:

  • Active: true
  • Service type: any (please store the code system and code in the configuration variables 'healthcareservice-read-servicetype-system' and 'healthcareservice-read-servicetype-code')
  • Specialty: Neurology
  • Name: any (please store the value in the configuration variable 'healthcareservice-read-name')

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

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

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

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

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

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

And FHIR current response body evaluates the FHIRPath "type.where(coding.where(code = '${data.healthcareservice-read-servicetype-code}' and system = '${data.healthcareservice-read-servicetype-system}').exists()).exists()" with error message 'The 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 TGR current response with attribute "$..name.value" matches "${data.healthcareservice-read-name}"

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 3 Total Duration 3s
Total Number of Test Cases 3 Fastest Test 419ms
Number of Manual Test Cases 0 Slowest Test 1s
Tests Started März 23, 2026 09:39:17 Average Execution Time 1s
Tests Finished März 23, 2026 09:39:20 Total Execution Time 3s

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Read Information from a resource of type HealthcareService (@HealthcareService-Read) Precondition 2 09:39:17 419ms SUCCESS
Read Information from a resource of type HealthcareService (@HealthcareService-Read) Read and Validation of the CapabilityStatement 2 09:39:18 747ms SUCCESS
Read Information from a resource of type HealthcareService (@HealthcareService-Read) Read a HealthcareService by ID 7 09:39:18 1s 869ms SUCCESS

Manual Tests

No manual tests were recorded
Serenity BDD version 4.3.2