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

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

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 Medication-Read test case must have been executed successfully beforehand.

  • The test data set must have been recorded in the system under test according to the specifications (manually).
  • The ID of the corresponding FHIR resources for this test data set must be stored in the configuration variable 'medicationadministration-read-rate-id'.

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

  • Status: completed
  • Referenced medication: the medication from test case Medication-Read
  • Dosage:
    • Text: any (not empty)
    • Dose: 1000mL in total
    • Rate Quantity: 50 mL/h
    • Site:
      • Code: 6073002
      • Display: Structure of ligament of left superior vena cava
      • System: http://snomed.info/sct
      • Version: 20251115 (can be configured with the property 'snomed-ct-version')
    • Route:
      • Code: 255560000
      • Display: Intravenous
      • System: http://snomed.info/sct
      • Version: 20251115 (can be configured with the property 'snomed-ct-version')

Then Get FHIR resource at "http://fhirserver/MedicationAdministration/${data.medicationadministration-read-rate-id}" with content type "xml"

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

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

And FHIR current response body evaluates the FHIRPath "dosage.text.empty().not()" with error message 'The dosage text is not specified'

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

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

And FHIR current response body evaluates the FHIRPath "dosage.dose.code = 'mL' and dosage.dose.system = 'http://unitsofmeasure.org' and dosage.dose.unit.hasValue() and dosage.dose.value ~ 1000" with error message "The total dose does not match the expected value"

And FHIR current response body evaluates the FHIRPath "(dosage.rate.is(Quantity) and (dosage.rate.code = 'mL/h' and dosage.rate.system = 'http://unitsofmeasure.org' and dosage.rate.unit.hasValue() and dosage.rate.value ~ 50 ) ) or ( dosage.rate.is(Ratio) and ( dosage.rate.numerator.value ~ 50 and dosage.rate.numerator.unit.hasValue() and dosage.rate.numerator.code = 'mL' and dosage.rate.numerator.system = 'http://unitsofmeasure.org' and dosage.rate.denominator.value ~ 1 and dosage.rate.denominator.unit.hasValue() and dosage.rate.denominator.code = 'h' and dosage.rate.denominator.system = 'http://unitsofmeasure.org') )" with error message "The administration rate does not match the expected value"

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 2 Total Duration 7s
Total Number of Test Cases 2 Fastest Test 424ms
Number of Manual Test Cases 0 Slowest Test 6s
Tests Started Sep 01, 2026 07:03:32 Average Execution Time 3s
Tests Finished Sep 01, 2026 07:03:39 Cumulative Test Time
(sum of all individual test durations)
7s

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Read Information from a resource of type MedicationAdministration (Rate) (@MedicationAdministration-Read-Rate) Precondition 2 07:03:32 424ms SUCCESS
Read Information from a resource of type MedicationAdministration (Rate) (@MedicationAdministration-Read-Rate) Read and Validate the MedicationAdministration with rate details by ID 8 07:03:33 6s 814ms SUCCESS

Manual Tests

No manual tests were recorded

Evidence

Scenario Title Details
Precondition RBellog 0  Download Evidence
Read and Validate the MedicationAdministration with rate details by ID INFO - id.replaceMatches('/_history/.+','').matches('\\bMedicationAdministration-Read-Rate-Example-Quantity$')  Details
Read and Validate the MedicationAdministration with rate details by ID INFO - Code system definition is missing for 'http://snomed.info/sct#6073002'  Details
Read and Validate the MedicationAdministration with rate details by ID INFO - Code system definition is missing for 'http://snomed.info/sct#255560000'  Details
Read and Validate the MedicationAdministration with rate details by ID WARN - Value set https://gematik.de/fhir/isik/ValueSet/SctRouteOfAdministration has been ignored due to module configuration  Details
Read and Validate the MedicationAdministration with rate details by ID INFO - dosage.text.empty().not()  Details
Read and Validate the MedicationAdministration with rate details by ID INFO - dosage.site.coding.where(code = '6073002' and system = 'http://snomed.info/sct' and version = 'http://snomed.info/sct/11000274103/version/20251115' and display.empty().not()).exists()  Details
Read and Validate the MedicationAdministration with rate details by ID INFO - dosage.route.coding.where(code = '255560000' and system = 'http://snomed.info/sct' and version = 'http://snomed.info/sct/11000274103/version/20251115' and display.empty().not()).exists()  Details
Read and Validate the MedicationAdministration with rate details by ID INFO - dosage.dose.code = 'mL' and dosage.dose.system = 'http://unitsofmeasure.org' and dosage.dose.unit.hasValue() and dosage.dose.value ~ 1000  Details
Read and Validate the MedicationAdministration with rate details by ID INFO - (dosage.rate.is(Quantity) and (dosage.rate.code = 'mL/h' and dosage.rate.system = 'http://unitsofmeasure.org' and dosage.rate.unit.hasValue() and dosage.rate.value ~ 50 ) ) or ( dosage.rate.is(Ratio) and ( dosage.rate.numerator.value ~ 50 and dosage.rate.numerator.unit.hasValue() and dosage.rate.numerator.code = 'mL' and dosage.rate.numerator.system = 'http://unitsofmeasure.org' and dosage.rate.denominator.value ~ 1 and dosage.rate.denominator.unit.hasValue() and dosage.rate.denominator.code = 'h' and dosage.rate.denominator.system = 'http://unitsofmeasure.org') )  Details
Read and Validate the MedicationAdministration with rate details by ID RBellog 0  Download Evidence
Read and Validate the MedicationAdministration with rate details by ID Evidence Report  Download Evidence
Serenity BDD version 5.3.10