|
@@ -18,19 +18,28 @@ $goals = Point::getIntakePointsOfCategory($patient, 'GOAL', $note);
|
|
<table class="table table-sm table-bordered table-striped mb-0 bg-white">
|
|
<table class="table table-sm table-bordered table-striped mb-0 bg-white">
|
|
<thead>
|
|
<thead>
|
|
<tr class="">
|
|
<tr class="">
|
|
|
|
+ <th class="border-bottom-0">Category</th>
|
|
<th class="border-bottom-0">Goal</th>
|
|
<th class="border-bottom-0">Goal</th>
|
|
<th class="border-bottom-0">Last Review</th>
|
|
<th class="border-bottom-0">Last Review</th>
|
|
<th class="border-bottom-0">Last Plan</th>
|
|
<th class="border-bottom-0">Last Plan</th>
|
|
<th class="border-bottom-0">Review Today</th>
|
|
<th class="border-bottom-0">Review Today</th>
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
|
|
+ <?php $previousCategory = null; ?>
|
|
<?php foreach($goals as $goal): ?>
|
|
<?php foreach($goals as $goal): ?>
|
|
|
|
+ <?php if(@($goal->data->category)): ?>
|
|
<tr>
|
|
<tr>
|
|
|
|
+ <td>
|
|
|
|
+ <?php if($previousCategory === $goal->data->category): ?>
|
|
|
|
+ <span class="text-secondary"><?= $goal->data->category ?></span>
|
|
|
|
+ <?php else: ?>
|
|
|
|
+ <span class="font-weight-bold"><?= $goal->data->category ?></span>
|
|
|
|
+ <?php endif; ?>
|
|
|
|
+ </td>
|
|
<td>
|
|
<td>
|
|
<div class="d-flex align-items-baseline">
|
|
<div class="d-flex align-items-baseline">
|
|
<div class="<?= $goal->is_removed ? 'strike-through' : '' ?>">
|
|
<div class="<?= $goal->is_removed ? 'strike-through' : '' ?>">
|
|
- <b><?= !!@($goal->data->name) ? @($goal->data->name) : '-' ?></b>
|
|
|
|
- <?= !!@($goal->data->description) ? '/ ' . @($goal->data->description) : '' ?>
|
|
|
|
|
|
+ <?= !!@($goal->data->goal) ? @($goal->data->goal) : '' ?>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- common actions -->
|
|
<!-- common actions -->
|
|
@@ -86,6 +95,8 @@ $goals = Point::getIntakePointsOfCategory($patient, 'GOAL', $note);
|
|
?>
|
|
?>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
|
|
+ <?php $previousCategory = $goal->data->category; ?>
|
|
|
|
+ <?php endif; ?>
|
|
<?php endforeach; ?>
|
|
<?php endforeach; ?>
|
|
</table>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
@@ -100,12 +111,21 @@ $goals = Point::getIntakePointsOfCategory($patient, 'GOAL', $note);
|
|
<p class="mb-2"><b>Add Goal (on intake)</b></p>
|
|
<p class="mb-2"><b>Add Goal (on intake)</b></p>
|
|
|
|
|
|
<div class="mb-2">
|
|
<div class="mb-2">
|
|
- <label class="text-sm text-secondary mb-1">Name</label>
|
|
|
|
- <input type="text" data-name="name" class="form-control form-control-sm">
|
|
|
|
|
|
+ <label class="text-sm text-secondary mb-1">Category</label>
|
|
|
|
+ <select type="text" data-name="category" class="form-control form-control-sm">
|
|
|
|
+ <option value="">-- select --</option>
|
|
|
|
+ <option value="NUTRITION">NUTRITION</option>
|
|
|
|
+ <option value="ACTIVITY">ACTIVITY</option>
|
|
|
|
+ <option value="SLEEP">SLEEP</option>
|
|
|
|
+ <option value="SOCIAL CONNECTION">SOCIAL CONNECTION</option>
|
|
|
|
+ <option value="STRESS REDUCTION">STRESS REDUCTION</option>
|
|
|
|
+ <option value="RISKY SUBSTANCE AVOIDANCE">RISKY SUBSTANCE AVOIDANCE</option>
|
|
|
|
+ <option value="OTHER">OTHER</option>
|
|
|
|
+ </select>
|
|
</div>
|
|
</div>
|
|
<div class="mb-2">
|
|
<div class="mb-2">
|
|
- <label class="text-sm text-secondary mb-1">Description</label>
|
|
|
|
- <textarea type="text" data-name="description" class="form-control form-control-sm"></textarea>
|
|
|
|
|
|
+ <label class="text-sm text-secondary mb-1">Goal</label>
|
|
|
|
+ <textarea type="text" data-name="goal" class="form-control form-control-sm" rows="3"></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div>
|
|
<div>
|