PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.xver-r4.r3@0.1.0
    http://hl7.org/fhir/4.0/StructureDefinition/extension-TriggerDefinition.condition
{
  "description": "R4: `TriggerDefinition.condition` (new:Expression)",
  "_filename": "StructureDefinition-ext-R4-TriggerDefinition.condition.json",
  "package_name": "hl7.fhir.uv.xver-r4.r3",
  "date": "2026-03-17T21:02:03.8104715+00:00",
  "derivation": "constraint",
  "publisher": "FHIR Infrastructure",
  "fhirVersion": "3.0.2",
  "jurisdiction": [ {
    "coding": [ {
      "code": "001",
      "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
      "display": "World"
    } ]
  } ],
  "purpose": "This extension is part of the cross-version definitions generated to enable use of the\r\nelement `TriggerDefinition.condition` as defined in FHIR R4\r\nin FHIR STU3.\r\n\r\nThe source element is defined as:\r\n`TriggerDefinition.condition` 0..1 `Expression`\r\n\r\nFollowing are the generation technical comments:\r\nElement `TriggerDefinition.condition` has a context of TriggerDefinition based on following the parent source element upwards and mapping to `TriggerDefinition`.\nElement `TriggerDefinition.condition` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
  "name": "ExtensionTriggerDefinition_Condition",
  "mapping": [ {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  } ],
  "abstract": false,
  "type": "Extension",
  "experimental": "false",
  "resourceType": "StructureDefinition",
  "title": "R4: Whether the event triggers (boolean expression) (new)",
  "package_version": "0.1.0",
  "extension": [ {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode": "fhir"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/package-source",
    "extension": [ {
      "url": "packageId",
      "valueId": "hl7.fhir.uv.xver-r4.r3"
    }, {
      "url": "version",
      "valueString": "0.1.0"
    }, {
      "url": "uri",
      "valueUri": "http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r4.r3"
    } ]
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger": 0,
    "_valueInteger": {
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueUri": "http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r4.r3"
      } ]
    }
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode": "trial-use",
    "_valueCode": {
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueUri": "http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r4.r3"
      } ]
    }
  } ],
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() | (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Extension",
      "min": 0,
      "definition": "R4: `TriggerDefinition.condition` (new:Expression)",
      "isModifier": false,
      "short": "R4: Whether the event triggers (boolean expression) (new)",
      "max": "1",
      "id": "Extension",
      "condition": [ "ele-1" ],
      "comment": "Element `TriggerDefinition.condition` has a context of TriggerDefinition based on following the parent source element upwards and mapping to `TriggerDefinition`.\nElement `TriggerDefinition.condition` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).\nThis element can be only be specified for data type triggers and provides additional semantics for the trigger. The context available within the condition is based on the type of data event. For all events, the current resource will be available as context. In addition, for modification events, the previous resource will also be available. The expression may be inlined, or may be a simple absolute URI, which is a reference to a named expression within a logic library referenced by a library element or extension within the containing resource. If the expression is a FHIR Path expression, it evaluates in the context of a resource of one of the type identified in the data requirement, and may also refer to the variable %previous for delta comparisons on events of type data-changed, data-modified, and data-deleted which will always have the same type.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension"
      }
    }, {
      "path": "Extension.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Extension.extension",
      "min": 0,
      "definition": "An Extension",
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "ordered": false,
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Extension.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Extension.extension",
      "min": 1,
      "definition": "Slice to indicate the presence of a R4 `Expression` in FHIR STU3",
      "short": "DataType slice for a FHIR R4 `Expression` value",
      "type": [ {
        "code": "Extension"
      } ],
      "sliceName": "_datatype",
      "max": "1",
      "id": "Extension.extension:_datatype",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Extension.extension.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:_datatype.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Extension.extension:_datatype.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "http://hl7.org/fhir/StructureDefinition/_datatype",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:_datatype.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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "Extension.extension.value[x]",
      "min": 1,
      "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "fixedString": "Expression",
      "id": "Extension.extension:_datatype.value[x]",
      "comment": "Must be: Expression",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Extension.extension",
      "requirements": "Element `Expression.description` is not mapped to FHIR STU3, since FHIR R4 `Expression` is not mapped.\nElement `Expression.description` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
      "min": 0,
      "definition": "R4: `Expression.description` (new:string)",
      "short": "R4: Natural language description of the condition (new)",
      "type": [ {
        "code": "Extension"
      } ],
      "sliceName": "description",
      "max": "1",
      "id": "Extension.extension:description",
      "comment": "Element `Expression.description` is not mapped to FHIR STU3, since FHIR R4 `Expression` is not mapped.\nElement `Expression.description` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Extension.extension.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:description.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Extension.extension:description.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "description",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:description.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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "A brief, natural language description of the condition that effectively communicates the intended semantics.",
      "short": "Natural language description of the condition",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "Extension.extension:description.value[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Extension.extension",
      "requirements": "Element `Expression.name` is not mapped to FHIR STU3, since FHIR R4 `Expression` is not mapped.\nElement `Expression.name` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
      "min": 0,
      "definition": "R4: `Expression.name` (new:id)",
      "short": "R4: Short name assigned to expression for reuse (new)",
      "type": [ {
        "code": "Extension"
      } ],
      "sliceName": "name",
      "max": "1",
      "id": "Extension.extension:name",
      "comment": "Element `Expression.name` is not mapped to FHIR STU3, since FHIR R4 `Expression` is not mapped.\nElement `Expression.name` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Extension.extension.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:name.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Extension.extension:name.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "name",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:name.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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "A short name assigned to the expression to allow for multiple reuse of the expression in the context where it is defined.",
      "short": "Short name assigned to expression for reuse",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "id"
      } ],
      "max": "1",
      "id": "Extension.extension:name.value[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Extension.extension",
      "requirements": "Element matches Basic element path `Basic.language` (`Resource.language`), use that element instead.\nElement `Expression.language` is not mapped to FHIR STU3, since FHIR R4 `Expression` is not mapped.\nElement `Expression.language` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
      "min": 1,
      "definition": "R4: `Expression.language` (new:code)",
      "short": "R4: text/cql | text/fhirpath | application/x-fhir-query | etc. (new)",
      "type": [ {
        "code": "Extension"
      } ],
      "sliceName": "language",
      "max": "1",
      "id": "Extension.extension:language",
      "comment": "Element matches Basic element path `Basic.language` (`Resource.language`), use that element instead.\nElement `Expression.language` is not mapped to FHIR STU3, since FHIR R4 `Expression` is not mapped.\nElement `Expression.language` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Extension.extension.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:language.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Extension.extension:language.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "language",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:language.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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "Extension.extension.value[x]",
      "min": 1,
      "definition": "The media type of the language for the expression.",
      "short": "text/cql | text/fhirpath | application/x-fhir-query | etc.",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "max": "1",
      "id": "Extension.extension:language.value[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Extension.extension",
      "requirements": "Element `Expression.expression` is not mapped to FHIR STU3, since FHIR R4 `Expression` is not mapped.\nElement `Expression.expression` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
      "min": 0,
      "definition": "R4: `Expression.expression` (new:string)",
      "short": "R4: Expression in specified language (new)",
      "type": [ {
        "code": "Extension"
      } ],
      "sliceName": "expression",
      "max": "1",
      "id": "Extension.extension:expression",
      "comment": "Element `Expression.expression` is not mapped to FHIR STU3, since FHIR R4 `Expression` is not mapped.\nElement `Expression.expression` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Extension.extension.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:expression.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Extension.extension:expression.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "expression",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:expression.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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "An expression in the specified language that returns a value.",
      "short": "Expression in specified language",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "Extension.extension:expression.value[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Extension.extension",
      "requirements": "Element `Expression.reference` is not mapped to FHIR STU3, since FHIR R4 `Expression` is not mapped.\nElement `Expression.reference` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
      "min": 0,
      "definition": "R4: `Expression.reference` (new:uri)",
      "short": "R4: Where the expression is found (new)",
      "type": [ {
        "code": "Extension"
      } ],
      "sliceName": "reference",
      "max": "1",
      "id": "Extension.extension:reference",
      "comment": "Element `Expression.reference` is not mapped to FHIR STU3, since FHIR R4 `Expression` is not mapped.\nElement `Expression.reference` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).\nIf both a reference and an expression is found, the reference SHALL point to the same expression.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Extension.extension.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:reference.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Extension.extension:reference.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "reference",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Extension.extension:reference.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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "A URI that defines where the expression is found.",
      "short": "Where the expression is found",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "Extension.extension:reference.value[x]",
      "comment": "If both a reference and an expression is found, the reference SHALL point to the same expression.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "http://hl7.org/fhir/4.0/StructureDefinition/extension-TriggerDefinition.condition",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "Extension.value[x]",
      "min": 0,
      "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "base64Binary"
      }, {
        "code": "boolean"
      }, {
        "code": "code"
      }, {
        "code": "date"
      }, {
        "code": "dateTime"
      }, {
        "code": "decimal"
      }, {
        "code": "id"
      }, {
        "code": "instant"
      }, {
        "code": "integer"
      }, {
        "code": "markdown"
      }, {
        "code": "oid"
      }, {
        "code": "positiveInt"
      }, {
        "code": "string"
      }, {
        "code": "time"
      }, {
        "code": "unsignedInt"
      }, {
        "code": "uri"
      }, {
        "code": "Address"
      }, {
        "code": "Age"
      }, {
        "code": "Annotation"
      }, {
        "code": "Attachment"
      }, {
        "code": "CodeableConcept"
      }, {
        "code": "Coding"
      }, {
        "code": "ContactPoint"
      }, {
        "code": "Count"
      }, {
        "code": "Distance"
      }, {
        "code": "Duration"
      }, {
        "code": "HumanName"
      }, {
        "code": "Identifier"
      }, {
        "code": "Money"
      }, {
        "code": "Period"
      }, {
        "code": "Quantity"
      }, {
        "code": "Range"
      }, {
        "code": "Ratio"
      }, {
        "code": "Reference"
      }, {
        "code": "SampledData"
      }, {
        "code": "Signature"
      }, {
        "code": "Timing"
      }, {
        "code": "Meta"
      } ],
      "max": "0",
      "id": "Extension.value[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    } ]
  },
  "status": "active",
  "id": "d171e120-c98b-42a9-8aef-8024a063e350",
  "kind": "complex-type",
  "url": "http://hl7.org/fhir/4.0/StructureDefinition/extension-TriggerDefinition.condition",
  "context": [ "TriggerDefinition" ],
  "version": "0.1.0",
  "differential": {
    "element": [ {
      "path": "Extension",
      "min": 0,
      "definition": "R4: `TriggerDefinition.condition` (new:Expression)",
      "isModifier": false,
      "short": "R4: Whether the event triggers (boolean expression) (new)",
      "max": "1",
      "id": "Extension",
      "comment": "Element `TriggerDefinition.condition` has a context of TriggerDefinition based on following the parent source element upwards and mapping to `TriggerDefinition`.\nElement `TriggerDefinition.condition` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).\nThis element can be only be specified for data type triggers and provides additional semantics for the trigger. The context available within the condition is based on the type of data event. For all events, the current resource will be available as context. In addition, for modification events, the previous resource will also be available. The expression may be inlined, or may be a simple absolute URI, which is a reference to a named expression within a logic library referenced by a library element or extension within the containing resource. If the expression is a FHIR Path expression, it evaluates in the context of a resource of one of the type identified in the data requirement, and may also refer to the variable %previous for delta comparisons on events of type data-changed, data-modified, and data-deleted which will always have the same type.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension"
      }
    }, {
      "id": "Extension.extension",
      "max": "*",
      "min": 0,
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension.extension"
      },
      "path": "Extension.extension",
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      }
    }, {
      "id": "Extension.extension:_datatype",
      "max": "1",
      "min": 1,
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension.extension"
      },
      "path": "Extension.extension",
      "short": "DataType slice for a FHIR R4 `Expression` value",
      "sliceName": "_datatype",
      "definition": "Slice to indicate the presence of a R4 `Expression` in FHIR STU3"
    }, {
      "id": "Extension.extension:_datatype.url",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "path": "Extension.extension.url",
      "fixedUri": "http://hl7.org/fhir/StructureDefinition/_datatype"
    }, {
      "id": "Extension.extension:_datatype.value[x]",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "path": "Extension.extension.value[x]",
      "type": [ {
        "code": "string"
      } ],
      "comment": "Must be: Expression",
      "fixedString": "Expression"
    }, {
      "path": "Extension.extension",
      "requirements": "Element `Expression.description` is not mapped to FHIR STU3, since FHIR R4 `Expression` is not mapped.\nElement `Expression.description` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
      "min": 0,
      "definition": "R4: `Expression.description` (new:string)",
      "short": "R4: Natural language description of the condition (new)",
      "sliceName": "description",
      "max": "1",
      "id": "Extension.extension:description",
      "comment": "Element `Expression.description` is not mapped to FHIR STU3, since FHIR R4 `Expression` is not mapped.\nElement `Expression.description` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension.extension"
      }
    }, {
      "id": "Extension.extension:description.url",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "path": "Extension.extension.url",
      "fixedUri": "description"
    }, {
      "id": "Extension.extension:description.value[x]",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "path": "Extension.extension.value[x]",
      "type": [ {
        "code": "string"
      } ],
      "short": "Natural language description of the condition",
      "definition": "A brief, natural language description of the condition that effectively communicates the intended semantics."
    }, {
      "path": "Extension.extension",
      "requirements": "Element `Expression.name` is not mapped to FHIR STU3, since FHIR R4 `Expression` is not mapped.\nElement `Expression.name` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
      "min": 0,
      "definition": "R4: `Expression.name` (new:id)",
      "short": "R4: Short name assigned to expression for reuse (new)",
      "sliceName": "name",
      "max": "1",
      "id": "Extension.extension:name",
      "comment": "Element `Expression.name` is not mapped to FHIR STU3, since FHIR R4 `Expression` is not mapped.\nElement `Expression.name` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension.extension"
      }
    }, {
      "id": "Extension.extension:name.url",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "path": "Extension.extension.url",
      "fixedUri": "name"
    }, {
      "id": "Extension.extension:name.value[x]",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "path": "Extension.extension.value[x]",
      "type": [ {
        "code": "id"
      } ],
      "short": "Short name assigned to expression for reuse",
      "definition": "A short name assigned to the expression to allow for multiple reuse of the expression in the context where it is defined."
    }, {
      "path": "Extension.extension",
      "requirements": "Element matches Basic element path `Basic.language` (`Resource.language`), use that element instead.\nElement `Expression.language` is not mapped to FHIR STU3, since FHIR R4 `Expression` is not mapped.\nElement `Expression.language` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
      "min": 1,
      "definition": "R4: `Expression.language` (new:code)",
      "short": "R4: text/cql | text/fhirpath | application/x-fhir-query | etc. (new)",
      "sliceName": "language",
      "max": "1",
      "id": "Extension.extension:language",
      "comment": "Element matches Basic element path `Basic.language` (`Resource.language`), use that element instead.\nElement `Expression.language` is not mapped to FHIR STU3, since FHIR R4 `Expression` is not mapped.\nElement `Expression.language` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension.extension"
      }
    }, {
      "id": "Extension.extension:language.url",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "path": "Extension.extension.url",
      "fixedUri": "language"
    }, {
      "id": "Extension.extension:language.value[x]",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "path": "Extension.extension.value[x]",
      "type": [ {
        "code": "code"
      } ],
      "short": "text/cql | text/fhirpath | application/x-fhir-query | etc.",
      "definition": "The media type of the language for the expression."
    }, {
      "path": "Extension.extension",
      "requirements": "Element `Expression.expression` is not mapped to FHIR STU3, since FHIR R4 `Expression` is not mapped.\nElement `Expression.expression` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
      "min": 0,
      "definition": "R4: `Expression.expression` (new:string)",
      "short": "R4: Expression in specified language (new)",
      "sliceName": "expression",
      "max": "1",
      "id": "Extension.extension:expression",
      "comment": "Element `Expression.expression` is not mapped to FHIR STU3, since FHIR R4 `Expression` is not mapped.\nElement `Expression.expression` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension.extension"
      }
    }, {
      "id": "Extension.extension:expression.url",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "path": "Extension.extension.url",
      "fixedUri": "expression"
    }, {
      "id": "Extension.extension:expression.value[x]",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "path": "Extension.extension.value[x]",
      "type": [ {
        "code": "string"
      } ],
      "short": "Expression in specified language",
      "definition": "An expression in the specified language that returns a value."
    }, {
      "path": "Extension.extension",
      "requirements": "Element `Expression.reference` is not mapped to FHIR STU3, since FHIR R4 `Expression` is not mapped.\nElement `Expression.reference` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).",
      "min": 0,
      "definition": "R4: `Expression.reference` (new:uri)",
      "short": "R4: Where the expression is found (new)",
      "sliceName": "reference",
      "max": "1",
      "id": "Extension.extension:reference",
      "comment": "Element `Expression.reference` is not mapped to FHIR STU3, since FHIR R4 `Expression` is not mapped.\nElement `Expression.reference` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).\nIf both a reference and an expression is found, the reference SHALL point to the same expression.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension.extension"
      }
    }, {
      "id": "Extension.extension:reference.url",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "path": "Extension.extension.url",
      "fixedUri": "reference"
    }, {
      "path": "Extension.extension.value[x]",
      "min": 0,
      "definition": "A URI that defines where the expression is found.",
      "short": "Where the expression is found",
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "Extension.extension:reference.value[x]",
      "comment": "If both a reference and an expression is found, the reference SHALL point to the same expression.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "id": "Extension.url",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "path": "Extension.url",
      "fixedUri": "http://hl7.org/fhir/4.0/StructureDefinition/extension-TriggerDefinition.condition"
    }, {
      "id": "Extension.value[x]",
      "max": "0",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "path": "Extension.value[x]"
    } ]
  },
  "contact": [ {
    "name": "FHIR Infrastructure",
    "telecom": [ {
      "value": "http://www.hl7.org/Special/committees/fiwg",
      "system": "url"
    } ]
  } ],
  "contextType": "datatype",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension"
}