☰ Scenario Read a Slot by ID
Then Get FHIR resource at "http://fhirserver/Slot/${data.slot-read-id}" with content type "xml"
And resource has ID "${data.slot-read-id}"
INFO
id.replaceMatches('/_history/.+','').matches('\\bSlot-Read-Example$')
["BooleanType[true]"]
And FHIR current response body is a valid isik5 resource and conforms to profile "https://gematik.de/fhir/isik/StructureDefinition/ISiKTerminblock"
And TGR current response with attribute "$..status.value" matches "busy"
And element "schedule" references resource with ID "${data.schedule-read-id}" with error message "The referenced schedule is not correct"
INFO
schedule.reference.replaceMatches('/_history/.+','').matches('\\bSchedule-Read-Example$')
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath "start.toString().contains('${data.slot-read-start}') or start ~ @${data.slot-read-start}" with error message 'The slot start time does not match the expected value'
INFO
start.toString().contains('2027-01-01') or start ~ @2027-01-01
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath "end.empty().not()" with error message 'The slot end time is not provided'
INFO
end.empty().not()
["BooleanType[true]"]