Serenity BDD Report
Report generated 01-09-2026 07:06

Read Information From A Resource Of Type Medication (@medication-Read)

  Mandatory   Medikation   1 To 10 Seconds (Duration)   Stufe5

Read and Validate the Medication by its ID
Steps Outcome
Then Get FHIR resource at "http://fhirserver/Medication/${data.medication-read-id}" with content type "xml"
SUCCESS 248ms
And resource has ID "Medication-Read-Example"
SUCCESS 207ms
And FHIR current response body is a valid isik5 resource and conforms to profile "https://gematik.de/fhir/isik/StructureDefinition/ISiKMedikament"
SUCCESS 279ms
And TGR current response with attribute "$..Medication.status.value" matches "active"
SUCCESS 210ms
And TGR current response with attribute "$..batch.lotNumber.value" matches "123"
SUCCESS 206ms
And FHIR current response body evaluates the FHIRPath "code.coding.where(code = 'V03AB23' and system = 'http://fhir.de/CodeSystem/bfarm/atc' and display = 'Acetylcystein' and version.hasValue()).exists()" with error message 'The code does not match the expected value'
SUCCESS 210ms
And FHIR current response body evaluates the FHIRPath "amount.where(numerator.value = 20 and numerator.system = 'http://unitsofmeasure.org' and numerator.unit.exists() and numerator.code = '1' and denominator.value = 1 and denominator.system = 'http://unitsofmeasure.org' and denominator.unit.exists() and denominator.code = '1').exists()" with error message 'The amount does not match the expected value'
SUCCESS 209ms
And FHIR current response body evaluates the FHIRPath "ingredient.item.exists()" with error message 'No reference to the ingredient exists'
SUCCESS 207ms
And element "ingredient.item" references resource with ID "Medication-Read-Referenced-Ingredient-Example" with error message "The ingredient reference does not match the expected value."
 RBellog 0  Evidence Report
SUCCESS 207ms
SUCCESS 2s
Serenity BDD version 5.3.10