| Left: | Enable when expression (http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression) |
| Right: | Enable when expression (http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression) |
| Error | StructureDefinition.version | Values for version differ: '3.0.0' vs '4.0.0' |
| Information | StructureDefinition.status | Values for status differ: 'draft' vs 'active' |
| Information | StructureDefinition.date | Values for date differ: '2022-03-08T18:33:14+00:00' vs '2026-03-24T04:18:20+00:00' |
| Information | StructureDefinition.publisher | Values for publisher differ: 'HL7 International - FHIR Infrastructure Work Group' vs 'HL7 International / FHIR Infrastructure' |
| Information | StructureDefinition.comment | Values for comment differ: 'This is only permitted when the containing item does NOT have any enableWhen elements.' vs 'This is only permitted when the containing item does NOT have any enableWhen elements. If the expression involves comparisons between elements that have different precisions but are otherwise equal, FHIRPath will resolve the expression to an empty set, which will in turn evaluate to false (meaning the item won't be enabled). If this is not the desired behavior, the author should add a `.allTrue()` to the end of the expression, which will result in an indeterminate outcome because of precision differences being handled as 'true' and the item being enabled. Questionnaires SHOULD be designed to take into account challenges around varying precision to minimize non-deterministic situations by setting constraints around expected precision, etc. If the expression evaluates to something other than a boolean true or false, the Form Filler SHOULD still display the form, and if it does so, SHOULD treat the element as 'enabled' and display a warning to the user that the questionnaire logic was faulty and it's possible that the item shouldn't be enabled.' |
| Information | StructureDefinition.short | Values for short differ: 'Additional content defined by implementations' vs 'Extension' |
| Information | StructureDefinition.definition | Values for definition differ: 'May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.' vs 'An Extension' |
| Information | Extension.extension | Element maximum cardinalities differ: '2147483647' vs '0' |
| Name | Value | Comments | |
|---|---|---|---|
abstract | false | ||
baseDefinition | http://hl7.org/fhir/StructureDefinition/Extension | ||
copyright | |||
date | 2022-03-08T18:33:14+00:00 | 2026-03-24T04:18:20+00:00 |
|
description | An expression that returns a boolean value for whether to enable the item. If the expression does not resolve to a boolean, it is considered an error in the design of the Questionnaire. Form renderer behavior is undefined. Some tools may attempt to force the value to be a boolean (e.g. is it a non-empty collection, non-null, non-zero - if so, then true). Systems SHOULD present a warning to the user if a non-boolean valued expression result does not trigger an all-out error. | An expression that returns a boolean value for whether to enable the item. If the expression resolves to an empty set, it is interpretted as false. Otherwise, if the expression does not resolve to a boolean, it is considered an error in the design of the Questionnaire. Form renderer behavior is undefined. Systems SHOULD present a warning to the user if a non-boolean valued expression result does not trigger an all-out error. |
|
experimental | false | ||
fhirVersion | 4.0.1 | ||
jurisdiction | |||
![]() jurisdiction[0] | http://unstats.un.org/unsd/methods/m49/m49.htm#001 | ||
kind | complex-type | ||
name | EnableWhenExpressionExtension | ||
publisher | HL7 International - FHIR Infrastructure Work Group | HL7 International / FHIR Infrastructure |
|
purpose | |||
status | draft | active |
|
title | Enable when expression | ||
type | Extension | ||
url | http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression | ||
version | 3.0.0 | 4.0.0 |
|
| Name | L Flags | L Card. | L Type | L Description & Constraints | R Flags | R Card. | R Type | R Description & Constraints | Comments![]() |
|---|---|---|---|---|---|---|---|---|---|
![]() | 0..1 | Extension | Expression for when to enable the item | 0..1 | Extension | Expression for when to enable the item | |||
![]() ![]() | 0..1 | string | Unique id for inter-element referencing | 0..1 | string | Unique id for inter-element referencing | |||
![]() ![]() | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | 0..0 | Extension Slice: Unordered, Open by value:url |
| |||
![]() ![]() | 1..1 | uri | "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression" | 1..1 | uri | "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression" | |||
![]() ![]() | C | 0..1 | Expression | Value of extension | C | 0..1 | Expression | Value of extension Constraints: sdc-inv1 | |
Documentation for this format | |||||||||