import { CodeableConcept } from './CodeableConcept.js';
import { DataRequirement } from './DataRequirement.js';
import { Expression } from './Expression.js';
import { Extension } from './Extension.js';
import { FhirPrimitive } from './FhirPrimitive.js';
import { Reference } from './Reference.js';
import { Timing } from './Timing.js';
export interface TriggerDefinition {
    /**
     * @description Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
     * @short Unique id for inter-element referencing
     */
    id?: string;
    /**
     * @description 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 managable, 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.
     * @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.
     * @short Additional content defined by implementations
     */
    extension?: Extension[];
    /**
     * @description The type of triggering event.
     * @short named-event | periodic | data-changed | data-added | data-modified | data-removed | data-accessed | data-access-ended
     */
    type: FhirPrimitive<string>;
    /**
     * @description 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.
     * @comment 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.
     * @short Name or URI that identifies the event
     */
    name?: FhirPrimitive<string>;
    /**
     * @description A code that identifies the event.
     * @short Coded definition of the event
     */
    code?: CodeableConcept;
    /**
     * @description 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.
     * @short What event
     */
    subscriptionTopic?: FhirPrimitive<string>;
    /**
     * @choice This is part of the timing[x] choice.
     * @oneOf timingTiming, timingReference, timingDate, timingDateTime
     */
    timingTiming?: Timing;
    /**
     * @choice This is part of the timing[x] choice.
     * @oneOf timingTiming, timingReference, timingDate, timingDateTime
     */
    timingReference?: Reference;
    /**
     * @choice This is part of the timing[x] choice.
     * @oneOf timingTiming, timingReference, timingDate, timingDateTime
     */
    timingDate?: FhirPrimitive<string>;
    /**
     * @choice This is part of the timing[x] choice.
     * @oneOf timingTiming, timingReference, timingDate, timingDateTime
     */
    timingDateTime?: FhirPrimitive<string>;
    /**
     * @description 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.
     * @comment This element shall be present for any data type trigger.
     * @short Triggering data of the event (multiple = 'and')
     */
    data?: DataRequirement[];
    /**
     * @description 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.
     * @comment 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.
     * @short Whether the event triggers (boolean expression)
     */
    condition?: Expression;
}
//# sourceMappingURL=TriggerDefinition.d.ts.map