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

Create A Resource Of Type Medicationadministration (@medicationadministration-Create)

  Mandatory   Medikation   1 To 10 Seconds (Duration)   Stufe5

Create a MedicationAdministration resource via POST
Steps Outcome
Given TGR set default header "Content-Type" to "application/fhir+json"
SUCCESS 203ms
When TGR send POST request to "http://fhirserver/MedicationAdministration" with body "!{file('src/test/resources/features/Stufe5/Medikation/fixtures/MedicationAdministration-Create-Fixture.json')}"
SUCCESS 448ms
And TGR find the last request
SUCCESS 205ms
Then TGR current response with attribute "$.responseCode" matches "20\d"
SUCCESS 202ms
And FHIR current response body evaluates the FHIRPath '($this is MedicationAdministration) or ($this is Parameters)' with error message 'The response contains neither a MedicationAdministration nor a Parameters resource'
SUCCESS 207ms
And FHIR current response body evaluates the FHIRPath '($this is MedicationAdministration) implies id.exists()' with error message 'No ID was assigned to the MedicationAdministration'
SUCCESS 203ms
And FHIR current response body evaluates the FHIRPath "($this is MedicationAdministration) implies status.toString().matches('^completed')" with error message 'MedicationAdministration status does not have the value "completed"'
SUCCESS 204ms
And FHIR current response body evaluates the FHIRPath "($this is Parameters) implies parameter.where(name = 'return' and resource is MedicationAdministration).resource.id.exists()" with error message 'No ID was assigned to the MedicationAdministration'
SUCCESS 205ms
And FHIR current response body evaluates the FHIRPath "($this is Parameters) implies parameter.where(name = 'return' and resource is MedicationAdministration).resource.status.toString().matches('^completed')" with error message 'MedicationAdministration status does not have the value "completed"'
 RBellog 0  Evidence Report
SUCCESS 205ms
SUCCESS 2.19s
Serenity BDD version 5.3.10