FHIR Chat · observationLinkPeriod: date or _lastUpdated? · questionnaire

Stream: questionnaire

Topic: observationLinkPeriod: date or _lastUpdated?


view this post on Zulip Paul Lynch (Feb 26 2021 at 22:58):

When writing a FHIR query for the most recent observation, would you use the "date" search parameter or _lastUpdated? ("&date=gt2020-02-27T16%3A29%3A34.044Z" or "&_lastUpdated=gt2020-02-27T16%3A29%3A34.044Z".) The SDC specification does not explicitly say.

view this post on Zulip Lloyd McKenzie (Feb 26 2021 at 23:27):

I would go by 'date'. _lastUpdated is about when the data was last tweaked on the server - which may have little correlation to the effectiveTime of the Observation - and the latter is what you want to search by when looking for "most recent".

view this post on Zulip Lloyd McKenzie (Feb 26 2021 at 23:28):

If someone corrected or commented on a result from 20 years ago yesterday, that'll show up with a _lastUpdated of yesterday, even though there might be a new Observation of the same type made only two days prior instead of 20 years ago.

view this post on Zulip Paul Lynch (Feb 26 2021 at 23:43):

That's what I thought. But, git seems to think I wrote some code that uses _lastUpdated. Should the SDC specification explicitly state which search parameter to use?

view this post on Zulip Lloyd McKenzie (Feb 27 2021 at 00:07):

I thought the mapping did, but feel free to take a look and see if we can/should be more explicit

view this post on Zulip Paul Lynch (Feb 27 2021 at 00:15):

The Observation prepopulation section does have an example query using the "date" parameter, so perhaps that is enough.


Last updated: Apr 12 2022 at 19:14 UTC