curl -v -H "accept: application/fhir+xml" -X GET "http://fhirserver/Encounter/Encounter-Read-Finished-Example"
SUCCESS
286ms
And FHIR current response body is a valid isik5 resource and conforms to profile "https://gematik.de/fhir/isik/StructureDefinition/ISiKKontaktGesundheitseinrichtung"
INFO - This element does not match any known slice defined in the profile https://gematik.de/fhir/isik/StructureDefinition/ISiKKontaktGesundheitseinrichtung|5.1.2
Copy
{ "locationCol": 2055, "severity": "INFORMATION", "locationString": "Encounter.location[0]", "locationLine": 2, "message": "This element does not match any known slice defined in the profile https://gematik.de/fhir/isik/StructureDefinition/ISiKKontaktGesundheitseinrichtung|5.1.2" }
SUCCESS
300ms
And resource has ID "Encounter-Read-Finished-Example" with error message "The returned Encounter resource has not the expected ID"
INFO - id.replaceMatches('/_history/.+','').matches('\\bEncounter-Read-Finished-Example$')
Copy
{"empty": false}
SUCCESS
218ms
And TGR current response with attribute "$..status.value" matches "finished"
SUCCESS
218ms
And FHIR current response body evaluates the FHIRPath "identifier.where(system = 'https://test.krankenhaus.de/fhir/sid/fallnr' and value='0123456789').exists()" with error message 'The Encounter does not contain the correct admission number'
INFO - identifier.where(system = 'https://test.krankenhaus.de/fhir/sid/fallnr' and value='0123456789').exists()
Copy
{"empty": false}
SUCCESS
221ms
And FHIR current response body evaluates the FHIRPath "class.where(code = 'IMP' and system = 'http://terminology.hl7.org/CodeSystem/v3-ActCode').exists()" with error message 'The Encounter does not contain the correct class code'
INFO - class.where(code = 'IMP' and system = 'http://terminology.hl7.org/CodeSystem/v3-ActCode').exists()
Copy
{"empty": false}
SUCCESS
219ms
And FHIR current response body evaluates the FHIRPath "type.coding.where(code = 'normalstationaer' and system = 'http://fhir.de/CodeSystem/kontaktart-de').exists()" with error message 'The Encounter does not contain the correct type'
INFO - type.coding.where(code = 'normalstationaer' and system = 'http://fhir.de/CodeSystem/kontaktart-de').exists()
Copy
{"empty": false}
SUCCESS
230ms
And FHIR current response body evaluates the FHIRPath "serviceType.coding.where(code = '1500' and system = 'http://fhir.de/CodeSystem/dkgev/Fachabteilungsschluessel').exists()" with error message 'The Encounter does not contain the correct department code'
INFO - serviceType.coding.where(code = '1500' and system = 'http://fhir.de/CodeSystem/dkgev/Fachabteilungsschluessel').exists()
Copy
{"empty": false}
SUCCESS
213ms
And element "subject" references resource with ID "Account-Read-Patient-Example" with error message "The referenced Patient does not match the expected value"
INFO - subject.reference.replaceMatches('/_history/.+','').matches('\\bAccount-Read-Patient-Example$')
Copy
{"empty": false}
SUCCESS
213ms
And FHIR current response body evaluates the FHIRPath "period.start.toString().contains('2026-01-06')" with error message 'The Encounter does not contain a valid start date'
INFO - period.start.toString().contains('2026-01-06')
Copy
{"empty": false}
SUCCESS
213ms
And FHIR current response body evaluates the FHIRPath "period.end.toString().contains('2026-01-08')" with error message 'The Encounter does not contain a valid end date.'
INFO - period.end.toString().contains('2026-01-08')
Copy
{"empty": false}
SUCCESS
213ms
And FHIR current response body evaluates the FHIRPath "hospitalization.admitSource.coding.where(code = 'E' and system = 'http://fhir.de/CodeSystem/dgkev/Aufnahmeanlass').exists()" with error message 'The Encounter does not contain the correct admission reason'
INFO - hospitalization.admitSource.coding.where(code = 'E' and system = 'http://fhir.de/CodeSystem/dgkev/Aufnahmeanlass').exists()
Copy
{"empty": false}
SUCCESS
213ms
And FHIR current response body evaluates the FHIRPath "extension.where(url = 'http://fhir.de/StructureDefinition/Aufnahmegrund' and extension.where(url = 'ErsteUndZweiteStelle' and value.code = '01' and value.system = 'http://fhir.de/CodeSystem/dkgev/AufnahmegrundErsteUndZweiteStelle').exists()).exists()" with error message 'The encounter does not contain the correct admission reason'
INFO - extension.where(url = 'http://fhir.de/StructureDefinition/Aufnahmegrund' and extension.where(url = 'ErsteUndZweiteStelle' and value.code = '01' and value.system = 'http://fhir.de/CodeSystem/dkgev/AufnahmegrundErsteUndZweiteStelle').exists()).exists()
Copy
{"empty": false}
SUCCESS
215ms
And element "account" references resource with ID "Account/Account-Read-Example" with error message "The linked billing case does not match the expected value"
INFO - account.reference.replaceMatches('/_history/.+','').matches('\\bAccount/Account-Read-Example$')
Copy
{"empty": false}
SUCCESS
213ms
And FHIR current response body evaluates the FHIRPath "account.identifier.value = '0123456789'" with error message 'The identifier of the linked billing case does not match the expected value'
INFO - account.identifier.value = '0123456789'
Copy
{"empty": false}
SUCCESS
213ms
And FHIR current response body evaluates the FHIRPath "location.location.identifier.where(system = 'https://test.krankenhaus.de/fhir/sid/zimmerId' and value = 'Z001').exists()" with error message 'The location does not contain the correct code'
INFO - location.location.identifier.where(system = 'https://test.krankenhaus.de/fhir/sid/zimmerId' and value = 'Z001').exists()
Copy