Stream: implementers
Topic: Questionnaire quantity item type unit
Andro Bermúdez Serrano (Jun 25 2019 at 19:38):
What is the preferred way to set the unit code of a questionnaire item of type quantity?
We are considering to indicate that in item.initial.value property.
Lloyd McKenzie (Jun 25 2019 at 19:45):
That can set the default. If you want to constrain it, you need to specify answerOptions o answerValueSet
Andro Bermúdez Serrano (Jun 25 2019 at 19:53):
We are asking for weight in pounds using a question of type quantity. answerOptions or answerValueSet are not for 'choice' questions?
Lloyd McKenzie (Jun 25 2019 at 20:07):
If you only want a single unit, it's better to just capture an integer or decimal - that makes things easier for the rendering tool (and will be more widely supported). Using Quantity is only appropriate when there's a set of units for the user to choose from.
Last updated: Apr 12 2022 at 19:14 UTC