FHIR Chat · Search Parameter date prefixes · implementers

Stream: implementers

Topic: Search Parameter date prefixes


view this post on Zulip Muhammad Abubakar Ikram (Dec 06 2018 at 11:30):

I am not understanding the meaning of "ge" prefix. The figurative meaning is "Greater Than Equal To" but the spec here

[parameter]=ge2013-03-14
"from 21-Jan 2013 onwards" is included because that period may include times after 14-Mar 2013

what says I am not understanding. Is anyone please try to make me understand?

how 21-Jan-2013 could be added to the search set where the required date in search is "Greater Than Equal To" 14-Mar-2013

view this post on Zulip Christiaan Knaap (Dec 06 2018 at 11:36):

DateTime matching generally means: having overlap in periods. Most datetimes implicitly define a period (because the DateTime is not infinite precise) and Period obviously defines a period. Now:
1. "from 21-Jan 2103 onwards" is the period from 2013-01-21T00:00:00.000 until the end of times.
2. "ge2013-03-14" is the period from 2013-03-14T00:00:00.000 until the end of times.
There is clearly an overlap in those periods, meaning that 1. might fit the criterium set by 2. and is therefore considered a match.
For brevity I left out the discussion on offsets / timezones, but those should also be taken into account by the evaluation on the server.

view this post on Zulip Muhammad Abubakar Ikram (Dec 06 2018 at 11:43):

@Christiaan Knaap but this is only true for the case where search parameter type is "date" and the FHIR type (which is going to compare with the search parameter value) is "period" and only start value is intialized in the period or the end value of the period is greater than the search parameter value? am I right?

view this post on Zulip Christiaan Knaap (Dec 06 2018 at 11:45):

Correct

view this post on Zulip Michele Mottini (Dec 06 2018 at 14:39):

Nitpicking: you can have date (not period) values like 2013 or 2013-03 and they will both match ge2013-03-14


Last updated: Apr 12 2022 at 19:14 UTC