FHIR Chat · Relative dates in FHIR search · implementers

Stream: implementers

Topic: Relative dates in FHIR search


view this post on Zulip Claude Nanjo (Nov 21 2018 at 19:12):

I have a use case where I need to define a CDS Hooks prefetch query that looks for all meds taken by the patient in the past n months. I don't want to place fixed dates in the query since I don't know when the prefetch will be executed. I just want to specify my intent relative to execution time. Is there a way in FHIR to specify a date range that is relative. For instance, search for all resources of type X between now() - 6 months?

view this post on Zulip Lloyd McKenzie (Nov 21 2018 at 19:23):

How is this done in PlanDefinition and ActivityDefinition?

view this post on Zulip Claude Nanjo (Nov 21 2018 at 19:35):

It is done through DataRequirement. I am wondering if perhaps CDS Hooks may not want to consider DataRequirement for its prefetches.

view this post on Zulip Lloyd McKenzie (Nov 21 2018 at 20:03):

Perhaps raise this on the #cds hooks stream


Last updated: Apr 12 2022 at 19:14 UTC