Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

dream-dialog-content.part copy.php 5.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <?php
  2. //debug($exams);
  3. ?>
  4. <?php if (!empty($registry)): ?>
  5. <div class="text-right"><span class="badge badge-secondary">ID: <?php echo $registry['idCartella']; ?></span></div>
  6. <h4><?php echo _('Registry'); ?></h4>
  7. <div class="table-overflow table-overflow-popup">
  8. <table class="table table-hover">
  9. <thead class="thead-light">
  10. <tr>
  11. <th><?php echo _('Age'); ?></th>
  12. <th><?php echo _('Sex'); ?></th>
  13. <th><?php echo _('HIV-positive'); ?></th>
  14. <th><?php echo _('AIDS Stage'); ?></th>
  15. <th><?php echo _('ART'); ?></th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. <tr>
  20. <td><?php echo $registry['age']; ?></td>
  21. <td><?php echo $registry['sesso']; ?></td>
  22. <td>
  23. <?php
  24. if (isset($HivTestHistory['HIV_Stato'])) {
  25. echo $HivTestHistory['HIV_Stato']=='HIV_YES' ? _('Yes') : _('No');
  26. }
  27. ?>
  28. </td>
  29. <td>
  30. <?php
  31. if (isset($HivStages['StadioSida'])) {
  32. echo $HivStages['StadioSida'];
  33. }
  34. ?>
  35. </td>
  36. <td>
  37. <?php
  38. if (isset($TarvHistory['StatoTerapia'])) {
  39. echo $TarvHistory['StatoTerapia']=='TARV_SI' ? _('Yes') : _('No');
  40. }
  41. ?>
  42. </td>
  43. </tr>
  44. </tbody>
  45. </table>
  46. </div>
  47. <?php endif; ?>
  48. <?php if (!empty($exams)): ?>
  49. <h4><?php echo _('Examen'); ?></h4>
  50. <div class="table-overflow table-overflow-popup">
  51. <table class="table table-hover">
  52. <thead class="thead-light">
  53. <tr>
  54. <th><?php echo _('Date'); ?></th>
  55. <?php foreach($examsAcr as $label): ?>
  56. <th><?php echo $label; ?></th>
  57. <?php endforeach; ?>
  58. </tr>
  59. </thead>
  60. <tbody>
  61. <?php foreach($exams as $exam): ?>
  62. <tr>
  63. <td><?php echo $this->helper->getDateString($exam['Data'], false) ?? ''; ?></td>
  64. <?php foreach($examsAcr as $label): ?>
  65. <td><?php echo $exam[$label] ?? ''; ?></td>
  66. <?php endforeach; ?>
  67. </tr>
  68. <?php endforeach; ?>
  69. </tbody>
  70. </table>
  71. </div>
  72. <?php endif; ?>
  73. <?php if (!empty($dailyData)): ?>
  74. <h4><?php echo _('Daily'); ?></h4>
  75. <div class="row margin-bottom-10">
  76. <?php foreach($examStats as $year => $stat): ?>
  77. <div class="col-lg-4 col-xl-4"><canvas id="daily-chart-values-<?php echo $year; ?>"></canvas></div>
  78. <?php endforeach; ?>
  79. </div>
  80. <div class="table-overflow table-overflow-popup">
  81. <table class="table table-hover">
  82. <thead class="thead-light">
  83. <tr>
  84. <th><?php echo _('Date'); ?></th>
  85. <th>BMI</th>
  86. <th>TAmax</th>
  87. <th>TAmin</th>
  88. <th>FC</th>
  89. <th>FR</th>
  90. <th>TC</th>
  91. <th><?php echo _('Notes'); ?></th>
  92. <th><?php echo _('Diagnosis'); ?></th>
  93. <th><?php echo _('Symptoms'); ?></th>
  94. </tr>
  95. </thead>
  96. <tbody>
  97. <?php foreach($dailyData as $idDiaria => $diariaData): ?>
  98. <tr>
  99. <td><?php echo $this->helper->getDateString($diariaData['Diaria']['Data'], false) ?? ''; ?></td>
  100. <td><?php echo $diariaData['Diaria']['BMI'] ?? ''; ?></td>
  101. <td><?php echo $diariaData['Diaria']['TAmax'] ?? ''; ?></td>
  102. <td><?php echo $diariaData['Diaria']['TAmin'] ?? ''; ?></td>
  103. <td><?php echo $diariaData['Diaria']['FC'] ?? ''; ?></td>
  104. <td><?php echo $diariaData['Diaria']['FR'] ?? ''; ?></td>
  105. <td><?php echo $diariaData['Diaria']['TC'] ?? ''; ?></td>
  106. <td><?php echo $diariaData['Diaria']['Note'] ?? ''; ?></td>
  107. <td>
  108. <?php if(isset($diariaData['Sintomi']) && is_array($diariaData['Sintomi'])): ?>
  109. <ul>
  110. <?php foreach($diariaData['Sintomi'] as $symptoms): ?>
  111. <li><?php echo $symptoms['Sintomi']; ?></li>
  112. <?php endforeach; ?>
  113. </ul>
  114. <?php endif; ?>
  115. </td>
  116. <td>
  117. <?php if(isset($diariaData['Diagnosi']) && is_array($diariaData['Diagnosi'])): ?>
  118. <ul>
  119. <?php foreach($diariaData['Diagnosi'] as $symptoms): ?>
  120. <li><?php echo $symptoms['Diagnosi']; ?></li>
  121. <?php endforeach; ?>
  122. </ul>
  123. <?php endif; ?>
  124. </td>
  125. </tr>
  126. <?php endforeach; ?>
  127. </tbody>
  128. </table>
  129. </div>
  130. <?php endif; ?>
  131. <?php if (!empty($TarvHistory)): ?>
  132. <h4><?php echo _('TARV'); ?></h4>
  133. <div class="table-overflow table-overflow-popup">
  134. <table class="table table-hover">
  135. <thead class="thead-light">
  136. <tr>
  137. <th><?php echo _('Date'); ?></th>
  138. <th><?php echo _('Status'); ?></th>
  139. <th><?php echo _('Reason'); ?></th>
  140. <th><?php echo _('Line Description'); ?></th>
  141. <th><?php echo _('Therapy Description'); ?></th>
  142. </tr>
  143. </thead>
  144. <tbody>
  145. <?php foreach($TarvHistory as $tHistory): ?>
  146. <tr>
  147. <td><?php echo $this->helper->getDateString($tHistory['DataInizio'], false) ?? ''; ?></td>
  148. <td><?php echo $tHistory['StatoTerapia'] == 'TARV_SI' ? _('Yes') : _('No'); ?></td>
  149. <td><?php echo $tHistory['Motivo'] ?? ''; ?></td>
  150. <td><?php echo $tHistory['Descrizione_Linea'] ?? ''; ?></td>
  151. <td><?php echo $tHistory['Descrizione_Terapia'] ?? ''; ?></td>
  152. </tr>
  153. <?php endforeach; ?>
  154. </tbody>
  155. </table>
  156. </div>
  157. <?php endif; ?>
  158. <?php if (!empty($ListaFarmaci)): ?>
  159. <h4><?php echo _('Available drugs'); ?></h4>
  160. <div class="table-overflow table-overflow-popup">
  161. <table class="table table-hover">
  162. <thead class="thead-light">
  163. <tr>
  164. <th><?php echo _('Commercial name'); ?></th>
  165. <th><?php echo _('Active substance name'); ?></th>
  166. <th><?php echo _('Dosage'); ?></th>
  167. <th><?php echo _('Quantity'); ?></th>
  168. </tr>
  169. </thead>
  170. <tbody>
  171. <?php foreach($ListaFarmaci as $lFarmaci): ?>
  172. <tr>
  173. <td><?php echo $lFarmaci['NomeCommerciale'] ?? ''; ?></td>
  174. <td><?php echo $lFarmaci['NomeComposto'] ?? ''; ?></td>
  175. <td><?php echo $lFarmaci['Posologia'] ?? ''; ?></td>
  176. <td><?php echo $lFarmaci['Quantita'] ?? ''; ?></td>
  177. </tr>
  178. <?php endforeach; ?>
  179. </tbody>
  180. </table>
  181. </div>
  182. <?php endif; ?>