☰ Scenario Search for the Encounter by Admission Date with the Search parameter 'date-start' and Patient
When Get FHIR resource at "http://fhirserver/Encounter/?date-start=ge1999-01-01&patient=Patient/${data.patient-read-id}" with content type "xml"
And FHIR current response body evaluates the FHIRPath 'entry.resource.count() > 0' with error message 'No search results were found'
INFO
entry.resource.count() > 0
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath "entry.resource.all(period.start >= @1999-01-01T00:00:00+01:00)" with error message 'There are search results, but they do not fully match the search criteria'
INFO
entry.resource.all(period.start >= @1999-01-01T00:00:00+01:00)
["BooleanType[true]"]
And response bundle contains resource with ID "${data.vitalparameter-encounter-id}" with error message "The requested encounter ${data.vitalparameter-encounter-id} is not contained in the response bundle."
INFO
entry.resource.where(id.replaceMatches('/_history/.+','').matches('\\bEncounter-Basic-Role-Example$')).count() = 1
["BooleanType[true]"]