FHIR Chat · Hints for questions · questionnaire

Stream: questionnaire

Topic: Hints for questions


view this post on Zulip Jing Tang (Dec 30 2021 at 19:13):

Is there a field or an extension for a hint text field to display things like - "Input a date using the format dd/mm/yyyy", or "Check all that apply"? Essentially text that isn't the question itself but helps the user to answer the question correctly?

view this post on Zulip Tilo Christ (Dec 30 2021 at 19:14):

https://build.fhir.org/extension-entryformat.html

view this post on Zulip Tilo Christ (Dec 30 2021 at 19:15):

for longer texts there is an itemControl called prompt, which allows you to use an entire display item as the explanation.

view this post on Zulip Jing Tang (Dec 31 2021 at 10:27):

this is super helpful - thanks @Tilo Christ!

view this post on Zulip Brian Postlethwaite (Dec 31 2021 at 20:10):

Or you can just have another display item inline. (though I prefer the other 2 mentioned already)

view this post on Zulip santosh pingle (Mar 02 2022 at 16:02):

Any suggestion how will we add prompt text to questionnaire item control ?
e.g "Select one " as prompt text.
can we consider coding element to add prompt text?

"extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "drop-down",
                     ...
                  },
                  .....
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "prompt",
                    "display": "Select one"
                  }
                ],
                "text": "Drop down"
              }
            }
          ],

view this post on Zulip Paul Lynch (Mar 02 2022 at 18:18):

itemControl "prompt" was removed from R5 in favor of "entryformat" (see link above), so use that instead.

view this post on Zulip Lloyd McKenzie (Mar 03 2022 at 02:53):

In this case, it wouldn't really be an 'entry format' - i.e. something that displays within the control itself. It'd be a nested 'display' item that provided instructions.

view this post on Zulip santosh pingle (Mar 10 2022 at 12:38):

Any suggestion on below use case :

Is it ok to add multiple nested display items if it is required to show multiple hints, instruction, suggestion, placeholder texts in parent question item along with question text?
e.g input text field (type string) questionnaire item where hint/instruction/label text is shown along with question text at different places in the same view.

"item": [
 {
   "linkId": "1",
   "text": "Question text",
   "type": "String",
   "item": [
     {
       "linkId": "1-hint-text",
       "text": "Hint text",
       "type": "display"
     },
     {
       "linkId": "1-placeholder-text",
       "text": "Placeholder text",
       "type": "display"
     },
     ...,
     {
       "linkId": "1-helper-text",
       "text": "helper text",
       "type": "display"
     }
   ]
 }
]

Or
Should questionnaire items only allow single instruction/hint text along with questionnaire text, so no need to use multiple nested display items ?

view this post on Zulip Lloyd McKenzie (Mar 10 2022 at 17:44):

Totally fine to have multiple nested items, though you should use the itemControl and/or displayCategory extensions to differentiate them and ensure they're rendered appropriately.


Last updated: Apr 12 2022 at 19:14 UTC