Stream: implementers
Topic: enablewhen question resolution
RP (Oct 21 2020 at 04:03):
From Questionnaire enablewhen.question
If multiple question occurrences are present for the same question (same linkId), then this refers to the nearest question occurrence reachable by tracing first the "ancestor" axis and then the "preceding" axis and then the "following" axis.
My understanding of this is look initially at parent items, than sibling item and finally your own children items
And that for non repeats you don't follow these axis at all and just go to exact location.
My question then is around the behavior of this where a question doesn't fall strictly under one of these axis for instance a sibling to an ancestor? Is the expected Behavior here to then trace on the preceding axis for your ancestor?
Lin Zhang (Oct 21 2020 at 04:39):
Aquestion about skip logic?
Lin Zhang (Oct 21 2020 at 04:39):
(deleted)
Lloyd McKenzie (Oct 21 2020 at 05:00):
Preceding + following will cover all nodes in the instance. Preceding covers all nodes before the current node in the QuestionnaireResponse, not just siblings. Similarly, following covers all nodes after the current node in the QuestionnaireResponse
Lloyd McKenzie (Oct 21 2020 at 05:00):
(Same as the XPath axis definitions)
Grahame Grieve (Oct 21 2020 at 06:08):
there's commentary about this in the SDC implementation guide, and you might want to follow discussion on #questionnaire
RP (Oct 21 2020 at 16:56):
I see I was limiting the axis only to the initial node you performing the search on.
Okay makes sense, thanks.
Last updated: Apr 12 2022 at 19:14 UTC