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 Coverage-Read-Private test case 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 "Coverage"
And CapabilityStatement contains definition of search parameter "{searchParamValue}" of type "{searchParamType}" for resource "Coverage"
When Get FHIR resource at "http://fhirserver/Coverage/?_id=${data.coverage-read-private-id}" with content type "xml"
And response bundle contains resource with ID "${data.coverage-read-private-id}" with error message "The requested Coverage ${data.coverage-read-private-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"
When Get FHIR resource at "http://fhirserver/Coverage/?{searchParameter}=Patient/{searchValue}" 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({searchParameter}.reference.replaceMatches("/_history/.+","").matches("\b${data.patient-read-id}$"))' with error message 'There are search results, but they do not fully match the search criteria'
When Get FHIR resource at "http://fhirserver/Coverage/?beneficiary.identifier=${data.patient-read-identifier-system}%7C${data.patient-read-identifier-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 element "beneficiary" in all bundle resources references resource with ID "${data.patient-read-id}"
When Get FHIR resource at "http://fhirserver/Coverage/?status=active" 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(status = 'active')" with error message 'There are search results, but they do not fully match the search criteria'
When Get FHIR resource at "http://fhirserver/Coverage/?type=http://fhir.de/CodeSystem/versicherungsart-de-basis%7CSEL" 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(type.coding.where(system = 'http://fhir.de/CodeSystem/versicherungsart-de-basis').code = 'SEL')" with error message 'There are search results, but they do not fully match the search criteria'
| Number of Scenarios | 8 | Total Duration | 11s |
| Total Number of Test Cases | 14 | Fastest Test | 209ms |
| Number of Manual Test Cases | 0 | Slowest Test | 1s |
| Tests Started | März 23, 2026 09:36:16 | Average Execution Time | 794ms |
| Tests Finished | März 23, 2026 09:36:27 | Total Execution Time | 11s |
| feature | Scenario | Context | Steps | Started | Total Duration | Result |
|---|---|---|---|---|---|---|
| Testing search parameters against a resource of type "private" Coverage (@Coverage-Search-Private) | Precondition | 2 | 09:36:16 | 1s 232ms | ||
| Testing search parameters against a resource of type "private" Coverage (@Coverage-Search-Private) | Read and Validation of the CapabilityStatement | 2 | 09:36:17 | 1s 710ms | ||
| Testing search parameters against a resource of type "private" Coverage (@Coverage-Search-Private) |
Validation of the search parameter definitions in the CapabilityStatement
6 passing test cases |
1 | 09:36:19 | 1s 298ms | ||
| Testing search parameters against a resource of type "private" Coverage (@Coverage-Search-Private) | Search for the Coverage by ID | 3 | 09:36:20 | 1s 757ms | ||
| Testing search parameters against a resource of type "private" Coverage (@Coverage-Search-Private) |
Search for the Coverage by Beneficiary and Payor
2 passing test cases |
3 | 09:36:22 | 1s 931ms | ||
| Testing search parameters against a resource of type "private" Coverage (@Coverage-Search-Private) | Search for the Coverage Coverage by Beneficiary (Chaining) | 3 | 09:36:24 | 1s 019ms | ||
| Testing search parameters against a resource of type "private" Coverage (@Coverage-Search-Private) | Search for the Coverage by Status | 3 | 09:36:25 | 1s 230ms | ||
| Testing search parameters against a resource of type "private" Coverage (@Coverage-Search-Private) | Search for the Coverage by Type of Insurance | 3 | 09:36:26 | 979ms |