2nd DSTU Draft For Comment

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

Extension Only allow data when: - Definition

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.

HL7

usage info: todo

Extension Content

Structure

NameFlagsCard.TypeDescription & Constraintsdoco
.. extensionExtensionURL = 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..1stringQuestion that must be answered
... answer 0..1*Value question must have

XML Template

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

<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>

JSON Template

// extension added to existing objectdoco

  "http://hl7.org/fhir/ExtensionDefinition/questionnaire-enableWhen" : { // Only allow data when:
    "question" : ["<string>"], // R!Question that must be answered
    "answer" : [{ * }] //Value question must have
  }

Structure

NameFlagsCard.TypeDescription & Constraintsdoco
.. extensionExtensionURL = 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..1stringQuestion that must be answered
... answer 0..1*Value question must have

XML Template

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

<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>

JSON Template

to do