|
@@ -27,37 +27,50 @@ if($contentData === false || !isset($contentData[$sectionPro->uid])) {
|
|
<?php
|
|
<?php
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
- print_r($contentData[$sectionPro->uid]);
|
|
|
|
- // echo "Hello";
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-/*
|
|
|
|
-if(count($contentData['items'])) {
|
|
|
|
- for ($i = 0; $i < count($contentData['items']); $i++) {
|
|
|
|
- $item = $contentData['items'][$i];
|
|
|
|
-?>
|
|
|
|
- <div class="mb-2">
|
|
|
|
- <div class="">
|
|
|
|
- <?php if(isset($item["title"]) && !empty($item["title"])): ?>
|
|
|
|
- <b><?= $item["title"] ?></b>
|
|
|
|
- <?php endif; ?>
|
|
|
|
- <?= !!$item["strength"] ? '/ ' . $item["strength"] : '' ?>
|
|
|
|
- <?= !!$item["frequency"] ? '/ ' . $item["frequency"] : '' ?>
|
|
|
|
- </div>
|
|
|
|
- <?php
|
|
|
|
- $detailPlain = isset($item["detail"]) ? $item["detail"] : '';
|
|
|
|
- $detailPlain = trim(strip_tags($detailPlain));
|
|
|
|
- if(!empty($detailPlain)):
|
|
|
|
- ?>
|
|
|
|
- <div class="text-secondary"><?= $detailPlain ?></div>
|
|
|
|
- <?php endif; ?>
|
|
|
|
- </div>
|
|
|
|
-<?php
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-else {
|
|
|
|
|
|
+ $lines = $contentData[$sectionPro->uid]['current_cch']['list'];
|
|
?>
|
|
?>
|
|
- <div class="text-secondary">Nothing here yet!</div>
|
|
|
|
|
|
+ <p class="font-weight-bold mb-2">CC</p>
|
|
|
|
+ <table class="table table-sm table-bordered mb-2 table-edit-sheet">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr class="bg-light">
|
|
|
|
+ <th class="px-2 py-1 text-secondary border-bottom-0 width-30px text-center">#</th>
|
|
|
|
+ <th class="px-2 py-1 text-secondary border-bottom-0 w-25">Category</th>
|
|
|
|
+ <th class="px-2 py-1 text-secondary border-bottom-0">Title</th>
|
|
|
|
+ <th class="px-2 py-1 text-secondary border-bottom-0">ICD</th>
|
|
|
|
+ <th class="px-2 py-1 text-secondary border-bottom-0 w-35">Memo</th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody class="bg-white">
|
|
|
|
+ <?php foreach($lines as $i => $line): ?>
|
|
|
|
+ <tr class="bg-white">
|
|
|
|
+ <td class="bg-white px-2 py-1 text-center text-sm font-weight-bold"><?= ++$i ?></td>
|
|
|
|
+ <td class="bg-white px-2 py-1"><?= $line['category'] ?></td>
|
|
|
|
+ <td class="bg-white px-2 py-1"><?= $line['name'] ?></td>
|
|
|
|
+ <td class="bg-white px-2 py-1"><?= $line['icd'] ?></td>
|
|
|
|
+ <td class="bg-white px-2 py-1"><?= $line['memo'] ?></td>
|
|
|
|
+ </tr>
|
|
|
|
+ <?php endforeach; ?>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ <p class="font-weight-bold mb-2">HPI</p>
|
|
|
|
+ <table class="table table-sm table-bordered mb-2 table-edit-sheet">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr class="bg-light">
|
|
|
|
+ <th class="px-2 py-1 text-secondary border-bottom-0 width-30px text-center">#</th>
|
|
|
|
+ <th class="px-2 py-1 text-secondary border-bottom-0 w-25">Issue</th>
|
|
|
|
+ <th class="px-2 py-1 text-secondary border-bottom-0">HPI</th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody class="bg-white">
|
|
|
|
+ <?php foreach($lines as $i => $line): ?>
|
|
|
|
+ <tr>
|
|
|
|
+ <td class="px-2 bg-white py-1 text-center text-sm font-weight-bold"><?= ++$i ?></td>
|
|
|
|
+ <td class="px-2 bg-white py-1"><?= $line['category'] ?><?= $line['name'] ? ' / ' . $line['name'] : '' ?><?= $line['category'] ? ' / ' . $line['category'] : ''?></td>
|
|
|
|
+ <td class="px-2 bg-white py-1"><?= $line['hpi']['free_text'] ?></td>
|
|
|
|
+ </tr>
|
|
|
|
+ <?php endforeach; ?>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
<?php
|
|
<?php
|
|
-}*/
|
|
|
|
|
|
+}
|
|
?>
|
|
?>
|