Serenity BDD Report
Home > Requirements > Stufe5 > Basis > Testing search parameters against a resource of type practitioner (@practitioner-search)
Report generated 23-03-2026 09:37

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

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 Practitioner-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 "Practitioner"

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

Examples:

searchParamValuesearchParamType
_idtoken
_countnumber
identifiertoken
givenstring
familystring

Examples:

searchParamValuesearchParamType
_tagtoken 
namestring 
addressstring 
gendertoken 

When Get FHIR resource at "http://fhirserver/Practitioner/?_id=${data.practitioner-read-id}" with content type "xml"

And response bundle contains resource with ID "${data.practitioner-read-id}" with error message "The requested Practitioner resource ${data.practitioner-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"

When Get FHIR resource at "http://fhirserver/Practitioner/?_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/Practitioner/?_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/Practitioner/?identifier=https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR%7C123456789" 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 response bundle contains resource with ID "${data.practitioner-read-id}" with error message "The requested Practitioner resource ${data.practitioner-read-id} is not contained in the response bundle"

And FHIR current response body evaluates the FHIRPath "entry.resource.all(identifier.where(system='https://fhir.kbv.de/NamingSystem/KBV_NS_Base_ANR' and value='123456789').exists())" with error message 'There are search results, but they do not fully match the search criteria'

When Get FHIR resource at "http://fhirserver/Practitioner/?identifier=https%3A%2F%2Fgematik.de%2Ffhir%2Fsid%2Ftelematik-id%7C123456789" 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 response bundle contains resource with ID "${data.practitioner-read-id}" with error message "The requested Practitioner resource ${data.practitioner-read-id} is not contained in the response bundle"

And FHIR current response body evaluates the FHIRPath "entry.resource.all(identifier.where(system='https://gematik.de/fhir/sid/telematik-id' and value='123456789').exists())" with error message 'There are search results, but they do not fully match the search criteria'

When Get FHIR resource at "http://fhirserver/Practitioner/?given=Walter" 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(name.given.where($this.startsWith('Walter')).exists())" with error message 'There are search results, but they do not fully match the search criteria'

When Get FHIR resource at "http://fhirserver/Practitioner/?family=Musterarzt" 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(name.family.where($this.startsWith('Musterarzt')).exists())" with error message 'There are search results, but they do not fully match the search criteria'

When Get FHIR resource at "http://fhirserver/Practitioner/?given=Max" with content type "xml"

And FHIR current response body evaluates the FHIRPath "entry.resource.ofType(Practitioner).where(id.replaceMatches('/_history/.+','').matches('\b${data.practitioner-read-id}$')).count()=0" with error message 'The resource ${data.practitioner-id} must not be returned here'

And FHIR current response body evaluates the FHIRPath "entry.resource.ofType(Practitioner).all(name.given.where($this.startsWith('Max')).exists())" with error message 'There are search results, but they do not fully match the search criteria'

When Get FHIR resource at "http://fhirserver/Practitioner/?name=Musterarzt" 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.practitioner-read-id}" with error message "The requested healthcare professional ${data.practitioner-read-id} is not contained in the response bundle"

And FHIR current response body evaluates the FHIRPath "entry.resource.all(name.family contains 'Musterarzt')" 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 "Practitioner" is valid isik5 resource and conforms to profile "https://gematik.de/fhir/isik/StructureDefinition/ISiKPersonImGesundheitsberuf"

When Get FHIR resource at "http://fhirserver/Practitioner/?address:contains=Musterweg" 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(address.where(line.contains('Musterweg')).count()=1)" with error message 'There are search results, but they do not fully match the search criteria'

When Get FHIR resource at "http://fhirserver/Practitioner/?gender=male" 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(gender = 'male')" 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 10 Total Duration 9s
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:37:24 Average Execution Time 673ms
Tests Finished März 23, 2026 09:37:34 Total Execution Time 9s

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Testing search parameters against a resource of type Practitioner (@Practitioner-Search) Precondition 2 09:37:24 416ms SUCCESS
Testing search parameters against a resource of type Practitioner (@Practitioner-Search) Read and Validation of the CapabilityStatement 2 09:37:25 755ms SUCCESS
Testing search parameters against a resource of type Practitioner (@Practitioner-Search) Validation of the search parameter definitions in the CapabilityStatement
5 passing test cases
1 09:37:25 1s 091ms SUCCESS
Testing search parameters against a resource of type Practitioner (@Practitioner-Search) Search for Practitioner resource by ID 3 09:37:27 1s 034ms SUCCESS
Testing search parameters against a resource of type Practitioner (@Practitioner-Search) Search for Practitioner resource by Tag 3 UNDEFINED
Testing search parameters against a resource of type Practitioner (@Practitioner-Search) Search for Practitioner resource by Count 2 09:37:28 718ms SUCCESS
Testing search parameters against a resource of type Practitioner (@Practitioner-Search) Search for Practitioner resource by Identifier LANR 4 09:37:28 1s 154ms SUCCESS
Testing search parameters against a resource of type Practitioner (@Practitioner-Search) Search for Practitioner resource by Identifier Telematik-ID 4 09:37:29 1s 292ms SUCCESS
Testing search parameters against a resource of type Practitioner (@Practitioner-Search) Search for Practitioner resource by First Name (given) 3 09:37:31 926ms SUCCESS
Testing search parameters against a resource of type Practitioner (@Practitioner-Search) Search for Practitioner resource by Last Name (family) 3 09:37:32 955ms SUCCESS
Testing search parameters against a resource of type Practitioner (@Practitioner-Search) Search for Practitioner resource by First Name (negative test) 3 09:37:33 1s 119ms SUCCESS
Testing search parameters against a resource of type Practitioner (@Practitioner-Search) Search for Practitioner resource by Name 6 UNDEFINED
Testing search parameters against a resource of type Practitioner (@Practitioner-Search) Search for Practitioner resource by Address 3 UNDEFINED
Testing search parameters against a resource of type Practitioner (@Practitioner-Search) Search for Practitioner resource by Gender 3 UNDEFINED

Manual Tests

No manual tests were recorded
Serenity BDD version 4.3.2