FHIR Chat · subscription payload question · implementers

Stream: implementers

Topic: subscription payload question


view this post on Zulip Eric Haas (Mar 15 2018 at 14:57):

I want to do a subscription so the the criteria is on type Slot but the notification payload to be type Schedule ( that the Slot references) i.e. the server looks for changes in resource type A but send a notfication containing a related resource type B. Does this make sense and if so is it a common enough pattern to warrant a tracker? On my reading of the resource the notification payload is the same a the resources used to trigger the notification ( criteria )

view this post on Zulip René Spronk (Mar 16 2018 at 07:30):

A subscription is a special form of a query. The query parameters (in general) could be about anything, they need not be just related to the resource type returned. FHIR, given its focus on a resource, is a bit more limited, but allows for chaining of parameters over multiple resource.
Are you sure your query can't be expressed as a chained query, as in (loosely phrased) "give me all schedules where slot.criteria = ??"


Last updated: Apr 12 2022 at 19:14 UTC