@@ -1,26 +1,26 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * PatientZZ |
|
| 4 | - * |
|
| 5 | - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED |
|
| 6 | - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. |
|
| 7 | - * |
|
| 8 | - * Permission is hereby granted to use or copy this program |
|
| 9 | - * for any purpose, provided the above notices are retained on all copies. |
|
| 10 | - * Permission to modify the code and to distribute modified code is granted, |
|
| 11 | - * provided the above notices are retained, and a notice that the code was |
|
| 12 | - * modified is included with the above copyright notice. |
|
| 13 | - * |
|
| 14 | - * @category Wp |
|
| 15 | - * @package Punction |
|
| 16 | - * @author Andrzej Marcinkowski <[email protected]> |
|
| 17 | - * @copyright 2014 Wojewódzki Szpital Zespolony, Kalisz |
|
| 18 | - * @license MIT http://opensource.org/licenses/MIT |
|
| 19 | - * @version 1.0 $Format:%H$ |
|
| 20 | - * @link http:// |
|
| 21 | - * @since File available since Release 1.0.0 |
|
| 22 | - * PHP Version 5 |
|
| 23 | - */ |
|
| 3 | + * PatientZZ |
|
| 4 | + * |
|
| 5 | + * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED |
|
| 6 | + * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. |
|
| 7 | + * |
|
| 8 | + * Permission is hereby granted to use or copy this program |
|
| 9 | + * for any purpose, provided the above notices are retained on all copies. |
|
| 10 | + * Permission to modify the code and to distribute modified code is granted, |
|
| 11 | + * provided the above notices are retained, and a notice that the code was |
|
| 12 | + * modified is included with the above copyright notice. |
|
| 13 | + * |
|
| 14 | + * @category Wp |
|
| 15 | + * @package Punction |
|
| 16 | + * @author Andrzej Marcinkowski <[email protected]> |
|
| 17 | + * @copyright 2014 Wojewódzki Szpital Zespolony, Kalisz |
|
| 18 | + * @license MIT http://opensource.org/licenses/MIT |
|
| 19 | + * @version 1.0 $Format:%H$ |
|
| 20 | + * @link http:// |
|
| 21 | + * @since File available since Release 1.0.0 |
|
| 22 | + * PHP Version 5 |
|
| 23 | + */ |
|
| 24 | 24 | namespace Hospitalplugin\Entities; |
| 25 | 25 | |
| 26 | 26 | /** |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | class PatientPOR extends Patient { |
| 42 | 42 | |
| 43 | - /* |
|
| 43 | + /* |
|
| 44 | 44 | * I Ciąża; |
| 45 | 45 | * I Wywiad; |
| 46 | 46 | * I Pozycja; |
@@ -83,177 +83,177 @@ discard block |
||
| 83 | 83 | * IV Karmienie; |
| 84 | 84 | * IV Edukacja zdrowotna i wsparcie psychiczne; |
| 85 | 85 | */ |
| 86 | - /** |
|
| 87 | - * |
|
| 88 | - * @var string $typ typ pacjenta |
|
| 89 | - */ |
|
| 90 | - protected $typ = "POR"; |
|
| 86 | + /** |
|
| 87 | + * |
|
| 88 | + * @var string $typ typ pacjenta |
|
| 89 | + */ |
|
| 90 | + protected $typ = "POR"; |
|
| 91 | 91 | |
| 92 | - /** |
|
| 93 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 94 | - */ |
|
| 95 | - public $iCiaza; |
|
| 92 | + /** |
|
| 93 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 94 | + */ |
|
| 95 | + public $iCiaza; |
|
| 96 | 96 | |
| 97 | - /** |
|
| 98 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 99 | - */ |
|
| 100 | - public $iWywiad; |
|
| 101 | - /** |
|
| 102 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 103 | - */ |
|
| 104 | - public $iPozycja; |
|
| 105 | - /** |
|
| 106 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 107 | - */ |
|
| 108 | - public $iHigiena; |
|
| 109 | - /** |
|
| 110 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 111 | - */ |
|
| 112 | - public $iDieta; |
|
| 113 | - /** |
|
| 114 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 115 | - */ |
|
| 116 | - public $iPomiarParametrowZyciowych; |
|
| 117 | - /** |
|
| 118 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 119 | - */ |
|
| 120 | - public $iASP; |
|
| 121 | - /** |
|
| 122 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 123 | - */ |
|
| 124 | - public $iPostepPorodu; |
|
| 125 | - /** |
|
| 126 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 127 | - */ |
|
| 128 | - public $iWydalanie; |
|
| 129 | - /** |
|
| 130 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 131 | - */ |
|
| 132 | - public $iPecherzPlodowy; |
|
| 133 | - /** |
|
| 134 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 135 | - */ |
|
| 136 | - public $iCwiczeniaOddechowe; |
|
| 137 | - /** |
|
| 138 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 139 | - */ |
|
| 140 | - public $iLeki; |
|
| 141 | - /** |
|
| 142 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 143 | - */ |
|
| 144 | - public $iEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 145 | - /** |
|
| 146 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 147 | - */ |
|
| 148 | - public $iICzas; |
|
| 149 | - /** |
|
| 150 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 151 | - */ |
|
| 152 | - public $iIPozycja; |
|
| 153 | - /** |
|
| 154 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 155 | - */ |
|
| 156 | - public $iICzystoscKrocza; |
|
| 157 | - /** |
|
| 158 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 159 | - */ |
|
| 160 | - public $iINaciecie; |
|
| 161 | - /** |
|
| 162 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 163 | - */ |
|
| 164 | - public $iIAktywnosc; |
|
| 165 | - /** |
|
| 166 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 167 | - */ |
|
| 168 | - public $iIHigiena; |
|
| 169 | - /** |
|
| 170 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 171 | - */ |
|
| 172 | - public $iIDieta; |
|
| 173 | - /** |
|
| 174 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 175 | - */ |
|
| 176 | - public $iIPomiarParametrowZyciowych; |
|
| 177 | - /** |
|
| 178 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 179 | - */ |
|
| 180 | - public $iIASP; |
|
| 181 | - /** |
|
| 182 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 183 | - */ |
|
| 184 | - public $iIWydalanie; |
|
| 185 | - /** |
|
| 186 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 187 | - */ |
|
| 188 | - public $iILeki; |
|
| 189 | - /** |
|
| 190 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 191 | - */ |
|
| 192 | - public $iIEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 193 | - /** |
|
| 194 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 195 | - */ |
|
| 196 | - public $iIIApgar; |
|
| 197 | - /** |
|
| 198 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 199 | - */ |
|
| 200 | - public $iIIWaga; |
|
| 201 | - /** |
|
| 202 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 203 | - */ |
|
| 204 | - public $iIIKontakt; |
|
| 205 | - /** |
|
| 206 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 207 | - */ |
|
| 208 | - public $iIIZabiegi; |
|
| 209 | - /** |
|
| 210 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 211 | - */ |
|
| 212 | - public $iIIKrwawienie; |
|
| 213 | - /** |
|
| 214 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 215 | - */ |
|
| 216 | - public $iIINaciecie; |
|
| 217 | - /** |
|
| 218 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 219 | - */ |
|
| 220 | - public $iIIHigiena; |
|
| 221 | - /** |
|
| 222 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 223 | - */ |
|
| 224 | - public $iIIDieta; |
|
| 225 | - /** |
|
| 226 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 227 | - */ |
|
| 228 | - public $iIIPomiarParametrowZyciowych; |
|
| 229 | - /** |
|
| 230 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 231 | - */ |
|
| 232 | - public $iIIWydalanie; |
|
| 233 | - /** |
|
| 234 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 235 | - */ |
|
| 236 | - public $iIILeki; |
|
| 237 | - /** |
|
| 238 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 239 | - */ |
|
| 240 | - public $iIIEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 241 | - /** |
|
| 242 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 243 | - */ |
|
| 244 | - public $iVObserwacja; |
|
| 245 | - /** |
|
| 246 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 247 | - */ |
|
| 248 | - public $iVPomiarParametrowZyciowych; |
|
| 249 | - /** |
|
| 250 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 251 | - */ |
|
| 252 | - public $iVKarmienie; |
|
| 253 | - /** |
|
| 254 | - * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 255 | - */ |
|
| 256 | - public $iVEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 97 | + /** |
|
| 98 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 99 | + */ |
|
| 100 | + public $iWywiad; |
|
| 101 | + /** |
|
| 102 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 103 | + */ |
|
| 104 | + public $iPozycja; |
|
| 105 | + /** |
|
| 106 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 107 | + */ |
|
| 108 | + public $iHigiena; |
|
| 109 | + /** |
|
| 110 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 111 | + */ |
|
| 112 | + public $iDieta; |
|
| 113 | + /** |
|
| 114 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 115 | + */ |
|
| 116 | + public $iPomiarParametrowZyciowych; |
|
| 117 | + /** |
|
| 118 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 119 | + */ |
|
| 120 | + public $iASP; |
|
| 121 | + /** |
|
| 122 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 123 | + */ |
|
| 124 | + public $iPostepPorodu; |
|
| 125 | + /** |
|
| 126 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 127 | + */ |
|
| 128 | + public $iWydalanie; |
|
| 129 | + /** |
|
| 130 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 131 | + */ |
|
| 132 | + public $iPecherzPlodowy; |
|
| 133 | + /** |
|
| 134 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 135 | + */ |
|
| 136 | + public $iCwiczeniaOddechowe; |
|
| 137 | + /** |
|
| 138 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 139 | + */ |
|
| 140 | + public $iLeki; |
|
| 141 | + /** |
|
| 142 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 143 | + */ |
|
| 144 | + public $iEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 145 | + /** |
|
| 146 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 147 | + */ |
|
| 148 | + public $iICzas; |
|
| 149 | + /** |
|
| 150 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 151 | + */ |
|
| 152 | + public $iIPozycja; |
|
| 153 | + /** |
|
| 154 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 155 | + */ |
|
| 156 | + public $iICzystoscKrocza; |
|
| 157 | + /** |
|
| 158 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 159 | + */ |
|
| 160 | + public $iINaciecie; |
|
| 161 | + /** |
|
| 162 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 163 | + */ |
|
| 164 | + public $iIAktywnosc; |
|
| 165 | + /** |
|
| 166 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 167 | + */ |
|
| 168 | + public $iIHigiena; |
|
| 169 | + /** |
|
| 170 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 171 | + */ |
|
| 172 | + public $iIDieta; |
|
| 173 | + /** |
|
| 174 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 175 | + */ |
|
| 176 | + public $iIPomiarParametrowZyciowych; |
|
| 177 | + /** |
|
| 178 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 179 | + */ |
|
| 180 | + public $iIASP; |
|
| 181 | + /** |
|
| 182 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 183 | + */ |
|
| 184 | + public $iIWydalanie; |
|
| 185 | + /** |
|
| 186 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 187 | + */ |
|
| 188 | + public $iILeki; |
|
| 189 | + /** |
|
| 190 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 191 | + */ |
|
| 192 | + public $iIEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 193 | + /** |
|
| 194 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 195 | + */ |
|
| 196 | + public $iIIApgar; |
|
| 197 | + /** |
|
| 198 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 199 | + */ |
|
| 200 | + public $iIIWaga; |
|
| 201 | + /** |
|
| 202 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 203 | + */ |
|
| 204 | + public $iIIKontakt; |
|
| 205 | + /** |
|
| 206 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 207 | + */ |
|
| 208 | + public $iIIZabiegi; |
|
| 209 | + /** |
|
| 210 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 211 | + */ |
|
| 212 | + public $iIIKrwawienie; |
|
| 213 | + /** |
|
| 214 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 215 | + */ |
|
| 216 | + public $iIINaciecie; |
|
| 217 | + /** |
|
| 218 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 219 | + */ |
|
| 220 | + public $iIIHigiena; |
|
| 221 | + /** |
|
| 222 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 223 | + */ |
|
| 224 | + public $iIIDieta; |
|
| 225 | + /** |
|
| 226 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 227 | + */ |
|
| 228 | + public $iIIPomiarParametrowZyciowych; |
|
| 229 | + /** |
|
| 230 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 231 | + */ |
|
| 232 | + public $iIIWydalanie; |
|
| 233 | + /** |
|
| 234 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 235 | + */ |
|
| 236 | + public $iIILeki; |
|
| 237 | + /** |
|
| 238 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 239 | + */ |
|
| 240 | + public $iIIEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 241 | + /** |
|
| 242 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 243 | + */ |
|
| 244 | + public $iVObserwacja; |
|
| 245 | + /** |
|
| 246 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 247 | + */ |
|
| 248 | + public $iVPomiarParametrowZyciowych; |
|
| 249 | + /** |
|
| 250 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 251 | + */ |
|
| 252 | + public $iVKarmienie; |
|
| 253 | + /** |
|
| 254 | + * @Column(columnDefinition="TINYINT(4) DEFAULT 0") |
|
| 255 | + */ |
|
| 256 | + public $iVEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 257 | 257 | |
| 258 | 258 | |
| 259 | 259 | |
@@ -264,344 +264,344 @@ discard block |
||
| 264 | 264 | |
| 265 | 265 | |
| 266 | 266 | |
| 267 | - /** |
|
| 268 | - * getFields |
|
| 269 | - * |
|
| 270 | - * @return multitype:string |
|
| 271 | - */ |
|
| 272 | - public static function getFields() { |
|
| 273 | - $superFields = parent::getFields (); |
|
| 274 | - $fields = array_merge ( $superFields, array ( |
|
| 275 | - "iCiaza", |
|
| 276 | - "iWywiad", |
|
| 277 | - "iPozycja", |
|
| 278 | - "iHigiena", |
|
| 279 | - "iDieta", |
|
| 280 | - "iPomiarParametrowZyciowych", |
|
| 281 | - "iASP", |
|
| 282 | - "iPostepPorodu", |
|
| 283 | - "iWydalanie", |
|
| 284 | - "iPecherzPlodowy", |
|
| 285 | - "iCwiczeniaOddechowe", |
|
| 286 | - "iLeki", |
|
| 287 | - "iEdukacjaZdrowotnaIWsparciePsychiczne", |
|
| 288 | - "iICzas", |
|
| 289 | - "iIPozycja", |
|
| 290 | - "iICzystoscKrocza", |
|
| 291 | - "iINaciecie", |
|
| 292 | - "iIAktywnosc", |
|
| 293 | - "iIHigiena", |
|
| 294 | - "iIDieta", |
|
| 295 | - "iIPomiarParametrowZyciowych", |
|
| 296 | - "iIASP", |
|
| 297 | - "iIWydalanie", |
|
| 298 | - "iILeki", |
|
| 299 | - "iIEdukacjaZdrowotnaIWsparciePsychiczne", |
|
| 300 | - "iIIApgar", |
|
| 301 | - "iIIWaga", |
|
| 302 | - "iIIKontakt", |
|
| 303 | - "iIIZabiegi", |
|
| 304 | - "iIIKrwawienie", |
|
| 305 | - "iIINaciecie", |
|
| 306 | - "iIIHigiena", |
|
| 307 | - "iIIDieta", |
|
| 308 | - "iIIPomiarParametrowZyciowych", |
|
| 309 | - "iIIWydalanie", |
|
| 310 | - "iIILeki", |
|
| 311 | - "iIIEdukacjaZdrowotnaIWsparciePsychiczne", |
|
| 312 | - "iVObserwacja", |
|
| 313 | - "iVPomiarParametrowZyciowych", |
|
| 314 | - "iVKarmienie", |
|
| 315 | - "iVEdukacjaZdrowotnaIWsparciePsychiczne" |
|
| 316 | - ) ); |
|
| 317 | - return $fields; |
|
| 318 | - } |
|
| 319 | - public function getICiaza() { |
|
| 320 | - return $this->iCiaza; |
|
| 321 | - } |
|
| 322 | - public function setICiaza($iCiaza) { |
|
| 323 | - $this->iCiaza = $iCiaza; |
|
| 324 | - return $this; |
|
| 325 | - } |
|
| 326 | - public function getIWywiad() { |
|
| 327 | - return $this->iWywiad; |
|
| 328 | - } |
|
| 329 | - public function setIWywiad($iWywiad) { |
|
| 330 | - $this->iWywiad = $iWywiad; |
|
| 331 | - return $this; |
|
| 332 | - } |
|
| 333 | - public function getIPozycja() { |
|
| 334 | - return $this->iPozycja; |
|
| 335 | - } |
|
| 336 | - public function setIPozycja($iPozycja) { |
|
| 337 | - $this->iPozycja = $iPozycja; |
|
| 338 | - return $this; |
|
| 339 | - } |
|
| 340 | - public function getIHigiena() { |
|
| 341 | - return $this->iHigiena; |
|
| 342 | - } |
|
| 343 | - public function setIHigiena($iHigiena) { |
|
| 344 | - $this->iHigiena = $iHigiena; |
|
| 345 | - return $this; |
|
| 346 | - } |
|
| 347 | - public function getIDieta() { |
|
| 348 | - return $this->iDieta; |
|
| 349 | - } |
|
| 350 | - public function setIDieta($iDieta) { |
|
| 351 | - $this->iDieta = $iDieta; |
|
| 352 | - return $this; |
|
| 353 | - } |
|
| 354 | - public function getIPomiarParametrowZyciowych() { |
|
| 355 | - return $this->iPomiarParametrowZyciowych; |
|
| 356 | - } |
|
| 357 | - public function setIPomiarParametrowZyciowych($iPomiarParametrowZyciowych) { |
|
| 358 | - $this->iPomiarParametrowZyciowych = $iPomiarParametrowZyciowych; |
|
| 359 | - return $this; |
|
| 360 | - } |
|
| 361 | - public function getIASP() { |
|
| 362 | - return $this->iASP; |
|
| 363 | - } |
|
| 364 | - public function setIASP($iASP) { |
|
| 365 | - $this->iASP = $iASP; |
|
| 366 | - return $this; |
|
| 367 | - } |
|
| 368 | - public function getIPostepPorodu() { |
|
| 369 | - return $this->iPostepPorodu; |
|
| 370 | - } |
|
| 371 | - public function setIPostepPorodu($iPostepPorodu) { |
|
| 372 | - $this->iPostepPorodu = $iPostepPorodu; |
|
| 373 | - return $this; |
|
| 374 | - } |
|
| 375 | - public function getIWydalanie() { |
|
| 376 | - return $this->iWydalanie; |
|
| 377 | - } |
|
| 378 | - public function setIWydalanie($iWydalanie) { |
|
| 379 | - $this->iWydalanie = $iWydalanie; |
|
| 380 | - return $this; |
|
| 381 | - } |
|
| 382 | - public function getIPecherzPlodowy() { |
|
| 383 | - return $this->iPecherzPlodowy; |
|
| 384 | - } |
|
| 385 | - public function setIPecherzPlodowy($iPecherzPlodowy) { |
|
| 386 | - $this->iPecherzPlodowy = $iPecherzPlodowy; |
|
| 387 | - return $this; |
|
| 388 | - } |
|
| 389 | - public function getICwiczeniaOddechowe() { |
|
| 390 | - return $this->iCwiczeniaOddechowe; |
|
| 391 | - } |
|
| 392 | - public function setICwiczeniaOddechowe($iCwiczeniaOddechowe) { |
|
| 393 | - $this->iCwiczeniaOddechowe = $iCwiczeniaOddechowe; |
|
| 394 | - return $this; |
|
| 395 | - } |
|
| 396 | - public function getILeki() { |
|
| 397 | - return $this->iLeki; |
|
| 398 | - } |
|
| 399 | - public function setILeki($iLeki) { |
|
| 400 | - $this->iLeki = $iLeki; |
|
| 401 | - return $this; |
|
| 402 | - } |
|
| 403 | - public function getIEdukacjaZdrowotnaIWsparciePsychiczne() { |
|
| 404 | - return $this->iEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 405 | - } |
|
| 406 | - public function setIEdukacjaZdrowotnaIWsparciePsychiczne($iEdukacjaZdrowotnaIWsparciePsychiczne) { |
|
| 407 | - $this->iEdukacjaZdrowotnaIWsparciePsychiczne = $iEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 408 | - return $this; |
|
| 409 | - } |
|
| 410 | - public function getIICzas() { |
|
| 411 | - return $this->iICzas; |
|
| 412 | - } |
|
| 413 | - public function setIICzas($iICzas) { |
|
| 414 | - $this->iICzas = $iICzas; |
|
| 415 | - return $this; |
|
| 416 | - } |
|
| 417 | - public function getIIPozycja() { |
|
| 418 | - return $this->iIPozycja; |
|
| 419 | - } |
|
| 420 | - public function setIIPozycja($iIPozycja) { |
|
| 421 | - $this->iIPozycja = $iIPozycja; |
|
| 422 | - return $this; |
|
| 423 | - } |
|
| 424 | - public function getIICzystoscKrocza() { |
|
| 425 | - return $this->iICzystoscKrocza; |
|
| 426 | - } |
|
| 427 | - public function setIICzystoscKrocza($iICzystoscKrocza) { |
|
| 428 | - $this->iICzystoscKrocza = $iICzystoscKrocza; |
|
| 429 | - return $this; |
|
| 430 | - } |
|
| 431 | - public function getIINaciecie() { |
|
| 432 | - return $this->iINaciecie; |
|
| 433 | - } |
|
| 434 | - public function setIINaciecie($iINaciecie) { |
|
| 435 | - $this->iINaciecie = $iINaciecie; |
|
| 436 | - return $this; |
|
| 437 | - } |
|
| 438 | - public function getIIAktywnosc() { |
|
| 439 | - return $this->iIAktywnosc; |
|
| 440 | - } |
|
| 441 | - public function setIIAktywnosc($iIAktywnosc) { |
|
| 442 | - $this->iIAktywnosc = $iIAktywnosc; |
|
| 443 | - return $this; |
|
| 444 | - } |
|
| 445 | - public function getIIHigiena() { |
|
| 446 | - return $this->iIHigiena; |
|
| 447 | - } |
|
| 448 | - public function setIIHigiena($iIHigiena) { |
|
| 449 | - $this->iIHigiena = $iIHigiena; |
|
| 450 | - return $this; |
|
| 451 | - } |
|
| 452 | - public function getIIDieta() { |
|
| 453 | - return $this->iIDieta; |
|
| 454 | - } |
|
| 455 | - public function setIIDieta($iIDieta) { |
|
| 456 | - $this->iIDieta = $iIDieta; |
|
| 457 | - return $this; |
|
| 458 | - } |
|
| 459 | - public function getIIPomiarParametrowZyciowych() { |
|
| 460 | - return $this->iIPomiarParametrowZyciowych; |
|
| 461 | - } |
|
| 462 | - public function setIIPomiarParametrowZyciowych($iIPomiarParametrowZyciowych) { |
|
| 463 | - $this->iIPomiarParametrowZyciowych = $iIPomiarParametrowZyciowych; |
|
| 464 | - return $this; |
|
| 465 | - } |
|
| 466 | - public function getIIASP() { |
|
| 467 | - return $this->iIASP; |
|
| 468 | - } |
|
| 469 | - public function setIIASP($iIASP) { |
|
| 470 | - $this->iIASP = $iIASP; |
|
| 471 | - return $this; |
|
| 472 | - } |
|
| 473 | - public function getIIWydalanie() { |
|
| 474 | - return $this->iIWydalanie; |
|
| 475 | - } |
|
| 476 | - public function setIIWydalanie($iIWydalanie) { |
|
| 477 | - $this->iIWydalanie = $iIWydalanie; |
|
| 478 | - return $this; |
|
| 479 | - } |
|
| 480 | - public function getIILeki() { |
|
| 481 | - return $this->iILeki; |
|
| 482 | - } |
|
| 483 | - public function setIILeki($iILeki) { |
|
| 484 | - $this->iILeki = $iILeki; |
|
| 485 | - return $this; |
|
| 486 | - } |
|
| 487 | - public function getIIEdukacjaZdrowotnaIWsparciePsychiczne() { |
|
| 488 | - return $this->iIEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 489 | - } |
|
| 490 | - public function setIIEdukacjaZdrowotnaIWsparciePsychiczne($iIEdukacjaZdrowotnaIWsparciePsychiczne) { |
|
| 491 | - $this->iIEdukacjaZdrowotnaIWsparciePsychiczne = $iIEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 492 | - return $this; |
|
| 493 | - } |
|
| 494 | - public function getIiiApgar() { |
|
| 495 | - return $this->iIIApgar; |
|
| 496 | - } |
|
| 497 | - public function setIiiApgar($iIIApgar) { |
|
| 498 | - $this->iIIApgar = $iIIApgar; |
|
| 499 | - return $this; |
|
| 500 | - } |
|
| 501 | - public function getIiiWaga() { |
|
| 502 | - return $this->iIIWaga; |
|
| 503 | - } |
|
| 504 | - public function setIiiWaga($iIIWaga) { |
|
| 505 | - $this->iIIWaga = $iIIWaga; |
|
| 506 | - return $this; |
|
| 507 | - } |
|
| 508 | - public function getIiiKontakt() { |
|
| 509 | - return $this->iIIKontakt; |
|
| 510 | - } |
|
| 511 | - public function setIiiKontakt($iIIKontakt) { |
|
| 512 | - $this->iIIKontakt = $iIIKontakt; |
|
| 513 | - return $this; |
|
| 514 | - } |
|
| 515 | - public function getIiiZabiegi() { |
|
| 516 | - return $this->iIIZabiegi; |
|
| 517 | - } |
|
| 518 | - public function setIiiZabiegi($iIIZabiegi) { |
|
| 519 | - $this->iIIZabiegi = $iIIZabiegi; |
|
| 520 | - return $this; |
|
| 521 | - } |
|
| 522 | - public function getIiiKrwawienie() { |
|
| 523 | - return $this->iIIKrwawienie; |
|
| 524 | - } |
|
| 525 | - public function setIiiKrwawienie($iIIKrwawienie) { |
|
| 526 | - $this->iIIKrwawienie = $iIIKrwawienie; |
|
| 527 | - return $this; |
|
| 528 | - } |
|
| 529 | - public function getIiiNaciecie() { |
|
| 530 | - return $this->iIINaciecie; |
|
| 531 | - } |
|
| 532 | - public function setIiiNaciecie($iIINaciecie) { |
|
| 533 | - $this->iIINaciecie = $iIINaciecie; |
|
| 534 | - return $this; |
|
| 535 | - } |
|
| 536 | - public function getIiiHigiena() { |
|
| 537 | - return $this->iIIHigiena; |
|
| 538 | - } |
|
| 539 | - public function setIiiHigiena($iIIHigiena) { |
|
| 540 | - $this->iIIHigiena = $iIIHigiena; |
|
| 541 | - return $this; |
|
| 542 | - } |
|
| 543 | - public function getIiiDieta() { |
|
| 544 | - return $this->iIIDieta; |
|
| 545 | - } |
|
| 546 | - public function setIiiDieta($iIIDieta) { |
|
| 547 | - $this->iIIDieta = $iIIDieta; |
|
| 548 | - return $this; |
|
| 549 | - } |
|
| 550 | - public function getIiiPomiarParametrowZyciowych() { |
|
| 551 | - return $this->iIIPomiarParametrowZyciowych; |
|
| 552 | - } |
|
| 553 | - public function setIiiPomiarParametrowZyciowych($iIIPomiarParametrowZyciowych) { |
|
| 554 | - $this->iIIPomiarParametrowZyciowych = $iIIPomiarParametrowZyciowych; |
|
| 555 | - return $this; |
|
| 556 | - } |
|
| 557 | - public function getIiiWydalanie() { |
|
| 558 | - return $this->iIIWydalanie; |
|
| 559 | - } |
|
| 560 | - public function setIiiWydalanie($iIIWydalanie) { |
|
| 561 | - $this->iIIWydalanie = $iIIWydalanie; |
|
| 562 | - return $this; |
|
| 563 | - } |
|
| 564 | - public function getIiiLeki() { |
|
| 565 | - return $this->iIILeki; |
|
| 566 | - } |
|
| 567 | - public function setIiiLeki($iIILeki) { |
|
| 568 | - $this->iIILeki = $iIILeki; |
|
| 569 | - return $this; |
|
| 570 | - } |
|
| 571 | - public function getIiiEdukacjaZdrowotnaIWsparciePsychiczne() { |
|
| 572 | - return $this->iIIEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 573 | - } |
|
| 574 | - public function setIiiEdukacjaZdrowotnaIWsparciePsychiczne($iIIEdukacjaZdrowotnaIWsparciePsychiczne) { |
|
| 575 | - $this->iIIEdukacjaZdrowotnaIWsparciePsychiczne = $iIIEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 576 | - return $this; |
|
| 577 | - } |
|
| 578 | - public function getIVObserwacja() { |
|
| 579 | - return $this->iVObserwacja; |
|
| 580 | - } |
|
| 581 | - public function setIVObserwacja($iVObserwacja) { |
|
| 582 | - $this->iVObserwacja = $iVObserwacja; |
|
| 583 | - return $this; |
|
| 584 | - } |
|
| 585 | - public function getIVPomiarParametrowZyciowych() { |
|
| 586 | - return $this->iVPomiarParametrowZyciowych; |
|
| 587 | - } |
|
| 588 | - public function setIVPomiarParametrowZyciowych($iVPomiarParametrowZyciowych) { |
|
| 589 | - $this->iVPomiarParametrowZyciowych = $iVPomiarParametrowZyciowych; |
|
| 590 | - return $this; |
|
| 591 | - } |
|
| 592 | - public function getIVKarmienie() { |
|
| 593 | - return $this->iVKarmienie; |
|
| 594 | - } |
|
| 595 | - public function setIVKarmienie($iVKarmienie) { |
|
| 596 | - $this->iVKarmienie = $iVKarmienie; |
|
| 597 | - return $this; |
|
| 598 | - } |
|
| 599 | - public function getIVEdukacjaZdrowotnaIWsparciePsychiczne() { |
|
| 600 | - return $this->iVEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 601 | - } |
|
| 602 | - public function setIVEdukacjaZdrowotnaIWsparciePsychiczne($iVEdukacjaZdrowotnaIWsparciePsychiczne) { |
|
| 603 | - $this->iVEdukacjaZdrowotnaIWsparciePsychiczne = $iVEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 604 | - return $this; |
|
| 605 | - } |
|
| 267 | + /** |
|
| 268 | + * getFields |
|
| 269 | + * |
|
| 270 | + * @return multitype:string |
|
| 271 | + */ |
|
| 272 | + public static function getFields() { |
|
| 273 | + $superFields = parent::getFields (); |
|
| 274 | + $fields = array_merge ( $superFields, array ( |
|
| 275 | + "iCiaza", |
|
| 276 | + "iWywiad", |
|
| 277 | + "iPozycja", |
|
| 278 | + "iHigiena", |
|
| 279 | + "iDieta", |
|
| 280 | + "iPomiarParametrowZyciowych", |
|
| 281 | + "iASP", |
|
| 282 | + "iPostepPorodu", |
|
| 283 | + "iWydalanie", |
|
| 284 | + "iPecherzPlodowy", |
|
| 285 | + "iCwiczeniaOddechowe", |
|
| 286 | + "iLeki", |
|
| 287 | + "iEdukacjaZdrowotnaIWsparciePsychiczne", |
|
| 288 | + "iICzas", |
|
| 289 | + "iIPozycja", |
|
| 290 | + "iICzystoscKrocza", |
|
| 291 | + "iINaciecie", |
|
| 292 | + "iIAktywnosc", |
|
| 293 | + "iIHigiena", |
|
| 294 | + "iIDieta", |
|
| 295 | + "iIPomiarParametrowZyciowych", |
|
| 296 | + "iIASP", |
|
| 297 | + "iIWydalanie", |
|
| 298 | + "iILeki", |
|
| 299 | + "iIEdukacjaZdrowotnaIWsparciePsychiczne", |
|
| 300 | + "iIIApgar", |
|
| 301 | + "iIIWaga", |
|
| 302 | + "iIIKontakt", |
|
| 303 | + "iIIZabiegi", |
|
| 304 | + "iIIKrwawienie", |
|
| 305 | + "iIINaciecie", |
|
| 306 | + "iIIHigiena", |
|
| 307 | + "iIIDieta", |
|
| 308 | + "iIIPomiarParametrowZyciowych", |
|
| 309 | + "iIIWydalanie", |
|
| 310 | + "iIILeki", |
|
| 311 | + "iIIEdukacjaZdrowotnaIWsparciePsychiczne", |
|
| 312 | + "iVObserwacja", |
|
| 313 | + "iVPomiarParametrowZyciowych", |
|
| 314 | + "iVKarmienie", |
|
| 315 | + "iVEdukacjaZdrowotnaIWsparciePsychiczne" |
|
| 316 | + ) ); |
|
| 317 | + return $fields; |
|
| 318 | + } |
|
| 319 | + public function getICiaza() { |
|
| 320 | + return $this->iCiaza; |
|
| 321 | + } |
|
| 322 | + public function setICiaza($iCiaza) { |
|
| 323 | + $this->iCiaza = $iCiaza; |
|
| 324 | + return $this; |
|
| 325 | + } |
|
| 326 | + public function getIWywiad() { |
|
| 327 | + return $this->iWywiad; |
|
| 328 | + } |
|
| 329 | + public function setIWywiad($iWywiad) { |
|
| 330 | + $this->iWywiad = $iWywiad; |
|
| 331 | + return $this; |
|
| 332 | + } |
|
| 333 | + public function getIPozycja() { |
|
| 334 | + return $this->iPozycja; |
|
| 335 | + } |
|
| 336 | + public function setIPozycja($iPozycja) { |
|
| 337 | + $this->iPozycja = $iPozycja; |
|
| 338 | + return $this; |
|
| 339 | + } |
|
| 340 | + public function getIHigiena() { |
|
| 341 | + return $this->iHigiena; |
|
| 342 | + } |
|
| 343 | + public function setIHigiena($iHigiena) { |
|
| 344 | + $this->iHigiena = $iHigiena; |
|
| 345 | + return $this; |
|
| 346 | + } |
|
| 347 | + public function getIDieta() { |
|
| 348 | + return $this->iDieta; |
|
| 349 | + } |
|
| 350 | + public function setIDieta($iDieta) { |
|
| 351 | + $this->iDieta = $iDieta; |
|
| 352 | + return $this; |
|
| 353 | + } |
|
| 354 | + public function getIPomiarParametrowZyciowych() { |
|
| 355 | + return $this->iPomiarParametrowZyciowych; |
|
| 356 | + } |
|
| 357 | + public function setIPomiarParametrowZyciowych($iPomiarParametrowZyciowych) { |
|
| 358 | + $this->iPomiarParametrowZyciowych = $iPomiarParametrowZyciowych; |
|
| 359 | + return $this; |
|
| 360 | + } |
|
| 361 | + public function getIASP() { |
|
| 362 | + return $this->iASP; |
|
| 363 | + } |
|
| 364 | + public function setIASP($iASP) { |
|
| 365 | + $this->iASP = $iASP; |
|
| 366 | + return $this; |
|
| 367 | + } |
|
| 368 | + public function getIPostepPorodu() { |
|
| 369 | + return $this->iPostepPorodu; |
|
| 370 | + } |
|
| 371 | + public function setIPostepPorodu($iPostepPorodu) { |
|
| 372 | + $this->iPostepPorodu = $iPostepPorodu; |
|
| 373 | + return $this; |
|
| 374 | + } |
|
| 375 | + public function getIWydalanie() { |
|
| 376 | + return $this->iWydalanie; |
|
| 377 | + } |
|
| 378 | + public function setIWydalanie($iWydalanie) { |
|
| 379 | + $this->iWydalanie = $iWydalanie; |
|
| 380 | + return $this; |
|
| 381 | + } |
|
| 382 | + public function getIPecherzPlodowy() { |
|
| 383 | + return $this->iPecherzPlodowy; |
|
| 384 | + } |
|
| 385 | + public function setIPecherzPlodowy($iPecherzPlodowy) { |
|
| 386 | + $this->iPecherzPlodowy = $iPecherzPlodowy; |
|
| 387 | + return $this; |
|
| 388 | + } |
|
| 389 | + public function getICwiczeniaOddechowe() { |
|
| 390 | + return $this->iCwiczeniaOddechowe; |
|
| 391 | + } |
|
| 392 | + public function setICwiczeniaOddechowe($iCwiczeniaOddechowe) { |
|
| 393 | + $this->iCwiczeniaOddechowe = $iCwiczeniaOddechowe; |
|
| 394 | + return $this; |
|
| 395 | + } |
|
| 396 | + public function getILeki() { |
|
| 397 | + return $this->iLeki; |
|
| 398 | + } |
|
| 399 | + public function setILeki($iLeki) { |
|
| 400 | + $this->iLeki = $iLeki; |
|
| 401 | + return $this; |
|
| 402 | + } |
|
| 403 | + public function getIEdukacjaZdrowotnaIWsparciePsychiczne() { |
|
| 404 | + return $this->iEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 405 | + } |
|
| 406 | + public function setIEdukacjaZdrowotnaIWsparciePsychiczne($iEdukacjaZdrowotnaIWsparciePsychiczne) { |
|
| 407 | + $this->iEdukacjaZdrowotnaIWsparciePsychiczne = $iEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 408 | + return $this; |
|
| 409 | + } |
|
| 410 | + public function getIICzas() { |
|
| 411 | + return $this->iICzas; |
|
| 412 | + } |
|
| 413 | + public function setIICzas($iICzas) { |
|
| 414 | + $this->iICzas = $iICzas; |
|
| 415 | + return $this; |
|
| 416 | + } |
|
| 417 | + public function getIIPozycja() { |
|
| 418 | + return $this->iIPozycja; |
|
| 419 | + } |
|
| 420 | + public function setIIPozycja($iIPozycja) { |
|
| 421 | + $this->iIPozycja = $iIPozycja; |
|
| 422 | + return $this; |
|
| 423 | + } |
|
| 424 | + public function getIICzystoscKrocza() { |
|
| 425 | + return $this->iICzystoscKrocza; |
|
| 426 | + } |
|
| 427 | + public function setIICzystoscKrocza($iICzystoscKrocza) { |
|
| 428 | + $this->iICzystoscKrocza = $iICzystoscKrocza; |
|
| 429 | + return $this; |
|
| 430 | + } |
|
| 431 | + public function getIINaciecie() { |
|
| 432 | + return $this->iINaciecie; |
|
| 433 | + } |
|
| 434 | + public function setIINaciecie($iINaciecie) { |
|
| 435 | + $this->iINaciecie = $iINaciecie; |
|
| 436 | + return $this; |
|
| 437 | + } |
|
| 438 | + public function getIIAktywnosc() { |
|
| 439 | + return $this->iIAktywnosc; |
|
| 440 | + } |
|
| 441 | + public function setIIAktywnosc($iIAktywnosc) { |
|
| 442 | + $this->iIAktywnosc = $iIAktywnosc; |
|
| 443 | + return $this; |
|
| 444 | + } |
|
| 445 | + public function getIIHigiena() { |
|
| 446 | + return $this->iIHigiena; |
|
| 447 | + } |
|
| 448 | + public function setIIHigiena($iIHigiena) { |
|
| 449 | + $this->iIHigiena = $iIHigiena; |
|
| 450 | + return $this; |
|
| 451 | + } |
|
| 452 | + public function getIIDieta() { |
|
| 453 | + return $this->iIDieta; |
|
| 454 | + } |
|
| 455 | + public function setIIDieta($iIDieta) { |
|
| 456 | + $this->iIDieta = $iIDieta; |
|
| 457 | + return $this; |
|
| 458 | + } |
|
| 459 | + public function getIIPomiarParametrowZyciowych() { |
|
| 460 | + return $this->iIPomiarParametrowZyciowych; |
|
| 461 | + } |
|
| 462 | + public function setIIPomiarParametrowZyciowych($iIPomiarParametrowZyciowych) { |
|
| 463 | + $this->iIPomiarParametrowZyciowych = $iIPomiarParametrowZyciowych; |
|
| 464 | + return $this; |
|
| 465 | + } |
|
| 466 | + public function getIIASP() { |
|
| 467 | + return $this->iIASP; |
|
| 468 | + } |
|
| 469 | + public function setIIASP($iIASP) { |
|
| 470 | + $this->iIASP = $iIASP; |
|
| 471 | + return $this; |
|
| 472 | + } |
|
| 473 | + public function getIIWydalanie() { |
|
| 474 | + return $this->iIWydalanie; |
|
| 475 | + } |
|
| 476 | + public function setIIWydalanie($iIWydalanie) { |
|
| 477 | + $this->iIWydalanie = $iIWydalanie; |
|
| 478 | + return $this; |
|
| 479 | + } |
|
| 480 | + public function getIILeki() { |
|
| 481 | + return $this->iILeki; |
|
| 482 | + } |
|
| 483 | + public function setIILeki($iILeki) { |
|
| 484 | + $this->iILeki = $iILeki; |
|
| 485 | + return $this; |
|
| 486 | + } |
|
| 487 | + public function getIIEdukacjaZdrowotnaIWsparciePsychiczne() { |
|
| 488 | + return $this->iIEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 489 | + } |
|
| 490 | + public function setIIEdukacjaZdrowotnaIWsparciePsychiczne($iIEdukacjaZdrowotnaIWsparciePsychiczne) { |
|
| 491 | + $this->iIEdukacjaZdrowotnaIWsparciePsychiczne = $iIEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 492 | + return $this; |
|
| 493 | + } |
|
| 494 | + public function getIiiApgar() { |
|
| 495 | + return $this->iIIApgar; |
|
| 496 | + } |
|
| 497 | + public function setIiiApgar($iIIApgar) { |
|
| 498 | + $this->iIIApgar = $iIIApgar; |
|
| 499 | + return $this; |
|
| 500 | + } |
|
| 501 | + public function getIiiWaga() { |
|
| 502 | + return $this->iIIWaga; |
|
| 503 | + } |
|
| 504 | + public function setIiiWaga($iIIWaga) { |
|
| 505 | + $this->iIIWaga = $iIIWaga; |
|
| 506 | + return $this; |
|
| 507 | + } |
|
| 508 | + public function getIiiKontakt() { |
|
| 509 | + return $this->iIIKontakt; |
|
| 510 | + } |
|
| 511 | + public function setIiiKontakt($iIIKontakt) { |
|
| 512 | + $this->iIIKontakt = $iIIKontakt; |
|
| 513 | + return $this; |
|
| 514 | + } |
|
| 515 | + public function getIiiZabiegi() { |
|
| 516 | + return $this->iIIZabiegi; |
|
| 517 | + } |
|
| 518 | + public function setIiiZabiegi($iIIZabiegi) { |
|
| 519 | + $this->iIIZabiegi = $iIIZabiegi; |
|
| 520 | + return $this; |
|
| 521 | + } |
|
| 522 | + public function getIiiKrwawienie() { |
|
| 523 | + return $this->iIIKrwawienie; |
|
| 524 | + } |
|
| 525 | + public function setIiiKrwawienie($iIIKrwawienie) { |
|
| 526 | + $this->iIIKrwawienie = $iIIKrwawienie; |
|
| 527 | + return $this; |
|
| 528 | + } |
|
| 529 | + public function getIiiNaciecie() { |
|
| 530 | + return $this->iIINaciecie; |
|
| 531 | + } |
|
| 532 | + public function setIiiNaciecie($iIINaciecie) { |
|
| 533 | + $this->iIINaciecie = $iIINaciecie; |
|
| 534 | + return $this; |
|
| 535 | + } |
|
| 536 | + public function getIiiHigiena() { |
|
| 537 | + return $this->iIIHigiena; |
|
| 538 | + } |
|
| 539 | + public function setIiiHigiena($iIIHigiena) { |
|
| 540 | + $this->iIIHigiena = $iIIHigiena; |
|
| 541 | + return $this; |
|
| 542 | + } |
|
| 543 | + public function getIiiDieta() { |
|
| 544 | + return $this->iIIDieta; |
|
| 545 | + } |
|
| 546 | + public function setIiiDieta($iIIDieta) { |
|
| 547 | + $this->iIIDieta = $iIIDieta; |
|
| 548 | + return $this; |
|
| 549 | + } |
|
| 550 | + public function getIiiPomiarParametrowZyciowych() { |
|
| 551 | + return $this->iIIPomiarParametrowZyciowych; |
|
| 552 | + } |
|
| 553 | + public function setIiiPomiarParametrowZyciowych($iIIPomiarParametrowZyciowych) { |
|
| 554 | + $this->iIIPomiarParametrowZyciowych = $iIIPomiarParametrowZyciowych; |
|
| 555 | + return $this; |
|
| 556 | + } |
|
| 557 | + public function getIiiWydalanie() { |
|
| 558 | + return $this->iIIWydalanie; |
|
| 559 | + } |
|
| 560 | + public function setIiiWydalanie($iIIWydalanie) { |
|
| 561 | + $this->iIIWydalanie = $iIIWydalanie; |
|
| 562 | + return $this; |
|
| 563 | + } |
|
| 564 | + public function getIiiLeki() { |
|
| 565 | + return $this->iIILeki; |
|
| 566 | + } |
|
| 567 | + public function setIiiLeki($iIILeki) { |
|
| 568 | + $this->iIILeki = $iIILeki; |
|
| 569 | + return $this; |
|
| 570 | + } |
|
| 571 | + public function getIiiEdukacjaZdrowotnaIWsparciePsychiczne() { |
|
| 572 | + return $this->iIIEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 573 | + } |
|
| 574 | + public function setIiiEdukacjaZdrowotnaIWsparciePsychiczne($iIIEdukacjaZdrowotnaIWsparciePsychiczne) { |
|
| 575 | + $this->iIIEdukacjaZdrowotnaIWsparciePsychiczne = $iIIEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 576 | + return $this; |
|
| 577 | + } |
|
| 578 | + public function getIVObserwacja() { |
|
| 579 | + return $this->iVObserwacja; |
|
| 580 | + } |
|
| 581 | + public function setIVObserwacja($iVObserwacja) { |
|
| 582 | + $this->iVObserwacja = $iVObserwacja; |
|
| 583 | + return $this; |
|
| 584 | + } |
|
| 585 | + public function getIVPomiarParametrowZyciowych() { |
|
| 586 | + return $this->iVPomiarParametrowZyciowych; |
|
| 587 | + } |
|
| 588 | + public function setIVPomiarParametrowZyciowych($iVPomiarParametrowZyciowych) { |
|
| 589 | + $this->iVPomiarParametrowZyciowych = $iVPomiarParametrowZyciowych; |
|
| 590 | + return $this; |
|
| 591 | + } |
|
| 592 | + public function getIVKarmienie() { |
|
| 593 | + return $this->iVKarmienie; |
|
| 594 | + } |
|
| 595 | + public function setIVKarmienie($iVKarmienie) { |
|
| 596 | + $this->iVKarmienie = $iVKarmienie; |
|
| 597 | + return $this; |
|
| 598 | + } |
|
| 599 | + public function getIVEdukacjaZdrowotnaIWsparciePsychiczne() { |
|
| 600 | + return $this->iVEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 601 | + } |
|
| 602 | + public function setIVEdukacjaZdrowotnaIWsparciePsychiczne($iVEdukacjaZdrowotnaIWsparciePsychiczne) { |
|
| 603 | + $this->iVEdukacjaZdrowotnaIWsparciePsychiczne = $iVEdukacjaZdrowotnaIWsparciePsychiczne; |
|
| 604 | + return $this; |
|
| 605 | + } |
|
| 606 | 606 | |
| 607 | 607 | } |
@@ -8,26 +8,26 @@ discard block |
||
| 8 | 8 | use Doctrine\ORM\Query\ResultSetMapping; |
| 9 | 9 | |
| 10 | 10 | class PatientRaportOptimized { |
| 11 | - /** |
|
| 12 | - * |
|
| 13 | - * @param unknown $wardId |
|
| 14 | - * @param unknown $date |
|
| 15 | - */ |
|
| 16 | - public static function getRaport($wardId, $date) { |
|
| 17 | - $startDate = $date . '-01'; |
|
| 18 | - $endDate = date ( "Y-m-t 23:59:59", strtotime ( $startDate ) ); |
|
| 11 | + /** |
|
| 12 | + * |
|
| 13 | + * @param unknown $wardId |
|
| 14 | + * @param unknown $date |
|
| 15 | + */ |
|
| 16 | + public static function getRaport($wardId, $date) { |
|
| 17 | + $startDate = $date . '-01'; |
|
| 18 | + $endDate = date ( "Y-m-t 23:59:59", strtotime ( $startDate ) ); |
|
| 19 | 19 | |
| 20 | - return PatientRaportOptimized::getRaportBetweenDatesNative ( $wardId, $startDate, $endDate ); |
|
| 21 | - } |
|
| 22 | - private static function updateNativeRaport() { |
|
| 23 | - $em = DoctrineBootstrap::getEntityManager (); |
|
| 24 | - $conn = $em->getConnection (); |
|
| 25 | - // create report table |
|
| 26 | - $sql1 = "CREATE TABLE IF NOT EXISTS kategoria_view |
|
| 20 | + return PatientRaportOptimized::getRaportBetweenDatesNative ( $wardId, $startDate, $endDate ); |
|
| 21 | + } |
|
| 22 | + private static function updateNativeRaport() { |
|
| 23 | + $em = DoctrineBootstrap::getEntityManager (); |
|
| 24 | + $conn = $em->getConnection (); |
|
| 25 | + // create report table |
|
| 26 | + $sql1 = "CREATE TABLE IF NOT EXISTS kategoria_view |
|
| 27 | 27 | (data DATETIME, oddzialId INT, kategoria INT, suma INT, |
| 28 | 28 | PRIMARY KEY (data,oddzialId,kategoria));"; |
| 29 | - // update view |
|
| 30 | - $sql2 = "INSERT INTO kategoria_view |
|
| 29 | + // update view |
|
| 30 | + $sql2 = "INSERT INTO kategoria_view |
|
| 31 | 31 | SELECT |
| 32 | 32 | date( dataKategoryzacji ), |
| 33 | 33 | oddzialId, |
@@ -48,37 +48,37 @@ discard block |
||
| 48 | 48 | oddzialId, |
| 49 | 49 | date( dataKategoryzacji ) , |
| 50 | 50 | kategoriaPacjenta"; |
| 51 | - // select |
|
| 52 | - try { |
|
| 53 | - $conn->query ( $sql1 ); |
|
| 54 | - $conn->query ( $sql2 ); |
|
| 55 | - } catch ( Exception $e ) { |
|
| 56 | - // echo 'Caught exception: ', $e->getMessage(), "\n"; |
|
| 57 | - } |
|
| 58 | - } |
|
| 59 | - /** |
|
| 60 | - * |
|
| 61 | - * @param unknown $wardId |
|
| 62 | - * @param unknown $startDate |
|
| 63 | - * @param unknown $endDate |
|
| 64 | - */ |
|
| 65 | - public static function getRaportBetweenDatesNative($wardId, $startDate, $endDate) { |
|
| 66 | - $em = DoctrineBootstrap::getEntityManager (); |
|
| 67 | - PatientRaportOptimized::updateNativeRaport(); |
|
| 68 | - $conn = $em->getConnection (); |
|
| 69 | - $sql3 = "SELECT kategoria, date(data) as data, suma FROM kategoria_view WHERE data between :data1 AND :data2 and oddzialId = :oddzialId"; |
|
| 70 | - $stmt = $conn->prepare ( $sql3 ); |
|
| 71 | - $stmt->execute ( array ( |
|
| 72 | - 'data1' => $startDate, |
|
| 73 | - 'data2' => $endDate, |
|
| 74 | - 'oddzialId' => $wardId |
|
| 75 | - ) ); |
|
| 76 | - $result = $stmt->fetchAll(); |
|
| 77 | - $table = array (); |
|
| 78 | - foreach ( $result as $row ) { |
|
| 79 | - $table [$row ['data']] [$row ['kategoria']] = $row ['suma']; |
|
| 80 | - } |
|
| 81 | - return $table; |
|
| 82 | - } |
|
| 51 | + // select |
|
| 52 | + try { |
|
| 53 | + $conn->query ( $sql1 ); |
|
| 54 | + $conn->query ( $sql2 ); |
|
| 55 | + } catch ( Exception $e ) { |
|
| 56 | + // echo 'Caught exception: ', $e->getMessage(), "\n"; |
|
| 57 | + } |
|
| 58 | + } |
|
| 59 | + /** |
|
| 60 | + * |
|
| 61 | + * @param unknown $wardId |
|
| 62 | + * @param unknown $startDate |
|
| 63 | + * @param unknown $endDate |
|
| 64 | + */ |
|
| 65 | + public static function getRaportBetweenDatesNative($wardId, $startDate, $endDate) { |
|
| 66 | + $em = DoctrineBootstrap::getEntityManager (); |
|
| 67 | + PatientRaportOptimized::updateNativeRaport(); |
|
| 68 | + $conn = $em->getConnection (); |
|
| 69 | + $sql3 = "SELECT kategoria, date(data) as data, suma FROM kategoria_view WHERE data between :data1 AND :data2 and oddzialId = :oddzialId"; |
|
| 70 | + $stmt = $conn->prepare ( $sql3 ); |
|
| 71 | + $stmt->execute ( array ( |
|
| 72 | + 'data1' => $startDate, |
|
| 73 | + 'data2' => $endDate, |
|
| 74 | + 'oddzialId' => $wardId |
|
| 75 | + ) ); |
|
| 76 | + $result = $stmt->fetchAll(); |
|
| 77 | + $table = array (); |
|
| 78 | + foreach ( $result as $row ) { |
|
| 79 | + $table [$row ['data']] [$row ['kategoria']] = $row ['suma']; |
|
| 80 | + } |
|
| 81 | + return $table; |
|
| 82 | + } |
|
| 83 | 83 | |
| 84 | 84 | } |
| 85 | 85 | \ No newline at end of file |
@@ -43,47 +43,47 @@ |
||
| 43 | 43 | */ |
| 44 | 44 | class User { |
| 45 | 45 | |
| 46 | - /** |
|
| 47 | - * id |
|
| 48 | - * @Id @Column(type="integer", nullable=false) @GeneratedValue |
|
| 49 | - */ |
|
| 50 | - protected $id; |
|
| 46 | + /** |
|
| 47 | + * id |
|
| 48 | + * @Id @Column(type="integer", nullable=false) @GeneratedValue |
|
| 49 | + */ |
|
| 50 | + protected $id; |
|
| 51 | 51 | |
| 52 | - /** |
|
| 53 | - * name |
|
| 54 | - * @Column(type="string") |
|
| 55 | - */ |
|
| 56 | - protected $name; |
|
| 52 | + /** |
|
| 53 | + * name |
|
| 54 | + * @Column(type="string") |
|
| 55 | + */ |
|
| 56 | + protected $name; |
|
| 57 | 57 | |
| 58 | - /** |
|
| 59 | - * @ManyToOne(targetEntity="Hospitalplugin\Entities\Ward", inversedBy="users") |
|
| 60 | - * @JoinColumn(name="ward_id", referencedColumnName="id") |
|
| 61 | - */ |
|
| 62 | - private $ward; |
|
| 63 | - public function getId() { |
|
| 64 | - return $this->id; |
|
| 65 | - } |
|
| 66 | - public function setId($id) { |
|
| 67 | - $this->id = $id; |
|
| 68 | - return $this; |
|
| 69 | - } |
|
| 70 | - public function getName() { |
|
| 71 | - return $this->name; |
|
| 72 | - } |
|
| 73 | - public function setName($name) { |
|
| 74 | - $this->name = $name; |
|
| 75 | - return $this; |
|
| 76 | - } |
|
| 77 | - public function getWard() { |
|
| 78 | - return $this->ward; |
|
| 79 | - } |
|
| 80 | - public function setWard($ward) { |
|
| 81 | - $this->ward = $ward; |
|
| 82 | - return $this; |
|
| 83 | - } |
|
| 84 | - public function toString() { |
|
| 85 | - return $this->getId() . $this->getName() . $this->getWard(); |
|
| 86 | - } |
|
| 58 | + /** |
|
| 59 | + * @ManyToOne(targetEntity="Hospitalplugin\Entities\Ward", inversedBy="users") |
|
| 60 | + * @JoinColumn(name="ward_id", referencedColumnName="id") |
|
| 61 | + */ |
|
| 62 | + private $ward; |
|
| 63 | + public function getId() { |
|
| 64 | + return $this->id; |
|
| 65 | + } |
|
| 66 | + public function setId($id) { |
|
| 67 | + $this->id = $id; |
|
| 68 | + return $this; |
|
| 69 | + } |
|
| 70 | + public function getName() { |
|
| 71 | + return $this->name; |
|
| 72 | + } |
|
| 73 | + public function setName($name) { |
|
| 74 | + $this->name = $name; |
|
| 75 | + return $this; |
|
| 76 | + } |
|
| 77 | + public function getWard() { |
|
| 78 | + return $this->ward; |
|
| 79 | + } |
|
| 80 | + public function setWard($ward) { |
|
| 81 | + $this->ward = $ward; |
|
| 82 | + return $this; |
|
| 83 | + } |
|
| 84 | + public function toString() { |
|
| 85 | + return $this->getId() . $this->getName() . $this->getWard(); |
|
| 86 | + } |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | |
@@ -45,162 +45,162 @@ |
||
| 45 | 45 | */ |
| 46 | 46 | class Ward { |
| 47 | 47 | |
| 48 | - /** |
|
| 49 | - * id |
|
| 50 | - * @Id @Column(type="integer") @GeneratedValue |
|
| 51 | - */ |
|
| 52 | - public $id; |
|
| 48 | + /** |
|
| 49 | + * id |
|
| 50 | + * @Id @Column(type="integer") @GeneratedValue |
|
| 51 | + */ |
|
| 52 | + public $id; |
|
| 53 | 53 | |
| 54 | - /** |
|
| 55 | - * name |
|
| 56 | - * @Column(type="string") * |
|
| 57 | - */ |
|
| 58 | - public $name; |
|
| 54 | + /** |
|
| 55 | + * name |
|
| 56 | + * @Column(type="string") * |
|
| 57 | + */ |
|
| 58 | + public $name; |
|
| 59 | 59 | |
| 60 | - /** |
|
| 61 | - * TODO dodac: |
|
| 62 | - * konta: [{ id: '0', account: brak }] |
|
| 63 | - * lokalizacje: [{ adres: 'Poznańska 79', kondygnacja: '0', odcinek: '' }] |
|
| 64 | - */ |
|
| 60 | + /** |
|
| 61 | + * TODO dodac: |
|
| 62 | + * konta: [{ id: '0', account: brak }] |
|
| 63 | + * lokalizacje: [{ adres: 'Poznańska 79', kondygnacja: '0', odcinek: '' }] |
|
| 64 | + */ |
|
| 65 | 65 | |
| 66 | - /** |
|
| 67 | - * @Column(type="string") * |
|
| 68 | - */ |
|
| 69 | - protected $infomedica; |
|
| 66 | + /** |
|
| 67 | + * @Column(type="string") * |
|
| 68 | + */ |
|
| 69 | + protected $infomedica; |
|
| 70 | 70 | |
| 71 | - /** |
|
| 72 | - * @Column(type="string") * |
|
| 73 | - */ |
|
| 74 | - protected $komorkaOrg; |
|
| 71 | + /** |
|
| 72 | + * @Column(type="string") * |
|
| 73 | + */ |
|
| 74 | + protected $komorkaOrg; |
|
| 75 | 75 | |
| 76 | - /** |
|
| 77 | - * @Column(type="string") * |
|
| 78 | - */ |
|
| 79 | - protected $kierownik; |
|
| 76 | + /** |
|
| 77 | + * @Column(type="string") * |
|
| 78 | + */ |
|
| 79 | + protected $kierownik; |
|
| 80 | 80 | |
| 81 | - /** |
|
| 82 | - * @Column(type="string") * |
|
| 83 | - */ |
|
| 84 | - protected $typOddzialu; |
|
| 81 | + /** |
|
| 82 | + * @Column(type="string") * |
|
| 83 | + */ |
|
| 84 | + protected $typOddzialu; |
|
| 85 | 85 | |
| 86 | - /** |
|
| 87 | - * @Column(type="integer") * |
|
| 88 | - */ |
|
| 89 | - protected $pododdzial; |
|
| 86 | + /** |
|
| 87 | + * @Column(type="integer") * |
|
| 88 | + */ |
|
| 89 | + protected $pododdzial; |
|
| 90 | 90 | |
| 91 | - /** |
|
| 92 | - * @Column(type="string") * |
|
| 93 | - */ |
|
| 94 | - protected $adres; |
|
| 91 | + /** |
|
| 92 | + * @Column(type="string") * |
|
| 93 | + */ |
|
| 94 | + protected $adres; |
|
| 95 | 95 | |
| 96 | - /** |
|
| 97 | - * @Column(type="string") * |
|
| 98 | - */ |
|
| 99 | - protected $kondygnacja; |
|
| 96 | + /** |
|
| 97 | + * @Column(type="string") * |
|
| 98 | + */ |
|
| 99 | + protected $kondygnacja; |
|
| 100 | 100 | |
| 101 | - /** |
|
| 102 | - * @Column(type="string") * |
|
| 103 | - */ |
|
| 104 | - protected $odcinek; |
|
| 101 | + /** |
|
| 102 | + * @Column(type="string") * |
|
| 103 | + */ |
|
| 104 | + protected $odcinek; |
|
| 105 | 105 | |
| 106 | - /** |
|
| 107 | - * @Column(type="string", length=5000) * |
|
| 108 | - */ |
|
| 109 | - protected $opis; |
|
| 106 | + /** |
|
| 107 | + * @Column(type="string", length=5000) * |
|
| 108 | + */ |
|
| 109 | + protected $opis; |
|
| 110 | 110 | |
| 111 | - /** |
|
| 112 | - * @OneToMany(targetEntity="Hospitalplugin\Entities\User", mappedBy="ward") |
|
| 113 | - */ |
|
| 114 | - private $users; |
|
| 115 | - public function __construct() { |
|
| 116 | - $this->users = new ArrayCollection (); |
|
| 117 | - } |
|
| 111 | + /** |
|
| 112 | + * @OneToMany(targetEntity="Hospitalplugin\Entities\User", mappedBy="ward") |
|
| 113 | + */ |
|
| 114 | + private $users; |
|
| 115 | + public function __construct() { |
|
| 116 | + $this->users = new ArrayCollection (); |
|
| 117 | + } |
|
| 118 | 118 | |
| 119 | - /** |
|
| 120 | - * toString |
|
| 121 | - * |
|
| 122 | - * @return string |
|
| 123 | - */ |
|
| 124 | - public function __toString() { |
|
| 125 | - return $this->getName (); |
|
| 126 | - } |
|
| 127 | - public function getId() { |
|
| 128 | - return $this->id; |
|
| 129 | - } |
|
| 130 | - public function setId($id) { |
|
| 131 | - $this->id = $id; |
|
| 132 | - return $this; |
|
| 133 | - } |
|
| 134 | - public function getName() { |
|
| 135 | - return $this->name; |
|
| 136 | - } |
|
| 137 | - public function setName($name) { |
|
| 138 | - $this->name = $name; |
|
| 139 | - return $this; |
|
| 140 | - } |
|
| 141 | - public function getInfomedica() { |
|
| 142 | - return $this->infomedica; |
|
| 143 | - } |
|
| 144 | - public function setInfomedica($infomedica) { |
|
| 145 | - $this->infomedica = $infomedica; |
|
| 146 | - return $this; |
|
| 147 | - } |
|
| 148 | - public function getKomorkaOrg() { |
|
| 149 | - return $this->komorkaOrg; |
|
| 150 | - } |
|
| 151 | - public function setKomorkaOrg($komorkaOrg) { |
|
| 152 | - $this->komorkaOrg = $komorkaOrg; |
|
| 153 | - return $this; |
|
| 154 | - } |
|
| 155 | - public function getKierownik() { |
|
| 156 | - return $this->kierownik; |
|
| 157 | - } |
|
| 158 | - public function setKierownik($kierownik) { |
|
| 159 | - $this->kierownik = $kierownik; |
|
| 160 | - return $this; |
|
| 161 | - } |
|
| 162 | - public function getTypOddzialu() { |
|
| 163 | - return $this->typOddzialu; |
|
| 164 | - } |
|
| 165 | - public function setTypOddzialu($typOddzialu) { |
|
| 166 | - $this->typOddzialu = $typOddzialu; |
|
| 167 | - return $this; |
|
| 168 | - } |
|
| 169 | - public function getPododdzial() { |
|
| 170 | - return $this->pododdzial; |
|
| 171 | - } |
|
| 172 | - public function setPododdzial($pododdzial) { |
|
| 173 | - $this->pododdzial = $pododdzial; |
|
| 174 | - return $this; |
|
| 175 | - } |
|
| 176 | - public function getAdres() { |
|
| 177 | - return $this->adres; |
|
| 178 | - } |
|
| 179 | - public function setAdres($adres) { |
|
| 180 | - $this->adres = $adres; |
|
| 181 | - return $this; |
|
| 182 | - } |
|
| 183 | - public function getKondygnacja() { |
|
| 184 | - return $this->kondygnacja; |
|
| 185 | - } |
|
| 186 | - public function setKondygnacja($kondygnacja) { |
|
| 187 | - $this->kondygnacja = $kondygnacja; |
|
| 188 | - return $this; |
|
| 189 | - } |
|
| 190 | - public function getOdcinek() { |
|
| 191 | - return $this->odcinek; |
|
| 192 | - } |
|
| 193 | - public function setOdcinek($odcinek) { |
|
| 194 | - $this->odcinek = $odcinek; |
|
| 195 | - return $this; |
|
| 196 | - } |
|
| 197 | - public function getOpis() { |
|
| 198 | - return $this->opis; |
|
| 199 | - } |
|
| 200 | - public function setOpis($opis) { |
|
| 201 | - $this->opis = $opis; |
|
| 202 | - return $this; |
|
| 203 | - } |
|
| 119 | + /** |
|
| 120 | + * toString |
|
| 121 | + * |
|
| 122 | + * @return string |
|
| 123 | + */ |
|
| 124 | + public function __toString() { |
|
| 125 | + return $this->getName (); |
|
| 126 | + } |
|
| 127 | + public function getId() { |
|
| 128 | + return $this->id; |
|
| 129 | + } |
|
| 130 | + public function setId($id) { |
|
| 131 | + $this->id = $id; |
|
| 132 | + return $this; |
|
| 133 | + } |
|
| 134 | + public function getName() { |
|
| 135 | + return $this->name; |
|
| 136 | + } |
|
| 137 | + public function setName($name) { |
|
| 138 | + $this->name = $name; |
|
| 139 | + return $this; |
|
| 140 | + } |
|
| 141 | + public function getInfomedica() { |
|
| 142 | + return $this->infomedica; |
|
| 143 | + } |
|
| 144 | + public function setInfomedica($infomedica) { |
|
| 145 | + $this->infomedica = $infomedica; |
|
| 146 | + return $this; |
|
| 147 | + } |
|
| 148 | + public function getKomorkaOrg() { |
|
| 149 | + return $this->komorkaOrg; |
|
| 150 | + } |
|
| 151 | + public function setKomorkaOrg($komorkaOrg) { |
|
| 152 | + $this->komorkaOrg = $komorkaOrg; |
|
| 153 | + return $this; |
|
| 154 | + } |
|
| 155 | + public function getKierownik() { |
|
| 156 | + return $this->kierownik; |
|
| 157 | + } |
|
| 158 | + public function setKierownik($kierownik) { |
|
| 159 | + $this->kierownik = $kierownik; |
|
| 160 | + return $this; |
|
| 161 | + } |
|
| 162 | + public function getTypOddzialu() { |
|
| 163 | + return $this->typOddzialu; |
|
| 164 | + } |
|
| 165 | + public function setTypOddzialu($typOddzialu) { |
|
| 166 | + $this->typOddzialu = $typOddzialu; |
|
| 167 | + return $this; |
|
| 168 | + } |
|
| 169 | + public function getPododdzial() { |
|
| 170 | + return $this->pododdzial; |
|
| 171 | + } |
|
| 172 | + public function setPododdzial($pododdzial) { |
|
| 173 | + $this->pododdzial = $pododdzial; |
|
| 174 | + return $this; |
|
| 175 | + } |
|
| 176 | + public function getAdres() { |
|
| 177 | + return $this->adres; |
|
| 178 | + } |
|
| 179 | + public function setAdres($adres) { |
|
| 180 | + $this->adres = $adres; |
|
| 181 | + return $this; |
|
| 182 | + } |
|
| 183 | + public function getKondygnacja() { |
|
| 184 | + return $this->kondygnacja; |
|
| 185 | + } |
|
| 186 | + public function setKondygnacja($kondygnacja) { |
|
| 187 | + $this->kondygnacja = $kondygnacja; |
|
| 188 | + return $this; |
|
| 189 | + } |
|
| 190 | + public function getOdcinek() { |
|
| 191 | + return $this->odcinek; |
|
| 192 | + } |
|
| 193 | + public function setOdcinek($odcinek) { |
|
| 194 | + $this->odcinek = $odcinek; |
|
| 195 | + return $this; |
|
| 196 | + } |
|
| 197 | + public function getOpis() { |
|
| 198 | + return $this->opis; |
|
| 199 | + } |
|
| 200 | + public function setOpis($opis) { |
|
| 201 | + $this->opis = $opis; |
|
| 202 | + return $this; |
|
| 203 | + } |
|
| 204 | 204 | } |
| 205 | 205 | |
| 206 | 206 | |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | class WardCRUD |
| 31 | 31 | { |
| 32 | - private static $wardsArray; |
|
| 32 | + private static $wardsArray; |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | */ |
@@ -39,9 +39,9 @@ discard block |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | public static function addWard($ward) { |
| 42 | - $entityManager = (object) DoctrineBootstrap::getEntityManager(); |
|
| 43 | - $entityManager->persist($ward); |
|
| 44 | - $entityManager->flush(); |
|
| 42 | + $entityManager = (object) DoctrineBootstrap::getEntityManager(); |
|
| 43 | + $entityManager->persist($ward); |
|
| 44 | + $entityManager->flush(); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
@@ -5,29 +5,29 @@ |
||
| 5 | 5 | use Hospitalplugin\Twig\EscapePLCharsExtension; |
| 6 | 6 | |
| 7 | 7 | class PLTwig { |
| 8 | - /** |
|
| 9 | - * Loads Twig with polish settings. |
|
| 10 | - * |
|
| 11 | - * @param string $viewsDir |
|
| 12 | - * @return void|\Twig_Environment |
|
| 13 | - */ |
|
| 14 | - public static function load($viewsDir) { |
|
| 15 | - if (! class_exists ( 'Twig_Loader_Filesystem' )) { |
|
| 16 | - echo 'Twig not activated. Make sure you activate the plugin in |
|
| 8 | + /** |
|
| 9 | + * Loads Twig with polish settings. |
|
| 10 | + * |
|
| 11 | + * @param string $viewsDir |
|
| 12 | + * @return void|\Twig_Environment |
|
| 13 | + */ |
|
| 14 | + public static function load($viewsDir) { |
|
| 15 | + if (! class_exists ( 'Twig_Loader_Filesystem' )) { |
|
| 16 | + echo 'Twig not activated. Make sure you activate the plugin in |
|
| 17 | 17 | <a href="/wp-admin/plugins.php#timber">/wp-admin/plugins.php</a>'; |
| 18 | - return; |
|
| 19 | - } |
|
| 20 | - \Twig_Autoloader::register (); |
|
| 21 | - try { |
|
| 22 | - $loader = new \Twig_Loader_Filesystem ( $viewsDir ); |
|
| 23 | - $twig = new \Twig_Environment ( $loader, array () ); |
|
| 24 | - // 'debug' => true |
|
| 25 | - // 'cache' => '/tmp/' |
|
| 26 | - $twig->getExtension ( 'core' )->setTimezone ( 'Europe/Warsaw' ); // |
|
| 27 | - $twig->addExtension ( new EscapePLCharsExtension () ); |
|
| 28 | - return $twig; |
|
| 29 | - } catch ( Exception $e ) { |
|
| 30 | - echo "ERR: " . $e; |
|
| 31 | - } |
|
| 32 | - } |
|
| 18 | + return; |
|
| 19 | + } |
|
| 20 | + \Twig_Autoloader::register (); |
|
| 21 | + try { |
|
| 22 | + $loader = new \Twig_Loader_Filesystem ( $viewsDir ); |
|
| 23 | + $twig = new \Twig_Environment ( $loader, array () ); |
|
| 24 | + // 'debug' => true |
|
| 25 | + // 'cache' => '/tmp/' |
|
| 26 | + $twig->getExtension ( 'core' )->setTimezone ( 'Europe/Warsaw' ); // |
|
| 27 | + $twig->addExtension ( new EscapePLCharsExtension () ); |
|
| 28 | + return $twig; |
|
| 29 | + } catch ( Exception $e ) { |
|
| 30 | + echo "ERR: " . $e; |
|
| 31 | + } |
|
| 32 | + } |
|
| 33 | 33 | } |
| 34 | 34 | \ No newline at end of file |
@@ -1,26 +1,26 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * ScriptsAndStyles |
|
| 4 | - * |
|
| 5 | - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED |
|
| 6 | - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. |
|
| 7 | - * |
|
| 8 | - * Permission is hereby granted to use or copy this program |
|
| 9 | - * for any purpose, provided the above notices are retained on all copies. |
|
| 10 | - * Permission to modify the code and to distribute modified code is granted, |
|
| 11 | - * provided the above notices are retained, and a notice that the code was |
|
| 12 | - * modified is included with the above copyright notice. |
|
| 13 | - * |
|
| 14 | - * @category Wp |
|
| 15 | - * @package Punction |
|
| 16 | - * @author Andrzej Marcinkowski <[email protected]> |
|
| 17 | - * @copyright 2014 Wojewódzki Szpital Zespolony, Kalisz |
|
| 18 | - * @license MIT http://opensource.org/licenses/MIT |
|
| 19 | - * @version 1.0 $Format:%H$ |
|
| 20 | - * @link http:// |
|
| 21 | - * @since File available since Release 1.0.0 |
|
| 22 | - * PHP Version 5 |
|
| 23 | - */ |
|
| 3 | + * ScriptsAndStyles |
|
| 4 | + * |
|
| 5 | + * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED |
|
| 6 | + * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. |
|
| 7 | + * |
|
| 8 | + * Permission is hereby granted to use or copy this program |
|
| 9 | + * for any purpose, provided the above notices are retained on all copies. |
|
| 10 | + * Permission to modify the code and to distribute modified code is granted, |
|
| 11 | + * provided the above notices are retained, and a notice that the code was |
|
| 12 | + * modified is included with the above copyright notice. |
|
| 13 | + * |
|
| 14 | + * @category Wp |
|
| 15 | + * @package Punction |
|
| 16 | + * @author Andrzej Marcinkowski <[email protected]> |
|
| 17 | + * @copyright 2014 Wojewódzki Szpital Zespolony, Kalisz |
|
| 18 | + * @license MIT http://opensource.org/licenses/MIT |
|
| 19 | + * @version 1.0 $Format:%H$ |
|
| 20 | + * @link http:// |
|
| 21 | + * @since File available since Release 1.0.0 |
|
| 22 | + * PHP Version 5 |
|
| 23 | + */ |
|
| 24 | 24 | namespace Hospitalplugin\WP; |
| 25 | 25 | |
| 26 | 26 | /** |
@@ -7,119 +7,119 @@ |
||
| 7 | 7 | |
| 8 | 8 | class ExcelExport { |
| 9 | 9 | |
| 10 | - /** |
|
| 11 | - */ |
|
| 12 | - public static function init() { |
|
| 13 | - add_action ( 'admin_init', array ( |
|
| 14 | - 'Hospitalplugin\utils\ExcelExport', |
|
| 15 | - 'excel_export' |
|
| 16 | - ), 1 ); |
|
| 17 | - } |
|
| 18 | - /** |
|
| 19 | - * |
|
| 20 | - */ |
|
| 21 | - public static function getColumnLetter($num) { |
|
| 22 | - return chr ( 65 + $num ); |
|
| 23 | - } |
|
| 24 | - /** |
|
| 25 | - */ |
|
| 26 | - static function excel_export() { |
|
| 27 | - if (! isset ( $_POST ['excel'] )) { |
|
| 28 | - return; |
|
| 29 | - } else { |
|
| 30 | - // dataSetName: Infections, Punction |
|
| 31 | - $dataSetName = $_POST ['dataSetName']; |
|
| 32 | - $classname = '\Hospitalplugin\utils\ExcelExport' . $dataSetName; |
|
| 33 | - } |
|
| 10 | + /** |
|
| 11 | + */ |
|
| 12 | + public static function init() { |
|
| 13 | + add_action ( 'admin_init', array ( |
|
| 14 | + 'Hospitalplugin\utils\ExcelExport', |
|
| 15 | + 'excel_export' |
|
| 16 | + ), 1 ); |
|
| 17 | + } |
|
| 18 | + /** |
|
| 19 | + * |
|
| 20 | + */ |
|
| 21 | + public static function getColumnLetter($num) { |
|
| 22 | + return chr ( 65 + $num ); |
|
| 23 | + } |
|
| 24 | + /** |
|
| 25 | + */ |
|
| 26 | + static function excel_export() { |
|
| 27 | + if (! isset ( $_POST ['excel'] )) { |
|
| 28 | + return; |
|
| 29 | + } else { |
|
| 30 | + // dataSetName: Infections, Punction |
|
| 31 | + $dataSetName = $_POST ['dataSetName']; |
|
| 32 | + $classname = '\Hospitalplugin\utils\ExcelExport' . $dataSetName; |
|
| 33 | + } |
|
| 34 | 34 | |
| 35 | - $objPHPExcel = new \PHPExcel (); |
|
| 36 | - $classname::fillData ( $objPHPExcel ); |
|
| 35 | + $objPHPExcel = new \PHPExcel (); |
|
| 36 | + $classname::fillData ( $objPHPExcel ); |
|
| 37 | 37 | |
| 38 | - ExcelExport::downloadExcel ( $objPHPExcel, $dataSetName . '.xlsx' ); |
|
| 39 | - } |
|
| 40 | - /** |
|
| 41 | - */ |
|
| 42 | - static function cellColor($objPHPExcel, $cells, $color) { |
|
| 43 | - $objPHPExcel->getActiveSheet ()->getStyle ( $cells )->getFill ()->applyFromArray ( array ( |
|
| 44 | - 'type' => \PHPExcel_Style_Fill::FILL_SOLID, |
|
| 45 | - 'startcolor' => array ( |
|
| 46 | - 'rgb' => $color |
|
| 47 | - ) |
|
| 48 | - ) ); |
|
| 49 | - } |
|
| 50 | - /** |
|
| 51 | - */ |
|
| 52 | - static function styleActiveSheet($objPHPExcel) { |
|
| 53 | - $objPHPExcel->getActiveSheet ()->getDefaultStyle ()->getFont ()->setName ( 'Arial' )->setSize ( 8 )->setBold ( false ); |
|
| 54 | - $objPHPExcel->getActiveSheet ()->getDefaultStyle ()->getNumberFormat ()->setFormatCode ( \PHPExcel_Style_NumberFormat::FORMAT_TEXT ); |
|
| 55 | - $objPHPExcel->getActiveSheet ()->freezePane ( 'A3' ); |
|
| 56 | - $style = array ( |
|
| 57 | - 'alignment' => array ( |
|
| 58 | - 'horizontal' => \PHPExcel_Style_Alignment::HORIZONTAL_CENTER, |
|
| 59 | - 'vertical' => \PHPExcel_Style_Alignment::VERTICAL_CENTER |
|
| 60 | - ) |
|
| 61 | - ); |
|
| 62 | - $objWorksheet = $objPHPExcel->getActiveSheet (); |
|
| 63 | - $objWorksheet->getDefaultStyle ()->applyFromArray ( $style ); |
|
| 64 | - $objWorksheet->getStyle ( 'A1:AA2' )->getFont ()->setBold ( true ); |
|
| 65 | - for($col = ord ( 'a' ); $col <= ord ( 'z' ); $col ++) { |
|
| 66 | - $objWorksheet->getColumnDimension ( chr ( $col ) )->setAutoSize ( true ); |
|
| 67 | - } |
|
| 68 | - return $objPHPExcel; |
|
| 69 | - } |
|
| 70 | - /** |
|
| 71 | - * |
|
| 72 | - * @param unknown $objPHPExcel |
|
| 73 | - */ |
|
| 74 | - private static function downloadExcel($objPHPExcel, $filename) { |
|
| 75 | - ob_end_clean (); |
|
| 76 | - ob_start (); |
|
| 77 | - header ( "Content-type: application/vnd.ms-excel; charset=utf-8" ); |
|
| 78 | - header ( "Content-Transfer-Encoding: binary" ); |
|
| 79 | - header ( "Content-Description: File Transfer" ); |
|
| 80 | - header ( "Content-Disposition: attachment; filename=\"" . $filename . "\"" ); |
|
| 81 | - header ( "Cache-Control: max-age=0" ); |
|
| 82 | - header ( "Expires: 0" ); |
|
| 83 | - header ( "Pragma: no-cache" ); |
|
| 38 | + ExcelExport::downloadExcel ( $objPHPExcel, $dataSetName . '.xlsx' ); |
|
| 39 | + } |
|
| 40 | + /** |
|
| 41 | + */ |
|
| 42 | + static function cellColor($objPHPExcel, $cells, $color) { |
|
| 43 | + $objPHPExcel->getActiveSheet ()->getStyle ( $cells )->getFill ()->applyFromArray ( array ( |
|
| 44 | + 'type' => \PHPExcel_Style_Fill::FILL_SOLID, |
|
| 45 | + 'startcolor' => array ( |
|
| 46 | + 'rgb' => $color |
|
| 47 | + ) |
|
| 48 | + ) ); |
|
| 49 | + } |
|
| 50 | + /** |
|
| 51 | + */ |
|
| 52 | + static function styleActiveSheet($objPHPExcel) { |
|
| 53 | + $objPHPExcel->getActiveSheet ()->getDefaultStyle ()->getFont ()->setName ( 'Arial' )->setSize ( 8 )->setBold ( false ); |
|
| 54 | + $objPHPExcel->getActiveSheet ()->getDefaultStyle ()->getNumberFormat ()->setFormatCode ( \PHPExcel_Style_NumberFormat::FORMAT_TEXT ); |
|
| 55 | + $objPHPExcel->getActiveSheet ()->freezePane ( 'A3' ); |
|
| 56 | + $style = array ( |
|
| 57 | + 'alignment' => array ( |
|
| 58 | + 'horizontal' => \PHPExcel_Style_Alignment::HORIZONTAL_CENTER, |
|
| 59 | + 'vertical' => \PHPExcel_Style_Alignment::VERTICAL_CENTER |
|
| 60 | + ) |
|
| 61 | + ); |
|
| 62 | + $objWorksheet = $objPHPExcel->getActiveSheet (); |
|
| 63 | + $objWorksheet->getDefaultStyle ()->applyFromArray ( $style ); |
|
| 64 | + $objWorksheet->getStyle ( 'A1:AA2' )->getFont ()->setBold ( true ); |
|
| 65 | + for($col = ord ( 'a' ); $col <= ord ( 'z' ); $col ++) { |
|
| 66 | + $objWorksheet->getColumnDimension ( chr ( $col ) )->setAutoSize ( true ); |
|
| 67 | + } |
|
| 68 | + return $objPHPExcel; |
|
| 69 | + } |
|
| 70 | + /** |
|
| 71 | + * |
|
| 72 | + * @param unknown $objPHPExcel |
|
| 73 | + */ |
|
| 74 | + private static function downloadExcel($objPHPExcel, $filename) { |
|
| 75 | + ob_end_clean (); |
|
| 76 | + ob_start (); |
|
| 77 | + header ( "Content-type: application/vnd.ms-excel; charset=utf-8" ); |
|
| 78 | + header ( "Content-Transfer-Encoding: binary" ); |
|
| 79 | + header ( "Content-Description: File Transfer" ); |
|
| 80 | + header ( "Content-Disposition: attachment; filename=\"" . $filename . "\"" ); |
|
| 81 | + header ( "Cache-Control: max-age=0" ); |
|
| 82 | + header ( "Expires: 0" ); |
|
| 83 | + header ( "Pragma: no-cache" ); |
|
| 84 | 84 | |
| 85 | - $objWriter = \PHPExcel_IOFactory::createWriter ( $objPHPExcel, 'Excel2007' ); |
|
| 86 | - $objWriter->setPreCalculateFormulas ( true ); |
|
| 87 | - $objWriter->save ( 'php://output' ); |
|
| 88 | - exit (); |
|
| 89 | - } |
|
| 90 | - /** |
|
| 91 | - * remove special chars and words from string |
|
| 92 | - * @param unknown $string |
|
| 93 | - */ |
|
| 94 | - private static function clearName($string, $removeWords) { |
|
| 95 | - $string = str_replace ( ' ', '-', $string ); |
|
| 96 | - $string = preg_replace ( '/[^A-Za-z0-9\-]/', '', $string ); |
|
| 97 | - foreach ( $removeWords as $word ) { |
|
| 98 | - $string = str_replace ( $word, '', $string ); |
|
| 99 | - } |
|
| 100 | - $string = substr ( $string, 0, 29 ); |
|
| 101 | - return $string; |
|
| 102 | - } |
|
| 103 | - /** |
|
| 104 | - * @param unknown $objPHPExcel |
|
| 105 | - * @param unknown $title |
|
| 106 | - */ |
|
| 107 | - static function printTitle($objPHPExcel, $title) { |
|
| 108 | - $objPHPExcel->getActiveSheet ()->setTitle ( ExcelExport::clearName ( $title, array('ddzia') ), true ); |
|
| 109 | - $objPHPExcel->getActiveSheet ()->setCellValueByColumnAndRow ( 0, 1, $title ); |
|
| 110 | - } |
|
| 111 | - /** |
|
| 112 | - * |
|
| 113 | - * @param unknown $objPHPExcel |
|
| 114 | - */ |
|
| 115 | - static function newSheet($objPHPExcel, $index = -1) { |
|
| 116 | - if ($index < 0) { |
|
| 117 | - $index = $objPHPExcel->getSheetCount (); |
|
| 118 | - } |
|
| 119 | - $objPHPExcel->createSheet ( $index ); |
|
| 120 | - $objPHPExcel->setActiveSheetIndex ( $index ); |
|
| 121 | - $sheet = $objPHPExcel->getActiveSheet (); |
|
| 122 | - return $sheet; |
|
| 123 | - } |
|
| 85 | + $objWriter = \PHPExcel_IOFactory::createWriter ( $objPHPExcel, 'Excel2007' ); |
|
| 86 | + $objWriter->setPreCalculateFormulas ( true ); |
|
| 87 | + $objWriter->save ( 'php://output' ); |
|
| 88 | + exit (); |
|
| 89 | + } |
|
| 90 | + /** |
|
| 91 | + * remove special chars and words from string |
|
| 92 | + * @param unknown $string |
|
| 93 | + */ |
|
| 94 | + private static function clearName($string, $removeWords) { |
|
| 95 | + $string = str_replace ( ' ', '-', $string ); |
|
| 96 | + $string = preg_replace ( '/[^A-Za-z0-9\-]/', '', $string ); |
|
| 97 | + foreach ( $removeWords as $word ) { |
|
| 98 | + $string = str_replace ( $word, '', $string ); |
|
| 99 | + } |
|
| 100 | + $string = substr ( $string, 0, 29 ); |
|
| 101 | + return $string; |
|
| 102 | + } |
|
| 103 | + /** |
|
| 104 | + * @param unknown $objPHPExcel |
|
| 105 | + * @param unknown $title |
|
| 106 | + */ |
|
| 107 | + static function printTitle($objPHPExcel, $title) { |
|
| 108 | + $objPHPExcel->getActiveSheet ()->setTitle ( ExcelExport::clearName ( $title, array('ddzia') ), true ); |
|
| 109 | + $objPHPExcel->getActiveSheet ()->setCellValueByColumnAndRow ( 0, 1, $title ); |
|
| 110 | + } |
|
| 111 | + /** |
|
| 112 | + * |
|
| 113 | + * @param unknown $objPHPExcel |
|
| 114 | + */ |
|
| 115 | + static function newSheet($objPHPExcel, $index = -1) { |
|
| 116 | + if ($index < 0) { |
|
| 117 | + $index = $objPHPExcel->getSheetCount (); |
|
| 118 | + } |
|
| 119 | + $objPHPExcel->createSheet ( $index ); |
|
| 120 | + $objPHPExcel->setActiveSheetIndex ( $index ); |
|
| 121 | + $sheet = $objPHPExcel->getActiveSheet (); |
|
| 122 | + return $sheet; |
|
| 123 | + } |
|
| 124 | 124 | |
| 125 | 125 | } |
| 126 | 126 | \ No newline at end of file |