Stream: implementers
Topic: QuantityType
Awais Akhtar (Feb 02 2017 at 12:15):
In Questionnaire Item of type QuantityType (http://build.fhir.org/codesystem-item-type.html#item-type-quantity) where does Quantity itself goes in question?
Lloyd McKenzie (Feb 02 2017 at 19:07):
@Awais Akhtar As per http://wiki.hl7.org/index.php?title=FHIR_Rules_for_asking_questions, questions should only be raised in one place at a time. I've deleted your question on the forum. The Questionnaire doesn't include the answer, it just defines the question. The answers to a Questionnaire are submitted using QuestionnaireResponse. There you'd send a Quantity in QuestionnaireResponse.item.answer.valueQuantity
Awais Akhtar (Feb 03 2017 at 01:14):
@Lloyd McKenzie Sorry about posting it twice. But what about question in questionnaire like: how much vitamins you take daily(mg or g). Does Questionnaire Item contains Quantity where we can define units? or there is other way?
thanks for response :)
Brian Postlethwaite (Feb 03 2017 at 02:06):
I think this extension is what you are looking for
http://build.fhir.org/extension-questionnaire-unit.html
You select the Item.type to be quantity and then include this extension to indicate which units should be applied (you may be able to select convertible units of that type - as in if a distance measurement might request m
but you could provide mm
, but not kg
)
Florian Schrinner (Feb 06 2017 at 12:53):
You really need an extension to describe a Question with the type quantity? Is it not possible to use the code element of item?
Brian Postlethwaite (Feb 07 2017 at 08:03):
The extension is not to define that its a quantity type, its to select he unit system for the quantity type item
Florian Schrinner (Feb 09 2017 at 10:54):
ok, let me try to describe my question a little bit more detailed. Let's say we define a Question in STU 3 Candidate Version. In Item we set type->quantity. You suggested to use the extension to select the unit for the quantity. My Question was if it is really necessary to use an extension. I mean, the type quantity is in the standard and there should be a standardised way to define the settings for a quantity. And I suggested to use the concept element of the item or in in the Current Build the code element to do this. But I see why this is not the best idea. Ok, the unit extension is in the core-extensions of questionnaire so I guess it is the best way at the moment, but maybe it should later go into the Questionnaire Structue definition. I mean this is a use case you need very often (weight, height, age, duration)
Lloyd McKenzie (Feb 09 2017 at 14:53):
It's always a question of "how common do we think support for this is in implementer systems". It's an extension because right now we don't think 80%+ of systems that handle questionnaires formally handle defining the allowed units for a Quantity. (Actually, it's doubtful that 80% of them support Quantity either, but making the use of that type an extension would be particularly painful, so we include it in core.)
Awais Akhtar (Feb 10 2017 at 00:00):
I wonder when we can use QuantityType if there is no quantity in there. I mean we can then just use unit extension with Integer, decimal or string type but will be missing comparator.
Lloyd McKenzie (Feb 10 2017 at 01:09):
If you want to fix your unit, that's the best choice. Quantity is really for when you want to allow the user to specify the unit.
Last updated: Apr 12 2022 at 19:14 UTC