FHIR Chat · encounter.date (search) · implementers

Stream: implementers

Topic: encounter.date (search)


view this post on Zulip Rob Resendez (Mar 14 2017 at 17:03):

I'm having a bit of trouble reconciling the search spec for the "date" data type against the description of the "date" search parameter...

"A date within the period the Encounter lasted" (http://www.hl7.org/implement/standards/fhir/encounter.html#search)

Meanwhile the "date" datatype says it should support prefixes (le, lt, ge, gt, etc). How exactly would "date=le:val:" be interpreted? Reading the description for date, my current thinking is that only a "eq" prefix is supported and it would be interpreted by a predicate "date.start < :date: < date.end"

Is there something I"m missing?

view this post on Zulip Igor Sirkovich (Mar 14 2017 at 18:42):

Date datatype support just dates, not prefixes. Date search parameter supports prefixes, e.g. [parameter]=le2017-03-11 means on or before March 11, 2017.

view this post on Zulip Grahame Grieve (Mar 14 2017 at 19:22):

that's just not a very good description. Please create a task to change (http://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemBrowse&tracker_id=677)

view this post on Zulip Rob Resendez (Mar 14 2017 at 20:08):

But encounter.date (the search param) maps to encounter.period. How should someone enterpret "period is on or before 2017-03-11"? Both dates is before 3/11? Either date is before 3/11?

Especially when you factor in the description, "A date within the period the Encounter lasted"?

Edit: Just saw Grahame's note recommending a description change - still not quite sure how a date parameter should be mapped against a period field

view this post on Zulip Grahame Grieve (Mar 14 2017 at 20:11):

this is described here: http://build.fhir.org/search.html#date

view this post on Zulip Rob Resendez (Mar 14 2017 at 20:12):

Thanks I knew there was something obvious I was missing

view this post on Zulip Rob Resendez (Mar 14 2017 at 20:18):

err... sorry still confused. For period it says, "Explicit, though the upper or lower bound may not actually be specified in resources."

Does that imply that the parameter name would be "date.start" instead of "date"? Or should it be interpreted as "any dates in this period must be 'le' this date"?

An explicit example using 'period' in the docs would be helpful for slow folks like me! :)


Last updated: Apr 12 2022 at 19:14 UTC