This page is part of the FHIR Specification (v0.0.82: DSTU 1). 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/StructureDefinition/questionnaire-enableWhen
Status: draft. Extension maintained by: HL7
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.
Context of Use: Use on element: Questionnaire.group, Questionnaire.group.group, Questionnaire.group.question
usage info: insert a list of places where this extension is used
Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
extension | Extension | URL = http://hl7.org/fhir/StructureDefinition/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 | ||
extension | 1..1 | Extension | Question that must be answered | |
extension | 0..* | Extension | Additional Content defined by implementations | |
url | 1..1 | uri | identifies the meaning of the extension Fixed Value: question | |
valueString | 0..1 | string | Value of extension | |
extension | 0..1 | Extension | Value question must have | |
extension | 0..* | Extension | Additional Content defined by implementations | |
url | 1..1 | uri | identifies the meaning of the extension Fixed Value: answer | |
value[x] | 0..1 | * | Value of extension | |
url | 1..1 | uri | identifies the meaning of the extension Fixed Value: http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen | |
value[x] | 0..0 | * |
XML Template
<!-- Only allow data when: --> <extension xmlns="http://hl7.org/fhir" url="http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen" > <!-- from Element: extension --> <valueString value="[string]"/><!-- 0..1 Value of extension <value* ><!-- 0..1 * Value of extension <value* ><!-- 0..0 * Value of extension </extension>
JSON Template
{ // Only allow data when: // from Element: extension "url" : "question", // R! "valueString" : "<string>", //Value of extension "url" : "answer", // R! "value*" : { * }, //Value of extension "url" : "http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen", // R! "value*" : { * } //Value of extension }
Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
extension | Extension | URL = http://hl7.org/fhir/StructureDefinition/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 | ||
extension | 1..1 | Extension | Question that must be answered | |
extension | 0..* | Extension | Additional Content defined by implementations | |
url | 1..1 | uri | identifies the meaning of the extension Fixed Value: question | |
valueString | 0..1 | string | Value of extension | |
extension | 0..1 | Extension | Value question must have | |
extension | 0..* | Extension | Additional Content defined by implementations | |
url | 1..1 | uri | identifies the meaning of the extension Fixed Value: answer | |
value[x] | 0..1 | * | Value of extension | |
url | 1..1 | uri | identifies the meaning of the extension Fixed Value: http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen | |
value[x] | 0..0 | * |
XML Template
<!-- Only allow data when: --> <extension xmlns="http://hl7.org/fhir" url="http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen" > <!-- from Element: extension --> <valueString value="[string]"/><!-- 0..1 Value of extension <value* ><!-- 0..1 * Value of extension <value* ><!-- 0..0 * Value of extension </extension>