| URL | http://hl7.org/fhir/3.0/StructureDefinition/extension-Questionnaire.item.enableWhen |
| Version | |
| Status | active |
| Description | Cross-Version Extension for Questionnaire.item.enableWhen. Valid in versions R2 This is a valid cross-version extension because it's counted as a new element |
Context of Use
This extension may be used in the following contexts:
| Name | Flags | Card. | Type | Description & Constraints![]() |
|---|---|---|---|---|
![]() | ?! | 0..* | Extension | Only allow data when |
![]() ![]() | ?gen-e1? [CanonicalType[http://hl7.org/fhir/3.0/StructureDefinition/extension-Questionnaire.item.enableWhen.answer[x]]] | URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Questionnaire.item.enableWhen.answer[x] | ||
![]() ![]() | ?gen-e1? [CanonicalType[http://hl7.org/fhir/3.0/StructureDefinition/extension-Questionnaire.item.enableWhen.hasAnswer]] | URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Questionnaire.item.enableWhen.hasAnswer | ||
![]() ![]() | ?gen-e1? [CanonicalType[http://hl7.org/fhir/3.0/StructureDefinition/extension-Questionnaire.item.enableWhen.question]] | URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-Questionnaire.item.enableWhen.question | ||
![]() ![]() | ?gen-e1? [CanonicalType[http://hl7.org/fhir/4.0/StructureDefinition/extension-Questionnaire.item.enableWhen.operator]] | URL: http://hl7.org/fhir/4.0/StructureDefinition/extension-Questionnaire.item.enableWhen.operator | ||
![]() ![]() | 1.. | |||
![]() ![]() | ..0 | |||
![]() ![]() | "http://hl7.org/fhir/3.0/StructureDefinition/extension-Questionnaire.item.enableWhen" | |||
Documentation for this format | ||||
{
"resourceType" : "StructureDefinition",
"id" : "xv-r3-que.ite.enableWhen",
"url" : "http://hl7.org/fhir/3.0/StructureDefinition/extension-Questionnaire.item.enableWhen",
"name" : "XVerExtensionQuestionnaire.item.enableWhenR3",
"title" : "Cross-Version Extension for Questionnaire.item.enableWhen in R3",
"status" : "active",
"experimental" : false,
"publisher" : "Health Level Seven International (FHIR Infrastructure)",
"contact" : [{
"telecom" : [{
"system" : "url",
"value" : "http://hl7.org/fhir"
}]
},
{
"telecom" : [{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/fiwg/index.cfm"
}]
}],
"description" : "Cross-Version Extension for Questionnaire.item.enableWhen. Valid in versions R2\r\n\r\nThis is a valid cross-version extension because it's counted as a new element",
"jurisdiction" : [{
"coding" : [{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}]
}],
"fhirVersion" : "5.0.0",
"kind" : "complex-type",
"abstract" : false,
"context" : [{
"extension" : [{
"extension" : [{
"url" : "startFhirVersion",
"valueCode" : "1.0"
},
{
"url" : "endFhirVersion",
"valueCode" : "1.0"
}],
"url" : "http://hl7.org/fhir/StructureDefinition/version-specific-use"
}],
"type" : "element",
"expression" : "Questionnaire.group"
},
{
"type" : "extension",
"expression" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-Questionnaire.group"
},
{
"extension" : [{
"extension" : [{
"url" : "startFhirVersion",
"valueCode" : "1.0"
},
{
"url" : "endFhirVersion",
"valueCode" : "1.0"
}],
"url" : "http://hl7.org/fhir/StructureDefinition/version-specific-use"
}],
"type" : "element",
"expression" : "Questionnaire.group.question"
},
{
"type" : "extension",
"expression" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-Questionnaire.group.question"
}],
"type" : "Extension",
"baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Extension",
"derivation" : "constraint",
"differential" : {
"element" : [{
"path" : "Extension",
"short" : "Only allow data when",
"definition" : "A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true.",
"comment" : "If multiple repetitions of this extension are present, the item should be enabled when the condition for *any* of the repetitions is true. I.e. treat \"enableWhen\"s as being joined by an \"or\" clause.\n\nThis element is a modifier because if enableWhen is present for an item, \"required\" is ignored unless one of the enableWhen conditions is met.",
"requirements" : "Allows questionnaires to adapt based on answers to other questions. E.g. If physical gender is specified as a male, no need to capture pregnancy history. Also allows conditional display of instructions or groups of questions.",
"min" : 0,
"max" : "*",
"isModifier" : true,
"isModifierReason" : "No Modifier Reason provideed in previous versions of FHIR",
"mapping" : [{
"identity" : "rim",
"map" : "N/A - MIF rather than RIM level"
}]
},
{
"path" : "Extension.extension",
"sliceName" : "answer[x]R3",
"type" : [{
"code" : "Extension",
"profile" : ["http://hl7.org/fhir/3.0/StructureDefinition/extension-Questionnaire.item.enableWhen.answer[x]"]
}]
},
{
"path" : "Extension.extension",
"sliceName" : "hasAnswerR3",
"type" : [{
"code" : "Extension",
"profile" : ["http://hl7.org/fhir/3.0/StructureDefinition/extension-Questionnaire.item.enableWhen.hasAnswer"]
}]
},
{
"path" : "Extension.extension",
"sliceName" : "questionR3",
"type" : [{
"code" : "Extension",
"profile" : ["http://hl7.org/fhir/3.0/StructureDefinition/extension-Questionnaire.item.enableWhen.question"]
}]
},
{
"path" : "Extension.extension",
"sliceName" : "operatorR4",
"type" : [{
"code" : "Extension",
"profile" : ["http://hl7.org/fhir/4.0/StructureDefinition/extension-Questionnaire.item.enableWhen.operator"]
}]
},
{
"path" : "Extension.extension",
"min" : 1
},
{
"path" : "Extension.value[x]",
"max" : "0"
},
{
"path" : "Extension.url",
"fixedUri" : "http://hl7.org/fhir/3.0/StructureDefinition/extension-Questionnaire.item.enableWhen"
}]
}
}