Переглянути джерело

All wizards - individual edit for plan and review

Vijayakrishnan 3 роки тому
батько
коміт
07878786fa

+ 14 - 2
resources/views/app/patient/allergies-center.blade.php

@@ -59,7 +59,7 @@ list($allergies, $counts) = Point::getPointsOfCategoryExtended($patient, 'ALLERG
                             ?>
                         </div>
                         <div class="d-inline-flex flex-nowrap">
-                            <a class="pl-2 view-review-log"
+                            <a class="px-2 view-review-log"
                                native target="_blank"
                                open-in-stag-popup
                                popup-style="stag-popup-md"
@@ -67,6 +67,12 @@ list($allergies, $counts) = Point::getPointsOfCategoryExtended($patient, 'ALLERG
                                href="/point/review-log/<?= $allergy->uid ?>?popupmode=1">
                                 <i class="fa fa-history"></i>
                             </a>
+                            <?php
+                            $segment = $note->getSegmentByInternalName('intake_allergies');
+                            if($segment) {
+                                include resource_path('views/app/patient/segment-templates/_child_review/edit-review.php');
+                            }
+                            ?>
                         </div>
                     </div>
                 </td>
@@ -78,7 +84,7 @@ list($allergies, $counts) = Point::getPointsOfCategoryExtended($patient, 'ALLERG
                             ?>
                         </div>
                         <div class="d-inline-flex flex-nowrap">
-                            <a class="pl-2 view-review-log"
+                            <a class="px-2 view-review-log"
                                native target="_blank"
                                open-in-stag-popup
                                popup-style="stag-popup-md"
@@ -86,6 +92,12 @@ list($allergies, $counts) = Point::getPointsOfCategoryExtended($patient, 'ALLERG
                                href="/point/plan-log/<?= $allergy->uid ?>?popupmode=1">
                                 <i class="fa fa-history"></i>
                             </a>
+                            <?php
+                            $segment = $note->getSegmentByInternalName('plan_allergies');
+                            if($segment) {
+                                include resource_path('views/app/patient/segment-templates/_child_plan/edit-plan.php');
+                            }
+                            ?>
                         </div>
                     </div>
                 </td>

+ 14 - 2
resources/views/app/patient/careteam-center.blade.php

@@ -59,7 +59,7 @@ list($careTeamMembers, $counts) = Point::getPointsOfCategoryExtended($patient, '
                             ?>
                         </div>
                         <div class="d-inline-flex flex-nowrap">
-                            <a class="pl-2 view-review-log"
+                            <a class="px-2 view-review-log"
                                native target="_blank"
                                open-in-stag-popup
                                popup-style="stag-popup-md"
@@ -67,6 +67,12 @@ list($careTeamMembers, $counts) = Point::getPointsOfCategoryExtended($patient, '
                                href="/point/review-log/<?= $careTeamMember->uid ?>?popupmode=1">
                                 <i class="fa fa-history"></i>
                             </a>
+                            <?php
+                            $segment = $note->getSegmentByInternalName('intake_care_team');
+                            if($segment) {
+                                include resource_path('views/app/patient/segment-templates/_child_review/edit-review.php');
+                            }
+                            ?>
                         </div>
                     </div>
                 </td>
@@ -78,7 +84,7 @@ list($careTeamMembers, $counts) = Point::getPointsOfCategoryExtended($patient, '
                             ?>
                         </div>
                         <div class="d-inline-flex flex-nowrap">
-                            <a class="pl-2 view-review-log"
+                            <a class="px-2 view-review-log"
                                native target="_blank"
                                open-in-stag-popup
                                popup-style="stag-popup-md"
@@ -86,6 +92,12 @@ list($careTeamMembers, $counts) = Point::getPointsOfCategoryExtended($patient, '
                                href="/point/plan-log/<?= $careTeamMember->uid ?>?popupmode=1">
                                 <i class="fa fa-history"></i>
                             </a>
+                            <?php
+                            $segment = $note->getSegmentByInternalName('plan_care_team');
+                            if($segment) {
+                                include resource_path('views/app/patient/segment-templates/_child_plan/edit-plan.php');
+                            }
+                            ?>
                         </div>
                     </div>
                 </td>

+ 14 - 2
resources/views/app/patient/goals-center.blade.php

@@ -59,7 +59,7 @@ list($goals, $counts) = Point::getPointsOfCategoryExtended($patient, 'GOAL', $no
                             ?>
                         </div>
                         <div class="d-inline-flex flex-nowrap">
-                            <a class="pl-2 view-review-log"
+                            <a class="px-2 view-review-log"
                                native target="_blank"
                                open-in-stag-popup
                                popup-style="stag-popup-md"
@@ -67,6 +67,12 @@ list($goals, $counts) = Point::getPointsOfCategoryExtended($patient, 'GOAL', $no
                                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>
@@ -78,7 +84,7 @@ list($goals, $counts) = Point::getPointsOfCategoryExtended($patient, 'GOAL', $no
                             ?>
                         </div>
                         <div class="d-inline-flex flex-nowrap">
-                            <a class="pl-2 view-review-log"
+                            <a class="px-2 view-review-log"
                                native target="_blank"
                                open-in-stag-popup
                                popup-style="stag-popup-md"
@@ -86,6 +92,12 @@ list($goals, $counts) = Point::getPointsOfCategoryExtended($patient, 'GOAL', $no
                                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>

+ 10 - 4
resources/views/app/patient/medications-center.blade.php

@@ -60,7 +60,7 @@ list($medications, $counts) = Point::getPointsOfCategoryExtended($patient, 'MEDI
                                 ?>
                             </div>
                             <div class="d-inline-flex flex-nowrap">
-                                <a class="pl-2 view-review-log"
+                                <a class="px-2 view-review-log"
                                    native target="_blank"
                                    open-in-stag-popup
                                    popup-style="stag-popup-md"
@@ -68,6 +68,12 @@ list($medications, $counts) = Point::getPointsOfCategoryExtended($patient, 'MEDI
                                    href="/point/review-log/<?= $medication->uid ?>?popupmode=1">
                                     <i class="fa fa-history"></i>
                                 </a>
+                                <?php
+                                $segment = $note->getSegmentByInternalName('intake_medications');
+                                if($segment) {
+                                    include resource_path('views/app/patient/segment-templates/_child_review/edit-review.php');
+                                }
+                                ?>
                             </div>
                         </div>
                     </td>
@@ -79,7 +85,7 @@ list($medications, $counts) = Point::getPointsOfCategoryExtended($patient, 'MEDI
                                 ?>
                             </div>
                             <div class="d-inline-flex flex-nowrap">
-                                <a class="pl-2 view-review-log"
+                                <a class="px-2 view-review-log"
                                    native target="_blank"
                                    open-in-stag-popup
                                    popup-style="stag-popup-md"
@@ -88,10 +94,10 @@ list($medications, $counts) = Point::getPointsOfCategoryExtended($patient, 'MEDI
                                     <i class="fa fa-history"></i>
                                 </a>
                                 <?php
-                                /*$segment = $note->getSegmentByInternalName('plan_medications');
+                                $segment = $note->getSegmentByInternalName('plan_medications');
                                 if($segment) {
                                     include resource_path('views/app/patient/segment-templates/_child_plan/edit-plan.php');
-                                }*/
+                                }
                                 ?>
                             </div>
                         </div>

+ 14 - 33
resources/views/app/patient/problems-center.blade.php

@@ -81,7 +81,7 @@ $ccSegment = $ccSegment ?? $note->getSegmentByInternalName('mc_cc');
                             ?>
                         </div>
                         <div class="d-inline-flex flex-nowrap">
-                            <a class="pl-2 view-review-log"
+                            <a class="px-2 view-review-log"
                                native target="_blank"
                                open-in-stag-popup
                                popup-style="stag-popup-md"
@@ -89,39 +89,14 @@ $ccSegment = $ccSegment ?? $note->getSegmentByInternalName('mc_cc');
                                href="/point/review-log/<?= $problem->uid ?>?popupmode=1">
                                 <i class="fa fa-history"></i>
                             </a>
+                            <?php
+                            $segment = $note->getSegmentByInternalName('intake_problems');
+                            if($segment) {
+                                include resource_path('views/app/patient/segment-templates/_child_review/edit-review.php');
+                            }
+                            ?>
                         </div>
                     </div>
-                    {{--
-                    <div class="d-flex align-items-start">
-                        <div class="flex-grow-1">
-                            @include('app.patient.note.last-hpi')
-                        </div>
-                        <div>
-                            <div class="">
-                                <a class="pl-2 view-review-log"
-                                   native target="_blank"
-                                   open-in-stag-popup
-                                   popup-style="stag-popup-md"
-                                   title="HPI log<?= !!@($problem->data->name) ? ' for ' . @($problem->data->name) : '' ?>"
-                                   href="/point/hpi-log/<?= $problem->uid ?>?popupmode=1">
-                                    <i class="fa fa-history"></i>
-                                </a>
-                            </div>
-                            <div class="">
-                                <a class="pl-2 view-review-log"
-                                   native target="_blank"
-                                   open-in-stag-popup
-                                   update-parent
-                                   mc-initer="edit-hpi-{{$problem->id}}"
-                                   popup-style="stag-popup-md"
-                                   title="HPI<?= !!@($problem->data->name) ? ' for ' . @($problem->data->name) : '' ?> / <?= $patient->displayName() ?>"
-                                   href="/point/edit-hpi/<?= $note->uid ?>/<?= $problem->uid ?>?popupmode=1">
-                                    <i class="fa fa-plus-square"></i>
-                                </a>
-                            </div>
-                        </div>
-                    </div>
-                    --}}
                 </td>
                 <td>
                     <div class="d-flex align-items-start">
@@ -131,7 +106,7 @@ $ccSegment = $ccSegment ?? $note->getSegmentByInternalName('mc_cc');
                             ?>
                         </div>
                         <div class="d-inline-flex flex-nowrap">
-                            <a class="pl-2 view-review-log"
+                            <a class="px-2 view-review-log"
                                native target="_blank"
                                open-in-stag-popup
                                popup-style="stag-popup-md"
@@ -139,6 +114,12 @@ $ccSegment = $ccSegment ?? $note->getSegmentByInternalName('mc_cc');
                                href="/point/plan-log/<?= $problem->uid ?>?popupmode=1">
                                 <i class="fa fa-history"></i>
                             </a>
+                            <?php
+                            $segment = $note->getSegmentByInternalName('plan_problems');
+                            if($segment) {
+                                include resource_path('views/app/patient/segment-templates/_child_plan/edit-plan.php');
+                            }
+                            ?>
                         </div>
                     </div>
                 </td>

+ 2 - 2
resources/views/app/patient/supplements-center.blade.php

@@ -60,7 +60,7 @@ list($supplements, $counts) = Point::getPointsOfCategoryExtended($patient, 'SUPP
                                 ?>
                             </div>
                             <div class="d-inline-flex flex-nowrap">
-                                <a class="pl-2 view-review-log"
+                                <a class="px-2 view-review-log"
                                    native target="_blank"
                                    open-in-stag-popup
                                    popup-style="stag-popup-md"
@@ -79,7 +79,7 @@ list($supplements, $counts) = Point::getPointsOfCategoryExtended($patient, 'SUPP
                                 ?>
                             </div>
                             <div class="d-inline-flex flex-nowrap">
-                                <a class="pl-2 view-review-log"
+                                <a class="px-2 view-review-log"
                                    native target="_blank"
                                    open-in-stag-popup
                                    popup-style="stag-popup-md"