@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | |
108 | 108 | /** |
109 | 109 | * |
110 | - * @return string |
|
110 | + * @return Title |
|
111 | 111 | */ |
112 | 112 | function getTitle() |
113 | 113 | { |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | /** |
118 | 118 | * |
119 | 119 | * @param \PHPHealth\CDA\Elements\Title $title |
120 | - * @return \PHPHealth\CDA2\ClinicalDocument |
|
120 | + * @return ClinicalDocument |
|
121 | 121 | */ |
122 | 122 | function setTitle(Title $title) |
123 | 123 | { |
@@ -26,9 +26,7 @@ |
||
26 | 26 | |
27 | 27 | namespace PHPHealth\CDA; |
28 | 28 | |
29 | -use PHPHealth\CDA\DataType\Quantity\DateAndTime\TimeStamp; |
|
30 | 29 | use PHPHealth\CDA\DataType\Identifier\InstanceIdentifier; |
31 | -use PHPHealth\CDA\DataType\Code\CodedValue; |
|
32 | 30 | use PHPHealth\CDA\Elements\Code; |
33 | 31 | use PHPHealth\CDA\Elements\Title; |
34 | 32 | use PHPHealth\CDA\Elements\EffectiveTime; |
@@ -234,7 +234,7 @@ |
||
234 | 234 | $dom->appendChild($doc); |
235 | 235 | // set the NS |
236 | 236 | $doc->setAttributeNS('http://www.w3.org/2001/XMLSchema-instance', |
237 | - 'xsi:schemaLocation','urn:hl7-org:v3 CDA.xsd'); |
|
237 | + 'xsi:schemaLocation', 'urn:hl7-org:v3 CDA.xsd'); |
|
238 | 238 | // add typeId |
239 | 239 | $doc->appendChild($this->typeId->toDOMElement($dom)); |
240 | 240 | // add id |
@@ -73,6 +73,9 @@ discard block |
||
73 | 73 | return $this; |
74 | 74 | } |
75 | 75 | |
76 | + /** |
|
77 | + * @return string |
|
78 | + */ |
|
76 | 79 | public function getCodeSystem() |
77 | 80 | { |
78 | 81 | return $this->codeSystem; |
@@ -83,6 +86,9 @@ discard block |
||
83 | 86 | return !empty($this->getCodeSystem()); |
84 | 87 | } |
85 | 88 | |
89 | + /** |
|
90 | + * @return string |
|
91 | + */ |
|
86 | 92 | public function getCodeSystemName() |
87 | 93 | { |
88 | 94 | return $this->codeSystemName; |
@@ -93,6 +99,9 @@ discard block |
||
93 | 99 | return !empty($this->getCodeSystemName()); |
94 | 100 | } |
95 | 101 | |
102 | + /** |
|
103 | + * @return string |
|
104 | + */ |
|
96 | 105 | public function getDisplayName() |
97 | 106 | { |
98 | 107 | return $this->displayName; |
@@ -137,7 +137,7 @@ |
||
137 | 137 | return $this; |
138 | 138 | } |
139 | 139 | |
140 | - public function setValueToElement(\DOMElement &$el, \DOMDocument $doc = null) |
|
140 | + public function setValueToElement(\DOMElement&$el, \DOMDocument $doc = null) |
|
141 | 141 | { |
142 | 142 | $el->setAttribute(CDA::NS_CDA."code", $this->getCode()); |
143 | 143 |
@@ -61,7 +61,7 @@ |
||
61 | 61 | * {@overrideDoc} |
62 | 62 | * |
63 | 63 | * @param \DOMDocument $doc |
64 | - * @return type |
|
64 | + * @return \DOMNode |
|
65 | 65 | */ |
66 | 66 | public function toDOMElement(\DOMDocument $doc) |
67 | 67 | { |
@@ -62,13 +62,13 @@ |
||
62 | 62 | } |
63 | 63 | |
64 | 64 | |
65 | - public function setValueToElement(\DOMElement &$el, \DOMDocument $doc = null) |
|
65 | + public function setValueToElement(\DOMElement&$el, \DOMDocument $doc = null) |
|
66 | 66 | { |
67 | 67 | if (count($this->parts) > 0) { |
68 | 68 | $name = $doc->createElement(CDA::NS_CDA.'name'); |
69 | 69 | $el->appendChild($name); |
70 | 70 | |
71 | - foreach($this->parts as $part => $value) { |
|
71 | + foreach ($this->parts as $part => $value) { |
|
72 | 72 | $partElement = $doc->createElement(CDA::NS_CDA.$part, $value); |
73 | 73 | $name->appendChild($partElement); |
74 | 74 | } |
@@ -64,7 +64,7 @@ |
||
64 | 64 | return $this; |
65 | 65 | } |
66 | 66 | |
67 | - public function setValueToElement(\DOMElement &$el, \DOMDocument $doc = null) |
|
67 | + public function setValueToElement(\DOMElement&$el, \DOMDocument $doc = null) |
|
68 | 68 | { |
69 | 69 | $name = $doc->createElement('name'); |
70 | 70 | $name->appendChild($doc->createTextNode($this->getString())); |
@@ -64,7 +64,7 @@ |
||
64 | 64 | return $this; |
65 | 65 | } |
66 | 66 | |
67 | - public function setValueToElement(\DOMElement &$el, \DOMDocument $doc = null) |
|
67 | + public function setValueToElement(\DOMElement&$el, \DOMDocument $doc = null) |
|
68 | 68 | { |
69 | 69 | $content = new \DOMText($this->getContent()); |
70 | 70 | $el->appendChild($content); |
@@ -145,7 +145,7 @@ |
||
145 | 145 | return $this; |
146 | 146 | } |
147 | 147 | |
148 | - public function setValueToElement(\DOMElement &$el, \DOMDocument $doc = null) |
|
148 | + public function setValueToElement(\DOMElement&$el, \DOMDocument $doc = null) |
|
149 | 149 | { |
150 | 150 | $el->setAttribute(CD::NS_CDA.'mediaType', $this->getMediaType()); |
151 | 151 |
@@ -111,7 +111,7 @@ |
||
111 | 111 | return $this->getAssigningAuthorityName() !== null; |
112 | 112 | } |
113 | 113 | |
114 | - public function setValueToElement(\DOMElement &$el, \DOMDocument $doc = null) |
|
114 | + public function setValueToElement(\DOMElement&$el, \DOMDocument $doc = null) |
|
115 | 115 | { |
116 | 116 | $el->setAttribute(CDA::NS_CDA."root", $this->getRoot()); |
117 | 117 |
@@ -33,13 +33,13 @@ |
||
33 | 33 | */ |
34 | 34 | abstract class AnyType |
35 | 35 | { |
36 | - /** |
|
37 | - * |
|
38 | - * Add attribute to the given element. |
|
39 | - * |
|
40 | - * The data type are responsible to add the given attribute, content child |
|
41 | - * to the Element. |
|
42 | - * |
|
43 | - */ |
|
36 | + /** |
|
37 | + * |
|
38 | + * Add attribute to the given element. |
|
39 | + * |
|
40 | + * The data type are responsible to add the given attribute, content child |
|
41 | + * to the Element. |
|
42 | + * |
|
43 | + */ |
|
44 | 44 | abstract public function setValueToElement(\DOMElement &$el, \DOMDocument $doc = null); |
45 | 45 | } |
@@ -41,5 +41,5 @@ |
||
41 | 41 | * to the Element. |
42 | 42 | * |
43 | 43 | */ |
44 | - abstract public function setValueToElement(\DOMElement &$el, \DOMDocument $doc = null); |
|
44 | + abstract public function setValueToElement(\DOMElement&$el, \DOMDocument $doc = null); |
|
45 | 45 | } |