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/DeviceRequest) on 2019-05-07.
# 2019, SMART Health IT.
from . import domainresource
class DeviceRequest(domainresource.DomainResource):
""" Medical device request.
Represents a request for a patient to employ a medical device. The device
may be an implantable device, or an external assistive device, such as a
walker.
"""
resource_type = "DeviceRequest"
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.authoredOn = None
""" When recorded.
Type `FHIRDate` (represented as `str` in JSON). """
self.basedOn = None
""" What request fulfills.
List of `FHIRReference` items (represented as `dict` in JSON). """
self.codeCodeableConcept = None
""" Device requested.
Type `CodeableConcept` (represented as `dict` in JSON). """
self.codeReference = None
""" Device requested.
Type `FHIRReference` (represented as `dict` in JSON). """
self.encounter = None
""" Encounter motivating request.
Type `FHIRReference` (represented as `dict` in JSON). """
self.groupIdentifier = None
""" Identifier of composite request.
Type `Identifier` (represented as `dict` in JSON). """
self.identifier = None
""" External Request identifier.
List of `Identifier` items (represented as `dict` in JSON). """
self.instantiatesCanonical = None
""" Instantiates FHIR protocol or definition.
List of `str` items. """
self.instantiatesUri = None
""" Instantiates external protocol or definition.
List of `str` items. """
self.insurance = None
""" Associated insurance coverage.
List of `FHIRReference` items (represented as `dict` in JSON). """
self.intent = None
""" proposal | plan | original-order | encoded | reflex-order.
Type `str`. """
self.note = None
""" Notes or comments.
List of `Annotation` items (represented as `dict` in JSON). """
self.occurrenceDateTime = None
""" Desired time or schedule for use.
Type `FHIRDate` (represented as `str` in JSON). """
self.occurrencePeriod = None
""" Desired time or schedule for use.
Type `Period` (represented as `dict` in JSON). """
self.occurrenceTiming = None
""" Desired time or schedule for use.
Type `Timing` (represented as `dict` in JSON). """
self.parameter = None
""" Device details.
List of `DeviceRequestParameter` items (represented as `dict` in JSON). """
self.performer = None
""" Requested Filler.
Type `FHIRReference` (represented as `dict` in JSON). """
self.performerType = None
""" Filler role.
Type `CodeableConcept` (represented as `dict` in JSON). """
self.priorRequest = None
""" What request replaces.
List of `FHIRReference` items (represented as `dict` in JSON). """
self.priority = None
""" Indicates how quickly the {{title}} should be addressed with
respect to other requests.
Type `str`. """
self.reasonCode = None
""" Coded Reason for request.
List of `CodeableConcept` items (represented as `dict` in JSON). """
self.reasonReference = None
""" Linked Reason for request.
List of `FHIRReference` items (represented as `dict` in JSON). """
self.relevantHistory = None
""" Request provenance.
List of `FHIRReference` items (represented as `dict` in JSON). """
self.requester = None
""" Who/what is requesting diagnostics.
Type `FHIRReference` (represented as `dict` in JSON). """
self.status = None
""" draft | active | suspended | completed | entered-in-error |
cancelled.
Type `str`. """
self.subject = None
""" Focus of request.
Type `FHIRReference` (represented as `dict` in JSON). """
self.supportingInfo = None
""" Additional clinical information.
List of `FHIRReference` items (represented as `dict` in JSON). """
super(DeviceRequest, self).__init__(jsondict=jsondict, strict=strict)
def elementProperties(self):
js = super(DeviceRequest, self).elementProperties()
js.extend([
("authoredOn", "authoredOn", fhirdate.FHIRDate, False, None, False),
("basedOn", "basedOn", fhirreference.FHIRReference, True, None, False),
("codeCodeableConcept", "codeCodeableConcept", codeableconcept.CodeableConcept, False, "code", True),
("codeReference", "codeReference", fhirreference.FHIRReference, False, "code", True),
("encounter", "encounter", fhirreference.FHIRReference, False, None, False),
("groupIdentifier", "groupIdentifier", identifier.Identifier, False, None, False),
("identifier", "identifier", identifier.Identifier, True, None, False),
("instantiatesCanonical", "instantiatesCanonical", str, True, None, False),
("instantiatesUri", "instantiatesUri", str, True, None, False),
("insurance", "insurance", fhirreference.FHIRReference, True, None, False),
("intent", "intent", str, False, None, True),
("note", "note", annotation.Annotation, True, None, False),
("occurrenceDateTime", "occurrenceDateTime", fhirdate.FHIRDate, False, "occurrence", False),
("occurrencePeriod", "occurrencePeriod", period.Period, False, "occurrence", False),
("occurrenceTiming", "occurrenceTiming", timing.Timing, False, "occurrence", False),
("parameter", "parameter", DeviceRequestParameter, True, None, False),
("performer", "performer", fhirreference.FHIRReference, False, None, False),
("performerType", "performerType", codeableconcept.CodeableConcept, False, None, False),
("priorRequest", "priorRequest", fhirreference.FHIRReference, True, None, False),
("priority", "priority", str, False, None, False),
("reasonCode", "reasonCode", codeableconcept.CodeableConcept, True, None, False),
("reasonReference", "reasonReference", fhirreference.FHIRReference, True, None, False),
("relevantHistory", "relevantHistory", fhirreference.FHIRReference, True, None, False),
("requester", "requester", fhirreference.FHIRReference, False, None, False),
("status", "status", str, False, None, False),
("subject", "subject", fhirreference.FHIRReference, False, None, True),
("supportingInfo", "supportingInfo", fhirreference.FHIRReference, True, None, False),
])
return js
from . import backboneelement
class DeviceRequestParameter(backboneelement.BackboneElement):
""" Device details.
Specific parameters for the ordered item. For example, the prism value for
lenses.
"""
resource_type = "DeviceRequestParameter"
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.code = None
""" Device detail.
Type `CodeableConcept` (represented as `dict` in JSON). """
self.valueBoolean = None
""" Value of detail.
Type `bool`. """
self.valueCodeableConcept = None
""" Value of detail.
Type `CodeableConcept` (represented as `dict` in JSON). """
self.valueQuantity = None
""" Value of detail.
Type `Quantity` (represented as `dict` in JSON). """
self.valueRange = None
""" Value of detail.
Type `Range` (represented as `dict` in JSON). """
super(DeviceRequestParameter, self).__init__(jsondict=jsondict, strict=strict)
def elementProperties(self):
js = super(DeviceRequestParameter, self).elementProperties()
js.extend([
("code", "code", codeableconcept.CodeableConcept, False, None, False),
("valueBoolean", "valueBoolean", bool, False, "value", False),
("valueCodeableConcept", "valueCodeableConcept", codeableconcept.CodeableConcept, False, "value", False),
("valueQuantity", "valueQuantity", quantity.Quantity, False, "value", False),
("valueRange", "valueRange", range.Range, False, "value", False),
])
return js
import sys
try:
from . import annotation
except ImportError:
annotation = sys.modules[__package__ + '.annotation']
try:
from . import codeableconcept
except ImportError:
codeableconcept = sys.modules[__package__ + '.codeableconcept']
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 identifier
except ImportError:
identifier = sys.modules[__package__ + '.identifier']
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 timing
except ImportError:
timing = sys.modules[__package__ + '.timing']