☰ Scenario Read and Validate the Observation by its ID
Then Get FHIR resource at "http://fhirserver/Observation/${data.observation-read-arterial-oxygen-saturation-id}" with content type "xml"
And resource has ID "${data.observation-read-arterial-oxygen-saturation-id}"
INFO
id.replaceMatches('/_history/.+','').matches('\\bArterial-Oxygen-Saturation-Read-Example$')
["BooleanType[true]"]
And FHIR current response body is a valid isik5 resource and conforms to profile "https://gematik.de/fhir/isik/StructureDefinition/ISiKSauerstoffsaettigungArteriell"
INFO
Code system definition is missing for 'http://loinc.org#2708-6'
{
"locationCol": 561,
"severity": "INFORMATION",
"locationString": "Observation.code.coding[0]",
"messageId": "Terminology_PassThrough_TX_Message",
"locationLine": 2,
"message": "Code system definition is missing for 'http://loinc.org#2708-6'"
}
INFO
Code system definition is missing for 'http://snomed.info/sct#252465000'
{
"locationCol": 1148,
"severity": "INFORMATION",
"locationString": "Observation.method.coding[0]",
"messageId": "Terminology_PassThrough_TX_Message",
"locationLine": 2,
"message": "Code system definition is missing for 'http://snomed.info/sct#252465000'"
}
And TGR current response with attribute "$..status.value" matches "final"
And FHIR current response body evaluates the FHIRPath "category.coding.where(code = 'vital-signs' and system = 'http://terminology.hl7.org/CodeSystem/observation-category').exists()" with error message 'The category does not match the expected value'
INFO
category.coding.where(code = 'vital-signs' and system = 'http://terminology.hl7.org/CodeSystem/observation-category').exists()
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath "code.coding.where(code = '2708-6' and system = 'http://loinc.org' and version = '${data.loinc-version}' and display.empty().not()).exists()" with error message 'The code does not match the expected value'
INFO
code.coding.where(code = '2708-6' and system = 'http://loinc.org' and version = '2.81' and display.empty().not()).exists()
["BooleanType[true]"]
And element "subject" references resource with ID "Patient/${data.observation-patient-id}" with error message "The referenced patient does not match the expected value"
INFO
subject.reference.replaceMatches('/_history/.+','').matches('\\bPatient/Patient-Read-Example$')
["BooleanType[true]"]
And element "encounter" references resource with ID "Encounter/${data.observation-encounter-id}" with error message "The referenced encounter does not match the expected value"
INFO
encounter.reference.replaceMatches('/_history/.+','').matches('\\bEncounter/Encounter-Read-In-Progress-Example$')
["BooleanType[true]"]
And element "performer" references resource with ID "Practitioner/${data.observation-practitioner-id}" with error message "The referenced performer does not match the expected value"
INFO
performer.reference.replaceMatches('/_history/.+','').matches('\\bPractitioner/Practitioner-Read-Example$')
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath "effective.toString().contains('2026-03-05')" with error message 'The effective date does not match the expected value'
INFO
effective.toString().contains('2026-03-05')
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath "value.where(value ~ 98 and code = '%' and unit.exists() and system = 'http://unitsofmeasure.org').exists()" with error message 'The value does not match the expected value'
INFO
value.where(value ~ 98 and code = '%' and unit.exists() and system = 'http://unitsofmeasure.org').exists()
["BooleanType[true]"]