|
@@ -23,11 +23,11 @@ $goals = Point::getPointsOfCategoryExtended($patient, 'GOAL', $note);
|
|
|
<th class="border-bottom-0 text-secondary">Goal</th>
|
|
|
<th class="border-bottom-0 text-secondary">Category</th>
|
|
|
<th class="border-bottom-0 text-secondary">Active?</th>
|
|
|
- <th class="border-bottom-0 text-secondary">Edit</th>
|
|
|
<th class="border-bottom-0 text-secondary">Started</th>
|
|
|
<th class="border-bottom-0 text-secondary">Ended</th>
|
|
|
<th class="border-bottom-0 text-secondary w-25">Review</th>
|
|
|
<th class="border-bottom-0 text-secondary w-25">Plan</th>
|
|
|
+ <th class="border-bottom-0 text-secondary">Edit</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<?php $prevRowState = -1; ?>
|
|
@@ -108,9 +108,72 @@ $goals = Point::getPointsOfCategoryExtended($patient, 'GOAL', $note);
|
|
|
@endif
|
|
|
</td>
|
|
|
<td>
|
|
|
- <div moe wide>
|
|
|
+ <?= !!@($goal->data->start_date) ? friendly_date($goal->data->start_date) : '-' ?>
|
|
|
+ @if(!!@($goal->data->prescriber))
|
|
|
+ <div class="mt-1 text-sm text-secondary">By: <?= !!@($goal->data->prescriber) ? @($goal->data->prescriber) : '-' ?></div>
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <?= !!@($goal->removal_effective_date) ? friendly_date($goal->removal_effective_date) : '-' ?>
|
|
|
+ @if(!!@($goal->removal_reason_memo))
|
|
|
+ <div class="mt-1 text-sm text-secondary">By: <?= !!@($goal->removal_reason_memo) ? @($goal->removal_reason_memo) : '-' ?></div>
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <div class="d-flex align-items-start">
|
|
|
+ <div class="flex-grow-1">
|
|
|
+ <?php
|
|
|
+ $point = $goal;
|
|
|
+ include resource_path('views/app/patient/segment-templates/_child_review/last-review.php');
|
|
|
+ ?>
|
|
|
+ </div>
|
|
|
+ <div class="d-inline-flex flex-nowrap">
|
|
|
+ <a class="pl-2 view-review-log"
|
|
|
+ native target="_blank"
|
|
|
+ open-in-stag-popup
|
|
|
+ popup-style="stag-popup-md"
|
|
|
+ title="Review log<?= !!@($goal->data->goal) ? ' for ' . @($goal->data->goal) : '' ?>"
|
|
|
+ href="/point/review-log/<?= $goal->uid ?>?popupmode=1">
|
|
|
+ <i class="fa fa-history"></i>
|
|
|
+ </a>
|
|
|
+ <?php
|
|
|
+ /*$segment = $note->getSegmentByInternalName('intake_goals');
|
|
|
+ if($segment) {
|
|
|
+ include resource_path('views/app/patient/segment-templates/_child_review/edit-review.php');
|
|
|
+ }*/
|
|
|
+ ?>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <div class="d-flex align-items-start">
|
|
|
+ <div class="flex-grow-1">
|
|
|
+ <?php
|
|
|
+ include resource_path('views/app/patient/segment-templates/_child_plan/last-plan.php');
|
|
|
+ ?>
|
|
|
+ </div>
|
|
|
+ <div class="d-inline-flex flex-nowrap">
|
|
|
+ <a class="pl-2 view-review-log"
|
|
|
+ native target="_blank"
|
|
|
+ open-in-stag-popup
|
|
|
+ popup-style="stag-popup-md"
|
|
|
+ title="Plan log<?= !!@($goal->data->goal) ? ' for ' . @($goal->data->goal) : '' ?>"
|
|
|
+ href="/point/plan-log/<?= $goal->uid ?>?popupmode=1">
|
|
|
+ <i class="fa fa-history"></i>
|
|
|
+ </a>
|
|
|
+ <?php
|
|
|
+ /*$segment = $note->getSegmentByInternalName('plan_goals');
|
|
|
+ if($segment) {
|
|
|
+ include resource_path('views/app/patient/segment-templates/_child_plan/edit-plan.php');
|
|
|
+ }*/
|
|
|
+ ?>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <div moe wide relative>
|
|
|
<a start show href="#" title="Edit">Edit</a>
|
|
|
- <form url="/api/visitPoint/updateTopLevel" class="mcp-theme-1 frm-edit-goal">
|
|
|
+ <form url="/api/visitPoint/updateTopLevel" class="mcp-theme-1 frm-edit-goal" right>
|
|
|
<input type="hidden" name="uid" value="<?= $goal->uid ?>">
|
|
|
<input type="hidden" name="noteUid" value="<?= $note->uid ?>">
|
|
|
<p class="mb-2"><b>Update Goal</b></p>
|
|
@@ -222,69 +285,6 @@ $goals = Point::getPointsOfCategoryExtended($patient, 'GOAL', $note);
|
|
|
</form>
|
|
|
</div>
|
|
|
</td>
|
|
|
- <td>
|
|
|
- <?= !!@($goal->data->start_date) ? friendly_date($goal->data->start_date) : '-' ?>
|
|
|
- @if(!!@($goal->data->prescriber))
|
|
|
- <div class="mt-1 text-sm text-secondary">By: <?= !!@($goal->data->prescriber) ? @($goal->data->prescriber) : '-' ?></div>
|
|
|
- @endif
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <?= !!@($goal->removal_effective_date) ? friendly_date($goal->removal_effective_date) : '-' ?>
|
|
|
- @if(!!@($goal->removal_reason_memo))
|
|
|
- <div class="mt-1 text-sm text-secondary">By: <?= !!@($goal->removal_reason_memo) ? @($goal->removal_reason_memo) : '-' ?></div>
|
|
|
- @endif
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <div class="d-flex align-items-start">
|
|
|
- <div class="flex-grow-1">
|
|
|
- <?php
|
|
|
- $point = $goal;
|
|
|
- include resource_path('views/app/patient/segment-templates/_child_review/last-review.php');
|
|
|
- ?>
|
|
|
- </div>
|
|
|
- <div class="d-inline-flex flex-nowrap">
|
|
|
- <a class="pl-2 view-review-log"
|
|
|
- native target="_blank"
|
|
|
- open-in-stag-popup
|
|
|
- popup-style="stag-popup-md"
|
|
|
- title="Review log<?= !!@($goal->data->goal) ? ' for ' . @($goal->data->goal) : '' ?>"
|
|
|
- href="/point/review-log/<?= $goal->uid ?>?popupmode=1">
|
|
|
- <i class="fa fa-history"></i>
|
|
|
- </a>
|
|
|
- <?php
|
|
|
- /*$segment = $note->getSegmentByInternalName('intake_goals');
|
|
|
- if($segment) {
|
|
|
- include resource_path('views/app/patient/segment-templates/_child_review/edit-review.php');
|
|
|
- }*/
|
|
|
- ?>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <div class="d-flex align-items-start">
|
|
|
- <div class="flex-grow-1">
|
|
|
- <?php
|
|
|
- include resource_path('views/app/patient/segment-templates/_child_plan/last-plan.php');
|
|
|
- ?>
|
|
|
- </div>
|
|
|
- <div class="d-inline-flex flex-nowrap">
|
|
|
- <a class="pl-2 view-review-log"
|
|
|
- native target="_blank"
|
|
|
- open-in-stag-popup
|
|
|
- popup-style="stag-popup-md"
|
|
|
- title="Plan log<?= !!@($goal->data->goal) ? ' for ' . @($goal->data->goal) : '' ?>"
|
|
|
- href="/point/plan-log/<?= $goal->uid ?>?popupmode=1">
|
|
|
- <i class="fa fa-history"></i>
|
|
|
- </a>
|
|
|
- <?php
|
|
|
- /*$segment = $note->getSegmentByInternalName('plan_goals');
|
|
|
- if($segment) {
|
|
|
- include resource_path('views/app/patient/segment-templates/_child_plan/edit-plan.php');
|
|
|
- }*/
|
|
|
- ?>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
</tr>
|
|
|
<?php endforeach; ?>
|
|
|
</table>
|