FHIR Chat · Must support + an invariant? · argonaut

Stream: argonaut

Topic: Must support + an invariant?


view this post on Zulip Cooper Thompson (Dec 02 2021 at 19:49):

What does it mean when there is a property tagged as must-support, but that same property has an invariant that requires the property only in certain conditions? Does the invariant overrule must-support?

Example: Procedure.performed.

Related tracker: FHIR#33243. That says applied, but it isn't clear whether the MS flag should have been removed when the invariant was added.

view this post on Zulip Cooper Thompson (Dec 02 2021 at 19:52):

And in general, should all the performed-style timestamp properties on all profiles be invariants instead of MS? We're running into issues where anything that is canceled / not-done isn't passing, since we don't have performed dates for stuff that was never performed...

view this post on Zulip Brett Marquard (Dec 02 2021 at 19:52):

'Performed SHALL be present if the status is 'completed' or 'in-progress''

view this post on Zulip Cooper Thompson (Dec 02 2021 at 19:53):

Ah - sorry. I see. Since it is now 0..1 in 4.0.1+, then invariant+MS works. The issue is in 3.1.1 where it is 1..1.

view this post on Zulip Brett Marquard (Dec 02 2021 at 19:53):

you got it!

view this post on Zulip Cooper Thompson (Dec 02 2021 at 19:55):

@Johnny Bender , FYI, ONC clarification request coming your way :grinning:

view this post on Zulip Cooper Thompson (Dec 02 2021 at 20:07):

Although... what about stuff like patient-reported surgical history, where the patient reports it and you don't have performed dates?

view this post on Zulip Brett Marquard (Dec 02 2021 at 20:13):

performedAge

view this post on Zulip Brett Marquard (Dec 02 2021 at 20:13):

or string -- it's not a mandatory dateTime

view this post on Zulip Cooper Thompson (Dec 02 2021 at 20:15):

I see. Thanks! It took me a minute to untangle the two different must-support flags + invariant + cardinality. Whew.

view this post on Zulip Cooper Thompson (Dec 02 2021 at 20:30):

CFS-3549 submitted for ONC clarification.

view this post on Zulip Cooper Thompson (Dec 02 2021 at 20:38):

Ugh. Actually for patient reported surgical history, we don't require any time info. It can be provided, but we don't require it. So we have a bunch of historical data that has no "performed" timing info at all.

view this post on Zulip Cooper Thompson (Dec 02 2021 at 20:39):

I suppose at this point I should just write a ballot comment?

view this post on Zulip Cooper Thompson (Dec 02 2021 at 20:50):

FHIR#34409

view this post on Zulip Eric Haas (Dec 03 2021 at 03:42):

DAR that

view this post on Zulip Cooper Thompson (Dec 03 2021 at 14:28):

I swear I know all of this stuff in my head. I just get it all mixed up when juggling DAR rules, MS, invariants, cardinality, and US Core 3.1.1 vs. newer versions. Thanks for bearing with me.


Last updated: Apr 12 2022 at 19:14 UTC