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
URL for this extension:
http://hl7.org/fhir/ExtensionDefinition/questionnaire-enableWhen
Status: draft
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.
HL7usage info: todo
Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
extension | Extension | URL = http://hl7.org/fhir/ExtensionDefinition/questionnaire-enableWhen Only allow data when:: 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. Use on element: Questionnaire.group, Questionnaire.group.group, Questionnaire.group.question | ||
question | 1..1 | string | Question that must be answered | |
answer | 0..1 | * | Value question must have |
XML Template
<!-- Only allow data when: --> <extension xmlns="http://hl7.org/fhir" url="http://hl7.org/fhir/ExtensionDefinition/questionnaire-enableWhen" > <!-- from Element: extension --> <extension url="question"> <!-- 1..1 Question that must be answered --!> <valueString value="[string]"/> </extension> <!-- from Element: extension --> <extension url="answer"> <!-- 0..1 Value question must have --!> <value*> <!-- * --!> /<value*> </extension> </extension>
Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
extension | Extension | URL = http://hl7.org/fhir/ExtensionDefinition/questionnaire-enableWhen Only allow data when:: 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. Use on element: Questionnaire.group, Questionnaire.group.group, Questionnaire.group.question | ||
question | 1..1 | string | Question that must be answered | |
answer | 0..1 | * | Value question must have |
XML Template
<!-- Only allow data when: --> <extension xmlns="http://hl7.org/fhir" url="http://hl7.org/fhir/ExtensionDefinition/questionnaire-enableWhen" > <!-- from Element: extension --> <extension url="question"> <!-- 1..1 Question that must be answered --!> <valueString value="[string]"/> </extension> <!-- from Element: extension --> <extension url="answer"> <!-- 0..1 Value question must have --!> <value*> <!-- * --!> /<value*> </extension> </extension>