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

Extension Only allow data when: - Definition

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

Extension Content

Structure

NameFlagsCard.TypeDescription & Constraintsdoco
.. extensionExtensionURL = 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..1ExtensionQuestion that must be answered
.... extension 0..*ExtensionAdditional Content defined by implementations
.... url 1..1uriidentifies the meaning of the extension
Fixed Value: question
.... valueString 0..1stringValue of extension
... extension 0..1ExtensionValue question must have
.... extension 0..*ExtensionAdditional Content defined by implementations
.... url 1..1uriidentifies the meaning of the extension
Fixed Value: answer
.... value[x] 0..1*Value of extension
... url 1..1uriidentifies the meaning of the extension
Fixed Value: http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen
... value[x] 0..0*

XML Template

<!-- Only allow data when: -->doco

<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

NameFlagsCard.TypeDescription & Constraintsdoco
.. extensionExtensionURL = 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..1ExtensionQuestion that must be answered
.... extension 0..*ExtensionAdditional Content defined by implementations
.... url 1..1uriidentifies the meaning of the extension
Fixed Value: question
.... valueString 0..1stringValue of extension
... extension 0..1ExtensionValue question must have
.... extension 0..*ExtensionAdditional Content defined by implementations
.... url 1..1uriidentifies the meaning of the extension
Fixed Value: answer
.... value[x] 0..1*Value of extension
... url 1..1uriidentifies the meaning of the extension
Fixed Value: http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen
... value[x] 0..0*

XML Template

<!-- Only allow data when: -->doco

<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

to do