1 | <?php |
||
49 | class ClinicalDocument |
||
50 | { |
||
51 | const NS_CDA = ''; |
||
52 | |||
53 | /** |
||
54 | * Reference manager assigned to this document |
||
55 | * |
||
56 | * @var ReferenceManager |
||
57 | */ |
||
58 | private $referenceManager; |
||
59 | |||
60 | /** |
||
61 | * the templateId of the document. Will be inserted into doc, like |
||
62 | * |
||
63 | * ``` |
||
64 | * <typeId> |
||
65 | * ``` |
||
66 | * |
||
67 | * TODO : always equals to '2.16.840.1.113883.3.27.1776' |
||
68 | * |
||
69 | * @var TypeId |
||
70 | */ |
||
71 | private $typeId; |
||
72 | |||
73 | /** |
||
74 | * |
||
75 | * @var InstanceIdentifier[] |
||
76 | */ |
||
77 | private $templateId = array(); |
||
78 | |||
79 | /** |
||
80 | * |
||
81 | * @var CodedSimple |
||
82 | */ |
||
83 | private $languageCode; |
||
84 | |||
85 | /** |
||
86 | * the title of the document |
||
87 | * |
||
88 | * @var Title |
||
89 | */ |
||
90 | private $title; |
||
91 | |||
92 | /** |
||
93 | * the root component |
||
94 | * |
||
95 | * @var Component\RootBodyComponent |
||
96 | */ |
||
97 | private $rootComponent; |
||
98 | |||
99 | /** |
||
100 | * |
||
101 | * @var EffectiveTime |
||
102 | */ |
||
103 | private $effectiveTime; |
||
104 | |||
105 | /** |
||
106 | * |
||
107 | * @var Id |
||
108 | */ |
||
109 | private $id; |
||
110 | |||
111 | /** |
||
112 | * |
||
113 | * @var Code |
||
114 | */ |
||
115 | private $code; |
||
116 | |||
117 | /** |
||
118 | * |
||
119 | * @var RecordTarget |
||
120 | */ |
||
121 | private $recordTarget; |
||
122 | |||
123 | /** |
||
124 | * |
||
125 | * @var ConfidentialityCode |
||
126 | */ |
||
127 | private $confidentialityCode; |
||
128 | |||
129 | /** |
||
130 | * |
||
131 | * @var Custodian |
||
132 | */ |
||
133 | private $custodian; |
||
134 | |||
135 | /** |
||
136 | * |
||
137 | * @var Author |
||
138 | */ |
||
139 | private $author; |
||
140 | |||
141 | public function __construct() |
||
152 | |||
153 | /** |
||
154 | * |
||
155 | * @return ReferenceManager |
||
156 | */ |
||
157 | function getReferenceManager(): ReferenceManager |
||
161 | |||
162 | /** |
||
163 | * |
||
164 | * @return string |
||
165 | */ |
||
166 | public function getTitle() |
||
170 | |||
171 | /** |
||
172 | * |
||
173 | * @param \PHPHealth\CDA\Elements\Title $title |
||
174 | * @return \PHPHealth\CDA2\ClinicalDocument |
||
175 | */ |
||
176 | public function setTitle(Title $title) |
||
182 | |||
183 | function getTemplateId(): array |
||
187 | |||
188 | function setTemplateId(array $templateId) |
||
204 | |||
205 | function addTtemplateId(InstanceIdentifier $identifier) |
||
209 | |||
210 | function getLanguageCode() |
||
214 | |||
215 | function setLanguageCode(CodedSimple $languageCode) |
||
221 | |||
222 | |||
223 | /** |
||
224 | * |
||
225 | * @return EffectiveTime |
||
226 | */ |
||
227 | public function getEffectiveTime() |
||
231 | |||
232 | /** |
||
233 | * |
||
234 | * @param EffectiveTime $effectiveTime |
||
235 | * @return $this |
||
236 | */ |
||
237 | public function setEffectiveTime(EffectiveTime $effectiveTime) |
||
243 | |||
244 | /** |
||
245 | * |
||
246 | * @return Id |
||
247 | */ |
||
248 | public function getId() |
||
252 | |||
253 | /** |
||
254 | * |
||
255 | * @param Id $id |
||
256 | * @return $this |
||
257 | */ |
||
258 | public function setId(Id $id) |
||
264 | |||
265 | /** |
||
266 | * Get the code of the document |
||
267 | * |
||
268 | * @return Code |
||
269 | */ |
||
270 | public function getCode() |
||
274 | |||
275 | /** |
||
276 | * Set the code of the document |
||
277 | * |
||
278 | * @param Code $code |
||
279 | * @return $this |
||
280 | */ |
||
281 | public function setCode(Code $code) |
||
287 | |||
288 | /** |
||
289 | * |
||
290 | * @return ConfidentialityCode |
||
291 | */ |
||
292 | public function getConfidentialityCode() |
||
296 | |||
297 | /** |
||
298 | * |
||
299 | * @param ConfidentialityCode $confidentialityCode |
||
300 | * @return $this |
||
301 | */ |
||
302 | public function setConfidentialityCode(ConfidentialityCode $confidentialityCode) |
||
308 | |||
309 | |||
310 | /** |
||
311 | * |
||
312 | * @return Component\RootBodyComponent |
||
313 | */ |
||
314 | public function getRootComponent() |
||
318 | |||
319 | public function getRecordTarget() |
||
323 | |||
324 | public function setRecordTarget(RecordTarget $recordTarget) |
||
330 | |||
331 | public function getAuthor(): Author |
||
335 | |||
336 | public function hasAuthor() |
||
340 | |||
341 | public function setAuthor(Author $author) |
||
346 | |||
347 | /** |
||
348 | * |
||
349 | * @return Custodian |
||
350 | */ |
||
351 | public function getCustodian() |
||
355 | |||
356 | /** |
||
357 | * |
||
358 | * @param Custodian $custodian |
||
359 | * @return $this |
||
360 | */ |
||
361 | public function setCustodian(Custodian $custodian) |
||
366 | |||
367 | |||
368 | |||
369 | |||
370 | |||
371 | /** |
||
372 | * |
||
373 | * @return \DOMDocument |
||
374 | */ |
||
375 | public function toDOMDocument(\DOMDocument $dom = null) |
||
448 | } |
||
449 |
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.