1 | <?php |
||
47 | class ClinicalDocument |
||
48 | { |
||
49 | const NS_CDA = ''; |
||
50 | |||
51 | /** |
||
52 | * the templateId of the document. Will be inserted into doc, like |
||
53 | * |
||
54 | * ``` |
||
55 | * <typeId> |
||
56 | * ``` |
||
57 | * |
||
58 | * TODO : always equals to '2.16.840.1.113883.3.27.1776' |
||
59 | * |
||
60 | * @var TypeId |
||
61 | */ |
||
62 | private $typeId; |
||
63 | |||
64 | /** |
||
65 | * the title of the document |
||
66 | * |
||
67 | * @var Title |
||
68 | */ |
||
69 | private $title; |
||
70 | |||
71 | /** |
||
72 | * the root component |
||
73 | * |
||
74 | * @var Component\RootBodyComponent |
||
75 | */ |
||
76 | private $rootComponent; |
||
77 | |||
78 | /** |
||
79 | * |
||
80 | * @var EffectiveTime |
||
81 | */ |
||
82 | private $effectiveTime; |
||
83 | |||
84 | /** |
||
85 | * |
||
86 | * @var Id |
||
87 | */ |
||
88 | private $id; |
||
89 | |||
90 | /** |
||
91 | * |
||
92 | * @var Code |
||
93 | */ |
||
94 | private $code; |
||
95 | |||
96 | /** |
||
97 | * |
||
98 | * @var RecordTarget |
||
99 | */ |
||
100 | private $recordTarget; |
||
101 | |||
102 | /** |
||
103 | * |
||
104 | * @var ConfidentialityCode |
||
105 | */ |
||
106 | private $confidentialityCode; |
||
107 | |||
108 | /** |
||
109 | * |
||
110 | * @var Custodian |
||
111 | */ |
||
112 | private $custodian; |
||
113 | |||
114 | /** |
||
115 | * |
||
116 | * @var Author |
||
117 | */ |
||
118 | private $author; |
||
119 | |||
120 | public function __construct() |
||
130 | |||
131 | /** |
||
132 | * |
||
133 | * @return string |
||
134 | */ |
||
135 | public function getTitle() |
||
139 | |||
140 | /** |
||
141 | * |
||
142 | * @param \PHPHealth\CDA\Elements\Title $title |
||
143 | * @return \PHPHealth\CDA2\ClinicalDocument |
||
144 | */ |
||
145 | public function setTitle(Title $title) |
||
151 | |||
152 | /** |
||
153 | * |
||
154 | * @return EffectiveTime |
||
155 | */ |
||
156 | public function getEffectiveTime() |
||
160 | |||
161 | /** |
||
162 | * |
||
163 | * @param EffectiveTime $effectiveTime |
||
164 | * @return $this |
||
165 | */ |
||
166 | public function setEffectiveTime(EffectiveTime $effectiveTime) |
||
172 | |||
173 | /** |
||
174 | * |
||
175 | * @return Id |
||
176 | */ |
||
177 | public function getId() |
||
181 | |||
182 | /** |
||
183 | * |
||
184 | * @param Id $id |
||
185 | * @return $this |
||
186 | */ |
||
187 | public function setId(Id $id) |
||
193 | |||
194 | /** |
||
195 | * Get the code of the document |
||
196 | * |
||
197 | * @return Code |
||
198 | */ |
||
199 | public function getCode() |
||
203 | |||
204 | /** |
||
205 | * Set the code of the document |
||
206 | * |
||
207 | * @param Code $code |
||
208 | * @return $this |
||
209 | */ |
||
210 | public function setCode(Code $code) |
||
216 | |||
217 | /** |
||
218 | * |
||
219 | * @return ConfidentialityCode |
||
220 | */ |
||
221 | public function getConfidentialityCode() |
||
225 | |||
226 | /** |
||
227 | * |
||
228 | * @param ConfidentialityCode $confidentialityCode |
||
229 | * @return $this |
||
230 | */ |
||
231 | public function setConfidentialityCode(ConfidentialityCode $confidentialityCode) |
||
237 | |||
238 | |||
239 | /** |
||
240 | * |
||
241 | * @return Component\RootBodyComponent |
||
242 | */ |
||
243 | public function getRootComponent() |
||
247 | |||
248 | public function getRecordTarget() |
||
252 | |||
253 | public function setRecordTarget(RecordTarget $recordTarget) |
||
259 | |||
260 | public function getAuthor(): Author |
||
264 | |||
265 | public function hasAuthor() |
||
269 | |||
270 | public function setAuthor(Author $author) |
||
275 | |||
276 | /** |
||
277 | * |
||
278 | * @return Custodian |
||
279 | */ |
||
280 | public function getCustodian() |
||
284 | |||
285 | /** |
||
286 | * |
||
287 | * @param Custodian $custodian |
||
288 | * @return $this |
||
289 | */ |
||
290 | public function setCustodian(Custodian $custodian) |
||
295 | |||
296 | |||
297 | |||
298 | |||
299 | |||
300 | /** |
||
301 | * |
||
302 | * @return \DOMDocument |
||
303 | */ |
||
304 | public function toDOMDocument() |
||
363 | } |
||
364 |