Serenity BDD Report
Home > Requirements > Stufe5 > Basis > Testing search parameters against a resource of type organization (@organization-search) (optional)
Report generated 01-09-2026 07:09

Feature: Testing search parameters against a resource of type organization (@organization-search) (optional)

Scenarios

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 Organization-Read 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 "Organization"

And CapabilityStatement contains definition of search parameter "{searchParamValue}" of type "{searchParamType}" for resource "Organization"

Examples:

searchParamValuesearchParamType
_idtoken
_countnumber
identifiertoken
activetoken
typetoken
namestring
addressstring
partofreference
endpointreference

Examples:

searchParamValuesearchParamType
_tagtoken

When Get FHIR resource at "http://fhirserver/Organization/?_id=${data.organization-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 response bundle contains resource with ID "${data.organization-read-id}" with error message "The requested Organization ${data.organization-read-id} is not contained in the response bundle"

When Get FHIR resource at "http://fhirserver/Organization/?_tag=${data.tag-system}%7C${data.tag-value}&_id=${data.organization-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 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'

And response bundle contains resource with ID "${data.organization-read-id}" with error message "The requested Organization ${data.organization-read-id} is not contained in the response bundle."

When Get FHIR resource at "http://fhirserver/Organization/?_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/Organization/?identifier=${data.organization-read-identifier-system}%7C${data.organization-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 FHIR current response body evaluates the FHIRPath "entry.resource.all(identifier.where(system='${data.organization-read-identifier-system}' and value='${data.organization-read-identifier-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/Organization/?active=true&_id=${data.organization-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 FHIR current response body evaluates the FHIRPath "entry.resource.all(active = true)" with error message 'There are search results, but they do not fully match the search criteria'

And response bundle contains resource with ID "${data.organization-read-id}" with error message "The requested Organization ${data.organization-read-id} is not contained in the response bundle."

When Get FHIR resource at "http://fhirserver/Organization/?type=edu&_id=${data.organization-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 FHIR current response body evaluates the FHIRPath "entry.resource.all(type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/organization-type' and code = 'edu').exists())" with error message 'There are search results, but they do not fully match the search criteria'

And response bundle contains resource with ID "${data.organization-read-id}" with error message "The requested Organization ${data.organization-read-id} is not contained in the response bundle."

When Get FHIR resource at "http://fhirserver/Organization/?name=Uniklinik%20Entenhausen" 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(name.contains('Uniklinik Entenhausen'))" with error message 'There are search results, but they do not fully match the search criteria'

When Get FHIR resource at "http://fhirserver/Organization/?address=Berlin&_id=${data.organization-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 FHIR current response body evaluates the FHIRPath "entry.resource.all(address.where(city.contains('Berlin') or line.exists($this.contains('Berlin'))).exists())" with error message 'There are search results, but they do not fully match the search criteria'

And response bundle contains resource with ID "${data.organization-read-id}" with error message "The requested Organization ${data.organization-read-id} is not contained in the response bundle."

When Get FHIR resource at "http://fhirserver/Organization/?partof=Organization/${data.organization-read-parent-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($this.where(partOf.reference = 'Organization/${data.organization-read-parent-id}').as(Organization)).exists()" with error message 'There are search results, but they do not fully match the search criteria'

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 12 Total Duration 19s
Total Number of Test Cases 21 Fastest Test 310ms
Number of Manual Test Cases 0 Slowest Test 5s
Tests Started Sep 01, 2026 07:09:12 Average Execution Time 903ms
Tests Finished Sep 01, 2026 07:09:31 Cumulative Test Time
(sum of all individual test durations)
19s

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Testing search parameters against a resource of type Organization (@Organization-Search) (Optional) Precondition 2 07:09:12 430ms SUCCESS
Testing search parameters against a resource of type Organization (@Organization-Search) (Optional) Read and Validation of the CapabilityStatement 2 07:09:13 2s 541ms SUCCESS
Testing search parameters against a resource of type Organization (@Organization-Search) (Optional) Validation of the search parameter definitions in the CapabilityStatement
10 passing test cases
1 07:09:15 8s 796ms SUCCESS
Testing search parameters against a resource of type Organization (@Organization-Search) (Optional) Search for the Organization by ID 3 07:09:24 752ms SUCCESS
Testing search parameters against a resource of type Organization (@Organization-Search) (Optional) Optional Search for the Organization by Tag and ID 4 07:09:25 920ms SUCCESS
Testing search parameters against a resource of type Organization (@Organization-Search) (Optional) Search for the Organization by Count 2 07:09:26 570ms SUCCESS
Testing search parameters against a resource of type Organization (@Organization-Search) (Optional) Search for the Organization by Identifier 3 07:09:26 726ms SUCCESS
Testing search parameters against a resource of type Organization (@Organization-Search) (Optional) Search for the Organization by Active Status and ID 4 07:09:27 951ms SUCCESS
Testing search parameters against a resource of type Organization (@Organization-Search) (Optional) Search for the Organization by Type 4 07:09:28 953ms SUCCESS
Testing search parameters against a resource of type Organization (@Organization-Search) (Optional) Search for the Organization by Name 3 07:09:29 724ms SUCCESS
Testing search parameters against a resource of type Organization (@Organization-Search) (Optional) Search for the Organization by Address 4 07:09:30 958ms SUCCESS
Testing search parameters against a resource of type Organization (@Organization-Search) (Optional) Search for the Organization that is part of another Organization 3 07:09:31 710ms SUCCESS

Manual Tests

No manual tests were recorded

Evidence

Scenario Title Details
Precondition RBellog 0  Download Evidence
Read and Validation of the CapabilityStatement INFO - rest.where(mode = 'server').resource.where(type = 'Organization' and interaction.where(code = 'search-type').exists()).exists()  Details
Read and Validation of the CapabilityStatement RBellog 0  Download Evidence
Read and Validation of the CapabilityStatement Evidence Report  Download Evidence
Validation of the search parameter definitions in the CapabilityStatement INFO - rest.where(mode = 'server').resource.where(type = 'Organization' 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 INFO - rest.where(mode = 'server').resource.where(type = 'Organization' 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 INFO - rest.where(mode = 'server').resource.where(type = 'Organization' and searchParam.where(name = 'identifier' 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 INFO - rest.where(mode = 'server').resource.where(type = 'Organization' and searchParam.where(name = 'active' and type = 'token').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 INFO - rest.where(mode = 'server').resource.where(type = 'Organization' and searchParam.where(name = 'type' and type = 'token').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 INFO - rest.where(mode = 'server').resource.where(type = 'Organization' and searchParam.where(name = 'name' and type = 'string').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 INFO - rest.where(mode = 'server').resource.where(type = 'Organization' and searchParam.where(name = 'address' and type = 'string').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 INFO - rest.where(mode = 'server').resource.where(type = 'Organization' and searchParam.where(name = 'partof' and type = 'reference').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 INFO - rest.where(mode = 'server').resource.where(type = 'Organization' and searchParam.where(name = 'endpoint' and type = 'reference').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
Validation of the search parameter definitions in the CapabilityStatement INFO - rest.where(mode = 'server').resource.where(type = 'Organization' and searchParam.where(name = '_tag' and type = 'token').exists()).exists()  Details
Validation of the search parameter definitions in the CapabilityStatement RBellog 10  Download Evidence
Validation of the search parameter definitions in the CapabilityStatement Evidence Report  Download Evidence
Search for the Organization by ID WARN - Profile reference 'https://gematik.de/fhir/isik/StructureDefinition/ISiKOrganisation' has not been checked because it is unknown  Details
Search for the Organization by ID WARN - Resource meta.profile differs from the passed profile for validation: meta.profile=[]; passed=https://hl7.org/fhir/StructureDefinition/Bundle  Details
Search for the Organization by ID INFO - entry.resource.where(id.replaceMatches('/_history/.+','').matches('\\bOrganization-Read-Example$')).count() = 1  Details
Search for the Organization by ID RBellog 0  Download Evidence
Search for the Organization by ID Evidence Report  Download Evidence
Optional Search for the Organization by Tag and ID INFO - entry.resource.count() > 0  Details
Optional Search for the Organization by Tag and ID INFO - entry.resource.all(meta.tag.where(code='external').exists())  Details
Optional Search for the Organization by Tag and ID INFO - entry.resource.where(id.replaceMatches('/_history/.+','').matches('\\bOrganization-Read-Example$')).count() = 1  Details
Optional Search for the Organization by Tag and ID RBellog 0  Download Evidence
Optional Search for the Organization by Tag and ID Evidence Report  Download Evidence
Search for the Organization by Count INFO - total > 0 and entry.resource.count() > 0  Details
Search for the Organization by Count RBellog 0  Download Evidence
Search for the Organization by Count Evidence Report  Download Evidence
Search for the Organization by Identifier INFO - entry.resource.count() > 0  Details
Search for the Organization by Identifier INFO - entry.resource.all(identifier.where(system='http://fhir.de/sid/arge-ik/iknr' and value='260120196').exists())  Details
Search for the Organization by Identifier RBellog 0  Download Evidence
Search for the Organization by Identifier Evidence Report  Download Evidence
Search for the Organization by Active Status and ID INFO - entry.resource.count() > 0  Details
Search for the Organization by Active Status and ID INFO - entry.resource.all(active = true)  Details
Search for the Organization by Active Status and ID INFO - entry.resource.where(id.replaceMatches('/_history/.+','').matches('\\bOrganization-Read-Example$')).count() = 1  Details
Search for the Organization by Active Status and ID RBellog 0  Download Evidence
Search for the Organization by Active Status and ID Evidence Report  Download Evidence
Search for the Organization by Type INFO - entry.resource.count() > 0  Details
Search for the Organization by Type INFO - entry.resource.all(type.coding.where(system = 'http://terminology.hl7.org/CodeSystem/organization-type' and code = 'edu').exists())  Details
Search for the Organization by Type INFO - entry.resource.where(id.replaceMatches('/_history/.+','').matches('\\bOrganization-Read-Example$')).count() = 1  Details
Search for the Organization by Type RBellog 0  Download Evidence
Search for the Organization by Type Evidence Report  Download Evidence
Search for the Organization by Name INFO - entry.resource.count() > 0  Details
Search for the Organization by Name INFO - entry.resource.all(name.contains('Uniklinik Entenhausen'))  Details
Search for the Organization by Name RBellog 0  Download Evidence
Search for the Organization by Name Evidence Report  Download Evidence
Search for the Organization by Address INFO - entry.resource.count() > 0  Details
Search for the Organization by Address INFO - entry.resource.all(address.where(city.contains('Berlin') or line.exists($this.contains('Berlin'))).exists())  Details
Search for the Organization by Address INFO - entry.resource.where(id.replaceMatches('/_history/.+','').matches('\\bOrganization-Read-Example$')).count() = 1  Details
Search for the Organization by Address RBellog 0  Download Evidence
Search for the Organization by Address Evidence Report  Download Evidence
Search for the Organization that is part of another Organization INFO - entry.resource.count() > 0  Details
Search for the Organization that is part of another Organization INFO - entry.resource.where($this.where(partOf.reference = 'Organization/Organization-Read-Parent-Example').as(Organization)).exists()  Details
Search for the Organization that is part of another Organization RBellog 0  Download Evidence
Search for the Organization that is part of another Organization Evidence Report  Download Evidence
Serenity BDD version 5.3.10