FHIR Chat · Questionnaire Response · implementers

Stream: implementers

Topic: Questionnaire Response


view this post on Zulip Ajith Aj (Aug 15 2020 at 08:55):

(deleted)

view this post on Zulip Ajith Aj (Aug 15 2020 at 08:55):

(deleted)

view this post on Zulip Ajith Aj (Aug 15 2020 at 09:06):

Hi,
I'm trying to submit a questionnaire response with a top level question and sub level question associated with that top level question.
Example :
"item": [
{
"id": "1",
"linkId": "1.2.208.176.7.200.2,q1,ehealth.sundhed.dk",
"answer": [
{
"valueString": "Top Question"
}
],
"item": [
{
"linkId": "1.2.208.176.7.200.2,q1.s1,ehealth.sundhed.dk",
"answer": [
{
"valueString": "Sub Question of Top Question"
}
]
}
]
}
]

But getting the below error response
Response : Nested item can't be beneath both item and answer [(answer.exists() and item.exists()).not()]

Could anyone tell me what is wrong with my payload?

Thanks in Advance.

view this post on Zulip Lloyd McKenzie (Aug 23 2020 at 23:17):

If you've got an answer, the child items need to be within the answer element, not a sibling to it


Last updated: Apr 12 2022 at 19:14 UTC