☰ Scenario Search for the Encounter by Patient and Encounter ID
When Get FHIR resource at "http://fhirserver/Encounter/?patient=Patient/${data.patient-read-id}&_id=${data.vitalparameter-encounter-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 "subject" in all bundle resources references resource with ID "${data.patient-read-id}"
INFO
entry.resource.all(subject.reference.replaceMatches('/_history/.+','').matches('\\bPatient-Read-Example$'))
["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]"]