Serenity BDD Report
Home > Requirements > Stufe5 > Medikation > Read information from a resource of type medication with extended data (@medication-read-extended)
Report generated 01-09-2026 07:12

Feature: Read information from a resource of type medication with extended data (@medication-read-extended)

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 data set must have been recorded in the system under test according to the specifications (manually).

  • The ID of the corresponding FHIR resource for this test data set must be stored in the configuration variable 'medication-read-extended-id'.

Create a Medication resource in your system with the following values:

  • Id: The value of the configuration variable 'medication-read-extended-id'
  • Status: active
  • Form:
    • Display: Solution for infusion
    • Code: 11210000
    • System: http://standardterms.edqm.eu
  • Code:
    • Text: Any not empty value
    • Code: L01DB01
    • Display: Doxorubicin
    • System: http://fhir.de/CodeSystem/bfarm/atc
    • Version: any (the value of the configuration variable 'atc-code-version')
  • Ingredient:
    • Substance type: active ingredient
    • Strength:
      • Numerator: 85mg
      • Denominator: 250 mL
    • Coding:
      • Code: L01DB01
      • Display: Doxorubicin
      • System: http://fhir.de/CodeSystem/bfarm/atc
      • Version: any (the value of the configuration variable 'atc-code-version')
    • Extension:
      • URL: https://www.medizininformatik-initiative.de/fhir/core/modul-medikation/StructureDefinition/wirkstofftyp
      • ValueCoding:
        • Code: IN
        • System: https://www.medizininformatik-initiative.de/fhir/core/modul-medikation/CodeSystem/wirkstofftyp

Then Get FHIR resource at "http://fhirserver/Medication/${data.medication-read-extended-id}" with content type "xml"

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

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

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

And FHIR current response body evaluates the FHIRPath "code.text.empty().not()" with error message 'The code does not contain a valid text value'

And FHIR current response body evaluates the FHIRPath "code.coding.where(code = 'L01DB01' and system = 'http://fhir.de/CodeSystem/bfarm/atc' and display = 'Doxorubicin' and version.hasValue()).exists()" with error message 'The code does not contain the expected information'

And FHIR current response body evaluates the FHIRPath "form.coding.where(system = 'http://standardterms.edqm.eu' and code = '11210000' and display = 'Solution for infusion').exists()" with error message 'The form does not match the expected value'

And FHIR current response body evaluates the FHIRPath "ingredient.where(isActive = 'true' and extension.where(url = 'https://www.medizininformatik-initiative.de/fhir/core/modul-medikation/StructureDefinition/wirkstofftyp' and value.where(code = 'IN' and system = 'https://www.medizininformatik-initiative.de/fhir/core/modul-medikation/CodeSystem/wirkstofftyp').exists()).exists() ).exists() and ingredient.where(item.coding.where(code = 'L01DB01' and system = 'http://fhir.de/CodeSystem/bfarm/atc' and display = 'Doxorubicin' and version.hasValue()).exists() and strength.where(numerator.where(value ~ 85 and unit.hasValue() and system = 'http://unitsofmeasure.org' and code = 'mg').exists() and denominator.where(value ~ 250 and unit.hasValue() and system = 'http://unitsofmeasure.org' and code = 'mL').exists()).exists() ).exists()" with error message 'The doxorubicin ingredient description does not match the expected value'

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 2 Total Duration 9s
Total Number of Test Cases 2 Fastest Test 449ms
Number of Manual Test Cases 0 Slowest Test 9s
Tests Started Sep 01, 2026 07:12:03 Average Execution Time 4s
Tests Finished Sep 01, 2026 07:12:13 Cumulative Test Time
(sum of all individual test durations)
9s

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Read Information from a resource of type Medication with extended data (@Medication-Read-Extended) Precondition 2 07:12:03 449ms SUCCESS
Read Information from a resource of type Medication with extended data (@Medication-Read-Extended) Read and Validate the Medication by its ID 8 07:12:04 9s 490ms SUCCESS

Manual Tests

No manual tests were recorded

Evidence

Scenario Title Details
Precondition RBellog 0  Download Evidence
Read and Validate the Medication by its ID INFO - id.replaceMatches('/_history/.+','').matches('\\bMedication-Read-Extended-Example$')  Details
Read and Validate the Medication by its ID INFO - Code system definition is missing for 'http://fhir.de/CodeSystem/bfarm/atc#L01DB01'  Details
Read and Validate the Medication by its ID INFO - This element does not match any known slice defined in the profile https://gematik.de/fhir/isik/StructureDefinition/ISiKMedikament|5.1.2  Details
Read and Validate the Medication by its ID INFO - This element does not match any known slice defined in the profile https://gematik.de/fhir/isik/StructureDefinition/ISiKMedikament|5.1.2  Details
Read and Validate the Medication by its ID INFO - Unknown extension https://www.medizininformatik-initiative.de/fhir/core/modul-medikation/StructureDefinition/wirkstofftyp  Details
Read and Validate the Medication by its ID INFO - Code system definition is missing for 'http://fhir.de/CodeSystem/bfarm/atc#L01DB01'  Details
Read and Validate the Medication by its ID INFO - code.text.empty().not()  Details
Read and Validate the Medication by its ID INFO - code.coding.where(code = 'L01DB01' and system = 'http://fhir.de/CodeSystem/bfarm/atc' and display = 'Doxorubicin' and version.hasValue()).exists()  Details
Read and Validate the Medication by its ID INFO - form.coding.where(system = 'http://standardterms.edqm.eu' and code = '11210000' and display = 'Solution for infusion').exists()  Details
Read and Validate the Medication by its ID INFO - ingredient.where(isActive = 'true' and extension.where(url = 'https://www.medizininformatik-initiative.de/fhir/core/modul-medikation/StructureDefinition/wirkstofftyp' and value.where(code = 'IN' and system = 'https://www.medizininformatik-initiative.de/fhir/core/modul-medikation/CodeSystem/wirkstofftyp').exists()).exists() ).exists() and ingredient.where(item.coding.where(code = 'L01DB01' and system = 'http://fhir.de/CodeSystem/bfarm/atc' and display = 'Doxorubicin' and version.hasValue()).exists() and strength.where(numerator.where(value ~ 85 and unit.hasValue() and system = 'http://unitsofmeasure.org' and code = 'mg').exists() and denominator.where(value ~ 250 and unit.hasValue() and system = 'http://unitsofmeasure.org' and code = 'mL').exists()).exists() ).exists()  Details
Read and Validate the Medication by its ID RBellog 0  Download Evidence
Read and Validate the Medication by its ID Evidence Report  Download Evidence
Serenity BDD version 5.3.10