Skip to main content

Quantity

Question with a combination of a numeric value and unit, potentially with a comparator (< , >, etc.) as an answer. (valueQuantity).

There is an extension "http://hl7.org/fhir/StructureDefinition/questionnaire-unit" that can be used to define what unit should be captured (or the unit that has a ucum conversion from the provided unit).

You can use the UnitOption extension to specify a list of options for the unit of a quantity item.

warning

This component is not thoroughly tested yet. Please use it with caution.

Basic usage

Questionnaire-only

With Response

Advanced usage

With Unit Options

Calculations

SDC Supported extensions

CodeUsage
variablehttp://hl7.org/fhir/StructureDefinition/variable
initialExpressionhttp://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression
- InitialExpression should evaluate to a integer or decimal value.
calculatedExpressionhttp://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression
- CalculatedExpression should evaluate to integer or decimal value.
enableWhenExpressionhttp://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
hiddenhttp://hl7.org/fhir/StructureDefinition/questionnaire-hidden
entryFormathttp://hl7.org/fhir/StructureDefinition/entryFormat
requireditem.required
repeatsitem.repeats
readOnlyitem.readOnly
maxLengthitem.maxLength
minLengthhttp://hl7.org/fhir/StructureDefinition/minLength
regexhttp://hl7.org/fhir/StructureDefinition/regex
minValuehttp://hl7.org/fhir/StructureDefinition/minValue
maxValuehttp://hl7.org/fhir/StructureDefinition/maxValue
maxDecimalPlaceshttp://hl7.org/fhir/StructureDefinition/maxDecimalPlaces
initialitem.initial
enableWhenitem.enableWhen
enableBehavioritem.enableBehavior
textitem.text
unitOptionhttp://hl7.org/fhir/R4/extension-questionnaire-unitoption.html