☰ Scenario Search for the Medication by Ingredient Code and ID
Then Get FHIR resource at "http://fhirserver/Medication/?ingredient-code=L01DB01&_id=${data.medication-read-extended-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 response bundle contains resource with ID "${data.medication-read-extended-id}" with error message "The requested Medication ${data.medication-read-extended-id} is not contained in the response bundle"
INFO
entry.resource.where(id.replaceMatches('/_history/.+','').matches('\\bMedication-Read-Extended-Example$')).count() = 1
["BooleanType[true]"]