|
@@ -1 +1,87 @@
|
|
-<h1>Edit for plan_goals</h1>
|
|
|
|
|
|
+<?php
|
|
|
|
+
|
|
|
|
+use App\Models\Point;
|
|
|
|
+use \App\Models\Client;
|
|
|
|
+use \App\Models\Note;
|
|
|
|
+use \App\Models\Segment;
|
|
|
|
+
|
|
|
|
+/** @var Client $patient */
|
|
|
|
+/** @var Note $note */
|
|
|
|
+/** @var Segment $segment */
|
|
|
|
+
|
|
|
|
+$goals = Point::getPlanPointsOfCategory($patient, 'GOAL', $note);
|
|
|
|
+$intakeOrVisit = 'PLAN';
|
|
|
|
+?>
|
|
|
|
+<div>
|
|
|
|
+
|
|
|
|
+ <div class="d-flex mb-2">
|
|
|
|
+ <table class="table table-sm table-bordered table-striped mb-0 bg-white">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr class="">
|
|
|
|
+ <th class="border-bottom-0">Goal</th>
|
|
|
|
+ <th class="border-bottom-0">Last Review</th>
|
|
|
|
+ <th class="border-bottom-0">Review Today</th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <?php foreach($goals as $goal): ?>
|
|
|
|
+ <tr>
|
|
|
|
+ <td>
|
|
|
|
+ <div class="d-flex align-items-baseline">
|
|
|
|
+ <div class="<?= $goal->is_removed ? 'strike-through' : '' ?>">
|
|
|
|
+ <b><?= !!@($goal->data->name) ? @($goal->data->name) : '-' ?></b>
|
|
|
|
+ <?= !!@($goal->data->description) ? '/ ' . @($goal->data->description) : '' ?>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <!-- common actions -->
|
|
|
|
+ <div class="ml-auto d-inline-flex align-items-baseline pr-2">
|
|
|
|
+ <?php
|
|
|
|
+ $point = $goal;
|
|
|
|
+ $label = 'Goal';
|
|
|
|
+ include resource_path('views/app/patient/segment-templates/_common_actions/remove-undo.php');
|
|
|
|
+ ?>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <?php
|
|
|
|
+ $point = $goal;
|
|
|
|
+ include resource_path('views/app/patient/segment-templates/_child_review/last-review.php');
|
|
|
|
+ ?>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <?php
|
|
|
|
+ $point = $goal;
|
|
|
|
+ include resource_path('views/app/patient/segment-templates/_child_review/edit-review.php');
|
|
|
|
+ ?>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ <?php endforeach; ?>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div visit-moe class="mt-1">
|
|
|
|
+ <a href="#" start show class="btn btn-sm btn btn-outline-primary">+ Add goal </a>
|
|
|
|
+ <form url="/api/visitPoint/addTopLevelDuringVisit" class="mcp-theme-1">
|
|
|
|
+ <input type="hidden" name="segmentUid" value="<?= $segment->uid ?>">
|
|
|
|
+ <input type="hidden" name="category" value="GOAL">
|
|
|
|
+ <input type="hidden" name="data">
|
|
|
|
+
|
|
|
|
+ <p class="mb-2"><b>Add Goal (plan)</b></p>
|
|
|
|
+
|
|
|
|
+ <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">
|
|
|
|
+ </div>
|
|
|
|
+ <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>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div>
|
|
|
|
+ <button submit class="btn btn-sm btn-primary mr-2">Submit</button>
|
|
|
|
+ <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
+
|