FHIR Chat · Can a group have enable-when with a question ? · questionnaire

Stream: questionnaire

Topic: Can a group have enable-when with a question ?


view this post on Zulip SAM TSAI (Sep 27 2021 at 17:11):

Can a group have enable-when with a question ?

For example:

Q2 will only show, when Q1's yes

{
"code": [
{
"code": "G2",
"display": "Multiple Levels Branching Sample"
}
],
"text": "Prescription drugs - ENABLE WHEN -New",
"type": "group",
"linkId": "G2",
"required": false,
"enableWhen": [
{
"operator": "=",
"question": "Q1",
"answerCoding": {
"code": true
},
"answerBoolean": true
}
]
}

view this post on Zulip Paul Lynch (Sep 27 2021 at 17:37):

A group can have enableWhen. I am not sure about other parts of your example. You mention "Q2", but the example has "G2"-- are those meant to be the same?

view this post on Zulip SAM TSAI (Sep 27 2021 at 17:58):

Hi, Paul:

It is a typo. My question should be: G2 will only show, when Q1's yes.

Thanks for your reply,

Great help!

Sam


Last updated: Apr 12 2022 at 19:14 UTC