FHIR Chat · Invariant about a reference from another resource · conformance

Stream: conformance

Topic: Invariant about a reference from another resource


view this post on Zulip Rik Smithies (Feb 02 2022 at 20:59):

Is it possible to have an invariant, fhirpath etc. that says don't use property X if another resource (of a certain type) exists that refers to this one (and has property Y). I was think of resolve() but working the other way around, like a reverse chain.

view this post on Zulip Grahame Grieve (Feb 02 2022 at 21:06):

not at the moment

view this post on Zulip Rik Smithies (Feb 02 2022 at 21:16):

ok thanks. So does an invariant have to have a fhirpath/xpath, or can it just be expressed as text? Or is this just something that has to be captured in other text.

view this post on Zulip Grahame Grieve (Feb 02 2022 at 21:18):

it can be just expressed in text, but I really think that's a rule that belongs on the other resource

view this post on Zulip Rik Smithies (Feb 02 2022 at 21:19):

true.

view this post on Zulip René Spronk (Feb 03 2022 at 10:12):

GraphDefinition could do this (once redefined..)

view this post on Zulip Grahame Grieve (Feb 03 2022 at 20:30):

it could, yes.


Last updated: Apr 12 2022 at 19:14 UTC