Преглед на файлове

After opt. fix issue when invoked in summary mode (from old notes)

Vijayakrishnan преди 3 години
родител
ревизия
be4689dc3c

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

@@ -10,7 +10,10 @@ use App\Models\Pro;
 /** @var Pro $pro */
 /** @var $summaryView */
 
-// list($allergies, $counts) = Point::getPointsOfCategoryExtended($patient, 'ALLERGY', $note, !!@$summaryView);
+if(!@$allergies || !@$counts) {
+    list($allergies, $counts) = Point::getPointsOfCategoryExtended($patient, 'ALLERGY', $note, !!@$summaryView);
+}
+
 $numActiveItems = Point::getNumPointsOfCategory($patient, 'ALLERGY');
 if(!@$summaryView) {
     $favorites = $pro->favoritesByCategoryDecoded('allergy');

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

@@ -9,7 +9,9 @@ use App\Models\Segment;
 /** @var Note $note */
 /** @var $summaryView */
 
-// list($careTeamMembers, $counts) = Point::getPointsOfCategoryExtended($patient, 'CARE_TEAM_MEMBER', $note, !!@$summaryView);
+if(!@$careTeamMembers || !@$counts) {
+    list($careTeamMembers, $counts) = Point::getPointsOfCategoryExtended($patient, 'CARE_TEAM_MEMBER', $note, !!@$summaryView);
+}
 ?>
 
 <div @if(!@$summaryView) class="mt-3 p-3 border-top" id="careteam-center-{{$note->id}}" @else class="mt-2 pr-2" @endif>

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

@@ -9,7 +9,9 @@ use App\Models\Segment;
 /** @var Note $note */
 /** @var $summaryView */
 
-// list($goals, $counts) = Point::getPointsOfCategoryExtended($patient, 'GOAL', $note, !!@$summaryView);
+if(!@$goals || !@$counts) {
+    list($goals, $counts) = Point::getPointsOfCategoryExtended($patient, 'GOAL', $note, !!@$summaryView);
+}
 ?>
 
 <div @if(!@$summaryView) class="mt-3 p-3 border-top" id="goals-center-{{$note->id}}" @else class="mt-2 pr-2" @endif>

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

@@ -10,7 +10,9 @@ use App\Models\Pro;
 /** @var Pro $pro */
 /** @var $summaryView */
 
-// list($medications, $counts) = Point::getPointsOfCategoryExtended($patient, 'MEDICATION', $note, !!@$summaryView);
+if(!@$medications || !@$counts) {
+    list($medications, $counts) = Point::getPointsOfCategoryExtended($patient, 'MEDICATION', $note, !!@$summaryView);
+}
 $numActiveItems = Point::getNumPointsOfCategory($patient, 'MEDICATION');
 if(!@$summaryView) {
     $favorites = $pro->favoritesByCategoryDecoded('medication');

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

@@ -10,7 +10,9 @@ use App\Models\Pro;
 /** @var Pro $pro */
 /** @var $summaryView */
 
-// list($problems, $counts) = Point::getPointsOfCategoryExtended($patient, 'PROBLEM', $note, !!@$summaryView);
+if(!@$problems || !@$counts) {
+    list($problems, $counts) = Point::getPointsOfCategoryExtended($patient, 'PROBLEM', $note, !!@$summaryView);
+}
 if(!@$summaryView) {
     $ccSegment = $note->getSegmentByInternalName('chief_complaint');
     $ccSegment = $ccSegment ?? $note->getSegmentByInternalName('mc_cc');