Serenity BDD Report
Report generated 01-09-2026 07:11

Testing Search Parameters Against Observation Resources For Status-Related Observations (@observation-Statuses-Search)

  Mandatory   Medikation   I Si K Capability Statement Gesundheitsstatus Rolle   1 To 10 Seconds (Duration)   Under 1 Second (Duration)   Stufe5

Search for Observation resources by Code and Encounter

Scenario Outline

When Get FHIR resource at "http://fhirserver/Observation/?code=http://loinc.org%7C<loincCode>&encounter=Encounter/${data.encounter-read-in-progress-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(code.coding.where(code = '<loincCode>' and system = 'http://loinc.org').exists())" with error message 'There are search results, but they do not fully match the code search criteria'
And response bundle contains resource with ID "<observationId>" with error message "The requested Observation <observationId> is not contained in the response bundle"

Examples: 

# Loinc Code Observation
1 74043-1 ${data.medication-observation-alcohol-abuse-read-id}
2 63895-7 ${data.medication-observation-breastfeeding-read-id}
3 82810-3 ${data.medication-observation-pregnancy-status-read-id}
4 11779-6 ${data.medication-observation-expected-pregnancy-delivery-date-read-id}
5 72166-2 ${data.medication-observation-smoking-status-read-id}
Steps Outcome
SUCCESS 1s 048ms
SUCCESS 950ms
SUCCESS 911ms
SUCCESS 963ms
SUCCESS 5s 921ms
SUCCESS 9.82s
Serenity BDD version 5.3.10