Serenity BDD Report
Home > Stufe5 > Basis > Testing search parameters against a resource of type Condition (@Condition-Search) > Search for the condition by patient (search parameter 'subject')
Report generated 23-03-2026 09:41

Testing Search Parameters Against A Resource Of Type Condition (@condition-Search)

  Mandatory   Basis   1 To 10 Seconds (Duration)   Stufe5

Search for the Condition by Patient (Search Parameter 'subject')

Scenario Outline

When Get FHIR resource at "http://fhirserver/Condition/?subject=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 "subject" in all bundle resources references resource with ID "${data.patient-read-id}"

Examples: 

# Search Param Value Search Param Type
1 _id token
2 _count number
3 patient reference
4 subject reference
5 encounter reference
6 recorded-date date
7 related reference

Examples: 

 Optional (tag)

# Search Param Value Search Param Type
8 _tag token
9 clinical-status token
10 category token
Steps Outcome
SUCCESS 1s 288ms
SUCCESS 1.29s
Serenity BDD version 4.3.2