☰ Scenario Search for the AllergyIntolerance resources by Patient, group by _count
When Get FHIR resource at "http://fhirserver/AllergyIntolerance/?_count=${data.search-count}&patient=Patient/${data.medication-allergyintolerance-read-patient-id}" with content type "xml"
And FHIR current response body evaluates the FHIRPath 'entry.resource.count() > 0 and entry.resource.count() <= ${data.search-count}' with error message 'No search results were found'
INFO
entry.resource.count() > 0 and entry.resource.count() <= 20
["BooleanType[true]"]
And element "patient" in all bundle resources references resource with ID "${data.medication-allergyintolerance-read-patient-id}" with error message 'There are search results, but they do not fully match the search criteria'
INFO
entry.resource.all(patient.reference.replaceMatches('/_history/.+','').matches('\\bPatient-Read-Example$'))
["BooleanType[true]"]