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

Feature: Read information from a resource of type medicationadministration with extended data (@medicationadministration-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 ID of the corresponding FHIR resources for this test data set must be stored in the configuration variable 'medicationadministration-read-extended-id'.

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

  • Status: completed
  • Medication:
    • code: V03AB23
    • display: Acetylcystein
    • system: http://fhir.de/CodeSystem/bfarm/atc
    • version: any (the value of the configuration variable 'atc-code-version')
  • Patient: any (the linked Patient resource must conform to ISiKPatient; store the ID in the configuration variable 'medication-patient-id')
  • Patient identifier: identifier of the linked patient (store in 'medication-patient-identifier')
  • Effective date/time: 2026-02-03 (time is arbitrary)
  • Performer: any (the linked Practitioner resource must conform to ISiKPersonImGesundheitsberuf; store the ID in the configuration variable 'medication-practitioner-id')
  • Performer identifier: identifier of the linked performer (store in 'medication-practitioner-identifier')

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

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

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

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

And FHIR current response body evaluates the FHIRPath "medication.coding.where(code = 'V03AB23' and system = 'http://fhir.de/CodeSystem/bfarm/atc' and display = 'Acetylcystein').exists()" with error message 'The coded medication does not match the expected value'

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

And FHIR current response body evaluates the FHIRPath "subject.identifier.value = '${data.medication-patient-identifier}'" with error message "The subject identifier does not match the expected value"

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

And FHIR current response body evaluates the FHIRPath "performer.actor.reference.replaceMatches('/_history/.+','').matches('Practitioner/${data.medication-practitioner-id}$')" with error message 'The performer does not match the expected value'

And FHIR current response body evaluates the FHIRPath "performer.actor.identifier.value = '${data.medication-practitioner-identifier}'" with error message 'The performer identifier does not match the expected value'

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 2 Total Duration 2s
Total Number of Test Cases 2 Fastest Test 429ms
Number of Manual Test Cases 0 Slowest Test 2s
Tests Started Sep 01, 2026 07:06:22 Average Execution Time 1s
Tests Finished Sep 01, 2026 07:06:24 Cumulative Test Time
(sum of all individual test durations)
2s

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Read Information from a resource of type MedicationAdministration with extended data (@MedicationAdministration-Read-Extended) Precondition 2 07:06:22 429ms SUCCESS
Read Information from a resource of type MedicationAdministration with extended data (@MedicationAdministration-Read-Extended) Read and Validate the MedicationAdministration with extended data by its ID 10 07:06:22 2s 224ms SUCCESS

Manual Tests

No manual tests were recorded

Evidence

Scenario Title Details
Precondition RBellog 0  Download Evidence
Read and Validate the MedicationAdministration with extended data by its ID INFO - id.replaceMatches('/_history/.+','').matches('\\bMedicationAdministration-Read-Extended-Example$')  Details
Read and Validate the MedicationAdministration with extended data by its ID INFO - Code system definition is missing for 'http://fhir.de/CodeSystem/bfarm/atc#V03AB23'  Details
Read and Validate the MedicationAdministration with extended data by its ID INFO - medication.coding.where(code = 'V03AB23' and system = 'http://fhir.de/CodeSystem/bfarm/atc' and display = 'Acetylcystein').exists()  Details
Read and Validate the MedicationAdministration with extended data by its ID INFO - subject.reference.replaceMatches('/_history/.+','').matches('\\bPatient/Patient-Read-Example$')  Details
Read and Validate the MedicationAdministration with extended data by its ID INFO - subject.identifier.value = 'X485231029'  Details
Read and Validate the MedicationAdministration with extended data by its ID INFO - effective.toString().contains('2026-02-03')  Details
Read and Validate the MedicationAdministration with extended data by its ID INFO - performer.actor.reference.replaceMatches('/_history/.+','').matches('Practitioner/Practitioner-Read-Example$')  Details
Read and Validate the MedicationAdministration with extended data by its ID INFO - performer.actor.identifier.value = '123456789'  Details
Read and Validate the MedicationAdministration with extended data by its ID RBellog 0  Download Evidence
Read and Validate the MedicationAdministration with extended data by its ID Evidence Report  Download Evidence
Serenity BDD version 5.3.10