Stream: cds hooks
Topic: reference to relevant source data
Brett Esler (Sep 20 2017 at 21:01):
Has there been any previous discussion on how to refer to specific request data in a response (card)?
Desire is to refer to specific resources or prefetch keys that a card applies to (if there are any)
For cards I ended up adding 'appliesToResources' array - referring to specific resources e.g. [ 'Observation/123' ]; and 'appliesToPrefetch' array to allow listing of prefetch keys e.g. [ 'orders' ]
This is aimed at linking cards specifically to items displayed in user interface i.e summary like view from prefetch results with 'issues' highlighted
Any thoughts?
Kevin Shekleton (Sep 20 2017 at 21:13):
I believe this has come up before...let me check...
Kevin Shekleton (Sep 20 2017 at 21:17):
Here it is: Resources related to a card #20
Kevin Shekleton (Sep 20 2017 at 21:18):
I think this makes sense for hooks that are around multiple resources (eg, order-review)
Brett Esler (Sep 22 2017 at 12:08):
thanks @Kevin Shekleton that thread is helpful
Last updated: Apr 12 2022 at 19:14 UTC