FHIR Chat · root of a constrain added to a reference element · implementers

Stream: implementers

Topic: root of a constrain added to a reference element


view this post on Zulip Georg Fette (Oct 12 2019 at 16:11):

When I add a FHIRPath expression constraint to an element that is a reference to another profile, what has to be the root of the FHIRPath expression ? Is it already the referenced resource ? Or do I still have to call some "resolve()" to reach the referenced resource ?

view this post on Zulip Lloyd McKenzie (Oct 12 2019 at 16:37):

You need to use resolve(). (Because your FHIRPath could just be asserting constraints on the Reference data type

view this post on Zulip Georg Fette (Oct 12 2019 at 16:42):

so the expression starts with "resolve()" ? Because the root of the expression is the reference ?

view this post on Zulip Alexander Zautke (Oct 12 2019 at 17:04):

Because the function needs some context about the collection that you try to resolve you could use "$this.resolve()"


Last updated: Apr 12 2022 at 19:14 UTC