|
@@ -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');
|