☰ Scenario Read optional Method from Observation
Then Get FHIR resource at "http://fhirserver/Observation/${data.observation-read-arterial-oxygen-saturation-id}" with content type "xml"
And FHIR current response body evaluates the FHIRPath "method.coding.where(code = '252465000' and system = 'http://snomed.info/sct' and version = 'http://snomed.info/sct/11000274103/version/${data.snomed-ct-version}' and display.empty().not()).exists()" with error message 'The method does not match the expected value'
INFO
method.coding.where(code = '252465000' and system = 'http://snomed.info/sct' and version = 'http://snomed.info/sct/11000274103/version/20251115' and display.empty().not()).exists()
["BooleanType[true]"]
And element "device" references resource with ID "Device/${data.observation-device-id}" with error message "The referenced device does not match the expected value"
INFO
device.reference.replaceMatches('/_history/.+','').matches('\\bDevice/Device-Read-Example$')
["BooleanType[true]"]