FHIR Chat · When should a referenced resource be _lastupdated · implementers

Stream: implementers

Topic: When should a referenced resource be _lastupdated


view this post on Zulip Tim Berezny (Feb 01 2018 at 01:57):

I have a system that want to poll a FHIR server for /ServiceRequest within intervals of date/time ranges.

e.g., GET [base]/ServiceRequest/?_lastUpdated=ge2018-01-14T10:00&_lastUpdated=lt2018-01-14T11:00

Lets say an appointment or task gets added, basedOn/referencing this /ServiceRequest. I want the polling system to know that these tasks/appointments have been created. Should I update the lastUpdated value on a ServieRequest when an related /appointment gets created? Other suggested methods for the polling system to find out about the new appointment or task related to the ServiceRequest?

view this post on Zulip Lloyd McKenzie (Feb 01 2018 at 03:14):

lastUpdated should only change when the resource itself changes. You'd have to poll on the tasks/appointments too, filtering using _has

view this post on Zulip Tim Berezny (Feb 01 2018 at 13:34):

Ok thanks @Lloyd McKenzie


Last updated: Apr 12 2022 at 19:14 UTC