☰ Scenario Read and Validate the Observation with DataAbsentReason by its ID
Then Get FHIR resource at "http://fhirserver/Observation/${data.observation-read-arterial-oxygen-saturation-absent-id}" with content type "xml"
And resource has ID "${data.observation-read-arterial-oxygen-saturation-absent-id}"
INFO
id.replaceMatches('/_history/.+','').matches('\\bArterial-Oxygen-Saturation-DataAbsentReason-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": 476,
"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'"
}
And FHIR current response body evaluates the FHIRPath "dataAbsentReason.coding.where(code = 'not-performed' and system = 'http://terminology.hl7.org/CodeSystem/data-absent-reason' and display.empty().not()).exists()" with error message 'The dataAbsentReason does not match the expected value'
INFO
dataAbsentReason.coding.where(code = 'not-performed' and system = 'http://terminology.hl7.org/CodeSystem/data-absent-reason' and display.empty().not()).exists()
["BooleanType[true]"]