☰ Scenario Search for the MedicationRequest that belong to a Patient, by Medication Code
Then Get FHIR resource at "http://fhirserver/MedicationRequest/?medication.code=V03AB23&patient=Patient/${data.medication-patient-id}" with content type "xml"
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 response bundle contains resource with ID "${data.medicationrequest-read-id}" with error message "The MedicationRequest with ID ${data.medicationrequest-read-id} is not contained in the response bundle"
INFO
entry.resource.where(id.replaceMatches('/_history/.+','').matches('\\bMedicationRequest-Read-Example$')).count() = 1
["BooleanType[true]"]