microsoft / fhir-server

A service that implements the FHIR standard
MIT License
1.19k stars 512 forks source link

Add support for R4 searches of types Timing=>Date, String=>Date #893

Open brendankowitz opened 4 years ago

brendankowitz commented 4 years ago

User story Add support for the R4 primitive types mapping to Date search type.

Acceptance criteria

  1. Support is visible at the /metadata endpoint
  2. Canonical urls are indexed correctly
  3. Verify resources can be searched by Date. e.g. CarePlan.activity.detail.scheduled(Timing,FhirString), ChargeItem.occurrence(Timing)
CaitlinV39 commented 4 years ago

AB#72426

valeneiko commented 3 years ago

How does search on Timing supposed to work? The spec seems a bit vague:

the specified scheduling details are ignored and only the outer limits matter.

There are 2 places where outer limits can be inferred from:

  1. Timing.event would result in range [min(.), max(.)] equivalent to effectivePeriod
  2. Timing.repeat.boundPeriod which is equivalent to effectivePeriod

Did I interpret the spec correctly?