瀏覽代碼

Dx wiz - remove plan from add/edit - give [+] icon for plan

Vijayakrishnan 3 年之前
父節點
當前提交
532c9d9000

+ 11 - 3
resources/views/app/patient/problems-center.blade.php

@@ -110,7 +110,7 @@ $ccSegment = $note->getSegmentByInternalName('chief_complaint');
                             include resource_path('views/app/patient/segment-templates/_child_plan/last-plan.php');
                             ?>
                         </div>
-                        <div class="d-inline-flex flex-nowrap">
+                        <div class="">
                             <a class="pl-2 view-review-log"
                                native target="_blank"
                                open-in-stag-popup
@@ -119,6 +119,14 @@ $ccSegment = $note->getSegmentByInternalName('chief_complaint');
                                href="/point/plan-log/<?= $problem->uid ?>?popupmode=1">
                                 <i class="fa fa-history"></i>
                             </a>
+                            <div class="pl-2">
+                            <?php
+                            $segment = $note->getSegmentByInternalName('plan_problems');
+                            if($segment && $patient->core_note_id !== $note->id) {
+                                include resource_path('views/app/patient/segment-templates/_child_plan/edit-plan.php');
+                            }
+                            ?>
+                            </div>
                         </div>
                     </div>
                 </td>
@@ -191,7 +199,7 @@ $ccSegment = $note->getSegmentByInternalName('chief_complaint');
 
                             @endif
 
-                            @include('app.patient.wizard-partials.common-fields', ['label' => 'problem', 'point' => $problem, 'reviewLabel' => 'HPI', 'addVerbPT' => 'Diagnosed', 'noReview' => true])
+                            @include('app.patient.wizard-partials.common-fields', ['label' => 'problem', 'point' => $problem, 'reviewLabel' => 'HPI', 'addVerbPT' => 'Diagnosed', 'noReview' => true, 'noPlan' => true])
 
                             <div class="mt-3 pt-2 d-flex align-items-center border-top">
                                 <button type="submit" class="btn-save-problem btn btn-sm btn-primary mr-2">Save</button>
@@ -242,7 +250,7 @@ $ccSegment = $note->getSegmentByInternalName('chief_complaint');
                             </div>
 
                             <?php $point = null; ?>
-                            @include('app.patient.wizard-partials.common-fields', ['label' => 'problem', 'reviewLabel' => 'HPI', 'addVerbPT' => 'Diagnosed', 'noReview' => true])
+                            @include('app.patient.wizard-partials.common-fields', ['label' => 'problem', 'reviewLabel' => 'HPI', 'addVerbPT' => 'Diagnosed', 'noReview' => true, 'noPlan' => true])
 
                         </div>
                         <div class="col-4 border-left">

+ 2 - 0
resources/views/app/patient/wizard-partials/common-fields.blade.php

@@ -173,6 +173,7 @@
                 </div>
             @endif
             <div class="col-{{!@$noReview ? '6' : '12'}}">
+                @if(!@$noPlan)
                 <?php
                 $currentValue = '';
                 $previousValue = '';
@@ -215,6 +216,7 @@
                 </div>
                 <div class="d-none disallow-if-plan-same-as" compare-width="planValue"><?= str_compact($previousValue) ?></div>
                 <?php endif; ?>
+                @endif
             </div>
         </div>
     @endif