1 | <?php |
||
49 | class ClinicalDocument |
||
50 | { |
||
51 | const NS_CDA = ''; |
||
52 | const NS_CDA_URI = 'urn:hl7-org:v3'; |
||
53 | const NS_XSI_URI = 'http://www.w3.org/2001/XMLSchema-instance'; |
||
54 | |||
55 | |||
56 | /** |
||
57 | * Reference manager assigned to this document |
||
58 | * |
||
59 | * @var ReferenceManager |
||
60 | */ |
||
61 | private $referenceManager; |
||
62 | |||
63 | /** |
||
64 | * the templateId of the document. Will be inserted into doc, like |
||
65 | * |
||
66 | * ``` |
||
67 | * <typeId> |
||
68 | * ``` |
||
69 | * |
||
70 | * TODO : always equals to '2.16.840.1.113883.3.27.1776' |
||
71 | * |
||
72 | * @var TypeId |
||
73 | */ |
||
74 | private $typeId; |
||
75 | |||
76 | /** |
||
77 | * |
||
78 | * @var InstanceIdentifier[] |
||
79 | */ |
||
80 | private $templateId = array(); |
||
81 | |||
82 | /** |
||
83 | * |
||
84 | * @var CodedSimple |
||
85 | */ |
||
86 | private $languageCode; |
||
87 | |||
88 | /** |
||
89 | * the title of the document |
||
90 | * |
||
91 | * @var Title |
||
92 | */ |
||
93 | private $title; |
||
94 | |||
95 | /** |
||
96 | * the root component |
||
97 | * |
||
98 | * @var Component\RootBodyComponent |
||
99 | */ |
||
100 | private $rootComponent; |
||
101 | |||
102 | /** |
||
103 | * |
||
104 | * @var EffectiveTime |
||
105 | */ |
||
106 | private $effectiveTime; |
||
107 | |||
108 | /** |
||
109 | * |
||
110 | * @var Id |
||
111 | */ |
||
112 | private $id; |
||
113 | |||
114 | /** |
||
115 | * |
||
116 | * @var Code |
||
117 | */ |
||
118 | private $code; |
||
119 | |||
120 | /** |
||
121 | * |
||
122 | * @var RecordTarget |
||
123 | */ |
||
124 | private $recordTarget; |
||
125 | |||
126 | /** |
||
127 | * |
||
128 | * @var ConfidentialityCode |
||
129 | */ |
||
130 | private $confidentialityCode; |
||
131 | |||
132 | /** |
||
133 | * |
||
134 | * @var Custodian |
||
135 | */ |
||
136 | private $custodian; |
||
137 | |||
138 | /** |
||
139 | * |
||
140 | * @var Author |
||
141 | */ |
||
142 | private $author; |
||
143 | |||
144 | public function __construct() |
||
155 | |||
156 | /** |
||
157 | * |
||
158 | * @return ReferenceManager |
||
159 | */ |
||
160 | function getReferenceManager(): ReferenceManager |
||
164 | |||
165 | /** |
||
166 | * |
||
167 | * @return string |
||
168 | */ |
||
169 | public function getTitle() |
||
173 | |||
174 | /** |
||
175 | * |
||
176 | * @param \PHPHealth\CDA\Elements\Title $title |
||
177 | * @return \PHPHealth\CDA2\ClinicalDocument |
||
178 | */ |
||
179 | public function setTitle(Title $title) |
||
185 | |||
186 | function getTemplateId(): array |
||
190 | |||
191 | function setTemplateId(array $templateId) |
||
207 | |||
208 | function addTtemplateId(InstanceIdentifier $identifier) |
||
212 | |||
213 | function getLanguageCode() |
||
217 | |||
218 | function setLanguageCode(CodedSimple $languageCode) |
||
224 | |||
225 | |||
226 | /** |
||
227 | * |
||
228 | * @return EffectiveTime |
||
229 | */ |
||
230 | public function getEffectiveTime() |
||
234 | |||
235 | /** |
||
236 | * |
||
237 | * @param EffectiveTime $effectiveTime |
||
238 | * @return $this |
||
239 | */ |
||
240 | public function setEffectiveTime(EffectiveTime $effectiveTime) |
||
246 | |||
247 | /** |
||
248 | * |
||
249 | * @return Id |
||
250 | */ |
||
251 | public function getId() |
||
255 | |||
256 | /** |
||
257 | * |
||
258 | * @param Id $id |
||
259 | * @return $this |
||
260 | */ |
||
261 | public function setId(Id $id) |
||
267 | |||
268 | /** |
||
269 | * Get the code of the document |
||
270 | * |
||
271 | * @return Code |
||
272 | */ |
||
273 | public function getCode() |
||
277 | |||
278 | /** |
||
279 | * Set the code of the document |
||
280 | * |
||
281 | * @param Code $code |
||
282 | * @return $this |
||
283 | */ |
||
284 | public function setCode(Code $code) |
||
290 | |||
291 | /** |
||
292 | * |
||
293 | * @return ConfidentialityCode |
||
294 | */ |
||
295 | public function getConfidentialityCode() |
||
299 | |||
300 | /** |
||
301 | * |
||
302 | * @param ConfidentialityCode $confidentialityCode |
||
303 | * @return $this |
||
304 | */ |
||
305 | public function setConfidentialityCode(ConfidentialityCode $confidentialityCode) |
||
311 | |||
312 | |||
313 | /** |
||
314 | * |
||
315 | * @return Component\RootBodyComponent |
||
316 | */ |
||
317 | public function getRootComponent() |
||
321 | |||
322 | public function getRecordTarget() |
||
326 | |||
327 | public function setRecordTarget(RecordTarget $recordTarget) |
||
333 | |||
334 | public function getAuthor(): Author |
||
338 | |||
339 | public function hasAuthor() |
||
343 | |||
344 | public function setAuthor(Author $author) |
||
349 | |||
350 | /** |
||
351 | * |
||
352 | * @return Custodian |
||
353 | */ |
||
354 | public function getCustodian() |
||
358 | |||
359 | /** |
||
360 | * |
||
361 | * @param Custodian $custodian |
||
362 | * @return $this |
||
363 | */ |
||
364 | public function setCustodian(Custodian $custodian) |
||
369 | |||
370 | |||
371 | |||
372 | |||
373 | |||
374 | /** |
||
375 | * |
||
376 | * @return \DOMDocument |
||
377 | */ |
||
378 | public function toDOMDocument(\DOMDocument $dom = null) |
||
451 | } |
||
452 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.