Serenity BDD Report
Report generated 01-09-2026 07:01

Read Information From A Resource Of Type Encounter With Status "Planned" (@encounter-Read-Planned)

  Mandatory   Basis   1 To 10 Seconds (Duration)   Stufe5

Read and Validate planned Encounter by its ID
Steps Outcome
When Get FHIR resource at "http://fhirserver/Encounter/${data.encounter-read-planned-id}" with content type "xml"
SUCCESS 250ms
And FHIR current response body is a valid isik5 resource and conforms to profile "https://gematik.de/fhir/isik/StructureDefinition/ISiKKontaktGesundheitseinrichtung"
SUCCESS 251ms
And resource has ID "Encounter-Read-Planned-Example" with error message "The returned Encounter resource has not the expected ID"
SUCCESS 207ms
And TGR current response with attribute "$..status.value" matches "planned"
SUCCESS 205ms
And FHIR current response body evaluates the FHIRPath "identifier.where(system = 'https://test.krankenhaus.de/fhir/sid/fallnr' and value='0123456789').exists()" with error message 'The Encounter does not contain the correct admission number'
SUCCESS 207ms
And FHIR current response body evaluates the FHIRPath "class.where(code = 'IMP' and system = 'http://terminology.hl7.org/CodeSystem/v3-ActCode').exists()" with error message 'The Encounter does not contain the correct class code'
SUCCESS 205ms
And FHIR current response body evaluates the FHIRPath "type.coding.where(code = 'normalstationaer' and system = 'http://fhir.de/CodeSystem/kontaktart-de').exists()" with error message 'The Encounter does not contain the correct type'
SUCCESS 206ms
And FHIR current response body evaluates the FHIRPath "serviceType.coding.where(code = '1500' and system = 'http://fhir.de/CodeSystem/dkgev/Fachabteilungsschluessel').exists()" with error message 'The Encounter does not contain the correct department code'
SUCCESS 205ms
And element "subject" references resource with ID "Patient-Read-Example" with error message "The referenced Patient does not match the expected value"
SUCCESS 205ms
And FHIR current response body evaluates the FHIRPath "hospitalization.admitSource.coding.where(code = 'E' and system = 'http://fhir.de/CodeSystem/dgkev/Aufnahmeanlass').exists()" with error message 'The encounter does not contain the correct admission reason'
SUCCESS 205ms
And FHIR current response body evaluates the FHIRPath "location.location.exists(display = 'Surgery Department')" with error message 'The location display value does not match the expected value'
SUCCESS 204ms
And FHIR current response body evaluates the FHIRPath "serviceProvider.display = 'Hospital'" with error message 'The service provider display value does not match the expected value'
SUCCESS 205ms
And FHIR current response body evaluates the FHIRPath "serviceProvider.identifier.value = '123456789'" with error message 'The service provider identifier value does not match the expected value'
SUCCESS 205ms
And FHIR current response body evaluates the FHIRPath "period.exists().not()" with error message 'A planned Encounter should not contain a period (time range).'
SUCCESS 205ms
And FHIR current response body evaluates the FHIRPath "extension.where(url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-Encounter.plannedStartDate' and value.toString().contains('2026-02-12')).exists()" with error message 'The planned start date is missing'
 RBellog 0  Evidence Report
SUCCESS 205ms
SUCCESS 3.19s
Serenity BDD version 5.3.10