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/StructureMap) on 2019-05-07.
# 2019, SMART Health IT.
from . import domainresource
class StructureMap(domainresource.DomainResource):
""" A Map of relationships between 2 structures that can be used to transform
data.
"""
resource_type = "StructureMap"
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.contact = None
""" Contact details for the publisher.
List of `ContactDetail` items (represented as `dict` in JSON). """
self.copyright = None
""" Use and/or publishing restrictions.
Type `str`. """
self.date = None
""" Date last changed.
Type `FHIRDate` (represented as `str` in JSON). """
self.description = None
""" Natural language description of the structure map.
Type `str`. """
self.experimental = None
""" For testing purposes, not real usage.
Type `bool`. """
self.group = None
""" Named sections for reader convenience.
List of `StructureMapGroup` items (represented as `dict` in JSON). """
self.identifier = None
""" Additional identifier for the structure map.
List of `Identifier` items (represented as `dict` in JSON). """
self.import_fhir = None
""" Other maps used by this map (canonical URLs).
List of `str` items. """
self.jurisdiction = None
""" Intended jurisdiction for structure map (if applicable).
List of `CodeableConcept` items (represented as `dict` in JSON). """
self.name = None
""" Name for this structure map (computer friendly).
Type `str`. """
self.publisher = None
""" Name of the publisher (organization or individual).
Type `str`. """
self.purpose = None
""" Why this structure map is defined.
Type `str`. """
self.status = None
""" draft | active | retired | unknown.
Type `str`. """
self.structure = None
""" Structure Definition used by this map.
List of `StructureMapStructure` items (represented as `dict` in JSON). """
self.title = None
""" Name for this structure map (human friendly).
Type `str`. """
self.url = None
""" Canonical identifier for this structure map, represented as a URI
(globally unique).
Type `str`. """
self.useContext = None
""" The context that the content is intended to support.
List of `UsageContext` items (represented as `dict` in JSON). """
self.version = None
""" Business version of the structure map.
Type `str`. """
super(StructureMap, self).__init__(jsondict=jsondict, strict=strict)
def elementProperties(self):
js = super(StructureMap, self).elementProperties()
js.extend([
("contact", "contact", contactdetail.ContactDetail, True, None, False),
("copyright", "copyright", str, False, None, False),
("date", "date", fhirdate.FHIRDate, False, None, False),
("description", "description", str, False, None, False),
("experimental", "experimental", bool, False, None, False),
("group", "group", StructureMapGroup, True, None, True),
("identifier", "identifier", identifier.Identifier, True, None, False),
("import_fhir", "import", str, True, None, False),
("jurisdiction", "jurisdiction", codeableconcept.CodeableConcept, True, None, False),
("name", "name", str, False, None, True),
("publisher", "publisher", str, False, None, False),
("purpose", "purpose", str, False, None, False),
("status", "status", str, False, None, True),
("structure", "structure", StructureMapStructure, True, None, False),
("title", "title", str, False, None, False),
("url", "url", str, False, None, True),
("useContext", "useContext", usagecontext.UsageContext, True, None, False),
("version", "version", str, False, None, False),
])
return js
from . import backboneelement
class StructureMapGroup(backboneelement.BackboneElement):
""" Named sections for reader convenience.
Organizes the mapping into manageable chunks for human review/ease of
maintenance.
"""
resource_type = "StructureMapGroup"
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.documentation = None
""" Additional description/explanation for group.
Type `str`. """
self.extends = None
""" Another group that this group adds rules to.
Type `str`. """
self.input = None
""" Named instance provided when invoking the map.
List of `StructureMapGroupInput` items (represented as `dict` in JSON). """
self.name = None
""" Human-readable label.
Type `str`. """
self.rule = None
""" Transform Rule from source to target.
List of `StructureMapGroupRule` items (represented as `dict` in JSON). """
self.typeMode = None
""" none | types | type-and-types.
Type `str`. """
super(StructureMapGroup, self).__init__(jsondict=jsondict, strict=strict)
def elementProperties(self):
js = super(StructureMapGroup, self).elementProperties()
js.extend([
("documentation", "documentation", str, False, None, False),
("extends", "extends", str, False, None, False),
("input", "input", StructureMapGroupInput, True, None, True),
("name", "name", str, False, None, True),
("rule", "rule", StructureMapGroupRule, True, None, True),
("typeMode", "typeMode", str, False, None, True),
])
return js
class StructureMapGroupInput(backboneelement.BackboneElement):
""" Named instance provided when invoking the map.
A name assigned to an instance of data. The instance must be provided when
the mapping is invoked.
"""
resource_type = "StructureMapGroupInput"
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.documentation = None
""" Documentation for this instance of data.
Type `str`. """
self.mode = None
""" source | target.
Type `str`. """
self.name = None
""" Name for this instance of data.
Type `str`. """
self.type = None
""" Type for this instance of data.
Type `str`. """
super(StructureMapGroupInput, self).__init__(jsondict=jsondict, strict=strict)
def elementProperties(self):
js = super(StructureMapGroupInput, self).elementProperties()
js.extend([
("documentation", "documentation", str, False, None, False),
("mode", "mode", str, False, None, True),
("name", "name", str, False, None, True),
("type", "type", str, False, None, False),
])
return js
class StructureMapGroupRule(backboneelement.BackboneElement):
""" Transform Rule from source to target.
"""
resource_type = "StructureMapGroupRule"
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.dependent = None
""" Which other rules to apply in the context of this rule.
List of `StructureMapGroupRuleDependent` items (represented as `dict` in JSON). """
self.documentation = None
""" Documentation for this instance of data.
Type `str`. """
self.name = None
""" Name of the rule for internal references.
Type `str`. """
self.rule = None
""" Rules contained in this rule.
List of `StructureMapGroupRule` items (represented as `dict` in JSON). """
self.source = None
""" Source inputs to the mapping.
List of `StructureMapGroupRuleSource` items (represented as `dict` in JSON). """
self.target = None
""" Content to create because of this mapping rule.
List of `StructureMapGroupRuleTarget` items (represented as `dict` in JSON). """
super(StructureMapGroupRule, self).__init__(jsondict=jsondict, strict=strict)
def elementProperties(self):
js = super(StructureMapGroupRule, self).elementProperties()
js.extend([
("dependent", "dependent", StructureMapGroupRuleDependent, True, None, False),
("documentation", "documentation", str, False, None, False),
("name", "name", str, False, None, True),
("rule", "rule", StructureMapGroupRule, True, None, False),
("source", "source", StructureMapGroupRuleSource, True, None, True),
("target", "target", StructureMapGroupRuleTarget, True, None, False),
])
return js
class StructureMapGroupRuleDependent(backboneelement.BackboneElement):
""" Which other rules to apply in the context of this rule.
"""
resource_type = "StructureMapGroupRuleDependent"
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.name = None
""" Name of a rule or group to apply.
Type `str`. """
self.variable = None
""" Variable to pass to the rule or group.
List of `str` items. """
super(StructureMapGroupRuleDependent, self).__init__(jsondict=jsondict, strict=strict)
def elementProperties(self):
js = super(StructureMapGroupRuleDependent, self).elementProperties()
js.extend([
("name", "name", str, False, None, True),
("variable", "variable", str, True, None, True),
])
return js
class StructureMapGroupRuleSource(backboneelement.BackboneElement):
""" Source inputs to the mapping.
"""
resource_type = "StructureMapGroupRuleSource"
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.check = None
""" FHIRPath expression - must be true or the mapping engine throws an
error instead of completing.
Type `str`. """
self.condition = None
""" FHIRPath expression - must be true or the rule does not apply.
Type `str`. """
self.context = None
""" Type or variable this rule applies to.
Type `str`. """
self.defaultValueAddress = None
""" Default value if no value exists.
Type `Address` (represented as `dict` in JSON). """
self.defaultValueAge = None
""" Default value if no value exists.
Type `Age` (represented as `dict` in JSON). """
self.defaultValueAnnotation = None
""" Default value if no value exists.
Type `Annotation` (represented as `dict` in JSON). """
self.defaultValueAttachment = None
""" Default value if no value exists.
Type `Attachment` (represented as `dict` in JSON). """
self.defaultValueBase64Binary = None
""" Default value if no value exists.
Type `str`. """
self.defaultValueBoolean = None
""" Default value if no value exists.
Type `bool`. """
self.defaultValueCanonical = None
""" Default value if no value exists.
Type `str`. """
self.defaultValueCode = None
""" Default value if no value exists.
Type `str`. """
self.defaultValueCodeableConcept = None
""" Default value if no value exists.
Type `CodeableConcept` (represented as `dict` in JSON). """
self.defaultValueCoding = None
""" Default value if no value exists.
Type `Coding` (represented as `dict` in JSON). """
self.defaultValueContactDetail = None
""" Default value if no value exists.
Type `ContactDetail` (represented as `dict` in JSON). """
self.defaultValueContactPoint = None
""" Default value if no value exists.
Type `ContactPoint` (represented as `dict` in JSON). """
self.defaultValueContributor = None
""" Default value if no value exists.
Type `Contributor` (represented as `dict` in JSON). """
self.defaultValueCount = None
""" Default value if no value exists.
Type `Count` (represented as `dict` in JSON). """
self.defaultValueDataRequirement = None
""" Default value if no value exists.
Type `DataRequirement` (represented as `dict` in JSON). """
self.defaultValueDate = None
""" Default value if no value exists.
Type `FHIRDate` (represented as `str` in JSON). """
self.defaultValueDateTime = None
""" Default value if no value exists.
Type `FHIRDate` (represented as `str` in JSON). """
self.defaultValueDecimal = None
""" Default value if no value exists.
Type `float`. """
self.defaultValueDistance = None
""" Default value if no value exists.
Type `Distance` (represented as `dict` in JSON). """
self.defaultValueDosage = None
""" Default value if no value exists.
Type `Dosage` (represented as `dict` in JSON). """
self.defaultValueDuration = None
""" Default value if no value exists.
Type `Duration` (represented as `dict` in JSON). """
self.defaultValueExpression = None
""" Default value if no value exists.
Type `Expression` (represented as `dict` in JSON). """
self.defaultValueHumanName = None
""" Default value if no value exists.
Type `HumanName` (represented as `dict` in JSON). """
self.defaultValueId = None
""" Default value if no value exists.
Type `str`. """
self.defaultValueIdentifier = None
""" Default value if no value exists.
Type `Identifier` (represented as `dict` in JSON). """
self.defaultValueInstant = None
""" Default value if no value exists.
Type `FHIRDate` (represented as `str` in JSON). """
self.defaultValueInteger = None
""" Default value if no value exists.
Type `int`. """
self.defaultValueMarkdown = None
""" Default value if no value exists.
Type `str`. """
self.defaultValueMoney = None
""" Default value if no value exists.
Type `Money` (represented as `dict` in JSON). """
self.defaultValueOid = None
""" Default value if no value exists.
Type `str`. """
self.defaultValueParameterDefinition = None
""" Default value if no value exists.
Type `ParameterDefinition` (represented as `dict` in JSON). """
self.defaultValuePeriod = None
""" Default value if no value exists.
Type `Period` (represented as `dict` in JSON). """
self.defaultValuePositiveInt = None
""" Default value if no value exists.
Type `int`. """
self.defaultValueQuantity = None
""" Default value if no value exists.
Type `Quantity` (represented as `dict` in JSON). """
self.defaultValueRange = None
""" Default value if no value exists.
Type `Range` (represented as `dict` in JSON). """
self.defaultValueRatio = None
""" Default value if no value exists.
Type `Ratio` (represented as `dict` in JSON). """
self.defaultValueReference = None
""" Default value if no value exists.
Type `FHIRReference` (represented as `dict` in JSON). """
self.defaultValueRelatedArtifact = None
""" Default value if no value exists.
Type `RelatedArtifact` (represented as `dict` in JSON). """
self.defaultValueSampledData = None
""" Default value if no value exists.
Type `SampledData` (represented as `dict` in JSON). """
self.defaultValueSignature = None
""" Default value if no value exists.
Type `Signature` (represented as `dict` in JSON). """
self.defaultValueString = None
""" Default value if no value exists.
Type `str`. """
self.defaultValueTime = None
""" Default value if no value exists.
Type `FHIRDate` (represented as `str` in JSON). """
self.defaultValueTiming = None
""" Default value if no value exists.
Type `Timing` (represented as `dict` in JSON). """
self.defaultValueTriggerDefinition = None
""" Default value if no value exists.
Type `TriggerDefinition` (represented as `dict` in JSON). """
self.defaultValueUnsignedInt = None
""" Default value if no value exists.
Type `int`. """
self.defaultValueUri = None
""" Default value if no value exists.
Type `str`. """
self.defaultValueUrl = None
""" Default value if no value exists.
Type `str`. """
self.defaultValueUsageContext = None
""" Default value if no value exists.
Type `UsageContext` (represented as `dict` in JSON). """
self.defaultValueUuid = None
""" Default value if no value exists.
Type `str`. """
self.element = None
""" Optional field for this source.
Type `str`. """
self.listMode = None
""" first | not_first | last | not_last | only_one.
Type `str`. """
self.logMessage = None
""" Message to put in log if source exists (FHIRPath).
Type `str`. """
self.max = None
""" Specified maximum cardinality (number or *).
Type `str`. """
self.min = None
""" Specified minimum cardinality.
Type `int`. """
self.type = None
""" Rule only applies if source has this type.
Type `str`. """
self.variable = None
""" Named context for field, if a field is specified.
Type `str`. """
super(StructureMapGroupRuleSource, self).__init__(jsondict=jsondict, strict=strict)
def elementProperties(self):
js = super(StructureMapGroupRuleSource, self).elementProperties()
js.extend([
("check", "check", str, False, None, False),
("condition", "condition", str, False, None, False),
("context", "context", str, False, None, True),
("defaultValueAddress", "defaultValueAddress", address.Address, False, "defaultValue", False),
("defaultValueAge", "defaultValueAge", age.Age, False, "defaultValue", False),
("defaultValueAnnotation", "defaultValueAnnotation", annotation.Annotation, False, "defaultValue", False),
("defaultValueAttachment", "defaultValueAttachment", attachment.Attachment, False, "defaultValue", False),
("defaultValueBase64Binary", "defaultValueBase64Binary", str, False, "defaultValue", False),
("defaultValueBoolean", "defaultValueBoolean", bool, False, "defaultValue", False),
("defaultValueCanonical", "defaultValueCanonical", str, False, "defaultValue", False),
("defaultValueCode", "defaultValueCode", str, False, "defaultValue", False),
("defaultValueCodeableConcept", "defaultValueCodeableConcept", codeableconcept.CodeableConcept, False, "defaultValue", False),
("defaultValueCoding", "defaultValueCoding", coding.Coding, False, "defaultValue", False),
("defaultValueContactDetail", "defaultValueContactDetail", contactdetail.ContactDetail, False, "defaultValue", False),
("defaultValueContactPoint", "defaultValueContactPoint", contactpoint.ContactPoint, False, "defaultValue", False),
("defaultValueContributor", "defaultValueContributor", contributor.Contributor, False, "defaultValue", False),
("defaultValueCount", "defaultValueCount", count.Count, False, "defaultValue", False),
("defaultValueDataRequirement", "defaultValueDataRequirement", datarequirement.DataRequirement, False, "defaultValue", False),
("defaultValueDate", "defaultValueDate", fhirdate.FHIRDate, False, "defaultValue", False),
("defaultValueDateTime", "defaultValueDateTime", fhirdate.FHIRDate, False, "defaultValue", False),
("defaultValueDecimal", "defaultValueDecimal", float, False, "defaultValue", False),
("defaultValueDistance", "defaultValueDistance", distance.Distance, False, "defaultValue", False),
("defaultValueDosage", "defaultValueDosage", dosage.Dosage, False, "defaultValue", False),
("defaultValueDuration", "defaultValueDuration", duration.Duration, False, "defaultValue", False),
("defaultValueExpression", "defaultValueExpression", expression.Expression, False, "defaultValue", False),
("defaultValueHumanName", "defaultValueHumanName", humanname.HumanName, False, "defaultValue", False),
("defaultValueId", "defaultValueId", str, False, "defaultValue", False),
("defaultValueIdentifier", "defaultValueIdentifier", identifier.Identifier, False, "defaultValue", False),
("defaultValueInstant", "defaultValueInstant", fhirdate.FHIRDate, False, "defaultValue", False),
("defaultValueInteger", "defaultValueInteger", int, False, "defaultValue", False),
("defaultValueMarkdown", "defaultValueMarkdown", str, False, "defaultValue", False),
("defaultValueMoney", "defaultValueMoney", money.Money, False, "defaultValue", False),
("defaultValueOid", "defaultValueOid", str, False, "defaultValue", False),
("defaultValueParameterDefinition", "defaultValueParameterDefinition", parameterdefinition.ParameterDefinition, False, "defaultValue", False),
("defaultValuePeriod", "defaultValuePeriod", period.Period, False, "defaultValue", False),
("defaultValuePositiveInt", "defaultValuePositiveInt", int, False, "defaultValue", False),
("defaultValueQuantity", "defaultValueQuantity", quantity.Quantity, False, "defaultValue", False),
("defaultValueRange", "defaultValueRange", range.Range, False, "defaultValue", False),
("defaultValueRatio", "defaultValueRatio", ratio.Ratio, False, "defaultValue", False),
("defaultValueReference", "defaultValueReference", fhirreference.FHIRReference, False, "defaultValue", False),
("defaultValueRelatedArtifact", "defaultValueRelatedArtifact", relatedartifact.RelatedArtifact, False, "defaultValue", False),
("defaultValueSampledData", "defaultValueSampledData", sampleddata.SampledData, False, "defaultValue", False),
("defaultValueSignature", "defaultValueSignature", signature.Signature, False, "defaultValue", False),
("defaultValueString", "defaultValueString", str, False, "defaultValue", False),
("defaultValueTime", "defaultValueTime", fhirdate.FHIRDate, False, "defaultValue", False),
("defaultValueTiming", "defaultValueTiming", timing.Timing, False, "defaultValue", False),
("defaultValueTriggerDefinition", "defaultValueTriggerDefinition", triggerdefinition.TriggerDefinition, False, "defaultValue", False),
("defaultValueUnsignedInt", "defaultValueUnsignedInt", int, False, "defaultValue", False),
("defaultValueUri", "defaultValueUri", str, False, "defaultValue", False),
("defaultValueUrl", "defaultValueUrl", str, False, "defaultValue", False),
("defaultValueUsageContext", "defaultValueUsageContext", usagecontext.UsageContext, False, "defaultValue", False),
("defaultValueUuid", "defaultValueUuid", str, False, "defaultValue", False),
("element", "element", str, False, None, False),
("listMode", "listMode", str, False, None, False),
("logMessage", "logMessage", str, False, None, False),
("max", "max", str, False, None, False),
("min", "min", int, False, None, False),
("type", "type", str, False, None, False),
("variable", "variable", str, False, None, False),
])
return js
class StructureMapGroupRuleTarget(backboneelement.BackboneElement):
""" Content to create because of this mapping rule.
"""
resource_type = "StructureMapGroupRuleTarget"
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.context = None
""" Type or variable this rule applies to.
Type `str`. """
self.contextType = None
""" type | variable.
Type `str`. """
self.element = None
""" Field to create in the context.
Type `str`. """
self.listMode = None
""" first | share | last | collate.
List of `str` items. """
self.listRuleId = None
""" Internal rule reference for shared list items.
Type `str`. """
self.parameter = None
""" Parameters to the transform.
List of `StructureMapGroupRuleTargetParameter` items (represented as `dict` in JSON). """
self.transform = None
""" create | copy +.
Type `str`. """
self.variable = None
""" Named context for field, if desired, and a field is specified.
Type `str`. """
super(StructureMapGroupRuleTarget, self).__init__(jsondict=jsondict, strict=strict)
def elementProperties(self):
js = super(StructureMapGroupRuleTarget, self).elementProperties()
js.extend([
("context", "context", str, False, None, False),
("contextType", "contextType", str, False, None, False),
("element", "element", str, False, None, False),
("listMode", "listMode", str, True, None, False),
("listRuleId", "listRuleId", str, False, None, False),
("parameter", "parameter", StructureMapGroupRuleTargetParameter, True, None, False),
("transform", "transform", str, False, None, False),
("variable", "variable", str, False, None, False),
])
return js
class StructureMapGroupRuleTargetParameter(backboneelement.BackboneElement):
""" Parameters to the transform.
"""
resource_type = "StructureMapGroupRuleTargetParameter"
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.valueBoolean = None
""" Parameter value - variable or literal.
Type `bool`. """
self.valueDecimal = None
""" Parameter value - variable or literal.
Type `float`. """
self.valueId = None
""" Parameter value - variable or literal.
Type `str`. """
self.valueInteger = None
""" Parameter value - variable or literal.
Type `int`. """
self.valueString = None
""" Parameter value - variable or literal.
Type `str`. """
super(StructureMapGroupRuleTargetParameter, self).__init__(jsondict=jsondict, strict=strict)
def elementProperties(self):
js = super(StructureMapGroupRuleTargetParameter, self).elementProperties()
js.extend([
("valueBoolean", "valueBoolean", bool, False, "value", True),
("valueDecimal", "valueDecimal", float, False, "value", True),
("valueId", "valueId", str, False, "value", True),
("valueInteger", "valueInteger", int, False, "value", True),
("valueString", "valueString", str, False, "value", True),
])
return js
class StructureMapStructure(backboneelement.BackboneElement):
""" Structure Definition used by this map.
A structure definition used by this map. The structure definition may
describe instances that are converted, or the instances that are produced.
"""
resource_type = "StructureMapStructure"
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.alias = None
""" Name for type in this map.
Type `str`. """
self.documentation = None
""" Documentation on use of structure.
Type `str`. """
self.mode = None
""" source | queried | target | produced.
Type `str`. """
self.url = None
""" Canonical reference to structure definition.
Type `str`. """
super(StructureMapStructure, self).__init__(jsondict=jsondict, strict=strict)
def elementProperties(self):
js = super(StructureMapStructure, self).elementProperties()
js.extend([
("alias", "alias", str, False, None, False),
("documentation", "documentation", str, False, None, False),
("mode", "mode", str, False, None, True),
("url", "url", str, False, None, True),
])
return js
import sys
try:
from . import address
except ImportError:
address = sys.modules[__package__ + '.address']
try:
from . import age
except ImportError:
age = sys.modules[__package__ + '.age']
try:
from . import annotation
except ImportError:
annotation = sys.modules[__package__ + '.annotation']
try:
from . import attachment
except ImportError:
attachment = sys.modules[__package__ + '.attachment']
try:
from . import codeableconcept
except ImportError:
codeableconcept = sys.modules[__package__ + '.codeableconcept']
try:
from . import coding
except ImportError:
coding = sys.modules[__package__ + '.coding']
try:
from . import contactdetail
except ImportError:
contactdetail = sys.modules[__package__ + '.contactdetail']
try:
from . import contactpoint
except ImportError:
contactpoint = sys.modules[__package__ + '.contactpoint']
try:
from . import contributor
except ImportError:
contributor = sys.modules[__package__ + '.contributor']
try:
from . import count
except ImportError:
count = sys.modules[__package__ + '.count']
try:
from . import datarequirement
except ImportError:
datarequirement = sys.modules[__package__ + '.datarequirement']
try:
from . import distance
except ImportError:
distance = sys.modules[__package__ + '.distance']
try:
from . import dosage
except ImportError:
dosage = sys.modules[__package__ + '.dosage']
try:
from . import duration
except ImportError:
duration = sys.modules[__package__ + '.duration']
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 humanname
except ImportError:
humanname = sys.modules[__package__ + '.humanname']
try:
from . import identifier
except ImportError:
identifier = sys.modules[__package__ + '.identifier']
try:
from . import money
except ImportError:
money = sys.modules[__package__ + '.money']
try:
from . import parameterdefinition
except ImportError:
parameterdefinition = sys.modules[__package__ + '.parameterdefinition']
try:
from . import period
except ImportError:
period = sys.modules[__package__ + '.period']
try:
from . import quantity
except ImportError:
quantity = sys.modules[__package__ + '.quantity']
try:
from . import range
except ImportError:
range = sys.modules[__package__ + '.range']
try:
from . import ratio
except ImportError:
ratio = sys.modules[__package__ + '.ratio']
try:
from . import relatedartifact
except ImportError:
relatedartifact = sys.modules[__package__ + '.relatedartifact']
try:
from . import sampleddata
except ImportError:
sampleddata = sys.modules[__package__ + '.sampleddata']
try:
from . import signature
except ImportError:
signature = sys.modules[__package__ + '.signature']
try:
from . import timing
except ImportError:
timing = sys.modules[__package__ + '.timing']
try:
from . import triggerdefinition
except ImportError:
triggerdefinition = sys.modules[__package__ + '.triggerdefinition']
try:
from . import usagecontext
except ImportError:
usagecontext = sys.modules[__package__ + '.usagecontext']