☰ Scenario Search for the MedicationRequest by Patient Identifier
Then Get FHIR resource at "http://fhirserver/MedicationRequest/?patient.identifier=${data.medication-patient-identifier}" 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(subject.identifier.value='${data.medication-patient-identifier}' or subject.reference.replaceMatches('/_history/.+','').matches('Patient/${data.medication-patient-id}$'))" with error message 'There are search results, but they do not fully match the search criteria'
INFO
entry.resource.all(subject.identifier.value='X485231029' or subject.reference.replaceMatches('/_history/.+','').matches('Patient/Patient-Read-Example$'))
["BooleanType[true]"]