Serenity BDD Report
Home > Requirements > Stufe5 > Medikation > Read information from a resource of type observation for alcohol abuse (@observation-alcohol-abuse-read)
Report generated 01-09-2026 07:15

Feature: Read information from a resource of type observation for alcohol abuse (@observation-alcohol-abuse-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 'medication-observation-alcohol-abuse-read-id'.

Create an Observation resource with these fields:

  • Id: the value of the configuration variable 'medication-observation-alcohol-abuse-read-id'
  • Profile: ISiKAlkoholAbusus
  • Status: final
  • Code:
    • Coding:
      • System: http://snomed.info/sct
      • Code: 15167005
      • Display: Schädlicher Gebrauch von Alkohol
      • Version: 20251115 (configured with the property 'snomed-ct-version')
    • Coding:
      • System: http://loinc.org
      • Code: 74043-1
      • Display: Alcohol use disorder
      • Version: 2.81 (can be configured with the property 'loinc-version')
  • Patient: Patient from the Patient-Read test case
  • Performer: Practitioner from the Practitioner-Read test case
  • Encounter: Encounter from the Encounter-Read-In-Progress test case
  • Effective date/time: 2026-01-06
  • Value:
    • Coding:
      • System: http://terminology.hl7.org/CodeSystem/v2-0532
      • Code: Y
      • Display: Yes
  • (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 "Observation"

When Get FHIR resource at "http://fhirserver/Observation/${data.medication-observation-alcohol-abuse-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/ISiKAlkoholAbusus"

And resource has ID "${data.medication-observation-alcohol-abuse-read-id}" with error message "The ID does not match the expected value"

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

And FHIR current response body evaluates the FHIRPath "code.coding.where(system = 'http://snomed.info/sct' and code = '15167005' and version = 'http://snomed.info/sct/11000274103/version/${data.snomed-ct-version}' and display.empty().not()).exists()" with error message 'The SNOMED CT code for alcohol abuse does not match the expected value'

And FHIR current response body evaluates the FHIRPath "code.coding.where(system = 'http://loinc.org' and code = '74043-1' and version = '${data.loinc-version}' and display.empty().not()).exists()" with error message 'The LOINC code for alcohol abuse does not match the expected value'

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

And element "performer" references resource with ID "Practitioner/${data.practitioner-read-id}" with error message "The referenced performer does not match the expected value"

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

And FHIR current response body evaluates the FHIRPath "effective.toString().contains('2026-01-06')" with error message 'The effective date does not match the expected value'

And FHIR current response body evaluates the FHIRPath "value.coding.where(system = 'http://terminology.hl7.org/CodeSystem/v2-0532' and code = 'Y' and display = 'Yes').exists()" with error message 'The alcohol abuse value does not match the expected value'

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 3 Total Duration 1m 24s
Total Number of Test Cases 3 Fastest Test 5s
Number of Manual Test Cases 0 Slowest Test 1m 5s
Tests Started Sep 01, 2026 07:15:25 Average Execution Time 28s
Tests Finished Sep 01, 2026 07:16:49 Cumulative Test Time
(sum of all individual test durations)
1m 24s

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Read information from a resource of type Observation for alcohol abuse (@Observation-Alcohol-Abuse-Read) Precondition 2 07:15:25 5s 455ms SUCCESS
Read information from a resource of type Observation for alcohol abuse (@Observation-Alcohol-Abuse-Read) Read and Validation of the CapabilityStatement 2 07:15:30 1m 6s SUCCESS
Read information from a resource of type Observation for alcohol abuse (@Observation-Alcohol-Abuse-Read) Read and Validate alcohol abuse Observation by its ID 11 07:16:36 13s 486ms 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 = 'Observation' 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 alcohol abuse Observation by its ID INFO - Code system definition is missing for 'http://snomed.info/sct#15167005'  Details
Read and Validate alcohol abuse Observation by its ID INFO - Code system definition is missing for 'http://loinc.org#74043-1'  Details
Read and Validate alcohol abuse Observation by its ID INFO - id.replaceMatches('/_history/.+','').matches('\\bAlcohol-Abuse-Read-Example$')  Details
Read and Validate alcohol abuse Observation by its ID INFO - code.coding.where(system = 'http://snomed.info/sct' and code = '15167005' and version = 'http://snomed.info/sct/11000274103/version/20251115' and display.empty().not()).exists()  Details
Read and Validate alcohol abuse Observation by its ID INFO - code.coding.where(system = 'http://loinc.org' and code = '74043-1' and version = '2.81' and display.empty().not()).exists()  Details
Read and Validate alcohol abuse Observation by its ID INFO - subject.reference.replaceMatches('/_history/.+','').matches('\\bPatient/Patient-Read-Example$')  Details
Read and Validate alcohol abuse Observation by its ID INFO - performer.reference.replaceMatches('/_history/.+','').matches('\\bPractitioner/Practitioner-Read-Example$')  Details
Read and Validate alcohol abuse Observation by its ID INFO - encounter.reference.replaceMatches('/_history/.+','').matches('\\bEncounter/Encounter-Read-In-Progress-Example$')  Details
Read and Validate alcohol abuse Observation by its ID INFO - effective.toString().contains('2026-01-06')  Details
Read and Validate alcohol abuse Observation by its ID INFO - value.coding.where(system = 'http://terminology.hl7.org/CodeSystem/v2-0532' and code = 'Y' and display = 'Yes').exists()  Details
Read and Validate alcohol abuse Observation by its ID RBellog 0  Download Evidence
Read and Validate alcohol abuse Observation by its ID Evidence Report  Download Evidence
Serenity BDD version 5.3.10