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

Create A Resource Of Type Medicationrequest (@medicationrequest-Create)

  Mandatory   Medikation   1 To 10 Seconds (Duration)   Stufe5

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