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/Meta) on 2019-05-07.
# 2019, SMART Health IT.
from . import element
class Meta(element.Element):
""" Metadata about a resource.
The metadata about a resource. This is content in the resource that is
maintained by the infrastructure. Changes to the content might not always
be associated with version changes to the resource.
"""
resource_type = "Meta"
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.lastUpdated = None
""" When the resource version last changed.
Type `FHIRDate` (represented as `str` in JSON). """
self.profile = None
""" Profiles this resource claims to conform to.
List of `str` items. """
self.security = None
""" Security Labels applied to this resource.
List of `Coding` items (represented as `dict` in JSON). """
self.source = None
""" Identifies where the resource comes from.
Type `str`. """
self.tag = None
""" Tags applied to this resource.
List of `Coding` items (represented as `dict` in JSON). """
self.versionId = None
""" Version specific identifier.
Type `str`. """
super(Meta, self).__init__(jsondict=jsondict, strict=strict)
def elementProperties(self):
js = super(Meta, self).elementProperties()
js.extend([
("lastUpdated", "lastUpdated", fhirdate.FHIRDate, False, None, False),
("profile", "profile", str, True, None, False),
("security", "security", coding.Coding, True, None, False),
("source", "source", str, False, None, False),
("tag", "tag", coding.Coding, True, None, False),
("versionId", "versionId", str, False, None, False),
])
return js
import sys
try:
from . import coding
except ImportError:
coding = sys.modules[__package__ + '.coding']
try:
from . import fhirdate
except ImportError:
fhirdate = sys.modules[__package__ + '.fhirdate']