FHIR Chat · Extension for questionnaire? · implementers

Stream: implementers

Topic: Extension for questionnaire?


view this post on Zulip Sean McIlvenna (Feb 15 2018 at 23:14):

If I wanted to create an extension for Questionnaire.item, what would the context of the extension's StructureDefinition be?
Would it just be Questionnaire.item?
I see an example of an extension for Questionnaire.item (http://build.fhir.org/extension-questionnaire-itemcontrol.xml.html) where it lists two contexts:
Questionnaire.item
and
Questionnaire.item.item

view this post on Zulip Sean McIlvenna (Feb 15 2018 at 23:15):

So that implies to me that I have to enumerate each level of Questionnaire.item that I want the extension to support.
But in my case, I just want to support any Questionnaire.item, even if it is Quetionnaire.item.item.item.item.item

view this post on Zulip Grahame Grieve (Feb 15 2018 at 23:16):

just Questionnaire.item

view this post on Zulip Sean McIlvenna (Feb 15 2018 at 23:17):

Thanks Grahame.
Given that, I assume we're not supporting ONLY making an extension for Questionnaire.item.item.item?

view this post on Zulip Sean McIlvenna (Feb 15 2018 at 23:17):

i.e. if I wanted to have an extension that can only be used in third-level items of a questionnaire

view this post on Zulip Grahame Grieve (Feb 15 2018 at 23:17):

yup

view this post on Zulip Sean McIlvenna (Feb 15 2018 at 23:17):

k

view this post on Zulip Sean McIlvenna (Feb 15 2018 at 23:18):

don't see any value to that, but wanted to make sure I got it right

view this post on Zulip Lloyd McKenzie (Feb 15 2018 at 23:57):

I'm not sure that makes sense Grahame. Imagine a different resource with the elements Something.foo and Something.foo.bar where both foo and bar are of type Foo. If I declare the context to be Something.foo, would that automatically mean that it would apply to Something.foo.bar and Something.foo.bar.bar.bar.bar?

view this post on Zulip Lloyd McKenzie (Feb 15 2018 at 23:58):

I'm find with a context of a recursive element applying to all recursions. But I don't know that specifying a context of something with a particular type should automatically apply to all instances of that type.

view this post on Zulip Lloyd McKenzie (Feb 15 2018 at 23:58):

(for backbone types)

view this post on Zulip Grahame Grieve (Feb 16 2018 at 00:10):

this discussion is about recursive elements, not types. Don't see where that comes into scope

view this post on Zulip Lloyd McKenzie (Feb 16 2018 at 00:59):

Questionnaire.item is not recursive. It's Questionnaire.item.item that starts the recursive process.

view this post on Zulip Grahame Grieve (Feb 16 2018 at 01:25):

Questionnaire.item.item is defined as having the same content as Questionnaire.item - that's how the definition works. So if you say that something applies to Questionnaire.item, then it applies to Questionnaire.item.item

view this post on Zulip Lloyd McKenzie (Feb 16 2018 at 02:35):

And if I had a different element called Questionnaire.group with the same type as Questionnaire.item or an element called Questionnaire.item.group, would it apply to both of those too?


Last updated: Apr 12 2022 at 19:14 UTC