Stream: questionnaire
Topic: questionnaire-unit vs itemControl unit
Paul Lynch (Oct 21 2019 at 20:12):
If a question defines questionnaire-unit (which is for computation purposes), shouldn't that unit normally be displayed? And if so, why do we need the "unit" option for questionnaire-itemControl (which is for display purposes)? I don't think you are going to one to 'kg' and the other to '[lb_av]'.
Lloyd McKenzie (Oct 21 2019 at 20:19):
[lb_av] is not exactly human-friendly.
Paul Lynch (Oct 21 2019 at 20:23):
I was referring to the units by their codes. questionnaire-unit takes a coding, and so comes with a human-friendly "display" field which in that case should say "pound".
Lloyd McKenzie (Oct 21 2019 at 20:28):
Sometimes systems will have an element they want rendered that says the unit and won't bother specifying questionnaire-unit because they're not thinking about population/extraction
Paul Lynch (Oct 21 2019 at 20:31):
So, right now, they could either do that by adding an item that has the unit option of questionnaire-itemControl , OR they could specify it with a questionnaire-unit on the item that has that unit. I don't see that it saves them effort to use questionnaire-itemControl over questionnaire-unit.
Lloyd McKenzie (Oct 21 2019 at 23:17):
Questionnaire-itemControl is used with a text item that's expected to be rendered to the user. questionnaire-unit is something intended to be used by translation software - there's no expectation it would be rendered (and generally it shouldn't be as it could be redundant with text in the question).
Paul Lynch (Oct 22 2019 at 15:12):
I guess I see that possible redundancy as less of an issue that the redundancy of specifying the same unit twice using two separate extensions (for display and computation). Someone might change the unit in one place and forget to change the other.
Lloyd McKenzie (Oct 22 2019 at 15:24):
True, though there are a wide range of other ways to create inconsistency.
Paul Lynch (Oct 23 2019 at 19:18):
I don't think that is a good reason to not remove this potential inconsistency. I also don't see how it hurts to show questionnaire-unit, even if the unit is already expressed in the question. You would have something like:
Enter weight in kilograms: ______ kg
... which seems fine. There is no problem with the user getting two reminders about the right unit to be using; it is a lot safer than assuming the question will have the unit included, or that the designer remembered to add a sub-item with itemControl unit.
Unless I hear some compelling reason to keep both, I will submit a tracker item to remove itemControl unit, and to add language to questionnaire-unit to note that it is now for display as well as computational purposes.
Lloyd McKenzie (Oct 24 2019 at 03:28):
The main reason is that the display name for a coded unit isn't necessarily what you want to display to the end user
Paul Lynch (Oct 24 2019 at 14:46):
Possibly not, but at least in UCUM, there are reasonable display strings (e.g. "pounds" for code "[lb_av]"). In such cases, there is no need to require the Questionnaire to specify the unit in two places. Perhaps itemControl unit could be kept for the cases where the Questionnaire designer wanted to override the unit's display string.
Paul Lynch (Nov 05 2019 at 20:09):
Last updated: Apr 12 2022 at 19:14 UTC