☰ Scenario Search for the Encounter by Status and ID
When Get FHIR resource at "http://fhirserver/Encounter/?status=in-progress&_id=${data.encounter-read-in-progress-id}" with content type "json"
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(status = 'in-progress')" with error message 'There are search results, but they do not fully match the search criteria'
INFO
entry.resource.all(status = 'in-progress')
["BooleanType[true]"]
And response bundle contains resource with ID "${data.encounter-read-in-progress-id}" with error message "The requested Encounter ${data.encounter-read-in-progress-id} is not contained in the response bundle."
INFO
entry.resource.where(id.replaceMatches('/_history/.+','').matches('\\bEncounter-Read-In-Progress-Example$')).count() = 1
["BooleanType[true]"]