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