This is Snapshot #3 for FHIR R5, released to support Connectathon 32. For a full list of available versions, see the Directory of published versions.
Modeling and Methodology Work Group | Maturity Level: N/A | Standards Status: Informative |
Raw Turtle (+ also see Turtle/RDF Format Specification)
StructureDefinition for TriggerDefinition
@prefix fhir: <http://hl7.org/fhir/> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . # - resource ------------------------------------------------------------------- [] a fhir:StructureDefinition; fhir:Resource.id [ fhir:value "TriggerDefinition"]; fhir:DomainResource.text [ fhir:Narrative.status [ fhir:value "generated" ] ]; fhir:DomainResource.extension [ fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ]; fhir:Extension.value [ fhir:value "trial-use" ] ]; fhir:CanonicalResource.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/TriggerDefinition"]; fhir:CanonicalResource.version [ fhir:value "5.0.0-snapshot3"]; fhir:CanonicalResource.name [ fhir:value "TriggerDefinition"]; fhir:CanonicalResource.status [ fhir:value "draft"]; fhir:CanonicalResource.experimental [ fhir:value "false"]; fhir:CanonicalResource.date [ fhir:value "2022-12-14T07:12:54+11:00"]; fhir:CanonicalResource.publisher [ fhir:value "HL7 FHIR Standard"]; fhir:CanonicalResource.contact [ fhir:ContactDetail.telecom [ fhir:ContactPoint.system [ fhir:value "url" ]; fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ] ] ]; fhir:CanonicalResource.description [ fhir:value "TriggerDefinition Type: A description of a triggering event. Triggering events can be named events, data events, or periodic, as determined by the type element."]; fhir:CanonicalResource.jurisdiction [ fhir:CodeableConcept.coding [ fhir:Coding.system [ fhir:value "http://unstats.un.org/unsd/methods/m49/m49.htm" ]; fhir:Coding.code [ fhir:value "001" ]; fhir:Coding.display [ fhir:value "World" ] ] ]; fhir:StructureDefinition.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/TriggerDefinition"]; fhir:StructureDefinition.version [ fhir:value "5.0.0-snapshot3"]; fhir:StructureDefinition.name [ fhir:value "TriggerDefinition"]; fhir:StructureDefinition.status [ fhir:value "draft"]; fhir:StructureDefinition.experimental [ fhir:value "false"]; fhir:StructureDefinition.date [ fhir:value "2022-12-14T07:12:54+11:00"]; fhir:StructureDefinition.publisher [ fhir:value "HL7 FHIR Standard"]; fhir:StructureDefinition.contact [ fhir:ContactDetail.telecom [ fhir:ContactPoint.system [ fhir:value "url" ]; fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ] ] ]; fhir:StructureDefinition.description [ fhir:value "TriggerDefinition Type: A description of a triggering event. Triggering events can be named events, data events, or periodic, as determined by the type element."]; fhir:StructureDefinition.jurisdiction [ fhir:CodeableConcept.coding [ fhir:Coding.system [ fhir:value "http://unstats.un.org/unsd/methods/m49/m49.htm" ]; fhir:Coding.code [ fhir:value "001" ]; fhir:Coding.display [ fhir:value "World" ] ] ]; fhir:StructureDefinition.fhirVersion [ fhir:value "5.0.0-snapshot3"]; fhir:StructureDefinition.mapping [ fhir:StructureDefinitionMappingComponent.identity [ fhir:value "rim" ]; fhir:StructureDefinitionMappingComponent.uri [ fhir:value "http://hl7.org/v3" ]; fhir:StructureDefinitionMappingComponent.name [ fhir:value "RIM Mapping" ] ]; fhir:StructureDefinition.kind [ fhir:value "complex-type"]; fhir:StructureDefinition.abstract [ fhir:value "false"]; fhir:StructureDefinition.type [ fhir:value "TriggerDefinition"]; fhir:StructureDefinition.baseDefinition [ fhir:value "http://hl7.org/fhir/StructureDefinition/DataType"]; fhir:StructureDefinition.derivation [ fhir:value "specialization"]; fhir:StructureDefinition.snapshot [ fhir:StructureDefinitionSnapshotComponent.element [ fhir:Element.id [ fhir:value "TriggerDefinition" ]; fhir:Element.extension [ fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ]; fhir:Extension.value [ fhir:value "trial-use" ] ]; fhir:ElementDefinition.path [ fhir:value "TriggerDefinition" ]; fhir:ElementDefinition.short [ fhir:value "Defines an expected trigger for a module" ]; fhir:ElementDefinition.definition [ fhir:value "A description of a triggering event. Triggering events can be named events, data events, or periodic, as determined by the type element." ]; fhir:ElementDefinition.comment [ fhir:value "If an event is a named-event, it means the event is completely pre-coordinated, and no other information can be specified for the event. If the event is one of the data- events, the data and condition elements specify the triggering criteria. The data element specifies the structured component, and the condition element provides additional optional refinement of that structured component. If the event is periodic, the timing element defines when the event is triggered. For both data- and periodic events, a name can be provided as a shorthand for the formal semantics provided by the other elements." ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "*" ]; fhir:ElementDefinition.base [ fhir:ElementDefinitionBaseComponent.path [ fhir:value "TriggerDefinition" ]; fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ]; fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ] ]; fhir:ElementDefinition.constraint [ fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ]; fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ]; fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ]; fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ]; fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ] ], [ fhir:ElementDefinitionConstraintComponent.key [ fhir:value "trd-1" ]; fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ]; fhir:ElementDefinitionConstraintComponent.human [ fhir:value "Either timing, or a data requirement, but not both" ]; fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "data.empty() or timing.empty()" ]; fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/TriggerDefinition" ] ], [ fhir:ElementDefinitionConstraintComponent.key [ fhir:value "trd-2" ]; fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ]; fhir:ElementDefinitionConstraintComponent.human [ fhir:value "A condition only if there is a data requirement" ]; fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "condition.exists() implies data.exists()" ]; fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/TriggerDefinition" ] ], [ fhir:ElementDefinitionConstraintComponent.key [ fhir:value "trd-3" ]; fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ]; fhir:ElementDefinitionConstraintComponent.human [ fhir:value "A named event requires a name, a periodic event requires timing, and a data event requires data" ]; fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "(type = 'named-event' implies name.exists()) and (type = 'periodic' implies timing.exists()) and (type.startsWith('data-') implies data.exists())" ]; fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/TriggerDefinition" ] ]; fhir:ElementDefinition.isModifier [ fhir:value "false" ]; fhir:ElementDefinition.mapping [ fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ]; fhir:ElementDefinitionMappingComponent.map [ fhir:value "n/a" ] ] ], [ fhir:Element.id [ fhir:value "TriggerDefinition.id" ]; fhir:ElementDefinition.path [ fhir:value "TriggerDefinition.id" ]; fhir:ElementDefinition.representation [ fhir:value "xmlAttr" ]; fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ]; fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "1" ]; fhir:ElementDefinition.base [ fhir:ElementDefinitionBaseComponent.path [ fhir:value "Element.id" ]; fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ]; fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ] ]; fhir:ElementDefinition.type [ fhir:Element.extension [ fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ]; fhir:Extension.value [ fhir:value "id" ] ]; fhir:TypeRefComponent.code [ fhir:value "http://hl7.org/fhirpath/System.String" ] ]; fhir:ElementDefinition.isModifier [ fhir:value "false" ]; fhir:ElementDefinition.isSummary [ fhir:value "false" ]; fhir:ElementDefinition.mapping [ fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ]; fhir:ElementDefinitionMappingComponent.map [ fhir:value "n/a" ] ] ], [ fhir:Element.id [ fhir:value "TriggerDefinition.extension" ]; fhir:ElementDefinition.path [ fhir:value "TriggerDefinition.extension" ]; fhir:ElementDefinition.slicing [ fhir:ElementDefinitionSlicingComponent.discriminator [ fhir:ElementDefinitionSlicingDiscriminatorComponent.type [ fhir:value "value" ]; fhir:ElementDefinitionSlicingDiscriminatorComponent.path [ fhir:value "url" ] ]; fhir:ElementDefinitionSlicingComponent.description [ fhir:value "Extensions are always sliced by (at least) url" ]; fhir:ElementDefinitionSlicingComponent.rules [ fhir:value "open" ] ]; fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ]; fhir:ElementDefinition.definition [ fhir:value "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." ]; fhir:ElementDefinition.comment [ fhir:value "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." ]; fhir:ElementDefinition.alias [ fhir:value "extensions" ], [ fhir:value "user content" ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "*" ]; fhir:ElementDefinition.base [ fhir:ElementDefinitionBaseComponent.path [ fhir:value "Element.extension" ]; fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ]; fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ] ]; fhir:ElementDefinition.type [ fhir:TypeRefComponent.code [ fhir:value "Extension" ] ]; fhir:ElementDefinition.constraint [ fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ]; fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ]; fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ]; fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ]; fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ] ], [ fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ext-1" ]; fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ]; fhir:ElementDefinitionConstraintComponent.human [ fhir:value "Must have either extensions or value[x], not both" ]; fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "extension.exists() != value.exists()" ]; fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ] ]; fhir:ElementDefinition.isModifier [ fhir:value "false" ]; fhir:ElementDefinition.isSummary [ fhir:value "false" ]; fhir:ElementDefinition.mapping [ fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ]; fhir:ElementDefinitionMappingComponent.map [ fhir:value "n/a" ] ] ], [ fhir:Element.id [ fhir:value "TriggerDefinition.type" ]; fhir:ElementDefinition.path [ fhir:value "TriggerDefinition.type" ]; fhir:ElementDefinition.short [ fhir:value "named-event | periodic | data-changed | data-added | data-modified | data-removed | data-accessed | data-access-ended" ]; fhir:ElementDefinition.definition [ fhir:value "The type of triggering event." ]; fhir:ElementDefinition.min [ fhir:value "1" ]; fhir:ElementDefinition.max [ fhir:value "1" ]; fhir:ElementDefinition.base [ fhir:ElementDefinitionBaseComponent.path [ fhir:value "TriggerDefinition.type" ]; fhir:ElementDefinitionBaseComponent.min [ fhir:value "1" ]; fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ] ]; fhir:ElementDefinition.type [ fhir:TypeRefComponent.code [ fhir:value "code" ] ]; fhir:ElementDefinition.constraint [ fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ]; fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ]; fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ]; fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ]; fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ] ]; fhir:ElementDefinition.isModifier [ fhir:value "false" ]; fhir:ElementDefinition.isSummary [ fhir:value "true" ]; fhir:ElementDefinition.binding [ fhir:Element.extension [ fhir:Extension.url [ fhir:value "http://hl7.org/fhir/build/StructureDefinition/binding-definition" ]; fhir:Extension.value [ fhir:value "The type of trigger." ] ], [ fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ]; fhir:Extension.value [ fhir:value "TriggerType" ] ]; fhir:ElementDefinitionBindingComponent.strength [ fhir:value "required" ]; fhir:ElementDefinitionBindingComponent.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/trigger-type|5.0.0-snapshot3" ] ] ], [ fhir:Element.id [ fhir:value "TriggerDefinition.name" ]; fhir:ElementDefinition.path [ fhir:value "TriggerDefinition.name" ]; fhir:ElementDefinition.short [ fhir:value "Name or URI that identifies the event" ]; fhir:ElementDefinition.definition [ fhir:value "A formal name for the event. This may be an absolute URI that identifies the event formally (e.g. from a trigger registry), or a simple relative URI that identifies the event in a local context." ]; fhir:ElementDefinition.comment [ fhir:value "An event name can be provided for all event types, but is required for named events. If a name is provided for a type other than named events, it is considered to be a shorthand for the semantics described by the formal description of the event." ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "1" ]; fhir:ElementDefinition.base [ fhir:ElementDefinitionBaseComponent.path [ fhir:value "TriggerDefinition.name" ]; fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ]; fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ] ]; fhir:ElementDefinition.type [ fhir:TypeRefComponent.code [ fhir:value "string" ] ]; fhir:ElementDefinition.constraint [ fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ]; fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ]; fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ]; fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ]; fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ] ]; fhir:ElementDefinition.isModifier [ fhir:value "false" ]; fhir:ElementDefinition.isSummary [ fhir:value "true" ] ], [ fhir:Element.id [ fhir:value "TriggerDefinition.code" ]; fhir:ElementDefinition.path [ fhir:value "TriggerDefinition.code" ]; fhir:ElementDefinition.short [ fhir:value "Coded definition of the event" ]; fhir:ElementDefinition.definition [ fhir:value "A code that identifies the event." ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "1" ]; fhir:ElementDefinition.base [ fhir:ElementDefinitionBaseComponent.path [ fhir:value "TriggerDefinition.code" ]; fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ]; fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ] ]; fhir:ElementDefinition.type [ fhir:TypeRefComponent.code [ fhir:value "CodeableConcept" ] ]; fhir:ElementDefinition.constraint [ fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ]; fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ]; fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ]; fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ]; fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ] ]; fhir:ElementDefinition.isModifier [ fhir:value "false" ]; fhir:ElementDefinition.isSummary [ fhir:value "true" ] ], [ fhir:Element.id [ fhir:value "TriggerDefinition.subscriptionTopic" ]; fhir:ElementDefinition.path [ fhir:value "TriggerDefinition.subscriptionTopic" ]; fhir:ElementDefinition.short [ fhir:value "What event" ]; fhir:ElementDefinition.definition [ fhir:value "A reference to a SubscriptionTopic resource that defines the event. If this element is provided, no other information about the trigger definition may be supplied." ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "1" ]; fhir:ElementDefinition.base [ fhir:ElementDefinitionBaseComponent.path [ fhir:value "TriggerDefinition.subscriptionTopic" ]; fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ]; fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ] ]; fhir:ElementDefinition.type [ fhir:TypeRefComponent.code [ fhir:value "canonical" ]; fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/SubscriptionTopic" ] ]; fhir:ElementDefinition.constraint [ fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ]; fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ]; fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ]; fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ]; fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ] ]; fhir:ElementDefinition.isModifier [ fhir:value "false" ]; fhir:ElementDefinition.isSummary [ fhir:value "true" ] ], [ fhir:Element.id [ fhir:value "TriggerDefinition.timing[x]" ]; fhir:ElementDefinition.path [ fhir:value "TriggerDefinition.timing[x]" ]; fhir:ElementDefinition.short [ fhir:value "Timing of the event" ]; fhir:ElementDefinition.definition [ fhir:value "The timing of the event (if this is a periodic trigger)." ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "1" ]; fhir:ElementDefinition.base [ fhir:ElementDefinitionBaseComponent.path [ fhir:value "TriggerDefinition.timing[x]" ]; fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ]; fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ] ]; fhir:ElementDefinition.type [ fhir:TypeRefComponent.code [ fhir:value "Timing" ] ], [ fhir:TypeRefComponent.code [ fhir:value "Reference" ]; fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Schedule" ] ], [ fhir:TypeRefComponent.code [ fhir:value "date" ] ], [ fhir:TypeRefComponent.code [ fhir:value "dateTime" ] ]; fhir:ElementDefinition.constraint [ fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ]; fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ]; fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ]; fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ]; fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ] ]; fhir:ElementDefinition.isModifier [ fhir:value "false" ]; fhir:ElementDefinition.isSummary [ fhir:value "true" ] ], [ fhir:Element.id [ fhir:value "TriggerDefinition.data" ]; fhir:ElementDefinition.path [ fhir:value "TriggerDefinition.data" ]; fhir:ElementDefinition.short [ fhir:value "Triggering data of the event (multiple = 'and')" ]; fhir:ElementDefinition.definition [ fhir:value "The triggering data of the event (if this is a data trigger). If more than one data is requirement is specified, then all the data requirements must be true." ]; fhir:ElementDefinition.comment [ fhir:value "This element shall be present for any data type trigger." ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "*" ]; fhir:ElementDefinition.base [ fhir:ElementDefinitionBaseComponent.path [ fhir:value "TriggerDefinition.data" ]; fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ]; fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ] ]; fhir:ElementDefinition.type [ fhir:TypeRefComponent.code [ fhir:value "DataRequirement" ] ]; fhir:ElementDefinition.constraint [ fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ]; fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ]; fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ]; fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ]; fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ] ]; fhir:ElementDefinition.isModifier [ fhir:value "false" ]; fhir:ElementDefinition.isSummary [ fhir:value "true" ] ], [ fhir:Element.id [ fhir:value "TriggerDefinition.condition" ]; fhir:ElementDefinition.path [ fhir:value "TriggerDefinition.condition" ]; fhir:ElementDefinition.short [ fhir:value "Whether the event triggers (boolean expression)" ]; fhir:ElementDefinition.definition [ fhir:value "A boolean-valued expression that is evaluated in the context of the container of the trigger definition and returns whether or not the trigger fires." ]; fhir:ElementDefinition.comment [ fhir:value "This 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." ]; fhir:ElementDefinition.requirements [ fhir:value "Need to be able to formally describe the triggering criteria." ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "1" ]; fhir:ElementDefinition.base [ fhir:ElementDefinitionBaseComponent.path [ fhir:value "TriggerDefinition.condition" ]; fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ]; fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ] ]; fhir:ElementDefinition.type [ fhir:TypeRefComponent.code [ fhir:value "Expression" ] ]; fhir:ElementDefinition.constraint [ fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ]; fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ]; fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ]; fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ]; fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ] ]; fhir:ElementDefinition.isModifier [ fhir:value "false" ]; fhir:ElementDefinition.isSummary [ fhir:value "true" ] ] ]; fhir:StructureDefinition.differential [ fhir:StructureDefinitionDifferentialComponent.element [ fhir:Element.id [ fhir:value "TriggerDefinition" ]; fhir:Element.extension [ fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ]; fhir:Extension.value [ fhir:value "trial-use" ] ]; fhir:ElementDefinition.path [ fhir:value "TriggerDefinition" ]; fhir:ElementDefinition.short [ fhir:value "Defines an expected trigger for a module" ]; fhir:ElementDefinition.definition [ fhir:value "A description of a triggering event. Triggering events can be named events, data events, or periodic, as determined by the type element." ]; fhir:ElementDefinition.comment [ fhir:value "If an event is a named-event, it means the event is completely pre-coordinated, and no other information can be specified for the event. If the event is one of the data- events, the data and condition elements specify the triggering criteria. The data element specifies the structured component, and the condition element provides additional optional refinement of that structured component. If the event is periodic, the timing element defines when the event is triggered. For both data- and periodic events, a name can be provided as a shorthand for the formal semantics provided by the other elements." ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "*" ]; fhir:ElementDefinition.constraint [ fhir:ElementDefinitionConstraintComponent.key [ fhir:value "trd-3" ]; fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ]; fhir:ElementDefinitionConstraintComponent.human [ fhir:value "A named event requires a name, a periodic event requires timing, and a data event requires data" ]; fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "(type = 'named-event' implies name.exists()) and (type = 'periodic' implies timing.exists()) and (type.startsWith('data-') implies data.exists())" ]; fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/TriggerDefinition" ] ], [ fhir:ElementDefinitionConstraintComponent.key [ fhir:value "trd-2" ]; fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ]; fhir:ElementDefinitionConstraintComponent.human [ fhir:value "A condition only if there is a data requirement" ]; fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "condition.exists() implies data.exists()" ]; fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/TriggerDefinition" ] ], [ fhir:ElementDefinitionConstraintComponent.key [ fhir:value "trd-1" ]; fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ]; fhir:ElementDefinitionConstraintComponent.human [ fhir:value "Either timing, or a data requirement, but not both" ]; fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "data.empty() or timing.empty()" ]; fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/TriggerDefinition" ] ] ], [ fhir:Element.id [ fhir:value "TriggerDefinition.type" ]; fhir:ElementDefinition.path [ fhir:value "TriggerDefinition.type" ]; fhir:ElementDefinition.short [ fhir:value "named-event | periodic | data-changed | data-added | data-modified | data-removed | data-accessed | data-access-ended" ]; fhir:ElementDefinition.definition [ fhir:value "The type of triggering event." ]; fhir:ElementDefinition.min [ fhir:value "1" ]; fhir:ElementDefinition.max [ fhir:value "1" ]; fhir:ElementDefinition.type [ fhir:TypeRefComponent.code [ fhir:value "code" ] ]; fhir:ElementDefinition.isSummary [ fhir:value "true" ]; fhir:ElementDefinition.binding [ fhir:Element.extension [ fhir:Extension.url [ fhir:value "http://hl7.org/fhir/build/StructureDefinition/binding-definition" ]; fhir:Extension.value [ fhir:value "The type of trigger." ] ], [ fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ]; fhir:Extension.value [ fhir:value "TriggerType" ] ]; fhir:ElementDefinitionBindingComponent.strength [ fhir:value "required" ]; fhir:ElementDefinitionBindingComponent.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/trigger-type|5.0.0-snapshot3" ] ] ], [ fhir:Element.id [ fhir:value "TriggerDefinition.name" ]; fhir:ElementDefinition.path [ fhir:value "TriggerDefinition.name" ]; fhir:ElementDefinition.short [ fhir:value "Name or URI that identifies the event" ]; fhir:ElementDefinition.definition [ fhir:value "A formal name for the event. This may be an absolute URI that identifies the event formally (e.g. from a trigger registry), or a simple relative URI that identifies the event in a local context." ]; fhir:ElementDefinition.comment [ fhir:value "An event name can be provided for all event types, but is required for named events. If a name is provided for a type other than named events, it is considered to be a shorthand for the semantics described by the formal description of the event." ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "1" ]; fhir:ElementDefinition.type [ fhir:TypeRefComponent.code [ fhir:value "string" ] ]; fhir:ElementDefinition.isSummary [ fhir:value "true" ] ], [ fhir:Element.id [ fhir:value "TriggerDefinition.code" ]; fhir:ElementDefinition.path [ fhir:value "TriggerDefinition.code" ]; fhir:ElementDefinition.short [ fhir:value "Coded definition of the event" ]; fhir:ElementDefinition.definition [ fhir:value "A code that identifies the event." ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "1" ]; fhir:ElementDefinition.type [ fhir:TypeRefComponent.code [ fhir:value "CodeableConcept" ] ]; fhir:ElementDefinition.isSummary [ fhir:value "true" ] ], [ fhir:Element.id [ fhir:value "TriggerDefinition.subscriptionTopic" ]; fhir:ElementDefinition.path [ fhir:value "TriggerDefinition.subscriptionTopic" ]; fhir:ElementDefinition.short [ fhir:value "What event" ]; fhir:ElementDefinition.definition [ fhir:value "A reference to a SubscriptionTopic resource that defines the event. If this element is provided, no other information about the trigger definition may be supplied." ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "1" ]; fhir:ElementDefinition.type [ fhir:TypeRefComponent.code [ fhir:value "canonical" ]; fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/SubscriptionTopic" ] ]; fhir:ElementDefinition.isSummary [ fhir:value "true" ] ], [ fhir:Element.id [ fhir:value "TriggerDefinition.timing[x]" ]; fhir:ElementDefinition.path [ fhir:value "TriggerDefinition.timing[x]" ]; fhir:ElementDefinition.short [ fhir:value "Timing of the event" ]; fhir:ElementDefinition.definition [ fhir:value "The timing of the event (if this is a periodic trigger)." ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "1" ]; fhir:ElementDefinition.type [ fhir:TypeRefComponent.code [ fhir:value "Timing" ] ], [ fhir:TypeRefComponent.code [ fhir:value "Reference" ]; fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Schedule" ] ], [ fhir:TypeRefComponent.code [ fhir:value "date" ] ], [ fhir:TypeRefComponent.code [ fhir:value "dateTime" ] ]; fhir:ElementDefinition.isSummary [ fhir:value "true" ] ], [ fhir:Element.id [ fhir:value "TriggerDefinition.data" ]; fhir:ElementDefinition.path [ fhir:value "TriggerDefinition.data" ]; fhir:ElementDefinition.short [ fhir:value "Triggering data of the event (multiple = 'and')" ]; fhir:ElementDefinition.definition [ fhir:value "The triggering data of the event (if this is a data trigger). If more than one data is requirement is specified, then all the data requirements must be true." ]; fhir:ElementDefinition.comment [ fhir:value "This element shall be present for any data type trigger." ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "*" ]; fhir:ElementDefinition.type [ fhir:TypeRefComponent.code [ fhir:value "DataRequirement" ] ]; fhir:ElementDefinition.isSummary [ fhir:value "true" ] ], [ fhir:Element.id [ fhir:value "TriggerDefinition.condition" ]; fhir:ElementDefinition.path [ fhir:value "TriggerDefinition.condition" ]; fhir:ElementDefinition.short [ fhir:value "Whether the event triggers (boolean expression)" ]; fhir:ElementDefinition.definition [ fhir:value "A boolean-valued expression that is evaluated in the context of the container of the trigger definition and returns whether or not the trigger fires." ]; fhir:ElementDefinition.comment [ fhir:value "This 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." ]; fhir:ElementDefinition.requirements [ fhir:value "Need to be able to formally describe the triggering criteria." ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "1" ]; fhir:ElementDefinition.type [ fhir:TypeRefComponent.code [ fhir:value "Expression" ] ]; fhir:ElementDefinition.isSummary [ fhir:value "true" ] ] ] . # -------------------------------------------------------------------------------------
Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.
FHIR ®© HL7.org 2011+. FHIR R5 Ballot hl7.fhir.core#5.0.0-snapshot3 generated on Wed, Dec 14, 2022 07:15+1100.
Links: Search |
Version History |
Contents |
Glossary |
QA |
Compare to R4B |
Compare to R5 Draft |
|
Propose a change