Serenity BDD Report
Report generated 23-03-2026 09:37

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

  Mandatory   Basis   1 To 10 Seconds (Duration)   Stufe5

Read and Validate finished Encounter by its ID
Steps Outcome
When Get FHIR resource at "http://fhirserver/Encounter/${data.encounter-read-finished-id}" with content type "xml"
SUCCESS 496ms
And FHIR current response body is a valid isik5 resource and conforms to profile "https://gematik.de/fhir/isik/StructureDefinition/ISiKKontaktGesundheitseinrichtung"
SUCCESS 249ms
And resource has ID "Encounter-Read-Finished-Example" with error message "The returned Encounter resource has not the expected ID"
SUCCESS 206ms
And TGR current response with attribute "$..status.value" matches "finished"
SUCCESS 213ms
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 213ms
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 206ms
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 209ms
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 208ms
And element "subject" references resource with ID "Account-Read-Patient-Example" with error message "The referenced Patient does not match the expected value"
SUCCESS 211ms
And FHIR current response body evaluates the FHIRPath "period.start.toString().contains('2026-01-06')" with error message 'The Encounter does not contain a valid start date'
SUCCESS 211ms
And FHIR current response body evaluates the FHIRPath "period.end.toString().contains('2026-01-08')" with error message 'The Encounter does not contain a valid end date.'
SUCCESS 208ms
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 212ms
And FHIR current response body evaluates the FHIRPath "extension.where(url = 'http://fhir.de/StructureDefinition/Aufnahmegrund' and extension.where(url = 'ErsteUndZweiteStelle' and value.code = '01' and value.system = 'http://fhir.de/CodeSystem/dkgev/AufnahmegrundErsteUndZweiteStelle').exists()).exists()" with error message 'The encounter does not contain the correct admission reason'
SUCCESS 212ms
And element "account" references resource with ID "Account/Account-Read-Example" with error message "The linked billing case does not match the expected value"
SUCCESS 208ms
And FHIR current response body evaluates the FHIRPath "account.identifier.value = '0123456789'" with error message 'The identifier of the linked billing case does not match the expected value'
SUCCESS 209ms
And FHIR current response body evaluates the FHIRPath "location.location.identifier.where(system = 'https://test.krankenhaus.de/fhir/sid/zimmerId' and value = 'Z001').exists()" with error message 'The location does not contain the correct code'
SUCCESS 207ms
SUCCESS 3.69s
Serenity BDD version 4.3.2