Serenity BDD Report
Home > Requirements > Stufe5 > Basis > Read information from a resource of type procedure (@procedure-read)
Report generated 01-09-2026 07:03

Feature: Read information from a resource of type procedure (@procedure-read)

Scenarios

Given the Test Description: "The system under test must return the complete resource in response to an HTTP GET request to its URL (READ)."

Given the Preconditions: - The test dataset must have been entered in the system under test according to the specifications (manually).
- The ID of the corresponding FHIR resource for this test dataset must be stored in the configuration variable 'procedure-read-id'.

Create a Procedure resource with these fields:

* Patient reference: Patient from the Patient-Read test case
* Encounter reference: Encounter from the Encounter-Read-In-Progress test case
* Type of procedure: surgical intervention (SNOMED CT from the German National Edition category code: 387713003, version: configured with the variable 'snomed-ct-version')
* Procedure codes:
  - SNOMED CT: appendectomy (from the German National Edition code: 6025007, version: configured with the variable 'snomed-ct-version')
  - OPS code: 5-470.11 (catalog version: any valid catalog version)
* Status: completed
* Performed date: 2026-01-05
* Note: Test note
* Documentation date: 2026-01-05
* (Optional) Tag: Value defined through the configuration variables 'tag-value' and 'tag-system'

When Get FHIR resource at "http://fhirserver/metadata" with content type "json"

And CapabilityStatement contains interaction "read" for resource "Procedure"

When Get FHIR resource at "http://fhirserver/Procedure/${data.procedure-read-id}" with content type "xml"

And FHIR current response body is a valid isik5 resource and conforms to profile "https://gematik.de/fhir/isik/StructureDefinition/ISiKProzedur"

And resource has ID "${data.procedure-read-id}"

And TGR current response with attribute "$..status.value" matches "completed"

And FHIR current response body evaluates the FHIRPath 'category.coding.where(code = "387713003" and system = "http://snomed.info/sct" and version = "http://snomed.info/sct/11000274103/version/${data.snomed-ct-version}").exists()' with error message 'The Procedure resource does not contain a correct categorization'

And FHIR current response body evaluates the FHIRPath 'code.coding.where(code = "5-470.11" and system = "http://fhir.de/CodeSystem/bfarm/ops" and version.exists()).exists()' with error message 'The Procedure resource does not contain a correct OPS coding'

And FHIR current response body evaluates the FHIRPath "code.coding.where(code = '6025007' and system = 'http://snomed.info/sct' and version = 'http://snomed.info/sct/11000274103/version/${data.snomed-ct-version}').exists()" with error message 'The Procedure resource does not contain a correct SNOMED-CT coding'

And element "subject" references resource with ID "${data.patient-read-id}" with error message "The referenced Patient does not match the expected value"

And element "encounter" references resource with ID "${data.encounter-read-in-progress-id}" with error message "Referenced Encounter does not match the expected value"

And FHIR current response body evaluates the FHIRPath "performed.toString().contains('2026-01-05') or ( performed.start.toString().contains('2026-01-05') and performed.end.toString().contains('2026-01-05') )" with error message "The Procedure does not contain a performed date"

And FHIR current response body evaluates the FHIRPath 'note.where(text = "Test note").exists()' with error message 'The note does not match the expected value'

And FHIR current response body evaluates the FHIRPath 'extension.where(url = "http://fhir.de/StructureDefinition/ProzedurDokumentationsdatum" and value.toString().contains("2026-01-05")).exists()' with error message 'The documentation date does not match the expected value'

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 3 Total Duration 5s
Total Number of Test Cases 3 Fastest Test 420ms
Number of Manual Test Cases 0 Slowest Test 2s
Tests Started Sep 01, 2026 07:03:40 Average Execution Time 1s
Tests Finished Sep 01, 2026 07:03:45 Cumulative Test Time
(sum of all individual test durations)
5s

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Read Information from a resource of type Procedure (@Procedure-Read) Precondition 2 07:03:40 420ms SUCCESS
Read Information from a resource of type Procedure (@Procedure-Read) Read and Validation of the CapabilityStatement 2 07:03:40 2s 335ms SUCCESS
Read Information from a resource of type Procedure (@Procedure-Read) Read and Validate Procedure by its ID 12 07:03:42 2s 564ms SUCCESS

Manual Tests

No manual tests were recorded

Evidence

Scenario Title Details
Precondition RBellog 0  Download Evidence
Read and Validation of the CapabilityStatement INFO - rest.where(mode = 'server').resource.where(type = 'Procedure' and interaction.where(code = 'read').exists()).exists()  Details
Read and Validation of the CapabilityStatement RBellog 0  Download Evidence
Read and Validation of the CapabilityStatement Evidence Report  Download Evidence
Read and Validate Procedure by its ID INFO - Code system definition is missing for 'http://snomed.info/sct#387713003'  Details
Read and Validate Procedure by its ID WARN - Value set https://gematik.de/fhir/isik/ValueSet/ProzedurenKategorieSCT has been ignored due to module configuration  Details
Read and Validate Procedure by its ID INFO - Code system definition is missing for 'http://snomed.info/sct#6025007'  Details
Read and Validate Procedure by its ID INFO - Code system definition is missing for 'http://fhir.de/CodeSystem/bfarm/ops#5-470.11'  Details
Read and Validate Procedure by its ID WARN - Value set https://gematik.de/fhir/isik/ValueSet/ProzedurenCodesSCT has been ignored due to module configuration  Details
Read and Validate Procedure by its ID INFO - id.replaceMatches('/_history/.+','').matches('\\bProcedure-Read-Example$')  Details
Read and Validate Procedure by its ID INFO - category.coding.where(code = "387713003" and system = "http://snomed.info/sct" and version = "http://snomed.info/sct/11000274103/version/20251115").exists()  Details
Read and Validate Procedure by its ID INFO - code.coding.where(code = "5-470.11" and system = "http://fhir.de/CodeSystem/bfarm/ops" and version.exists()).exists()  Details
Read and Validate Procedure by its ID INFO - code.coding.where(code = '6025007' and system = 'http://snomed.info/sct' and version = 'http://snomed.info/sct/11000274103/version/20251115').exists()  Details
Read and Validate Procedure by its ID INFO - subject.reference.replaceMatches('/_history/.+','').matches('\\bPatient-Read-Example$')  Details
Read and Validate Procedure by its ID INFO - encounter.reference.replaceMatches('/_history/.+','').matches('\\bEncounter-Read-In-Progress-Example$')  Details
Read and Validate Procedure by its ID INFO - performed.toString().contains('2026-01-05') or ( performed.start.toString().contains('2026-01-05') and performed.end.toString().contains('2026-01-05') )  Details
Read and Validate Procedure by its ID INFO - note.where(text = "Test note").exists()  Details
Read and Validate Procedure by its ID INFO - extension.where(url = "http://fhir.de/StructureDefinition/ProzedurDokumentationsdatum" and value.toString().contains("2026-01-05")).exists()  Details
Read and Validate Procedure by its ID RBellog 0  Download Evidence
Read and Validate Procedure by its ID Evidence Report  Download Evidence
Serenity BDD version 5.3.10