FHIR Chat · type array of string · questionnaire

Stream: questionnaire

Topic: type array of string


view this post on Zulip DevGeek (Jul 25 2020 at 18:58):

Hi , I'am creating a Questionnaire and adding items in this form at the moment :
{
"linkId" : "25",
"text" : "Question display",
"type" : "",
"readOnly" : false
}

In this question, the response is an array of string, how can I declare that ?

Thanks

view this post on Zulip Lloyd McKenzie (Jul 25 2020 at 19:10):

type would be string, repeat = true

view this post on Zulip DevGeek (Jul 26 2020 at 10:27):

@Lloyd McKenzie and how that will be stored ?

view this post on Zulip DevGeek (Jul 26 2020 at 12:10):

@Lloyd McKenzie Normally it will something like this in the QuestionnaireResponse

        "answer": [
          {
            "valueString": "test"
          }
        ]

How it will store multiple strings ?

view this post on Zulip Mareike Przysucha (Jul 26 2020 at 12:41):

Hi there. answer can appear multiple times. I guess it would be something like that:

"answer" : [
   { "valueString": "answer_1"} ,
   { "valueString": "answer_2"} ,
   ...
   { "valueString": "answer_n"}
]

But please correct me if I'm wrong.

view this post on Zulip Lloyd McKenzie (Jul 26 2020 at 14:03):

@Mareike Przysucha is correct.

view this post on Zulip Mareike Przysucha (Jul 26 2020 at 14:04):

@Lloyd McKenzie Thanks for the confirmation.


Last updated: Apr 12 2022 at 19:14 UTC