-
Notifications
You must be signed in to change notification settings - Fork 109
/
deviceusestatement.py
125 lines (103 loc) · 4.2 KB
/
deviceusestatement.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 1.0.2.7202 (http://hl7.org/fhir/StructureDefinition/DeviceUseStatement) on 2019-05-14.
# 2019, SMART Health IT.
from . import (codeableconcept, domainresource, fhirdate, fhirreference,
identifier, period, timing)
class DeviceUseStatement(domainresource.DomainResource):
""" None.
A record of a device being used by a patient where the record is the result
of a report from the patient or another clinician.
"""
resource_name = "DeviceUseStatement"
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.bodySiteCodeableConcept = None
""" Target body site.
Type `CodeableConcept` (represented as `dict` in JSON). """
self.bodySiteReference = None
""" Target body site.
Type `FHIRReference` referencing `BodySite` (represented as `dict` in JSON). """
self.device = None
""" None.
Type `FHIRReference` referencing `Device` (represented as `dict` in JSON). """
self.identifier = None
""" None.
List of `Identifier` items (represented as `dict` in JSON). """
self.indication = None
""" None.
List of `CodeableConcept` items (represented as `dict` in JSON). """
self.notes = None
""" None.
List of `str` items. """
self.recordedOn = None
""" None.
Type `FHIRDate` (represented as `str` in JSON). """
self.subject = None
""" None.
Type `FHIRReference` referencing `Patient` (represented as `dict` in JSON). """
self.timingDateTime = None
""" None.
Type `FHIRDate` (represented as `str` in JSON). """
self.timingPeriod = None
""" None.
Type `Period` (represented as `dict` in JSON). """
self.timingTiming = None
""" None.
Type `Timing` (represented as `dict` in JSON). """
self.whenUsed = None
""" None.
Type `Period` (represented as `dict` in JSON). """
super(DeviceUseStatement, self).__init__(jsondict=jsondict, strict=strict)
def elementProperties(self):
js = super(DeviceUseStatement, self).elementProperties()
js.extend(
[
(
"bodySiteCodeableConcept",
"bodySiteCodeableConcept",
codeableconcept.CodeableConcept,
False,
"bodySite",
False,
),
(
"bodySiteReference",
"bodySiteReference",
fhirreference.FHIRReference,
False,
"bodySite",
False,
),
("device", "device", fhirreference.FHIRReference, False, None, True),
("identifier", "identifier", identifier.Identifier, True, None, False),
(
"indication",
"indication",
codeableconcept.CodeableConcept,
True,
None,
False,
),
("notes", "notes", str, True, None, False),
("recordedOn", "recordedOn", fhirdate.FHIRDate, False, None, False),
("subject", "subject", fhirreference.FHIRReference, False, None, True),
(
"timingDateTime",
"timingDateTime",
fhirdate.FHIRDate,
False,
"timing",
False,
),
("timingPeriod", "timingPeriod", period.Period, False, "timing", False),
("timingTiming", "timingTiming", timing.Timing, False, "timing", False),
("whenUsed", "whenUsed", period.Period, False, None, False),
]
)
return js