Given the Test Description: "The system under test MUST find a previously created resource when searched using the parameter and return it in the search results (SEARCH)."
Given the Preconditions: - The MedicationStatement-Read and MedicationStatement-Read-Extended test cases must have been executed successfully beforehand.
When Get FHIR resource at "http://fhirserver/metadata" with content type "json"
And CapabilityStatement contains interaction "search-type" for resource "MedicationStatement"
And CapabilityStatement contains definition of search parameter "{searchParamValue}" of type "{searchParamType}" for resource "MedicationStatement"
Then Get FHIR resource at "http://fhirserver/MedicationStatement/?_id=${data.medicationstatement-read-id}" with content type "xml"
And response bundle contains resource with ID "${data.medicationstatement-read-id}" with error message "The requested MedicationStatement ${data.medicationstatement-read-id} is not contained in the response bundle"
And FHIR current response body is a valid CORE resource and conforms to profile "https://hl7.org/fhir/StructureDefinition/Bundle"
And Check if current response of resource "MedicationStatement" is valid isik5 resource and conforms to profile "https://gematik.de/fhir/isik/StructureDefinition/ISiKMedikationsInformation"
When Get FHIR resource at "http://fhirserver/MedicationStatement/?_count=1" with content type "xml"
And FHIR current response body evaluates the FHIRPath 'entry.resource.count() } 0 and entry.resource.count() {= 1' with error message 'The _count parameter was not applied as expected'
Then Get FHIR resource at "http://fhirserver/MedicationStatement/?patient=Patient/${data.medication-patient-id}" with content type "json"
And FHIR current response body evaluates the FHIRPath 'entry.resource.count() } 0' with error message 'No search results were found'
And element "subject" in all bundle resources references resource with ID "Patient/${data.medication-patient-id}"
Then Get FHIR resource at "http://fhirserver/MedicationStatement/?patient.identifier=${data.medication-patient-identifier}" with content type "json"
And FHIR current response body evaluates the FHIRPath 'entry.resource.count() } 0' with error message 'No search results were found'
And element "subject" in all bundle resources references resource with ID "Patient/${data.medication-patient-id}$"
When Get FHIR resource at "http://fhirserver/MedicationStatement/?_tag=${data.tag-system}%7C${data.tag-value}&patient=Patient/${data.medication-patient-id}" with content type "xml"
And FHIR current response body evaluates the FHIRPath 'entry.resource.count() } 0' with error message 'No search results were found'
And FHIR current response body evaluates the FHIRPath "entry.resource.all(meta.tag.where(code='${data.tag-value}').exists())" with error message 'There are search results, but they do not fully match the search criteria'
Then Get FHIR resource at "http://fhirserver/MedicationStatement/?code=http://fhir.de/CodeSystem/bfarm/atc%7CV03AB23&patient=Patient/${data.medication-patient-id}" with content type "xml"
And FHIR current response body evaluates the FHIRPath 'entry.resource.count() } 0' with error message 'No search results were found'
And FHIR current response body evaluates the FHIRPath "entry.resource.where(medication.coding.empty().not()).medication.coding.where(code = 'V03AB23' and system = 'http://fhir.de/CodeSystem/bfarm/atc').exists()" with error message 'There are search results, but they do not fully match the search criteria'
Then Get FHIR resource at "http://fhirserver/MedicationStatement/?context=Encounter/${data.medication-encounter-id}&patient=Patient/${data.medication-patient-id}" with content type "xml"
And FHIR current response body evaluates the FHIRPath 'entry.resource.count() } 0' with error message 'No search results were found'
And element "context" in all bundle resources references resource with ID "Encounter/${data.medication-encounter-id}"
Then Get FHIR resource at "http://fhirserver/MedicationStatement/?context.identifier=${data.medication-encounter-identifier-value}&patient=Patient/${data.medication-patient-id}" with content type "xml"
And FHIR current response body evaluates the FHIRPath 'entry.resource.count() } 0' with error message 'No search results were found'
Then Get FHIR resource at "http://fhirserver/MedicationStatement/?effective=gt2026-01-01&patient=Patient/${data.medication-patient-id}" with content type "xml"
And FHIR current response body evaluates the FHIRPath 'entry.resource.count() } 0' with error message 'No search results were found'
And FHIR current response body evaluates the FHIRPath "entry.resource.all(effective.toString().empty().not() or effective.start.toString().empty().not() or effective.end.toString().empty().not())" with error message 'There are search results, but they do not fully match the search criteria'
Then Get FHIR resource at "http://fhirserver/MedicationStatement/?medication=Medication/${data.medication-read-id}&patient=Patient/${data.medication-patient-id}" with content type "xml"
And FHIR current response body evaluates the FHIRPath 'entry.resource.count() } 0' with error message 'No search results were found'
And element "medication" in all bundle resources references resource with ID "Medication/${data.medication-read-id}"
Then Get FHIR resource at "http://fhirserver/MedicationStatement/?medication.code=V03AB23&patient=Patient/${data.medication-patient-id}" with content type "xml"
And FHIR current response body evaluates the FHIRPath 'entry.resource.count() } 0' with error message 'No search results were found'
And response bundle contains resource with ID "${data.medicationstatement-read-id}" with error message "The MedicationStatement with ID ${data.medicationstatement-read-id} is not contained in the response bundle"
Then Get FHIR resource at "http://fhirserver/MedicationStatement/?status=active&patient=Patient/${data.medication-patient-id}" with content type "json"
And FHIR current response body evaluates the FHIRPath 'entry.resource.count() } 0' with error message 'No search results were found'
And FHIR current response body evaluates the FHIRPath "entry.resource.all(status = 'active')" with error message 'There are search results, but they do not fully match the search criteria'
| Number of Scenarios | 15 | Total Duration | 35m 12s |
| Total Number of Test Cases | 23 | Fastest Test | 5s |
| Number of Manual Test Cases | 0 | Slowest Test | 3m 18s |
| Tests Started | Sep 01, 2026 07:28:18 | Average Execution Time | 1m 27s |
| Tests Finished | Sep 01, 2026 08:03:31 |
Cumulative Test Time
(sum of all individual test durations) |
33m 53s |
| feature | Scenario | Context | Steps | Started | Total Duration | Result |
|---|---|---|---|---|---|---|
| Testing search parameters against a resource of type MedicationStatement (@MedicationStatement-Search) | Precondition | 2 | 07:28:18 | 5s 539ms | ||
| Testing search parameters against a resource of type MedicationStatement (@MedicationStatement-Search) | Read and Validation of the CapabilityStatement | 2 | 07:28:24 | 3m 19s | ||
| Testing search parameters against a resource of type MedicationStatement (@MedicationStatement-Search) |
Validation of the search parameter definitions in the CapabilityStatement
9 failing test cases |
1 | 07:31:52 | 5m 11s | ||
| Testing search parameters against a resource of type MedicationStatement (@MedicationStatement-Search) | Search for the MedicationStatement by ID | 4 | 07:37:05 | 2m 12s | ||
| Testing search parameters against a resource of type MedicationStatement (@MedicationStatement-Search) | Search for the MedicationRequest by Count | 2 | 07:39:23 | 2m 2s | ||
| Testing search parameters against a resource of type MedicationStatement (@MedicationStatement-Search) | Search for the MedicationStatement by Patient Reference | 3 | 07:41:31 | 2m 7s | ||
| Testing search parameters against a resource of type MedicationStatement (@MedicationStatement-Search) | Search for the MedicationStatement by Patient Identifier | 3 | 07:43:44 | 2m 7s | ||
| Testing search parameters against a resource of type MedicationStatement (@MedicationStatement-Search) | Optional Search for the MedicationRequest that belong to a Patient, by Tag | 3 | 07:45:56 | 2m 7s | ||
| Testing search parameters against a resource of type MedicationStatement (@MedicationStatement-Search) | Search for the MedicationStatement that belong to a Patient, by Code | 3 | 07:48:09 | 2m 7s | ||
| Testing search parameters against a resource of type MedicationStatement (@MedicationStatement-Search) | Search for the MedicationStatement that belong to a Patient, by Context | 3 | 07:50:22 | 2m 7s | ||
| Testing search parameters against a resource of type MedicationStatement (@MedicationStatement-Search) | Search for the MedicationStatement that belong to a Patient, by Context Identifier | 2 | 07:52:35 | 2m 5s | ||
| Testing search parameters against a resource of type MedicationStatement (@MedicationStatement-Search) | Search for the MedicationStatement that belong to a Patient, by Effective Date | 3 | 07:54:45 | 2m 7s | ||
| Testing search parameters against a resource of type MedicationStatement (@MedicationStatement-Search) | Search for the MedicationStatement that belong to a Patient, by Referenced Medication | 3 | 07:56:58 | 2m 7s | ||
| Testing search parameters against a resource of type MedicationStatement (@MedicationStatement-Search) | Search for the MedicationStatement that belong to a Patient, by Medication Code | 3 | 07:59:11 | 2m 7s | ||
| Testing search parameters against a resource of type MedicationStatement (@MedicationStatement-Search) | Search for the MedicationStatement that belong to a Patient, by Status | 3 | 08:01:24 | 2m 7s |
| Scenario | Title | Details |
|---|---|---|
| Precondition | RBellog 0 | Download Evidence |
| Read and Validation of the CapabilityStatement | RBellog 0 | Download Evidence |
| Validation of the search parameter definitions in the CapabilityStatement | ERROR - 1 value(s) in the evaluation results are false for: rest.where(mode = 'server').resource.where(type = 'MedicationStatement' and searchParam.where(name = '_id' and type = 'token').exists()).exists() | Details |
| Validation of the search parameter definitions in the CapabilityStatement | RBellog 1 | Download Evidence |
| Validation of the search parameter definitions in the CapabilityStatement | Evidence Report | Download Evidence |
| Validation of the search parameter definitions in the CapabilityStatement | ERROR - 1 value(s) in the evaluation results are false for: rest.where(mode = 'server').resource.where(type = 'MedicationStatement' and searchParam.where(name = '_count' and type = 'number').exists()).exists() | Details |
| Validation of the search parameter definitions in the CapabilityStatement | RBellog 2 | Download Evidence |
| Validation of the search parameter definitions in the CapabilityStatement | Evidence Report | Download Evidence |
| Validation of the search parameter definitions in the CapabilityStatement | ERROR - 1 value(s) in the evaluation results are false for: rest.where(mode = 'server').resource.where(type = 'MedicationStatement' and searchParam.where(name = 'code' and type = 'token').exists()).exists() | Details |
| Validation of the search parameter definitions in the CapabilityStatement | RBellog 3 | Download Evidence |
| Validation of the search parameter definitions in the CapabilityStatement | Evidence Report | Download Evidence |
| Validation of the search parameter definitions in the CapabilityStatement | ERROR - 1 value(s) in the evaluation results are false for: rest.where(mode = 'server').resource.where(type = 'MedicationStatement' and searchParam.where(name = 'context' and type = 'reference').exists()).exists() | Details |
| Validation of the search parameter definitions in the CapabilityStatement | RBellog 4 | Download Evidence |
| Validation of the search parameter definitions in the CapabilityStatement | Evidence Report | Download Evidence |
| Validation of the search parameter definitions in the CapabilityStatement | ERROR - 1 value(s) in the evaluation results are false for: rest.where(mode = 'server').resource.where(type = 'MedicationStatement' and searchParam.where(name = 'effective' and type = 'date').exists()).exists() | Details |
| Validation of the search parameter definitions in the CapabilityStatement | RBellog 5 | Download Evidence |
| Validation of the search parameter definitions in the CapabilityStatement | Evidence Report | Download Evidence |
| Validation of the search parameter definitions in the CapabilityStatement | ERROR - 1 value(s) in the evaluation results are false for: rest.where(mode = 'server').resource.where(type = 'MedicationStatement' and searchParam.where(name = 'medication' and type = 'reference').exists()).exists() | Details |
| Validation of the search parameter definitions in the CapabilityStatement | RBellog 6 | Download Evidence |
| Validation of the search parameter definitions in the CapabilityStatement | Evidence Report | Download Evidence |
| Validation of the search parameter definitions in the CapabilityStatement | ERROR - 1 value(s) in the evaluation results are false for: rest.where(mode = 'server').resource.where(type = 'MedicationStatement' and searchParam.where(name = 'patient' and type = 'reference').exists()).exists() | Details |
| Validation of the search parameter definitions in the CapabilityStatement | RBellog 7 | Download Evidence |
| Validation of the search parameter definitions in the CapabilityStatement | Evidence Report | Download Evidence |
| Validation of the search parameter definitions in the CapabilityStatement | ERROR - 1 value(s) in the evaluation results are false for: rest.where(mode = 'server').resource.where(type = 'MedicationStatement' and searchParam.where(name = 'status' and type = 'token').exists()).exists() | Details |
| Validation of the search parameter definitions in the CapabilityStatement | RBellog 8 | Download Evidence |
| Validation of the search parameter definitions in the CapabilityStatement | Evidence Report | Download Evidence |
| Validation of the search parameter definitions in the CapabilityStatement | ERROR - 1 value(s) in the evaluation results are false for: rest.where(mode = 'server').resource.where(type = 'MedicationStatement' and searchParam.where(name = '_tag' and type = 'token').exists()).exists() | Details |
| Validation of the search parameter definitions in the CapabilityStatement | RBellog 9 | Download Evidence |
| Validation of the search parameter definitions in the CapabilityStatement | Evidence Report | Download Evidence |
| Search for the MedicationStatement by ID | RBellog 0 | Download Evidence |
| Search for the MedicationRequest by Count | RBellog 0 | Download Evidence |
| Search for the MedicationStatement by Patient Reference | RBellog 0 | Download Evidence |
| Search for the MedicationStatement by Patient Identifier | RBellog 0 | Download Evidence |
| Optional Search for the MedicationRequest that belong to a Patient, by Tag | RBellog 0 | Download Evidence |
| Search for the MedicationStatement that belong to a Patient, by Code | RBellog 0 | Download Evidence |
| Search for the MedicationStatement that belong to a Patient, by Context | RBellog 0 | Download Evidence |
| Search for the MedicationStatement that belong to a Patient, by Context Identifier | RBellog 0 | Download Evidence |
| Search for the MedicationStatement that belong to a Patient, by Effective Date | RBellog 0 | Download Evidence |
| Search for the MedicationStatement that belong to a Patient, by Referenced Medication | RBellog 0 | Download Evidence |
| Search for the MedicationStatement that belong to a Patient, by Medication Code | RBellog 0 | Download Evidence |
| Search for the MedicationStatement that belong to a Patient, by Status | RBellog 0 | Download Evidence |