☰ Scenario Search for the Medication by Referenced Ingredient
Then Get FHIR resource at "http://fhirserver/Medication/?ingredient=Medication/${data.medication-read-referenced-ingredient}" 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 "ingredient.item" in all bundle resources references resource with ID "${data.medication-read-referenced-ingredient}"
INFO
entry.resource.all(ingredient.item.reference.replaceMatches('/_history/.+','').matches('\\bMedication-Read-Referenced-Ingredient-Example$'))
["BooleanType[true]"]