☰ Scenario Search for the Encounter by Account ID and Patient
When Get FHIR resource at "http://fhirserver/Encounter/?account=${data.account-read-id}&patient=Patient/${data.account-read-patient-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 element "account" in all bundle resources references resource with ID "${data.account-read-id}"
INFO
entry.resource.all(account.reference.replaceMatches('/_history/.+','').matches('\\bAccount-Read-Example$'))
["BooleanType[true]"]
And response bundle contains resource with ID "${data.encounter-read-finished-id}" with error message "The requested Encounter ${data.encounter-read-finished-id} is not contained in the response bundle."
INFO
entry.resource.where(id.replaceMatches('/_history/.+','').matches('\\bEncounter-Read-Finished-Example$')).count() = 1
["BooleanType[true]"]