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

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

Create an Observation resource with these fields:

  • Id: the value of the configuration variable 'medication-observation-breastfeeding-read-id'
  • Profile: ISiKStillstatus
  • Status: final
  • Code:
    • Coding:
      • System: http://snomed.info/sct
      • Code: 413712001
      • Display: Breastfeeding (mother)
      • Version: 20251115 (configured with the property 'snomed-ct-version')
    • Coding:
      • System: http://loinc.org
      • Code: 63895-7
      • Display: Breastfeeding status
      • Version: 2.81 (can be configured with the property 'loinc-version')
  • Patient: Patient from the Patient-Read-Extended 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://loinc.org
      • Code: LA29252-6
      • Display: Currently breastfeeding
      • Version: 2.81 (can be configured with the property 'loinc-version')
  • (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-breastfeeding-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/ISiKStillstatus"

And resource has ID "${data.medication-observation-breastfeeding-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 = '413712001' 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 breastfeeding status does not match the expected value'

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

And element "subject" references resource with ID "Patient/${data.patient-read-extended-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://loinc.org' and code = 'LA29252-6' and version = '${data.loinc-version}' and display.empty().not()).exists()" with error message 'The breastfeeding status value 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 422ms
Number of Manual Test Cases 0 Slowest Test 2s
Tests Started Sep 01, 2026 07:06:05 Average Execution Time 1s
Tests Finished Sep 01, 2026 07:06:10 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 Observation for breastfeeding status (@Observation-Breastfeeding-Read) Precondition 2 07:06:05 422ms SUCCESS
Read information from a resource of type Observation for breastfeeding status (@Observation-Breastfeeding-Read) Read and Validation of the CapabilityStatement 2 07:06:06 2s 337ms SUCCESS
Read information from a resource of type Observation for breastfeeding status (@Observation-Breastfeeding-Read) Read and Validate breastfeeding Observation by its ID 11 07:06:08 2s 361ms 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 breastfeeding Observation by its ID INFO - Code system definition is missing for 'http://snomed.info/sct#413712001'  Details
Read and Validate breastfeeding Observation by its ID INFO - Code system definition is missing for 'http://loinc.org#63895-7'  Details
Read and Validate breastfeeding Observation by its ID INFO - Code system definition is missing for 'http://loinc.org#LA29252-6'  Details
Read and Validate breastfeeding Observation by its ID INFO - id.replaceMatches('/_history/.+','').matches('\\bBreastfeeding-Read-Example$')  Details
Read and Validate breastfeeding Observation by its ID INFO - code.coding.where(system = 'http://snomed.info/sct' and code = '413712001' and version = 'http://snomed.info/sct/11000274103/version/20251115' and display.empty().not()).exists()  Details
Read and Validate breastfeeding Observation by its ID INFO - code.coding.where(system = 'http://loinc.org' and code = '63895-7' and version = '2.81' and display.empty().not()).exists()  Details
Read and Validate breastfeeding Observation by its ID INFO - subject.reference.replaceMatches('/_history/.+','').matches('\\bPatient/Patient-Read-Extended-Example$')  Details
Read and Validate breastfeeding Observation by its ID INFO - performer.reference.replaceMatches('/_history/.+','').matches('\\bPractitioner/Practitioner-Read-Example$')  Details
Read and Validate breastfeeding Observation by its ID INFO - encounter.reference.replaceMatches('/_history/.+','').matches('\\bEncounter/Encounter-Read-In-Progress-Example$')  Details
Read and Validate breastfeeding Observation by its ID INFO - effective.toString().contains('2026-01-06')  Details
Read and Validate breastfeeding Observation by its ID INFO - value.coding.where(system = 'http://loinc.org' and code = 'LA29252-6' and version = '2.81' and display.empty().not()).exists()  Details
Read and Validate breastfeeding Observation by its ID RBellog 0  Download Evidence
Read and Validate breastfeeding Observation by its ID Evidence Report  Download Evidence
Serenity BDD version 5.3.10