Stream: implementers
Topic: Relative dates in FHIR search
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?
Lloyd McKenzie (Nov 21 2018 at 19:23):
How is this done in PlanDefinition and ActivityDefinition?
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.
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