{"abstract":false,"baseDefinition":"http://hl7.org/fhir/StructureDefinition/Extension","contact":[{"telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/fiwg"}]}],"context":[{"expression":"Questionnaire","type":"element"},{"expression":"Questionnaire.item","type":"element"},{"expression":"Questionnaire.item.item","type":"element"},{"expression":"PlanDefinition","type":"element"},{"expression":"PlanDefinition.action","type":"element"},{"expression":"PlanDefinition.action.action","type":"element"},{"expression":"RequestOrchestration","type":"element"},{"expression":"RequestOrchestration.action","type":"element"},{"expression":"RequestOrchestration.action.action","type":"element"},{"expression":"ActivityDefinition","type":"element"},{"expression":"Measure","type":"element"},{"expression":"Measure.group","type":"element"},{"expression":"Measure.group.population","type":"element"}],"date":"2013-12-05","derivation":"constraint","description":"Variable specifying a logic to generate a variable for use in subsequent logic.  The name of the variable will be added to FHIRPath's context when processing descendants of the element that contains this extension as well as extensions within the same element.","differential":{"element":[{"comment":"Ordering of variable extension declarations is significant as variables declared in one repetition of this extension might be used in subsequent extension repetitions\n\nFor questionnaires, see additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#variable).","constraint":[{"expression":"value.name.exists()","human":"Variable expressions must have a name","key":"var-1","severity":"error"}],"definition":"Variable specifying a logic to generate a variable for use in subsequent logic.  The name of the variable will be added to FHIRPath's context when processing descendants of the element that contains this extension as well as extensions within the same element.","id":"Extension","max":"*","min":0,"path":"Extension","short":"Variable for processing"},{"id":"Extension.extension","max":"0","path":"Extension.extension"},{"fixedUri":"http://hl7.org/fhir/StructureDefinition/variable","id":"Extension.url","path":"Extension.url"},{"id":"Extension.value[x]","min":1,"path":"Extension.value[x]","type":[{"code":"Expression"}]}]},"experimental":false,"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-wg","valueCode":"fhir"},{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm","valueInteger":1},{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status","valueCode":"trial-use"}],"fhirVersion":"5.0.0-snapshot3","id":"variable","kind":"complex-type","mapping":[{"identity":"rim","name":"RIM Mapping","uri":"http://hl7.org/v3"}],"name":"Variable","publisher":"Health Level Seven International (FHIR Infrastructure)","resourceType":"StructureDefinition","snapshot":{"element":[{"base":{"max":"*","min":0,"path":"Extension"},"comment":"Ordering of variable extension declarations is significant as variables declared in one repetition of this extension might be used in subsequent extension repetitions\n\nFor questionnaires, see additional guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.html#variable).","constraint":[{"expression":"hasValue() or (children().count() > id.count())","human":"All FHIR elements must have a @value or children","key":"ele-1","severity":"error","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"expression":"extension.exists() != value.exists()","human":"Must have either extensions or value[x], not both","key":"ext-1","severity":"error","source":"http://hl7.org/fhir/StructureDefinition/Extension"},{"expression":"value.name.exists()","human":"Variable expressions must have a name","key":"var-1","severity":"error"}],"definition":"Variable specifying a logic to generate a variable for use in subsequent logic.  The name of the variable will be added to FHIRPath's context when processing descendants of the element that contains this extension as well as extensions within the same element.","id":"Extension","isModifier":false,"max":"*","min":0,"path":"Extension","short":"Variable for processing"},{"base":{"max":"1","min":0,"path":"Element.id"},"definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","id":"Extension.id","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}],"max":"1","min":0,"path":"Extension.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","type":[{"code":"http://hl7.org/fhirpath/System.String","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"id"}]}]},{"base":{"max":"*","min":0,"path":"Element.extension"},"constraint":[{"expression":"hasValue() or (children().count() > id.count())","human":"All FHIR elements must have a @value or children","key":"ele-1","severity":"error","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"expression":"extension.exists() != value.exists()","human":"Must have either extensions or value[x], not both","key":"ext-1","severity":"error","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"definition":"An Extension","id":"Extension.extension","isModifier":false,"isSummary":false,"max":"0","min":0,"path":"Extension.extension","short":"Extension","slicing":{"description":"Extensions are always sliced by (at least) url","discriminator":[{"path":"url","type":"value"}],"rules":"open"},"type":[{"code":"Extension"}]},{"base":{"max":"1","min":1,"path":"Extension.url"},"comment":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.","definition":"Source of the definition for the extension code - a logical name or a URL.","fixedUri":"http://hl7.org/fhir/StructureDefinition/variable","id":"Extension.url","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}],"max":"1","min":1,"path":"Extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","type":[{"code":"http://hl7.org/fhirpath/System.String","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"uri"}]}]},{"base":{"max":"1","min":0,"path":"Extension.value[x]"},"constraint":[{"expression":"hasValue() or (children().count() > id.count())","human":"All FHIR elements must have a @value or children","key":"ele-1","severity":"error","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"definition":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).","id":"Extension.value[x]","isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}],"max":"1","min":1,"path":"Extension.value[x]","short":"Value of extension","type":[{"code":"Expression"}]}]},"status":"draft","title":"Variable","type":"Extension","url":"http://hl7.org/fhir/StructureDefinition/variable","version":"5.0.0-snapshot3"}