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

Read Information From A Resource Of Type Medicationstatement With Extended Data (@medicationstatement-Read-Extended)

  Mandatory   Medikation   1 To 10 Seconds (Duration)   Stufe5

Read and Validate the MedicationStatement with extended data by its ID
Steps Outcome
Then Get FHIR resource at "http://fhirserver/MedicationStatement/${data.medicationstatement-read-extended-id}" with content type "xml"
SUCCESS 256ms
And resource has ID "MedicationStatement-Read-Extended-Example"
SUCCESS 207ms
And FHIR current response body is a valid isik5 resource and conforms to profile "https://gematik.de/fhir/isik/StructureDefinition/ISiKMedikationsInformation"
SUCCESS 371ms
And TGR current response with attribute "$..status.value" matches "active"
SUCCESS 210ms
And FHIR current response body evaluates the FHIRPath "medication.coding.where(code = 'V03AB23' and system = 'http://fhir.de/CodeSystem/bfarm/atc' and display = 'Acetylcystein' and version = '2024').exists()" with error message 'The coded medication does not match the expected value'
SUCCESS 209ms
And element "subject" references resource with ID "Patient/Patient-Read-Example" with error message "The referenced patient does not match the expected value"
SUCCESS 208ms
And FHIR current response body evaluates the FHIRPath "effective.toString().contains('2026-03-05')" with error message 'The effective date does not match the expected value'
SUCCESS 207ms
And FHIR current response body evaluates the FHIRPath "reasonCode.coding.where(code.empty().not() and system.empty().not() and display.empty().not()).exists()" with error message 'The reason for medication is not specified correctly'
SUCCESS 207ms
And FHIR current response body evaluates the FHIRPath "dosage.first().timing.repeat.when = 'PC'" with error message 'The dosage repeat value does not match the expected value'
SUCCESS 207ms
And FHIR current response body evaluates the FHIRPath "dosage.first().timing.repeat.frequency = 2 and dosage.first().timing.repeat.frequencyMax = 3 and dosage.first().timing.repeat.period = 1 and dosage.first().timing.repeat.periodUnit = 'd'" with error message 'The dosage frequency does not match the expected value'
SUCCESS 212ms
And FHIR current response body evaluates the FHIRPath "dosage.first().asNeeded = false" with error message 'The as-needed value does not match the expected value'
SUCCESS 207ms
And FHIR current response body evaluates the FHIRPath "dosage.first().site.coding.where(system='http://snomed.info/sct' and code='738956005' and version = 'http://snomed.info/sct/11000274103/version/20251115' and display.empty().not()).exists()" with error message 'The dosage site does not match the expected value'
SUCCESS 209ms
And FHIR current response body evaluates the FHIRPath "dosage.first().route.coding.where(system='http://snomed.info/sct' and code='26643006' and version = 'http://snomed.info/sct/11000274103/version/20251115' and display.empty().not()).exists()" with error message 'The dosage route does not match the expected value'
SUCCESS 208ms
And FHIR current response body evaluates the FHIRPath "dosage.first().maxDosePerPeriod.numerator.value ~ 600 and dosage.first().maxDosePerPeriod.numerator.system = 'http://unitsofmeasure.org' and dosage.first().maxDosePerPeriod.numerator.code = 'mg' and dosage.first().maxDosePerPeriod.numerator.unit.hasValue() and dosage.first().maxDosePerPeriod.den... with error message 'The maximum dose per period does not match the expected value'
SUCCESS 212ms
And FHIR current response body evaluates the FHIRPath "dosage.first().maxDosePerAdministration.value ~ 200 and dosage.first().maxDosePerAdministration.system = 'http://unitsofmeasure.org' and dosage.first().maxDosePerAdministration.code = 'mg' and dosage.first().maxDosePerAdministration.unit.hasValue()" with error message 'The maximum dose per administration does not match the expected value'
SUCCESS 208ms
And referenced "Encounter" resource with id "${data.medication-encounter-id}" conforms to a valid v5 "ISiKKontaktGesundheitseinrichtung" profile
SUCCESS 5s 258ms
And referenced "Patient" resource with id "${data.medication-patient-id}" conforms to a valid v5 "ISiKPatient" profile
 RBellog 0  Evidence Report
SUCCESS 376ms
SUCCESS 9.09s
Serenity BDD version 5.3.10