Stream: implementers
Topic: Date filtering on $everything operation
Aishwarya Ravindran (Jun 06 2018 at 17:42):
Should the start and end date parameters allowed on the $everything operation(https://www.hl7.org/fhir/patient-operations.html#everything) also follow the same behavior described in the date search (http://hl7.org/fhir/DSTU2/search.html#date)? It is a little confusing since in the regular date search, the same "date" parameter is used to specify the lower and upper bounds whereas here two separate parameter values "start" and "end" seem to indicate the bounds.
Grahame Grieve (Jun 06 2018 at 19:58):
good question
Lloyd McKenzie (Jun 06 2018 at 20:02):
Which translates to: @Aishwarya Ravindran, can you please submit a change request on this so we actually do clarify and get that into the spec? :)
Aishwarya Ravindran (Jun 06 2018 at 20:54):
Sure, @Lloyd McKenzie. I will submit a change request. Thanks!
Christiaan Knaap (Jun 12 2018 at 05:15):
But still no clarification here :-) I interpret this as:
Search on date: each date parameter implicitly spans a period, from as small as a millisecond to as wide as a year. To account for that, the period that it spans is used for performing the search. So date=2016-11 will range from Nov 1st up to Nov 30th.
But that does not allow you to express a period from let's say May 2016 to April 2017. To express that, you need start & end date. Those will both be expanded to periods, so if you specify start=2016-05&end=2017-04, it will range from the lower end of start (May 1st ) to the upper end of end (April 30th).
That being said it would be a nice addition to clarify which of the dates in resources in the Patient compartment qualify as 'care date'.
Aishwarya Ravindran (Jun 15 2018 at 19:08):
@Christiaan Knaap :Thanks! That is helpful!
@Lloyd McKenzie : Sorry about the delay in creating the ticket!
I created https://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemEdit&tracker_item_id=17362 for this.
Last updated: Apr 12 2022 at 19:14 UTC