Serenity BDD Report
Home > Stufe5 > Basis > Testing search parameters against a resource of type encounter-read-in-progress (@Encounter-Search) > Search for the encounter by admission date with both search parameters 'date-start' and 'end-date'
Report generated 23-03-2026 09:38

Testing Search Parameters Against A Resource Of Type Encounter-Read-In-Progress (@encounter-Search)

  Mandatory   Basis   1 To 10 Seconds (Duration)   Stufe5

Search for the Encounter by Admission Date with both Search parameters 'date-start' and 'end-date'
Steps Outcome
When Get FHIR resource at "http://fhirserver/Encounter/?date-start=ge2026-01-05&end-date=le2026-01-14" with content type "xml"
SUCCESS 521ms
And FHIR current response body evaluates the FHIRPath 'entry.resource.count() > 0' with error message 'No search results were found'
SUCCESS 209ms
And FHIR current response body evaluates the FHIRPath "entry.resource.all(period.start > @2026-01-05T00:00:00+01:00 and period.end < @2026-01-14T23:59:59+01:00).allTrue()" with error message 'There are search results, but they do not fully match the search criteria'
SUCCESS 210ms
And bundle does not contain resource "Encounter" with ID "Encounter-Read-In-Progress-Example" with error message "The requested encounter Encounter-Read-In-Progress-Example must not be returned here."
SUCCESS 216ms
And response bundle contains resource with ID "Encounter-Read-Finished-Example" with error message "The requested encounter {data.encounter-read-finished-id} is not contained in the response bundle."
SUCCESS 216ms
SUCCESS 1.38s
Serenity BDD version 4.3.2