Repository URL to install this package:
|
Version:
4.0.0 ▾
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/TriggerDefinition) on 2019-05-07.
# 2019, SMART Health IT.
from . import element
class TriggerDefinition(element.Element):
""" Defines an expected trigger for a module.
A description of a triggering event. Triggering events can be named events,
data events, or periodic, as determined by the type element.
"""
resource_type = "TriggerDefinition"
def __init__(self, jsondict=None, strict=True):
""" Initialize all valid properties.
:raises: FHIRValidationError on validation errors, unless strict is False
:param dict jsondict: A JSON dictionary to use for initialization
:param bool strict: If True (the default), invalid variables will raise a TypeError
"""
self.condition = None
""" Whether the event triggers (boolean expression).
Type `Expression` (represented as `dict` in JSON). """
self.data = None
""" Triggering data of the event (multiple = 'and').
List of `DataRequirement` items (represented as `dict` in JSON). """
self.name = None
""" Name or URI that identifies the event.
Type `str`. """
self.timingDate = None
""" Timing of the event.
Type `FHIRDate` (represented as `str` in JSON). """
self.timingDateTime = None
""" Timing of the event.
Type `FHIRDate` (represented as `str` in JSON). """
self.timingReference = None
""" Timing of the event.
Type `FHIRReference` (represented as `dict` in JSON). """
self.timingTiming = None
""" Timing of the event.
Type `Timing` (represented as `dict` in JSON). """
self.type = None
""" named-event | periodic | data-changed | data-added | data-modified
| data-removed | data-accessed | data-access-ended.
Type `str`. """
super(TriggerDefinition, self).__init__(jsondict=jsondict, strict=strict)
def elementProperties(self):
js = super(TriggerDefinition, self).elementProperties()
js.extend([
("condition", "condition", expression.Expression, False, None, False),
("data", "data", datarequirement.DataRequirement, True, None, False),
("name", "name", str, False, None, False),
("timingDate", "timingDate", fhirdate.FHIRDate, False, "timing", False),
("timingDateTime", "timingDateTime", fhirdate.FHIRDate, False, "timing", False),
("timingReference", "timingReference", fhirreference.FHIRReference, False, "timing", False),
("timingTiming", "timingTiming", timing.Timing, False, "timing", False),
("type", "type", str, False, None, True),
])
return js
import sys
try:
from . import datarequirement
except ImportError:
datarequirement = sys.modules[__package__ + '.datarequirement']
try:
from . import expression
except ImportError:
expression = sys.modules[__package__ + '.expression']
try:
from . import fhirdate
except ImportError:
fhirdate = sys.modules[__package__ + '.fhirdate']
try:
from . import fhirreference
except ImportError:
fhirreference = sys.modules[__package__ + '.fhirreference']
try:
from . import timing
except ImportError:
timing = sys.modules[__package__ + '.timing']