Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. <!doctype html>
  2. <html lang="en-US">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7. <link rel="stylesheet" href="<?php echo $publicUri; ?>css/bootstrap.min.css">
  8. <link rel="stylesheet" href="<?php echo $publicUri; ?>css/style.css?t=<?php echo time(); ?>">
  9. <link rel="stylesheet" href="<?php echo $publicUri; ?>css/fonts.css">
  10. <style media="screen">
  11. .text_info{color: #777777}
  12. .borderless td, .borderless th {
  13. border: none;
  14. }
  15. .border-right {border-right:1px solid #cccccc !important}
  16. .text-health{font-size: 18px}
  17. h5{margin:0px;padding:0px !important}
  18. hr{margin-top:1px}
  19. @media screen {
  20. .page {
  21. page-break-after: always !important;
  22. }
  23. }
  24. </style>
  25. </head>
  26. <body>
  27. <div class="container">
  28. <div class="container-page-wrapper">
  29. <div class="container-page-container">
  30. <div class="row">
  31. <div class="col" style="width:100%;padding:0px;margin:0px">
  32. <table class="table borderless table-sm" style="width:100%;padding:0px;margin:0px; border: 1px solid #cccccc">
  33. <tr style="text-align:center">
  34. <td class="border-right" style="width:32%; border-bottom:1px solid #cccccc" colspan="2"><b><?php echo strtoupper(_('Patient_data')); ?></b></td>
  35. <td class="border-right" style="width:31%; border-bottom:1px solid #cccccc" colspan="2"><b><?php echo strtoupper(_('Request specialist')); ?></b></td>
  36. <td class="border-right" style="width:37%; border-bottom:1px solid #cccccc" colspan="2"><b><?php echo strtoupper(_('Teleconsultation')); ?></b></td>
  37. </tr>
  38. <!-- RIGA 1 -->
  39. <tr>
  40. <td style="width:9%" class="text_info"><?php echo _('Name'); ?></td>
  41. <td class="border-right" style="width:25%">
  42. <b>
  43. <?php if($this->view->requestData['request_anonymous'] == '0'): ?>
  44. <?php echo $this->view->requestData['patient_name']; ?>
  45. <?php else: ?>
  46. <?php echo '...' ?>
  47. <?php endif; ?>
  48. </b>
  49. </td>
  50. <td style="text-align:center">
  51. <?php if(is_array($this->view->requestMedicalSpecialties)): ?>
  52. <?php $i = 1 ?>
  53. <?php foreach($this->view->requestMedicalSpecialties as $item): ?>
  54. <?php if($i == 1): ?>
  55. <b><?php echo $item['description']; ?></b>
  56. <?php endif; ?>
  57. <?php $i++ ?>
  58. <?php endforeach; ?>
  59. <?php endif; ?>
  60. </td>
  61. <td style="text-align:center" class="border-right">
  62. <?php if(is_array($this->view->requestMedicalSpecialties)): ?>
  63. <?php $i = 1 ?>
  64. <?php foreach($this->view->requestMedicalSpecialties as $item): ?>
  65. <?php if($i == 2): ?>
  66. <b><?php echo $item['description']; ?></b>
  67. <?php endif; ?>
  68. <?php $i++ ?>
  69. <?php endforeach; ?>
  70. <?php endif; ?>
  71. </td>
  72. <td style="width:10%" class="text_info"><?php echo _('Number ID'); ?></td>
  73. <td class="border-right" style="width:25%"><b><?php echo $this->actionTitlePDF; ?></b></td>
  74. </tr>
  75. <!-- RIGA 2 -->
  76. <tr>
  77. <td style="width:8%" class="text_info"><?php echo _('Surname'); ?></td>
  78. <td class="border-right">
  79. <b>
  80. <?php if($this->view->requestData['request_anonymous'] == '0'): ?>
  81. <?php echo $this->view->requestData['patient_surname']; ?>
  82. <?php else: ?>
  83. <?php echo '...' ?>
  84. <?php endif; ?>
  85. </b>
  86. </td>
  87. <td style="text-align:center">
  88. <?php if(is_array($this->view->requestMedicalSpecialties)): ?>
  89. <?php $i = 1 ?>
  90. <?php foreach($this->view->requestMedicalSpecialties as $item): ?>
  91. <?php if($i == 3): ?>
  92. <b><?php echo $item['description']; ?></b>
  93. <?php endif; ?>
  94. <?php $i++ ?>
  95. <?php endforeach; ?>
  96. <?php endif; ?>
  97. </td>
  98. <td style="text-align:center" class="border-right">
  99. <?php if(is_array($this->view->requestMedicalSpecialties)): ?>
  100. <?php $i = 1 ?>
  101. <?php foreach($this->view->requestMedicalSpecialties as $item): ?>
  102. <?php if($i == 4): ?>
  103. <b><?php echo $item['description']; ?></b>
  104. <?php endif; ?>
  105. <?php $i++ ?>
  106. <?php endforeach; ?>
  107. <?php endif; ?>
  108. </td>
  109. <td style="width:15%" class="text_info"><?php echo _('Health Center'); ?></td>
  110. <td class="border-right" ><b><?php echo $this->view->requestData['center_description']; ?></b></td>
  111. </tr>
  112. <!-- RIGA 3 -->
  113. <tr>
  114. <td style="width:8%" class="text_info"><?php echo _('Gender'); ?></td>
  115. <td class="border-right">
  116. <b>
  117. <?php if($this->view->requestData['gender'] == 'm'): ?>
  118. <?php echo _('Male') ?>
  119. <?php else: ?>
  120. <?php echo _('Female') ?>
  121. <?php endif; ?>
  122. </b>
  123. </td>
  124. <td style="text-align:center">
  125. <?php if(is_array($this->view->requestMedicalSpecialties)): ?>
  126. <?php $i = 1 ?>
  127. <?php foreach($this->view->requestMedicalSpecialties as $item): ?>
  128. <?php if($i == 5): ?>
  129. <b><?php echo $item['description']; ?></b>
  130. <?php endif; ?>
  131. <?php $i++ ?>
  132. <?php endforeach; ?>
  133. <?php endif; ?>
  134. </td>
  135. <td style="text-align:center" class="border-right">
  136. <?php if(is_array($this->view->requestMedicalSpecialties)): ?>
  137. <?php $i = 1 ?>
  138. <?php foreach($this->view->requestMedicalSpecialties as $item): ?>
  139. <?php if($i == 6): ?>
  140. <b><?php echo $item['description']; ?></b>
  141. <?php endif; ?>
  142. <?php $i++ ?>
  143. <?php endforeach; ?>
  144. <?php endif; ?>
  145. </td>
  146. <td style="width:10%" class="text_info"><?php echo _('Request date'); ?></td>
  147. <td class="border-right" ><b><?php echo date('d/m/Y H:i', strtotime($this->view->requestData['created_at'])); ?></b></td>
  148. </tr>
  149. <!-- RIGA 4 -->
  150. <tr>
  151. <td style="width:8%" class="text_info"><?php echo _('Age'); ?></td>
  152. <td class="border-right">
  153. <b>
  154. <?php echo $this->helper->patient_age(['anonymous'=>$this->view->requestData['request_anonymous'], 'ageYears'=>$this->view->requestData['age_years'], 'ageMonths'=>$this->view->requestData['age_months'], 'ageDays'=>$this->view->requestData['age_days']]); ?></td>
  155. </b>
  156. </td>
  157. <td style="text-align:center">
  158. <?php if(is_array($this->view->requestMedicalSpecialties)): ?>
  159. <?php $i = 1 ?>
  160. <?php foreach($this->view->requestMedicalSpecialties as $item): ?>
  161. <?php if($i == 7): ?>
  162. <?php echo $item['description']; ?>
  163. <?php endif; ?>
  164. <?php $i++ ?>
  165. <?php endforeach; ?>
  166. <?php endif; ?>
  167. </td>
  168. <td style="text-align:center" class="border-right">
  169. <?php if(is_array($this->view->requestMedicalSpecialties)): ?>
  170. <?php $i = 1 ?>
  171. <?php foreach($this->view->requestMedicalSpecialties as $item): ?>
  172. <?php if($i == 8): ?>
  173. <?php echo $item['description']; ?>
  174. <?php endif; ?>
  175. <?php $i++ ?>
  176. <?php endforeach; ?>
  177. <?php endif; ?>
  178. </td>
  179. <td class="text_info"><?php echo _('Requester'); ?></td>
  180. <td class="border-right"><b><?php echo $this->view->requestData['sender_surname'].' '.$this->view->requestData['sender_name']; ?></b></td>
  181. </tr>
  182. </table>
  183. </div>
  184. </div>
  185. <!-- FINE TRE COLONNE PRINCIPALI -->
  186. <div class="card-body">
  187. <?php if(trim($this->view->requestData['medical_history']) != ''): ?>
  188. <h5><?php echo _('Medical History'); ?></h5>
  189. <hr>
  190. <?php echo $this->helper->hashtag(nl2br(trim(strip_tags($this->view->requestData['medical_history'])))); ?>
  191. <?php endif; ?>
  192. <h5 class="mt-4"><?php echo _('Medical Remarks'); ?></h5>
  193. <hr style="margin-bottom:0px">
  194. <div class="row mt-2 mb-2">
  195. <?php if ((float)$this->view->requestData['min_arterial_pressure'] > 0 && (float)$this->view->requestData['max_arterial_pressure'] > 0): ?>
  196. <div class="col text-center">
  197. <div class="text-health"><small><?php echo _('Blood Pressure'); ?></small><b class="ml-3"><?php echo $this->view->requestData['max_arterial_pressure']; ?>/<?php echo $this->view->requestData['min_arterial_pressure']; ?></b> <sup>mmHg</sup></div>
  198. </div>
  199. <?php endif; ?>
  200. <?php if ((float)$this->view->requestData['heart_rate'] > 0): ?>
  201. <div class="col text-center">
  202. <div class="text-health"><small><?php echo _('Heart Rate'); ?></small><b class="ml-3"><?php echo $this->view->requestData['heart_rate']; ?></b> <sup>bpm</sup></div>
  203. </div>
  204. <?php endif; ?>
  205. <?php if ((float)$this->view->requestData['saturation'] > 0): ?>
  206. <div class="col text-center">
  207. <div class="text-health"><small><?php echo vsprintf(_('%s Sat.'), 'O<sub>2</sub>'); ?></small><b class="ml-3">
  208. <?php if($this->view->requestData['saturation'] == '0'): ?>
  209. <?php echo '-'; ?>
  210. <?php else: ?>
  211. <?php echo $this->view->requestData['saturation']; ?> <sup>%</sup>
  212. <?php endif; ?>
  213. </b>
  214. </div>
  215. <?php endif; ?>
  216. </div>
  217. </div>
  218. <hr>
  219. <?php echo nl2br(trim(strip_tags($this->view->requestData['clinical_remarks']))); ?>
  220. </div>
  221. <?php if(is_array($this->view->symptoms) && !empty($this->view->symptoms)): ?>
  222. <div class="card margin-top-10">
  223. <div class="card-body">
  224. <h5 class="card-title"><?php echo _('ICD-10'); ?></h5>
  225. <ol class="list-no-margin-bottom">
  226. <?php foreach($this->view->symptoms as $symptom): ?>
  227. <li><?php echo ucfirst($symptom['symptom_label']); ?></li>
  228. <?php endforeach; ?>
  229. </ol>
  230. </div>
  231. </div>
  232. <?php endif; ?>
  233. <?php if(is_array($this->view->wizards)): ?>
  234. <?php foreach($this->view->wizards as $type => $items): ?>
  235. <div class="card margin-top-10">
  236. <div class="card-body">
  237. <h5 class="card-title"><?php echo isset($this->view->wizardTitles[$type]) ? $this->view->wizardTitles[$type] : '-'; ?></h5>
  238. <ol class="list-no-margin-bottom">
  239. <?php foreach($items as $item): ?>
  240. <li><?php echo $item['description']; ?></li>
  241. <?php endforeach; ?>
  242. </ol>
  243. <?php if($type == 'derma'): ?>
  244. <?php if(is_array($this->view->dermaPositions)): ?>
  245. <div><b><?php echo _('Position'); ?></b></div>
  246. <ol>
  247. <?php foreach($this->view->dermaPositions as $positionType => $positionData): ?>
  248. <li><?php echo isset($this->view->dermaPositionLabels[$positionData['position_type']]) ? $this->view->dermaPositionLabels[$positionData['position_type']] : '-'; ?></li>
  249. <?php endforeach; ?>
  250. </ol>
  251. <?php endif; ?>
  252. <?php endif; ?>
  253. </div>
  254. </div>
  255. <?php endforeach; ?>
  256. <?php endif; ?>
  257. <!-- <div class="page"></div> -->
  258. <div class="mb-1">&nbsp;</div>
  259. <!-- DOMANDA -->
  260. <table class="table table-sm" style="border-top: none !important;">
  261. <tr>
  262. <td style="border-top:4px solid gray; border-bottom:4px solid gray" colspan="2"><b><?php echo _('Question'); ?></b></td>
  263. </tr>
  264. <tr>
  265. <td style="border-top: none !important" ><?php echo _('From'); ?>:&nbsp;<b><?php echo $this->view->requestData['sender_surname'].' '.$this->view->requestData['sender_name']; ?></b></td>
  266. <td style="border-top: none !important; width:25%; text-align:right"><?php echo date('d/m/Y H:i', strtotime($this->view->requestData['created_at'])); ?></td>
  267. </tr>
  268. <tr>
  269. <td colspan="2"><?php echo $this->helper->hashtag($this->view->requestData['request_question']); ?></td>
  270. </tr>
  271. </table>
  272. <!-- FINE DOMANDA -->
  273. <!-- LISTA COMMENTI -->
  274. <div id="request-comment-wrapper">
  275. <?php echo $this->partial('Request/comment-list-pdf', ['comments'=>$this->view->comments]); ?>
  276. </div>
  277. <!-- FINE COMMENTI -->
  278. <hr>
  279. <!-- <div class="page"></div> -->
  280. <!-- ATTACHMENT -->
  281. <?php if(is_array($this->view->groupedAttachments) && !empty($this->view->groupedAttachments)): ?>
  282. <div class="mb-1">&nbsp;</div>
  283. <div class="card margin-top-10">
  284. <div class="card-body">
  285. <h5 class="card-title"><?php echo _('Attachments'); ?></h5>
  286. <?php foreach($this->view->groupedAttachments as $created_at => $attachments): ?>
  287. <label class="label-main"><?php echo date('d/m/Y H:i', strtotime($created_at)); ?></label>
  288. <ul class="list-no-type margin-bottom-10">
  289. <?php foreach($attachments as $attach): ?>
  290. <li class="list-no-type padding-left-10">
  291. <?php echo $this->helper->getDocName($attach); ?>
  292. </li>
  293. <?php endforeach; ?>
  294. </ul>
  295. <?php endforeach; ?>
  296. </div>
  297. </div>
  298. <?php endif; ?>
  299. </div>
  300. </div>
  301. </div>
  302. <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
  303. <script src="<?php echo $publicUri; ?>js/bootstrap.min.js"></script>
  304. </body>
  305. </html>