Skip to main content

Date

Question with a date answer (valueDate).

It uses the FHIR date data type, which accepts YYYY, YYYY-MM, or YYYY-MM-DD as inputs, e.g. 2018, 1973-06, or 1905-08-23.

Basic usage

Questionnaire-only

With Response

Advanced usage

Calculations

tip

The date and dateTime component has built in validation based on the FHIR date and dateTime data types respectively https://hl7.org/fhir/R4/datatypes.html#date.

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 date value.
calculatedExpressionhttp://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression
- CalculatedExpression should evaluate to a date string of YYYY, YYYY-MM or YYYY-MM-DD.
enableWhenExpressionhttp://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
rendering-stylehttp://hl7.org/fhir/extensions/StructureDefinition-rendering-style.html
rendering-markdownhttp://hl7.org/fhir/extensions/StructureDefinition-rendering-markdown.html
rendering-xhtmlhttp://hl7.org/fhir/StructureDefinition/rendering-xhtml
hiddenhttp://hl7.org/fhir/StructureDefinition/questionnaire-hidden
entryFormathttp://hl7.org/fhir/StructureDefinition/entryFormat
requireditem.required
repeatsitem.repeats
readOnlyitem.readOnly
minValuehttp://hl7.org/fhir/StructureDefinition/minValue
maxValuehttp://hl7.org/fhir/StructureDefinition/maxValue
initialitem.initial
enableWhenitem.enableWhen
enableBehavioritem.enableBehavior
textitem.text