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

Create A Resource Of Type Riskassessment (@riskassessment-Create)

  Mandatory   Medikation   1 To 10 Seconds (Duration)   Stufe5

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