Browse Source

cc_hpi > cc as a sentence fix

Vijayakrishnan 4 years ago
parent
commit
491724bca0
1 changed files with 3 additions and 2 deletions
  1. 3 2
      resources/views/app/patient/canvas-sections/cc_hpi/summary.php

+ 3 - 2
resources/views/app/patient/canvas-sections/cc_hpi/summary.php

@@ -37,9 +37,10 @@ else {
     ?>
     <p class="font-weight-bold mb-2">CC</p>
     <p class="p-2 bg-light border mb-2">
-        Patient is a <?= $patient->age_in_years ?> y.o. <?= $client->sex ?> presenting for:
+        Patient is a <?= $patient->age_in_years ?> y.o. <?= $client->sex ?> presenting for the following reason<?= count($lines) > 1 ? 's' : '' ?>:
         <?php foreach($lines as $i => $line): ?>
-            <?= $line['name'] ?><?= count($lines) > 1 ? ($i === count($lines) - 2 ? ' and ' : ($i < count($lines) - 2 ? ', ' : '')) : '' ?>
+            <?= $line['name'] ?>
+            (<?= $line['category'] ?><?= $line['icd'] ? ' / ' . $line['icd'] : '' ?><?= $line['memo'] ? ' / ' . $line['memo'] : '' ?>)<?= count($lines) > 1 ? ($i === count($lines) - 2 ? ' and ' : ($i < count($lines) - 2 ? ', ' : '')) : '' ?>
         <?php endforeach; ?>
     </p>
     <p class="font-weight-bold mb-2">HPI</p>