☰ Scenario Optional Search for the Condition by Tag and ID
When Get FHIR resource at "http://fhirserver/Coverage/?_tag=${data.tag-system}%7C${data.tag-value}&_id=${data.coverage-read-private-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 FHIR current response body evaluates the FHIRPath "entry.resource.all(meta.tag.where(code='${data.tag-value}').exists())" with error message 'There are search results, but they do not fully match the search criteria'
INFO
entry.resource.all(meta.tag.where(code='external').exists())
["BooleanType[true]"]
And response bundle contains resource with ID "${data.coverage-read-private-id}" with error message "The requested Coverage ${data.coverage-read-private-id} is not contained in the response bundle."
INFO
entry.resource.where(id.replaceMatches('/_history/.+','').matches('\\bCoverage-Read-Private-Example$')).count() = 1
["BooleanType[true]"]