☰ Scenario Search for the Coverage by Status and Beneficiary
When Get FHIR resource at "http://fhirserver/Coverage/?status=active&beneficiary=Patient/${data.patient-read-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(status = 'active')" with error message 'There are search results, but they do not fully match the search criteria'
INFO
entry.resource.all(status = 'active')
["BooleanType[true]"]
And element "beneficiary" in all bundle resources references resource with ID "${data.patient-read-id}"
INFO
entry.resource.all(beneficiary.reference.replaceMatches('/_history/.+','').matches('\\bPatient-Read-Example$'))
["BooleanType[true]"]