FHIR Chat · Sample JSON for enableWhen · implementers

Stream: implementers

Topic: Sample JSON for enableWhen


view this post on Zulip SAM TSAI (Jul 16 2021 at 21:01):

What is the correct enableWhen JSON ?

"enableWhen": [
{
"operator": "=",
"question": "Q1",
"answerBoolean": "true"
}
],

OR

"enableWhen": [
{
"operator": "=",
"question": "Q1",
"answer": "true"
}
],

view this post on Zulip Lloyd McKenzie (Jul 16 2021 at 21:04):

answerBoolean

view this post on Zulip SAM TSAI (Jul 16 2021 at 21:12):

How about this one ?

"enableWhen": [
{
"operator": "exists",
"question": "Q1",
"answerBoolean": "false"
}
],

Q1. Is it required to provide "answerBoolean" for exists operator ?
Q2. This EnableWhen mean when Q1 does not have answer, enable this question. Correct ?

view this post on Zulip Lloyd McKenzie (Jul 16 2021 at 22:10):

1 - yes
2 Yes


Last updated: Apr 12 2022 at 19:14 UTC