瀏覽代碼

cc_hpi > cc as a sentence

Vijayakrishnan 4 年之前
父節點
當前提交
7b9e29e096
共有 1 個文件被更改,包括 6 次插入20 次删除
  1. 6 20
      resources/views/app/patient/canvas-sections/cc_hpi/summary.php

+ 6 - 20
resources/views/app/patient/canvas-sections/cc_hpi/summary.php

@@ -36,28 +36,14 @@ else {
     $lines = $contentData['current_cch']['list'];
     ?>
     <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">
+    <p class="p-2 bg-light border mb-2">
+        Patient is a <?= $patient->age_in_years ?> y.o. <?= $client->sex ?> presenting for:
         <?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"><?= ucwords($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 if($i > 0):?>, <?php endif; ?>
+            <?php if(!!$line['icd']): ?><span><?= $line['icd'] ?></span><?php endif; ?>
+            <?php if(!!$line['memo']): ?><span>(<?= $line['memo'] ?>)</span><?php endif; ?>
         <?php endforeach; ?>
-        </tbody>
-    </table>
+    </p>
     <p class="font-weight-bold mb-2">HPI</p>
     <table class="table table-sm table-bordered mb-2 table-edit-sheet">
         <thead>