Search for the DocumentReference that belong to a Patient, by Encounter
Steps
Outcome
When Get FHIR resource at "http://fhirserver/DocumentReference/?encounter=Encounter/${data.documentreference-read-encounter-id}&patient=Patient/${data.documentreference-read-patient-id}" with content type "json"
curl -v -H "accept: application/fhir+json" -X GET "http://fhirserver/DocumentReference/?encounter=Encounter/Encounter-Read-Finished-Example&patient=Patient/Patient-Read-Example"
SUCCESS
593ms
And FHIR current response body evaluates the FHIRPath 'entry.resource.count() > 0' with error message 'No search results were found'
SUCCESS
211ms
And FHIR current response body evaluates the FHIRPath "entry.resource.all(context.encounter.where(reference.replaceMatches('/_history/.+','').matches('\\bEncounter-Read-Finished-Example$')).exists())" with error message 'The requested DocumentReference DocumentReference-Read-Example is not contained in the response bundle'