FHIR Chat · Example of constraint that uses extension values · implementers

Stream: implementers

Topic: Example of constraint that uses extension values


view this post on Zulip Diego Bosca (Jul 25 2019 at 21:29):

Is anyone aware of an example profile with a constraint (using either fhirpath or xpath) that uses values/conditions coming from the profile and from an extension attached to an specific place in that profile? Where would you put such a constraint? (in 'root' class, in the attribute that uses the extension, etc.)

view this post on Zulip Lloyd McKenzie (Jul 26 2019 at 00:02):

Constraints should appear on the element that is the deepest common ancestor of all of the elements that are affected by the constraint. In the invariant, you reference the extension value by `[relative path if any].extension('full extension url here').value

view this post on Zulip Diego Bosca (Jul 26 2019 at 07:30):

Thanks, it's clearer now :)


Last updated: Apr 12 2022 at 19:14 UTC