Stream: implementers
Topic: How to format QuestionnaireResponse to type=choice question?
Sampo Kantola (Sep 10 2019 at 16:07):
At https://www.hl7.org/fhir/valueset-item-type.html the only allowed value type defined for answers to questions of type=choice is valueCoding. AnswerOption, however allowes more value types.
How do I format the chosen value (eg. valueString which was defined via answerOption) to a type=choice question in the questionnaireResponse if the only allowed value type for answers is valueCoding?
Eric Haas (Sep 10 2019 at 17:01):
I don't understand your question fully but the QuestionnaireAnswer type must match the type defined in the Questionnaire item.
Tim Berezny (Sep 10 2019 at 17:14):
By my understanding, I don't think that the QuestionnaireResponse cares that the Question was a choice, it only cares what your selection/answer was.
In other words, if you have a question like "rank X on a scale of 1 to 10", your presented options are in the Questionnaire, but the QuestionnaireResponse would have the answer stored as "item.answer.valueInteger" : 7. The QuestionnaireResponse is not aware of the values you chose from except by referencing the corresponding question in the Questionnaire.
Lloyd McKenzie (Sep 10 2019 at 17:46):
'choice' is going to get renamed 'Coding' - because you can indeed have questions that are non-coded that are choices.
Last updated: Apr 12 2022 at 19:14 UTC