1 | <?php |
||
45 | class ClinicalDocument |
||
46 | { |
||
47 | const NS_CDA = ''; |
||
48 | |||
49 | /** |
||
50 | * the templateId of the document. Will be inserted into doc, like |
||
51 | * |
||
52 | * ``` |
||
53 | * <typeId> |
||
54 | * ``` |
||
55 | * |
||
56 | * TODO : always equals to '2.16.840.1.113883.3.27.1776' |
||
57 | * |
||
58 | * @var TypeId |
||
59 | */ |
||
60 | private $typeId; |
||
61 | |||
62 | /** |
||
63 | * the title of the document |
||
64 | * |
||
65 | * @var Title |
||
66 | */ |
||
67 | private $title; |
||
68 | |||
69 | /** |
||
70 | * the root component |
||
71 | * |
||
72 | * @var Component\RootBodyComponent |
||
73 | */ |
||
74 | private $rootComponent; |
||
75 | |||
76 | /** |
||
77 | * |
||
78 | * @var EffectiveTime |
||
79 | */ |
||
80 | private $effectiveTime; |
||
81 | |||
82 | /** |
||
83 | * |
||
84 | * @var Id |
||
85 | */ |
||
86 | private $id; |
||
87 | |||
88 | /** |
||
89 | * |
||
90 | * @var Code |
||
91 | */ |
||
92 | private $code; |
||
93 | |||
94 | /** |
||
95 | * |
||
96 | * @var RecordTarget |
||
97 | */ |
||
98 | private $recordTarget; |
||
99 | |||
100 | /** |
||
101 | * |
||
102 | * @var ConfidentialityCode |
||
103 | */ |
||
104 | private $confidentialityCode; |
||
105 | |||
106 | public function __construct() |
||
116 | |||
117 | /** |
||
118 | * |
||
119 | * @return string |
||
120 | */ |
||
121 | public function getTitle() |
||
125 | |||
126 | /** |
||
127 | * |
||
128 | * @param \PHPHealth\CDA\Elements\Title $title |
||
129 | * @return \PHPHealth\CDA2\ClinicalDocument |
||
130 | */ |
||
131 | public function setTitle(Title $title) |
||
137 | |||
138 | /** |
||
139 | * |
||
140 | * @return EffectiveTime |
||
141 | */ |
||
142 | public function getEffectiveTime() |
||
146 | |||
147 | /** |
||
148 | * |
||
149 | * @param EffectiveTime $effectiveTime |
||
150 | * @return $this |
||
151 | */ |
||
152 | public function setEffectiveTime(EffectiveTime $effectiveTime) |
||
158 | |||
159 | /** |
||
160 | * |
||
161 | * @return Id |
||
162 | */ |
||
163 | public function getId() |
||
167 | |||
168 | /** |
||
169 | * |
||
170 | * @param Id $id |
||
171 | * @return $this |
||
172 | */ |
||
173 | public function setId(Id $id) |
||
179 | |||
180 | /** |
||
181 | * Get the code of the document |
||
182 | * |
||
183 | * @return Code |
||
184 | */ |
||
185 | public function getCode() |
||
189 | |||
190 | /** |
||
191 | * Set the code of the document |
||
192 | * |
||
193 | * @param Code $code |
||
194 | * @return $this |
||
195 | */ |
||
196 | public function setCode(Code $code) |
||
202 | |||
203 | /** |
||
204 | * |
||
205 | * @return ConfidentialityCode |
||
206 | */ |
||
207 | public function getConfidentialityCode() |
||
211 | |||
212 | /** |
||
213 | * |
||
214 | * @param ConfidentialityCode $confidentialityCode |
||
215 | * @return $this |
||
216 | */ |
||
217 | public function setConfidentialityCode(ConfidentialityCode $confidentialityCode) |
||
223 | |||
224 | |||
225 | /** |
||
226 | * |
||
227 | * @return Component\RootBodyComponent |
||
228 | */ |
||
229 | public function getRootComponent() |
||
233 | |||
234 | public function getRecordTarget() |
||
238 | |||
239 | public function setRecordTarget(RecordTarget $recordTarget) |
||
245 | |||
246 | |||
247 | /** |
||
248 | * |
||
249 | * @return \DOMDocument |
||
250 | */ |
||
251 | public function toDOMDocument() |
||
301 | } |
||
302 |