Serenity BDD Report
Report generated 23-03-2026 09:40

Upload Of A Documentreference With POST Operation (dokumentenbereitstellung) (@documentreference-Post)

  Mandatory   1 To 10 Seconds (Duration)   Stufe5   Dokumentenaustausch

POST an incorrect DocumentBundle

Scenario Outline

Given TGR set default header "Content-Type" to "application/fhir+json"
When TGR send POST request to "http://fhirserver/DocumentReference" with body "!{file('src/test/resources/features/Stufe5/Dokumentenaustausch/fixtures/<inputFile>')}"
And TGR find the last request
Then TGR current response with attribute "$.responseCode" matches "<responseCode>"
And FHIR current response body evaluates the FHIRPath "issue.where(severity = 'error' or 'fatal').count() >= 1" with error message 'The OperationOutcome does not contain the required issue(s)'

Examples: 

# Input File Response Code
1 DocumentReference-Post-UnknownPatient.json 422
2 DocumentReference-Post-UnknownEncounter.json 422
3 DocumentReference-Post-MissingAttachmentData.json 4\d\d
Steps Outcome
SUCCESS 1s 418ms
SUCCESS 3s 490ms
SUCCESS 1s 380ms
SUCCESS 6.3s
Serenity BDD version 4.3.2