Bladeren bron

Auto refresh pf segment templates fixed

Vijayakrishnan 3 jaren geleden
bovenliggende
commit
eabaa5c908

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

@@ -225,7 +225,7 @@ list($allergies, $counts) = Point::getPointsOfCategoryExtended($patient, 'ALLERG
 
                 });
 
-            @include('app.patient.wizard-partials.common-script', ['label' => 'allergy'])
+            @include('app.patient.wizard-partials.common-script', ['label' => 'allergy', 'segment_part' => 'allergies'])
 
             initSegmentMoes($('#allergies-center-{{$note->id}}'));
             __initRTEs(parentSegment.find('[note-rte]:not(.ql-container)'));

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

@@ -271,7 +271,7 @@ list($careTeamMembers, $counts) = Point::getPointsOfCategoryExtended($patient, '
                 })
                 .trigger('change');
 
-            @include('app.patient.wizard-partials.common-script', ['label' => 'care-team-member'])
+            @include('app.patient.wizard-partials.common-script', ['label' => 'care-team-member', 'segment_part' => 'care_team'])
 
             initSegmentMoes($('#careteam-center-{{$note->id}}'));
             __initRTEs(parentSegment.find('[note-rte]:not(.ql-container)'));

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

@@ -211,7 +211,7 @@ list($goals, $counts) = Point::getPointsOfCategoryExtended($patient, 'GOAL', $no
                 })
                 .trigger('change');
 
-            @include('app.patient.wizard-partials.common-script', ['label' => 'goal'])
+            @include('app.patient.wizard-partials.common-script', ['label' => 'goal', 'segment_part' => 'goals'])
 
             initSegmentMoes($('#goals-center-{{$note->id}}'));
             __initRTEs(parentSegment.find('[note-rte]:not(.ql-container)'));

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

@@ -262,7 +262,7 @@ list($medications, $counts) = Point::getPointsOfCategoryExtended($patient, 'MEDI
                 return false;
             });
 
-        @include('app.patient.wizard-partials.common-script', ['label' => 'medication'])
+        @include('app.patient.wizard-partials.common-script', ['label' => 'medication', 'segment_part' => 'medications'])
 
         // custom buttons on title bar
         $('.button-container').remove();

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

@@ -309,7 +309,7 @@ $ccSegment = $note->getSegmentByInternalName('chief_complaint');
                     }, 'json');
                 });
 
-            @include('app.patient.wizard-partials.common-script', ['label' => 'problem'])
+            @include('app.patient.wizard-partials.common-script', ['label' => 'problem', 'segment_part' => 'problems'])
 
             @if($patient->core_note_id !== $note->id)
             parentSegment.find('.regenerate-cc')

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

@@ -239,8 +239,8 @@ parentSegment.find('#frm-add-{{$label}}')
             if(!hasResponseError(_data)) {
                 hideMask();
                 refreshDynamicStagPopup();
-                $('.visit-segment[data-segment-template-name="intake_{{$label}}s"]').find('.refresh-segment').trigger('click');
-                $('.visit-segment[data-segment-template-name="plan_{{$label}}s"]').find('.refresh-segment').trigger('click');
+                $('.visit-segment[data-segment-template-name="intake_{{$segment_part}}"]').find('.refresh-segment').trigger('click');
+                $('.visit-segment[data-segment-template-name="plan_{{$segment_part}}"]').find('.refresh-segment').trigger('click');
             }
         }, 'json');
         return false;