☰ Scenario Optional Search for Procedures by Subject reference
When Get FHIR resource at "http://fhirserver/Procedure/?subject=Patient/${data.medication-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 valid search results were found'
INFO
entry.resource.count() > 0 and entry.resource.count() <= 20
["BooleanType[true]"]
And element "subject" in all bundle resources references resource with ID "${data.medication-patient-id}"
INFO
entry.resource.all(subject.reference.replaceMatches('/_history/.+','').matches('\\bPatient-Read-Example$'))
["BooleanType[true]"]