FHIR Chat · require resource type for _include · implementers

Stream: implementers

Topic: require resource type for _include


view this post on Zulip Tong Zhao (Feb 18 2021 at 20:36):

Hey team, I have a question for implementing _include & _revinclude search capability. https://www.hl7.org/fhir/search.html#include
In the doc, it mentioned that the 3rd part of the value will be the target resource type when there are multiple possible types. It indicates that this value is optional as the reference may only have one possible type, what I would like to confirm is would that become required when there are multiple possible types.
We are considering the issue when we want to do token scope verification for _include references.

view this post on Zulip René Spronk (Feb 19 2021 at 07:44):

In my understanding, if the third part is omitted, then the value is *, i.e. there are no constraints on the type of resource being referenced by the 'reference' search parameter. As such the third part isn't required by the FHIR spec.

view this post on Zulip Tong Zhao (Feb 23 2021 at 00:48):

Yeah, that make sense, So regarding best practice for scope checking, we will need to verify if the token has the scope of the references after the result is formed instead of only using the request information. As it may be referencing any one(s) of the type.


Last updated: Apr 12 2022 at 19:14 UTC