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). Here it is tested whether the resource is returned according to the onset of illness as a date."
Given the Preconditions: - The test cases Patient-Read and Encounter-Read-Finished must have been executed successfully beforehand.
Create a Condition resource with these fields:
When Get FHIR resource at "http://fhirserver/metadata" with content type "json"
And CapabilityStatement contains interaction "read" for resource "Condition"
When Get FHIR resource at "http://fhirserver/Condition/${data.condition-read-resolved-id}" with content type "xml"
And FHIR current response body is a valid isik5 resource and conforms to profile "https://gematik.de/fhir/isik/StructureDefinition/ISiKDiagnose"
And resource has ID "${data.condition-read-resolved-id}" with error message "The ID does not match the expected value"
And FHIR current response body evaluates the FHIRPath "code.coding.where(system = 'http://fhir.de/CodeSystem/bfarm/icd-10-gm' and code = 'M17.0' and version = '${data.icd-10-gm-version}').exists()" with error message 'The Condition code is missing or a required value is absent'
And element "subject" references resource with ID "${data.patient-read-id}" with error message "The referenced patient does not match the expected value"
And FHIR current response body evaluates the FHIRPath "clinicalStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' and code = 'resolved').exists()" with error message "The Clinical status does not have the value 'resolved'"
And FHIR current response body evaluates the FHIRPath 'recordedDate.toString().contains("2025-12-23")' with error message 'The resource does not contain the expected Documentation date'
And FHIR current response body evaluates the FHIRPath 'note.text = "Illness resolved"' with error message 'The note does not match the expected value'
And FHIR current response body evaluates the FHIRPath "bodySite.coding.where(system = 'http://snomed.info/sct' and version = 'http://snomed.info/sct/11000274103/version/${data.snomed-ct-version}' and code = '49076000').exists()" with error message 'The body site code does not match the expected value'
And TGR the custom failure message is set to "The end date does not contain the expected value"
And TGR current response with attribute "$.body.Condition.abatementDateTime.value" matches "2026-01-07"
And TGR the custom failure message is set to "The start date does not contain the expected value"
And TGR current response with attribute "$.body.Condition.onsetDateTime.value" matches "2025-12-20"
And TGR clear the custom failure message
When Get FHIR resource at "http://fhirserver/Condition/${data.condition-read-resolved-id}" with content type "xml"
And FHIR current response body evaluates the FHIRPath "verificationStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' and code = 'confirmed').exists()" with error message "The Verification status does not have the value 'confirmed'"
| Number of Scenarios | 4 | Total Duration | 12s |
| Total Number of Test Cases | 4 | Fastest Test | 432ms |
| Number of Manual Test Cases | 0 | Slowest Test | 8s |
| Tests Started | Sep 01, 2026 07:10:14 | Average Execution Time | 3s |
| Tests Finished | Sep 01, 2026 07:10:26 |
Cumulative Test Time
(sum of all individual test durations) |
12s |
| feature | Scenario | Context | Steps | Started | Total Duration | Result |
|---|---|---|---|---|---|---|
| Read Information from a resource of type Condition with status "resolved" (@Condition-Read-Resolved) | Precondition | 2 | 07:10:14 | 432ms | ||
| Read Information from a resource of type Condition with status "resolved" (@Condition-Read-Resolved) | Read and Validation of the CapabilityStatement | 2 | 07:10:15 | 2s 904ms | ||
| Read Information from a resource of type Condition with status "resolved" (@Condition-Read-Resolved) | Read and Validate resolved Condition by its ID | 14 | 07:10:18 | 8s 219ms | ||
| Read Information from a resource of type Condition with status "resolved" (@Condition-Read-Resolved) | Optional Check Verification Status | 2 | 07:10:26 | 465ms |
| Scenario | Title | Details |
|---|---|---|
| Precondition | RBellog 0 | Download Evidence |
| Read and Validation of the CapabilityStatement | INFO - rest.where(mode = 'server').resource.where(type = 'Condition' and interaction.where(code = 'read').exists()).exists() | Details |
| Read and Validation of the CapabilityStatement | RBellog 0 | Download Evidence |
| Read and Validation of the CapabilityStatement | Evidence Report | Download Evidence |
| Read and Validate resolved Condition by its ID | INFO - Code system definition is missing for 'http://fhir.de/CodeSystem/bfarm/icd-10-gm#M17.0' | Details |
| Read and Validate resolved Condition by its ID | INFO - Code system definition is missing for 'http://snomed.info/sct#49076000' | Details |
| Read and Validate resolved Condition by its ID | INFO - id.replaceMatches('/_history/.+','').matches('\\bCondition-Read-Resolved-Example$') | Details |
| Read and Validate resolved Condition by its ID | INFO - code.coding.where(system = 'http://fhir.de/CodeSystem/bfarm/icd-10-gm' and code = 'M17.0' and version = '2026.0.0').exists() | Details |
| Read and Validate resolved Condition by its ID | INFO - subject.reference.replaceMatches('/_history/.+','').matches('\\bPatient-Read-Example$') | Details |
| Read and Validate resolved Condition by its ID | INFO - clinicalStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' and code = 'resolved').exists() | Details |
| Read and Validate resolved Condition by its ID | INFO - recordedDate.toString().contains("2025-12-23") | Details |
| Read and Validate resolved Condition by its ID | INFO - note.text = "Illness resolved" | Details |
| Read and Validate resolved Condition by its ID | INFO - bodySite.coding.where(system = 'http://snomed.info/sct' and version = 'http://snomed.info/sct/11000274103/version/20251115' and code = '49076000').exists() | Details |
| Read and Validate resolved Condition by its ID | RBellog 0 | Download Evidence |
| Read and Validate resolved Condition by its ID | Evidence Report | Download Evidence |
| Optional Check Verification Status | INFO - verificationStatus.coding.where(system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' and code = 'confirmed').exists() | Details |
| Optional Check Verification Status | RBellog 0 | Download Evidence |
| Optional Check Verification Status | Evidence Report | Download Evidence |