FHIR Chat · Questionnaire multiple-choice items · implementers

Stream: implementers

Topic: Questionnaire multiple-choice items


view this post on Zulip Elon Danziger (Oct 24 2017 at 18:44):

I'm having trouble finding examples of multiple-choice Questionnaire items. Is this the correct way to capture this type of Questionnaire item and associated data?

"item": [
{
"linkId": "1",
"text": "Tell us about this baby.",
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "364739001",
"display": "Finding of fetal gestation at delivery"
}
]
},
"type": "group",
"options": [
{
"option":
{
"valueString": "Preterm, less than 37 weeks",
"valueCoding": [
{
"system": "http://snomed.info/sct",
"code": "395507008",
"display": "Premature infant"
}
]
}
},
{
"option":
{
"valueString": "Term, 37-42 weeks",
"valueCoding": [
{
"system": "http://snomed.info/sct",
"code": "57891003",
"display": "Term infant"
}
]
}
}
]
}

view this post on Zulip Lloyd McKenzie (Oct 24 2017 at 19:33):

You'd either have options or option, but not both. The former would point to a value set, the latter is a collection of allowed choices. And for each option, you'd only have a single value[x] element - a given choice is either a Coding or a string, it can't be both.

view this post on Zulip Elon Danziger (Oct 24 2017 at 20:16):

Thanks, Lloyd. Am I free to set the "display" property for the SNOMED code to match my preferred answer text? Also is "type"="group" correct?

view this post on Zulip Lloyd McKenzie (Oct 24 2017 at 20:46):

Group is for items that don't allow answers themselves, but which contain other items.

view this post on Zulip Lloyd McKenzie (Oct 24 2017 at 20:46):

"display" needs to be a valid display name for the code according to the code system

view this post on Zulip Brian Postlethwaite (Nov 10 2017 at 09:18):

I think what you're looking for is indicating that the answer for this question can repeat.
Its how we've implemented it. (note the below is DSTU2, but equally applies in STU3)

https://sqlonfhir-ci2.azurewebsites.net/fhir/Questionnaire/multi-select-choice

(and use this to demo the rendering)
http://smartq.azurewebsites.net/Home/Survey?questionnaireId=https://sqlonfhir-ci2.azurewebsites.net/fhir/Questionnaire/multi-select-choice


Last updated: Apr 12 2022 at 19:14 UTC