This page is part of the FHIR Specification (v1.2.0: STU 3 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/StructureDefinition/questionnaire-enableWhen
Status: draft. Extension maintained by: HL7
If present, indicates that the item containing the extension should only be enabled (displayed/allow answers to be captured) when the specified condition is true.
Context of Use: Use on element: Questionnaire.item, Questionnaire.item.item
usage info: insert a list of places where this extension is used
Summary
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
extension | 0..* | Extension | URL = http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen Only allow data when:: If present, indicates that the item containing the extension should only be enabled (displayed/allow answers to be captured) when the specified condition is true. Use on element: Questionnaire.item, Questionnaire.item.item | |
question | 1..1 | string | The linkId for the question whose answer (or lack of answer) governs whether the question is enabled. | |
answered | 0..1 | boolean | If present, allows the assertion to control whether the item is enabled when the question is answered or is unanswered. | |
answer | 0..1 | boolean, integer, decimal, base64Binary, instant, string, uri, date, dateTime, time, code, oid, id, unsignedInt, positiveInt, markdown, Annotation, Attachment, Identifier, CodeableConcept, Coding, Quantity, Range, Period, Ratio, SampledData, Signature, HumanName, Address, ContactPoint, Timing, Reference(Reference), Meta | If present, then the specified question must match the specified answer for all components present in the enableWhen.answer. | |
Documentation for this format |
Fulle Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
extension | 0..* | Extension | URL = http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen Only allow data when:: If present, indicates that the item containing the extension should only be enabled (displayed/allow answers to be captured) when the specified condition is true. Use on element: Questionnaire.item, Questionnaire.item.item | |
extension | 1..1 | Extension | Question that must be answered | |
extension | 0..0 | |||
url | 1..1 | uri | "question" | |
valueString | 1..1 | string | Value of extension | |
extension | 0..1 | Extension | when answered or not | |
extension | 0..0 | |||
url | 1..1 | uri | "answered" | |
valueBoolean | 1..1 | boolean | Value of extension | |
extension | 0..1 | Extension | Value question must have | |
extension | 0..0 | |||
url | 1..1 | uri | "answer" | |
value[x] | 1..1 | boolean, integer, decimal, base64Binary, instant, string, uri, date, dateTime, time, code, oid, id, unsignedInt, positiveInt, markdown, Annotation, Attachment, Identifier, CodeableConcept, Coding, Quantity, Range, Period, Ratio, SampledData, Signature, HumanName, Address, ContactPoint, Timing, Reference(Reference), Meta | Value of extension | |
url | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen" | |
value[x] | 0..0 | |||
Documentation for this format |
XML Template
<!-- Only allow data when: --> <extension xmlns="http://hl7.org/fhir" url="http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen" > <-- extension sliced by url in the specified orderOpen--> <extension url="question"> 1..1 Extension <!-- 1..1 Question that must be answered --> <valueString value="[string]"/><!-- 1..1 Value of extension --> </extension> <extension url="answered"> 0..1 Extension <!-- 0..1 when answered or not --> <valueBoolean value="[boolean]"/><!-- 1..1 Value of extension --> </extension> <extension url="answer"> 0..1 Extension <!-- 0..1 Value question must have --> <value[x]><!-- 1..1 boolean|integer|decimal|base64Binary| instant|string|uri|date|dateTime|time|code|oid|id|unsignedInt|positiveInt| markdown|Annotation|Attachment|Identifier|CodeableConcept|Coding|Quantity| Range|Period|Ratio|SampledData|Signature|HumanName|Address|ContactPoint| Timing|Reference|Meta Value of extension --></value[x]> </extension> </extension>
JSON Template
{ // Only allow data when: "extension" : [ // sliced by url in the specified orderOpen { // Question that must be answered // R! // from Element: extension "url" : "question", // R! "valueString" : "<string>" // R! Value of extension }, { // when answered or not // // from Element: extension "url" : "answered", // R! "valueBoolean" : <boolean> // R! Value of extension }, { // Value question must have // // from Element: extension "url" : "answer", // R! // value[x]: Value of extension. One of these 33: "valueBoolean" : <boolean> // R! Value of extension "valueInteger" : <integer>, // R! Value of extension "valueDecimal" : <decimal>, // R! Value of extension "valueBase64Binary" : "<base64Binary>", // R! Value of extension "valueInstant" : "<instant>", // R! Value of extension "valueString" : "<string>", // R! Value of extension "valueUri" : "<uri>", // R! Value of extension "valueDate" : "<date>", // R! Value of extension "valueDateTime" : "<dateTime>", // R! Value of extension "valueTime" : "<time>", // R! Value of extension "valueCode" : "<code>", // R! Value of extension "valueOid" : "<oid>", // R! Value of extension "valueId" : "<id>", // R! Value of extension "valueUnsignedInt" : "<unsignedInt>", // R! Value of extension "valuePositiveInt" : "<positiveInt>", // R! Value of extension "valueMarkdown" : "<markdown>", // R! Value of extension "valueAnnotation" : { Annotation }, // R! Value of extension "valueAttachment" : { Attachment }, // R! Value of extension "valueIdentifier" : { Identifier }, // R! Value of extension "valueCodeableConcept" : { CodeableConcept }, // R! Value of extension "valueCoding" : { Coding }, // R! Value of extension "valueQuantity" : { Quantity }, // R! Value of extension "valueRange" : { Range }, // R! Value of extension "valuePeriod" : { Period }, // R! Value of extension "valueRatio" : { Ratio }, // R! Value of extension "valueSampledData" : { SampledData }, // R! Value of extension "valueSignature" : { Signature }, // R! Value of extension "valueHumanName" : { HumanName }, // R! Value of extension "valueAddress" : { Address }, // R! Value of extension "valueContactPoint" : { ContactPoint }, // R! Value of extension "valueTiming" : { Timing }, // R! Value of extension "valueReference" : { Reference }, // R! Value of extension "valueMeta" : { Meta }, // R! Value of extension } ], "url" : "http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen", // R! // value[x]: Value of extension. One of these 33: }
Summary
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
extension | 0..* | Extension | URL = http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen Only allow data when:: If present, indicates that the item containing the extension should only be enabled (displayed/allow answers to be captured) when the specified condition is true. Use on element: Questionnaire.item, Questionnaire.item.item | |
question | 1..1 | string | The linkId for the question whose answer (or lack of answer) governs whether the question is enabled. | |
answered | 0..1 | boolean | If present, allows the assertion to control whether the item is enabled when the question is answered or is unanswered. | |
answer | 0..1 | boolean, integer, decimal, base64Binary, instant, string, uri, date, dateTime, time, code, oid, id, unsignedInt, positiveInt, markdown, Annotation, Attachment, Identifier, CodeableConcept, Coding, Quantity, Range, Period, Ratio, SampledData, Signature, HumanName, Address, ContactPoint, Timing, Reference(Reference), Meta | If present, then the specified question must match the specified answer for all components present in the enableWhen.answer. | |
Documentation for this format |
Full Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
extension | 0..* | Extension | URL = http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen Only allow data when:: If present, indicates that the item containing the extension should only be enabled (displayed/allow answers to be captured) when the specified condition is true. Use on element: Questionnaire.item, Questionnaire.item.item | |
extension | 1..1 | Extension | Question that must be answered | |
extension | 0..0 | |||
url | 1..1 | uri | "question" | |
valueString | 1..1 | string | Value of extension | |
extension | 0..1 | Extension | when answered or not | |
extension | 0..0 | |||
url | 1..1 | uri | "answered" | |
valueBoolean | 1..1 | boolean | Value of extension | |
extension | 0..1 | Extension | Value question must have | |
extension | 0..0 | |||
url | 1..1 | uri | "answer" | |
value[x] | 1..1 | boolean, integer, decimal, base64Binary, instant, string, uri, date, dateTime, time, code, oid, id, unsignedInt, positiveInt, markdown, Annotation, Attachment, Identifier, CodeableConcept, Coding, Quantity, Range, Period, Ratio, SampledData, Signature, HumanName, Address, ContactPoint, Timing, Reference(Reference), Meta | Value of extension | |
url | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen" | |
value[x] | 0..0 | |||
Documentation for this format |
XML Template
<!-- Only allow data when: --> <extension xmlns="http://hl7.org/fhir" url="http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen" > <-- extension sliced by url in the specified orderOpen--> <extension url="question"> 1..1 Extension <!-- 1..1 Question that must be answered --> <valueString value="[string]"/><!-- 1..1 Value of extension --> </extension> <extension url="answered"> 0..1 Extension <!-- 0..1 when answered or not --> <valueBoolean value="[boolean]"/><!-- 1..1 Value of extension --> </extension> <extension url="answer"> 0..1 Extension <!-- 0..1 Value question must have --> <value[x]><!-- 1..1 boolean|integer|decimal|base64Binary| instant|string|uri|date|dateTime|time|code|oid|id|unsignedInt|positiveInt| markdown|Annotation|Attachment|Identifier|CodeableConcept|Coding|Quantity| Range|Period|Ratio|SampledData|Signature|HumanName|Address|ContactPoint| Timing|Reference|Meta Value of extension --></value[x]> </extension> </extension>
JSON Template
{ // Only allow data when: "extension" : [ // sliced by url in the specified orderOpen { // Question that must be answered // R! // from Element: extension "url" : "question", // R! "valueString" : "<string>" // R! Value of extension }, { // when answered or not // // from Element: extension "url" : "answered", // R! "valueBoolean" : <boolean> // R! Value of extension }, { // Value question must have // // from Element: extension "url" : "answer", // R! // value[x]: Value of extension. One of these 33: "valueBoolean" : <boolean> // R! Value of extension "valueInteger" : <integer>, // R! Value of extension "valueDecimal" : <decimal>, // R! Value of extension "valueBase64Binary" : "<base64Binary>", // R! Value of extension "valueInstant" : "<instant>", // R! Value of extension "valueString" : "<string>", // R! Value of extension "valueUri" : "<uri>", // R! Value of extension "valueDate" : "<date>", // R! Value of extension "valueDateTime" : "<dateTime>", // R! Value of extension "valueTime" : "<time>", // R! Value of extension "valueCode" : "<code>", // R! Value of extension "valueOid" : "<oid>", // R! Value of extension "valueId" : "<id>", // R! Value of extension "valueUnsignedInt" : "<unsignedInt>", // R! Value of extension "valuePositiveInt" : "<positiveInt>", // R! Value of extension "valueMarkdown" : "<markdown>", // R! Value of extension "valueAnnotation" : { Annotation }, // R! Value of extension "valueAttachment" : { Attachment }, // R! Value of extension "valueIdentifier" : { Identifier }, // R! Value of extension "valueCodeableConcept" : { CodeableConcept }, // R! Value of extension "valueCoding" : { Coding }, // R! Value of extension "valueQuantity" : { Quantity }, // R! Value of extension "valueRange" : { Range }, // R! Value of extension "valuePeriod" : { Period }, // R! Value of extension "valueRatio" : { Ratio }, // R! Value of extension "valueSampledData" : { SampledData }, // R! Value of extension "valueSignature" : { Signature }, // R! Value of extension "valueHumanName" : { HumanName }, // R! Value of extension "valueAddress" : { Address }, // R! Value of extension "valueContactPoint" : { ContactPoint }, // R! Value of extension "valueTiming" : { Timing }, // R! Value of extension "valueReference" : { Reference }, // R! Value of extension "valueMeta" : { Meta }, // R! Value of extension } ], "url" : "http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen", // R! // value[x]: Value of extension. One of these 33: }
Constraints