Stream: questionnaire
Topic: Nested item constraint
Sarah Gaunt (Aug 22 2018 at 00:09):
So I want to say my Questionnaire profiles "must support" extension-questionnaire-allowedProfile on item.
But item is nested - is there a way to specify this without going n item levels deep?
Or do I need to assume than we are never going to have more than, say 3 nestings and explicitly add the "must support"s down those 3 levels?
Lloyd McKenzie (Aug 23 2018 at 15:24):
When you add a mustSupport to a recursive item, it automatically gets added to all levels
Sarah Gaunt (Aug 23 2018 at 15:32):
Perfect thanks!
Sarah Gaunt (Aug 23 2018 at 15:37):
Actually - it's not just making an item "must support" - it's also the addition of the extension (which is must support) - is the addition of the extension also recursive?
Sarah Gaunt (Aug 23 2018 at 15:41):
BTW @Sean McIlvenna this is in relation to your ballot comment on HAI FHIR: "The "questionnaire-allowedProfile" extension is only applied to the top-level Questionnaire.item, but should be allowed on any Questionnaire.item, Questionnaire.item.item, etc. in the hierarchy."
Lloyd McKenzie (Aug 23 2018 at 15:47):
Right now, there's no ability to differentiate "this constraint only applies to this level" vs. "this constraint applies to all levels". We've come up with how this should work in principle, but the tooling doesn't do it. So right now, it's all levels, all the time.
Last updated: Apr 12 2022 at 19:14 UTC