This page is part of the FHIR Specification (v0.4.0: DSTU 2 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions
Only allow data when:
<ExtensionDefinition xmlns="http://hl7.org/fhir"> <id value="questionnaire-enableWhen"/> <url value="http://hl7.org/fhir/ExtensionDefinition/questionnaire-enableWhen"/> <name value="Only allow data when:"/> <publisher value="HL7"/> <contact> <telecom> <system value="url"/> <value value="http://www.hl7.org"/> </telecom> </contact> <description value="If present, indicates that the group or question containing the extension should only be enabled (allow an answer to be present and, in most circumstances, even be visible to the user) when the specified condition is true."/> <status value="draft"/> <date value="2013-07-04"/> <contextType value="resource"/> <context value="Questionnaire.group"/> <context value="Questionnaire.group.group"/> <context value="Questionnaire.group.question"/> <element> <path value="Extension"/> <short value="Only allow data when:"/> <definition value="If present, indicates that the group or question containing the extension should only be enabled (allow an answer to be present and, in most circumstances, even be visible to the user) when the specified condition is true."/> <comments value="Allows questionnaires to adapt based on answers to prior questions. E.g. If physical gender is specified as a male, no need to capture pregnancy history."/> <min value="0"/> <max value="*"/> </element> <element> <path value="Extension.question"/> <short value="Question that must be answered"/> <definition value="The linkId for the question whose answer must be present in order for the "enable" to be triggered."/> <min value="1"/> <max value="1"/> <type> <code value="string"/> </type> </element> <element> <path value="Extension.answer"/> <short value="Value question must have"/> <definition value="If present, then the specified question must match the specified answer for all components present in the enableWhen.answer."/> <min value="0"/> <max value="1"/> <type> <code value="*"/> </type> </element> </ExtensionDefinition>
Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.