☰ Scenario Search for Practitioner resource by Last Name (family) and ID
When Get FHIR resource at "http://fhirserver/Practitioner/?family=Musterarzt&_id=${data.practitioner-read-id}" 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.all(name.family.where($this.startsWith('Musterarzt')).exists())" with error message 'There are search results, but they do not fully match the search criteria'
INFO
entry.resource.all(name.family.where($this.startsWith('Musterarzt')).exists())
["BooleanType[true]"]
And response bundle contains resource with ID "${data.practitioner-read-id}" with error message "The requested Practitioner resource ${data.practitioner-read-id} is not contained in the response bundle"
INFO
entry.resource.where(id.replaceMatches('/_history/.+','').matches('\\bPractitioner-Read-Example$')).count() = 1
["BooleanType[true]"]