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 RelatedPerson-Read test case must have been executed successfully beforehand.
When Get FHIR resource at "http://fhirserver/metadata" with content type "xml"
And CapabilityStatement contains interaction "search-type" for resource "RelatedPerson"
And CapabilityStatement contains definition of search parameter "{searchParamValue}" of type "{searchParamType}" for resource "RelatedPerson"
When Get FHIR resource at "http://fhirserver/RelatedPerson/?_id=${data.relatedperson-read-id}" with content type "xml"
And FHIR current response body is a valid CORE resource and conforms to profile "https://hl7.org/fhir/StructureDefinition/Bundle"
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.relatedperson-read-id}" with error message "The requested RelatedPerson ${data.relatedperson-read-id} is not contained in the response bundle"
When Get FHIR resource at "http://fhirserver/RelatedPerson/?_tag=${data.tag-system}%7C${data.tag-value}" 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'
When Get FHIR resource at "http://fhirserver/RelatedPerson/?_count" with content type "xml"
And FHIR current response body evaluates the FHIRPath 'total } 0 and entry.resource.count() } 0' with error message 'No search results were found'
When Get FHIR resource at "http://fhirserver/RelatedPerson/?patient=${data.patient-read-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 "patient" in all bundle resources references resource with ID "${data.patient-read-id}"
And response bundle contains resource with ID "${data.relatedperson-read-id}" with error message "The requested RelatedPerson ${data.relatedperson-read-id} is not contained in the response bundle"
When Get FHIR resource at "http://fhirserver/RelatedPerson/?name=Maxine" with content type "xml"
And response bundle contains resource with ID "${data.relatedperson-read-id}" with error message "The requested RelatedPerson ${data.relatedperson-read-id} is not contained in the response bundle"
And FHIR current response body evaluates the FHIRPath "entry.resource.all(name.given contains 'Maxine')" with error message 'There are search results, but they do not fully match the search criteria'
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 "RelatedPerson" is valid isik5 resource and conforms to profile "https://gematik.de/fhir/isik/StructureDefinition/ISiKAngehoeriger"
When Get FHIR resource at "http://fhirserver/RelatedPerson/?address-city=Berlin" 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(address.where(city = 'Berlin').exists())" with error message 'There are search results, but they do not fully match the search criteria'
When Get FHIR resource at "http://fhirserver/RelatedPerson/?address-country=DE" 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(address.where(country = 'DE').exists())" with error message 'There are search results, but they do not fully match the search criteria'
When Get FHIR resource at "http://fhirserver/RelatedPerson/?address-postalcode=13187" 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(address.where(postalCode.contains('13187')).exists())" with error message 'There are search results, but they do not fully match the search criteria'
| Number of Scenarios | 6 | Total Duration | 5s |
| Total Number of Test Cases | 8 | Fastest Test | 215ms |
| Number of Manual Test Cases | 0 | Slowest Test | 1s |
| Tests Started | März 23, 2026 09:39:21 | Average Execution Time | 619ms |
| Tests Finished | März 23, 2026 09:39:26 | Total Execution Time | 4s |
| feature | Scenario | Context | Steps | Started | Total Duration | Result |
|---|---|---|---|---|---|---|
| Testing search parameters against a resource of type RelatedPerson (@RelatedPerson-Search) | Precondition | 2 | 09:39:21 | 417ms | ||
| Testing search parameters against a resource of type RelatedPerson (@RelatedPerson-Search) | Read and Validation of the CapabilityStatement | 2 | 09:39:21 | 704ms | ||
| Testing search parameters against a resource of type RelatedPerson (@RelatedPerson-Search) |
Validation of the search parameter definitions in the CapabilityStatement
3 passing test cases |
1 | 09:39:22 | 663ms | ||
| Testing search parameters against a resource of type RelatedPerson (@RelatedPerson-Search) | Search for RelatedPerson by ID | 4 | 09:39:22 | 1s 198ms | ||
| Testing search parameters against a resource of type RelatedPerson (@RelatedPerson-Search) | Search for RelatedPerson resource by Tag | 3 | ||||
| Testing search parameters against a resource of type RelatedPerson (@RelatedPerson-Search) | Search for RelatedPerson resource by Count | 2 | 09:39:24 | 847ms | ||
| Testing search parameters against a resource of type RelatedPerson (@RelatedPerson-Search) | Search for RelatedPerson by Patient ID | 4 | 09:39:25 | 1s 140ms | ||
| Testing search parameters against a resource of type RelatedPerson (@RelatedPerson-Search) | Search for RelatedPerson by first name | 5 | ||||
| Testing search parameters against a resource of type RelatedPerson (@RelatedPerson-Search) | Search for RelatedPerson by address (city) | 3 | ||||
| Testing search parameters against a resource of type RelatedPerson (@RelatedPerson-Search) | Search for RelatedPerson by address (country) | 3 | ||||
| Testing search parameters against a resource of type RelatedPerson (@RelatedPerson-Search) | Search for RelatedPerson by address (postal code) | 3 |