☰ Scenario Optional Search for Conditions by Clinical Status 'active', group by _count
When Get FHIR resource at "http://fhirserver/Condition/?clinical-status=active&_count=${data.search-count}" with content type "json"
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 FHIR current response body evaluates the FHIRPath "entry.resource.all(clinicalStatus.coding.where(code='active').exists())" with error message 'There are search results, but they do not match the expected clinical-status'
INFO
entry.resource.all(clinicalStatus.coding.where(code='active').exists())
["BooleanType[true]"]