☰ Scenario Read the Binary resource referenced in the DocumentReference resource
When Get FHIR resource at "http://fhirserver/Binary/${data.documentreference-read-binary-id}" with content type "json"
And FHIR current response body is a valid isik5 resource and conforms to profile "https://gematik.de/fhir/isik/StructureDefinition/ISiKBinary"
And resource has ID "${data.documentreference-read-binary-id}" with error message "The Binary ID does not match the expected value"
INFO
id.replaceMatches('/_history/.+','').matches('\\bBinary-PDF-Example$')
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath "contentType.value = 'application/pdf'" with error message 'The content type does not match the expected value'
INFO
contentType.value = 'application/pdf'
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath "data.value.empty().not()" with error message 'The data value does not match the expected value'
INFO
data.value.empty().not()
["BooleanType[true]"]