Stream: conformance
Topic: Invariant about a reference from another resource
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.
Grahame Grieve (Feb 02 2022 at 21:06):
not at the moment
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.
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
Rik Smithies (Feb 02 2022 at 21:19):
true.
René Spronk (Feb 03 2022 at 10:12):
GraphDefinition could do this (once redefined..)
Grahame Grieve (Feb 03 2022 at 20:30):
it could, yes.
Last updated: Apr 12 2022 at 19:14 UTC