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

Read Information From A Resource Of Type Documentreference (@documentreference-Read)

  Mandatory   1 To 10 Seconds (Duration)   Stufe5   Dokumentenaustausch

Read document metadata by ID
Steps Outcome
When Get FHIR resource at "http://fhirserver/DocumentReference/${data.documentreference-read-id}" with content type "json"
SUCCESS 489ms
And resource has ID "DocumentReference-Read-Example"
SUCCESS 211ms
And FHIR current response body is a valid isik5 resource and conforms to profile "https://gematik.de/fhir/isik/StructureDefinition/ISiKDokumentenMetadaten"
SUCCESS 376ms
And FHIR current response body evaluates the FHIRPath "masterIdentifier.where(system = 'urn:ietf:rfc:3986' and value = 'urn:oid:1.2.840.113556.1.8000.2554.58783.21864.3474.19410.44358.58254.41281.46340').exists()" with error message 'The version-specific OID of the document does not match the expected value'
SUCCESS 209ms
And FHIR current response body evaluates the FHIRPath "identifier.where(system = 'urn:uuid:96fdda7c-d067-4183-912e-bf5ee74998a8' and value = '129.6.58.42.33726').exists()" with error message 'The identifier does not match the expected value'
SUCCESS 211ms
And FHIR current response body evaluates the FHIRPath "status = 'current'" with error message 'The document metadata status does not match the expected value'
SUCCESS 210ms
And FHIR current response body evaluates the FHIRPath "docStatus = 'final'" with error message 'The document processing status does not match the expected value'
SUCCESS 211ms
And FHIR current response body evaluates the FHIRPath "type.coding.where(system = 'http://dvmd.de/fhir/CodeSystem/kdl' and code = 'VL160105' and display = 'Pflegebericht').exists()" with error message 'The document type (KDL) code does not match the expected value'
SUCCESS 212ms
And FHIR current response body evaluates the FHIRPath "type.coding.where(system = 'http://ihe-d.de/CodeSystems/IHEXDStypeCode' and code = 'PFLG' and display = 'Pflegedokumentation').exists()" with error message 'The document type (XDS) code does not match the expected value'
SUCCESS 210ms
And FHIR current response body evaluates the FHIRPath "author.display.contains('Maxine Mustermann')" with error message 'The document author does not match the expected value'
SUCCESS 214ms
And FHIR current response body evaluates the FHIRPath "relatesTo.where(code = 'replaces' and target.reference.exists()).exists()" with error message 'The relationship to the replaced document does not match the expected value'
SUCCESS 211ms
And FHIR current response body evaluates the FHIRPath "securityLabel.coding.where(code = 'N' and system = 'http://terminology.hl7.org/CodeSystem/v3-Confidentiality').exists()" with error message 'The confidentiality does not match the expected value'
SUCCESS 212ms
And FHIR current response body evaluates the FHIRPath "content.where(attachment.where(contentType = 'application/pdf' and (language = 'de' or language.startsWith('de-')) and url.exists() and creation = @2026-01-31T14:50:50+01:00).exists() and format.where(code = 'urn:ihe:iti:xds:2017:mimeTypeSufficient' and system = 'http://ihe.net/fhir/ihe.formatco... with error message 'The attachment does not match the expected value'
SUCCESS 216ms
And FHIR current response body evaluates the FHIRPath "content.attachment.url.contains('Binary/Binary-PDF-Example')" with error message 'The Binary reference does not match the expected value'
SUCCESS 209ms
And FHIR current response body evaluates the FHIRPath "context.where(facilityType.coding.where(code = 'KHS' and system = 'http://ihe-d.de/CodeSystems/PatientBezogenenGesundheitsversorgung').exists() and practiceSetting.where(coding.where(code = 'ALLG' and system = 'http://ihe-d.de/CodeSystems/AerztlicheFachrichtungen').exists()).exists()).exists()" with error message 'The context Facility and Specialty does not match the expected value'
SUCCESS 214ms
And FHIR current response body evaluates the FHIRPath "context.where(event.coding.where(code = 'E100' and system = 'http://ihe-d.de/CodeSystems/FallkontextBeiDokumentenerstellung' and display = 'ambulanter Kontakt').exists()).exists()" with error message 'The context Event does not match the expected value'
SUCCESS 215ms
And FHIR current response body evaluates the FHIRPath "category.coding.where(code = 'DOK' and system = 'http://ihe-d.de/CodeSystems/IHEXDSclassCode' and display = 'Dokumente ohne besondere Form (Notizen)').exists()" with error message 'The document class does not match the expected value'
SUCCESS 213ms
And element "subject" references resource with ID "Patient-Read-Example" with error message "The reference to Patient does not match the expected value"
SUCCESS 211ms
And element "context.encounter" references resource with ID "Encounter-Read-Finished-Example" with error message "The reference to Encounter does not match the expected value"
SUCCESS 212ms
And referenced "Encounter" resource with id "${data.documentreference-read-encounter-id}" conforms to a valid v5 "ISiKKontaktGesundheitseinrichtung" profile
SUCCESS 563ms
And referenced "Patient" resource with id "${data.documentreference-read-patient-id}" conforms to a valid v5 "ISiKPatient" profile
SUCCESS 815ms
SUCCESS 5.86s
Serenity BDD version 4.3.2